@awsui/components-react
Version:
AWS UI is a collection of [React](https://reactjs.org/) components that help create intuitive, responsive, and accessible user experiences for web applications. It is developed by Amazon Web Services (AWS). This work is available under the terms of the [A
50 lines (49 loc) • 2.37 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.TagEditorRowWrapper = void 0;
var styles_selectors_js_1 = require("../../../tag-editor/styles.selectors.js");
var styles_selectors_js_2 = require("../../../attribute-editor/styles.selectors.js");
var __1 = require("..");
var index_js_1 = require("../attribute-editor/index.js");
var TagEditorRowWrapper = (function (_super) {
__extends(TagEditorRowWrapper, _super);
function TagEditorRowWrapper() {
return _super !== null && _super.apply(this, arguments) || this;
}
TagEditorRowWrapper.prototype.findUndoButton = function () {
return this.findComponent("." + styles_selectors_js_1.default['undo-button'], __1.LinkWrapper);
};
return TagEditorRowWrapper;
}(index_js_1.AttributeEditorRowWrapper));
exports.TagEditorRowWrapper = TagEditorRowWrapper;
var TagEditorWrapper = (function (_super) {
__extends(TagEditorWrapper, _super);
function TagEditorWrapper() {
return _super !== null && _super.apply(this, arguments) || this;
}
TagEditorWrapper.prototype.findRow = function (row) {
return this.findComponent("." + styles_selectors_js_2.default.row + ":nth-child(" + row + ")", TagEditorRowWrapper);
};
TagEditorWrapper.prototype.findRows = function () {
return this.findAllByClassName(styles_selectors_js_2.default.row).map(function (i) { return new TagEditorRowWrapper(i.getElement()); });
};
TagEditorWrapper.prototype.findLoadingText = function () {
return this.findByClassName(styles_selectors_js_1.default.loading);
};
TagEditorWrapper.rootSelector = styles_selectors_js_1.default.root;
return TagEditorWrapper;
}(__1.AttributeEditorWrapper));
exports.default = TagEditorWrapper;