intentful
Version:
Create Custom Skills with less headache
58 lines (57 loc) • 2.93 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AlexaImageList = void 0;
const helpers_1 = require("../../../interfaces/helpers");
const component_1 = require("../../component");
class AlexaImageList extends component_1.APLComponent {
constructor(props) {
super('AlexaImageList', 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,
defaultImageSource: this.props.defaultImageSource,
headerAttributionImage: this.props.headerAttributionImage,
headerAttributionOpacity: this.props.headerAttributionOpacity,
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,
headerTitle: this.props.headerTitle,
hideDivider: this.props.hideDivider,
hintText: this.props.hintText,
imageAlignment: this.props.imageAlignment,
imageAspectRatio: this.props.imageAspectRatio,
imageBlurredBackground: this.props.imageBlurredBackground,
imageHeight: this.props.imageHeight,
imageHideScrim: this.props.imageHideScrim,
imageMetadataPrimacy: this.props.imageMetadataPrimacy,
imageRoundedCorner: this.props.imageRoundedCorner,
imageScale: this.props.imageScale,
imageShadow: this.props.imageShadow,
listId: this.props.listId,
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.convertVideoSourcePropsToRequestHandlers)(this.props.backgroundVideoSource),
...(0, helpers_1.convertCommandListToRequestHandlers)([this.props.headerBackButtonCommand, this.props.primaryAction])
];
}
}
exports.AlexaImageList = AlexaImageList;