intentful
Version:
Create Custom Skills with less headache
68 lines (67 loc) • 3.16 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AlexaSwipeToAction = void 0;
const helpers_1 = require("../../../interfaces/helpers");
const component_1 = require("../../component");
class AlexaSwipeToAction extends component_1.APLComponent {
constructor(props) {
super('AlexaSwipeToAction', props);
}
componentSpecificModel() {
return {
actionIcon: this.props.actionIcon,
actionIconBackground: this.props.actionIconBackground,
actionIconForeground: this.props.actionIconForeground,
actionIconType: this.props.actionIconType,
button1Command: this.props.button1Command,
button1Text: this.props.button1Text,
button2Command: this.props.button2Command,
button2Text: this.props.button2Text,
buttonsSpacingRight: this.props.buttonsSpacingRight,
buttonsSpacingTop: this.props.buttonsSpacingTop,
customLayoutName: this.props.customLayoutName,
direction: this.props.direction,
emptyRatingGraphic: this.props.emptyRatingGraphic,
fullRatingGraphic: this.props.fullRatingGraphic,
halfRatingGraphic: this.props.halfRatingGraphic,
hideDivider: this.props.hideDivider,
hideHorizontalMargin: this.props.hideHorizontalMargin,
hideOrdinal: this.props.hideOrdinal,
imageAlignment: this.props.imageAlignment,
imageBlurredBackground: this.props.imageBlurredBackground,
imageScale: this.props.imageScale,
imageThumbnailShadow: this.props.imageThumbnailShadow,
imageThumbnailSource: this.props.imageThumbnailSource,
onButtonsHidden: this.props.onButtonsHidden,
onButtonsShown: this.props.onButtonsShown,
onSwipeDone: this.props.onSwipeDone,
onSwipeMove: this.props.onSwipeMove,
primaryAction: this.props.primaryAction,
primaryText: this.props.primaryText,
ratingGraphicType: this.props.ratingGraphicType,
ratingSlotMode: this.props.ratingSlotMode,
ratingText: this.props.ratingText,
secondaryText: this.props.secondaryText,
secondaryTextPosition: this.props.secondaryTextPosition,
singleRatingGraphic: this.props.singleRatingGraphic,
singleRatingGraphicWidth: this.props.singleRatingGraphicWidth,
tertiaryText: this.props.tertiaryText,
tertiaryTextPosition: this.props.tertiaryTextPosition,
touchForward: this.props.touchForward
};
}
componentSpecificRequestHandlers() {
return [
...(0, helpers_1.convertCommandListToRequestHandlers)([
this.props.onButtonsHidden,
this.props.onButtonsShown,
this.props.onSwipeDone,
this.props.onSwipeMove,
this.props.primaryAction,
this.props.button1Command,
this.props.button2Command
])
];
}
}
exports.AlexaSwipeToAction = AlexaSwipeToAction;