@cloudscape-design/components-themeable 3.0.1217 → 3.0.1219
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/internal/manifest.json +1 -1
- package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +1 -1
- package/lib/internal/template/THIRD-PARTY-LICENSES +35 -0
- package/lib/internal/template/column-layout/flexible-column-layout/index.js +1 -1
- package/lib/internal/template/column-layout/flexible-column-layout/index.js.map +1 -1
- package/lib/internal/template/column-layout/grid-column-layout.js +1 -1
- package/lib/internal/template/column-layout/grid-column-layout.js.map +1 -1
- package/lib/internal/template/grid/internal.js +1 -1
- package/lib/internal/template/grid/internal.js.map +1 -1
- package/lib/internal/template/i18n/messages/all.all.js +1 -1
- package/lib/internal/template/i18n/messages/all.all.json +1 -1
- package/lib/internal/template/i18n/messages/all.ar.js +1 -1
- package/lib/internal/template/i18n/messages/all.ar.json +1 -1
- package/lib/internal/template/i18n/messages/all.de.js +1 -1
- package/lib/internal/template/i18n/messages/all.de.json +1 -1
- package/lib/internal/template/i18n/messages/all.en-GB.js +1 -1
- package/lib/internal/template/i18n/messages/all.en-GB.json +1 -1
- package/lib/internal/template/i18n/messages/all.en.js +1 -1
- package/lib/internal/template/i18n/messages/all.en.json +1 -1
- package/lib/internal/template/i18n/messages/all.es.js +1 -1
- package/lib/internal/template/i18n/messages/all.es.json +1 -1
- package/lib/internal/template/i18n/messages/all.fr.js +1 -1
- package/lib/internal/template/i18n/messages/all.fr.json +1 -1
- package/lib/internal/template/i18n/messages/all.id.js +1 -1
- package/lib/internal/template/i18n/messages/all.id.json +1 -1
- package/lib/internal/template/i18n/messages/all.it.js +1 -1
- package/lib/internal/template/i18n/messages/all.it.json +1 -1
- package/lib/internal/template/i18n/messages/all.ja.js +1 -1
- package/lib/internal/template/i18n/messages/all.ja.json +1 -1
- package/lib/internal/template/i18n/messages/all.ko.js +1 -1
- package/lib/internal/template/i18n/messages/all.ko.json +1 -1
- package/lib/internal/template/i18n/messages/all.pt-BR.js +1 -1
- package/lib/internal/template/i18n/messages/all.pt-BR.json +1 -1
- package/lib/internal/template/i18n/messages/all.tr.js +1 -1
- package/lib/internal/template/i18n/messages/all.tr.json +1 -1
- package/lib/internal/template/i18n/messages/all.zh-CN.js +1 -1
- package/lib/internal/template/i18n/messages/all.zh-CN.json +1 -1
- package/lib/internal/template/i18n/messages/all.zh-TW.js +1 -1
- package/lib/internal/template/i18n/messages/all.zh-TW.json +1 -1
- package/lib/internal/template/i18n/messages-types.d.ts +1 -0
- package/lib/internal/template/i18n/messages-types.d.ts.map +1 -1
- package/lib/internal/template/i18n/messages-types.js.map +1 -1
- package/lib/internal/template/internal/base-component/styles.scoped.css +1 -1
- package/lib/internal/template/internal/environment.js +2 -2
- package/lib/internal/template/internal/environment.json +2 -2
- package/lib/internal/template/internal/utils/flatten-children.d.ts +14 -1
- package/lib/internal/template/internal/utils/flatten-children.d.ts.map +1 -1
- package/lib/internal/template/internal/utils/flatten-children.js +18 -9
- package/lib/internal/template/internal/utils/flatten-children.js.map +1 -1
- package/lib/internal/template/internal/utils/react-version.d.ts +2 -0
- package/lib/internal/template/internal/utils/react-version.d.ts.map +1 -0
- package/lib/internal/template/internal/utils/react-version.js +9 -0
- package/lib/internal/template/internal/utils/react-version.js.map +1 -0
- package/lib/internal/template/internal/vendor/react-keyed-flatten-children/index.d.ts +3 -0
- package/lib/internal/template/internal/vendor/react-keyed-flatten-children/index.d.ts.map +1 -0
- package/lib/internal/template/internal/vendor/react-keyed-flatten-children/index.js +29 -0
- package/lib/internal/template/internal/vendor/react-keyed-flatten-children/index.js.map +1 -0
- package/lib/internal/template/package.json +1 -1
- package/lib/internal/template/space-between/internal.js +1 -1
- package/lib/internal/template/space-between/internal.js.map +1 -1
- package/lib/internal/template/test-utils/dom/hotspot/index.d.ts +1 -1
- package/lib/internal/template/test-utils/dom/hotspot/index.js +2 -2
- package/lib/internal/template/test-utils/dom/hotspot/index.js.map +1 -1
- package/lib/internal/template/test-utils/dom/internal/autosuggest-input.d.ts +1 -1
- package/lib/internal/template/test-utils/dom/internal/autosuggest-input.js +2 -2
- package/lib/internal/template/test-utils/dom/internal/autosuggest-input.js.map +1 -1
- package/lib/internal/template/test-utils/dom/popover/index.d.ts +1 -1
- package/lib/internal/template/test-utils/dom/popover/index.js +3 -2
- package/lib/internal/template/test-utils/dom/popover/index.js.map +1 -1
- package/lib/internal/template/test-utils/dom/progress-bar/index.d.ts +1 -1
- package/lib/internal/template/test-utils/dom/progress-bar/index.js +4 -2
- package/lib/internal/template/test-utils/dom/progress-bar/index.js.map +1 -1
- package/lib/internal/template/test-utils/dom/s3-resource-selector/index.js +5 -3
- package/lib/internal/template/test-utils/dom/s3-resource-selector/index.js.map +1 -1
- package/lib/internal/template/test-utils/dom/tutorial-panel/tutorial.d.ts +1 -1
- package/lib/internal/template/test-utils/dom/tutorial-panel/tutorial.js +2 -2
- package/lib/internal/template/test-utils/dom/tutorial-panel/tutorial.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/hotspot/index.d.ts +1 -1
- package/lib/internal/template/test-utils/selectors/hotspot/index.js +2 -2
- package/lib/internal/template/test-utils/selectors/hotspot/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/internal/autosuggest-input.d.ts +1 -1
- package/lib/internal/template/test-utils/selectors/internal/autosuggest-input.js +2 -2
- package/lib/internal/template/test-utils/selectors/internal/autosuggest-input.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/popover/index.d.ts +1 -1
- package/lib/internal/template/test-utils/selectors/popover/index.js +3 -2
- package/lib/internal/template/test-utils/selectors/popover/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/progress-bar/index.d.ts +1 -1
- package/lib/internal/template/test-utils/selectors/progress-bar/index.js +3 -2
- package/lib/internal/template/test-utils/selectors/progress-bar/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/s3-resource-selector/index.js +5 -3
- package/lib/internal/template/test-utils/selectors/s3-resource-selector/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/tutorial-panel/tutorial.d.ts +1 -1
- package/lib/internal/template/test-utils/selectors/tutorial-panel/tutorial.js +2 -2
- package/lib/internal/template/test-utils/selectors/tutorial-panel/tutorial.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,16 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Flattens React children into a single-level array.
|
|
4
|
+
*
|
|
5
|
+
* This utility handles version-specific differences in React's children handling:
|
|
6
|
+
* - **React 16-18**: Flattens nested arrays AND fragments into a single array
|
|
7
|
+
* - **React 19+**: Flattens nested arrays but preserves fragments as single elements
|
|
8
|
+
*
|
|
9
|
+
* @param children - React children to flatten (elements, arrays, fragments, etc.)
|
|
10
|
+
* @param componentName - Component name used for warning messages. Required to enable fragment
|
|
11
|
+
* detection warnings in React 16-18 when fragments are found.
|
|
12
|
+
*
|
|
13
|
+
* @returns A flat array of React nodes
|
|
14
|
+
*/
|
|
15
|
+
export declare function flattenChildren(children: ReactNode, componentName: string): ReactNode[];
|
|
3
16
|
//# sourceMappingURL=flatten-children.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flatten-children.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/flatten-children.ts"],"names":[],"mappings":"AAEA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"flatten-children.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/flatten-children.ts"],"names":[],"mappings":"AAEA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKzC;;;;;;;;;;;;GAYG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,GAAG,SAAS,EAAE,CAOvF"}
|
|
@@ -1,17 +1,26 @@
|
|
|
1
1
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import flattenChildrenLegacy from 'react-keyed-flatten-children';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
import flattenChildrenLegacy from '../vendor/react-keyed-flatten-children';
|
|
5
|
+
import { getReactMajorVersion } from './react-version';
|
|
6
|
+
/**
|
|
7
|
+
* Flattens React children into a single-level array.
|
|
8
|
+
*
|
|
9
|
+
* This utility handles version-specific differences in React's children handling:
|
|
10
|
+
* - **React 16-18**: Flattens nested arrays AND fragments into a single array
|
|
11
|
+
* - **React 19+**: Flattens nested arrays but preserves fragments as single elements
|
|
12
|
+
*
|
|
13
|
+
* @param children - React children to flatten (elements, arrays, fragments, etc.)
|
|
14
|
+
* @param componentName - Component name used for warning messages. Required to enable fragment
|
|
15
|
+
* detection warnings in React 16-18 when fragments are found.
|
|
16
|
+
*
|
|
17
|
+
* @returns A flat array of React nodes
|
|
18
|
+
*/
|
|
19
|
+
export function flattenChildren(children, componentName) {
|
|
20
|
+
const majorVersion = getReactMajorVersion();
|
|
9
21
|
if (!Number.isNaN(majorVersion) && majorVersion < 19) {
|
|
10
|
-
|
|
11
|
-
return flattenChildrenLegacy(children);
|
|
22
|
+
return flattenChildrenLegacy(children, 0, [], componentName);
|
|
12
23
|
}
|
|
13
|
-
// React 19+: Uses Children.toArray() which doesn't flatten fragments.
|
|
14
|
-
// This also supports bigint which is not available in earlier React versions.
|
|
15
24
|
return React.Children.toArray(children);
|
|
16
25
|
}
|
|
17
26
|
//# sourceMappingURL=flatten-children.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flatten-children.js","sourceRoot":"","sources":["../../../../src/internal/utils/flatten-children.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAoB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"flatten-children.js","sourceRoot":"","sources":["../../../../src/internal/utils/flatten-children.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAoB,MAAM,OAAO,CAAC;AAEzC,OAAO,qBAAqB,MAAM,wCAAwC,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,eAAe,CAAC,QAAmB,EAAE,aAAqB;IACxE,MAAM,YAAY,GAAG,oBAAoB,EAAE,CAAC;IAE5C,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,YAAY,GAAG,EAAE,EAAE,CAAC;QACrD,OAAO,qBAAqB,CAAC,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,CAAC;IAC/D,CAAC;IACD,OAAO,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;AAC1C,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { ReactNode } from 'react';\n\nimport flattenChildrenLegacy from '../vendor/react-keyed-flatten-children';\nimport { getReactMajorVersion } from './react-version';\n\n/**\n * Flattens React children into a single-level array.\n *\n * This utility handles version-specific differences in React's children handling:\n * - **React 16-18**: Flattens nested arrays AND fragments into a single array\n * - **React 19+**: Flattens nested arrays but preserves fragments as single elements\n *\n * @param children - React children to flatten (elements, arrays, fragments, etc.)\n * @param componentName - Component name used for warning messages. Required to enable fragment\n * detection warnings in React 16-18 when fragments are found.\n *\n * @returns A flat array of React nodes\n */\nexport function flattenChildren(children: ReactNode, componentName: string): ReactNode[] {\n const majorVersion = getReactMajorVersion();\n\n if (!Number.isNaN(majorVersion) && majorVersion < 19) {\n return flattenChildrenLegacy(children, 0, [], componentName);\n }\n return React.Children.toArray(children);\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-version.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/react-version.ts"],"names":[],"mappings":"AAIA,wBAAgB,oBAAoB,IAAI,MAAM,CAG7C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export function getReactMajorVersion() {
|
|
5
|
+
var _a;
|
|
6
|
+
const versionString = (_a = React.version) === null || _a === void 0 ? void 0 : _a.split('.')[0];
|
|
7
|
+
return versionString ? parseInt(versionString, 10) : NaN;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=react-version.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-version.js","sourceRoot":"","sources":["../../../../src/internal/utils/react-version.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,UAAU,oBAAoB;;IAClC,MAAM,aAAa,GAAG,MAAA,KAAK,CAAC,OAAO,0CAAE,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;IACnD,OAAO,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;AAC3D,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nexport function getReactMajorVersion(): number {\n const versionString = React.version?.split('.')[0];\n return versionString ? parseInt(versionString, 10) : NaN;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/vendor/react-keyed-flatten-children/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAwD,SAAS,EAAE,MAAM,OAAO,CAAC;AAWxF,MAAM,CAAC,OAAO,UAAU,eAAe,CACrC,QAAQ,EAAE,SAAS,EACnB,KAAK,oBAAI,EACT,IAAI,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,YAAK,EAC9B,aAAa,EAAE,MAAM,GACpB,SAAS,EAAE,CAmBb"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
// Vendored from react-keyed-flatten-children@3.2.0 (MIT License)
|
|
4
|
+
// Original source: https://github.com/grrowl/react-keyed-flatten-children
|
|
5
|
+
import { Children, cloneElement, isValidElement } from 'react';
|
|
6
|
+
import { isFragment } from 'react-is';
|
|
7
|
+
import { warnOnce } from '@cloudscape-design/component-toolkit/internal';
|
|
8
|
+
/* Returns React children into an array, flattening fragments. */
|
|
9
|
+
function isFragmentWithChildren(node) {
|
|
10
|
+
return isFragment(node);
|
|
11
|
+
}
|
|
12
|
+
export default function flattenChildren(children, depth = 0, keys = [], componentName) {
|
|
13
|
+
return Children.toArray(children).reduce((acc, node, nodeIndex) => {
|
|
14
|
+
if (isFragmentWithChildren(node)) {
|
|
15
|
+
warnOnce(componentName, 'React.Fragment children are flattened in React 18 but not in React 19+. Use arrays instead of fragments for consistent behavior.');
|
|
16
|
+
acc.push(...flattenChildren(node.props.children, depth + 1, keys.concat(node.key || nodeIndex), componentName));
|
|
17
|
+
}
|
|
18
|
+
else if (isValidElement(node)) {
|
|
19
|
+
acc.push(cloneElement(node, {
|
|
20
|
+
key: keys.concat(String(node.key)).join('.'),
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
else if (typeof node === 'string' || typeof node === 'number') {
|
|
24
|
+
acc.push(node);
|
|
25
|
+
}
|
|
26
|
+
return acc;
|
|
27
|
+
}, []);
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/vendor/react-keyed-flatten-children/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,iEAAiE;AACjE,0EAA0E;AAE1E,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,cAAc,EAA2B,MAAM,OAAO,CAAC;AACxF,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AAEzE,iEAAiE;AAEjE,SAAS,sBAAsB,CAAC,IAAa;IAC3C,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AAED,MAAM,CAAC,OAAO,UAAU,eAAe,CACrC,QAAmB,EACnB,KAAK,GAAG,CAAC,EACT,OAA4B,EAAE,EAC9B,aAAqB;IAErB,OAAO,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,GAAgB,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;QAC7E,IAAI,sBAAsB,CAAC,IAAI,CAAC,EAAE,CAAC;YACjC,QAAQ,CACN,aAAa,EACb,kIAAkI,CACnI,CAAC;YACF,GAAG,CAAC,IAAI,CAAC,GAAG,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,GAAG,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,SAAS,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC;QAClH,CAAC;aAAM,IAAI,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC;YAChC,GAAG,CAAC,IAAI,CACN,YAAY,CAAC,IAAI,EAAE;gBACjB,GAAG,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;aAC7C,CAAC,CACH,CAAC;QACJ,CAAC;aAAM,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;YAChE,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\n// Vendored from react-keyed-flatten-children@3.2.0 (MIT License)\n// Original source: https://github.com/grrowl/react-keyed-flatten-children\n\nimport { Children, cloneElement, isValidElement, ReactElement, ReactNode } from 'react';\nimport { isFragment } from 'react-is';\n\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\n\n/* Returns React children into an array, flattening fragments. */\n\nfunction isFragmentWithChildren(node: unknown): node is ReactElement<{ children: ReactNode }> {\n return isFragment(node);\n}\n\nexport default function flattenChildren(\n children: ReactNode,\n depth = 0,\n keys: (string | number)[] = [],\n componentName: string\n): ReactNode[] {\n return Children.toArray(children).reduce((acc: ReactNode[], node, nodeIndex) => {\n if (isFragmentWithChildren(node)) {\n warnOnce(\n componentName,\n 'React.Fragment children are flattened in React 18 but not in React 19+. Use arrays instead of fragments for consistent behavior.'\n );\n acc.push(...flattenChildren(node.props.children, depth + 1, keys.concat(node.key || nodeIndex), componentName));\n } else if (isValidElement(node)) {\n acc.push(\n cloneElement(node, {\n key: keys.concat(String(node.key)).join('.'),\n })\n );\n } else if (typeof node === 'string' || typeof node === 'number') {\n acc.push(node);\n }\n return acc;\n }, []);\n}\n"]}
|
|
@@ -13,7 +13,7 @@ const InternalSpaceBetween = forwardRef(({ direction = 'vertical', size, childre
|
|
|
13
13
|
/*
|
|
14
14
|
Flattening the children allows us to "see through" React Fragments and nested arrays.
|
|
15
15
|
*/
|
|
16
|
-
const flattenedChildren = flattenChildren(children);
|
|
16
|
+
const flattenedChildren = flattenChildren(children, 'SpaceBetween');
|
|
17
17
|
return (React.createElement(WithNativeAttributes, { ...baseProps, tag: "div", componentName: "SpaceBetween", nativeAttributes: nativeAttributes, className: clsx(baseProps.className, styles.root, styles[direction], styles[`${direction}-${size}`], alignItems && styles[`align-${alignItems}`]), ref: mergedRef }, flattenedChildren.map(child => {
|
|
18
18
|
// If this react child is a primitive value, the key will be undefined
|
|
19
19
|
const key = child && typeof child === 'object' ? child.key : undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/space-between/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAE7E,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,oBAAoB,MAAM,0CAA0C,CAAC;AAG5E,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAIrC,MAAM,oBAAoB,GAAG,UAAU,CACrC,CACE,EACE,SAAS,GAAG,UAAU,EACtB,IAAI,EACJ,QAAQ,EACR,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,GAAG,KAAK,EACkB,EAC5B,GAA8B,EAC9B,EAAE;IACF,MAAM,SAAS,GAAG,YAAY,CAAC,GAAG,EAAE,iBAAiB,CAAC,CAAC;IACvD,MAAM,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;IAEtC;;KAEC;IACD,MAAM,iBAAiB,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/space-between/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAE7E,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,oBAAoB,MAAM,0CAA0C,CAAC;AAG5E,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAIrC,MAAM,oBAAoB,GAAG,UAAU,CACrC,CACE,EACE,SAAS,GAAG,UAAU,EACtB,IAAI,EACJ,QAAQ,EACR,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,GAAG,KAAK,EACkB,EAC5B,GAA8B,EAC9B,EAAE;IACF,MAAM,SAAS,GAAG,YAAY,CAAC,GAAG,EAAE,iBAAiB,CAAC,CAAC;IACvD,MAAM,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;IAEtC;;KAEC;IACD,MAAM,iBAAiB,GAAG,eAAe,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC;IAEpE,OAAO,CACL,oBAAC,oBAAoB,OACf,SAAS,EACb,GAAG,EAAC,KAAK,EACT,aAAa,EAAC,cAAc,EAC5B,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,EAAE,IAAI,CACb,SAAS,CAAC,SAAS,EACnB,MAAM,CAAC,IAAI,EACX,MAAM,CAAC,SAAS,CAAC,EACjB,MAAM,CAAC,GAAG,SAAS,IAAI,IAAI,EAAE,CAAC,EAC9B,UAAU,IAAI,MAAM,CAAC,SAAS,UAAU,EAAE,CAAC,CAC5C,EACD,GAAG,EAAE,SAAS,IAEb,iBAAiB,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;QAC7B,sEAAsE;QACtE,MAAM,GAAG,GAAG,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAE,KAAgC,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;QAEnG,OAAO,CACL,6BAAK,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,CAAC,KAAK,IAC7D,KAAK,CACF,CACP,CAAC;IACJ,CAAC,CAAC,CACmB,CACxB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,oBAAoB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { forwardRef } from 'react';\nimport clsx from 'clsx';\n\nimport { useMergeRefs } from '@cloudscape-design/component-toolkit/internal';\n\nimport { getBaseProps } from '../internal/base-component';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { flattenChildren } from '../internal/utils/flatten-children';\nimport WithNativeAttributes from '../internal/utils/with-native-attributes';\nimport { SpaceBetweenProps } from './interfaces';\n\nimport styles from './styles.css.js';\n\ntype InternalSpaceBetweenProps = SpaceBetweenProps & InternalBaseComponentProps;\n\nconst InternalSpaceBetween = forwardRef(\n (\n {\n direction = 'vertical',\n size,\n children,\n alignItems,\n nativeAttributes,\n __internalRootRef,\n ...props\n }: InternalSpaceBetweenProps,\n ref: React.Ref<HTMLDivElement>\n ) => {\n const mergedRef = useMergeRefs(ref, __internalRootRef);\n const baseProps = getBaseProps(props);\n\n /*\n Flattening the children allows us to \"see through\" React Fragments and nested arrays.\n */\n const flattenedChildren = flattenChildren(children, 'SpaceBetween');\n\n return (\n <WithNativeAttributes\n {...baseProps}\n tag=\"div\"\n componentName=\"SpaceBetween\"\n nativeAttributes={nativeAttributes}\n className={clsx(\n baseProps.className,\n styles.root,\n styles[direction],\n styles[`${direction}-${size}`],\n alignItems && styles[`align-${alignItems}`]\n )}\n ref={mergedRef}\n >\n {flattenedChildren.map(child => {\n // If this react child is a primitive value, the key will be undefined\n const key = child && typeof child === 'object' ? (child as Record<'key', unknown>).key : undefined;\n\n return (\n <div key={key ? String(key) : undefined} className={styles.child}>\n {child}\n </div>\n );\n })}\n </WithNativeAttributes>\n );\n }\n);\n\nexport default InternalSpaceBetween;\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentWrapper, ElementWrapper } from '@cloudscape-design/test-utils-core/dom';
|
|
2
|
-
import
|
|
2
|
+
import AnnotationWrapper from '../annotation';
|
|
3
3
|
export default class HotspotWrapper extends ComponentWrapper {
|
|
4
4
|
static rootSelector: string;
|
|
5
5
|
findTrigger(): ElementWrapper;
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
const dom_1 = require("@cloudscape-design/test-utils-core/dom");
|
|
6
|
+
const annotation_1 = require("../annotation");
|
|
6
7
|
const index_1 = require("../index");
|
|
7
|
-
const index_js_1 = require("../index.js");
|
|
8
8
|
const styles_selectors_js_1 = require("../../../annotation-context/annotation/styles.selectors.js");
|
|
9
9
|
const styles_selectors_js_2 = require("../../../hotspot/styles.selectors.js");
|
|
10
10
|
class HotspotWrapper extends dom_1.ComponentWrapper {
|
|
@@ -12,7 +12,7 @@ class HotspotWrapper extends dom_1.ComponentWrapper {
|
|
|
12
12
|
return this.findByClassName(styles_selectors_js_1.default.hotspot);
|
|
13
13
|
}
|
|
14
14
|
findAnnotation() {
|
|
15
|
-
return (0, index_1.default)().findComponent(`.${styles_selectors_js_1.default.annotation}`,
|
|
15
|
+
return (0, index_1.default)().findComponent(`.${styles_selectors_js_1.default.annotation}`, annotation_1.default);
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
HotspotWrapper.rootSelector = styles_selectors_js_2.default.root;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/hotspot/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAE1F,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/hotspot/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAE1F,8CAA8C;AAC9C,oCAAqC;AAErC,oGAA0F;AAC1F,8EAAiE;AAEjE,MAAqB,cAAe,SAAQ,sBAAgB;IAG1D,WAAW;QACT,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAgB,CAAC,OAAO,CAAE,CAAC;IACzD,CAAC;IAED,cAAc;QACZ,OAAO,IAAA,eAAa,GAAE,CAAC,aAAa,CAAC,IAAI,6BAAgB,CAAC,UAAU,EAAE,EAAE,oBAAiB,CAAE,CAAC;IAC9F,CAAC;;AARM,2BAAY,GAAW,6BAAa,CAAC,IAAI,CAAC;kBAD9B,cAAc"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentWrapper } from '@cloudscape-design/test-utils-core/dom';
|
|
2
|
-
import
|
|
2
|
+
import InputWrapper from '../input';
|
|
3
3
|
import DropdownWrapper from './dropdown.js';
|
|
4
4
|
export default class AutosuggestInputWrapper extends ComponentWrapper {
|
|
5
5
|
static rootSelector: string;
|
|
@@ -3,14 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
const dom_1 = require("@cloudscape-design/test-utils-core/dom");
|
|
6
|
-
const
|
|
6
|
+
const input_1 = require("../input");
|
|
7
7
|
const dropdown_js_1 = require("./dropdown.js");
|
|
8
8
|
const styles_selectors_js_1 = require("../../../input/styles.selectors.js");
|
|
9
9
|
const styles_selectors_js_2 = require("../../../internal/components/autosuggest-input/styles.selectors.js");
|
|
10
10
|
const styles_selectors_js_3 = require("../../../internal/components/dropdown/styles.selectors.js");
|
|
11
11
|
class AutosuggestInputWrapper extends dom_1.ComponentWrapper {
|
|
12
12
|
findInput() {
|
|
13
|
-
return this.findComponent(`.${styles_selectors_js_1.default['input-container']}`,
|
|
13
|
+
return this.findComponent(`.${styles_selectors_js_1.default['input-container']}`, input_1.default);
|
|
14
14
|
}
|
|
15
15
|
findDropdown() {
|
|
16
16
|
return this.findComponent(`.${styles_selectors_js_3.default.root}`, dropdown_js_1.default);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autosuggest-input.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/internal/autosuggest-input.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0E;AAE1E,
|
|
1
|
+
{"version":3,"file":"autosuggest-input.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/internal/autosuggest-input.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0E;AAE1E,oCAAoC;AACpC,+CAA4C;AAE5C,4EAA6D;AAC7D,4GAAwF;AACxF,mGAAuF;AAEvF,MAAqB,uBAAwB,SAAQ,sBAAgB;IAGnE,SAAS;QACP,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAW,CAAC,iBAAiB,CAAC,EAAE,EAAE,eAAY,CAAE,CAAC;IACjF,CAAC;IAED,YAAY;QACV,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAc,CAAC,IAAI,EAAE,EAAE,qBAAe,CAAE,CAAC;IACzE,CAAC;;AARM,oCAAY,GAAG,6BAAM,CAAC,IAAI,CAAC;kBADf,uBAAuB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentWrapper, ElementWrapper } from '@cloudscape-design/test-utils-core/dom';
|
|
2
|
-
import
|
|
2
|
+
import ButtonWrapper from '../button';
|
|
3
3
|
export default class PopoverWrapper extends ComponentWrapper {
|
|
4
4
|
static rootSelector: string;
|
|
5
5
|
findTrigger(): ElementWrapper;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
const dom_1 = require("@cloudscape-design/test-utils-core/dom");
|
|
6
|
+
const button_1 = require("../button");
|
|
6
7
|
const index_js_1 = require("../index.js");
|
|
7
8
|
const styles_selectors_js_1 = require("../../../popover/styles.selectors.js");
|
|
8
9
|
class PopoverWrapper extends dom_1.ComponentWrapper {
|
|
@@ -35,9 +36,9 @@ class PopoverWrapper extends dom_1.ComponentWrapper {
|
|
|
35
36
|
*/
|
|
36
37
|
findDismissButton(options = { renderWithPortal: false }) {
|
|
37
38
|
if (options.renderWithPortal) {
|
|
38
|
-
return (0, index_js_1.default)().findComponent(`.${styles_selectors_js_1.default['dismiss-control']}`,
|
|
39
|
+
return (0, index_js_1.default)().findComponent(`.${styles_selectors_js_1.default['dismiss-control']}`, button_1.default);
|
|
39
40
|
}
|
|
40
|
-
return this.findComponent(`.${styles_selectors_js_1.default['dismiss-control']}`,
|
|
41
|
+
return this.findComponent(`.${styles_selectors_js_1.default['dismiss-control']}`, button_1.default);
|
|
41
42
|
}
|
|
42
43
|
}
|
|
43
44
|
PopoverWrapper.rootSelector = styles_selectors_js_1.default.root;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/popover/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAE1F,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/popover/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAE1F,sCAAsC;AACtC,0CAAwC;AAExC,8EAA0D;AAE1D,MAAqB,cAAe,SAAQ,sBAAgB;IAG1D,WAAW;QACT,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,OAAO,CAAE,CAAC;IAC/C,CAAC;IAED;;;OAGG;IACH,UAAU,CAAC,OAAO,GAAG,EAAE,gBAAgB,EAAE,KAAK,EAAE;QAC9C,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;YAC7B,OAAO,IAAA,kBAAa,GAAE,CAAC,eAAe,CAAC,6BAAM,CAAC,MAAM,CAAC,CAAC;QACxD,CAAC;QACD,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,MAAM,CAAC,CAAC;IAC7C,CAAC;IAED;;;OAGG;IACH,WAAW,CAAC,OAAO,GAAG,EAAE,gBAAgB,EAAE,KAAK,EAAE;QAC/C,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;YAC7B,OAAO,IAAA,kBAAa,GAAE,CAAC,eAAe,CAAC,6BAAM,CAAC,OAAO,CAAC,CAAC;QACzD,CAAC;QACD,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;IAED;;;OAGG;IACH,iBAAiB,CAAC,OAAO,GAAG,EAAE,gBAAgB,EAAE,KAAK,EAAE;QACrD,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;YAC7B,OAAO,IAAA,kBAAa,GAAE,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,iBAAiB,CAAC,EAAE,EAAE,gBAAa,CAAC,CAAC;QACvF,CAAC;QACD,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,iBAAiB,CAAC,EAAE,EAAE,gBAAa,CAAC,CAAC;IAC5E,CAAC;;AArCM,2BAAY,GAAW,6BAAM,CAAC,IAAI,CAAC;kBADvB,cAAc"}
|
|
@@ -9,7 +9,7 @@ export default class ProgressBarWrapper extends ComponentWrapper {
|
|
|
9
9
|
*
|
|
10
10
|
* @param status
|
|
11
11
|
*
|
|
12
|
-
* [optional] Status of the result text. It can be
|
|
12
|
+
* [optional] Status of the result text. It can be either "error" or "success".
|
|
13
13
|
* If not specified, the method returns the result text that is currently displayed, independently of the result status.
|
|
14
14
|
*/
|
|
15
15
|
findResultText(status?: string): ElementWrapper | null;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
const dom_1 = require("@cloudscape-design/test-utils-core/dom");
|
|
6
|
+
const button_1 = require("../button");
|
|
6
7
|
const styles_selectors_js_1 = require("../../../progress-bar/styles.selectors.js");
|
|
7
8
|
class ProgressBarWrapper extends dom_1.ComponentWrapper {
|
|
8
9
|
findPercentageText() {
|
|
@@ -10,14 +11,15 @@ class ProgressBarWrapper extends dom_1.ComponentWrapper {
|
|
|
10
11
|
}
|
|
11
12
|
findResultButton() {
|
|
12
13
|
var _a;
|
|
13
|
-
return ((_a = this.findByClassName(styles_selectors_js_1.default['result-button'])) === null || _a === void 0 ? void 0 : _a.
|
|
14
|
+
return (((_a = this.findByClassName(styles_selectors_js_1.default['result-button'])) === null || _a === void 0 ? void 0 : _a.findComponent(`.${button_1.default.rootSelector}`, button_1.default)) ||
|
|
15
|
+
null);
|
|
14
16
|
}
|
|
15
17
|
/**
|
|
16
18
|
* Returns the result text.
|
|
17
19
|
*
|
|
18
20
|
* @param status
|
|
19
21
|
*
|
|
20
|
-
* [optional] Status of the result text. It can be
|
|
22
|
+
* [optional] Status of the result text. It can be either "error" or "success".
|
|
21
23
|
* If not specified, the method returns the result text that is currently displayed, independently of the result status.
|
|
22
24
|
*/
|
|
23
25
|
findResultText(status) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/progress-bar/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/progress-bar/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAE1F,sCAAsC;AAEtC,mFAA+D;AAE/D,MAAqB,kBAAmB,SAAQ,sBAAgB;IAG9D,kBAAkB;QAChB,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,UAAU,CAAC,CAAC;IACjD,CAAC;IAED,gBAAgB;;QACd,OAAO,CACL,CAAA,MAAA,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,eAAe,CAAC,CAAC,0CAAE,aAAa,CAAC,IAAI,gBAAa,CAAC,YAAY,EAAE,EAAE,gBAAa,CAAC;YAC7G,IAAI,CACL,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,cAAc,CAAC,MAAe;QAC5B,MAAM,eAAe,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,6BAAM,CAAC,oBAAoB,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;QAClF,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,eAAe,IAAI,6BAAM,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,kBAAkB;QAChB,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC;IACzD,CAAC;;AA5BM,+BAAY,GAAG,6BAAM,CAAC,IAAI,CAAC;kBADf,kBAAkB"}
|
|
@@ -3,10 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
const dom_1 = require("@cloudscape-design/test-utils-core/dom");
|
|
6
|
+
const utils_1 = require("@cloudscape-design/test-utils-core/utils");
|
|
6
7
|
const __1 = require("../");
|
|
7
8
|
const button_1 = require("../button");
|
|
8
9
|
const input_1 = require("../input");
|
|
9
10
|
const modal_1 = require("../modal");
|
|
11
|
+
const select_1 = require("../select");
|
|
10
12
|
const table_1 = require("../table");
|
|
11
13
|
const styles_selectors_js_1 = require("../../../s3-resource-selector/s3-in-context/styles.selectors.js");
|
|
12
14
|
const styles_selectors_js_2 = require("../../../s3-resource-selector/s3-modal/styles.selectors.js");
|
|
@@ -23,7 +25,7 @@ class S3InContextWrapper extends dom_1.ComponentWrapper {
|
|
|
23
25
|
}
|
|
24
26
|
findVersionsSelect() {
|
|
25
27
|
const select = this.findByClassName(styles_selectors_js_1.default['layout-version']);
|
|
26
|
-
return select && select.
|
|
28
|
+
return select && select.findComponent(`.${select_1.default.rootSelector}`, select_1.default);
|
|
27
29
|
}
|
|
28
30
|
findViewButton() {
|
|
29
31
|
return this.findComponent(`.${styles_selectors_js_1.default['view-button']}`, button_1.default);
|
|
@@ -40,11 +42,11 @@ class S3ResourceSelectorWrapper extends dom_1.ComponentWrapper {
|
|
|
40
42
|
return this.findComponent(`.${styles_selectors_js_1.default.root}`, S3InContextWrapper);
|
|
41
43
|
}
|
|
42
44
|
findModal() {
|
|
43
|
-
const modal = (0, __1.default)().
|
|
45
|
+
const modal = (0, __1.default)().findComponent((0, utils_1.appendSelector)(`.${styles_selectors_js_4.default['modal-root']}`, `.${modal_1.default.rootSelector}`), modal_1.default);
|
|
44
46
|
return modal && new S3ModalWrapper(modal.getElement());
|
|
45
47
|
}
|
|
46
48
|
findTable() {
|
|
47
|
-
const modal =
|
|
49
|
+
const modal = (0, __1.default)().findComponent(`.${modal_1.default.rootSelector}`, modal_1.default);
|
|
48
50
|
return modal && modal.findComponent(`.${table_1.default.rootSelector}`, table_1.default);
|
|
49
51
|
}
|
|
50
52
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/s3-resource-selector/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/s3-resource-selector/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAC1F,oEAA0E;AAE1E,2BAAgC;AAChC,sCAAsC;AACtC,oCAAoC;AACpC,oCAAoC;AACpC,sCAAsC;AACtC,oCAAoC;AAEpC,yGAA8F;AAC9F,oGAAqF;AACrF,2FAAuE;AACvE,wGAA4F;AAE5F,MAAM,cAAe,SAAQ,eAAY;IACvC,gBAAgB;QACd,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAW,CAAC,eAAe,CAAC,EAAE,EAAE,gBAAa,CAAE,CAAC;IAChF,CAAC;CACF;AAED,MAAM,kBAAmB,SAAQ,sBAAgB;IAC/C,YAAY;QACV,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAe,CAAC,YAAY,CAAC,EAAE,EAAE,eAAY,CAAE,CAAC;IAChF,CAAC;IAED,kBAAkB;QAChB,MAAM,MAAM,GAAG,IAAI,CAAC,eAAe,CAAC,6BAAe,CAAC,gBAAgB,CAAC,CAAC,CAAC;QACvE,OAAO,MAAM,IAAI,MAAM,CAAC,aAAa,CAAC,IAAI,gBAAa,CAAC,YAAY,EAAE,EAAE,gBAAa,CAAC,CAAC;IACzF,CAAC;IAED,cAAc;QACZ,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAe,CAAC,aAAa,CAAC,EAAE,EAAE,gBAAa,CAAE,CAAC;IAClF,CAAC;IAED,gBAAgB;QACd,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAe,CAAC,eAAe,CAAC,EAAE,EAAE,gBAAa,CAAE,CAAC;IACpF,CAAC;CACF;AAED,MAAqB,yBAA0B,SAAQ,sBAAgB;IAGrE,aAAa;QACX,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,KAAK,CAAC,CAAC;IAC5C,CAAC;IAED,aAAa;QACX,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAe,CAAC,IAAI,EAAE,EAAE,kBAAkB,CAAE,CAAC;IAC7E,CAAC;IAED,SAAS;QACP,MAAM,KAAK,GAAG,IAAA,WAAa,GAAE,CAAC,aAAa,CACzC,IAAA,sBAAc,EAAC,IAAI,6BAAc,CAAC,YAAY,CAAC,EAAE,EAAE,IAAI,eAAY,CAAC,YAAY,EAAE,CAAC,EACnF,eAAY,CACb,CAAC;QACF,OAAO,KAAK,IAAI,IAAI,cAAc,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC,CAAC;IACzD,CAAC;IAED,SAAS;QACP,MAAM,KAAK,GAAG,IAAA,WAAa,GAAE,CAAC,aAAa,CAAC,IAAI,eAAY,CAAC,YAAY,EAAE,EAAE,eAAY,CAAC,CAAC;QAC3F,OAAO,KAAK,IAAI,KAAK,CAAC,aAAa,CAAC,IAAI,eAAY,CAAC,YAAY,EAAE,EAAE,eAAY,CAAC,CAAC;IACrF,CAAC;;AArBM,sCAAY,GAAG,6BAAM,CAAC,IAAI,CAAC;kBADf,yBAAyB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentWrapper, ElementWrapper } from '@cloudscape-design/test-utils-core/dom';
|
|
2
|
+
import AlertWrapper from '../alert';
|
|
2
3
|
import ButtonWrapper from '../button';
|
|
3
|
-
import { AlertWrapper } from '../index.js';
|
|
4
4
|
import LinkWrapper from '../link';
|
|
5
5
|
export default class TutorialItemWrapper extends ComponentWrapper {
|
|
6
6
|
static rootSelector: string;
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
const dom_1 = require("@cloudscape-design/test-utils-core/dom");
|
|
6
|
+
const alert_1 = require("../alert");
|
|
6
7
|
const button_1 = require("../button");
|
|
7
|
-
const index_js_1 = require("../index.js");
|
|
8
8
|
const link_1 = require("../link");
|
|
9
9
|
const styles_selectors_js_1 = require("../../../tutorial-panel/components/tutorial-list/styles.selectors.js");
|
|
10
10
|
class TutorialItemWrapper extends dom_1.ComponentWrapper {
|
|
@@ -30,7 +30,7 @@ class TutorialItemWrapper extends dom_1.ComponentWrapper {
|
|
|
30
30
|
return this.findByClassName(styles_selectors_js_1.default.completed);
|
|
31
31
|
}
|
|
32
32
|
findPrerequisitesAlert() {
|
|
33
|
-
return this.findComponent(`.${styles_selectors_js_1.default['prerequisites-alert']}`,
|
|
33
|
+
return this.findComponent(`.${styles_selectors_js_1.default['prerequisites-alert']}`, alert_1.default);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
TutorialItemWrapper.rootSelector = styles_selectors_js_1.default['tutorial-box'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tutorial.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/tutorial-panel/tutorial.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAE1F,sCAAsC;AACtC,
|
|
1
|
+
{"version":3,"file":"tutorial.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/tutorial-panel/tutorial.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAE1F,oCAAoC;AACpC,sCAAsC;AACtC,kCAAkC;AAElC,8GAA0F;AAE1F,MAAqB,mBAAoB,SAAQ,sBAAgB;IAG/D,eAAe;QACb,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,KAAK,EAAE,EAAE,gBAAa,CAAC,CAAC;IAC/D,CAAC;IAED,iBAAiB;QACf,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,iBAAiB,CAAC,EAAE,EAAE,cAAW,CAAC,CAAC;IAC1E,CAAC;IAED,gBAAgB;QACd,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,eAAe,CAAC,EAAE,EAAE,gBAAa,CAAC,CAAC;IAC1E,CAAC;IAED,kBAAkB;QAChB,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,iBAAiB,CAAC,EAAE,EAAE,gBAAa,CAAC,CAAC;IAC5E,CAAC;IAED,eAAe;QACb,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,sBAAsB,CAAC,CAAC,CAAC;IAC9D,CAAC;IAED,SAAS;QACP,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,KAAK,CAAE,CAAC;IAC7C,CAAC;IAED,aAAa;QACX,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,SAAS,CAAC,CAAC;IAChD,CAAC;IAED,sBAAsB;QACpB,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,qBAAqB,CAAC,EAAE,EAAE,eAAY,CAAC,CAAC;IAC/E,CAAC;;AAhCM,gCAAY,GAAW,6BAAM,CAAC,cAAc,CAAC,CAAC;kBADlC,mBAAmB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentWrapper, ElementWrapper } from "@cloudscape-design/test-utils-core/selectors";
|
|
2
|
-
import
|
|
2
|
+
import AnnotationWrapper from '../annotation';
|
|
3
3
|
export default class HotspotWrapper extends ComponentWrapper {
|
|
4
4
|
static rootSelector: string;
|
|
5
5
|
findTrigger(): ElementWrapper;
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
const selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
|
|
6
|
+
const annotation_1 = require("../annotation");
|
|
6
7
|
const index_1 = require("../index");
|
|
7
|
-
const index_js_1 = require("../index.js");
|
|
8
8
|
const styles_selectors_js_1 = require("../../../annotation-context/annotation/styles.selectors.js");
|
|
9
9
|
const styles_selectors_js_2 = require("../../../hotspot/styles.selectors.js");
|
|
10
10
|
class HotspotWrapper extends selectors_1.ComponentWrapper {
|
|
@@ -12,7 +12,7 @@ class HotspotWrapper extends selectors_1.ComponentWrapper {
|
|
|
12
12
|
return this.findByClassName(styles_selectors_js_1.default.hotspot);
|
|
13
13
|
}
|
|
14
14
|
findAnnotation() {
|
|
15
|
-
return (0, index_1.default)().findComponent(`.${styles_selectors_js_1.default.annotation}`,
|
|
15
|
+
return (0, index_1.default)().findComponent(`.${styles_selectors_js_1.default.annotation}`, annotation_1.default);
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
HotspotWrapper.rootSelector = styles_selectors_js_2.default.root;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/hotspot/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,oCAAqC;AACrC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/hotspot/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,8CAA8C;AAC9C,oCAAqC;AACrC,oGAA0F;AAC1F,8EAAiE;AACjE,MAAqB,cAAe,SAAQ,4BAAgB;IAE1D,WAAW;QACT,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAgB,CAAC,OAAO,CAAE,CAAC;IACzD,CAAC;IACD,cAAc;QACZ,OAAO,IAAA,eAAa,GAAE,CAAC,aAAa,CAAC,IAAI,6BAAgB,CAAC,UAAU,EAAE,EAAE,oBAAiB,CAAE,CAAC;IAC9F,CAAC;;AANM,2BAAY,GAAW,6BAAa,CAAC,IAAI,CAAC;kBAD9B,cAAc"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentWrapper } from "@cloudscape-design/test-utils-core/selectors";
|
|
2
|
-
import
|
|
2
|
+
import InputWrapper from '../input';
|
|
3
3
|
import DropdownWrapper from './dropdown.js';
|
|
4
4
|
export default class AutosuggestInputWrapper extends ComponentWrapper {
|
|
5
5
|
static rootSelector: string;
|
|
@@ -3,14 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
const selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
|
|
6
|
-
const
|
|
6
|
+
const input_1 = require("../input");
|
|
7
7
|
const dropdown_js_1 = require("./dropdown.js");
|
|
8
8
|
const styles_selectors_js_1 = require("../../../input/styles.selectors.js");
|
|
9
9
|
const styles_selectors_js_2 = require("../../../internal/components/autosuggest-input/styles.selectors.js");
|
|
10
10
|
const styles_selectors_js_3 = require("../../../internal/components/dropdown/styles.selectors.js");
|
|
11
11
|
class AutosuggestInputWrapper extends selectors_1.ComponentWrapper {
|
|
12
12
|
findInput() {
|
|
13
|
-
return this.findComponent(`.${styles_selectors_js_1.default['input-container']}`,
|
|
13
|
+
return this.findComponent(`.${styles_selectors_js_1.default['input-container']}`, input_1.default);
|
|
14
14
|
}
|
|
15
15
|
findDropdown() {
|
|
16
16
|
return this.findComponent(`.${styles_selectors_js_3.default.root}`, dropdown_js_1.default);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autosuggest-input.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/internal/autosuggest-input.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgF;AAChF,
|
|
1
|
+
{"version":3,"file":"autosuggest-input.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/internal/autosuggest-input.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgF;AAChF,oCAAoC;AACpC,+CAA4C;AAC5C,4EAA6D;AAC7D,4GAAwF;AACxF,mGAAuF;AACvF,MAAqB,uBAAwB,SAAQ,4BAAgB;IAEnE,SAAS;QACP,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAW,CAAC,iBAAiB,CAAC,EAAE,EAAE,eAAY,CAAE,CAAC;IACjF,CAAC;IACD,YAAY;QACV,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAc,CAAC,IAAI,EAAE,EAAE,qBAAe,CAAE,CAAC;IACzE,CAAC;;AANM,oCAAY,GAAG,6BAAM,CAAC,IAAI,CAAC;kBADf,uBAAuB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentWrapper, ElementWrapper } from "@cloudscape-design/test-utils-core/selectors";
|
|
2
|
-
import
|
|
2
|
+
import ButtonWrapper from '../button';
|
|
3
3
|
export default class PopoverWrapper extends ComponentWrapper {
|
|
4
4
|
static rootSelector: string;
|
|
5
5
|
findTrigger(): ElementWrapper;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
const selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
|
|
6
|
+
const button_1 = require("../button");
|
|
6
7
|
const index_js_1 = require("../index.js");
|
|
7
8
|
const styles_selectors_js_1 = require("../../../popover/styles.selectors.js");
|
|
8
9
|
class PopoverWrapper extends selectors_1.ComponentWrapper {
|
|
@@ -41,9 +42,9 @@ class PopoverWrapper extends selectors_1.ComponentWrapper {
|
|
|
41
42
|
renderWithPortal: false
|
|
42
43
|
}) {
|
|
43
44
|
if (options.renderWithPortal) {
|
|
44
|
-
return (0, index_js_1.default)().findComponent(`.${styles_selectors_js_1.default['dismiss-control']}`,
|
|
45
|
+
return (0, index_js_1.default)().findComponent(`.${styles_selectors_js_1.default['dismiss-control']}`, button_1.default);
|
|
45
46
|
}
|
|
46
|
-
return this.findComponent(`.${styles_selectors_js_1.default['dismiss-control']}`,
|
|
47
|
+
return this.findComponent(`.${styles_selectors_js_1.default['dismiss-control']}`, button_1.default);
|
|
47
48
|
}
|
|
48
49
|
}
|
|
49
50
|
PopoverWrapper.rootSelector = styles_selectors_js_1.default.root;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/popover/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/popover/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,sCAAsC;AACtC,0CAAwC;AACxC,8EAA0D;AAC1D,MAAqB,cAAe,SAAQ,4BAAgB;IAE1D,WAAW;QACT,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,OAAO,CAAE,CAAC;IAC/C,CAAC;IAED;;;OAGG;IACH,UAAU,CAAC,OAAO,GAAG;QACnB,gBAAgB,EAAE,KAAK;KACxB;QACC,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;YAC7B,OAAO,IAAA,kBAAa,GAAE,CAAC,eAAe,CAAC,6BAAM,CAAC,MAAM,CAAC,CAAC;QACxD,CAAC;QACD,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,MAAM,CAAC,CAAC;IAC7C,CAAC;IAED;;;OAGG;IACH,WAAW,CAAC,OAAO,GAAG;QACpB,gBAAgB,EAAE,KAAK;KACxB;QACC,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;YAC7B,OAAO,IAAA,kBAAa,GAAE,CAAC,eAAe,CAAC,6BAAM,CAAC,OAAO,CAAC,CAAC;QACzD,CAAC;QACD,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;IAED;;;OAGG;IACH,iBAAiB,CAAC,OAAO,GAAG;QAC1B,gBAAgB,EAAE,KAAK;KACxB;QACC,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;YAC7B,OAAO,IAAA,kBAAa,GAAE,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,iBAAiB,CAAC,EAAE,EAAE,gBAAa,CAAC,CAAC;QACvF,CAAC;QACD,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,iBAAiB,CAAC,EAAE,EAAE,gBAAa,CAAC,CAAC;IAC5E,CAAC;;AA1CM,2BAAY,GAAW,6BAAM,CAAC,IAAI,CAAC;kBADvB,cAAc"}
|
|
@@ -9,7 +9,7 @@ export default class ProgressBarWrapper extends ComponentWrapper {
|
|
|
9
9
|
*
|
|
10
10
|
* @param status
|
|
11
11
|
*
|
|
12
|
-
* [optional] Status of the result text. It can be
|
|
12
|
+
* [optional] Status of the result text. It can be either "error" or "success".
|
|
13
13
|
* If not specified, the method returns the result text that is currently displayed, independently of the result status.
|
|
14
14
|
*/
|
|
15
15
|
findResultText(status?: string): ElementWrapper;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
const selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
|
|
6
|
+
const button_1 = require("../button");
|
|
6
7
|
const styles_selectors_js_1 = require("../../../progress-bar/styles.selectors.js");
|
|
7
8
|
class ProgressBarWrapper extends selectors_1.ComponentWrapper {
|
|
8
9
|
findPercentageText() {
|
|
@@ -10,14 +11,14 @@ class ProgressBarWrapper extends selectors_1.ComponentWrapper {
|
|
|
10
11
|
}
|
|
11
12
|
findResultButton() {
|
|
12
13
|
var _a;
|
|
13
|
-
return ((_a = this.findByClassName(styles_selectors_js_1.default['result-button'])) === null || _a === void 0 ? void 0 : _a.
|
|
14
|
+
return ((_a = this.findByClassName(styles_selectors_js_1.default['result-button'])) === null || _a === void 0 ? void 0 : _a.findComponent(`.${button_1.default.rootSelector}`, button_1.default)) || null;
|
|
14
15
|
}
|
|
15
16
|
/**
|
|
16
17
|
* Returns the result text.
|
|
17
18
|
*
|
|
18
19
|
* @param status
|
|
19
20
|
*
|
|
20
|
-
* [optional] Status of the result text. It can be
|
|
21
|
+
* [optional] Status of the result text. It can be either "error" or "success".
|
|
21
22
|
* If not specified, the method returns the result text that is currently displayed, independently of the result status.
|
|
22
23
|
*/
|
|
23
24
|
findResultText(status) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/progress-bar/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/progress-bar/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,sCAAsC;AACtC,mFAA+D;AAC/D,MAAqB,kBAAmB,SAAQ,4BAAgB;IAE9D,kBAAkB;QAChB,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,UAAU,CAAC,CAAC;IACjD,CAAC;IACD,gBAAgB;;QACd,OAAO,CAAA,MAAA,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,eAAe,CAAC,CAAC,0CAAE,aAAa,CAAC,IAAI,gBAAa,CAAC,YAAY,EAAE,EAAE,gBAAa,CAAC,KAAI,IAAI,CAAC;IAC/H,CAAC;IAED;;;;;;;OAOG;IACH,cAAc,CAAC,MAAe;QAC5B,MAAM,eAAe,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,6BAAM,CAAC,oBAAoB,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;QAClF,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,eAAe,IAAI,6BAAM,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;IAClE,CAAC;IACD,kBAAkB;QAChB,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC;IACzD,CAAC;;AAtBM,+BAAY,GAAG,6BAAM,CAAC,IAAI,CAAC;kBADf,kBAAkB"}
|