UNPKG

intentful

Version:

Create Custom Skills with less headache

34 lines (33 loc) 1.26 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.APLPager = void 0; const helpers_1 = require("../../interfaces/helpers"); const component_1 = require("../component"); class APLPager extends component_1.APLComponent { constructor(props) { super('Pager', props); } addItems(...items) { this.props.items.push(...items); return this; } componentSpecificModel() { return { ...this.convertActionableComponentPropsToModel(this.props), ...this.convertMultiChildComponentPropsToModel(this.props), handlePageMove: this.props.handlePageMove, initialPage: this.props.initialPage, navigation: this.props.navigation, onPageChanged: this.props.onPageChanged, pageDirection: this.props.pageDirection }; } componentSpecificRequestHandlers() { return [ ...(0, helpers_1.convertActionableComponentPropsToRequestHandlers)(this.props), ...(0, helpers_1.convertMultiChildComponentPropsToRequestHandlers)(this.props), ...(0, helpers_1.convertCommandListToRequestHandlers)(this.props.onPageChanged) ]; } } exports.APLPager = APLPager;