Repository URL to install this package:
|
Version:
2.1.14 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.wording = {
search: 'search',
team: 'team',
role: 'role',
name: 'Name',
id: 'ID',
email: 'Email',
status: 'Status'
};
exports.searchTeamData = {
defaultValue: 'Search Teams',
options: [{
label: 'Team A',
value: 'teamA',
isDisabled: false,
isSelected: false
}, {
label: 'Team B',
value: 'teamB',
isDisabled: false,
isSelected: false
}, {
label: 'Team C',
value: 'teamC',
isDisabled: false,
isSelected: false
}]
};
exports.searchRoleData = {
defaultValue: 'Search Roles',
options: [{
label: 'User',
value: 'user',
isDisabled: false,
isSelected: false
}, {
label: 'Lead',
value: 'lead',
isDisabled: false,
isSelected: false
}]
};
exports.EditFormTeam = {
defaultValue: 'Team A',
options: [{
label: 'Team A',
value: 'teamA',
isDisabled: false,
isSelected: false
}, {
label: 'Team B',
value: 'teamB',
isDisabled: false,
isSelected: true
}, {
label: 'Team C',
value: 'teamC',
isDisabled: false,
isSelected: false
}]
};
exports.EditFormRole = {
defaultValue: 'Manager',
options: [{
label: 'Manager',
value: 'manager',
isDisabled: false,
isSelected: false
}, {
label: 'User',
value: 'user',
isDisabled: false,
isSelected: false
}, {
label: 'Lead',
value: 'lead',
isDisabled: false,
isSelected: false
}]
};
exports.EditFormStatus = {
defaultValue: 'Active',
options: [{
label: 'Active',
value: 'active',
isDisabled: false,
isSelected: false
}, {
label: 'Inactive',
value: 'inactive',
isDisabled: false,
isSelected: false
}, {
label: 'Invited',
value: 'invited',
isDisabled: false,
isSelected: false
}]
};
exports.searchInputList = [{
identity: 'search',
type: 'text',
value: '',
className: 'form-inputs',
name: 'search',
labelText: '',
wrapperClassName: 'form-item-wrapper search-box',
validationType: 'none',
errorMessageFor: 'search',
autocomplete: 'given-name',
ariaLabel: exports.wording.search,
animatePlaceholder: false,
placeholder: 'Search ID, Name or Email',
dataQa: 'qa-enter-user-name',
icon: {
breedType: 'search',
fill: '#5F6C88',
stroke: 'none',
width: '18px',
height: '18px',
className: 'search-icon'
}
}, {
type: 'select',
value: exports.searchTeamData.defaultValue,
className: 'search-teams',
wrapperClassName: 'form-item-wrapper select-box',
name: 'searchTeam',
isFormView: true,
labelText: exports.wording.team,
title: exports.wording.team,
options: exports.searchTeamData.options,
shouldBeAbsolute: true,
dropDownAlignmentType: 'bottom',
dataQa: 'qa-team-container'
}, {
type: 'select',
value: exports.searchRoleData.defaultValue,
className: 'search-roles',
wrapperClassName: 'form-item-wrapper select-box',
name: 'searchRoles',
isFormView: true,
labelText: exports.wording.role,
title: exports.wording.role,
options: exports.searchRoleData.options,
shouldBeAbsolute: true,
dropDownAlignmentType: 'bottom',
dataQa: 'qa-role-container'
}]; // Edit user Fields
exports.EditUserInput = [{
type: 'groupElements',
validationType: 'groupElements',
className: 'input-group-wrapper disableClass full-name-container',
name: 'fullNameContainer',
elementList: [{
identity: 'userName',
type: 'text',
value: 'Clavin Owen',
className: 'form-inputs',
name: 'UserName',
labelText: exports.wording.name,
maxLength: '50',
wrapperClassName: 'form-item-wrapper name-wrapper',
validationType: 'name',
errorMessageFor: 'name',
autocomplete: 'given-name',
ariaLabel: 'UserName',
animatePlaceholder: false,
isDisabled: true,
dataQa: 'qa-user-name'
}, {
identity: 'userID',
type: 'text',
value: '001245',
name: 'userID',
labelText: exports.wording.id,
animatePlaceholder: false,
maxLength: 16,
wrapperClassName: 'form-item-wrapper id-wrapper',
validationType: 'number',
errorMessageFor: 'number',
autocomplete: 'number',
ariaLabel: 'cardNumber',
isDisabled: true,
dataQa: 'qa-user-identifier'
}, {
identity: 'email',
type: 'text',
value: 'j-dubb.smith@biz.education.com',
className: 'email-address',
name: 'email',
maxLength: '254',
labelText: exports.wording.email,
wrapperClassName: 'email-address-container email-address-wrapper',
validationType: 'email',
errorMessageFor: 'email',
autocomplete: 'email',
animatePlaceholder: false,
isDisabled: true,
dataQa: 'qa-user-email'
}]
}, {
type: 'groupElements',
validationType: 'groupElements',
className: 'input-group-wrapper full-name-container',
name: 'fullNameContainer',
elementList: [{
type: 'select',
value: exports.EditFormTeam.defaultValue,
className: 'team-wrapper',
name: 'editFormTeam',
isFormView: true,
labelText: exports.wording.team,
title: 'editFormTeam',
options: exports.EditFormTeam.options,
shouldBeAbsolute: true,
dropDownAlignmentType: 'bottom',
dataQa: 'qa-team-container'
}, {
type: 'select',
value: exports.EditFormRole.defaultValue,
className: 'role-wrapper',
name: 'editFormRole',
isFormView: true,
labelText: exports.wording.role,
title: 'editFormRole',
options: exports.EditFormRole.options,
shouldBeAbsolute: true,
dropDownAlignmentType: 'bottom',
dataQa: 'qa-role-container'
}, {
type: 'select',
value: exports.EditFormStatus.defaultValue,
className: 'status-wrapper',
wrapperClassName: 'status-form-item-wrapper',
name: 'editFormStatus',
isFormView: true,
labelText: exports.wording.status,
title: 'editFormStatus',
options: exports.EditFormStatus.options,
shouldBeAbsolute: true,
dropDownAlignmentType: 'bottom',
dataQa: 'qa-status-container'
}]
}];