import { Observable } from "rxjs"; import { GridPeferences } from "./grids/grid.interface"; import { DynamicDialogConfig } from "primeng/dynamicdialog"; import { InjectionToken } from "@angular/core"; export declare const APP_ID: InjectionToken; export declare const ComponentLookupRegistry: Map; export declare const ComponentLookup: (key: string) => any; export type apiMethod = 'post' | 'get' | 'put' | 'patch' | 'delete' | 'options' | 'copy' | 'head' | 'link' | 'unlink' | 'purge' | 'lock' | 'unlock' | 'propfind' | 'view' | 'email' | undefined; export type onOff = { on: string; off: string; }; export type snackBarExtraButtons = { label: string; class?: string; callback: (p?: any) => void; }; export type notifColors = "success" | "danger" | "warn" | "primary" | "info"; export type envAppConfig = { apiUrl: string; isProd: boolean; isDebug: boolean; hideConsoleLog: boolean; }; export type schemeType = 'dark' | 'light' | 'auto'; export declare function getElementValue(obj: any, attr: string, params?: any): any; export type getLocaleType = { value: string; arrayKeys?: Array; interpolateParams?: () => Object; processInterPolation?: (params: Object) => string; } | undefined; export interface AnyPropertyFunc { (params?: any): any; } export interface StringPropertyFunc { (params?: any): string; } export interface NumberPropertyFunc { (params?: any): number; } export interface BooleanPropertyFunc { (params?: any): boolean; } export interface ArrayAnyPropertyFunc { (params?: any): any[]; } export interface ArrayStringPropertyFunc { (params?: any): string[]; } export interface ArrayNumberPropertyFunc { (params?: any): number[]; } export interface ArrayBooleanPropertyFunc { (params?: any): boolean[]; } export interface ApiCallParams { params?: any; next?: any; previous?: any; api(params?: any, method?: any, nexturl?: any): Observable; callback?(result?: any, p?: any): void; failCallback?(e?: any, p?: any): void; executeAfterCallback?(result?: any, params?: any): void; executeAfterFailCallback?(e?: any, p?: any): void; finally?(p?: any): void; } export interface OptionsAsyncParams { api: (params: any) => Observable; params: any; mapFn?: (result: any, currentValue?: any) => any[]; requiresQuery?: boolean; } export type userPrefType = 'locale' | 'am' | 'gridPref' | 'gridTheme' | 'sidebar' | 'darkMode' | undefined; export interface AppPreferences { ui_theme: 'dark' | 'light' | 'auto'; appId: number; app_name: string; userId?: number; id?: number; } export interface UserPreferences { app: AppPreferences[]; sidebar?: { [p: string]: any; }; grid?: { [p: string]: GridPeferences; }; locale: string; changeType?: { type: userPrefType; value?: any; }; } export interface ValueFilterFunc { (params?: any): boolean; } export interface GenericResponse { myProp: any; } export interface UserModel { id: number | string; name: string; email: string; user_pref_id?: number; } export interface ResponseObj { status: { status_code: number; message: any; }; content: T; response?: { code: number; message: string; }; } export interface ToolBarHeaderSettings { name: string; logo?: { class: string; status: string; }; homeLink?: string; rightIcons?: { notif: boolean; apps: boolean; contacts: boolean; user: boolean; }; } export interface TabsData { path?: string | StringPropertyFunc; icon?: string; label: string; tooltip?: string; iconClass?: boolean | AnyPropertyFunc; disabled?: boolean | BooleanPropertyFunc; isActive?: boolean | BooleanPropertyFunc; onClick?: (p: any) => void; hidden?: boolean | BooleanPropertyFunc; badgeValue?: string | StringPropertyFunc; visited?: boolean | BooleanPropertyFunc; } export interface ConfirmDialogResult { isConfirmed: boolean; newDate?: any; token?: string; newValue?: string; customOptionData?: any; additionalFormData?: any; apiData?: any; rawData?: any; } export interface CustomDialogConfig extends DynamicDialogConfig { pStyleClass?: string; icon?: string | undefined; visible?: boolean | undefined; breakpoints?: any | undefined; draggable?: boolean | undefined; resizable?: boolean | undefined; position?: "top" | "left" | "center" | "right" | "bottom" | "topleft" | "topright" | "bottomleft" | "bottomright"; dialogType?: CONFIRM_DIALOG_TYPE; content: string | undefined; onConfirm(confirmData?: ConfirmDialogResult): void; onCancel?(cancelData?: ConfirmDialogResult): void; } export interface FormTemplate { key: string; value?: any; controlType: string; type?: "text" | "number"; list?: any[]; editable?: boolean; isDynamic?: boolean; toSave?: boolean; disabled?: boolean; min?: number; max?: number; minRows?: number; maxRows?: number; label?: string; required?: boolean; placeholder?: string; appearance?: string; displayKey?: string; valueKey?: string; options?: any[]; isHidden?: boolean; style?: any; inputClass?: string; formClass?: any; emptyLabel?: string; optionsAsyncParams?: OptionsAsyncParams; requireSelection?: boolean; readonly?: boolean; filter?: (searchTerm: any) => any; oldValue?: any; } export type taskStatus = { id: number; name: string; }; export type taskType = { id: number; name: string; }; export declare class TASK_TYPE { static byCode: { [key: string]: string; }; static byName: { [key: string]: number; }; } export declare class TASK_STATUS { static byCode: { [key: string]: string; }; static byName: { [key: string]: number; }; } export type laneType = { id?: number; name: string; position: number; isCollapsed?: boolean; isLocked?: boolean; isNew?: boolean; isHidden?: boolean; }; export type laneItem = { id: number; name: string; laneId: number; position: number; projects?: number[]; modules?: string[]; priority?: number; status?: taskStatus; delay_driver?: string; owner?: string; requestor?: string; task_type?: any; }; export declare enum CONFIRM_DIALOG_TYPE { YES_NO = "yesNo", DATE_PICKER = "datePicker", CUSTOM_OPTIONS = "customOptions", TOKEN = "confirmationToken", LARGE_TEXT = "largeText", GENERIC = "generic" } export declare enum MESSAGE_SEVERITY { ERROR = "error", WARN = "warn", SUCCESS = "success" } export interface CustomOptionButtons { label: string; value: any; icon?: string; isButtonDefault?: boolean; buttonColor?: string; buttonClass?: any; } export interface IViewDetails { data: any; enableHistory?: boolean; modeActions?: IModeActions; isDebug?: boolean; } export interface IModeActions { mode: string; notEditable?: true | BooleanPropertyFunc; actions: { [mode: string]: { lane?: 'history' | undefined; label?: string; icon?: string; title?: string; styleClass?: string | StringPropertyFunc; style?: string | AnyPropertyFunc; callback: (p?: any) => any; disabled?: true | BooleanPropertyFunc; hide?: true | BooleanPropertyFunc; }; }; historyCallback?: (params: any) => Observable>; contentButtonClass?: string; } export interface User { app_metadata: any[]; blocked: boolean; country: string; created_at: string; date_joined: string; email: string; email_verified: boolean; first_name: string; globalChartPref: boolean; globalGridPref: boolean; globalMenubarPref: boolean; globalScheme: schemeType; groups: any[]; id: number; identities: any[]; is_active: boolean; is_deactivated: boolean; is_staff: boolean; is_superuser: boolean; last_ip: string; last_login: string; last_name: string; last_password_reset: string; locale: string; logins_count: number; multifactor: string; phone_number: string; phone_verified: boolean; picture: string; provider: string; updated_at: string; user_id: string; user_metadata: any[]; user_permissions: any[]; username: string; }