@cloudscape-design/components-themeable 3.0.288 → 3.0.290
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/internal/manifest.json +1 -1
- package/lib/internal/scss/collection-preferences/content-display/content-display-option.scss +0 -1
- package/lib/internal/scss/collection-preferences/styles.scss +6 -1
- package/lib/internal/scss/date-range-picker/styles.scss +4 -0
- package/lib/internal/scss/table/body-cell/styles.scss +52 -0
- package/lib/internal/scss/table/header-cell/styles.scss +28 -0
- package/lib/internal/template/autosuggest/internal.d.ts.map +1 -1
- package/lib/internal/template/autosuggest/internal.js +1 -1
- package/lib/internal/template/autosuggest/internal.js.map +1 -1
- package/lib/internal/template/autosuggest/options-list.d.ts +2 -1
- package/lib/internal/template/autosuggest/options-list.d.ts.map +1 -1
- package/lib/internal/template/autosuggest/options-list.js +2 -1
- package/lib/internal/template/autosuggest/options-list.js.map +1 -1
- package/lib/internal/template/button-dropdown/internal.d.ts.map +1 -1
- package/lib/internal/template/button-dropdown/internal.js +1 -1
- package/lib/internal/template/button-dropdown/internal.js.map +1 -1
- package/lib/internal/template/collection-preferences/content-display/styles.css.js +11 -11
- package/lib/internal/template/collection-preferences/content-display/styles.scoped.css +17 -18
- package/lib/internal/template/collection-preferences/content-display/styles.selectors.js +11 -11
- package/lib/internal/template/collection-preferences/index.d.ts +1 -1
- package/lib/internal/template/collection-preferences/index.d.ts.map +1 -1
- package/lib/internal/template/collection-preferences/index.js +6 -4
- package/lib/internal/template/collection-preferences/index.js.map +1 -1
- package/lib/internal/template/collection-preferences/interfaces.d.ts +42 -12
- package/lib/internal/template/collection-preferences/interfaces.d.ts.map +1 -1
- package/lib/internal/template/collection-preferences/interfaces.js.map +1 -1
- package/lib/internal/template/collection-preferences/styles.css.js +37 -32
- package/lib/internal/template/collection-preferences/styles.scoped.css +44 -40
- package/lib/internal/template/collection-preferences/styles.selectors.js +37 -32
- package/lib/internal/template/collection-preferences/utils.d.ts +12 -1
- package/lib/internal/template/collection-preferences/utils.d.ts.map +1 -1
- package/lib/internal/template/collection-preferences/utils.js +15 -1
- package/lib/internal/template/collection-preferences/utils.js.map +1 -1
- package/lib/internal/template/date-range-picker/styles.css.js +38 -38
- package/lib/internal/template/date-range-picker/styles.scoped.css +48 -45
- package/lib/internal/template/date-range-picker/styles.selectors.js +38 -38
- package/lib/internal/template/internal/base-component/styles.scoped.css +14 -0
- package/lib/internal/template/internal/components/options-list/index.d.ts +2 -0
- package/lib/internal/template/internal/components/options-list/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/options-list/index.js +4 -5
- package/lib/internal/template/internal/components/options-list/index.js.map +1 -1
- package/lib/internal/template/internal/environment.js +1 -1
- package/lib/internal/template/multiselect/internal.d.ts.map +1 -1
- package/lib/internal/template/multiselect/internal.js +1 -0
- package/lib/internal/template/multiselect/internal.js.map +1 -1
- package/lib/internal/template/property-filter/property-filter-autosuggest.d.ts.map +1 -1
- package/lib/internal/template/property-filter/property-filter-autosuggest.js +1 -1
- package/lib/internal/template/property-filter/property-filter-autosuggest.js.map +1 -1
- package/lib/internal/template/select/internal.d.ts.map +1 -1
- package/lib/internal/template/select/internal.js +1 -0
- package/lib/internal/template/select/internal.js.map +1 -1
- package/lib/internal/template/select/utils/use-select.d.ts +3 -1
- package/lib/internal/template/select/utils/use-select.d.ts.map +1 -1
- package/lib/internal/template/select/utils/use-select.js +2 -1
- package/lib/internal/template/select/utils/use-select.js.map +1 -1
- package/lib/internal/template/table/body-cell/styles.css.js +28 -23
- package/lib/internal/template/table/body-cell/styles.scoped.css +111 -55
- package/lib/internal/template/table/body-cell/styles.selectors.js +28 -23
- package/lib/internal/template/table/body-cell/td-element.d.ts +3 -0
- package/lib/internal/template/table/body-cell/td-element.d.ts.map +1 -1
- package/lib/internal/template/table/body-cell/td-element.js +16 -2
- package/lib/internal/template/table/body-cell/td-element.js.map +1 -1
- package/lib/internal/template/table/header-cell/index.d.ts +4 -1
- package/lib/internal/template/table/header-cell/index.d.ts.map +1 -1
- package/lib/internal/template/table/header-cell/index.js +9 -2
- package/lib/internal/template/table/header-cell/index.js.map +1 -1
- package/lib/internal/template/table/header-cell/styles.css.js +24 -19
- package/lib/internal/template/table/header-cell/styles.scoped.css +67 -32
- package/lib/internal/template/table/header-cell/styles.selectors.js +24 -19
- package/lib/internal/template/table/interfaces.d.ts +14 -0
- package/lib/internal/template/table/interfaces.d.ts.map +1 -1
- package/lib/internal/template/table/interfaces.js.map +1 -1
- package/lib/internal/template/table/internal.d.ts.map +1 -1
- package/lib/internal/template/table/internal.js +19 -6
- package/lib/internal/template/table/internal.js.map +1 -1
- package/lib/internal/template/table/thead.d.ts +2 -0
- package/lib/internal/template/table/thead.d.ts.map +1 -1
- package/lib/internal/template/table/thead.js +12 -4
- package/lib/internal/template/table/thead.js.map +1 -1
- package/lib/internal/template/table/use-sticky-columns.d.ts.map +1 -1
- package/lib/internal/template/table/use-sticky-columns.js +5 -1
- package/lib/internal/template/table/use-sticky-columns.js.map +1 -1
- package/lib/internal/template/table/utils.d.ts +4 -0
- package/lib/internal/template/table/utils.d.ts.map +1 -1
- package/lib/internal/template/table/utils.js +8 -0
- package/lib/internal/template/table/utils.js.map +1 -1
- package/lib/internal/template/test-utils/dom/collection-preferences/index.d.ts +2 -0
- package/lib/internal/template/test-utils/dom/collection-preferences/index.js +6 -1
- package/lib/internal/template/test-utils/dom/collection-preferences/index.js.map +1 -1
- package/lib/internal/template/test-utils/dom/collection-preferences/sticky-columns-preference.d.ts +9 -0
- package/lib/internal/template/test-utils/dom/collection-preferences/sticky-columns-preference.js +23 -0
- package/lib/internal/template/test-utils/dom/collection-preferences/sticky-columns-preference.js.map +1 -0
- package/lib/internal/template/test-utils/selectors/collection-preferences/index.d.ts +2 -0
- package/lib/internal/template/test-utils/selectors/collection-preferences/index.js +6 -1
- package/lib/internal/template/test-utils/selectors/collection-preferences/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/collection-preferences/sticky-columns-preference.d.ts +9 -0
- package/lib/internal/template/test-utils/selectors/collection-preferences/sticky-columns-preference.js +23 -0
- package/lib/internal/template/test-utils/selectors/collection-preferences/sticky-columns-preference.js.map +1 -0
- package/lib/internal/template/test-utils/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ import useForwardFocus from '../../internal/hooks/forward-focus';
|
|
|
9
9
|
import { usePrevious } from '../../internal/hooks/use-previous';
|
|
10
10
|
import { fireNonCancelableEvent } from '../../internal/events';
|
|
11
11
|
import { useUniqueId } from '../../internal/hooks/use-unique-id';
|
|
12
|
-
export function useSelect({ selectedOptions, updateSelectedOption, options, filteringType, onBlur, onFocus, externalRef, keepOpen, fireLoadItems, setFilteringValue, useInteractiveGroups = false, }) {
|
|
12
|
+
export function useSelect({ selectedOptions, updateSelectedOption, options, filteringType, onBlur, onFocus, externalRef, keepOpen, fireLoadItems, setFilteringValue, useInteractiveGroups = false, statusType, }) {
|
|
13
13
|
const interactivityCheck = useInteractiveGroups ? isGroupInteractive : isInteractive;
|
|
14
14
|
const isHighlightable = (option) => !!option && (useInteractiveGroups || option.type !== 'parent');
|
|
15
15
|
const filterRef = useRef(null);
|
|
@@ -126,6 +126,7 @@ export function useSelect({ selectedOptions, updateSelectedOption, options, filt
|
|
|
126
126
|
setHighlightedIndexWithMouse(itemIndex);
|
|
127
127
|
}
|
|
128
128
|
},
|
|
129
|
+
statusType,
|
|
129
130
|
};
|
|
130
131
|
if (!hasFilter) {
|
|
131
132
|
menuProps.onKeyDown = activeKeyDownHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-select.js","sourceRoot":"lib/default/","sources":["select/utils/use-select.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,uDAAuD,CAAC;AACnH,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,oBAAoB,EAAE,MAAM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eAAe,CAAC,WAAW,EAAE,UAA0C,CAAC,CAAC;IACzE,MAAM,wBAAwB,GAC5B,CAAC,CAAC,iBAAiB,IAAI,OAAO,CAAC,iBAAiB,CAAC,MAAM,CAAC,IAAI,aAAa,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC;IAC/G,MAAM,gBAAgB,GACpB,CAAC,CAAC,iBAAiB,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,IAAI,wBAAwB,CAAC,CAAC;IAEzG,OAAO;QACL,MAAM;QACN,iBAAiB;QACjB,gBAAgB;QAChB,aAAa;QACb,eAAe;QACf,gBAAgB;QAChB,YAAY;QACZ,cAAc;QACd,cAAc;QACd,eAAe,EAAE,2BAA2B;QAC5C,YAAY;QACZ,gBAAgB;KACjB,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { RefObject } from 'react';\nimport { DropdownProps } from '../../internal/components/dropdown/interfaces';\nimport { DropdownOption, OptionDefinition, OptionGroup } from '../../internal/components/option/interfaces';\nimport { isInteractive, isGroupInteractive, isGroup } from '../../internal/components/option/utils/filter-options';\nimport { useEffect, useRef } from 'react';\nimport { useHighlightedOption } from '../../internal/components/options-list/utils/use-highlight-option';\nimport { useOpenState } from '../../internal/components/options-list/utils/use-open-state';\nimport { useMenuKeyboard, useTriggerKeyboard } from '../../internal/components/options-list/utils/use-keyboard';\nimport { getOptionId } from '../../internal/components/options-list/utils/use-ids';\nimport { connectOptionsByValue } from './connect-options';\nimport useForwardFocus from '../../internal/hooks/forward-focus';\nimport { OptionsListProps } from '../../internal/components/options-list';\nimport { FilterProps } from '../parts/filter';\nimport { ItemProps } from '../parts/item';\nimport { usePrevious } from '../../internal/hooks/use-previous';\nimport { BaseKeyDetail, NonCancelableEventHandler, fireNonCancelableEvent } from '../../internal/events';\nimport { useUniqueId } from '../../internal/hooks/use-unique-id';\n\nexport type MenuProps = Omit<OptionsListProps, 'children'> & { ref: React.RefObject<HTMLUListElement> };\nexport type GetOptionProps = (option: DropdownOption, index: number) => ItemProps;\n\ninterface UseSelectProps {\n selectedOptions: ReadonlyArray<OptionDefinition>;\n updateSelectedOption: (option: OptionDefinition) => void;\n options: ReadonlyArray<DropdownOption>;\n filteringType: string;\n keepOpen?: boolean;\n onBlur?: NonCancelableEventHandler;\n onFocus?: NonCancelableEventHandler;\n externalRef: React.Ref<any>;\n fireLoadItems: (filteringText: string) => void;\n setFilteringValue: (filteringText: string) => void;\n useInteractiveGroups?: boolean;\n}\n\nexport interface SelectTriggerProps {\n ref: RefObject<HTMLButtonElement>;\n onMouseDown?: (event: CustomEvent) => void;\n onKeyDown?: (event: CustomEvent<BaseKeyDetail>) => void;\n onFocus: NonCancelableEventHandler;\n autoFocus?: boolean;\n}\n\nexport function useSelect({\n selectedOptions,\n updateSelectedOption,\n options,\n filteringType,\n onBlur,\n onFocus,\n externalRef,\n keepOpen,\n fireLoadItems,\n setFilteringValue,\n useInteractiveGroups = false,\n}: UseSelectProps) {\n const interactivityCheck = useInteractiveGroups ? isGroupInteractive : isInteractive;\n\n const isHighlightable = (option?: DropdownOption) => !!option && (useInteractiveGroups || option.type !== 'parent');\n\n const filterRef = useRef<HTMLInputElement>(null);\n const triggerRef = useRef<HTMLButtonElement>(null);\n const menuRef = useRef<HTMLUListElement>(null);\n const hasFilter = filteringType !== 'none';\n const activeRef = hasFilter ? filterRef : menuRef;\n const __selectedOptions = connectOptionsByValue(options, selectedOptions);\n const __selectedValuesSet = selectedOptions.reduce((selectedValuesSet: Set<string>, item: OptionDefinition) => {\n if (item.value) {\n selectedValuesSet.add(item.value);\n }\n return selectedValuesSet;\n }, new Set<string>());\n const [\n { highlightType, highlightedOption, highlightedIndex },\n {\n moveHighlightWithKeyboard,\n resetHighlightWithKeyboard,\n setHighlightedIndexWithMouse,\n highlightOptionWithKeyboard,\n goHomeWithKeyboard,\n goEndWithKeyboard,\n },\n ] = useHighlightedOption({ options, isHighlightable });\n\n const { isOpen, openDropdown, closeDropdown, toggleDropdown } = useOpenState({\n onOpen: () => fireLoadItems(''),\n onClose: () => {\n resetHighlightWithKeyboard();\n setFilteringValue('');\n },\n });\n\n const handleFocus = () => {\n fireNonCancelableEvent(onFocus, {});\n };\n\n const handleBlur = () => {\n fireNonCancelableEvent(onBlur, {});\n closeDropdown();\n };\n\n const hasSelectedOption = __selectedOptions.length > 0;\n const menuId = useUniqueId('option-list');\n const highlightedOptionId = getOptionId(menuId, highlightedIndex);\n\n const selectOption = (option?: DropdownOption) => {\n const optionToSelect = option || highlightedOption;\n if (!optionToSelect || !interactivityCheck(optionToSelect)) {\n return;\n }\n updateSelectedOption(optionToSelect.option);\n if (!keepOpen) {\n triggerRef.current?.focus();\n closeDropdown();\n }\n };\n\n const activeKeyDownHandler = useMenuKeyboard({\n moveHighlight: moveHighlightWithKeyboard,\n selectOption,\n goHome: goHomeWithKeyboard,\n goEnd: goEndWithKeyboard,\n closeDropdown: () => {\n triggerRef.current?.focus();\n closeDropdown();\n },\n preventNativeSpace: !hasFilter,\n });\n\n const triggerKeyDownHandler = useTriggerKeyboard({ openDropdown, goHome: goHomeWithKeyboard });\n\n const getDropdownProps: () => Pick<DropdownProps, 'onFocus' | 'onBlur'> = () => ({\n onFocus: handleFocus,\n onBlur: handleBlur,\n });\n\n const getTriggerProps = (disabled = false, autoFocus = false) => {\n const triggerProps: SelectTriggerProps = {\n ref: triggerRef,\n onFocus: () => closeDropdown(),\n autoFocus,\n };\n if (!disabled) {\n triggerProps.onMouseDown = (event: CustomEvent) => {\n event.preventDefault(); // prevent current focus from blurring as it immediately closes the dropdown\n if (isOpen) {\n triggerRef.current?.focus();\n }\n toggleDropdown();\n };\n triggerProps.onKeyDown = triggerKeyDownHandler;\n }\n return triggerProps;\n };\n\n const getFilterProps = (): Partial<FilterProps> => {\n if (!hasFilter) {\n return {};\n }\n\n return {\n ref: filterRef,\n onKeyDown: activeKeyDownHandler,\n onChange: event => {\n setFilteringValue(event.detail.value);\n resetHighlightWithKeyboard();\n },\n __onDelayedInput: event => {\n fireLoadItems(event.detail.value);\n },\n __nativeAttributes: {\n 'aria-activedescendant': highlightedOptionId,\n ['aria-owns']: menuId,\n ['aria-controls']: menuId,\n },\n };\n };\n\n const getMenuProps = () => {\n const menuProps: MenuProps = {\n id: menuId,\n ref: menuRef,\n open: isOpen,\n onMouseUp: itemIndex => {\n if (itemIndex > -1) {\n selectOption(options[itemIndex]);\n }\n },\n onMouseMove: itemIndex => {\n if (itemIndex > -1) {\n setHighlightedIndexWithMouse(itemIndex);\n }\n },\n };\n if (!hasFilter) {\n menuProps.onKeyDown = activeKeyDownHandler;\n menuProps.nativeAttributes = {\n 'aria-activedescendant': highlightedOptionId,\n };\n }\n return menuProps;\n };\n const getGroupState = (option: OptionGroup) => {\n const totalSelected = option.options.filter(item => !!item.value && __selectedValuesSet.has(item.value)).length;\n const hasSelected = totalSelected > 0;\n const allSelected = totalSelected === option.options.length;\n return {\n selected: hasSelected && allSelected,\n indeterminate: hasSelected && !allSelected,\n };\n };\n\n const getOptionProps = (option: DropdownOption, index: number) => {\n const highlighted = option === highlightedOption;\n const groupState = isGroup(option.option) ? getGroupState(option.option) : undefined;\n const selected = __selectedOptions.indexOf(option) > -1 || !!groupState?.selected;\n const nextOption = options[index + 1]?.option;\n const isNextSelected =\n !!nextOption && isGroup(nextOption)\n ? getGroupState(nextOption).selected\n : __selectedOptions.indexOf(options[index + 1]) > -1;\n\n const optionProps: any = {\n key: index,\n option,\n highlighted,\n selected,\n isNextSelected,\n indeterminate: !!groupState?.indeterminate,\n ['data-mouse-target']: isHighlightable(option) ? index : -1,\n id: getOptionId(menuId, index),\n };\n\n return optionProps;\n };\n\n const prevOpen = usePrevious<boolean>(isOpen);\n useEffect(() => {\n // highlight the first selected option, when opening the Select component without filter input\n // keep the focus in the filter input when opening, so that screenreader can recognize the combobox\n if (isOpen && !prevOpen && hasSelectedOption && !hasFilter) {\n setHighlightedIndexWithMouse(options.indexOf(__selectedOptions[0]));\n }\n }, [isOpen, __selectedOptions, hasSelectedOption, setHighlightedIndexWithMouse, options, prevOpen, hasFilter]);\n\n useEffect(() => {\n if (isOpen) {\n // dropdown-fit calculations ensure that the dropdown will fit inside the current\n // viewport, so prevent the browser from trying to scroll it into view (e.g. if\n // scroll-padding-top is set on a parent)\n activeRef.current?.focus({ preventScroll: true });\n }\n }, [isOpen, activeRef]);\n\n useForwardFocus(externalRef, triggerRef as React.RefObject<HTMLElement>);\n const highlightedGroupSelected =\n !!highlightedOption && isGroup(highlightedOption.option) && getGroupState(highlightedOption.option).selected;\n const announceSelected =\n !!highlightedOption && (__selectedOptions.indexOf(highlightedOption) > -1 || highlightedGroupSelected);\n\n return {\n isOpen,\n highlightedOption,\n highlightedIndex,\n highlightType,\n getTriggerProps,\n getDropdownProps,\n getMenuProps,\n getFilterProps,\n getOptionProps,\n highlightOption: highlightOptionWithKeyboard,\n selectOption,\n announceSelected,\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"use-select.js","sourceRoot":"lib/default/","sources":["select/utils/use-select.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,uDAAuD,CAAC;AACnH,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mEAAmE,CAAC;AACzG,OAAO,EAAE,YAAY,EAAE,MAAM,6DAA6D,CAAC;AAC3F,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,2DAA2D,CAAC;AAChH,OAAO,EAAE,WAAW,EAAE,MAAM,sDAAsD,CAAC;AACnF,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,eAAe,MAAM,oCAAoC,CAAC;AAIjE,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,C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C,GAAG,CAAC,CAAC,IAAI,wBAAwB,CAAC,CAAC;IAEzG,OAAO;QACL,MAAM;QACN,iBAAiB;QACjB,gBAAgB;QAChB,aAAa;QACb,eAAe;QACf,gBAAgB;QAChB,YAAY;QACZ,cAAc;QACd,cAAc;QACd,eAAe,EAAE,2BAA2B;QAC5C,YAAY;QACZ,gBAAgB;KACjB,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { RefObject } from 'react';\nimport { DropdownProps } from '../../internal/components/dropdown/interfaces';\nimport { DropdownOption, OptionDefinition, OptionGroup } from '../../internal/components/option/interfaces';\nimport { isInteractive, isGroupInteractive, isGroup } from '../../internal/components/option/utils/filter-options';\nimport { useEffect, useRef } from 'react';\nimport { useHighlightedOption } from '../../internal/components/options-list/utils/use-highlight-option';\nimport { useOpenState } from '../../internal/components/options-list/utils/use-open-state';\nimport { useMenuKeyboard, useTriggerKeyboard } from '../../internal/components/options-list/utils/use-keyboard';\nimport { getOptionId } from '../../internal/components/options-list/utils/use-ids';\nimport { connectOptionsByValue } from './connect-options';\nimport useForwardFocus from '../../internal/hooks/forward-focus';\nimport { OptionsListProps } from '../../internal/components/options-list';\nimport { FilterProps } from '../parts/filter';\nimport { ItemProps } from '../parts/item';\nimport { usePrevious } from '../../internal/hooks/use-previous';\nimport { BaseKeyDetail, NonCancelableEventHandler, fireNonCancelableEvent } from '../../internal/events';\nimport { useUniqueId } from '../../internal/hooks/use-unique-id';\nimport { DropdownStatusProps } from '../../internal/components/dropdown-status';\n\nexport type MenuProps = Omit<OptionsListProps, 'children'> & { ref: React.RefObject<HTMLUListElement> };\nexport type GetOptionProps = (option: DropdownOption, index: number) => ItemProps;\n\ninterface UseSelectProps {\n selectedOptions: ReadonlyArray<OptionDefinition>;\n updateSelectedOption: (option: OptionDefinition) => void;\n options: ReadonlyArray<DropdownOption>;\n filteringType: string;\n keepOpen?: boolean;\n onBlur?: NonCancelableEventHandler;\n onFocus?: NonCancelableEventHandler;\n externalRef: React.Ref<any>;\n fireLoadItems: (filteringText: string) => void;\n setFilteringValue: (filteringText: string) => void;\n useInteractiveGroups?: boolean;\n statusType: DropdownStatusProps.StatusType;\n}\n\nexport interface SelectTriggerProps {\n ref: RefObject<HTMLButtonElement>;\n onMouseDown?: (event: CustomEvent) => void;\n onKeyDown?: (event: CustomEvent<BaseKeyDetail>) => void;\n onFocus: NonCancelableEventHandler;\n autoFocus?: boolean;\n}\n\nexport function useSelect({\n selectedOptions,\n updateSelectedOption,\n options,\n filteringType,\n onBlur,\n onFocus,\n externalRef,\n keepOpen,\n fireLoadItems,\n setFilteringValue,\n useInteractiveGroups = false,\n statusType,\n}: UseSelectProps) {\n const interactivityCheck = useInteractiveGroups ? isGroupInteractive : isInteractive;\n\n const isHighlightable = (option?: DropdownOption) => !!option && (useInteractiveGroups || option.type !== 'parent');\n\n const filterRef = useRef<HTMLInputElement>(null);\n const triggerRef = useRef<HTMLButtonElement>(null);\n const menuRef = useRef<HTMLUListElement>(null);\n const hasFilter = filteringType !== 'none';\n const activeRef = hasFilter ? filterRef : menuRef;\n const __selectedOptions = connectOptionsByValue(options, selectedOptions);\n const __selectedValuesSet = selectedOptions.reduce((selectedValuesSet: Set<string>, item: OptionDefinition) => {\n if (item.value) {\n selectedValuesSet.add(item.value);\n }\n return selectedValuesSet;\n }, new Set<string>());\n const [\n { highlightType, highlightedOption, highlightedIndex },\n {\n moveHighlightWithKeyboard,\n resetHighlightWithKeyboard,\n setHighlightedIndexWithMouse,\n highlightOptionWithKeyboard,\n goHomeWithKeyboard,\n goEndWithKeyboard,\n },\n ] = useHighlightedOption({ options, isHighlightable });\n\n const { isOpen, openDropdown, closeDropdown, toggleDropdown } = useOpenState({\n onOpen: () => fireLoadItems(''),\n onClose: () => {\n resetHighlightWithKeyboard();\n setFilteringValue('');\n },\n });\n\n const handleFocus = () => {\n fireNonCancelableEvent(onFocus, {});\n };\n\n const handleBlur = () => {\n fireNonCancelableEvent(onBlur, {});\n closeDropdown();\n };\n\n const hasSelectedOption = __selectedOptions.length > 0;\n const menuId = useUniqueId('option-list');\n const highlightedOptionId = getOptionId(menuId, highlightedIndex);\n\n const selectOption = (option?: DropdownOption) => {\n const optionToSelect = option || highlightedOption;\n if (!optionToSelect || !interactivityCheck(optionToSelect)) {\n return;\n }\n updateSelectedOption(optionToSelect.option);\n if (!keepOpen) {\n triggerRef.current?.focus();\n closeDropdown();\n }\n };\n\n const activeKeyDownHandler = useMenuKeyboard({\n moveHighlight: moveHighlightWithKeyboard,\n selectOption,\n goHome: goHomeWithKeyboard,\n goEnd: goEndWithKeyboard,\n closeDropdown: () => {\n triggerRef.current?.focus();\n closeDropdown();\n },\n preventNativeSpace: !hasFilter,\n });\n\n const triggerKeyDownHandler = useTriggerKeyboard({ openDropdown, goHome: goHomeWithKeyboard });\n\n const getDropdownProps: () => Pick<DropdownProps, 'onFocus' | 'onBlur'> = () => ({\n onFocus: handleFocus,\n onBlur: handleBlur,\n });\n\n const getTriggerProps = (disabled = false, autoFocus = false) => {\n const triggerProps: SelectTriggerProps = {\n ref: triggerRef,\n onFocus: () => closeDropdown(),\n autoFocus,\n };\n if (!disabled) {\n triggerProps.onMouseDown = (event: CustomEvent) => {\n event.preventDefault(); // prevent current focus from blurring as it immediately closes the dropdown\n if (isOpen) {\n triggerRef.current?.focus();\n }\n toggleDropdown();\n };\n triggerProps.onKeyDown = triggerKeyDownHandler;\n }\n return triggerProps;\n };\n\n const getFilterProps = (): Partial<FilterProps> => {\n if (!hasFilter) {\n return {};\n }\n\n return {\n ref: filterRef,\n onKeyDown: activeKeyDownHandler,\n onChange: event => {\n setFilteringValue(event.detail.value);\n resetHighlightWithKeyboard();\n },\n __onDelayedInput: event => {\n fireLoadItems(event.detail.value);\n },\n __nativeAttributes: {\n 'aria-activedescendant': highlightedOptionId,\n ['aria-owns']: menuId,\n ['aria-controls']: menuId,\n },\n };\n };\n\n const getMenuProps = () => {\n const menuProps: MenuProps = {\n id: menuId,\n ref: menuRef,\n open: isOpen,\n onMouseUp: itemIndex => {\n if (itemIndex > -1) {\n selectOption(options[itemIndex]);\n }\n },\n onMouseMove: itemIndex => {\n if (itemIndex > -1) {\n setHighlightedIndexWithMouse(itemIndex);\n }\n },\n statusType,\n };\n if (!hasFilter) {\n menuProps.onKeyDown = activeKeyDownHandler;\n menuProps.nativeAttributes = {\n 'aria-activedescendant': highlightedOptionId,\n };\n }\n return menuProps;\n };\n const getGroupState = (option: OptionGroup) => {\n const totalSelected = option.options.filter(item => !!item.value && __selectedValuesSet.has(item.value)).length;\n const hasSelected = totalSelected > 0;\n const allSelected = totalSelected === option.options.length;\n return {\n selected: hasSelected && allSelected,\n indeterminate: hasSelected && !allSelected,\n };\n };\n\n const getOptionProps = (option: DropdownOption, index: number) => {\n const highlighted = option === highlightedOption;\n const groupState = isGroup(option.option) ? getGroupState(option.option) : undefined;\n const selected = __selectedOptions.indexOf(option) > -1 || !!groupState?.selected;\n const nextOption = options[index + 1]?.option;\n const isNextSelected =\n !!nextOption && isGroup(nextOption)\n ? getGroupState(nextOption).selected\n : __selectedOptions.indexOf(options[index + 1]) > -1;\n\n const optionProps: any = {\n key: index,\n option,\n highlighted,\n selected,\n isNextSelected,\n indeterminate: !!groupState?.indeterminate,\n ['data-mouse-target']: isHighlightable(option) ? index : -1,\n id: getOptionId(menuId, index),\n };\n\n return optionProps;\n };\n\n const prevOpen = usePrevious<boolean>(isOpen);\n useEffect(() => {\n // highlight the first selected option, when opening the Select component without filter input\n // keep the focus in the filter input when opening, so that screenreader can recognize the combobox\n if (isOpen && !prevOpen && hasSelectedOption && !hasFilter) {\n setHighlightedIndexWithMouse(options.indexOf(__selectedOptions[0]));\n }\n }, [isOpen, __selectedOptions, hasSelectedOption, setHighlightedIndexWithMouse, options, prevOpen, hasFilter]);\n\n useEffect(() => {\n if (isOpen) {\n // dropdown-fit calculations ensure that the dropdown will fit inside the current\n // viewport, so prevent the browser from trying to scroll it into view (e.g. if\n // scroll-padding-top is set on a parent)\n activeRef.current?.focus({ preventScroll: true });\n }\n }, [isOpen, activeRef]);\n\n useForwardFocus(externalRef, triggerRef as React.RefObject<HTMLElement>);\n const highlightedGroupSelected =\n !!highlightedOption && isGroup(highlightedOption.option) && getGroupState(highlightedOption.option).selected;\n const announceSelected =\n !!highlightedOption && (__selectedOptions.indexOf(highlightedOption) > -1 || highlightedGroupSelected);\n\n return {\n isOpen,\n highlightedOption,\n highlightedIndex,\n highlightType,\n getTriggerProps,\n getDropdownProps,\n getMenuProps,\n getFilterProps,\n getOptionProps,\n highlightOption: highlightOptionWithKeyboard,\n selectOption,\n announceSelected,\n };\n}\n"]}
|
|
@@ -1,28 +1,33 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"body-cell": "awsui_body-
|
|
5
|
-
"body-cell-wrap": "awsui_body-cell-
|
|
6
|
-
"is-visual-refresh": "awsui_is-visual-
|
|
7
|
-
"has-striped-rows": "awsui_has-striped-
|
|
8
|
-
"body-cell-edit-active": "awsui_body-cell-edit-
|
|
9
|
-
"body-cell-editable": "awsui_body-cell-
|
|
10
|
-
"has-
|
|
11
|
-
"
|
|
12
|
-
"body-cell-
|
|
13
|
-
"body-cell-
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"body-cell-
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"body-cell-
|
|
22
|
-
"body-cell-
|
|
23
|
-
"body-cell-
|
|
24
|
-
"body-cell-
|
|
25
|
-
"body-cell-
|
|
26
|
-
"body-cell-
|
|
4
|
+
"body-cell": "awsui_body-cell_c6tup_acs3p_93",
|
|
5
|
+
"body-cell-wrap": "awsui_body-cell-wrap_c6tup_acs3p_103",
|
|
6
|
+
"is-visual-refresh": "awsui_is-visual-refresh_c6tup_acs3p_115",
|
|
7
|
+
"has-striped-rows": "awsui_has-striped-rows_c6tup_acs3p_127",
|
|
8
|
+
"body-cell-edit-active": "awsui_body-cell-edit-active_c6tup_acs3p_130",
|
|
9
|
+
"body-cell-editable": "awsui_body-cell-editable_c6tup_acs3p_130",
|
|
10
|
+
"has-striped-rows-sticky-cell-pad-left": "awsui_has-striped-rows-sticky-cell-pad-left_c6tup_acs3p_136",
|
|
11
|
+
"has-selection": "awsui_has-selection_c6tup_acs3p_139",
|
|
12
|
+
"body-cell-first-row": "awsui_body-cell-first-row_c6tup_acs3p_145",
|
|
13
|
+
"body-cell-last-row": "awsui_body-cell-last-row_c6tup_acs3p_148",
|
|
14
|
+
"body-cell-selected": "awsui_body-cell-selected_c6tup_acs3p_148",
|
|
15
|
+
"has-footer": "awsui_has-footer_c6tup_acs3p_148",
|
|
16
|
+
"body-cell-shaded": "awsui_body-cell-shaded_c6tup_acs3p_158",
|
|
17
|
+
"sticky-cell": "awsui_sticky-cell_c6tup_acs3p_175",
|
|
18
|
+
"sticky-cell-pad-left": "awsui_sticky-cell-pad-left_c6tup_acs3p_183",
|
|
19
|
+
"sticky-cell-last-right": "awsui_sticky-cell-last-right_c6tup_acs3p_200",
|
|
20
|
+
"sticky-cell-last-left": "awsui_sticky-cell-last-left_c6tup_acs3p_204",
|
|
21
|
+
"body-cell-next-selected": "awsui_body-cell-next-selected_c6tup_acs3p_227",
|
|
22
|
+
"body-cell-prev-selected": "awsui_body-cell-prev-selected_c6tup_acs3p_231",
|
|
23
|
+
"body-cell-success": "awsui_body-cell-success_c6tup_acs3p_255",
|
|
24
|
+
"body-cell-editor": "awsui_body-cell-editor_c6tup_acs3p_255",
|
|
25
|
+
"body-cell-success-form": "awsui_body-cell-success-form_c6tup_acs3p_277",
|
|
26
|
+
"body-cell-editor-form": "awsui_body-cell-editor-form_c6tup_acs3p_277",
|
|
27
|
+
"body-cell-success-row": "awsui_body-cell-success-row_c6tup_acs3p_286",
|
|
28
|
+
"body-cell-editor-row": "awsui_body-cell-editor-row_c6tup_acs3p_286",
|
|
29
|
+
"body-cell-success-controls": "awsui_body-cell-success-controls_c6tup_acs3p_296",
|
|
30
|
+
"body-cell-editor-controls": "awsui_body-cell-editor-controls_c6tup_acs3p_296",
|
|
31
|
+
"body-cell-has-success": "awsui_body-cell-has-success_c6tup_acs3p_315"
|
|
27
32
|
};
|
|
28
33
|
|
|
@@ -90,7 +90,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
90
90
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
91
91
|
SPDX-License-Identifier: Apache-2.0
|
|
92
92
|
*/
|
|
93
|
-
.awsui_body-
|
|
93
|
+
.awsui_body-cell_c6tup_acs3p_93:not(#\9) {
|
|
94
94
|
box-sizing: border-box;
|
|
95
95
|
padding: var(--space-scaled-xs-6859qs, 8px) var(--space-scaled-l-t03y3z, 20px) calc(
|
|
96
96
|
var(--space-scaled-xs-6859qs, 8px) + (var(--border-item-width-yvnixs, 1px) - var(--border-divider-list-width-hacikr, 1px))
|
|
@@ -100,19 +100,19 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
100
100
|
border-bottom: var(--border-divider-list-width-hacikr, 1px) solid var(--color-border-divider-default-k96bks, #eaeded);
|
|
101
101
|
font-weight: inherit;
|
|
102
102
|
}
|
|
103
|
-
.awsui_body-
|
|
103
|
+
.awsui_body-cell_c6tup_acs3p_93:not(#\9):not(.awsui_body-cell-wrap_c6tup_acs3p_103) {
|
|
104
104
|
white-space: nowrap;
|
|
105
105
|
overflow: hidden;
|
|
106
106
|
text-overflow: ellipsis;
|
|
107
107
|
}
|
|
108
|
-
.awsui_body-
|
|
108
|
+
.awsui_body-cell_c6tup_acs3p_93:not(#\9):first-child {
|
|
109
109
|
border-left: var(--border-item-width-yvnixs, 1px) solid transparent;
|
|
110
110
|
}
|
|
111
|
-
.awsui_body-
|
|
111
|
+
.awsui_body-cell_c6tup_acs3p_93:not(#\9):last-child {
|
|
112
112
|
border-right: var(--border-item-width-yvnixs, 1px) solid transparent;
|
|
113
113
|
padding-right: calc(var(--space-l-4vl6xu, 20px) - var(--border-item-width-yvnixs, 1px));
|
|
114
114
|
}
|
|
115
|
-
.awsui_body-
|
|
115
|
+
.awsui_body-cell_c6tup_acs3p_93.awsui_is-visual-refresh_c6tup_acs3p_115:not(#\9):first-child {
|
|
116
116
|
/*
|
|
117
117
|
Striped rows requires additional left padding because the
|
|
118
118
|
shaded background makes the child content appear too close
|
|
@@ -124,85 +124,135 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
124
124
|
that the placeholder border would consume.
|
|
125
125
|
*/
|
|
126
126
|
}
|
|
127
|
-
.awsui_body-
|
|
127
|
+
.awsui_body-cell_c6tup_acs3p_93.awsui_is-visual-refresh_c6tup_acs3p_115:not(#\9):first-child:not(.awsui_has-striped-rows_c6tup_acs3p_127) {
|
|
128
128
|
padding-left: var(--space-xxxs-k2w98v, 2px);
|
|
129
129
|
}
|
|
130
|
-
.awsui_body-
|
|
130
|
+
.awsui_body-cell_c6tup_acs3p_93.awsui_is-visual-refresh_c6tup_acs3p_115:not(#\9):first-child:not(.awsui_has-striped-rows_c6tup_acs3p_127):not(.awsui_body-cell-edit-active_c6tup_acs3p_130).awsui_body-cell-editable_c6tup_acs3p_130:hover {
|
|
131
131
|
padding-left: calc(var(--space-xxxs-k2w98v, 2px) + var(--border-divider-list-width-hacikr, 1px));
|
|
132
132
|
}
|
|
133
|
-
.awsui_body-
|
|
133
|
+
.awsui_body-cell_c6tup_acs3p_93.awsui_is-visual-refresh_c6tup_acs3p_115:not(#\9):first-child:first-child.awsui_has-striped-rows_c6tup_acs3p_127 {
|
|
134
134
|
padding-left: var(--space-xxs-ynfts5, 4px);
|
|
135
135
|
}
|
|
136
|
-
.awsui_body-
|
|
136
|
+
.awsui_body-cell_c6tup_acs3p_93.awsui_is-visual-refresh_c6tup_acs3p_115:not(#\9):first-child:first-child.awsui_has-striped-rows-sticky-cell-pad-left_c6tup_acs3p_136 {
|
|
137
|
+
padding-left: var(--space-table-horizontal-njdbej, 0px);
|
|
138
|
+
}
|
|
139
|
+
.awsui_body-cell_c6tup_acs3p_93.awsui_is-visual-refresh_c6tup_acs3p_115:not(#\9):first-child:not(.awsui_has-selection_c6tup_acs3p_139):not(.awsui_body-cell-editable_c6tup_acs3p_130) {
|
|
137
140
|
border-left: none;
|
|
138
141
|
}
|
|
139
|
-
.awsui_body-
|
|
142
|
+
.awsui_body-cell_c6tup_acs3p_93:not(#\9):first-child:not(.awsui_is-visual-refresh_c6tup_acs3p_115) {
|
|
140
143
|
padding-left: calc(var(--space-l-4vl6xu, 20px) - var(--border-item-width-yvnixs, 1px));
|
|
141
144
|
}
|
|
142
|
-
.awsui_body-cell-first-
|
|
145
|
+
.awsui_body-cell-first-row_c6tup_acs3p_145:not(#\9) {
|
|
143
146
|
border-top: var(--border-item-width-yvnixs, 1px) solid transparent;
|
|
144
147
|
}
|
|
145
|
-
.awsui_body-cell-last-
|
|
148
|
+
.awsui_body-cell-last-row_c6tup_acs3p_148:not(#\9):not(.awsui_body-cell-selected_c6tup_acs3p_148):not(.awsui_has-footer_c6tup_acs3p_148) {
|
|
146
149
|
border-bottom: var(--border-item-width-yvnixs, 1px) solid transparent;
|
|
147
150
|
}
|
|
148
|
-
.awsui_body-cell-last-
|
|
151
|
+
.awsui_body-cell-last-row_c6tup_acs3p_148:not(#\9):not(.awsui_body-cell-selected_c6tup_acs3p_148).awsui_has-footer_c6tup_acs3p_148 {
|
|
149
152
|
/*
|
|
150
153
|
Add a bottom border to the body cells of the last row as a separator between the
|
|
151
154
|
table and the footer
|
|
152
155
|
*/
|
|
153
156
|
border-bottom: var(--border-divider-section-width-5a4cv1, 1px) solid var(--color-border-divider-default-k96bks, #eaeded);
|
|
154
157
|
}
|
|
155
|
-
.awsui_body-cell-
|
|
158
|
+
.awsui_body-cell-shaded_c6tup_acs3p_158:not(#\9) {
|
|
156
159
|
background: var(--color-background-cell-shaded-y6pwcp, #f2f3f3);
|
|
157
160
|
}
|
|
158
|
-
.awsui_body-cell-
|
|
161
|
+
.awsui_body-cell-selected_c6tup_acs3p_148:not(#\9) {
|
|
159
162
|
background-color: var(--color-background-item-selected-fva7ca, #f1faff);
|
|
160
163
|
border-top: var(--border-item-width-yvnixs, 1px) solid var(--color-border-item-selected-592lau, #0073bb);
|
|
161
164
|
border-bottom: var(--border-item-width-yvnixs, 1px) solid var(--color-border-item-selected-592lau, #0073bb);
|
|
162
165
|
padding-bottom: var(--space-scaled-xs-6859qs, 8px);
|
|
163
166
|
}
|
|
164
|
-
.awsui_body-cell-
|
|
167
|
+
.awsui_body-cell-selected_c6tup_acs3p_148:not(#\9):first-child {
|
|
165
168
|
border-left: var(--border-item-width-yvnixs, 1px) solid var(--color-border-item-selected-592lau, #0073bb);
|
|
166
169
|
border-radius: var(--border-radius-item-wjpc1f, 0px) 0 0 var(--border-radius-item-wjpc1f, 0px);
|
|
167
170
|
}
|
|
168
|
-
.awsui_body-cell-
|
|
171
|
+
.awsui_body-cell-selected_c6tup_acs3p_148:not(#\9):last-child {
|
|
169
172
|
border-right: var(--border-item-width-yvnixs, 1px) solid var(--color-border-item-selected-592lau, #0073bb);
|
|
170
173
|
border-radius: 0 var(--border-radius-item-wjpc1f, 0px) var(--border-radius-item-wjpc1f, 0px) 0;
|
|
171
174
|
}
|
|
172
|
-
.awsui_body-
|
|
175
|
+
.awsui_body-cell_c6tup_acs3p_93.awsui_sticky-cell_c6tup_acs3p_175:not(#\9) {
|
|
176
|
+
position: sticky;
|
|
177
|
+
background: var(--color-background-container-content-o88wxm, #ffffff);
|
|
178
|
+
z-index: 798;
|
|
179
|
+
transition-property: padding;
|
|
180
|
+
transition-duration: var(--motion-duration-transition-show-quick-w3nd9c, 90ms);
|
|
181
|
+
transition-timing-function: var(--motion-easing-sticky-ckeqjc, ease-out);
|
|
182
|
+
}
|
|
183
|
+
.awsui_body-cell_c6tup_acs3p_93.awsui_sticky-cell-pad-left_c6tup_acs3p_183:not(#\9):not(.awsui_has-selection_c6tup_acs3p_139):not(.awsui_is-visual-refresh_c6tup_acs3p_115.awsui_body-cell_c6tup_acs3p_93:first-child.awsui_has-striped-rows_c6tup_acs3p_127) {
|
|
184
|
+
padding-left: var(--space-table-horizontal-njdbej, 0px);
|
|
185
|
+
}
|
|
186
|
+
.awsui_body-cell_c6tup_acs3p_93.awsui_sticky-cell_c6tup_acs3p_175.awsui_body-cell-shaded_c6tup_acs3p_158:not(#\9) {
|
|
187
|
+
background: var(--color-background-cell-shaded-y6pwcp, #f2f3f3);
|
|
188
|
+
}
|
|
189
|
+
.awsui_body-cell_c6tup_acs3p_93.awsui_sticky-cell_c6tup_acs3p_175.awsui_body-cell-selected_c6tup_acs3p_148:not(#\9) {
|
|
190
|
+
background-color: var(--color-background-item-selected-fva7ca, #f1faff);
|
|
191
|
+
}
|
|
192
|
+
.awsui_body-cell_c6tup_acs3p_93.awsui_sticky-cell_c6tup_acs3p_175.awsui_body-cell-selected_c6tup_acs3p_148:not(#\9):first-child {
|
|
193
|
+
box-shadow: 0 0 0 4px var(--color-background-container-content-o88wxm, #ffffff);
|
|
194
|
+
clip-path: inset(0 0 0 0);
|
|
195
|
+
}
|
|
196
|
+
.awsui_body-cell_c6tup_acs3p_93.awsui_sticky-cell_c6tup_acs3p_175.awsui_body-cell-selected_c6tup_acs3p_148:not(#\9):last-child {
|
|
197
|
+
box-shadow: 4px 0 0 0 var(--color-background-container-content-o88wxm, #ffffff);
|
|
198
|
+
clip-path: inset(0 0 0 0);
|
|
199
|
+
}
|
|
200
|
+
.awsui_body-cell_c6tup_acs3p_93.awsui_sticky-cell_c6tup_acs3p_175.awsui_body-cell-selected_c6tup_acs3p_148:not(#\9):last-child.awsui_sticky-cell-last-right_c6tup_acs3p_200 {
|
|
201
|
+
box-shadow: var(--shadow-sticky-column-last-ew47wj, -4px 0 8px 0 rgba(0, 28, 36, 0.1)), 8px 0 0 0 var(--color-background-container-content-o88wxm, #ffffff);
|
|
202
|
+
clip-path: inset(0 0 0 -24px);
|
|
203
|
+
}
|
|
204
|
+
.awsui_body-cell_c6tup_acs3p_93.awsui_sticky-cell-last-left_c6tup_acs3p_204:not(#\9) {
|
|
205
|
+
box-shadow: var(--shadow-sticky-column-first-wg40pz, 4px 0 8px 0 rgba(0, 28, 36, 0.1));
|
|
206
|
+
clip-path: inset(0px -24px 0px 0px);
|
|
207
|
+
}
|
|
208
|
+
.awsui_body-cell_c6tup_acs3p_93.awsui_sticky-cell-last-right_c6tup_acs3p_200:not(#\9) {
|
|
209
|
+
box-shadow: var(--shadow-sticky-column-last-ew47wj, -4px 0 8px 0 rgba(0, 28, 36, 0.1));
|
|
210
|
+
clip-path: inset(0 0 0 -24px);
|
|
211
|
+
}
|
|
212
|
+
@media (prefers-reduced-motion: reduce) {
|
|
213
|
+
.awsui_body-cell_c6tup_acs3p_93.awsui_sticky-cell_c6tup_acs3p_175:not(#\9) {
|
|
214
|
+
animation: none;
|
|
215
|
+
transition: none;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
.awsui-motion-disabled .awsui_body-cell_c6tup_acs3p_93.awsui_sticky-cell_c6tup_acs3p_175:not(#\9), .awsui-mode-entering .awsui_body-cell_c6tup_acs3p_93.awsui_sticky-cell_c6tup_acs3p_175:not(#\9) {
|
|
219
|
+
animation: none;
|
|
220
|
+
transition: none;
|
|
221
|
+
}
|
|
222
|
+
.awsui_body-cell-selected_c6tup_acs3p_148:not(#\9):not(:first-child) {
|
|
173
223
|
padding-top: calc(
|
|
174
224
|
var(--space-scaled-xs-6859qs, 8px) + (var(--border-item-width-yvnixs, 1px) - var(--border-divider-list-width-hacikr, 1px))
|
|
175
225
|
);
|
|
176
226
|
}
|
|
177
|
-
.awsui_body-
|
|
227
|
+
.awsui_body-cell_c6tup_acs3p_93:not(#\9):not(.awsui_body-cell-selected_c6tup_acs3p_148).awsui_body-cell-next-selected_c6tup_acs3p_227 {
|
|
178
228
|
border-bottom: 0;
|
|
179
229
|
padding-bottom: calc(var(--space-scaled-xs-6859qs, 8px) + var(--border-divider-list-width-hacikr, 1px));
|
|
180
230
|
}
|
|
181
|
-
.awsui_body-cell-
|
|
231
|
+
.awsui_body-cell-selected_c6tup_acs3p_148.awsui_body-cell-prev-selected_c6tup_acs3p_231:not(#\9) {
|
|
182
232
|
padding-top: calc(
|
|
183
233
|
var(--space-scaled-xs-6859qs, 8px) + (var(--border-item-width-yvnixs, 1px) - var(--border-divider-list-width-hacikr, 1px))
|
|
184
234
|
);
|
|
185
235
|
border-top: var(--border-divider-list-width-hacikr, 1px) solid var(--color-border-item-placeholder-wtgwev, transparent);
|
|
186
236
|
}
|
|
187
|
-
.awsui_body-cell-
|
|
237
|
+
.awsui_body-cell-selected_c6tup_acs3p_148.awsui_body-cell-next-selected_c6tup_acs3p_227:not(#\9) {
|
|
188
238
|
border-bottom-width: var(--border-divider-list-width-hacikr, 1px);
|
|
189
239
|
}
|
|
190
|
-
.awsui_body-cell-
|
|
240
|
+
.awsui_body-cell-selected_c6tup_acs3p_148.awsui_body-cell-next-selected_c6tup_acs3p_227:not(#\9):first-child {
|
|
191
241
|
border-bottom-left-radius: 0;
|
|
192
242
|
}
|
|
193
|
-
.awsui_body-cell-
|
|
243
|
+
.awsui_body-cell-selected_c6tup_acs3p_148.awsui_body-cell-next-selected_c6tup_acs3p_227:not(#\9):last-child {
|
|
194
244
|
border-bottom-right-radius: 0;
|
|
195
245
|
}
|
|
196
|
-
.awsui_body-cell-
|
|
246
|
+
.awsui_body-cell-selected_c6tup_acs3p_148.awsui_body-cell-prev-selected_c6tup_acs3p_231:not(#\9):first-child {
|
|
197
247
|
border-top-left-radius: 0;
|
|
198
248
|
}
|
|
199
|
-
.awsui_body-cell-
|
|
249
|
+
.awsui_body-cell-selected_c6tup_acs3p_148.awsui_body-cell-prev-selected_c6tup_acs3p_231:not(#\9):last-child {
|
|
200
250
|
border-top-right-radius: 0;
|
|
201
251
|
}
|
|
202
|
-
.awsui_body-cell-
|
|
252
|
+
.awsui_body-cell-selected_c6tup_acs3p_148:not(#\9):not(.awsui_body-cell-prev-selected_c6tup_acs3p_231) {
|
|
203
253
|
padding-top: var(--space-scaled-xs-6859qs, 8px);
|
|
204
254
|
}
|
|
205
|
-
.awsui_body-cell-
|
|
255
|
+
.awsui_body-cell-success_c6tup_acs3p_255:not(#\9), .awsui_body-cell-editor_c6tup_acs3p_255:not(#\9) {
|
|
206
256
|
top: 0;
|
|
207
257
|
right: 0;
|
|
208
258
|
bottom: 0;
|
|
@@ -218,62 +268,68 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
218
268
|
padding-right: calc(var(--space-xs-rsr2qu, 8px) + var(--space-xxs-ynfts5, 4px));
|
|
219
269
|
color: var(--color-text-button-normal-default-kwrutp, #545b64);
|
|
220
270
|
}
|
|
221
|
-
.awsui_body-cell-
|
|
271
|
+
.awsui_body-cell-success_c6tup_acs3p_255:not(#\9):hover, .awsui_body-cell-editor_c6tup_acs3p_255:not(#\9):hover {
|
|
222
272
|
color: var(--color-text-button-normal-hover-de4793, #16191f);
|
|
223
273
|
}
|
|
224
|
-
.awsui_body-cell-
|
|
274
|
+
.awsui_body-cell-success_c6tup_acs3p_255:not(#\9):active, .awsui_body-cell-editor_c6tup_acs3p_255:not(#\9):active {
|
|
225
275
|
color: var(--color-text-button-normal-active-hvhe2o, #16191f);
|
|
226
276
|
}
|
|
227
|
-
.awsui_body-cell-success-
|
|
277
|
+
.awsui_body-cell-success-form_c6tup_acs3p_277:not(#\9), .awsui_body-cell-editor-form_c6tup_acs3p_277:not(#\9) {
|
|
228
278
|
margin: calc(-1 * var(--space-xs-rsr2qu, 8px)) calc(-1.5 * var(--space-xs-rsr2qu, 8px));
|
|
229
279
|
}
|
|
230
|
-
.awsui_is-visual-
|
|
280
|
+
.awsui_is-visual-refresh_c6tup_acs3p_115.awsui_body-cell_c6tup_acs3p_93:not(#\9):first-child.awsui_has-striped-rows_c6tup_acs3p_127 > .awsui_body-cell-success-form_c6tup_acs3p_277, .awsui_is-visual-refresh_c6tup_acs3p_115.awsui_body-cell_c6tup_acs3p_93:not(#\9):first-child.awsui_has-striped-rows_c6tup_acs3p_127 > .awsui_body-cell-editor-form_c6tup_acs3p_277 {
|
|
231
281
|
margin-left: calc(-1 * var(--space-xxs-ynfts5, 4px));
|
|
232
282
|
}
|
|
233
|
-
.awsui_is-visual-
|
|
283
|
+
.awsui_is-visual-refresh_c6tup_acs3p_115.awsui_body-cell_c6tup_acs3p_93:not(#\9):first-child:not(.awsui_has-striped-rows_c6tup_acs3p_127) > .awsui_body-cell-success-form_c6tup_acs3p_277, .awsui_is-visual-refresh_c6tup_acs3p_115.awsui_body-cell_c6tup_acs3p_93:not(#\9):first-child:not(.awsui_has-striped-rows_c6tup_acs3p_127) > .awsui_body-cell-editor-form_c6tup_acs3p_277 {
|
|
234
284
|
margin-left: calc(-1 * var(--space-xxxs-k2w98v, 2px));
|
|
235
285
|
}
|
|
236
|
-
.awsui_body-cell-success-
|
|
286
|
+
.awsui_body-cell-success-row_c6tup_acs3p_286:not(#\9), .awsui_body-cell-editor-row_c6tup_acs3p_286:not(#\9) {
|
|
237
287
|
display: flex;
|
|
238
288
|
flex-flow: row nowrap;
|
|
239
289
|
align-items: center;
|
|
240
290
|
justify-content: space-between;
|
|
241
291
|
column-gap: var(--space-xxs-ynfts5, 4px);
|
|
242
292
|
}
|
|
243
|
-
.awsui_body-cell-success-
|
|
293
|
+
.awsui_body-cell-success-row_c6tup_acs3p_286 > :not(#\9):not(:last-child), .awsui_body-cell-editor-row_c6tup_acs3p_286 > :not(#\9):not(:last-child) {
|
|
244
294
|
flex-grow: 1;
|
|
245
295
|
}
|
|
246
|
-
.awsui_body-cell-success-
|
|
296
|
+
.awsui_body-cell-success-controls_c6tup_acs3p_296:not(#\9), .awsui_body-cell-editor-controls_c6tup_acs3p_296:not(#\9) {
|
|
247
297
|
flex-shrink: 0;
|
|
248
298
|
}
|
|
249
|
-
.awsui_body-
|
|
299
|
+
.awsui_body-cell_c6tup_acs3p_93.awsui_body-cell-editable_c6tup_acs3p_130:not(#\9) {
|
|
250
300
|
position: relative;
|
|
251
301
|
cursor: pointer;
|
|
252
302
|
}
|
|
253
|
-
.awsui_body-
|
|
303
|
+
.awsui_body-cell_c6tup_acs3p_93.awsui_body-cell-editable_c6tup_acs3p_130.awsui_sticky-cell_c6tup_acs3p_175:not(#\9) {
|
|
304
|
+
position: sticky;
|
|
305
|
+
}
|
|
306
|
+
.awsui_body-cell_c6tup_acs3p_93.awsui_body-cell-editable_c6tup_acs3p_130.awsui_body-cell-edit-active_c6tup_acs3p_130:not(#\9) {
|
|
254
307
|
overflow: visible;
|
|
255
308
|
}
|
|
256
|
-
.awsui_body-
|
|
309
|
+
.awsui_body-cell_c6tup_acs3p_93.awsui_body-cell-editable_c6tup_acs3p_130.awsui_body-cell-edit-active_c6tup_acs3p_130.awsui_sticky-cell_c6tup_acs3p_175:not(#\9) {
|
|
310
|
+
position: sticky;
|
|
311
|
+
}
|
|
312
|
+
.awsui_body-cell_c6tup_acs3p_93.awsui_body-cell-editable_c6tup_acs3p_130:not(#\9):not(.awsui_body-cell-edit-active_c6tup_acs3p_130) > .awsui_body-cell-editor_c6tup_acs3p_255 {
|
|
257
313
|
opacity: 0;
|
|
258
314
|
}
|
|
259
|
-
.awsui_body-
|
|
315
|
+
.awsui_body-cell_c6tup_acs3p_93.awsui_body-cell-editable_c6tup_acs3p_130:not(#\9):not(.awsui_body-cell-edit-active_c6tup_acs3p_130).awsui_body-cell-has-success_c6tup_acs3p_315 {
|
|
260
316
|
padding-right: calc(var(--space-scaled-l-t03y3z, 20px) + var(--space-l-4vl6xu, 20px));
|
|
261
317
|
}
|
|
262
|
-
.awsui_body-
|
|
318
|
+
.awsui_body-cell_c6tup_acs3p_93.awsui_body-cell-editable_c6tup_acs3p_130:not(#\9):not(.awsui_body-cell-edit-active_c6tup_acs3p_130):focus-within {
|
|
263
319
|
padding-right: calc(var(--space-scaled-l-t03y3z, 20px) + var(--space-l-4vl6xu, 20px));
|
|
264
320
|
position: relative;
|
|
265
321
|
}
|
|
266
|
-
.awsui_body-
|
|
322
|
+
.awsui_body-cell_c6tup_acs3p_93.awsui_body-cell-editable_c6tup_acs3p_130:not(#\9):not(.awsui_body-cell-edit-active_c6tup_acs3p_130):focus-within > .awsui_body-cell-editor_c6tup_acs3p_255 {
|
|
267
323
|
opacity: 1;
|
|
268
324
|
}
|
|
269
|
-
.awsui_body-
|
|
325
|
+
.awsui_body-cell_c6tup_acs3p_93.awsui_body-cell-editable_c6tup_acs3p_130:not(#\9):not(.awsui_body-cell-edit-active_c6tup_acs3p_130):focus-within > .awsui_body-cell-success_c6tup_acs3p_255 {
|
|
270
326
|
opacity: 0;
|
|
271
327
|
}
|
|
272
|
-
.awsui_body-
|
|
328
|
+
.awsui_body-cell_c6tup_acs3p_93.awsui_body-cell-editable_c6tup_acs3p_130:not(#\9):not(.awsui_body-cell-edit-active_c6tup_acs3p_130):focus-within {
|
|
273
329
|
outline: 2px dotted transparent;
|
|
274
330
|
outline-offset: calc(calc(-1 * var(--space-scaled-xxs-95dhkm, 4px)) - 1px);
|
|
275
331
|
}
|
|
276
|
-
.awsui_body-
|
|
332
|
+
.awsui_body-cell_c6tup_acs3p_93.awsui_body-cell-editable_c6tup_acs3p_130:not(#\9):not(.awsui_body-cell-edit-active_c6tup_acs3p_130):focus-within::before {
|
|
277
333
|
content: " ";
|
|
278
334
|
display: block;
|
|
279
335
|
position: absolute;
|
|
@@ -284,7 +340,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
284
340
|
border-radius: var(--border-radius-control-default-focus-ring-hekmgc, 2px);
|
|
285
341
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-n5kd8g, #0073bb);
|
|
286
342
|
}
|
|
287
|
-
.awsui_body-
|
|
343
|
+
.awsui_body-cell_c6tup_acs3p_93.awsui_body-cell-editable_c6tup_acs3p_130:not(#\9):not(.awsui_body-cell-edit-active_c6tup_acs3p_130):hover {
|
|
288
344
|
position: relative;
|
|
289
345
|
background-color: var(--color-background-dropdown-item-hover-hgdj8r, #f2f3f3);
|
|
290
346
|
border: var(--border-divider-list-width-hacikr, 1px) solid var(--color-border-control-default-bwkbmv, #879596);
|
|
@@ -292,38 +348,38 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
292
348
|
right: calc(-1 * var(--border-divider-list-width-hacikr, 1px));
|
|
293
349
|
padding-right: calc(var(--space-scaled-l-t03y3z, 20px) + var(--space-l-4vl6xu, 20px));
|
|
294
350
|
}
|
|
295
|
-
.awsui_body-
|
|
351
|
+
.awsui_body-cell_c6tup_acs3p_93.awsui_body-cell-editable_c6tup_acs3p_130:not(#\9):not(.awsui_body-cell-edit-active_c6tup_acs3p_130):hover > .awsui_body-cell-editor_c6tup_acs3p_255 {
|
|
296
352
|
opacity: 1;
|
|
297
353
|
}
|
|
298
|
-
.awsui_body-
|
|
354
|
+
.awsui_body-cell_c6tup_acs3p_93.awsui_body-cell-editable_c6tup_acs3p_130:not(#\9):not(.awsui_body-cell-edit-active_c6tup_acs3p_130):hover > .awsui_body-cell-success_c6tup_acs3p_255 {
|
|
299
355
|
opacity: 0;
|
|
300
356
|
}
|
|
301
|
-
.awsui_body-
|
|
357
|
+
.awsui_body-cell_c6tup_acs3p_93.awsui_body-cell-editable_c6tup_acs3p_130:not(#\9):not(.awsui_body-cell-edit-active_c6tup_acs3p_130):hover:first-child {
|
|
302
358
|
left: 0;
|
|
303
359
|
right: 0;
|
|
304
360
|
}
|
|
305
|
-
.awsui_body-
|
|
361
|
+
.awsui_body-cell_c6tup_acs3p_93.awsui_body-cell-editable_c6tup_acs3p_130:not(#\9):not(.awsui_body-cell-edit-active_c6tup_acs3p_130):hover > .awsui_body-cell-editor_c6tup_acs3p_255 {
|
|
306
362
|
padding-right: calc(var(--space-xs-rsr2qu, 8px) + var(--space-xxs-ynfts5, 4px) - (2 * var(--border-divider-list-width-hacikr, 1px)));
|
|
307
363
|
}
|
|
308
|
-
.awsui_body-
|
|
364
|
+
.awsui_body-cell_c6tup_acs3p_93.awsui_body-cell-editable_c6tup_acs3p_130:not(#\9):not(.awsui_body-cell-edit-active_c6tup_acs3p_130):hover.awsui_body-cell-last-row_c6tup_acs3p_148.awsui_body-cell-selected_c6tup_acs3p_148, .awsui_body-cell_c6tup_acs3p_93.awsui_body-cell-editable_c6tup_acs3p_130:not(#\9):not(.awsui_body-cell-edit-active_c6tup_acs3p_130):hover.awsui_body-cell-next-selected_c6tup_acs3p_227 {
|
|
309
365
|
padding-top: calc(var(--space-scaled-xs-6859qs, 8px) - calc(var(--border-divider-list-width-hacikr, 1px) / 2));
|
|
310
366
|
padding-bottom: calc(var(--space-scaled-xs-6859qs, 8px) - calc(var(--border-divider-list-width-hacikr, 1px) / 2));
|
|
311
367
|
}
|
|
312
|
-
.awsui_body-
|
|
368
|
+
.awsui_body-cell_c6tup_acs3p_93.awsui_body-cell-editable_c6tup_acs3p_130:not(#\9):not(.awsui_body-cell-edit-active_c6tup_acs3p_130):hover.awsui_body-cell-last-row_c6tup_acs3p_148:not(.awsui_body-cell-selected_c6tup_acs3p_148) {
|
|
313
369
|
padding-top: calc(var(--space-scaled-xs-6859qs, 8px) - calc(var(--border-divider-list-width-hacikr, 1px)));
|
|
314
370
|
}
|
|
315
|
-
.awsui_body-
|
|
371
|
+
.awsui_body-cell_c6tup_acs3p_93.awsui_body-cell-editable_c6tup_acs3p_130:not(#\9):not(.awsui_body-cell-edit-active_c6tup_acs3p_130):hover.awsui_body-cell-first-row_c6tup_acs3p_145:not(.awsui_body-cell-selected_c6tup_acs3p_148) {
|
|
316
372
|
padding-top: calc(var(--space-scaled-xs-6859qs, 8px) - calc(var(--border-divider-list-width-hacikr, 1px)));
|
|
317
373
|
padding-bottom: calc(var(--space-scaled-xs-6859qs, 8px) - calc(var(--border-divider-list-width-hacikr, 1px)));
|
|
318
374
|
}
|
|
319
|
-
.awsui_body-cell-
|
|
375
|
+
.awsui_body-cell-editable_c6tup_acs3p_130.awsui_is-visual-refresh_c6tup_acs3p_115:not(#\9):not(.awsui_body-cell-edit-active_c6tup_acs3p_130):hover:first-child {
|
|
320
376
|
border-top-left-radius: var(--border-radius-item-wjpc1f, 0px);
|
|
321
377
|
border-bottom-left-radius: var(--border-radius-item-wjpc1f, 0px);
|
|
322
378
|
}
|
|
323
|
-
.awsui_body-cell-
|
|
379
|
+
.awsui_body-cell-editable_c6tup_acs3p_130.awsui_is-visual-refresh_c6tup_acs3p_115:not(#\9):not(.awsui_body-cell-edit-active_c6tup_acs3p_130):hover:last-child {
|
|
324
380
|
border-top-right-radius: var(--border-radius-item-wjpc1f, 0px);
|
|
325
381
|
border-bottom-right-radius: var(--border-radius-item-wjpc1f, 0px);
|
|
326
382
|
}
|
|
327
|
-
.awsui_body-cell-
|
|
383
|
+
.awsui_body-cell-editable_c6tup_acs3p_130.awsui_is-visual-refresh_c6tup_acs3p_115:not(#\9):not(.awsui_body-cell-edit-active_c6tup_acs3p_130):hover.awsui_body-cell-first-row_c6tup_acs3p_145 > .awsui_body-cell-editor_c6tup_acs3p_255 {
|
|
328
384
|
padding-top: var(--border-divider-list-width-hacikr, 1px);
|
|
329
385
|
}
|
|
@@ -2,28 +2,33 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"body-cell": "awsui_body-
|
|
6
|
-
"body-cell-wrap": "awsui_body-cell-
|
|
7
|
-
"is-visual-refresh": "awsui_is-visual-
|
|
8
|
-
"has-striped-rows": "awsui_has-striped-
|
|
9
|
-
"body-cell-edit-active": "awsui_body-cell-edit-
|
|
10
|
-
"body-cell-editable": "awsui_body-cell-
|
|
11
|
-
"has-
|
|
12
|
-
"
|
|
13
|
-
"body-cell-
|
|
14
|
-
"body-cell-
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"body-cell-
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"body-cell-
|
|
23
|
-
"body-cell-
|
|
24
|
-
"body-cell-
|
|
25
|
-
"body-cell-
|
|
26
|
-
"body-cell-
|
|
27
|
-
"body-cell-
|
|
5
|
+
"body-cell": "awsui_body-cell_c6tup_acs3p_93",
|
|
6
|
+
"body-cell-wrap": "awsui_body-cell-wrap_c6tup_acs3p_103",
|
|
7
|
+
"is-visual-refresh": "awsui_is-visual-refresh_c6tup_acs3p_115",
|
|
8
|
+
"has-striped-rows": "awsui_has-striped-rows_c6tup_acs3p_127",
|
|
9
|
+
"body-cell-edit-active": "awsui_body-cell-edit-active_c6tup_acs3p_130",
|
|
10
|
+
"body-cell-editable": "awsui_body-cell-editable_c6tup_acs3p_130",
|
|
11
|
+
"has-striped-rows-sticky-cell-pad-left": "awsui_has-striped-rows-sticky-cell-pad-left_c6tup_acs3p_136",
|
|
12
|
+
"has-selection": "awsui_has-selection_c6tup_acs3p_139",
|
|
13
|
+
"body-cell-first-row": "awsui_body-cell-first-row_c6tup_acs3p_145",
|
|
14
|
+
"body-cell-last-row": "awsui_body-cell-last-row_c6tup_acs3p_148",
|
|
15
|
+
"body-cell-selected": "awsui_body-cell-selected_c6tup_acs3p_148",
|
|
16
|
+
"has-footer": "awsui_has-footer_c6tup_acs3p_148",
|
|
17
|
+
"body-cell-shaded": "awsui_body-cell-shaded_c6tup_acs3p_158",
|
|
18
|
+
"sticky-cell": "awsui_sticky-cell_c6tup_acs3p_175",
|
|
19
|
+
"sticky-cell-pad-left": "awsui_sticky-cell-pad-left_c6tup_acs3p_183",
|
|
20
|
+
"sticky-cell-last-right": "awsui_sticky-cell-last-right_c6tup_acs3p_200",
|
|
21
|
+
"sticky-cell-last-left": "awsui_sticky-cell-last-left_c6tup_acs3p_204",
|
|
22
|
+
"body-cell-next-selected": "awsui_body-cell-next-selected_c6tup_acs3p_227",
|
|
23
|
+
"body-cell-prev-selected": "awsui_body-cell-prev-selected_c6tup_acs3p_231",
|
|
24
|
+
"body-cell-success": "awsui_body-cell-success_c6tup_acs3p_255",
|
|
25
|
+
"body-cell-editor": "awsui_body-cell-editor_c6tup_acs3p_255",
|
|
26
|
+
"body-cell-success-form": "awsui_body-cell-success-form_c6tup_acs3p_277",
|
|
27
|
+
"body-cell-editor-form": "awsui_body-cell-editor-form_c6tup_acs3p_277",
|
|
28
|
+
"body-cell-success-row": "awsui_body-cell-success-row_c6tup_acs3p_286",
|
|
29
|
+
"body-cell-editor-row": "awsui_body-cell-editor-row_c6tup_acs3p_286",
|
|
30
|
+
"body-cell-success-controls": "awsui_body-cell-success-controls_c6tup_acs3p_296",
|
|
31
|
+
"body-cell-editor-controls": "awsui_body-cell-editor-controls_c6tup_acs3p_296",
|
|
32
|
+
"body-cell-has-success": "awsui_body-cell-has-success_c6tup_acs3p_315"
|
|
28
33
|
};
|
|
29
34
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { StickyColumnsModel } from '../use-sticky-columns';
|
|
2
3
|
export interface TableTdElementProps {
|
|
3
4
|
className?: string;
|
|
4
5
|
style?: React.CSSProperties;
|
|
@@ -18,6 +19,8 @@ export interface TableTdElementProps {
|
|
|
18
19
|
stripedRows?: boolean;
|
|
19
20
|
hasSelection?: boolean;
|
|
20
21
|
hasFooter?: boolean;
|
|
22
|
+
columnId: string;
|
|
23
|
+
stickyState: StickyColumnsModel;
|
|
21
24
|
isVisualRefresh?: boolean;
|
|
22
25
|
}
|
|
23
26
|
export declare const TableTdElement: React.ForwardRefExoticComponent<TableTdElementProps & React.RefAttributes<HTMLTableCellElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"td-element.d.ts","sourceRoot":"lib/default/","sources":["table/body-cell/td-element.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"td-element.d.ts","sourceRoot":"lib/default/","sources":["table/body-cell/td-element.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAuB,MAAM,uBAAuB,CAAC;AAGhF,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,SAAS,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;IACxB,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,IAAI,CACrB,KAAK,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,GAAG,KAAK,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,EAC3F,OAAO,GAAG,WAAW,GAAG,SAAS,CAClC,CAAC;IACF,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,kBAAkB,CAAC;IAChC,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,eAAO,MAAM,cAAc,kGA6E1B,CAAC"}
|