intentful
Version:
Create Custom Skills with less headache
51 lines (50 loc) • 2.42 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AlexaImageListItem = void 0;
const component_1 = require("../../component");
class AlexaImageListItem extends component_1.APLComponent {
constructor(props) {
super('AlexaImageListItem', props);
}
componentSpecificModel() {
return {
contentDirection: this.props.contentDirection,
defaultImageSource: this.props.defaultImageSource,
emptyRatingGraphic: this.props.emptyRatingGraphic,
fullRatingGraphic: this.props.fullRatingGraphic,
halfRatingGraphic: this.props.halfRatingGraphic,
hasPlayIcon: this.props.hasPlayIcon,
hideDivider: this.props.hideDivider,
hideOrdinal: this.props.hideOrdinal,
imageAlignment: this.props.imageAlignment,
imageAltText: this.props.imageAltText,
imageAspectRatio: this.props.imageAspectRatio,
imageBlurredBackground: this.props.imageBlurredBackground,
imageHeight: this.props.imageHeight,
imageHideScrim: this.props.imageHideScrim,
imageMetadataPrimacy: this.props.imageMetadataPrimacy,
imageProgressBarPercentage: this.props.imageProgressBarPercentage,
imageRoundedCorner: this.props.imageRoundedCorner,
imageScale: this.props.imageScale,
imageShadow: this.props.imageShadow,
imageShowProgressBar: this.props.imageShowProgressBar,
imageSource: this.props.imageSource,
primaryAction: this.props.primaryAction,
primaryText: this.props.primaryText,
providerText: this.props.providerText,
ratingGraphicType: this.props.ratingGraphicType,
ratingNumber: this.props.ratingNumber,
ratingSlotMode: this.props.ratingSlotMode,
ratingText: this.props.ratingText,
secondaryText: this.props.secondaryText,
singleRatingGraphic: this.props.singleRatingGraphic,
singleRatingGraphicWidth: this.props.singleRatingGraphicWidth,
speech: this.props.speech,
tertiaryText: this.props.tertiaryText
};
}
componentSpecificRequestHandlers() {
return this.props.primaryAction ? this.props.primaryAction.getRequestHandlers() : [];
}
}
exports.AlexaImageListItem = AlexaImageListItem;