import { TemplateRef } from '@angular/core'; export type DialogFields = DialogTitle | DialogText | DialogInputFields | DialogAutocompleteFields | DialogSelectFields | DialogCheckboxFields | DialogChipListFields | DialogCustomFields | FileUploadFields | DialogAccordion; export declare enum OGModalEvents { CONFIRM = "confirm", DECLINED = "declined", SELECTION_CHANGE = "selectionChange", AUTOCOMPLETE_CHANGE = "autocompleteChange", AUTOCOMPLETE_BLUR = "autocompleteBlur", AUTOCOMPLETE_KEYPRESS = "autocompleteKeypress", CHECKBOX_CHANGE = "checkboxChange", FILE_UPLOAD = "fileUpload", DATE_CHANGE = "dateChange", CLOSE = "close", FOCUSOUT = "focusout" } export type OkText = string | false | 'no-show'; export type CancelText = string | false | 'no-show'; export interface DialogResponse { event: OGModalEvents; data?: any; type?: string; additionalData?: any; } export interface DialogAccordion { type: 'ACCORDION'; title: string; visible?: (element: any) => boolean; expanded?: boolean; elevation?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24; class?: string; items: Array; translate?: boolean; } export interface DialogTitle { type: 'TITLE'; title: string; visible?: (element: any) => boolean; class?: string; translate?: boolean; } interface DialogText { type: 'TEXT'; text: string; visible?: (element: any) => boolean; class?: string; translate?: boolean; } interface DialogInputFields { type: 'INPUT' | 'TEXTAREA' | 'DATEPICKER'; placeholder: string; name?: string; path?: string; inputType?: string; mask?: string; showMaskTyped?: boolean; clearIfNotMatch?: boolean; dropSpecialCharacters?: boolean; suffix?: string; helperText?: string; maxCharacters?: number; autocomplete?: 'off' | 'on' | 'name' | 'honorific-prefix' | 'given-name' | 'additional-name' | 'family-name' | 'honorific-suffix' | 'nickname' | 'username' | 'current-password' | 'new-password' | 'one-time-code' | 'organization-title' | 'organization' | 'street-address' | 'address-line1' | 'address-line2' | 'address-line3' | 'address-level4' | 'address-level3' | 'address-level2' | 'address-level1' | 'country' | 'country-name' | 'postal-code' | 'cc-name' | 'cc-given-name' | 'cc-additional-name' | 'cc-family-name' | 'cc-number' | 'cc-exp' | 'cc-exp-month' | 'cc-exp-year' | 'cc-csc' | 'cc-type' | 'transaction-currency' | 'transaction-amount' | 'language' | 'bday' | 'bday-day' | 'bday-month' | 'bday-year' | string; required?: (element: any) => boolean; readonly?: (element: any) => boolean; visible?: (element: any) => boolean; min?: (element: any) => any | null; max?: (element: any) => any | null; step?: (element: any) => any | null; parserBeforeSubmit?: (value: any) => any | null; rows?: number; floatingLabel?: 'auto' | 'always' | 'never'; col?: '10' | '15' | '20' | '25' | '30' | '35' | '40' | '45' | '50' | '55' | '60' | '65' | '70' | '75' | '80' | '85' | '90' | '95' | '100'; translate?: boolean; } interface DialogAutocompleteFields { type: 'AUTOCOMPLETE'; placeholder: string; completeOptions: string; debounceTime?: number; name?: string; path?: string; helperText?: string; completeKeyValue?: string; completeKeyText?: string; required?: (element: any) => boolean; readonly?: (element: any) => boolean; visible?: (element: any) => boolean; floatingLabel?: 'auto' | 'always' | 'never'; col?: '10' | '15' | '20' | '25' | '30' | '35' | '40' | '45' | '50' | '55' | '60' | '65' | '70' | '75' | '80' | '85' | '90' | '95' | '100'; translate?: boolean; } interface DialogChipListFields { type: 'CHIP_LIST'; name: string; path?: string; placeholder: string; completeOptions: string; helperText: string; debounceTime?: number; selectable?: (element: any) => boolean; removable?: (element: any) => boolean; required?: (element: any) => boolean; readonly?: (element: any) => boolean; visible?: (element: any) => boolean; floatingLabel?: 'auto' | 'always' | 'never'; col?: '10' | '15' | '20' | '25' | '30' | '35' | '40' | '45' | '50' | '55' | '60' | '65' | '70' | '75' | '80' | '85' | '90' | '95' | '100'; translate?: boolean; } interface DialogSelectFields { type: 'SELECT'; placeholder: string; selectOptions: string; selectKeyValue?: string; selectKeyText?: string; optionTooltipText?: string; selectMultiple?: boolean; name?: string; path?: string; helperText?: string; required?: (element: any) => boolean; readonly?: (element: any) => boolean; visible?: (element: any) => boolean; floatingLabel?: 'auto' | 'always' | 'never'; col?: '10' | '15' | '20' | '25' | '30' | '35' | '40' | '45' | '50' | '55' | '60' | '65' | '70' | '75' | '80' | '85' | '90' | '95' | '100'; translate?: boolean; } interface DialogCheckboxFields { type: 'CHECKBOX'; placeholder: string; name?: string; path?: string; helperText?: string; readonly?: (element: any) => boolean; required?: (element: any) => boolean; visible?: (element: any) => boolean; floatingLabel?: 'auto' | 'always' | 'never'; col?: '10' | '15' | '20' | '25' | '30' | '35' | '40' | '45' | '50' | '55' | '60' | '65' | '70' | '75' | '80' | '85' | '90' | '95' | '100'; translate?: boolean; } interface FileUploadFields { type: 'FILEUPLOAD'; name: string; path?: string; visible?: (element: any) => boolean; additionalParameters?: any; autoAddImages?: boolean; autoUpload?: boolean; clearAfterUpload?: boolean; uploadUrl?: string; cropUrl?: string; deleteUrl?: string; cropImage?: boolean; titleCrop?: string; textCrop?: string; folder?: boolean; maintainAspectRatio?: boolean; aspectRatio?: number; resizeToHeight?: number; resizeToWidth?: number; cropperMinWidth?: number; cropperMinHeight?: number; translate?: boolean; } interface DialogCustomFields { type: 'CUSTOM'; visible?: (element: any) => boolean; template?: TemplateRef; } export {};