@cloudscape-design/components 3.0.59 → 3.0.61

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.
Files changed (50) hide show
  1. package/attribute-editor/styles.scoped.css +4 -1
  2. package/breadcrumb-group/item/styles.scoped.css +2 -0
  3. package/calendar/grid/day/index.d.ts +2 -2
  4. package/calendar/grid/day/index.d.ts.map +1 -1
  5. package/calendar/grid/day/index.js +5 -4
  6. package/calendar/grid/day/index.js.map +1 -1
  7. package/calendar/grid/index.d.ts.map +1 -1
  8. package/calendar/grid/index.js.map +1 -1
  9. package/calendar/styles.css.js +20 -20
  10. package/calendar/styles.scoped.css +69 -41
  11. package/calendar/styles.selectors.js +20 -20
  12. package/date-input/internal.js +1 -1
  13. package/date-input/internal.js.map +1 -1
  14. package/date-range-picker/calendar/grids/day/styles.css.js +21 -21
  15. package/date-range-picker/calendar/grids/day/styles.scoped.css +41 -41
  16. package/date-range-picker/calendar/grids/day/styles.selectors.js +21 -21
  17. package/date-range-picker/calendar/index.js +23 -27
  18. package/date-range-picker/calendar/index.js.map +1 -1
  19. package/date-range-picker/styles.css.js +40 -41
  20. package/date-range-picker/styles.scoped.css +52 -53
  21. package/date-range-picker/styles.selectors.js +40 -41
  22. package/flashbar/flash.d.ts.map +1 -1
  23. package/flashbar/flash.js +2 -2
  24. package/flashbar/flash.js.map +1 -1
  25. package/flashbar/interfaces.d.ts +2 -0
  26. package/flashbar/interfaces.d.ts.map +1 -1
  27. package/flashbar/interfaces.js.map +1 -1
  28. package/help-panel/styles.scoped.css +2 -0
  29. package/input/internal.js +1 -1
  30. package/input/internal.js.map +1 -1
  31. package/internal/base-component/styles.scoped.css +0 -8
  32. package/internal/environment.js +1 -1
  33. package/link/styles.scoped.css +18 -1
  34. package/package.json +1 -1
  35. package/property-filter/interfaces.d.ts +1 -5
  36. package/property-filter/interfaces.d.ts.map +1 -1
  37. package/property-filter/interfaces.js.map +1 -1
  38. package/property-filter/styles.css.js +25 -30
  39. package/property-filter/styles.scoped.css +28 -56
  40. package/property-filter/styles.selectors.js +25 -30
  41. package/property-filter/token-editor.d.ts.map +1 -1
  42. package/property-filter/token-editor.js +13 -28
  43. package/property-filter/token-editor.js.map +1 -1
  44. package/property-filter/token.d.ts.map +1 -1
  45. package/property-filter/token.js.map +1 -1
  46. package/tag-editor/styles.scoped.css +2 -0
  47. package/text-content/styles.scoped.css +6 -1
  48. package/textarea/index.js +1 -1
  49. package/textarea/index.js.map +1 -1
  50. package/token-group/styles.scoped.css +2 -0
@@ -133,7 +133,9 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
133
133
  text-decoration: none;
134
134
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
135
135
  text-decoration-color: transparent;
136
+ transition-property: color, -webkit-text-decoration;
136
137
  transition-property: color, text-decoration;
138
+ transition-property: color, text-decoration, -webkit-text-decoration;
137
139
  transition-duration: var(--motion-duration-refresh-only-medium-5flen2, 165ms);
138
140
  }
139
141
  @media (prefers-reduced-motion: reduce) {
@@ -168,7 +170,9 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
168
170
  text-decoration: none;
169
171
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
170
172
  text-decoration-color: transparent;
173
+ transition-property: color, -webkit-text-decoration;
171
174
  transition-property: color, text-decoration;
175
+ transition-property: color, text-decoration, -webkit-text-decoration;
172
176
  transition-duration: var(--motion-duration-refresh-only-medium-5flen2, 165ms);
173
177
  }
