UNPKG

@docsvision/webclient

Version:

Type definitions for DocsVision WebClient scripts and extensions.

173 lines (172 loc) 6.53 kB
import { PowersDirectoryParams } from "@docsvision/webclient/BackOffice/PowersDirectory"; import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models"; import { ModalHost } from "@docsvision/webclient/Helpers/ModalHost"; import { ShowSecurityDescriptorDialogProps } from "@docsvision/webclient/Platform/SecurityDescriptorDialog"; import { $MessageBox } from "@docsvision/webclient/System/$MessageBox"; import { ComponentLogic } from "@docsvision/web/core/component"; import { PowersDirectoryDataType } from "@docsvision/webclient/BackOffice/PowersRootSectionConstants"; import { IPowersTreeRow } from "@docsvision/webclient/BackOffice/IPowersTreeRow"; import { IButtonDescription } from "@docsvision/webclient/BackOffice/PowersDirectoryTreeAddButton"; import React from "react"; export declare const sectionTabs: string[]; export declare type PowersDirectorySearchResponseT = { items: GenModels.SearchItemModel[]; hasMore: boolean; totalCount: number; directoryTimestamp?: number; }; export interface IPowersDirectoryLogicOptions extends PowersDirectoryParams { showDeleteConfirmationDialog: (entityName: string, services: $MessageBox, isSection: boolean, dataType: PowersDirectoryDataType) => Promise<void>; showSecurityDescriptorDialog: (props: ShowSecurityDescriptorDialogProps) => ModalHost; showCreateSectionDialog: (addSection: (value?: string) => Promise<void>, loadCreateSectionLayout: any, services: any, rootSection?: any) => Promise<void>; showEditSectionDialog: (editSection: (value?: string) => Promise<void>, loadEditSectionLayout: any, services: any, rootSection?: any) => Promise<void>; showEditEmployeeDialog: (editEmployee: (value?: string) => Promise<void>, loadEditEmployeeLayout: any, services: any, EmployeeRow?: any) => Promise<void>; showInsufficientAccessRightsMessage: (services: $MessageBox) => Promise<void>; } export declare class PowersDirectoryLogic extends ComponentLogic<IPowersDirectoryLogicOptions> { protected domain: import("effector").Domain; $tree: import("effector").Store<IPowersTreeRow[]>; $rootSectionId: import("effector").Store<string>; sectionSelected: import("effector").Event<IPowersTreeRow>; $selectedSection: import("effector").Store<IPowersTreeRow>; initSelection(): void; getPlaceholderInfoText: import("effector").Event<void>; initActiveTab(): void; $showAddRowButtons: import("effector").Store<boolean>; clickAddRowGroupButton: import("effector").Event<object>; clickAddRowCodeButton: import("effector").Event<object>; clickImportRowGroupButton: import("effector").Event<object>; showAddRowButtonsToggle: import("effector").Event<void>; $addRowButtons: import("effector").Store<IButtonDescription[]>; initAddRowButtons(): void; contextMenu: import("effector").Event<React.MouseEvent<Element, MouseEvent>>; contextMenuFx: import("effector").Effect<React.MouseEvent<Element, MouseEvent>, void, Error>; $contextMenuName: import("effector").Store<string>; initMainContextMenu(): void; componentDidMount: import("effector").Event<void>; checkReadDirectoryAccess: import("effector").Effect<void, boolean, Error>; $readDirectoryAccess: import("effector").Store<boolean>; loadRootSectionsFx: import("effector").Effect<void, IPowersTreeRow[], Error>; loadSubsectionsFx: import("effector").Effect<{ parentSectionId: string; }, IPowersTreeRow[], Error>; reloadSubsectionsFx: import("effector").Effect<{ parentSectionId: string; expanded?: boolean; }, IPowersTreeRow[], Error>; reloadSubsection: import("effector").Event<{ parentSectionId: string; expanded?: boolean; }>; loadSectionsFx: import("effector").Effect<{ parentSectionId: string; }, IPowersTreeRow[], Error>; initTreeLoading(options: PowersDirectoryParams): void; $placeholderInfoText: import("effector").Store<string>; initInfo(options: PowersDirectoryParams): void; showSectionInfoDialog: import("effector").Event<{ section: IPowersTreeRow; }>; loadSectionInfoLayoutFx: import("effector").Effect<{ section: IPowersTreeRow; }, GenModels.LayoutViewModel, Error>; loadSectionSummaryLayoutFx: import("effector").Effect<{ section: IPowersTreeRow; }, GenModels.LayoutViewModel, Error>; canShowSectionEditDialog: import("effector").Event<{ section: IPowersTreeRow; }>; showSectionEditDialog: import("effector").Event<{ section: IPowersTreeRow; }>; loadSectionEditLayoutFx: import("effector").Effect<{ section: IPowersTreeRow; }, GenModels.LayoutViewModel, Error>; sectionEditDialogAccepted: import("effector").Event<{ section: IPowersTreeRow; }>; canShowSectionCreateDialog: import("effector").Event<{ parentSection: IPowersTreeRow; type: PowersDirectoryDataType; }>; showSectionCreateDialog: import("effector").Event<{ parentSection: IPowersTreeRow; type: PowersDirectoryDataType; }>; sectionCreateDialogAccepted: import("effector").Event<{ parentSection: IPowersTreeRow; }>; loadSectionCreateLayoutFx: import("effector").Effect<{ parentSection: IPowersTreeRow; type?: GenModels.DirectoryDataType; }, GenModels.LayoutViewModel, Error>; initSectionModals(options: IPowersDirectoryLogicOptions): void; canDeleteSection: import("effector").Event<{ sectionId?: string; type?: PowersDirectoryDataType; }>; deleteSection: import("effector").Event<{ sectionId?: string; type?: PowersDirectoryDataType; }>; deleteSectionFx: import("effector").Effect<{ section?: IPowersTreeRow; type?: PowersDirectoryDataType; }, void, Error>; $deletingSection: import("effector").Store<IPowersTreeRow[]>; confirmDeleteFx: import("effector").Effect<{ entityName: string; isSection: boolean; dataType: PowersDirectoryDataType; }, void, Error>; $loading: import("effector").Store<IPowersTreeRow[]>; showSecuritySettings: import("effector").Event<{ sectionId?: string; sectionType?: PowersDirectoryDataType; descriptorTargetType?: number; }>; initPowersContextMenu(options: IPowersDirectoryLogicOptions): void; init(options: IPowersDirectoryLogicOptions): void; }