intentful
Version:
Create Custom Skills with less headache
33 lines (32 loc) • 1.22 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.APLGridSequence = void 0;
const helpers_1 = require("../../interfaces/helpers");
const component_1 = require("../component");
class APLGridSequence extends component_1.APLComponent {
constructor(props) {
super('GridSequence', props);
}
addItems(...items) {
this.props.items.push(...items);
return this;
}
componentSpecificModel() {
return {
...this.convertActionableComponentPropsToModel(this.props),
...this.convertMultiChildComponentPropsToModel(this.props),
childHeights: this.props.childHeights,
childWidths: this.props.childWidths,
numbered: this.props.numbered,
onScroll: this.props.onScroll
};
}
componentSpecificRequestHandlers() {
return [
...(0, helpers_1.convertActionableComponentPropsToRequestHandlers)(this.props),
...(0, helpers_1.convertMultiChildComponentPropsToRequestHandlers)(this.props),
...(0, helpers_1.convertCommandListToRequestHandlers)(this.props.onScroll)
];
}
}
exports.APLGridSequence = APLGridSequence;