import FabreactorRootStore from "../RootStore"; import FabreactorPanelStore from './PanelStore'; import { FabreactorAction, FabreactorView, FabreactorField, FabreactorDynamicViewType, FabreactorItemForm, FabreactorFieldTotal } from "../../utils"; import { Visibility } from './Visibility'; import { ProgressBar } from './ProgressBar'; export default class FabreactorListStore { private root; panelStore: FabreactorPanelStore; filterPanelVisibility: Visibility; columnOptionsPanelVisibility: Visibility; confirmDeleteVisibility: Visibility; uploadVisibility: Visibility; actionProgress: ProgressBar; errorMessage: string | null; selectedItems?: any[]; itemsDeleteFailedCount: number; columnHeaderField: any; filterPanelField: FabreactorField; customForm: any; isFullWidthDefault: boolean; constructor(root: FabreactorRootStore); initLocalization: () => void; getFieldColor: (item: any, field: FabreactorField, value: any) => Promise; getCurrentFilterValues: () => Promise; getCurrentColumnOptionValues: () => Promise; openFilterPanel: (field: FabreactorField) => void; onLinkClick: (item: any, url: string) => Promise; openColumnOptionsPanel: () => void; onApplyFilter: (selectedItems: any[]) => Promise; onApplyColumnOptions: (selectedItems: any[]) => void; onColumnOrderChanged: (fields: FabreactorField[]) => void; onClearFilter: (key: string) => Promise; getFilterOptions: () => Promise; getDefaultColumnOptionValues: () => Promise<{ key: string; title: string; }[]>; readonly allFields: any[]; getColumnOptions: () => Promise<{ key: any; title: any; }[]>; onOpenForm: (item: any) => void; getSummaryValue: (field: string, total: any) => Promise; onSelectionChanged: (selection: any[]) => void; init: () => Promise; private resetSelection; onOffsetChange: (offsetChange: number) => Promise; onViewChange: (view: FabreactorView, preserve?: boolean) => Promise; getNextPage: () => Promise; onSearchCleared: () => Promise; onSearch: (query: string) => Promise; onUploadConfirmed: (files: any) => Promise; onDeleteConfirmed: () => Promise; onDismissDeleteFailed: () => void; itemDeleteFailed: () => void; onDeleteDismissed: () => void; translateSummary: (total: FabreactorFieldTotal) => any; exportItems: () => Promise; executeServiceActions: (action: FabreactorAction, items?: any[] | null | undefined) => Promise; getViewForm: (item: any) => Promise; getNewForm: () => Promise<{ saveItem: (item: any) => Promise; item: any; groups: import("../../utils").FabreactorFieldGroup[]; actions?: FabreactorAction[] | null | undefined; deleteItem?: ((item: any) => Promise) | undefined; getSuggestions?: ((field: FabreactorField, filter: string, item: any) => Promise) | undefined; getFieldValue?: ((item: any, field: FabreactorField) => Promise) | undefined; getFieldColor?: ((item: any, field: FabreactorField, value: any) => Promise) | undefined; onDismiss?: (() => void) | undefined; image?: string | undefined; latitude?: number | undefined; longitude?: number | undefined; onFormRender?: any; newTabAfterSave?: string | undefined; compact?: boolean | undefined; }>; updateItem: (item: any) => void; deleteItem: (item: any) => void; getFieldValue: (item: any, field: FabreactorField) => Promise; getFieldValueQueued: (itemKey: any, field: FabreactorField) => Promise; private onError; private clearError; onToggleFullWidth: () => void; contextualMenuDismissed: () => void; onOrderBy: (fieldKey: string, descending: boolean) => Promise; readonly actionCancelled: boolean; readonly titleColumn: string; readonly currentViewItem: any; cancelAllRequests: () => void; readonly currentViews: { name: string; key: string; onChange: (query: import("../../utils").FabreactorQuery) => Promise; fields: FabreactorField[]; userFields?: FabreactorField[] | undefined; onUserFieldsChange?: ((fields: FabreactorField[]) => void) | undefined; dynamicViewType?: FabreactorDynamicViewType | undefined; actions?: FabreactorAction[] | undefined; getFilterOptions?: ((field: FabreactorField, query: import("../../utils").FabreactorQuery) => Promise) | undefined; exportFields?: FabreactorField[] | undefined; summary?: import("../../utils").FabreactorFieldHeader[] | undefined; getSummaryValue?: ((field: FabreactorField, query: import("../../utils").FabreactorQuery, total: FabreactorFieldTotal) => Promise) | undefined; }[][]; readonly currentViewFields: any[]; fieldClickMap: (g: any) => any; readonly currentSummaryFields: import("../../utils").FabreactorFieldHeader[] | undefined; readonly items: any[] | null | undefined; readonly orderBy: import("../../utils").FabreactorOrderBy | null | undefined; readonly viewLoadingText: any; readonly viewLoading: boolean; readonly showFullWidthToggle: boolean | undefined; readonly azureApiKey: string | undefined; private onSaveActionForm; private openUploadDialog; private uploadAction; private onActionClick; private actionMapping; onSaveCustomNewForm: () => Promise; onDismissCustomNewForm: () => void; readonly actions: FabreactorAction[]; readonly filterPanelTitle: any; readonly isSticky: boolean; readonly hasColumnOptions: false | FabreactorField[] | null | undefined; readonly hasSearch: boolean; readonly hasNextPage: boolean; readonly selectedItemCount: number; readonly filters: import("../../utils").FabreactorFilter[]; readonly itemProperties: import("../../utils").FabreactorItemProperties; readonly listImage: string | undefined; readonly secondaryListImage: string | undefined; readonly secondaryListImageLink: string | undefined; readonly secondaryListImageTooltip: string | undefined; readonly compact: boolean; readonly currentViewKey: string | null; readonly currentViewKeys: string[] | null; readonly currentView: { name: string; key: string; onChange: (query: import("../../utils").FabreactorQuery) => Promise; fields: FabreactorField[]; userFields?: FabreactorField[] | undefined; onUserFieldsChange?: ((fields: FabreactorField[]) => void) | undefined; dynamicViewType?: FabreactorDynamicViewType | undefined; actions?: FabreactorAction[] | undefined; getFilterOptions?: ((field: FabreactorField, query: import("../../utils").FabreactorQuery) => Promise) | undefined; exportFields?: FabreactorField[] | undefined; summary?: import("../../utils").FabreactorFieldHeader[] | undefined; getSummaryValue?: ((field: FabreactorField, query: import("../../utils").FabreactorQuery, total: FabreactorFieldTotal) => Promise) | undefined; } | null | undefined; readonly dynamicViewOffset: number | null; readonly preview: boolean; readonly language: string | null | undefined; readonly disableItemSelection: boolean | null | undefined; readonly i18n: any; readonly hideCommandBar: boolean | null | undefined; }