2017-09-15 10:24:37 +00:00
|
|
|
// eslint max-len: ["error", 500]
|
|
|
|
// eslint key-spacing: ["error", 500]
|
2017-11-08 14:43:34 +00:00
|
|
|
import components from './components_selectors.js';
|
2017-11-07 08:09:59 +00:00
|
|
|
|
2017-09-15 10:24:37 +00:00
|
|
|
export default {
|
2017-09-17 16:09:59 +00:00
|
|
|
login: {
|
2017-11-07 08:09:59 +00:00
|
|
|
textFieldInput: `${components.vnTextfield}`,
|
|
|
|
submitButton: `${components.vnSubmit}`
|
2017-09-17 16:09:59 +00:00
|
|
|
},
|
|
|
|
globalItems: {
|
2017-11-07 08:09:59 +00:00
|
|
|
topBar: `${components.vnTopbar}`,
|
|
|
|
logOutButton: `${components.vnIcon}[icon="exit_to_app"]`,
|
2017-12-07 14:40:16 +00:00
|
|
|
languageButton: `${components.vnIcon}[icon="language"]`,
|
2017-10-29 14:49:44 +00:00
|
|
|
snackbarIsActive: '.mdl-snackbar--active > .mdl-snackbar__text',
|
2017-11-07 08:09:59 +00:00
|
|
|
applicationsMenuButton: `${components.vnIcon}[icon="apps"]`,
|
|
|
|
applicationsMenuVisible: `${components.vnMainMenu} .is-visible > div`,
|
|
|
|
clientsButton: `${components.vnMainMenu} > div > ul > li:nth-child(1)`
|
2017-09-17 16:09:59 +00:00
|
|
|
},
|
|
|
|
moduleAccessView: {
|
2017-11-07 08:09:59 +00:00
|
|
|
clientsSectionButton: `${components.vnModuleContainer}[ui-sref="clients"]`
|
2017-09-17 16:09:59 +00:00
|
|
|
},
|
2017-10-29 14:49:44 +00:00
|
|
|
clientsIndex: {
|
2017-11-07 08:09:59 +00:00
|
|
|
searchClientInput: `${components.vnTextfield}`,
|
|
|
|
searchButton: `${components.vnSearchBar} > vn-icon-button > button`,
|
|
|
|
searchResult: `${components.vnItemClient}:nth-child(1) > a`,
|
|
|
|
createClientButton: `${components.vnFloatButton}`
|
2017-09-17 16:09:59 +00:00
|
|
|
},
|
|
|
|
createClientView: {
|
2017-11-08 14:43:34 +00:00
|
|
|
name: `${components.vnTextfield}[name="name"]`,
|
|
|
|
taxNumber: `${components.vnTextfield}[name="fi"]`,
|
|
|
|
socialName: `${components.vnTextfield}[name="socialName"]`,
|
|
|
|
userName: `${components.vnTextfield}[name="userName"]`,
|
|
|
|
email: `${components.vnTextfield}[name="email"]`,
|
2017-12-11 07:51:48 +00:00
|
|
|
salesPersonInput: `${components.vnAutocomplete}[field="$ctrl.client.salesPersonFk"] > vn-vertical > ${components.vnTextfield}`,
|
|
|
|
salesBruceBannerOption: `${components.vnAutocomplete}[field="$ctrl.client.salesPersonFk"] > vn-vertical > vn-drop-down > vn-vertical:not(.ng-hide) > vn-auto:nth-child(2) > ul > li:nth-child(1)`,
|
2017-11-07 08:09:59 +00:00
|
|
|
createButton: `${components.vnSubmit}`
|
2017-10-30 14:37:35 +00:00
|
|
|
},
|
|
|
|
basicData: {
|
2017-11-08 14:43:34 +00:00
|
|
|
basicDataButton: `${components.vnMenuItem}[ui-sref="clientCard.basicData"]`,
|
|
|
|
nameInput: `${components.vnTextfield}[name="name"]`,
|
2017-12-05 14:28:48 +00:00
|
|
|
contactInput: `${components.vnTextfield}[name="contact"]`,
|
2017-11-08 14:43:34 +00:00
|
|
|
phoneInput: `${components.vnTextfield}[name="phone"]`,
|
|
|
|
mobileInput: `${components.vnTextfield}[name="mobile"]`,
|
|
|
|
faxInput: `${components.vnTextfield}[name="fax"]`,
|
|
|
|
emailInput: `${components.vnTextfield}[name="email"]`,
|
2017-12-05 14:28:48 +00:00
|
|
|
salesPersonInput: `${components.vnAutocomplete}[field="$ctrl.client.salesPersonFk"] > vn-vertical > ${components.vnTextfield}`,
|
|
|
|
salesBruceBannerOption: `${components.vnAutocomplete}[field="$ctrl.client.salesPersonFk"] > vn-vertical > vn-drop-down > vn-vertical:not(.ng-hide) > vn-auto:nth-child(2) > ul > li:nth-child(1)`,
|
2017-11-08 14:43:34 +00:00
|
|
|
channelInput: `${components.vnAutocomplete}[field="$ctrl.client.contactChannelFk"] > vn-vertical > ${components.vnTextfield}`,
|
2017-12-05 14:28:48 +00:00
|
|
|
channelMetropolisOption: `${components.vnAutocomplete}[field="$ctrl.client.contactChannelFk"] > vn-vertical > vn-drop-down > vn-vertical:not(.ng-hide) > vn-auto:nth-child(2) > ul > li:nth-child(3)`,
|
2017-11-08 14:43:34 +00:00
|
|
|
saveButton: `${components.vnSubmit}`
|
2017-10-31 07:14:33 +00:00
|
|
|
},
|
|
|
|
fiscalData: {
|
2017-11-08 14:43:34 +00:00
|
|
|
fiscalDataButton: `${components.vnMenuItem}[ui-sref="clientCard.fiscalData"]`,
|
2017-12-05 14:28:48 +00:00
|
|
|
socialNameInput: `${components.vnTextfield}[name="socialName"]`,
|
2017-12-07 12:35:40 +00:00
|
|
|
fiscalIdInput: `${components.vnTextfield}[name="fi"]`,
|
2017-12-14 13:56:20 +00:00
|
|
|
equalizationTaxCheckboxLabel: `${components.vnCheck}[label='Is equalizated'] > label > input`,
|
2017-12-14 13:57:11 +00:00
|
|
|
acceptPropagationButton: `body > vn-app > vn-vertical > vn-vertical > vn-client-card > vn-main-block > vn-horizontal > vn-one > vn-vertical > vn-client-fiscal-data > vn-dialog > div > form > div.button-bar > tpl-buttons > button:nth-child(2)`,
|
2017-11-08 14:43:34 +00:00
|
|
|
addressInput: `${components.vnTextfield}[name="street"]`,
|
2017-11-09 08:03:41 +00:00
|
|
|
cityInput: `${components.vnTextfield}[name="city"]`,
|
2017-11-09 12:29:51 +00:00
|
|
|
postcodeInput: `${components.vnTextfield}[name="postcode"]`,
|
2017-11-09 12:54:06 +00:00
|
|
|
provinceInput: `${components.vnAutocomplete}[field="$ctrl.client.provinceFk"] > vn-vertical > ${components.vnTextfield}`,
|
2017-12-07 12:35:40 +00:00
|
|
|
provinceFifthOption: `${components.vnAutocomplete}[field="$ctrl.client.provinceFk"] > vn-vertical > vn-drop-down > vn-vertical:not(.ng-hide) > vn-auto:nth-child(2) > ul > li:nth-child(5)`,
|
2017-11-09 13:47:09 +00:00
|
|
|
countryInput: `${components.vnAutocomplete}[field="$ctrl.client.countryFk"] > vn-vertical > ${components.vnTextfield}`,
|
2017-12-07 12:35:40 +00:00
|
|
|
countryThirdOption: `${components.vnAutocomplete}[field="$ctrl.client.countryFk"] > vn-vertical > vn-drop-down > vn-vertical:not(.ng-hide) > vn-auto:nth-child(2) > ul > li:nth-child(3)`,
|
|
|
|
activeCheckboxLabel: `${components.vnCheck}[label='Active'] > label`,
|
|
|
|
invoiceByAddressCheckboxInput: `${components.vnCheck}[label='Invoice by address'] > label > input`,
|
|
|
|
verifiedDataCheckboxInput: `${components.vnCheck}[label='Verified data'] > label > input`,
|
|
|
|
hasToInvoiceCheckboxLabel: `${components.vnCheck}[label='Has to invoice'] > label`,
|
|
|
|
invoiceByMailCheckboxLabel: `${components.vnCheck}[label='Invoice by mail'] > label`,
|
|
|
|
viesCheckboxInput: `${components.vnCheck}[label='Vies'] > label > input`,
|
2017-11-13 07:36:15 +00:00
|
|
|
saveButton: `${components.vnSubmit}`
|
2017-12-11 11:33:27 +00:00
|
|
|
},
|
|
|
|
payMethod: {
|
|
|
|
payMethodButton: `${components.vnMenuItem}[ui-sref="clientCard.billingData"]`,
|
|
|
|
payMethodInput: `${components.vnAutocomplete}[field="$ctrl.client.payMethodFk"] > vn-vertical > ${components.vnTextfield}`,
|
|
|
|
payMethodIBANOption: `${components.vnAutocomplete}[field="$ctrl.client.payMethodFk"] > vn-vertical > vn-drop-down > vn-vertical:not(.ng-hide) > vn-auto:nth-child(2) > ul > li:nth-child(5)`,
|
|
|
|
payMethodOptionOne: `${components.vnAutocomplete}[field="$ctrl.client.payMethodFk"] > vn-vertical > vn-drop-down > vn-vertical:not(.ng-hide) > vn-auto:nth-child(2) > ul > li:nth-child(2)`,
|
|
|
|
IBANInput: `${components.vnTextfield}[name="iban"]`,
|
|
|
|
dueDayInput: `${components.vnTextfield}[name="dueDay"]`,
|
2017-12-14 13:57:11 +00:00
|
|
|
cancelNotificationButton: 'body > vn-app > vn-vertical > vn-vertical > vn-client-card > vn-main-block > vn-horizontal > vn-one > vn-vertical > vn-client-billing-data > vn-dialog > div > form > div.button-bar > tpl-buttons > button:nth-child(1)',
|
2018-01-09 12:51:41 +00:00
|
|
|
receivedCoreVNHCheckbox: `${components.vnCheck}[label='Received core VNH'] > label > input`,
|
|
|
|
receivedCoreVNLCheckbox: `${components.vnCheck}[label='Received core VNL'] > label > input`,
|
|
|
|
receivedB2BVNLCheckbox: `${components.vnCheck}[label='Received B2B VNL'] > label > input`,
|
2017-12-11 11:33:27 +00:00
|
|
|
saveButton: `${components.vnSubmit}`
|
2017-12-13 10:25:50 +00:00
|
|
|
},
|
|
|
|
addresses: {
|
|
|
|
addressesButton: `${components.vnMenuItem}[ui-sref="clientCard.addresses.list"]`,
|
|
|
|
createAddress: `${components.vnFloatButton}`,
|
|
|
|
defaultCheckboxInput: `${components.vnCheck}[label='Default'] > label > input`,
|
|
|
|
consigneeInput: `${components.vnTextfield}[name="consignee"]`,
|
|
|
|
streetAddressInput: `${components.vnTextfield}[name="street"]`,
|
|
|
|
postcodeInput: `${components.vnTextfield}[name="postcode"]`,
|
|
|
|
cityInput: `${components.vnTextfield}[name="city"]`,
|
|
|
|
provinceInput: `${components.vnAutocomplete}[field="$ctrl.address.provinceFk"] > vn-vertical > ${components.vnTextfield}`,
|
|
|
|
provinceSecondOption: `${components.vnAutocomplete}[field="$ctrl.address.provinceFk"] > vn-vertical > vn-drop-down > vn-vertical:not(.ng-hide) > vn-auto:nth-child(2) > ul > li:nth-child(2)`,
|
|
|
|
agencyInput: `${components.vnAutocomplete}[field="$ctrl.address.agencyFk"] > vn-vertical > ${components.vnTextfield}`,
|
|
|
|
agenctySecondOption: `${components.vnAutocomplete}[field="$ctrl.address.agencyFk"] > vn-vertical > vn-drop-down > vn-vertical:not(.ng-hide) > vn-auto:nth-child(2) > ul > li:nth-child(2)`,
|
|
|
|
phoneInput: `${components.vnTextfield}[name="phone"]`,
|
|
|
|
mobileInput: `${components.vnTextfield}[name="mobile"]`,
|
2017-12-14 13:57:11 +00:00
|
|
|
defaultAddress: 'body > vn-app > vn-vertical > vn-vertical > vn-client-card > vn-main-block > vn-horizontal > vn-one > vn-vertical > ui-view > vn-client-addresses > vn-vertical > vn-card > div > vn-vertical > vn-horizontal:nth-child(2) > vn-one > vn-horizontal > vn-one > div:nth-child(2)',
|
|
|
|
secondMakeDefaultStar: 'body > vn-app > vn-vertical > vn-vertical > vn-client-card > vn-main-block > vn-horizontal > vn-one > vn-vertical > ui-view > vn-client-addresses > vn-vertical > vn-card > div > vn-vertical > vn-horizontal:nth-child(3) > vn-one > vn-horizontal > vn-none > i',
|
2017-12-13 10:25:50 +00:00
|
|
|
firstEditButton: `${components.vnIconButton}[icon='edit']`,
|
2017-12-14 13:56:20 +00:00
|
|
|
secondEditButton: `vn-horizontal:nth-child(3) > vn-one > vn-horizontal > a > ${components.vnIconButton}[icon='edit']`,
|
2017-12-14 13:57:11 +00:00
|
|
|
activeCheckbox: `${components.vnCheck}[label='Enabled'] > label > input`,
|
2017-12-14 13:56:20 +00:00
|
|
|
equalizationTaxCheckboxLabel: `${components.vnCheck}[label='Is equalizated'] > label > input`,
|
2017-12-13 10:25:50 +00:00
|
|
|
saveButton: `${components.vnSubmit}`
|
2017-12-15 09:07:52 +00:00
|
|
|
},
|
|
|
|
webAccess: {
|
|
|
|
webAccessButton: `${components.vnMenuItem}[ui-sref="clientCard.webAccess"]`,
|
|
|
|
enableWebAccessCheckbox: `${components.vnCheck}[label='Enable web access'] > label > input`,
|
|
|
|
userNameInput: `${components.vnTextfield}[name="name"]`,
|
|
|
|
saveButton: `${components.vnSubmit}`
|
2017-12-15 11:51:06 +00:00
|
|
|
},
|
|
|
|
notes: {
|
|
|
|
notesButton: `${components.vnMenuItem}[ui-sref="clientCard.notes.list"]`,
|
|
|
|
addNoteFloatButton: `${components.vnFloatButton}`,
|
|
|
|
noteInput: `${components.vnTextarea}[label="Note"]`,
|
|
|
|
saveButton: `${components.vnSubmit}`,
|
|
|
|
firstNoteText: 'body > vn-app > vn-vertical > vn-vertical > vn-client-card > vn-main-block > vn-horizontal > vn-one > vn-vertical > ui-view > vn-client-notes > vn-card > div > vn-vertical > vn-one:nth-child(2) > vn-horizontal:nth-child(2) > b'
|
2018-01-08 07:12:39 +00:00
|
|
|
},
|
|
|
|
credit: {
|
|
|
|
creditButton: `${components.vnMenuItem}[ui-sref="clientCard.credit.list"]`,
|
|
|
|
addCreditFloatButton: `${components.vnFloatButton}`,
|
|
|
|
creditInput: `${components.vnTextfield}[name="credit"]`,
|
|
|
|
saveButton: `${components.vnSubmit}`,
|
|
|
|
firstCreditText: 'body > vn-app > vn-vertical > vn-vertical > vn-client-card > vn-main-block > vn-horizontal > vn-one > vn-vertical > ui-view > vn-client-credit-list > vn-card > div > vn-vertical > vn-one > vn-horizontal:nth-child(1) > vn-one'
|
2018-01-08 14:06:20 +00:00
|
|
|
},
|
|
|
|
greuge: {
|
|
|
|
greugeButton: `${components.vnMenuItem}[ui-sref="clientCard.greuge.list"]`,
|
|
|
|
addGreugeFloatButton: `${components.vnFloatButton}`,
|
2018-01-11 14:25:03 +00:00
|
|
|
amountInput: `${components.vnTextfield}[name="amount"]`,
|
2018-01-09 14:31:25 +00:00
|
|
|
descriptionInput: `${components.vnTextfield}[name="Description"]`,
|
|
|
|
typeInput: `${components.vnAutocomplete}[field="$ctrl.greuge.greugeTypeFk"] > vn-vertical > ${components.vnTextfield}`,
|
|
|
|
typeSecondOption: `${components.vnAutocomplete}[field="$ctrl.greuge.greugeTypeFk"] > vn-vertical > vn-drop-down > vn-vertical > vn-auto:nth-child(2) > ul > li`,
|
2018-01-08 14:06:20 +00:00
|
|
|
saveButton: `${components.vnSubmit}`
|
|
|
|
// firstGreugeText: ''
|
2017-09-15 10:24:37 +00:00
|
|
|
}
|
|
|
|
};
|