@cloudscape-design/components 3.0.738 → 3.0.740
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/autosuggest/autosuggest-option.d.ts.map +1 -1
- package/autosuggest/autosuggest-option.js +1 -1
- package/autosuggest/autosuggest-option.js.map +1 -1
- package/autosuggest/options-controller.d.ts.map +1 -1
- package/autosuggest/options-controller.js.map +1 -1
- package/button-dropdown/interfaces.d.ts +5 -0
- package/button-dropdown/interfaces.d.ts.map +1 -1
- package/button-dropdown/interfaces.js.map +1 -1
- package/button-dropdown/internal.d.ts.map +1 -1
- package/button-dropdown/internal.js +4 -4
- package/button-dropdown/internal.js.map +1 -1
- package/expandable-section/expandable-section-header.d.ts.map +1 -1
- package/expandable-section/expandable-section-header.js +6 -3
- package/expandable-section/expandable-section-header.js.map +1 -1
- package/expandable-section/interfaces.d.ts +2 -1
- package/expandable-section/interfaces.d.ts.map +1 -1
- package/expandable-section/interfaces.js.map +1 -1
- package/expandable-section/styles.css.js +34 -32
- package/expandable-section/styles.scoped.css +68 -67
- package/expandable-section/styles.selectors.js +34 -32
- package/expandable-section/utils.d.ts +1 -0
- package/expandable-section/utils.d.ts.map +1 -1
- package/expandable-section/utils.js +7 -3
- package/expandable-section/utils.js.map +1 -1
- package/i18n/messages/all.all.js +1 -1
- package/i18n/messages/all.all.json +1 -1
- package/i18n/messages/all.ar.js +1 -1
- package/i18n/messages/all.ar.json +1 -1
- package/i18n/messages/all.de.js +1 -1
- package/i18n/messages/all.de.json +1 -1
- package/i18n/messages/all.en-GB.js +1 -1
- package/i18n/messages/all.en-GB.json +1 -1
- package/i18n/messages/all.es.js +1 -1
- package/i18n/messages/all.es.json +1 -1
- package/i18n/messages/all.fr.js +1 -1
- package/i18n/messages/all.fr.json +1 -1
- package/i18n/messages/all.id.js +1 -1
- package/i18n/messages/all.id.json +1 -1
- package/i18n/messages/all.it.js +1 -1
- package/i18n/messages/all.it.json +1 -1
- package/i18n/messages/all.ja.js +1 -1
- package/i18n/messages/all.ja.json +1 -1
- package/i18n/messages/all.ko.js +1 -1
- package/i18n/messages/all.ko.json +1 -1
- package/i18n/messages/all.pt-BR.js +1 -1
- package/i18n/messages/all.pt-BR.json +1 -1
- package/i18n/messages/all.tr.js +1 -1
- package/i18n/messages/all.tr.json +1 -1
- package/i18n/messages/all.zh-CN.js +1 -1
- package/i18n/messages/all.zh-CN.json +1 -1
- package/i18n/messages/all.zh-TW.js +1 -1
- package/i18n/messages/all.zh-TW.json +1 -1
- package/internal/components/option/analytics-metadata/styles.css.js +6 -0
- package/internal/components/option/analytics-metadata/styles.scoped.css +7 -0
- package/internal/components/option/analytics-metadata/styles.selectors.js +7 -0
- package/internal/components/option/option-parts.d.ts.map +1 -1
- package/internal/components/option/option-parts.js +2 -1
- package/internal/components/option/option-parts.js.map +1 -1
- package/internal/components/selectable-item/analytics-metadata/interfaces.d.ts +11 -0
- package/internal/components/selectable-item/analytics-metadata/interfaces.d.ts.map +1 -0
- package/internal/components/selectable-item/analytics-metadata/interfaces.js +2 -0
- package/internal/components/selectable-item/analytics-metadata/interfaces.js.map +1 -0
- package/internal/components/selectable-item/analytics-metadata/styles.css.js +7 -0
- package/internal/components/selectable-item/analytics-metadata/styles.scoped.css +8 -0
- package/internal/components/selectable-item/analytics-metadata/styles.selectors.js +8 -0
- package/internal/components/selectable-item/analytics-metadata/utils.d.ts +4 -0
- package/internal/components/selectable-item/analytics-metadata/utils.d.ts.map +1 -0
- package/internal/components/selectable-item/analytics-metadata/utils.js +39 -0
- package/internal/components/selectable-item/analytics-metadata/utils.js.map +1 -0
- package/internal/components/selectable-item/index.d.ts +2 -26
- package/internal/components/selectable-item/index.d.ts.map +1 -1
- package/internal/components/selectable-item/index.js +9 -3
- package/internal/components/selectable-item/index.js.map +1 -1
- package/internal/components/selectable-item/interfaces.d.ts +35 -0
- package/internal/components/selectable-item/interfaces.d.ts.map +1 -0
- package/internal/components/selectable-item/interfaces.js +4 -0
- package/internal/components/selectable-item/interfaces.js.map +1 -0
- package/internal/components/token-list/analytics-metadata/interfaces.d.ts +9 -0
- package/internal/components/token-list/analytics-metadata/interfaces.d.ts.map +1 -0
- package/internal/components/token-list/analytics-metadata/interfaces.js +2 -0
- package/internal/components/token-list/analytics-metadata/interfaces.js.map +1 -0
- package/internal/components/token-list/token-limit-toggle.d.ts.map +1 -1
- package/internal/components/token-list/token-limit-toggle.js +9 -1
- package/internal/components/token-list/token-limit-toggle.js.map +1 -1
- package/internal/environment.js +1 -1
- package/internal/environment.json +1 -1
- package/internal/manifest.json +1 -1
- package/package.json +1 -1
- package/property-filter/controller.d.ts +4 -3
- package/property-filter/controller.d.ts.map +1 -1
- package/property-filter/controller.js +27 -11
- package/property-filter/controller.js.map +1 -1
- package/property-filter/i18n-utils.d.ts +4 -24
- package/property-filter/i18n-utils.d.ts.map +1 -1
- package/property-filter/i18n-utils.js +12 -6
- package/property-filter/i18n-utils.js.map +1 -1
- package/property-filter/interfaces.d.ts +25 -8
- package/property-filter/interfaces.d.ts.map +1 -1
- package/property-filter/interfaces.js.map +1 -1
- package/property-filter/internal.d.ts +3 -4
- package/property-filter/internal.d.ts.map +1 -1
- package/property-filter/internal.js +20 -13
- package/property-filter/internal.js.map +1 -1
- package/property-filter/styles.css.js +38 -38
- package/property-filter/styles.scoped.css +46 -38
- package/property-filter/styles.selectors.js +38 -38
- package/property-filter/token-editor.d.ts +4 -3
- package/property-filter/token-editor.d.ts.map +1 -1
- package/property-filter/token-editor.js +15 -13
- package/property-filter/token-editor.js.map +1 -1
- package/property-filter/token.d.ts +3 -3
- package/property-filter/token.d.ts.map +1 -1
- package/property-filter/token.js +46 -19
- package/property-filter/token.js.map +1 -1
- package/property-filter/utils.d.ts +12 -0
- package/property-filter/utils.d.ts.map +1 -1
- package/property-filter/utils.js +22 -0
- package/property-filter/utils.js.map +1 -1
- package/select/parts/item.d.ts.map +1 -1
- package/select/parts/item.js +1 -1
- package/select/parts/item.js.map +1 -1
- package/select/parts/multiselect-item.d.ts.map +1 -1
- package/select/parts/multiselect-item.js +1 -1
- package/select/parts/multiselect-item.js.map +1 -1
- package/test-utils/dom/property-filter/index.d.ts +17 -15
- package/test-utils/dom/property-filter/index.js +34 -39
- package/test-utils/dom/property-filter/index.js.map +1 -1
- package/test-utils/selectors/property-filter/index.d.ts +17 -15
- package/test-utils/selectors/property-filter/index.js +36 -39
- package/test-utils/selectors/property-filter/index.js.map +1 -1
- package/test-utils/tsconfig.tsbuildinfo +1 -1
- package/token-group/analytics-metadata/interfaces.d.ts +18 -0
- package/token-group/analytics-metadata/interfaces.d.ts.map +1 -0
- package/token-group/analytics-metadata/interfaces.js +2 -0
- package/token-group/analytics-metadata/interfaces.js.map +1 -0
- package/token-group/dismiss-button.d.ts.map +1 -1
- package/token-group/dismiss-button.js +9 -2
- package/token-group/dismiss-button.js.map +1 -1
- package/token-group/index.d.ts.map +1 -1
- package/token-group/index.js +9 -1
- package/token-group/index.js.map +1 -1
- package/token-group/internal.d.ts.map +1 -1
- package/token-group/internal.js +5 -2
- package/token-group/internal.js.map +1 -1
|
@@ -23,7 +23,7 @@ import tokenListStyles from '../internal/components/token-list/styles.css.js';
|
|
|
23
23
|
import styles from './styles.css.js';
|
|
24
24
|
const PropertyFilterInternal = React.forwardRef((_a, ref) => {
|
|
25
25
|
var _b;
|
|
26
|
-
var { disabled, countText, query, hideOperations, onChange, filteringProperties, filteringOptions, customGroupsText, disableFreeTextFiltering, freeTextFiltering, onLoadItems, virtualScroll, customControl, customFilterActions, filteringPlaceholder, filteringAriaLabel, filteringEmpty, filteringLoadingText, filteringFinishedText, filteringErrorText, filteringRecoveryText, filteringConstraintText, filteringStatusType, asyncProperties, tokenLimit, expandToViewport, tokenLimitShowFewerAriaLabel, tokenLimitShowMoreAriaLabel, enableTokenGroups = false,
|
|
26
|
+
var { disabled, countText, query, hideOperations, onChange, filteringProperties, filteringOptions, customGroupsText, disableFreeTextFiltering, freeTextFiltering, onLoadItems, virtualScroll, customControl, customFilterActions, filteringPlaceholder, filteringAriaLabel, filteringEmpty, filteringLoadingText, filteringFinishedText, filteringErrorText, filteringRecoveryText, filteringConstraintText, filteringStatusType, asyncProperties, tokenLimit, expandToViewport, tokenLimitShowFewerAriaLabel, tokenLimitShowMoreAriaLabel, enableTokenGroups = false, i18nStringsTokenGroups, __internalRootRef } = _a, rest = __rest(_a, ["disabled", "countText", "query", "hideOperations", "onChange", "filteringProperties", "filteringOptions", "customGroupsText", "disableFreeTextFiltering", "freeTextFiltering", "onLoadItems", "virtualScroll", "customControl", "customFilterActions", "filteringPlaceholder", "filteringAriaLabel", "filteringEmpty", "filteringLoadingText", "filteringFinishedText", "filteringErrorText", "filteringRecoveryText", "filteringConstraintText", "filteringStatusType", "asyncProperties", "tokenLimit", "expandToViewport", "tokenLimitShowFewerAriaLabel", "tokenLimitShowMoreAriaLabel", "enableTokenGroups", "i18nStringsTokenGroups", "__internalRootRef"]);
|
|
27
27
|
const [nextFocusIndex, setNextFocusIndex] = useState(null);
|
|
28
28
|
const onFocusMoved = () => setNextFocusIndex(null);
|
|
29
29
|
const tokenListRef = useListFocusController({
|
|
@@ -36,7 +36,7 @@ const PropertyFilterInternal = React.forwardRef((_a, ref) => {
|
|
|
36
36
|
const mergedRef = useMergeRefs(tokenListRef, __internalRootRef);
|
|
37
37
|
const inputRef = useRef(null);
|
|
38
38
|
const baseProps = getBaseProps(rest);
|
|
39
|
-
const i18nStrings = usePropertyFilterI18n(Object.assign(Object.assign({}, rest.i18nStrings),
|
|
39
|
+
const i18nStrings = usePropertyFilterI18n(Object.assign(Object.assign({}, rest.i18nStrings), i18nStringsTokenGroups));
|
|
40
40
|
useImperativeHandle(ref, () => ({ focus: () => { var _a; return (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus(); } }), []);
|
|
41
41
|
const showResults = !!((_b = query.tokens) === null || _b === void 0 ? void 0 : _b.length) && !disabled && !!countText;
|
|
42
42
|
const [filteringText, setFilteringText] = useState('');
|
|
@@ -67,14 +67,22 @@ const PropertyFilterInternal = React.forwardRef((_a, ref) => {
|
|
|
67
67
|
label: (_b = (_a = option.label) !== null && _a !== void 0 ? _a : option.value) !== null && _b !== void 0 ? _b : '',
|
|
68
68
|
});
|
|
69
69
|
});
|
|
70
|
+
function transformToken(tokenOrGroup, standaloneIndex) {
|
|
71
|
+
return 'operation' in tokenOrGroup
|
|
72
|
+
? {
|
|
73
|
+
operation: tokenOrGroup.operation,
|
|
74
|
+
tokens: tokenOrGroup.tokens.map(token => transformToken(token)),
|
|
75
|
+
}
|
|
76
|
+
: {
|
|
77
|
+
standaloneIndex,
|
|
78
|
+
property: tokenOrGroup.propertyKey ? getProperty(tokenOrGroup.propertyKey) : null,
|
|
79
|
+
operator: tokenOrGroup.operator,
|
|
80
|
+
value: tokenOrGroup.value,
|
|
81
|
+
};
|
|
82
|
+
}
|
|
70
83
|
const internalQuery = {
|
|
71
84
|
operation: query.operation,
|
|
72
|
-
tokens: query.tokens.map(
|
|
73
|
-
property: token.propertyKey ? getProperty(token.propertyKey) : null,
|
|
74
|
-
operator: token.operator,
|
|
75
|
-
value: token.value,
|
|
76
|
-
__source: token,
|
|
77
|
-
})),
|
|
85
|
+
tokens: (enableTokenGroups && query.tokenGroups ? query.tokenGroups : query.tokens).map(transformToken),
|
|
78
86
|
};
|
|
79
87
|
const internalFreeText = {
|
|
80
88
|
disabled: disableFreeTextFiltering,
|
|
@@ -87,6 +95,7 @@ const PropertyFilterInternal = React.forwardRef((_a, ref) => {
|
|
|
87
95
|
query: internalQuery,
|
|
88
96
|
filteringOptions: internalOptions,
|
|
89
97
|
onChange,
|
|
98
|
+
enableTokenGroups,
|
|
90
99
|
});
|
|
91
100
|
const parsedText = parseText(filteringText, internalProperties, internalFreeText);
|
|
92
101
|
const autosuggestOptions = getAutosuggestOptions(parsedText, internalProperties, internalOptions, customGroupsText, i18nStrings);
|
|
@@ -203,11 +212,9 @@ const PropertyFilterInternal = React.forwardRef((_a, ref) => {
|
|
|
203
212
|
filteringConstraintText && (React.createElement("div", { id: constraintTextId, className: styles.constraint }, filteringConstraintText)),
|
|
204
213
|
internalQuery.tokens && internalQuery.tokens.length > 0 && (React.createElement("div", { className: styles.tokens },
|
|
205
214
|
React.createElement(InternalSpaceBetween, { size: "xs", direction: "horizontal" },
|
|
206
|
-
React.createElement(TokenList, { alignment: "inline", limit: tokenLimit, items: internalQuery.tokens, limitShowFewerAriaLabel: tokenLimitShowFewerAriaLabel, limitShowMoreAriaLabel: tokenLimitShowMoreAriaLabel, renderItem: (_, tokenIndex) => (React.createElement(TokenButton, { query: internalQuery, tokenIndex: tokenIndex, onUpdateToken: token => {
|
|
207
|
-
updateToken(tokenIndex, token);
|
|
208
|
-
}, onUpdateOperation:
|
|
209
|
-
updateOperation(operation);
|
|
210
|
-
}, onRemoveToken: () => {
|
|
215
|
+
React.createElement(TokenList, { alignment: "inline", limit: tokenLimit, items: internalQuery.tokens, limitShowFewerAriaLabel: tokenLimitShowFewerAriaLabel, limitShowMoreAriaLabel: tokenLimitShowMoreAriaLabel, renderItem: (_, tokenIndex) => (React.createElement(TokenButton, { query: internalQuery, tokenIndex: tokenIndex, onUpdateToken: (token, releasedTokens) => {
|
|
216
|
+
updateToken(tokenIndex, token, releasedTokens);
|
|
217
|
+
}, onUpdateOperation: updateOperation, onRemoveToken: () => {
|
|
211
218
|
removeToken(tokenIndex);
|
|
212
219
|
setNextFocusIndex(tokenIndex);
|
|
213
220
|
}, filteringProperties: internalProperties, filteringOptions: internalOptions, asyncProps: asyncProps, onLoadItems: onLoadItems, i18nStrings: i18nStrings, asyncProperties: asyncProperties, hideOperations: hideOperations, customGroupsText: customGroupsText, freeTextFiltering: internalFreeText, disabled: disabled, expandToViewport: expandToViewport, enableTokenGroups: enableTokenGroups })), i18nStrings: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/property-filter/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AAC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rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useImperativeHandle, useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport { PropertyFilterOperator } from '@cloudscape-design/collection-hooks';\n\nimport { InternalButton } from '../button/internal';\nimport { getBaseProps } from '../internal/base-component';\nimport { AutosuggestInputRef } from '../internal/components/autosuggest-input';\nimport TokenList from '../internal/components/token-list';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useListFocusController } from '../internal/hooks/use-list-focus-controller';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useUniqueId } from '../internal/hooks/use-unique-id/index';\nimport { SomeRequired } from '../internal/types';\nimport { joinStrings } from '../internal/utils/strings';\nimport InternalSpaceBetween from '../space-between/internal';\nimport { SearchResults } from '../text-filter/search-results';\nimport { getAllowedOperators, getAutosuggestOptions, getQueryActions, parseText } from './controller';\nimport { I18nStringsExt, usePropertyFilterI18n } from './i18n-utils';\nimport {\n ComparisonOperator,\n ExtendedOperator,\n FilteringProperty,\n InternalFilteringOption,\n InternalFilteringProperty,\n InternalFreeTextFiltering,\n InternalQuery,\n InternalToken,\n ParsedText,\n PropertyFilterProps,\n Ref,\n} from './interfaces';\nimport { PropertyEditor } from './property-editor';\nimport PropertyFilterAutosuggest, { PropertyFilterAutosuggestProps } from './property-filter-autosuggest';\nimport { TokenButton } from './token';\nimport { useLoadItems } from './use-load-items';\n\nimport tokenListStyles from '../internal/components/token-list/styles.css.js';\nimport styles from './styles.css.js';\n\nexport type PropertyFilterInternalProps = SomeRequired<\n PropertyFilterProps,\n 'filteringOptions' | 'customGroupsText' | 'disableFreeTextFiltering'\n> &\n InternalBaseComponentProps & {\n enableTokenGroups?: boolean;\n i18nStringsExt?: I18nStringsExt;\n };\n\nconst PropertyFilterInternal = React.forwardRef(\n (\n {\n disabled,\n countText,\n query,\n hideOperations,\n onChange,\n filteringProperties,\n filteringOptions,\n customGroupsText,\n disableFreeTextFiltering,\n freeTextFiltering,\n onLoadItems,\n virtualScroll,\n customControl,\n customFilterActions,\n filteringPlaceholder,\n filteringAriaLabel,\n filteringEmpty,\n filteringLoadingText,\n filteringFinishedText,\n filteringErrorText,\n filteringRecoveryText,\n filteringConstraintText,\n filteringStatusType,\n asyncProperties,\n tokenLimit,\n expandToViewport,\n tokenLimitShowFewerAriaLabel,\n tokenLimitShowMoreAriaLabel,\n enableTokenGroups = false,\n i18nStringsExt = {},\n __internalRootRef,\n ...rest\n }: PropertyFilterInternalProps,\n ref: React.Ref<Ref>\n ) => {\n const [nextFocusIndex, setNextFocusIndex] = useState<null | number>(null);\n const onFocusMoved = () => setNextFocusIndex(null);\n const tokenListRef = useListFocusController({\n nextFocusIndex,\n onFocusMoved,\n listItemSelector: `.${tokenListStyles['list-item']}`,\n showMoreSelector: `.${tokenListStyles.toggle}`,\n outsideSelector: `.${styles.input}`,\n });\n\n const mergedRef = useMergeRefs(tokenListRef, __internalRootRef);\n const inputRef = useRef<AutosuggestInputRef>(null);\n const baseProps = getBaseProps(rest);\n\n const i18nStrings = usePropertyFilterI18n({ ...rest.i18nStrings, ...i18nStringsExt });\n\n useImperativeHandle(ref, () => ({ focus: () => inputRef.current?.focus() }), []);\n const showResults = !!query.tokens?.length && !disabled && !!countText;\n const [filteringText, setFilteringText] = useState<string>('');\n\n const { internalProperties, internalOptions, internalQuery, internalFreeText } = (() => {\n const propertyByKey = filteringProperties.reduce((acc, property) => {\n const extendedOperators = (property?.operators ?? []).reduce(\n (acc, operator) => (typeof operator === 'object' ? acc.set(operator.operator, operator) : acc),\n new Map<PropertyFilterOperator, null | ExtendedOperator<any>>()\n );\n acc.set(property.key, {\n propertyKey: property.key,\n propertyLabel: property?.propertyLabel ?? '',\n groupValuesLabel: property?.groupValuesLabel ?? '',\n propertyGroup: property?.group,\n operators: (property?.operators ?? []).map(op => (typeof op === 'string' ? op : op.operator)),\n defaultOperator: property?.defaultOperator ?? '=',\n getValueFormatter: operator => (operator ? extendedOperators.get(operator)?.format ?? null : null),\n getValueFormRenderer: operator => (operator ? extendedOperators.get(operator)?.form ?? null : null),\n externalProperty: property,\n });\n return acc;\n }, new Map<string, InternalFilteringProperty>());\n const getProperty = (propertyKey: string): null | InternalFilteringProperty =>\n propertyByKey.get(propertyKey) ?? null;\n\n const internalOptions: readonly InternalFilteringOption[] = filteringOptions.map(option => ({\n property: getProperty(option.propertyKey),\n value: option.value,\n label: option.label ?? option.value ?? '',\n }));\n\n const internalQuery: InternalQuery = {\n operation: query.operation,\n tokens: query.tokens.map(token => ({\n property: token.propertyKey ? getProperty(token.propertyKey) : null,\n operator: token.operator,\n value: token.value,\n __source: token,\n })),\n };\n\n const internalFreeText: InternalFreeTextFiltering = {\n disabled: disableFreeTextFiltering,\n operators: freeTextFiltering?.operators ?? [':', '!:'],\n defaultOperator: freeTextFiltering?.defaultOperator ?? ':',\n };\n\n return { internalProperties: [...propertyByKey.values()], internalOptions, internalQuery, internalFreeText };\n })();\n\n const { addToken, updateToken, updateOperation, removeToken, removeAllTokens } = getQueryActions({\n query: internalQuery,\n filteringOptions: internalOptions,\n onChange,\n });\n\n const parsedText = parseText(filteringText, internalProperties, internalFreeText);\n const autosuggestOptions = getAutosuggestOptions(\n parsedText,\n internalProperties,\n internalOptions,\n customGroupsText,\n i18nStrings\n );\n\n const createToken = (currentText: string) => {\n const parsedText = parseText(currentText, internalProperties, internalFreeText);\n let newToken: InternalToken;\n switch (parsedText.step) {\n case 'property': {\n newToken = {\n property: parsedText.property,\n operator: parsedText.operator,\n value: parsedText.value,\n };\n break;\n }\n case 'free-text': {\n newToken = {\n property: null,\n operator: parsedText.operator || internalFreeText.defaultOperator,\n value: parsedText.value,\n };\n break;\n }\n case 'operator': {\n newToken = {\n property: null,\n operator: internalFreeText.defaultOperator,\n value: currentText,\n };\n break;\n }\n }\n if (internalFreeText.disabled && !newToken.property) {\n return;\n }\n addToken(newToken);\n setFilteringText('');\n };\n const getLoadMoreDetail = (parsedText: ParsedText, filteringText: string) => {\n const loadMoreDetail: {\n filteringProperty: FilteringProperty | undefined;\n filteringText: string;\n filteringOperator: ComparisonOperator | undefined;\n } = {\n filteringProperty: undefined,\n filteringText,\n filteringOperator: undefined,\n };\n if (parsedText.step === 'property') {\n loadMoreDetail.filteringProperty = parsedText.property.externalProperty;\n loadMoreDetail.filteringText = parsedText.value;\n loadMoreDetail.filteringOperator = parsedText.operator;\n }\n return loadMoreDetail;\n };\n const loadMoreDetail = getLoadMoreDetail(parsedText, filteringText);\n const inputLoadItemsHandlers = useLoadItems(\n onLoadItems,\n loadMoreDetail.filteringText,\n loadMoreDetail.filteringProperty,\n loadMoreDetail.filteringText,\n loadMoreDetail.filteringOperator\n );\n const asyncProps = {\n empty: filteringEmpty,\n loadingText: filteringLoadingText,\n finishedText: filteringFinishedText,\n errorText: filteringErrorText,\n recoveryText: filteringRecoveryText,\n statusType: filteringStatusType,\n };\n const asyncAutosuggestProps =\n !!filteringText.length || asyncProperties\n ? {\n ...inputLoadItemsHandlers,\n ...asyncProps,\n }\n : {};\n const handleSelected: PropertyFilterAutosuggestProps['onOptionClick'] = event => {\n const { detail: option } = event;\n const value = option.value || '';\n if (!value) {\n return;\n }\n\n if (!('keepOpenOnSelect' in option)) {\n createToken(value);\n return;\n }\n\n // stop dropdown from closing\n event.preventDefault();\n\n const parsedText = parseText(value, internalProperties, internalFreeText);\n const loadMoreDetail = getLoadMoreDetail(parsedText, value);\n\n // Insert operator automatically if only one operator is defined for the given property.\n if (parsedText.step === 'operator') {\n const operators = getAllowedOperators(parsedText.property);\n if (value.trim() === parsedText.property.propertyLabel && operators.length === 1) {\n loadMoreDetail.filteringProperty = parsedText.property.externalProperty ?? undefined;\n loadMoreDetail.filteringOperator = operators[0];\n loadMoreDetail.filteringText = '';\n setFilteringText(parsedText.property.propertyLabel + ' ' + operators[0] + ' ');\n }\n }\n\n fireNonCancelableEvent(onLoadItems, { ...loadMoreDetail, firstPage: true, samePage: false });\n };\n\n const operatorForm =\n parsedText.step === 'property' && parsedText.property.getValueFormRenderer(parsedText.operator);\n\n const searchResultsId = useUniqueId('property-filter-search-results');\n const constraintTextId = useUniqueId('property-filter-constraint');\n const textboxAriaDescribedBy = filteringConstraintText\n ? joinStrings(rest.ariaDescribedby, constraintTextId)\n : rest.ariaDescribedby;\n\n return (\n <div {...baseProps} className={clsx(baseProps.className, styles.root)} ref={mergedRef}>\n <div className={styles['search-field']}>\n {customControl && <div className={styles['custom-control']}>{customControl}</div>}\n <PropertyFilterAutosuggest\n ref={inputRef}\n virtualScroll={virtualScroll}\n enteredTextLabel={i18nStrings.enteredTextLabel}\n ariaLabel={filteringAriaLabel ?? i18nStrings.filteringAriaLabel}\n placeholder={filteringPlaceholder ?? i18nStrings.filteringPlaceholder}\n ariaLabelledby={rest.ariaLabelledby}\n ariaDescribedby={textboxAriaDescribedBy}\n controlId={rest.controlId}\n value={filteringText}\n disabled={disabled}\n {...autosuggestOptions}\n onChange={event => setFilteringText(event.detail.value)}\n empty={filteringEmpty}\n {...asyncAutosuggestProps}\n expandToViewport={expandToViewport}\n onOptionClick={handleSelected}\n customForm={\n operatorForm && (\n <PropertyEditor\n property={parsedText.property}\n operator={parsedText.operator}\n filter={parsedText.value}\n operatorForm={operatorForm}\n i18nStrings={i18nStrings}\n onCancel={() => {\n setFilteringText('');\n inputRef.current?.close();\n inputRef.current?.focus({ preventDropdown: true });\n }}\n onSubmit={token => {\n addToken(token);\n setFilteringText('');\n inputRef.current?.focus({ preventDropdown: true });\n inputRef.current?.close();\n }}\n />\n )\n }\n hideEnteredTextOption={internalFreeText.disabled && parsedText.step !== 'property'}\n clearAriaLabel={i18nStrings.clearAriaLabel}\n searchResultsId={showResults ? searchResultsId : undefined}\n />\n {showResults ? (\n <div className={styles.results}>\n <SearchResults id={searchResultsId}>{countText}</SearchResults>\n </div>\n ) : null}\n </div>\n {filteringConstraintText && (\n <div id={constraintTextId} className={styles.constraint}>\n {filteringConstraintText}\n </div>\n )}\n {internalQuery.tokens && internalQuery.tokens.length > 0 && (\n <div className={styles.tokens}>\n <InternalSpaceBetween size=\"xs\" direction=\"horizontal\">\n <TokenList\n alignment=\"inline\"\n limit={tokenLimit}\n items={internalQuery.tokens}\n limitShowFewerAriaLabel={tokenLimitShowFewerAriaLabel}\n limitShowMoreAriaLabel={tokenLimitShowMoreAriaLabel}\n renderItem={(_, tokenIndex) => (\n <TokenButton\n query={internalQuery}\n tokenIndex={tokenIndex}\n onUpdateToken={token => {\n updateToken(tokenIndex, token);\n }}\n onUpdateOperation={operation => {\n updateOperation(operation);\n }}\n onRemoveToken={() => {\n removeToken(tokenIndex);\n setNextFocusIndex(tokenIndex);\n }}\n filteringProperties={internalProperties}\n filteringOptions={internalOptions}\n asyncProps={asyncProps}\n onLoadItems={onLoadItems}\n i18nStrings={i18nStrings}\n asyncProperties={asyncProperties}\n hideOperations={hideOperations}\n customGroupsText={customGroupsText}\n freeTextFiltering={internalFreeText}\n disabled={disabled}\n expandToViewport={expandToViewport}\n enableTokenGroups={enableTokenGroups}\n />\n )}\n i18nStrings={{\n limitShowFewer: i18nStrings.tokenLimitShowFewer,\n limitShowMore: i18nStrings.tokenLimitShowMore,\n }}\n after={\n customFilterActions ? (\n <div className={styles['custom-filter-actions']}>{customFilterActions}</div>\n ) : (\n <InternalButton\n formAction=\"none\"\n onClick={() => {\n removeAllTokens();\n inputRef.current?.focus({ preventDropdown: true });\n }}\n className={styles['remove-all']}\n disabled={disabled}\n >\n {i18nStrings.clearFiltersText}\n </InternalButton>\n )\n }\n />\n </InternalSpaceBetween>\n </div>\n )}\n </div>\n );\n }\n);\n\nexport default PropertyFilterInternal;\n"]}
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/property-filter/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,mBAAmB,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACrE,OAAO,IAAI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,YAAY,CAAC,EAC/B,QAAQ,EAAE,QAAQ,IAEjB,WAAW,CAAC,gBAAgB,CACd,CAClB,GAEH,CACmB,CACnB,CACP,CACG,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,sBAAsB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useImperativeHandle, useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport { PropertyFilterOperator } from '@cloudscape-design/collection-hooks';\n\nimport { InternalButton } from '../button/internal';\nimport { getBaseProps } from '../internal/base-component';\nimport { AutosuggestInputRef } from '../internal/components/autosuggest-input';\nimport TokenList from '../internal/components/token-list';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useListFocusController } from '../internal/hooks/use-list-focus-controller';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useUniqueId } from '../internal/hooks/use-unique-id/index';\nimport { SomeRequired } from '../internal/types';\nimport { joinStrings } from '../internal/utils/strings';\nimport InternalSpaceBetween from '../space-between/internal';\nimport { SearchResults } from '../text-filter/search-results';\nimport { getAllowedOperators, getAutosuggestOptions, getQueryActions, parseText } from './controller';\nimport { usePropertyFilterI18n } from './i18n-utils';\nimport {\n ComparisonOperator,\n ExtendedOperator,\n FilteringProperty,\n I18nStringsTokenGroups,\n InternalFilteringOption,\n InternalFilteringProperty,\n InternalFreeTextFiltering,\n InternalQuery,\n InternalToken,\n InternalTokenGroup,\n ParsedText,\n PropertyFilterProps,\n Ref,\n Token,\n TokenGroup,\n} from './interfaces';\nimport { PropertyEditor } from './property-editor';\nimport PropertyFilterAutosuggest, { PropertyFilterAutosuggestProps } from './property-filter-autosuggest';\nimport { TokenButton } from './token';\nimport { useLoadItems } from './use-load-items';\n\nimport tokenListStyles from '../internal/components/token-list/styles.css.js';\nimport styles from './styles.css.js';\n\nexport type PropertyFilterInternalProps = SomeRequired<\n PropertyFilterProps,\n 'filteringOptions' | 'customGroupsText' | 'disableFreeTextFiltering'\n> &\n InternalBaseComponentProps & {\n enableTokenGroups?: boolean;\n i18nStringsTokenGroups?: I18nStringsTokenGroups;\n };\n\nconst PropertyFilterInternal = React.forwardRef(\n (\n {\n disabled,\n countText,\n query,\n hideOperations,\n onChange,\n filteringProperties,\n filteringOptions,\n customGroupsText,\n disableFreeTextFiltering,\n freeTextFiltering,\n onLoadItems,\n virtualScroll,\n customControl,\n customFilterActions,\n filteringPlaceholder,\n filteringAriaLabel,\n filteringEmpty,\n filteringLoadingText,\n filteringFinishedText,\n filteringErrorText,\n filteringRecoveryText,\n filteringConstraintText,\n filteringStatusType,\n asyncProperties,\n tokenLimit,\n expandToViewport,\n tokenLimitShowFewerAriaLabel,\n tokenLimitShowMoreAriaLabel,\n enableTokenGroups = false,\n i18nStringsTokenGroups,\n __internalRootRef,\n ...rest\n }: PropertyFilterInternalProps,\n ref: React.Ref<Ref>\n ) => {\n const [nextFocusIndex, setNextFocusIndex] = useState<null | number>(null);\n const onFocusMoved = () => setNextFocusIndex(null);\n const tokenListRef = useListFocusController({\n nextFocusIndex,\n onFocusMoved,\n listItemSelector: `.${tokenListStyles['list-item']}`,\n showMoreSelector: `.${tokenListStyles.toggle}`,\n outsideSelector: `.${styles.input}`,\n });\n\n const mergedRef = useMergeRefs(tokenListRef, __internalRootRef);\n const inputRef = useRef<AutosuggestInputRef>(null);\n const baseProps = getBaseProps(rest);\n\n const i18nStrings = usePropertyFilterI18n({ ...rest.i18nStrings, ...i18nStringsTokenGroups });\n\n useImperativeHandle(ref, () => ({ focus: () => inputRef.current?.focus() }), []);\n const showResults = !!query.tokens?.length && !disabled && !!countText;\n const [filteringText, setFilteringText] = useState<string>('');\n\n const { internalProperties, internalOptions, internalQuery, internalFreeText } = (() => {\n const propertyByKey = filteringProperties.reduce((acc, property) => {\n const extendedOperators = (property?.operators ?? []).reduce(\n (acc, operator) => (typeof operator === 'object' ? acc.set(operator.operator, operator) : acc),\n new Map<PropertyFilterOperator, null | ExtendedOperator<any>>()\n );\n acc.set(property.key, {\n propertyKey: property.key,\n propertyLabel: property?.propertyLabel ?? '',\n groupValuesLabel: property?.groupValuesLabel ?? '',\n propertyGroup: property?.group,\n operators: (property?.operators ?? []).map(op => (typeof op === 'string' ? op : op.operator)),\n defaultOperator: property?.defaultOperator ?? '=',\n getValueFormatter: operator => (operator ? extendedOperators.get(operator)?.format ?? null : null),\n getValueFormRenderer: operator => (operator ? extendedOperators.get(operator)?.form ?? null : null),\n externalProperty: property,\n });\n return acc;\n }, new Map<string, InternalFilteringProperty>());\n const getProperty = (propertyKey: string): null | InternalFilteringProperty =>\n propertyByKey.get(propertyKey) ?? null;\n\n const internalOptions: readonly InternalFilteringOption[] = filteringOptions.map(option => ({\n property: getProperty(option.propertyKey),\n value: option.value,\n label: option.label ?? option.value ?? '',\n }));\n\n function transformToken(\n tokenOrGroup: Token | TokenGroup,\n standaloneIndex?: number\n ): InternalToken | InternalTokenGroup {\n return 'operation' in tokenOrGroup\n ? {\n operation: tokenOrGroup.operation,\n tokens: tokenOrGroup.tokens.map(token => transformToken(token)),\n }\n : {\n standaloneIndex,\n property: tokenOrGroup.propertyKey ? getProperty(tokenOrGroup.propertyKey) : null,\n operator: tokenOrGroup.operator,\n value: tokenOrGroup.value,\n };\n }\n\n const internalQuery: InternalQuery = {\n operation: query.operation,\n tokens: (enableTokenGroups && query.tokenGroups ? query.tokenGroups : query.tokens).map(transformToken),\n };\n\n const internalFreeText: InternalFreeTextFiltering = {\n disabled: disableFreeTextFiltering,\n operators: freeTextFiltering?.operators ?? [':', '!:'],\n defaultOperator: freeTextFiltering?.defaultOperator ?? ':',\n };\n\n return { internalProperties: [...propertyByKey.values()], internalOptions, internalQuery, internalFreeText };\n })();\n\n const { addToken, updateToken, updateOperation, removeToken, removeAllTokens } = getQueryActions({\n query: internalQuery,\n filteringOptions: internalOptions,\n onChange,\n enableTokenGroups,\n });\n\n const parsedText = parseText(filteringText, internalProperties, internalFreeText);\n const autosuggestOptions = getAutosuggestOptions(\n parsedText,\n internalProperties,\n internalOptions,\n customGroupsText,\n i18nStrings\n );\n\n const createToken = (currentText: string) => {\n const parsedText = parseText(currentText, internalProperties, internalFreeText);\n let newToken: InternalToken;\n switch (parsedText.step) {\n case 'property': {\n newToken = {\n property: parsedText.property,\n operator: parsedText.operator,\n value: parsedText.value,\n };\n break;\n }\n case 'free-text': {\n newToken = {\n property: null,\n operator: parsedText.operator || internalFreeText.defaultOperator,\n value: parsedText.value,\n };\n break;\n }\n case 'operator': {\n newToken = {\n property: null,\n operator: internalFreeText.defaultOperator,\n value: currentText,\n };\n break;\n }\n }\n if (internalFreeText.disabled && !newToken.property) {\n return;\n }\n addToken(newToken);\n setFilteringText('');\n };\n const getLoadMoreDetail = (parsedText: ParsedText, filteringText: string) => {\n const loadMoreDetail: {\n filteringProperty: FilteringProperty | undefined;\n filteringText: string;\n filteringOperator: ComparisonOperator | undefined;\n } = {\n filteringProperty: undefined,\n filteringText,\n filteringOperator: undefined,\n };\n if (parsedText.step === 'property') {\n loadMoreDetail.filteringProperty = parsedText.property.externalProperty;\n loadMoreDetail.filteringText = parsedText.value;\n loadMoreDetail.filteringOperator = parsedText.operator;\n }\n return loadMoreDetail;\n };\n const loadMoreDetail = getLoadMoreDetail(parsedText, filteringText);\n const inputLoadItemsHandlers = useLoadItems(\n onLoadItems,\n loadMoreDetail.filteringText,\n loadMoreDetail.filteringProperty,\n loadMoreDetail.filteringText,\n loadMoreDetail.filteringOperator\n );\n const asyncProps = {\n empty: filteringEmpty,\n loadingText: filteringLoadingText,\n finishedText: filteringFinishedText,\n errorText: filteringErrorText,\n recoveryText: filteringRecoveryText,\n statusType: filteringStatusType,\n };\n const asyncAutosuggestProps =\n !!filteringText.length || asyncProperties\n ? {\n ...inputLoadItemsHandlers,\n ...asyncProps,\n }\n : {};\n const handleSelected: PropertyFilterAutosuggestProps['onOptionClick'] = event => {\n const { detail: option } = event;\n const value = option.value || '';\n if (!value) {\n return;\n }\n\n if (!('keepOpenOnSelect' in option)) {\n createToken(value);\n return;\n }\n\n // stop dropdown from closing\n event.preventDefault();\n\n const parsedText = parseText(value, internalProperties, internalFreeText);\n const loadMoreDetail = getLoadMoreDetail(parsedText, value);\n\n // Insert operator automatically if only one operator is defined for the given property.\n if (parsedText.step === 'operator') {\n const operators = getAllowedOperators(parsedText.property);\n if (value.trim() === parsedText.property.propertyLabel && operators.length === 1) {\n loadMoreDetail.filteringProperty = parsedText.property.externalProperty ?? undefined;\n loadMoreDetail.filteringOperator = operators[0];\n loadMoreDetail.filteringText = '';\n setFilteringText(parsedText.property.propertyLabel + ' ' + operators[0] + ' ');\n }\n }\n\n fireNonCancelableEvent(onLoadItems, { ...loadMoreDetail, firstPage: true, samePage: false });\n };\n\n const operatorForm =\n parsedText.step === 'property' && parsedText.property.getValueFormRenderer(parsedText.operator);\n\n const searchResultsId = useUniqueId('property-filter-search-results');\n const constraintTextId = useUniqueId('property-filter-constraint');\n const textboxAriaDescribedBy = filteringConstraintText\n ? joinStrings(rest.ariaDescribedby, constraintTextId)\n : rest.ariaDescribedby;\n\n return (\n <div {...baseProps} className={clsx(baseProps.className, styles.root)} ref={mergedRef}>\n <div className={styles['search-field']}>\n {customControl && <div className={styles['custom-control']}>{customControl}</div>}\n <PropertyFilterAutosuggest\n ref={inputRef}\n virtualScroll={virtualScroll}\n enteredTextLabel={i18nStrings.enteredTextLabel}\n ariaLabel={filteringAriaLabel ?? i18nStrings.filteringAriaLabel}\n placeholder={filteringPlaceholder ?? i18nStrings.filteringPlaceholder}\n ariaLabelledby={rest.ariaLabelledby}\n ariaDescribedby={textboxAriaDescribedBy}\n controlId={rest.controlId}\n value={filteringText}\n disabled={disabled}\n {...autosuggestOptions}\n onChange={event => setFilteringText(event.detail.value)}\n empty={filteringEmpty}\n {...asyncAutosuggestProps}\n expandToViewport={expandToViewport}\n onOptionClick={handleSelected}\n customForm={\n operatorForm && (\n <PropertyEditor\n property={parsedText.property}\n operator={parsedText.operator}\n filter={parsedText.value}\n operatorForm={operatorForm}\n i18nStrings={i18nStrings}\n onCancel={() => {\n setFilteringText('');\n inputRef.current?.close();\n inputRef.current?.focus({ preventDropdown: true });\n }}\n onSubmit={token => {\n addToken(token);\n setFilteringText('');\n inputRef.current?.focus({ preventDropdown: true });\n inputRef.current?.close();\n }}\n />\n )\n }\n hideEnteredTextOption={internalFreeText.disabled && parsedText.step !== 'property'}\n clearAriaLabel={i18nStrings.clearAriaLabel}\n searchResultsId={showResults ? searchResultsId : undefined}\n />\n {showResults ? (\n <div className={styles.results}>\n <SearchResults id={searchResultsId}>{countText}</SearchResults>\n </div>\n ) : null}\n </div>\n {filteringConstraintText && (\n <div id={constraintTextId} className={styles.constraint}>\n {filteringConstraintText}\n </div>\n )}\n {internalQuery.tokens && internalQuery.tokens.length > 0 && (\n <div className={styles.tokens}>\n <InternalSpaceBetween size=\"xs\" direction=\"horizontal\">\n <TokenList\n alignment=\"inline\"\n limit={tokenLimit}\n items={internalQuery.tokens}\n limitShowFewerAriaLabel={tokenLimitShowFewerAriaLabel}\n limitShowMoreAriaLabel={tokenLimitShowMoreAriaLabel}\n renderItem={(_, tokenIndex) => (\n <TokenButton\n query={internalQuery}\n tokenIndex={tokenIndex}\n onUpdateToken={(token, releasedTokens) => {\n updateToken(tokenIndex, token, releasedTokens);\n }}\n onUpdateOperation={updateOperation}\n onRemoveToken={() => {\n removeToken(tokenIndex);\n setNextFocusIndex(tokenIndex);\n }}\n filteringProperties={internalProperties}\n filteringOptions={internalOptions}\n asyncProps={asyncProps}\n onLoadItems={onLoadItems}\n i18nStrings={i18nStrings}\n asyncProperties={asyncProperties}\n hideOperations={hideOperations}\n customGroupsText={customGroupsText}\n freeTextFiltering={internalFreeText}\n disabled={disabled}\n expandToViewport={expandToViewport}\n enableTokenGroups={enableTokenGroups}\n />\n )}\n i18nStrings={{\n limitShowFewer: i18nStrings.tokenLimitShowFewer,\n limitShowMore: i18nStrings.tokenLimitShowMore,\n }}\n after={\n customFilterActions ? (\n <div className={styles['custom-filter-actions']}>{customFilterActions}</div>\n ) : (\n <InternalButton\n formAction=\"none\"\n onClick={() => {\n removeAllTokens();\n inputRef.current?.focus({ preventDropdown: true });\n }}\n className={styles['remove-all']}\n disabled={disabled}\n >\n {i18nStrings.clearFiltersText}\n </InternalButton>\n )\n }\n />\n </InternalSpaceBetween>\n </div>\n )}\n </div>\n );\n }\n);\n\nexport default PropertyFilterInternal;\n"]}
|
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"root": "
|
|
5
|
-
"search-field": "awsui_search-
|
|
6
|
-
"input-wrapper": "awsui_input-
|
|
7
|
-
"add-token": "awsui_add-
|
|
8
|
-
"tokens": "
|
|
9
|
-
"token-operator": "awsui_token-
|
|
10
|
-
"property-editor": "awsui_property-
|
|
11
|
-
"property-editor-form": "awsui_property-editor-
|
|
12
|
-
"property-editor-field-property": "awsui_property-editor-field-
|
|
13
|
-
"property-editor-field-operator": "awsui_property-editor-field-
|
|
14
|
-
"property-editor-field-value": "awsui_property-editor-field-
|
|
15
|
-
"property-editor-cancel": "awsui_property-editor-
|
|
16
|
-
"property-editor-submit": "awsui_property-editor-
|
|
17
|
-
"property-editor-actions": "awsui_property-editor-
|
|
18
|
-
"token-editor": "awsui_token-
|
|
19
|
-
"token-editor-form": "awsui_token-editor-
|
|
20
|
-
"token-editor-field-property": "awsui_token-editor-field-
|
|
21
|
-
"token-editor-field-operator": "awsui_token-editor-field-
|
|
22
|
-
"token-editor-field-value": "awsui_token-editor-field-
|
|
23
|
-
"token-editor-cancel": "awsui_token-editor-
|
|
24
|
-
"token-editor-submit": "awsui_token-editor-
|
|
25
|
-
"token-editor-actions": "awsui_token-editor-
|
|
26
|
-
"token-editor-grid": "awsui_token-editor-
|
|
27
|
-
"token-editor-grid-group": "awsui_token-editor-grid-
|
|
28
|
-
"token-editor-narrow": "awsui_token-editor-
|
|
29
|
-
"token-editor-
|
|
30
|
-
"token-editor-grid-header": "awsui_token-editor-grid-
|
|
31
|
-
"token-editor-grid-cell": "awsui_token-editor-grid-
|
|
32
|
-
"token-editor-add-token": "awsui_token-editor-add-
|
|
33
|
-
"custom-content-wrapper": "awsui_custom-content-
|
|
34
|
-
"custom-control": "awsui_custom-
|
|
35
|
-
"input": "
|
|
36
|
-
"results": "
|
|
37
|
-
"token-trigger": "awsui_token-
|
|
38
|
-
"remove-all": "awsui_remove-
|
|
39
|
-
"join-operation": "awsui_join-
|
|
40
|
-
"custom-filter-actions": "awsui_custom-filter-
|
|
41
|
-
"constraint": "
|
|
4
|
+
"root": "awsui_root_1wzqe_13ua9_141",
|
|
5
|
+
"search-field": "awsui_search-field_1wzqe_13ua9_176",
|
|
6
|
+
"input-wrapper": "awsui_input-wrapper_1wzqe_13ua9_182",
|
|
7
|
+
"add-token": "awsui_add-token_1wzqe_13ua9_186",
|
|
8
|
+
"tokens": "awsui_tokens_1wzqe_13ua9_193",
|
|
9
|
+
"token-operator": "awsui_token-operator_1wzqe_13ua9_198",
|
|
10
|
+
"property-editor": "awsui_property-editor_1wzqe_13ua9_202",
|
|
11
|
+
"property-editor-form": "awsui_property-editor-form_1wzqe_13ua9_210",
|
|
12
|
+
"property-editor-field-property": "awsui_property-editor-field-property_1wzqe_13ua9_213",
|
|
13
|
+
"property-editor-field-operator": "awsui_property-editor-field-operator_1wzqe_13ua9_216",
|
|
14
|
+
"property-editor-field-value": "awsui_property-editor-field-value_1wzqe_13ua9_219",
|
|
15
|
+
"property-editor-cancel": "awsui_property-editor-cancel_1wzqe_13ua9_222",
|
|
16
|
+
"property-editor-submit": "awsui_property-editor-submit_1wzqe_13ua9_225",
|
|
17
|
+
"property-editor-actions": "awsui_property-editor-actions_1wzqe_13ua9_228",
|
|
18
|
+
"token-editor": "awsui_token-editor_1wzqe_13ua9_235",
|
|
19
|
+
"token-editor-form": "awsui_token-editor-form_1wzqe_13ua9_243",
|
|
20
|
+
"token-editor-field-property": "awsui_token-editor-field-property_1wzqe_13ua9_246",
|
|
21
|
+
"token-editor-field-operator": "awsui_token-editor-field-operator_1wzqe_13ua9_249",
|
|
22
|
+
"token-editor-field-value": "awsui_token-editor-field-value_1wzqe_13ua9_252",
|
|
23
|
+
"token-editor-cancel": "awsui_token-editor-cancel_1wzqe_13ua9_255",
|
|
24
|
+
"token-editor-submit": "awsui_token-editor-submit_1wzqe_13ua9_258",
|
|
25
|
+
"token-editor-actions": "awsui_token-editor-actions_1wzqe_13ua9_261",
|
|
26
|
+
"token-editor-grid": "awsui_token-editor-grid_1wzqe_13ua9_270",
|
|
27
|
+
"token-editor-grid-group": "awsui_token-editor-grid-group_1wzqe_13ua9_307",
|
|
28
|
+
"token-editor-narrow": "awsui_token-editor-narrow_1wzqe_13ua9_310",
|
|
29
|
+
"token-editor-supports-groups": "awsui_token-editor-supports-groups_1wzqe_13ua9_319",
|
|
30
|
+
"token-editor-grid-header": "awsui_token-editor-grid-header_1wzqe_13ua9_323",
|
|
31
|
+
"token-editor-grid-cell": "awsui_token-editor-grid-cell_1wzqe_13ua9_329",
|
|
32
|
+
"token-editor-add-token": "awsui_token-editor-add-token_1wzqe_13ua9_338",
|
|
33
|
+
"custom-content-wrapper": "awsui_custom-content-wrapper_1wzqe_13ua9_342",
|
|
34
|
+
"custom-control": "awsui_custom-control_1wzqe_13ua9_346",
|
|
35
|
+
"input": "awsui_input_1wzqe_13ua9_182",
|
|
36
|
+
"results": "awsui_results_1wzqe_13ua9_354",
|
|
37
|
+
"token-trigger": "awsui_token-trigger_1wzqe_13ua9_359",
|
|
38
|
+
"remove-all": "awsui_remove-all_1wzqe_13ua9_364",
|
|
39
|
+
"join-operation": "awsui_join-operation_1wzqe_13ua9_365",
|
|
40
|
+
"custom-filter-actions": "awsui_custom-filter-actions_1wzqe_13ua9_366",
|
|
41
|
+
"constraint": "awsui_constraint_1wzqe_13ua9_370"
|
|
42
42
|
};
|
|
43
43
|
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
*/
|
|
139
139
|
/* Style used for links in slots/components that are text heavy, to help links stand out among
|
|
140
140
|
surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
|
|
141
|
-
.
|
|
141
|
+
.awsui_root_1wzqe_13ua9_141:not(#\9) {
|
|
142
142
|
border-collapse: separate;
|
|
143
143
|
border-spacing: 0;
|
|
144
144
|
box-sizing: border-box;
|
|
@@ -174,33 +174,33 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
174
174
|
-moz-osx-font-smoothing: auto;
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
-
.awsui_search-
|
|
177
|
+
.awsui_search-field_1wzqe_13ua9_176:not(#\9) {
|
|
178
178
|
display: flex;
|
|
179
179
|
align-items: flex-end;
|
|
180
180
|
max-inline-size: calc(688px - 2 * var(--space-l-t419sm, 20px));
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
.awsui_input-
|
|
183
|
+
.awsui_input-wrapper_1wzqe_13ua9_182:not(#\9) {
|
|
184
184
|
flex-grow: 1;
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
-
.awsui_add-
|
|
187
|
+
.awsui_add-token_1wzqe_13ua9_186:not(#\9) {
|
|
188
188
|
border-inline-start: 1px solid var(--color-border-divider-default-j74lyz, #b6bec9);
|
|
189
189
|
box-sizing: border-box;
|
|
190
190
|
margin-inline-start: var(--space-m-udix3p, 16px);
|
|
191
191
|
padding-inline-start: var(--space-m-udix3p, 16px);
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
-
.
|
|
194
|
+
.awsui_tokens_1wzqe_13ua9_193:not(#\9) {
|
|
195
195
|
margin-block: var(--space-xs-zb16t3, 8px);
|
|
196
196
|
margin-inline: 0;
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
.awsui_token-
|
|
199
|
+
.awsui_token-operator_1wzqe_13ua9_198:not(#\9) {
|
|
200
200
|
font-weight: bold;
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
-
.awsui_property-
|
|
203
|
+
.awsui_property-editor_1wzqe_13ua9_202:not(#\9) {
|
|
204
204
|
-webkit-user-select: text;
|
|
205
205
|
user-select: text;
|
|
206
206
|
margin-block: var(--space-xxs-p8yyaw, 4px);
|
|
@@ -209,32 +209,32 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
209
209
|
padding-inline: var(--space-m-udix3p, 16px);
|
|
210
210
|
overflow-y: auto;
|
|
211
211
|
}
|
|
212
|
-
.awsui_property-editor-
|
|
212
|
+
.awsui_property-editor-form_1wzqe_13ua9_210:not(#\9) {
|
|
213
213
|
margin-block-end: var(--space-scaled-l-0hpmd7, 20px);
|
|
214
214
|
}
|
|
215
|
-
.awsui_property-editor-field-
|
|
215
|
+
.awsui_property-editor-field-property_1wzqe_13ua9_213:not(#\9) {
|
|
216
216
|
/* used in test-utils */
|
|
217
217
|
}
|
|
218
|
-
.awsui_property-editor-field-
|
|
218
|
+
.awsui_property-editor-field-operator_1wzqe_13ua9_216:not(#\9) {
|
|
219
219
|
margin-block-start: var(--space-scaled-l-0hpmd7, 20px);
|
|
220
220
|
}
|
|
221
|
-
.awsui_property-editor-field-
|
|
221
|
+
.awsui_property-editor-field-value_1wzqe_13ua9_219:not(#\9) {
|
|
222
222
|
margin-block-start: var(--space-scaled-l-0hpmd7, 20px);
|
|
223
223
|
}
|
|
224
|
-
.awsui_property-editor-
|
|
224
|
+
.awsui_property-editor-cancel_1wzqe_13ua9_222:not(#\9) {
|
|
225
225
|
margin-inline-end: var(--space-xs-zb16t3, 8px);
|
|
226
226
|
}
|
|
227
|
-
.awsui_property-editor-
|
|
227
|
+
.awsui_property-editor-submit_1wzqe_13ua9_225:not(#\9) {
|
|
228
228
|
/* used in test-utils */
|
|
229
229
|
}
|
|
230
|
-
.awsui_property-editor-
|
|
230
|
+
.awsui_property-editor-actions_1wzqe_13ua9_228:not(#\9) {
|
|
231
231
|
display: flex;
|
|
232
232
|
justify-content: flex-end;
|
|
233
233
|
padding-block-start: var(--space-s-34lx8l, 12px);
|
|
234
234
|
border-block-start: 1px solid var(--color-border-dropdown-item-default-k36ra7, #b6bec9);
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
-
.awsui_token-
|
|
237
|
+
.awsui_token-editor_1wzqe_13ua9_235:not(#\9) {
|
|
238
238
|
display: flex;
|
|
239
239
|
flex-direction: column;
|
|
240
240
|
gap: var(--space-s-34lx8l, 12px);
|
|
@@ -243,25 +243,25 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
243
243
|
margin-block: var(--space-xxs-p8yyaw, 4px);
|
|
244
244
|
margin-inline: var(--space-xxs-p8yyaw, 4px);
|
|
245
245
|
}
|
|
246
|
-
.awsui_token-editor-
|
|
246
|
+
.awsui_token-editor-form_1wzqe_13ua9_243:not(#\9) {
|
|
247
247
|
/* used in test-utils */
|
|
248
248
|
}
|
|
249
|
-
.awsui_token-editor-field-
|
|
249
|
+
.awsui_token-editor-field-property_1wzqe_13ua9_246:not(#\9) {
|
|
250
250
|
flex-grow: 2;
|
|
251
251
|
}
|
|
252
|
-
.awsui_token-editor-field-
|
|
252
|
+
.awsui_token-editor-field-operator_1wzqe_13ua9_249:not(#\9) {
|
|
253
253
|
flex-grow: 1;
|
|
254
254
|
}
|
|
255
|
-
.awsui_token-editor-field-
|
|
255
|
+
.awsui_token-editor-field-value_1wzqe_13ua9_252:not(#\9) {
|
|
256
256
|
flex-grow: 2;
|
|
257
257
|
}
|
|
258
|
-
.awsui_token-editor-
|
|
258
|
+
.awsui_token-editor-cancel_1wzqe_13ua9_255:not(#\9) {
|
|
259
259
|
margin-inline-end: var(--space-xs-zb16t3, 8px);
|
|
260
260
|
}
|
|
261
|
-
.awsui_token-editor-
|
|
261
|
+
.awsui_token-editor-submit_1wzqe_13ua9_258:not(#\9) {
|
|
262
262
|
/* used in test-utils */
|
|
263
263
|
}
|
|
264
|
-
.awsui_token-editor-
|
|
264
|
+
.awsui_token-editor-actions_1wzqe_13ua9_261:not(#\9) {
|
|
265
265
|
display: flex;
|
|
266
266
|
justify-content: flex-end;
|
|
267
267
|
padding-block-start: var(--space-s-34lx8l, 12px);
|
|
@@ -270,7 +270,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
270
270
|
margin-inline: calc(-1 * var(--space-m-udix3p, 16px) + -1 * var(--space-xxs-p8yyaw, 4px));
|
|
271
271
|
margin-block-start: var(--space-s-34lx8l, 12px);
|
|
272
272
|
}
|
|
273
|
-
.awsui_token-editor-
|
|
273
|
+
.awsui_token-editor-grid_1wzqe_13ua9_270:not(#\9) {
|
|
274
274
|
border-collapse: separate;
|
|
275
275
|
border-spacing: 0;
|
|
276
276
|
box-sizing: border-box;
|
|
@@ -308,62 +308,70 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
308
308
|
gap: var(--space-s-34lx8l, 12px);
|
|
309
309
|
grid-template-columns: minmax(min-content, 2fr) minmax(min-content, 120px) minmax(min-content, 3fr) min-content;
|
|
310
310
|
}
|
|
311
|
-
.awsui_token-editor-grid-
|
|
311
|
+
.awsui_token-editor-grid-group_1wzqe_13ua9_307:not(#\9) {
|
|
312
312
|
display: contents;
|
|
313
313
|
}
|
|
314
|
-
.awsui_token-editor-
|
|
314
|
+
.awsui_token-editor-grid_1wzqe_13ua9_270.awsui_token-editor-narrow_1wzqe_13ua9_310:not(#\9) {
|
|
315
315
|
grid-template-columns: minmax(100px, 1fr);
|
|
316
316
|
gap: var(--space-m-udix3p, 16px);
|
|
317
317
|
}
|
|
318
|
-
.awsui_token-editor-
|
|
318
|
+
.awsui_token-editor-grid_1wzqe_13ua9_270.awsui_token-editor-narrow_1wzqe_13ua9_310 > .awsui_token-editor-grid-group_1wzqe_13ua9_307:not(#\9) {
|
|
319
319
|
display: flex;
|
|
320
320
|
flex-direction: column;
|
|
321
321
|
gap: var(--space-s-34lx8l, 12px);
|
|
322
322
|
}
|
|
323
|
-
.awsui_token-editor-grid-
|
|
323
|
+
.awsui_token-editor-grid_1wzqe_13ua9_270.awsui_token-editor-narrow_1wzqe_13ua9_310 > .awsui_token-editor-grid-group_1wzqe_13ua9_307.awsui_token-editor-supports-groups_1wzqe_13ua9_319:not(#\9) {
|
|
324
|
+
padding-block-end: var(--space-m-udix3p, 16px);
|
|
325
|
+
border-block-end: var(--border-divider-section-width-1061zr, 1px) solid var(--color-border-divider-default-j74lyz, #b6bec9);
|
|
326
|
+
}
|
|
327
|
+
.awsui_token-editor-grid-header_1wzqe_13ua9_323:not(#\9) {
|
|
324
328
|
color: var(--color-text-column-header-czuvwg, #414d5c);
|
|
325
329
|
font-weight: var(--font-weight-heading-s-cwn6wc, 700);
|
|
326
330
|
padding-block: var(--space-scaled-xxs-7597g1, 4px);
|
|
327
331
|
text-align: start;
|
|
328
332
|
}
|
|
329
|
-
.awsui_token-editor-grid-
|
|
333
|
+
.awsui_token-editor-grid-cell_1wzqe_13ua9_329:not(#\9):not(.awsui_token-editor-narrow_1wzqe_13ua9_310) {
|
|
330
334
|
display: flex;
|
|
331
335
|
align-items: flex-end;
|
|
332
336
|
justify-content: flex-end;
|
|
333
337
|
}
|
|
334
|
-
.awsui_token-editor-
|
|
338
|
+
.awsui_token-editor-grid-cell_1wzqe_13ua9_329.awsui_token-editor-narrow_1wzqe_13ua9_310:not(#\9):nth-child(4) {
|
|
339
|
+
display: flex;
|
|
340
|
+
justify-content: flex-end;
|
|
341
|
+
}
|
|
342
|
+
.awsui_token-editor-add-token_1wzqe_13ua9_338:not(#\9) {
|
|
335
343
|
margin-block-start: var(--space-s-34lx8l, 12px);
|
|
336
344
|
}
|
|
337
345
|
|
|
338
|
-
.awsui_custom-content-
|
|
346
|
+
.awsui_custom-content-wrapper_1wzqe_13ua9_342:not(#\9) {
|
|
339
347
|
display: contents;
|
|
340
348
|
}
|
|
341
349
|
|
|
342
|
-
.awsui_custom-
|
|
350
|
+
.awsui_custom-control_1wzqe_13ua9_346:not(#\9) {
|
|
343
351
|
margin-inline-end: var(--space-s-34lx8l, 12px);
|
|
344
352
|
}
|
|
345
353
|
|
|
346
|
-
.
|
|
354
|
+
.awsui_input_1wzqe_13ua9_182:not(#\9) {
|
|
347
355
|
flex: 1;
|
|
348
356
|
}
|
|
349
357
|
|
|
350
|
-
.
|
|
358
|
+
.awsui_results_1wzqe_13ua9_354:not(#\9) {
|
|
351
359
|
padding-block: calc(var(--space-scaled-xxs-7597g1, 4px) + var(--border-field-width-09w7vk, 2px));
|
|
352
360
|
padding-inline: 0;
|
|
353
361
|
}
|
|
354
362
|
|
|
355
|
-
.awsui_token-
|
|
363
|
+
.awsui_token-trigger_1wzqe_13ua9_359:not(#\9) {
|
|
356
364
|
min-inline-size: 0;
|
|
357
365
|
word-break: break-word;
|
|
358
366
|
}
|
|
359
367
|
|
|
360
|
-
.awsui_remove-
|
|
361
|
-
.awsui_join-
|
|
362
|
-
.awsui_custom-filter-
|
|
368
|
+
.awsui_remove-all_1wzqe_13ua9_364:not(#\9),
|
|
369
|
+
.awsui_join-operation_1wzqe_13ua9_365:not(#\9),
|
|
370
|
+
.awsui_custom-filter-actions_1wzqe_13ua9_366:not(#\9) {
|
|
363
371
|
/* used in test-utils */
|
|
364
372
|
}
|
|
365
373
|
|
|
366
|
-
.
|
|
374
|
+
.awsui_constraint_1wzqe_13ua9_370:not(#\9) {
|
|
367
375
|
padding-block-start: var(--space-xxs-p8yyaw, 4px);
|
|
368
376
|
color: var(--color-text-form-secondary-dxc248, #5f6b7a);
|
|
369
377
|
font-size: var(--font-size-body-s-asqx2i, 12px);
|
|
@@ -2,43 +2,43 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"root": "
|
|
6
|
-
"search-field": "awsui_search-
|
|
7
|
-
"input-wrapper": "awsui_input-
|
|
8
|
-
"add-token": "awsui_add-
|
|
9
|
-
"tokens": "
|
|
10
|
-
"token-operator": "awsui_token-
|
|
11
|
-
"property-editor": "awsui_property-
|
|
12
|
-
"property-editor-form": "awsui_property-editor-
|
|
13
|
-
"property-editor-field-property": "awsui_property-editor-field-
|
|
14
|
-
"property-editor-field-operator": "awsui_property-editor-field-
|
|
15
|
-
"property-editor-field-value": "awsui_property-editor-field-
|
|
16
|
-
"property-editor-cancel": "awsui_property-editor-
|
|
17
|
-
"property-editor-submit": "awsui_property-editor-
|
|
18
|
-
"property-editor-actions": "awsui_property-editor-
|
|
19
|
-
"token-editor": "awsui_token-
|
|
20
|
-
"token-editor-form": "awsui_token-editor-
|
|
21
|
-
"token-editor-field-property": "awsui_token-editor-field-
|
|
22
|
-
"token-editor-field-operator": "awsui_token-editor-field-
|
|
23
|
-
"token-editor-field-value": "awsui_token-editor-field-
|
|
24
|
-
"token-editor-cancel": "awsui_token-editor-
|
|
25
|
-
"token-editor-submit": "awsui_token-editor-
|
|
26
|
-
"token-editor-actions": "awsui_token-editor-
|
|
27
|
-
"token-editor-grid": "awsui_token-editor-
|
|
28
|
-
"token-editor-grid-group": "awsui_token-editor-grid-
|
|
29
|
-
"token-editor-narrow": "awsui_token-editor-
|
|
30
|
-
"token-editor-
|
|
31
|
-
"token-editor-grid-header": "awsui_token-editor-grid-
|
|
32
|
-
"token-editor-grid-cell": "awsui_token-editor-grid-
|
|
33
|
-
"token-editor-add-token": "awsui_token-editor-add-
|
|
34
|
-
"custom-content-wrapper": "awsui_custom-content-
|
|
35
|
-
"custom-control": "awsui_custom-
|
|
36
|
-
"input": "
|
|
37
|
-
"results": "
|
|
38
|
-
"token-trigger": "awsui_token-
|
|
39
|
-
"remove-all": "awsui_remove-
|
|
40
|
-
"join-operation": "awsui_join-
|
|
41
|
-
"custom-filter-actions": "awsui_custom-filter-
|
|
42
|
-
"constraint": "
|
|
5
|
+
"root": "awsui_root_1wzqe_13ua9_141",
|
|
6
|
+
"search-field": "awsui_search-field_1wzqe_13ua9_176",
|
|
7
|
+
"input-wrapper": "awsui_input-wrapper_1wzqe_13ua9_182",
|
|
8
|
+
"add-token": "awsui_add-token_1wzqe_13ua9_186",
|
|
9
|
+
"tokens": "awsui_tokens_1wzqe_13ua9_193",
|
|
10
|
+
"token-operator": "awsui_token-operator_1wzqe_13ua9_198",
|
|
11
|
+
"property-editor": "awsui_property-editor_1wzqe_13ua9_202",
|
|
12
|
+
"property-editor-form": "awsui_property-editor-form_1wzqe_13ua9_210",
|
|
13
|
+
"property-editor-field-property": "awsui_property-editor-field-property_1wzqe_13ua9_213",
|
|
14
|
+
"property-editor-field-operator": "awsui_property-editor-field-operator_1wzqe_13ua9_216",
|
|
15
|
+
"property-editor-field-value": "awsui_property-editor-field-value_1wzqe_13ua9_219",
|
|
16
|
+
"property-editor-cancel": "awsui_property-editor-cancel_1wzqe_13ua9_222",
|
|
17
|
+
"property-editor-submit": "awsui_property-editor-submit_1wzqe_13ua9_225",
|
|
18
|
+
"property-editor-actions": "awsui_property-editor-actions_1wzqe_13ua9_228",
|
|
19
|
+
"token-editor": "awsui_token-editor_1wzqe_13ua9_235",
|
|
20
|
+
"token-editor-form": "awsui_token-editor-form_1wzqe_13ua9_243",
|
|
21
|
+
"token-editor-field-property": "awsui_token-editor-field-property_1wzqe_13ua9_246",
|
|
22
|
+
"token-editor-field-operator": "awsui_token-editor-field-operator_1wzqe_13ua9_249",
|
|
23
|
+
"token-editor-field-value": "awsui_token-editor-field-value_1wzqe_13ua9_252",
|
|
24
|
+
"token-editor-cancel": "awsui_token-editor-cancel_1wzqe_13ua9_255",
|
|
25
|
+
"token-editor-submit": "awsui_token-editor-submit_1wzqe_13ua9_258",
|
|
26
|
+
"token-editor-actions": "awsui_token-editor-actions_1wzqe_13ua9_261",
|
|
27
|
+
"token-editor-grid": "awsui_token-editor-grid_1wzqe_13ua9_270",
|
|
28
|
+
"token-editor-grid-group": "awsui_token-editor-grid-group_1wzqe_13ua9_307",
|
|
29
|
+
"token-editor-narrow": "awsui_token-editor-narrow_1wzqe_13ua9_310",
|
|
30
|
+
"token-editor-supports-groups": "awsui_token-editor-supports-groups_1wzqe_13ua9_319",
|
|
31
|
+
"token-editor-grid-header": "awsui_token-editor-grid-header_1wzqe_13ua9_323",
|
|
32
|
+
"token-editor-grid-cell": "awsui_token-editor-grid-cell_1wzqe_13ua9_329",
|
|
33
|
+
"token-editor-add-token": "awsui_token-editor-add-token_1wzqe_13ua9_338",
|
|
34
|
+
"custom-content-wrapper": "awsui_custom-content-wrapper_1wzqe_13ua9_342",
|
|
35
|
+
"custom-control": "awsui_custom-control_1wzqe_13ua9_346",
|
|
36
|
+
"input": "awsui_input_1wzqe_13ua9_182",
|
|
37
|
+
"results": "awsui_results_1wzqe_13ua9_354",
|
|
38
|
+
"token-trigger": "awsui_token-trigger_1wzqe_13ua9_359",
|
|
39
|
+
"remove-all": "awsui_remove-all_1wzqe_13ua9_364",
|
|
40
|
+
"join-operation": "awsui_join-operation_1wzqe_13ua9_365",
|
|
41
|
+
"custom-filter-actions": "awsui_custom-filter-actions_1wzqe_13ua9_366",
|
|
42
|
+
"constraint": "awsui_constraint_1wzqe_13ua9_370"
|
|
43
43
|
};
|
|
44
44
|
|
|
@@ -15,10 +15,11 @@ export interface TokenEditorProps {
|
|
|
15
15
|
onLoadItems?: NonCancelableEventHandler<LoadItemsDetail>;
|
|
16
16
|
onSubmit: () => void;
|
|
17
17
|
onDismiss: () => void;
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
tokensToCapture: InternalToken[];
|
|
19
|
+
onTokenCapture: (token: InternalToken) => void;
|
|
20
|
+
onTokenRelease: (token: InternalToken) => void;
|
|
20
21
|
tempGroup: InternalToken[];
|
|
21
22
|
onChangeTempGroup: (token: InternalToken[]) => void;
|
|
22
23
|
}
|
|
23
|
-
export declare function TokenEditor({ supportsGroups, asyncProperties, asyncProps, customGroupsText, freeTextFiltering, filteringProperties, filteringOptions, i18nStrings, onLoadItems, onSubmit, onDismiss,
|
|
24
|
+
export declare function TokenEditor({ supportsGroups, asyncProperties, asyncProps, customGroupsText, freeTextFiltering, filteringProperties, filteringOptions, i18nStrings, onLoadItems, onSubmit, onDismiss, tokensToCapture, onTokenCapture, onTokenRelease, tempGroup, onChangeTempGroup, }: TokenEditorProps): JSX.Element;
|
|
24
25
|
//# sourceMappingURL=token-editor.d.ts.map
|