intentful
Version:
Create Custom Skills with less headache
47 lines (46 loc) • 2.21 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AlexaSlider = void 0;
const helpers_1 = require("../../../interfaces/helpers");
const component_1 = require("../../component");
class AlexaSlider extends component_1.APLComponent {
constructor(props) {
super('AlexaSlider', props);
}
componentSpecificModel() {
return {
bufferValue: this.props.bufferValue,
handleKeyDownCommand: this.props.handleKeyDownCommand,
iconLeftGraphicSource: this.props.iconLeftGraphicSource,
iconRightGraphicSource: this.props.iconRightGraphicSource,
isLoading: this.props.isLoading,
metadataDisplayed: this.props.metadataDisplayed,
metadataPosition: this.props.metadataPosition,
onBlurCommand: this.props.onBlurCommand,
onDownCommand: this.props.onDownCommand,
onFocusCommand: this.props.onFocusCommand,
onMoveCommand: this.props.onMoveCommand,
onUpCommand: this.props.onUpCommand,
positionPropertyName: this.props.positionPropertyName,
progressFillColor: this.props.progressFillColor,
progressValue: this.props.progressValue,
sliderId: this.props.sliderId,
sliderMoveMillisecond: this.props.sliderMoveMillisecond,
sliderSize: this.props.sliderSize,
sliderType: this.props.sliderType,
thumbColor: this.props.thumbColor,
thumbDisplayedAllStates: this.props.thumbDisplayedAllStates,
totalValue: this.props.totalValue
};
}
componentSpecificRequestHandlers() {
return [
...(0, helpers_1.convertCommandListToRequestHandlers)(this.props.onBlurCommand),
...(0, helpers_1.convertCommandListToRequestHandlers)(this.props.onDownCommand),
...(0, helpers_1.convertCommandListToRequestHandlers)(this.props.onFocusCommand),
...(0, helpers_1.convertCommandListToRequestHandlers)(this.props.onMoveCommand),
...(0, helpers_1.convertCommandListToRequestHandlers)(this.props.onUpCommand)
];
}
}
exports.AlexaSlider = AlexaSlider;