174
178
  @media (prefers-reduced-motion: reduce) {
@@ -200,10 +204,13 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
200
204
  color: var(--color-text-link-default-5f186r, #0972d3);
201
205
  font-weight: var(--font-link-primary-weight-91pybi, "inherit");
202
206
  letter-spacing: var(--font-link-primary-letter-spacing-vmsgcx, "inherit");
203
- text-decoration: var(--font-link-primary-decoration-wfgjh2, underline);
207
+ -webkit-text-decoration: var(--font-link-primary-decoration-wfgjh2, underline);
208
+ text-decoration: var(--font-link-primary-decoration-wfgjh2, underline);
204
209
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
205
210
  text-decoration-color: var(--color-text-link-primary-underline-ga7rq8, #0972d3);
211
+ transition-property: color, -webkit-text-decoration;
206
212
  transition-property: color, text-decoration;
213
+ transition-property: color, text-decoration, -webkit-text-decoration;
207
214
  transition-duration: var(--motion-duration-refresh-only-medium-5flen2, 165ms);
208
215
  }
209
216
  @media (prefers-reduced-motion: reduce) {
@@ -238,7 +245,9 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
238
245
  text-decoration: none;
239
246
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
240
247
  text-decoration-color: transparent;
248
+ transition-property: color, -webkit-text-decoration;
241
249
  transition-property: color, text-decoration;
250
+ transition-property: color, text-decoration, -webkit-text-decoration;
242
251
  transition-duration: var(--motion-duration-refresh-only-medium-5flen2, 165ms);
243
252
  }
244
253
  @media (prefers-reduced-motion: reduce) {
@@ -272,7 +281,9 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
272
281
  text-decoration: none;
273
282
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
274
283
  text-decoration-color: transparent;
284
+ transition-property: color, -webkit-text-decoration;
275
285
  transition-property: color, text-decoration;
286
+ transition-property: color, text-decoration, -webkit-text-decoration;
276
287
  transition-duration: var(--motion-duration-refresh-only-medium-5flen2, 165ms);
277
288
  }
278
289
  @media (prefers-reduced-motion: reduce) {
@@ -307,7 +318,9 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
307
318
  text-decoration: none;
308
319
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
309
320
  text-decoration-color: transparent;
321
+ transition-property: color, -webkit-text-decoration;
310
322
  transition-property: color, text-decoration;
323
+ transition-property: color, text-decoration, -webkit-text-decoration;
311
324
  transition-duration: var(--motion-duration-refresh-only-medium-5flen2, 165ms);
312
325
  }
313
326
  @media (prefers-reduced-motion: reduce) {
@@ -342,7 +355,9 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
342
355
  text-decoration: underline;
343
356
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
344
357
  text-decoration-color: var(--color-text-link-button-underline-8mp92t, transparent);
358
+ transition-property: color, -webkit-text-decoration;
345
359
  transition-property: color, text-decoration;
360
+ transition-property: color, text-decoration, -webkit-text-decoration;
346
361
  transition-duration: var(--motion-duration-refresh-only-medium-5flen2, 165ms);
347
362
  }
348
363
  @media (prefers-reduced-motion: reduce) {
@@ -377,7 +392,9 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
377
392
  text-decoration: none;
378
393
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
379
394
  text-decoration-color: transparent;
395
+ transition-property: color, -webkit-text-decoration;
380
396
  transition-property: color, text-decoration;
397
+ transition-property: color, text-decoration, -webkit-text-decoration;
381
398
  transition-duration: var(--motion-duration-refresh-only-medium-5flen2, 165ms);
382
399
  }
383
400
  @media (prefers-reduced-motion: reduce) {
package/package.json CHANGED
@@ -111,6 +111,6 @@
111
111
  "./internal/base-component/index.js",
112
112
  "./internal/base-component/styles.css.js"
113
113
  ],
114
- "version": "3.0.59",
114
+ "version": "3.0.61",
115
115
  "license": "Apache-2.0"
116
116
  }
@@ -145,11 +145,7 @@ export declare namespace PropertyFilterProps {
145
145
  type ComparisonOperator = PropertyFilterOperator;
146
146
  type ExtendedOperator<TokenValue> = PropertyFilterOperatorExtended<TokenValue>;
147
147
  type FilteringOption = PropertyFilterOption;
148
- interface FilteringProperty extends PropertyFilterProperty {
149
- groupValuesLabel: string;
150
- propertyLabel: string;
151
- group?: string;
152
- }
148
+ type FilteringProperty = PropertyFilterProperty;
153
149
  interface Query {
154
150
  tokens: ReadonlyArray<PropertyFilterProps.Token>;
155
151
  operation: PropertyFilterProps.JoinOperation;
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/property-filter/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAC9E,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,8BAA8B,EAC9B,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,qCAAqC,CAAC;AAE7C,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB,EAAE,gBAAgB;IAC/E;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,WAAW,EAAE,mBAAmB,CAAC,WAAW,CAAC;IAC7C;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;;;;;OAUG;IACH,KAAK,EAAE,mBAAmB,CAAC,KAAK,CAAC;IACjC;;;;;OAKG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,QAAQ,EAAE,yBAAyB,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC;IAC/D;;;;;;;;;OASG;IACH,mBAAmB,EAAE,aAAa,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,CAAC;IAC1E;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,aAAa,CAAC,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACtE;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,mBAAmB,CAAC,SAAS,EAAE,CAAC;IACnD;;;OAGG;IACH,wBAAwB,CAAC,EAAE,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- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/property-filter/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\nimport { DropdownStatusProps } from '../internal/components/dropdown-status';\nimport { AutosuggestProps } from '../autosuggest/interfaces';\nimport { ExpandToViewport } from '../internal/components/dropdown/interfaces';\nimport {\n PropertyFilterOperation,\n PropertyFilterOperator,\n PropertyFilterOperatorExtended,\n PropertyFilterOption,\n PropertyFilterProperty,\n PropertyFilterToken,\n} from '@cloudscape-design/collection-hooks';\n\nexport interface PropertyFilterProps extends BaseComponentProps, ExpandToViewport {\n /**\n * If set to `true`, the filtering input will be disabled.\n * Use it, for example, if you are fetching new items upon filtering change\n * in order to prevent the user from changing the filtering query.\n */\n disabled?: boolean;\n /**\n * An object containing all the necessary localized strings required by the component.\n */\n i18nStrings: PropertyFilterProps.I18nStrings;\n /**\n * Accepts a human-readable, localized string that indicates the number of results. For example, \"1 match\" or \"165 matches.\"\n * If the total number of results is unknown, also include an indication that there may be more results than\n * the number listed. For example, \"25+ matches.\"\n *\n * The count text is only displayed when `query.tokens` isn't empty.\n */\n countText?: string;\n /**\n * An object representing the current query displayed in the property filter. Has two properties: `tokens` and `operation`.\n * `tokens` is an array of objects that will be displayed to the user beneath the filtering input.\n * Each token has the following properties:\n *\n * * value [string]: The string value of the token to be used as a filter.\n * * propertyKey [string]: The key of the corresponding property in filteringProperties.\n * * operator ['<' | '<=' | '>' | '>=' | ':' | '!:' | '=' | '!=']: The operator which indicates how to filter the dataset using this token.\n *\n * `operation` has two valid values [and, or] and controls the join operation to be applied between tokens when filtering the items.\n */\n query: PropertyFilterProps.Query;\n /**\n * If hideOperations it set, the indicator of the operation (that is, `and` or `or`) and the selection of operations\n * (applied to the property and value token) are hidden from the user. Only use when you have a custom\n * filtering logic which combines tokens in different way than the default one. When used, ensure that\n * operations are communicated to the user in another way.\n */\n hideOperations?: boolean;\n /**\n * Fired when the `query` gets changed. Filter the dataset in response to this event using the values in the `detail` object.\n */\n onChange: NonCancelableEventHandler<PropertyFilterProps.Query>;\n /**\n * An array of properties by which the data set can be filtered. Each element has the following properties:\n *\n * * groupValuesLabel [string]: Localized string to display for the 'Values' group label for a specific property.\n * * key [string]: The identifier of this property.\n * * propertyLabel [string]: A human-readable string for the property.\n * * operators [Array]: A list of all operators supported by this property. If you omit the equals operator because your API does not support it, make sure to set `defaultOperator` to a supported operator from this list.\n * * group [string]: Optional identifier of a custom group that this filtering option is assigned to. Use to create additional groups below the default one. Make sure to also define labels for the group in the customGroupsText property. Notice that only one level of options nesting is supported.\n * * defaultOperator [ComparisonOperator]: Optional parameter that changes the default operator used with this filtering property. Use it only if your API does not support \"equals\" filtering terms with this property.\n */\n filteringProperties: ReadonlyArray<PropertyFilterProps.FilteringProperty>;\n /**\n * An array of possible values of the individual `filteringProperties`. Each element has the following properties:\n *\n * * `propertyKey` [string]: The key of the corresponding filtering property in the `filteringProperties` array.\n * * `value` [string]: The value that will be used as a suggestion when creating or modifying a filtering token.\n */\n filteringOptions?: ReadonlyArray<PropertyFilterProps.FilteringOption>;\n /**\n * An array of objects that contain localized, human-readable strings for the labels of custom groups within the filtering dropdown. Use group property to associate the strings with your custom group of options. Define the following values for each group:\n *\n * * properties [string]: The group label in the filtering dropdown that contains the list of properties from this group. For example: Tags.\n * * values [string]: The group label in the filtering dropdown that contains the list of values from this group. For example: Tags values.\n * * group [string]: The identifier of a custom group.\n */\n customGroupsText?: PropertyFilterProps.GroupText[];\n /**\n * Set `disableFreeTextFiltering` only if you can’t filter the dataset using a filter that is applied to every column,\n * instead of a specific property. This would stop the user from creating such tokens.\n */\n disableFreeTextFiltering?: boolean;\n /**\n * Use this event to asynchronously load filteringOptions, component currently needs. The detail object contains following properties:\n *\n * * `filteringProperty` - The property for which you need to fetch the options.\n * * `filteringOperator` - The operator for which you need to fetch the options.\n * * `filteringText` - The value that you need to use to fetch options.\n * * `firstPage` - Indicates that you should fetch the first page of options for a `filteringProperty` that match the `filteringText`.\n * * `samePage` - Indicates that you should fetch the same page that you have previously fetched (for example, when the user clicks on the recovery button).\n */\n onLoadItems?: NonCancelableEventHandler<PropertyFilterProps.LoadItemsDetail>;\n /**\n * If you have more than 500 `filteringOptions`, enable this flag to apply a performance optimization that makes\n * the filtering experience smoother. We don't recommend enabling the feature if you have less than 500 options,\n * because the improvements to performance are offset by a visible scrolling lag. When you set this flag to true,\n * it removes options that are not currently in view from the DOM.\n */\n virtualScroll?: boolean;\n /**\n * A slot located before the filtering input. Use it if for a Select component if your dataset supports property\n * filter queries only after an initial filter is applied.\n */\n customControl?: React.ReactNode;\n /**\n * Set `asyncProperties` if you need to load `filteringProperties` asynchronousely. This would cause extra `onLoadMore`\n * events to fire calling for more properties.\n */\n asyncProperties?: boolean;\n /**\n * Specifies the maximum number of displayed tokens. If the property isn't set, all of the tokens are displayed.\n */\n tokenLimit?: number;\n /**\n * Displayed when there are no options to display.\n * This is only shown when `statusType` is set to `finished` or not set at all.\n */\n filteringEmpty?: React.ReactNode;\n /**\n * Specifies the text to display when in the loading state.\n **/\n filteringLoadingText?: string;\n /**\n * Specifies the text to display at the bottom of the dropdown menu after pagination has reached the end.\n **/\n filteringFinishedText?: string;\n /**\n * Specifies the text to display when a data fetching error occurs. Make sure that you provide `recoveryText`.\n **/\n filteringErrorText?: string;\n /**\n * Specifies the text for the recovery button. The text is displayed next to the error text.\n * Use the `onLoadItems` event to perform a recovery action (for example, retrying the request).\n **/\n filteringRecoveryText?: string;\n /**\n * Specifies the current status of loading more options.\n * * `pending` - Indicates that no request in progress, but more options may be loaded.\n * * `loading` - Indicates that data fetching is in progress.\n * * `finished` - Indicates that pagination has finished and no more requests are expected.\n * * `error` - Indicates that an error occurred during fetch. You should use `recoveryText` to enable the user to recover.\n **/\n filteringStatusType?: DropdownStatusProps.StatusType;\n}\n\nexport namespace PropertyFilterProps {\n export type Token = PropertyFilterToken;\n export type JoinOperation = PropertyFilterOperation;\n export type ComparisonOperator = PropertyFilterOperator;\n export type ExtendedOperator<TokenValue> = PropertyFilterOperatorExtended<TokenValue>;\n export type FilteringOption = PropertyFilterOption;\n\n export interface FilteringProperty extends PropertyFilterProperty {\n groupValuesLabel: string;\n propertyLabel: string;\n group?: string;\n }\n\n export interface Query {\n tokens: ReadonlyArray<PropertyFilterProps.Token>;\n operation: PropertyFilterProps.JoinOperation;\n }\n\n export interface LoadItemsDetail {\n filteringProperty?: FilteringProperty;\n filteringOperator?: ComparisonOperator;\n filteringText: string;\n firstPage: boolean;\n samePage: boolean;\n }\n\n export interface I18nStrings {\n /**\n * Label that will be passed down to the Autosuggest `ariaLabel` property.\n * See the [Autosuggest API](/system/components/autosuggest/?tabId=api) page for more details.\n */\n filteringAriaLabel: string;\n dismissAriaLabel: string;\n\n filteringPlaceholder?: string;\n groupValuesText: string;\n groupPropertiesText: string;\n operatorsText: string;\n\n operationAndText: string;\n operationOrText: string;\n\n operatorLessText: string;\n operatorLessOrEqualText: string;\n operatorGreaterText: string;\n operatorGreaterOrEqualText: string;\n operatorContainsText: string;\n operatorDoesNotContainText: string;\n operatorEqualsText: string;\n operatorDoesNotEqualText: string;\n\n editTokenHeader: string;\n propertyText: string;\n operatorText: string;\n valueText: string;\n cancelActionText: string;\n applyActionText: string;\n allPropertiesLabel: string;\n\n tokenLimitShowMore?: string;\n tokenLimitShowFewer?: string;\n clearFiltersText: string;\n removeTokenButtonAriaLabel: (token: PropertyFilterProps.Token) => string;\n enteredTextLabel: AutosuggestProps.EnteredTextLabel;\n }\n\n export interface GroupText {\n properties: string;\n values: string;\n group: string;\n }\n\n export interface FilteringChangeDetail {\n filteringText: string;\n filteringProperty?: FilteringProperty;\n }\n\n export interface Ref {\n /**\n * Sets focus on the underlying input control.\n */\n focus(): void;\n }\n}\n\n// Re-exported namespace interfaces to use module-style imports internally\n\nexport type Token = PropertyFilterProps.Token;\nexport type JoinOperation = PropertyFilterProps.JoinOperation;\nexport type ComparisonOperator = PropertyFilterProps.ComparisonOperator;\nexport type ExtendedOperator<TokenValue> = PropertyFilterProps.ExtendedOperator<TokenValue>;\nexport type FilteringOption = PropertyFilterProps.FilteringOption;\nexport type FilteringProperty = PropertyFilterProps.FilteringProperty;\nexport type Query = PropertyFilterProps.Query;\nexport type LoadItemsDetail = PropertyFilterProps.LoadItemsDetail;\nexport type I18nStrings = PropertyFilterProps.I18nStrings;\nexport type GroupText = PropertyFilterProps.GroupText;\nexport type FilteringChangeDetail = PropertyFilterProps.FilteringChangeDetail;\nexport type Ref = PropertyFilterProps.Ref;\n\n// Utility types\n\nexport type ParsedText =\n | { step: 'property'; property: FilteringProperty; operator: ComparisonOperator; value: string }\n | { step: 'operator'; property: FilteringProperty; operatorPrefix: string }\n | { step: 'free-text'; operator?: ComparisonOperator; value: string };\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/property-filter/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\nimport { DropdownStatusProps } from '../internal/components/dropdown-status';\nimport { AutosuggestProps } from '../autosuggest/interfaces';\nimport { ExpandToViewport } from '../internal/components/dropdown/interfaces';\nimport {\n PropertyFilterOperation,\n PropertyFilterOperator,\n PropertyFilterOperatorExtended,\n PropertyFilterOption,\n PropertyFilterProperty,\n PropertyFilterToken,\n} from '@cloudscape-design/collection-hooks';\n\nexport interface PropertyFilterProps extends BaseComponentProps, ExpandToViewport {\n /**\n * If set to `true`, the filtering input will be disabled.\n * Use it, for example, if you are fetching new items upon filtering change\n * in order to prevent the user from changing the filtering query.\n */\n disabled?: boolean;\n /**\n * An object containing all the necessary localized strings required by the component.\n */\n i18nStrings: PropertyFilterProps.I18nStrings;\n /**\n * Accepts a human-readable, localized string that indicates the number of results. For example, \"1 match\" or \"165 matches.\"\n * If the total number of results is unknown, also include an indication that there may be more results than\n * the number listed. For example, \"25+ matches.\"\n *\n * The count text is only displayed when `query.tokens` isn't empty.\n */\n countText?: string;\n /**\n * An object representing the current query displayed in the property filter. Has two properties: `tokens` and `operation`.\n * `tokens` is an array of objects that will be displayed to the user beneath the filtering input.\n * Each token has the following properties:\n *\n * * value [string]: The string value of the token to be used as a filter.\n * * propertyKey [string]: The key of the corresponding property in filteringProperties.\n * * operator ['<' | '<=' | '>' | '>=' | ':' | '!:' | '=' | '!=']: The operator which indicates how to filter the dataset using this token.\n *\n * `operation` has two valid values [and, or] and controls the join operation to be applied between tokens when filtering the items.\n */\n query: PropertyFilterProps.Query;\n /**\n * If hideOperations it set, the indicator of the operation (that is, `and` or `or`) and the selection of operations\n * (applied to the property and value token) are hidden from the user. Only use when you have a custom\n * filtering logic which combines tokens in different way than the default one. When used, ensure that\n * operations are communicated to the user in another way.\n */\n hideOperations?: boolean;\n /**\n * Fired when the `query` gets changed. Filter the dataset in response to this event using the values in the `detail` object.\n */\n onChange: NonCancelableEventHandler<PropertyFilterProps.Query>;\n /**\n * An array of properties by which the data set can be filtered. Each element has the following properties:\n *\n * * groupValuesLabel [string]: Localized string to display for the 'Values' group label for a specific property.\n * * key [string]: The identifier of this property.\n * * propertyLabel [string]: A human-readable string for the property.\n * * operators [Array]: A list of all operators supported by this property. If you omit the equals operator because your API does not support it, make sure to set `defaultOperator` to a supported operator from this list.\n * * group [string]: Optional identifier of a custom group that this filtering option is assigned to. Use to create additional groups below the default one. Make sure to also define labels for the group in the customGroupsText property. Notice that only one level of options nesting is supported.\n * * defaultOperator [ComparisonOperator]: Optional parameter that changes the default operator used with this filtering property. Use it only if your API does not support \"equals\" filtering terms with this property.\n */\n filteringProperties: ReadonlyArray<PropertyFilterProps.FilteringProperty>;\n /**\n * An array of possible values of the individual `filteringProperties`. Each element has the following properties:\n *\n * * `propertyKey` [string]: The key of the corresponding filtering property in the `filteringProperties` array.\n * * `value` [string]: The value that will be used as a suggestion when creating or modifying a filtering token.\n */\n filteringOptions?: ReadonlyArray<PropertyFilterProps.FilteringOption>;\n /**\n * An array of objects that contain localized, human-readable strings for the labels of custom groups within the filtering dropdown. Use group property to associate the strings with your custom group of options. Define the following values for each group:\n *\n * * properties [string]: The group label in the filtering dropdown that contains the list of properties from this group. For example: Tags.\n * * values [string]: The group label in the filtering dropdown that contains the list of values from this group. For example: Tags values.\n * * group [string]: The identifier of a custom group.\n */\n customGroupsText?: PropertyFilterProps.GroupText[];\n /**\n * Set `disableFreeTextFiltering` only if you can’t filter the dataset using a filter that is applied to every column,\n * instead of a specific property. This would stop the user from creating such tokens.\n */\n disableFreeTextFiltering?: boolean;\n /**\n * Use this event to asynchronously load filteringOptions, component currently needs. The detail object contains following properties:\n *\n * * `filteringProperty` - The property for which you need to fetch the options.\n * * `filteringOperator` - The operator for which you need to fetch the options.\n * * `filteringText` - The value that you need to use to fetch options.\n * * `firstPage` - Indicates that you should fetch the first page of options for a `filteringProperty` that match the `filteringText`.\n * * `samePage` - Indicates that you should fetch the same page that you have previously fetched (for example, when the user clicks on the recovery button).\n */\n onLoadItems?: NonCancelableEventHandler<PropertyFilterProps.LoadItemsDetail>;\n /**\n * If you have more than 500 `filteringOptions`, enable this flag to apply a performance optimization that makes\n * the filtering experience smoother. We don't recommend enabling the feature if you have less than 500 options,\n * because the improvements to performance are offset by a visible scrolling lag. When you set this flag to true,\n * it removes options that are not currently in view from the DOM.\n */\n virtualScroll?: boolean;\n /**\n * A slot located before the filtering input. Use it if for a Select component if your dataset supports property\n * filter queries only after an initial filter is applied.\n */\n customControl?: React.ReactNode;\n /**\n * Set `asyncProperties` if you need to load `filteringProperties` asynchronousely. This would cause extra `onLoadMore`\n * events to fire calling for more properties.\n */\n asyncProperties?: boolean;\n /**\n * Specifies the maximum number of displayed tokens. If the property isn't set, all of the tokens are displayed.\n */\n tokenLimit?: number;\n /**\n * Displayed when there are no options to display.\n * This is only shown when `statusType` is set to `finished` or not set at all.\n */\n filteringEmpty?: React.ReactNode;\n /**\n * Specifies the text to display when in the loading state.\n **/\n filteringLoadingText?: string;\n /**\n * Specifies the text to display at the bottom of the dropdown menu after pagination has reached the end.\n **/\n filteringFinishedText?: string;\n /**\n * Specifies the text to display when a data fetching error occurs. Make sure that you provide `recoveryText`.\n **/\n filteringErrorText?: string;\n /**\n * Specifies the text for the recovery button. The text is displayed next to the error text.\n * Use the `onLoadItems` event to perform a recovery action (for example, retrying the request).\n **/\n filteringRecoveryText?: string;\n /**\n * Specifies the current status of loading more options.\n * * `pending` - Indicates that no request in progress, but more options may be loaded.\n * * `loading` - Indicates that data fetching is in progress.\n * * `finished` - Indicates that pagination has finished and no more requests are expected.\n * * `error` - Indicates that an error occurred during fetch. You should use `recoveryText` to enable the user to recover.\n **/\n filteringStatusType?: DropdownStatusProps.StatusType;\n}\n\nexport namespace PropertyFilterProps {\n export type Token = PropertyFilterToken;\n export type JoinOperation = PropertyFilterOperation;\n export type ComparisonOperator = PropertyFilterOperator;\n export type ExtendedOperator<TokenValue> = PropertyFilterOperatorExtended<TokenValue>;\n export type FilteringOption = PropertyFilterOption;\n export type FilteringProperty = PropertyFilterProperty;\n\n export interface Query {\n tokens: ReadonlyArray<PropertyFilterProps.Token>;\n operation: PropertyFilterProps.JoinOperation;\n }\n\n export interface LoadItemsDetail {\n filteringProperty?: FilteringProperty;\n filteringOperator?: ComparisonOperator;\n filteringText: string;\n firstPage: boolean;\n samePage: boolean;\n }\n\n export interface I18nStrings {\n /**\n * Label that will be passed down to the Autosuggest `ariaLabel` property.\n * See the [Autosuggest API](/system/components/autosuggest/?tabId=api) page for more details.\n */\n filteringAriaLabel: string;\n dismissAriaLabel: string;\n\n filteringPlaceholder?: string;\n groupValuesText: string;\n groupPropertiesText: string;\n operatorsText: string;\n\n operationAndText: string;\n operationOrText: string;\n\n operatorLessText: string;\n operatorLessOrEqualText: string;\n operatorGreaterText: string;\n operatorGreaterOrEqualText: string;\n operatorContainsText: string;\n operatorDoesNotContainText: string;\n operatorEqualsText: string;\n operatorDoesNotEqualText: string;\n\n editTokenHeader: string;\n propertyText: string;\n operatorText: string;\n valueText: string;\n cancelActionText: string;\n applyActionText: string;\n allPropertiesLabel: string;\n\n tokenLimitShowMore?: string;\n tokenLimitShowFewer?: string;\n clearFiltersText: string;\n removeTokenButtonAriaLabel: (token: PropertyFilterProps.Token) => string;\n enteredTextLabel: AutosuggestProps.EnteredTextLabel;\n }\n\n export interface GroupText {\n properties: string;\n values: string;\n group: string;\n }\n\n export interface FilteringChangeDetail {\n filteringText: string;\n filteringProperty?: FilteringProperty;\n }\n\n export interface Ref {\n /**\n * Sets focus on the underlying input control.\n */\n focus(): void;\n }\n}\n\n// Re-exported namespace interfaces to use module-style imports internally\n\nexport type Token = PropertyFilterProps.Token;\nexport type JoinOperation = PropertyFilterProps.JoinOperation;\nexport type ComparisonOperator = PropertyFilterProps.ComparisonOperator;\nexport type ExtendedOperator<TokenValue> = PropertyFilterProps.ExtendedOperator<TokenValue>;\nexport type FilteringOption = PropertyFilterProps.FilteringOption;\nexport type FilteringProperty = PropertyFilterProps.FilteringProperty;\nexport type Query = PropertyFilterProps.Query;\nexport type LoadItemsDetail = PropertyFilterProps.LoadItemsDetail;\nexport type I18nStrings = PropertyFilterProps.I18nStrings;\nexport type GroupText = PropertyFilterProps.GroupText;\nexport type FilteringChangeDetail = PropertyFilterProps.FilteringChangeDetail;\nexport type Ref = PropertyFilterProps.Ref;\n\n// Utility types\n\nexport type ParsedText =\n | { step: 'property'; property: FilteringProperty; operator: ComparisonOperator; value: string }\n | { step: 'operator'; property: FilteringProperty; operatorPrefix: string }\n | { step: 'free-text'; operator?: ComparisonOperator; value: string };\n"]}
@@ -1,35 +1,30 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "root": "awsui_root_1wzqe_1rh4s_93",
5
- "search-field": "awsui_search-field_1wzqe_1rh4s_104",
6
- "input-wrapper": "awsui_input-wrapper_1wzqe_1rh4s_110",
7
- "add-token": "awsui_add-token_1wzqe_1rh4s_114",
8
- "tokens": "awsui_tokens_1wzqe_1rh4s_121",
9
- "token-operator": "awsui_token-operator_1wzqe_1rh4s_125",
10
- "token-editor": "awsui_token-editor_1wzqe_1rh4s_129",
11
- "token-editor-form": "awsui_token-editor-form_1wzqe_1rh4s_136",
12
- "token-editor-label": "awsui_token-editor-label_1wzqe_1rh4s_142",
13
- "token-editor-label-text": "awsui_token-editor-label-text_1wzqe_1rh4s_146",
14
- "token-editor-label-property": "awsui_token-editor-label-property_1wzqe_1rh4s_151",
15
- "token-editor-label-operator": "awsui_token-editor-label-operator_1wzqe_1rh4s_155",
16
- "token-editor-label-value": "awsui_token-editor-label-value_1wzqe_1rh4s_159",
17
- "token-editor-field-property": "awsui_token-editor-field-property_1wzqe_1rh4s_163",
18
- "token-editor-field-operator": "awsui_token-editor-field-operator_1wzqe_1rh4s_167",
19
- "token-editor-field-value": "awsui_token-editor-field-value_1wzqe_1rh4s_171",
20
- "token-editor-actions": "awsui_token-editor-actions_1wzqe_1rh4s_175",
21
- "token-editor-commit": "awsui_token-editor-commit_1wzqe_1rh4s_184",
22
- "custom-control": "awsui_custom-control_1wzqe_1rh4s_188",
23
- "input": "awsui_input_1wzqe_1rh4s_110",
24
- "results": "awsui_results_1wzqe_1rh4s_196",
25
- "results-visible": "awsui_results-visible_1wzqe_1rh4s_202",
26
- "separator": "awsui_separator_1wzqe_1rh4s_206",
27
- "toggle-collapsed": "awsui_toggle-collapsed_1wzqe_1rh4s_213",
28
- "token-trigger": "awsui_token-trigger_1wzqe_1rh4s_218",
29
- "token-editor-cancel": "awsui_token-editor-cancel_1wzqe_1rh4s_224",
30
- "remove-all": "awsui_remove-all_1wzqe_1rh4s_228",
31
- "token-label": "awsui_token-label_1wzqe_1rh4s_229",
32
- "join-operation": "awsui_join-operation_1wzqe_1rh4s_230",
33
- "token-editor-submit": "awsui_token-editor-submit_1wzqe_1rh4s_231"
4
+ "root": "awsui_root_1wzqe_1yuv2_93",
5
+ "search-field": "awsui_search-field_1wzqe_1yuv2_104",
6
+ "input-wrapper": "awsui_input-wrapper_1wzqe_1yuv2_110",
7
+ "add-token": "awsui_add-token_1wzqe_1yuv2_114",
8
+ "tokens": "awsui_tokens_1wzqe_1yuv2_121",
9
+ "token-operator": "awsui_token-operator_1wzqe_1yuv2_125",
10
+ "token-editor": "awsui_token-editor_1wzqe_1yuv2_129",
11
+ "token-editor-form": "awsui_token-editor-form_1wzqe_1yuv2_135",
12
+ "token-editor-field-property": "awsui_token-editor-field-property_1wzqe_1yuv2_138",
13
+ "token-editor-field-operator": "awsui_token-editor-field-operator_1wzqe_1yuv2_141",
14
+ "token-editor-field-value": "awsui_token-editor-field-value_1wzqe_1yuv2_144",
15
+ "token-editor-actions": "awsui_token-editor-actions_1wzqe_1yuv2_147",
16
+ "token-editor-commit": "awsui_token-editor-commit_1wzqe_1yuv2_156",
17
+ "custom-control": "awsui_custom-control_1wzqe_1yuv2_160",
18
+ "input": "awsui_input_1wzqe_1yuv2_110",
19
+ "results": "awsui_results_1wzqe_1yuv2_168",
20
+ "results-visible": "awsui_results-visible_1wzqe_1yuv2_174",
21
+ "separator": "awsui_separator_1wzqe_1yuv2_178",
22
+ "toggle-collapsed": "awsui_toggle-collapsed_1wzqe_1yuv2_185",
23
+ "token-trigger": "awsui_token-trigger_1wzqe_1yuv2_190",
24
+ "token-editor-cancel": "awsui_token-editor-cancel_1wzqe_1yuv2_196",
25
+ "remove-all": "awsui_remove-all_1wzqe_1yuv2_200",
26
+ "token-label": "awsui_token-label_1wzqe_1yuv2_201",
27
+ "join-operation": "awsui_join-operation_1wzqe_1yuv2_202",
28
+ "token-editor-submit": "awsui_token-editor-submit_1wzqe_1yuv2_203"
34
29
  };
35
30
 
@@ -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_root_1wzqe_1rh4s_93:not(#\9) {
93
+ .awsui_root_1wzqe_1yuv2_93:not(#\9) {
94
94
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
95
95
  border-collapse: separate;
96
96
  border-spacing: 0;
@@ -127,78 +127,50 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
127
127
  font-family: var(--font-family-base-qnistn, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
128
128
  }
129
129
 
130
- .awsui_search-field_1wzqe_1rh4s_104:not(#\9) {
130
+ .awsui_search-field_1wzqe_1yuv2_104:not(#\9) {
131
131
  display: flex;
132
132
  align-items: center;
133
133
  max-width: calc(688px - 2 * var(--space-l-4vl6xu, 20px));
134
134
  }
135
135
 
136
- .awsui_input-wrapper_1wzqe_1rh4s_110:not(#\9) {
136
+ .awsui_input-wrapper_1wzqe_1yuv2_110:not(#\9) {
137
137
  flex-grow: 1;
138
138
  }
139
139
 
140
- .awsui_add-token_1wzqe_1rh4s_114:not(#\9) {
140
+ .awsui_add-token_1wzqe_1yuv2_114:not(#\9) {
141
141
  border-left: 1px solid var(--color-border-divider-default-7s2wjw, #e9ebed);
142
142
  box-sizing: border-box;
143
143
  margin-left: var(--space-m-17eucw, 16px);
144
144
  padding-left: var(--space-m-17eucw, 16px);
145
145
  }
146
146
 
147
- .awsui_tokens_1wzqe_1rh4s_121:not(#\9) {
147
+ .awsui_tokens_1wzqe_1yuv2_121:not(#\9) {
148
148
  margin-top: var(--space-xs-rsr2qu, 8px);
149
149
  }
150
150
 
151
- .awsui_token-operator_1wzqe_1rh4s_125:not(#\9) {
151
+ .awsui_token-operator_1wzqe_1yuv2_125:not(#\9) {
152
152
  font-weight: bold;
153
153
  }
154
154
 
155
- .awsui_token-editor_1wzqe_1rh4s_129:not(#\9) {
155
+ .awsui_token-editor_1wzqe_1yuv2_129:not(#\9) {
156
156
  margin: var(--space-xxs-ynfts5, 4px);
157
- min-width: 300px;
158
157
  display: flex;
159
158
  flex-direction: column;
160
159
  justify-content: space-between;
161
160
  }
162
- .awsui_token-editor-form_1wzqe_1rh4s_136:not(#\9) {
163
- display: grid;
164
- grid-template-columns: max-content minmax(var(--space-xl-a39hup, 24px), 1fr) minmax(200px, min-content);
165
- grid-row-gap: var(--space-scaled-l-t03y3z, 20px);
161
+ .awsui_token-editor-form_1wzqe_1yuv2_135:not(#\9) {
166
162
  margin-bottom: var(--space-scaled-l-t03y3z, 20px);
167
163
  }
168
- .awsui_token-editor-label_1wzqe_1rh4s_142:not(#\9) {
169
- max-width: 200px;
170
- align-self: center;
171
- }
172
- .awsui_token-editor-label-text_1wzqe_1rh4s_146:not(#\9) {
173
- word-wrap: break-word;
174
- max-width: 100%;
175
- overflow: hidden;
176
- }
177
- .awsui_token-editor-label-property_1wzqe_1rh4s_151:not(#\9) {
178
- grid-row: 1;
179
- grid-column: 1;
180
- }
181
- .awsui_token-editor-label-operator_1wzqe_1rh4s_155:not(#\9) {
182
- grid-row: 2;
183
- grid-column: 1;
184
- }
185
- .awsui_token-editor-label-value_1wzqe_1rh4s_159:not(#\9) {
186
- grid-row: 3;
187
- grid-column: 1;
188
- }
189
- .awsui_token-editor-field-property_1wzqe_1rh4s_163:not(#\9) {
190
- grid-row: 1;
191
- grid-column: 3;
164
+ .awsui_token-editor-field-property_1wzqe_1yuv2_138:not(#\9) {
165
+ /* used in test-utils */
192
166
  }
193
- .awsui_token-editor-field-operator_1wzqe_1rh4s_167:not(#\9) {
194
- grid-row: 2;
195
- grid-column: 3;
167
+ .awsui_token-editor-field-operator_1wzqe_1yuv2_141:not(#\9) {
168
+ margin-top: var(--space-scaled-l-t03y3z, 20px);
196
169
  }
197
- .awsui_token-editor-field-value_1wzqe_1rh4s_171:not(#\9) {
198
- grid-row: 3;
199
- grid-column: 3;
170
+ .awsui_token-editor-field-value_1wzqe_1yuv2_144:not(#\9) {
171
+ margin-top: var(--space-scaled-l-t03y3z, 20px);
200
172
  }
201
- .awsui_token-editor-actions_1wzqe_1rh4s_175:not(#\9) {
173
+ .awsui_token-editor-actions_1wzqe_1yuv2_147:not(#\9) {
202
174
  display: flex;
203
175
  justify-content: flex-end;
204
176
  padding-top: var(--space-s-hv8c1d, 12px);
@@ -207,53 +179,53 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
207
179
  margin-left: calc(-1 * var(--space-m-17eucw, 16px) + -1 * var(--space-xxs-ynfts5, 4px));
208
180
  margin-right: calc(-1 * var(--space-m-17eucw, 16px) + -1 * var(--space-xxs-ynfts5, 4px));
209
181
  }
210
- .awsui_token-editor-commit_1wzqe_1rh4s_184:not(#\9) {
182
+ .awsui_token-editor-commit_1wzqe_1yuv2_156:not(#\9) {
211
183
  margin-left: var(--space-xs-rsr2qu, 8px);
212
184
  }
213
185
 
214
- .awsui_custom-control_1wzqe_1rh4s_188:not(#\9) {
186
+ .awsui_custom-control_1wzqe_1yuv2_160:not(#\9) {
215
187
  margin-right: var(--space-s-hv8c1d, 12px);
216
188
  }
217
189
 
218
- .awsui_input_1wzqe_1rh4s_110:not(#\9) {
190
+ .awsui_input_1wzqe_1yuv2_110:not(#\9) {
219
191
  flex: 1;
220
192
  }
221
193
 
222
- .awsui_results_1wzqe_1rh4s_196:not(#\9) {
194
+ .awsui_results_1wzqe_1yuv2_168:not(#\9) {
223
195
  color: var(--color-text-form-label-k3j0b4, #000716);
224
196
  display: inline-block;
225
197
  box-sizing: border-box;
226
198
  white-space: nowrap;
227
199
  }
228
- .awsui_results-visible_1wzqe_1rh4s_202:not(#\9) {
200
+ .awsui_results-visible_1wzqe_1yuv2_174:not(#\9) {
229
201
  padding-left: var(--space-s-hv8c1d, 12px);
230
202
  }
231
203
 
232
- .awsui_separator_1wzqe_1rh4s_206:not(#\9) {
204
+ .awsui_separator_1wzqe_1yuv2_178:not(#\9) {
233
205
  margin: 0px var(--space-scaled-m-pv0fmt, 16px);
234
206
  height: 100%;
235
207
  width: var(--border-divider-section-width-4wm2it, 2px);
236
208
  background-color: var(--color-border-divider-default-7s2wjw, #e9ebed);
237
209
  }
238
210
 
239
- .awsui_toggle-collapsed_1wzqe_1rh4s_213:not(#\9) {
211
+ .awsui_toggle-collapsed_1wzqe_1yuv2_185:not(#\9) {
240
212
  margin-top: calc(-1 * var(--space-scaled-xxs-95dhkm, 4px));
241
213
  margin-left: var(--space-xs-rsr2qu, 8px);
242
214
  }
243
215
 
244
- .awsui_token-trigger_1wzqe_1rh4s_218:not(#\9) {
216
+ .awsui_token-trigger_1wzqe_1yuv2_190:not(#\9) {
245
217
  min-width: 0;
246
218
  -ms-word-break: break-all;
247
219
  word-break: break-word;
248
220
  }
249
221
 
250
- .awsui_token-editor-cancel_1wzqe_1rh4s_224:not(#\9) {
222
+ .awsui_token-editor-cancel_1wzqe_1yuv2_196:not(#\9) {
251
223
  margin-right: var(--space-xs-rsr2qu, 8px);
252
224
  }
253
225
 
254
- .awsui_remove-all_1wzqe_1rh4s_228:not(#\9),
255
- .awsui_token-label_1wzqe_1rh4s_229:not(#\9),
256
- .awsui_join-operation_1wzqe_1rh4s_230:not(#\9),
257
- .awsui_token-editor-submit_1wzqe_1rh4s_231:not(#\9) {
226
+ .awsui_remove-all_1wzqe_1yuv2_200:not(#\9),
227
+ .awsui_token-label_1wzqe_1yuv2_201:not(#\9),
228
+ .awsui_join-operation_1wzqe_1yuv2_202:not(#\9),
229
+ .awsui_token-editor-submit_1wzqe_1yuv2_203:not(#\9) {
258
230
  /* used in test-utils */
259
231
  }
@@ -2,35 +2,30 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "root": "awsui_root_1wzqe_1rh4s_93",
6
- "search-field": "awsui_search-field_1wzqe_1rh4s_104",
7
- "input-wrapper": "awsui_input-wrapper_1wzqe_1rh4s_110",
8
- "add-token": "awsui_add-token_1wzqe_1rh4s_114",
9
- "tokens": "awsui_tokens_1wzqe_1rh4s_121",
10
- "token-operator": "awsui_token-operator_1wzqe_1rh4s_125",
11
- "token-editor": "awsui_token-editor_1wzqe_1rh4s_129",
12
- "token-editor-form": "awsui_token-editor-form_1wzqe_1rh4s_136",
13
- "token-editor-label": "awsui_token-editor-label_1wzqe_1rh4s_142",
14
- "token-editor-label-text": "awsui_token-editor-label-text_1wzqe_1rh4s_146",
15
- "token-editor-label-property": "awsui_token-editor-label-property_1wzqe_1rh4s_151",
16
- "token-editor-label-operator": "awsui_token-editor-label-operator_1wzqe_1rh4s_155",
17
- "token-editor-label-value": "awsui_token-editor-label-value_1wzqe_1rh4s_159",
18
- "token-editor-field-property": "awsui_token-editor-field-property_1wzqe_1rh4s_163",
19
- "token-editor-field-operator": "awsui_token-editor-field-operator_1wzqe_1rh4s_167",
20
- "token-editor-field-value": "awsui_token-editor-field-value_1wzqe_1rh4s_171",
21
- "token-editor-actions": "awsui_token-editor-actions_1wzqe_1rh4s_175",
22
- "token-editor-commit": "awsui_token-editor-commit_1wzqe_1rh4s_184",
23
- "custom-control": "awsui_custom-control_1wzqe_1rh4s_188",
24
- "input": "awsui_input_1wzqe_1rh4s_110",
25
- "results": "awsui_results_1wzqe_1rh4s_196",
26
- "results-visible": "awsui_results-visible_1wzqe_1rh4s_202",
27
- "separator": "awsui_separator_1wzqe_1rh4s_206",
28
- "toggle-collapsed": "awsui_toggle-collapsed_1wzqe_1rh4s_213",
29
- "token-trigger": "awsui_token-trigger_1wzqe_1rh4s_218",
30
- "token-editor-cancel": "awsui_token-editor-cancel_1wzqe_1rh4s_224",
31
- "remove-all": "awsui_remove-all_1wzqe_1rh4s_228",
32
- "token-label": "awsui_token-label_1wzqe_1rh4s_229",
33
- "join-operation": "awsui_join-operation_1wzqe_1rh4s_230",
34
- "token-editor-submit": "awsui_token-editor-submit_1wzqe_1rh4s_231"
5
+ "root": "awsui_root_1wzqe_1yuv2_93",
6
+ "search-field": "awsui_search-field_1wzqe_1yuv2_104",
7
+ "input-wrapper": "awsui_input-wrapper_1wzqe_1yuv2_110",
8
+ "add-token": "awsui_add-token_1wzqe_1yuv2_114",
9
+ "tokens": "awsui_tokens_1wzqe_1yuv2_121",
10
+ "token-operator": "awsui_token-operator_1wzqe_1yuv2_125",
11
+ "token-editor": "awsui_token-editor_1wzqe_1yuv2_129",
12
+ "token-editor-form": "awsui_token-editor-form_1wzqe_1yuv2_135",
13
+ "token-editor-field-property": "awsui_token-editor-field-property_1wzqe_1yuv2_138",
14
+ "token-editor-field-operator": "awsui_token-editor-field-operator_1wzqe_1yuv2_141",
15
+ "token-editor-field-value": "awsui_token-editor-field-value_1wzqe_1yuv2_144",
16
+ "token-editor-actions": "awsui_token-editor-actions_1wzqe_1yuv2_147",
17
+ "token-editor-commit": "awsui_token-editor-commit_1wzqe_1yuv2_156",
18
+ "custom-control": "awsui_custom-control_1wzqe_1yuv2_160",
19
+ "input": "awsui_input_1wzqe_1yuv2_110",
20
+ "results": "awsui_results_1wzqe_1yuv2_168",
21
+ "results-visible": "awsui_results-visible_1wzqe_1yuv2_174",
22
+ "separator": "awsui_separator_1wzqe_1yuv2_178",
23
+ "toggle-collapsed": "awsui_toggle-collapsed_1wzqe_1yuv2_185",
24
+ "token-trigger": "awsui_token-trigger_1wzqe_1yuv2_190",
25
+ "token-editor-cancel": "awsui_token-editor-cancel_1wzqe_1yuv2_196",
26
+ "remove-all": "awsui_remove-all_1wzqe_1yuv2_200",
27
+ "token-label": "awsui_token-label_1wzqe_1yuv2_201",
28
+ "join-operation": "awsui_join-operation_1wzqe_1yuv2_202",
29
+ "token-editor-submit": "awsui_token-editor-submit_1wzqe_1yuv2_203"
35
30
  };
36
31
 
@@ -1 +1 @@
1
- {"version":3,"file":"token-editor.d.ts","sourceRoot":"","sources":["../../../src/property-filter/token-editor.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAUhD,OAAO,EAEL,eAAe,EACf,iBAAiB,EACjB,SAAS,EACT,WAAW,EACX,eAAe,EACf,KAAK,EACN,MAAM,cAAc,CAAC;AAUtB,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAC;AA6KxF,UAAU,gBAAgB;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,UAAU,EAAE,mBAAmB,CAAC;IAChC,gBAAgB,EAAE,SAAS,SAAS,EAAE,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,gBAAgB,EAAE,SAAS,eAAe,EAAE,CAAC;IAC7C,mBAAmB,EAAE,SAAS,iBAAiB,EAAE,CAAC;IAClD,WAAW,EAAE,WAAW,CAAC;IACzB,WAAW,CAAC,EAAE,yBAAyB,CAAC,eAAe,CAAC,CAAC;IACzD,QAAQ,EAAE,CAAC,QAAQ,EAAE,KAAK,KAAK,IAAI,CAAC;IACpC,KAAK,EAAE,KAAK,CAAC;IACb,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACpC;AAED,wBAAgB,WAAW,CAAC,EAC1B,eAAe,EACf,UAAU,EACV,gBAAgB,EAChB,wBAAwB,EACxB,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,WAAW,EACX,WAAW,EACX,QAAQ,EACR,KAAK,EACL,gBAAgB,GACjB,EAAE,gBAAgB,eAgHlB"}
1
+ {"version":3,"file":"token-editor.d.ts","sourceRoot":"","sources":["../../../src/property-filter/token-editor.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAQhD,OAAO,EAEL,eAAe,EACf,iBAAiB,EACjB,SAAS,EACT,WAAW,EACX,eAAe,EACf,KAAK,EACN,MAAM,cAAc,CAAC;AAUtB,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAC;AAiJxF,UAAU,gBAAgB;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,UAAU,EAAE,mBAAmB,CAAC;IAChC,gBAAgB,EAAE,SAAS,SAAS,EAAE,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,gBAAgB,EAAE,SAAS,eAAe,EAAE,CAAC;IAC7C,mBAAmB,EAAE,SAAS,iBAAiB,EAAE,CAAC;IAClD,WAAW,EAAE,WAAW,CAAC;IACzB,WAAW,CAAC,EAAE,yBAAyB,CAAC,eAAe,CAAC,CAAC;IACzD,QAAQ,EAAE,CAAC,QAAQ,EAAE,KAAK,KAAK,IAAI,CAAC;IACpC,KAAK,EAAE,KAAK,CAAC;IACb,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACpC;AAED,wBAAgB,WAAW,CAAC,EAC1B,eAAe,EACf,UAAU,EACV,gBAAgB,EAChB,wBAAwB,EACxB,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,WAAW,EACX,WAAW,EACX,QAAQ,EACR,KAAK,EACL,gBAAgB,GACjB,EAAE,gBAAgB,eAuGlB"}
@@ -2,26 +2,17 @@ import { __assign } from "tslib";
2
2
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
  import React, { useState, useRef } from 'react';
5
- import clsx from 'clsx';
6
5
  import InternalSelect from '../select/internal';
7
6
  import InternalAutosuggest from '../autosuggest/internal';
8
7
  import InternalPopover from '../popover/internal';
9
8
  import { InternalButton } from '../button/internal';
10
- import { useUniqueId } from '../internal/hooks/use-unique-id/index';
11
9
  import styles from './styles.css.js';
12
10
  import { useLoadItems } from './use-load-items';
13
11
  import { getAllowedOperators, getPropertyOptions, getPropertyByKey, operatorToDescription, getPropertySuggestions, } from './controller';
12
+ import InternalFormField from '../form-field/internal';
14
13
  var freeTextOperators = [':', '!:'];
15
- function TokenEditorField(_a) {
16
- var type = _a.type, label = _a.label, children = _a.children;
17
- var controlId = useUniqueId();
18
- return (React.createElement(React.Fragment, null,
19
- React.createElement("label", { className: clsx(styles['token-editor-label'], styles["token-editor-label-".concat(type)]), htmlFor: controlId },
20
- React.createElement("span", { className: styles['token-editor-label-text'] }, label)),
21
- React.createElement("div", { className: clsx(styles['token-editor-field'], styles["token-editor-field-".concat(type)]) }, children({ controlId: controlId }))));
22
- }
23
14
  function PropertyInput(_a) {
24
- var controlId = _a.controlId, propertyKey = _a.propertyKey, onChangePropertyKey = _a.onChangePropertyKey, asyncProps = _a.asyncProps, filteringProperties = _a.filteringProperties, onLoadItems = _a.onLoadItems, customGroupsText = _a.customGroupsText, i18nStrings = _a.i18nStrings, disableFreeTextFiltering = _a.disableFreeTextFiltering;
15
+ var propertyKey = _a.propertyKey, onChangePropertyKey = _a.onChangePropertyKey, asyncProps = _a.asyncProps, filteringProperties = _a.filteringProperties, onLoadItems = _a.onLoadItems, customGroupsText = _a.customGroupsText, i18nStrings = _a.i18nStrings, disableFreeTextFiltering = _a.disableFreeTextFiltering;
25
16
  var property = propertyKey !== undefined ? getPropertyByKey(filteringProperties, propertyKey) : undefined;
26
17
  var propertySelectHandlers = useLoadItems(onLoadItems);
27
18
  var asyncPropertySelectProps = asyncProps ? __assign(__assign({}, asyncProps), propertySelectHandlers) : {};
@@ -40,7 +31,7 @@ function PropertyInput(_a) {
40
31
  if (!disableFreeTextFiltering) {
41
32
  propertyOptions.unshift(allPropertiesOption);
42
33
  }
43
- return (React.createElement(InternalSelect, __assign({ controlId: controlId, options: propertyOptions, selectedOption: property
34
+ return (React.createElement(InternalSelect, __assign({ options: propertyOptions, selectedOption: property
44
35
  ? {
45
36
  value: propertyKey !== null && propertyKey !== void 0 ? propertyKey : undefined,
46
37
  label: property.propertyLabel
@@ -48,7 +39,7 @@ function PropertyInput(_a) {
48
39
  : allPropertiesOption, onChange: function (e) { return onChangePropertyKey(e.detail.selectedOption.value); } }, asyncPropertySelectProps)));
49
40
  }
50
41
  function OperatorInput(_a) {
51
- var controlId = _a.controlId, propertyKey = _a.propertyKey, operator = _a.operator, onChangeOperator = _a.onChangeOperator, filteringProperties = _a.filteringProperties, i18nStrings = _a.i18nStrings;
42
+ var propertyKey = _a.propertyKey, operator = _a.operator, onChangeOperator = _a.onChangeOperator, filteringProperties = _a.filteringProperties, i18nStrings = _a.i18nStrings;
52
43
  var property = propertyKey !== undefined ? getPropertyByKey(filteringProperties, propertyKey) : undefined;
53
44
  var freeTextOperators = [':', '!:'];
54
45
  var operatorOptions = (property ? getAllowedOperators(property) : freeTextOperators).map(function (operator) { return ({
@@ -56,7 +47,7 @@ function OperatorInput(_a) {
56
47
  label: operator,
57
48
  description: operatorToDescription(operator, i18nStrings)
58
49
  }); });
59
- return (React.createElement(InternalSelect, { controlId: controlId, options: operatorOptions, triggerVariant: "option", selectedOption: operator
50
+ return (React.createElement(InternalSelect, { options: operatorOptions, triggerVariant: "option", selectedOption: operator
60
51
  ? {
61
52
  value: operator,
62
53
  label: operator,
@@ -65,7 +56,7 @@ function OperatorInput(_a) {
65
56
  : null, onChange: function (e) { return onChangeOperator(e.detail.selectedOption.value); } }));
66
57
  }
67
58
  function ValueInput(_a) {
68
- var controlId = _a.controlId, propertyKey = _a.propertyKey, operator = _a.operator, value = _a.value, onChangeValue = _a.onChangeValue, asyncProps = _a.asyncProps, filteringProperties = _a.filteringProperties, filteringOptions = _a.filteringOptions, onLoadItems = _a.onLoadItems, i18nStrings = _a.i18nStrings;
59
+ var propertyKey = _a.propertyKey, operator = _a.operator, value = _a.value, onChangeValue = _a.onChangeValue, asyncProps = _a.asyncProps, filteringProperties = _a.filteringProperties, filteringOptions = _a.filteringOptions, onLoadItems = _a.onLoadItems, i18nStrings = _a.i18nStrings;
69
60
  var property = propertyKey !== undefined ? getPropertyByKey(filteringProperties, propertyKey) : undefined;
70
61
  var valueOptions = property ? getPropertyOptions(property, filteringOptions).map(function (_a) {
71
62
  var value = _a.value;
@@ -74,7 +65,7 @@ function ValueInput(_a) {
74
65
  var valueAutosuggestHandlers = useLoadItems(onLoadItems, '', property);
75
66
  var asyncValueAutosuggesProps = propertyKey
76
67
  ? __assign(__assign({}, valueAutosuggestHandlers), asyncProps) : { empty: asyncProps.empty };
77
- return (React.createElement(InternalAutosuggest, __assign({ controlId: controlId, enteredTextLabel: i18nStrings.enteredTextLabel, value: value !== null && value !== void 0 ? value : '', onChange: function (e) { return onChangeValue(e.detail.value); }, disabled: !operator, options: valueOptions }, asyncValueAutosuggesProps, { virtualScroll: true })));
68
+ return (React.createElement(InternalAutosuggest, __assign({ enteredTextLabel: i18nStrings.enteredTextLabel, value: value !== null && value !== void 0 ? value : '', onChange: function (e) { return onChangeValue(e.detail.value); }, disabled: !operator, options: valueOptions }, asyncValueAutosuggesProps, { virtualScroll: true })));
78
69
  }
79
70
  export function TokenEditor(_a) {
80
71
  var asyncProperties = _a.asyncProperties, asyncProps = _a.asyncProps, customGroupsText = _a.customGroupsText, disableFreeTextFiltering = _a.disableFreeTextFiltering, expandToViewport = _a.expandToViewport, filteringOptions = _a.filteringOptions, filteringProperties = _a.filteringProperties, i18nStrings = _a.i18nStrings, onLoadItems = _a.onLoadItems, setToken = _a.setToken, token = _a.token, triggerComponent = _a.triggerComponent;
@@ -102,18 +93,12 @@ export function TokenEditor(_a) {
102
93
  };
103
94
  return (React.createElement(InternalPopover, { ref: popoverRef, className: styles['token-label'], triggerType: "text", header: i18nStrings.editTokenHeader, size: "large", position: "right", dismissAriaLabel: i18nStrings.dismissAriaLabel, __onOpen: function () { return setTemporaryToken(token); }, renderWithPortal: expandToViewport, content: React.createElement("div", { className: styles['token-editor'] },
104
95
  React.createElement("div", { className: styles['token-editor-form'] },
105
- React.createElement(TokenEditorField, { label: i18nStrings.propertyText, type: "property" }, function (_a) {
106
- var controlId = _a.controlId;
107
- return (React.createElement(PropertyInput, { controlId: controlId, propertyKey: propertyKey, onChangePropertyKey: onChangePropertyKey, asyncProps: asyncProperties ? asyncProps : null, filteringProperties: filteringProperties, onLoadItems: onLoadItems, customGroupsText: customGroupsText, i18nStrings: i18nStrings, disableFreeTextFiltering: disableFreeTextFiltering }));
108
- }),
109
- React.createElement(TokenEditorField, { label: i18nStrings.operatorText, type: "operator" }, function (_a) {
110
- var controlId = _a.controlId;
111
- return (React.createElement(OperatorInput, { controlId: controlId, propertyKey: propertyKey, operator: operator, onChangeOperator: onChangeOperator, filteringProperties: filteringProperties, i18nStrings: i18nStrings }));
112
- }),
113
- React.createElement(TokenEditorField, { label: i18nStrings.valueText, type: "value" }, function (_a) {
114
- var controlId = _a.controlId;
115
- return (React.createElement(ValueInput, { controlId: controlId, propertyKey: propertyKey, operator: operator, value: value, onChangeValue: onChangeValue, asyncProps: asyncProps, filteringProperties: filteringProperties, filteringOptions: filteringOptions, onLoadItems: onLoadItems, i18nStrings: i18nStrings }));
116
- })),
96
+ React.createElement(InternalFormField, { label: i18nStrings.propertyText, className: styles['token-editor-field-property'] },
97
+ React.createElement(PropertyInput, { propertyKey: propertyKey, onChangePropertyKey: onChangePropertyKey, asyncProps: asyncProperties ? asyncProps : null, filteringProperties: filteringProperties, onLoadItems: onLoadItems, customGroupsText: customGroupsText, i18nStrings: i18nStrings, disableFreeTextFiltering: disableFreeTextFiltering })),
98
+ React.createElement(InternalFormField, { label: i18nStrings.operatorText, className: styles['token-editor-field-operator'] },
99
+ React.createElement(OperatorInput, { propertyKey: propertyKey, operator: operator, onChangeOperator: onChangeOperator, filteringProperties: filteringProperties, i18nStrings: i18nStrings })),
100
+ React.createElement(InternalFormField, { label: i18nStrings.valueText, className: styles['token-editor-field-value'] },
101
+ React.createElement(ValueInput, { propertyKey: propertyKey, operator: operator, value: value, onChangeValue: onChangeValue, asyncProps: asyncProps, filteringProperties: filteringProperties, filteringOptions: filteringOptions, onLoadItems: onLoadItems, i18nStrings: i18nStrings }))),
117
102
  React.createElement("div", { className: styles['token-editor-actions'] },
118
103
  React.createElement(InternalButton, { variant: "link", className: styles['token-editor-cancel'], onClick: closePopover }, i18nStrings.cancelActionText),
119
104
  React.createElement(InternalButton, { className: styles['token-editor-submit'], onClick: function () {