@asoftwareworld/form-builder-pro
Version:
ASW Form Builder Pro 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 b
48 lines (47 loc) • 2.52 kB
TypeScript
/**
* @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, CSSFrameworkEnum } from '@asoftwareworld/form-builder-pro/api';
import { AswApiService } from '@asoftwareworld/form-builder-pro/common';
import { AutoCompleteControl } from './autocomplete-control';
import * as i0 from "@angular/core";
export declare class AswAutocomplete implements OnInit {
dialog: MatDialog;
private aswApiService;
constants: any;
icons: any;
filteredOptions: ControlOption[] | undefined;
/**
* Autocomplete control
*/
control: any;
CSSFramework: CSSFrameworkEnum;
isPreviewTemplate: boolean;
propertyPersonalization: string[];
formControls: any[];
autocompleteUpdateEvent: EventEmitter<AutoCompleteControl>;
autocompleteDeleteEvent: EventEmitter<AutoCompleteControl>;
selectionChange: EventEmitter<AutoCompleteControl>;
duplicateControl: EventEmitter<AutoCompleteControl>;
constructor(dialog: MatDialog, aswApiService: AswApiService);
ngOnInit(): void;
private callApiToFetchData;
private setControlOptions;
filter(control: AutoCompleteControl): ControlOption[] | undefined;
/**
* Delete autocomplete control based on control index
* @param control autocomplete control items
*/
deleteAutocompleteDialog(control: AutoCompleteControl): void;
editAutocompleteDialog(control: AutoCompleteControl, formControls: any[]): void;
duplicateAutocompleteControl(control: AutoCompleteControl): void;
private getAllExceptCurrentControl;
static ɵfac: i0.ɵɵFactoryDeclaration<AswAutocomplete, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<AswAutocomplete, "asw-autocomplete", never, { "control": { "alias": "control"; "required": false; }; "CSSFramework": { "alias": "CSSFramework"; "required": false; }; "isPreviewTemplate": { "alias": "isPreviewTemplate"; "required": false; }; "propertyPersonalization": { "alias": "propertyPersonalization"; "required": false; }; "formControls": { "alias": "formControls"; "required": false; }; }, { "autocompleteUpdateEvent": "autocompleteUpdateEvent"; "autocompleteDeleteEvent": "autocompleteDeleteEvent"; "selectionChange": "selectionChange"; "duplicateControl": "duplicateControl"; }, never, never, false, never>;
}