UNPKG

intentful

Version:

Create Custom Skills with less headache

24 lines (23 loc) 871 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SwipeAwayGesture = void 0; const gesture_1 = require("./gesture"); const helpers_1 = require("../interfaces/helpers"); class SwipeAwayGesture extends gesture_1.Gesture { constructor(props) { super('SwipeAway', props); } componentSpecificModel() { return { direction: this.props.direction, action: this.props.action, item: this.props.item, onSwipeDone: this.props.onSwipeDone, onSwipeMove: this.props.onSwipeMove }; } componentSpecificRequestHandlers() { return [...(0, helpers_1.convertCommandListToRequestHandlers)(this.props.onSwipeDone), ...(0, helpers_1.convertCommandListToRequestHandlers)(this.props.onSwipeMove)]; } } exports.SwipeAwayGesture = SwipeAwayGesture;