@awsui/components-react
Version:
On July 19th, 2022, we launched [Cloudscape Design System](https://cloudscape.design). Cloudscape is an evolution of AWS-UI. It consists of user interface guidelines, front-end components, design resources, and development tools for building intuitive, en
36 lines • 1.44 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const attribute_editor_1 = require("../attribute-editor");
const link_1 = require("../link");
const styles_selectors_js_1 = require("../../../attribute-editor/styles.selectors.js");
const styles_selectors_js_2 = require("../../../tag-editor/styles.selectors.js");
class TagEditorRowWrapper extends attribute_editor_1.AttributeEditorRowWrapper {
findUndoButton() {
return this.findComponent(`.${styles_selectors_js_2.default['undo-button']}`, link_1.default);
}
}
class TagEditorWrapper extends attribute_editor_1.default {
/**
* Returns a row for a given index.
*
* @param row 1-based row index
*/
findRow(row) {
return this.findComponent(`.${styles_selectors_js_1.default.row}:nth-child(${row})`, TagEditorRowWrapper);
}
/**
* Returns all rows.
*
* To find a specific row use the `findRow(n)` function as chaining `findRows().get(n)` can return unexpected results.
* @see findRow
*/
findRows() {
return this.findAllByClassName(styles_selectors_js_1.default.row).map(i => new TagEditorRowWrapper(i.getElement()));
}
findLoadingText() {
return this.findByClassName(styles_selectors_js_2.default.loading);
}
}
TagEditorWrapper.rootSelector = styles_selectors_js_2.default.root;
exports.default = TagEditorWrapper;
//# sourceMappingURL=index.js.map