@experium/findy-form 1.2.33 → 1.2.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.js +1 -1
- package/lib/components/Fields.js +1 -1
- package/lib/components/formComponents/HtmlOpdForm.js +1 -1
- package/lib/components/formComponents/Select.js +1 -1
- package/lib/constants/translations.js +114 -105
- package/lib/styles/index.css +1 -6
- package/lib/utils/errors.js +1 -1
- package/package.json +1 -1
- package/src/components/Fields.js +3 -1
- package/src/components/formComponents/HtmlOpdForm.js +9 -7
- package/src/components/formComponents/Select.js +1 -1
- package/src/constants/translations.js +91 -82
- package/src/styles/index.css +1 -6
- package/src/utils/errors.js +1 -0
package/lib/components/Fields.js
CHANGED
|
@@ -143,7 +143,7 @@ var getFieldComponent = function getFieldComponent(field, components) {
|
|
|
143
143
|
dictionary: (0, _ramda.prop)('checkboxes', settings) ? (0, _ramda.prop)('multiple', settings) ? _Checkbox["default"] : _Radio["default"] : _Select["default"],
|
|
144
144
|
phone: _MaskedInput.PhoneInput,
|
|
145
145
|
"boolean": _Checkbox.Boolean,
|
|
146
|
-
choice: _Select["default"],
|
|
146
|
+
choice: (0, _ramda.prop)('checkboxes', settings) ? (0, _ramda.prop)('multiple', settings) ? _Checkbox["default"] : _Radio["default"] : _Select["default"],
|
|
147
147
|
country: _Select.LocationSelect,
|
|
148
148
|
region: _Select.LocationSelect,
|
|
149
149
|
city: _Select.LocationSelect,
|
|
@@ -74,7 +74,7 @@ var styles = {
|
|
|
74
74
|
"timeIndicator": "index__timeIndicator",
|
|
75
75
|
"modalButtonGroup": "index__modalButtonGroup"
|
|
76
76
|
};
|
|
77
|
-
var commonStyle = "\n .opd-html-form {\n line-height: 20px;\n margin-bottom: 24px;\n }\n .opd-html-form input {\n border: none;\n border-bottom: 1px solid #000;\n font-size: 16px;\n pointer-events: auto;\n margin: 4px 0;\n appearance: none;\n -moz-appearance: none;\n -webkit-appearance: none;\n }\n .opd-html-form label {\n pointer-events: auto;\n }\n .opd-html-form input:focus {\n outline: none;\n }\n .opd-html-form.submitted input:invalid {\n border-bottom: 1px solid red;\n }\n .opd-html-form label{\n cursor: pointer;\n }\n .opd-html-form input[type=\"checkbox\"] {\n position: relative;\n margin-right: 8px;\n margin-bottom: -2px;\n border: 1px solid #ccc;\n appearance: none;\n width: 18px;\n height: 18px;\n border-radius: 2px;\n }\n .opd-html-form input[type=\"checkbox\"]:checked {\n background: #3a70bb;\n border-color: #3a70bb;\n }\n .opd-html-form input[type=\"checkbox\"]:checked:before {\n
|
|
77
|
+
var commonStyle = "\n .opd-html-form {\n line-height: 20px;\n margin-bottom: 24px;\n }\n .opd-html-form input {\n border: none;\n border-bottom: 1px solid #000;\n font-size: 16px;\n pointer-events: auto;\n margin: 4px 0;\n appearance: none;\n -moz-appearance: none;\n -webkit-appearance: none;\n }\n .opd-html-form label {\n pointer-events: auto;\n }\n .opd-html-form input:focus {\n outline: none;\n }\n .opd-html-form.submitted input:invalid {\n border-bottom: 1px solid red;\n }\n .opd-html-form label{\n cursor: pointer;\n }\n .opd-html-form input[type=\"checkbox\"] {\n position: relative;\n margin-right: 8px;\n margin-bottom: -2px;\n border: 1px solid #ccc;\n appearance: none;\n width: 18px;\n height: 18px;\n border-radius: 2px;\n }\n .opd-html-form input[type=\"checkbox\"]:checked {\n background: #3a70bb;\n border-color: #3a70bb;\n }\n .opd-html-form input[type=\"checkbox\"]:checked:before {\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAA21JREFUaEPtmF3oVUUUxX+rsOiD6MMgiSQMIYIyEE3wIzERBQmzIKiwBCnxwUTEerAX66UkwkwoiCALIujLIKO0IoIKKnqoXrTHfMgHQ8oEy5ZsHU2u556Zc/733v/9w53Xs2Zmrb337DVzxAQfmuD8GQkY7wyOMjDKQEcEbC8G3gR2As9Icl2QhqqEbN8A/ABcm0jvAR6S9Ec3EUMjwPYk4AtgbgfZX4GVkn6qEjFMAl4GHusS6b+ANZLe7vw+FAJsrwJezzSEOAv3SXrvXNy4C7A9A/gGuCQj4AQwX1Jgz45xFWD7SuB74KaCdvykpGeHpoRsR/DeBe4pIP8hsKKqpY5bBmxvAZ4uIH8AmCXpyNB0Idt3AZ8AF2YEHIu2KunHofGBCrOq0/CIpNruNNASsn0x8FWUREHp7JC0PocbtIBXgEdzpIBvgTslHc9hBybA9oPpkpbjdAiYKem3HDC+D0SA7duSWV1aYFbLJO0tIT8QAbavAr4rNKsnJD1XSr5IQDKctVGXde2salPbFwC7geUFpN4H7s3d/xs7se1twCbgKHC3pM8LyJyC2H4K2FqArzWruvm1Z8B2OGU45pnxd1i/pE9zpBqYVQRmjqSfc2s2cmLbG4AXKiZFa7tf0gfdNrQ9Nb2sJheQeljSrgJcJaQyA7bXAS/VdKl/gAckvdO5akOzelHS423JVx5i20uAj4E4gHXjX2C1pHiAnx22S83qa2ChpAhG63FeBmwvAKIPX1Sw6n/xDJT0ajq0q4HXCub9nszqYAG2FtKthJalu3rulXSKN7AxPcgjqj03qzoFXbtQ6iLRwy8rjNJh4OoC7GZJ0Zp7MnJtdB7wEXBFT3Y7bWrRhmt/VjXZK3sXsj0zPT6uabJwBXY/MLvby6rt2lkB6XDeAuwDprTcKMzqDkm/tJzfdVqRgCTi5iTi+hYkVkl6o8W87JRiAUnEjcBnwLTsyv8DtksKV+/LaCQgiYhrQpTT9AJG8RMqzCr7sipYqxLSWEAScR0QF7pbazbumVnViWslIImIX+Ah4vaKDeKasVjSl20jWzqvtYAkIn4Nxr1pTseGmyQ9X0piLLgxCUgiLk+vrkWJSM/Nqi8ldO6ituO68RYQZrdU0p9jiWqTuWPOQJPN+oEdCehHVJusOcpAk2j1AzvhM3ASm876Mart7QEAAAAASUVORK5CYII=\");\n position: absolute;\n left: 2px;\n top: 2px;\n border-top: 0;\n border-left: 0;\n content: '';\n display: inline-block;\n border-top: 0;\n border-left: 0;\n width: 14px;\n height: 14px;\n background-size: 12px;\n }\n .opd-html-form input[type=\"checkbox\"]:required::after {\n content: \"*\";\n color: red;\n top: -6px;\n right: -8px;\n position: absolute;\n }\n .opd-html-form.submitted input[type=\"checkbox\"]:invalid {\n border-color: red;\n }\n .opd-html-form > div > div {\n margin: 4px 0;\n }\n .opd-html-form > div p {\n display: inline-block;\n margin: 4px 0;\n }\n .opd-html-form > div p + p {\n display: block;\n }\n @media screen and (max-width: 991px) {\n .opd-html-form input[type=\"checkbox\"]:checked:before {\n left: 6px;\n top: 3px;\n }\n }\n";
|
|
78
78
|
|
|
79
79
|
var getHtml = function getHtml(body) {
|
|
80
80
|
return "\n <!DOCTYPE html>\n <html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>OPD</title>\n <style>\n ".concat(commonStyle, "\n .opd-html-form {\n font-family: Arial;\n font-size: 16px;\n }\n .opd-html-form input,\n .opd-html-form label {\n pointer-events: none;\n }\n .opd-html-form input[type=\"checkbox\"]:required::after {\n content: \"\";\n }\n </style>\n </head>\n <body>\n <div style=\"margin: 10px auto; max-width: 1080px;\">\n ").concat(body, "\n </div>\n </body>\n </html>\n");
|
|
@@ -99,7 +99,8 @@ var TRANSLATIONS = {
|
|
|
99
99
|
'incorrectBirthDate': 'Date cant be earlier then birth date'
|
|
100
100
|
},
|
|
101
101
|
'invalidCaptcha': 'Invalid captcha',
|
|
102
|
-
'licenseError': 'The maximum number of responses has been reached for test access. Contact the Sales Department of Geliosoft LLC and the contacts of the sales department (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href=\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (9:00-18:00 Moscow time), <a href=\"tel:+79150216424\"> +7 (915) 021-64-24 </a>) '
|
|
102
|
+
'licenseError': 'The maximum number of responses has been reached for test access. Contact the Sales Department of Geliosoft LLC and the contacts of the sales department (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href=\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (9:00-18:00 Moscow time), <a href=\"tel:+79150216424\"> +7 (915) 021-64-24 </a>) ',
|
|
103
|
+
'licenseExpired': 'The test access period "30 days" has expired. Contact the Sales Department of "Heliosoft" LLC and the contacts of the sales department (<a href="mailto:help@findy.ru"> help@findy.ru </a>, <a href="tel:+74957836603"> +7 (495) 783-66-03 </a> (9:00-18:00 Moscow time), <a href="tel: +79150216424"> + 7 (915) 021-64-24 </a>)'
|
|
103
104
|
}
|
|
104
105
|
},
|
|
105
106
|
ru: {
|
|
@@ -195,7 +196,8 @@ var TRANSLATIONS = {
|
|
|
195
196
|
'incorrectBirthDate': 'Дата не может быть меньше даты рождения'
|
|
196
197
|
},
|
|
197
198
|
'invalidCaptcha': 'Неверно введена капча',
|
|
198
|
-
'licenseError': 'В рамках тестового доступа достигнуто максимальное количество откликов. Обратитесь в Отдел продаж ООО "Гелиософт" и контакты отдела продаж (<a href=\"mailto:help@findy.ru\">help@findy.ru</a>, <a href=\"tel:+74957836603\">+7 (495) 783-66-03</a> (9:00-18:00 МСК), <a href=\"tel:+79150216424\">+7 (915) 021-64-24</a>)'
|
|
199
|
+
'licenseError': 'В рамках тестового доступа достигнуто максимальное количество откликов. Обратитесь в Отдел продаж ООО "Гелиософт" и контакты отдела продаж (<a href=\"mailto:help@findy.ru\">help@findy.ru</a>, <a href=\"tel:+74957836603\">+7 (495) 783-66-03</a> (9:00-18:00 МСК), <a href=\"tel:+79150216424\">+7 (915) 021-64-24</a>)',
|
|
200
|
+
'licenseExpired': 'Срок тестового доступа "30 дней" завершен. Обратитесь в Отдел продаж ООО "Гелиософт" и контакты отдела продаж (<a href="mailto:help@findy.ru">help@findy.ru</a>, <a href="tel:+74957836603">+7 (495) 783-66-03</a> (9:00-18:00 МСК), <a href="tel:+79150216424">+7 (915) 021-64-24</a>)'
|
|
199
201
|
}
|
|
200
202
|
},
|
|
201
203
|
ua: {
|
|
@@ -291,7 +293,8 @@ var TRANSLATIONS = {
|
|
|
291
293
|
'incorrectBirthDate': 'Date cant be earlier then birth date'
|
|
292
294
|
},
|
|
293
295
|
'invalidCaptcha': 'Невірно введена капча',
|
|
294
|
-
'licenseError': 'В рамках тестового доступу досягнуто максимальну кількість відгуків. Зверніться до Відділу продажу ТОВ "Геліософт" і контакти відділу продажів (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href=\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (9:00-18:00 за київським часом), <a href=\"tel:+79150216424\"> +7 (915) 021-64-24 </a>) '
|
|
296
|
+
'licenseError': 'В рамках тестового доступу досягнуто максимальну кількість відгуків. Зверніться до Відділу продажу ТОВ "Геліософт" і контакти відділу продажів (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href=\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (9:00-18:00 за київським часом), <a href=\"tel:+79150216424\"> +7 (915) 021-64-24 </a>) ',
|
|
297
|
+
'licenseExpired': 'Термін тестового доступу "30 днів" завершено. Зверніться до Відділу продаж ТОВ "Геліософт" (<a href="mailto:help@findy.ru">help@findy.ru</a>, <a href="tel:+74957836603">+7 (495) 783-66-03</a> (9:00-18:00 МСК), <a href="tel:+79150216424">+7 (915) 021-64-24</a>)'
|
|
295
298
|
}
|
|
296
299
|
},
|
|
297
300
|
et: {
|
|
@@ -386,14 +389,111 @@ var TRANSLATIONS = {
|
|
|
386
389
|
'incorrectBirthDate': 'Date cant be earlier then birth date'
|
|
387
390
|
},
|
|
388
391
|
'invalidCaptcha': 'Sisestati sobimatu captcha',
|
|
389
|
-
'licenseError': 'Testjuurdepääsuks on saavutatud maksimaalne vastuste arv. Võtke ühendust Heliosoft LLC müügiosakonnaga ja müügiosakonna kontaktidega (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href=\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (9:00-18:00
|
|
392
|
+
'licenseError': 'Testjuurdepääsuks on saavutatud maksimaalne vastuste arv. Võtke ühendust Heliosoft LLC müügiosakonnaga ja müügiosakonna kontaktidega (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href=\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (9:00-18:00 MSK), <a href=\"tel:+79150216424\"> +7 (915) 021-64–24</a>)',
|
|
393
|
+
'licenseExpired': 'Testjuurdepääsu periood "30 päeva" on möödas. Võtke ühendust "Heliosoft" LLC müügiosakonnaga ja müügiosakonna kontaktidega (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href=\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (9:00-18:00 MSK), <a href=\"tel:+79150216424\"> +7 (915) 021-64–24</a>)'
|
|
390
394
|
}
|
|
391
395
|
},
|
|
392
396
|
lt: {
|
|
393
397
|
translation: {
|
|
394
|
-
'send': '
|
|
398
|
+
'send': 'Pateikti',
|
|
399
|
+
'addQuestionBlock': 'Papildyti',
|
|
400
|
+
'remove': 'Pašalinti',
|
|
401
|
+
'optional': ' (neprivaloma)',
|
|
402
|
+
'cancel': 'Atšaukti',
|
|
403
|
+
'save': 'Išsaugoti',
|
|
404
|
+
'stopRecording': 'Sustabdyti įrašymą',
|
|
405
|
+
'startRecording': 'Pradėti įrašymą',
|
|
406
|
+
'upload': 'Įkelti',
|
|
407
|
+
'download': 'Parsisiųsti',
|
|
408
|
+
'recordAudio': 'Įrašyti garsą',
|
|
409
|
+
'recordVideo': 'Įrašyti vaizdo įrašą',
|
|
410
|
+
'takePhoto': 'Nufotografuoti',
|
|
411
|
+
'opdFormAccept': 'Priimti',
|
|
412
|
+
'opdLabel': 'Aš sutinku su',
|
|
413
|
+
'opdLink': 'asmens duomenų tvarkymas',
|
|
414
|
+
'opdOffertaLabel': 'Sutinku su sąlygomis',
|
|
415
|
+
'opdOffertaLink': 'viešas pasiūlymas',
|
|
416
|
+
'MONTHS': [{
|
|
417
|
+
value: 1,
|
|
418
|
+
label: 'Sausis'
|
|
419
|
+
}, {
|
|
420
|
+
value: 2,
|
|
421
|
+
label: 'Vasaris'
|
|
422
|
+
}, {
|
|
423
|
+
value: 3,
|
|
424
|
+
label: 'Kovas'
|
|
425
|
+
}, {
|
|
426
|
+
value: 4,
|
|
427
|
+
label: 'Balandis'
|
|
428
|
+
}, {
|
|
429
|
+
value: 5,
|
|
430
|
+
label: 'Gegužė'
|
|
431
|
+
}, {
|
|
432
|
+
value: 6,
|
|
433
|
+
label: 'Birželis'
|
|
434
|
+
}, {
|
|
435
|
+
value: 7,
|
|
436
|
+
label: 'Liepa'
|
|
437
|
+
}, {
|
|
438
|
+
value: 8,
|
|
439
|
+
label: 'Rugpjūtis'
|
|
440
|
+
}, {
|
|
441
|
+
value: 9,
|
|
442
|
+
label: 'Rugsėjis'
|
|
443
|
+
}, {
|
|
444
|
+
value: 10,
|
|
445
|
+
label: 'Spalis'
|
|
446
|
+
}, {
|
|
447
|
+
value: 11,
|
|
448
|
+
label: 'Lapkritis'
|
|
449
|
+
}, {
|
|
450
|
+
value: 12,
|
|
451
|
+
label: 'Gruodis'
|
|
452
|
+
}],
|
|
453
|
+
'loading': 'Įkeliama...',
|
|
454
|
+
'noOptionsMessage': 'Duomenų nėra',
|
|
455
|
+
'otherOption': 'Kita',
|
|
456
|
+
'placeholders': {
|
|
457
|
+
'datePicker': {
|
|
458
|
+
'day': 'Diena',
|
|
459
|
+
'month': 'Mėnuo',
|
|
460
|
+
'year': 'Metai'
|
|
461
|
+
},
|
|
462
|
+
'salaryCurrency': 'Pasirinkite valiutą...'
|
|
463
|
+
},
|
|
464
|
+
'errors': {
|
|
465
|
+
'required': 'Privalomas laukelis',
|
|
466
|
+
'minLength': 'Minimalus raidžių skaičius - {{count}}',
|
|
467
|
+
'maxLength': 'Maksimalus raidžių skaičius - {{count}}',
|
|
468
|
+
'moreThan': 'Skaičius turi būti didesnis nei {{more}}',
|
|
469
|
+
'currency': 'Reikalinga valiuta',
|
|
470
|
+
'phone': 'Neteisingas telefono numeris',
|
|
471
|
+
'email': 'Neteisingas el. pašto adresas',
|
|
472
|
+
'emailChars': 'Neteisingas el. Paštas (galiojantys simboliai - raidžių skaičiai _ - .)',
|
|
473
|
+
'emailDomain': 'Neteisingas el. Pašto domenas (galiojantys simboliai - raidžių skaičiai - .)',
|
|
474
|
+
'audioPermission': 'Prieiga prie mikrofono yra užblokuota. Leisti prieigą prie mikrofono naršyklės nustatymuose',
|
|
475
|
+
'cameraPermission': 'Prieiga prie kameros užblokuota. Leiskite prieigą prie kameros naršyklės nustatymuose',
|
|
476
|
+
'uploadError': 'Nepavyko įkelti failo.',
|
|
477
|
+
'maximumFileSize': 'Maksimalus failo dydis: {{count}} megabaitai',
|
|
478
|
+
'maximumFileSize_plural': 'Didžiausias failo dydis: {{count}} megabaitų',
|
|
479
|
+
'fileType': 'Netinkamas tipas, galimi tipai: {{types}}',
|
|
480
|
+
'fileTypeAudio': 'Netinkamas tipas, pasirinkite garso failą',
|
|
481
|
+
'fileTypeVideo': 'Netinkamas tipas, pasirinkite vaizdo failą',
|
|
482
|
+
'composite': 'Reikalingas blokas',
|
|
483
|
+
'incompleteDate': 'Būtina nurodyti pilną datą',
|
|
484
|
+
'captchaRequired': 'Būtina patvirtinimas',
|
|
485
|
+
'incorrectBirthDate': 'Data negali būti ankstesnė už gimimo datą'
|
|
486
|
+
},
|
|
487
|
+
'invalidCaptcha': 'Neteisingas CAPTCHA kodas',
|
|
488
|
+
'licenseError': 'Pasiektas maksimalus bandymų prieigos atsakymų skaičius. Susisiekite su „Heliosoft LLC“ pardavimo skyriumi ir pardavimo skyriaus kontaktais (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href=\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (9:00-18:00 Maskvos laiku), <a href=\"tel:+79150216424\"> +7 (915) 021-64–24 </a>)',
|
|
489
|
+
'licenseExpired': 'Bandymo prieigos laikotarpis „30 dienų“ baigėsi. Susisiekite su „Heliosoft“ LLC pardavimų skyriumi ir pardavimo skyriaus kontaktais (<a href="mailto:help@findy.ru"> help@findy.ru </a>, <a href = "tel: +74957836603 "> +7 (495) 783-66-03 </a> (9:00-18:00 Maskvos laiku), <a href="tel: +79150216424"> + 7 (915) 021-64-24 < /a>)'
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
lv: {
|
|
493
|
+
translation: {
|
|
494
|
+
'send': 'Pateikti',
|
|
395
495
|
'addQuestionBlock': 'Pievienot',
|
|
396
|
-
'remove': '
|
|
496
|
+
'remove': 'Nonemt',
|
|
397
497
|
'optional': ' (neobligāti)',
|
|
398
498
|
'cancel': 'Atcelt',
|
|
399
499
|
'save': 'Saglabāt',
|
|
@@ -481,102 +581,8 @@ var TRANSLATIONS = {
|
|
|
481
581
|
'incorrectBirthDate': 'Date cant be earlier then birth date'
|
|
482
582
|
},
|
|
483
583
|
'invalidCaptcha': 'Ievadīta nederīga captcha',
|
|
484
|
-
'licenseError': 'Testa piekļūšanai ir sasniegts maksimālais atbilžu skaits. Sazinieties ar Heliosoft LLC pārdošanas nodaļu un pārdošanas nodaļas kontaktpersonām (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href=\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (9:00-18:00 pēc Maskavas laika), <a href=\"tel:+79150216424\"> +7 (915) 021-64–24 </a>)'
|
|
485
|
-
|
|
486
|
-
},
|
|
487
|
-
lv: {
|
|
488
|
-
translation: {
|
|
489
|
-
'send': 'Pateikti',
|
|
490
|
-
'addQuestionBlock': 'Papildyti',
|
|
491
|
-
'remove': 'Pašalinti',
|
|
492
|
-
'optional': ' (neprivaloma)',
|
|
493
|
-
'cancel': 'Atšaukti',
|
|
494
|
-
'save': 'Sutaupyti',
|
|
495
|
-
'stopRecording': 'Sustabdyti įrašymą',
|
|
496
|
-
'startRecording': 'Pradėkite įrašyti',
|
|
497
|
-
'upload': 'Įkelti',
|
|
498
|
-
'download': 'Parsisiųsti',
|
|
499
|
-
'recordAudio': 'Įrašyti garsą',
|
|
500
|
-
'recordVideo': 'Įrašyti garsą',
|
|
501
|
-
'takePhoto': 'Nufotografuoti',
|
|
502
|
-
'opdFormAccept': 'Priimti',
|
|
503
|
-
'opdLabel': 'Aš sutinku',
|
|
504
|
-
'opdLink': 'asmens duomenų tvarkymas',
|
|
505
|
-
'opdOffertaLabel': 'Aš sutinku su sąlygomis',
|
|
506
|
-
'opdOffertaLink': 'viešas pasiūlymas',
|
|
507
|
-
'MONTHS': [{
|
|
508
|
-
value: 1,
|
|
509
|
-
label: 'Sausio mėn'
|
|
510
|
-
}, {
|
|
511
|
-
value: 2,
|
|
512
|
-
label: 'Vasario mėn'
|
|
513
|
-
}, {
|
|
514
|
-
value: 3,
|
|
515
|
-
label: 'Kovas'
|
|
516
|
-
}, {
|
|
517
|
-
value: 4,
|
|
518
|
-
label: 'Balandis'
|
|
519
|
-
}, {
|
|
520
|
-
value: 5,
|
|
521
|
-
label: 'Gegužė'
|
|
522
|
-
}, {
|
|
523
|
-
value: 6,
|
|
524
|
-
label: 'Birželio mėn'
|
|
525
|
-
}, {
|
|
526
|
-
value: 7,
|
|
527
|
-
label: 'Liepos mėn'
|
|
528
|
-
}, {
|
|
529
|
-
value: 8,
|
|
530
|
-
label: 'Rugpjūtis'
|
|
531
|
-
}, {
|
|
532
|
-
value: 9,
|
|
533
|
-
label: 'Rugsėjo mėn'
|
|
534
|
-
}, {
|
|
535
|
-
value: 10,
|
|
536
|
-
label: 'Spalio mėn'
|
|
537
|
-
}, {
|
|
538
|
-
value: 11,
|
|
539
|
-
label: 'Lapkričio mėn'
|
|
540
|
-
}, {
|
|
541
|
-
value: 12,
|
|
542
|
-
label: 'Gruodžio mėn'
|
|
543
|
-
}],
|
|
544
|
-
'loading': 'Įkeliama...',
|
|
545
|
-
'noOptionsMessage': 'Duomenų nėra',
|
|
546
|
-
'otherOption': 'Kita',
|
|
547
|
-
'placeholders': {
|
|
548
|
-
'datePicker': {
|
|
549
|
-
'day': 'Diena',
|
|
550
|
-
'month': 'Mėnuo',
|
|
551
|
-
'year': 'Metai'
|
|
552
|
-
},
|
|
553
|
-
'salaryCurrency': 'Pasirinkite valiutą...'
|
|
554
|
-
},
|
|
555
|
-
'errors': {
|
|
556
|
-
'required': 'Privalomas laukelis',
|
|
557
|
-
'minLength': 'Minimalus raidžių skaičius - {{count}}',
|
|
558
|
-
'maxLength': 'Maksimalus raidžių skaičius - {{count}}',
|
|
559
|
-
'moreThan': 'Skaičius turi būti didesnis nei {{more}}',
|
|
560
|
-
'currency': 'Reikalinga valiuta',
|
|
561
|
-
'phone': 'Neteisingas telefono numeris',
|
|
562
|
-
'email': 'Neteisingas el. pašto adresas',
|
|
563
|
-
'emailChars': 'Neteisingas el. Paštas (galiojantys simboliai - raidžių skaičiai _ - .)',
|
|
564
|
-
'emailDomain': 'Neteisingas el. Pašto domenas (galiojantys simboliai - raidžių skaičiai - .)',
|
|
565
|
-
'audioPermission': 'Prieiga prie mikrofono yra užblokuota. Leisti prieigą prie mikrofono naršyklės nustatymuose',
|
|
566
|
-
'cameraPermission': 'Prieiga prie kameros yra užblokuota. Leisti prieigą prie fotoaparato naršyklės nustatymuose',
|
|
567
|
-
'uploadError': 'Nepavyko įkelti failo.',
|
|
568
|
-
'maximumFileSize': 'Maksimalus failo dydis: {{count}} megabaitas',
|
|
569
|
-
'maximumFileSize_plural': 'Maksimalus failo dydis: {{count}} megabaitai',
|
|
570
|
-
'fileType': 'Netinkamas tipas, galimi tipai: {{types}}',
|
|
571
|
-
'fileTypeAudio': 'Netinkamas tipas, pasirinkite garso failą',
|
|
572
|
-
'fileTypeVideo': 'Netinkamas tipas, pasirinkite vaizdo failą',
|
|
573
|
-
'composite': 'Reikalingas blokas',
|
|
574
|
-
'incompleteDate': 'Būtina nurodyti visą datą',
|
|
575
|
-
'captchaRequired': 'Būtina patvirtinti',
|
|
576
|
-
'incorrectBirthDate': 'Date cant be earlier then birth date'
|
|
577
|
-
},
|
|
578
|
-
'invalidCaptcha': 'Įvesta netinkama captcha',
|
|
579
|
-
'licenseError': 'Pasiektas maksimalus bandymų prieigos atsakymų skaičius. Susisiekite su „Heliosoft LLC“ pardavimo skyriumi ir pardavimo skyriaus kontaktais (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href=\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (9:00-18:00 Maskvos laiku), <a href=\"tel:+79150216424\"> +7 (915) 021-64–24 </a>)'
|
|
584
|
+
'licenseError': 'Testa piekļūšanai ir sasniegts maksimālais atbilžu skaits. Sazinieties ar Heliosoft LLC pārdošanas nodaļu un pārdošanas nodaļas kontaktpersonām (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href=\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (9:00-18:00 pēc Maskavas laika), <a href=\"tel:+79150216424\"> +7 (915) 021-64–24 </a>)',
|
|
585
|
+
'licenseExpired': 'Pārbaudes piekļuves periods "30 dienas" ir beidzies. Sazinieties ar "Heliosoft" LLC Pārdošanas Nodaļu un pārdošanas nodaļas kontaktiem (<a href="mailto:help@findy.ru"> help@findy.ru </a>, <a href="tel:+74957836603"> +7 (495) 783-66-03 </a> (9:00-18:00 Maskavas laiks), <a href="tel: +79150216424"> + 7 (915) 021-64-24 </a>) '
|
|
580
586
|
}
|
|
581
587
|
},
|
|
582
588
|
kz: {
|
|
@@ -672,7 +678,8 @@ var TRANSLATIONS = {
|
|
|
672
678
|
'incorrectBirthDate': 'Date cant be earlier then birth date'
|
|
673
679
|
},
|
|
674
680
|
'invalidCaptcha': 'Жарамсыз captcha енгізілді',
|
|
675
|
-
'licenseError': 'Тестке кіру үшін жауаптардың максималды санына жетті. Heliosoft LLC сату бөліміне және сату бөлімінің байланыстарына хабарласыңыз (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href =\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (Мәскеу уақытымен 9:00-18:00), <a href=\"tel:+79150216424\"> +7 (915) 021-64-24 </a>) '
|
|
681
|
+
'licenseError': 'Тестке кіру үшін жауаптардың максималды санына жетті. Heliosoft LLC сату бөліміне және сату бөлімінің байланыстарына хабарласыңыз (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href =\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (Мәскеу уақытымен 9:00-18:00), <a href=\"tel:+79150216424\"> +7 (915) 021-64-24 </a>) ',
|
|
682
|
+
'licenseExpired': ''
|
|
676
683
|
}
|
|
677
684
|
},
|
|
678
685
|
th: {
|
|
@@ -768,7 +775,8 @@ var TRANSLATIONS = {
|
|
|
768
775
|
'incorrectBirthDate': 'Date cant be earlier then birth date'
|
|
769
776
|
},
|
|
770
777
|
'validCaptcha': 'ป้อน captcha ไม่ถูกต้อง',
|
|
771
|
-
'licenseError': 'มีการตอบกลับถึงจำนวนสูงสุดสำหรับการเข้าถึงการทดสอบแล้ว ติดต่อฝ่ายขายของ Heliosoft LLC และผู้ติดต่อของฝ่ายขาย (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href=\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (9:00-18:00 น. เวลามอสโก), <a href=\"tel:+79150216424\"> +7 (915) 021-64-24 </a>) '
|
|
778
|
+
'licenseError': 'มีการตอบกลับถึงจำนวนสูงสุดสำหรับการเข้าถึงการทดสอบแล้ว ติดต่อฝ่ายขายของ Heliosoft LLC และผู้ติดต่อของฝ่ายขาย (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href=\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (9:00-18:00 น. เวลามอสโก), <a href=\"tel:+79150216424\"> +7 (915) 021-64-24 </a>) ',
|
|
779
|
+
'licenseExpired': ''
|
|
772
780
|
}
|
|
773
781
|
},
|
|
774
782
|
uz: {
|
|
@@ -864,7 +872,8 @@ var TRANSLATIONS = {
|
|
|
864
872
|
'incorrectBirthDate': 'Date cant be earlier then birth date'
|
|
865
873
|
},
|
|
866
874
|
'invalidCaptcha': "Noto'g'ri captcha kiritildi",
|
|
867
|
-
'licenseError': 'Testlarga kirish uchun maksimal javoblar soniga erishildi. "Heliosoft" MChJ savdo bo\'limi va savdo bo\'limi bilan bog\'laning (< ahref=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href =\"tel:+ 74957836603\"> +7 (495) 783-66-03 </a> (Moskva vaqti bilan 9:00-18:00), <a href=\"tel:+79150216424\"> +7 (915) 021-64-24 </a>)'
|
|
875
|
+
'licenseError': 'Testlarga kirish uchun maksimal javoblar soniga erishildi. "Heliosoft" MChJ savdo bo\'limi va savdo bo\'limi bilan bog\'laning (< ahref=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href =\"tel:+ 74957836603\"> +7 (495) 783-66-03 </a> (Moskva vaqti bilan 9:00-18:00), <a href=\"tel:+79150216424\"> +7 (915) 021-64-24 </a>)',
|
|
876
|
+
'licenseExpired': ''
|
|
868
877
|
}
|
|
869
878
|
}
|
|
870
879
|
};
|
package/lib/styles/index.css
CHANGED
|
@@ -371,11 +371,6 @@
|
|
|
371
371
|
box-sizing: content-box;
|
|
372
372
|
}
|
|
373
373
|
|
|
374
|
-
.radio-wrapper .rc-checkbox-inner:after {
|
|
375
|
-
margin-top: -1px;
|
|
376
|
-
margin-left: -1px;
|
|
377
|
-
}
|
|
378
|
-
|
|
379
374
|
.radio-wrapper .rc-checkbox-inner {
|
|
380
375
|
border-radius: 50%;
|
|
381
376
|
}
|
|
@@ -420,7 +415,7 @@ body .rc-checkbox:hover .rc-checkbox-inner, body .rc-checkbox-input:focus + .rc-
|
|
|
420
415
|
border-color: #3a70ba;
|
|
421
416
|
}
|
|
422
417
|
|
|
423
|
-
.checkbox-wrapper .rc-checkbox.rc-checkbox-checked .rc-checkbox-inner:after {
|
|
418
|
+
.pda-modal .checkbox-wrapper .rc-checkbox.rc-checkbox-checked .rc-checkbox-inner:after {
|
|
424
419
|
left: 4px;
|
|
425
420
|
top: 1px;
|
|
426
421
|
width: 4px;
|
package/lib/utils/errors.js
CHANGED
|
@@ -8,7 +8,7 @@ exports.isError = void 0;
|
|
|
8
8
|
var _ramda = require("ramda");
|
|
9
9
|
|
|
10
10
|
var isError = function isError(error, serverErrors) {
|
|
11
|
-
return !!(0, _ramda.pathEq)(['graphQLErrors', 0, 'message'], error, serverErrors) || !!(0, _ramda.pathEq)(['data', 'message'], error, serverErrors);
|
|
11
|
+
return !!(0, _ramda.pathEq)(['graphQLErrors', 0, 'message'], error, serverErrors) || !!(0, _ramda.pathEq)(['data', 'message'], error, serverErrors) || !!(0, _ramda.pathEq)(['message'], error, serverErrors);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.isError = isError;
|
package/package.json
CHANGED
package/src/components/Fields.js
CHANGED
|
@@ -47,7 +47,9 @@ const getFieldComponent = (field, components) => {
|
|
|
47
47
|
) : Select,
|
|
48
48
|
phone: PhoneInput,
|
|
49
49
|
boolean: Boolean,
|
|
50
|
-
choice:
|
|
50
|
+
choice: prop('checkboxes', settings) ? (
|
|
51
|
+
prop('multiple', settings) ? Checkbox : Radio
|
|
52
|
+
) : Select,
|
|
51
53
|
country: LocationSelect,
|
|
52
54
|
region: LocationSelect,
|
|
53
55
|
city: LocationSelect,
|
|
@@ -50,17 +50,19 @@ const commonStyle = `
|
|
|
50
50
|
border-color: #3a70bb;
|
|
51
51
|
}
|
|
52
52
|
.opd-html-form input[type="checkbox"]:checked:before {
|
|
53
|
-
|
|
53
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAA21JREFUaEPtmF3oVUUUxX+rsOiD6MMgiSQMIYIyEE3wIzERBQmzIKiwBCnxwUTEerAX66UkwkwoiCALIujLIKO0IoIKKnqoXrTHfMgHQ8oEy5ZsHU2u556Zc/733v/9w53Xs2Zmrb337DVzxAQfmuD8GQkY7wyOMjDKQEcEbC8G3gR2As9Icl2QhqqEbN8A/ABcm0jvAR6S9Ec3EUMjwPYk4AtgbgfZX4GVkn6qEjFMAl4GHusS6b+ANZLe7vw+FAJsrwJezzSEOAv3SXrvXNy4C7A9A/gGuCQj4AQwX1Jgz45xFWD7SuB74KaCdvykpGeHpoRsR/DeBe4pIP8hsKKqpY5bBmxvAZ4uIH8AmCXpyNB0Idt3AZ8AF2YEHIu2KunHofGBCrOq0/CIpNruNNASsn0x8FWUREHp7JC0PocbtIBXgEdzpIBvgTslHc9hBybA9oPpkpbjdAiYKem3HDC+D0SA7duSWV1aYFbLJO0tIT8QAbavAr4rNKsnJD1XSr5IQDKctVGXde2salPbFwC7geUFpN4H7s3d/xs7se1twCbgKHC3pM8LyJyC2H4K2FqArzWruvm1Z8B2OGU45pnxd1i/pE9zpBqYVQRmjqSfc2s2cmLbG4AXKiZFa7tf0gfdNrQ9Nb2sJheQeljSrgJcJaQyA7bXAS/VdKl/gAckvdO5akOzelHS423JVx5i20uAj4E4gHXjX2C1pHiAnx22S83qa2ChpAhG63FeBmwvAKIPX1Sw6n/xDJT0ajq0q4HXCub9nszqYAG2FtKthJalu3rulXSKN7AxPcgjqj03qzoFXbtQ6iLRwy8rjNJh4OoC7GZJ0Zp7MnJtdB7wEXBFT3Y7bWrRhmt/VjXZK3sXsj0zPT6uabJwBXY/MLvby6rt2lkB6XDeAuwDprTcKMzqDkm/tJzfdVqRgCTi5iTi+hYkVkl6o8W87JRiAUnEjcBnwLTsyv8DtksKV+/LaCQgiYhrQpTT9AJG8RMqzCr7sipYqxLSWEAScR0QF7pbazbumVnViWslIImIX+Ah4vaKDeKasVjSl20jWzqvtYAkIn4Nxr1pTseGmyQ9X0piLLgxCUgiLk+vrkWJSM/Nqi8ldO6ituO68RYQZrdU0p9jiWqTuWPOQJPN+oEdCehHVJusOcpAk2j1AzvhM3ASm876Mart7QEAAAAASUVORK5CYII=");
|
|
54
54
|
position: absolute;
|
|
55
|
-
left:
|
|
55
|
+
left: 2px;
|
|
56
56
|
top: 2px;
|
|
57
|
-
display: table;
|
|
58
|
-
width: 4px;
|
|
59
|
-
height: 7px;
|
|
60
|
-
border: 2px solid #ffffff;
|
|
61
57
|
border-top: 0;
|
|
62
58
|
border-left: 0;
|
|
63
|
-
content: '
|
|
59
|
+
content: '';
|
|
60
|
+
display: inline-block;
|
|
61
|
+
border-top: 0;
|
|
62
|
+
border-left: 0;
|
|
63
|
+
width: 14px;
|
|
64
|
+
height: 14px;
|
|
65
|
+
background-size: 12px;
|
|
64
66
|
}
|
|
65
67
|
.opd-html-form input[type="checkbox"]:required::after {
|
|
66
68
|
content: "*";
|
|
@@ -166,7 +166,7 @@ class Select extends Component {
|
|
|
166
166
|
options={options}
|
|
167
167
|
mode={multiple ? 'multiple' : 'single'}
|
|
168
168
|
{...(isError ? { open: false } : {})}
|
|
169
|
-
virtual
|
|
169
|
+
virtual={false}
|
|
170
170
|
allowClear
|
|
171
171
|
showArrow
|
|
172
172
|
getPopupContainer={() => this.selectContainer.current}
|