@rxap/material-form-system
Version:
Provides directives and a module to enhance Angular Material forms. It includes features such as displaying control errors, clearing input fields, handling required fields, and managing form field visibility based on defined conditions. The package also o
26 lines (25 loc) • 1.18 kB
TypeScript
import { IterableChanges, IterableDiffers, OnDestroy, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
import { NgControl } from '@angular/forms';
import { MatChipEvent } from '@angular/material/chips';
import * as i0 from "@angular/core";
export interface ChipListTemplateContext {
$implicit: string;
onRemoved: (event: MatChipEvent) => void;
}
export declare class ChipListIteratorDirective implements OnInit, OnDestroy {
private readonly template;
private readonly viewContainerRef;
private readonly ngControl;
private readonly differs;
private _subscription?;
private _dirty;
private _differ;
constructor(template: TemplateRef<ChipListTemplateContext>, viewContainerRef: ViewContainerRef, ngControl: NgControl, differs: IterableDiffers);
ngOnInit(): void;
ngOnDestroy(): void;
protected applyChanges(changes: IterableChanges<string>): void;
private onRemoved;
private perViewChange;
static ɵfac: i0.ɵɵFactoryDeclaration<ChipListIteratorDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<ChipListIteratorDirective, "[rxapChipListIterator]", never, {}, {}, never, never, true, never>;
}