@redneckz/wildless-cms-uni-blocks 0.14.936 → 0.14.938
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 +11 -11
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/retail/api/getDictionaries.d.ts +1 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +3 -3
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/dist/retail/api/getDictionaries.d.ts +1 -1
- package/dist/retail/api/getDictionaries.js +2 -2
- package/dist/retail/api/getDictionaries.js.map +1 -1
- package/dist/retail/utils/latinFieldsUtils.js +1 -1
- package/dist/retail/utils/latinFieldsUtils.js.map +1 -1
- package/dist/retail/validator/validators.js +3 -3
- package/dist/retail/validator/validators.js.map +1 -1
- package/dist/ui-kit/Select/filterOptions.js +1 -1
- package/dist/ui-kit/Select/filterOptions.js.map +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +3 -3
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/lib/retail/api/getDictionaries.d.ts +1 -1
- package/lib/retail/api/getDictionaries.js +2 -2
- package/lib/retail/api/getDictionaries.js.map +1 -1
- package/lib/retail/utils/latinFieldsUtils.js +1 -1
- package/lib/retail/utils/latinFieldsUtils.js.map +1 -1
- package/lib/retail/validator/validators.js +3 -3
- package/lib/retail/validator/validators.js.map +1 -1
- package/lib/ui-kit/Select/filterOptions.js +1 -1
- package/lib/ui-kit/Select/filterOptions.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +11 -11
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/retail/api/getDictionaries.d.ts +1 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +3 -3
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/dist/retail/api/getDictionaries.d.ts +1 -1
- package/mobile/dist/retail/api/getDictionaries.js +2 -2
- package/mobile/dist/retail/api/getDictionaries.js.map +1 -1
- package/mobile/dist/retail/utils/latinFieldsUtils.js +1 -1
- package/mobile/dist/retail/utils/latinFieldsUtils.js.map +1 -1
- package/mobile/dist/retail/validator/validators.js +3 -3
- package/mobile/dist/retail/validator/validators.js.map +1 -1
- package/mobile/dist/ui-kit/Select/filterOptions.js +1 -1
- package/mobile/dist/ui-kit/Select/filterOptions.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +3 -3
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/lib/retail/api/getDictionaries.d.ts +1 -1
- package/mobile/lib/retail/api/getDictionaries.js +2 -2
- package/mobile/lib/retail/api/getDictionaries.js.map +1 -1
- package/mobile/lib/retail/utils/latinFieldsUtils.js +1 -1
- package/mobile/lib/retail/utils/latinFieldsUtils.js.map +1 -1
- package/mobile/lib/retail/validator/validators.js +3 -3
- package/mobile/lib/retail/validator/validators.js.map +1 -1
- package/mobile/lib/ui-kit/Select/filterOptions.js +1 -1
- package/mobile/lib/ui-kit/Select/filterOptions.js.map +1 -1
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +3 -3
- package/mobile/src/retail/api/getDictionaries.ts +2 -2
- package/mobile/src/retail/utils/latinFieldsUtils.ts +1 -1
- package/mobile/src/retail/validator/validators.ts +3 -3
- package/mobile/src/ui-kit/Select/filterOptions.ts +1 -1
- package/package.json +1 -1
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +3 -3
- package/src/retail/api/getDictionaries.ts +2 -2
- package/src/retail/utils/latinFieldsUtils.ts +1 -1
- package/src/retail/validator/validators.ts +3 -3
- package/src/ui-kit/Select/filterOptions.ts +1 -1
package/bundle/bundle.umd.js
CHANGED
|
@@ -1426,7 +1426,7 @@
|
|
|
1426
1426
|
|
|
1427
1427
|
const usePopupManager = () => useEmitterWithActions(defaultEventBus.emitter, 'popup');
|
|
1428
1428
|
|
|
1429
|
-
const filterOptions = (options, query, disableFilterOptions) => {
|
|
1429
|
+
const filterOptions = (options, query, disableFilterOptions = false) => {
|
|
1430
1430
|
if (!options?.length || !query?.trim() || disableFilterOptions) {
|
|
1431
1431
|
return options;
|
|
1432
1432
|
}
|
|
@@ -3361,7 +3361,7 @@
|
|
|
3361
3361
|
const codeWordValidator = (errorMsg) => validator((_) => typeof _ === 'string' && _.length >= 3 && _.length <= 21 && codeWordPattern.test(_))(errorMsg ?? ERROR_MESSAGE);
|
|
3362
3362
|
const nameRetailValidator = (errorMsg) => validator((_) => typeof _ === 'string' && _.length > 1 && retailCyrillicPattern.test(_))(errorMsg ?? ERROR_MESSAGE);
|
|
3363
3363
|
const jobNumberValidator = (errorMsg) => validator((_) => typeof _ === 'string' && /^[0-9]{1,2}$/g.test(_))(errorMsg ?? ERROR_MESSAGE);
|
|
3364
|
-
const lengthStringValidator = (inputLength, errorMsg, isFixLength) => validator((_) => typeof _ === 'string' &&
|
|
3364
|
+
const lengthStringValidator = (inputLength, errorMsg, isFixLength = false) => validator((_) => typeof _ === 'string' &&
|
|
3365
3365
|
_.length >= 1 &&
|
|
3366
3366
|
(isFixLength ? _.length === inputLength : _.length <= inputLength))(errorMsg ?? ERROR_MESSAGE);
|
|
3367
3367
|
const limitedBirthdayValidate = ({ minAge, maxAge }) => (date) => {
|
|
@@ -3413,8 +3413,8 @@
|
|
|
3413
3413
|
}
|
|
3414
3414
|
return false;
|
|
3415
3415
|
});
|
|
3416
|
-
const organizationNameValidator = (isDadataOrganization) => validator((_) => Boolean(_) && Boolean(isDadataOrganization))('Укажите наименование организации');
|
|
3417
|
-
const organizationInnValidator = (isDadataOrganization) => validator((_) => isValidInnLength(_) && Boolean(isDadataOrganization))('Укажите ИНН');
|
|
3416
|
+
const organizationNameValidator = (isDadataOrganization = false) => validator((_) => Boolean(_) && Boolean(isDadataOrganization))('Укажите наименование организации');
|
|
3417
|
+
const organizationInnValidator = (isDadataOrganization = false) => validator((_) => isValidInnLength(_) && Boolean(isDadataOrganization))('Укажите ИНН');
|
|
3418
3418
|
|
|
3419
3419
|
const limitedBirthdayValidationData = {
|
|
3420
3420
|
credit: {
|
|
@@ -5079,8 +5079,8 @@
|
|
|
5079
5079
|
return (jsx(RadioButtonGroupControl, { label: "\u0412\u0430\u043B\u044E\u0442\u0430", orientation: "horizontal", items: currencies, ...field(input?.name ?? '') }));
|
|
5080
5080
|
});
|
|
5081
5081
|
|
|
5082
|
-
const getDictionaries = (dictionaries, store) => {
|
|
5083
|
-
Promise.all(Object.entries(dictionaries).map((dictionary) => {
|
|
5082
|
+
const getDictionaries = async (dictionaries, store) => {
|
|
5083
|
+
await Promise.all(Object.entries(dictionaries).map((dictionary) => {
|
|
5084
5084
|
const [fieldName, dictionaryName] = dictionary;
|
|
5085
5085
|
fetchRetailJSON(`/dictionary?dictionaryType=${encodeURIComponent(dictionaryName)}`, 'POST').then((res) => {
|
|
5086
5086
|
store[fieldName] = res;
|
|
@@ -5484,7 +5484,7 @@
|
|
|
5484
5484
|
translatedName = '';
|
|
5485
5485
|
}
|
|
5486
5486
|
else if (translatedName.length + translatedSurame.length > MAX_LENGTH) {
|
|
5487
|
-
translatedName.substring(0, 1);
|
|
5487
|
+
translatedName = translatedName.substring(0, 1);
|
|
5488
5488
|
}
|
|
5489
5489
|
return { translatedName, translatedSurame };
|
|
5490
5490
|
};
|
|
@@ -7081,7 +7081,7 @@
|
|
|
7081
7081
|
useIFrameMode();
|
|
7082
7082
|
const extendedValidatorObj = useMemo(() => getExtendedValidatorObj(productType), [productType]);
|
|
7083
7083
|
const formValidator = useMemo(() => getFormValidator(inputs, extendedValidatorObj), [inputs, extendedValidatorObj]);
|
|
7084
|
-
const changeSubmitFormStatus = (status) => {
|
|
7084
|
+
const changeSubmitFormStatus = (status = false) => {
|
|
7085
7085
|
setOK(status);
|
|
7086
7086
|
};
|
|
7087
7087
|
const initialFormState = useInitApplicationLead({
|
|
@@ -7114,10 +7114,10 @@
|
|
|
7114
7114
|
};
|
|
7115
7115
|
const responseTypeDialog = useDialog(ResponseTypeDialog);
|
|
7116
7116
|
useEffect(() => {
|
|
7117
|
-
if (ok
|
|
7117
|
+
if (ok === false) {
|
|
7118
7118
|
responseTypeDialog.open({
|
|
7119
7119
|
ok,
|
|
7120
|
-
onClose: () => changeSubmitFormStatus(
|
|
7120
|
+
onClose: () => changeSubmitFormStatus(true),
|
|
7121
7121
|
});
|
|
7122
7122
|
}
|
|
7123
7123
|
}, [ok]);
|
|
@@ -12613,7 +12613,7 @@
|
|
|
12613
12613
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
12614
12614
|
});
|
|
12615
12615
|
|
|
12616
|
-
const packageVersion = "0.14.
|
|
12616
|
+
const packageVersion = "0.14.937";
|
|
12617
12617
|
|
|
12618
12618
|
exports.Blocks = Blocks;
|
|
12619
12619
|
exports.ContentPage = ContentPage;
|