UNPKG

@nestjs-mod/webhook-afat

Version:

Webhook UI components and tools for AFAT (Angular, Formly, Antd, Transloco) and rest-sdk for work with backend of this module from Angular appliaction

35 lines (34 loc) 2.12 kB
import { EventEmitter, OnInit } from '@angular/core'; import { UntypedFormGroup } from '@angular/forms'; import { TranslocoService } from '@jsverse/transloco'; import { ValidationErrorMetadataInterface } from '@nestjs-mod/afat'; import { FormlyFieldConfig } from '@ngx-formly/core'; import { BehaviorSubject } from 'rxjs'; import { WebhookLogFormService } from '../../services/webhook-log-form.service'; import { WebhookLogMapperService, WebhookLogModel } from '../../services/webhook-log-mapper.service'; import { WebhookLogService } from '../../services/webhook-log.service'; import * as i0 from "@angular/core"; export declare class WebhookLogFormComponent implements OnInit { private readonly nzModalData; private readonly webhookLogService; private readonly translocoService; private readonly webhookLogFormService; private readonly webhookLogMapperService; id?: string; data?: WebhookLogModel; hideButtons?: boolean; afterFind: EventEmitter<WebhookLogModel>; form: UntypedFormGroup; formlyModel$: BehaviorSubject<object | null>; formlyFields$: BehaviorSubject<FormlyFieldConfig<import("@ngx-formly/core").FormlyFieldProps & { [additionalProperties: string]: any; }>[] | null>; errors?: ValidationErrorMetadataInterface[]; constructor(nzModalData: WebhookLogFormComponent, webhookLogService: WebhookLogService, translocoService: TranslocoService, webhookLogFormService: WebhookLogFormService, webhookLogMapperService: WebhookLogMapperService); ngOnInit(): void; setFieldsAndModel(model?: Partial<object>): void; findOne(): import("rxjs").Observable<WebhookLogModel>; private setFormlyFields; static ɵfac: i0.ɵɵFactoryDeclaration<WebhookLogFormComponent, [{ optional: true; }, null, null, null, null]>; static ɵcmp: i0.ɵɵComponentDeclaration<WebhookLogFormComponent, "webhook-log-form", never, { "id": { "alias": "id"; "required": false; }; "data": { "alias": "data"; "required": false; }; "hideButtons": { "alias": "hideButtons"; "required": false; }; }, { "afterFind": "afterFind"; }, never, never, true, never>; }