UNPKG

intentful

Version:

Create Custom Skills with less headache

29 lines (28 loc) 1.09 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.APLSequence = void 0; const helpers_1 = require("../../interfaces/helpers"); const component_1 = require("../component"); class APLSequence extends component_1.APLComponent { constructor(props) { super('Sequence', props); } componentSpecificModel() { return { ...this.convertActionableComponentPropsToModel(this.props), ...this.convertMultiChildComponentPropsToModel(this.props), onScroll: this.props.onScroll, scrollDirection: this.props.scrollDirection, numbered: this.props.numbered, snap: this.props.snap }; } componentSpecificRequestHandlers() { return [ ...(0, helpers_1.convertCommandListToRequestHandlers)(this.props.onScroll), ...(0, helpers_1.convertMultiChildComponentPropsToRequestHandlers)(this.props), ...(0, helpers_1.convertActionableComponentPropsToRequestHandlers)(this.props) ]; } } exports.APLSequence = APLSequence;