@redneckz/wildless-cms-uni-blocks 0.14.927 → 0.14.929
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/bundle/bundle.umd.js +10 -8
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +1 -1
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -1
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/dist/components/DebitForm/DebitFormStepsData.js +1 -1
- package/dist/components/DebitForm/DebitFormStepsData.js.map +1 -1
- package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +1 -1
- package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +3 -2
- package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/dist/retail/components/Fields/LatinNameField.js +1 -1
- package/dist/retail/components/Fields/LatinSurnameField.js +1 -1
- package/dist/retail/validator/validators.js +2 -2
- package/dist/retail/validator/validators.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -1
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/lib/components/DebitForm/DebitFormStepsData.js +1 -1
- package/lib/components/DebitForm/DebitFormStepsData.js.map +1 -1
- package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +1 -1
- package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +3 -2
- package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/lib/retail/components/Fields/LatinNameField.js +1 -1
- package/lib/retail/components/Fields/LatinSurnameField.js +1 -1
- package/lib/retail/validator/validators.js +2 -2
- package/lib/retail/validator/validators.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +10 -8
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/dist/components/DebitForm/DebitFormStepsData.js +1 -1
- package/mobile/dist/components/DebitForm/DebitFormStepsData.js.map +1 -1
- package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +1 -1
- package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +3 -2
- package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/mobile/dist/retail/components/Fields/LatinNameField.js +1 -1
- package/mobile/dist/retail/components/Fields/LatinSurnameField.js +1 -1
- package/mobile/dist/retail/validator/validators.js +2 -2
- package/mobile/dist/retail/validator/validators.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/lib/components/DebitForm/DebitFormStepsData.js +1 -1
- package/mobile/lib/components/DebitForm/DebitFormStepsData.js.map +1 -1
- package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +1 -1
- package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +3 -2
- package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/mobile/lib/retail/components/Fields/LatinNameField.js +1 -1
- package/mobile/lib/retail/components/Fields/LatinSurnameField.js +1 -1
- package/mobile/lib/retail/validator/validators.js +2 -2
- package/mobile/lib/retail/validator/validators.js.map +1 -1
- package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +1 -1
- package/mobile/src/components/DebitForm/DebitFormStepsData.tsx +1 -1
- package/mobile/src/retail/components/ConsentBkiDialog/useConsentBkiDialog.tsx +4 -3
- package/mobile/src/retail/components/Fields/LatinNameField.tsx +1 -1
- package/mobile/src/retail/components/Fields/LatinSurnameField.tsx +1 -1
- package/mobile/src/retail/validator/validators.ts +4 -4
- package/package.json +1 -1
- package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +1 -1
- package/src/components/DebitForm/DebitFormStepsData.tsx +1 -1
- package/src/retail/components/ConsentBkiDialog/useConsentBkiDialog.tsx +4 -3
- package/src/retail/components/Fields/LatinNameField.tsx +1 -1
- package/src/retail/components/Fields/LatinSurnameField.tsx +1 -1
- package/src/retail/validator/validators.ts +4 -4
package/bundle/bundle.umd.js
CHANGED
|
@@ -3229,12 +3229,13 @@
|
|
|
3229
3229
|
|
|
3230
3230
|
const ERROR_MESSAGE = 'Некорректно заполненное поле';
|
|
3231
3231
|
const ADDRESS_ERROR_MESSAGE = 'Укажите регион, город/населенный пункт, улицу, дом';
|
|
3232
|
+
const codeWordPattern = /^[0-9а-яё]*$/i;
|
|
3232
3233
|
const retailCyrillicPattern = /^[\u0400-\u04FF-\s]+$/u;
|
|
3233
3234
|
const retailNotCyrillicPattern = /^(?!\s*$)[^\p{Script=Cyrillic}]+$/u;
|
|
3234
3235
|
const addressDaDataValidate = (address) => Boolean(address.region && (address.city || address.locality) && address.house);
|
|
3235
3236
|
const addressDaDataValidator = () => validator(addressDaDataValidate)(ADDRESS_ERROR_MESSAGE);
|
|
3236
3237
|
const addressOrganizationValidator = () => validator((address) => Boolean(address.fiasCode && (address.city || address.locality) && address.house))(ADDRESS_ERROR_MESSAGE);
|
|
3237
|
-
const codeWordValidator = (errorMsg) => validator((_) => typeof _ === 'string' && _.length >= 3 && _.length <= 21 &&
|
|
3238
|
+
const codeWordValidator = (errorMsg) => validator((_) => typeof _ === 'string' && _.length >= 3 && _.length <= 21 && codeWordPattern.test(_))(errorMsg ?? ERROR_MESSAGE);
|
|
3238
3239
|
const nameRetailValidator = (errorMsg) => validator((_) => typeof _ === 'string' && _.length > 1 && retailCyrillicPattern.test(_))(errorMsg ?? ERROR_MESSAGE);
|
|
3239
3240
|
const jobNumberValidator = (errorMsg) => validator((_) => typeof _ === 'string' && /^[0-9]{1,2}$/g.test(_))(errorMsg ?? ERROR_MESSAGE);
|
|
3240
3241
|
const lengthStringValidator = (inputLength, errorMsg, isFixLength) => validator((_) => typeof _ === 'string' &&
|
|
@@ -5351,7 +5352,7 @@
|
|
|
5351
5352
|
};
|
|
5352
5353
|
const autoTranslateToLatin = (str) => str.replace(/[А-ЯЁа-яё,. -]/g, (_) => REPLACER[_.toLowerCase()].toUpperCase() || '');
|
|
5353
5354
|
|
|
5354
|
-
const MAX_LENGTH$1 =
|
|
5355
|
+
const MAX_LENGTH$1 = 20;
|
|
5355
5356
|
const LatinNameField = JSX(({ field, input }) => {
|
|
5356
5357
|
const latinSurname = field('latinSurname')?.value;
|
|
5357
5358
|
const name = field('name')?.value;
|
|
@@ -5367,7 +5368,7 @@
|
|
|
5367
5368
|
return (jsx(InputControl, { label: "\u0418\u043C\u044F", placeholder: "\u0418\u043C\u044F \u043B\u0430\u0442\u0438\u043D\u0441\u043A\u0438\u043C\u0438 \u0431\u0443\u043A\u0432\u0430\u043C\u0438", maxLength: Math.max(MAX_LENGTH$1 - latinSurname?.length, 1), ...field(input?.name ?? ''), onChange: onChange, ...input }));
|
|
5368
5369
|
});
|
|
5369
5370
|
|
|
5370
|
-
const MAX_LENGTH =
|
|
5371
|
+
const MAX_LENGTH = 20;
|
|
5371
5372
|
const LatinSurnameField = JSX(({ field, input }) => {
|
|
5372
5373
|
const latinName = field('latinName')?.value;
|
|
5373
5374
|
const surname = field('surname')?.value;
|
|
@@ -5938,12 +5939,13 @@
|
|
|
5938
5939
|
console.log(ex);
|
|
5939
5940
|
}
|
|
5940
5941
|
};
|
|
5941
|
-
const handleSubmitBkiConstent = (phone, profileId) => async (confirmStatus) => {
|
|
5942
|
+
const handleSubmitBkiConstent = (phone, profileId, onFail) => async (confirmStatus) => {
|
|
5942
5943
|
if (confirmStatus === 'SIGNED' && phone) {
|
|
5943
5944
|
verifyPhoneDialog.open({
|
|
5944
5945
|
phone,
|
|
5945
5946
|
consents: ['согласие на запрос информации в БКИ'],
|
|
5946
5947
|
onSuccess: handleSuccessVerify(profileId),
|
|
5948
|
+
onFail,
|
|
5947
5949
|
});
|
|
5948
5950
|
}
|
|
5949
5951
|
else {
|
|
@@ -5951,7 +5953,7 @@
|
|
|
5951
5953
|
}
|
|
5952
5954
|
};
|
|
5953
5955
|
return {
|
|
5954
|
-
open: (phone, profileId) => open({ onSubmit: handleSubmitBkiConstent(phone, profileId), onClose }),
|
|
5956
|
+
open: (phone, profileId, onFail) => open({ onSubmit: handleSubmitBkiConstent(phone, profileId, onFail), onClose }),
|
|
5955
5957
|
};
|
|
5956
5958
|
};
|
|
5957
5959
|
|
|
@@ -6449,7 +6451,7 @@
|
|
|
6449
6451
|
goToNextStep();
|
|
6450
6452
|
}
|
|
6451
6453
|
else {
|
|
6452
|
-
consentBkiDialog.open(transformedFormData.phone, profileId);
|
|
6454
|
+
consentBkiDialog.open(transformedFormData.phone, profileId, handleFailSendForm);
|
|
6453
6455
|
}
|
|
6454
6456
|
};
|
|
6455
6457
|
const handleSuccessVerify = async () => {
|
|
@@ -10309,7 +10311,7 @@
|
|
|
10309
10311
|
name: 'infoCard',
|
|
10310
10312
|
label:
|
|
10311
10313
|
// eslint-disable-next-line max-len
|
|
10312
|
-
'Количество символов ограничивается
|
|
10314
|
+
'Количество символов ограничивается 20. При этом, если фамилия и имя на карте содержит более 21 символа, то необходимо сократить имя и указывать на карте только первую букву имени и фамилию, если при таком сокращении фамилия и имя не умещается в количество символов – 20, то указывать только фамилию.',
|
|
10313
10315
|
},
|
|
10314
10316
|
],
|
|
10315
10317
|
},
|
|
@@ -12212,7 +12214,7 @@
|
|
|
12212
12214
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
12213
12215
|
});
|
|
12214
12216
|
|
|
12215
|
-
const packageVersion = "0.14.
|
|
12217
|
+
const packageVersion = "0.14.928";
|
|
12216
12218
|
|
|
12217
12219
|
exports.Blocks = Blocks;
|
|
12218
12220
|
exports.ContentPage = ContentPage;
|