intentful
Version:
Create Custom Skills with less headache
52 lines (51 loc) • 2.64 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AlexaGridList = void 0;
const helpers_1 = require("../../../interfaces/helpers");
const component_1 = require("../../component");
class AlexaGridList extends component_1.APLComponent {
constructor(props) {
super('AlexaGridList', props);
}
componentSpecificModel() {
return {
backgroundAlign: this.props.backgroundAlign,
backgroundBlur: this.props.backgroundBlur,
backgroundColor: this.props.backgroundColor,
backgroundColorOverlay: this.props.backgroundColorOverlay,
backgroundImageSource: this.props.backgroundImageSource,
backgroundOverlayGradient: this.props.backgroundOverlayGradient,
backgroundScale: this.props.backgroundScale,
backgroundVideoSource: this.props.backgroundVideoSource,
headerAttributionImage: this.props.headerAttributionImage,
headerAttributionPrimacy: this.props.headerAttributionPrimacy,
headerAttributionText: this.props.headerAttributionText,
headerBackButton: this.props.headerBackButton,
headerBackButtonAccessibilityLabel: this.props.headerBackButtonAccessibilityLabel,
headerBackButtonCommand: this.props.headerBackButtonCommand,
headerBackgroundColor: this.props.headerBackgroundColor,
headerDivider: this.props.headerDivider,
headerSubtitle: this.props.headerSubtitle,
headerTitle: this.props.headerTitle,
imageAlignment: this.props.imageAlignment,
imageAspectRatio: this.props.imageAspectRatio,
imageBlurredBackground: this.props.imageBlurredBackground,
imageCaption: this.props.imageCaption,
imageRoundedCorner: this.props.imageRoundedCorner,
imageScale: this.props.imageScale,
imageShowProgressBar: this.props.imageShowProgressBar,
listItemHeight: this.props.listItemHeight,
listId: this.props.listId,
listItemHorizontalCount: this.props.listItemHorizontalCount,
listItems: this.props.listItems,
primaryAction: this.props.primaryAction,
speechItems: this.props.speechItems,
videoAudioTrack: this.props.videoAudioTrack,
videoAutoPlay: this.props.videoAutoPlay
};
}
componentSpecificRequestHandlers() {
return (0, helpers_1.convertCommandListToRequestHandlers)([this.props.headerBackButtonCommand, this.props.primaryAction]);
}
}
exports.AlexaGridList = AlexaGridList;