@cloudscape-design/components 3.0.858 → 3.0.860

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/collection-preferences/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\nimport { BaseModalProps } from '../modal/interfaces';\n\nexport interface CollectionPreferencesProps<CustomPreferenceType = any> extends BaseComponentProps, BaseModalProps {\n /**\n * Specifies the title of the preferences modal dialog. It is also used as an `aria-label` for the trigger button.\n * @i18n\n */\n title?: string;\n /**\n * Label of the confirm button in the modal footer.\n * @i18n\n */\n confirmLabel?: string;\n /**\n * Label of the cancel button in the modal footer.\n * @i18n\n */\n cancelLabel?: string;\n /**\n * Determines whether the preferences trigger button is disabled.\n */\n disabled?: boolean;\n /**\n * Configures the built-in \"page size selection\" preference.\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `title` (string) - Specifies the text displayed at the top of the preference.\n * - `options` - Specifies an array of options for page size selection. Each entry contains:\n * - `value` (number) - The value for the radio button (that is, the number of items per page).\n * - `label` (string) - A label for the radio button (for example, \"10 resources\").\n *\n * You must set the current value in the `preferences.pageSize` property.\n * @i18n\n */\n pageSizePreference?: CollectionPreferencesProps.PageSizePreference;\n /**\n * Configures the built-in \"wrap lines\" preference.\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `label` (string) - Specifies the label for the option checkbox.\n * - `description` (string) - Specifies the text displayed below the checkbox label.\n *\n * You must set the current value in the `preferences.wrapLines` property.\n * @i18n\n */\n wrapLinesPreference?: CollectionPreferencesProps.WrapLinesPreference;\n /**\n * Configures the built-in \"striped rows\" preference.\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `label` (string) - Specifies the label for the option checkbox.\n * - `description` (string) - Specifies the text displayed below the checkbox label.\n *\n * You must set the current value in the `preferences.stripedRows` property.\n * @i18n\n */\n stripedRowsPreference?: CollectionPreferencesProps.StripedRowsPreference;\n /**\n * Configures the content density preference (Comfortable / Compact).\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `label` (string) - Specifies the label for the option checkbox.\n * - `description` (string) - Specifies the text displayed below the checkbox label.\n *\n * You must set the current value in the `preferences.contentDensity` property.\n * @i18n\n */\n contentDensityPreference?: CollectionPreferencesProps.ContentDensityPreference;\n /**\n * Configures the sticky columns preference that can be set for both left and right columns.\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `label` (string) - Specifies the label for each radio group.\n * - `description` (string) - Specifies the text displayed below each radio group label.\n *\n * You must set the current value in the `preferences.stickyColumns` property.\n */\n stickyColumnsPreference?: CollectionPreferencesProps.StickyColumnsPreference;\n /**\n * Configures the built-in content display preference for order and visibility of the table columns.\n *\n * Recommended for table and not applicable for cards.\n *\n * Cannot be used together with `visibleContentPreference`.\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `title` (string) - Specifies the text displayed at the top of the preference.\n * - `description` (string) - Specifies the description displayed below the title.\n * - `options` - Specifies an array of options for reordering and visible content selection.\n * - `enableColumnFiltering` (boolean) - Adds a columns filter.\n * - `liveAnnouncementDndStarted` ((position: number, total: number) => string) - (Optional) Adds a message to be announced by screen readers when an option is picked.\n * - `liveAnnouncementDndDiscarded` (string) - (Optional) Adds a message to be announced by screen readers when a reordering action is canceled.\n * - `liveAnnouncementDndItemReordered` ((initialPosition: number, currentPosition: number, total: number) => string) - (Optional) Adds a message to be announced by screen readers when an item is being moved.\n * - `liveAnnouncementDndItemCommitted` ((initialPosition: number, finalPosition: number, total: number) => string) - (Optional) Adds a message to be announced by screen readers when a reordering action is committed.\n * - `dragHandleAriaDescription` (string) - (Optional) Adds an ARIA description for the drag handle.\n * - `dragHandleAriaLabel` (string) - (Optional) Adds an ARIA label for the drag handle.\n *\n * Each option contains the following:\n * - `id` (string) - Corresponds to a table column `id`.\n * - `label` (string) - Specifies a short description of the content.\n * - `alwaysVisible` (boolean) - (Optional) Determines whether the visibility is always on and therefore cannot be toggled. This is set to `false` by default.\n *\n * You must provide an ordered list of the items to display in the `preferences.contentDisplay` property.\n * @i18n\n */\n contentDisplayPreference?: CollectionPreferencesProps.ContentDisplayPreference;\n /**\n * Configures the built-in visible sections preference for cards or visible columns for table.\n *\n * Recommended for cards. For table use `contentDisplayPreference` instead.\n *\n * Cannot be used together with `contentDisplayPreference`.\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `title` (string) - Specifies the text displayed at the top of the preference.\n * - `options` - Specifies an array of groups of options for visible content selection.\n *\n * Each group of options contains the following:\n * - `label` (string) - The text to display as a title for the options group.\n * - `options` - Specifies an array of options in the group. Each option contains the following:\n * - `id` (string) - Corresponds to a column `id` for tables or to a section `id` for cards.\n * - `label` (string) - Specifies a short description of the content.\n * - `editable` (boolean) - (Optional) Determines whether the user is able to toggle its visibility. This is `true` by default.\n *\n * You must set the current list of visible content `id`s in the `preferences.visibleContent` property.\n *\n * **Deprecated** in table, replaced by `contentDisplayPreference`.\n */\n visibleContentPreference?: CollectionPreferencesProps.VisibleContentPreference;\n /**\n * Specifies the current preference values. This includes both built-in and custom preferences.\n *\n * It contains the following:\n * - `pageSize` (number) - (Optional)\n * - `wrapLines` (boolean) - (Optional)\n * - `contentDisplay` (ReadonlyArray<ContentDisplayItem>) - (Optional) Specifies the list of content and their visibility. The order of the elements influences the display.\n * - `visibleContent` (ReadonlyArray<string>) - Specifies the list of visible content `id`s. The order of the `id`s does not influence the display. If the `contentDisplay` property is set, this property is ignored.\n * - `custom` (CustomPreferenceType) - Specifies the value for your custom preference.\n */\n preferences?: CollectionPreferencesProps.Preferences<CustomPreferenceType>;\n /**\n * Configures custom preferences. The function receives two parameters:\n *\n * - `customValue` (CustomPreferenceType) - Current value for your custom preference. It is initialized using the value you provide in `preferences.custom`.\n * - `setCustomValue` - A function that is called to notify a state update.\n *\n * It should return the content of your custom preference, for example:\n * ```\n * (customValue, setCustomValue) => (\n * <Checkbox checked={customValue} onChange={({ detail }) => setCustomValue(detail.checked)} />\n * )\n * ```\n *\n * When the user confirms the changes, the new value is passed in the `detail.custom` property of the `onConfirm` listener.\n * When the user cancels the changes, the `customValue` is reset to the one present in `preferences.custom` property.\n *\n * **Display**\n * - If any of the built-in preferences (`pageSizePreference`, `wrapLinesPreference`, or `visibleContentPreference`) are displayed,\n * the custom content is displayed at the bottom of the left column within the modal.\n * - If no built-in preference is displayed, the custom content occupies the whole modal.\n */\n customPreference?: (\n customValue: CustomPreferenceType,\n setCustomValue: React.Dispatch<CustomPreferenceType>\n ) => React.ReactNode;\n /**\n * Called when the user cancels a preference change using the cancel button in the modal footer or by dismissing the modal.\n */\n onCancel?: NonCancelableEventHandler;\n /**\n * Called when the user confirms a preference change using the confirm button in the modal footer.\n *\n * The event `detail` contains the following:\n * - `contentDensity` (boolean) - (Optional) The current content density preference value. Available only if you specify the `contentDensityPreference` property.\n * - `contentDisplay` (ReadonlyArray<ContentDisplayItem>) - (Optional) The ordered list of table columns and their visibility. Available only if you specify the `contentDisplayPreference` property.\n * - `custom` (CustomPreferenceType) - (Optional) The selected value for your custom preference.\n * - `pageSize` (number) - (Optional) The selected page size value. Available only if you specify the `pageSizePreference` property.\n * - `stickyColumns` (CollectionPreferencesProps.StickyColumns) - (Optional) The current sticky columns preference value. Available only if you specify the `stickyColumnsPreference` property.\n * - `stripedRows` (boolean) - (Optional) The current striped rows preference value. Available only if you specify the `stripedRowsPreference` property.\n * - `visibleContent` (ReadonlyArray<string>) - (Optional) The list of selected content `id`s. Available only if you specify the `visibleContentPreference` property.\n * - `wrapLines` (boolean) - (Optional) The current line wrapping preference value. Available only if you specify the `wrapLinesPreference` property.\n *\n * The values for all configured preferences are present even if the user didn't change their values.\n */\n onConfirm?: NonCancelableEventHandler<CollectionPreferencesProps.Preferences<CustomPreferenceType>>;\n}\n\nexport namespace CollectionPreferencesProps {\n export interface Preferences<CustomPreferenceType = any> {\n pageSize?: number;\n wrapLines?: boolean;\n stripedRows?: boolean;\n contentDensity?: 'comfortable' | 'compact';\n visibleContent?: ReadonlyArray<string>;\n stickyColumns?: StickyColumns;\n contentDisplay?: ReadonlyArray<ContentDisplayItem>;\n custom?: CustomPreferenceType;\n }\n\n export interface ContentDisplayPreference {\n title?: string;\n description?: string;\n options: ReadonlyArray<CollectionPreferencesProps.ContentDisplayOption>;\n liveAnnouncementDndStarted?: (position: number, total: number) => string;\n liveAnnouncementDndItemReordered?: (initialPosition: number, currentPosition: number, total: number) => string;\n liveAnnouncementDndItemCommitted?: (initialPosition: number, finalPosition: number, total: number) => string;\n liveAnnouncementDndDiscarded?: string;\n dragHandleAriaLabel?: string;\n dragHandleAriaDescription?: string;\n enableColumnFiltering?: boolean;\n i18nStrings?: ContentDisplayPreferenceI18nStrings;\n }\n\n export interface ContentDisplayOption {\n id: string;\n label: string;\n alwaysVisible?: boolean;\n }\n\n export interface ContentDisplayItem {\n id: string;\n visible: boolean;\n }\n\n export interface VisibleContentPreference {\n title: string;\n options: ReadonlyArray<CollectionPreferencesProps.VisibleContentOptionsGroup>;\n }\n\n export interface VisibleContentOptionsGroup {\n label: string;\n options: ReadonlyArray<CollectionPreferencesProps.VisibleContentOption>;\n }\n\n export interface VisibleContentOption {\n id: string;\n label: string;\n editable?: boolean;\n }\n\n export interface PageSizePreference {\n title?: string;\n options: ReadonlyArray<PageSizeOption>;\n }\n\n export interface PageSizeOption {\n value: number;\n label?: string;\n }\n\n export interface WrapLinesPreference {\n label?: string;\n description?: string;\n }\n\n export interface StripedRowsPreference {\n label?: string;\n description?: string;\n }\n\n export interface ContentDensityPreference {\n label?: string;\n description?: string;\n }\n\n interface StickyColumns {\n first?: number;\n last?: number;\n }\n\n interface StickyColumnPreference {\n title: string;\n description: string;\n options: ReadonlyArray<{\n label: string;\n value: number;\n }>;\n }\n export interface StickyColumnsPreference {\n firstColumns?: StickyColumnPreference;\n lastColumns?: StickyColumnPreference;\n }\n\n export interface ContentDisplayPreferenceI18nStrings {\n /**\n * Specifies a `placeholder` for the filtering input.\n * @i18n\n */\n columnFilteringPlaceholder?: string;\n\n /**\n * Specifies an `aria-label` for the filtering input.\n * @i18n\n */\n columnFilteringAriaLabel?: string;\n\n /**\n * Specifies the `count text` for the filtering input to reflect matches found.\n * @i18n\n */\n columnFilteringCountText?: (count: number) => string;\n\n /**\n * Specifies the `no match` text for when there are no matching options in the filtering.\n * @i18n\n */\n columnFilteringNoMatchText?: string;\n\n /**\n * Specifies both an `aria-label` for the clear filtering input action and the `clear filter button` text for the no match button.\n * @i18n\n */\n columnFilteringClearFilterText?: string;\n }\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/collection-preferences/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\nimport { BaseModalProps } from '../modal/interfaces';\n\nexport interface CollectionPreferencesProps<CustomPreferenceType = any> extends BaseComponentProps, BaseModalProps {\n /**\n * Specifies the title of the preferences modal dialog. It is also used as an `aria-label` for the trigger button.\n * @i18n\n */\n title?: string;\n /**\n * Label of the confirm button in the modal footer.\n * @i18n\n */\n confirmLabel?: string;\n /**\n * Label of the cancel button in the modal footer.\n * @i18n\n */\n cancelLabel?: string;\n /**\n * Determines whether the preferences trigger button is disabled.\n */\n disabled?: boolean;\n /**\n * Configures the built-in \"page size selection\" preference.\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `title` (string) - Specifies the text displayed at the top of the preference.\n * - `options` - Specifies an array of options for page size selection. Each entry contains:\n * - `value` (number) - The value for the radio button (that is, the number of items per page).\n * - `label` (string) - A label for the radio button (for example, \"10 resources\").\n *\n * You must set the current value in the `preferences.pageSize` property.\n * @i18n\n */\n pageSizePreference?: CollectionPreferencesProps.PageSizePreference;\n /**\n * Configures the built-in \"wrap lines\" preference.\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `label` (string) - Specifies the label for the option checkbox.\n * - `description` (string) - Specifies the text displayed below the checkbox label.\n *\n * You must set the current value in the `preferences.wrapLines` property.\n * @i18n\n */\n wrapLinesPreference?: CollectionPreferencesProps.WrapLinesPreference;\n /**\n * Configures the built-in \"striped rows\" preference.\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `label` (string) - Specifies the label for the option checkbox.\n * - `description` (string) - Specifies the text displayed below the checkbox label.\n *\n * You must set the current value in the `preferences.stripedRows` property.\n * @i18n\n */\n stripedRowsPreference?: CollectionPreferencesProps.StripedRowsPreference;\n /**\n * Configures the content density preference (Comfortable / Compact).\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `label` (string) - Specifies the label for the option checkbox.\n * - `description` (string) - Specifies the text displayed below the checkbox label.\n *\n * You must set the current value in the `preferences.contentDensity` property.\n * @i18n\n */\n contentDensityPreference?: CollectionPreferencesProps.ContentDensityPreference;\n /**\n * Configures the sticky columns preference that can be set for both left and right columns.\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `label` (string) - Specifies the label for each radio group.\n * - `description` (string) - Specifies the text displayed below each radio group label.\n *\n * You must set the current value in the `preferences.stickyColumns` property.\n */\n stickyColumnsPreference?: CollectionPreferencesProps.StickyColumnsPreference;\n /**\n * Configures the built-in content display preference for order and visibility of the table columns.\n *\n * Recommended for table and not applicable for cards.\n *\n * Cannot be used together with `visibleContentPreference`.\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `title` (string) - Specifies the text displayed at the top of the preference.\n * - `description` (string) - Specifies the description displayed below the title.\n * - `options` - Specifies an array of options for reordering and visible content selection.\n * - `enableColumnFiltering` (boolean) - Adds a columns filter.\n * - `liveAnnouncementDndStarted` ((position: number, total: number) => string) - (Optional) Adds a message to be announced by screen readers when an option is picked.\n * - `liveAnnouncementDndDiscarded` (string) - (Optional) Adds a message to be announced by screen readers when a reordering action is canceled.\n * - `liveAnnouncementDndItemReordered` ((initialPosition: number, currentPosition: number, total: number) => string) - (Optional) Adds a message to be announced by screen readers when an item is being moved.\n * - `liveAnnouncementDndItemCommitted` ((initialPosition: number, finalPosition: number, total: number) => string) - (Optional) Adds a message to be announced by screen readers when a reordering action is committed.\n * - `dragHandleAriaDescription` (string) - (Optional) Adds an ARIA description for the drag handle.\n * - `dragHandleAriaLabel` (string) - (Optional) Adds an ARIA label for the drag handle.\n *\n * Each option contains the following:\n * - `id` (string) - Corresponds to a table column `id`.\n * - `label` (string) - Specifies a short description of the content.\n * - `alwaysVisible` (boolean) - (Optional) Determines whether the visibility is always on and therefore cannot be toggled. This is set to `false` by default.\n *\n * You must provide an ordered list of the items to display in the `preferences.contentDisplay` property.\n * @i18n\n */\n contentDisplayPreference?: CollectionPreferencesProps.ContentDisplayPreference;\n /**\n * Configures the built-in visible sections preference for cards or visible columns for table.\n *\n * Recommended for cards. For table use `contentDisplayPreference` instead.\n *\n * Cannot be used together with `contentDisplayPreference`.\n *\n * If you set it, the component displays this preference in the modal.\n *\n * It contains the following:\n * - `title` (string) - Specifies the text displayed at the top of the preference.\n * - `options` - Specifies an array of groups of options for visible content selection.\n *\n * Each group of options contains the following:\n * - `label` (string) - The text to display as a title for the options group.\n * - `options` - Specifies an array of options in the group. Each option contains the following:\n * - `id` (string) - Corresponds to a column `id` for tables or to a section `id` for cards.\n * - `label` (string) - Specifies a short description of the content.\n * - `editable` (boolean) - (Optional) Determines whether the user is able to toggle its visibility. This is `true` by default.\n *\n * You must set the current list of visible content `id`s in the `preferences.visibleContent` property.\n *\n * **Deprecated** in table, replaced by `contentDisplayPreference`.\n */\n visibleContentPreference?: CollectionPreferencesProps.VisibleContentPreference;\n /**\n * Specifies the current preference values. This includes both built-in and custom preferences.\n *\n * It contains the following:\n * - `pageSize` (number) - (Optional)\n * - `wrapLines` (boolean) - (Optional)\n * - `contentDisplay` (ReadonlyArray<ContentDisplayItem>) - (Optional) Specifies the list of content and their visibility. The order of the elements influences the display.\n * - `visibleContent` (ReadonlyArray<string>) - Specifies the list of visible content `id`s. The order of the `id`s does not influence the display. If the `contentDisplay` property is set, this property is ignored.\n * - `custom` (CustomPreferenceType) - Specifies the value for your custom preference.\n */\n preferences?: CollectionPreferencesProps.Preferences<CustomPreferenceType>;\n /**\n * Configures custom preferences. The function receives two parameters:\n *\n * - `customValue` (CustomPreferenceType) - Current value for your custom preference. It is initialized using the value you provide in `preferences.custom`.\n * - `setCustomValue` - A function that is called to notify a state update.\n *\n * It should return the content of your custom preference, for example:\n * ```\n * (customValue, setCustomValue) => (\n * <Checkbox checked={customValue} onChange={({ detail }) => setCustomValue(detail.checked)} />\n * )\n * ```\n *\n * When the user confirms the changes, the new value is passed in the `detail.custom` property of the `onConfirm` listener.\n * When the user cancels the changes, the `customValue` is reset to the one present in `preferences.custom` property.\n *\n * **Display**\n * - If any of the built-in preferences (`pageSizePreference`, `wrapLinesPreference`, or `visibleContentPreference`) are displayed,\n * the custom content is displayed at the bottom of the left column within the modal.\n * - If no built-in preference is displayed, the custom content occupies the whole modal.\n */\n customPreference?: (\n customValue: CustomPreferenceType,\n setCustomValue: React.Dispatch<CustomPreferenceType>\n ) => React.ReactNode;\n /**\n * Called when the user cancels a preference change using the cancel button in the modal footer or by dismissing the modal.\n */\n onCancel?: NonCancelableEventHandler;\n /**\n * Called when the user confirms a preference change using the confirm button in the modal footer.\n *\n * The event `detail` contains the following:\n * - `contentDensity` (boolean) - (Optional) The current content density preference value. Available only if you specify the `contentDensityPreference` property.\n * - `contentDisplay` (ReadonlyArray<ContentDisplayItem>) - (Optional) The ordered list of table columns and their visibility. Available only if you specify the `contentDisplayPreference` property.\n * - `custom` (CustomPreferenceType) - (Optional) The selected value for your custom preference.\n * - `pageSize` (number) - (Optional) The selected page size value. Available only if you specify the `pageSizePreference` property.\n * - `stickyColumns` (CollectionPreferencesProps.StickyColumns) - (Optional) The current sticky columns preference value. Available only if you specify the `stickyColumnsPreference` property.\n * - `stripedRows` (boolean) - (Optional) The current striped rows preference value. Available only if you specify the `stripedRowsPreference` property.\n * - `visibleContent` (ReadonlyArray<string>) - (Optional) The list of selected content `id`s. Available only if you specify the `visibleContentPreference` property.\n * - `wrapLines` (boolean) - (Optional) The current line wrapping preference value. Available only if you specify the `wrapLinesPreference` property.\n *\n * The values for all configured preferences are present even if the user didn't change their values.\n */\n onConfirm?: NonCancelableEventHandler<CollectionPreferencesProps.Preferences<CustomPreferenceType>>;\n /**\n * Content displayed before the preferences. Use it to display additional information relating to the preferences.\n */\n contentBefore?: React.ReactNode;\n}\n\nexport namespace CollectionPreferencesProps {\n export interface Preferences<CustomPreferenceType = any> {\n pageSize?: number;\n wrapLines?: boolean;\n stripedRows?: boolean;\n contentDensity?: 'comfortable' | 'compact';\n visibleContent?: ReadonlyArray<string>;\n stickyColumns?: StickyColumns;\n contentDisplay?: ReadonlyArray<ContentDisplayItem>;\n custom?: CustomPreferenceType;\n }\n\n export interface ContentDisplayPreference {\n title?: string;\n description?: string;\n options: ReadonlyArray<CollectionPreferencesProps.ContentDisplayOption>;\n liveAnnouncementDndStarted?: (position: number, total: number) => string;\n liveAnnouncementDndItemReordered?: (initialPosition: number, currentPosition: number, total: number) => string;\n liveAnnouncementDndItemCommitted?: (initialPosition: number, finalPosition: number, total: number) => string;\n liveAnnouncementDndDiscarded?: string;\n dragHandleAriaLabel?: string;\n dragHandleAriaDescription?: string;\n enableColumnFiltering?: boolean;\n i18nStrings?: ContentDisplayPreferenceI18nStrings;\n }\n\n export interface ContentDisplayOption {\n id: string;\n label: string;\n alwaysVisible?: boolean;\n }\n\n export interface ContentDisplayItem {\n id: string;\n visible: boolean;\n }\n\n export interface VisibleContentPreference {\n title: string;\n options: ReadonlyArray<CollectionPreferencesProps.VisibleContentOptionsGroup>;\n }\n\n export interface VisibleContentOptionsGroup {\n label: string;\n options: ReadonlyArray<CollectionPreferencesProps.VisibleContentOption>;\n }\n\n export interface VisibleContentOption {\n id: string;\n label: string;\n editable?: boolean;\n }\n\n export interface PageSizePreference {\n title?: string;\n options: ReadonlyArray<PageSizeOption>;\n }\n\n export interface PageSizeOption {\n value: number;\n label?: string;\n }\n\n export interface WrapLinesPreference {\n label?: string;\n description?: string;\n }\n\n export interface StripedRowsPreference {\n label?: string;\n description?: string;\n }\n\n export interface ContentDensityPreference {\n label?: string;\n description?: string;\n }\n\n interface StickyColumns {\n first?: number;\n last?: number;\n }\n\n interface StickyColumnPreference {\n title: string;\n description: string;\n options: ReadonlyArray<{\n label: string;\n value: number;\n }>;\n }\n export interface StickyColumnsPreference {\n firstColumns?: StickyColumnPreference;\n lastColumns?: StickyColumnPreference;\n }\n\n export interface ContentDisplayPreferenceI18nStrings {\n /**\n * Specifies a `placeholder` for the filtering input.\n * @i18n\n */\n columnFilteringPlaceholder?: string;\n\n /**\n * Specifies an `aria-label` for the filtering input.\n * @i18n\n */\n columnFilteringAriaLabel?: string;\n\n /**\n * Specifies the `count text` for the filtering input to reflect matches found.\n * @i18n\n */\n columnFilteringCountText?: (count: number) => string;\n\n /**\n * Specifies the `no match` text for when there are no matching options in the filtering.\n * @i18n\n */\n columnFilteringNoMatchText?: string;\n\n /**\n * Specifies both an `aria-label` for the clear filtering input action and the `clear filter button` text for the no match button.\n * @i18n\n */\n columnFilteringClearFilterText?: string;\n }\n}\n"]}
@@ -1,41 +1,42 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "visible-content": "awsui_visible-content_tc96w_356y9_289",
5
- "visible-content-toggle": "awsui_visible-content-toggle_tc96w_356y9_290",
6
- "visible-content-groups": "awsui_visible-content-groups_tc96w_356y9_291",
7
- "visible-content-group": "awsui_visible-content-group_tc96w_356y9_291",
8
- "visible-content-title": "awsui_visible-content-title_tc96w_356y9_296",
9
- "visible-content-group-label": "awsui_visible-content-group-label_tc96w_356y9_306",
10
- "visible-content-option": "awsui_visible-content-option_tc96w_356y9_312",
11
- "visible-content-option-label": "awsui_visible-content-option-label_tc96w_356y9_325",
12
- "content-display-option-toggle": "awsui_content-display-option-toggle_tc96w_356y9_620",
13
- "content-display-option-content": "awsui_content-display-option-content_tc96w_356y9_624",
14
- "content-display-option": "awsui_content-display-option_tc96w_356y9_620",
15
- "content-display-option-label": "awsui_content-display-option-label_tc96w_356y9_672",
16
- "content-display": "awsui_content-display_tc96w_356y9_620",
17
- "content-display-text-filter": "awsui_content-display-text-filter_tc96w_356y9_680",
18
- "content-display-no-match": "awsui_content-display-no-match_tc96w_356y9_681",
19
- "content-display-title": "awsui_content-display-title_tc96w_356y9_685",
20
- "content-display-description": "awsui_content-display-description_tc96w_356y9_694",
21
- "content-display-option-list": "awsui_content-display-option-list_tc96w_356y9_702",
22
- "root": "awsui_root_tc96w_356y9_709",
23
- "modal-root": "awsui_modal-root_tc96w_356y9_710",
24
- "trigger-button": "awsui_trigger-button_tc96w_356y9_711",
25
- "cancel-button": "awsui_cancel-button_tc96w_356y9_712",
26
- "confirm-button": "awsui_confirm-button_tc96w_356y9_713",
27
- "custom": "awsui_custom_tc96w_356y9_714",
28
- "second-column-small": "awsui_second-column-small_tc96w_356y9_718",
29
- "wrap-lines": "awsui_wrap-lines_tc96w_356y9_722",
30
- "striped-rows": "awsui_striped-rows_tc96w_356y9_723",
31
- "content-density": "awsui_content-density_tc96w_356y9_724",
32
- "page-size": "awsui_page-size_tc96w_356y9_725",
33
- "page-size-form-field": "awsui_page-size-form-field_tc96w_356y9_726",
34
- "page-size-radio-group": "awsui_page-size-radio-group_tc96w_356y9_727",
35
- "sticky-columns": "awsui_sticky-columns_tc96w_356y9_728",
36
- "sticky-columns-form-field": "awsui_sticky-columns-form-field_tc96w_356y9_729",
37
- "sticky-columns-radio-group": "awsui_sticky-columns-radio-group_tc96w_356y9_730",
38
- "sticky-columns-first": "awsui_sticky-columns-first_tc96w_356y9_731",
39
- "sticky-columns-last": "awsui_sticky-columns-last_tc96w_356y9_732"
4
+ "visible-content": "awsui_visible-content_tc96w_mcyrz_289",
5
+ "visible-content-toggle": "awsui_visible-content-toggle_tc96w_mcyrz_290",
6
+ "visible-content-groups": "awsui_visible-content-groups_tc96w_mcyrz_291",
7
+ "visible-content-group": "awsui_visible-content-group_tc96w_mcyrz_291",
8
+ "visible-content-title": "awsui_visible-content-title_tc96w_mcyrz_296",
9
+ "visible-content-group-label": "awsui_visible-content-group-label_tc96w_mcyrz_306",
10
+ "visible-content-option": "awsui_visible-content-option_tc96w_mcyrz_312",
11
+ "visible-content-option-label": "awsui_visible-content-option-label_tc96w_mcyrz_325",
12
+ "content-display-option-toggle": "awsui_content-display-option-toggle_tc96w_mcyrz_620",
13
+ "content-display-option-content": "awsui_content-display-option-content_tc96w_mcyrz_624",
14
+ "content-display-option": "awsui_content-display-option_tc96w_mcyrz_620",
15
+ "content-display-option-label": "awsui_content-display-option-label_tc96w_mcyrz_672",
16
+ "content-display": "awsui_content-display_tc96w_mcyrz_620",
17
+ "content-display-text-filter": "awsui_content-display-text-filter_tc96w_mcyrz_680",
18
+ "content-display-no-match": "awsui_content-display-no-match_tc96w_mcyrz_681",
19
+ "content-display-title": "awsui_content-display-title_tc96w_mcyrz_685",
20
+ "content-display-description": "awsui_content-display-description_tc96w_mcyrz_694",
21
+ "content-display-option-list": "awsui_content-display-option-list_tc96w_mcyrz_702",
22
+ "root": "awsui_root_tc96w_mcyrz_709",
23
+ "modal-root": "awsui_modal-root_tc96w_mcyrz_710",
24
+ "trigger-button": "awsui_trigger-button_tc96w_mcyrz_711",
25
+ "cancel-button": "awsui_cancel-button_tc96w_mcyrz_712",
26
+ "confirm-button": "awsui_confirm-button_tc96w_mcyrz_713",
27
+ "custom": "awsui_custom_tc96w_mcyrz_714",
28
+ "content-before": "awsui_content-before_tc96w_mcyrz_715",
29
+ "second-column-small": "awsui_second-column-small_tc96w_mcyrz_719",
30
+ "wrap-lines": "awsui_wrap-lines_tc96w_mcyrz_723",
31
+ "striped-rows": "awsui_striped-rows_tc96w_mcyrz_724",
32
+ "content-density": "awsui_content-density_tc96w_mcyrz_725",
33
+ "page-size": "awsui_page-size_tc96w_mcyrz_726",
34
+ "page-size-form-field": "awsui_page-size-form-field_tc96w_mcyrz_727",
35
+ "page-size-radio-group": "awsui_page-size-radio-group_tc96w_mcyrz_728",
36
+ "sticky-columns": "awsui_sticky-columns_tc96w_mcyrz_729",
37
+ "sticky-columns-form-field": "awsui_sticky-columns-form-field_tc96w_mcyrz_730",
38
+ "sticky-columns-radio-group": "awsui_sticky-columns-radio-group_tc96w_mcyrz_731",
39
+ "sticky-columns-first": "awsui_sticky-columns-first_tc96w_mcyrz_732",
40
+ "sticky-columns-last": "awsui_sticky-columns-last_tc96w_mcyrz_733"
40
41
  };
