From 5506728304035e717c562f2dd709be2b86ded47a Mon Sep 17 00:00:00 2001 From: Nathnael Dereje Date: Thu, 16 Apr 2026 16:25:57 +0200 Subject: [PATCH 01/16] feat: Add Table Selection Dropdown --- .../__tests__/selection-controller.test.tsx | 283 ++++++++++++++++++ src/table/interfaces.tsx | 26 ++ src/table/internal.tsx | 29 +- src/table/selection/selection-cell.tsx | 63 +++- .../selection-controller-dropdown.tsx | 60 ++++ src/table/selection/styles.scss | 82 +++++ src/table/styles.scss | 1 - src/table/thead.tsx | 14 + 8 files changed, 546 insertions(+), 12 deletions(-) create mode 100644 src/table/__tests__/selection-controller.test.tsx create mode 100644 src/table/selection/selection-controller-dropdown.tsx diff --git a/src/table/__tests__/selection-controller.test.tsx b/src/table/__tests__/selection-controller.test.tsx new file mode 100644 index 0000000000..cc88d167ba --- /dev/null +++ b/src/table/__tests__/selection-controller.test.tsx @@ -0,0 +1,283 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +import * as React from 'react'; +import { render } from '@testing-library/react'; + +import { ButtonDropdownProps } from '../../../lib/components/button-dropdown/interfaces'; +import Table, { TableProps } from '../../../lib/components/table'; +import createWrapper from '../../../lib/components/test-utils/dom'; + +interface Item { + id: number; + name: string; +} + +const columnDefinitions: TableProps.ColumnDefinition[] = [ + { header: 'id', cell: item => item.id }, + { header: 'name', cell: item => item.name }, +]; + +const items: Item[] = [ + { id: 1, name: 'Apples' }, + { id: 2, name: 'Oranges' }, + { id: 3, name: 'Bananas' }, +]; + +const selectionControllerItems: ButtonDropdownProps.Items = [ + { id: 'all', text: 'All' }, + { id: 'none', text: 'None' }, + { id: 'with-desc', text: 'With description', secondaryText: 'A helpful description' }, + { id: 'disabled-item', text: 'Disabled', disabled: true }, +]; + +function renderTable(props: Partial) { + const allProps: TableProps = { + items, + columnDefinitions, + ...props, + }; + const { container } = render(); + const wrapper = createWrapper(container).findTable()!; + return { wrapper }; +} + +function findSelectionControllerDropdown(container: ReturnType['wrapper']) { + // The selection controller is an InternalButtonDropdown rendered inside the header selection cell + // Use the root element to find it via the ButtonDropdownWrapper selector + const rootElement = container.getElement().closest('body') ?? container.getElement(); + return createWrapper(rootElement as HTMLElement).findButtonDropdown(); +} + +describe('Selection Controller - Rendering conditions', () => { + test('renders selection controller when selectionType is multi and items are provided', () => { + const { wrapper } = renderTable({ + selectionType: 'multi', + selectedItems: [], + onSelectionChange: jest.fn(), + selectionControllerItems, + }); + expect(findSelectionControllerDropdown(wrapper)).toBeTruthy(); + }); + + test('does not render selection controller when selectionType is single', () => { + const { wrapper } = renderTable({ + selectionType: 'single', + selectedItems: [], + onSelectionChange: jest.fn(), + selectionControllerItems, + }); + expect(findSelectionControllerDropdown(wrapper)).toBeFalsy(); + }); + + test('does not render selection controller when selectionControllerItems is undefined', () => { + const { wrapper } = renderTable({ + selectionType: 'multi', + selectedItems: [], + onSelectionChange: jest.fn(), + }); + expect(findSelectionControllerDropdown(wrapper)).toBeFalsy(); + }); + + test('does not render selection controller when selectionControllerItems is empty', () => { + const { wrapper } = renderTable({ + selectionType: 'multi', + selectedItems: [], + onSelectionChange: jest.fn(), + selectionControllerItems: [], + }); + expect(findSelectionControllerDropdown(wrapper)).toBeFalsy(); + }); + + test('does not render selection controller when selectionType is not set', () => { + const { wrapper } = renderTable({ + selectionControllerItems, + }); + expect(findSelectionControllerDropdown(wrapper)).toBeFalsy(); + }); +}); + +describe('Selection Controller - Dropdown menu', () => { + test('opens dropdown and shows items on click', () => { + const { wrapper } = renderTable({ + selectionType: 'multi', + selectedItems: [], + onSelectionChange: jest.fn(), + selectionControllerItems, + }); + const dropdown = findSelectionControllerDropdown(wrapper)!; + dropdown.openDropdown(); + const menuItems = dropdown.findItems(); + expect(menuItems).toHaveLength(4); + }); + + test('displays item text in menu items', () => { + const { wrapper } = renderTable({ + selectionType: 'multi', + selectedItems: [], + onSelectionChange: jest.fn(), + selectionControllerItems, + }); + const dropdown = findSelectionControllerDropdown(wrapper)!; + dropdown.openDropdown(); + const menuItems = dropdown.findItems(); + expect(menuItems[0].getElement().textContent).toContain('All'); + expect(menuItems[1].getElement().textContent).toContain('None'); + expect(menuItems[2].getElement().textContent).toContain('With description'); + }); + + test('displays item description as secondary text', () => { + const { wrapper } = renderTable({ + selectionType: 'multi', + selectedItems: [], + onSelectionChange: jest.fn(), + selectionControllerItems, + }); + const dropdown = findSelectionControllerDropdown(wrapper)!; + dropdown.openDropdown(); + const menuItems = dropdown.findItems(); + expect(menuItems[2].getElement().textContent).toContain('A helpful description'); + }); + + test('fires onSelectionControllerItemClick with correct id on item click', () => { + const onItemClick = jest.fn(); + const { wrapper } = renderTable({ + selectionType: 'multi', + selectedItems: [], + onSelectionChange: jest.fn(), + selectionControllerItems, + onSelectionControllerItemClick: onItemClick, + }); + const dropdown = findSelectionControllerDropdown(wrapper)!; + dropdown.openDropdown(); + dropdown.findItemById('all')!.click(); + expect(onItemClick).toHaveBeenCalledTimes(1); + expect(onItemClick).toHaveBeenCalledWith( + expect.objectContaining({ detail: expect.objectContaining({ id: 'all' }) }) + ); + }); + + test('fires onSelectionControllerItemClick with correct id for different items', () => { + const onItemClick = jest.fn(); + const { wrapper } = renderTable({ + selectionType: 'multi', + selectedItems: [], + onSelectionChange: jest.fn(), + selectionControllerItems, + onSelectionControllerItemClick: onItemClick, + }); + const dropdown = findSelectionControllerDropdown(wrapper)!; + dropdown.openDropdown(); + dropdown.findItemById('none')!.click(); + expect(onItemClick).toHaveBeenCalledWith( + expect.objectContaining({ detail: expect.objectContaining({ id: 'none' }) }) + ); + }); +}); + +describe('Selection Controller - Disabled items', () => { + test('does not fire onSelectionControllerItemClick for disabled items', () => { + const onItemClick = jest.fn(); + const { wrapper } = renderTable({ + selectionType: 'multi', + selectedItems: [], + onSelectionChange: jest.fn(), + selectionControllerItems, + onSelectionControllerItemClick: onItemClick, + }); + const dropdown = findSelectionControllerDropdown(wrapper)!; + dropdown.openDropdown(); + const disabledItem = dropdown.findItemById('disabled-item'); + expect(disabledItem).toBeTruthy(); + disabledItem!.click(); + expect(onItemClick).not.toHaveBeenCalled(); + }); + + test('renders disabled items in disabled state', () => { + const { wrapper } = renderTable({ + selectionType: 'multi', + selectedItems: [], + onSelectionChange: jest.fn(), + selectionControllerItems, + }); + const dropdown = findSelectionControllerDropdown(wrapper)!; + dropdown.openDropdown(); + const disabledItems = dropdown.findItems({ disabled: true }); + expect(disabledItems).toHaveLength(1); + }); +}); + +describe('Selection Controller - Loading state', () => { + test('disables trigger when loading is true', () => { + const { wrapper } = renderTable({ + selectionType: 'multi', + selectedItems: [], + onSelectionChange: jest.fn(), + selectionControllerItems, + loading: true, + loadingText: 'Loading', + }); + const dropdown = findSelectionControllerDropdown(wrapper)!; + const trigger = dropdown.findNativeButton(); + expect(trigger.getElement()).toBeDisabled(); + }); +}); + +describe('Selection Controller - Aria labels', () => { + test('applies selectionControllerLabel as aria-label on trigger', () => { + const { wrapper } = renderTable({ + selectionType: 'multi', + selectedItems: [], + onSelectionChange: jest.fn(), + selectionControllerItems, + ariaLabels: { + selectionGroupLabel: 'group', + allItemsSelectionLabel: () => 'select all', + itemSelectionLabel: () => 'select item', + selectionControllerLabel: 'Selection options', + }, + }); + const dropdown = findSelectionControllerDropdown(wrapper)!; + const trigger = dropdown.findNativeButton(); + expect(trigger.getElement()).toHaveAttribute('aria-label', 'Selection options'); + }); +}); + +describe('Selection Controller - Does not modify selectedItems', () => { + test('selectedItems remains unchanged after selection controller item click', () => { + const initialSelected = [items[0]]; + const onSelectionChange = jest.fn(); + const onItemClick = jest.fn(); + const { wrapper } = renderTable({ + selectionType: 'multi', + selectedItems: initialSelected, + onSelectionChange, + selectionControllerItems, + onSelectionControllerItemClick: onItemClick, + }); + const dropdown = findSelectionControllerDropdown(wrapper)!; + dropdown.openDropdown(); + dropdown.findItemById('none')!.click(); + // The table should NOT have called onSelectionChange — only onSelectionControllerItemClick + expect(onSelectionChange).not.toHaveBeenCalled(); + expect(onItemClick).toHaveBeenCalledTimes(1); + }); +}); + +describe('Selection Controller - Coexistence with select-all checkbox', () => { + test('select-all checkbox still works when controller is present', () => { + const onSelectionChange = jest.fn(); + const { wrapper } = renderTable({ + selectionType: 'multi', + selectedItems: [], + onSelectionChange, + selectionControllerItems, + }); + // The select-all trigger should still exist + const selectAll = wrapper.findSelectAllTrigger(); + expect(selectAll).toBeTruthy(); + // Click the select-all checkbox + selectAll!.click(); + expect(onSelectionChange).toHaveBeenCalledTimes(1); + }); +}); diff --git a/src/table/interfaces.tsx b/src/table/interfaces.tsx index 1628cf5492..181db73ccc 100644 --- a/src/table/interfaces.tsx +++ b/src/table/interfaces.tsx @@ -2,6 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 import React from 'react'; +import { ButtonDropdownProps } from '../button-dropdown/interfaces'; import { BaseComponentProps } from '../internal/base-component'; import { CancelableEventHandler, NonCancelableEventHandler } from '../internal/events'; import { Optional } from '../internal/types'; @@ -429,6 +430,30 @@ export interface TableProps extends BaseComponentProps { * Renders loader counter that is appended to the loader content in all loader states. */ renderLoaderCounter?: (detail: TableProps.RenderLoaderCounterDetail) => React.ReactNode; + + /** + * Specifies the items displayed in the selection controller dropdown menu. + * The selection controller renders as a small dropdown trigger adjacent to the + * select-all checkbox when `selectionType` is `"multi"`. + * + * Supports the same item types as ButtonDropdown: plain items, checkbox items, + * and grouped items. See ButtonDropdownProps.Items for the full type. + * + * The selection controller is not rendered when `selectionType` is `"single"`, + * when `expandableRows` with `groupSelection` is configured, or when this + * prop is undefined or an empty array. + */ + selectionControllerItems?: ButtonDropdownProps.Items; + + /** + * Fired when a user activates a selection controller item from the dropdown menu. + * The event detail contains the `id` of the activated item and, for checkbox items, + * the `checked` state. + * + * The table does not automatically modify `selectedItems`. Use this event + * to implement custom selection logic and update `selectedItems` accordingly. + */ + onSelectionControllerItemClick?: NonCancelableEventHandler; } export namespace TableProps { @@ -547,6 +572,7 @@ export namespace TableProps { successfulEditLabel?: (column: ColumnDefinition) => string; expandButtonLabel?: (item: T) => string; collapseButtonLabel?: (item: T) => string; + selectionControllerLabel?: string; } export interface SortingState { isDescending?: boolean; diff --git a/src/table/internal.tsx b/src/table/internal.tsx index cf2e4db610..3b483d8b1b 100644 --- a/src/table/internal.tsx +++ b/src/table/internal.tsx @@ -73,6 +73,7 @@ import styles from './styles.css.js'; const GRID_NAVIGATION_PAGE_SIZE = 10; const SELECTION_COLUMN_WIDTH = 54; +const SELECTION_COLUMN_WIDTH_WITH_CONTROLLER = 72; const selectionColumnId = Symbol('selection-column-id'); type InternalTableProps = SomeRequired< @@ -147,6 +148,8 @@ const InternalTable = React.forwardRef( renderLoaderEmpty, renderLoaderCounter, cellVerticalAlign, + selectionControllerItems, + onSelectionControllerItemClick, __funnelSubStepProps, ...rest }: InternalTableProps, @@ -179,6 +182,12 @@ const InternalTable = React.forwardRef( const { allRows } = useProgressiveLoadingProps({ getLoadingStatus, expandableRows }); const selectionType = expandableRows.hasGroupSelection ? ('group' as const) : externalSelectionType; + const showSelectionController = + externalSelectionType === 'multi' && + !expandableRows.hasGroupSelection && + !!selectionControllerItems && + selectionControllerItems.length > 0; + const [containerWidth, wrapperMeasureRef] = useContainerQuery(rect => rect.borderBoxWidth); const wrapperMeasureRefObject = useRef(null); const wrapperMeasureMergedRef = useMergeRefs(wrapperMeasureRef, wrapperMeasureRefObject); @@ -362,8 +371,15 @@ const InternalTable = React.forwardRef( const visibleColumnWidthsWithSelection: ColumnWidthDefinition[] = []; const visibleColumnIdsWithSelection: PropertyKey[] = []; + const selectionColumnWidth = showSelectionController + ? SELECTION_COLUMN_WIDTH_WITH_CONTROLLER + : SELECTION_COLUMN_WIDTH; if (hasSelection) { - visibleColumnWidthsWithSelection.push({ id: selectionColumnId, width: SELECTION_COLUMN_WIDTH }); + visibleColumnWidthsWithSelection.push({ + id: selectionColumnId, + width: selectionColumnWidth, + minWidth: selectionColumnWidth, + }); visibleColumnIdsWithSelection.push(selectionColumnId); } for (let columnIndex = 0; columnIndex < visibleColumnDefinitions.length; columnIndex++) { @@ -422,6 +438,13 @@ const InternalTable = React.forwardRef( tableRole, isExpandable, setLastUserAction, + selectionControllerItems: showSelectionController ? selectionControllerItems : undefined, + onSelectionControllerItemClick: showSelectionController + ? (detail: import('../button-dropdown/interfaces').ButtonDropdownProps.ItemClickDetails) => + fireNonCancelableEvent(onSelectionControllerItemClick, detail) + : undefined, + selectionControllerAriaLabel: ariaLabels?.selectionControllerLabel, + loading, }; usePreventStickyClickScroll(wrapperRefObject); @@ -641,6 +664,7 @@ const InternalTable = React.forwardRef( )} @@ -742,10 +767,12 @@ const InternalTable = React.forwardRef( ) : null} {visibleColumnDefinitions.map((column, colIndex) => ( diff --git a/src/table/selection/selection-cell.tsx b/src/table/selection/selection-cell.tsx index f2b894af81..777d606dbe 100644 --- a/src/table/selection/selection-cell.tsx +++ b/src/table/selection/selection-cell.tsx @@ -4,25 +4,33 @@ import React from 'react'; import { getAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata'; +import { ButtonDropdownProps } from '../../button-dropdown/interfaces'; import ScreenreaderOnly from '../../internal/components/screenreader-only'; import { TableTdElement, TableTdElementProps } from '../body-cell/td-element'; import { TableThElement, TableThElementProps } from '../header-cell/th-element'; import { Divider } from '../resizer'; import { ItemSelectionProps } from './interfaces'; import { SelectionControl, SelectionControlProps } from './selection-control'; +import SelectionControllerDropdown from './selection-controller-dropdown'; import styles from '../styles.css.js'; +import selectionStyles from './styles.css.js'; interface TableHeaderSelectionCellProps extends Omit { focusedComponent?: null | string; singleSelectionHeaderAriaLabel?: string; getSelectAllProps?: () => ItemSelectionProps; onFocusMove: ((sourceElement: HTMLElement, fromIndex: number, direction: -1 | 1) => void) | undefined; + selectionControllerItems?: ButtonDropdownProps.Items; + onSelectionControllerItemClick?: (detail: ButtonDropdownProps.ItemClickDetails) => void; + selectionControllerAriaLabel?: string; + loading?: boolean; } interface TableBodySelectionCellProps extends Omit { selectionControlProps?: SelectionControlProps; + hasSelectionController?: boolean; } export function TableHeaderSelectionCell({ @@ -30,9 +38,14 @@ export function TableHeaderSelectionCell({ singleSelectionHeaderAriaLabel, getSelectAllProps, onFocusMove, + selectionControllerItems, + onSelectionControllerItemClick, + selectionControllerAriaLabel, + loading, ...props }: TableHeaderSelectionCellProps) { const selectAllProps = getSelectAllProps ? getSelectAllProps() : undefined; + const showController = !!selectAllProps && !!selectionControllerItems && selectionControllerItems.length > 0; return ( {selectAllProps ? ( - { - onFocusMove!(event.target as HTMLElement, -1, +1); - }} - focusedComponent={focusedComponent} - {...selectAllProps} - {...(props.sticky ? { tabIndex: -1 } : {})} - /> + showController ? ( +
+ { + onFocusMove!(event.target as HTMLElement, -1, +1); + }} + focusedComponent={focusedComponent} + {...selectAllProps} + {...(props.sticky ? { tabIndex: -1 } : {})} + /> + +
+ ) : ( + { + onFocusMove!(event.target as HTMLElement, -1, +1); + }} + focusedComponent={focusedComponent} + {...selectAllProps} + {...(props.sticky ? { tabIndex: -1 } : {})} + /> + ) ) : ( {singleSelectionHeaderAriaLabel} )} @@ -61,11 +94,21 @@ export function TableHeaderSelectionCell({ ); } -export function TableBodySelectionCell({ selectionControlProps, ...props }: TableBodySelectionCellProps) { +export function TableBodySelectionCell({ + selectionControlProps, + hasSelectionController, + ...props +}: TableBodySelectionCellProps) { return ( {selectionControlProps ? ( - + hasSelectionController ? ( +
+ +
+ ) : ( + + ) ) : null}
); diff --git a/src/table/selection/selection-controller-dropdown.tsx b/src/table/selection/selection-controller-dropdown.tsx new file mode 100644 index 0000000000..78db676596 --- /dev/null +++ b/src/table/selection/selection-controller-dropdown.tsx @@ -0,0 +1,60 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 +import React from 'react'; +import clsx from 'clsx'; + +import { ButtonDropdownProps } from '../../button-dropdown/interfaces'; +import InternalButtonDropdown from '../../button-dropdown/internal'; +import InternalIcon from '../../icon/internal'; + +import styles from './styles.css.js'; + +export interface SelectionControllerDropdownProps { + items: ButtonDropdownProps.Items; + onItemClick: (detail: ButtonDropdownProps.ItemClickDetails) => void; + ariaLabel?: string; + disabled?: boolean; + sticky?: boolean; +} + +export default function SelectionControllerDropdown({ + items, + onItemClick, + ariaLabel, + disabled = false, + sticky = false, +}: SelectionControllerDropdownProps) { + return ( + onItemClick(detail)} + ariaLabel={ariaLabel} + disabled={disabled} + variant="inline-icon" + expandToViewport={true} + expandableGroups={false} + customTriggerBuilder={({ + triggerRef, + testUtilsClass, + ariaExpanded, + onClick, + isOpen, + disabled: triggerDisabled, + }) => ( + + )} + /> + ); +} diff --git a/src/table/selection/styles.scss b/src/table/selection/styles.scss index 0e5218042f..3be85e21dd 100644 --- a/src/table/selection/styles.scss +++ b/src/table/selection/styles.scss @@ -32,3 +32,85 @@ .stud { visibility: hidden; } + +.selection-controller-trigger { + @include styles.styles-reset; + display: inline-flex; + align-items: center; + justify-content: center; + cursor: pointer; + border-inline: none; + border-block: none; + border-start-start-radius: awsui.$border-radius-button; + border-start-end-radius: awsui.$border-radius-button; + border-end-start-radius: awsui.$border-radius-button; + border-end-end-radius: awsui.$border-radius-button; + padding-block: awsui.$space-xxs; + padding-inline: awsui.$space-xxs; + color: awsui.$color-text-interactive-default; + background: transparent; + position: relative; + z-index: 1; + + &:hover { + color: awsui.$color-text-interactive-hover; + background: awsui.$color-background-input-default; + } + + &:focus-visible { + @include styles.focus-highlight(awsui.$space-button-focus-outline-gutter); + } + + &:disabled { + color: awsui.$color-text-interactive-disabled; + cursor: default; + &:hover { + background: transparent; + } + } +} + +.selection-controller-wrapper { + display: flex; + flex-direction: row; + align-items: center; + justify-content: center; + gap: awsui.$space-xxs; + position: absolute; + inset-block-start: 0; + inset-inline-start: 0; + block-size: 100%; + inline-size: 100%; + box-sizing: border-box; + + // Override the checkbox label's absolute positioning when inside the wrapper. + // The label (which has .root and .label) is a direct child of this wrapper + // because SelectionControl renders a fragment. + > .label { + position: relative; + inline-size: auto; + block-size: auto; + inset-block-start: auto; + inset-inline-start: auto; + padding-block-end: 0; + border-inline-end: none; + } + + // Hide the invisible spacing stud — not needed when the wrapper controls layout. + > .stud { + display: none; + } +} + +// Wrapper for body row selection controls when the selection controller is present. +// Constrains the absolutely-positioned label so the checkbox stays in its normal +// position and the extra column width appears as space on the inline-end side. +.body-selection-controller-wrapper { + position: absolute; + inset-block-start: 0; + inset-inline-start: 0; + block-size: 100%; + // Use the standard selection column width so the label centers within it, + // leaving extra column space on the right. + inline-size: awsui.$size-table-selection-horizontal; +} diff --git a/src/table/styles.scss b/src/table/styles.scss index 186090c9bd..8fcf6e2a4e 100644 --- a/src/table/styles.scss +++ b/src/table/styles.scss @@ -132,7 +132,6 @@ filter search icon. */ .selection-control { box-sizing: border-box; - max-inline-size: awsui.$size-table-selection-horizontal; min-inline-size: awsui.$size-table-selection-horizontal; position: relative; inline-size: awsui.$size-table-selection-horizontal; diff --git a/src/table/thead.tsx b/src/table/thead.tsx index 10024c014e..64259d6f5d 100644 --- a/src/table/thead.tsx +++ b/src/table/thead.tsx @@ -5,6 +5,7 @@ import clsx from 'clsx'; import { findUpUntil } from '@cloudscape-design/component-toolkit/dom'; +import { ButtonDropdownProps } from '../button-dropdown/interfaces'; import { fireNonCancelableEvent, NonCancelableEventHandler } from '../internal/events'; import { TableHeaderCell } from './header-cell'; import { InternalSelectionType, TableProps } from './interfaces'; @@ -45,6 +46,10 @@ export interface TheadProps { tableRole: TableRole; isExpandable?: boolean; setLastUserAction: (name: string) => void; + selectionControllerItems?: ButtonDropdownProps.Items; + onSelectionControllerItemClick?: (detail: ButtonDropdownProps.ItemClickDetails) => void; + selectionControllerAriaLabel?: string; + loading?: boolean; } const Thead = React.forwardRef( @@ -77,6 +82,10 @@ const Thead = React.forwardRef( resizerTooltipText, isExpandable, setLastUserAction, + selectionControllerItems, + onSelectionControllerItemClick, + selectionControllerAriaLabel, + loading, }: TheadProps, outerRef: React.Ref ) => { @@ -112,9 +121,14 @@ const Thead = React.forwardRef( {...commonCellProps} focusedComponent={focusedComponent} columnId={selectionColumnId} + resizableStyle={getColumnStyles(sticky, selectionColumnId)} getSelectAllProps={getSelectAllProps} onFocusMove={onFocusMove} singleSelectionHeaderAriaLabel={singleSelectionHeaderAriaLabel} + selectionControllerItems={selectionControllerItems} + onSelectionControllerItemClick={onSelectionControllerItemClick} + selectionControllerAriaLabel={selectionControllerAriaLabel} + loading={loading} /> ) : null} From fda38e38ece8bf077f252d621851b60637539c2a Mon Sep 17 00:00:00 2001 From: Nathnael Dereje Date: Thu, 16 Apr 2026 16:30:17 +0200 Subject: [PATCH 02/16] feat: Add test pages --- pages/table/selection-controller-data.ts | 170 +++++++++++ pages/table/selection-controller.page.tsx | 342 ++++++++++++++++++++++ 2 files changed, 512 insertions(+) create mode 100644 pages/table/selection-controller-data.ts create mode 100644 pages/table/selection-controller.page.tsx diff --git a/pages/table/selection-controller-data.ts b/pages/table/selection-controller-data.ts new file mode 100644 index 0000000000..13c00a3af4 --- /dev/null +++ b/pages/table/selection-controller-data.ts @@ -0,0 +1,170 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +export type FunctionRuntime = 'Node.js 22.x' | 'Node.js 20.x' | 'Python 3.13' | 'Python 3.9' | 'Java 21' | 'Go 1.x'; +export type PackageType = 'Zip' | 'Image'; +export type FunctionType = 'Standard' | 'Edge'; + +export interface LambdaFunction { + name: string; + description: string; + packageType: PackageType; + runtime: FunctionRuntime; + type: FunctionType; + lastModified: string; +} + +export const allFunctions: LambdaFunction[] = [ + { + name: 'PipelineWebsiteFallbackde-CustomCrossRegionExportW-X6JwH8BLHWUF', + description: '-', + packageType: 'Zip', + runtime: 'Node.js 22.x', + type: 'Standard', + lastModified: '59 minutes ago', + }, + { + name: 'PipelineCloudformationLog-CustomCrossRegionExportR-ZdYplOmIB5oy', + description: '-', + packageType: 'Zip', + runtime: 'Node.js 22.x', + type: 'Standard', + lastModified: '55 minutes ago', + }, + { + name: 'PipelineCertsdevrefreshDE-CustomCrossRegionExportW-HbANvB1Wu6wq', + description: '-', + packageType: 'Zip', + runtime: 'Node.js 22.x', + type: 'Standard', + lastModified: '60 minutes ago', + }, + { + name: 'PipelineCertsdevcoreCE42E-CustomCrossRegionExportW-PsS8Wpw9X38p', + description: '-', + packageType: 'Zip', + runtime: 'Node.js 22.x', + type: 'Standard', + lastModified: '59 minutes ago', + }, + { + name: 'PipelineWebsiteFallbackde-CustomCrossRegionExportW-ZFfCIzbCgpEx', + description: '-', + packageType: 'Zip', + runtime: 'Node.js 22.x', + type: 'Standard', + lastModified: '59 minutes ago', + }, + { + name: 'PipelineCloudformationLog-CustomCrossRegionExportR-l0V0g3Gws3fl', + description: '-', + packageType: 'Zip', + runtime: 'Node.js 22.x', + type: 'Standard', + lastModified: '51 minutes ago', + }, + { + name: 'PipelineCertsdevexternal1-CustomCrossRegionExportW-E7fpgzyT9l4V', + description: '-', + packageType: 'Zip', + runtime: 'Node.js 22.x', + type: 'Standard', + lastModified: '1 hour ago', + }, + { + name: 'PipelineCloudformationLog-CustomCrossRegionExportR-n8HdHqjDgbN7', + description: '-', + packageType: 'Zip', + runtime: 'Node.js 22.x', + type: 'Standard', + lastModified: '52 minutes ago', + }, + { + name: 'PipelineWebsiteFallbackde-CustomCrossRegionExportW-H06gmzu73vqO', + description: '-', + packageType: 'Zip', + runtime: 'Node.js 22.x', + type: 'Standard', + lastModified: '1 hour ago', + }, + { + name: 'DevScreenshotTestingSite-ScreenshotTestingSiteGene-7ULlVLcCWla4', + description: 'Copies the static resources from one spot to another', + packageType: 'Zip', + runtime: 'Python 3.9', + type: 'Standard', + lastModified: '4 hours ago', + }, + { + name: 'PipelineWebsiteFallbackde-CustomCDKBucketDeploymen-onuB2t8k3yAI', + description: '-', + packageType: 'Zip', + runtime: 'Python 3.13', + type: 'Standard', + lastModified: '59 minutes ago', + }, + { + name: 'PipelineWebsiteFallbackde-CustomCDKBucketDeploymen-1oAvAlypJFhu', + description: '-', + packageType: 'Zip', + runtime: 'Python 3.13', + type: 'Standard', + lastModified: '1 hour ago', + }, + { + name: 'AuthServiceStack-UserPoolTriggerHandler-a9Bx2kLm', + description: 'Handles Cognito user pool triggers', + packageType: 'Zip', + runtime: 'Node.js 20.x', + type: 'Standard', + lastModified: '2 hours ago', + }, + { + name: 'DataProcessingPipeline-TransformFunction-Qw3rTy8z', + description: 'Transforms incoming data records', + packageType: 'Zip', + runtime: 'Java 21', + type: 'Standard', + lastModified: '3 hours ago', + }, + { + name: 'ApiGatewayStack-AuthorizerFunction-Mn4pLk9x', + description: 'Custom API Gateway authorizer', + packageType: 'Zip', + runtime: 'Node.js 22.x', + type: 'Edge', + lastModified: '5 hours ago', + }, + { + name: 'MonitoringStack-AlarmHandlerFunction-Yz7wVb2c', + description: 'Processes CloudWatch alarm notifications', + packageType: 'Zip', + runtime: 'Python 3.13', + type: 'Standard', + lastModified: '1 day ago', + }, + { + name: 'ImageProcessingStack-ThumbnailGenerator-Hj6kRt5n', + description: 'Generates thumbnails for uploaded images', + packageType: 'Image', + runtime: 'Python 3.13', + type: 'Standard', + lastModified: '2 days ago', + }, + { + name: 'NotificationService-EmailSenderFunction-Wx8mNp3q', + description: 'Sends transactional email notifications', + packageType: 'Zip', + runtime: 'Node.js 20.x', + type: 'Standard', + lastModified: '6 hours ago', + }, + { + name: 'ScheduledTasksStack-DailyCleanupFunction-Bc4vFg7j', + description: 'Runs daily cleanup of expired resources', + packageType: 'Zip', + runtime: 'Go 1.x', + type: 'Standard', + lastModified: '12 hours ago', + }, +]; diff --git a/pages/table/selection-controller.page.tsx b/pages/table/selection-controller.page.tsx new file mode 100644 index 0000000000..08c9f4d99c --- /dev/null +++ b/pages/table/selection-controller.page.tsx @@ -0,0 +1,342 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 +import React, { useState } from 'react'; + +import { useCollection } from '@cloudscape-design/collection-hooks'; + +import Box from '~components/box'; +import Button from '~components/button'; +import ButtonDropdown from '~components/button-dropdown'; +import { ButtonDropdownProps } from '~components/button-dropdown/interfaces'; +import CollectionPreferences, { CollectionPreferencesProps } from '~components/collection-preferences'; +import Header from '~components/header'; +import Link from '~components/link'; +import Pagination from '~components/pagination'; +import SpaceBetween from '~components/space-between'; +import Table, { TableProps } from '~components/table'; +import TextFilter from '~components/text-filter'; + +import { contentDisplayPreferenceI18nStrings } from '../common/i18n-strings'; +import ScreenshotArea from '../utils/screenshot-area'; +import { allFunctions, LambdaFunction } from './selection-controller-data'; +import { paginationLabels } from './shared-configs'; + +const columnDefinitions: TableProps.ColumnDefinition[] = [ + { + id: 'name', + header: 'Function name', + cell: item => {item.name}, + sortingField: 'name', + }, + { + id: 'description', + header: 'Description', + cell: item => item.description, + sortingField: 'description', + }, + { + id: 'packageType', + header: 'Package type', + cell: item => item.packageType, + sortingField: 'packageType', + }, + { + id: 'runtime', + header: 'Runtime', + cell: item => item.runtime, + sortingField: 'runtime', + }, + { + id: 'type', + header: 'Type', + cell: item => item.type, + sortingField: 'type', + }, + { + id: 'lastModified', + header: 'Last modified', + cell: item => item.lastModified, + sortingField: 'lastModified', + }, +]; + +const contentDisplayPreference = { + title: 'Column preferences', + description: 'Customize the columns visibility and order.', + options: [ + { id: 'name', label: 'Function name', alwaysVisible: true }, + { id: 'description', label: 'Description' }, + { id: 'packageType', label: 'Package type' }, + { id: 'runtime', label: 'Runtime' }, + { id: 'type', label: 'Type' }, + { id: 'lastModified', label: 'Last modified' }, + ], + ...contentDisplayPreferenceI18nStrings, +}; + +const defaultPreferences: CollectionPreferencesProps.Preferences = { + pageSize: 10, + contentDisplay: [ + { id: 'name', visible: true }, + { id: 'description', visible: true }, + { id: 'packageType', visible: true }, + { id: 'runtime', visible: true }, + { id: 'type', visible: true }, + { id: 'lastModified', visible: true }, + ], + wrapLines: false, +}; + +function EmptyState({ action }: { action: React.ReactNode }) { + return ( + + + No functions + + + No functions to display. + + {action} + + ); +} + +function NoMatchState({ onClearFilter }: { onClearFilter: () => void }) { + return ( + + + No matches + + + We can't find a match. + + + + ); +} + +export default function SelectionControllerPage() { + return ( + + + + ); +} + +function FunctionsTable() { + const [preferences, setPreferences] = useState(defaultPreferences); + const [selectedItems, setSelectedItems] = useState([]); + + const { items, actions, filteredItemsCount, collectionProps, filterProps, paginationProps } = useCollection( + allFunctions, + { + filtering: { + empty: Create function} />, + noMatch: actions.setFiltering('')} />, + }, + pagination: { pageSize: preferences.pageSize }, + sorting: { defaultState: { sortingColumn: columnDefinitions[3], isDescending: false } }, + } + ); + + // Wrap collectionProps callbacks to reset selection on pagination, sorting, filtering changes. + const wrappedCollectionProps = { + ...collectionProps, + onSortingChange: (event: any) => { + setSelectedItems([]); + collectionProps.onSortingChange?.(event); + }, + }; + + const wrappedPaginationProps = { + ...paginationProps, + onChange: (event: any) => { + setSelectedItems([]); + paginationProps.onChange?.(event); + }, + }; + + const wrappedFilterProps = { + ...filterProps, + onChange: (event: any) => { + setSelectedItems([]); + filterProps!.onChange?.(event); + }, + }; + + // Helper: check if all visible items matching a predicate are selected + const allMatchingSelected = (predicate: (f: LambdaFunction) => boolean) => { + const matching = items.filter(predicate); + return matching.length > 0 && matching.every(f => selectedItems.some(s => s.name === f.name)); + }; + + // Helper: check if any visible items match a predicate + const hasMatchingItems = (predicate: (f: LambdaFunction) => boolean) => items.some(predicate); + + // Build selection controller items with dynamic checked state + const selectionControllerItems: ButtonDropdownProps.Items = [ + { + text: 'By runtime', + items: [ + { + id: 'nodejs', + text: 'Node.js', + itemType: 'checkbox', + checked: allMatchingSelected(f => f.runtime.startsWith('Node.js')), + disabled: !hasMatchingItems(f => f.runtime.startsWith('Node.js')), + }, + { + id: 'python', + text: 'Python', + itemType: 'checkbox', + checked: allMatchingSelected(f => f.runtime.startsWith('Python')), + disabled: !hasMatchingItems(f => f.runtime.startsWith('Python')), + }, + { + id: 'java', + text: 'Java', + itemType: 'checkbox', + checked: allMatchingSelected(f => f.runtime.startsWith('Java')), + disabled: !hasMatchingItems(f => f.runtime.startsWith('Java')), + }, + { + id: 'go', + text: 'Go', + itemType: 'checkbox', + checked: allMatchingSelected(f => f.runtime.startsWith('Go')), + disabled: !hasMatchingItems(f => f.runtime.startsWith('Go')), + }, + ], + }, + { + text: 'By package type', + items: [ + { + id: 'zip', + text: 'Zip', + itemType: 'checkbox', + checked: allMatchingSelected(f => f.packageType === 'Zip'), + disabled: !hasMatchingItems(f => f.packageType === 'Zip'), + }, + { + id: 'image', + text: 'Image', + itemType: 'checkbox', + checked: allMatchingSelected(f => f.packageType === 'Image'), + disabled: !hasMatchingItems(f => f.packageType === 'Image'), + }, + ], + }, + ]; + + const handleSelectionControllerItemClick: TableProps['onSelectionControllerItemClick'] = ({ detail }) => { + const predicates: Record boolean> = { + nodejs: f => f.runtime.startsWith('Node.js'), + python: f => f.runtime.startsWith('Python'), + java: f => f.runtime.startsWith('Java'), + go: f => f.runtime.startsWith('Go'), + zip: f => f.packageType === 'Zip', + image: f => f.packageType === 'Image', + }; + const predicate = predicates[detail.id]; + if (predicate) { + const matching = items.filter(predicate); + // detail.checked is the NEW state after the click + if (detail.checked) { + // Toggled ON — add matching items to selection + setSelectedItems(prev => { + const existing = new Set(prev.map(s => s.name)); + return [...prev, ...matching.filter(m => !existing.has(m.name))]; + }); + } else { + // Toggled OFF — remove matching items from selection + setSelectedItems(prev => prev.filter(s => !matching.some(m => m.name === s.name))); + } + } + }; + + const singleSelected = selectedItems.length === 1; + const hasSelection = selectedItems.length > 0; + + return ( + + {...wrappedCollectionProps} + header={ +
+ {}} + disabled={!hasSelection} + > + Actions + + + + } + > + Functions +
+ } + columnDefinitions={columnDefinitions} + items={items} + selectionType="multi" + selectedItems={selectedItems} + onSelectionChange={({ detail }) => setSelectedItems(detail.selectedItems)} + trackBy="name" + ariaLabels={{ + selectionGroupLabel: 'Function selection', + allItemsSelectionLabel: ({ selectedItems }) => + `${selectedItems.length} ${selectedItems.length === 1 ? 'function' : 'functions'} selected`, + itemSelectionLabel: ({ selectedItems }, item) => + `${item.name} is ${selectedItems.indexOf(item) < 0 ? 'not ' : ''}selected`, + tableLabel: 'Functions', + selectionControllerLabel: 'Function selection options', + }} + selectionControllerItems={selectionControllerItems} + onSelectionControllerItemClick={handleSelectionControllerItemClick} + stickyHeader={true} + pagination={} + filter={ + + } + columnDisplay={preferences.contentDisplay} + preferences={ + setPreferences(detail)} + preferences={preferences} + pageSizePreference={{ + title: 'Select page size', + options: [ + { value: 10, label: '10 Functions' }, + { value: 20, label: '20 Functions' }, + { value: 50, label: '50 Functions' }, + ], + }} + contentDisplayPreference={{ + ...contentDisplayPreference, + ...contentDisplayPreferenceI18nStrings, + }} + wrapLinesPreference={{ + label: 'Wrap lines', + description: 'Wrap lines description', + }} + /> + } + /> + ); +} From 3cd3433f8aaaf36fc9d5d5a79df1569b9b683468 Mon Sep 17 00:00:00 2001 From: Nathnael Dereje Date: Thu, 16 Apr 2026 17:08:01 +0200 Subject: [PATCH 03/16] feat: Change icon to ellipsis --- src/table/selection/selection-controller-dropdown.tsx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/table/selection/selection-controller-dropdown.tsx b/src/table/selection/selection-controller-dropdown.tsx index 78db676596..397b7a08dd 100644 --- a/src/table/selection/selection-controller-dropdown.tsx +++ b/src/table/selection/selection-controller-dropdown.tsx @@ -33,14 +33,7 @@ export default function SelectionControllerDropdown({ variant="inline-icon" expandToViewport={true} expandableGroups={false} - customTriggerBuilder={({ - triggerRef, - testUtilsClass, - ariaExpanded, - onClick, - isOpen, - disabled: triggerDisabled, - }) => ( + customTriggerBuilder={({ triggerRef, testUtilsClass, ariaExpanded, onClick, disabled: triggerDisabled }) => ( )} /> From 76f84a8e2dfe9a3fb3b70da2b102e834da06190a Mon Sep 17 00:00:00 2001 From: Nathnael Dereje Date: Thu, 16 Apr 2026 17:19:46 +0200 Subject: [PATCH 04/16] chore: Update snapshot --- .../__snapshots__/documenter.test.ts.snap | 62 + .../test-utils-wrappers.test.tsx.snap | 4394 +---------------- 2 files changed, 65 insertions(+), 4391 deletions(-) diff --git a/src/__tests__/snapshot-tests/__snapshots__/documenter.test.ts.snap b/src/__tests__/snapshot-tests/__snapshots__/documenter.test.ts.snap index 94692f40ee..c5b041574f 100644 --- a/src/__tests__/snapshot-tests/__snapshots__/documenter.test.ts.snap +++ b/src/__tests__/snapshot-tests/__snapshots__/documenter.test.ts.snap @@ -26633,6 +26633,48 @@ The event \`detail\` contains the new state for \`selectedItems\`.", "detailType": "TableProps.SelectionChangeDetail", "name": "onSelectionChange", }, + { + "cancelable": false, + "description": "Fired when a user activates a selection controller item from the dropdown menu. +The event detail contains the \`id\` of the activated item and, for checkbox items, +the \`checked\` state. + +The table does not automatically modify \`selectedItems\`. Use this event +to implement custom selection logic and update \`selectedItems\` accordingly.", + "detailInlineType": { + "name": "ButtonDropdownProps.ItemClickDetails", + "properties": [ + { + "name": "checked", + "optional": true, + "type": "boolean", + }, + { + "name": "external", + "optional": true, + "type": "boolean", + }, + { + "name": "href", + "optional": true, + "type": "string", + }, + { + "name": "id", + "optional": false, + "type": "string", + }, + { + "name": "target", + "optional": true, + "type": "string", + }, + ], + "type": "object", + }, + "detailType": "ButtonDropdownProps.ItemClickDetails", + "name": "onSelectionControllerItemClick", + }, { "cancelable": false, "description": "Called when either the column to sort by or the direction of sorting changes upon user interaction. @@ -26912,6 +26954,11 @@ in tables with data grouping. "optional": true, "type": "string", }, + { + "name": "selectionControllerLabel", + "optional": true, + "type": "string", + }, { "name": "selectionGroupLabel", "optional": true, @@ -27455,6 +27502,21 @@ the table items array is empty.", "optional": true, "type": "ReadonlyArray", }, + { + "description": "Specifies the items displayed in the selection controller dropdown menu. +The selection controller renders as a small dropdown trigger adjacent to the +select-all checkbox when \`selectionType\` is \`"multi"\`. + +Supports the same item types as ButtonDropdown: plain items, checkbox items, +and grouped items. See ButtonDropdownProps.Items for the full type. + +The selection controller is not rendered when \`selectionType\` is \`"single"\`, +when \`expandableRows\` with \`groupSelection\` is configured, or when this +prop is undefined or an empty array.", + "name": "selectionControllerItems", + "optional": true, + "type": "ButtonDropdownProps.Items", + }, { "description": "Specifies the selection type (\`'single' | 'multi'\`).", "inlineType": { diff --git a/src/__tests__/snapshot-tests/__snapshots__/test-utils-wrappers.test.tsx.snap b/src/__tests__/snapshot-tests/__snapshots__/test-utils-wrappers.test.tsx.snap index 748e7c16f0..453a42fca3 100644 --- a/src/__tests__/snapshot-tests/__snapshots__/test-utils-wrappers.test.tsx.snap +++ b/src/__tests__/snapshot-tests/__snapshots__/test-utils-wrappers.test.tsx.snap @@ -2,4397 +2,9 @@ exports[`Generate test utils ElementWrapper dom ElementWrapper matches the snapshot 1`] = ` " -// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. -// SPDX-License-Identifier: Apache-2.0 -import { ElementWrapper } from '@cloudscape-design/test-utils-core/dom'; -import { appendSelector } from '@cloudscape-design/test-utils-core/utils'; - -export { ElementWrapper }; - -import ActionCardWrapper from './action-card'; -import AlertWrapper from './alert'; -import AnchorNavigationWrapper from './anchor-navigation'; -import AnnotationWrapper from './annotation'; -import AppLayoutWrapper from './app-layout'; -import AppLayoutToolbarWrapper from './app-layout-toolbar'; -import AreaChartWrapper from './area-chart'; -import AttributeEditorWrapper from './attribute-editor'; -import AutosuggestWrapper from './autosuggest'; -import BadgeWrapper from './badge'; -import BarChartWrapper from './bar-chart'; -import BoxWrapper from './box'; -import BreadcrumbGroupWrapper from './breadcrumb-group'; -import ButtonWrapper from './button'; -import ButtonDropdownWrapper from './button-dropdown'; -import ButtonGroupWrapper from './button-group'; -import CalendarWrapper from './calendar'; -import CardsWrapper from './cards'; -import CheckboxWrapper from './checkbox'; -import CodeEditorWrapper from './code-editor'; -import CollectionPreferencesWrapper from './collection-preferences'; -import ColumnLayoutWrapper from './column-layout'; -import ContainerWrapper from './container'; -import ContentLayoutWrapper from './content-layout'; -import CopyToClipboardWrapper from './copy-to-clipboard'; -import DateInputWrapper from './date-input'; -import DatePickerWrapper from './date-picker'; -import DateRangePickerWrapper from './date-range-picker'; -import DrawerWrapper from './drawer'; -import DropdownWrapper from './dropdown'; -import ErrorBoundaryWrapper from './error-boundary'; -import ExpandableSectionWrapper from './expandable-section'; -import FileDropzoneWrapper from './file-dropzone'; -import FileInputWrapper from './file-input'; -import FileTokenGroupWrapper from './file-token-group'; -import FileUploadWrapper from './file-upload'; -import FlashbarWrapper from './flashbar'; -import FormWrapper from './form'; -import FormFieldWrapper from './form-field'; -import GridWrapper from './grid'; -import HeaderWrapper from './header'; -import HelpPanelWrapper from './help-panel'; -import HotspotWrapper from './hotspot'; -import IconWrapper from './icon'; -import InputWrapper from './input'; -import ItemCardWrapper from './item-card'; -import KeyValuePairsWrapper from './key-value-pairs'; -import LineChartWrapper from './line-chart'; -import LinkWrapper from './link'; -import ListWrapper from './list'; -import LiveRegionWrapper from './live-region'; -import MixedLineBarChartWrapper from './mixed-line-bar-chart'; -import ModalWrapper from './modal'; -import MultiselectWrapper from './multiselect'; -import NavigableGroupWrapper from './navigable-group'; -import PaginationWrapper from './pagination'; -import PanelLayoutWrapper from './panel-layout'; -import PieChartWrapper from './pie-chart'; -import PopoverWrapper from './popover'; -import ProgressBarWrapper from './progress-bar'; -import PromptInputWrapper from './prompt-input'; -import PropertyFilterWrapper from './property-filter'; -import RadioButtonWrapper from './radio-button'; -import RadioGroupWrapper from './radio-group'; -import S3ResourceSelectorWrapper from './s3-resource-selector'; -import SegmentedControlWrapper from './segmented-control'; -import SelectWrapper from './select'; -import SideNavigationWrapper from './side-navigation'; -import SliderWrapper from './slider'; -import SpaceBetweenWrapper from './space-between'; -import SpinnerWrapper from './spinner'; -import SplitPanelWrapper from './split-panel'; -import StatusIndicatorWrapper from './status-indicator'; -import StepsWrapper from './steps'; -import TableWrapper from './table'; -import TabsWrapper from './tabs'; -import TagEditorWrapper from './tag-editor'; -import TextContentWrapper from './text-content'; -import TextFilterWrapper from './text-filter'; -import TextareaWrapper from './textarea'; -import TilesWrapper from './tiles'; -import TimeInputWrapper from './time-input'; -import ToggleWrapper from './toggle'; -import ToggleButtonWrapper from './toggle-button'; -import TokenWrapper from './token'; -import TokenGroupWrapper from './token-group'; -import TooltipWrapper from './tooltip'; -import TopNavigationWrapper from './top-navigation'; -import TreeViewWrapper from './tree-view'; -import TutorialPanelWrapper from './tutorial-panel'; -import WizardWrapper from './wizard'; - - -export { ActionCardWrapper }; -export { AlertWrapper }; -export { AnchorNavigationWrapper }; -export { AnnotationWrapper }; -export { AppLayoutWrapper }; -export { AppLayoutToolbarWrapper }; -export { AreaChartWrapper }; -export { AttributeEditorWrapper }; -export { AutosuggestWrapper }; -export { BadgeWrapper }; -export { BarChartWrapper }; -export { BoxWrapper }; -export { BreadcrumbGroupWrapper }; -export { ButtonWrapper }; -export { ButtonDropdownWrapper }; -export { ButtonGroupWrapper }; -export { CalendarWrapper }; -export { CardsWrapper }; -export { CheckboxWrapper }; -export { CodeEditorWrapper }; -export { CollectionPreferencesWrapper }; -export { ColumnLayoutWrapper }; -export { ContainerWrapper }; -export { ContentLayoutWrapper }; -export { CopyToClipboardWrapper }; -export { DateInputWrapper }; -export { DatePickerWrapper }; -export { DateRangePickerWrapper }; -export { DrawerWrapper }; -export { DropdownWrapper }; -export { ErrorBoundaryWrapper }; -export { ExpandableSectionWrapper }; -export { FileDropzoneWrapper }; -export { FileInputWrapper }; -export { FileTokenGroupWrapper }; -export { FileUploadWrapper }; -export { FlashbarWrapper }; -export { FormWrapper }; -export { FormFieldWrapper }; -export { GridWrapper }; -export { HeaderWrapper }; -export { HelpPanelWrapper }; -export { HotspotWrapper }; -export { IconWrapper }; -export { InputWrapper }; -export { ItemCardWrapper }; -export { KeyValuePairsWrapper }; -export { LineChartWrapper }; -export { LinkWrapper }; -export { ListWrapper }; -export { LiveRegionWrapper }; -export { MixedLineBarChartWrapper }; -export { ModalWrapper }; -export { MultiselectWrapper }; -export { NavigableGroupWrapper }; -export { PaginationWrapper }; -export { PanelLayoutWrapper }; -export { PieChartWrapper }; -export { PopoverWrapper }; -export { ProgressBarWrapper }; -export { PromptInputWrapper }; -export { PropertyFilterWrapper }; -export { RadioButtonWrapper }; -export { RadioGroupWrapper }; -export { S3ResourceSelectorWrapper }; -export { SegmentedControlWrapper }; -export { SelectWrapper }; -export { SideNavigationWrapper }; -export { SliderWrapper }; -export { SpaceBetweenWrapper }; -export { SpinnerWrapper }; -export { SplitPanelWrapper }; -export { StatusIndicatorWrapper }; -export { StepsWrapper }; -export { TableWrapper }; -export { TabsWrapper }; -export { TagEditorWrapper }; -export { TextContentWrapper }; -export { TextFilterWrapper }; -export { TextareaWrapper }; -export { TilesWrapper }; -export { TimeInputWrapper }; -export { ToggleWrapper }; -export { ToggleButtonWrapper }; -export { TokenWrapper }; -export { TokenGroupWrapper }; -export { TooltipWrapper }; -export { TopNavigationWrapper }; -export { TreeViewWrapper }; -export { TutorialPanelWrapper }; -export { WizardWrapper }; - -declare module '@cloudscape-design/test-utils-core/dist/dom' { - interface ElementWrapper { - -/** - * Returns the wrapper of the first ActionCard that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first ActionCard. - * If no matching ActionCard is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {ActionCardWrapper | null} - */ -findActionCard(selector?: string): ActionCardWrapper | null; - -/** - * Returns an array of ActionCard wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the ActionCards inside the current wrapper. - * If no matching ActionCard is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllActionCards(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent ActionCard for the current element, - * or the element itself if it is an instance of ActionCard. - * If no ActionCard is found, returns \`null\`. - * - * @returns {ActionCardWrapper | null} - */ -findClosestActionCard(): ActionCardWrapper | null; -/** - * Returns the wrapper of the first Alert that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first Alert. - * If no matching Alert is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {AlertWrapper | null} - */ -findAlert(selector?: string): AlertWrapper | null; - -/** - * Returns an array of Alert wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the Alerts inside the current wrapper. - * If no matching Alert is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllAlerts(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent Alert for the current element, - * or the element itself if it is an instance of Alert. - * If no Alert is found, returns \`null\`. - * - * @returns {AlertWrapper | null} - */ -findClosestAlert(): AlertWrapper | null; -/** - * Returns the wrapper of the first AnchorNavigation that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first AnchorNavigation. - * If no matching AnchorNavigation is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {AnchorNavigationWrapper | null} - */ -findAnchorNavigation(selector?: string): AnchorNavigationWrapper | null; - -/** - * Returns an array of AnchorNavigation wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the AnchorNavigations inside the current wrapper. - * If no matching AnchorNavigation is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllAnchorNavigations(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent AnchorNavigation for the current element, - * or the element itself if it is an instance of AnchorNavigation. - * If no AnchorNavigation is found, returns \`null\`. - * - * @returns {AnchorNavigationWrapper | null} - */ -findClosestAnchorNavigation(): AnchorNavigationWrapper | null; -/** - * Returns the wrapper of the first Annotation that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first Annotation. - * If no matching Annotation is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {AnnotationWrapper | null} - */ -findAnnotation(selector?: string): AnnotationWrapper | null; - -/** - * Returns an array of Annotation wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the Annotations inside the current wrapper. - * If no matching Annotation is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllAnnotations(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent Annotation for the current element, - * or the element itself if it is an instance of Annotation. - * If no Annotation is found, returns \`null\`. - * - * @returns {AnnotationWrapper | null} - */ -findClosestAnnotation(): AnnotationWrapper | null; -/** - * Returns the wrapper of the first AppLayout that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first AppLayout. - * If no matching AppLayout is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {AppLayoutWrapper | null} - */ -findAppLayout(selector?: string): AppLayoutWrapper | null; - -/** - * Returns an array of AppLayout wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the AppLayouts inside the current wrapper. - * If no matching AppLayout is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllAppLayouts(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent AppLayout for the current element, - * or the element itself if it is an instance of AppLayout. - * If no AppLayout is found, returns \`null\`. - * - * @returns {AppLayoutWrapper | null} - */ -findClosestAppLayout(): AppLayoutWrapper | null; -/** - * Returns the wrapper of the first AppLayoutToolbar that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first AppLayoutToolbar. - * If no matching AppLayoutToolbar is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {AppLayoutToolbarWrapper | null} - */ -findAppLayoutToolbar(selector?: string): AppLayoutToolbarWrapper | null; - -/** - * Returns an array of AppLayoutToolbar wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the AppLayoutToolbars inside the current wrapper. - * If no matching AppLayoutToolbar is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllAppLayoutToolbars(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent AppLayoutToolbar for the current element, - * or the element itself if it is an instance of AppLayoutToolbar. - * If no AppLayoutToolbar is found, returns \`null\`. - * - * @returns {AppLayoutToolbarWrapper | null} - */ -findClosestAppLayoutToolbar(): AppLayoutToolbarWrapper | null; -/** - * Returns the wrapper of the first AreaChart that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first AreaChart. - * If no matching AreaChart is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {AreaChartWrapper | null} - */ -findAreaChart(selector?: string): AreaChartWrapper | null; - -/** - * Returns an array of AreaChart wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the AreaCharts inside the current wrapper. - * If no matching AreaChart is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllAreaCharts(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent AreaChart for the current element, - * or the element itself if it is an instance of AreaChart. - * If no AreaChart is found, returns \`null\`. - * - * @returns {AreaChartWrapper | null} - */ -findClosestAreaChart(): AreaChartWrapper | null; -/** - * Returns the wrapper of the first AttributeEditor that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first AttributeEditor. - * If no matching AttributeEditor is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {AttributeEditorWrapper | null} - */ -findAttributeEditor(selector?: string): AttributeEditorWrapper | null; - -/** - * Returns an array of AttributeEditor wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the AttributeEditors inside the current wrapper. - * If no matching AttributeEditor is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllAttributeEditors(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent AttributeEditor for the current element, - * or the element itself if it is an instance of AttributeEditor. - * If no AttributeEditor is found, returns \`null\`. - * - * @returns {AttributeEditorWrapper | null} - */ -findClosestAttributeEditor(): AttributeEditorWrapper | null; -/** - * Returns the wrapper of the first Autosuggest that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first Autosuggest. - * If no matching Autosuggest is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {AutosuggestWrapper | null} - */ -findAutosuggest(selector?: string): AutosuggestWrapper | null; - -/** - * Returns an array of Autosuggest wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the Autosuggests inside the current wrapper. - * If no matching Autosuggest is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllAutosuggests(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent Autosuggest for the current element, - * or the element itself if it is an instance of Autosuggest. - * If no Autosuggest is found, returns \`null\`. - * - * @returns {AutosuggestWrapper | null} - */ -findClosestAutosuggest(): AutosuggestWrapper | null; -/** - * Returns the wrapper of the first Badge that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first Badge. - * If no matching Badge is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {BadgeWrapper | null} - */ -findBadge(selector?: string): BadgeWrapper | null; - -/** - * Returns an array of Badge wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the Badges inside the current wrapper. - * If no matching Badge is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllBadges(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent Badge for the current element, - * or the element itself if it is an instance of Badge. - * If no Badge is found, returns \`null\`. - * - * @returns {BadgeWrapper | null} - */ -findClosestBadge(): BadgeWrapper | null; -/** - * Returns the wrapper of the first BarChart that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first BarChart. - * If no matching BarChart is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {BarChartWrapper | null} - */ -findBarChart(selector?: string): BarChartWrapper | null; - -/** - * Returns an array of BarChart wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the BarCharts inside the current wrapper. - * If no matching BarChart is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllBarCharts(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent BarChart for the current element, - * or the element itself if it is an instance of BarChart. - * If no BarChart is found, returns \`null\`. - * - * @returns {BarChartWrapper | null} - */ -findClosestBarChart(): BarChartWrapper | null; -/** - * Returns the wrapper of the first Box that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first Box. - * If no matching Box is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {BoxWrapper | null} - */ -findBox(selector?: string): BoxWrapper | null; - -/** - * Returns an array of Box wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the Boxes inside the current wrapper. - * If no matching Box is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllBoxes(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent Box for the current element, - * or the element itself if it is an instance of Box. - * If no Box is found, returns \`null\`. - * - * @returns {BoxWrapper | null} - */ -findClosestBox(): BoxWrapper | null; -/** - * Returns the wrapper of the first BreadcrumbGroup that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first BreadcrumbGroup. - * If no matching BreadcrumbGroup is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {BreadcrumbGroupWrapper | null} - */ -findBreadcrumbGroup(selector?: string): BreadcrumbGroupWrapper | null; - -/** - * Returns an array of BreadcrumbGroup wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the BreadcrumbGroups inside the current wrapper. - * If no matching BreadcrumbGroup is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllBreadcrumbGroups(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent BreadcrumbGroup for the current element, - * or the element itself if it is an instance of BreadcrumbGroup. - * If no BreadcrumbGroup is found, returns \`null\`. - * - * @returns {BreadcrumbGroupWrapper | null} - */ -findClosestBreadcrumbGroup(): BreadcrumbGroupWrapper | null; -/** - * Returns the wrapper of the first Button that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first Button. - * If no matching Button is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {ButtonWrapper | null} - */ -findButton(selector?: string): ButtonWrapper | null; - -/** - * Returns an array of Button wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the Buttons inside the current wrapper. - * If no matching Button is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllButtons(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent Button for the current element, - * or the element itself if it is an instance of Button. - * If no Button is found, returns \`null\`. - * - * @returns {ButtonWrapper | null} - */ -findClosestButton(): ButtonWrapper | null; -/** - * Returns the wrapper of the first ButtonDropdown that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first ButtonDropdown. - * If no matching ButtonDropdown is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {ButtonDropdownWrapper | null} - */ -findButtonDropdown(selector?: string): ButtonDropdownWrapper | null; - -/** - * Returns an array of ButtonDropdown wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the ButtonDropdowns inside the current wrapper. - * If no matching ButtonDropdown is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllButtonDropdowns(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent ButtonDropdown for the current element, - * or the element itself if it is an instance of ButtonDropdown. - * If no ButtonDropdown is found, returns \`null\`. - * - * @returns {ButtonDropdownWrapper | null} - */ -findClosestButtonDropdown(): ButtonDropdownWrapper | null; -/** - * Returns the wrapper of the first ButtonGroup that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first ButtonGroup. - * If no matching ButtonGroup is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {ButtonGroupWrapper | null} - */ -findButtonGroup(selector?: string): ButtonGroupWrapper | null; - -/** - * Returns an array of ButtonGroup wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the ButtonGroups inside the current wrapper. - * If no matching ButtonGroup is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllButtonGroups(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent ButtonGroup for the current element, - * or the element itself if it is an instance of ButtonGroup. - * If no ButtonGroup is found, returns \`null\`. - * - * @returns {ButtonGroupWrapper | null} - */ -findClosestButtonGroup(): ButtonGroupWrapper | null; -/** - * Returns the wrapper of the first Calendar that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first Calendar. - * If no matching Calendar is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {CalendarWrapper | null} - */ -findCalendar(selector?: string): CalendarWrapper | null; - -/** - * Returns an array of Calendar wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the Calendars inside the current wrapper. - * If no matching Calendar is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllCalendars(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent Calendar for the current element, - * or the element itself if it is an instance of Calendar. - * If no Calendar is found, returns \`null\`. - * - * @returns {CalendarWrapper | null} - */ -findClosestCalendar(): CalendarWrapper | null; -/** - * Returns the wrapper of the first Cards that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first Cards. - * If no matching Cards is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {CardsWrapper | null} - */ -findCards(selector?: string): CardsWrapper | null; - -/** - * Returns an array of Cards wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the Cards inside the current wrapper. - * If no matching Cards is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllCards(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent Cards for the current element, - * or the element itself if it is an instance of Cards. - * If no Cards is found, returns \`null\`. - * - * @returns {CardsWrapper | null} - */ -findClosestCards(): CardsWrapper | null; -/** - * Returns the wrapper of the first Checkbox that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first Checkbox. - * If no matching Checkbox is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {CheckboxWrapper | null} - */ -findCheckbox(selector?: string): CheckboxWrapper | null; - -/** - * Returns an array of Checkbox wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the Checkboxes inside the current wrapper. - * If no matching Checkbox is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllCheckboxes(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent Checkbox for the current element, - * or the element itself if it is an instance of Checkbox. - * If no Checkbox is found, returns \`null\`. - * - * @returns {CheckboxWrapper | null} - */ -findClosestCheckbox(): CheckboxWrapper | null; -/** - * Returns the wrapper of the first CodeEditor that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first CodeEditor. - * If no matching CodeEditor is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {CodeEditorWrapper | null} - */ -findCodeEditor(selector?: string): CodeEditorWrapper | null; - -/** - * Returns an array of CodeEditor wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the CodeEditors inside the current wrapper. - * If no matching CodeEditor is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllCodeEditors(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent CodeEditor for the current element, - * or the element itself if it is an instance of CodeEditor. - * If no CodeEditor is found, returns \`null\`. - * - * @returns {CodeEditorWrapper | null} - */ -findClosestCodeEditor(): CodeEditorWrapper | null; -/** - * Returns the wrapper of the first CollectionPreferences that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first CollectionPreferences. - * If no matching CollectionPreferences is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {CollectionPreferencesWrapper | null} - */ -findCollectionPreferences(selector?: string): CollectionPreferencesWrapper | null; - -/** - * Returns an array of CollectionPreferences wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the CollectionPreferences inside the current wrapper. - * If no matching CollectionPreferences is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllCollectionPreferences(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent CollectionPreferences for the current element, - * or the element itself if it is an instance of CollectionPreferences. - * If no CollectionPreferences is found, returns \`null\`. - * - * @returns {CollectionPreferencesWrapper | null} - */ -findClosestCollectionPreferences(): CollectionPreferencesWrapper | null; -/** - * Returns the wrapper of the first ColumnLayout that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first ColumnLayout. - * If no matching ColumnLayout is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {ColumnLayoutWrapper | null} - */ -findColumnLayout(selector?: string): ColumnLayoutWrapper | null; - -/** - * Returns an array of ColumnLayout wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the ColumnLayouts inside the current wrapper. - * If no matching ColumnLayout is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllColumnLayouts(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent ColumnLayout for the current element, - * or the element itself if it is an instance of ColumnLayout. - * If no ColumnLayout is found, returns \`null\`. - * - * @returns {ColumnLayoutWrapper | null} - */ -findClosestColumnLayout(): ColumnLayoutWrapper | null; -/** - * Returns the wrapper of the first Container that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first Container. - * If no matching Container is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {ContainerWrapper | null} - */ -findContainer(selector?: string): ContainerWrapper | null; - -/** - * Returns an array of Container wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the Containers inside the current wrapper. - * If no matching Container is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllContainers(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent Container for the current element, - * or the element itself if it is an instance of Container. - * If no Container is found, returns \`null\`. - * - * @returns {ContainerWrapper | null} - */ -findClosestContainer(): ContainerWrapper | null; -/** - * Returns the wrapper of the first ContentLayout that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first ContentLayout. - * If no matching ContentLayout is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {ContentLayoutWrapper | null} - */ -findContentLayout(selector?: string): ContentLayoutWrapper | null; - -/** - * Returns an array of ContentLayout wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the ContentLayouts inside the current wrapper. - * If no matching ContentLayout is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllContentLayouts(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent ContentLayout for the current element, - * or the element itself if it is an instance of ContentLayout. - * If no ContentLayout is found, returns \`null\`. - * - * @returns {ContentLayoutWrapper | null} - */ -findClosestContentLayout(): ContentLayoutWrapper | null; -/** - * Returns the wrapper of the first CopyToClipboard that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first CopyToClipboard. - * If no matching CopyToClipboard is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {CopyToClipboardWrapper | null} - */ -findCopyToClipboard(selector?: string): CopyToClipboardWrapper | null; - -/** - * Returns an array of CopyToClipboard wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the CopyToClipboards inside the current wrapper. - * If no matching CopyToClipboard is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllCopyToClipboards(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent CopyToClipboard for the current element, - * or the element itself if it is an instance of CopyToClipboard. - * If no CopyToClipboard is found, returns \`null\`. - * - * @returns {CopyToClipboardWrapper | null} - */ -findClosestCopyToClipboard(): CopyToClipboardWrapper | null; -/** - * Returns the wrapper of the first DateInput that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first DateInput. - * If no matching DateInput is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {DateInputWrapper | null} - */ -findDateInput(selector?: string): DateInputWrapper | null; - -/** - * Returns an array of DateInput wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the DateInputs inside the current wrapper. - * If no matching DateInput is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllDateInputs(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent DateInput for the current element, - * or the element itself if it is an instance of DateInput. - * If no DateInput is found, returns \`null\`. - * - * @returns {DateInputWrapper | null} - */ -findClosestDateInput(): DateInputWrapper | null; -/** - * Returns the wrapper of the first DatePicker that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first DatePicker. - * If no matching DatePicker is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {DatePickerWrapper | null} - */ -findDatePicker(selector?: string): DatePickerWrapper | null; - -/** - * Returns an array of DatePicker wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the DatePickers inside the current wrapper. - * If no matching DatePicker is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllDatePickers(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent DatePicker for the current element, - * or the element itself if it is an instance of DatePicker. - * If no DatePicker is found, returns \`null\`. - * - * @returns {DatePickerWrapper | null} - */ -findClosestDatePicker(): DatePickerWrapper | null; -/** - * Returns the wrapper of the first DateRangePicker that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first DateRangePicker. - * If no matching DateRangePicker is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {DateRangePickerWrapper | null} - */ -findDateRangePicker(selector?: string): DateRangePickerWrapper | null; - -/** - * Returns an array of DateRangePicker wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the DateRangePickers inside the current wrapper. - * If no matching DateRangePicker is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllDateRangePickers(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent DateRangePicker for the current element, - * or the element itself if it is an instance of DateRangePicker. - * If no DateRangePicker is found, returns \`null\`. - * - * @returns {DateRangePickerWrapper | null} - */ -findClosestDateRangePicker(): DateRangePickerWrapper | null; -/** - * Returns the wrapper of the first Drawer that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first Drawer. - * If no matching Drawer is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {DrawerWrapper | null} - */ -findDrawer(selector?: string): DrawerWrapper | null; - -/** - * Returns an array of Drawer wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the Drawers inside the current wrapper. - * If no matching Drawer is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllDrawers(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent Drawer for the current element, - * or the element itself if it is an instance of Drawer. - * If no Drawer is found, returns \`null\`. - * - * @returns {DrawerWrapper | null} - */ -findClosestDrawer(): DrawerWrapper | null; -/** - * Returns the wrapper of the first Dropdown that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first Dropdown. - * If no matching Dropdown is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {DropdownWrapper | null} - */ -findDropdown(selector?: string): DropdownWrapper | null; - -/** - * Returns an array of Dropdown wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the Dropdowns inside the current wrapper. - * If no matching Dropdown is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllDropdowns(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent Dropdown for the current element, - * or the element itself if it is an instance of Dropdown. - * If no Dropdown is found, returns \`null\`. - * - * @returns {DropdownWrapper | null} - */ -findClosestDropdown(): DropdownWrapper | null; -/** - * Returns the wrapper of the first ErrorBoundary that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first ErrorBoundary. - * If no matching ErrorBoundary is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {ErrorBoundaryWrapper | null} - */ -findErrorBoundary(selector?: string): ErrorBoundaryWrapper | null; - -/** - * Returns an array of ErrorBoundary wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the ErrorBoundaries inside the current wrapper. - * If no matching ErrorBoundary is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllErrorBoundaries(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent ErrorBoundary for the current element, - * or the element itself if it is an instance of ErrorBoundary. - * If no ErrorBoundary is found, returns \`null\`. - * - * @returns {ErrorBoundaryWrapper | null} - */ -findClosestErrorBoundary(): ErrorBoundaryWrapper | null; -/** - * Returns the wrapper of the first ExpandableSection that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first ExpandableSection. - * If no matching ExpandableSection is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {ExpandableSectionWrapper | null} - */ -findExpandableSection(selector?: string): ExpandableSectionWrapper | null; - -/** - * Returns an array of ExpandableSection wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the ExpandableSections inside the current wrapper. - * If no matching ExpandableSection is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllExpandableSections(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent ExpandableSection for the current element, - * or the element itself if it is an instance of ExpandableSection. - * If no ExpandableSection is found, returns \`null\`. - * - * @returns {ExpandableSectionWrapper | null} - */ -findClosestExpandableSection(): ExpandableSectionWrapper | null; -/** - * Returns the wrapper of the first FileDropzone that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first FileDropzone. - * If no matching FileDropzone is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {FileDropzoneWrapper | null} - */ -findFileDropzone(selector?: string): FileDropzoneWrapper | null; - -/** - * Returns an array of FileDropzone wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the FileDropzones inside the current wrapper. - * If no matching FileDropzone is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllFileDropzones(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent FileDropzone for the current element, - * or the element itself if it is an instance of FileDropzone. - * If no FileDropzone is found, returns \`null\`. - * - * @returns {FileDropzoneWrapper | null} - */ -findClosestFileDropzone(): FileDropzoneWrapper | null; -/** - * Returns the wrapper of the first FileInput that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first FileInput. - * If no matching FileInput is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {FileInputWrapper | null} - */ -findFileInput(selector?: string): FileInputWrapper | null; - -/** - * Returns an array of FileInput wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the FileInputs inside the current wrapper. - * If no matching FileInput is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllFileInputs(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent FileInput for the current element, - * or the element itself if it is an instance of FileInput. - * If no FileInput is found, returns \`null\`. - * - * @returns {FileInputWrapper | null} - */ -findClosestFileInput(): FileInputWrapper | null; -/** - * Returns the wrapper of the first FileTokenGroup that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first FileTokenGroup. - * If no matching FileTokenGroup is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {FileTokenGroupWrapper | null} - */ -findFileTokenGroup(selector?: string): FileTokenGroupWrapper | null; - -/** - * Returns an array of FileTokenGroup wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the FileTokenGroups inside the current wrapper. - * If no matching FileTokenGroup is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllFileTokenGroups(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent FileTokenGroup for the current element, - * or the element itself if it is an instance of FileTokenGroup. - * If no FileTokenGroup is found, returns \`null\`. - * - * @returns {FileTokenGroupWrapper | null} - */ -findClosestFileTokenGroup(): FileTokenGroupWrapper | null; -/** - * Returns the wrapper of the first FileUpload that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first FileUpload. - * If no matching FileUpload is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {FileUploadWrapper | null} - */ -findFileUpload(selector?: string): FileUploadWrapper | null; - -/** - * Returns an array of FileUpload wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the FileUploads inside the current wrapper. - * If no matching FileUpload is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllFileUploads(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent FileUpload for the current element, - * or the element itself if it is an instance of FileUpload. - * If no FileUpload is found, returns \`null\`. - * - * @returns {FileUploadWrapper | null} - */ -findClosestFileUpload(): FileUploadWrapper | null; -/** - * Returns the wrapper of the first Flashbar that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first Flashbar. - * If no matching Flashbar is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {FlashbarWrapper | null} - */ -findFlashbar(selector?: string): FlashbarWrapper | null; - -/** - * Returns an array of Flashbar wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the Flashbars inside the current wrapper. - * If no matching Flashbar is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllFlashbars(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent Flashbar for the current element, - * or the element itself if it is an instance of Flashbar. - * If no Flashbar is found, returns \`null\`. - * - * @returns {FlashbarWrapper | null} - */ -findClosestFlashbar(): FlashbarWrapper | null; -/** - * Returns the wrapper of the first Form that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first Form. - * If no matching Form is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {FormWrapper | null} - */ -findForm(selector?: string): FormWrapper | null; - -/** - * Returns an array of Form wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the Forms inside the current wrapper. - * If no matching Form is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllForms(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent Form for the current element, - * or the element itself if it is an instance of Form. - * If no Form is found, returns \`null\`. - * - * @returns {FormWrapper | null} - */ -findClosestForm(): FormWrapper | null; -/** - * Returns the wrapper of the first FormField that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first FormField. - * If no matching FormField is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {FormFieldWrapper | null} - */ -findFormField(selector?: string): FormFieldWrapper | null; - -/** - * Returns an array of FormField wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the FormFields inside the current wrapper. - * If no matching FormField is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllFormFields(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent FormField for the current element, - * or the element itself if it is an instance of FormField. - * If no FormField is found, returns \`null\`. - * - * @returns {FormFieldWrapper | null} - */ -findClosestFormField(): FormFieldWrapper | null; -/** - * Returns the wrapper of the first Grid that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first Grid. - * If no matching Grid is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {GridWrapper | null} - */ -findGrid(selector?: string): GridWrapper | null; - -/** - * Returns an array of Grid wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the Grids inside the current wrapper. - * If no matching Grid is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllGrids(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent Grid for the current element, - * or the element itself if it is an instance of Grid. - * If no Grid is found, returns \`null\`. - * - * @returns {GridWrapper | null} - */ -findClosestGrid(): GridWrapper | null; -/** - * Returns the wrapper of the first Header that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first Header. - * If no matching Header is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {HeaderWrapper | null} - */ -findHeader(selector?: string): HeaderWrapper | null; - -/** - * Returns an array of Header wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the Headers inside the current wrapper. - * If no matching Header is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllHeaders(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent Header for the current element, - * or the element itself if it is an instance of Header. - * If no Header is found, returns \`null\`. - * - * @returns {HeaderWrapper | null} - */ -findClosestHeader(): HeaderWrapper | null; -/** - * Returns the wrapper of the first HelpPanel that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first HelpPanel. - * If no matching HelpPanel is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {HelpPanelWrapper | null} - */ -findHelpPanel(selector?: string): HelpPanelWrapper | null; - -/** - * Returns an array of HelpPanel wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the HelpPanels inside the current wrapper. - * If no matching HelpPanel is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllHelpPanels(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent HelpPanel for the current element, - * or the element itself if it is an instance of HelpPanel. - * If no HelpPanel is found, returns \`null\`. - * - * @returns {HelpPanelWrapper | null} - */ -findClosestHelpPanel(): HelpPanelWrapper | null; -/** - * Returns the wrapper of the first Hotspot that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first Hotspot. - * If no matching Hotspot is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {HotspotWrapper | null} - */ -findHotspot(selector?: string): HotspotWrapper | null; - -/** - * Returns an array of Hotspot wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the Hotspots inside the current wrapper. - * If no matching Hotspot is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllHotspots(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent Hotspot for the current element, - * or the element itself if it is an instance of Hotspot. - * If no Hotspot is found, returns \`null\`. - * - * @returns {HotspotWrapper | null} - */ -findClosestHotspot(): HotspotWrapper | null; -/** - * Returns the wrapper of the first Icon that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first Icon. - * If no matching Icon is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {IconWrapper | null} - */ -findIcon(selector?: string): IconWrapper | null; - -/** - * Returns an array of Icon wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the Icons inside the current wrapper. - * If no matching Icon is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllIcons(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent Icon for the current element, - * or the element itself if it is an instance of Icon. - * If no Icon is found, returns \`null\`. - * - * @returns {IconWrapper | null} - */ -findClosestIcon(): IconWrapper | null; -/** - * Returns the wrapper of the first Input that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first Input. - * If no matching Input is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {InputWrapper | null} - */ -findInput(selector?: string): InputWrapper | null; - -/** - * Returns an array of Input wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the Inputs inside the current wrapper. - * If no matching Input is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllInputs(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent Input for the current element, - * or the element itself if it is an instance of Input. - * If no Input is found, returns \`null\`. - * - * @returns {InputWrapper | null} - */ -findClosestInput(): InputWrapper | null; -/** - * Returns the wrapper of the first ItemCard that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first ItemCard. - * If no matching ItemCard is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {ItemCardWrapper | null} - */ -findItemCard(selector?: string): ItemCardWrapper | null; - -/** - * Returns an array of ItemCard wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the ItemCards inside the current wrapper. - * If no matching ItemCard is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllItemCards(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent ItemCard for the current element, - * or the element itself if it is an instance of ItemCard. - * If no ItemCard is found, returns \`null\`. - * - * @returns {ItemCardWrapper | null} - */ -findClosestItemCard(): ItemCardWrapper | null; -/** - * Returns the wrapper of the first KeyValuePairs that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first KeyValuePairs. - * If no matching KeyValuePairs is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {KeyValuePairsWrapper | null} - */ -findKeyValuePairs(selector?: string): KeyValuePairsWrapper | null; - -/** - * Returns an array of KeyValuePairs wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the KeyValuePairs inside the current wrapper. - * If no matching KeyValuePairs is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllKeyValuePairs(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent KeyValuePairs for the current element, - * or the element itself if it is an instance of KeyValuePairs. - * If no KeyValuePairs is found, returns \`null\`. - * - * @returns {KeyValuePairsWrapper | null} - */ -findClosestKeyValuePairs(): KeyValuePairsWrapper | null; -/** - * Returns the wrapper of the first LineChart that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first LineChart. - * If no matching LineChart is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {LineChartWrapper | null} - */ -findLineChart(selector?: string): LineChartWrapper | null; - -/** - * Returns an array of LineChart wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the LineCharts inside the current wrapper. - * If no matching LineChart is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllLineCharts(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent LineChart for the current element, - * or the element itself if it is an instance of LineChart. - * If no LineChart is found, returns \`null\`. - * - * @returns {LineChartWrapper | null} - */ -findClosestLineChart(): LineChartWrapper | null; -/** - * Returns the wrapper of the first Link that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first Link. - * If no matching Link is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {LinkWrapper | null} - */ -findLink(selector?: string): LinkWrapper | null; - -/** - * Returns an array of Link wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the Links inside the current wrapper. - * If no matching Link is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllLinks(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent Link for the current element, - * or the element itself if it is an instance of Link. - * If no Link is found, returns \`null\`. - * - * @returns {LinkWrapper | null} - */ -findClosestLink(): LinkWrapper | null; -/** - * Returns the wrapper of the first List that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first List. - * If no matching List is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {ListWrapper | null} - */ -findList(selector?: string): ListWrapper | null; - -/** - * Returns an array of List wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the Lists inside the current wrapper. - * If no matching List is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllLists(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent List for the current element, - * or the element itself if it is an instance of List. - * If no List is found, returns \`null\`. - * - * @returns {ListWrapper | null} - */ -findClosestList(): ListWrapper | null; -/** - * Returns the wrapper of the first LiveRegion that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first LiveRegion. - * If no matching LiveRegion is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {LiveRegionWrapper | null} - */ -findLiveRegion(selector?: string): LiveRegionWrapper | null; - -/** - * Returns an array of LiveRegion wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the LiveRegions inside the current wrapper. - * If no matching LiveRegion is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllLiveRegions(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent LiveRegion for the current element, - * or the element itself if it is an instance of LiveRegion. - * If no LiveRegion is found, returns \`null\`. - * - * @returns {LiveRegionWrapper | null} - */ -findClosestLiveRegion(): LiveRegionWrapper | null; -/** - * Returns the wrapper of the first MixedLineBarChart that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first MixedLineBarChart. - * If no matching MixedLineBarChart is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {MixedLineBarChartWrapper | null} - */ -findMixedLineBarChart(selector?: string): MixedLineBarChartWrapper | null; - -/** - * Returns an array of MixedLineBarChart wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the MixedLineBarCharts inside the current wrapper. - * If no matching MixedLineBarChart is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllMixedLineBarCharts(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent MixedLineBarChart for the current element, - * or the element itself if it is an instance of MixedLineBarChart. - * If no MixedLineBarChart is found, returns \`null\`. - * - * @returns {MixedLineBarChartWrapper | null} - */ -findClosestMixedLineBarChart(): MixedLineBarChartWrapper | null; -/** - * Returns the wrapper of the first Modal that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first Modal. - * If no matching Modal is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {ModalWrapper | null} - */ -findModal(selector?: string): ModalWrapper | null; - -/** - * Returns an array of Modal wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the Modals inside the current wrapper. - * If no matching Modal is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllModals(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent Modal for the current element, - * or the element itself if it is an instance of Modal. - * If no Modal is found, returns \`null\`. - * - * @returns {ModalWrapper | null} - */ -findClosestModal(): ModalWrapper | null; -/** - * Returns the wrapper of the first Multiselect that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first Multiselect. - * If no matching Multiselect is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {MultiselectWrapper | null} - */ -findMultiselect(selector?: string): MultiselectWrapper | null; - -/** - * Returns an array of Multiselect wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the Multiselects inside the current wrapper. - * If no matching Multiselect is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllMultiselects(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent Multiselect for the current element, - * or the element itself if it is an instance of Multiselect. - * If no Multiselect is found, returns \`null\`. - * - * @returns {MultiselectWrapper | null} - */ -findClosestMultiselect(): MultiselectWrapper | null; -/** - * Returns the wrapper of the first NavigableGroup that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first NavigableGroup. - * If no matching NavigableGroup is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {NavigableGroupWrapper | null} - */ -findNavigableGroup(selector?: string): NavigableGroupWrapper | null; - -/** - * Returns an array of NavigableGroup wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the NavigableGroups inside the current wrapper. - * If no matching NavigableGroup is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllNavigableGroups(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent NavigableGroup for the current element, - * or the element itself if it is an instance of NavigableGroup. - * If no NavigableGroup is found, returns \`null\`. - * - * @returns {NavigableGroupWrapper | null} - */ -findClosestNavigableGroup(): NavigableGroupWrapper | null; -/** - * Returns the wrapper of the first Pagination that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first Pagination. - * If no matching Pagination is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {PaginationWrapper | null} - */ -findPagination(selector?: string): PaginationWrapper | null; - -/** - * Returns an array of Pagination wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the Paginations inside the current wrapper. - * If no matching Pagination is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllPaginations(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent Pagination for the current element, - * or the element itself if it is an instance of Pagination. - * If no Pagination is found, returns \`null\`. - * - * @returns {PaginationWrapper | null} - */ -findClosestPagination(): PaginationWrapper | null; -/** - * Returns the wrapper of the first PanelLayout that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first PanelLayout. - * If no matching PanelLayout is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {PanelLayoutWrapper | null} - */ -findPanelLayout(selector?: string): PanelLayoutWrapper | null; - -/** - * Returns an array of PanelLayout wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the PanelLayouts inside the current wrapper. - * If no matching PanelLayout is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllPanelLayouts(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent PanelLayout for the current element, - * or the element itself if it is an instance of PanelLayout. - * If no PanelLayout is found, returns \`null\`. - * - * @returns {PanelLayoutWrapper | null} - */ -findClosestPanelLayout(): PanelLayoutWrapper | null; -/** - * Returns the wrapper of the first PieChart that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first PieChart. - * If no matching PieChart is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {PieChartWrapper | null} - */ -findPieChart(selector?: string): PieChartWrapper | null; - -/** - * Returns an array of PieChart wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the PieCharts inside the current wrapper. - * If no matching PieChart is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllPieCharts(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent PieChart for the current element, - * or the element itself if it is an instance of PieChart. - * If no PieChart is found, returns \`null\`. - * - * @returns {PieChartWrapper | null} - */ -findClosestPieChart(): PieChartWrapper | null; -/** - * Returns the wrapper of the first Popover that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first Popover. - * If no matching Popover is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {PopoverWrapper | null} - */ -findPopover(selector?: string): PopoverWrapper | null; - -/** - * Returns an array of Popover wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the Popovers inside the current wrapper. - * If no matching Popover is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllPopovers(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent Popover for the current element, - * or the element itself if it is an instance of Popover. - * If no Popover is found, returns \`null\`. - * - * @returns {PopoverWrapper | null} - */ -findClosestPopover(): PopoverWrapper | null; -/** - * Returns the wrapper of the first ProgressBar that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first ProgressBar. - * If no matching ProgressBar is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {ProgressBarWrapper | null} - */ -findProgressBar(selector?: string): ProgressBarWrapper | null; - -/** - * Returns an array of ProgressBar wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the ProgressBars inside the current wrapper. - * If no matching ProgressBar is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllProgressBars(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent ProgressBar for the current element, - * or the element itself if it is an instance of ProgressBar. - * If no ProgressBar is found, returns \`null\`. - * - * @returns {ProgressBarWrapper | null} - */ -findClosestProgressBar(): ProgressBarWrapper | null; -/** - * Returns the wrapper of the first PromptInput that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first PromptInput. - * If no matching PromptInput is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {PromptInputWrapper | null} - */ -findPromptInput(selector?: string): PromptInputWrapper | null; - -/** - * Returns an array of PromptInput wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the PromptInputs inside the current wrapper. - * If no matching PromptInput is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllPromptInputs(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent PromptInput for the current element, - * or the element itself if it is an instance of PromptInput. - * If no PromptInput is found, returns \`null\`. - * - * @returns {PromptInputWrapper | null} - */ -findClosestPromptInput(): PromptInputWrapper | null; -/** - * Returns the wrapper of the first PropertyFilter that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first PropertyFilter. - * If no matching PropertyFilter is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {PropertyFilterWrapper | null} - */ -findPropertyFilter(selector?: string): PropertyFilterWrapper | null; - -/** - * Returns an array of PropertyFilter wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the PropertyFilters inside the current wrapper. - * If no matching PropertyFilter is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllPropertyFilters(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent PropertyFilter for the current element, - * or the element itself if it is an instance of PropertyFilter. - * If no PropertyFilter is found, returns \`null\`. - * - * @returns {PropertyFilterWrapper | null} - */ -findClosestPropertyFilter(): PropertyFilterWrapper | null; -/** - * Returns the wrapper of the first RadioButton that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first RadioButton. - * If no matching RadioButton is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {RadioButtonWrapper | null} - */ -findRadioButton(selector?: string): RadioButtonWrapper | null; - -/** - * Returns an array of RadioButton wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the RadioButtons inside the current wrapper. - * If no matching RadioButton is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllRadioButtons(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent RadioButton for the current element, - * or the element itself if it is an instance of RadioButton. - * If no RadioButton is found, returns \`null\`. - * - * @returns {RadioButtonWrapper | null} - */ -findClosestRadioButton(): RadioButtonWrapper | null; -/** - * Returns the wrapper of the first RadioGroup that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first RadioGroup. - * If no matching RadioGroup is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {RadioGroupWrapper | null} - */ -findRadioGroup(selector?: string): RadioGroupWrapper | null; - -/** - * Returns an array of RadioGroup wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the RadioGroups inside the current wrapper. - * If no matching RadioGroup is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllRadioGroups(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent RadioGroup for the current element, - * or the element itself if it is an instance of RadioGroup. - * If no RadioGroup is found, returns \`null\`. - * - * @returns {RadioGroupWrapper | null} - */ -findClosestRadioGroup(): RadioGroupWrapper | null; -/** - * Returns the wrapper of the first S3ResourceSelector that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first S3ResourceSelector. - * If no matching S3ResourceSelector is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {S3ResourceSelectorWrapper | null} - */ -findS3ResourceSelector(selector?: string): S3ResourceSelectorWrapper | null; - -/** - * Returns an array of S3ResourceSelector wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the S3ResourceSelectors inside the current wrapper. - * If no matching S3ResourceSelector is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllS3ResourceSelectors(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent S3ResourceSelector for the current element, - * or the element itself if it is an instance of S3ResourceSelector. - * If no S3ResourceSelector is found, returns \`null\`. - * - * @returns {S3ResourceSelectorWrapper | null} - */ -findClosestS3ResourceSelector(): S3ResourceSelectorWrapper | null; -/** - * Returns the wrapper of the first SegmentedControl that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first SegmentedControl. - * If no matching SegmentedControl is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {SegmentedControlWrapper | null} - */ -findSegmentedControl(selector?: string): SegmentedControlWrapper | null; - -/** - * Returns an array of SegmentedControl wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the SegmentedControls inside the current wrapper. - * If no matching SegmentedControl is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllSegmentedControls(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent SegmentedControl for the current element, - * or the element itself if it is an instance of SegmentedControl. - * If no SegmentedControl is found, returns \`null\`. - * - * @returns {SegmentedControlWrapper | null} - */ -findClosestSegmentedControl(): SegmentedControlWrapper | null; -/** - * Returns the wrapper of the first Select that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first Select. - * If no matching Select is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {SelectWrapper | null} - */ -findSelect(selector?: string): SelectWrapper | null; - -/** - * Returns an array of Select wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the Selects inside the current wrapper. - * If no matching Select is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllSelects(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent Select for the current element, - * or the element itself if it is an instance of Select. - * If no Select is found, returns \`null\`. - * - * @returns {SelectWrapper | null} - */ -findClosestSelect(): SelectWrapper | null; -/** - * Returns the wrapper of the first SideNavigation that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first SideNavigation. - * If no matching SideNavigation is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {SideNavigationWrapper | null} - */ -findSideNavigation(selector?: string): SideNavigationWrapper | null; - -/** - * Returns an array of SideNavigation wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the SideNavigations inside the current wrapper. - * If no matching SideNavigation is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllSideNavigations(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent SideNavigation for the current element, - * or the element itself if it is an instance of SideNavigation. - * If no SideNavigation is found, returns \`null\`. - * - * @returns {SideNavigationWrapper | null} - */ -findClosestSideNavigation(): SideNavigationWrapper | null; -/** - * Returns the wrapper of the first Slider that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first Slider. - * If no matching Slider is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {SliderWrapper | null} - */ -findSlider(selector?: string): SliderWrapper | null; - -/** - * Returns an array of Slider wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the Sliders inside the current wrapper. - * If no matching Slider is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllSliders(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent Slider for the current element, - * or the element itself if it is an instance of Slider. - * If no Slider is found, returns \`null\`. - * - * @returns {SliderWrapper | null} - */ -findClosestSlider(): SliderWrapper | null; -/** - * Returns the wrapper of the first SpaceBetween that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first SpaceBetween. - * If no matching SpaceBetween is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {SpaceBetweenWrapper | null} - */ -findSpaceBetween(selector?: string): SpaceBetweenWrapper | null; - -/** - * Returns an array of SpaceBetween wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the SpaceBetweens inside the current wrapper. - * If no matching SpaceBetween is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllSpaceBetweens(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent SpaceBetween for the current element, - * or the element itself if it is an instance of SpaceBetween. - * If no SpaceBetween is found, returns \`null\`. - * - * @returns {SpaceBetweenWrapper | null} - */ -findClosestSpaceBetween(): SpaceBetweenWrapper | null; -/** - * Returns the wrapper of the first Spinner that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first Spinner. - * If no matching Spinner is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {SpinnerWrapper | null} - */ -findSpinner(selector?: string): SpinnerWrapper | null; - -/** - * Returns an array of Spinner wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the Spinners inside the current wrapper. - * If no matching Spinner is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllSpinners(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent Spinner for the current element, - * or the element itself if it is an instance of Spinner. - * If no Spinner is found, returns \`null\`. - * - * @returns {SpinnerWrapper | null} - */ -findClosestSpinner(): SpinnerWrapper | null; -/** - * Returns the wrapper of the first SplitPanel that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first SplitPanel. - * If no matching SplitPanel is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {SplitPanelWrapper | null} - */ -findSplitPanel(selector?: string): SplitPanelWrapper | null; - -/** - * Returns an array of SplitPanel wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the SplitPanels inside the current wrapper. - * If no matching SplitPanel is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllSplitPanels(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent SplitPanel for the current element, - * or the element itself if it is an instance of SplitPanel. - * If no SplitPanel is found, returns \`null\`. - * - * @returns {SplitPanelWrapper | null} - */ -findClosestSplitPanel(): SplitPanelWrapper | null; -/** - * Returns the wrapper of the first StatusIndicator that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first StatusIndicator. - * If no matching StatusIndicator is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {StatusIndicatorWrapper | null} - */ -findStatusIndicator(selector?: string): StatusIndicatorWrapper | null; - -/** - * Returns an array of StatusIndicator wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the StatusIndicators inside the current wrapper. - * If no matching StatusIndicator is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllStatusIndicators(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent StatusIndicator for the current element, - * or the element itself if it is an instance of StatusIndicator. - * If no StatusIndicator is found, returns \`null\`. - * - * @returns {StatusIndicatorWrapper | null} - */ -findClosestStatusIndicator(): StatusIndicatorWrapper | null; -/** - * Returns the wrapper of the first Steps that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first Steps. - * If no matching Steps is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {StepsWrapper | null} - */ -findSteps(selector?: string): StepsWrapper | null; - -/** - * Returns an array of Steps wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the Steps inside the current wrapper. - * If no matching Steps is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllSteps(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent Steps for the current element, - * or the element itself if it is an instance of Steps. - * If no Steps is found, returns \`null\`. - * - * @returns {StepsWrapper | null} - */ -findClosestSteps(): StepsWrapper | null; -/** - * Returns the wrapper of the first Table that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first Table. - * If no matching Table is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {TableWrapper | null} - */ -findTable(selector?: string): TableWrapper | null; - -/** - * Returns an array of Table wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the Tables inside the current wrapper. - * If no matching Table is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllTables(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent Table for the current element, - * or the element itself if it is an instance of Table. - * If no Table is found, returns \`null\`. - * - * @returns {TableWrapper | null} - */ -findClosestTable(): TableWrapper | null; -/** - * Returns the wrapper of the first Tabs that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first Tabs. - * If no matching Tabs is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {TabsWrapper | null} - */ -findTabs(selector?: string): TabsWrapper | null; - -/** - * Returns an array of Tabs wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the Tabs inside the current wrapper. - * If no matching Tabs is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllTabs(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent Tabs for the current element, - * or the element itself if it is an instance of Tabs. - * If no Tabs is found, returns \`null\`. - * - * @returns {TabsWrapper | null} - */ -findClosestTabs(): TabsWrapper | null; -/** - * Returns the wrapper of the first TagEditor that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first TagEditor. - * If no matching TagEditor is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {TagEditorWrapper | null} - */ -findTagEditor(selector?: string): TagEditorWrapper | null; - -/** - * Returns an array of TagEditor wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the TagEditors inside the current wrapper. - * If no matching TagEditor is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllTagEditors(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent TagEditor for the current element, - * or the element itself if it is an instance of TagEditor. - * If no TagEditor is found, returns \`null\`. - * - * @returns {TagEditorWrapper | null} - */ -findClosestTagEditor(): TagEditorWrapper | null; -/** - * Returns the wrapper of the first TextContent that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first TextContent. - * If no matching TextContent is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {TextContentWrapper | null} - */ -findTextContent(selector?: string): TextContentWrapper | null; - -/** - * Returns an array of TextContent wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the TextContents inside the current wrapper. - * If no matching TextContent is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllTextContents(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent TextContent for the current element, - * or the element itself if it is an instance of TextContent. - * If no TextContent is found, returns \`null\`. - * - * @returns {TextContentWrapper | null} - */ -findClosestTextContent(): TextContentWrapper | null; -/** - * Returns the wrapper of the first TextFilter that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first TextFilter. - * If no matching TextFilter is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {TextFilterWrapper | null} - */ -findTextFilter(selector?: string): TextFilterWrapper | null; - -/** - * Returns an array of TextFilter wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the TextFilters inside the current wrapper. - * If no matching TextFilter is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllTextFilters(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent TextFilter for the current element, - * or the element itself if it is an instance of TextFilter. - * If no TextFilter is found, returns \`null\`. - * - * @returns {TextFilterWrapper | null} - */ -findClosestTextFilter(): TextFilterWrapper | null; -/** - * Returns the wrapper of the first Textarea that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first Textarea. - * If no matching Textarea is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {TextareaWrapper | null} - */ -findTextarea(selector?: string): TextareaWrapper | null; - -/** - * Returns an array of Textarea wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the Textareas inside the current wrapper. - * If no matching Textarea is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllTextareas(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent Textarea for the current element, - * or the element itself if it is an instance of Textarea. - * If no Textarea is found, returns \`null\`. - * - * @returns {TextareaWrapper | null} - */ -findClosestTextarea(): TextareaWrapper | null; -/** - * Returns the wrapper of the first Tiles that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first Tiles. - * If no matching Tiles is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {TilesWrapper | null} - */ -findTiles(selector?: string): TilesWrapper | null; - -/** - * Returns an array of Tiles wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the Tiles inside the current wrapper. - * If no matching Tiles is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllTiles(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent Tiles for the current element, - * or the element itself if it is an instance of Tiles. - * If no Tiles is found, returns \`null\`. - * - * @returns {TilesWrapper | null} - */ -findClosestTiles(): TilesWrapper | null; -/** - * Returns the wrapper of the first TimeInput that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first TimeInput. - * If no matching TimeInput is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {TimeInputWrapper | null} - */ -findTimeInput(selector?: string): TimeInputWrapper | null; - -/** - * Returns an array of TimeInput wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the TimeInputs inside the current wrapper. - * If no matching TimeInput is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllTimeInputs(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent TimeInput for the current element, - * or the element itself if it is an instance of TimeInput. - * If no TimeInput is found, returns \`null\`. - * - * @returns {TimeInputWrapper | null} - */ -findClosestTimeInput(): TimeInputWrapper | null; -/** - * Returns the wrapper of the first Toggle that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first Toggle. - * If no matching Toggle is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {ToggleWrapper | null} - */ -findToggle(selector?: string): ToggleWrapper | null; - -/** - * Returns an array of Toggle wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the Toggles inside the current wrapper. - * If no matching Toggle is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllToggles(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent Toggle for the current element, - * or the element itself if it is an instance of Toggle. - * If no Toggle is found, returns \`null\`. - * - * @returns {ToggleWrapper | null} - */ -findClosestToggle(): ToggleWrapper | null; -/** - * Returns the wrapper of the first ToggleButton that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first ToggleButton. - * If no matching ToggleButton is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {ToggleButtonWrapper | null} - */ -findToggleButton(selector?: string): ToggleButtonWrapper | null; - -/** - * Returns an array of ToggleButton wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the ToggleButtons inside the current wrapper. - * If no matching ToggleButton is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllToggleButtons(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent ToggleButton for the current element, - * or the element itself if it is an instance of ToggleButton. - * If no ToggleButton is found, returns \`null\`. - * - * @returns {ToggleButtonWrapper | null} - */ -findClosestToggleButton(): ToggleButtonWrapper | null; -/** - * Returns the wrapper of the first Token that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first Token. - * If no matching Token is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {TokenWrapper | null} - */ -findToken(selector?: string): TokenWrapper | null; - -/** - * Returns an array of Token wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the Tokens inside the current wrapper. - * If no matching Token is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllTokens(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent Token for the current element, - * or the element itself if it is an instance of Token. - * If no Token is found, returns \`null\`. - * - * @returns {TokenWrapper | null} - */ -findClosestToken(): TokenWrapper | null; -/** - * Returns the wrapper of the first TokenGroup that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first TokenGroup. - * If no matching TokenGroup is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {TokenGroupWrapper | null} - */ -findTokenGroup(selector?: string): TokenGroupWrapper | null; - -/** - * Returns an array of TokenGroup wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the TokenGroups inside the current wrapper. - * If no matching TokenGroup is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllTokenGroups(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent TokenGroup for the current element, - * or the element itself if it is an instance of TokenGroup. - * If no TokenGroup is found, returns \`null\`. - * - * @returns {TokenGroupWrapper | null} - */ -findClosestTokenGroup(): TokenGroupWrapper | null; -/** - * Returns the wrapper of the first Tooltip that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first Tooltip. - * If no matching Tooltip is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {TooltipWrapper | null} - */ -findTooltip(selector?: string): TooltipWrapper | null; - -/** - * Returns an array of Tooltip wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the Tooltips inside the current wrapper. - * If no matching Tooltip is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllTooltips(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent Tooltip for the current element, - * or the element itself if it is an instance of Tooltip. - * If no Tooltip is found, returns \`null\`. - * - * @returns {TooltipWrapper | null} - */ -findClosestTooltip(): TooltipWrapper | null; -/** - * Returns the wrapper of the first TopNavigation that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first TopNavigation. - * If no matching TopNavigation is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {TopNavigationWrapper | null} - */ -findTopNavigation(selector?: string): TopNavigationWrapper | null; - -/** - * Returns an array of TopNavigation wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the TopNavigations inside the current wrapper. - * If no matching TopNavigation is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllTopNavigations(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent TopNavigation for the current element, - * or the element itself if it is an instance of TopNavigation. - * If no TopNavigation is found, returns \`null\`. - * - * @returns {TopNavigationWrapper | null} - */ -findClosestTopNavigation(): TopNavigationWrapper | null; -/** - * Returns the wrapper of the first TreeView that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first TreeView. - * If no matching TreeView is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {TreeViewWrapper | null} - */ -findTreeView(selector?: string): TreeViewWrapper | null; - -/** - * Returns an array of TreeView wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the TreeViews inside the current wrapper. - * If no matching TreeView is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllTreeViews(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent TreeView for the current element, - * or the element itself if it is an instance of TreeView. - * If no TreeView is found, returns \`null\`. - * - * @returns {TreeViewWrapper | null} - */ -findClosestTreeView(): TreeViewWrapper | null; -/** - * Returns the wrapper of the first TutorialPanel that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first TutorialPanel. - * If no matching TutorialPanel is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {TutorialPanelWrapper | null} - */ -findTutorialPanel(selector?: string): TutorialPanelWrapper | null; - -/** - * Returns an array of TutorialPanel wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the TutorialPanels inside the current wrapper. - * If no matching TutorialPanel is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllTutorialPanels(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent TutorialPanel for the current element, - * or the element itself if it is an instance of TutorialPanel. - * If no TutorialPanel is found, returns \`null\`. - * - * @returns {TutorialPanelWrapper | null} - */ -findClosestTutorialPanel(): TutorialPanelWrapper | null; -/** - * Returns the wrapper of the first Wizard that matches the specified CSS selector. - * If no CSS selector is specified, returns the wrapper of the first Wizard. - * If no matching Wizard is found, returns \`null\`. - * - * @param {string} [selector] CSS Selector - * @returns {WizardWrapper | null} - */ -findWizard(selector?: string): WizardWrapper | null; - -/** - * Returns an array of Wizard wrapper that matches the specified CSS selector. - * If no CSS selector is specified, returns all of the Wizards inside the current wrapper. - * If no matching Wizard is found, returns an empty array. - * - * @param {string} [selector] CSS Selector - * @returns {Array} - */ -findAllWizards(selector?: string): Array; - -/** - * Returns the wrapper of the closest parent Wizard for the current element, - * or the element itself if it is an instance of Wizard. - * If no Wizard is found, returns \`null\`. - * - * @returns {WizardWrapper | null} - */ -findClosestWizard(): WizardWrapper | null; - } -} - - -ElementWrapper.prototype.findActionCard = function(selector) { - let rootSelector = \`.\${ActionCardWrapper.rootSelector}\`; - if("legacyRootSelector" in ActionCardWrapper && ActionCardWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${ActionCardWrapper.rootSelector}, .\${ActionCardWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ActionCardWrapper); -}; - -ElementWrapper.prototype.findAllActionCards = function(selector) { - return this.findAllComponents(ActionCardWrapper, selector); -}; -ElementWrapper.prototype.findAlert = function(selector) { - let rootSelector = \`.\${AlertWrapper.rootSelector}\`; - if("legacyRootSelector" in AlertWrapper && AlertWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${AlertWrapper.rootSelector}, .\${AlertWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, AlertWrapper); -}; - -ElementWrapper.prototype.findAllAlerts = function(selector) { - return this.findAllComponents(AlertWrapper, selector); -}; -ElementWrapper.prototype.findAnchorNavigation = function(selector) { - let rootSelector = \`.\${AnchorNavigationWrapper.rootSelector}\`; - if("legacyRootSelector" in AnchorNavigationWrapper && AnchorNavigationWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${AnchorNavigationWrapper.rootSelector}, .\${AnchorNavigationWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, AnchorNavigationWrapper); -}; - -ElementWrapper.prototype.findAllAnchorNavigations = function(selector) { - return this.findAllComponents(AnchorNavigationWrapper, selector); -}; -ElementWrapper.prototype.findAnnotation = function(selector) { - let rootSelector = \`.\${AnnotationWrapper.rootSelector}\`; - if("legacyRootSelector" in AnnotationWrapper && AnnotationWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${AnnotationWrapper.rootSelector}, .\${AnnotationWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, AnnotationWrapper); -}; - -ElementWrapper.prototype.findAllAnnotations = function(selector) { - return this.findAllComponents(AnnotationWrapper, selector); -}; -ElementWrapper.prototype.findAppLayout = function(selector) { - let rootSelector = \`.\${AppLayoutWrapper.rootSelector}\`; - if("legacyRootSelector" in AppLayoutWrapper && AppLayoutWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${AppLayoutWrapper.rootSelector}, .\${AppLayoutWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, AppLayoutWrapper); -}; - -ElementWrapper.prototype.findAllAppLayouts = function(selector) { - return this.findAllComponents(AppLayoutWrapper, selector); -}; -ElementWrapper.prototype.findAppLayoutToolbar = function(selector) { - let rootSelector = \`.\${AppLayoutToolbarWrapper.rootSelector}\`; - if("legacyRootSelector" in AppLayoutToolbarWrapper && AppLayoutToolbarWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${AppLayoutToolbarWrapper.rootSelector}, .\${AppLayoutToolbarWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, AppLayoutToolbarWrapper); -}; - -ElementWrapper.prototype.findAllAppLayoutToolbars = function(selector) { - return this.findAllComponents(AppLayoutToolbarWrapper, selector); -}; -ElementWrapper.prototype.findAreaChart = function(selector) { - let rootSelector = \`.\${AreaChartWrapper.rootSelector}\`; - if("legacyRootSelector" in AreaChartWrapper && AreaChartWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${AreaChartWrapper.rootSelector}, .\${AreaChartWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, AreaChartWrapper); -}; - -ElementWrapper.prototype.findAllAreaCharts = function(selector) { - return this.findAllComponents(AreaChartWrapper, selector); -}; -ElementWrapper.prototype.findAttributeEditor = function(selector) { - let rootSelector = \`.\${AttributeEditorWrapper.rootSelector}\`; - if("legacyRootSelector" in AttributeEditorWrapper && AttributeEditorWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${AttributeEditorWrapper.rootSelector}, .\${AttributeEditorWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, AttributeEditorWrapper); -}; - -ElementWrapper.prototype.findAllAttributeEditors = function(selector) { - return this.findAllComponents(AttributeEditorWrapper, selector); -}; -ElementWrapper.prototype.findAutosuggest = function(selector) { - let rootSelector = \`.\${AutosuggestWrapper.rootSelector}\`; - if("legacyRootSelector" in AutosuggestWrapper && AutosuggestWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${AutosuggestWrapper.rootSelector}, .\${AutosuggestWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, AutosuggestWrapper); -}; - -ElementWrapper.prototype.findAllAutosuggests = function(selector) { - return this.findAllComponents(AutosuggestWrapper, selector); -}; -ElementWrapper.prototype.findBadge = function(selector) { - let rootSelector = \`.\${BadgeWrapper.rootSelector}\`; - if("legacyRootSelector" in BadgeWrapper && BadgeWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${BadgeWrapper.rootSelector}, .\${BadgeWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, BadgeWrapper); -}; - -ElementWrapper.prototype.findAllBadges = function(selector) { - return this.findAllComponents(BadgeWrapper, selector); -}; -ElementWrapper.prototype.findBarChart = function(selector) { - let rootSelector = \`.\${BarChartWrapper.rootSelector}\`; - if("legacyRootSelector" in BarChartWrapper && BarChartWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${BarChartWrapper.rootSelector}, .\${BarChartWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, BarChartWrapper); -}; - -ElementWrapper.prototype.findAllBarCharts = function(selector) { - return this.findAllComponents(BarChartWrapper, selector); -}; -ElementWrapper.prototype.findBox = function(selector) { - let rootSelector = \`.\${BoxWrapper.rootSelector}\`; - if("legacyRootSelector" in BoxWrapper && BoxWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${BoxWrapper.rootSelector}, .\${BoxWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, BoxWrapper); -}; - -ElementWrapper.prototype.findAllBoxes = function(selector) { - return this.findAllComponents(BoxWrapper, selector); -}; -ElementWrapper.prototype.findBreadcrumbGroup = function(selector) { - let rootSelector = \`.\${BreadcrumbGroupWrapper.rootSelector}\`; - if("legacyRootSelector" in BreadcrumbGroupWrapper && BreadcrumbGroupWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${BreadcrumbGroupWrapper.rootSelector}, .\${BreadcrumbGroupWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, BreadcrumbGroupWrapper); -}; - -ElementWrapper.prototype.findAllBreadcrumbGroups = function(selector) { - return this.findAllComponents(BreadcrumbGroupWrapper, selector); -}; -ElementWrapper.prototype.findButton = function(selector) { - let rootSelector = \`.\${ButtonWrapper.rootSelector}\`; - if("legacyRootSelector" in ButtonWrapper && ButtonWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${ButtonWrapper.rootSelector}, .\${ButtonWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ButtonWrapper); -}; - -ElementWrapper.prototype.findAllButtons = function(selector) { - return this.findAllComponents(ButtonWrapper, selector); -}; -ElementWrapper.prototype.findButtonDropdown = function(selector) { - let rootSelector = \`.\${ButtonDropdownWrapper.rootSelector}\`; - if("legacyRootSelector" in ButtonDropdownWrapper && ButtonDropdownWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${ButtonDropdownWrapper.rootSelector}, .\${ButtonDropdownWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ButtonDropdownWrapper); -}; - -ElementWrapper.prototype.findAllButtonDropdowns = function(selector) { - return this.findAllComponents(ButtonDropdownWrapper, selector); -}; -ElementWrapper.prototype.findButtonGroup = function(selector) { - let rootSelector = \`.\${ButtonGroupWrapper.rootSelector}\`; - if("legacyRootSelector" in ButtonGroupWrapper && ButtonGroupWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${ButtonGroupWrapper.rootSelector}, .\${ButtonGroupWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ButtonGroupWrapper); -}; - -ElementWrapper.prototype.findAllButtonGroups = function(selector) { - return this.findAllComponents(ButtonGroupWrapper, selector); -}; -ElementWrapper.prototype.findCalendar = function(selector) { - let rootSelector = \`.\${CalendarWrapper.rootSelector}\`; - if("legacyRootSelector" in CalendarWrapper && CalendarWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${CalendarWrapper.rootSelector}, .\${CalendarWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, CalendarWrapper); -}; - -ElementWrapper.prototype.findAllCalendars = function(selector) { - return this.findAllComponents(CalendarWrapper, selector); -}; -ElementWrapper.prototype.findCards = function(selector) { - let rootSelector = \`.\${CardsWrapper.rootSelector}\`; - if("legacyRootSelector" in CardsWrapper && CardsWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${CardsWrapper.rootSelector}, .\${CardsWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, CardsWrapper); -}; - -ElementWrapper.prototype.findAllCards = function(selector) { - return this.findAllComponents(CardsWrapper, selector); -}; -ElementWrapper.prototype.findCheckbox = function(selector) { - let rootSelector = \`.\${CheckboxWrapper.rootSelector}\`; - if("legacyRootSelector" in CheckboxWrapper && CheckboxWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${CheckboxWrapper.rootSelector}, .\${CheckboxWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, CheckboxWrapper); -}; - -ElementWrapper.prototype.findAllCheckboxes = function(selector) { - return this.findAllComponents(CheckboxWrapper, selector); -}; -ElementWrapper.prototype.findCodeEditor = function(selector) { - let rootSelector = \`.\${CodeEditorWrapper.rootSelector}\`; - if("legacyRootSelector" in CodeEditorWrapper && CodeEditorWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${CodeEditorWrapper.rootSelector}, .\${CodeEditorWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, CodeEditorWrapper); -}; - -ElementWrapper.prototype.findAllCodeEditors = function(selector) { - return this.findAllComponents(CodeEditorWrapper, selector); -}; -ElementWrapper.prototype.findCollectionPreferences = function(selector) { - let rootSelector = \`.\${CollectionPreferencesWrapper.rootSelector}\`; - if("legacyRootSelector" in CollectionPreferencesWrapper && CollectionPreferencesWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${CollectionPreferencesWrapper.rootSelector}, .\${CollectionPreferencesWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, CollectionPreferencesWrapper); -}; - -ElementWrapper.prototype.findAllCollectionPreferences = function(selector) { - return this.findAllComponents(CollectionPreferencesWrapper, selector); -}; -ElementWrapper.prototype.findColumnLayout = function(selector) { - let rootSelector = \`.\${ColumnLayoutWrapper.rootSelector}\`; - if("legacyRootSelector" in ColumnLayoutWrapper && ColumnLayoutWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${ColumnLayoutWrapper.rootSelector}, .\${ColumnLayoutWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ColumnLayoutWrapper); -}; - -ElementWrapper.prototype.findAllColumnLayouts = function(selector) { - return this.findAllComponents(ColumnLayoutWrapper, selector); -}; -ElementWrapper.prototype.findContainer = function(selector) { - let rootSelector = \`.\${ContainerWrapper.rootSelector}\`; - if("legacyRootSelector" in ContainerWrapper && ContainerWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${ContainerWrapper.rootSelector}, .\${ContainerWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ContainerWrapper); -}; - -ElementWrapper.prototype.findAllContainers = function(selector) { - return this.findAllComponents(ContainerWrapper, selector); -}; -ElementWrapper.prototype.findContentLayout = function(selector) { - let rootSelector = \`.\${ContentLayoutWrapper.rootSelector}\`; - if("legacyRootSelector" in ContentLayoutWrapper && ContentLayoutWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${ContentLayoutWrapper.rootSelector}, .\${ContentLayoutWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ContentLayoutWrapper); -}; - -ElementWrapper.prototype.findAllContentLayouts = function(selector) { - return this.findAllComponents(ContentLayoutWrapper, selector); -}; -ElementWrapper.prototype.findCopyToClipboard = function(selector) { - let rootSelector = \`.\${CopyToClipboardWrapper.rootSelector}\`; - if("legacyRootSelector" in CopyToClipboardWrapper && CopyToClipboardWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${CopyToClipboardWrapper.rootSelector}, .\${CopyToClipboardWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, CopyToClipboardWrapper); -}; - -ElementWrapper.prototype.findAllCopyToClipboards = function(selector) { - return this.findAllComponents(CopyToClipboardWrapper, selector); -}; -ElementWrapper.prototype.findDateInput = function(selector) { - let rootSelector = \`.\${DateInputWrapper.rootSelector}\`; - if("legacyRootSelector" in DateInputWrapper && DateInputWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${DateInputWrapper.rootSelector}, .\${DateInputWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, DateInputWrapper); -}; - -ElementWrapper.prototype.findAllDateInputs = function(selector) { - return this.findAllComponents(DateInputWrapper, selector); -}; -ElementWrapper.prototype.findDatePicker = function(selector) { - let rootSelector = \`.\${DatePickerWrapper.rootSelector}\`; - if("legacyRootSelector" in DatePickerWrapper && DatePickerWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${DatePickerWrapper.rootSelector}, .\${DatePickerWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, DatePickerWrapper); -}; - -ElementWrapper.prototype.findAllDatePickers = function(selector) { - return this.findAllComponents(DatePickerWrapper, selector); -}; -ElementWrapper.prototype.findDateRangePicker = function(selector) { - let rootSelector = \`.\${DateRangePickerWrapper.rootSelector}\`; - if("legacyRootSelector" in DateRangePickerWrapper && DateRangePickerWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${DateRangePickerWrapper.rootSelector}, .\${DateRangePickerWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, DateRangePickerWrapper); -}; - -ElementWrapper.prototype.findAllDateRangePickers = function(selector) { - return this.findAllComponents(DateRangePickerWrapper, selector); -}; -ElementWrapper.prototype.findDrawer = function(selector) { - let rootSelector = \`.\${DrawerWrapper.rootSelector}\`; - if("legacyRootSelector" in DrawerWrapper && DrawerWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${DrawerWrapper.rootSelector}, .\${DrawerWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, DrawerWrapper); -}; - -ElementWrapper.prototype.findAllDrawers = function(selector) { - return this.findAllComponents(DrawerWrapper, selector); -}; -ElementWrapper.prototype.findDropdown = function(selector) { - let rootSelector = \`.\${DropdownWrapper.rootSelector}\`; - if("legacyRootSelector" in DropdownWrapper && DropdownWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${DropdownWrapper.rootSelector}, .\${DropdownWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, DropdownWrapper); -}; - -ElementWrapper.prototype.findAllDropdowns = function(selector) { - return this.findAllComponents(DropdownWrapper, selector); -}; -ElementWrapper.prototype.findErrorBoundary = function(selector) { - let rootSelector = \`.\${ErrorBoundaryWrapper.rootSelector}\`; - if("legacyRootSelector" in ErrorBoundaryWrapper && ErrorBoundaryWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${ErrorBoundaryWrapper.rootSelector}, .\${ErrorBoundaryWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ErrorBoundaryWrapper); -}; - -ElementWrapper.prototype.findAllErrorBoundaries = function(selector) { - return this.findAllComponents(ErrorBoundaryWrapper, selector); -}; -ElementWrapper.prototype.findExpandableSection = function(selector) { - let rootSelector = \`.\${ExpandableSectionWrapper.rootSelector}\`; - if("legacyRootSelector" in ExpandableSectionWrapper && ExpandableSectionWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${ExpandableSectionWrapper.rootSelector}, .\${ExpandableSectionWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ExpandableSectionWrapper); -}; - -ElementWrapper.prototype.findAllExpandableSections = function(selector) { - return this.findAllComponents(ExpandableSectionWrapper, selector); -}; -ElementWrapper.prototype.findFileDropzone = function(selector) { - let rootSelector = \`.\${FileDropzoneWrapper.rootSelector}\`; - if("legacyRootSelector" in FileDropzoneWrapper && FileDropzoneWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${FileDropzoneWrapper.rootSelector}, .\${FileDropzoneWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, FileDropzoneWrapper); -}; - -ElementWrapper.prototype.findAllFileDropzones = function(selector) { - return this.findAllComponents(FileDropzoneWrapper, selector); -}; -ElementWrapper.prototype.findFileInput = function(selector) { - let rootSelector = \`.\${FileInputWrapper.rootSelector}\`; - if("legacyRootSelector" in FileInputWrapper && FileInputWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${FileInputWrapper.rootSelector}, .\${FileInputWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, FileInputWrapper); -}; - -ElementWrapper.prototype.findAllFileInputs = function(selector) { - return this.findAllComponents(FileInputWrapper, selector); -}; -ElementWrapper.prototype.findFileTokenGroup = function(selector) { - let rootSelector = \`.\${FileTokenGroupWrapper.rootSelector}\`; - if("legacyRootSelector" in FileTokenGroupWrapper && FileTokenGroupWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${FileTokenGroupWrapper.rootSelector}, .\${FileTokenGroupWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, FileTokenGroupWrapper); -}; - -ElementWrapper.prototype.findAllFileTokenGroups = function(selector) { - return this.findAllComponents(FileTokenGroupWrapper, selector); -}; -ElementWrapper.prototype.findFileUpload = function(selector) { - let rootSelector = \`.\${FileUploadWrapper.rootSelector}\`; - if("legacyRootSelector" in FileUploadWrapper && FileUploadWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${FileUploadWrapper.rootSelector}, .\${FileUploadWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, FileUploadWrapper); -}; - -ElementWrapper.prototype.findAllFileUploads = function(selector) { - return this.findAllComponents(FileUploadWrapper, selector); -}; -ElementWrapper.prototype.findFlashbar = function(selector) { - let rootSelector = \`.\${FlashbarWrapper.rootSelector}\`; - if("legacyRootSelector" in FlashbarWrapper && FlashbarWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${FlashbarWrapper.rootSelector}, .\${FlashbarWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, FlashbarWrapper); -}; - -ElementWrapper.prototype.findAllFlashbars = function(selector) { - return this.findAllComponents(FlashbarWrapper, selector); -}; -ElementWrapper.prototype.findForm = function(selector) { - let rootSelector = \`.\${FormWrapper.rootSelector}\`; - if("legacyRootSelector" in FormWrapper && FormWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${FormWrapper.rootSelector}, .\${FormWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, FormWrapper); -}; - -ElementWrapper.prototype.findAllForms = function(selector) { - return this.findAllComponents(FormWrapper, selector); -}; -ElementWrapper.prototype.findFormField = function(selector) { - let rootSelector = \`.\${FormFieldWrapper.rootSelector}\`; - if("legacyRootSelector" in FormFieldWrapper && FormFieldWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${FormFieldWrapper.rootSelector}, .\${FormFieldWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, FormFieldWrapper); -}; - -ElementWrapper.prototype.findAllFormFields = function(selector) { - return this.findAllComponents(FormFieldWrapper, selector); -}; -ElementWrapper.prototype.findGrid = function(selector) { - let rootSelector = \`.\${GridWrapper.rootSelector}\`; - if("legacyRootSelector" in GridWrapper && GridWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${GridWrapper.rootSelector}, .\${GridWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, GridWrapper); -}; - -ElementWrapper.prototype.findAllGrids = function(selector) { - return this.findAllComponents(GridWrapper, selector); -}; -ElementWrapper.prototype.findHeader = function(selector) { - let rootSelector = \`.\${HeaderWrapper.rootSelector}\`; - if("legacyRootSelector" in HeaderWrapper && HeaderWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${HeaderWrapper.rootSelector}, .\${HeaderWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, HeaderWrapper); -}; - -ElementWrapper.prototype.findAllHeaders = function(selector) { - return this.findAllComponents(HeaderWrapper, selector); -}; -ElementWrapper.prototype.findHelpPanel = function(selector) { - let rootSelector = \`.\${HelpPanelWrapper.rootSelector}\`; - if("legacyRootSelector" in HelpPanelWrapper && HelpPanelWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${HelpPanelWrapper.rootSelector}, .\${HelpPanelWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, HelpPanelWrapper); -}; - -ElementWrapper.prototype.findAllHelpPanels = function(selector) { - return this.findAllComponents(HelpPanelWrapper, selector); -}; -ElementWrapper.prototype.findHotspot = function(selector) { - let rootSelector = \`.\${HotspotWrapper.rootSelector}\`; - if("legacyRootSelector" in HotspotWrapper && HotspotWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${HotspotWrapper.rootSelector}, .\${HotspotWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, HotspotWrapper); -}; - -ElementWrapper.prototype.findAllHotspots = function(selector) { - return this.findAllComponents(HotspotWrapper, selector); -}; -ElementWrapper.prototype.findIcon = function(selector) { - let rootSelector = \`.\${IconWrapper.rootSelector}\`; - if("legacyRootSelector" in IconWrapper && IconWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${IconWrapper.rootSelector}, .\${IconWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, IconWrapper); -}; - -ElementWrapper.prototype.findAllIcons = function(selector) { - return this.findAllComponents(IconWrapper, selector); -}; -ElementWrapper.prototype.findInput = function(selector) { - let rootSelector = \`.\${InputWrapper.rootSelector}\`; - if("legacyRootSelector" in InputWrapper && InputWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${InputWrapper.rootSelector}, .\${InputWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, InputWrapper); -}; - -ElementWrapper.prototype.findAllInputs = function(selector) { - return this.findAllComponents(InputWrapper, selector); -}; -ElementWrapper.prototype.findItemCard = function(selector) { - let rootSelector = \`.\${ItemCardWrapper.rootSelector}\`; - if("legacyRootSelector" in ItemCardWrapper && ItemCardWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${ItemCardWrapper.rootSelector}, .\${ItemCardWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ItemCardWrapper); -}; - -ElementWrapper.prototype.findAllItemCards = function(selector) { - return this.findAllComponents(ItemCardWrapper, selector); -}; -ElementWrapper.prototype.findKeyValuePairs = function(selector) { - let rootSelector = \`.\${KeyValuePairsWrapper.rootSelector}\`; - if("legacyRootSelector" in KeyValuePairsWrapper && KeyValuePairsWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${KeyValuePairsWrapper.rootSelector}, .\${KeyValuePairsWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, KeyValuePairsWrapper); -}; - -ElementWrapper.prototype.findAllKeyValuePairs = function(selector) { - return this.findAllComponents(KeyValuePairsWrapper, selector); -}; -ElementWrapper.prototype.findLineChart = function(selector) { - let rootSelector = \`.\${LineChartWrapper.rootSelector}\`; - if("legacyRootSelector" in LineChartWrapper && LineChartWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${LineChartWrapper.rootSelector}, .\${LineChartWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, LineChartWrapper); -}; - -ElementWrapper.prototype.findAllLineCharts = function(selector) { - return this.findAllComponents(LineChartWrapper, selector); -}; -ElementWrapper.prototype.findLink = function(selector) { - let rootSelector = \`.\${LinkWrapper.rootSelector}\`; - if("legacyRootSelector" in LinkWrapper && LinkWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${LinkWrapper.rootSelector}, .\${LinkWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, LinkWrapper); -}; - -ElementWrapper.prototype.findAllLinks = function(selector) { - return this.findAllComponents(LinkWrapper, selector); -}; -ElementWrapper.prototype.findList = function(selector) { - let rootSelector = \`.\${ListWrapper.rootSelector}\`; - if("legacyRootSelector" in ListWrapper && ListWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${ListWrapper.rootSelector}, .\${ListWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ListWrapper); -}; - -ElementWrapper.prototype.findAllLists = function(selector) { - return this.findAllComponents(ListWrapper, selector); -}; -ElementWrapper.prototype.findLiveRegion = function(selector) { - let rootSelector = \`.\${LiveRegionWrapper.rootSelector}\`; - if("legacyRootSelector" in LiveRegionWrapper && LiveRegionWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${LiveRegionWrapper.rootSelector}, .\${LiveRegionWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, LiveRegionWrapper); -}; - -ElementWrapper.prototype.findAllLiveRegions = function(selector) { - return this.findAllComponents(LiveRegionWrapper, selector); -}; -ElementWrapper.prototype.findMixedLineBarChart = function(selector) { - let rootSelector = \`.\${MixedLineBarChartWrapper.rootSelector}\`; - if("legacyRootSelector" in MixedLineBarChartWrapper && MixedLineBarChartWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${MixedLineBarChartWrapper.rootSelector}, .\${MixedLineBarChartWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, MixedLineBarChartWrapper); -}; - -ElementWrapper.prototype.findAllMixedLineBarCharts = function(selector) { - return this.findAllComponents(MixedLineBarChartWrapper, selector); -}; -ElementWrapper.prototype.findModal = function(selector) { - let rootSelector = \`.\${ModalWrapper.rootSelector}\`; - if("legacyRootSelector" in ModalWrapper && ModalWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${ModalWrapper.rootSelector}, .\${ModalWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ModalWrapper); -}; - -ElementWrapper.prototype.findAllModals = function(selector) { - return this.findAllComponents(ModalWrapper, selector); -}; -ElementWrapper.prototype.findMultiselect = function(selector) { - let rootSelector = \`.\${MultiselectWrapper.rootSelector}\`; - if("legacyRootSelector" in MultiselectWrapper && MultiselectWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${MultiselectWrapper.rootSelector}, .\${MultiselectWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, MultiselectWrapper); -}; - -ElementWrapper.prototype.findAllMultiselects = function(selector) { - return this.findAllComponents(MultiselectWrapper, selector); -}; -ElementWrapper.prototype.findNavigableGroup = function(selector) { - let rootSelector = \`.\${NavigableGroupWrapper.rootSelector}\`; - if("legacyRootSelector" in NavigableGroupWrapper && NavigableGroupWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${NavigableGroupWrapper.rootSelector}, .\${NavigableGroupWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, NavigableGroupWrapper); -}; - -ElementWrapper.prototype.findAllNavigableGroups = function(selector) { - return this.findAllComponents(NavigableGroupWrapper, selector); -}; -ElementWrapper.prototype.findPagination = function(selector) { - let rootSelector = \`.\${PaginationWrapper.rootSelector}\`; - if("legacyRootSelector" in PaginationWrapper && PaginationWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${PaginationWrapper.rootSelector}, .\${PaginationWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, PaginationWrapper); -}; - -ElementWrapper.prototype.findAllPaginations = function(selector) { - return this.findAllComponents(PaginationWrapper, selector); -}; -ElementWrapper.prototype.findPanelLayout = function(selector) { - let rootSelector = \`.\${PanelLayoutWrapper.rootSelector}\`; - if("legacyRootSelector" in PanelLayoutWrapper && PanelLayoutWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${PanelLayoutWrapper.rootSelector}, .\${PanelLayoutWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, PanelLayoutWrapper); -}; - -ElementWrapper.prototype.findAllPanelLayouts = function(selector) { - return this.findAllComponents(PanelLayoutWrapper, selector); -}; -ElementWrapper.prototype.findPieChart = function(selector) { - let rootSelector = \`.\${PieChartWrapper.rootSelector}\`; - if("legacyRootSelector" in PieChartWrapper && PieChartWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${PieChartWrapper.rootSelector}, .\${PieChartWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, PieChartWrapper); -}; - -ElementWrapper.prototype.findAllPieCharts = function(selector) { - return this.findAllComponents(PieChartWrapper, selector); -}; -ElementWrapper.prototype.findPopover = function(selector) { - let rootSelector = \`.\${PopoverWrapper.rootSelector}\`; - if("legacyRootSelector" in PopoverWrapper && PopoverWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${PopoverWrapper.rootSelector}, .\${PopoverWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, PopoverWrapper); -}; - -ElementWrapper.prototype.findAllPopovers = function(selector) { - return this.findAllComponents(PopoverWrapper, selector); -}; -ElementWrapper.prototype.findProgressBar = function(selector) { - let rootSelector = \`.\${ProgressBarWrapper.rootSelector}\`; - if("legacyRootSelector" in ProgressBarWrapper && ProgressBarWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${ProgressBarWrapper.rootSelector}, .\${ProgressBarWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ProgressBarWrapper); -}; - -ElementWrapper.prototype.findAllProgressBars = function(selector) { - return this.findAllComponents(ProgressBarWrapper, selector); -}; -ElementWrapper.prototype.findPromptInput = function(selector) { - let rootSelector = \`.\${PromptInputWrapper.rootSelector}\`; - if("legacyRootSelector" in PromptInputWrapper && PromptInputWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${PromptInputWrapper.rootSelector}, .\${PromptInputWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, PromptInputWrapper); -}; - -ElementWrapper.prototype.findAllPromptInputs = function(selector) { - return this.findAllComponents(PromptInputWrapper, selector); -}; -ElementWrapper.prototype.findPropertyFilter = function(selector) { - let rootSelector = \`.\${PropertyFilterWrapper.rootSelector}\`; - if("legacyRootSelector" in PropertyFilterWrapper && PropertyFilterWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${PropertyFilterWrapper.rootSelector}, .\${PropertyFilterWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, PropertyFilterWrapper); -}; - -ElementWrapper.prototype.findAllPropertyFilters = function(selector) { - return this.findAllComponents(PropertyFilterWrapper, selector); -}; -ElementWrapper.prototype.findRadioButton = function(selector) { - let rootSelector = \`.\${RadioButtonWrapper.rootSelector}\`; - if("legacyRootSelector" in RadioButtonWrapper && RadioButtonWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${RadioButtonWrapper.rootSelector}, .\${RadioButtonWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, RadioButtonWrapper); -}; - -ElementWrapper.prototype.findAllRadioButtons = function(selector) { - return this.findAllComponents(RadioButtonWrapper, selector); -}; -ElementWrapper.prototype.findRadioGroup = function(selector) { - let rootSelector = \`.\${RadioGroupWrapper.rootSelector}\`; - if("legacyRootSelector" in RadioGroupWrapper && RadioGroupWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${RadioGroupWrapper.rootSelector}, .\${RadioGroupWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, RadioGroupWrapper); -}; - -ElementWrapper.prototype.findAllRadioGroups = function(selector) { - return this.findAllComponents(RadioGroupWrapper, selector); -}; -ElementWrapper.prototype.findS3ResourceSelector = function(selector) { - let rootSelector = \`.\${S3ResourceSelectorWrapper.rootSelector}\`; - if("legacyRootSelector" in S3ResourceSelectorWrapper && S3ResourceSelectorWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${S3ResourceSelectorWrapper.rootSelector}, .\${S3ResourceSelectorWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, S3ResourceSelectorWrapper); -}; - -ElementWrapper.prototype.findAllS3ResourceSelectors = function(selector) { - return this.findAllComponents(S3ResourceSelectorWrapper, selector); -}; -ElementWrapper.prototype.findSegmentedControl = function(selector) { - let rootSelector = \`.\${SegmentedControlWrapper.rootSelector}\`; - if("legacyRootSelector" in SegmentedControlWrapper && SegmentedControlWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${SegmentedControlWrapper.rootSelector}, .\${SegmentedControlWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, SegmentedControlWrapper); -}; - -ElementWrapper.prototype.findAllSegmentedControls = function(selector) { - return this.findAllComponents(SegmentedControlWrapper, selector); -}; -ElementWrapper.prototype.findSelect = function(selector) { - let rootSelector = \`.\${SelectWrapper.rootSelector}\`; - if("legacyRootSelector" in SelectWrapper && SelectWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${SelectWrapper.rootSelector}, .\${SelectWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, SelectWrapper); -}; - -ElementWrapper.prototype.findAllSelects = function(selector) { - return this.findAllComponents(SelectWrapper, selector); -}; -ElementWrapper.prototype.findSideNavigation = function(selector) { - let rootSelector = \`.\${SideNavigationWrapper.rootSelector}\`; - if("legacyRootSelector" in SideNavigationWrapper && SideNavigationWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${SideNavigationWrapper.rootSelector}, .\${SideNavigationWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, SideNavigationWrapper); -}; - -ElementWrapper.prototype.findAllSideNavigations = function(selector) { - return this.findAllComponents(SideNavigationWrapper, selector); -}; -ElementWrapper.prototype.findSlider = function(selector) { - let rootSelector = \`.\${SliderWrapper.rootSelector}\`; - if("legacyRootSelector" in SliderWrapper && SliderWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${SliderWrapper.rootSelector}, .\${SliderWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, SliderWrapper); -}; - -ElementWrapper.prototype.findAllSliders = function(selector) { - return this.findAllComponents(SliderWrapper, selector); -}; -ElementWrapper.prototype.findSpaceBetween = function(selector) { - let rootSelector = \`.\${SpaceBetweenWrapper.rootSelector}\`; - if("legacyRootSelector" in SpaceBetweenWrapper && SpaceBetweenWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${SpaceBetweenWrapper.rootSelector}, .\${SpaceBetweenWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, SpaceBetweenWrapper); -}; - -ElementWrapper.prototype.findAllSpaceBetweens = function(selector) { - return this.findAllComponents(SpaceBetweenWrapper, selector); -}; -ElementWrapper.prototype.findSpinner = function(selector) { - let rootSelector = \`.\${SpinnerWrapper.rootSelector}\`; - if("legacyRootSelector" in SpinnerWrapper && SpinnerWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${SpinnerWrapper.rootSelector}, .\${SpinnerWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, SpinnerWrapper); -}; - -ElementWrapper.prototype.findAllSpinners = function(selector) { - return this.findAllComponents(SpinnerWrapper, selector); -}; -ElementWrapper.prototype.findSplitPanel = function(selector) { - let rootSelector = \`.\${SplitPanelWrapper.rootSelector}\`; - if("legacyRootSelector" in SplitPanelWrapper && SplitPanelWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${SplitPanelWrapper.rootSelector}, .\${SplitPanelWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, SplitPanelWrapper); -}; - -ElementWrapper.prototype.findAllSplitPanels = function(selector) { - return this.findAllComponents(SplitPanelWrapper, selector); -}; -ElementWrapper.prototype.findStatusIndicator = function(selector) { - let rootSelector = \`.\${StatusIndicatorWrapper.rootSelector}\`; - if("legacyRootSelector" in StatusIndicatorWrapper && StatusIndicatorWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${StatusIndicatorWrapper.rootSelector}, .\${StatusIndicatorWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, StatusIndicatorWrapper); -}; - -ElementWrapper.prototype.findAllStatusIndicators = function(selector) { - return this.findAllComponents(StatusIndicatorWrapper, selector); -}; -ElementWrapper.prototype.findSteps = function(selector) { - let rootSelector = \`.\${StepsWrapper.rootSelector}\`; - if("legacyRootSelector" in StepsWrapper && StepsWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${StepsWrapper.rootSelector}, .\${StepsWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, StepsWrapper); -}; - -ElementWrapper.prototype.findAllSteps = function(selector) { - return this.findAllComponents(StepsWrapper, selector); -}; -ElementWrapper.prototype.findTable = function(selector) { - let rootSelector = \`.\${TableWrapper.rootSelector}\`; - if("legacyRootSelector" in TableWrapper && TableWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${TableWrapper.rootSelector}, .\${TableWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TableWrapper); -}; - -ElementWrapper.prototype.findAllTables = function(selector) { - return this.findAllComponents(TableWrapper, selector); -}; -ElementWrapper.prototype.findTabs = function(selector) { - let rootSelector = \`.\${TabsWrapper.rootSelector}\`; - if("legacyRootSelector" in TabsWrapper && TabsWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${TabsWrapper.rootSelector}, .\${TabsWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TabsWrapper); -}; - -ElementWrapper.prototype.findAllTabs = function(selector) { - return this.findAllComponents(TabsWrapper, selector); -}; -ElementWrapper.prototype.findTagEditor = function(selector) { - let rootSelector = \`.\${TagEditorWrapper.rootSelector}\`; - if("legacyRootSelector" in TagEditorWrapper && TagEditorWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${TagEditorWrapper.rootSelector}, .\${TagEditorWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TagEditorWrapper); -}; - -ElementWrapper.prototype.findAllTagEditors = function(selector) { - return this.findAllComponents(TagEditorWrapper, selector); -}; -ElementWrapper.prototype.findTextContent = function(selector) { - let rootSelector = \`.\${TextContentWrapper.rootSelector}\`; - if("legacyRootSelector" in TextContentWrapper && TextContentWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${TextContentWrapper.rootSelector}, .\${TextContentWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TextContentWrapper); -}; - -ElementWrapper.prototype.findAllTextContents = function(selector) { - return this.findAllComponents(TextContentWrapper, selector); -}; -ElementWrapper.prototype.findTextFilter = function(selector) { - let rootSelector = \`.\${TextFilterWrapper.rootSelector}\`; - if("legacyRootSelector" in TextFilterWrapper && TextFilterWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${TextFilterWrapper.rootSelector}, .\${TextFilterWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TextFilterWrapper); -}; - -ElementWrapper.prototype.findAllTextFilters = function(selector) { - return this.findAllComponents(TextFilterWrapper, selector); -}; -ElementWrapper.prototype.findTextarea = function(selector) { - let rootSelector = \`.\${TextareaWrapper.rootSelector}\`; - if("legacyRootSelector" in TextareaWrapper && TextareaWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${TextareaWrapper.rootSelector}, .\${TextareaWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TextareaWrapper); -}; - -ElementWrapper.prototype.findAllTextareas = function(selector) { - return this.findAllComponents(TextareaWrapper, selector); -}; -ElementWrapper.prototype.findTiles = function(selector) { - let rootSelector = \`.\${TilesWrapper.rootSelector}\`; - if("legacyRootSelector" in TilesWrapper && TilesWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${TilesWrapper.rootSelector}, .\${TilesWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TilesWrapper); -}; - -ElementWrapper.prototype.findAllTiles = function(selector) { - return this.findAllComponents(TilesWrapper, selector); -}; -ElementWrapper.prototype.findTimeInput = function(selector) { - let rootSelector = \`.\${TimeInputWrapper.rootSelector}\`; - if("legacyRootSelector" in TimeInputWrapper && TimeInputWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${TimeInputWrapper.rootSelector}, .\${TimeInputWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TimeInputWrapper); -}; - -ElementWrapper.prototype.findAllTimeInputs = function(selector) { - return this.findAllComponents(TimeInputWrapper, selector); -}; -ElementWrapper.prototype.findToggle = function(selector) { - let rootSelector = \`.\${ToggleWrapper.rootSelector}\`; - if("legacyRootSelector" in ToggleWrapper && ToggleWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${ToggleWrapper.rootSelector}, .\${ToggleWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ToggleWrapper); -}; - -ElementWrapper.prototype.findAllToggles = function(selector) { - return this.findAllComponents(ToggleWrapper, selector); -}; -ElementWrapper.prototype.findToggleButton = function(selector) { - let rootSelector = \`.\${ToggleButtonWrapper.rootSelector}\`; - if("legacyRootSelector" in ToggleButtonWrapper && ToggleButtonWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${ToggleButtonWrapper.rootSelector}, .\${ToggleButtonWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ToggleButtonWrapper); -}; - -ElementWrapper.prototype.findAllToggleButtons = function(selector) { - return this.findAllComponents(ToggleButtonWrapper, selector); -}; -ElementWrapper.prototype.findToken = function(selector) { - let rootSelector = \`.\${TokenWrapper.rootSelector}\`; - if("legacyRootSelector" in TokenWrapper && TokenWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${TokenWrapper.rootSelector}, .\${TokenWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TokenWrapper); -}; - -ElementWrapper.prototype.findAllTokens = function(selector) { - return this.findAllComponents(TokenWrapper, selector); -}; -ElementWrapper.prototype.findTokenGroup = function(selector) { - let rootSelector = \`.\${TokenGroupWrapper.rootSelector}\`; - if("legacyRootSelector" in TokenGroupWrapper && TokenGroupWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${TokenGroupWrapper.rootSelector}, .\${TokenGroupWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TokenGroupWrapper); -}; - -ElementWrapper.prototype.findAllTokenGroups = function(selector) { - return this.findAllComponents(TokenGroupWrapper, selector); -}; -ElementWrapper.prototype.findTooltip = function(selector) { - let rootSelector = \`.\${TooltipWrapper.rootSelector}\`; - if("legacyRootSelector" in TooltipWrapper && TooltipWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${TooltipWrapper.rootSelector}, .\${TooltipWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TooltipWrapper); -}; - -ElementWrapper.prototype.findAllTooltips = function(selector) { - return this.findAllComponents(TooltipWrapper, selector); -}; -ElementWrapper.prototype.findTopNavigation = function(selector) { - let rootSelector = \`.\${TopNavigationWrapper.rootSelector}\`; - if("legacyRootSelector" in TopNavigationWrapper && TopNavigationWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${TopNavigationWrapper.rootSelector}, .\${TopNavigationWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TopNavigationWrapper); -}; - -ElementWrapper.prototype.findAllTopNavigations = function(selector) { - return this.findAllComponents(TopNavigationWrapper, selector); -}; -ElementWrapper.prototype.findTreeView = function(selector) { - let rootSelector = \`.\${TreeViewWrapper.rootSelector}\`; - if("legacyRootSelector" in TreeViewWrapper && TreeViewWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${TreeViewWrapper.rootSelector}, .\${TreeViewWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TreeViewWrapper); -}; - -ElementWrapper.prototype.findAllTreeViews = function(selector) { - return this.findAllComponents(TreeViewWrapper, selector); -}; -ElementWrapper.prototype.findTutorialPanel = function(selector) { - let rootSelector = \`.\${TutorialPanelWrapper.rootSelector}\`; - if("legacyRootSelector" in TutorialPanelWrapper && TutorialPanelWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${TutorialPanelWrapper.rootSelector}, .\${TutorialPanelWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TutorialPanelWrapper); -}; - -ElementWrapper.prototype.findAllTutorialPanels = function(selector) { - return this.findAllComponents(TutorialPanelWrapper, selector); -}; -ElementWrapper.prototype.findWizard = function(selector) { - let rootSelector = \`.\${WizardWrapper.rootSelector}\`; - if("legacyRootSelector" in WizardWrapper && WizardWrapper.legacyRootSelector){ - rootSelector = \`:is(.\${WizardWrapper.rootSelector}, .\${WizardWrapper.legacyRootSelector})\`; - } - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, WizardWrapper); -}; - -ElementWrapper.prototype.findAllWizards = function(selector) { - return this.findAllComponents(WizardWrapper, selector); -}; - -ElementWrapper.prototype.findClosestActionCard = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(ActionCardWrapper); -}; -ElementWrapper.prototype.findClosestAlert = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(AlertWrapper); -}; -ElementWrapper.prototype.findClosestAnchorNavigation = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(AnchorNavigationWrapper); -}; -ElementWrapper.prototype.findClosestAnnotation = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(AnnotationWrapper); -}; -ElementWrapper.prototype.findClosestAppLayout = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(AppLayoutWrapper); -}; -ElementWrapper.prototype.findClosestAppLayoutToolbar = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(AppLayoutToolbarWrapper); -}; -ElementWrapper.prototype.findClosestAreaChart = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(AreaChartWrapper); -}; -ElementWrapper.prototype.findClosestAttributeEditor = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(AttributeEditorWrapper); -}; -ElementWrapper.prototype.findClosestAutosuggest = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(AutosuggestWrapper); -}; -ElementWrapper.prototype.findClosestBadge = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(BadgeWrapper); -}; -ElementWrapper.prototype.findClosestBarChart = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(BarChartWrapper); -}; -ElementWrapper.prototype.findClosestBox = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(BoxWrapper); -}; -ElementWrapper.prototype.findClosestBreadcrumbGroup = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(BreadcrumbGroupWrapper); -}; -ElementWrapper.prototype.findClosestButton = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(ButtonWrapper); -}; -ElementWrapper.prototype.findClosestButtonDropdown = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(ButtonDropdownWrapper); -}; -ElementWrapper.prototype.findClosestButtonGroup = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(ButtonGroupWrapper); -}; -ElementWrapper.prototype.findClosestCalendar = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(CalendarWrapper); -}; -ElementWrapper.prototype.findClosestCards = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(CardsWrapper); -}; -ElementWrapper.prototype.findClosestCheckbox = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(CheckboxWrapper); -}; -ElementWrapper.prototype.findClosestCodeEditor = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(CodeEditorWrapper); -}; -ElementWrapper.prototype.findClosestCollectionPreferences = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(CollectionPreferencesWrapper); -}; -ElementWrapper.prototype.findClosestColumnLayout = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(ColumnLayoutWrapper); -}; -ElementWrapper.prototype.findClosestContainer = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(ContainerWrapper); -}; -ElementWrapper.prototype.findClosestContentLayout = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(ContentLayoutWrapper); -}; -ElementWrapper.prototype.findClosestCopyToClipboard = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(CopyToClipboardWrapper); -}; -ElementWrapper.prototype.findClosestDateInput = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(DateInputWrapper); -}; -ElementWrapper.prototype.findClosestDatePicker = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(DatePickerWrapper); -}; -ElementWrapper.prototype.findClosestDateRangePicker = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(DateRangePickerWrapper); -}; -ElementWrapper.prototype.findClosestDrawer = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(DrawerWrapper); -}; -ElementWrapper.prototype.findClosestDropdown = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(DropdownWrapper); -}; -ElementWrapper.prototype.findClosestErrorBoundary = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(ErrorBoundaryWrapper); -}; -ElementWrapper.prototype.findClosestExpandableSection = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(ExpandableSectionWrapper); -}; -ElementWrapper.prototype.findClosestFileDropzone = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(FileDropzoneWrapper); -}; -ElementWrapper.prototype.findClosestFileInput = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(FileInputWrapper); -}; -ElementWrapper.prototype.findClosestFileTokenGroup = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(FileTokenGroupWrapper); -}; -ElementWrapper.prototype.findClosestFileUpload = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(FileUploadWrapper); -}; -ElementWrapper.prototype.findClosestFlashbar = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(FlashbarWrapper); -}; -ElementWrapper.prototype.findClosestForm = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(FormWrapper); -}; -ElementWrapper.prototype.findClosestFormField = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(FormFieldWrapper); -}; -ElementWrapper.prototype.findClosestGrid = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(GridWrapper); -}; -ElementWrapper.prototype.findClosestHeader = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(HeaderWrapper); -}; -ElementWrapper.prototype.findClosestHelpPanel = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(HelpPanelWrapper); -}; -ElementWrapper.prototype.findClosestHotspot = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(HotspotWrapper); -}; -ElementWrapper.prototype.findClosestIcon = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(IconWrapper); -}; -ElementWrapper.prototype.findClosestInput = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(InputWrapper); -}; -ElementWrapper.prototype.findClosestItemCard = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(ItemCardWrapper); -}; -ElementWrapper.prototype.findClosestKeyValuePairs = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(KeyValuePairsWrapper); -}; -ElementWrapper.prototype.findClosestLineChart = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(LineChartWrapper); -}; -ElementWrapper.prototype.findClosestLink = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(LinkWrapper); -}; -ElementWrapper.prototype.findClosestList = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(ListWrapper); -}; -ElementWrapper.prototype.findClosestLiveRegion = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(LiveRegionWrapper); -}; -ElementWrapper.prototype.findClosestMixedLineBarChart = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(MixedLineBarChartWrapper); -}; -ElementWrapper.prototype.findClosestModal = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(ModalWrapper); -}; -ElementWrapper.prototype.findClosestMultiselect = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(MultiselectWrapper); -}; -ElementWrapper.prototype.findClosestNavigableGroup = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(NavigableGroupWrapper); -}; -ElementWrapper.prototype.findClosestPagination = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(PaginationWrapper); -}; -ElementWrapper.prototype.findClosestPanelLayout = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(PanelLayoutWrapper); -}; -ElementWrapper.prototype.findClosestPieChart = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(PieChartWrapper); -}; -ElementWrapper.prototype.findClosestPopover = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(PopoverWrapper); -}; -ElementWrapper.prototype.findClosestProgressBar = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(ProgressBarWrapper); -}; -ElementWrapper.prototype.findClosestPromptInput = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(PromptInputWrapper); -}; -ElementWrapper.prototype.findClosestPropertyFilter = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(PropertyFilterWrapper); -}; -ElementWrapper.prototype.findClosestRadioButton = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(RadioButtonWrapper); -}; -ElementWrapper.prototype.findClosestRadioGroup = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(RadioGroupWrapper); -}; -ElementWrapper.prototype.findClosestS3ResourceSelector = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(S3ResourceSelectorWrapper); -}; -ElementWrapper.prototype.findClosestSegmentedControl = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(SegmentedControlWrapper); -}; -ElementWrapper.prototype.findClosestSelect = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(SelectWrapper); -}; -ElementWrapper.prototype.findClosestSideNavigation = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(SideNavigationWrapper); -}; -ElementWrapper.prototype.findClosestSlider = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(SliderWrapper); -}; -ElementWrapper.prototype.findClosestSpaceBetween = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(SpaceBetweenWrapper); -}; -ElementWrapper.prototype.findClosestSpinner = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(SpinnerWrapper); -}; -ElementWrapper.prototype.findClosestSplitPanel = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(SplitPanelWrapper); -}; -ElementWrapper.prototype.findClosestStatusIndicator = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(StatusIndicatorWrapper); -}; -ElementWrapper.prototype.findClosestSteps = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(StepsWrapper); -}; -ElementWrapper.prototype.findClosestTable = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(TableWrapper); -}; -ElementWrapper.prototype.findClosestTabs = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(TabsWrapper); -}; -ElementWrapper.prototype.findClosestTagEditor = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(TagEditorWrapper); -}; -ElementWrapper.prototype.findClosestTextContent = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(TextContentWrapper); -}; -ElementWrapper.prototype.findClosestTextFilter = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(TextFilterWrapper); -}; -ElementWrapper.prototype.findClosestTextarea = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(TextareaWrapper); -}; -ElementWrapper.prototype.findClosestTiles = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(TilesWrapper); -}; -ElementWrapper.prototype.findClosestTimeInput = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(TimeInputWrapper); -}; -ElementWrapper.prototype.findClosestToggle = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(ToggleWrapper); -}; -ElementWrapper.prototype.findClosestToggleButton = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(ToggleButtonWrapper); -}; -ElementWrapper.prototype.findClosestToken = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(TokenWrapper); -}; -ElementWrapper.prototype.findClosestTokenGroup = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(TokenGroupWrapper); -}; -ElementWrapper.prototype.findClosestTooltip = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(TooltipWrapper); -}; -ElementWrapper.prototype.findClosestTopNavigation = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(TopNavigationWrapper); -}; -ElementWrapper.prototype.findClosestTreeView = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(TreeViewWrapper); -}; -ElementWrapper.prototype.findClosestTutorialPanel = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(TutorialPanelWrapper); -}; -ElementWrapper.prototype.findClosestWizard = function() { - // casting to 'any' is needed to avoid this issue with generics - // https://github.com/microsoft/TypeScript/issues/29132 - return (this as any).findClosestComponent(WizardWrapper); -}; - +import { ElementWrapper } from '@cloudscape-design/test-utils-core/dom'; +export { ElementWrapper }; export default function wrapper(root: Element = document.body) { - if (document && document.body && !document.body.contains(root)) { - console.warn('[AwsUi] [test-utils] provided element is not part of the document body, interactions may work incorrectly') - }; return new ElementWrapper(root); } " @@ -7335,4 +2947,4 @@ export default function wrapper(root: string = 'body') { return new ElementWrapper(root); } " -`; \ No newline at end of file +`; From a8fead0199575e8e8c813cd9d5e3bb910fc9ec13 Mon Sep 17 00:00:00 2001 From: Nathnael Dereje Date: Thu, 16 Apr 2026 18:29:32 +0200 Subject: [PATCH 05/16] chore: Update test snapshots --- .../test-utils-wrappers.test.tsx.snap | 4388 +++++++++++++++++ 1 file changed, 4388 insertions(+) diff --git a/src/__tests__/snapshot-tests/__snapshots__/test-utils-wrappers.test.tsx.snap b/src/__tests__/snapshot-tests/__snapshots__/test-utils-wrappers.test.tsx.snap index 453a42fca3..d98cd076ae 100644 --- a/src/__tests__/snapshot-tests/__snapshots__/test-utils-wrappers.test.tsx.snap +++ b/src/__tests__/snapshot-tests/__snapshots__/test-utils-wrappers.test.tsx.snap @@ -2,9 +2,4397 @@ exports[`Generate test utils ElementWrapper dom ElementWrapper matches the snapshot 1`] = ` " +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 import { ElementWrapper } from '@cloudscape-design/test-utils-core/dom'; +import { appendSelector } from '@cloudscape-design/test-utils-core/utils'; + export { ElementWrapper }; + +import ActionCardWrapper from './action-card'; +import AlertWrapper from './alert'; +import AnchorNavigationWrapper from './anchor-navigation'; +import AnnotationWrapper from './annotation'; +import AppLayoutWrapper from './app-layout'; +import AppLayoutToolbarWrapper from './app-layout-toolbar'; +import AreaChartWrapper from './area-chart'; +import AttributeEditorWrapper from './attribute-editor'; +import AutosuggestWrapper from './autosuggest'; +import BadgeWrapper from './badge'; +import BarChartWrapper from './bar-chart'; +import BoxWrapper from './box'; +import BreadcrumbGroupWrapper from './breadcrumb-group'; +import ButtonWrapper from './button'; +import ButtonDropdownWrapper from './button-dropdown'; +import ButtonGroupWrapper from './button-group'; +import CalendarWrapper from './calendar'; +import CardsWrapper from './cards'; +import CheckboxWrapper from './checkbox'; +import CodeEditorWrapper from './code-editor'; +import CollectionPreferencesWrapper from './collection-preferences'; +import ColumnLayoutWrapper from './column-layout'; +import ContainerWrapper from './container'; +import ContentLayoutWrapper from './content-layout'; +import CopyToClipboardWrapper from './copy-to-clipboard'; +import DateInputWrapper from './date-input'; +import DatePickerWrapper from './date-picker'; +import DateRangePickerWrapper from './date-range-picker'; +import DrawerWrapper from './drawer'; +import DropdownWrapper from './dropdown'; +import ErrorBoundaryWrapper from './error-boundary'; +import ExpandableSectionWrapper from './expandable-section'; +import FileDropzoneWrapper from './file-dropzone'; +import FileInputWrapper from './file-input'; +import FileTokenGroupWrapper from './file-token-group'; +import FileUploadWrapper from './file-upload'; +import FlashbarWrapper from './flashbar'; +import FormWrapper from './form'; +import FormFieldWrapper from './form-field'; +import GridWrapper from './grid'; +import HeaderWrapper from './header'; +import HelpPanelWrapper from './help-panel'; +import HotspotWrapper from './hotspot'; +import IconWrapper from './icon'; +import InputWrapper from './input'; +import ItemCardWrapper from './item-card'; +import KeyValuePairsWrapper from './key-value-pairs'; +import LineChartWrapper from './line-chart'; +import LinkWrapper from './link'; +import ListWrapper from './list'; +import LiveRegionWrapper from './live-region'; +import MixedLineBarChartWrapper from './mixed-line-bar-chart'; +import ModalWrapper from './modal'; +import MultiselectWrapper from './multiselect'; +import NavigableGroupWrapper from './navigable-group'; +import PaginationWrapper from './pagination'; +import PanelLayoutWrapper from './panel-layout'; +import PieChartWrapper from './pie-chart'; +import PopoverWrapper from './popover'; +import ProgressBarWrapper from './progress-bar'; +import PromptInputWrapper from './prompt-input'; +import PropertyFilterWrapper from './property-filter'; +import RadioButtonWrapper from './radio-button'; +import RadioGroupWrapper from './radio-group'; +import S3ResourceSelectorWrapper from './s3-resource-selector'; +import SegmentedControlWrapper from './segmented-control'; +import SelectWrapper from './select'; +import SideNavigationWrapper from './side-navigation'; +import SliderWrapper from './slider'; +import SpaceBetweenWrapper from './space-between'; +import SpinnerWrapper from './spinner'; +import SplitPanelWrapper from './split-panel'; +import StatusIndicatorWrapper from './status-indicator'; +import StepsWrapper from './steps'; +import TableWrapper from './table'; +import TabsWrapper from './tabs'; +import TagEditorWrapper from './tag-editor'; +import TextContentWrapper from './text-content'; +import TextFilterWrapper from './text-filter'; +import TextareaWrapper from './textarea'; +import TilesWrapper from './tiles'; +import TimeInputWrapper from './time-input'; +import ToggleWrapper from './toggle'; +import ToggleButtonWrapper from './toggle-button'; +import TokenWrapper from './token'; +import TokenGroupWrapper from './token-group'; +import TooltipWrapper from './tooltip'; +import TopNavigationWrapper from './top-navigation'; +import TreeViewWrapper from './tree-view'; +import TutorialPanelWrapper from './tutorial-panel'; +import WizardWrapper from './wizard'; + + +export { ActionCardWrapper }; +export { AlertWrapper }; +export { AnchorNavigationWrapper }; +export { AnnotationWrapper }; +export { AppLayoutWrapper }; +export { AppLayoutToolbarWrapper }; +export { AreaChartWrapper }; +export { AttributeEditorWrapper }; +export { AutosuggestWrapper }; +export { BadgeWrapper }; +export { BarChartWrapper }; +export { BoxWrapper }; +export { BreadcrumbGroupWrapper }; +export { ButtonWrapper }; +export { ButtonDropdownWrapper }; +export { ButtonGroupWrapper }; +export { CalendarWrapper }; +export { CardsWrapper }; +export { CheckboxWrapper }; +export { CodeEditorWrapper }; +export { CollectionPreferencesWrapper }; +export { ColumnLayoutWrapper }; +export { ContainerWrapper }; +export { ContentLayoutWrapper }; +export { CopyToClipboardWrapper }; +export { DateInputWrapper }; +export { DatePickerWrapper }; +export { DateRangePickerWrapper }; +export { DrawerWrapper }; +export { DropdownWrapper }; +export { ErrorBoundaryWrapper }; +export { ExpandableSectionWrapper }; +export { FileDropzoneWrapper }; +export { FileInputWrapper }; +export { FileTokenGroupWrapper }; +export { FileUploadWrapper }; +export { FlashbarWrapper }; +export { FormWrapper }; +export { FormFieldWrapper }; +export { GridWrapper }; +export { HeaderWrapper }; +export { HelpPanelWrapper }; +export { HotspotWrapper }; +export { IconWrapper }; +export { InputWrapper }; +export { ItemCardWrapper }; +export { KeyValuePairsWrapper }; +export { LineChartWrapper }; +export { LinkWrapper }; +export { ListWrapper }; +export { LiveRegionWrapper }; +export { MixedLineBarChartWrapper }; +export { ModalWrapper }; +export { MultiselectWrapper }; +export { NavigableGroupWrapper }; +export { PaginationWrapper }; +export { PanelLayoutWrapper }; +export { PieChartWrapper }; +export { PopoverWrapper }; +export { ProgressBarWrapper }; +export { PromptInputWrapper }; +export { PropertyFilterWrapper }; +export { RadioButtonWrapper }; +export { RadioGroupWrapper }; +export { S3ResourceSelectorWrapper }; +export { SegmentedControlWrapper }; +export { SelectWrapper }; +export { SideNavigationWrapper }; +export { SliderWrapper }; +export { SpaceBetweenWrapper }; +export { SpinnerWrapper }; +export { SplitPanelWrapper }; +export { StatusIndicatorWrapper }; +export { StepsWrapper }; +export { TableWrapper }; +export { TabsWrapper }; +export { TagEditorWrapper }; +export { TextContentWrapper }; +export { TextFilterWrapper }; +export { TextareaWrapper }; +export { TilesWrapper }; +export { TimeInputWrapper }; +export { ToggleWrapper }; +export { ToggleButtonWrapper }; +export { TokenWrapper }; +export { TokenGroupWrapper }; +export { TooltipWrapper }; +export { TopNavigationWrapper }; +export { TreeViewWrapper }; +export { TutorialPanelWrapper }; +export { WizardWrapper }; + +declare module '@cloudscape-design/test-utils-core/dist/dom' { + interface ElementWrapper { + +/** + * Returns the wrapper of the first ActionCard that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first ActionCard. + * If no matching ActionCard is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {ActionCardWrapper | null} + */ +findActionCard(selector?: string): ActionCardWrapper | null; + +/** + * Returns an array of ActionCard wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the ActionCards inside the current wrapper. + * If no matching ActionCard is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllActionCards(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent ActionCard for the current element, + * or the element itself if it is an instance of ActionCard. + * If no ActionCard is found, returns \`null\`. + * + * @returns {ActionCardWrapper | null} + */ +findClosestActionCard(): ActionCardWrapper | null; +/** + * Returns the wrapper of the first Alert that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Alert. + * If no matching Alert is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {AlertWrapper | null} + */ +findAlert(selector?: string): AlertWrapper | null; + +/** + * Returns an array of Alert wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Alerts inside the current wrapper. + * If no matching Alert is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllAlerts(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Alert for the current element, + * or the element itself if it is an instance of Alert. + * If no Alert is found, returns \`null\`. + * + * @returns {AlertWrapper | null} + */ +findClosestAlert(): AlertWrapper | null; +/** + * Returns the wrapper of the first AnchorNavigation that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first AnchorNavigation. + * If no matching AnchorNavigation is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {AnchorNavigationWrapper | null} + */ +findAnchorNavigation(selector?: string): AnchorNavigationWrapper | null; + +/** + * Returns an array of AnchorNavigation wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the AnchorNavigations inside the current wrapper. + * If no matching AnchorNavigation is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllAnchorNavigations(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent AnchorNavigation for the current element, + * or the element itself if it is an instance of AnchorNavigation. + * If no AnchorNavigation is found, returns \`null\`. + * + * @returns {AnchorNavigationWrapper | null} + */ +findClosestAnchorNavigation(): AnchorNavigationWrapper | null; +/** + * Returns the wrapper of the first Annotation that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Annotation. + * If no matching Annotation is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {AnnotationWrapper | null} + */ +findAnnotation(selector?: string): AnnotationWrapper | null; + +/** + * Returns an array of Annotation wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Annotations inside the current wrapper. + * If no matching Annotation is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllAnnotations(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Annotation for the current element, + * or the element itself if it is an instance of Annotation. + * If no Annotation is found, returns \`null\`. + * + * @returns {AnnotationWrapper | null} + */ +findClosestAnnotation(): AnnotationWrapper | null; +/** + * Returns the wrapper of the first AppLayout that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first AppLayout. + * If no matching AppLayout is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {AppLayoutWrapper | null} + */ +findAppLayout(selector?: string): AppLayoutWrapper | null; + +/** + * Returns an array of AppLayout wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the AppLayouts inside the current wrapper. + * If no matching AppLayout is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllAppLayouts(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent AppLayout for the current element, + * or the element itself if it is an instance of AppLayout. + * If no AppLayout is found, returns \`null\`. + * + * @returns {AppLayoutWrapper | null} + */ +findClosestAppLayout(): AppLayoutWrapper | null; +/** + * Returns the wrapper of the first AppLayoutToolbar that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first AppLayoutToolbar. + * If no matching AppLayoutToolbar is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {AppLayoutToolbarWrapper | null} + */ +findAppLayoutToolbar(selector?: string): AppLayoutToolbarWrapper | null; + +/** + * Returns an array of AppLayoutToolbar wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the AppLayoutToolbars inside the current wrapper. + * If no matching AppLayoutToolbar is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllAppLayoutToolbars(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent AppLayoutToolbar for the current element, + * or the element itself if it is an instance of AppLayoutToolbar. + * If no AppLayoutToolbar is found, returns \`null\`. + * + * @returns {AppLayoutToolbarWrapper | null} + */ +findClosestAppLayoutToolbar(): AppLayoutToolbarWrapper | null; +/** + * Returns the wrapper of the first AreaChart that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first AreaChart. + * If no matching AreaChart is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {AreaChartWrapper | null} + */ +findAreaChart(selector?: string): AreaChartWrapper | null; + +/** + * Returns an array of AreaChart wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the AreaCharts inside the current wrapper. + * If no matching AreaChart is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllAreaCharts(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent AreaChart for the current element, + * or the element itself if it is an instance of AreaChart. + * If no AreaChart is found, returns \`null\`. + * + * @returns {AreaChartWrapper | null} + */ +findClosestAreaChart(): AreaChartWrapper | null; +/** + * Returns the wrapper of the first AttributeEditor that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first AttributeEditor. + * If no matching AttributeEditor is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {AttributeEditorWrapper | null} + */ +findAttributeEditor(selector?: string): AttributeEditorWrapper | null; + +/** + * Returns an array of AttributeEditor wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the AttributeEditors inside the current wrapper. + * If no matching AttributeEditor is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllAttributeEditors(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent AttributeEditor for the current element, + * or the element itself if it is an instance of AttributeEditor. + * If no AttributeEditor is found, returns \`null\`. + * + * @returns {AttributeEditorWrapper | null} + */ +findClosestAttributeEditor(): AttributeEditorWrapper | null; +/** + * Returns the wrapper of the first Autosuggest that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Autosuggest. + * If no matching Autosuggest is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {AutosuggestWrapper | null} + */ +findAutosuggest(selector?: string): AutosuggestWrapper | null; + +/** + * Returns an array of Autosuggest wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Autosuggests inside the current wrapper. + * If no matching Autosuggest is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllAutosuggests(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Autosuggest for the current element, + * or the element itself if it is an instance of Autosuggest. + * If no Autosuggest is found, returns \`null\`. + * + * @returns {AutosuggestWrapper | null} + */ +findClosestAutosuggest(): AutosuggestWrapper | null; +/** + * Returns the wrapper of the first Badge that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Badge. + * If no matching Badge is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {BadgeWrapper | null} + */ +findBadge(selector?: string): BadgeWrapper | null; + +/** + * Returns an array of Badge wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Badges inside the current wrapper. + * If no matching Badge is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllBadges(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Badge for the current element, + * or the element itself if it is an instance of Badge. + * If no Badge is found, returns \`null\`. + * + * @returns {BadgeWrapper | null} + */ +findClosestBadge(): BadgeWrapper | null; +/** + * Returns the wrapper of the first BarChart that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first BarChart. + * If no matching BarChart is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {BarChartWrapper | null} + */ +findBarChart(selector?: string): BarChartWrapper | null; + +/** + * Returns an array of BarChart wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the BarCharts inside the current wrapper. + * If no matching BarChart is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllBarCharts(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent BarChart for the current element, + * or the element itself if it is an instance of BarChart. + * If no BarChart is found, returns \`null\`. + * + * @returns {BarChartWrapper | null} + */ +findClosestBarChart(): BarChartWrapper | null; +/** + * Returns the wrapper of the first Box that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Box. + * If no matching Box is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {BoxWrapper | null} + */ +findBox(selector?: string): BoxWrapper | null; + +/** + * Returns an array of Box wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Boxes inside the current wrapper. + * If no matching Box is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllBoxes(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Box for the current element, + * or the element itself if it is an instance of Box. + * If no Box is found, returns \`null\`. + * + * @returns {BoxWrapper | null} + */ +findClosestBox(): BoxWrapper | null; +/** + * Returns the wrapper of the first BreadcrumbGroup that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first BreadcrumbGroup. + * If no matching BreadcrumbGroup is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {BreadcrumbGroupWrapper | null} + */ +findBreadcrumbGroup(selector?: string): BreadcrumbGroupWrapper | null; + +/** + * Returns an array of BreadcrumbGroup wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the BreadcrumbGroups inside the current wrapper. + * If no matching BreadcrumbGroup is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllBreadcrumbGroups(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent BreadcrumbGroup for the current element, + * or the element itself if it is an instance of BreadcrumbGroup. + * If no BreadcrumbGroup is found, returns \`null\`. + * + * @returns {BreadcrumbGroupWrapper | null} + */ +findClosestBreadcrumbGroup(): BreadcrumbGroupWrapper | null; +/** + * Returns the wrapper of the first Button that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Button. + * If no matching Button is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {ButtonWrapper | null} + */ +findButton(selector?: string): ButtonWrapper | null; + +/** + * Returns an array of Button wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Buttons inside the current wrapper. + * If no matching Button is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllButtons(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Button for the current element, + * or the element itself if it is an instance of Button. + * If no Button is found, returns \`null\`. + * + * @returns {ButtonWrapper | null} + */ +findClosestButton(): ButtonWrapper | null; +/** + * Returns the wrapper of the first ButtonDropdown that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first ButtonDropdown. + * If no matching ButtonDropdown is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {ButtonDropdownWrapper | null} + */ +findButtonDropdown(selector?: string): ButtonDropdownWrapper | null; + +/** + * Returns an array of ButtonDropdown wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the ButtonDropdowns inside the current wrapper. + * If no matching ButtonDropdown is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllButtonDropdowns(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent ButtonDropdown for the current element, + * or the element itself if it is an instance of ButtonDropdown. + * If no ButtonDropdown is found, returns \`null\`. + * + * @returns {ButtonDropdownWrapper | null} + */ +findClosestButtonDropdown(): ButtonDropdownWrapper | null; +/** + * Returns the wrapper of the first ButtonGroup that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first ButtonGroup. + * If no matching ButtonGroup is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {ButtonGroupWrapper | null} + */ +findButtonGroup(selector?: string): ButtonGroupWrapper | null; + +/** + * Returns an array of ButtonGroup wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the ButtonGroups inside the current wrapper. + * If no matching ButtonGroup is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllButtonGroups(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent ButtonGroup for the current element, + * or the element itself if it is an instance of ButtonGroup. + * If no ButtonGroup is found, returns \`null\`. + * + * @returns {ButtonGroupWrapper | null} + */ +findClosestButtonGroup(): ButtonGroupWrapper | null; +/** + * Returns the wrapper of the first Calendar that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Calendar. + * If no matching Calendar is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {CalendarWrapper | null} + */ +findCalendar(selector?: string): CalendarWrapper | null; + +/** + * Returns an array of Calendar wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Calendars inside the current wrapper. + * If no matching Calendar is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllCalendars(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Calendar for the current element, + * or the element itself if it is an instance of Calendar. + * If no Calendar is found, returns \`null\`. + * + * @returns {CalendarWrapper | null} + */ +findClosestCalendar(): CalendarWrapper | null; +/** + * Returns the wrapper of the first Cards that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Cards. + * If no matching Cards is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {CardsWrapper | null} + */ +findCards(selector?: string): CardsWrapper | null; + +/** + * Returns an array of Cards wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Cards inside the current wrapper. + * If no matching Cards is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllCards(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Cards for the current element, + * or the element itself if it is an instance of Cards. + * If no Cards is found, returns \`null\`. + * + * @returns {CardsWrapper | null} + */ +findClosestCards(): CardsWrapper | null; +/** + * Returns the wrapper of the first Checkbox that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Checkbox. + * If no matching Checkbox is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {CheckboxWrapper | null} + */ +findCheckbox(selector?: string): CheckboxWrapper | null; + +/** + * Returns an array of Checkbox wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Checkboxes inside the current wrapper. + * If no matching Checkbox is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllCheckboxes(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Checkbox for the current element, + * or the element itself if it is an instance of Checkbox. + * If no Checkbox is found, returns \`null\`. + * + * @returns {CheckboxWrapper | null} + */ +findClosestCheckbox(): CheckboxWrapper | null; +/** + * Returns the wrapper of the first CodeEditor that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first CodeEditor. + * If no matching CodeEditor is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {CodeEditorWrapper | null} + */ +findCodeEditor(selector?: string): CodeEditorWrapper | null; + +/** + * Returns an array of CodeEditor wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the CodeEditors inside the current wrapper. + * If no matching CodeEditor is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllCodeEditors(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent CodeEditor for the current element, + * or the element itself if it is an instance of CodeEditor. + * If no CodeEditor is found, returns \`null\`. + * + * @returns {CodeEditorWrapper | null} + */ +findClosestCodeEditor(): CodeEditorWrapper | null; +/** + * Returns the wrapper of the first CollectionPreferences that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first CollectionPreferences. + * If no matching CollectionPreferences is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {CollectionPreferencesWrapper | null} + */ +findCollectionPreferences(selector?: string): CollectionPreferencesWrapper | null; + +/** + * Returns an array of CollectionPreferences wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the CollectionPreferences inside the current wrapper. + * If no matching CollectionPreferences is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllCollectionPreferences(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent CollectionPreferences for the current element, + * or the element itself if it is an instance of CollectionPreferences. + * If no CollectionPreferences is found, returns \`null\`. + * + * @returns {CollectionPreferencesWrapper | null} + */ +findClosestCollectionPreferences(): CollectionPreferencesWrapper | null; +/** + * Returns the wrapper of the first ColumnLayout that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first ColumnLayout. + * If no matching ColumnLayout is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {ColumnLayoutWrapper | null} + */ +findColumnLayout(selector?: string): ColumnLayoutWrapper | null; + +/** + * Returns an array of ColumnLayout wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the ColumnLayouts inside the current wrapper. + * If no matching ColumnLayout is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllColumnLayouts(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent ColumnLayout for the current element, + * or the element itself if it is an instance of ColumnLayout. + * If no ColumnLayout is found, returns \`null\`. + * + * @returns {ColumnLayoutWrapper | null} + */ +findClosestColumnLayout(): ColumnLayoutWrapper | null; +/** + * Returns the wrapper of the first Container that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Container. + * If no matching Container is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {ContainerWrapper | null} + */ +findContainer(selector?: string): ContainerWrapper | null; + +/** + * Returns an array of Container wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Containers inside the current wrapper. + * If no matching Container is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllContainers(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Container for the current element, + * or the element itself if it is an instance of Container. + * If no Container is found, returns \`null\`. + * + * @returns {ContainerWrapper | null} + */ +findClosestContainer(): ContainerWrapper | null; +/** + * Returns the wrapper of the first ContentLayout that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first ContentLayout. + * If no matching ContentLayout is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {ContentLayoutWrapper | null} + */ +findContentLayout(selector?: string): ContentLayoutWrapper | null; + +/** + * Returns an array of ContentLayout wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the ContentLayouts inside the current wrapper. + * If no matching ContentLayout is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllContentLayouts(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent ContentLayout for the current element, + * or the element itself if it is an instance of ContentLayout. + * If no ContentLayout is found, returns \`null\`. + * + * @returns {ContentLayoutWrapper | null} + */ +findClosestContentLayout(): ContentLayoutWrapper | null; +/** + * Returns the wrapper of the first CopyToClipboard that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first CopyToClipboard. + * If no matching CopyToClipboard is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {CopyToClipboardWrapper | null} + */ +findCopyToClipboard(selector?: string): CopyToClipboardWrapper | null; + +/** + * Returns an array of CopyToClipboard wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the CopyToClipboards inside the current wrapper. + * If no matching CopyToClipboard is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllCopyToClipboards(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent CopyToClipboard for the current element, + * or the element itself if it is an instance of CopyToClipboard. + * If no CopyToClipboard is found, returns \`null\`. + * + * @returns {CopyToClipboardWrapper | null} + */ +findClosestCopyToClipboard(): CopyToClipboardWrapper | null; +/** + * Returns the wrapper of the first DateInput that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first DateInput. + * If no matching DateInput is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {DateInputWrapper | null} + */ +findDateInput(selector?: string): DateInputWrapper | null; + +/** + * Returns an array of DateInput wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the DateInputs inside the current wrapper. + * If no matching DateInput is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllDateInputs(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent DateInput for the current element, + * or the element itself if it is an instance of DateInput. + * If no DateInput is found, returns \`null\`. + * + * @returns {DateInputWrapper | null} + */ +findClosestDateInput(): DateInputWrapper | null; +/** + * Returns the wrapper of the first DatePicker that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first DatePicker. + * If no matching DatePicker is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {DatePickerWrapper | null} + */ +findDatePicker(selector?: string): DatePickerWrapper | null; + +/** + * Returns an array of DatePicker wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the DatePickers inside the current wrapper. + * If no matching DatePicker is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllDatePickers(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent DatePicker for the current element, + * or the element itself if it is an instance of DatePicker. + * If no DatePicker is found, returns \`null\`. + * + * @returns {DatePickerWrapper | null} + */ +findClosestDatePicker(): DatePickerWrapper | null; +/** + * Returns the wrapper of the first DateRangePicker that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first DateRangePicker. + * If no matching DateRangePicker is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {DateRangePickerWrapper | null} + */ +findDateRangePicker(selector?: string): DateRangePickerWrapper | null; + +/** + * Returns an array of DateRangePicker wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the DateRangePickers inside the current wrapper. + * If no matching DateRangePicker is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllDateRangePickers(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent DateRangePicker for the current element, + * or the element itself if it is an instance of DateRangePicker. + * If no DateRangePicker is found, returns \`null\`. + * + * @returns {DateRangePickerWrapper | null} + */ +findClosestDateRangePicker(): DateRangePickerWrapper | null; +/** + * Returns the wrapper of the first Drawer that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Drawer. + * If no matching Drawer is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {DrawerWrapper | null} + */ +findDrawer(selector?: string): DrawerWrapper | null; + +/** + * Returns an array of Drawer wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Drawers inside the current wrapper. + * If no matching Drawer is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllDrawers(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Drawer for the current element, + * or the element itself if it is an instance of Drawer. + * If no Drawer is found, returns \`null\`. + * + * @returns {DrawerWrapper | null} + */ +findClosestDrawer(): DrawerWrapper | null; +/** + * Returns the wrapper of the first Dropdown that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Dropdown. + * If no matching Dropdown is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {DropdownWrapper | null} + */ +findDropdown(selector?: string): DropdownWrapper | null; + +/** + * Returns an array of Dropdown wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Dropdowns inside the current wrapper. + * If no matching Dropdown is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllDropdowns(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Dropdown for the current element, + * or the element itself if it is an instance of Dropdown. + * If no Dropdown is found, returns \`null\`. + * + * @returns {DropdownWrapper | null} + */ +findClosestDropdown(): DropdownWrapper | null; +/** + * Returns the wrapper of the first ErrorBoundary that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first ErrorBoundary. + * If no matching ErrorBoundary is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {ErrorBoundaryWrapper | null} + */ +findErrorBoundary(selector?: string): ErrorBoundaryWrapper | null; + +/** + * Returns an array of ErrorBoundary wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the ErrorBoundaries inside the current wrapper. + * If no matching ErrorBoundary is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllErrorBoundaries(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent ErrorBoundary for the current element, + * or the element itself if it is an instance of ErrorBoundary. + * If no ErrorBoundary is found, returns \`null\`. + * + * @returns {ErrorBoundaryWrapper | null} + */ +findClosestErrorBoundary(): ErrorBoundaryWrapper | null; +/** + * Returns the wrapper of the first ExpandableSection that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first ExpandableSection. + * If no matching ExpandableSection is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {ExpandableSectionWrapper | null} + */ +findExpandableSection(selector?: string): ExpandableSectionWrapper | null; + +/** + * Returns an array of ExpandableSection wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the ExpandableSections inside the current wrapper. + * If no matching ExpandableSection is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllExpandableSections(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent ExpandableSection for the current element, + * or the element itself if it is an instance of ExpandableSection. + * If no ExpandableSection is found, returns \`null\`. + * + * @returns {ExpandableSectionWrapper | null} + */ +findClosestExpandableSection(): ExpandableSectionWrapper | null; +/** + * Returns the wrapper of the first FileDropzone that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first FileDropzone. + * If no matching FileDropzone is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {FileDropzoneWrapper | null} + */ +findFileDropzone(selector?: string): FileDropzoneWrapper | null; + +/** + * Returns an array of FileDropzone wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the FileDropzones inside the current wrapper. + * If no matching FileDropzone is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllFileDropzones(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent FileDropzone for the current element, + * or the element itself if it is an instance of FileDropzone. + * If no FileDropzone is found, returns \`null\`. + * + * @returns {FileDropzoneWrapper | null} + */ +findClosestFileDropzone(): FileDropzoneWrapper | null; +/** + * Returns the wrapper of the first FileInput that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first FileInput. + * If no matching FileInput is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {FileInputWrapper | null} + */ +findFileInput(selector?: string): FileInputWrapper | null; + +/** + * Returns an array of FileInput wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the FileInputs inside the current wrapper. + * If no matching FileInput is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllFileInputs(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent FileInput for the current element, + * or the element itself if it is an instance of FileInput. + * If no FileInput is found, returns \`null\`. + * + * @returns {FileInputWrapper | null} + */ +findClosestFileInput(): FileInputWrapper | null; +/** + * Returns the wrapper of the first FileTokenGroup that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first FileTokenGroup. + * If no matching FileTokenGroup is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {FileTokenGroupWrapper | null} + */ +findFileTokenGroup(selector?: string): FileTokenGroupWrapper | null; + +/** + * Returns an array of FileTokenGroup wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the FileTokenGroups inside the current wrapper. + * If no matching FileTokenGroup is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllFileTokenGroups(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent FileTokenGroup for the current element, + * or the element itself if it is an instance of FileTokenGroup. + * If no FileTokenGroup is found, returns \`null\`. + * + * @returns {FileTokenGroupWrapper | null} + */ +findClosestFileTokenGroup(): FileTokenGroupWrapper | null; +/** + * Returns the wrapper of the first FileUpload that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first FileUpload. + * If no matching FileUpload is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {FileUploadWrapper | null} + */ +findFileUpload(selector?: string): FileUploadWrapper | null; + +/** + * Returns an array of FileUpload wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the FileUploads inside the current wrapper. + * If no matching FileUpload is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllFileUploads(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent FileUpload for the current element, + * or the element itself if it is an instance of FileUpload. + * If no FileUpload is found, returns \`null\`. + * + * @returns {FileUploadWrapper | null} + */ +findClosestFileUpload(): FileUploadWrapper | null; +/** + * Returns the wrapper of the first Flashbar that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Flashbar. + * If no matching Flashbar is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {FlashbarWrapper | null} + */ +findFlashbar(selector?: string): FlashbarWrapper | null; + +/** + * Returns an array of Flashbar wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Flashbars inside the current wrapper. + * If no matching Flashbar is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllFlashbars(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Flashbar for the current element, + * or the element itself if it is an instance of Flashbar. + * If no Flashbar is found, returns \`null\`. + * + * @returns {FlashbarWrapper | null} + */ +findClosestFlashbar(): FlashbarWrapper | null; +/** + * Returns the wrapper of the first Form that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Form. + * If no matching Form is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {FormWrapper | null} + */ +findForm(selector?: string): FormWrapper | null; + +/** + * Returns an array of Form wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Forms inside the current wrapper. + * If no matching Form is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllForms(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Form for the current element, + * or the element itself if it is an instance of Form. + * If no Form is found, returns \`null\`. + * + * @returns {FormWrapper | null} + */ +findClosestForm(): FormWrapper | null; +/** + * Returns the wrapper of the first FormField that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first FormField. + * If no matching FormField is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {FormFieldWrapper | null} + */ +findFormField(selector?: string): FormFieldWrapper | null; + +/** + * Returns an array of FormField wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the FormFields inside the current wrapper. + * If no matching FormField is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllFormFields(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent FormField for the current element, + * or the element itself if it is an instance of FormField. + * If no FormField is found, returns \`null\`. + * + * @returns {FormFieldWrapper | null} + */ +findClosestFormField(): FormFieldWrapper | null; +/** + * Returns the wrapper of the first Grid that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Grid. + * If no matching Grid is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {GridWrapper | null} + */ +findGrid(selector?: string): GridWrapper | null; + +/** + * Returns an array of Grid wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Grids inside the current wrapper. + * If no matching Grid is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllGrids(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Grid for the current element, + * or the element itself if it is an instance of Grid. + * If no Grid is found, returns \`null\`. + * + * @returns {GridWrapper | null} + */ +findClosestGrid(): GridWrapper | null; +/** + * Returns the wrapper of the first Header that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Header. + * If no matching Header is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {HeaderWrapper | null} + */ +findHeader(selector?: string): HeaderWrapper | null; + +/** + * Returns an array of Header wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Headers inside the current wrapper. + * If no matching Header is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllHeaders(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Header for the current element, + * or the element itself if it is an instance of Header. + * If no Header is found, returns \`null\`. + * + * @returns {HeaderWrapper | null} + */ +findClosestHeader(): HeaderWrapper | null; +/** + * Returns the wrapper of the first HelpPanel that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first HelpPanel. + * If no matching HelpPanel is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {HelpPanelWrapper | null} + */ +findHelpPanel(selector?: string): HelpPanelWrapper | null; + +/** + * Returns an array of HelpPanel wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the HelpPanels inside the current wrapper. + * If no matching HelpPanel is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllHelpPanels(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent HelpPanel for the current element, + * or the element itself if it is an instance of HelpPanel. + * If no HelpPanel is found, returns \`null\`. + * + * @returns {HelpPanelWrapper | null} + */ +findClosestHelpPanel(): HelpPanelWrapper | null; +/** + * Returns the wrapper of the first Hotspot that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Hotspot. + * If no matching Hotspot is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {HotspotWrapper | null} + */ +findHotspot(selector?: string): HotspotWrapper | null; + +/** + * Returns an array of Hotspot wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Hotspots inside the current wrapper. + * If no matching Hotspot is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllHotspots(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Hotspot for the current element, + * or the element itself if it is an instance of Hotspot. + * If no Hotspot is found, returns \`null\`. + * + * @returns {HotspotWrapper | null} + */ +findClosestHotspot(): HotspotWrapper | null; +/** + * Returns the wrapper of the first Icon that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Icon. + * If no matching Icon is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {IconWrapper | null} + */ +findIcon(selector?: string): IconWrapper | null; + +/** + * Returns an array of Icon wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Icons inside the current wrapper. + * If no matching Icon is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllIcons(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Icon for the current element, + * or the element itself if it is an instance of Icon. + * If no Icon is found, returns \`null\`. + * + * @returns {IconWrapper | null} + */ +findClosestIcon(): IconWrapper | null; +/** + * Returns the wrapper of the first Input that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Input. + * If no matching Input is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {InputWrapper | null} + */ +findInput(selector?: string): InputWrapper | null; + +/** + * Returns an array of Input wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Inputs inside the current wrapper. + * If no matching Input is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllInputs(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Input for the current element, + * or the element itself if it is an instance of Input. + * If no Input is found, returns \`null\`. + * + * @returns {InputWrapper | null} + */ +findClosestInput(): InputWrapper | null; +/** + * Returns the wrapper of the first ItemCard that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first ItemCard. + * If no matching ItemCard is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {ItemCardWrapper | null} + */ +findItemCard(selector?: string): ItemCardWrapper | null; + +/** + * Returns an array of ItemCard wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the ItemCards inside the current wrapper. + * If no matching ItemCard is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllItemCards(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent ItemCard for the current element, + * or the element itself if it is an instance of ItemCard. + * If no ItemCard is found, returns \`null\`. + * + * @returns {ItemCardWrapper | null} + */ +findClosestItemCard(): ItemCardWrapper | null; +/** + * Returns the wrapper of the first KeyValuePairs that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first KeyValuePairs. + * If no matching KeyValuePairs is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {KeyValuePairsWrapper | null} + */ +findKeyValuePairs(selector?: string): KeyValuePairsWrapper | null; + +/** + * Returns an array of KeyValuePairs wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the KeyValuePairs inside the current wrapper. + * If no matching KeyValuePairs is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllKeyValuePairs(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent KeyValuePairs for the current element, + * or the element itself if it is an instance of KeyValuePairs. + * If no KeyValuePairs is found, returns \`null\`. + * + * @returns {KeyValuePairsWrapper | null} + */ +findClosestKeyValuePairs(): KeyValuePairsWrapper | null; +/** + * Returns the wrapper of the first LineChart that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first LineChart. + * If no matching LineChart is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {LineChartWrapper | null} + */ +findLineChart(selector?: string): LineChartWrapper | null; + +/** + * Returns an array of LineChart wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the LineCharts inside the current wrapper. + * If no matching LineChart is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllLineCharts(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent LineChart for the current element, + * or the element itself if it is an instance of LineChart. + * If no LineChart is found, returns \`null\`. + * + * @returns {LineChartWrapper | null} + */ +findClosestLineChart(): LineChartWrapper | null; +/** + * Returns the wrapper of the first Link that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Link. + * If no matching Link is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {LinkWrapper | null} + */ +findLink(selector?: string): LinkWrapper | null; + +/** + * Returns an array of Link wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Links inside the current wrapper. + * If no matching Link is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllLinks(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Link for the current element, + * or the element itself if it is an instance of Link. + * If no Link is found, returns \`null\`. + * + * @returns {LinkWrapper | null} + */ +findClosestLink(): LinkWrapper | null; +/** + * Returns the wrapper of the first List that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first List. + * If no matching List is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {ListWrapper | null} + */ +findList(selector?: string): ListWrapper | null; + +/** + * Returns an array of List wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Lists inside the current wrapper. + * If no matching List is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllLists(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent List for the current element, + * or the element itself if it is an instance of List. + * If no List is found, returns \`null\`. + * + * @returns {ListWrapper | null} + */ +findClosestList(): ListWrapper | null; +/** + * Returns the wrapper of the first LiveRegion that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first LiveRegion. + * If no matching LiveRegion is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {LiveRegionWrapper | null} + */ +findLiveRegion(selector?: string): LiveRegionWrapper | null; + +/** + * Returns an array of LiveRegion wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the LiveRegions inside the current wrapper. + * If no matching LiveRegion is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllLiveRegions(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent LiveRegion for the current element, + * or the element itself if it is an instance of LiveRegion. + * If no LiveRegion is found, returns \`null\`. + * + * @returns {LiveRegionWrapper | null} + */ +findClosestLiveRegion(): LiveRegionWrapper | null; +/** + * Returns the wrapper of the first MixedLineBarChart that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first MixedLineBarChart. + * If no matching MixedLineBarChart is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {MixedLineBarChartWrapper | null} + */ +findMixedLineBarChart(selector?: string): MixedLineBarChartWrapper | null; + +/** + * Returns an array of MixedLineBarChart wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the MixedLineBarCharts inside the current wrapper. + * If no matching MixedLineBarChart is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllMixedLineBarCharts(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent MixedLineBarChart for the current element, + * or the element itself if it is an instance of MixedLineBarChart. + * If no MixedLineBarChart is found, returns \`null\`. + * + * @returns {MixedLineBarChartWrapper | null} + */ +findClosestMixedLineBarChart(): MixedLineBarChartWrapper | null; +/** + * Returns the wrapper of the first Modal that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Modal. + * If no matching Modal is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {ModalWrapper | null} + */ +findModal(selector?: string): ModalWrapper | null; + +/** + * Returns an array of Modal wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Modals inside the current wrapper. + * If no matching Modal is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllModals(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Modal for the current element, + * or the element itself if it is an instance of Modal. + * If no Modal is found, returns \`null\`. + * + * @returns {ModalWrapper | null} + */ +findClosestModal(): ModalWrapper | null; +/** + * Returns the wrapper of the first Multiselect that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Multiselect. + * If no matching Multiselect is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {MultiselectWrapper | null} + */ +findMultiselect(selector?: string): MultiselectWrapper | null; + +/** + * Returns an array of Multiselect wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Multiselects inside the current wrapper. + * If no matching Multiselect is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllMultiselects(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Multiselect for the current element, + * or the element itself if it is an instance of Multiselect. + * If no Multiselect is found, returns \`null\`. + * + * @returns {MultiselectWrapper | null} + */ +findClosestMultiselect(): MultiselectWrapper | null; +/** + * Returns the wrapper of the first NavigableGroup that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first NavigableGroup. + * If no matching NavigableGroup is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {NavigableGroupWrapper | null} + */ +findNavigableGroup(selector?: string): NavigableGroupWrapper | null; + +/** + * Returns an array of NavigableGroup wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the NavigableGroups inside the current wrapper. + * If no matching NavigableGroup is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllNavigableGroups(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent NavigableGroup for the current element, + * or the element itself if it is an instance of NavigableGroup. + * If no NavigableGroup is found, returns \`null\`. + * + * @returns {NavigableGroupWrapper | null} + */ +findClosestNavigableGroup(): NavigableGroupWrapper | null; +/** + * Returns the wrapper of the first Pagination that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Pagination. + * If no matching Pagination is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {PaginationWrapper | null} + */ +findPagination(selector?: string): PaginationWrapper | null; + +/** + * Returns an array of Pagination wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Paginations inside the current wrapper. + * If no matching Pagination is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllPaginations(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Pagination for the current element, + * or the element itself if it is an instance of Pagination. + * If no Pagination is found, returns \`null\`. + * + * @returns {PaginationWrapper | null} + */ +findClosestPagination(): PaginationWrapper | null; +/** + * Returns the wrapper of the first PanelLayout that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first PanelLayout. + * If no matching PanelLayout is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {PanelLayoutWrapper | null} + */ +findPanelLayout(selector?: string): PanelLayoutWrapper | null; + +/** + * Returns an array of PanelLayout wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the PanelLayouts inside the current wrapper. + * If no matching PanelLayout is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllPanelLayouts(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent PanelLayout for the current element, + * or the element itself if it is an instance of PanelLayout. + * If no PanelLayout is found, returns \`null\`. + * + * @returns {PanelLayoutWrapper | null} + */ +findClosestPanelLayout(): PanelLayoutWrapper | null; +/** + * Returns the wrapper of the first PieChart that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first PieChart. + * If no matching PieChart is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {PieChartWrapper | null} + */ +findPieChart(selector?: string): PieChartWrapper | null; + +/** + * Returns an array of PieChart wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the PieCharts inside the current wrapper. + * If no matching PieChart is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllPieCharts(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent PieChart for the current element, + * or the element itself if it is an instance of PieChart. + * If no PieChart is found, returns \`null\`. + * + * @returns {PieChartWrapper | null} + */ +findClosestPieChart(): PieChartWrapper | null; +/** + * Returns the wrapper of the first Popover that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Popover. + * If no matching Popover is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {PopoverWrapper | null} + */ +findPopover(selector?: string): PopoverWrapper | null; + +/** + * Returns an array of Popover wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Popovers inside the current wrapper. + * If no matching Popover is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllPopovers(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Popover for the current element, + * or the element itself if it is an instance of Popover. + * If no Popover is found, returns \`null\`. + * + * @returns {PopoverWrapper | null} + */ +findClosestPopover(): PopoverWrapper | null; +/** + * Returns the wrapper of the first ProgressBar that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first ProgressBar. + * If no matching ProgressBar is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {ProgressBarWrapper | null} + */ +findProgressBar(selector?: string): ProgressBarWrapper | null; + +/** + * Returns an array of ProgressBar wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the ProgressBars inside the current wrapper. + * If no matching ProgressBar is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllProgressBars(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent ProgressBar for the current element, + * or the element itself if it is an instance of ProgressBar. + * If no ProgressBar is found, returns \`null\`. + * + * @returns {ProgressBarWrapper | null} + */ +findClosestProgressBar(): ProgressBarWrapper | null; +/** + * Returns the wrapper of the first PromptInput that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first PromptInput. + * If no matching PromptInput is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {PromptInputWrapper | null} + */ +findPromptInput(selector?: string): PromptInputWrapper | null; + +/** + * Returns an array of PromptInput wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the PromptInputs inside the current wrapper. + * If no matching PromptInput is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllPromptInputs(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent PromptInput for the current element, + * or the element itself if it is an instance of PromptInput. + * If no PromptInput is found, returns \`null\`. + * + * @returns {PromptInputWrapper | null} + */ +findClosestPromptInput(): PromptInputWrapper | null; +/** + * Returns the wrapper of the first PropertyFilter that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first PropertyFilter. + * If no matching PropertyFilter is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {PropertyFilterWrapper | null} + */ +findPropertyFilter(selector?: string): PropertyFilterWrapper | null; + +/** + * Returns an array of PropertyFilter wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the PropertyFilters inside the current wrapper. + * If no matching PropertyFilter is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllPropertyFilters(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent PropertyFilter for the current element, + * or the element itself if it is an instance of PropertyFilter. + * If no PropertyFilter is found, returns \`null\`. + * + * @returns {PropertyFilterWrapper | null} + */ +findClosestPropertyFilter(): PropertyFilterWrapper | null; +/** + * Returns the wrapper of the first RadioButton that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first RadioButton. + * If no matching RadioButton is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {RadioButtonWrapper | null} + */ +findRadioButton(selector?: string): RadioButtonWrapper | null; + +/** + * Returns an array of RadioButton wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the RadioButtons inside the current wrapper. + * If no matching RadioButton is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllRadioButtons(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent RadioButton for the current element, + * or the element itself if it is an instance of RadioButton. + * If no RadioButton is found, returns \`null\`. + * + * @returns {RadioButtonWrapper | null} + */ +findClosestRadioButton(): RadioButtonWrapper | null; +/** + * Returns the wrapper of the first RadioGroup that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first RadioGroup. + * If no matching RadioGroup is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {RadioGroupWrapper | null} + */ +findRadioGroup(selector?: string): RadioGroupWrapper | null; + +/** + * Returns an array of RadioGroup wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the RadioGroups inside the current wrapper. + * If no matching RadioGroup is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllRadioGroups(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent RadioGroup for the current element, + * or the element itself if it is an instance of RadioGroup. + * If no RadioGroup is found, returns \`null\`. + * + * @returns {RadioGroupWrapper | null} + */ +findClosestRadioGroup(): RadioGroupWrapper | null; +/** + * Returns the wrapper of the first S3ResourceSelector that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first S3ResourceSelector. + * If no matching S3ResourceSelector is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {S3ResourceSelectorWrapper | null} + */ +findS3ResourceSelector(selector?: string): S3ResourceSelectorWrapper | null; + +/** + * Returns an array of S3ResourceSelector wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the S3ResourceSelectors inside the current wrapper. + * If no matching S3ResourceSelector is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllS3ResourceSelectors(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent S3ResourceSelector for the current element, + * or the element itself if it is an instance of S3ResourceSelector. + * If no S3ResourceSelector is found, returns \`null\`. + * + * @returns {S3ResourceSelectorWrapper | null} + */ +findClosestS3ResourceSelector(): S3ResourceSelectorWrapper | null; +/** + * Returns the wrapper of the first SegmentedControl that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first SegmentedControl. + * If no matching SegmentedControl is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {SegmentedControlWrapper | null} + */ +findSegmentedControl(selector?: string): SegmentedControlWrapper | null; + +/** + * Returns an array of SegmentedControl wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the SegmentedControls inside the current wrapper. + * If no matching SegmentedControl is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllSegmentedControls(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent SegmentedControl for the current element, + * or the element itself if it is an instance of SegmentedControl. + * If no SegmentedControl is found, returns \`null\`. + * + * @returns {SegmentedControlWrapper | null} + */ +findClosestSegmentedControl(): SegmentedControlWrapper | null; +/** + * Returns the wrapper of the first Select that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Select. + * If no matching Select is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {SelectWrapper | null} + */ +findSelect(selector?: string): SelectWrapper | null; + +/** + * Returns an array of Select wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Selects inside the current wrapper. + * If no matching Select is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllSelects(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Select for the current element, + * or the element itself if it is an instance of Select. + * If no Select is found, returns \`null\`. + * + * @returns {SelectWrapper | null} + */ +findClosestSelect(): SelectWrapper | null; +/** + * Returns the wrapper of the first SideNavigation that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first SideNavigation. + * If no matching SideNavigation is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {SideNavigationWrapper | null} + */ +findSideNavigation(selector?: string): SideNavigationWrapper | null; + +/** + * Returns an array of SideNavigation wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the SideNavigations inside the current wrapper. + * If no matching SideNavigation is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllSideNavigations(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent SideNavigation for the current element, + * or the element itself if it is an instance of SideNavigation. + * If no SideNavigation is found, returns \`null\`. + * + * @returns {SideNavigationWrapper | null} + */ +findClosestSideNavigation(): SideNavigationWrapper | null; +/** + * Returns the wrapper of the first Slider that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Slider. + * If no matching Slider is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {SliderWrapper | null} + */ +findSlider(selector?: string): SliderWrapper | null; + +/** + * Returns an array of Slider wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Sliders inside the current wrapper. + * If no matching Slider is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllSliders(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Slider for the current element, + * or the element itself if it is an instance of Slider. + * If no Slider is found, returns \`null\`. + * + * @returns {SliderWrapper | null} + */ +findClosestSlider(): SliderWrapper | null; +/** + * Returns the wrapper of the first SpaceBetween that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first SpaceBetween. + * If no matching SpaceBetween is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {SpaceBetweenWrapper | null} + */ +findSpaceBetween(selector?: string): SpaceBetweenWrapper | null; + +/** + * Returns an array of SpaceBetween wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the SpaceBetweens inside the current wrapper. + * If no matching SpaceBetween is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllSpaceBetweens(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent SpaceBetween for the current element, + * or the element itself if it is an instance of SpaceBetween. + * If no SpaceBetween is found, returns \`null\`. + * + * @returns {SpaceBetweenWrapper | null} + */ +findClosestSpaceBetween(): SpaceBetweenWrapper | null; +/** + * Returns the wrapper of the first Spinner that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Spinner. + * If no matching Spinner is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {SpinnerWrapper | null} + */ +findSpinner(selector?: string): SpinnerWrapper | null; + +/** + * Returns an array of Spinner wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Spinners inside the current wrapper. + * If no matching Spinner is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllSpinners(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Spinner for the current element, + * or the element itself if it is an instance of Spinner. + * If no Spinner is found, returns \`null\`. + * + * @returns {SpinnerWrapper | null} + */ +findClosestSpinner(): SpinnerWrapper | null; +/** + * Returns the wrapper of the first SplitPanel that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first SplitPanel. + * If no matching SplitPanel is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {SplitPanelWrapper | null} + */ +findSplitPanel(selector?: string): SplitPanelWrapper | null; + +/** + * Returns an array of SplitPanel wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the SplitPanels inside the current wrapper. + * If no matching SplitPanel is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllSplitPanels(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent SplitPanel for the current element, + * or the element itself if it is an instance of SplitPanel. + * If no SplitPanel is found, returns \`null\`. + * + * @returns {SplitPanelWrapper | null} + */ +findClosestSplitPanel(): SplitPanelWrapper | null; +/** + * Returns the wrapper of the first StatusIndicator that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first StatusIndicator. + * If no matching StatusIndicator is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {StatusIndicatorWrapper | null} + */ +findStatusIndicator(selector?: string): StatusIndicatorWrapper | null; + +/** + * Returns an array of StatusIndicator wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the StatusIndicators inside the current wrapper. + * If no matching StatusIndicator is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllStatusIndicators(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent StatusIndicator for the current element, + * or the element itself if it is an instance of StatusIndicator. + * If no StatusIndicator is found, returns \`null\`. + * + * @returns {StatusIndicatorWrapper | null} + */ +findClosestStatusIndicator(): StatusIndicatorWrapper | null; +/** + * Returns the wrapper of the first Steps that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Steps. + * If no matching Steps is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {StepsWrapper | null} + */ +findSteps(selector?: string): StepsWrapper | null; + +/** + * Returns an array of Steps wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Steps inside the current wrapper. + * If no matching Steps is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllSteps(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Steps for the current element, + * or the element itself if it is an instance of Steps. + * If no Steps is found, returns \`null\`. + * + * @returns {StepsWrapper | null} + */ +findClosestSteps(): StepsWrapper | null; +/** + * Returns the wrapper of the first Table that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Table. + * If no matching Table is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {TableWrapper | null} + */ +findTable(selector?: string): TableWrapper | null; + +/** + * Returns an array of Table wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Tables inside the current wrapper. + * If no matching Table is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllTables(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Table for the current element, + * or the element itself if it is an instance of Table. + * If no Table is found, returns \`null\`. + * + * @returns {TableWrapper | null} + */ +findClosestTable(): TableWrapper | null; +/** + * Returns the wrapper of the first Tabs that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Tabs. + * If no matching Tabs is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {TabsWrapper | null} + */ +findTabs(selector?: string): TabsWrapper | null; + +/** + * Returns an array of Tabs wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Tabs inside the current wrapper. + * If no matching Tabs is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllTabs(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Tabs for the current element, + * or the element itself if it is an instance of Tabs. + * If no Tabs is found, returns \`null\`. + * + * @returns {TabsWrapper | null} + */ +findClosestTabs(): TabsWrapper | null; +/** + * Returns the wrapper of the first TagEditor that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first TagEditor. + * If no matching TagEditor is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {TagEditorWrapper | null} + */ +findTagEditor(selector?: string): TagEditorWrapper | null; + +/** + * Returns an array of TagEditor wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the TagEditors inside the current wrapper. + * If no matching TagEditor is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllTagEditors(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent TagEditor for the current element, + * or the element itself if it is an instance of TagEditor. + * If no TagEditor is found, returns \`null\`. + * + * @returns {TagEditorWrapper | null} + */ +findClosestTagEditor(): TagEditorWrapper | null; +/** + * Returns the wrapper of the first TextContent that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first TextContent. + * If no matching TextContent is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {TextContentWrapper | null} + */ +findTextContent(selector?: string): TextContentWrapper | null; + +/** + * Returns an array of TextContent wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the TextContents inside the current wrapper. + * If no matching TextContent is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllTextContents(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent TextContent for the current element, + * or the element itself if it is an instance of TextContent. + * If no TextContent is found, returns \`null\`. + * + * @returns {TextContentWrapper | null} + */ +findClosestTextContent(): TextContentWrapper | null; +/** + * Returns the wrapper of the first TextFilter that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first TextFilter. + * If no matching TextFilter is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {TextFilterWrapper | null} + */ +findTextFilter(selector?: string): TextFilterWrapper | null; + +/** + * Returns an array of TextFilter wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the TextFilters inside the current wrapper. + * If no matching TextFilter is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllTextFilters(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent TextFilter for the current element, + * or the element itself if it is an instance of TextFilter. + * If no TextFilter is found, returns \`null\`. + * + * @returns {TextFilterWrapper | null} + */ +findClosestTextFilter(): TextFilterWrapper | null; +/** + * Returns the wrapper of the first Textarea that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Textarea. + * If no matching Textarea is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {TextareaWrapper | null} + */ +findTextarea(selector?: string): TextareaWrapper | null; + +/** + * Returns an array of Textarea wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Textareas inside the current wrapper. + * If no matching Textarea is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllTextareas(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Textarea for the current element, + * or the element itself if it is an instance of Textarea. + * If no Textarea is found, returns \`null\`. + * + * @returns {TextareaWrapper | null} + */ +findClosestTextarea(): TextareaWrapper | null; +/** + * Returns the wrapper of the first Tiles that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Tiles. + * If no matching Tiles is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {TilesWrapper | null} + */ +findTiles(selector?: string): TilesWrapper | null; + +/** + * Returns an array of Tiles wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Tiles inside the current wrapper. + * If no matching Tiles is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllTiles(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Tiles for the current element, + * or the element itself if it is an instance of Tiles. + * If no Tiles is found, returns \`null\`. + * + * @returns {TilesWrapper | null} + */ +findClosestTiles(): TilesWrapper | null; +/** + * Returns the wrapper of the first TimeInput that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first TimeInput. + * If no matching TimeInput is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {TimeInputWrapper | null} + */ +findTimeInput(selector?: string): TimeInputWrapper | null; + +/** + * Returns an array of TimeInput wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the TimeInputs inside the current wrapper. + * If no matching TimeInput is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllTimeInputs(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent TimeInput for the current element, + * or the element itself if it is an instance of TimeInput. + * If no TimeInput is found, returns \`null\`. + * + * @returns {TimeInputWrapper | null} + */ +findClosestTimeInput(): TimeInputWrapper | null; +/** + * Returns the wrapper of the first Toggle that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Toggle. + * If no matching Toggle is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {ToggleWrapper | null} + */ +findToggle(selector?: string): ToggleWrapper | null; + +/** + * Returns an array of Toggle wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Toggles inside the current wrapper. + * If no matching Toggle is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllToggles(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Toggle for the current element, + * or the element itself if it is an instance of Toggle. + * If no Toggle is found, returns \`null\`. + * + * @returns {ToggleWrapper | null} + */ +findClosestToggle(): ToggleWrapper | null; +/** + * Returns the wrapper of the first ToggleButton that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first ToggleButton. + * If no matching ToggleButton is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {ToggleButtonWrapper | null} + */ +findToggleButton(selector?: string): ToggleButtonWrapper | null; + +/** + * Returns an array of ToggleButton wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the ToggleButtons inside the current wrapper. + * If no matching ToggleButton is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllToggleButtons(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent ToggleButton for the current element, + * or the element itself if it is an instance of ToggleButton. + * If no ToggleButton is found, returns \`null\`. + * + * @returns {ToggleButtonWrapper | null} + */ +findClosestToggleButton(): ToggleButtonWrapper | null; +/** + * Returns the wrapper of the first Token that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Token. + * If no matching Token is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {TokenWrapper | null} + */ +findToken(selector?: string): TokenWrapper | null; + +/** + * Returns an array of Token wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Tokens inside the current wrapper. + * If no matching Token is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllTokens(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Token for the current element, + * or the element itself if it is an instance of Token. + * If no Token is found, returns \`null\`. + * + * @returns {TokenWrapper | null} + */ +findClosestToken(): TokenWrapper | null; +/** + * Returns the wrapper of the first TokenGroup that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first TokenGroup. + * If no matching TokenGroup is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {TokenGroupWrapper | null} + */ +findTokenGroup(selector?: string): TokenGroupWrapper | null; + +/** + * Returns an array of TokenGroup wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the TokenGroups inside the current wrapper. + * If no matching TokenGroup is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllTokenGroups(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent TokenGroup for the current element, + * or the element itself if it is an instance of TokenGroup. + * If no TokenGroup is found, returns \`null\`. + * + * @returns {TokenGroupWrapper | null} + */ +findClosestTokenGroup(): TokenGroupWrapper | null; +/** + * Returns the wrapper of the first Tooltip that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Tooltip. + * If no matching Tooltip is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {TooltipWrapper | null} + */ +findTooltip(selector?: string): TooltipWrapper | null; + +/** + * Returns an array of Tooltip wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Tooltips inside the current wrapper. + * If no matching Tooltip is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllTooltips(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Tooltip for the current element, + * or the element itself if it is an instance of Tooltip. + * If no Tooltip is found, returns \`null\`. + * + * @returns {TooltipWrapper | null} + */ +findClosestTooltip(): TooltipWrapper | null; +/** + * Returns the wrapper of the first TopNavigation that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first TopNavigation. + * If no matching TopNavigation is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {TopNavigationWrapper | null} + */ +findTopNavigation(selector?: string): TopNavigationWrapper | null; + +/** + * Returns an array of TopNavigation wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the TopNavigations inside the current wrapper. + * If no matching TopNavigation is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllTopNavigations(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent TopNavigation for the current element, + * or the element itself if it is an instance of TopNavigation. + * If no TopNavigation is found, returns \`null\`. + * + * @returns {TopNavigationWrapper | null} + */ +findClosestTopNavigation(): TopNavigationWrapper | null; +/** + * Returns the wrapper of the first TreeView that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first TreeView. + * If no matching TreeView is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {TreeViewWrapper | null} + */ +findTreeView(selector?: string): TreeViewWrapper | null; + +/** + * Returns an array of TreeView wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the TreeViews inside the current wrapper. + * If no matching TreeView is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllTreeViews(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent TreeView for the current element, + * or the element itself if it is an instance of TreeView. + * If no TreeView is found, returns \`null\`. + * + * @returns {TreeViewWrapper | null} + */ +findClosestTreeView(): TreeViewWrapper | null; +/** + * Returns the wrapper of the first TutorialPanel that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first TutorialPanel. + * If no matching TutorialPanel is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {TutorialPanelWrapper | null} + */ +findTutorialPanel(selector?: string): TutorialPanelWrapper | null; + +/** + * Returns an array of TutorialPanel wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the TutorialPanels inside the current wrapper. + * If no matching TutorialPanel is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllTutorialPanels(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent TutorialPanel for the current element, + * or the element itself if it is an instance of TutorialPanel. + * If no TutorialPanel is found, returns \`null\`. + * + * @returns {TutorialPanelWrapper | null} + */ +findClosestTutorialPanel(): TutorialPanelWrapper | null; +/** + * Returns the wrapper of the first Wizard that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Wizard. + * If no matching Wizard is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {WizardWrapper | null} + */ +findWizard(selector?: string): WizardWrapper | null; + +/** + * Returns an array of Wizard wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Wizards inside the current wrapper. + * If no matching Wizard is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllWizards(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Wizard for the current element, + * or the element itself if it is an instance of Wizard. + * If no Wizard is found, returns \`null\`. + * + * @returns {WizardWrapper | null} + */ +findClosestWizard(): WizardWrapper | null; + } +} + + +ElementWrapper.prototype.findActionCard = function(selector) { + let rootSelector = \`.\${ActionCardWrapper.rootSelector}\`; + if("legacyRootSelector" in ActionCardWrapper && ActionCardWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${ActionCardWrapper.rootSelector}, .\${ActionCardWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ActionCardWrapper); +}; + +ElementWrapper.prototype.findAllActionCards = function(selector) { + return this.findAllComponents(ActionCardWrapper, selector); +}; +ElementWrapper.prototype.findAlert = function(selector) { + let rootSelector = \`.\${AlertWrapper.rootSelector}\`; + if("legacyRootSelector" in AlertWrapper && AlertWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${AlertWrapper.rootSelector}, .\${AlertWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, AlertWrapper); +}; + +ElementWrapper.prototype.findAllAlerts = function(selector) { + return this.findAllComponents(AlertWrapper, selector); +}; +ElementWrapper.prototype.findAnchorNavigation = function(selector) { + let rootSelector = \`.\${AnchorNavigationWrapper.rootSelector}\`; + if("legacyRootSelector" in AnchorNavigationWrapper && AnchorNavigationWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${AnchorNavigationWrapper.rootSelector}, .\${AnchorNavigationWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, AnchorNavigationWrapper); +}; + +ElementWrapper.prototype.findAllAnchorNavigations = function(selector) { + return this.findAllComponents(AnchorNavigationWrapper, selector); +}; +ElementWrapper.prototype.findAnnotation = function(selector) { + let rootSelector = \`.\${AnnotationWrapper.rootSelector}\`; + if("legacyRootSelector" in AnnotationWrapper && AnnotationWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${AnnotationWrapper.rootSelector}, .\${AnnotationWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, AnnotationWrapper); +}; + +ElementWrapper.prototype.findAllAnnotations = function(selector) { + return this.findAllComponents(AnnotationWrapper, selector); +}; +ElementWrapper.prototype.findAppLayout = function(selector) { + let rootSelector = \`.\${AppLayoutWrapper.rootSelector}\`; + if("legacyRootSelector" in AppLayoutWrapper && AppLayoutWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${AppLayoutWrapper.rootSelector}, .\${AppLayoutWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, AppLayoutWrapper); +}; + +ElementWrapper.prototype.findAllAppLayouts = function(selector) { + return this.findAllComponents(AppLayoutWrapper, selector); +}; +ElementWrapper.prototype.findAppLayoutToolbar = function(selector) { + let rootSelector = \`.\${AppLayoutToolbarWrapper.rootSelector}\`; + if("legacyRootSelector" in AppLayoutToolbarWrapper && AppLayoutToolbarWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${AppLayoutToolbarWrapper.rootSelector}, .\${AppLayoutToolbarWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, AppLayoutToolbarWrapper); +}; + +ElementWrapper.prototype.findAllAppLayoutToolbars = function(selector) { + return this.findAllComponents(AppLayoutToolbarWrapper, selector); +}; +ElementWrapper.prototype.findAreaChart = function(selector) { + let rootSelector = \`.\${AreaChartWrapper.rootSelector}\`; + if("legacyRootSelector" in AreaChartWrapper && AreaChartWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${AreaChartWrapper.rootSelector}, .\${AreaChartWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, AreaChartWrapper); +}; + +ElementWrapper.prototype.findAllAreaCharts = function(selector) { + return this.findAllComponents(AreaChartWrapper, selector); +}; +ElementWrapper.prototype.findAttributeEditor = function(selector) { + let rootSelector = \`.\${AttributeEditorWrapper.rootSelector}\`; + if("legacyRootSelector" in AttributeEditorWrapper && AttributeEditorWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${AttributeEditorWrapper.rootSelector}, .\${AttributeEditorWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, AttributeEditorWrapper); +}; + +ElementWrapper.prototype.findAllAttributeEditors = function(selector) { + return this.findAllComponents(AttributeEditorWrapper, selector); +}; +ElementWrapper.prototype.findAutosuggest = function(selector) { + let rootSelector = \`.\${AutosuggestWrapper.rootSelector}\`; + if("legacyRootSelector" in AutosuggestWrapper && AutosuggestWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${AutosuggestWrapper.rootSelector}, .\${AutosuggestWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, AutosuggestWrapper); +}; + +ElementWrapper.prototype.findAllAutosuggests = function(selector) { + return this.findAllComponents(AutosuggestWrapper, selector); +}; +ElementWrapper.prototype.findBadge = function(selector) { + let rootSelector = \`.\${BadgeWrapper.rootSelector}\`; + if("legacyRootSelector" in BadgeWrapper && BadgeWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${BadgeWrapper.rootSelector}, .\${BadgeWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, BadgeWrapper); +}; + +ElementWrapper.prototype.findAllBadges = function(selector) { + return this.findAllComponents(BadgeWrapper, selector); +}; +ElementWrapper.prototype.findBarChart = function(selector) { + let rootSelector = \`.\${BarChartWrapper.rootSelector}\`; + if("legacyRootSelector" in BarChartWrapper && BarChartWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${BarChartWrapper.rootSelector}, .\${BarChartWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, BarChartWrapper); +}; + +ElementWrapper.prototype.findAllBarCharts = function(selector) { + return this.findAllComponents(BarChartWrapper, selector); +}; +ElementWrapper.prototype.findBox = function(selector) { + let rootSelector = \`.\${BoxWrapper.rootSelector}\`; + if("legacyRootSelector" in BoxWrapper && BoxWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${BoxWrapper.rootSelector}, .\${BoxWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, BoxWrapper); +}; + +ElementWrapper.prototype.findAllBoxes = function(selector) { + return this.findAllComponents(BoxWrapper, selector); +}; +ElementWrapper.prototype.findBreadcrumbGroup = function(selector) { + let rootSelector = \`.\${BreadcrumbGroupWrapper.rootSelector}\`; + if("legacyRootSelector" in BreadcrumbGroupWrapper && BreadcrumbGroupWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${BreadcrumbGroupWrapper.rootSelector}, .\${BreadcrumbGroupWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, BreadcrumbGroupWrapper); +}; + +ElementWrapper.prototype.findAllBreadcrumbGroups = function(selector) { + return this.findAllComponents(BreadcrumbGroupWrapper, selector); +}; +ElementWrapper.prototype.findButton = function(selector) { + let rootSelector = \`.\${ButtonWrapper.rootSelector}\`; + if("legacyRootSelector" in ButtonWrapper && ButtonWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${ButtonWrapper.rootSelector}, .\${ButtonWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ButtonWrapper); +}; + +ElementWrapper.prototype.findAllButtons = function(selector) { + return this.findAllComponents(ButtonWrapper, selector); +}; +ElementWrapper.prototype.findButtonDropdown = function(selector) { + let rootSelector = \`.\${ButtonDropdownWrapper.rootSelector}\`; + if("legacyRootSelector" in ButtonDropdownWrapper && ButtonDropdownWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${ButtonDropdownWrapper.rootSelector}, .\${ButtonDropdownWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ButtonDropdownWrapper); +}; + +ElementWrapper.prototype.findAllButtonDropdowns = function(selector) { + return this.findAllComponents(ButtonDropdownWrapper, selector); +}; +ElementWrapper.prototype.findButtonGroup = function(selector) { + let rootSelector = \`.\${ButtonGroupWrapper.rootSelector}\`; + if("legacyRootSelector" in ButtonGroupWrapper && ButtonGroupWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${ButtonGroupWrapper.rootSelector}, .\${ButtonGroupWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ButtonGroupWrapper); +}; + +ElementWrapper.prototype.findAllButtonGroups = function(selector) { + return this.findAllComponents(ButtonGroupWrapper, selector); +}; +ElementWrapper.prototype.findCalendar = function(selector) { + let rootSelector = \`.\${CalendarWrapper.rootSelector}\`; + if("legacyRootSelector" in CalendarWrapper && CalendarWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${CalendarWrapper.rootSelector}, .\${CalendarWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, CalendarWrapper); +}; + +ElementWrapper.prototype.findAllCalendars = function(selector) { + return this.findAllComponents(CalendarWrapper, selector); +}; +ElementWrapper.prototype.findCards = function(selector) { + let rootSelector = \`.\${CardsWrapper.rootSelector}\`; + if("legacyRootSelector" in CardsWrapper && CardsWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${CardsWrapper.rootSelector}, .\${CardsWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, CardsWrapper); +}; + +ElementWrapper.prototype.findAllCards = function(selector) { + return this.findAllComponents(CardsWrapper, selector); +}; +ElementWrapper.prototype.findCheckbox = function(selector) { + let rootSelector = \`.\${CheckboxWrapper.rootSelector}\`; + if("legacyRootSelector" in CheckboxWrapper && CheckboxWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${CheckboxWrapper.rootSelector}, .\${CheckboxWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, CheckboxWrapper); +}; + +ElementWrapper.prototype.findAllCheckboxes = function(selector) { + return this.findAllComponents(CheckboxWrapper, selector); +}; +ElementWrapper.prototype.findCodeEditor = function(selector) { + let rootSelector = \`.\${CodeEditorWrapper.rootSelector}\`; + if("legacyRootSelector" in CodeEditorWrapper && CodeEditorWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${CodeEditorWrapper.rootSelector}, .\${CodeEditorWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, CodeEditorWrapper); +}; + +ElementWrapper.prototype.findAllCodeEditors = function(selector) { + return this.findAllComponents(CodeEditorWrapper, selector); +}; +ElementWrapper.prototype.findCollectionPreferences = function(selector) { + let rootSelector = \`.\${CollectionPreferencesWrapper.rootSelector}\`; + if("legacyRootSelector" in CollectionPreferencesWrapper && CollectionPreferencesWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${CollectionPreferencesWrapper.rootSelector}, .\${CollectionPreferencesWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, CollectionPreferencesWrapper); +}; + +ElementWrapper.prototype.findAllCollectionPreferences = function(selector) { + return this.findAllComponents(CollectionPreferencesWrapper, selector); +}; +ElementWrapper.prototype.findColumnLayout = function(selector) { + let rootSelector = \`.\${ColumnLayoutWrapper.rootSelector}\`; + if("legacyRootSelector" in ColumnLayoutWrapper && ColumnLayoutWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${ColumnLayoutWrapper.rootSelector}, .\${ColumnLayoutWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ColumnLayoutWrapper); +}; + +ElementWrapper.prototype.findAllColumnLayouts = function(selector) { + return this.findAllComponents(ColumnLayoutWrapper, selector); +}; +ElementWrapper.prototype.findContainer = function(selector) { + let rootSelector = \`.\${ContainerWrapper.rootSelector}\`; + if("legacyRootSelector" in ContainerWrapper && ContainerWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${ContainerWrapper.rootSelector}, .\${ContainerWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ContainerWrapper); +}; + +ElementWrapper.prototype.findAllContainers = function(selector) { + return this.findAllComponents(ContainerWrapper, selector); +}; +ElementWrapper.prototype.findContentLayout = function(selector) { + let rootSelector = \`.\${ContentLayoutWrapper.rootSelector}\`; + if("legacyRootSelector" in ContentLayoutWrapper && ContentLayoutWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${ContentLayoutWrapper.rootSelector}, .\${ContentLayoutWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ContentLayoutWrapper); +}; + +ElementWrapper.prototype.findAllContentLayouts = function(selector) { + return this.findAllComponents(ContentLayoutWrapper, selector); +}; +ElementWrapper.prototype.findCopyToClipboard = function(selector) { + let rootSelector = \`.\${CopyToClipboardWrapper.rootSelector}\`; + if("legacyRootSelector" in CopyToClipboardWrapper && CopyToClipboardWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${CopyToClipboardWrapper.rootSelector}, .\${CopyToClipboardWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, CopyToClipboardWrapper); +}; + +ElementWrapper.prototype.findAllCopyToClipboards = function(selector) { + return this.findAllComponents(CopyToClipboardWrapper, selector); +}; +ElementWrapper.prototype.findDateInput = function(selector) { + let rootSelector = \`.\${DateInputWrapper.rootSelector}\`; + if("legacyRootSelector" in DateInputWrapper && DateInputWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${DateInputWrapper.rootSelector}, .\${DateInputWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, DateInputWrapper); +}; + +ElementWrapper.prototype.findAllDateInputs = function(selector) { + return this.findAllComponents(DateInputWrapper, selector); +}; +ElementWrapper.prototype.findDatePicker = function(selector) { + let rootSelector = \`.\${DatePickerWrapper.rootSelector}\`; + if("legacyRootSelector" in DatePickerWrapper && DatePickerWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${DatePickerWrapper.rootSelector}, .\${DatePickerWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, DatePickerWrapper); +}; + +ElementWrapper.prototype.findAllDatePickers = function(selector) { + return this.findAllComponents(DatePickerWrapper, selector); +}; +ElementWrapper.prototype.findDateRangePicker = function(selector) { + let rootSelector = \`.\${DateRangePickerWrapper.rootSelector}\`; + if("legacyRootSelector" in DateRangePickerWrapper && DateRangePickerWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${DateRangePickerWrapper.rootSelector}, .\${DateRangePickerWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, DateRangePickerWrapper); +}; + +ElementWrapper.prototype.findAllDateRangePickers = function(selector) { + return this.findAllComponents(DateRangePickerWrapper, selector); +}; +ElementWrapper.prototype.findDrawer = function(selector) { + let rootSelector = \`.\${DrawerWrapper.rootSelector}\`; + if("legacyRootSelector" in DrawerWrapper && DrawerWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${DrawerWrapper.rootSelector}, .\${DrawerWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, DrawerWrapper); +}; + +ElementWrapper.prototype.findAllDrawers = function(selector) { + return this.findAllComponents(DrawerWrapper, selector); +}; +ElementWrapper.prototype.findDropdown = function(selector) { + let rootSelector = \`.\${DropdownWrapper.rootSelector}\`; + if("legacyRootSelector" in DropdownWrapper && DropdownWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${DropdownWrapper.rootSelector}, .\${DropdownWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, DropdownWrapper); +}; + +ElementWrapper.prototype.findAllDropdowns = function(selector) { + return this.findAllComponents(DropdownWrapper, selector); +}; +ElementWrapper.prototype.findErrorBoundary = function(selector) { + let rootSelector = \`.\${ErrorBoundaryWrapper.rootSelector}\`; + if("legacyRootSelector" in ErrorBoundaryWrapper && ErrorBoundaryWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${ErrorBoundaryWrapper.rootSelector}, .\${ErrorBoundaryWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ErrorBoundaryWrapper); +}; + +ElementWrapper.prototype.findAllErrorBoundaries = function(selector) { + return this.findAllComponents(ErrorBoundaryWrapper, selector); +}; +ElementWrapper.prototype.findExpandableSection = function(selector) { + let rootSelector = \`.\${ExpandableSectionWrapper.rootSelector}\`; + if("legacyRootSelector" in ExpandableSectionWrapper && ExpandableSectionWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${ExpandableSectionWrapper.rootSelector}, .\${ExpandableSectionWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ExpandableSectionWrapper); +}; + +ElementWrapper.prototype.findAllExpandableSections = function(selector) { + return this.findAllComponents(ExpandableSectionWrapper, selector); +}; +ElementWrapper.prototype.findFileDropzone = function(selector) { + let rootSelector = \`.\${FileDropzoneWrapper.rootSelector}\`; + if("legacyRootSelector" in FileDropzoneWrapper && FileDropzoneWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${FileDropzoneWrapper.rootSelector}, .\${FileDropzoneWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, FileDropzoneWrapper); +}; + +ElementWrapper.prototype.findAllFileDropzones = function(selector) { + return this.findAllComponents(FileDropzoneWrapper, selector); +}; +ElementWrapper.prototype.findFileInput = function(selector) { + let rootSelector = \`.\${FileInputWrapper.rootSelector}\`; + if("legacyRootSelector" in FileInputWrapper && FileInputWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${FileInputWrapper.rootSelector}, .\${FileInputWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, FileInputWrapper); +}; + +ElementWrapper.prototype.findAllFileInputs = function(selector) { + return this.findAllComponents(FileInputWrapper, selector); +}; +ElementWrapper.prototype.findFileTokenGroup = function(selector) { + let rootSelector = \`.\${FileTokenGroupWrapper.rootSelector}\`; + if("legacyRootSelector" in FileTokenGroupWrapper && FileTokenGroupWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${FileTokenGroupWrapper.rootSelector}, .\${FileTokenGroupWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, FileTokenGroupWrapper); +}; + +ElementWrapper.prototype.findAllFileTokenGroups = function(selector) { + return this.findAllComponents(FileTokenGroupWrapper, selector); +}; +ElementWrapper.prototype.findFileUpload = function(selector) { + let rootSelector = \`.\${FileUploadWrapper.rootSelector}\`; + if("legacyRootSelector" in FileUploadWrapper && FileUploadWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${FileUploadWrapper.rootSelector}, .\${FileUploadWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, FileUploadWrapper); +}; + +ElementWrapper.prototype.findAllFileUploads = function(selector) { + return this.findAllComponents(FileUploadWrapper, selector); +}; +ElementWrapper.prototype.findFlashbar = function(selector) { + let rootSelector = \`.\${FlashbarWrapper.rootSelector}\`; + if("legacyRootSelector" in FlashbarWrapper && FlashbarWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${FlashbarWrapper.rootSelector}, .\${FlashbarWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, FlashbarWrapper); +}; + +ElementWrapper.prototype.findAllFlashbars = function(selector) { + return this.findAllComponents(FlashbarWrapper, selector); +}; +ElementWrapper.prototype.findForm = function(selector) { + let rootSelector = \`.\${FormWrapper.rootSelector}\`; + if("legacyRootSelector" in FormWrapper && FormWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${FormWrapper.rootSelector}, .\${FormWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, FormWrapper); +}; + +ElementWrapper.prototype.findAllForms = function(selector) { + return this.findAllComponents(FormWrapper, selector); +}; +ElementWrapper.prototype.findFormField = function(selector) { + let rootSelector = \`.\${FormFieldWrapper.rootSelector}\`; + if("legacyRootSelector" in FormFieldWrapper && FormFieldWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${FormFieldWrapper.rootSelector}, .\${FormFieldWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, FormFieldWrapper); +}; + +ElementWrapper.prototype.findAllFormFields = function(selector) { + return this.findAllComponents(FormFieldWrapper, selector); +}; +ElementWrapper.prototype.findGrid = function(selector) { + let rootSelector = \`.\${GridWrapper.rootSelector}\`; + if("legacyRootSelector" in GridWrapper && GridWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${GridWrapper.rootSelector}, .\${GridWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, GridWrapper); +}; + +ElementWrapper.prototype.findAllGrids = function(selector) { + return this.findAllComponents(GridWrapper, selector); +}; +ElementWrapper.prototype.findHeader = function(selector) { + let rootSelector = \`.\${HeaderWrapper.rootSelector}\`; + if("legacyRootSelector" in HeaderWrapper && HeaderWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${HeaderWrapper.rootSelector}, .\${HeaderWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, HeaderWrapper); +}; + +ElementWrapper.prototype.findAllHeaders = function(selector) { + return this.findAllComponents(HeaderWrapper, selector); +}; +ElementWrapper.prototype.findHelpPanel = function(selector) { + let rootSelector = \`.\${HelpPanelWrapper.rootSelector}\`; + if("legacyRootSelector" in HelpPanelWrapper && HelpPanelWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${HelpPanelWrapper.rootSelector}, .\${HelpPanelWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, HelpPanelWrapper); +}; + +ElementWrapper.prototype.findAllHelpPanels = function(selector) { + return this.findAllComponents(HelpPanelWrapper, selector); +}; +ElementWrapper.prototype.findHotspot = function(selector) { + let rootSelector = \`.\${HotspotWrapper.rootSelector}\`; + if("legacyRootSelector" in HotspotWrapper && HotspotWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${HotspotWrapper.rootSelector}, .\${HotspotWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, HotspotWrapper); +}; + +ElementWrapper.prototype.findAllHotspots = function(selector) { + return this.findAllComponents(HotspotWrapper, selector); +}; +ElementWrapper.prototype.findIcon = function(selector) { + let rootSelector = \`.\${IconWrapper.rootSelector}\`; + if("legacyRootSelector" in IconWrapper && IconWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${IconWrapper.rootSelector}, .\${IconWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, IconWrapper); +}; + +ElementWrapper.prototype.findAllIcons = function(selector) { + return this.findAllComponents(IconWrapper, selector); +}; +ElementWrapper.prototype.findInput = function(selector) { + let rootSelector = \`.\${InputWrapper.rootSelector}\`; + if("legacyRootSelector" in InputWrapper && InputWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${InputWrapper.rootSelector}, .\${InputWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, InputWrapper); +}; + +ElementWrapper.prototype.findAllInputs = function(selector) { + return this.findAllComponents(InputWrapper, selector); +}; +ElementWrapper.prototype.findItemCard = function(selector) { + let rootSelector = \`.\${ItemCardWrapper.rootSelector}\`; + if("legacyRootSelector" in ItemCardWrapper && ItemCardWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${ItemCardWrapper.rootSelector}, .\${ItemCardWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ItemCardWrapper); +}; + +ElementWrapper.prototype.findAllItemCards = function(selector) { + return this.findAllComponents(ItemCardWrapper, selector); +}; +ElementWrapper.prototype.findKeyValuePairs = function(selector) { + let rootSelector = \`.\${KeyValuePairsWrapper.rootSelector}\`; + if("legacyRootSelector" in KeyValuePairsWrapper && KeyValuePairsWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${KeyValuePairsWrapper.rootSelector}, .\${KeyValuePairsWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, KeyValuePairsWrapper); +}; + +ElementWrapper.prototype.findAllKeyValuePairs = function(selector) { + return this.findAllComponents(KeyValuePairsWrapper, selector); +}; +ElementWrapper.prototype.findLineChart = function(selector) { + let rootSelector = \`.\${LineChartWrapper.rootSelector}\`; + if("legacyRootSelector" in LineChartWrapper && LineChartWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${LineChartWrapper.rootSelector}, .\${LineChartWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, LineChartWrapper); +}; + +ElementWrapper.prototype.findAllLineCharts = function(selector) { + return this.findAllComponents(LineChartWrapper, selector); +}; +ElementWrapper.prototype.findLink = function(selector) { + let rootSelector = \`.\${LinkWrapper.rootSelector}\`; + if("legacyRootSelector" in LinkWrapper && LinkWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${LinkWrapper.rootSelector}, .\${LinkWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, LinkWrapper); +}; + +ElementWrapper.prototype.findAllLinks = function(selector) { + return this.findAllComponents(LinkWrapper, selector); +}; +ElementWrapper.prototype.findList = function(selector) { + let rootSelector = \`.\${ListWrapper.rootSelector}\`; + if("legacyRootSelector" in ListWrapper && ListWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${ListWrapper.rootSelector}, .\${ListWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ListWrapper); +}; + +ElementWrapper.prototype.findAllLists = function(selector) { + return this.findAllComponents(ListWrapper, selector); +}; +ElementWrapper.prototype.findLiveRegion = function(selector) { + let rootSelector = \`.\${LiveRegionWrapper.rootSelector}\`; + if("legacyRootSelector" in LiveRegionWrapper && LiveRegionWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${LiveRegionWrapper.rootSelector}, .\${LiveRegionWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, LiveRegionWrapper); +}; + +ElementWrapper.prototype.findAllLiveRegions = function(selector) { + return this.findAllComponents(LiveRegionWrapper, selector); +}; +ElementWrapper.prototype.findMixedLineBarChart = function(selector) { + let rootSelector = \`.\${MixedLineBarChartWrapper.rootSelector}\`; + if("legacyRootSelector" in MixedLineBarChartWrapper && MixedLineBarChartWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${MixedLineBarChartWrapper.rootSelector}, .\${MixedLineBarChartWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, MixedLineBarChartWrapper); +}; + +ElementWrapper.prototype.findAllMixedLineBarCharts = function(selector) { + return this.findAllComponents(MixedLineBarChartWrapper, selector); +}; +ElementWrapper.prototype.findModal = function(selector) { + let rootSelector = \`.\${ModalWrapper.rootSelector}\`; + if("legacyRootSelector" in ModalWrapper && ModalWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${ModalWrapper.rootSelector}, .\${ModalWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ModalWrapper); +}; + +ElementWrapper.prototype.findAllModals = function(selector) { + return this.findAllComponents(ModalWrapper, selector); +}; +ElementWrapper.prototype.findMultiselect = function(selector) { + let rootSelector = \`.\${MultiselectWrapper.rootSelector}\`; + if("legacyRootSelector" in MultiselectWrapper && MultiselectWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${MultiselectWrapper.rootSelector}, .\${MultiselectWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, MultiselectWrapper); +}; + +ElementWrapper.prototype.findAllMultiselects = function(selector) { + return this.findAllComponents(MultiselectWrapper, selector); +}; +ElementWrapper.prototype.findNavigableGroup = function(selector) { + let rootSelector = \`.\${NavigableGroupWrapper.rootSelector}\`; + if("legacyRootSelector" in NavigableGroupWrapper && NavigableGroupWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${NavigableGroupWrapper.rootSelector}, .\${NavigableGroupWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, NavigableGroupWrapper); +}; + +ElementWrapper.prototype.findAllNavigableGroups = function(selector) { + return this.findAllComponents(NavigableGroupWrapper, selector); +}; +ElementWrapper.prototype.findPagination = function(selector) { + let rootSelector = \`.\${PaginationWrapper.rootSelector}\`; + if("legacyRootSelector" in PaginationWrapper && PaginationWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${PaginationWrapper.rootSelector}, .\${PaginationWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, PaginationWrapper); +}; + +ElementWrapper.prototype.findAllPaginations = function(selector) { + return this.findAllComponents(PaginationWrapper, selector); +}; +ElementWrapper.prototype.findPanelLayout = function(selector) { + let rootSelector = \`.\${PanelLayoutWrapper.rootSelector}\`; + if("legacyRootSelector" in PanelLayoutWrapper && PanelLayoutWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${PanelLayoutWrapper.rootSelector}, .\${PanelLayoutWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, PanelLayoutWrapper); +}; + +ElementWrapper.prototype.findAllPanelLayouts = function(selector) { + return this.findAllComponents(PanelLayoutWrapper, selector); +}; +ElementWrapper.prototype.findPieChart = function(selector) { + let rootSelector = \`.\${PieChartWrapper.rootSelector}\`; + if("legacyRootSelector" in PieChartWrapper && PieChartWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${PieChartWrapper.rootSelector}, .\${PieChartWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, PieChartWrapper); +}; + +ElementWrapper.prototype.findAllPieCharts = function(selector) { + return this.findAllComponents(PieChartWrapper, selector); +}; +ElementWrapper.prototype.findPopover = function(selector) { + let rootSelector = \`.\${PopoverWrapper.rootSelector}\`; + if("legacyRootSelector" in PopoverWrapper && PopoverWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${PopoverWrapper.rootSelector}, .\${PopoverWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, PopoverWrapper); +}; + +ElementWrapper.prototype.findAllPopovers = function(selector) { + return this.findAllComponents(PopoverWrapper, selector); +}; +ElementWrapper.prototype.findProgressBar = function(selector) { + let rootSelector = \`.\${ProgressBarWrapper.rootSelector}\`; + if("legacyRootSelector" in ProgressBarWrapper && ProgressBarWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${ProgressBarWrapper.rootSelector}, .\${ProgressBarWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ProgressBarWrapper); +}; + +ElementWrapper.prototype.findAllProgressBars = function(selector) { + return this.findAllComponents(ProgressBarWrapper, selector); +}; +ElementWrapper.prototype.findPromptInput = function(selector) { + let rootSelector = \`.\${PromptInputWrapper.rootSelector}\`; + if("legacyRootSelector" in PromptInputWrapper && PromptInputWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${PromptInputWrapper.rootSelector}, .\${PromptInputWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, PromptInputWrapper); +}; + +ElementWrapper.prototype.findAllPromptInputs = function(selector) { + return this.findAllComponents(PromptInputWrapper, selector); +}; +ElementWrapper.prototype.findPropertyFilter = function(selector) { + let rootSelector = \`.\${PropertyFilterWrapper.rootSelector}\`; + if("legacyRootSelector" in PropertyFilterWrapper && PropertyFilterWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${PropertyFilterWrapper.rootSelector}, .\${PropertyFilterWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, PropertyFilterWrapper); +}; + +ElementWrapper.prototype.findAllPropertyFilters = function(selector) { + return this.findAllComponents(PropertyFilterWrapper, selector); +}; +ElementWrapper.prototype.findRadioButton = function(selector) { + let rootSelector = \`.\${RadioButtonWrapper.rootSelector}\`; + if("legacyRootSelector" in RadioButtonWrapper && RadioButtonWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${RadioButtonWrapper.rootSelector}, .\${RadioButtonWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, RadioButtonWrapper); +}; + +ElementWrapper.prototype.findAllRadioButtons = function(selector) { + return this.findAllComponents(RadioButtonWrapper, selector); +}; +ElementWrapper.prototype.findRadioGroup = function(selector) { + let rootSelector = \`.\${RadioGroupWrapper.rootSelector}\`; + if("legacyRootSelector" in RadioGroupWrapper && RadioGroupWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${RadioGroupWrapper.rootSelector}, .\${RadioGroupWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, RadioGroupWrapper); +}; + +ElementWrapper.prototype.findAllRadioGroups = function(selector) { + return this.findAllComponents(RadioGroupWrapper, selector); +}; +ElementWrapper.prototype.findS3ResourceSelector = function(selector) { + let rootSelector = \`.\${S3ResourceSelectorWrapper.rootSelector}\`; + if("legacyRootSelector" in S3ResourceSelectorWrapper && S3ResourceSelectorWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${S3ResourceSelectorWrapper.rootSelector}, .\${S3ResourceSelectorWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, S3ResourceSelectorWrapper); +}; + +ElementWrapper.prototype.findAllS3ResourceSelectors = function(selector) { + return this.findAllComponents(S3ResourceSelectorWrapper, selector); +}; +ElementWrapper.prototype.findSegmentedControl = function(selector) { + let rootSelector = \`.\${SegmentedControlWrapper.rootSelector}\`; + if("legacyRootSelector" in SegmentedControlWrapper && SegmentedControlWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${SegmentedControlWrapper.rootSelector}, .\${SegmentedControlWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, SegmentedControlWrapper); +}; + +ElementWrapper.prototype.findAllSegmentedControls = function(selector) { + return this.findAllComponents(SegmentedControlWrapper, selector); +}; +ElementWrapper.prototype.findSelect = function(selector) { + let rootSelector = \`.\${SelectWrapper.rootSelector}\`; + if("legacyRootSelector" in SelectWrapper && SelectWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${SelectWrapper.rootSelector}, .\${SelectWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, SelectWrapper); +}; + +ElementWrapper.prototype.findAllSelects = function(selector) { + return this.findAllComponents(SelectWrapper, selector); +}; +ElementWrapper.prototype.findSideNavigation = function(selector) { + let rootSelector = \`.\${SideNavigationWrapper.rootSelector}\`; + if("legacyRootSelector" in SideNavigationWrapper && SideNavigationWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${SideNavigationWrapper.rootSelector}, .\${SideNavigationWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, SideNavigationWrapper); +}; + +ElementWrapper.prototype.findAllSideNavigations = function(selector) { + return this.findAllComponents(SideNavigationWrapper, selector); +}; +ElementWrapper.prototype.findSlider = function(selector) { + let rootSelector = \`.\${SliderWrapper.rootSelector}\`; + if("legacyRootSelector" in SliderWrapper && SliderWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${SliderWrapper.rootSelector}, .\${SliderWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, SliderWrapper); +}; + +ElementWrapper.prototype.findAllSliders = function(selector) { + return this.findAllComponents(SliderWrapper, selector); +}; +ElementWrapper.prototype.findSpaceBetween = function(selector) { + let rootSelector = \`.\${SpaceBetweenWrapper.rootSelector}\`; + if("legacyRootSelector" in SpaceBetweenWrapper && SpaceBetweenWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${SpaceBetweenWrapper.rootSelector}, .\${SpaceBetweenWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, SpaceBetweenWrapper); +}; + +ElementWrapper.prototype.findAllSpaceBetweens = function(selector) { + return this.findAllComponents(SpaceBetweenWrapper, selector); +}; +ElementWrapper.prototype.findSpinner = function(selector) { + let rootSelector = \`.\${SpinnerWrapper.rootSelector}\`; + if("legacyRootSelector" in SpinnerWrapper && SpinnerWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${SpinnerWrapper.rootSelector}, .\${SpinnerWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, SpinnerWrapper); +}; + +ElementWrapper.prototype.findAllSpinners = function(selector) { + return this.findAllComponents(SpinnerWrapper, selector); +}; +ElementWrapper.prototype.findSplitPanel = function(selector) { + let rootSelector = \`.\${SplitPanelWrapper.rootSelector}\`; + if("legacyRootSelector" in SplitPanelWrapper && SplitPanelWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${SplitPanelWrapper.rootSelector}, .\${SplitPanelWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, SplitPanelWrapper); +}; + +ElementWrapper.prototype.findAllSplitPanels = function(selector) { + return this.findAllComponents(SplitPanelWrapper, selector); +}; +ElementWrapper.prototype.findStatusIndicator = function(selector) { + let rootSelector = \`.\${StatusIndicatorWrapper.rootSelector}\`; + if("legacyRootSelector" in StatusIndicatorWrapper && StatusIndicatorWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${StatusIndicatorWrapper.rootSelector}, .\${StatusIndicatorWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, StatusIndicatorWrapper); +}; + +ElementWrapper.prototype.findAllStatusIndicators = function(selector) { + return this.findAllComponents(StatusIndicatorWrapper, selector); +}; +ElementWrapper.prototype.findSteps = function(selector) { + let rootSelector = \`.\${StepsWrapper.rootSelector}\`; + if("legacyRootSelector" in StepsWrapper && StepsWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${StepsWrapper.rootSelector}, .\${StepsWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, StepsWrapper); +}; + +ElementWrapper.prototype.findAllSteps = function(selector) { + return this.findAllComponents(StepsWrapper, selector); +}; +ElementWrapper.prototype.findTable = function(selector) { + let rootSelector = \`.\${TableWrapper.rootSelector}\`; + if("legacyRootSelector" in TableWrapper && TableWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${TableWrapper.rootSelector}, .\${TableWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TableWrapper); +}; + +ElementWrapper.prototype.findAllTables = function(selector) { + return this.findAllComponents(TableWrapper, selector); +}; +ElementWrapper.prototype.findTabs = function(selector) { + let rootSelector = \`.\${TabsWrapper.rootSelector}\`; + if("legacyRootSelector" in TabsWrapper && TabsWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${TabsWrapper.rootSelector}, .\${TabsWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TabsWrapper); +}; + +ElementWrapper.prototype.findAllTabs = function(selector) { + return this.findAllComponents(TabsWrapper, selector); +}; +ElementWrapper.prototype.findTagEditor = function(selector) { + let rootSelector = \`.\${TagEditorWrapper.rootSelector}\`; + if("legacyRootSelector" in TagEditorWrapper && TagEditorWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${TagEditorWrapper.rootSelector}, .\${TagEditorWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TagEditorWrapper); +}; + +ElementWrapper.prototype.findAllTagEditors = function(selector) { + return this.findAllComponents(TagEditorWrapper, selector); +}; +ElementWrapper.prototype.findTextContent = function(selector) { + let rootSelector = \`.\${TextContentWrapper.rootSelector}\`; + if("legacyRootSelector" in TextContentWrapper && TextContentWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${TextContentWrapper.rootSelector}, .\${TextContentWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TextContentWrapper); +}; + +ElementWrapper.prototype.findAllTextContents = function(selector) { + return this.findAllComponents(TextContentWrapper, selector); +}; +ElementWrapper.prototype.findTextFilter = function(selector) { + let rootSelector = \`.\${TextFilterWrapper.rootSelector}\`; + if("legacyRootSelector" in TextFilterWrapper && TextFilterWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${TextFilterWrapper.rootSelector}, .\${TextFilterWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TextFilterWrapper); +}; + +ElementWrapper.prototype.findAllTextFilters = function(selector) { + return this.findAllComponents(TextFilterWrapper, selector); +}; +ElementWrapper.prototype.findTextarea = function(selector) { + let rootSelector = \`.\${TextareaWrapper.rootSelector}\`; + if("legacyRootSelector" in TextareaWrapper && TextareaWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${TextareaWrapper.rootSelector}, .\${TextareaWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TextareaWrapper); +}; + +ElementWrapper.prototype.findAllTextareas = function(selector) { + return this.findAllComponents(TextareaWrapper, selector); +}; +ElementWrapper.prototype.findTiles = function(selector) { + let rootSelector = \`.\${TilesWrapper.rootSelector}\`; + if("legacyRootSelector" in TilesWrapper && TilesWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${TilesWrapper.rootSelector}, .\${TilesWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TilesWrapper); +}; + +ElementWrapper.prototype.findAllTiles = function(selector) { + return this.findAllComponents(TilesWrapper, selector); +}; +ElementWrapper.prototype.findTimeInput = function(selector) { + let rootSelector = \`.\${TimeInputWrapper.rootSelector}\`; + if("legacyRootSelector" in TimeInputWrapper && TimeInputWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${TimeInputWrapper.rootSelector}, .\${TimeInputWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TimeInputWrapper); +}; + +ElementWrapper.prototype.findAllTimeInputs = function(selector) { + return this.findAllComponents(TimeInputWrapper, selector); +}; +ElementWrapper.prototype.findToggle = function(selector) { + let rootSelector = \`.\${ToggleWrapper.rootSelector}\`; + if("legacyRootSelector" in ToggleWrapper && ToggleWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${ToggleWrapper.rootSelector}, .\${ToggleWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ToggleWrapper); +}; + +ElementWrapper.prototype.findAllToggles = function(selector) { + return this.findAllComponents(ToggleWrapper, selector); +}; +ElementWrapper.prototype.findToggleButton = function(selector) { + let rootSelector = \`.\${ToggleButtonWrapper.rootSelector}\`; + if("legacyRootSelector" in ToggleButtonWrapper && ToggleButtonWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${ToggleButtonWrapper.rootSelector}, .\${ToggleButtonWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ToggleButtonWrapper); +}; + +ElementWrapper.prototype.findAllToggleButtons = function(selector) { + return this.findAllComponents(ToggleButtonWrapper, selector); +}; +ElementWrapper.prototype.findToken = function(selector) { + let rootSelector = \`.\${TokenWrapper.rootSelector}\`; + if("legacyRootSelector" in TokenWrapper && TokenWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${TokenWrapper.rootSelector}, .\${TokenWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TokenWrapper); +}; + +ElementWrapper.prototype.findAllTokens = function(selector) { + return this.findAllComponents(TokenWrapper, selector); +}; +ElementWrapper.prototype.findTokenGroup = function(selector) { + let rootSelector = \`.\${TokenGroupWrapper.rootSelector}\`; + if("legacyRootSelector" in TokenGroupWrapper && TokenGroupWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${TokenGroupWrapper.rootSelector}, .\${TokenGroupWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TokenGroupWrapper); +}; + +ElementWrapper.prototype.findAllTokenGroups = function(selector) { + return this.findAllComponents(TokenGroupWrapper, selector); +}; +ElementWrapper.prototype.findTooltip = function(selector) { + let rootSelector = \`.\${TooltipWrapper.rootSelector}\`; + if("legacyRootSelector" in TooltipWrapper && TooltipWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${TooltipWrapper.rootSelector}, .\${TooltipWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TooltipWrapper); +}; + +ElementWrapper.prototype.findAllTooltips = function(selector) { + return this.findAllComponents(TooltipWrapper, selector); +}; +ElementWrapper.prototype.findTopNavigation = function(selector) { + let rootSelector = \`.\${TopNavigationWrapper.rootSelector}\`; + if("legacyRootSelector" in TopNavigationWrapper && TopNavigationWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${TopNavigationWrapper.rootSelector}, .\${TopNavigationWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TopNavigationWrapper); +}; + +ElementWrapper.prototype.findAllTopNavigations = function(selector) { + return this.findAllComponents(TopNavigationWrapper, selector); +}; +ElementWrapper.prototype.findTreeView = function(selector) { + let rootSelector = \`.\${TreeViewWrapper.rootSelector}\`; + if("legacyRootSelector" in TreeViewWrapper && TreeViewWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${TreeViewWrapper.rootSelector}, .\${TreeViewWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TreeViewWrapper); +}; + +ElementWrapper.prototype.findAllTreeViews = function(selector) { + return this.findAllComponents(TreeViewWrapper, selector); +}; +ElementWrapper.prototype.findTutorialPanel = function(selector) { + let rootSelector = \`.\${TutorialPanelWrapper.rootSelector}\`; + if("legacyRootSelector" in TutorialPanelWrapper && TutorialPanelWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${TutorialPanelWrapper.rootSelector}, .\${TutorialPanelWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TutorialPanelWrapper); +}; + +ElementWrapper.prototype.findAllTutorialPanels = function(selector) { + return this.findAllComponents(TutorialPanelWrapper, selector); +}; +ElementWrapper.prototype.findWizard = function(selector) { + let rootSelector = \`.\${WizardWrapper.rootSelector}\`; + if("legacyRootSelector" in WizardWrapper && WizardWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${WizardWrapper.rootSelector}, .\${WizardWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, WizardWrapper); +}; + +ElementWrapper.prototype.findAllWizards = function(selector) { + return this.findAllComponents(WizardWrapper, selector); +}; + +ElementWrapper.prototype.findClosestActionCard = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(ActionCardWrapper); +}; +ElementWrapper.prototype.findClosestAlert = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(AlertWrapper); +}; +ElementWrapper.prototype.findClosestAnchorNavigation = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(AnchorNavigationWrapper); +}; +ElementWrapper.prototype.findClosestAnnotation = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(AnnotationWrapper); +}; +ElementWrapper.prototype.findClosestAppLayout = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(AppLayoutWrapper); +}; +ElementWrapper.prototype.findClosestAppLayoutToolbar = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(AppLayoutToolbarWrapper); +}; +ElementWrapper.prototype.findClosestAreaChart = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(AreaChartWrapper); +}; +ElementWrapper.prototype.findClosestAttributeEditor = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(AttributeEditorWrapper); +}; +ElementWrapper.prototype.findClosestAutosuggest = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(AutosuggestWrapper); +}; +ElementWrapper.prototype.findClosestBadge = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(BadgeWrapper); +}; +ElementWrapper.prototype.findClosestBarChart = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(BarChartWrapper); +}; +ElementWrapper.prototype.findClosestBox = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(BoxWrapper); +}; +ElementWrapper.prototype.findClosestBreadcrumbGroup = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(BreadcrumbGroupWrapper); +}; +ElementWrapper.prototype.findClosestButton = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(ButtonWrapper); +}; +ElementWrapper.prototype.findClosestButtonDropdown = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(ButtonDropdownWrapper); +}; +ElementWrapper.prototype.findClosestButtonGroup = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(ButtonGroupWrapper); +}; +ElementWrapper.prototype.findClosestCalendar = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(CalendarWrapper); +}; +ElementWrapper.prototype.findClosestCards = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(CardsWrapper); +}; +ElementWrapper.prototype.findClosestCheckbox = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(CheckboxWrapper); +}; +ElementWrapper.prototype.findClosestCodeEditor = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(CodeEditorWrapper); +}; +ElementWrapper.prototype.findClosestCollectionPreferences = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(CollectionPreferencesWrapper); +}; +ElementWrapper.prototype.findClosestColumnLayout = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(ColumnLayoutWrapper); +}; +ElementWrapper.prototype.findClosestContainer = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(ContainerWrapper); +}; +ElementWrapper.prototype.findClosestContentLayout = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(ContentLayoutWrapper); +}; +ElementWrapper.prototype.findClosestCopyToClipboard = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(CopyToClipboardWrapper); +}; +ElementWrapper.prototype.findClosestDateInput = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(DateInputWrapper); +}; +ElementWrapper.prototype.findClosestDatePicker = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(DatePickerWrapper); +}; +ElementWrapper.prototype.findClosestDateRangePicker = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(DateRangePickerWrapper); +}; +ElementWrapper.prototype.findClosestDrawer = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(DrawerWrapper); +}; +ElementWrapper.prototype.findClosestDropdown = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(DropdownWrapper); +}; +ElementWrapper.prototype.findClosestErrorBoundary = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(ErrorBoundaryWrapper); +}; +ElementWrapper.prototype.findClosestExpandableSection = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(ExpandableSectionWrapper); +}; +ElementWrapper.prototype.findClosestFileDropzone = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(FileDropzoneWrapper); +}; +ElementWrapper.prototype.findClosestFileInput = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(FileInputWrapper); +}; +ElementWrapper.prototype.findClosestFileTokenGroup = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(FileTokenGroupWrapper); +}; +ElementWrapper.prototype.findClosestFileUpload = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(FileUploadWrapper); +}; +ElementWrapper.prototype.findClosestFlashbar = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(FlashbarWrapper); +}; +ElementWrapper.prototype.findClosestForm = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(FormWrapper); +}; +ElementWrapper.prototype.findClosestFormField = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(FormFieldWrapper); +}; +ElementWrapper.prototype.findClosestGrid = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(GridWrapper); +}; +ElementWrapper.prototype.findClosestHeader = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(HeaderWrapper); +}; +ElementWrapper.prototype.findClosestHelpPanel = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(HelpPanelWrapper); +}; +ElementWrapper.prototype.findClosestHotspot = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(HotspotWrapper); +}; +ElementWrapper.prototype.findClosestIcon = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(IconWrapper); +}; +ElementWrapper.prototype.findClosestInput = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(InputWrapper); +}; +ElementWrapper.prototype.findClosestItemCard = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(ItemCardWrapper); +}; +ElementWrapper.prototype.findClosestKeyValuePairs = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(KeyValuePairsWrapper); +}; +ElementWrapper.prototype.findClosestLineChart = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(LineChartWrapper); +}; +ElementWrapper.prototype.findClosestLink = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(LinkWrapper); +}; +ElementWrapper.prototype.findClosestList = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(ListWrapper); +}; +ElementWrapper.prototype.findClosestLiveRegion = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(LiveRegionWrapper); +}; +ElementWrapper.prototype.findClosestMixedLineBarChart = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(MixedLineBarChartWrapper); +}; +ElementWrapper.prototype.findClosestModal = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(ModalWrapper); +}; +ElementWrapper.prototype.findClosestMultiselect = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(MultiselectWrapper); +}; +ElementWrapper.prototype.findClosestNavigableGroup = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(NavigableGroupWrapper); +}; +ElementWrapper.prototype.findClosestPagination = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(PaginationWrapper); +}; +ElementWrapper.prototype.findClosestPanelLayout = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(PanelLayoutWrapper); +}; +ElementWrapper.prototype.findClosestPieChart = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(PieChartWrapper); +}; +ElementWrapper.prototype.findClosestPopover = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(PopoverWrapper); +}; +ElementWrapper.prototype.findClosestProgressBar = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(ProgressBarWrapper); +}; +ElementWrapper.prototype.findClosestPromptInput = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(PromptInputWrapper); +}; +ElementWrapper.prototype.findClosestPropertyFilter = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(PropertyFilterWrapper); +}; +ElementWrapper.prototype.findClosestRadioButton = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(RadioButtonWrapper); +}; +ElementWrapper.prototype.findClosestRadioGroup = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(RadioGroupWrapper); +}; +ElementWrapper.prototype.findClosestS3ResourceSelector = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(S3ResourceSelectorWrapper); +}; +ElementWrapper.prototype.findClosestSegmentedControl = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(SegmentedControlWrapper); +}; +ElementWrapper.prototype.findClosestSelect = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(SelectWrapper); +}; +ElementWrapper.prototype.findClosestSideNavigation = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(SideNavigationWrapper); +}; +ElementWrapper.prototype.findClosestSlider = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(SliderWrapper); +}; +ElementWrapper.prototype.findClosestSpaceBetween = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(SpaceBetweenWrapper); +}; +ElementWrapper.prototype.findClosestSpinner = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(SpinnerWrapper); +}; +ElementWrapper.prototype.findClosestSplitPanel = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(SplitPanelWrapper); +}; +ElementWrapper.prototype.findClosestStatusIndicator = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(StatusIndicatorWrapper); +}; +ElementWrapper.prototype.findClosestSteps = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(StepsWrapper); +}; +ElementWrapper.prototype.findClosestTable = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(TableWrapper); +}; +ElementWrapper.prototype.findClosestTabs = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(TabsWrapper); +}; +ElementWrapper.prototype.findClosestTagEditor = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(TagEditorWrapper); +}; +ElementWrapper.prototype.findClosestTextContent = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(TextContentWrapper); +}; +ElementWrapper.prototype.findClosestTextFilter = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(TextFilterWrapper); +}; +ElementWrapper.prototype.findClosestTextarea = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(TextareaWrapper); +}; +ElementWrapper.prototype.findClosestTiles = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(TilesWrapper); +}; +ElementWrapper.prototype.findClosestTimeInput = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(TimeInputWrapper); +}; +ElementWrapper.prototype.findClosestToggle = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(ToggleWrapper); +}; +ElementWrapper.prototype.findClosestToggleButton = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(ToggleButtonWrapper); +}; +ElementWrapper.prototype.findClosestToken = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(TokenWrapper); +}; +ElementWrapper.prototype.findClosestTokenGroup = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(TokenGroupWrapper); +}; +ElementWrapper.prototype.findClosestTooltip = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(TooltipWrapper); +}; +ElementWrapper.prototype.findClosestTopNavigation = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(TopNavigationWrapper); +}; +ElementWrapper.prototype.findClosestTreeView = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(TreeViewWrapper); +}; +ElementWrapper.prototype.findClosestTutorialPanel = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(TutorialPanelWrapper); +}; +ElementWrapper.prototype.findClosestWizard = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(WizardWrapper); +}; + export default function wrapper(root: Element = document.body) { + if (document && document.body && !document.body.contains(root)) { + console.warn('[AwsUi] [test-utils] provided element is not part of the document body, interactions may work incorrectly') + }; return new ElementWrapper(root); } " From 8a2e7169493a6e289fac067f6daa15ac0cb6f098 Mon Sep 17 00:00:00 2001 From: Nathnael Dereje Date: Thu, 16 Apr 2026 20:40:12 +0200 Subject: [PATCH 06/16] chore: Add post install script --- package.json | 2 +- scripts/install-peer-dependency.js | 100 +++++++++++++++++++++++++++++ 2 files changed, 101 insertions(+), 1 deletion(-) create mode 100644 scripts/install-peer-dependency.js diff --git a/package.json b/package.json index b517cbd933..5afdf9ef86 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "start:integ": "cross-env NODE_ENV=development webpack serve --config pages/webpack.config.integ.cjs", "start:react18": "npm-run-all --parallel start:watch start:react18:dev", "start:react18:dev": "cross-env NODE_ENV=development REACT_VERSION=18 webpack serve --config pages/webpack.config.cjs", - "postinstall": "prepare-package-lock", + "postinstall": "prepare-package-lock && node ./scripts/install-peer-dependency.js collection-hooks:feat-table-selection-demo", "prepare": "husky" }, "dependencies": { diff --git a/scripts/install-peer-dependency.js b/scripts/install-peer-dependency.js new file mode 100644 index 0000000000..c0f614b2ca --- /dev/null +++ b/scripts/install-peer-dependency.js @@ -0,0 +1,100 @@ +#!/usr/bin/env node +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +// Can be used in postinstall script like so: +// "postinstall": "node ./scripts/install-peer-dependency.js collection-hooks:property-filter-token-groups" +// where "collection-hooks" is the package to fetch and "property-filter-token-groups" is the branch name in GitHub. + +import { execSync } from 'child_process'; +import process from 'node:process'; +import os from 'os'; +import path from 'path'; + +const getModules = packageName => { + switch (packageName) { + case 'components': + return ['components', 'design-tokens', 'collection-hooks']; + case 'theming-core': + return ['theming-build', 'theming-runtime']; + case 'test-utils': + return ['test-utils-core', 'test-utils-converter']; + default: + return [packageName]; + } +}; + +const getArtifactPath = moduleName => { + switch (moduleName) { + case 'components': + return '/lib/components/*'; + case 'design-tokens': + return '/lib/design-tokens/*'; + case 'board-components': + return '/lib/components/*'; + case 'theming-build': + return '/lib/node/*'; + case 'theming-runtime': + return '/lib/browser/*'; + case 'test-utils-core': + return '/lib/core/*'; + case 'test-utils-converter': + return '/lib/converter/*'; + default: + return '/lib/*'; + } +}; + +const args = process.argv.slice(2); +if (args.length < 1) { + console.error('Usage: install-peer-dependency.js :'); + process.exit(1); +} +const [packageName, targetBranch] = args[0].split(':'); +const targetRepository = `https://github.com/cloudscape-design/${packageName}.git`; +const nodeModulesPath = path.join(process.cwd(), 'node_modules', '@cloudscape-design'); +const tempDir = path.join(os.tmpdir(), `temp-${packageName}`); + +// Clone the repository and checkout the branch +console.log(`Cloning ${packageName}:${targetBranch}...`); +execCommand(`rm -rf ${tempDir}`); +execCommand(`git clone ${targetRepository} ${tempDir}`); +process.chdir(tempDir); +execCommand(`git checkout ${targetBranch}`); + +// Install dependencies and build +console.log(`Installing dependencies and building ${packageName}...`); +execCommand('npm install'); +execCommand('npm run build'); + +// Remove existing peer dependency in node_modules +for (const moduleName of getModules(packageName)) { + const modulePath = path.join(nodeModulesPath, moduleName); + const artifactPath = getArtifactPath(moduleName); + + console.log(`Removing existing ${moduleName} from node_modules...`, modulePath); + execCommand(`rm -rf ${modulePath}`); + + // Copy built peer dependency to node_modules + console.log(`Copying built ${moduleName} to node_modules...`, modulePath, `${tempDir}${artifactPath}`); + execCommand(`mkdir -p ${modulePath}`); + execCommand(`cp -R ${tempDir}${artifactPath} ${modulePath}`); +} + +// Clean up +console.log('Cleaning up...'); +execCommand(`rm -rf ${tempDir}`); + +console.log(`${packageName} has been successfully installed from branch ${targetBranch}!`); + +function execCommand(command, options = {}) { + try { + execSync(command, { stdio: 'inherit', ...options }); + } catch (error) { + console.error(`Error executing command: ${command}`); + console.error(`Error message: ${error.message}`); + console.error(`Stdout: ${error.stdout && error.stdout.toString()}`); + console.error(`Stderr: ${error.stderr && error.stderr.toString()}`); + throw error; + } +} From 78d2e7461d19036fcc5e3b3fa410188f5744e52a Mon Sep 17 00:00:00 2001 From: Nathnael Dereje Date: Thu, 16 Apr 2026 20:41:57 +0200 Subject: [PATCH 07/16] fix: Change the interface to explicitly defined ones instead of directly from buttondropdown --- src/table/interfaces.tsx | 48 +++++++++++- src/table/internal.tsx | 2 +- src/table/selection/selection-cell.tsx | 8 +- .../selection-controller-dropdown.tsx | 76 +++++++++++++++++-- src/table/thead.tsx | 7 +- 5 files changed, 125 insertions(+), 16 deletions(-) diff --git a/src/table/interfaces.tsx b/src/table/interfaces.tsx index 181db73ccc..d358810cc6 100644 --- a/src/table/interfaces.tsx +++ b/src/table/interfaces.tsx @@ -2,7 +2,6 @@ // SPDX-License-Identifier: Apache-2.0 import React from 'react'; -import { ButtonDropdownProps } from '../button-dropdown/interfaces'; import { BaseComponentProps } from '../internal/base-component'; import { CancelableEventHandler, NonCancelableEventHandler } from '../internal/events'; import { Optional } from '../internal/types'; @@ -443,17 +442,19 @@ export interface TableProps extends BaseComponentProps { * when `expandableRows` with `groupSelection` is configured, or when this * prop is undefined or an empty array. */ - selectionControllerItems?: ButtonDropdownProps.Items; + selectionControllerItems?: ReadonlyArray< + TableProps.SelectionControllerItem | TableProps.SelectionControllerItemGroup + >; /** * Fired when a user activates a selection controller item from the dropdown menu. * The event detail contains the `id` of the activated item and, for checkbox items, - * the `checked` state. + * the new `checked` state. * * The table does not automatically modify `selectedItems`. Use this event * to implement custom selection logic and update `selectedItems` accordingly. */ - onSelectionControllerItemClick?: NonCancelableEventHandler; + onSelectionControllerItemClick?: NonCancelableEventHandler; } export namespace TableProps { @@ -681,6 +682,45 @@ export namespace TableProps { export interface RenderLoaderEmptyDetail { item: T; } + + export interface SelectionControllerItem { + /** Unique identifier for the selection action. */ + id: string; + /** Display label for the selection action. */ + text: string; + /** Set to `'checkbox'` to render the item as a toggleable checkbox. */ + itemType?: 'checkbox'; + /** Whether the checkbox item is checked. Only applicable when `itemType` is `'checkbox'`. */ + checked?: boolean; + /** When true, the item is rendered in a disabled state and cannot be activated. */ + disabled?: boolean; + /** Optional reason displayed when hovering over a disabled item. */ + disabledReason?: string; + /** Optional secondary descriptive text displayed below the item text. */ + secondaryText?: string; + /** Optional accessible label for the item. */ + ariaLabel?: string; + /** Optional icon name displayed before the item text. */ + iconName?: string; + /** Optional icon SVG displayed before the item text. */ + iconSvg?: React.ReactNode; + } + + export interface SelectionControllerItemGroup { + /** Optional display label for the group header. */ + text?: string; + /** The items within this group. */ + items: ReadonlyArray; + /** When true, the group is rendered in a disabled state. */ + disabled?: boolean; + } + + export interface SelectionControllerItemClickDetail { + /** The `id` of the activated item. */ + id: string; + /** For checkbox items, the new checked state after the click. */ + checked?: boolean; + } } export type TableRow = TableDataRow | TableLoaderRow; diff --git a/src/table/internal.tsx b/src/table/internal.tsx index 3b483d8b1b..aa70d10ff2 100644 --- a/src/table/internal.tsx +++ b/src/table/internal.tsx @@ -440,7 +440,7 @@ const InternalTable = React.forwardRef( setLastUserAction, selectionControllerItems: showSelectionController ? selectionControllerItems : undefined, onSelectionControllerItemClick: showSelectionController - ? (detail: import('../button-dropdown/interfaces').ButtonDropdownProps.ItemClickDetails) => + ? (detail: TableProps.SelectionControllerItemClickDetail) => fireNonCancelableEvent(onSelectionControllerItemClick, detail) : undefined, selectionControllerAriaLabel: ariaLabels?.selectionControllerLabel, diff --git a/src/table/selection/selection-cell.tsx b/src/table/selection/selection-cell.tsx index 777d606dbe..f12f113a8b 100644 --- a/src/table/selection/selection-cell.tsx +++ b/src/table/selection/selection-cell.tsx @@ -4,10 +4,10 @@ import React from 'react'; import { getAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata'; -import { ButtonDropdownProps } from '../../button-dropdown/interfaces'; import ScreenreaderOnly from '../../internal/components/screenreader-only'; import { TableTdElement, TableTdElementProps } from '../body-cell/td-element'; import { TableThElement, TableThElementProps } from '../header-cell/th-element'; +import { TableProps } from '../interfaces'; import { Divider } from '../resizer'; import { ItemSelectionProps } from './interfaces'; import { SelectionControl, SelectionControlProps } from './selection-control'; @@ -21,8 +21,10 @@ interface TableHeaderSelectionCellProps extends Omit ItemSelectionProps; onFocusMove: ((sourceElement: HTMLElement, fromIndex: number, direction: -1 | 1) => void) | undefined; - selectionControllerItems?: ButtonDropdownProps.Items; - onSelectionControllerItemClick?: (detail: ButtonDropdownProps.ItemClickDetails) => void; + selectionControllerItems?: ReadonlyArray< + TableProps.SelectionControllerItem | TableProps.SelectionControllerItemGroup + >; + onSelectionControllerItemClick?: (detail: TableProps.SelectionControllerItemClickDetail) => void; selectionControllerAriaLabel?: string; loading?: boolean; } diff --git a/src/table/selection/selection-controller-dropdown.tsx b/src/table/selection/selection-controller-dropdown.tsx index 397b7a08dd..637f5858ec 100644 --- a/src/table/selection/selection-controller-dropdown.tsx +++ b/src/table/selection/selection-controller-dropdown.tsx @@ -6,17 +6,74 @@ import clsx from 'clsx'; import { ButtonDropdownProps } from '../../button-dropdown/interfaces'; import InternalButtonDropdown from '../../button-dropdown/internal'; import InternalIcon from '../../icon/internal'; +import { TableProps } from '../interfaces'; import styles from './styles.css.js'; +type SelectionControllerItems = ReadonlyArray< + TableProps.SelectionControllerItem | TableProps.SelectionControllerItemGroup +>; + export interface SelectionControllerDropdownProps { - items: ButtonDropdownProps.Items; - onItemClick: (detail: ButtonDropdownProps.ItemClickDetails) => void; + items: SelectionControllerItems; + onItemClick: (detail: TableProps.SelectionControllerItemClickDetail) => void; ariaLabel?: string; disabled?: boolean; sticky?: boolean; } +function hasKey(obj: T, key: keyof any): key is keyof T { + return Object.prototype.hasOwnProperty.call(obj, key); +} + +function isItemGroup( + item: TableProps.SelectionControllerItem | TableProps.SelectionControllerItemGroup +): item is TableProps.SelectionControllerItemGroup { + return hasKey(item, 'items') && Array.isArray((item as TableProps.SelectionControllerItemGroup).items); +} + +function mapItem( + item: TableProps.SelectionControllerItem +): ButtonDropdownProps.Item | ButtonDropdownProps.CheckboxItem { + if (item.itemType === 'checkbox') { + return { + id: item.id, + text: item.text, + itemType: 'checkbox', + checked: item.checked ?? false, + disabled: item.disabled, + disabledReason: item.disabledReason, + secondaryText: item.secondaryText, + ariaLabel: item.ariaLabel, + iconName: item.iconName as any, + iconSvg: item.iconSvg, + }; + } + return { + id: item.id, + text: item.text, + disabled: item.disabled, + disabledReason: item.disabledReason, + secondaryText: item.secondaryText, + ariaLabel: item.ariaLabel, + iconName: item.iconName as any, + iconSvg: item.iconSvg, + }; +} + +function mapItems(items: SelectionControllerItems): ButtonDropdownProps.Items { + return items.map(item => { + if (isItemGroup(item)) { + return { + text: item.text, + disabled: item.disabled, + items: item.items.map(mapItem), + } as ButtonDropdownProps.ItemGroup; + } + return mapItem(item); + }); +} + export default function SelectionControllerDropdown({ items, onItemClick, @@ -24,16 +81,25 @@ export default function SelectionControllerDropdown({ disabled = false, sticky = false, }: SelectionControllerDropdownProps) { + const mappedItems = mapItems(items); + return ( onItemClick(detail)} + items={mappedItems} + onItemClick={({ detail }) => onItemClick({ id: detail.id, checked: detail.checked })} ariaLabel={ariaLabel} disabled={disabled} variant="inline-icon" expandToViewport={true} expandableGroups={false} - customTriggerBuilder={({ triggerRef, testUtilsClass, ariaExpanded, onClick, disabled: triggerDisabled }) => ( + customTriggerBuilder={({ + triggerRef, + testUtilsClass, + ariaExpanded, + onClick, + // isOpen, ... we can use it if we want to display diff/t icon based on open state latr + disabled: triggerDisabled, + }) => ( } />, noMatch: actions.setFiltering('')} />, @@ -145,13 +121,13 @@ function FunctionsTable() { sorting: { defaultState: { sortingColumn: columnDefinitions[3], isDescending: false } }, selection: { trackBy: 'name', + crossPageSelection: {}, selectionControllerItems: (visibleItems, selectedItems) => { - const allSelected = (predicate: (f: LambdaFunction) => boolean) => { - const matching = visibleItems.filter(predicate); - return matching.length > 0 && matching.every(f => selectedItems.some(s => s.name === f.name)); + const allSelected = (pred: (f: LambdaFunction) => boolean) => { + const m = visibleItems.filter(pred); + return m.length > 0 && m.every(f => selectedItems.some(s => s.name === f.name)); }; - const hasMatching = (predicate: (f: LambdaFunction) => boolean) => visibleItems.some(predicate); - + const has = (pred: (f: LambdaFunction) => boolean) => visibleItems.some(pred); return [ { text: 'By runtime', @@ -161,28 +137,28 @@ function FunctionsTable() { text: 'Node.js', itemType: 'checkbox' as const, checked: allSelected(predicates.nodejs), - disabled: !hasMatching(predicates.nodejs), + disabled: !has(predicates.nodejs), }, { id: 'python', text: 'Python', itemType: 'checkbox' as const, checked: allSelected(predicates.python), - disabled: !hasMatching(predicates.python), + disabled: !has(predicates.python), }, { id: 'java', text: 'Java', itemType: 'checkbox' as const, checked: allSelected(predicates.java), - disabled: !hasMatching(predicates.java), + disabled: !has(predicates.java), }, { id: 'go', text: 'Go', itemType: 'checkbox' as const, checked: allSelected(predicates.go), - disabled: !hasMatching(predicates.go), + disabled: !has(predicates.go), }, ], }, @@ -194,46 +170,67 @@ function FunctionsTable() { text: 'Zip', itemType: 'checkbox' as const, checked: allSelected(predicates.zip), - disabled: !hasMatching(predicates.zip), + disabled: !has(predicates.zip), }, { id: 'image', text: 'Image', itemType: 'checkbox' as const, checked: allSelected(predicates.image), - disabled: !hasMatching(predicates.image), + disabled: !has(predicates.image), }, ], }, ]; }, - onSelectionControllerItemClick: (detail, visibleItems, actions) => { - const predicate = predicates[detail.id]; - if (!predicate) { + onSelectionControllerItemClick: (detail, visibleItems, hookActions) => { + const pred = predicates[detail.id]; + if (!pred) { return; } - const currentSelected = (collectionProps.selectedItems ?? []) as LambdaFunction[]; - const matching = visibleItems.filter(predicate) as LambdaFunction[]; + const current = (collectionProps.selectedItems ?? []) as LambdaFunction[]; + const matching = visibleItems.filter(pred) as LambdaFunction[]; if (detail.checked) { - // Toggled ON — add matching items - const existing = new Set(currentSelected.map(s => s.name)); - actions.setSelectedItems([...currentSelected, ...matching.filter(m => !existing.has(m.name))]); + const existing = new Set(current.map(s => s.name)); + hookActions.setSelectedItems([...current, ...matching.filter(m => !existing.has(m.name))]); } else { - // Toggled OFF — remove matching items - actions.setSelectedItems(currentSelected.filter(s => !matching.some(m => m.name === s.name))); + hookActions.setSelectedItems(current.filter(s => !matching.some(m => m.name === s.name))); } }, }, - } - ); + }); const selectedItems = collectionProps.selectedItems ?? []; const singleSelected = selectedItems.length === 1; const hasSelection = selectedItems.length > 0; + // Cross-page selection notification — state computed by the hook + let selectionNotification: React.ReactNode = undefined; + if (crossPageSelectionState?.type === 'all-selected') { + selectionNotification = ( + actions.setSelectedItems([])}> + {crossPageSelectionState.totalCount} items are selected across the table.{' '} + + + ); + } else if (crossPageSelectionState?.type === 'page-selected') { + selectionNotification = ( + actions.setSelectedItems([])}> + {crossPageSelectionState.pageCount} items selected on this page.{' '} + {' '} + across the table. + + ); + } + return ( {...collectionProps} + selectionNotification={selectionNotification} header={
@@ -269,7 +266,6 @@ function FunctionsTable() { tableLabel: 'Functions', selectionControllerLabel: 'Function selection options', }} - stickyHeader={true} pagination={} filter={ } /> diff --git a/src/__tests__/snapshot-tests/__snapshots__/test-utils-wrappers.test.tsx.snap b/src/__tests__/snapshot-tests/__snapshots__/test-utils-wrappers.test.tsx.snap index 453a42fca3..d98cd076ae 100644 --- a/src/__tests__/snapshot-tests/__snapshots__/test-utils-wrappers.test.tsx.snap +++ b/src/__tests__/snapshot-tests/__snapshots__/test-utils-wrappers.test.tsx.snap @@ -2,9 +2,4397 @@ exports[`Generate test utils ElementWrapper dom ElementWrapper matches the snapshot 1`] = ` " +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 import { ElementWrapper } from '@cloudscape-design/test-utils-core/dom'; +import { appendSelector } from '@cloudscape-design/test-utils-core/utils'; + export { ElementWrapper }; + +import ActionCardWrapper from './action-card'; +import AlertWrapper from './alert'; +import AnchorNavigationWrapper from './anchor-navigation'; +import AnnotationWrapper from './annotation'; +import AppLayoutWrapper from './app-layout'; +import AppLayoutToolbarWrapper from './app-layout-toolbar'; +import AreaChartWrapper from './area-chart'; +import AttributeEditorWrapper from './attribute-editor'; +import AutosuggestWrapper from './autosuggest'; +import BadgeWrapper from './badge'; +import BarChartWrapper from './bar-chart'; +import BoxWrapper from './box'; +import BreadcrumbGroupWrapper from './breadcrumb-group'; +import ButtonWrapper from './button'; +import ButtonDropdownWrapper from './button-dropdown'; +import ButtonGroupWrapper from './button-group'; +import CalendarWrapper from './calendar'; +import CardsWrapper from './cards'; +import CheckboxWrapper from './checkbox'; +import CodeEditorWrapper from './code-editor'; +import CollectionPreferencesWrapper from './collection-preferences'; +import ColumnLayoutWrapper from './column-layout'; +import ContainerWrapper from './container'; +import ContentLayoutWrapper from './content-layout'; +import CopyToClipboardWrapper from './copy-to-clipboard'; +import DateInputWrapper from './date-input'; +import DatePickerWrapper from './date-picker'; +import DateRangePickerWrapper from './date-range-picker'; +import DrawerWrapper from './drawer'; +import DropdownWrapper from './dropdown'; +import ErrorBoundaryWrapper from './error-boundary'; +import ExpandableSectionWrapper from './expandable-section'; +import FileDropzoneWrapper from './file-dropzone'; +import FileInputWrapper from './file-input'; +import FileTokenGroupWrapper from './file-token-group'; +import FileUploadWrapper from './file-upload'; +import FlashbarWrapper from './flashbar'; +import FormWrapper from './form'; +import FormFieldWrapper from './form-field'; +import GridWrapper from './grid'; +import HeaderWrapper from './header'; +import HelpPanelWrapper from './help-panel'; +import HotspotWrapper from './hotspot'; +import IconWrapper from './icon'; +import InputWrapper from './input'; +import ItemCardWrapper from './item-card'; +import KeyValuePairsWrapper from './key-value-pairs'; +import LineChartWrapper from './line-chart'; +import LinkWrapper from './link'; +import ListWrapper from './list'; +import LiveRegionWrapper from './live-region'; +import MixedLineBarChartWrapper from './mixed-line-bar-chart'; +import ModalWrapper from './modal'; +import MultiselectWrapper from './multiselect'; +import NavigableGroupWrapper from './navigable-group'; +import PaginationWrapper from './pagination'; +import PanelLayoutWrapper from './panel-layout'; +import PieChartWrapper from './pie-chart'; +import PopoverWrapper from './popover'; +import ProgressBarWrapper from './progress-bar'; +import PromptInputWrapper from './prompt-input'; +import PropertyFilterWrapper from './property-filter'; +import RadioButtonWrapper from './radio-button'; +import RadioGroupWrapper from './radio-group'; +import S3ResourceSelectorWrapper from './s3-resource-selector'; +import SegmentedControlWrapper from './segmented-control'; +import SelectWrapper from './select'; +import SideNavigationWrapper from './side-navigation'; +import SliderWrapper from './slider'; +import SpaceBetweenWrapper from './space-between'; +import SpinnerWrapper from './spinner'; +import SplitPanelWrapper from './split-panel'; +import StatusIndicatorWrapper from './status-indicator'; +import StepsWrapper from './steps'; +import TableWrapper from './table'; +import TabsWrapper from './tabs'; +import TagEditorWrapper from './tag-editor'; +import TextContentWrapper from './text-content'; +import TextFilterWrapper from './text-filter'; +import TextareaWrapper from './textarea'; +import TilesWrapper from './tiles'; +import TimeInputWrapper from './time-input'; +import ToggleWrapper from './toggle'; +import ToggleButtonWrapper from './toggle-button'; +import TokenWrapper from './token'; +import TokenGroupWrapper from './token-group'; +import TooltipWrapper from './tooltip'; +import TopNavigationWrapper from './top-navigation'; +import TreeViewWrapper from './tree-view'; +import TutorialPanelWrapper from './tutorial-panel'; +import WizardWrapper from './wizard'; + + +export { ActionCardWrapper }; +export { AlertWrapper }; +export { AnchorNavigationWrapper }; +export { AnnotationWrapper }; +export { AppLayoutWrapper }; +export { AppLayoutToolbarWrapper }; +export { AreaChartWrapper }; +export { AttributeEditorWrapper }; +export { AutosuggestWrapper }; +export { BadgeWrapper }; +export { BarChartWrapper }; +export { BoxWrapper }; +export { BreadcrumbGroupWrapper }; +export { ButtonWrapper }; +export { ButtonDropdownWrapper }; +export { ButtonGroupWrapper }; +export { CalendarWrapper }; +export { CardsWrapper }; +export { CheckboxWrapper }; +export { CodeEditorWrapper }; +export { CollectionPreferencesWrapper }; +export { ColumnLayoutWrapper }; +export { ContainerWrapper }; +export { ContentLayoutWrapper }; +export { CopyToClipboardWrapper }; +export { DateInputWrapper }; +export { DatePickerWrapper }; +export { DateRangePickerWrapper }; +export { DrawerWrapper }; +export { DropdownWrapper }; +export { ErrorBoundaryWrapper }; +export { ExpandableSectionWrapper }; +export { FileDropzoneWrapper }; +export { FileInputWrapper }; +export { FileTokenGroupWrapper }; +export { FileUploadWrapper }; +export { FlashbarWrapper }; +export { FormWrapper }; +export { FormFieldWrapper }; +export { GridWrapper }; +export { HeaderWrapper }; +export { HelpPanelWrapper }; +export { HotspotWrapper }; +export { IconWrapper }; +export { InputWrapper }; +export { ItemCardWrapper }; +export { KeyValuePairsWrapper }; +export { LineChartWrapper }; +export { LinkWrapper }; +export { ListWrapper }; +export { LiveRegionWrapper }; +export { MixedLineBarChartWrapper }; +export { ModalWrapper }; +export { MultiselectWrapper }; +export { NavigableGroupWrapper }; +export { PaginationWrapper }; +export { PanelLayoutWrapper }; +export { PieChartWrapper }; +export { PopoverWrapper }; +export { ProgressBarWrapper }; +export { PromptInputWrapper }; +export { PropertyFilterWrapper }; +export { RadioButtonWrapper }; +export { RadioGroupWrapper }; +export { S3ResourceSelectorWrapper }; +export { SegmentedControlWrapper }; +export { SelectWrapper }; +export { SideNavigationWrapper }; +export { SliderWrapper }; +export { SpaceBetweenWrapper }; +export { SpinnerWrapper }; +export { SplitPanelWrapper }; +export { StatusIndicatorWrapper }; +export { StepsWrapper }; +export { TableWrapper }; +export { TabsWrapper }; +export { TagEditorWrapper }; +export { TextContentWrapper }; +export { TextFilterWrapper }; +export { TextareaWrapper }; +export { TilesWrapper }; +export { TimeInputWrapper }; +export { ToggleWrapper }; +export { ToggleButtonWrapper }; +export { TokenWrapper }; +export { TokenGroupWrapper }; +export { TooltipWrapper }; +export { TopNavigationWrapper }; +export { TreeViewWrapper }; +export { TutorialPanelWrapper }; +export { WizardWrapper }; + +declare module '@cloudscape-design/test-utils-core/dist/dom' { + interface ElementWrapper { + +/** + * Returns the wrapper of the first ActionCard that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first ActionCard. + * If no matching ActionCard is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {ActionCardWrapper | null} + */ +findActionCard(selector?: string): ActionCardWrapper | null; + +/** + * Returns an array of ActionCard wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the ActionCards inside the current wrapper. + * If no matching ActionCard is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllActionCards(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent ActionCard for the current element, + * or the element itself if it is an instance of ActionCard. + * If no ActionCard is found, returns \`null\`. + * + * @returns {ActionCardWrapper | null} + */ +findClosestActionCard(): ActionCardWrapper | null; +/** + * Returns the wrapper of the first Alert that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Alert. + * If no matching Alert is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {AlertWrapper | null} + */ +findAlert(selector?: string): AlertWrapper | null; + +/** + * Returns an array of Alert wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Alerts inside the current wrapper. + * If no matching Alert is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllAlerts(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Alert for the current element, + * or the element itself if it is an instance of Alert. + * If no Alert is found, returns \`null\`. + * + * @returns {AlertWrapper | null} + */ +findClosestAlert(): AlertWrapper | null; +/** + * Returns the wrapper of the first AnchorNavigation that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first AnchorNavigation. + * If no matching AnchorNavigation is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {AnchorNavigationWrapper | null} + */ +findAnchorNavigation(selector?: string): AnchorNavigationWrapper | null; + +/** + * Returns an array of AnchorNavigation wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the AnchorNavigations inside the current wrapper. + * If no matching AnchorNavigation is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllAnchorNavigations(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent AnchorNavigation for the current element, + * or the element itself if it is an instance of AnchorNavigation. + * If no AnchorNavigation is found, returns \`null\`. + * + * @returns {AnchorNavigationWrapper | null} + */ +findClosestAnchorNavigation(): AnchorNavigationWrapper | null; +/** + * Returns the wrapper of the first Annotation that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Annotation. + * If no matching Annotation is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {AnnotationWrapper | null} + */ +findAnnotation(selector?: string): AnnotationWrapper | null; + +/** + * Returns an array of Annotation wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Annotations inside the current wrapper. + * If no matching Annotation is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllAnnotations(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Annotation for the current element, + * or the element itself if it is an instance of Annotation. + * If no Annotation is found, returns \`null\`. + * + * @returns {AnnotationWrapper | null} + */ +findClosestAnnotation(): AnnotationWrapper | null; +/** + * Returns the wrapper of the first AppLayout that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first AppLayout. + * If no matching AppLayout is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {AppLayoutWrapper | null} + */ +findAppLayout(selector?: string): AppLayoutWrapper | null; + +/** + * Returns an array of AppLayout wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the AppLayouts inside the current wrapper. + * If no matching AppLayout is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllAppLayouts(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent AppLayout for the current element, + * or the element itself if it is an instance of AppLayout. + * If no AppLayout is found, returns \`null\`. + * + * @returns {AppLayoutWrapper | null} + */ +findClosestAppLayout(): AppLayoutWrapper | null; +/** + * Returns the wrapper of the first AppLayoutToolbar that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first AppLayoutToolbar. + * If no matching AppLayoutToolbar is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {AppLayoutToolbarWrapper | null} + */ +findAppLayoutToolbar(selector?: string): AppLayoutToolbarWrapper | null; + +/** + * Returns an array of AppLayoutToolbar wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the AppLayoutToolbars inside the current wrapper. + * If no matching AppLayoutToolbar is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllAppLayoutToolbars(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent AppLayoutToolbar for the current element, + * or the element itself if it is an instance of AppLayoutToolbar. + * If no AppLayoutToolbar is found, returns \`null\`. + * + * @returns {AppLayoutToolbarWrapper | null} + */ +findClosestAppLayoutToolbar(): AppLayoutToolbarWrapper | null; +/** + * Returns the wrapper of the first AreaChart that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first AreaChart. + * If no matching AreaChart is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {AreaChartWrapper | null} + */ +findAreaChart(selector?: string): AreaChartWrapper | null; + +/** + * Returns an array of AreaChart wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the AreaCharts inside the current wrapper. + * If no matching AreaChart is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllAreaCharts(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent AreaChart for the current element, + * or the element itself if it is an instance of AreaChart. + * If no AreaChart is found, returns \`null\`. + * + * @returns {AreaChartWrapper | null} + */ +findClosestAreaChart(): AreaChartWrapper | null; +/** + * Returns the wrapper of the first AttributeEditor that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first AttributeEditor. + * If no matching AttributeEditor is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {AttributeEditorWrapper | null} + */ +findAttributeEditor(selector?: string): AttributeEditorWrapper | null; + +/** + * Returns an array of AttributeEditor wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the AttributeEditors inside the current wrapper. + * If no matching AttributeEditor is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllAttributeEditors(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent AttributeEditor for the current element, + * or the element itself if it is an instance of AttributeEditor. + * If no AttributeEditor is found, returns \`null\`. + * + * @returns {AttributeEditorWrapper | null} + */ +findClosestAttributeEditor(): AttributeEditorWrapper | null; +/** + * Returns the wrapper of the first Autosuggest that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Autosuggest. + * If no matching Autosuggest is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {AutosuggestWrapper | null} + */ +findAutosuggest(selector?: string): AutosuggestWrapper | null; + +/** + * Returns an array of Autosuggest wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Autosuggests inside the current wrapper. + * If no matching Autosuggest is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllAutosuggests(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Autosuggest for the current element, + * or the element itself if it is an instance of Autosuggest. + * If no Autosuggest is found, returns \`null\`. + * + * @returns {AutosuggestWrapper | null} + */ +findClosestAutosuggest(): AutosuggestWrapper | null; +/** + * Returns the wrapper of the first Badge that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Badge. + * If no matching Badge is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {BadgeWrapper | null} + */ +findBadge(selector?: string): BadgeWrapper | null; + +/** + * Returns an array of Badge wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Badges inside the current wrapper. + * If no matching Badge is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllBadges(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Badge for the current element, + * or the element itself if it is an instance of Badge. + * If no Badge is found, returns \`null\`. + * + * @returns {BadgeWrapper | null} + */ +findClosestBadge(): BadgeWrapper | null; +/** + * Returns the wrapper of the first BarChart that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first BarChart. + * If no matching BarChart is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {BarChartWrapper | null} + */ +findBarChart(selector?: string): BarChartWrapper | null; + +/** + * Returns an array of BarChart wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the BarCharts inside the current wrapper. + * If no matching BarChart is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllBarCharts(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent BarChart for the current element, + * or the element itself if it is an instance of BarChart. + * If no BarChart is found, returns \`null\`. + * + * @returns {BarChartWrapper | null} + */ +findClosestBarChart(): BarChartWrapper | null; +/** + * Returns the wrapper of the first Box that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Box. + * If no matching Box is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {BoxWrapper | null} + */ +findBox(selector?: string): BoxWrapper | null; + +/** + * Returns an array of Box wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Boxes inside the current wrapper. + * If no matching Box is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllBoxes(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Box for the current element, + * or the element itself if it is an instance of Box. + * If no Box is found, returns \`null\`. + * + * @returns {BoxWrapper | null} + */ +findClosestBox(): BoxWrapper | null; +/** + * Returns the wrapper of the first BreadcrumbGroup that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first BreadcrumbGroup. + * If no matching BreadcrumbGroup is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {BreadcrumbGroupWrapper | null} + */ +findBreadcrumbGroup(selector?: string): BreadcrumbGroupWrapper | null; + +/** + * Returns an array of BreadcrumbGroup wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the BreadcrumbGroups inside the current wrapper. + * If no matching BreadcrumbGroup is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllBreadcrumbGroups(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent BreadcrumbGroup for the current element, + * or the element itself if it is an instance of BreadcrumbGroup. + * If no BreadcrumbGroup is found, returns \`null\`. + * + * @returns {BreadcrumbGroupWrapper | null} + */ +findClosestBreadcrumbGroup(): BreadcrumbGroupWrapper | null; +/** + * Returns the wrapper of the first Button that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Button. + * If no matching Button is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {ButtonWrapper | null} + */ +findButton(selector?: string): ButtonWrapper | null; + +/** + * Returns an array of Button wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Buttons inside the current wrapper. + * If no matching Button is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllButtons(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Button for the current element, + * or the element itself if it is an instance of Button. + * If no Button is found, returns \`null\`. + * + * @returns {ButtonWrapper | null} + */ +findClosestButton(): ButtonWrapper | null; +/** + * Returns the wrapper of the first ButtonDropdown that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first ButtonDropdown. + * If no matching ButtonDropdown is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {ButtonDropdownWrapper | null} + */ +findButtonDropdown(selector?: string): ButtonDropdownWrapper | null; + +/** + * Returns an array of ButtonDropdown wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the ButtonDropdowns inside the current wrapper. + * If no matching ButtonDropdown is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllButtonDropdowns(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent ButtonDropdown for the current element, + * or the element itself if it is an instance of ButtonDropdown. + * If no ButtonDropdown is found, returns \`null\`. + * + * @returns {ButtonDropdownWrapper | null} + */ +findClosestButtonDropdown(): ButtonDropdownWrapper | null; +/** + * Returns the wrapper of the first ButtonGroup that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first ButtonGroup. + * If no matching ButtonGroup is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {ButtonGroupWrapper | null} + */ +findButtonGroup(selector?: string): ButtonGroupWrapper | null; + +/** + * Returns an array of ButtonGroup wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the ButtonGroups inside the current wrapper. + * If no matching ButtonGroup is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllButtonGroups(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent ButtonGroup for the current element, + * or the element itself if it is an instance of ButtonGroup. + * If no ButtonGroup is found, returns \`null\`. + * + * @returns {ButtonGroupWrapper | null} + */ +findClosestButtonGroup(): ButtonGroupWrapper | null; +/** + * Returns the wrapper of the first Calendar that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Calendar. + * If no matching Calendar is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {CalendarWrapper | null} + */ +findCalendar(selector?: string): CalendarWrapper | null; + +/** + * Returns an array of Calendar wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Calendars inside the current wrapper. + * If no matching Calendar is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllCalendars(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Calendar for the current element, + * or the element itself if it is an instance of Calendar. + * If no Calendar is found, returns \`null\`. + * + * @returns {CalendarWrapper | null} + */ +findClosestCalendar(): CalendarWrapper | null; +/** + * Returns the wrapper of the first Cards that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Cards. + * If no matching Cards is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {CardsWrapper | null} + */ +findCards(selector?: string): CardsWrapper | null; + +/** + * Returns an array of Cards wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Cards inside the current wrapper. + * If no matching Cards is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllCards(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Cards for the current element, + * or the element itself if it is an instance of Cards. + * If no Cards is found, returns \`null\`. + * + * @returns {CardsWrapper | null} + */ +findClosestCards(): CardsWrapper | null; +/** + * Returns the wrapper of the first Checkbox that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Checkbox. + * If no matching Checkbox is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {CheckboxWrapper | null} + */ +findCheckbox(selector?: string): CheckboxWrapper | null; + +/** + * Returns an array of Checkbox wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Checkboxes inside the current wrapper. + * If no matching Checkbox is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllCheckboxes(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Checkbox for the current element, + * or the element itself if it is an instance of Checkbox. + * If no Checkbox is found, returns \`null\`. + * + * @returns {CheckboxWrapper | null} + */ +findClosestCheckbox(): CheckboxWrapper | null; +/** + * Returns the wrapper of the first CodeEditor that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first CodeEditor. + * If no matching CodeEditor is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {CodeEditorWrapper | null} + */ +findCodeEditor(selector?: string): CodeEditorWrapper | null; + +/** + * Returns an array of CodeEditor wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the CodeEditors inside the current wrapper. + * If no matching CodeEditor is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllCodeEditors(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent CodeEditor for the current element, + * or the element itself if it is an instance of CodeEditor. + * If no CodeEditor is found, returns \`null\`. + * + * @returns {CodeEditorWrapper | null} + */ +findClosestCodeEditor(): CodeEditorWrapper | null; +/** + * Returns the wrapper of the first CollectionPreferences that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first CollectionPreferences. + * If no matching CollectionPreferences is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {CollectionPreferencesWrapper | null} + */ +findCollectionPreferences(selector?: string): CollectionPreferencesWrapper | null; + +/** + * Returns an array of CollectionPreferences wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the CollectionPreferences inside the current wrapper. + * If no matching CollectionPreferences is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllCollectionPreferences(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent CollectionPreferences for the current element, + * or the element itself if it is an instance of CollectionPreferences. + * If no CollectionPreferences is found, returns \`null\`. + * + * @returns {CollectionPreferencesWrapper | null} + */ +findClosestCollectionPreferences(): CollectionPreferencesWrapper | null; +/** + * Returns the wrapper of the first ColumnLayout that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first ColumnLayout. + * If no matching ColumnLayout is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {ColumnLayoutWrapper | null} + */ +findColumnLayout(selector?: string): ColumnLayoutWrapper | null; + +/** + * Returns an array of ColumnLayout wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the ColumnLayouts inside the current wrapper. + * If no matching ColumnLayout is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllColumnLayouts(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent ColumnLayout for the current element, + * or the element itself if it is an instance of ColumnLayout. + * If no ColumnLayout is found, returns \`null\`. + * + * @returns {ColumnLayoutWrapper | null} + */ +findClosestColumnLayout(): ColumnLayoutWrapper | null; +/** + * Returns the wrapper of the first Container that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Container. + * If no matching Container is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {ContainerWrapper | null} + */ +findContainer(selector?: string): ContainerWrapper | null; + +/** + * Returns an array of Container wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Containers inside the current wrapper. + * If no matching Container is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllContainers(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Container for the current element, + * or the element itself if it is an instance of Container. + * If no Container is found, returns \`null\`. + * + * @returns {ContainerWrapper | null} + */ +findClosestContainer(): ContainerWrapper | null; +/** + * Returns the wrapper of the first ContentLayout that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first ContentLayout. + * If no matching ContentLayout is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {ContentLayoutWrapper | null} + */ +findContentLayout(selector?: string): ContentLayoutWrapper | null; + +/** + * Returns an array of ContentLayout wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the ContentLayouts inside the current wrapper. + * If no matching ContentLayout is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllContentLayouts(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent ContentLayout for the current element, + * or the element itself if it is an instance of ContentLayout. + * If no ContentLayout is found, returns \`null\`. + * + * @returns {ContentLayoutWrapper | null} + */ +findClosestContentLayout(): ContentLayoutWrapper | null; +/** + * Returns the wrapper of the first CopyToClipboard that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first CopyToClipboard. + * If no matching CopyToClipboard is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {CopyToClipboardWrapper | null} + */ +findCopyToClipboard(selector?: string): CopyToClipboardWrapper | null; + +/** + * Returns an array of CopyToClipboard wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the CopyToClipboards inside the current wrapper. + * If no matching CopyToClipboard is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllCopyToClipboards(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent CopyToClipboard for the current element, + * or the element itself if it is an instance of CopyToClipboard. + * If no CopyToClipboard is found, returns \`null\`. + * + * @returns {CopyToClipboardWrapper | null} + */ +findClosestCopyToClipboard(): CopyToClipboardWrapper | null; +/** + * Returns the wrapper of the first DateInput that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first DateInput. + * If no matching DateInput is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {DateInputWrapper | null} + */ +findDateInput(selector?: string): DateInputWrapper | null; + +/** + * Returns an array of DateInput wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the DateInputs inside the current wrapper. + * If no matching DateInput is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllDateInputs(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent DateInput for the current element, + * or the element itself if it is an instance of DateInput. + * If no DateInput is found, returns \`null\`. + * + * @returns {DateInputWrapper | null} + */ +findClosestDateInput(): DateInputWrapper | null; +/** + * Returns the wrapper of the first DatePicker that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first DatePicker. + * If no matching DatePicker is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {DatePickerWrapper | null} + */ +findDatePicker(selector?: string): DatePickerWrapper | null; + +/** + * Returns an array of DatePicker wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the DatePickers inside the current wrapper. + * If no matching DatePicker is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllDatePickers(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent DatePicker for the current element, + * or the element itself if it is an instance of DatePicker. + * If no DatePicker is found, returns \`null\`. + * + * @returns {DatePickerWrapper | null} + */ +findClosestDatePicker(): DatePickerWrapper | null; +/** + * Returns the wrapper of the first DateRangePicker that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first DateRangePicker. + * If no matching DateRangePicker is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {DateRangePickerWrapper | null} + */ +findDateRangePicker(selector?: string): DateRangePickerWrapper | null; + +/** + * Returns an array of DateRangePicker wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the DateRangePickers inside the current wrapper. + * If no matching DateRangePicker is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllDateRangePickers(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent DateRangePicker for the current element, + * or the element itself if it is an instance of DateRangePicker. + * If no DateRangePicker is found, returns \`null\`. + * + * @returns {DateRangePickerWrapper | null} + */ +findClosestDateRangePicker(): DateRangePickerWrapper | null; +/** + * Returns the wrapper of the first Drawer that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Drawer. + * If no matching Drawer is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {DrawerWrapper | null} + */ +findDrawer(selector?: string): DrawerWrapper | null; + +/** + * Returns an array of Drawer wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Drawers inside the current wrapper. + * If no matching Drawer is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllDrawers(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Drawer for the current element, + * or the element itself if it is an instance of Drawer. + * If no Drawer is found, returns \`null\`. + * + * @returns {DrawerWrapper | null} + */ +findClosestDrawer(): DrawerWrapper | null; +/** + * Returns the wrapper of the first Dropdown that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Dropdown. + * If no matching Dropdown is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {DropdownWrapper | null} + */ +findDropdown(selector?: string): DropdownWrapper | null; + +/** + * Returns an array of Dropdown wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Dropdowns inside the current wrapper. + * If no matching Dropdown is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllDropdowns(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Dropdown for the current element, + * or the element itself if it is an instance of Dropdown. + * If no Dropdown is found, returns \`null\`. + * + * @returns {DropdownWrapper | null} + */ +findClosestDropdown(): DropdownWrapper | null; +/** + * Returns the wrapper of the first ErrorBoundary that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first ErrorBoundary. + * If no matching ErrorBoundary is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {ErrorBoundaryWrapper | null} + */ +findErrorBoundary(selector?: string): ErrorBoundaryWrapper | null; + +/** + * Returns an array of ErrorBoundary wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the ErrorBoundaries inside the current wrapper. + * If no matching ErrorBoundary is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllErrorBoundaries(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent ErrorBoundary for the current element, + * or the element itself if it is an instance of ErrorBoundary. + * If no ErrorBoundary is found, returns \`null\`. + * + * @returns {ErrorBoundaryWrapper | null} + */ +findClosestErrorBoundary(): ErrorBoundaryWrapper | null; +/** + * Returns the wrapper of the first ExpandableSection that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first ExpandableSection. + * If no matching ExpandableSection is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {ExpandableSectionWrapper | null} + */ +findExpandableSection(selector?: string): ExpandableSectionWrapper | null; + +/** + * Returns an array of ExpandableSection wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the ExpandableSections inside the current wrapper. + * If no matching ExpandableSection is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllExpandableSections(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent ExpandableSection for the current element, + * or the element itself if it is an instance of ExpandableSection. + * If no ExpandableSection is found, returns \`null\`. + * + * @returns {ExpandableSectionWrapper | null} + */ +findClosestExpandableSection(): ExpandableSectionWrapper | null; +/** + * Returns the wrapper of the first FileDropzone that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first FileDropzone. + * If no matching FileDropzone is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {FileDropzoneWrapper | null} + */ +findFileDropzone(selector?: string): FileDropzoneWrapper | null; + +/** + * Returns an array of FileDropzone wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the FileDropzones inside the current wrapper. + * If no matching FileDropzone is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllFileDropzones(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent FileDropzone for the current element, + * or the element itself if it is an instance of FileDropzone. + * If no FileDropzone is found, returns \`null\`. + * + * @returns {FileDropzoneWrapper | null} + */ +findClosestFileDropzone(): FileDropzoneWrapper | null; +/** + * Returns the wrapper of the first FileInput that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first FileInput. + * If no matching FileInput is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {FileInputWrapper | null} + */ +findFileInput(selector?: string): FileInputWrapper | null; + +/** + * Returns an array of FileInput wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the FileInputs inside the current wrapper. + * If no matching FileInput is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllFileInputs(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent FileInput for the current element, + * or the element itself if it is an instance of FileInput. + * If no FileInput is found, returns \`null\`. + * + * @returns {FileInputWrapper | null} + */ +findClosestFileInput(): FileInputWrapper | null; +/** + * Returns the wrapper of the first FileTokenGroup that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first FileTokenGroup. + * If no matching FileTokenGroup is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {FileTokenGroupWrapper | null} + */ +findFileTokenGroup(selector?: string): FileTokenGroupWrapper | null; + +/** + * Returns an array of FileTokenGroup wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the FileTokenGroups inside the current wrapper. + * If no matching FileTokenGroup is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllFileTokenGroups(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent FileTokenGroup for the current element, + * or the element itself if it is an instance of FileTokenGroup. + * If no FileTokenGroup is found, returns \`null\`. + * + * @returns {FileTokenGroupWrapper | null} + */ +findClosestFileTokenGroup(): FileTokenGroupWrapper | null; +/** + * Returns the wrapper of the first FileUpload that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first FileUpload. + * If no matching FileUpload is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {FileUploadWrapper | null} + */ +findFileUpload(selector?: string): FileUploadWrapper | null; + +/** + * Returns an array of FileUpload wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the FileUploads inside the current wrapper. + * If no matching FileUpload is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllFileUploads(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent FileUpload for the current element, + * or the element itself if it is an instance of FileUpload. + * If no FileUpload is found, returns \`null\`. + * + * @returns {FileUploadWrapper | null} + */ +findClosestFileUpload(): FileUploadWrapper | null; +/** + * Returns the wrapper of the first Flashbar that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Flashbar. + * If no matching Flashbar is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {FlashbarWrapper | null} + */ +findFlashbar(selector?: string): FlashbarWrapper | null; + +/** + * Returns an array of Flashbar wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Flashbars inside the current wrapper. + * If no matching Flashbar is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllFlashbars(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Flashbar for the current element, + * or the element itself if it is an instance of Flashbar. + * If no Flashbar is found, returns \`null\`. + * + * @returns {FlashbarWrapper | null} + */ +findClosestFlashbar(): FlashbarWrapper | null; +/** + * Returns the wrapper of the first Form that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Form. + * If no matching Form is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {FormWrapper | null} + */ +findForm(selector?: string): FormWrapper | null; + +/** + * Returns an array of Form wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Forms inside the current wrapper. + * If no matching Form is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllForms(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Form for the current element, + * or the element itself if it is an instance of Form. + * If no Form is found, returns \`null\`. + * + * @returns {FormWrapper | null} + */ +findClosestForm(): FormWrapper | null; +/** + * Returns the wrapper of the first FormField that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first FormField. + * If no matching FormField is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {FormFieldWrapper | null} + */ +findFormField(selector?: string): FormFieldWrapper | null; + +/** + * Returns an array of FormField wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the FormFields inside the current wrapper. + * If no matching FormField is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllFormFields(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent FormField for the current element, + * or the element itself if it is an instance of FormField. + * If no FormField is found, returns \`null\`. + * + * @returns {FormFieldWrapper | null} + */ +findClosestFormField(): FormFieldWrapper | null; +/** + * Returns the wrapper of the first Grid that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Grid. + * If no matching Grid is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {GridWrapper | null} + */ +findGrid(selector?: string): GridWrapper | null; + +/** + * Returns an array of Grid wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Grids inside the current wrapper. + * If no matching Grid is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllGrids(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Grid for the current element, + * or the element itself if it is an instance of Grid. + * If no Grid is found, returns \`null\`. + * + * @returns {GridWrapper | null} + */ +findClosestGrid(): GridWrapper | null; +/** + * Returns the wrapper of the first Header that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Header. + * If no matching Header is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {HeaderWrapper | null} + */ +findHeader(selector?: string): HeaderWrapper | null; + +/** + * Returns an array of Header wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Headers inside the current wrapper. + * If no matching Header is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllHeaders(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Header for the current element, + * or the element itself if it is an instance of Header. + * If no Header is found, returns \`null\`. + * + * @returns {HeaderWrapper | null} + */ +findClosestHeader(): HeaderWrapper | null; +/** + * Returns the wrapper of the first HelpPanel that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first HelpPanel. + * If no matching HelpPanel is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {HelpPanelWrapper | null} + */ +findHelpPanel(selector?: string): HelpPanelWrapper | null; + +/** + * Returns an array of HelpPanel wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the HelpPanels inside the current wrapper. + * If no matching HelpPanel is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllHelpPanels(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent HelpPanel for the current element, + * or the element itself if it is an instance of HelpPanel. + * If no HelpPanel is found, returns \`null\`. + * + * @returns {HelpPanelWrapper | null} + */ +findClosestHelpPanel(): HelpPanelWrapper | null; +/** + * Returns the wrapper of the first Hotspot that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Hotspot. + * If no matching Hotspot is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {HotspotWrapper | null} + */ +findHotspot(selector?: string): HotspotWrapper | null; + +/** + * Returns an array of Hotspot wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Hotspots inside the current wrapper. + * If no matching Hotspot is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllHotspots(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Hotspot for the current element, + * or the element itself if it is an instance of Hotspot. + * If no Hotspot is found, returns \`null\`. + * + * @returns {HotspotWrapper | null} + */ +findClosestHotspot(): HotspotWrapper | null; +/** + * Returns the wrapper of the first Icon that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Icon. + * If no matching Icon is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {IconWrapper | null} + */ +findIcon(selector?: string): IconWrapper | null; + +/** + * Returns an array of Icon wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Icons inside the current wrapper. + * If no matching Icon is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllIcons(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Icon for the current element, + * or the element itself if it is an instance of Icon. + * If no Icon is found, returns \`null\`. + * + * @returns {IconWrapper | null} + */ +findClosestIcon(): IconWrapper | null; +/** + * Returns the wrapper of the first Input that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Input. + * If no matching Input is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {InputWrapper | null} + */ +findInput(selector?: string): InputWrapper | null; + +/** + * Returns an array of Input wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Inputs inside the current wrapper. + * If no matching Input is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllInputs(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Input for the current element, + * or the element itself if it is an instance of Input. + * If no Input is found, returns \`null\`. + * + * @returns {InputWrapper | null} + */ +findClosestInput(): InputWrapper | null; +/** + * Returns the wrapper of the first ItemCard that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first ItemCard. + * If no matching ItemCard is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {ItemCardWrapper | null} + */ +findItemCard(selector?: string): ItemCardWrapper | null; + +/** + * Returns an array of ItemCard wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the ItemCards inside the current wrapper. + * If no matching ItemCard is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllItemCards(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent ItemCard for the current element, + * or the element itself if it is an instance of ItemCard. + * If no ItemCard is found, returns \`null\`. + * + * @returns {ItemCardWrapper | null} + */ +findClosestItemCard(): ItemCardWrapper | null; +/** + * Returns the wrapper of the first KeyValuePairs that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first KeyValuePairs. + * If no matching KeyValuePairs is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {KeyValuePairsWrapper | null} + */ +findKeyValuePairs(selector?: string): KeyValuePairsWrapper | null; + +/** + * Returns an array of KeyValuePairs wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the KeyValuePairs inside the current wrapper. + * If no matching KeyValuePairs is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllKeyValuePairs(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent KeyValuePairs for the current element, + * or the element itself if it is an instance of KeyValuePairs. + * If no KeyValuePairs is found, returns \`null\`. + * + * @returns {KeyValuePairsWrapper | null} + */ +findClosestKeyValuePairs(): KeyValuePairsWrapper | null; +/** + * Returns the wrapper of the first LineChart that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first LineChart. + * If no matching LineChart is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {LineChartWrapper | null} + */ +findLineChart(selector?: string): LineChartWrapper | null; + +/** + * Returns an array of LineChart wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the LineCharts inside the current wrapper. + * If no matching LineChart is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllLineCharts(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent LineChart for the current element, + * or the element itself if it is an instance of LineChart. + * If no LineChart is found, returns \`null\`. + * + * @returns {LineChartWrapper | null} + */ +findClosestLineChart(): LineChartWrapper | null; +/** + * Returns the wrapper of the first Link that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Link. + * If no matching Link is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {LinkWrapper | null} + */ +findLink(selector?: string): LinkWrapper | null; + +/** + * Returns an array of Link wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Links inside the current wrapper. + * If no matching Link is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllLinks(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Link for the current element, + * or the element itself if it is an instance of Link. + * If no Link is found, returns \`null\`. + * + * @returns {LinkWrapper | null} + */ +findClosestLink(): LinkWrapper | null; +/** + * Returns the wrapper of the first List that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first List. + * If no matching List is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {ListWrapper | null} + */ +findList(selector?: string): ListWrapper | null; + +/** + * Returns an array of List wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Lists inside the current wrapper. + * If no matching List is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllLists(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent List for the current element, + * or the element itself if it is an instance of List. + * If no List is found, returns \`null\`. + * + * @returns {ListWrapper | null} + */ +findClosestList(): ListWrapper | null; +/** + * Returns the wrapper of the first LiveRegion that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first LiveRegion. + * If no matching LiveRegion is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {LiveRegionWrapper | null} + */ +findLiveRegion(selector?: string): LiveRegionWrapper | null; + +/** + * Returns an array of LiveRegion wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the LiveRegions inside the current wrapper. + * If no matching LiveRegion is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllLiveRegions(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent LiveRegion for the current element, + * or the element itself if it is an instance of LiveRegion. + * If no LiveRegion is found, returns \`null\`. + * + * @returns {LiveRegionWrapper | null} + */ +findClosestLiveRegion(): LiveRegionWrapper | null; +/** + * Returns the wrapper of the first MixedLineBarChart that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first MixedLineBarChart. + * If no matching MixedLineBarChart is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {MixedLineBarChartWrapper | null} + */ +findMixedLineBarChart(selector?: string): MixedLineBarChartWrapper | null; + +/** + * Returns an array of MixedLineBarChart wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the MixedLineBarCharts inside the current wrapper. + * If no matching MixedLineBarChart is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllMixedLineBarCharts(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent MixedLineBarChart for the current element, + * or the element itself if it is an instance of MixedLineBarChart. + * If no MixedLineBarChart is found, returns \`null\`. + * + * @returns {MixedLineBarChartWrapper | null} + */ +findClosestMixedLineBarChart(): MixedLineBarChartWrapper | null; +/** + * Returns the wrapper of the first Modal that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Modal. + * If no matching Modal is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {ModalWrapper | null} + */ +findModal(selector?: string): ModalWrapper | null; + +/** + * Returns an array of Modal wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Modals inside the current wrapper. + * If no matching Modal is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllModals(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Modal for the current element, + * or the element itself if it is an instance of Modal. + * If no Modal is found, returns \`null\`. + * + * @returns {ModalWrapper | null} + */ +findClosestModal(): ModalWrapper | null; +/** + * Returns the wrapper of the first Multiselect that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Multiselect. + * If no matching Multiselect is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {MultiselectWrapper | null} + */ +findMultiselect(selector?: string): MultiselectWrapper | null; + +/** + * Returns an array of Multiselect wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Multiselects inside the current wrapper. + * If no matching Multiselect is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllMultiselects(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Multiselect for the current element, + * or the element itself if it is an instance of Multiselect. + * If no Multiselect is found, returns \`null\`. + * + * @returns {MultiselectWrapper | null} + */ +findClosestMultiselect(): MultiselectWrapper | null; +/** + * Returns the wrapper of the first NavigableGroup that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first NavigableGroup. + * If no matching NavigableGroup is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {NavigableGroupWrapper | null} + */ +findNavigableGroup(selector?: string): NavigableGroupWrapper | null; + +/** + * Returns an array of NavigableGroup wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the NavigableGroups inside the current wrapper. + * If no matching NavigableGroup is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllNavigableGroups(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent NavigableGroup for the current element, + * or the element itself if it is an instance of NavigableGroup. + * If no NavigableGroup is found, returns \`null\`. + * + * @returns {NavigableGroupWrapper | null} + */ +findClosestNavigableGroup(): NavigableGroupWrapper | null; +/** + * Returns the wrapper of the first Pagination that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Pagination. + * If no matching Pagination is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {PaginationWrapper | null} + */ +findPagination(selector?: string): PaginationWrapper | null; + +/** + * Returns an array of Pagination wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Paginations inside the current wrapper. + * If no matching Pagination is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllPaginations(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Pagination for the current element, + * or the element itself if it is an instance of Pagination. + * If no Pagination is found, returns \`null\`. + * + * @returns {PaginationWrapper | null} + */ +findClosestPagination(): PaginationWrapper | null; +/** + * Returns the wrapper of the first PanelLayout that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first PanelLayout. + * If no matching PanelLayout is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {PanelLayoutWrapper | null} + */ +findPanelLayout(selector?: string): PanelLayoutWrapper | null; + +/** + * Returns an array of PanelLayout wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the PanelLayouts inside the current wrapper. + * If no matching PanelLayout is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllPanelLayouts(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent PanelLayout for the current element, + * or the element itself if it is an instance of PanelLayout. + * If no PanelLayout is found, returns \`null\`. + * + * @returns {PanelLayoutWrapper | null} + */ +findClosestPanelLayout(): PanelLayoutWrapper | null; +/** + * Returns the wrapper of the first PieChart that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first PieChart. + * If no matching PieChart is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {PieChartWrapper | null} + */ +findPieChart(selector?: string): PieChartWrapper | null; + +/** + * Returns an array of PieChart wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the PieCharts inside the current wrapper. + * If no matching PieChart is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllPieCharts(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent PieChart for the current element, + * or the element itself if it is an instance of PieChart. + * If no PieChart is found, returns \`null\`. + * + * @returns {PieChartWrapper | null} + */ +findClosestPieChart(): PieChartWrapper | null; +/** + * Returns the wrapper of the first Popover that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Popover. + * If no matching Popover is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {PopoverWrapper | null} + */ +findPopover(selector?: string): PopoverWrapper | null; + +/** + * Returns an array of Popover wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Popovers inside the current wrapper. + * If no matching Popover is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllPopovers(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Popover for the current element, + * or the element itself if it is an instance of Popover. + * If no Popover is found, returns \`null\`. + * + * @returns {PopoverWrapper | null} + */ +findClosestPopover(): PopoverWrapper | null; +/** + * Returns the wrapper of the first ProgressBar that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first ProgressBar. + * If no matching ProgressBar is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {ProgressBarWrapper | null} + */ +findProgressBar(selector?: string): ProgressBarWrapper | null; + +/** + * Returns an array of ProgressBar wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the ProgressBars inside the current wrapper. + * If no matching ProgressBar is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllProgressBars(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent ProgressBar for the current element, + * or the element itself if it is an instance of ProgressBar. + * If no ProgressBar is found, returns \`null\`. + * + * @returns {ProgressBarWrapper | null} + */ +findClosestProgressBar(): ProgressBarWrapper | null; +/** + * Returns the wrapper of the first PromptInput that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first PromptInput. + * If no matching PromptInput is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {PromptInputWrapper | null} + */ +findPromptInput(selector?: string): PromptInputWrapper | null; + +/** + * Returns an array of PromptInput wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the PromptInputs inside the current wrapper. + * If no matching PromptInput is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllPromptInputs(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent PromptInput for the current element, + * or the element itself if it is an instance of PromptInput. + * If no PromptInput is found, returns \`null\`. + * + * @returns {PromptInputWrapper | null} + */ +findClosestPromptInput(): PromptInputWrapper | null; +/** + * Returns the wrapper of the first PropertyFilter that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first PropertyFilter. + * If no matching PropertyFilter is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {PropertyFilterWrapper | null} + */ +findPropertyFilter(selector?: string): PropertyFilterWrapper | null; + +/** + * Returns an array of PropertyFilter wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the PropertyFilters inside the current wrapper. + * If no matching PropertyFilter is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllPropertyFilters(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent PropertyFilter for the current element, + * or the element itself if it is an instance of PropertyFilter. + * If no PropertyFilter is found, returns \`null\`. + * + * @returns {PropertyFilterWrapper | null} + */ +findClosestPropertyFilter(): PropertyFilterWrapper | null; +/** + * Returns the wrapper of the first RadioButton that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first RadioButton. + * If no matching RadioButton is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {RadioButtonWrapper | null} + */ +findRadioButton(selector?: string): RadioButtonWrapper | null; + +/** + * Returns an array of RadioButton wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the RadioButtons inside the current wrapper. + * If no matching RadioButton is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllRadioButtons(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent RadioButton for the current element, + * or the element itself if it is an instance of RadioButton. + * If no RadioButton is found, returns \`null\`. + * + * @returns {RadioButtonWrapper | null} + */ +findClosestRadioButton(): RadioButtonWrapper | null; +/** + * Returns the wrapper of the first RadioGroup that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first RadioGroup. + * If no matching RadioGroup is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {RadioGroupWrapper | null} + */ +findRadioGroup(selector?: string): RadioGroupWrapper | null; + +/** + * Returns an array of RadioGroup wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the RadioGroups inside the current wrapper. + * If no matching RadioGroup is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllRadioGroups(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent RadioGroup for the current element, + * or the element itself if it is an instance of RadioGroup. + * If no RadioGroup is found, returns \`null\`. + * + * @returns {RadioGroupWrapper | null} + */ +findClosestRadioGroup(): RadioGroupWrapper | null; +/** + * Returns the wrapper of the first S3ResourceSelector that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first S3ResourceSelector. + * If no matching S3ResourceSelector is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {S3ResourceSelectorWrapper | null} + */ +findS3ResourceSelector(selector?: string): S3ResourceSelectorWrapper | null; + +/** + * Returns an array of S3ResourceSelector wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the S3ResourceSelectors inside the current wrapper. + * If no matching S3ResourceSelector is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllS3ResourceSelectors(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent S3ResourceSelector for the current element, + * or the element itself if it is an instance of S3ResourceSelector. + * If no S3ResourceSelector is found, returns \`null\`. + * + * @returns {S3ResourceSelectorWrapper | null} + */ +findClosestS3ResourceSelector(): S3ResourceSelectorWrapper | null; +/** + * Returns the wrapper of the first SegmentedControl that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first SegmentedControl. + * If no matching SegmentedControl is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {SegmentedControlWrapper | null} + */ +findSegmentedControl(selector?: string): SegmentedControlWrapper | null; + +/** + * Returns an array of SegmentedControl wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the SegmentedControls inside the current wrapper. + * If no matching SegmentedControl is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllSegmentedControls(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent SegmentedControl for the current element, + * or the element itself if it is an instance of SegmentedControl. + * If no SegmentedControl is found, returns \`null\`. + * + * @returns {SegmentedControlWrapper | null} + */ +findClosestSegmentedControl(): SegmentedControlWrapper | null; +/** + * Returns the wrapper of the first Select that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Select. + * If no matching Select is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {SelectWrapper | null} + */ +findSelect(selector?: string): SelectWrapper | null; + +/** + * Returns an array of Select wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Selects inside the current wrapper. + * If no matching Select is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllSelects(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Select for the current element, + * or the element itself if it is an instance of Select. + * If no Select is found, returns \`null\`. + * + * @returns {SelectWrapper | null} + */ +findClosestSelect(): SelectWrapper | null; +/** + * Returns the wrapper of the first SideNavigation that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first SideNavigation. + * If no matching SideNavigation is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {SideNavigationWrapper | null} + */ +findSideNavigation(selector?: string): SideNavigationWrapper | null; + +/** + * Returns an array of SideNavigation wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the SideNavigations inside the current wrapper. + * If no matching SideNavigation is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllSideNavigations(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent SideNavigation for the current element, + * or the element itself if it is an instance of SideNavigation. + * If no SideNavigation is found, returns \`null\`. + * + * @returns {SideNavigationWrapper | null} + */ +findClosestSideNavigation(): SideNavigationWrapper | null; +/** + * Returns the wrapper of the first Slider that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Slider. + * If no matching Slider is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {SliderWrapper | null} + */ +findSlider(selector?: string): SliderWrapper | null; + +/** + * Returns an array of Slider wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Sliders inside the current wrapper. + * If no matching Slider is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllSliders(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Slider for the current element, + * or the element itself if it is an instance of Slider. + * If no Slider is found, returns \`null\`. + * + * @returns {SliderWrapper | null} + */ +findClosestSlider(): SliderWrapper | null; +/** + * Returns the wrapper of the first SpaceBetween that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first SpaceBetween. + * If no matching SpaceBetween is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {SpaceBetweenWrapper | null} + */ +findSpaceBetween(selector?: string): SpaceBetweenWrapper | null; + +/** + * Returns an array of SpaceBetween wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the SpaceBetweens inside the current wrapper. + * If no matching SpaceBetween is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllSpaceBetweens(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent SpaceBetween for the current element, + * or the element itself if it is an instance of SpaceBetween. + * If no SpaceBetween is found, returns \`null\`. + * + * @returns {SpaceBetweenWrapper | null} + */ +findClosestSpaceBetween(): SpaceBetweenWrapper | null; +/** + * Returns the wrapper of the first Spinner that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Spinner. + * If no matching Spinner is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {SpinnerWrapper | null} + */ +findSpinner(selector?: string): SpinnerWrapper | null; + +/** + * Returns an array of Spinner wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Spinners inside the current wrapper. + * If no matching Spinner is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllSpinners(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Spinner for the current element, + * or the element itself if it is an instance of Spinner. + * If no Spinner is found, returns \`null\`. + * + * @returns {SpinnerWrapper | null} + */ +findClosestSpinner(): SpinnerWrapper | null; +/** + * Returns the wrapper of the first SplitPanel that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first SplitPanel. + * If no matching SplitPanel is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {SplitPanelWrapper | null} + */ +findSplitPanel(selector?: string): SplitPanelWrapper | null; + +/** + * Returns an array of SplitPanel wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the SplitPanels inside the current wrapper. + * If no matching SplitPanel is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllSplitPanels(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent SplitPanel for the current element, + * or the element itself if it is an instance of SplitPanel. + * If no SplitPanel is found, returns \`null\`. + * + * @returns {SplitPanelWrapper | null} + */ +findClosestSplitPanel(): SplitPanelWrapper | null; +/** + * Returns the wrapper of the first StatusIndicator that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first StatusIndicator. + * If no matching StatusIndicator is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {StatusIndicatorWrapper | null} + */ +findStatusIndicator(selector?: string): StatusIndicatorWrapper | null; + +/** + * Returns an array of StatusIndicator wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the StatusIndicators inside the current wrapper. + * If no matching StatusIndicator is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllStatusIndicators(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent StatusIndicator for the current element, + * or the element itself if it is an instance of StatusIndicator. + * If no StatusIndicator is found, returns \`null\`. + * + * @returns {StatusIndicatorWrapper | null} + */ +findClosestStatusIndicator(): StatusIndicatorWrapper | null; +/** + * Returns the wrapper of the first Steps that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Steps. + * If no matching Steps is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {StepsWrapper | null} + */ +findSteps(selector?: string): StepsWrapper | null; + +/** + * Returns an array of Steps wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Steps inside the current wrapper. + * If no matching Steps is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllSteps(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Steps for the current element, + * or the element itself if it is an instance of Steps. + * If no Steps is found, returns \`null\`. + * + * @returns {StepsWrapper | null} + */ +findClosestSteps(): StepsWrapper | null; +/** + * Returns the wrapper of the first Table that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Table. + * If no matching Table is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {TableWrapper | null} + */ +findTable(selector?: string): TableWrapper | null; + +/** + * Returns an array of Table wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Tables inside the current wrapper. + * If no matching Table is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllTables(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Table for the current element, + * or the element itself if it is an instance of Table. + * If no Table is found, returns \`null\`. + * + * @returns {TableWrapper | null} + */ +findClosestTable(): TableWrapper | null; +/** + * Returns the wrapper of the first Tabs that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Tabs. + * If no matching Tabs is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {TabsWrapper | null} + */ +findTabs(selector?: string): TabsWrapper | null; + +/** + * Returns an array of Tabs wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Tabs inside the current wrapper. + * If no matching Tabs is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllTabs(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Tabs for the current element, + * or the element itself if it is an instance of Tabs. + * If no Tabs is found, returns \`null\`. + * + * @returns {TabsWrapper | null} + */ +findClosestTabs(): TabsWrapper | null; +/** + * Returns the wrapper of the first TagEditor that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first TagEditor. + * If no matching TagEditor is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {TagEditorWrapper | null} + */ +findTagEditor(selector?: string): TagEditorWrapper | null; + +/** + * Returns an array of TagEditor wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the TagEditors inside the current wrapper. + * If no matching TagEditor is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllTagEditors(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent TagEditor for the current element, + * or the element itself if it is an instance of TagEditor. + * If no TagEditor is found, returns \`null\`. + * + * @returns {TagEditorWrapper | null} + */ +findClosestTagEditor(): TagEditorWrapper | null; +/** + * Returns the wrapper of the first TextContent that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first TextContent. + * If no matching TextContent is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {TextContentWrapper | null} + */ +findTextContent(selector?: string): TextContentWrapper | null; + +/** + * Returns an array of TextContent wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the TextContents inside the current wrapper. + * If no matching TextContent is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllTextContents(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent TextContent for the current element, + * or the element itself if it is an instance of TextContent. + * If no TextContent is found, returns \`null\`. + * + * @returns {TextContentWrapper | null} + */ +findClosestTextContent(): TextContentWrapper | null; +/** + * Returns the wrapper of the first TextFilter that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first TextFilter. + * If no matching TextFilter is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {TextFilterWrapper | null} + */ +findTextFilter(selector?: string): TextFilterWrapper | null; + +/** + * Returns an array of TextFilter wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the TextFilters inside the current wrapper. + * If no matching TextFilter is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllTextFilters(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent TextFilter for the current element, + * or the element itself if it is an instance of TextFilter. + * If no TextFilter is found, returns \`null\`. + * + * @returns {TextFilterWrapper | null} + */ +findClosestTextFilter(): TextFilterWrapper | null; +/** + * Returns the wrapper of the first Textarea that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Textarea. + * If no matching Textarea is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {TextareaWrapper | null} + */ +findTextarea(selector?: string): TextareaWrapper | null; + +/** + * Returns an array of Textarea wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Textareas inside the current wrapper. + * If no matching Textarea is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllTextareas(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Textarea for the current element, + * or the element itself if it is an instance of Textarea. + * If no Textarea is found, returns \`null\`. + * + * @returns {TextareaWrapper | null} + */ +findClosestTextarea(): TextareaWrapper | null; +/** + * Returns the wrapper of the first Tiles that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Tiles. + * If no matching Tiles is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {TilesWrapper | null} + */ +findTiles(selector?: string): TilesWrapper | null; + +/** + * Returns an array of Tiles wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Tiles inside the current wrapper. + * If no matching Tiles is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllTiles(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Tiles for the current element, + * or the element itself if it is an instance of Tiles. + * If no Tiles is found, returns \`null\`. + * + * @returns {TilesWrapper | null} + */ +findClosestTiles(): TilesWrapper | null; +/** + * Returns the wrapper of the first TimeInput that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first TimeInput. + * If no matching TimeInput is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {TimeInputWrapper | null} + */ +findTimeInput(selector?: string): TimeInputWrapper | null; + +/** + * Returns an array of TimeInput wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the TimeInputs inside the current wrapper. + * If no matching TimeInput is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllTimeInputs(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent TimeInput for the current element, + * or the element itself if it is an instance of TimeInput. + * If no TimeInput is found, returns \`null\`. + * + * @returns {TimeInputWrapper | null} + */ +findClosestTimeInput(): TimeInputWrapper | null; +/** + * Returns the wrapper of the first Toggle that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Toggle. + * If no matching Toggle is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {ToggleWrapper | null} + */ +findToggle(selector?: string): ToggleWrapper | null; + +/** + * Returns an array of Toggle wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Toggles inside the current wrapper. + * If no matching Toggle is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllToggles(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Toggle for the current element, + * or the element itself if it is an instance of Toggle. + * If no Toggle is found, returns \`null\`. + * + * @returns {ToggleWrapper | null} + */ +findClosestToggle(): ToggleWrapper | null; +/** + * Returns the wrapper of the first ToggleButton that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first ToggleButton. + * If no matching ToggleButton is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {ToggleButtonWrapper | null} + */ +findToggleButton(selector?: string): ToggleButtonWrapper | null; + +/** + * Returns an array of ToggleButton wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the ToggleButtons inside the current wrapper. + * If no matching ToggleButton is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllToggleButtons(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent ToggleButton for the current element, + * or the element itself if it is an instance of ToggleButton. + * If no ToggleButton is found, returns \`null\`. + * + * @returns {ToggleButtonWrapper | null} + */ +findClosestToggleButton(): ToggleButtonWrapper | null; +/** + * Returns the wrapper of the first Token that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Token. + * If no matching Token is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {TokenWrapper | null} + */ +findToken(selector?: string): TokenWrapper | null; + +/** + * Returns an array of Token wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Tokens inside the current wrapper. + * If no matching Token is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllTokens(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Token for the current element, + * or the element itself if it is an instance of Token. + * If no Token is found, returns \`null\`. + * + * @returns {TokenWrapper | null} + */ +findClosestToken(): TokenWrapper | null; +/** + * Returns the wrapper of the first TokenGroup that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first TokenGroup. + * If no matching TokenGroup is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {TokenGroupWrapper | null} + */ +findTokenGroup(selector?: string): TokenGroupWrapper | null; + +/** + * Returns an array of TokenGroup wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the TokenGroups inside the current wrapper. + * If no matching TokenGroup is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllTokenGroups(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent TokenGroup for the current element, + * or the element itself if it is an instance of TokenGroup. + * If no TokenGroup is found, returns \`null\`. + * + * @returns {TokenGroupWrapper | null} + */ +findClosestTokenGroup(): TokenGroupWrapper | null; +/** + * Returns the wrapper of the first Tooltip that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Tooltip. + * If no matching Tooltip is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {TooltipWrapper | null} + */ +findTooltip(selector?: string): TooltipWrapper | null; + +/** + * Returns an array of Tooltip wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Tooltips inside the current wrapper. + * If no matching Tooltip is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllTooltips(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Tooltip for the current element, + * or the element itself if it is an instance of Tooltip. + * If no Tooltip is found, returns \`null\`. + * + * @returns {TooltipWrapper | null} + */ +findClosestTooltip(): TooltipWrapper | null; +/** + * Returns the wrapper of the first TopNavigation that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first TopNavigation. + * If no matching TopNavigation is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {TopNavigationWrapper | null} + */ +findTopNavigation(selector?: string): TopNavigationWrapper | null; + +/** + * Returns an array of TopNavigation wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the TopNavigations inside the current wrapper. + * If no matching TopNavigation is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllTopNavigations(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent TopNavigation for the current element, + * or the element itself if it is an instance of TopNavigation. + * If no TopNavigation is found, returns \`null\`. + * + * @returns {TopNavigationWrapper | null} + */ +findClosestTopNavigation(): TopNavigationWrapper | null; +/** + * Returns the wrapper of the first TreeView that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first TreeView. + * If no matching TreeView is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {TreeViewWrapper | null} + */ +findTreeView(selector?: string): TreeViewWrapper | null; + +/** + * Returns an array of TreeView wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the TreeViews inside the current wrapper. + * If no matching TreeView is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllTreeViews(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent TreeView for the current element, + * or the element itself if it is an instance of TreeView. + * If no TreeView is found, returns \`null\`. + * + * @returns {TreeViewWrapper | null} + */ +findClosestTreeView(): TreeViewWrapper | null; +/** + * Returns the wrapper of the first TutorialPanel that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first TutorialPanel. + * If no matching TutorialPanel is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {TutorialPanelWrapper | null} + */ +findTutorialPanel(selector?: string): TutorialPanelWrapper | null; + +/** + * Returns an array of TutorialPanel wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the TutorialPanels inside the current wrapper. + * If no matching TutorialPanel is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllTutorialPanels(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent TutorialPanel for the current element, + * or the element itself if it is an instance of TutorialPanel. + * If no TutorialPanel is found, returns \`null\`. + * + * @returns {TutorialPanelWrapper | null} + */ +findClosestTutorialPanel(): TutorialPanelWrapper | null; +/** + * Returns the wrapper of the first Wizard that matches the specified CSS selector. + * If no CSS selector is specified, returns the wrapper of the first Wizard. + * If no matching Wizard is found, returns \`null\`. + * + * @param {string} [selector] CSS Selector + * @returns {WizardWrapper | null} + */ +findWizard(selector?: string): WizardWrapper | null; + +/** + * Returns an array of Wizard wrapper that matches the specified CSS selector. + * If no CSS selector is specified, returns all of the Wizards inside the current wrapper. + * If no matching Wizard is found, returns an empty array. + * + * @param {string} [selector] CSS Selector + * @returns {Array} + */ +findAllWizards(selector?: string): Array; + +/** + * Returns the wrapper of the closest parent Wizard for the current element, + * or the element itself if it is an instance of Wizard. + * If no Wizard is found, returns \`null\`. + * + * @returns {WizardWrapper | null} + */ +findClosestWizard(): WizardWrapper | null; + } +} + + +ElementWrapper.prototype.findActionCard = function(selector) { + let rootSelector = \`.\${ActionCardWrapper.rootSelector}\`; + if("legacyRootSelector" in ActionCardWrapper && ActionCardWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${ActionCardWrapper.rootSelector}, .\${ActionCardWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ActionCardWrapper); +}; + +ElementWrapper.prototype.findAllActionCards = function(selector) { + return this.findAllComponents(ActionCardWrapper, selector); +}; +ElementWrapper.prototype.findAlert = function(selector) { + let rootSelector = \`.\${AlertWrapper.rootSelector}\`; + if("legacyRootSelector" in AlertWrapper && AlertWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${AlertWrapper.rootSelector}, .\${AlertWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, AlertWrapper); +}; + +ElementWrapper.prototype.findAllAlerts = function(selector) { + return this.findAllComponents(AlertWrapper, selector); +}; +ElementWrapper.prototype.findAnchorNavigation = function(selector) { + let rootSelector = \`.\${AnchorNavigationWrapper.rootSelector}\`; + if("legacyRootSelector" in AnchorNavigationWrapper && AnchorNavigationWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${AnchorNavigationWrapper.rootSelector}, .\${AnchorNavigationWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, AnchorNavigationWrapper); +}; + +ElementWrapper.prototype.findAllAnchorNavigations = function(selector) { + return this.findAllComponents(AnchorNavigationWrapper, selector); +}; +ElementWrapper.prototype.findAnnotation = function(selector) { + let rootSelector = \`.\${AnnotationWrapper.rootSelector}\`; + if("legacyRootSelector" in AnnotationWrapper && AnnotationWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${AnnotationWrapper.rootSelector}, .\${AnnotationWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, AnnotationWrapper); +}; + +ElementWrapper.prototype.findAllAnnotations = function(selector) { + return this.findAllComponents(AnnotationWrapper, selector); +}; +ElementWrapper.prototype.findAppLayout = function(selector) { + let rootSelector = \`.\${AppLayoutWrapper.rootSelector}\`; + if("legacyRootSelector" in AppLayoutWrapper && AppLayoutWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${AppLayoutWrapper.rootSelector}, .\${AppLayoutWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, AppLayoutWrapper); +}; + +ElementWrapper.prototype.findAllAppLayouts = function(selector) { + return this.findAllComponents(AppLayoutWrapper, selector); +}; +ElementWrapper.prototype.findAppLayoutToolbar = function(selector) { + let rootSelector = \`.\${AppLayoutToolbarWrapper.rootSelector}\`; + if("legacyRootSelector" in AppLayoutToolbarWrapper && AppLayoutToolbarWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${AppLayoutToolbarWrapper.rootSelector}, .\${AppLayoutToolbarWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, AppLayoutToolbarWrapper); +}; + +ElementWrapper.prototype.findAllAppLayoutToolbars = function(selector) { + return this.findAllComponents(AppLayoutToolbarWrapper, selector); +}; +ElementWrapper.prototype.findAreaChart = function(selector) { + let rootSelector = \`.\${AreaChartWrapper.rootSelector}\`; + if("legacyRootSelector" in AreaChartWrapper && AreaChartWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${AreaChartWrapper.rootSelector}, .\${AreaChartWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, AreaChartWrapper); +}; + +ElementWrapper.prototype.findAllAreaCharts = function(selector) { + return this.findAllComponents(AreaChartWrapper, selector); +}; +ElementWrapper.prototype.findAttributeEditor = function(selector) { + let rootSelector = \`.\${AttributeEditorWrapper.rootSelector}\`; + if("legacyRootSelector" in AttributeEditorWrapper && AttributeEditorWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${AttributeEditorWrapper.rootSelector}, .\${AttributeEditorWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, AttributeEditorWrapper); +}; + +ElementWrapper.prototype.findAllAttributeEditors = function(selector) { + return this.findAllComponents(AttributeEditorWrapper, selector); +}; +ElementWrapper.prototype.findAutosuggest = function(selector) { + let rootSelector = \`.\${AutosuggestWrapper.rootSelector}\`; + if("legacyRootSelector" in AutosuggestWrapper && AutosuggestWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${AutosuggestWrapper.rootSelector}, .\${AutosuggestWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, AutosuggestWrapper); +}; + +ElementWrapper.prototype.findAllAutosuggests = function(selector) { + return this.findAllComponents(AutosuggestWrapper, selector); +}; +ElementWrapper.prototype.findBadge = function(selector) { + let rootSelector = \`.\${BadgeWrapper.rootSelector}\`; + if("legacyRootSelector" in BadgeWrapper && BadgeWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${BadgeWrapper.rootSelector}, .\${BadgeWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, BadgeWrapper); +}; + +ElementWrapper.prototype.findAllBadges = function(selector) { + return this.findAllComponents(BadgeWrapper, selector); +}; +ElementWrapper.prototype.findBarChart = function(selector) { + let rootSelector = \`.\${BarChartWrapper.rootSelector}\`; + if("legacyRootSelector" in BarChartWrapper && BarChartWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${BarChartWrapper.rootSelector}, .\${BarChartWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, BarChartWrapper); +}; + +ElementWrapper.prototype.findAllBarCharts = function(selector) { + return this.findAllComponents(BarChartWrapper, selector); +}; +ElementWrapper.prototype.findBox = function(selector) { + let rootSelector = \`.\${BoxWrapper.rootSelector}\`; + if("legacyRootSelector" in BoxWrapper && BoxWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${BoxWrapper.rootSelector}, .\${BoxWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, BoxWrapper); +}; + +ElementWrapper.prototype.findAllBoxes = function(selector) { + return this.findAllComponents(BoxWrapper, selector); +}; +ElementWrapper.prototype.findBreadcrumbGroup = function(selector) { + let rootSelector = \`.\${BreadcrumbGroupWrapper.rootSelector}\`; + if("legacyRootSelector" in BreadcrumbGroupWrapper && BreadcrumbGroupWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${BreadcrumbGroupWrapper.rootSelector}, .\${BreadcrumbGroupWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, BreadcrumbGroupWrapper); +}; + +ElementWrapper.prototype.findAllBreadcrumbGroups = function(selector) { + return this.findAllComponents(BreadcrumbGroupWrapper, selector); +}; +ElementWrapper.prototype.findButton = function(selector) { + let rootSelector = \`.\${ButtonWrapper.rootSelector}\`; + if("legacyRootSelector" in ButtonWrapper && ButtonWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${ButtonWrapper.rootSelector}, .\${ButtonWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ButtonWrapper); +}; + +ElementWrapper.prototype.findAllButtons = function(selector) { + return this.findAllComponents(ButtonWrapper, selector); +}; +ElementWrapper.prototype.findButtonDropdown = function(selector) { + let rootSelector = \`.\${ButtonDropdownWrapper.rootSelector}\`; + if("legacyRootSelector" in ButtonDropdownWrapper && ButtonDropdownWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${ButtonDropdownWrapper.rootSelector}, .\${ButtonDropdownWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ButtonDropdownWrapper); +}; + +ElementWrapper.prototype.findAllButtonDropdowns = function(selector) { + return this.findAllComponents(ButtonDropdownWrapper, selector); +}; +ElementWrapper.prototype.findButtonGroup = function(selector) { + let rootSelector = \`.\${ButtonGroupWrapper.rootSelector}\`; + if("legacyRootSelector" in ButtonGroupWrapper && ButtonGroupWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${ButtonGroupWrapper.rootSelector}, .\${ButtonGroupWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ButtonGroupWrapper); +}; + +ElementWrapper.prototype.findAllButtonGroups = function(selector) { + return this.findAllComponents(ButtonGroupWrapper, selector); +}; +ElementWrapper.prototype.findCalendar = function(selector) { + let rootSelector = \`.\${CalendarWrapper.rootSelector}\`; + if("legacyRootSelector" in CalendarWrapper && CalendarWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${CalendarWrapper.rootSelector}, .\${CalendarWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, CalendarWrapper); +}; + +ElementWrapper.prototype.findAllCalendars = function(selector) { + return this.findAllComponents(CalendarWrapper, selector); +}; +ElementWrapper.prototype.findCards = function(selector) { + let rootSelector = \`.\${CardsWrapper.rootSelector}\`; + if("legacyRootSelector" in CardsWrapper && CardsWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${CardsWrapper.rootSelector}, .\${CardsWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, CardsWrapper); +}; + +ElementWrapper.prototype.findAllCards = function(selector) { + return this.findAllComponents(CardsWrapper, selector); +}; +ElementWrapper.prototype.findCheckbox = function(selector) { + let rootSelector = \`.\${CheckboxWrapper.rootSelector}\`; + if("legacyRootSelector" in CheckboxWrapper && CheckboxWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${CheckboxWrapper.rootSelector}, .\${CheckboxWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, CheckboxWrapper); +}; + +ElementWrapper.prototype.findAllCheckboxes = function(selector) { + return this.findAllComponents(CheckboxWrapper, selector); +}; +ElementWrapper.prototype.findCodeEditor = function(selector) { + let rootSelector = \`.\${CodeEditorWrapper.rootSelector}\`; + if("legacyRootSelector" in CodeEditorWrapper && CodeEditorWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${CodeEditorWrapper.rootSelector}, .\${CodeEditorWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, CodeEditorWrapper); +}; + +ElementWrapper.prototype.findAllCodeEditors = function(selector) { + return this.findAllComponents(CodeEditorWrapper, selector); +}; +ElementWrapper.prototype.findCollectionPreferences = function(selector) { + let rootSelector = \`.\${CollectionPreferencesWrapper.rootSelector}\`; + if("legacyRootSelector" in CollectionPreferencesWrapper && CollectionPreferencesWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${CollectionPreferencesWrapper.rootSelector}, .\${CollectionPreferencesWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, CollectionPreferencesWrapper); +}; + +ElementWrapper.prototype.findAllCollectionPreferences = function(selector) { + return this.findAllComponents(CollectionPreferencesWrapper, selector); +}; +ElementWrapper.prototype.findColumnLayout = function(selector) { + let rootSelector = \`.\${ColumnLayoutWrapper.rootSelector}\`; + if("legacyRootSelector" in ColumnLayoutWrapper && ColumnLayoutWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${ColumnLayoutWrapper.rootSelector}, .\${ColumnLayoutWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ColumnLayoutWrapper); +}; + +ElementWrapper.prototype.findAllColumnLayouts = function(selector) { + return this.findAllComponents(ColumnLayoutWrapper, selector); +}; +ElementWrapper.prototype.findContainer = function(selector) { + let rootSelector = \`.\${ContainerWrapper.rootSelector}\`; + if("legacyRootSelector" in ContainerWrapper && ContainerWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${ContainerWrapper.rootSelector}, .\${ContainerWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ContainerWrapper); +}; + +ElementWrapper.prototype.findAllContainers = function(selector) { + return this.findAllComponents(ContainerWrapper, selector); +}; +ElementWrapper.prototype.findContentLayout = function(selector) { + let rootSelector = \`.\${ContentLayoutWrapper.rootSelector}\`; + if("legacyRootSelector" in ContentLayoutWrapper && ContentLayoutWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${ContentLayoutWrapper.rootSelector}, .\${ContentLayoutWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ContentLayoutWrapper); +}; + +ElementWrapper.prototype.findAllContentLayouts = function(selector) { + return this.findAllComponents(ContentLayoutWrapper, selector); +}; +ElementWrapper.prototype.findCopyToClipboard = function(selector) { + let rootSelector = \`.\${CopyToClipboardWrapper.rootSelector}\`; + if("legacyRootSelector" in CopyToClipboardWrapper && CopyToClipboardWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${CopyToClipboardWrapper.rootSelector}, .\${CopyToClipboardWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, CopyToClipboardWrapper); +}; + +ElementWrapper.prototype.findAllCopyToClipboards = function(selector) { + return this.findAllComponents(CopyToClipboardWrapper, selector); +}; +ElementWrapper.prototype.findDateInput = function(selector) { + let rootSelector = \`.\${DateInputWrapper.rootSelector}\`; + if("legacyRootSelector" in DateInputWrapper && DateInputWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${DateInputWrapper.rootSelector}, .\${DateInputWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, DateInputWrapper); +}; + +ElementWrapper.prototype.findAllDateInputs = function(selector) { + return this.findAllComponents(DateInputWrapper, selector); +}; +ElementWrapper.prototype.findDatePicker = function(selector) { + let rootSelector = \`.\${DatePickerWrapper.rootSelector}\`; + if("legacyRootSelector" in DatePickerWrapper && DatePickerWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${DatePickerWrapper.rootSelector}, .\${DatePickerWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, DatePickerWrapper); +}; + +ElementWrapper.prototype.findAllDatePickers = function(selector) { + return this.findAllComponents(DatePickerWrapper, selector); +}; +ElementWrapper.prototype.findDateRangePicker = function(selector) { + let rootSelector = \`.\${DateRangePickerWrapper.rootSelector}\`; + if("legacyRootSelector" in DateRangePickerWrapper && DateRangePickerWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${DateRangePickerWrapper.rootSelector}, .\${DateRangePickerWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, DateRangePickerWrapper); +}; + +ElementWrapper.prototype.findAllDateRangePickers = function(selector) { + return this.findAllComponents(DateRangePickerWrapper, selector); +}; +ElementWrapper.prototype.findDrawer = function(selector) { + let rootSelector = \`.\${DrawerWrapper.rootSelector}\`; + if("legacyRootSelector" in DrawerWrapper && DrawerWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${DrawerWrapper.rootSelector}, .\${DrawerWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, DrawerWrapper); +}; + +ElementWrapper.prototype.findAllDrawers = function(selector) { + return this.findAllComponents(DrawerWrapper, selector); +}; +ElementWrapper.prototype.findDropdown = function(selector) { + let rootSelector = \`.\${DropdownWrapper.rootSelector}\`; + if("legacyRootSelector" in DropdownWrapper && DropdownWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${DropdownWrapper.rootSelector}, .\${DropdownWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, DropdownWrapper); +}; + +ElementWrapper.prototype.findAllDropdowns = function(selector) { + return this.findAllComponents(DropdownWrapper, selector); +}; +ElementWrapper.prototype.findErrorBoundary = function(selector) { + let rootSelector = \`.\${ErrorBoundaryWrapper.rootSelector}\`; + if("legacyRootSelector" in ErrorBoundaryWrapper && ErrorBoundaryWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${ErrorBoundaryWrapper.rootSelector}, .\${ErrorBoundaryWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ErrorBoundaryWrapper); +}; + +ElementWrapper.prototype.findAllErrorBoundaries = function(selector) { + return this.findAllComponents(ErrorBoundaryWrapper, selector); +}; +ElementWrapper.prototype.findExpandableSection = function(selector) { + let rootSelector = \`.\${ExpandableSectionWrapper.rootSelector}\`; + if("legacyRootSelector" in ExpandableSectionWrapper && ExpandableSectionWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${ExpandableSectionWrapper.rootSelector}, .\${ExpandableSectionWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ExpandableSectionWrapper); +}; + +ElementWrapper.prototype.findAllExpandableSections = function(selector) { + return this.findAllComponents(ExpandableSectionWrapper, selector); +}; +ElementWrapper.prototype.findFileDropzone = function(selector) { + let rootSelector = \`.\${FileDropzoneWrapper.rootSelector}\`; + if("legacyRootSelector" in FileDropzoneWrapper && FileDropzoneWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${FileDropzoneWrapper.rootSelector}, .\${FileDropzoneWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, FileDropzoneWrapper); +}; + +ElementWrapper.prototype.findAllFileDropzones = function(selector) { + return this.findAllComponents(FileDropzoneWrapper, selector); +}; +ElementWrapper.prototype.findFileInput = function(selector) { + let rootSelector = \`.\${FileInputWrapper.rootSelector}\`; + if("legacyRootSelector" in FileInputWrapper && FileInputWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${FileInputWrapper.rootSelector}, .\${FileInputWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, FileInputWrapper); +}; + +ElementWrapper.prototype.findAllFileInputs = function(selector) { + return this.findAllComponents(FileInputWrapper, selector); +}; +ElementWrapper.prototype.findFileTokenGroup = function(selector) { + let rootSelector = \`.\${FileTokenGroupWrapper.rootSelector}\`; + if("legacyRootSelector" in FileTokenGroupWrapper && FileTokenGroupWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${FileTokenGroupWrapper.rootSelector}, .\${FileTokenGroupWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, FileTokenGroupWrapper); +}; + +ElementWrapper.prototype.findAllFileTokenGroups = function(selector) { + return this.findAllComponents(FileTokenGroupWrapper, selector); +}; +ElementWrapper.prototype.findFileUpload = function(selector) { + let rootSelector = \`.\${FileUploadWrapper.rootSelector}\`; + if("legacyRootSelector" in FileUploadWrapper && FileUploadWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${FileUploadWrapper.rootSelector}, .\${FileUploadWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, FileUploadWrapper); +}; + +ElementWrapper.prototype.findAllFileUploads = function(selector) { + return this.findAllComponents(FileUploadWrapper, selector); +}; +ElementWrapper.prototype.findFlashbar = function(selector) { + let rootSelector = \`.\${FlashbarWrapper.rootSelector}\`; + if("legacyRootSelector" in FlashbarWrapper && FlashbarWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${FlashbarWrapper.rootSelector}, .\${FlashbarWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, FlashbarWrapper); +}; + +ElementWrapper.prototype.findAllFlashbars = function(selector) { + return this.findAllComponents(FlashbarWrapper, selector); +}; +ElementWrapper.prototype.findForm = function(selector) { + let rootSelector = \`.\${FormWrapper.rootSelector}\`; + if("legacyRootSelector" in FormWrapper && FormWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${FormWrapper.rootSelector}, .\${FormWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, FormWrapper); +}; + +ElementWrapper.prototype.findAllForms = function(selector) { + return this.findAllComponents(FormWrapper, selector); +}; +ElementWrapper.prototype.findFormField = function(selector) { + let rootSelector = \`.\${FormFieldWrapper.rootSelector}\`; + if("legacyRootSelector" in FormFieldWrapper && FormFieldWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${FormFieldWrapper.rootSelector}, .\${FormFieldWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, FormFieldWrapper); +}; + +ElementWrapper.prototype.findAllFormFields = function(selector) { + return this.findAllComponents(FormFieldWrapper, selector); +}; +ElementWrapper.prototype.findGrid = function(selector) { + let rootSelector = \`.\${GridWrapper.rootSelector}\`; + if("legacyRootSelector" in GridWrapper && GridWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${GridWrapper.rootSelector}, .\${GridWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, GridWrapper); +}; + +ElementWrapper.prototype.findAllGrids = function(selector) { + return this.findAllComponents(GridWrapper, selector); +}; +ElementWrapper.prototype.findHeader = function(selector) { + let rootSelector = \`.\${HeaderWrapper.rootSelector}\`; + if("legacyRootSelector" in HeaderWrapper && HeaderWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${HeaderWrapper.rootSelector}, .\${HeaderWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, HeaderWrapper); +}; + +ElementWrapper.prototype.findAllHeaders = function(selector) { + return this.findAllComponents(HeaderWrapper, selector); +}; +ElementWrapper.prototype.findHelpPanel = function(selector) { + let rootSelector = \`.\${HelpPanelWrapper.rootSelector}\`; + if("legacyRootSelector" in HelpPanelWrapper && HelpPanelWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${HelpPanelWrapper.rootSelector}, .\${HelpPanelWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, HelpPanelWrapper); +}; + +ElementWrapper.prototype.findAllHelpPanels = function(selector) { + return this.findAllComponents(HelpPanelWrapper, selector); +}; +ElementWrapper.prototype.findHotspot = function(selector) { + let rootSelector = \`.\${HotspotWrapper.rootSelector}\`; + if("legacyRootSelector" in HotspotWrapper && HotspotWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${HotspotWrapper.rootSelector}, .\${HotspotWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, HotspotWrapper); +}; + +ElementWrapper.prototype.findAllHotspots = function(selector) { + return this.findAllComponents(HotspotWrapper, selector); +}; +ElementWrapper.prototype.findIcon = function(selector) { + let rootSelector = \`.\${IconWrapper.rootSelector}\`; + if("legacyRootSelector" in IconWrapper && IconWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${IconWrapper.rootSelector}, .\${IconWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, IconWrapper); +}; + +ElementWrapper.prototype.findAllIcons = function(selector) { + return this.findAllComponents(IconWrapper, selector); +}; +ElementWrapper.prototype.findInput = function(selector) { + let rootSelector = \`.\${InputWrapper.rootSelector}\`; + if("legacyRootSelector" in InputWrapper && InputWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${InputWrapper.rootSelector}, .\${InputWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, InputWrapper); +}; + +ElementWrapper.prototype.findAllInputs = function(selector) { + return this.findAllComponents(InputWrapper, selector); +}; +ElementWrapper.prototype.findItemCard = function(selector) { + let rootSelector = \`.\${ItemCardWrapper.rootSelector}\`; + if("legacyRootSelector" in ItemCardWrapper && ItemCardWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${ItemCardWrapper.rootSelector}, .\${ItemCardWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ItemCardWrapper); +}; + +ElementWrapper.prototype.findAllItemCards = function(selector) { + return this.findAllComponents(ItemCardWrapper, selector); +}; +ElementWrapper.prototype.findKeyValuePairs = function(selector) { + let rootSelector = \`.\${KeyValuePairsWrapper.rootSelector}\`; + if("legacyRootSelector" in KeyValuePairsWrapper && KeyValuePairsWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${KeyValuePairsWrapper.rootSelector}, .\${KeyValuePairsWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, KeyValuePairsWrapper); +}; + +ElementWrapper.prototype.findAllKeyValuePairs = function(selector) { + return this.findAllComponents(KeyValuePairsWrapper, selector); +}; +ElementWrapper.prototype.findLineChart = function(selector) { + let rootSelector = \`.\${LineChartWrapper.rootSelector}\`; + if("legacyRootSelector" in LineChartWrapper && LineChartWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${LineChartWrapper.rootSelector}, .\${LineChartWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, LineChartWrapper); +}; + +ElementWrapper.prototype.findAllLineCharts = function(selector) { + return this.findAllComponents(LineChartWrapper, selector); +}; +ElementWrapper.prototype.findLink = function(selector) { + let rootSelector = \`.\${LinkWrapper.rootSelector}\`; + if("legacyRootSelector" in LinkWrapper && LinkWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${LinkWrapper.rootSelector}, .\${LinkWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, LinkWrapper); +}; + +ElementWrapper.prototype.findAllLinks = function(selector) { + return this.findAllComponents(LinkWrapper, selector); +}; +ElementWrapper.prototype.findList = function(selector) { + let rootSelector = \`.\${ListWrapper.rootSelector}\`; + if("legacyRootSelector" in ListWrapper && ListWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${ListWrapper.rootSelector}, .\${ListWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ListWrapper); +}; + +ElementWrapper.prototype.findAllLists = function(selector) { + return this.findAllComponents(ListWrapper, selector); +}; +ElementWrapper.prototype.findLiveRegion = function(selector) { + let rootSelector = \`.\${LiveRegionWrapper.rootSelector}\`; + if("legacyRootSelector" in LiveRegionWrapper && LiveRegionWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${LiveRegionWrapper.rootSelector}, .\${LiveRegionWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, LiveRegionWrapper); +}; + +ElementWrapper.prototype.findAllLiveRegions = function(selector) { + return this.findAllComponents(LiveRegionWrapper, selector); +}; +ElementWrapper.prototype.findMixedLineBarChart = function(selector) { + let rootSelector = \`.\${MixedLineBarChartWrapper.rootSelector}\`; + if("legacyRootSelector" in MixedLineBarChartWrapper && MixedLineBarChartWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${MixedLineBarChartWrapper.rootSelector}, .\${MixedLineBarChartWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, MixedLineBarChartWrapper); +}; + +ElementWrapper.prototype.findAllMixedLineBarCharts = function(selector) { + return this.findAllComponents(MixedLineBarChartWrapper, selector); +}; +ElementWrapper.prototype.findModal = function(selector) { + let rootSelector = \`.\${ModalWrapper.rootSelector}\`; + if("legacyRootSelector" in ModalWrapper && ModalWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${ModalWrapper.rootSelector}, .\${ModalWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ModalWrapper); +}; + +ElementWrapper.prototype.findAllModals = function(selector) { + return this.findAllComponents(ModalWrapper, selector); +}; +ElementWrapper.prototype.findMultiselect = function(selector) { + let rootSelector = \`.\${MultiselectWrapper.rootSelector}\`; + if("legacyRootSelector" in MultiselectWrapper && MultiselectWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${MultiselectWrapper.rootSelector}, .\${MultiselectWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, MultiselectWrapper); +}; + +ElementWrapper.prototype.findAllMultiselects = function(selector) { + return this.findAllComponents(MultiselectWrapper, selector); +}; +ElementWrapper.prototype.findNavigableGroup = function(selector) { + let rootSelector = \`.\${NavigableGroupWrapper.rootSelector}\`; + if("legacyRootSelector" in NavigableGroupWrapper && NavigableGroupWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${NavigableGroupWrapper.rootSelector}, .\${NavigableGroupWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, NavigableGroupWrapper); +}; + +ElementWrapper.prototype.findAllNavigableGroups = function(selector) { + return this.findAllComponents(NavigableGroupWrapper, selector); +}; +ElementWrapper.prototype.findPagination = function(selector) { + let rootSelector = \`.\${PaginationWrapper.rootSelector}\`; + if("legacyRootSelector" in PaginationWrapper && PaginationWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${PaginationWrapper.rootSelector}, .\${PaginationWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, PaginationWrapper); +}; + +ElementWrapper.prototype.findAllPaginations = function(selector) { + return this.findAllComponents(PaginationWrapper, selector); +}; +ElementWrapper.prototype.findPanelLayout = function(selector) { + let rootSelector = \`.\${PanelLayoutWrapper.rootSelector}\`; + if("legacyRootSelector" in PanelLayoutWrapper && PanelLayoutWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${PanelLayoutWrapper.rootSelector}, .\${PanelLayoutWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, PanelLayoutWrapper); +}; + +ElementWrapper.prototype.findAllPanelLayouts = function(selector) { + return this.findAllComponents(PanelLayoutWrapper, selector); +}; +ElementWrapper.prototype.findPieChart = function(selector) { + let rootSelector = \`.\${PieChartWrapper.rootSelector}\`; + if("legacyRootSelector" in PieChartWrapper && PieChartWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${PieChartWrapper.rootSelector}, .\${PieChartWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, PieChartWrapper); +}; + +ElementWrapper.prototype.findAllPieCharts = function(selector) { + return this.findAllComponents(PieChartWrapper, selector); +}; +ElementWrapper.prototype.findPopover = function(selector) { + let rootSelector = \`.\${PopoverWrapper.rootSelector}\`; + if("legacyRootSelector" in PopoverWrapper && PopoverWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${PopoverWrapper.rootSelector}, .\${PopoverWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, PopoverWrapper); +}; + +ElementWrapper.prototype.findAllPopovers = function(selector) { + return this.findAllComponents(PopoverWrapper, selector); +}; +ElementWrapper.prototype.findProgressBar = function(selector) { + let rootSelector = \`.\${ProgressBarWrapper.rootSelector}\`; + if("legacyRootSelector" in ProgressBarWrapper && ProgressBarWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${ProgressBarWrapper.rootSelector}, .\${ProgressBarWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ProgressBarWrapper); +}; + +ElementWrapper.prototype.findAllProgressBars = function(selector) { + return this.findAllComponents(ProgressBarWrapper, selector); +}; +ElementWrapper.prototype.findPromptInput = function(selector) { + let rootSelector = \`.\${PromptInputWrapper.rootSelector}\`; + if("legacyRootSelector" in PromptInputWrapper && PromptInputWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${PromptInputWrapper.rootSelector}, .\${PromptInputWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, PromptInputWrapper); +}; + +ElementWrapper.prototype.findAllPromptInputs = function(selector) { + return this.findAllComponents(PromptInputWrapper, selector); +}; +ElementWrapper.prototype.findPropertyFilter = function(selector) { + let rootSelector = \`.\${PropertyFilterWrapper.rootSelector}\`; + if("legacyRootSelector" in PropertyFilterWrapper && PropertyFilterWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${PropertyFilterWrapper.rootSelector}, .\${PropertyFilterWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, PropertyFilterWrapper); +}; + +ElementWrapper.prototype.findAllPropertyFilters = function(selector) { + return this.findAllComponents(PropertyFilterWrapper, selector); +}; +ElementWrapper.prototype.findRadioButton = function(selector) { + let rootSelector = \`.\${RadioButtonWrapper.rootSelector}\`; + if("legacyRootSelector" in RadioButtonWrapper && RadioButtonWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${RadioButtonWrapper.rootSelector}, .\${RadioButtonWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, RadioButtonWrapper); +}; + +ElementWrapper.prototype.findAllRadioButtons = function(selector) { + return this.findAllComponents(RadioButtonWrapper, selector); +}; +ElementWrapper.prototype.findRadioGroup = function(selector) { + let rootSelector = \`.\${RadioGroupWrapper.rootSelector}\`; + if("legacyRootSelector" in RadioGroupWrapper && RadioGroupWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${RadioGroupWrapper.rootSelector}, .\${RadioGroupWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, RadioGroupWrapper); +}; + +ElementWrapper.prototype.findAllRadioGroups = function(selector) { + return this.findAllComponents(RadioGroupWrapper, selector); +}; +ElementWrapper.prototype.findS3ResourceSelector = function(selector) { + let rootSelector = \`.\${S3ResourceSelectorWrapper.rootSelector}\`; + if("legacyRootSelector" in S3ResourceSelectorWrapper && S3ResourceSelectorWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${S3ResourceSelectorWrapper.rootSelector}, .\${S3ResourceSelectorWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, S3ResourceSelectorWrapper); +}; + +ElementWrapper.prototype.findAllS3ResourceSelectors = function(selector) { + return this.findAllComponents(S3ResourceSelectorWrapper, selector); +}; +ElementWrapper.prototype.findSegmentedControl = function(selector) { + let rootSelector = \`.\${SegmentedControlWrapper.rootSelector}\`; + if("legacyRootSelector" in SegmentedControlWrapper && SegmentedControlWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${SegmentedControlWrapper.rootSelector}, .\${SegmentedControlWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, SegmentedControlWrapper); +}; + +ElementWrapper.prototype.findAllSegmentedControls = function(selector) { + return this.findAllComponents(SegmentedControlWrapper, selector); +}; +ElementWrapper.prototype.findSelect = function(selector) { + let rootSelector = \`.\${SelectWrapper.rootSelector}\`; + if("legacyRootSelector" in SelectWrapper && SelectWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${SelectWrapper.rootSelector}, .\${SelectWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, SelectWrapper); +}; + +ElementWrapper.prototype.findAllSelects = function(selector) { + return this.findAllComponents(SelectWrapper, selector); +}; +ElementWrapper.prototype.findSideNavigation = function(selector) { + let rootSelector = \`.\${SideNavigationWrapper.rootSelector}\`; + if("legacyRootSelector" in SideNavigationWrapper && SideNavigationWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${SideNavigationWrapper.rootSelector}, .\${SideNavigationWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, SideNavigationWrapper); +}; + +ElementWrapper.prototype.findAllSideNavigations = function(selector) { + return this.findAllComponents(SideNavigationWrapper, selector); +}; +ElementWrapper.prototype.findSlider = function(selector) { + let rootSelector = \`.\${SliderWrapper.rootSelector}\`; + if("legacyRootSelector" in SliderWrapper && SliderWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${SliderWrapper.rootSelector}, .\${SliderWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, SliderWrapper); +}; + +ElementWrapper.prototype.findAllSliders = function(selector) { + return this.findAllComponents(SliderWrapper, selector); +}; +ElementWrapper.prototype.findSpaceBetween = function(selector) { + let rootSelector = \`.\${SpaceBetweenWrapper.rootSelector}\`; + if("legacyRootSelector" in SpaceBetweenWrapper && SpaceBetweenWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${SpaceBetweenWrapper.rootSelector}, .\${SpaceBetweenWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, SpaceBetweenWrapper); +}; + +ElementWrapper.prototype.findAllSpaceBetweens = function(selector) { + return this.findAllComponents(SpaceBetweenWrapper, selector); +}; +ElementWrapper.prototype.findSpinner = function(selector) { + let rootSelector = \`.\${SpinnerWrapper.rootSelector}\`; + if("legacyRootSelector" in SpinnerWrapper && SpinnerWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${SpinnerWrapper.rootSelector}, .\${SpinnerWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, SpinnerWrapper); +}; + +ElementWrapper.prototype.findAllSpinners = function(selector) { + return this.findAllComponents(SpinnerWrapper, selector); +}; +ElementWrapper.prototype.findSplitPanel = function(selector) { + let rootSelector = \`.\${SplitPanelWrapper.rootSelector}\`; + if("legacyRootSelector" in SplitPanelWrapper && SplitPanelWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${SplitPanelWrapper.rootSelector}, .\${SplitPanelWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, SplitPanelWrapper); +}; + +ElementWrapper.prototype.findAllSplitPanels = function(selector) { + return this.findAllComponents(SplitPanelWrapper, selector); +}; +ElementWrapper.prototype.findStatusIndicator = function(selector) { + let rootSelector = \`.\${StatusIndicatorWrapper.rootSelector}\`; + if("legacyRootSelector" in StatusIndicatorWrapper && StatusIndicatorWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${StatusIndicatorWrapper.rootSelector}, .\${StatusIndicatorWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, StatusIndicatorWrapper); +}; + +ElementWrapper.prototype.findAllStatusIndicators = function(selector) { + return this.findAllComponents(StatusIndicatorWrapper, selector); +}; +ElementWrapper.prototype.findSteps = function(selector) { + let rootSelector = \`.\${StepsWrapper.rootSelector}\`; + if("legacyRootSelector" in StepsWrapper && StepsWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${StepsWrapper.rootSelector}, .\${StepsWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, StepsWrapper); +}; + +ElementWrapper.prototype.findAllSteps = function(selector) { + return this.findAllComponents(StepsWrapper, selector); +}; +ElementWrapper.prototype.findTable = function(selector) { + let rootSelector = \`.\${TableWrapper.rootSelector}\`; + if("legacyRootSelector" in TableWrapper && TableWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${TableWrapper.rootSelector}, .\${TableWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TableWrapper); +}; + +ElementWrapper.prototype.findAllTables = function(selector) { + return this.findAllComponents(TableWrapper, selector); +}; +ElementWrapper.prototype.findTabs = function(selector) { + let rootSelector = \`.\${TabsWrapper.rootSelector}\`; + if("legacyRootSelector" in TabsWrapper && TabsWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${TabsWrapper.rootSelector}, .\${TabsWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TabsWrapper); +}; + +ElementWrapper.prototype.findAllTabs = function(selector) { + return this.findAllComponents(TabsWrapper, selector); +}; +ElementWrapper.prototype.findTagEditor = function(selector) { + let rootSelector = \`.\${TagEditorWrapper.rootSelector}\`; + if("legacyRootSelector" in TagEditorWrapper && TagEditorWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${TagEditorWrapper.rootSelector}, .\${TagEditorWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TagEditorWrapper); +}; + +ElementWrapper.prototype.findAllTagEditors = function(selector) { + return this.findAllComponents(TagEditorWrapper, selector); +}; +ElementWrapper.prototype.findTextContent = function(selector) { + let rootSelector = \`.\${TextContentWrapper.rootSelector}\`; + if("legacyRootSelector" in TextContentWrapper && TextContentWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${TextContentWrapper.rootSelector}, .\${TextContentWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TextContentWrapper); +}; + +ElementWrapper.prototype.findAllTextContents = function(selector) { + return this.findAllComponents(TextContentWrapper, selector); +}; +ElementWrapper.prototype.findTextFilter = function(selector) { + let rootSelector = \`.\${TextFilterWrapper.rootSelector}\`; + if("legacyRootSelector" in TextFilterWrapper && TextFilterWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${TextFilterWrapper.rootSelector}, .\${TextFilterWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TextFilterWrapper); +}; + +ElementWrapper.prototype.findAllTextFilters = function(selector) { + return this.findAllComponents(TextFilterWrapper, selector); +}; +ElementWrapper.prototype.findTextarea = function(selector) { + let rootSelector = \`.\${TextareaWrapper.rootSelector}\`; + if("legacyRootSelector" in TextareaWrapper && TextareaWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${TextareaWrapper.rootSelector}, .\${TextareaWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TextareaWrapper); +}; + +ElementWrapper.prototype.findAllTextareas = function(selector) { + return this.findAllComponents(TextareaWrapper, selector); +}; +ElementWrapper.prototype.findTiles = function(selector) { + let rootSelector = \`.\${TilesWrapper.rootSelector}\`; + if("legacyRootSelector" in TilesWrapper && TilesWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${TilesWrapper.rootSelector}, .\${TilesWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TilesWrapper); +}; + +ElementWrapper.prototype.findAllTiles = function(selector) { + return this.findAllComponents(TilesWrapper, selector); +}; +ElementWrapper.prototype.findTimeInput = function(selector) { + let rootSelector = \`.\${TimeInputWrapper.rootSelector}\`; + if("legacyRootSelector" in TimeInputWrapper && TimeInputWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${TimeInputWrapper.rootSelector}, .\${TimeInputWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TimeInputWrapper); +}; + +ElementWrapper.prototype.findAllTimeInputs = function(selector) { + return this.findAllComponents(TimeInputWrapper, selector); +}; +ElementWrapper.prototype.findToggle = function(selector) { + let rootSelector = \`.\${ToggleWrapper.rootSelector}\`; + if("legacyRootSelector" in ToggleWrapper && ToggleWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${ToggleWrapper.rootSelector}, .\${ToggleWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ToggleWrapper); +}; + +ElementWrapper.prototype.findAllToggles = function(selector) { + return this.findAllComponents(ToggleWrapper, selector); +}; +ElementWrapper.prototype.findToggleButton = function(selector) { + let rootSelector = \`.\${ToggleButtonWrapper.rootSelector}\`; + if("legacyRootSelector" in ToggleButtonWrapper && ToggleButtonWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${ToggleButtonWrapper.rootSelector}, .\${ToggleButtonWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, ToggleButtonWrapper); +}; + +ElementWrapper.prototype.findAllToggleButtons = function(selector) { + return this.findAllComponents(ToggleButtonWrapper, selector); +}; +ElementWrapper.prototype.findToken = function(selector) { + let rootSelector = \`.\${TokenWrapper.rootSelector}\`; + if("legacyRootSelector" in TokenWrapper && TokenWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${TokenWrapper.rootSelector}, .\${TokenWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TokenWrapper); +}; + +ElementWrapper.prototype.findAllTokens = function(selector) { + return this.findAllComponents(TokenWrapper, selector); +}; +ElementWrapper.prototype.findTokenGroup = function(selector) { + let rootSelector = \`.\${TokenGroupWrapper.rootSelector}\`; + if("legacyRootSelector" in TokenGroupWrapper && TokenGroupWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${TokenGroupWrapper.rootSelector}, .\${TokenGroupWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TokenGroupWrapper); +}; + +ElementWrapper.prototype.findAllTokenGroups = function(selector) { + return this.findAllComponents(TokenGroupWrapper, selector); +}; +ElementWrapper.prototype.findTooltip = function(selector) { + let rootSelector = \`.\${TooltipWrapper.rootSelector}\`; + if("legacyRootSelector" in TooltipWrapper && TooltipWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${TooltipWrapper.rootSelector}, .\${TooltipWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TooltipWrapper); +}; + +ElementWrapper.prototype.findAllTooltips = function(selector) { + return this.findAllComponents(TooltipWrapper, selector); +}; +ElementWrapper.prototype.findTopNavigation = function(selector) { + let rootSelector = \`.\${TopNavigationWrapper.rootSelector}\`; + if("legacyRootSelector" in TopNavigationWrapper && TopNavigationWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${TopNavigationWrapper.rootSelector}, .\${TopNavigationWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TopNavigationWrapper); +}; + +ElementWrapper.prototype.findAllTopNavigations = function(selector) { + return this.findAllComponents(TopNavigationWrapper, selector); +}; +ElementWrapper.prototype.findTreeView = function(selector) { + let rootSelector = \`.\${TreeViewWrapper.rootSelector}\`; + if("legacyRootSelector" in TreeViewWrapper && TreeViewWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${TreeViewWrapper.rootSelector}, .\${TreeViewWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TreeViewWrapper); +}; + +ElementWrapper.prototype.findAllTreeViews = function(selector) { + return this.findAllComponents(TreeViewWrapper, selector); +}; +ElementWrapper.prototype.findTutorialPanel = function(selector) { + let rootSelector = \`.\${TutorialPanelWrapper.rootSelector}\`; + if("legacyRootSelector" in TutorialPanelWrapper && TutorialPanelWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${TutorialPanelWrapper.rootSelector}, .\${TutorialPanelWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, TutorialPanelWrapper); +}; + +ElementWrapper.prototype.findAllTutorialPanels = function(selector) { + return this.findAllComponents(TutorialPanelWrapper, selector); +}; +ElementWrapper.prototype.findWizard = function(selector) { + let rootSelector = \`.\${WizardWrapper.rootSelector}\`; + if("legacyRootSelector" in WizardWrapper && WizardWrapper.legacyRootSelector){ + rootSelector = \`:is(.\${WizardWrapper.rootSelector}, .\${WizardWrapper.legacyRootSelector})\`; + } + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findComponent(selector ? appendSelector(selector, rootSelector) : rootSelector, WizardWrapper); +}; + +ElementWrapper.prototype.findAllWizards = function(selector) { + return this.findAllComponents(WizardWrapper, selector); +}; + +ElementWrapper.prototype.findClosestActionCard = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(ActionCardWrapper); +}; +ElementWrapper.prototype.findClosestAlert = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(AlertWrapper); +}; +ElementWrapper.prototype.findClosestAnchorNavigation = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(AnchorNavigationWrapper); +}; +ElementWrapper.prototype.findClosestAnnotation = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(AnnotationWrapper); +}; +ElementWrapper.prototype.findClosestAppLayout = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(AppLayoutWrapper); +}; +ElementWrapper.prototype.findClosestAppLayoutToolbar = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(AppLayoutToolbarWrapper); +}; +ElementWrapper.prototype.findClosestAreaChart = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(AreaChartWrapper); +}; +ElementWrapper.prototype.findClosestAttributeEditor = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(AttributeEditorWrapper); +}; +ElementWrapper.prototype.findClosestAutosuggest = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(AutosuggestWrapper); +}; +ElementWrapper.prototype.findClosestBadge = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(BadgeWrapper); +}; +ElementWrapper.prototype.findClosestBarChart = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(BarChartWrapper); +}; +ElementWrapper.prototype.findClosestBox = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(BoxWrapper); +}; +ElementWrapper.prototype.findClosestBreadcrumbGroup = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(BreadcrumbGroupWrapper); +}; +ElementWrapper.prototype.findClosestButton = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(ButtonWrapper); +}; +ElementWrapper.prototype.findClosestButtonDropdown = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(ButtonDropdownWrapper); +}; +ElementWrapper.prototype.findClosestButtonGroup = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(ButtonGroupWrapper); +}; +ElementWrapper.prototype.findClosestCalendar = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(CalendarWrapper); +}; +ElementWrapper.prototype.findClosestCards = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(CardsWrapper); +}; +ElementWrapper.prototype.findClosestCheckbox = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(CheckboxWrapper); +}; +ElementWrapper.prototype.findClosestCodeEditor = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(CodeEditorWrapper); +}; +ElementWrapper.prototype.findClosestCollectionPreferences = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(CollectionPreferencesWrapper); +}; +ElementWrapper.prototype.findClosestColumnLayout = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(ColumnLayoutWrapper); +}; +ElementWrapper.prototype.findClosestContainer = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(ContainerWrapper); +}; +ElementWrapper.prototype.findClosestContentLayout = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(ContentLayoutWrapper); +}; +ElementWrapper.prototype.findClosestCopyToClipboard = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(CopyToClipboardWrapper); +}; +ElementWrapper.prototype.findClosestDateInput = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(DateInputWrapper); +}; +ElementWrapper.prototype.findClosestDatePicker = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(DatePickerWrapper); +}; +ElementWrapper.prototype.findClosestDateRangePicker = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(DateRangePickerWrapper); +}; +ElementWrapper.prototype.findClosestDrawer = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(DrawerWrapper); +}; +ElementWrapper.prototype.findClosestDropdown = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(DropdownWrapper); +}; +ElementWrapper.prototype.findClosestErrorBoundary = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(ErrorBoundaryWrapper); +}; +ElementWrapper.prototype.findClosestExpandableSection = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(ExpandableSectionWrapper); +}; +ElementWrapper.prototype.findClosestFileDropzone = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(FileDropzoneWrapper); +}; +ElementWrapper.prototype.findClosestFileInput = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(FileInputWrapper); +}; +ElementWrapper.prototype.findClosestFileTokenGroup = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(FileTokenGroupWrapper); +}; +ElementWrapper.prototype.findClosestFileUpload = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(FileUploadWrapper); +}; +ElementWrapper.prototype.findClosestFlashbar = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(FlashbarWrapper); +}; +ElementWrapper.prototype.findClosestForm = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(FormWrapper); +}; +ElementWrapper.prototype.findClosestFormField = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(FormFieldWrapper); +}; +ElementWrapper.prototype.findClosestGrid = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(GridWrapper); +}; +ElementWrapper.prototype.findClosestHeader = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(HeaderWrapper); +}; +ElementWrapper.prototype.findClosestHelpPanel = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(HelpPanelWrapper); +}; +ElementWrapper.prototype.findClosestHotspot = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(HotspotWrapper); +}; +ElementWrapper.prototype.findClosestIcon = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(IconWrapper); +}; +ElementWrapper.prototype.findClosestInput = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(InputWrapper); +}; +ElementWrapper.prototype.findClosestItemCard = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(ItemCardWrapper); +}; +ElementWrapper.prototype.findClosestKeyValuePairs = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(KeyValuePairsWrapper); +}; +ElementWrapper.prototype.findClosestLineChart = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(LineChartWrapper); +}; +ElementWrapper.prototype.findClosestLink = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(LinkWrapper); +}; +ElementWrapper.prototype.findClosestList = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(ListWrapper); +}; +ElementWrapper.prototype.findClosestLiveRegion = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(LiveRegionWrapper); +}; +ElementWrapper.prototype.findClosestMixedLineBarChart = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(MixedLineBarChartWrapper); +}; +ElementWrapper.prototype.findClosestModal = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(ModalWrapper); +}; +ElementWrapper.prototype.findClosestMultiselect = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(MultiselectWrapper); +}; +ElementWrapper.prototype.findClosestNavigableGroup = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(NavigableGroupWrapper); +}; +ElementWrapper.prototype.findClosestPagination = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(PaginationWrapper); +}; +ElementWrapper.prototype.findClosestPanelLayout = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(PanelLayoutWrapper); +}; +ElementWrapper.prototype.findClosestPieChart = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(PieChartWrapper); +}; +ElementWrapper.prototype.findClosestPopover = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(PopoverWrapper); +}; +ElementWrapper.prototype.findClosestProgressBar = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(ProgressBarWrapper); +}; +ElementWrapper.prototype.findClosestPromptInput = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(PromptInputWrapper); +}; +ElementWrapper.prototype.findClosestPropertyFilter = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(PropertyFilterWrapper); +}; +ElementWrapper.prototype.findClosestRadioButton = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(RadioButtonWrapper); +}; +ElementWrapper.prototype.findClosestRadioGroup = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(RadioGroupWrapper); +}; +ElementWrapper.prototype.findClosestS3ResourceSelector = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(S3ResourceSelectorWrapper); +}; +ElementWrapper.prototype.findClosestSegmentedControl = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(SegmentedControlWrapper); +}; +ElementWrapper.prototype.findClosestSelect = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(SelectWrapper); +}; +ElementWrapper.prototype.findClosestSideNavigation = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(SideNavigationWrapper); +}; +ElementWrapper.prototype.findClosestSlider = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(SliderWrapper); +}; +ElementWrapper.prototype.findClosestSpaceBetween = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(SpaceBetweenWrapper); +}; +ElementWrapper.prototype.findClosestSpinner = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(SpinnerWrapper); +}; +ElementWrapper.prototype.findClosestSplitPanel = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(SplitPanelWrapper); +}; +ElementWrapper.prototype.findClosestStatusIndicator = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(StatusIndicatorWrapper); +}; +ElementWrapper.prototype.findClosestSteps = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(StepsWrapper); +}; +ElementWrapper.prototype.findClosestTable = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(TableWrapper); +}; +ElementWrapper.prototype.findClosestTabs = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(TabsWrapper); +}; +ElementWrapper.prototype.findClosestTagEditor = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(TagEditorWrapper); +}; +ElementWrapper.prototype.findClosestTextContent = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(TextContentWrapper); +}; +ElementWrapper.prototype.findClosestTextFilter = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(TextFilterWrapper); +}; +ElementWrapper.prototype.findClosestTextarea = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(TextareaWrapper); +}; +ElementWrapper.prototype.findClosestTiles = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(TilesWrapper); +}; +ElementWrapper.prototype.findClosestTimeInput = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(TimeInputWrapper); +}; +ElementWrapper.prototype.findClosestToggle = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(ToggleWrapper); +}; +ElementWrapper.prototype.findClosestToggleButton = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(ToggleButtonWrapper); +}; +ElementWrapper.prototype.findClosestToken = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(TokenWrapper); +}; +ElementWrapper.prototype.findClosestTokenGroup = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(TokenGroupWrapper); +}; +ElementWrapper.prototype.findClosestTooltip = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(TooltipWrapper); +}; +ElementWrapper.prototype.findClosestTopNavigation = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(TopNavigationWrapper); +}; +ElementWrapper.prototype.findClosestTreeView = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(TreeViewWrapper); +}; +ElementWrapper.prototype.findClosestTutorialPanel = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(TutorialPanelWrapper); +}; +ElementWrapper.prototype.findClosestWizard = function() { + // casting to 'any' is needed to avoid this issue with generics + // https://github.com/microsoft/TypeScript/issues/29132 + return (this as any).findClosestComponent(WizardWrapper); +}; + export default function wrapper(root: Element = document.body) { + if (document && document.body && !document.body.contains(root)) { + console.warn('[AwsUi] [test-utils] provided element is not part of the document body, interactions may work incorrectly') + }; return new ElementWrapper(root); } " From 4aaf9f4126b3278a4d6dd2f662e1de9181452932 Mon Sep 17 00:00:00 2001 From: Nathnael Dereje Date: Fri, 17 Apr 2026 11:58:45 +0200 Subject: [PATCH 11/16] chore: Update snapshots --- .../__snapshots__/documenter.test.ts.snap | 59 +++++++++++++++---- 1 file changed, 46 insertions(+), 13 deletions(-) diff --git a/src/__tests__/snapshot-tests/__snapshots__/documenter.test.ts.snap b/src/__tests__/snapshot-tests/__snapshots__/documenter.test.ts.snap index 9884194e3f..a98fba3d35 100644 --- a/src/__tests__/snapshot-tests/__snapshots__/documenter.test.ts.snap +++ b/src/__tests__/snapshot-tests/__snapshots__/documenter.test.ts.snap @@ -26653,12 +26653,15 @@ The event \`detail\` contains the new state for \`selectedItems\`.", }, { "cancelable": false, - "description": "Fired when a user activates a selection controller item from the dropdown menu. -The event detail contains the \`id\` of the activated item and, for checkbox items, -the new \`checked\` state. + "description": "Called when a user clicks a selection controller item in the dropdown. -The table does not automatically modify \`selectedItems\`. Use this event -to implement custom selection logic and update \`selectedItems\` accordingly.", +The event \`detail\` contains the \`id\` of the clicked item. For checkbox items, +it also includes the new \`checked\` state after the toggle. + +The table does not automatically change \`selectedItems\` when a selection +controller item is clicked. Use this event handler to implement your own +selection logic (for example, selecting all items that match a filter condition) +and update \`selectedItems\` accordingly.", "detailInlineType": { "name": "TableProps.SelectionControllerItemClickDetail", "properties": [ @@ -27506,16 +27509,35 @@ the table items array is empty.", "type": "ReadonlyArray", }, { - "description": "Specifies the items displayed in the selection controller dropdown menu. -The selection controller renders as a small dropdown trigger adjacent to the -select-all checkbox when \`selectionType\` is \`"multi"\`. + "description": "Specifies the items displayed in the selection controller dropdown. + +The selection controller adds a small dropdown trigger next to the "select all" +checkbox in the table header. It provides quick access to predefined selection +actions, such as selecting items by attribute (for example, by status or type). + +Each entry in the array is either a \`SelectionControllerItem\` or a \`SelectionControllerItemGroup\`. + +SelectionControllerItem has the following properties: +* \`id\` (string) - A unique identifier for the selection action. +* \`text\` (string) - The display label for the selection action. +* \`itemType\` (optional, \`'checkbox'\`) - Set to \`'checkbox'\` to render the item as a toggleable checkbox. +* \`checked\` (optional, boolean) - Whether the checkbox item is checked. Only applicable when \`itemType\` is \`'checkbox'\`. +* \`disabled\` (optional, boolean) - When \`true\`, the item is rendered in a disabled state and cannot be activated. +* \`disabledReason\` (optional, string) - A reason displayed when hovering over a disabled item. +* \`secondaryText\` (optional, string) - Secondary descriptive text displayed below the item text. +* \`ariaLabel\` (optional, string) - An accessible label for the item. +* \`iconName\` (optional, string) - An icon name displayed before the item text. +* \`iconSvg\` (optional, ReactNode) - An icon SVG displayed before the item text. -Supports the same item types as ButtonDropdown: plain items, checkbox items, -and grouped items. See ButtonDropdownProps.Items for the full type. +SelectionControllerItemGroup has the following properties: +* \`text\` (optional, string) - A display label for the group header. +* \`items\` (SelectionControllerItem[]) - The items within this group. +* \`disabled\` (optional, boolean) - When \`true\`, the group is rendered in a disabled state. -The selection controller is not rendered when \`selectionType\` is \`"single"\`, -when \`expandableRows\` with \`groupSelection\` is configured, or when this -prop is undefined or an empty array.", +The selection controller is only rendered when \`selectionType\` is \`"multi"\` and +this property contains at least one item. It is not rendered when \`selectionType\` +is \`"single"\`, when \`expandableRows\` with group selection is configured, or when +this property is \`undefined\` or an empty array.", "name": "selectionControllerItems", "optional": true, "type": "ReadonlyArray", @@ -27766,6 +27788,17 @@ multiple lines instead of being truncated with an ellipsis.", "isDefault": false, "name": "preferences", }, + { + "description": "Displays a notification banner between the table header and the table body. +Use this slot to render contextual messages related to the current selection state, +such as cross-page selection prompts (for example, "12 items selected on this page. +Select 85 items across the table.") or confirmation messages after selecting all items. + +The content is rendered inside the table container, below the filter and above the +column headers. It is only visible when this property is not \`undefined\`.", + "isDefault": false, + "name": "selectionNotification", + }, ], "releaseStatus": "stable", } From c3d1f85105eb2228067fe1f1f2877b0b0f7667d7 Mon Sep 17 00:00:00 2001 From: Nathnael Dereje Date: Fri, 17 Apr 2026 13:59:25 +0200 Subject: [PATCH 12/16] fix: Demo page fixes --- pages/table/selection-controller.page.tsx | 44 +++++++++++++++++------ 1 file changed, 34 insertions(+), 10 deletions(-) diff --git a/pages/table/selection-controller.page.tsx b/pages/table/selection-controller.page.tsx index b401bac89c..f4a8cf3d42 100644 --- a/pages/table/selection-controller.page.tsx +++ b/pages/table/selection-controller.page.tsx @@ -110,6 +110,7 @@ export default function SelectionControllerPage() { function FunctionsTable() { const [preferences, setPreferences] = useState(defaultPreferences); + const [notificationDismissed, setNotificationDismissed] = useState(false); const { items, actions, filteredItemsCount, crossPageSelectionState, collectionProps, filterProps, paginationProps } = useCollection(allFunctions, { @@ -183,19 +184,22 @@ function FunctionsTable() { }, ]; }, - onSelectionControllerItemClick: (detail, visibleItems, hookActions) => { + onSelectionControllerItemClick: (detail, visibleItems, hookActions, allItems) => { + setNotificationDismissed(false); const pred = predicates[detail.id]; if (!pred) { return; } const current = (collectionProps.selectedItems ?? []) as LambdaFunction[]; const matching = visibleItems.filter(pred) as LambdaFunction[]; + const allMatching = (allItems as LambdaFunction[]).filter(pred); if (detail.checked) { const existing = new Set(current.map(s => s.name)); hookActions.setSelectedItems([...current, ...matching.filter(m => !existing.has(m.name))]); } else { hookActions.setSelectedItems(current.filter(s => !matching.some(m => m.name === s.name))); } + return { allMatchingItems: allMatching }; }, }, }); @@ -206,21 +210,40 @@ function FunctionsTable() { // Cross-page selection notification — state computed by the hook let selectionNotification: React.ReactNode = undefined; - if (crossPageSelectionState?.type === 'all-selected') { + if (!notificationDismissed && crossPageSelectionState?.type === 'all-selected') { selectionNotification = ( - actions.setSelectedItems([])}> + setNotificationDismissed(true)}> {crossPageSelectionState.totalCount} items are selected across the table.{' '} - + . + + // setNotificationDismissed(true)}> + // {crossPageSelectionState.totalCount} items are selected across the table.{' '} + // {' '} + // ); - } else if (crossPageSelectionState?.type === 'page-selected') { + } else if (!notificationDismissed && crossPageSelectionState?.type === 'page-selected') { selectionNotification = ( - actions.setSelectedItems([])}> - {crossPageSelectionState.pageCount} items selected on this page.{' '} - {' '} across the table. @@ -266,6 +289,7 @@ function FunctionsTable() { tableLabel: 'Functions', selectionControllerLabel: 'Function selection options', }} + selectionType="multi" pagination={} filter={ Date: Fri, 17 Apr 2026 14:08:44 +0200 Subject: [PATCH 13/16] chore: Remove commented code --- pages/table/selection-controller.page.tsx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pages/table/selection-controller.page.tsx b/pages/table/selection-controller.page.tsx index f4a8cf3d42..e0776146ba 100644 --- a/pages/table/selection-controller.page.tsx +++ b/pages/table/selection-controller.page.tsx @@ -224,13 +224,6 @@ function FunctionsTable() { . - - // setNotificationDismissed(true)}> - // {crossPageSelectionState.totalCount} items are selected across the table.{' '} - // {' '} - // ); } else if (!notificationDismissed && crossPageSelectionState?.type === 'page-selected') { selectionNotification = ( From 1a7d93c61077a93bcb56bb192fdd046395635811 Mon Sep 17 00:00:00 2001 From: Nathnael Dereje Date: Fri, 17 Apr 2026 15:23:57 +0200 Subject: [PATCH 14/16] fix: Remove padding --- src/table/styles.scss | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/table/styles.scss b/src/table/styles.scss index 57239eb87e..f60e393e77 100644 --- a/src/table/styles.scss +++ b/src/table/styles.scss @@ -193,13 +193,8 @@ filter search icon. } .selection-notification { - padding-inline: awsui.$space-table-horizontal; - padding-block-end: awsui.$space-scaled-xs; - - &.variant-embedded, - &.variant-borderless { - padding-inline: 0; - } + padding-inline: 0; + padding-block: 0; } .footer-wrapper { From 72dd526b0b9c6ebd83f4e582b6e9349dc9b1f904 Mon Sep 17 00:00:00 2001 From: Nathnael Dereje Date: Mon, 27 Apr 2026 18:12:32 +0200 Subject: [PATCH 15/16] chore: Remove the selection alert notification slot --- pages/table/selection-controller.page.tsx | 71 ++++++++--------------- src/table/interfaces.tsx | 21 ------- src/table/internal.tsx | 6 -- src/table/styles.scss | 5 -- 4 files changed, 25 insertions(+), 78 deletions(-) diff --git a/pages/table/selection-controller.page.tsx b/pages/table/selection-controller.page.tsx index e0776146ba..c2ac0a27bc 100644 --- a/pages/table/selection-controller.page.tsx +++ b/pages/table/selection-controller.page.tsx @@ -4,7 +4,6 @@ import React, { useState } from 'react'; import { useCollection } from '@cloudscape-design/collection-hooks'; -import Alert from '~components/alert'; import Box from '~components/box'; import Button from '~components/button'; import ButtonDropdown from '~components/button-dropdown'; @@ -110,10 +109,10 @@ export default function SelectionControllerPage() { function FunctionsTable() { const [preferences, setPreferences] = useState(defaultPreferences); - const [notificationDismissed, setNotificationDismissed] = useState(false); - const { items, actions, filteredItemsCount, crossPageSelectionState, collectionProps, filterProps, paginationProps } = - useCollection(allFunctions, { + const { items, actions, filteredItemsCount, collectionProps, filterProps, paginationProps } = useCollection( + allFunctions, + { filtering: { empty: Create function} />, noMatch: actions.setFiltering('')} />, @@ -122,7 +121,6 @@ function FunctionsTable() { sorting: { defaultState: { sortingColumn: columnDefinitions[3], isDescending: false } }, selection: { trackBy: 'name', - crossPageSelection: {}, selectionControllerItems: (visibleItems, selectedItems) => { const allSelected = (pred: (f: LambdaFunction) => boolean) => { const m = visibleItems.filter(pred); @@ -131,7 +129,7 @@ function FunctionsTable() { const has = (pred: (f: LambdaFunction) => boolean) => visibleItems.some(pred); return [ { - text: 'By runtime', + text: 'By runtime (current page)', items: [ { id: 'nodejs', @@ -163,6 +161,13 @@ function FunctionsTable() { }, ], }, + { + text: 'By runtime (across pages)', + items: [ + { id: 'all-nodejs', text: 'All Node.js' }, + { id: 'all-python', text: 'All Python' }, + ], + }, { text: 'By package type', items: [ @@ -185,68 +190,42 @@ function FunctionsTable() { ]; }, onSelectionControllerItemClick: (detail, visibleItems, hookActions, allItems) => { - setNotificationDismissed(false); + // "Across pages" items — select from allItems + const allPagePredicates: Record boolean> = { + 'all-nodejs': predicates.nodejs, + 'all-python': predicates.python, + }; + const allPagePred = allPagePredicates[detail.id]; + if (allPagePred) { + hookActions.setSelectedItems((allItems as LambdaFunction[]).filter(allPagePred)); + return; + } + + // "Current page" checkbox items — toggle from visibleItems const pred = predicates[detail.id]; if (!pred) { return; } const current = (collectionProps.selectedItems ?? []) as LambdaFunction[]; const matching = visibleItems.filter(pred) as LambdaFunction[]; - const allMatching = (allItems as LambdaFunction[]).filter(pred); if (detail.checked) { const existing = new Set(current.map(s => s.name)); hookActions.setSelectedItems([...current, ...matching.filter(m => !existing.has(m.name))]); } else { hookActions.setSelectedItems(current.filter(s => !matching.some(m => m.name === s.name))); } - return { allMatchingItems: allMatching }; }, }, - }); + } + ); const selectedItems = collectionProps.selectedItems ?? []; const singleSelected = selectedItems.length === 1; const hasSelection = selectedItems.length > 0; - // Cross-page selection notification — state computed by the hook - let selectionNotification: React.ReactNode = undefined; - if (!notificationDismissed && crossPageSelectionState?.type === 'all-selected') { - selectionNotification = ( - setNotificationDismissed(true)}> - {crossPageSelectionState.totalCount} items are selected across the table.{' '} - - . - - ); - } else if (!notificationDismissed && crossPageSelectionState?.type === 'page-selected') { - selectionNotification = ( - setNotificationDismissed(true)}> - {selectedItems.length} items selected on this page. {crossPageSelectionState.pageCount} items selected on this - page.{' '} - {' '} - across the table. - - ); - } - return ( {...collectionProps} - selectionNotification={selectionNotification} header={
extends BaseComponentProps { */ empty?: React.ReactNode; - /** - * Displays a notification banner between the table header and the table body. - * Use this slot to render contextual messages related to the current selection state, - * such as cross-page selection prompts (for example, "12 items selected on this page. - * Select 85 items across the table.") or confirmation messages after selecting all items. - * - * The content is rendered inside the table container, below the filter and above the - * column headers. It is only visible when this property is not `undefined`. - */ - selectionNotification?: React.ReactNode; - /** * Specifies the data that's displayed in the table rows. Each item contains the data for one row. The display of a row is handled * by the `cell` property of each column definition in the `columnDefinitions` property. @@ -717,25 +706,15 @@ export namespace TableProps { } export interface SelectionControllerItem { - /** Unique identifier for the selection action. */ id: string; - /** Display label for the selection action. */ text: string; - /** Set to `'checkbox'` to render the item as a toggleable checkbox. */ itemType?: 'checkbox'; - /** Whether the checkbox item is checked. Only applicable when `itemType` is `'checkbox'`. */ checked?: boolean; - /** When true, the item is rendered in a disabled state and cannot be activated. */ disabled?: boolean; - /** Optional reason displayed when hovering over a disabled item. */ disabledReason?: string; - /** Optional secondary descriptive text displayed below the item text. */ secondaryText?: string; - /** Optional accessible label for the item. */ ariaLabel?: string; - /** Optional icon name displayed before the item text. */ iconName?: string; - /** Optional icon SVG displayed before the item text. */ iconSvg?: React.ReactNode; } diff --git a/src/table/internal.tsx b/src/table/internal.tsx index 585b15f535..aa70d10ff2 100644 --- a/src/table/internal.tsx +++ b/src/table/internal.tsx @@ -150,7 +150,6 @@ const InternalTable = React.forwardRef( cellVerticalAlign, selectionControllerItems, onSelectionControllerItemClick, - selectionNotification, __funnelSubStepProps, ...rest }: InternalTableProps, @@ -512,11 +511,6 @@ const InternalTable = React.forwardRef( )} - {selectionNotification && ( -
- {selectionNotification} -
- )} {stickyHeader && ( Date: Tue, 28 Apr 2026 12:33:29 +0200 Subject: [PATCH 16/16] chore: Make items single selectible --- src/table/interfaces.tsx | 12 +++++++++--- .../selection/selection-controller-dropdown.tsx | 17 +++++------------ 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/src/table/interfaces.tsx b/src/table/interfaces.tsx index 8ad9e0f248..9f5bdcce18 100644 --- a/src/table/interfaces.tsx +++ b/src/table/interfaces.tsx @@ -706,15 +706,23 @@ export namespace TableProps { } export interface SelectionControllerItem { + /** Unique identifier for the selection action. */ id: string; + /** Display label for the selection action. */ text: string; - itemType?: 'checkbox'; + /** Whether this item is the currently active selection criteria. */ checked?: boolean; + /** When true, the item is rendered in a disabled state and cannot be activated. */ disabled?: boolean; + /** Optional reason displayed when hovering over a disabled item. */ disabledReason?: string; + /** Optional secondary descriptive text displayed below the item text. */ secondaryText?: string; + /** Optional accessible label for the item. */ ariaLabel?: string; + /** Optional icon name displayed before the item text. */ iconName?: string; + /** Optional icon SVG displayed before the item text. */ iconSvg?: React.ReactNode; } @@ -730,8 +738,6 @@ export namespace TableProps { export interface SelectionControllerItemClickDetail { /** The `id` of the activated item. */ id: string; - /** For checkbox items, the new checked state after the click. */ - checked?: boolean; } } diff --git a/src/table/selection/selection-controller-dropdown.tsx b/src/table/selection/selection-controller-dropdown.tsx index 637f5858ec..27c1585a9f 100644 --- a/src/table/selection/selection-controller-dropdown.tsx +++ b/src/table/selection/selection-controller-dropdown.tsx @@ -35,12 +35,12 @@ function isItemGroup( function mapItem( item: TableProps.SelectionControllerItem ): ButtonDropdownProps.Item | ButtonDropdownProps.CheckboxItem { - if (item.itemType === 'checkbox') { + if (item.checked !== undefined) { return { id: item.id, text: item.text, itemType: 'checkbox', - checked: item.checked ?? false, + checked: item.checked, disabled: item.disabled, disabledReason: item.disabledReason, secondaryText: item.secondaryText, @@ -86,20 +86,13 @@ export default function SelectionControllerDropdown({ return ( onItemClick({ id: detail.id, checked: detail.checked })} + onItemClick={({ detail }) => onItemClick({ id: detail.id })} ariaLabel={ariaLabel} disabled={disabled} variant="inline-icon" expandToViewport={true} expandableGroups={false} - customTriggerBuilder={({ - triggerRef, - testUtilsClass, - ariaExpanded, - onClick, - // isOpen, ... we can use it if we want to display diff/t icon based on open state latr - disabled: triggerDisabled, - }) => ( + customTriggerBuilder={({ triggerRef, testUtilsClass, ariaExpanded, onClick, disabled: triggerDisabled }) => ( )} />