@cloudscape-design/components 3.0.194 → 3.0.195
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/annotation-context/annotation/styles.css.js +24 -24
- package/annotation-context/annotation/styles.scoped.css +30 -30
- package/annotation-context/annotation/styles.selectors.js +24 -24
- package/app-layout/notifications/styles.css.js +1 -1
- package/app-layout/notifications/styles.scoped.css +2 -1
- package/app-layout/notifications/styles.selectors.js +1 -1
- package/app-layout/visual-refresh/styles.css.js +60 -60
- package/app-layout/visual-refresh/styles.scoped.css +223 -222
- package/app-layout/visual-refresh/styles.selectors.js +60 -60
- package/attribute-editor/interfaces.d.ts +1 -0
- package/attribute-editor/interfaces.d.ts.map +1 -1
- package/attribute-editor/interfaces.js.map +1 -1
- package/attribute-editor/internal.d.ts.map +1 -1
- package/attribute-editor/internal.js +17 -2
- package/attribute-editor/internal.js.map +1 -1
- package/flashbar/collapsible-flashbar.d.ts +2 -2
- package/flashbar/collapsible-flashbar.d.ts.map +1 -1
- package/flashbar/collapsible-flashbar.js +19 -9
- package/flashbar/collapsible-flashbar.js.map +1 -1
- package/flashbar/common.d.ts +2 -2
- package/flashbar/common.d.ts.map +1 -1
- package/flashbar/common.js.map +1 -1
- package/flashbar/index.d.ts +2 -2
- package/flashbar/index.d.ts.map +1 -1
- package/flashbar/index.js +1 -4
- package/flashbar/index.js.map +1 -1
- package/flashbar/interfaces.d.ts +30 -17
- package/flashbar/interfaces.d.ts.map +1 -1
- package/flashbar/interfaces.js.map +1 -1
- package/flashbar/non-collapsible-flashbar.d.ts +2 -2
- package/flashbar/non-collapsible-flashbar.d.ts.map +1 -1
- package/flashbar/non-collapsible-flashbar.js.map +1 -1
- package/flashbar/styles.css.js +43 -43
- package/flashbar/styles.scoped.css +142 -142
- package/flashbar/styles.selectors.js +43 -43
- package/flashbar/utils.d.ts +1 -0
- package/flashbar/utils.d.ts.map +1 -1
- package/flashbar/utils.js +3 -0
- package/flashbar/utils.js.map +1 -1
- package/internal/environment.js +1 -1
- package/internal/generated/custom-css-properties/index.d.ts.map +1 -1
- package/internal/generated/custom-css-properties/index.js +28 -27
- package/internal/generated/custom-css-properties/index.js.map +1 -1
- package/internal/manifest.json +1 -1
- package/package.json +1 -1
- package/tag-editor/interfaces.d.ts +1 -0
- package/tag-editor/interfaces.d.ts.map +1 -1
- package/tag-editor/interfaces.js.map +1 -1
- package/test-utils/dom/flashbar/index.d.ts +2 -0
- package/test-utils/dom/flashbar/index.js +2 -0
- package/test-utils/dom/flashbar/index.js.map +1 -1
- package/test-utils/selectors/flashbar/index.d.ts +2 -0
- package/test-utils/selectors/flashbar/index.js +2 -0
- package/test-utils/selectors/flashbar/index.js.map +1 -1
- package/test-utils/tsconfig.tsbuildinfo +1 -1
- package/wizard/index.d.ts.map +1 -1
- package/wizard/index.js +5 -4
- package/wizard/index.js.map +1 -1
- package/wizard/internal/analytics.d.ts +3 -3
- package/wizard/internal/analytics.d.ts.map +1 -1
- package/wizard/internal/analytics.js +6 -11
- package/wizard/internal/analytics.js.map +1 -1
|
@@ -2,48 +2,48 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"flash-with-motion": "awsui_flash-with-
|
|
6
|
-
"enter": "
|
|
7
|
-
"flash-body": "awsui_flash-
|
|
8
|
-
"flash-message": "awsui_flash-
|
|
9
|
-
"flash-header": "awsui_flash-
|
|
10
|
-
"flash-content": "awsui_flash-
|
|
11
|
-
"action-button-wrapper": "awsui_action-button-
|
|
12
|
-
"dismiss-button-wrapper": "awsui_dismiss-button-
|
|
13
|
-
"flash-icon": "awsui_flash-
|
|
14
|
-
"entering": "
|
|
15
|
-
"entered": "
|
|
16
|
-
"exiting": "
|
|
17
|
-
"stack": "
|
|
18
|
-
"animation-running": "awsui_animation-
|
|
19
|
-
"item": "
|
|
20
|
-
"flash-list-item": "awsui_flash-list-
|
|
21
|
-
"
|
|
22
|
-
"collapsed": "
|
|
23
|
-
"animation-ready": "awsui_animation-
|
|
24
|
-
"expanded-only": "awsui_expanded-
|
|
25
|
-
"expanded": "
|
|
26
|
-
"flash": "
|
|
27
|
-
"status": "
|
|
28
|
-
"header": "
|
|
29
|
-
"item-count": "awsui_item-
|
|
30
|
-
"button": "
|
|
31
|
-
"type-count": "awsui_type-
|
|
32
|
-
"count-number": "awsui_count-
|
|
33
|
-
"visual-refresh": "awsui_visual-
|
|
34
|
-
"icon": "
|
|
35
|
-
"
|
|
36
|
-
"flashbar": "
|
|
37
|
-
"flash-refresh": "awsui_flash-
|
|
38
|
-
"flash-list": "awsui_flash-
|
|
39
|
-
"flash-focus-container": "awsui_flash-focus-
|
|
40
|
-
"flash-text": "awsui_flash-
|
|
41
|
-
"dismiss-button": "awsui_dismiss-
|
|
42
|
-
"breakpoint-default": "awsui_breakpoint-
|
|
43
|
-
"action-button": "awsui_action-
|
|
44
|
-
"flash-type-success": "awsui_flash-type-
|
|
45
|
-
"flash-type-error": "awsui_flash-type-
|
|
46
|
-
"flash-type-warning": "awsui_flash-type-
|
|
47
|
-
"flash-type-info": "awsui_flash-type-
|
|
5
|
+
"flash-with-motion": "awsui_flash-with-motion_1q84n_1pai3_93",
|
|
6
|
+
"enter": "awsui_enter_1q84n_1pai3_93",
|
|
7
|
+
"flash-body": "awsui_flash-body_1q84n_1pai3_107",
|
|
8
|
+
"flash-message": "awsui_flash-message_1q84n_1pai3_107",
|
|
9
|
+
"flash-header": "awsui_flash-header_1q84n_1pai3_107",
|
|
10
|
+
"flash-content": "awsui_flash-content_1q84n_1pai3_108",
|
|
11
|
+
"action-button-wrapper": "awsui_action-button-wrapper_1q84n_1pai3_109",
|
|
12
|
+
"dismiss-button-wrapper": "awsui_dismiss-button-wrapper_1q84n_1pai3_110",
|
|
13
|
+
"flash-icon": "awsui_flash-icon_1q84n_1pai3_133",
|
|
14
|
+
"entering": "awsui_entering_1q84n_1pai3_146",
|
|
15
|
+
"entered": "awsui_entered_1q84n_1pai3_167",
|
|
16
|
+
"exiting": "awsui_exiting_1q84n_1pai3_272",
|
|
17
|
+
"stack": "awsui_stack_1q84n_1pai3_294",
|
|
18
|
+
"animation-running": "awsui_animation-running_1q84n_1pai3_294",
|
|
19
|
+
"item": "awsui_item_1q84n_1pai3_294",
|
|
20
|
+
"flash-list-item": "awsui_flash-list-item_1q84n_1pai3_295",
|
|
21
|
+
"notification-bar": "awsui_notification-bar_1q84n_1pai3_296",
|
|
22
|
+
"collapsed": "awsui_collapsed_1q84n_1pai3_316",
|
|
23
|
+
"animation-ready": "awsui_animation-ready_1q84n_1pai3_316",
|
|
24
|
+
"expanded-only": "awsui_expanded-only_1q84n_1pai3_316",
|
|
25
|
+
"expanded": "awsui_expanded_1q84n_1pai3_316",
|
|
26
|
+
"flash": "awsui_flash_1q84n_1pai3_93",
|
|
27
|
+
"status": "awsui_status_1q84n_1pai3_403",
|
|
28
|
+
"header": "awsui_header_1q84n_1pai3_403",
|
|
29
|
+
"item-count": "awsui_item-count_1q84n_1pai3_404",
|
|
30
|
+
"button": "awsui_button_1q84n_1pai3_405",
|
|
31
|
+
"type-count": "awsui_type-count_1q84n_1pai3_430",
|
|
32
|
+
"count-number": "awsui_count-number_1q84n_1pai3_430",
|
|
33
|
+
"visual-refresh": "awsui_visual-refresh_1q84n_1pai3_443",
|
|
34
|
+
"icon": "awsui_icon_1q84n_1pai3_493",
|
|
35
|
+
"floating": "awsui_floating_1q84n_1pai3_531",
|
|
36
|
+
"flashbar": "awsui_flashbar_1q84n_1pai3_539",
|
|
37
|
+
"flash-refresh": "awsui_flash-refresh_1q84n_1pai3_581",
|
|
38
|
+
"flash-list": "awsui_flash-list_1q84n_1pai3_295",
|
|
39
|
+
"flash-focus-container": "awsui_flash-focus-container_1q84n_1pai3_600",
|
|
40
|
+
"flash-text": "awsui_flash-text_1q84n_1pai3_627",
|
|
41
|
+
"dismiss-button": "awsui_dismiss-button_1q84n_1pai3_110",
|
|
42
|
+
"breakpoint-default": "awsui_breakpoint-default_1q84n_1pai3_668",
|
|
43
|
+
"action-button": "awsui_action-button_1q84n_1pai3_109",
|
|
44
|
+
"flash-type-success": "awsui_flash-type-success_1q84n_1pai3_681",
|
|
45
|
+
"flash-type-error": "awsui_flash-type-error_1q84n_1pai3_685",
|
|
46
|
+
"flash-type-warning": "awsui_flash-type-warning_1q84n_1pai3_689",
|
|
47
|
+
"flash-type-info": "awsui_flash-type-info_1q84n_1pai3_693"
|
|
48
48
|
};
|
|
49
49
|
|
package/flashbar/utils.d.ts
CHANGED
package/flashbar/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/flashbar/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,eAAO,MAAM,oBAAoB,OAAO,CAAC;AAKzC,MAAM,WAAW,aAAc,SAAQ,aAAa,CAAC,iBAAiB;IACpE,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAeD,wBAAgB,WAAW,CAAC,IAAI,EAAE,aAAa,CAAC,iBAAiB,mCAMhE;AAWD,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,aAAa,CAAC,aAAa,CAAC,iBAAiB,CAAC,EACrD,aAAa,EAAE,MAAM,GACpB,aAAa,CAAC,aAAa,CAAC,CAgD9B;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,SAAS,aAAa,CAAC,iBAAiB,EAAE,GAAG,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAO9G;AAED,MAAM,MAAM,SAAS,GACjB,oBAAoB,GACpB,sBAAsB,GACtB,sBAAsB,GACtB,mBAAmB,GACnB,yBAAyB,CAAC;AAE9B,eAAO,MAAM,YAAY,EAAE;IACzB,IAAI,EAAE,SAAS,CAAC;IAChB,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC;CAC1B,EAMA,CAAC"}
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/flashbar/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,eAAO,MAAM,oBAAoB,OAAO,CAAC;AAKzC,MAAM,WAAW,aAAc,SAAQ,aAAa,CAAC,iBAAiB;IACpE,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAeD,wBAAgB,WAAW,CAAC,IAAI,EAAE,aAAa,CAAC,iBAAiB,mCAMhE;AAWD,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,aAAa,CAAC,aAAa,CAAC,iBAAiB,CAAC,EACrD,aAAa,EAAE,MAAM,GACpB,aAAa,CAAC,aAAa,CAAC,CAgD9B;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,SAAS,aAAa,CAAC,iBAAiB,EAAE,GAAG,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAO9G;AAED,MAAM,MAAM,SAAS,GACjB,oBAAoB,GACpB,sBAAsB,GACtB,sBAAsB,GACtB,mBAAmB,GACnB,yBAAyB,CAAC;AAE9B,eAAO,MAAM,YAAY,EAAE;IACzB,IAAI,EAAE,SAAS,CAAC;IAChB,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC;CAC1B,EAMA,CAAC;AAEF,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,WAAW,WAE9D"}
|
package/flashbar/utils.js
CHANGED
|
@@ -92,4 +92,7 @@ export var counterTypes = [
|
|
|
92
92
|
{ type: 'info', labelName: 'infoIconAriaLabel', iconName: 'status-info' },
|
|
93
93
|
{ type: 'progress', labelName: 'inProgressIconAriaLabel', iconName: 'status-in-progress' },
|
|
94
94
|
];
|
|
95
|
+
export function isElementTopBeyondViewport(element) {
|
|
96
|
+
return element.getBoundingClientRect().top < 0;
|
|
97
|
+
}
|
|
95
98
|
//# sourceMappingURL=utils.js.map
|
package/flashbar/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/flashbar/utils.ts"],"names":[],"mappings":";AAKA,MAAM,CAAC,IAAM,oBAAoB,GAAG,IAAI,CAAC;AAUzC,IAAM,aAAa,GAA8B;IAC/C,KAAK,EAAE,KAAK;IACZ,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,MAAM;IAChB,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE,MAAM;CAChB,CAAC;AAEF,SAAS,gBAAgB,CAAC,IAAgB;IACxC,IAAM,YAAY,GAAG,MAAM,CAAC;IAC5B,OAAO,IAAI,CAAC,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC;AACnE,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,IAAqC;IAC/D,IAAI,IAAI,CAAC,OAAO,EAAE;QAChB,OAAO,UAAU,CAAC;KACnB;SAAM;QACL,OAAO,IAAI,CAAC,IAAI,IAAI,MAAM,CAAC;KAC5B;AACH,CAAC;AAED,SAAS,YAAY,CAAC,IAAqC;IACzD,OAAO,gBAAgB,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC;AAC7C,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,wBAAwB,CACtC,KAAqD,EACrD,aAAqB;IAErB,qDAAqD;IACrD,sGAAsG;IACtG,IAAM,UAAU,GAAwD,EAAE,CAAC;IAE3E,qFAAqF;IACrF,gFAAgF;IAChF,IAAM,cAAc,GAAoB,EAAE,CAAC;IAE3C,IAAM,WAAW,GAA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Aa,EAAE;IACzE,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,yBAAyB,EAAE,QAAQ,EAAE,oBAAoB,EAAE;CAC3F,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { FlashbarProps, FlashType } from './interfaces';\nimport { IconProps } from '../icon/interfaces';\n\nexport const FOCUS_THROTTLE_DELAY = 2000;\n\n// Since the position of a notification changes when the Flashbar is collapsed,\n// it is useful on some situations (e.g, for animating) to know the original position of the item\n// in the non-collapsed state.\nexport interface StackableItem extends FlashbarProps.MessageDefinition {\n expandedIndex: number;\n collapsedIndex?: number;\n}\n\nconst typesToColors: Record<FlashType, string> = {\n error: 'red',\n info: 'blue',\n progress: 'blue',\n success: 'green',\n warning: 'blue',\n};\n\nfunction getColorFromType(type?: FlashType): string {\n const defaultColor = 'blue';\n return type ? typesToColors[type] || defaultColor : defaultColor;\n}\n\nexport function getItemType(item: FlashbarProps.MessageDefinition) {\n if (item.loading) {\n return 'progress';\n } else {\n return item.type || 'info';\n }\n}\n\nfunction getItemColor(item: FlashbarProps.MessageDefinition) {\n return getColorFromType(getItemType(item));\n}\n\n/*\n Returns a selection of notifications, preserving the order when possible but making sure that all different colors in\n the stack are represented in the returned array.\n The order corresponds to how they are represented when using the collapsible feature (newest first, oldest last).\n */\nexport function getVisibleCollapsedItems(\n items: ReadonlyArray<FlashbarProps.MessageDefinition>,\n desiredLength: number\n): ReadonlyArray<StackableItem> {\n // First `desiredLength` items in the original array,\n // together with `isColorRepeated` to tell if they can be subject to be replaced later on if necessary\n const itemsOnTop: { item: StackableItem; isColorRepeated: boolean }[] = [];\n\n // Items that fall outside `desiredIndexLength` but need to be \"promoted\" if possible\n // because they are of a different color which otherwise wouldn't be represented\n const itemsToPromote: StackableItem[] = [];\n\n const addedColors: Set<string> = new Set();\n const allPossibleColors = Object.keys(typesToColors).length;\n const finalLength = Math.min(items.length, desiredLength);\n\n for (let i = 0; i < items.length; i++) {\n const item = items[i];\n const color = getItemColor(item);\n const isColorRepeated = addedColors.has(color);\n if (i < finalLength) {\n itemsOnTop.push({ item: { ...item, expandedIndex: i }, isColorRepeated });\n } else {\n if (addedColors.size === allPossibleColors) {\n // No need to keep looking for unrepresented colors, we can stop looping\n break;\n } else if (!isColorRepeated) {\n itemsToPromote.push({ ...item, expandedIndex: i });\n }\n }\n addedColors.add(color);\n }\n // Generate the new array with the selected items, by picking from both arrays.\n // First, from the non-repeated items within the desired length...\n // We loop `itemsOnTop` starting from the end because we prefer to preserve the first ones rather than the old ones\n const reversedInitialSelection = [];\n let slotsReservedForPromotions = 0;\n for (let j = itemsOnTop.length - 1; j >= 0; j--) {\n const item = itemsOnTop[j];\n if (item.isColorRepeated && slotsReservedForPromotions < itemsToPromote.length) {\n slotsReservedForPromotions += 1;\n } else {\n reversedInitialSelection.push(item.item);\n }\n }\n const selectedItems = reversedInitialSelection.reverse();\n // ...and then complete the selection with as many promotable items as we can fit in the rest of the array\n for (let k = 0; selectedItems.length < desiredLength; k++) {\n selectedItems.push(itemsToPromote[k]);\n }\n return selectedItems;\n}\n\nexport function getFlashTypeCount(items: readonly FlashbarProps.MessageDefinition[]): Record<FlashType, number> {\n const count = { error: 0, info: 0, progress: 0, success: 0, warning: 0 };\n for (const item of items) {\n const type = getItemType(item);\n count[type] += 1;\n }\n return count;\n}\n\nexport type LabelName =\n | 'errorIconAriaLabel'\n | 'warningIconAriaLabel'\n | 'successIconAriaLabel'\n | 'infoIconAriaLabel'\n | 'inProgressIconAriaLabel';\n\nexport const counterTypes: {\n type: FlashType;\n labelName: LabelName;\n iconName: IconProps.Name;\n}[] = [\n { type: 'error', labelName: 'errorIconAriaLabel', iconName: 'status-negative' },\n { type: 'warning', labelName: 'warningIconAriaLabel', iconName: 'status-warning' },\n { type: 'success', labelName: 'successIconAriaLabel', iconName: 'status-positive' },\n { type: 'info', labelName: 'infoIconAriaLabel', iconName: 'status-info' },\n { type: 'progress', labelName: 'inProgressIconAriaLabel', iconName: 'status-in-progress' },\n];\n"]}
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/flashbar/utils.ts"],"names":[],"mappings":";AAKA,MAAM,CAAC,IAAM,oBAAoB,GAAG,IAAI,CAAC;AAUzC,IAAM,aAAa,GAA8B;IAC/C,KAAK,EAAE,KAAK;IACZ,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,MAAM;IAChB,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE,MAAM;CAChB,CAAC;AAEF,SAAS,gBAAgB,CAAC,IAAgB;IACxC,IAAM,YAAY,GAAG,MAAM,CAAC;IAC5B,OAAO,IAAI,CAAC,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC;AACnE,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,IAAqC;IAC/D,IAAI,IAAI,CAAC,OAAO,EAAE;QAChB,OAAO,UAAU,CAAC;KACnB;SAAM;QACL,OAAO,IAAI,CAAC,IAAI,IAAI,MAAM,CAAC;KAC5B;AACH,CAAC;AAED,SAAS,YAAY,CAAC,IAAqC;IACzD,OAAO,gBAAgB,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC;AAC7C,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,wBAAwB,CACtC,KAAqD,EACrD,aAAqB;IAErB,qDAAqD;IACrD,sGAAsG;IACtG,IAAM,UAAU,GAAwD,EAAE,CAAC;IAE3E,qFAAqF;IACrF,gFAAgF;IAChF,IAAM,cAAc,GAAoB,EAAE,CAAC;IAE3C,IAAM,WAAW,GAAgB,IAAI,GAAG,EAAE,CAAC;IAC3C,IAAM,iBAAiB,GAAG,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,MAAM,CAAC;IAC5D,IAAM,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IA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,GAAG,CAAC,CAAC;AACjD,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { FlashbarProps, FlashType } from './interfaces';\nimport { IconProps } from '../icon/interfaces';\n\nexport const FOCUS_THROTTLE_DELAY = 2000;\n\n// Since the position of a notification changes when the Flashbar is collapsed,\n// it is useful on some situations (e.g, for animating) to know the original position of the item\n// in the non-collapsed state.\nexport interface StackableItem extends FlashbarProps.MessageDefinition {\n expandedIndex: number;\n collapsedIndex?: number;\n}\n\nconst typesToColors: Record<FlashType, string> = {\n error: 'red',\n info: 'blue',\n progress: 'blue',\n success: 'green',\n warning: 'blue',\n};\n\nfunction getColorFromType(type?: FlashType): string {\n const defaultColor = 'blue';\n return type ? typesToColors[type] || defaultColor : defaultColor;\n}\n\nexport function getItemType(item: FlashbarProps.MessageDefinition) {\n if (item.loading) {\n return 'progress';\n } else {\n return item.type || 'info';\n }\n}\n\nfunction getItemColor(item: FlashbarProps.MessageDefinition) {\n return getColorFromType(getItemType(item));\n}\n\n/*\n Returns a selection of notifications, preserving the order when possible but making sure that all different colors in\n the stack are represented in the returned array.\n The order corresponds to how they are represented when using the collapsible feature (newest first, oldest last).\n */\nexport function getVisibleCollapsedItems(\n items: ReadonlyArray<FlashbarProps.MessageDefinition>,\n desiredLength: number\n): ReadonlyArray<StackableItem> {\n // First `desiredLength` items in the original array,\n // together with `isColorRepeated` to tell if they can be subject to be replaced later on if necessary\n const itemsOnTop: { item: StackableItem; isColorRepeated: boolean }[] = [];\n\n // Items that fall outside `desiredIndexLength` but need to be \"promoted\" if possible\n // because they are of a different color which otherwise wouldn't be represented\n const itemsToPromote: StackableItem[] = [];\n\n const addedColors: Set<string> = new Set();\n const allPossibleColors = Object.keys(typesToColors).length;\n const finalLength = Math.min(items.length, desiredLength);\n\n for (let i = 0; i < items.length; i++) {\n const item = items[i];\n const color = getItemColor(item);\n const isColorRepeated = addedColors.has(color);\n if (i < finalLength) {\n itemsOnTop.push({ item: { ...item, expandedIndex: i }, isColorRepeated });\n } else {\n if (addedColors.size === allPossibleColors) {\n // No need to keep looking for unrepresented colors, we can stop looping\n break;\n } else if (!isColorRepeated) {\n itemsToPromote.push({ ...item, expandedIndex: i });\n }\n }\n addedColors.add(color);\n }\n // Generate the new array with the selected items, by picking from both arrays.\n // First, from the non-repeated items within the desired length...\n // We loop `itemsOnTop` starting from the end because we prefer to preserve the first ones rather than the old ones\n const reversedInitialSelection = [];\n let slotsReservedForPromotions = 0;\n for (let j = itemsOnTop.length - 1; j >= 0; j--) {\n const item = itemsOnTop[j];\n if (item.isColorRepeated && slotsReservedForPromotions < itemsToPromote.length) {\n slotsReservedForPromotions += 1;\n } else {\n reversedInitialSelection.push(item.item);\n }\n }\n const selectedItems = reversedInitialSelection.reverse();\n // ...and then complete the selection with as many promotable items as we can fit in the rest of the array\n for (let k = 0; selectedItems.length < desiredLength; k++) {\n selectedItems.push(itemsToPromote[k]);\n }\n return selectedItems;\n}\n\nexport function getFlashTypeCount(items: readonly FlashbarProps.MessageDefinition[]): Record<FlashType, number> {\n const count = { error: 0, info: 0, progress: 0, success: 0, warning: 0 };\n for (const item of items) {\n const type = getItemType(item);\n count[type] += 1;\n }\n return count;\n}\n\nexport type LabelName =\n | 'errorIconAriaLabel'\n | 'warningIconAriaLabel'\n | 'successIconAriaLabel'\n | 'infoIconAriaLabel'\n | 'inProgressIconAriaLabel';\n\nexport const counterTypes: {\n type: FlashType;\n labelName: LabelName;\n iconName: IconProps.Name;\n}[] = [\n { type: 'error', labelName: 'errorIconAriaLabel', iconName: 'status-negative' },\n { type: 'warning', labelName: 'warningIconAriaLabel', iconName: 'status-warning' },\n { type: 'success', labelName: 'successIconAriaLabel', iconName: 'status-positive' },\n { type: 'info', labelName: 'infoIconAriaLabel', iconName: 'status-info' },\n { type: 'progress', labelName: 'inProgressIconAriaLabel', iconName: 'status-in-progress' },\n];\n\nexport function isElementTopBeyondViewport(element: HTMLElement) {\n return element.getBoundingClientRect().top < 0;\n}\n"]}
|
package/internal/environment.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/generated/custom-css-properties/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/generated/custom-css-properties/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA6BlD,CAAC;AACF,eAAe,sBAAsB,CAAC"}
|
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
var customCSSPropertiesMap = {
|
|
2
|
-
offsetTop: '--awsui-offset-top-
|
|
3
|
-
offsetTopWithNotifications: '--awsui-offset-top-with-notifications-
|
|
4
|
-
contentGapLeft: '--awsui-content-gap-left-
|
|
5
|
-
contentGapRight: '--awsui-content-gap-right-
|
|
6
|
-
contentHeight: '--awsui-content-height-
|
|
7
|
-
defaultMaxContentWidth: '--awsui-default-max-content-width-
|
|
8
|
-
defaultMinContentWidth: '--awsui-default-min-content-width-
|
|
9
|
-
footerHeight: '--awsui-footer-height-
|
|
10
|
-
headerHeight: '--awsui-header-height-
|
|
11
|
-
layoutWidth: '--awsui-layout-width-
|
|
12
|
-
mainOffsetLeft: '--awsui-main-offset-left-
|
|
13
|
-
maxContentWidth: '--awsui-max-content-width-
|
|
14
|
-
minContentWidth: '--awsui-min-content-width-
|
|
15
|
-
notificationsHeight: '--awsui-notifications-height-
|
|
16
|
-
overlapHeight: '--awsui-overlap-height-
|
|
17
|
-
navigationWidth: '--awsui-navigation-width-
|
|
18
|
-
splitPanelReportedHeaderSize: '--awsui-split-panel-reported-header-size-
|
|
19
|
-
splitPanelReportedSize: '--awsui-split-panel-reported-size-
|
|
20
|
-
splitPanelHeight: '--awsui-split-panel-height-
|
|
21
|
-
splitPanelMinWidth: '--awsui-split-panel-min-width-
|
|
22
|
-
splitPanelMaxWidth: '--awsui-split-panel-max-width-
|
|
23
|
-
toolsMaxWidth: '--awsui-tools-max-width-
|
|
24
|
-
toolsWidth: '--awsui-tools-width-
|
|
25
|
-
toolsAnimationStartingOpacity: '--awsui-tools-animation-starting-opacity-
|
|
26
|
-
contentScrollMargin: '--awsui-content-scroll-margin-
|
|
27
|
-
flashbarStackDepth: '--awsui-flashbar-stack-depth-
|
|
28
|
-
flashbarStackIndex: '--awsui-flashbar-stack-index-
|
|
2
|
+
offsetTop: '--awsui-offset-top-20d8jh',
|
|
3
|
+
offsetTopWithNotifications: '--awsui-offset-top-with-notifications-20d8jh',
|
|
4
|
+
contentGapLeft: '--awsui-content-gap-left-20d8jh',
|
|
5
|
+
contentGapRight: '--awsui-content-gap-right-20d8jh',
|
|
6
|
+
contentHeight: '--awsui-content-height-20d8jh',
|
|
7
|
+
defaultMaxContentWidth: '--awsui-default-max-content-width-20d8jh',
|
|
8
|
+
defaultMinContentWidth: '--awsui-default-min-content-width-20d8jh',
|
|
9
|
+
footerHeight: '--awsui-footer-height-20d8jh',
|
|
10
|
+
headerHeight: '--awsui-header-height-20d8jh',
|
|
11
|
+
layoutWidth: '--awsui-layout-width-20d8jh',
|
|
12
|
+
mainOffsetLeft: '--awsui-main-offset-left-20d8jh',
|
|
13
|
+
maxContentWidth: '--awsui-max-content-width-20d8jh',
|
|
14
|
+
minContentWidth: '--awsui-min-content-width-20d8jh',
|
|
15
|
+
notificationsHeight: '--awsui-notifications-height-20d8jh',
|
|
16
|
+
overlapHeight: '--awsui-overlap-height-20d8jh',
|
|
17
|
+
navigationWidth: '--awsui-navigation-width-20d8jh',
|
|
18
|
+
splitPanelReportedHeaderSize: '--awsui-split-panel-reported-header-size-20d8jh',
|
|
19
|
+
splitPanelReportedSize: '--awsui-split-panel-reported-size-20d8jh',
|
|
20
|
+
splitPanelHeight: '--awsui-split-panel-height-20d8jh',
|
|
21
|
+
splitPanelMinWidth: '--awsui-split-panel-min-width-20d8jh',
|
|
22
|
+
splitPanelMaxWidth: '--awsui-split-panel-max-width-20d8jh',
|
|
23
|
+
toolsMaxWidth: '--awsui-tools-max-width-20d8jh',
|
|
24
|
+
toolsWidth: '--awsui-tools-width-20d8jh',
|
|
25
|
+
toolsAnimationStartingOpacity: '--awsui-tools-animation-starting-opacity-20d8jh',
|
|
26
|
+
contentScrollMargin: '--awsui-content-scroll-margin-20d8jh',
|
|
27
|
+
flashbarStackDepth: '--awsui-flashbar-stack-depth-20d8jh',
|
|
28
|
+
flashbarStackIndex: '--awsui-flashbar-stack-index-20d8jh',
|
|
29
|
+
flashbarStickyBottomMargin: '--awsui-flashbar-sticky-bottom-margin-20d8jh'
|
|
29
30
|
};
|
|
30
31
|
export default customCSSPropertiesMap;
|
|
31
32
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/generated/custom-css-properties/index.ts"],"names":[],"mappings":"AAAA,IAAM,sBAAsB,GAA2B;IACrD,SAAS,EAAE,2BAA2B;IACtC,0BAA0B,EAAE,8CAA8C;IAC1E,cAAc,EAAE,iCAAiC;IACjD,eAAe,EAAE,kCAAkC;IACnD,aAAa,EAAE,+BAA+B;IAC9C,sBAAsB,EAAE,0CAA0C;IAClE,sBAAsB,EAAE,0CAA0C;IAClE,YAAY,EAAE,8BAA8B;IAC5C,YAAY,EAAE,8BAA8B;IAC5C,WAAW,EAAE,6BAA6B;IAC1C,cAAc,EAAE,iCAAiC;IACjD,eAAe,EAAE,kCAAkC;IACnD,eAAe,EAAE,kCAAkC;IACnD,mBAAmB,EAAE,qCAAqC;IAC1D,aAAa,EAAE,+BAA+B;IAC9C,eAAe,EAAE,iCAAiC;IAClD,4BAA4B,EAAE,iDAAiD;IAC/E,sBAAsB,EAAE,0CAA0C;IAClE,gBAAgB,EAAE,mCAAmC;IACrD,kBAAkB,EAAE,sCAAsC;IAC1D,kBAAkB,EAAE,sCAAsC;IAC1D,aAAa,EAAE,gCAAgC;IAC/C,UAAU,EAAE,4BAA4B;IACxC,6BAA6B,EAAE,iDAAiD;IAChF,mBAAmB,EAAE,sCAAsC;IAC3D,kBAAkB,EAAE,qCAAqC;IACzD,kBAAkB,EAAE,qCAAqC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/generated/custom-css-properties/index.ts"],"names":[],"mappings":"AAAA,IAAM,sBAAsB,GAA2B;IACrD,SAAS,EAAE,2BAA2B;IACtC,0BAA0B,EAAE,8CAA8C;IAC1E,cAAc,EAAE,iCAAiC;IACjD,eAAe,EAAE,kCAAkC;IACnD,aAAa,EAAE,+BAA+B;IAC9C,sBAAsB,EAAE,0CAA0C;IAClE,sBAAsB,EAAE,0CAA0C;IAClE,YAAY,EAAE,8BAA8B;IAC5C,YAAY,EAAE,8BAA8B;IAC5C,WAAW,EAAE,6BAA6B;IAC1C,cAAc,EAAE,iCAAiC;IACjD,eAAe,EAAE,kCAAkC;IACnD,eAAe,EAAE,kCAAkC;IACnD,mBAAmB,EAAE,qCAAqC;IAC1D,aAAa,EAAE,+BAA+B;IAC9C,eAAe,EAAE,iCAAiC;IAClD,4BAA4B,EAAE,iDAAiD;IAC/E,sBAAsB,EAAE,0CAA0C;IAClE,gBAAgB,EAAE,mCAAmC;IACrD,kBAAkB,EAAE,sCAAsC;IAC1D,kBAAkB,EAAE,sCAAsC;IAC1D,aAAa,EAAE,gCAAgC;IAC/C,UAAU,EAAE,4BAA4B;IACxC,6BAA6B,EAAE,iDAAiD;IAChF,mBAAmB,EAAE,sCAAsC;IAC3D,kBAAkB,EAAE,qCAAqC;IACzD,kBAAkB,EAAE,qCAAqC;IACzD,0BAA0B,EAAE,8CAA8C;CAC3E,CAAC;AACF,eAAe,sBAAsB,CAAC","sourcesContent":["const customCSSPropertiesMap: Record<string, string> = {\n offsetTop: '--awsui-offset-top-20d8jh',\n offsetTopWithNotifications: '--awsui-offset-top-with-notifications-20d8jh',\n contentGapLeft: '--awsui-content-gap-left-20d8jh',\n contentGapRight: '--awsui-content-gap-right-20d8jh',\n contentHeight: '--awsui-content-height-20d8jh',\n defaultMaxContentWidth: '--awsui-default-max-content-width-20d8jh',\n defaultMinContentWidth: '--awsui-default-min-content-width-20d8jh',\n footerHeight: '--awsui-footer-height-20d8jh',\n headerHeight: '--awsui-header-height-20d8jh',\n layoutWidth: '--awsui-layout-width-20d8jh',\n mainOffsetLeft: '--awsui-main-offset-left-20d8jh',\n maxContentWidth: '--awsui-max-content-width-20d8jh',\n minContentWidth: '--awsui-min-content-width-20d8jh',\n notificationsHeight: '--awsui-notifications-height-20d8jh',\n overlapHeight: '--awsui-overlap-height-20d8jh',\n navigationWidth: '--awsui-navigation-width-20d8jh',\n splitPanelReportedHeaderSize: '--awsui-split-panel-reported-header-size-20d8jh',\n splitPanelReportedSize: '--awsui-split-panel-reported-size-20d8jh',\n splitPanelHeight: '--awsui-split-panel-height-20d8jh',\n splitPanelMinWidth: '--awsui-split-panel-min-width-20d8jh',\n splitPanelMaxWidth: '--awsui-split-panel-max-width-20d8jh',\n toolsMaxWidth: '--awsui-tools-max-width-20d8jh',\n toolsWidth: '--awsui-tools-width-20d8jh',\n toolsAnimationStartingOpacity: '--awsui-tools-animation-starting-opacity-20d8jh',\n contentScrollMargin: '--awsui-content-scroll-margin-20d8jh',\n flashbarStackDepth: '--awsui-flashbar-stack-depth-20d8jh',\n flashbarStackIndex: '--awsui-flashbar-stack-index-20d8jh',\n flashbarStickyBottomMargin: '--awsui-flashbar-sticky-bottom-margin-20d8jh',\n};\nexport default customCSSPropertiesMap;\n"]}
|
package/internal/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -105,6 +105,7 @@ export declare namespace TagEditorProps {
|
|
|
105
105
|
invalidValueError: string;
|
|
106
106
|
awsPrefixError: string;
|
|
107
107
|
clearAriaLabel?: string;
|
|
108
|
+
itemRemovedAriaLive?: string;
|
|
108
109
|
tagLimit: (availableTags: number, tagLimit: number) => string;
|
|
109
110
|
tagLimitReached: (tagLimit: number) => string;
|
|
110
111
|
tagLimitExceeded: (tagLimit: number) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/tag-editor/interfaces.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAE/D,MAAM,WAAW,cAAe,SAAQ,kBAAkB;IACxD;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;IAEzC;;OAEG;IACH,WAAW,EAAE,cAAc,CAAC,WAAW,CAAC;IAExC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAEjC;;;;OAIG;IACH,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC;IAE9D;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC;IAE/E;;;;OAIG;IACH,QAAQ,CAAC,EAAE,yBAAyB,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;CACnE;AAED,yBAAiB,cAAc,CAAC;IAC9B,UAAiB,GAAG;QAClB;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;QAEZ;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,QAA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MAAM,CAAC;QAC1B,cAAc,EAAE,MAAM,CAAC;QACvB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,mBAAmB,CAAC,EAAE,MAAM,CAAC;QAC7B,QAAQ,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC;QAC9D,eAAe,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC;QAC9C,gBAAgB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC;QAC/C,eAAe,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,MAAM,CAAC;QACjD,iBAAiB,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,MAAM,CAAC;KACpD;IAED,UAAiB,YAAY;QAC3B,IAAI,EAAE,aAAa,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;QACxC,KAAK,EAAE,OAAO,CAAC;KAChB;IAED,UAAiB,GAAG;QAClB;;;WAGG;QACH,KAAK,IAAI,IAAI,CAAC;KACf;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/tag-editor/interfaces.tsx"],"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 { AutosuggestProps } from '../autosuggest/interfaces';\nimport { NonCancelableEventHandler } from '../internal/events';\n\nexport interface TagEditorProps extends BaseComponentProps {\n /**\n * Specifies an array of tags that are displayed to the user. Each tag item has the following properties:\n * - `key` (string) - The key of the tag that's displayed in the corresponding key field.\n * - `value` (string) - The value of the tag that's displayed in the corresponding value field.\n * - `existing` (boolean) - Specifies if this is an existing tag for the resource.\n * When set to `true`, if the tag is deleted its `markedForRemoval` property is to `true`.\n * When set to `false`, deletion of the tag removes the tag from the `tags` list.\n * - `markedForRemoval` (boolean) - Specifies if this tag has been marked for removal.\n * This property is set to `true` by the component when a user removes an existing tag.\n * The item will remain in the `tags` list. When set to `true`, the user is presented with the option to undo the removal operation.\n * - `valueSuggestionOptions` (Array<AutosuggestProps.Option>) - An array of autosuggest suggestion options associated with the specified tag key.\n */\n tags?: ReadonlyArray<TagEditorProps.Tag>;\n\n /**\n * An object containing all the necessary localized strings required by the component.\n */\n i18nStrings: TagEditorProps.I18nStrings;\n\n /**\n * Renders the component in a loading state.\n */\n loading?: boolean;\n\n /**\n * Specifies the maximum number of tags that a customer can add.\n */\n tagLimit?: number;\n\n /**\n * Specifies a regular expression string that overrides the default acceptable\n * character validation. You should use this property only when absolutely necessary.\n */\n allowedCharacterPattern?: string;\n\n /**\n * Specifies a function that returns all the keys for a resource.\n * The expected return type of the function should be a promise that\n * resolves to a list of strings of all the keys (for example, `['key1', 'key2']`).\n */\n keysRequest?: (key: string) => Promise<ReadonlyArray<string>>;\n\n /**\n * Specifies a function that returns all the values for a specified key\n * of a resource. The expected return type of the function should be a promise\n * that resolves to a list of strings of all the values (for example, `['value1', 'value2']`).\n *\n * You should return a rejected promise when the `key` parameter is an empty string.\n */\n valuesRequest?: (key: string, value: string) => Promise<ReadonlyArray<string>>;\n\n /**\n * Called when any tag operation occurs.\n * The event `detail` object contains the full updated state of `tags`,\n * and whether the component is in a `valid` state.\n */\n onChange?: NonCancelableEventHandler<TagEditorProps.ChangeDetail>;\n}\n\nexport namespace TagEditorProps {\n export interface Tag {\n /**\n * The key of the tag that will be displayed in the corresponding key field.\n */\n key: string;\n\n /**\n * The value of the tag that will be displayed in the corresponding value field.\n */\n value: string;\n\n /**\n * Whether this is an existing tag for the resource. If set to `true`, deletion of the tag will set the `markedForRemoval` property to `true`. If set to `false`, deletion of the tag will remove the tag from the `tags` list.\n */\n existing: boolean;\n\n /**\n * Whether this tag has been marked for removal. This property will be set to `true` by the component when a user tries to remove an existing tag. The item will remain in the `tags` list. When set to `true`, the user will be presented with the option to undo the removal operation.\n */\n markedForRemoval?: boolean;\n\n /**\n * An array of suggested values for the specified tag key.\n */\n valueSuggestionOptions?: ReadonlyArray<AutosuggestProps.Option>;\n }\n\n export interface I18nStrings {\n keyPlaceholder: string;\n valuePlaceholder: string;\n addButton: string;\n removeButton: string;\n undoButton: string;\n undoPrompt: string;\n loading: string;\n keyHeader: string;\n valueHeader: string;\n optional: string;\n keySuggestion: string;\n valueSuggestion: string;\n tooManyKeysSuggestion: string;\n tooManyValuesSuggestion: string;\n emptyTags: string;\n errorIconAriaLabel?: string;\n keysSuggestionLoading: string;\n keysSuggestionError: string;\n valuesSuggestionError: string;\n valuesSuggestionLoading: string;\n emptyKeyError: string;\n maxKeyCharLengthError: string;\n maxValueCharLengthError: string;\n duplicateKeyError: string;\n invalidKeyError: string;\n invalidValueError: string;\n awsPrefixError: string;\n clearAriaLabel?: string;\n tagLimit: (availableTags: number, tagLimit: number) => string;\n tagLimitReached: (tagLimit: number) => string;\n tagLimitExceeded: (tagLimit: number) => string;\n enteredKeyLabel: (enteredText: string) => string;\n enteredValueLabel: (enteredText: string) => string;\n }\n\n export interface ChangeDetail {\n tags: ReadonlyArray<TagEditorProps.Tag>;\n valid: boolean;\n }\n\n export interface Ref {\n /**\n * Focuses the first error within the component.\n * If no error is present, no element is focused.\n */\n focus(): void;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/tag-editor/interfaces.tsx"],"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 { AutosuggestProps } from '../autosuggest/interfaces';\nimport { NonCancelableEventHandler } from '../internal/events';\n\nexport interface TagEditorProps extends BaseComponentProps {\n /**\n * Specifies an array of tags that are displayed to the user. Each tag item has the following properties:\n * - `key` (string) - The key of the tag that's displayed in the corresponding key field.\n * - `value` (string) - The value of the tag that's displayed in the corresponding value field.\n * - `existing` (boolean) - Specifies if this is an existing tag for the resource.\n * When set to `true`, if the tag is deleted its `markedForRemoval` property is to `true`.\n * When set to `false`, deletion of the tag removes the tag from the `tags` list.\n * - `markedForRemoval` (boolean) - Specifies if this tag has been marked for removal.\n * This property is set to `true` by the component when a user removes an existing tag.\n * The item will remain in the `tags` list. When set to `true`, the user is presented with the option to undo the removal operation.\n * - `valueSuggestionOptions` (Array<AutosuggestProps.Option>) - An array of autosuggest suggestion options associated with the specified tag key.\n */\n tags?: ReadonlyArray<TagEditorProps.Tag>;\n\n /**\n * An object containing all the necessary localized strings required by the component.\n */\n i18nStrings: TagEditorProps.I18nStrings;\n\n /**\n * Renders the component in a loading state.\n */\n loading?: boolean;\n\n /**\n * Specifies the maximum number of tags that a customer can add.\n */\n tagLimit?: number;\n\n /**\n * Specifies a regular expression string that overrides the default acceptable\n * character validation. You should use this property only when absolutely necessary.\n */\n allowedCharacterPattern?: string;\n\n /**\n * Specifies a function that returns all the keys for a resource.\n * The expected return type of the function should be a promise that\n * resolves to a list of strings of all the keys (for example, `['key1', 'key2']`).\n */\n keysRequest?: (key: string) => Promise<ReadonlyArray<string>>;\n\n /**\n * Specifies a function that returns all the values for a specified key\n * of a resource. The expected return type of the function should be a promise\n * that resolves to a list of strings of all the values (for example, `['value1', 'value2']`).\n *\n * You should return a rejected promise when the `key` parameter is an empty string.\n */\n valuesRequest?: (key: string, value: string) => Promise<ReadonlyArray<string>>;\n\n /**\n * Called when any tag operation occurs.\n * The event `detail` object contains the full updated state of `tags`,\n * and whether the component is in a `valid` state.\n */\n onChange?: NonCancelableEventHandler<TagEditorProps.ChangeDetail>;\n}\n\nexport namespace TagEditorProps {\n export interface Tag {\n /**\n * The key of the tag that will be displayed in the corresponding key field.\n */\n key: string;\n\n /**\n * The value of the tag that will be displayed in the corresponding value field.\n */\n value: string;\n\n /**\n * Whether this is an existing tag for the resource. If set to `true`, deletion of the tag will set the `markedForRemoval` property to `true`. If set to `false`, deletion of the tag will remove the tag from the `tags` list.\n */\n existing: boolean;\n\n /**\n * Whether this tag has been marked for removal. This property will be set to `true` by the component when a user tries to remove an existing tag. The item will remain in the `tags` list. When set to `true`, the user will be presented with the option to undo the removal operation.\n */\n markedForRemoval?: boolean;\n\n /**\n * An array of suggested values for the specified tag key.\n */\n valueSuggestionOptions?: ReadonlyArray<AutosuggestProps.Option>;\n }\n\n export interface I18nStrings {\n keyPlaceholder: string;\n valuePlaceholder: string;\n addButton: string;\n removeButton: string;\n undoButton: string;\n undoPrompt: string;\n loading: string;\n keyHeader: string;\n valueHeader: string;\n optional: string;\n keySuggestion: string;\n valueSuggestion: string;\n tooManyKeysSuggestion: string;\n tooManyValuesSuggestion: string;\n emptyTags: string;\n errorIconAriaLabel?: string;\n keysSuggestionLoading: string;\n keysSuggestionError: string;\n valuesSuggestionError: string;\n valuesSuggestionLoading: string;\n emptyKeyError: string;\n maxKeyCharLengthError: string;\n maxValueCharLengthError: string;\n duplicateKeyError: string;\n invalidKeyError: string;\n invalidValueError: string;\n awsPrefixError: string;\n clearAriaLabel?: string;\n itemRemovedAriaLive?: string;\n tagLimit: (availableTags: number, tagLimit: number) => string;\n tagLimitReached: (tagLimit: number) => string;\n tagLimitExceeded: (tagLimit: number) => string;\n enteredKeyLabel: (enteredText: string) => string;\n enteredValueLabel: (enteredText: string) => string;\n }\n\n export interface ChangeDetail {\n tags: ReadonlyArray<TagEditorProps.Tag>;\n valid: boolean;\n }\n\n export interface Ref {\n /**\n * Focuses the first error within the component.\n * If no error is present, no element is focused.\n */\n focus(): void;\n }\n}\n"]}
|
|
@@ -4,6 +4,8 @@ export default class FlashbarWrapper extends ComponentWrapper {
|
|
|
4
4
|
static rootSelector: string;
|
|
5
5
|
/**
|
|
6
6
|
* Returns the individual flashes of this flashbar.
|
|
7
|
+
*
|
|
8
|
+
* If the items are stacked, only the item at the top of the stack is returned.
|
|
7
9
|
*/
|
|
8
10
|
findItems(): Array<FlashWrapper>;
|
|
9
11
|
}
|
|
@@ -27,6 +27,8 @@ var FlashbarWrapper = /** @class */ (function (_super) {
|
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
29
|
* Returns the individual flashes of this flashbar.
|
|
30
|
+
*
|
|
31
|
+
* If the items are stacked, only the item at the top of the stack is returned.
|
|
30
32
|
*/
|
|
31
33
|
FlashbarWrapper.prototype.findItems = function () {
|
|
32
34
|
return this.findAllByClassName(styles_selectors_js_1.default['flash-list-item']).map(function (item) { return new flash_1.default(item.getElement()); });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/flashbar/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,8DAA0E;AAC1E,6EAA2D;AAC3D,iCAAmC;AAEnC;IAA6C,mCAAgB;IAA7D;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/flashbar/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,8DAA0E;AAC1E,6EAA2D;AAC3D,iCAAmC;AAEnC;IAA6C,mCAAgB;IAA7D;;IAWA,CAAC;IARC;;;;OAIG;IACH,mCAAS,GAAT;QACE,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,GAAG,CAAC,UAAA,IAAI,IAAI,OAAA,IAAI,eAAY,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,EAAnC,CAAmC,CAAC,CAAC;IAC7G,CAAC;IATM,4BAAY,GAAW,6BAAM,CAAC,QAAQ,CAAC;IAUhD,sBAAC;CAAA,AAXD,CAA6C,sBAAgB,GAW5D;kBAXoB,eAAe"}
|
|
@@ -4,6 +4,8 @@ export default class FlashbarWrapper extends ComponentWrapper {
|
|
|
4
4
|
static rootSelector: string;
|
|
5
5
|
/**
|
|
6
6
|
* Returns the individual flashes of this flashbar.
|
|
7
|
+
*
|
|
8
|
+
* If the items are stacked, only the item at the top of the stack is returned.
|
|
7
9
|
*/
|
|
8
10
|
findItems(): import("@cloudscape-design/test-utils-core/selectors").MultiElementWrapper<FlashWrapper>;
|
|
9
11
|
}
|
|
@@ -27,6 +27,8 @@ var FlashbarWrapper = /** @class */ (function (_super) {
|
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
29
|
* Returns the individual flashes of this flashbar.
|
|
30
|
+
*
|
|
31
|
+
* If the items are stacked, only the item at the top of the stack is returned.
|
|
30
32
|
*/
|
|
31
33
|
FlashbarWrapper.prototype.findItems = function () {
|
|
32
34
|
return this.findAllByClassName(styles_selectors_js_1.default['flash-list-item']).map(function (item) { return new flash_1.default(item.getElement()); });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/flashbar/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,0EAAgF;AAChF,6EAA2D;AAC3D,iCAAmC;AACnC;IAA6C,mCAAgB;IAA7D;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/flashbar/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,0EAAgF;AAChF,6EAA2D;AAC3D,iCAAmC;AACnC;IAA6C,mCAAgB;IAA7D;;IAWA,CAAC;IARC;;;;OAIG;IACH,mCAAS,GAAT;QACE,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,GAAG,CAAC,UAAA,IAAI,IAAI,OAAA,IAAI,eAAY,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,EAAnC,CAAmC,CAAC,CAAC;IAC7G,CAAC;IATM,4BAAY,GAAW,6BAAM,CAAC,QAAQ,CAAC;IAUhD,sBAAC;CAAA,AAXD,CAA6C,4BAAgB,GAW5D;kBAXoB,eAAe"}
|