UNPKG

intentful

Version:

Create Custom Skills with less headache

44 lines (43 loc) 2.08 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AlexaTextListItem = void 0; const helpers_1 = require("../../../interfaces/helpers"); const component_1 = require("../../component"); class AlexaTextListItem extends component_1.APLComponent { constructor(props) { super('AlexaTextListItem', props); } componentSpecificModel() { return { 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, primaryAction: this.props.primaryAction, primaryText: this.props.primaryText, ratingGraphicType: this.props.ratingGraphicType, ratingNumber: this.props.ratingNumber, 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, textAlignmentCenter: this.props.textAlignmentCenter, touchForward: this.props.touchForward }; } componentSpecificRequestHandlers() { return [...(0, helpers_1.convertCommandListToRequestHandlers)([this.props.primaryAction])]; } } exports.AlexaTextListItem = AlexaTextListItem;