Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | 4x 1x 1x 1x 1x 1x 1x 1x 1x 1x | import { Observable } from 'rxjs'; import { DynamicFormAction } from '../../dynamic-form-action/dynamic-form-action'; import { DynamicFormElement } from '../dynamic-form-element'; import { DynamicFormElementBase } from '../dynamic-form-element-base'; import { DynamicFormModal } from './dynamic-form-modal'; import { DynamicFormModalDefinition } from './dynamic-form-modal-definition'; import { DynamicFormModalTemplate } from './dynamic-form-modal-template'; export abstract class DynamicFormModalBase< Template extends DynamicFormModalTemplate = DynamicFormModalTemplate, Definition extends DynamicFormModalDefinition<Template> = DynamicFormModalDefinition<Template>, Modal extends DynamicFormModal<Template, Definition> = DynamicFormModal<Template, Definition> > extends DynamicFormElementBase<Template, Definition, Modal> { constructor() { super(); } get trigger(): DynamicFormAction { return this.element.trigger; } get isOpen(): boolean { return this.element.isOpen; } get isOpen$(): Observable<boolean> { return this.element.isOpenChanges; } get children(): DynamicFormElement[] { return this.element.children; } get headerActions(): DynamicFormAction[] { return this.element.headerActions; } get footerActions(): DynamicFormAction[] { return this.element.footerActions; } open(): void { this.element.open(); } close(): void { this.element.close(); } toggle(): void { this.element.toggle(); } } |