UNPKG

intentful

Version:

Create Custom Skills with less headache

35 lines (34 loc) 1.39 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.APLScrollView = void 0; const helpers_1 = require("../../interfaces/helpers"); const component_1 = require("../component"); class APLScrollView extends component_1.APLComponent { constructor(props) { super('ScrollView', props); } componentSpecificModel() { return { onScroll: this.props.onScroll, onFocus: this.props.onFocus, onBlur: this.props.onBlur, handleKeyDown: this.props.handleKeyDown, handleKeyUp: this.props.handleKeyUp, nextFocusDown: this.props.nextFocusDown, nextFocusForward: this.props.nextFocusForward, nextFocusLeft: this.props.nextFocusLeft, nextFocusRight: this.props.nextFocusRight, nextFocusUp: this.props.nextFocusUp, items: this.props.items }; } componentSpecificRequestHandlers() { return [ ...(0, helpers_1.convertCommandListToRequestHandlers)(this.props.onScroll), ...(0, helpers_1.convertCommandListToRequestHandlers)(this.props.onFocus), ...(0, helpers_1.convertCommandListToRequestHandlers)(this.props.onBlur), ...(0, helpers_1.convertComponentListToRequestHandlers)(this.props.items) ]; } } exports.APLScrollView = APLScrollView;