@tap-payments/auth-jsconnect 2.4.92-test → 2.4.94-test
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/build/assets/locales/ar.json +2 -1
- package/build/assets/locales/en.json +2 -1
- package/build/components/ArabicDatePicker/ArabicDatePicker.js +4 -1
- package/build/features/brand/screens/BrandActivities/validation.d.ts +6 -6
- package/build/features/brand/screens/BrandActivities/validation.js +3 -8
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +1 -1
- package/package.json +1 -1
|
@@ -416,5 +416,6 @@
|
|
|
416
416
|
"alert_choose_segment_profit": "يُرجى تحديد الربح",
|
|
417
417
|
"alert_choose_segment_tech": "الرجاء تحديد التقنية",
|
|
418
418
|
"switch_to_islamic_calendar": "التبديل إلى التقويم الهجرى",
|
|
419
|
-
"switch_to_gregorian_calendar": "التبديل إلى التقويم الميلادي"
|
|
419
|
+
"switch_to_gregorian_calendar": "التبديل إلى التقويم الميلادي",
|
|
420
|
+
"choose_any_monthly_income": "رجاءا اختر الدخل الشهرى"
|
|
420
421
|
}
|
|
@@ -446,5 +446,6 @@
|
|
|
446
446
|
"alert_choose_segment_profit": "Please select segment profit",
|
|
447
447
|
"alert_choose_segment_tech": "Please select segment tech",
|
|
448
448
|
"switch_to_islamic_calendar": "Switch to Islamic Calendar",
|
|
449
|
-
"switch_to_gregorian_calendar": "Switch to Gregorian Calendar"
|
|
449
|
+
"switch_to_gregorian_calendar": "Switch to Gregorian Calendar",
|
|
450
|
+
"choose_any_monthly_income": "Please choose monthly income"
|
|
450
451
|
}
|
|
@@ -106,6 +106,9 @@ var DatePicker = function (_a) {
|
|
|
106
106
|
var dateObject = toDateObject(date);
|
|
107
107
|
return dateObject.convert(arabic).format(DATE_FORMAT);
|
|
108
108
|
};
|
|
109
|
-
return (_jsxs(Container, __assign({ disabled: disabled, id: 'arabic-container-calendar' }, { children: [_jsx(InputFieldStyled, { endAdornment: _jsx(ArrowIcon, __assign({ disabled: disabled }, { children: getEndAdornment() })), value: date ? formateDate(date) : '', placeholder: DATE_FORMAT, onClick:
|
|
109
|
+
return (_jsxs(Container, __assign({ disabled: disabled, id: 'arabic-container-calendar' }, { children: [_jsx(InputFieldStyled, { endAdornment: _jsx(ArrowIcon, __assign({ disabled: disabled }, { children: getEndAdornment() })), value: date ? formateDate(date) : '', placeholder: DATE_FORMAT, onClick: function (e) {
|
|
110
|
+
if (!disabled)
|
|
111
|
+
toggleCalender(e);
|
|
112
|
+
}, startAdornment: calenderIcon, disabled: disabled, readOnly: readOnly, dir: dir }), _jsxs(Collapse, __assign({ in: openCalender }, { children: [_jsx(Calendar, __assign({ calendar: arabic, locale: dir === 'rtl' ? arabic_ar : arabic_en, maxDate: rest.maxDate || defaultMax, minDate: defaultMin, format: DATE_FORMAT, onChange: handleOnDateChange, value: date || (isDob ? new Date(getEighteenYearsAgo()) : undefined), className: 'custom-container' }, rest)), _jsx(Divider, {})] }))] })));
|
|
110
113
|
};
|
|
111
114
|
export default memo(DatePicker);
|
|
@@ -17,8 +17,8 @@ export declare const BrandActivitiesValidationSchema: () => yup.ObjectSchema<imp
|
|
|
17
17
|
en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
|
|
18
18
|
}>>[] | undefined>;
|
|
19
19
|
customerLocations: import("yup/lib/array").RequiredArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined>;
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
expectedCustomer: import("yup/lib/object").RequiredObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape>>;
|
|
21
|
+
expectedSale: import("yup/lib/object").RequiredObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape>>;
|
|
22
22
|
termAndConditionChecked: import("yup/lib/boolean").RequiredBooleanSchema<boolean | undefined, import("yup/lib/types").AnyObject>;
|
|
23
23
|
refundPolicy: yup.BooleanSchema<boolean | undefined, import("yup/lib/types").AnyObject, true>;
|
|
24
24
|
transactionPolicy: yup.BooleanSchema<boolean | undefined, import("yup/lib/types").AnyObject, true>;
|
|
@@ -40,8 +40,8 @@ export declare const BrandActivitiesValidationSchema: () => yup.ObjectSchema<imp
|
|
|
40
40
|
en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
|
|
41
41
|
}>>[] | undefined>;
|
|
42
42
|
customerLocations: import("yup/lib/array").RequiredArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined>;
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
expectedCustomer: import("yup/lib/object").RequiredObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape>>;
|
|
44
|
+
expectedSale: import("yup/lib/object").RequiredObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape>>;
|
|
45
45
|
termAndConditionChecked: import("yup/lib/boolean").RequiredBooleanSchema<boolean | undefined, import("yup/lib/types").AnyObject>;
|
|
46
46
|
refundPolicy: yup.BooleanSchema<boolean | undefined, import("yup/lib/types").AnyObject, true>;
|
|
47
47
|
transactionPolicy: yup.BooleanSchema<boolean | undefined, import("yup/lib/types").AnyObject, true>;
|
|
@@ -63,8 +63,8 @@ export declare const BrandActivitiesValidationSchema: () => yup.ObjectSchema<imp
|
|
|
63
63
|
en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
|
|
64
64
|
}>>[] | undefined>;
|
|
65
65
|
customerLocations: import("yup/lib/array").RequiredArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined>;
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
expectedCustomer: import("yup/lib/object").RequiredObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape>>;
|
|
67
|
+
expectedSale: import("yup/lib/object").RequiredObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape>>;
|
|
68
68
|
termAndConditionChecked: import("yup/lib/boolean").RequiredBooleanSchema<boolean | undefined, import("yup/lib/types").AnyObject>;
|
|
69
69
|
refundPolicy: yup.BooleanSchema<boolean | undefined, import("yup/lib/types").AnyObject, true>;
|
|
70
70
|
transactionPolicy: yup.BooleanSchema<boolean | undefined, import("yup/lib/types").AnyObject, true>;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import * as yup from 'yup';
|
|
2
|
-
var objectElements = {
|
|
3
|
-
id: yup.number(),
|
|
4
|
-
name_ar: yup.string(),
|
|
5
|
-
name_en: yup.string()
|
|
6
|
-
};
|
|
7
2
|
export var BrandActivitiesValidationSchema = function () {
|
|
8
3
|
return yup.object().shape({
|
|
9
4
|
activities: yup
|
|
@@ -13,9 +8,9 @@ export var BrandActivitiesValidationSchema = function () {
|
|
|
13
8
|
ar: yup.string().nullable(),
|
|
14
9
|
en: yup.string().nullable()
|
|
15
10
|
})),
|
|
16
|
-
customerLocations: yup.array().required('please_choose_base'),
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
customerLocations: yup.array().min(1, 'please_choose_base').required('please_choose_base'),
|
|
12
|
+
expectedCustomer: yup.object().required('select_expected_customers_serve'),
|
|
13
|
+
expectedSale: yup.object().required('select_expected_sales'),
|
|
19
14
|
termAndConditionChecked: yup.boolean().isTrue('check_terms_cond').required('check_terms_cond'),
|
|
20
15
|
refundPolicy: yup.boolean().required().isTrue('refund_policy_error'),
|
|
21
16
|
transactionPolicy: yup.boolean().required().isTrue('transaction_policy_error')
|
|
@@ -82,7 +82,7 @@ var MonthlyIncome = function (props) {
|
|
|
82
82
|
var error = (_a = monthlyIncomeControl.fieldState.error) === null || _a === void 0 ? void 0 : _a.message;
|
|
83
83
|
return (_jsx(Collapse, __assign({ in: props.show }, { children: _jsxs(ScreenContainer, __assign({ sx: { pb: 0 } }, { children: [_jsx(InputSelect, { label: t('please_enter_actual_income', {
|
|
84
84
|
currency: t(findCurrencyByIso2(countryCode.iso2))
|
|
85
|
-
}), readOnly: props.readOnly, onClick: !!anchorEl ? function () { return onCloseList(); } : onOpenList, placeholder: t('choose_any_source_of_income'), value: (isAr ? income === null || income === void 0 ? void 0 : income.range.ar : income === null || income === void 0 ? void 0 : income.range.en) || '', warningMessage: error && t(error), endAdornment: _jsx(EndAdornmentExpanded, { isVerified: isMonthlyIncomeVerified(income), anchorEl: anchorEl }) }), _jsx(Collapse, __assign({ in: !!anchorEl }, { children: _jsx(SimpleList, { searchKeyPath: 'range.en', searchValuePath: ['range.en', 'range.ar'], list: incomeList, onSelectItem: onSelectItem, renderItem: function (item) {
|
|
85
|
+
}), required: true, readOnly: props.readOnly, onClick: !!anchorEl ? function () { return onCloseList(); } : onOpenList, placeholder: t('choose_any_source_of_income'), value: (isAr ? income === null || income === void 0 ? void 0 : income.range.ar : income === null || income === void 0 ? void 0 : income.range.en) || '', warningMessage: error && t(error), endAdornment: _jsx(EndAdornmentExpanded, { isVerified: isMonthlyIncomeVerified(income), anchorEl: anchorEl }) }), _jsx(Collapse, __assign({ in: !!anchorEl }, { children: _jsx(SimpleList, { searchKeyPath: 'range.en', searchValuePath: ['range.en', 'range.ar'], list: incomeList, onSelectItem: onSelectItem, renderItem: function (item) {
|
|
86
86
|
return (_jsxs(_Fragment, { children: [_jsx(Container, { children: _jsx(IncomeText, __assign({ isSelected: item.id === (income === null || income === void 0 ? void 0 : income.id) }, { children: isAr ? item.range.ar : item === null || item === void 0 ? void 0 : item.range.en })) }), item.id === (income === null || income === void 0 ? void 0 : income.id) && _jsx(CheckIcon, { isVerified: isMonthlyIncomeVerified(item) })] }));
|
|
87
87
|
} }) }))] })) })));
|
|
88
88
|
};
|
|
@@ -5,7 +5,7 @@ export var IndividualInfoValidationSchema = function (objects) {
|
|
|
5
5
|
return yup.object().shape({
|
|
6
6
|
occupation: isUserType ? yup.object().required('alert_choose_occupation') : yup.object().optional(),
|
|
7
7
|
sourceIncome: isUserType ? yup.object().required('choose_any_source_of_income') : yup.object().optional(),
|
|
8
|
-
monthlyIncome: yup.object().optional(),
|
|
8
|
+
monthlyIncome: isUserType ? yup.object().required('choose_any_monthly_income') : yup.object().optional(),
|
|
9
9
|
civilID: yup.array().optional(),
|
|
10
10
|
signatureFileId: yup.array().optional(),
|
|
11
11
|
isPEP: isUserType ? yup.boolean().required('please_choose_relative_pep') : yup.boolean().optional().nullable(),
|