feat: enhance form components with validation and dynamic properties; update payment handling and UI interactions

This commit is contained in:
2026-05-24 19:40:02 +03:30
parent cdd2bd6bee
commit eb671d5949
15 changed files with 283 additions and 865 deletions
@@ -87,7 +87,7 @@ export class NativeBridgeService {
window.NativeBridge.pay(request.amount, request.id || '');
return { success: true };
} catch (error) {
this.toastService.info({ text: (error as Error).message });
// this.toastService.info({ text: (error as Error).message });
return { success: false, error: (error as Error).message };
}
// const fn = window.NativeBridge.pay(123, 'test');
@@ -11,6 +11,8 @@ export function greaterThanValidator(minValue: number): ValidatorFn {
return null;
}
console.log('v', v);
const numericValue = typeof v === 'number' ? v : Number(v);
if (Number.isNaN(numericValue)) {
return { greaterThan: 'مقدار باید عددی باشد' };