UNPKG

intentful

Version:

Create Custom Skills with less headache

48 lines (47 loc) 1.96 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.APLEditText = void 0; const helpers_1 = require("../../interfaces/helpers"); const component_1 = require("../component"); class APLEditText extends component_1.APLComponent { constructor(props) { super('EditText', props); } componentSpecificModel() { return { ...this.convertActionableComponentPropsToModel(this.props), borderColor: this.props.borderColor, borderStrokeWidth: this.props.borderStrokeWidth, borderWidth: this.props.borderWidth, color: this.props.color, fontFamily: this.props.fontFamily, fontSize: this.props.fontSize, fontStyle: this.props.fontStyle, fontWeight: this.props.fontWeight, highlightColor: this.props.highlightColor, hint: this.props.hint, hintColor: this.props.hintColor, hintStyle: this.props.hintStyle, hintWeight: this.props.hintWeight, keyboardType: this.props.keyboardType, lang: this.props.lang, maxLength: this.props.maxLength, onTextChange: this.props.onTextChange, onSubmit: this.props.onSubmit, secureInput: this.props.secureInput, selectOnFocus: this.props.selectOnFocus, size: this.props.size, submitKeyType: this.props.submitKeyType, text: this.props.text, validCharacters: this.props.validCharacters }; } componentSpecificRequestHandlers() { return [ ...(0, helpers_1.convertActionableComponentPropsToRequestHandlers)(this.props), ...(0, helpers_1.convertCommandListToRequestHandlers)(this.props.onTextChange), ...(0, helpers_1.convertCommandListToRequestHandlers)(this.props.onSubmit) ]; } } exports.APLEditText = APLEditText;