Loading libs/forms/src/lib/directives/form.directive.ts +8 −8 Original line number Diff line number Diff line Loading @@ -339,7 +339,7 @@ export class FormDirective<T extends Record<string, any> = any> return false; } private loadInitialState(form: RxapFormGroup): void { protected loadInitialState(form: RxapFormGroup): void { if (this.initial) { if (isDevMode()) { console.log('use the value from input initial'); Loading Loading @@ -389,7 +389,7 @@ export class FormDirective<T extends Record<string, any> = any> } } private loadSuccessful(value: any) { protected loadSuccessful(value: any) { if (this.loadSuccessfulMethod) { this.loadSuccessfulMethod.call(value); } else if (isDevMode()) { Loading @@ -399,7 +399,7 @@ export class FormDirective<T extends Record<string, any> = any> } } private loadFailed(error: Error) { protected loadFailed(error: Error) { console.debug('Load Error:', error); console.error('Load Error:', error.message); if (this.loadFailedMethod) { Loading @@ -421,7 +421,7 @@ export class FormDirective<T extends Record<string, any> = any> return clone(value); } private submit() { protected submit() { const value = this.getSubmitValue(); if (this.submitMethod) { Reflect.set(this, 'submitted', false); Loading Loading @@ -467,7 +467,7 @@ export class FormDirective<T extends Record<string, any> = any> } } private submitFailed(error: Error) { protected submitFailed(error: Error) { console.debug('Submit Error:', error); console.error('Submit Error:', error.message); if (this.submitFailedMethod) { Loading @@ -480,7 +480,7 @@ export class FormDirective<T extends Record<string, any> = any> } } private submitSuccessful(value: any) { protected submitSuccessful(value: any) { if (this.submitSuccessfulMethod) { this.submitSuccessfulMethod.call(value); } else if (isDevMode()) { Loading Loading
libs/forms/src/lib/directives/form.directive.ts +8 −8 Original line number Diff line number Diff line Loading @@ -339,7 +339,7 @@ export class FormDirective<T extends Record<string, any> = any> return false; } private loadInitialState(form: RxapFormGroup): void { protected loadInitialState(form: RxapFormGroup): void { if (this.initial) { if (isDevMode()) { console.log('use the value from input initial'); Loading Loading @@ -389,7 +389,7 @@ export class FormDirective<T extends Record<string, any> = any> } } private loadSuccessful(value: any) { protected loadSuccessful(value: any) { if (this.loadSuccessfulMethod) { this.loadSuccessfulMethod.call(value); } else if (isDevMode()) { Loading @@ -399,7 +399,7 @@ export class FormDirective<T extends Record<string, any> = any> } } private loadFailed(error: Error) { protected loadFailed(error: Error) { console.debug('Load Error:', error); console.error('Load Error:', error.message); if (this.loadFailedMethod) { Loading @@ -421,7 +421,7 @@ export class FormDirective<T extends Record<string, any> = any> return clone(value); } private submit() { protected submit() { const value = this.getSubmitValue(); if (this.submitMethod) { Reflect.set(this, 'submitted', false); Loading Loading @@ -467,7 +467,7 @@ export class FormDirective<T extends Record<string, any> = any> } } private submitFailed(error: Error) { protected submitFailed(error: Error) { console.debug('Submit Error:', error); console.error('Submit Error:', error.message); if (this.submitFailedMethod) { Loading @@ -480,7 +480,7 @@ export class FormDirective<T extends Record<string, any> = any> } } private submitSuccessful(value: any) { protected submitSuccessful(value: any) { if (this.submitSuccessfulMethod) { this.submitSuccessfulMethod.call(value); } else if (isDevMode()) { Loading