41
42
 
@@ -286,14 +286,14 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
286
286
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
287
287
  SPDX-License-Identifier: Apache-2.0
288
288
  */
289
- .awsui_visible-content_tc96w_356y9_289:not(#\9),
290
- .awsui_visible-content-toggle_tc96w_356y9_290:not(#\9),
291
- .awsui_visible-content-groups_tc96w_356y9_291:not(#\9),
292
- .awsui_visible-content-group_tc96w_356y9_291:not(#\9) {
289
+ .awsui_visible-content_tc96w_mcyrz_289:not(#\9),
290
+ .awsui_visible-content-toggle_tc96w_mcyrz_290:not(#\9),
291
+ .awsui_visible-content-groups_tc96w_mcyrz_291:not(#\9),
292
+ .awsui_visible-content-group_tc96w_mcyrz_291:not(#\9) {
293
293
  /* used in test-utils */
294
294
  }
295
295
 
296
- .awsui_visible-content-title_tc96w_356y9_296:not(#\9) {
296
+ .awsui_visible-content-title_tc96w_mcyrz_296:not(#\9) {
297
297
  font-size: var(--font-size-body-m-x4okxb, 14px);
298
298
  line-height: var(--line-height-body-m-30ar75, 20px);
299
299
  font-weight: var(--font-display-label-weight-815ja9, 700);
@@ -303,13 +303,13 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
303
303
  margin-inline: 0;
304
304
  }
305
305
 
306
- .awsui_visible-content-group-label_tc96w_356y9_306:not(#\9) {
306
+ .awsui_visible-content-group-label_tc96w_mcyrz_306:not(#\9) {
307
307
  color: var(--color-text-group-label-8pk3es, #424650);
308
308
  padding-block-end: var(--space-xs-zb16t3, 8px);
309
309
  border-block-end: var(--border-divider-list-width-27y3k5, 1px) solid var(--color-border-divider-secondary-alwp8z, #ebebf0);
310
310
  }
311
311
 
312
- .awsui_visible-content-option_tc96w_356y9_312:not(#\9) {
312
+ .awsui_visible-content-option_tc96w_mcyrz_312:not(#\9) {
313
313
  display: flex;
314
314
  flex-wrap: nowrap;
315
315
  justify-content: space-between;
@@ -318,11 +318,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
318
318
  padding-inline-end: 0px;
319
319
  border-block-end: var(--border-divider-list-width-27y3k5, 1px) solid var(--color-border-divider-secondary-alwp8z, #ebebf0);
320
320
  }
321
- .awsui_visible-content-option_tc96w_356y9_312:not(#\9):last-child {
321
+ .awsui_visible-content-option_tc96w_mcyrz_312:not(#\9):last-child {
322
322
  border-block-end: none;
323
323
  }
324
324
 
325
- .awsui_visible-content-option-label_tc96w_356y9_325:not(#\9) {
325
+ .awsui_visible-content-option-label_tc96w_mcyrz_325:not(#\9) {
326
326
  overflow: hidden;
327
327
  text-overflow: ellipsis;
328
328
  padding-inline-end: var(--space-l-t419sm, 20px);
@@ -617,11 +617,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
617
617
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
618
618
  SPDX-License-Identifier: Apache-2.0
619
619
  */
620
- .awsui_content-display-option-toggle_tc96w_356y9_620:not(#\9) {
620
+ .awsui_content-display-option-toggle_tc96w_mcyrz_620:not(#\9) {
621
621
  /* used in test-utils */
622
622
  }
623
623
 
624
- .awsui_content-display-option-content_tc96w_356y9_624:not(#\9) {
624
+ .awsui_content-display-option-content_tc96w_mcyrz_624:not(#\9) {
625
625
  border-collapse: separate;
626
626
  border-spacing: 0;
627
627
  box-sizing: border-box;
@@ -664,26 +664,26 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
664
664
  border-end-end-radius: var(--border-radius-item-05df9h, 8px);
665
665
  }
666
666
 
667
- .awsui_content-display-option_tc96w_356y9_620:not(#\9) {
667
+ .awsui_content-display-option_tc96w_mcyrz_620:not(#\9) {
668
668
  list-style: none;
669
669
  position: relative;
670
670
  border-block-start: var(--border-divider-list-width-27y3k5, 1px) solid var(--color-border-divider-secondary-alwp8z, #ebebf0);
671
671
  }
672
672
 
673
- .awsui_content-display-option-label_tc96w_356y9_672:not(#\9) {
673
+ .awsui_content-display-option-label_tc96w_mcyrz_672:not(#\9) {
674
674
  flex-grow: 1;
675
675
  min-inline-size: 0;
676
676
  word-break: break-word;
677
677
  padding-inline-end: var(--space-l-t419sm, 20px);
678
678
  }
679
679
 
680
- .awsui_content-display_tc96w_356y9_620:not(#\9),
681
- .awsui_content-display-text-filter_tc96w_356y9_680:not(#\9),
682
- .awsui_content-display-no-match_tc96w_356y9_681:not(#\9) {
680
+ .awsui_content-display_tc96w_mcyrz_620:not(#\9),
681
+ .awsui_content-display-text-filter_tc96w_mcyrz_680:not(#\9),
682
+ .awsui_content-display-no-match_tc96w_mcyrz_681:not(#\9) {
683
683
  /* used in test-utils */
684
684
  }
685
685
 
686
- .awsui_content-display-title_tc96w_356y9_685:not(#\9) {
686
+ .awsui_content-display-title_tc96w_mcyrz_685:not(#\9) {
687
687
  font-size: var(--font-size-body-m-x4okxb, 14px);
688
688
  line-height: var(--line-height-body-m-30ar75, 20px);
689
689
  font-weight: var(--font-display-label-weight-815ja9, 700);
@@ -692,7 +692,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
692
692
  margin-inline: 0;
693
693
  }
694
694
 
695
- .awsui_content-display-description_tc96w_356y9_694:not(#\9) {
695
+ .awsui_content-display-description_tc96w_mcyrz_694:not(#\9) {
696
696
  color: var(--color-text-form-secondary-54emib, #656871);
697
697
  font-size: var(--font-size-body-s-asqx2i, 12px);
698
698
  line-height: var(--line-height-body-s-7zv1j5, 16px);
@@ -700,36 +700,37 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
700
700
  margin-block-start: var(--space-scaled-xxxs-27y4hv, 2px);
701
701
  }
702
702
 
703
- .awsui_content-display-option-list_tc96w_356y9_702:not(#\9) {
703
+ .awsui_content-display-option-list_tc96w_mcyrz_702:not(#\9) {
704
704
  position: relative;
705
705
  list-style: none;
706
706
  padding-block: 0;
707
707
  padding-inline: 0;
708
708
  }
709
709
 
710
- .awsui_root_tc96w_356y9_709:not(#\9),
711
- .awsui_modal-root_tc96w_356y9_710:not(#\9),
712
- .awsui_trigger-button_tc96w_356y9_711:not(#\9),
713
- .awsui_cancel-button_tc96w_356y9_712:not(#\9),
714
- .awsui_confirm-button_tc96w_356y9_713:not(#\9),
715
- .awsui_custom_tc96w_356y9_714:not(#\9) {
710
+ .awsui_root_tc96w_mcyrz_709:not(#\9),
711
+ .awsui_modal-root_tc96w_mcyrz_710:not(#\9),
712
+ .awsui_trigger-button_tc96w_mcyrz_711:not(#\9),
713
+ .awsui_cancel-button_tc96w_mcyrz_712:not(#\9),
714
+ .awsui_confirm-button_tc96w_mcyrz_713:not(#\9),
715
+ .awsui_custom_tc96w_mcyrz_714:not(#\9),
716
+ .awsui_content-before_tc96w_mcyrz_715:not(#\9) {
716
717
  /* used in test-utils */
717
718
  }
718
719
 
719
- .awsui_second-column-small_tc96w_356y9_718:not(#\9) {
720
+ .awsui_second-column-small_tc96w_mcyrz_719:not(#\9) {
720
721
  padding-block-start: calc(2 * var(--space-scaled-l-0hpmd7, 20px));
721
722
  }
722
723
 
723
- .awsui_wrap-lines_tc96w_356y9_722:not(#\9),
724
- .awsui_striped-rows_tc96w_356y9_723:not(#\9),
725
- .awsui_content-density_tc96w_356y9_724:not(#\9),
726
- .awsui_page-size_tc96w_356y9_725:not(#\9),
727
- .awsui_page-size-form-field_tc96w_356y9_726:not(#\9),
728
- .awsui_page-size-radio-group_tc96w_356y9_727:not(#\9),
729
- .awsui_sticky-columns_tc96w_356y9_728:not(#\9),
730
- .awsui_sticky-columns-form-field_tc96w_356y9_729:not(#\9),
731
- .awsui_sticky-columns-radio-group_tc96w_356y9_730:not(#\9),
732
- .awsui_sticky-columns-first_tc96w_356y9_731:not(#\9),
733
- .awsui_sticky-columns-last_tc96w_356y9_732:not(#\9) {
724
+ .awsui_wrap-lines_tc96w_mcyrz_723:not(#\9),
725
+ .awsui_striped-rows_tc96w_mcyrz_724:not(#\9),
726
+ .awsui_content-density_tc96w_mcyrz_725:not(#\9),
727
+ .awsui_page-size_tc96w_mcyrz_726:not(#\9),
728
+ .awsui_page-size-form-field_tc96w_mcyrz_727:not(#\9),
729
+ .awsui_page-size-radio-group_tc96w_mcyrz_728:not(#\9),
730
+ .awsui_sticky-columns_tc96w_mcyrz_729:not(#\9),
731
+ .awsui_sticky-columns-form-field_tc96w_mcyrz_730:not(#\9),
732
+ .awsui_sticky-columns-radio-group_tc96w_mcyrz_731:not(#\9),
733
+ .awsui_sticky-columns-first_tc96w_mcyrz_732:not(#\9),
734
+ .awsui_sticky-columns-last_tc96w_mcyrz_733:not(#\9) {
734
735
  /* used in test-utils */
735
736
  }
@@ -2,41 +2,42 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "visible-content": "awsui_visible-content_tc96w_356y9_289",
6
- "visible-content-toggle": "awsui_visible-content-toggle_tc96w_356y9_290",
7
- "visible-content-groups": "awsui_visible-content-groups_tc96w_356y9_291",
8
- "visible-content-group": "awsui_visible-content-group_tc96w_356y9_291",
9
- "visible-content-title": "awsui_visible-content-title_tc96w_356y9_296",
10
- "visible-content-group-label": "awsui_visible-content-group-label_tc96w_356y9_306",
11
- "visible-content-option": "awsui_visible-content-option_tc96w_356y9_312",
12
- "visible-content-option-label": "awsui_visible-content-option-label_tc96w_356y9_325",
13
- "content-display-option-toggle": "awsui_content-display-option-toggle_tc96w_356y9_620",
14
- "content-display-option-content": "awsui_content-display-option-content_tc96w_356y9_624",
15
- "content-display-option": "awsui_content-display-option_tc96w_356y9_620",
16
- "content-display-option-label": "awsui_content-display-option-label_tc96w_356y9_672",
17
- "content-display": "awsui_content-display_tc96w_356y9_620",
18
- "content-display-text-filter": "awsui_content-display-text-filter_tc96w_356y9_680",
19
- "content-display-no-match": "awsui_content-display-no-match_tc96w_356y9_681",
20
- "content-display-title": "awsui_content-display-title_tc96w_356y9_685",
21
- "content-display-description": "awsui_content-display-description_tc96w_356y9_694",
22
- "content-display-option-list": "awsui_content-display-option-list_tc96w_356y9_702",
23
- "root": "awsui_root_tc96w_356y9_709",
24
- "modal-root": "awsui_modal-root_tc96w_356y9_710",
25
- "trigger-button": "awsui_trigger-button_tc96w_356y9_711",
26
- "cancel-button": "awsui_cancel-button_tc96w_356y9_712",
27
- "confirm-button": "awsui_confirm-button_tc96w_356y9_713",
28
- "custom": "awsui_custom_tc96w_356y9_714",
29
- "second-column-small": "awsui_second-column-small_tc96w_356y9_718",
30
- "wrap-lines": "awsui_wrap-lines_tc96w_356y9_722",
31
- "striped-rows": "awsui_striped-rows_tc96w_356y9_723",
32
- "content-density": "awsui_content-density_tc96w_356y9_724",
33
- "page-size": "awsui_page-size_tc96w_356y9_725",
34
- "page-size-form-field": "awsui_page-size-form-field_tc96w_356y9_726",
35
- "page-size-radio-group": "awsui_page-size-radio-group_tc96w_356y9_727",
36
- "sticky-columns": "awsui_sticky-columns_tc96w_356y9_728",
37
- "sticky-columns-form-field": "awsui_sticky-columns-form-field_tc96w_356y9_729",
38
- "sticky-columns-radio-group": "awsui_sticky-columns-radio-group_tc96w_356y9_730",
39
- "sticky-columns-first": "awsui_sticky-columns-first_tc96w_356y9_731",
40
- "sticky-columns-last": "awsui_sticky-columns-last_tc96w_356y9_732"
5
+ "visible-content": "awsui_visible-content_tc96w_mcyrz_289",
6
+ "visible-content-toggle": "awsui_visible-content-toggle_tc96w_mcyrz_290",
7
+ "visible-content-groups": "awsui_visible-content-groups_tc96w_mcyrz_291",
8
+ "visible-content-group": "awsui_visible-content-group_tc96w_mcyrz_291",
9
+ "visible-content-title": "awsui_visible-content-title_tc96w_mcyrz_296",
10
+ "visible-content-group-label": "awsui_visible-content-group-label_tc96w_mcyrz_306",
11
+ "visible-content-option": "awsui_visible-content-option_tc96w_mcyrz_312",
12
+ "visible-content-option-label": "awsui_visible-content-option-label_tc96w_mcyrz_325",
13
+ "content-display-option-toggle": "awsui_content-display-option-toggle_tc96w_mcyrz_620",
14
+ "content-display-option-content": "awsui_content-display-option-content_tc96w_mcyrz_624",
15
+ "content-display-option": "awsui_content-display-option_tc96w_mcyrz_620",
16
+ "content-display-option-label": "awsui_content-display-option-label_tc96w_mcyrz_672",
17
+ "content-display": "awsui_content-display_tc96w_mcyrz_620",
18
+ "content-display-text-filter": "awsui_content-display-text-filter_tc96w_mcyrz_680",
19
+ "content-display-no-match": "awsui_content-display-no-match_tc96w_mcyrz_681",
20
+ "content-display-title": "awsui_content-display-title_tc96w_mcyrz_685",
21
+ "content-display-description": "awsui_content-display-description_tc96w_mcyrz_694",
22
+ "content-display-option-list": "awsui_content-display-option-list_tc96w_mcyrz_702",
23
+ "root": "awsui_root_tc96w_mcyrz_709",
24
+ "modal-root": "awsui_modal-root_tc96w_mcyrz_710",
25
+ "trigger-button": "awsui_trigger-button_tc96w_mcyrz_711",
26
+ "cancel-button": "awsui_cancel-button_tc96w_mcyrz_712",
27
+ "confirm-button": "awsui_confirm-button_tc96w_mcyrz_713",
28
+ "custom": "awsui_custom_tc96w_mcyrz_714",
29
+ "content-before": "awsui_content-before_tc96w_mcyrz_715",
30
+ "second-column-small": "awsui_second-column-small_tc96w_mcyrz_719",
31
+ "wrap-lines": "awsui_wrap-lines_tc96w_mcyrz_723",
32
+ "striped-rows": "awsui_striped-rows_tc96w_mcyrz_724",
33
+ "content-density": "awsui_content-density_tc96w_mcyrz_725",
34
+ "page-size": "awsui_page-size_tc96w_mcyrz_726",
35
+ "page-size-form-field": "awsui_page-size-form-field_tc96w_mcyrz_727",
36
+ "page-size-radio-group": "awsui_page-size-radio-group_tc96w_mcyrz_728",
37
+ "sticky-columns": "awsui_sticky-columns_tc96w_mcyrz_729",
38
+ "sticky-columns-form-field": "awsui_sticky-columns-form-field_tc96w_mcyrz_730",
39
+ "sticky-columns-radio-group": "awsui_sticky-columns-radio-group_tc96w_mcyrz_731",
40
+ "sticky-columns-first": "awsui_sticky-columns-first_tc96w_mcyrz_732",
41
+ "sticky-columns-last": "awsui_sticky-columns-last_tc96w_mcyrz_733"
41
42
  };
42
43
 
@@ -1,4 +1,4 @@
1
1
  export var PACKAGE_SOURCE = "components";
2
- export var PACKAGE_VERSION = "3.0.0 (938e31bf)";
2
+ export var PACKAGE_VERSION = "3.0.0 (46c5afd6)";
3
3
  export var THEME = "open-source-visual-refresh";
4
4
  export var ALWAYS_VISUAL_REFRESH = true;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "PACKAGE_SOURCE": "components",
3
- "PACKAGE_VERSION": "3.0.0 (938e31bf)",
3
+ "PACKAGE_VERSION": "3.0.0 (46c5afd6)",
4
4
  "THEME": "default",
5
5
  "ALWAYS_VISUAL_REFRESH": false
6
6
  }
@@ -1,3 +1,3 @@
1
1
  {
2
- "commit": "938e31bf9f2acb9b1e9d7a31d0d6082f49b6d7db"
2
+ "commit": "46c5afd6d80f0ab693313009f0a07bc1a3d7f602"
3
3
  }
package/package.json CHANGED
@@ -131,7 +131,7 @@
131
131
  "./internal/base-component/index.js",
132
132
  "./internal/base-component/styles.css.js"
133
133
  ],
134
- "version": "3.0.858",
134
+ "version": "3.0.860",
135
135
  "repository": {
136
136
  "type": "git",
137
137
  "url": "https://github.com/cloudscape-design/components.git"
@@ -153,7 +153,7 @@
153
153
  "date-fns": "^2.25.0",
154
154
  "intl-messageformat": "^10.3.1",
155
155
  "mnth": "^2.0.0",
156
- "react-keyed-flatten-children": "^1.3.0",
156
+ "react-keyed-flatten-children": "^2.2.1",
157
157
  "react-transition-group": "^4.4.2",
158
158
  "tslib": "^2.4.0",
159
159
  "weekstart": "^1.1.0"
@@ -18,6 +18,7 @@ declare class PreferencesModalWrapper extends ModalWrapper {
18
18
  findStickyColumnsPreference(firstOrLast?: 'first' | 'last'): StickyColumnsPreferenceWrapper | null;
19
19
  findContentDisplayPreference(): ContentDisplayPreferenceWrapper | null;
20
20
  findCustomPreference(): ElementWrapper | null;
21
+ findContentBefore(): ElementWrapper | null;
21
22
  }
22
23
  export default class CollectionPreferencesWrapper extends ComponentWrapper {
23
24
  static rootSelector: string;
@@ -43,6 +43,9 @@ class PreferencesModalWrapper extends modal_1.default {
43
43
  findCustomPreference() {
44
44
  return this.findByClassName(styles_selectors_js_1.default.custom);
45
45
  }
46
+ findContentBefore() {
47
+ return this.findByClassName(styles_selectors_js_1.default['content-before']);
48
+ }
46
49
  }
47
50
  PreferencesModalWrapper.rootSelector = styles_selectors_js_1.default['modal-root'];
48
51
  class CollectionPreferencesWrapper extends dom_1.ComponentWrapper {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/collection-preferences/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAAyG;AAEzG,sCAAsC;AACtC,0CAA0C;AAC1C,oCAAoC;AACpC,6EAA2E;AAC3E,iEAA+D;AAC/D,2EAAyE;AACzE,6EAA2E;AAE3E,6FAAyE;AAEzE,MAAM,uBAAwB,SAAQ,eAAY;IAGhD,gBAAgB;QACd,OAAO,IAAI,CAAC,aAAa,CA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,CAAC,IAAI,6BAAM,CAAC,gBAAgB,CAAC,EAAE,EAAE,gBAAa,CAAE,CAAC;IAC5E,CAAC;;AATH,+CAUC;AATQ,yCAAY,GAAG,6BAAM,CAAC,IAAI,CAAC"}
@@ -18,6 +18,7 @@ declare class PreferencesModalWrapper extends ModalWrapper {
18
18
  findStickyColumnsPreference(firstOrLast?: 'first' | 'last'): StickyColumnsPreferenceWrapper;
19
19
  findContentDisplayPreference(): ContentDisplayPreferenceWrapper;
20
20
  findCustomPreference(): ElementWrapper;
21
+ findContentBefore(): ElementWrapper;
21
22
  }
22
23
  export default class CollectionPreferencesWrapper extends ComponentWrapper {
23
24
  static rootSelector: string;
@@ -43,6 +43,9 @@ class PreferencesModalWrapper extends modal_1.default {
43
43
  findCustomPreference() {
44
44
  return this.findByClassName(styles_selectors_js_1.default.custom);
45
45
  }
46
+ findContentBefore() {
47
+ return this.findByClassName(styles_selectors_js_1.default['content-before']);
48
+ }
46
49
  }
47
50
  PreferencesModalWrapper.rootSelector = styles_selectors_js_1.default['modal-root'];
48
51
  class CollectionPreferencesWrapper extends selectors_1.ComponentWrapper {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/collection-preferences/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAA+G;AAC/G,sCAAsC;AACtC,0CAA0C;AAC1C,oCAAoC;AACpC,6EAA2E;AAC3E,iEAA+D;AAC/D,2EAAyE;AACzE,6EAA2E;AAC3E,6FAAyE;AACzE,MAAM,uBAAwB,SAAQ,eAAY;IAEhD,gBAAgB;QACd,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,eAAe,CAAC,EAAE,EAAE,gBAAa,CAAC,CAAC;IAC1E,CAAC;IACD,iBAAiB;QACf,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,gBAAgB,CAAC,EAAE,EAAE,gBAAa,CAAC,CAAC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AAC,aAAa,CAAC,IAAI,6BAAM,CAAC,YAAY,CAAC,EAAE,EAAE,uBAAuB,CAAC,CAAC;IAC5F,CAAC;IACD,iBAAiB;QACf,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,gBAAgB,CAAC,EAAE,EAAE,gBAAa,CAAE,CAAC;IAC5E,CAAC;;AAPH,+CAQC;AAPQ,yCAAY,GAAG,6BAAM,CAAC,IAAI,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/collection-preferences/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAA+G;AAC/G,sCAAsC;AACtC,0CAA0C;AAC1C,oCAAoC;AACpC,6EAA2E;AAC3E,iEAA+D;AAC/D,2EAAyE;AACzE,6EAA2E;AAC3E,6FAAyE;AACzE,MAAM,uBAAwB,SAAQ,eAAY;IAEhD,gBAAgB;QACd,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,eAAe,CAAC,EAAE,EAAE,gBAAa,CAAC,CAAC;IAC1E,CAAC;IACD,iBAAiB;QACf,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,gBAAgB,CAAC,EAAE,EAAE,gBAAa,CAAC,CAAC;IAC3E,CAAC;IACD,uBAAuB;QACrB,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,YAAY,CAAC,EAAE,EAAE,kBAAe,CAAC,CAAC;IACzE,CAAC;IACD,yBAAyB;QACvB,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,cAAc,CAAC,EAAE,EAAE,kBAAe,CAAC,CAAC;IAC3E,CAAC;IACD,4BAA4B;QAC1B,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,iBAAiB,CAAC,EAAE,EAAE,kBAAe,CAAC,CAAC;IAC9E,CAAC;IACD,sBAAsB;QACpB,OAAO,IAAI,CA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