awv3
Version:
⚡ AWV3 embedded CAD
47 lines (41 loc) • 1.1 kB
JavaScript
import _extends from "@babel/runtime/helpers/extends";
import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
var _class, _temp;
import Element from '../element';
var Group = (_temp = _class =
/*#__PURE__*/
function (_Element) {
_inheritsLoose(Group, _Element);
function Group(plugin, options) {
if (options === void 0) {
options = {};
}
if (options.children) {
options.children = options.children.filter(function (item) {
return item;
}).map(function (item) {
return item instanceof Element ? item.id : item;
});
}
return _Element.call(this, plugin, _extends({
type: Element.Type.Group,
format: Group.Format.Default,
limit: undefined
}, options)) || this;
}
return Group;
}(Element), Object.defineProperty(_class, "Format", {
configurable: true,
enumerable: true,
writable: true,
value: {
Default: 'Default',
Buttons: 'Buttons',
Inputs: 'Inputs',
Rows: 'Rows',
Table: 'Table',
Collapse: 'Collapse',
Tabs: 'Tabs'
}
}), _temp);
export { Group as default };