@redneckz/wildless-cms-uni-blocks 0.14.641 → 0.14.642
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/api/dadataHints/dadataHintsType.d.ts +2 -0
- package/bundle/bundle.umd.js +14 -5
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +3 -0
- package/bundle/ui-kit/FormField/validators.d.ts +2 -0
- package/dist/api/RetailAPI/sendSignalToProcess.js +1 -1
- package/dist/api/RetailAPI/sendSignalToProcess.js.map +1 -1
- package/dist/api/dadataHints/dadataHintsType.d.ts +2 -0
- package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +3 -0
- package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/dist/components/CreditForm/creditFormStepsData.js +4 -0
- package/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/AddressField.js +3 -0
- package/dist/ui-kit/FormField/Fields/AddressField.js.map +1 -1
- package/dist/ui-kit/FormField/getObjectValidator.js +3 -3
- package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/dist/ui-kit/FormField/validators.d.ts +2 -0
- package/dist/ui-kit/FormField/validators.js +4 -1
- package/dist/ui-kit/FormField/validators.js.map +1 -1
- package/lib/api/RetailAPI/sendSignalToProcess.js +1 -1
- package/lib/api/RetailAPI/sendSignalToProcess.js.map +1 -1
- package/lib/api/dadataHints/dadataHintsType.d.ts +2 -0
- package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +3 -0
- package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/lib/components/CreditForm/creditFormStepsData.js +4 -0
- package/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
- package/lib/ui-kit/FormField/Fields/AddressField.js +3 -0
- package/lib/ui-kit/FormField/Fields/AddressField.js.map +1 -1
- package/lib/ui-kit/FormField/getObjectValidator.js +4 -4
- package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/lib/ui-kit/FormField/validators.d.ts +2 -0
- package/lib/ui-kit/FormField/validators.js +2 -0
- package/lib/ui-kit/FormField/validators.js.map +1 -1
- package/mobile/bundle/api/dadataHints/dadataHintsType.d.ts +2 -0
- package/mobile/bundle/bundle.umd.js +14 -5
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +3 -0
- package/mobile/bundle/ui-kit/FormField/validators.d.ts +2 -0
- package/mobile/dist/api/RetailAPI/sendSignalToProcess.js +1 -1
- package/mobile/dist/api/RetailAPI/sendSignalToProcess.js.map +1 -1
- package/mobile/dist/api/dadataHints/dadataHintsType.d.ts +2 -0
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +3 -0
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/CreditForm/creditFormStepsData.js +4 -0
- package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/AddressField.js +3 -0
- package/mobile/dist/ui-kit/FormField/Fields/AddressField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js +3 -3
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/validators.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/validators.js +4 -1
- package/mobile/dist/ui-kit/FormField/validators.js.map +1 -1
- package/mobile/lib/api/RetailAPI/sendSignalToProcess.js +1 -1
- package/mobile/lib/api/RetailAPI/sendSignalToProcess.js.map +1 -1
- package/mobile/lib/api/dadataHints/dadataHintsType.d.ts +2 -0
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +3 -0
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/CreditForm/creditFormStepsData.js +4 -0
- package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/AddressField.js +3 -0
- package/mobile/lib/ui-kit/FormField/Fields/AddressField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js +4 -4
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/validators.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/validators.js +2 -0
- package/mobile/lib/ui-kit/FormField/validators.js.map +1 -1
- package/mobile/src/api/RetailAPI/sendSignalToProcess.ts +1 -1
- package/mobile/src/api/dadataHints/dadataHintsType.ts +2 -0
- package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +3 -0
- package/mobile/src/components/CreditForm/creditFormStepsData.tsx +4 -0
- package/mobile/src/ui-kit/FormField/Fields/AddressField.tsx +3 -0
- package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +4 -3
- package/mobile/src/ui-kit/FormField/validators.ts +7 -0
- package/package.json +1 -1
- package/src/api/RetailAPI/sendSignalToProcess.ts +1 -1
- package/src/api/dadataHints/dadataHintsType.ts +2 -0
- package/src/components/ApplicationLeadForm/getInitialFormState.tsx +3 -0
- package/src/components/CreditForm/creditFormStepsData.tsx +4 -0
- package/src/ui-kit/FormField/Fields/AddressField.tsx +3 -0
- package/src/ui-kit/FormField/getObjectValidator.tsx +4 -3
- package/src/ui-kit/FormField/validators.ts +7 -0
|
@@ -45,6 +45,8 @@ export interface DaDataAddress {
|
|
|
45
45
|
settlement_with_type: Nullable<string>;
|
|
46
46
|
street: Nullable<string>;
|
|
47
47
|
fias_code: string;
|
|
48
|
+
qc_complete: Nullable<string>;
|
|
49
|
+
qc_house: Nullable<string>;
|
|
48
50
|
}
|
|
49
51
|
declare type DaDataResponseItem = Partial<DaDataFio & DaDataEmail & DaDataPassportFms & DaDataOrganization & DaDataAddress>;
|
|
50
52
|
export interface ListRequestOption {
|
package/bundle/bundle.umd.js
CHANGED
|
@@ -1451,6 +1451,8 @@
|
|
|
1451
1451
|
const snilsValidator = (errorMsg) => validator(snilsValidate)(errorMsg);
|
|
1452
1452
|
const emailValidate = (email) => /^[^\s@]+@[^\s@]+\.[a-zA-Z]{2,4}$/.test(email);
|
|
1453
1453
|
const emailValidator = (errorMsg) => validator((_) => emailValidate(_))(errorMsg);
|
|
1454
|
+
const addressDaDataValidate = (address) => Boolean(address.qc === '0' && address.qcComplete === '0' && address.qcHouse === '2');
|
|
1455
|
+
const addressDaDataValidator = () => validator(addressDaDataValidate)('Укажите регион, город/населенный пункт, улицу, дом, квартиру');
|
|
1454
1456
|
|
|
1455
1457
|
const validatorObj = {
|
|
1456
1458
|
typeForm: defaultValidator(),
|
|
@@ -1487,7 +1489,7 @@
|
|
|
1487
1489
|
experience5Years: jobNumberValidator('Укажите общий стаж за последние 5 лет'),
|
|
1488
1490
|
jobsNumber: jobNumberValidator('Укажите количество мест работы за последние 5 лет'),
|
|
1489
1491
|
beginDate: defaultValidator('Укажите дату заключения трудового договора'),
|
|
1490
|
-
addressFact:
|
|
1492
|
+
addressFact: addressDaDataValidator(),
|
|
1491
1493
|
partnerComments: defaultValidator(),
|
|
1492
1494
|
collectionCount: defaultValidator(),
|
|
1493
1495
|
comment: defaultValidator(),
|
|
@@ -1516,8 +1518,8 @@
|
|
|
1516
1518
|
conscription: defaultValidator(),
|
|
1517
1519
|
armyIdFlg: agreementValidator,
|
|
1518
1520
|
sex: defaultValidator('Укажите свой пол'),
|
|
1519
|
-
addressRegistration:
|
|
1520
|
-
organizationAddress:
|
|
1521
|
+
addressRegistration: addressDaDataValidator(),
|
|
1522
|
+
organizationAddress: addressDaDataValidator(),
|
|
1521
1523
|
participantDateRegistration: defaultValidator('Укажите дату регистрации'),
|
|
1522
1524
|
retirementIncome: defaultValidator(),
|
|
1523
1525
|
otherIncome: defaultValidator(),
|
|
@@ -1724,6 +1726,9 @@
|
|
|
1724
1726
|
region: item?.data?.region,
|
|
1725
1727
|
regionCode: item?.data?.region_kladr_id ? item?.data?.region_kladr_id.substring(0, 2) : '',
|
|
1726
1728
|
street: item?.data?.house,
|
|
1729
|
+
qc: item?.data?.qc,
|
|
1730
|
+
qcComplete: item?.data?.qc_complete,
|
|
1731
|
+
qcHouse: item?.data?.qc_house,
|
|
1727
1732
|
});
|
|
1728
1733
|
}, []);
|
|
1729
1734
|
const onChange = useCallback((value) => {
|
|
@@ -5881,7 +5886,7 @@
|
|
|
5881
5886
|
})(STATUS_TYPE || (STATUS_TYPE = {}));
|
|
5882
5887
|
const getTaskStatus = (body) => doRequest('/user-data/getTaskStatus', 'POST', body);
|
|
5883
5888
|
|
|
5884
|
-
const sendSignalToProcess = (body) => doRequest('/
|
|
5889
|
+
const sendSignalToProcess = (body) => doRequest('/user-data/sendSignalToProcess', 'POST', body);
|
|
5885
5890
|
|
|
5886
5891
|
const CreditFormStatus = JSX(({ title, description: dsc, infoCard, sectionInfoTitle, sectionInfo, sectionAdditionalTitle, sectionInfoAdditional, buttonText, interval, ...props }) => (jsxs(BlockWrapper, { ...props, children: [jsxs("div", { className: "flex flex-col md:flex-row items-center", children: [jsx(Headline, { headlineVersion: "M", title: title, description: dsc, align: "text-left", padding: "p-xl", className: "w-full" }), interval ? jsx(TimerCircle, { interval: interval }) : null] }), jsx(SectionInfo, { title: sectionInfoTitle, items: sectionInfo }), jsx(SectionInfo, { title: sectionAdditionalTitle, items: sectionInfoAdditional, countColumns: true }), infoCard?.__html ? (jsx(InfoCard, { __html: infoCard?.__html, icon: infoCard?.icon, link: {
|
|
5887
5892
|
text: infoCard?.link?.text,
|
|
@@ -6470,6 +6475,10 @@
|
|
|
6470
6475
|
columns: 1,
|
|
6471
6476
|
inputs: [{ fieldType: 'common', name: 'snils', required: true }],
|
|
6472
6477
|
},
|
|
6478
|
+
{
|
|
6479
|
+
columns: 1,
|
|
6480
|
+
inputs: [{ fieldType: 'common', name: 'conscription', required: true }],
|
|
6481
|
+
},
|
|
6473
6482
|
{
|
|
6474
6483
|
columns: 2,
|
|
6475
6484
|
inputs: [{ fieldType: 'common', name: 'armyIdFlg' }],
|
|
@@ -8819,7 +8828,7 @@
|
|
|
8819
8828
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
8820
8829
|
});
|
|
8821
8830
|
|
|
8822
|
-
const packageVersion = "0.14.
|
|
8831
|
+
const packageVersion = "0.14.641";
|
|
8823
8832
|
|
|
8824
8833
|
exports.Blocks = Blocks;
|
|
8825
8834
|
exports.ContentPage = ContentPage;
|