UNPKG

@asoftwareworld/form-builder

Version:

ASW Form Builder helps you with rapid development and designed web forms which includes several controls. The key feature of Form Builder is to make your content attractive and effective. We can customize our control at run time and preview the same befor

47 lines (46 loc) 2.27 kB
/** * @license * Copyright ASW (A Software World) All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file */ import { EventEmitter, OnInit } from '@angular/core'; import { MatDialog } from '@angular/material/dialog'; import { ControlOption } from '@asoftwareworld/form-builder/form-control/core'; import { AutoCompleteControl } from './autocomplete-control'; import * as i0 from "@angular/core"; export declare class AswAutocomplete implements OnInit { dialog: MatDialog; constants: any; filteredOptions: ControlOption[] | undefined; /** * Autocomplete control */ control: AutoCompleteControl | null; /** * Autocomplete control index to help update or delete button from drop area */ controlIndex: number; isPreviewTemplate: boolean; autocompleteUpdateEvent: EventEmitter<{ control: AutoCompleteControl; index: number; }>; autocompleteDeleteEvent: EventEmitter<number>; selectionChange: EventEmitter<AutoCompleteControl>; duplicateControl: EventEmitter<AutoCompleteControl>; constructor(dialog: MatDialog); ngOnInit(): void; filter(control: AutoCompleteControl): ControlOption[] | undefined; /** * Delete autocomplete control based on control index * @param control autocomplete control items * @param controlIndex autocomplete control index */ deleteAutocompleteDialog(control: AutoCompleteControl, controlIndex: number): void; editAutocompleteDialog(control: AutoCompleteControl, controlIndex: number): void; duplicateAutocompleteControl(control: AutoCompleteControl): void; static ɵfac: i0.ɵɵFactoryDeclaration<AswAutocomplete, never>; static ɵcmp: i0.ɵɵComponentDeclaration<AswAutocomplete, "asw-autocomplete", never, { "control": { "alias": "control"; "required": false; }; "controlIndex": { "alias": "controlIndex"; "required": false; }; "isPreviewTemplate": { "alias": "isPreviewTemplate"; "required": false; }; }, { "autocompleteUpdateEvent": "autocompleteUpdateEvent"; "autocompleteDeleteEvent": "autocompleteDeleteEvent"; "selectionChange": "selectionChange"; "duplicateControl": "duplicateControl"; }, never, never, false, never>; }