Loading libs/forms/src/lib/directives/form.directive.ts +18 −18 Original line number Diff line number Diff line Loading @@ -167,14 +167,14 @@ export class FormDirective<T extends Record<string, any> = any> return this._formDefinition; } public submitting$ = new ToggleSubject(); public submitError$ = new BehaviorSubject<Error | null>(null); public loading$ = new ToggleSubject(); public loaded$ = new ToggleSubject(); public loadingError$ = new BehaviorSubject<Error | null>(null); public readonly submitting$ = new ToggleSubject(); public readonly submitError$ = new BehaviorSubject<Error | null>(null); public readonly loading$ = new ToggleSubject(); public readonly loaded$ = new ToggleSubject(); public readonly loadingError$ = new BehaviorSubject<Error | null>(null); @Required private _formDefinition!: FormDefinition<T>; protected _formDefinition!: FormDefinition<T>; @Input() public submitMethod: FormSubmitMethod<any> | null = null; Loading @@ -195,35 +195,35 @@ export class FormDirective<T extends Record<string, any> = any> @SkipSelf() @Optional() @Inject(RXAP_FORM_LOAD_METHOD) private readonly loadMethod: FormLoadMethod | null = null, protected readonly loadMethod: FormLoadMethod | null = null, // skip self, bc the token is set to null @SkipSelf() @Optional() @Inject(RXAP_FORM_LOAD_FAILED_METHOD) private readonly loadFailedMethod: FormLoadFailedMethod | null = null, protected readonly loadFailedMethod: FormLoadFailedMethod | null = null, // skip self, bc the token is set to null @SkipSelf() @Optional() @Inject(RXAP_FORM_LOAD_SUCCESSFUL_METHOD) private readonly loadSuccessfulMethod: FormLoadSuccessfulMethod | null = null, protected readonly loadSuccessfulMethod: FormLoadSuccessfulMethod | null = null, // skip self, bc the token is set to null @SkipSelf() @Optional() @Inject(RXAP_FORM_SUBMIT_FAILED_METHOD) private readonly submitFailedMethod: FormSubmitFailedMethod | null = null, protected readonly submitFailedMethod: FormSubmitFailedMethod | null = null, // skip self, bc the token is set to null @SkipSelf() @Optional() @Inject(RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD) private readonly submitSuccessfulMethod: FormSubmitSuccessfulMethod | null = null, protected readonly submitSuccessfulMethod: FormSubmitSuccessfulMethod | null = null, // skip self, bc the token is set to null @SkipSelf() @Optional() @Inject(RXAP_FORM_DEFINITION_BUILDER) private readonly formDefinitionBuilder: RxapFormBuilder | null = null, protected readonly formDefinitionBuilder: RxapFormBuilder | null = null, @Optional() @Inject(LoadingIndicatorService) private readonly loadingIndicatorService: LoadingIndicatorService | null = null protected readonly loadingIndicatorService: LoadingIndicatorService | null = null ) { super([], []); if (submitMethod) { Loading Loading @@ -409,7 +409,7 @@ export class FormDirective<T extends Record<string, any> = any> } } private getSubmitValue(): T { protected getSubmitValue(): T { let value: T; if (typeof this._formDefinition[ 'getSubmitValue' ] === 'function') { Loading Loading
libs/forms/src/lib/directives/form.directive.ts +18 −18 Original line number Diff line number Diff line Loading @@ -167,14 +167,14 @@ export class FormDirective<T extends Record<string, any> = any> return this._formDefinition; } public submitting$ = new ToggleSubject(); public submitError$ = new BehaviorSubject<Error | null>(null); public loading$ = new ToggleSubject(); public loaded$ = new ToggleSubject(); public loadingError$ = new BehaviorSubject<Error | null>(null); public readonly submitting$ = new ToggleSubject(); public readonly submitError$ = new BehaviorSubject<Error | null>(null); public readonly loading$ = new ToggleSubject(); public readonly loaded$ = new ToggleSubject(); public readonly loadingError$ = new BehaviorSubject<Error | null>(null); @Required private _formDefinition!: FormDefinition<T>; protected _formDefinition!: FormDefinition<T>; @Input() public submitMethod: FormSubmitMethod<any> | null = null; Loading @@ -195,35 +195,35 @@ export class FormDirective<T extends Record<string, any> = any> @SkipSelf() @Optional() @Inject(RXAP_FORM_LOAD_METHOD) private readonly loadMethod: FormLoadMethod | null = null, protected readonly loadMethod: FormLoadMethod | null = null, // skip self, bc the token is set to null @SkipSelf() @Optional() @Inject(RXAP_FORM_LOAD_FAILED_METHOD) private readonly loadFailedMethod: FormLoadFailedMethod | null = null, protected readonly loadFailedMethod: FormLoadFailedMethod | null = null, // skip self, bc the token is set to null @SkipSelf() @Optional() @Inject(RXAP_FORM_LOAD_SUCCESSFUL_METHOD) private readonly loadSuccessfulMethod: FormLoadSuccessfulMethod | null = null, protected readonly loadSuccessfulMethod: FormLoadSuccessfulMethod | null = null, // skip self, bc the token is set to null @SkipSelf() @Optional() @Inject(RXAP_FORM_SUBMIT_FAILED_METHOD) private readonly submitFailedMethod: FormSubmitFailedMethod | null = null, protected readonly submitFailedMethod: FormSubmitFailedMethod | null = null, // skip self, bc the token is set to null @SkipSelf() @Optional() @Inject(RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD) private readonly submitSuccessfulMethod: FormSubmitSuccessfulMethod | null = null, protected readonly submitSuccessfulMethod: FormSubmitSuccessfulMethod | null = null, // skip self, bc the token is set to null @SkipSelf() @Optional() @Inject(RXAP_FORM_DEFINITION_BUILDER) private readonly formDefinitionBuilder: RxapFormBuilder | null = null, protected readonly formDefinitionBuilder: RxapFormBuilder | null = null, @Optional() @Inject(LoadingIndicatorService) private readonly loadingIndicatorService: LoadingIndicatorService | null = null protected readonly loadingIndicatorService: LoadingIndicatorService | null = null ) { super([], []); if (submitMethod) { Loading Loading @@ -409,7 +409,7 @@ export class FormDirective<T extends Record<string, any> = any> } } private getSubmitValue(): T { protected getSubmitValue(): T { let value: T; if (typeof this._formDefinition[ 'getSubmitValue' ] === 'function') { Loading