Repository URL to install this package:
|
Version:
2.8.0-studio-release ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
const forms_1 = require("../../../../../forms");
const words_1 = require("../../../../../words");
class FormStateCard extends forms_1.FormState {
constructor() {
super(...arguments);
this.inputsList = [{
identity: 'old-password',
type: 'password',
value: '',
className: 'old-password',
name: 'oldPassword',
labelText: `${words_1.wording.oldPassword}*`,
maxLength: 90,
wrapperClassName: 'old-password-wrapper',
validationType: 'password',
errorMessageFor: 'password',
dataQa: 'qa-old-password-text',
autocomplete: '',
ariaLabel: 'password',
animatePlaceholder: false
}, {
identity: 'new-password',
type: 'password',
value: '',
className: 'new-password',
name: 'password',
labelText: `${words_1.wording.newPassword}*`,
maxLength: 90,
wrapperClassName: 'new-password-wrapper',
validationType: 'newPassword',
errorMessageFor: 'newPassword',
dataQa: 'qa-new-password-text',
autocomplete: '',
ariaLabel: 'password',
animatePlaceholder: false,
onFormValidation: this.validateNewPassword,
placeholderText: 'Must be at least 8 characters'
}, {
identity: 'confirm-password',
type: 'password',
value: '',
className: 'confirm-password',
name: 'confirmPassword',
labelText: `${words_1.wording.confirmNewPassword}*`,
maxLength: 90,
wrapperClassName: 'confirm-password-wrapper',
validationType: 'confirmPassword',
errorMessageFor: 'confirmPassword',
dataQa: 'qa-confirm-password-text',
autocomplete: '',
ariaLabel: 'password',
animatePlaceholder: false,
onFormValidation: this.validateConfirmPassword,
placeholderText: 'Must be at least 8 characters'
}];
}
}
const formStateCard = new FormStateCard();
exports.formStateCard = formStateCard;
exports.default = formStateCard; //# sourceMappingURL=FormState.js.map