@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
43 lines (42 loc) • 2.18 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 });
var dom_1 = require("@awsui/test-utils-core/dom");
var chart_legend_1 = require("./chart-legend");
var chart_filter_1 = require("./chart-filter");
var styles_selectors_js_1 = require("../../../internal/components/chart-legend/styles.selectors.js");
var styles_selectors_js_2 = require("../../../internal/components/chart-filter/styles.selectors.js");
var styles_selectors_js_3 = require("../../../internal/components/chart-status-container/styles.selectors.js");
var styles_selectors_js_4 = require("../../../internal/components/chart-popover/styles.selectors.js");
var CommonChartWrapper = (function (_super) {
__extends(CommonChartWrapper, _super);
function CommonChartWrapper() {
return _super !== null && _super.apply(this, arguments) || this;
}
CommonChartWrapper.prototype.findDefaultFilter = function () {
return this.findComponent("." + styles_selectors_js_2.default['chart-filter'], chart_filter_1.default);
};
CommonChartWrapper.prototype.findStatusContainer = function () {
return this.findByClassName(styles_selectors_js_3.default.root);
};
CommonChartWrapper.prototype.findLegend = function () {
return this.findComponent("." + styles_selectors_js_1.default.root, chart_legend_1.default);
};
CommonChartWrapper.prototype.findDetailPopover = function () {
return this.findByClassName(styles_selectors_js_4.default.root);
};
return CommonChartWrapper;
}(dom_1.ComponentWrapper));
exports.default = CommonChartWrapper;