armstrong-react
Advanced tools
Comparing version 3.0.13 to 3.0.14
@@ -29,2 +29,4 @@ import * as React from "react"; | ||
datePartOrder?: DateParts[]; | ||
/** Autofocuses first input */ | ||
autoFocus?: boolean; | ||
} | ||
@@ -31,0 +33,0 @@ export interface IDateInputState { |
@@ -61,2 +61,3 @@ "use strict"; | ||
DateInput.prototype.render = function () { | ||
var _this = this; | ||
var validationMessage = formCore_1.DataValidationMessage.get(this.props); | ||
@@ -77,3 +78,3 @@ var _a = this.props, dayLabel = _a.dayLabel, monthLabel = _a.monthLabel, yearLabel = _a.yearLabel, futureDates = _a.futureDates, yearsFromNow = _a.yearsFromNow, startYearCap = _a.startYearCap, className = _a.className, validationMode = _a.validationMode, disabled = _a.disabled, datePartOrder = _a.datePartOrder, tabIndex = _a.tabIndex; | ||
return (React.createElement(grid_1.Col, { key: idx }, | ||
React.createElement("select", tslib_1.__assign({ tabIndex: tabIndex }, form_1.Form.Bind.selectNumeric(key), { disabled: disabled }), options[key]))); | ||
React.createElement("select", tslib_1.__assign({ tabIndex: tabIndex }, form_1.Form.Bind.selectNumeric(key), { disabled: disabled, autoFocus: _this.props.autoFocus && idx === 0 }), options[key]))); | ||
})), | ||
@@ -80,0 +81,0 @@ React.createElement(validationWrapper_1.ValidationLabel, { message: validationMessage, mode: validationMode, wrapper: function (p) { return React.createElement(grid_1.Row, { height: "auto" }, |
{ | ||
"name": "armstrong-react", | ||
"version": "3.0.13", | ||
"version": "3.0.14", | ||
"description": "Rocketmakers Armstrong library of React components", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
745104
15074