@docsvision/webclient 6.1.15 → 6.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Approval/AgreementManagementImpl.d.ts +1 -1
- package/Approval/AgreementStageState.d.ts +1 -0
- package/BackOffice/$WebFrameDirectorySearchInfoStorageService.d.ts +2 -1
- package/BackOffice/AddPartnersEmployeeIconColumn.d.ts +3 -0
- package/BackOffice/CheckPartnersSectionAcccessRights.d.ts +3 -0
- package/BackOffice/ConvertPartnersDirectoryResponseToTree.d.ts +5 -0
- package/BackOffice/ConvertPartnersEmployeeToRow.d.ts +3 -0
- package/BackOffice/DeletePartnersSection.d.ts +3 -0
- package/BackOffice/DirectoryTree.d.ts +2 -0
- package/BackOffice/DirectoryTreeList.d.ts +1 -0
- package/BackOffice/DirectoryTreeLogic.d.ts +9 -0
- package/BackOffice/DirectoryTreeRowSelection.d.ts +21 -0
- package/BackOffice/FindPartnersSection.d.ts +9 -0
- package/BackOffice/GetPartnerIdFromTreeId.d.ts +7 -0
- package/BackOffice/GetPartnersContextMenuNames.d.ts +2 -0
- package/BackOffice/GetPartnersDirectoryIconClassName.d.ts +10 -0
- package/BackOffice/GetPartnersDirectoryRootSectionId.d.ts +6 -0
- package/BackOffice/GetPartnersDirectorySearchItemTab.d.ts +2 -0
- package/BackOffice/GetPartnersEmployeeColumns.d.ts +4 -0
- package/BackOffice/GetPartnersSelectedSearchItemEmployeeId.d.ts +4 -0
- package/BackOffice/GetPartnersSelectedSearchItemSection.d.ts +2 -0
- package/BackOffice/IDirectoryTreeRow.d.ts +2 -0
- package/BackOffice/IPartnersDirectoryOptions.d.ts +12 -0
- package/BackOffice/IPartnersDirectoryTreeNodeData.d.ts +6 -0
- package/BackOffice/IPartnersEmployeeResponseParser.d.ts +6 -0
- package/BackOffice/IPartnersTreeRow.d.ts +4 -0
- package/BackOffice/LoadPartnersEmployeeLayoutFunctions.d.ts +8 -0
- package/BackOffice/LoadPartnersSectionLayoutFunctions.d.ts +7 -0
- package/BackOffice/PartnersDirectory.d.ts +48 -4
- package/BackOffice/PartnersDirectoryAddToGroupModal.d.ts +28 -0
- package/BackOffice/PartnersDirectoryAddToGroupModalLogic.d.ts +50 -0
- package/BackOffice/PartnersDirectoryButtonsPanel.d.ts +8 -0
- package/BackOffice/PartnersDirectoryCompanySaving.d.ts +4 -0
- package/BackOffice/PartnersDirectoryConstants.d.ts +35 -0
- package/BackOffice/PartnersDirectoryContainer.d.ts +7 -0
- package/BackOffice/PartnersDirectoryDialogLocations.d.ts +6 -0
- package/BackOffice/PartnersDirectoryEmployeeColumns.d.ts +6 -0
- package/BackOffice/PartnersDirectoryEmployeesTabFrame.d.ts +8 -0
- package/BackOffice/PartnersDirectoryGroupsTree.d.ts +34 -0
- package/BackOffice/PartnersDirectoryHead.d.ts +7 -0
- package/BackOffice/PartnersDirectoryInfo.d.ts +16 -0
- package/BackOffice/PartnersDirectoryLogic.d.ts +366 -0
- package/BackOffice/PartnersDirectoryRemoveFromGroupIconGridPlugin.d.ts +15 -0
- package/BackOffice/PartnersDirectoryRootSectionConstants.d.ts +15 -0
- package/BackOffice/PartnersDirectorySearchFilters.d.ts +5 -0
- package/BackOffice/PartnersDirectorySelectedButtons.d.ts +11 -0
- package/BackOffice/PartnersDirectoryTreeAddButton.d.ts +17 -0
- package/BackOffice/PartnersDirectoryTreeNode.d.ts +15 -0
- package/BackOffice/PartnersDirectoryTreeNodeDataResolver.d.ts +3 -0
- package/BackOffice/PartnersDirectoryView.d.ts +99 -0
- package/BackOffice/PartnersEmployeeRowModelExtendedData.d.ts +5 -0
- package/BackOffice/ProcessPartnersEmployeeIdInViewRows.d.ts +3 -0
- package/BackOffice/SearchPartnersEmployees.d.ts +4 -0
- package/Generated/DocsVision.WebClient.Controllers.d.ts +108 -2
- package/Generated/DocsVision.WebClient.Models.d.ts +284 -1
- package/Legacy/StandardControllers.d.ts +2 -2
- package/Platform/FilePreviewImpl.d.ts +1 -0
- package/Platform/PartnersDirectoryCardViewRouteHandler.d.ts +12 -0
- package/Platform/ResetTrusteeOrder.d.ts +2 -0
- package/Platform/Table.d.ts +8 -2
- package/Platform/TableColumn.d.ts +2 -0
- package/Platform/TableColumnImpl.d.ts +3 -0
- package/Platform/TableColumnWrapper.d.ts +2 -0
- package/System/ResourcesStub.d.ts +7 -0
- package/System/StorybookStory.d.ts +1 -0
- package/package.json +1 -1
- package/System/GenerateTestData.d.ts +0 -2
|
@@ -36,7 +36,7 @@ export declare class AgreementManagementImpl extends BaseControlImpl<AgreementMa
|
|
|
36
36
|
private startApproving;
|
|
37
37
|
private requestClearReconcilationList;
|
|
38
38
|
protected onSaveClick(): Promise<void>;
|
|
39
|
-
protected onInterruptClick(): Promise<void>;
|
|
39
|
+
protected onInterruptClick(stageId?: string): Promise<void>;
|
|
40
40
|
protected onOperationButtonClick(operation: GenModels.ApprovalOperationKind): Promise<void>;
|
|
41
41
|
start(): Promise<unknown>;
|
|
42
42
|
protected handleLoadingErrorOnSidebarOpen(loadingTimer: any): void;
|
|
@@ -4,6 +4,7 @@ import { StaffDirectoryItems } from '@docsvision/webclient/BackOffice/StaffDirec
|
|
|
4
4
|
/** @internal */
|
|
5
5
|
export declare class AgreementStageState {
|
|
6
6
|
stageExpanded: boolean;
|
|
7
|
+
canInterrupt: boolean;
|
|
7
8
|
approversOrder: string[];
|
|
8
9
|
approverSelect: StaffDirectoryItems;
|
|
9
10
|
durationType: ReconcileDurationType;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { PartnersDirectorySearchFilters } from "@docsvision/webclient/BackOffice/PartnersDirectorySearchFilters";
|
|
1
2
|
import { DirectorySearchFilters } from "@docsvision/webclient/BackOffice/DirectorySearchFilters";
|
|
2
3
|
import { NomenclatureSearchFilters } from "@docsvision/webclient/BackOffice/Index";
|
|
3
|
-
export declare type SearchFilters = DirectorySearchFilters | NomenclatureSearchFilters;
|
|
4
|
+
export declare type SearchFilters = DirectorySearchFilters | NomenclatureSearchFilters | PartnersDirectorySearchFilters;
|
|
4
5
|
export interface ISearchFilterEntry {
|
|
5
6
|
key: SearchFilters;
|
|
6
7
|
value: string;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { $SecurityController } from "@docsvision/webclient/Generated/DocsVision.WebClient.Controllers";
|
|
2
|
+
import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
|
|
3
|
+
export declare const checkPartnersSectionAcccessRights: (rowId: string, sectionId: string, cardDataRights: GenModels.CardDataRights, services: $SecurityController) => Promise<boolean>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IDirectoryTreeRow } from "@docsvision/webclient/BackOffice/IDirectoryTreeRow";
|
|
2
|
+
import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
|
|
3
|
+
export declare function convertPartnersDirectoryResponseToTreeData(partnersResponse: GenModels.PartnersLoadResponse, parentId?: string, isGroupTab?: boolean): IDirectoryTreeRow[];
|
|
4
|
+
export declare function wrapPartnersDirectoryRootSectionNode(rootSectionId: string, items: IDirectoryTreeRow[]): IDirectoryTreeRow[];
|
|
5
|
+
export declare function createPartnersTreeFromSearchItemModel(searchItem: GenModels.SearchItemModel, rootSectionId: string): IDirectoryTreeRow[];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IPartnersTreeRow } from "@docsvision/webclient/BackOffice/IPartnersTreeRow";
|
|
2
|
+
export declare function deletePartnersSection(partnersSectionId: string, tree: IPartnersTreeRow[]): IPartnersTreeRow[];
|
|
3
|
+
export declare function deletePartnersSectionByParent(partnersSectionId: string, parentSectionId: string, tree: IPartnersTreeRow[]): IPartnersTreeRow[];
|
|
@@ -23,6 +23,7 @@ export interface DirectoryTreeProps extends HtmlProps.div, IComponentProps<Direc
|
|
|
23
23
|
tree: IDirectoryTreeRow[];
|
|
24
24
|
loadingRows?: IDirectoryTreeRow[];
|
|
25
25
|
selectedPath?: IDirectoryTreeRow[];
|
|
26
|
+
selectLast?: Store<boolean>;
|
|
26
27
|
onRowSelected?: (row: IDirectoryTreeRow) => void;
|
|
27
28
|
cancelCopy?: () => void;
|
|
28
29
|
className?: string;
|
|
@@ -32,6 +33,7 @@ export interface DirectoryTreeProps extends HtmlProps.div, IComponentProps<Direc
|
|
|
32
33
|
addSection?: () => void;
|
|
33
34
|
addButtonTitle?: string;
|
|
34
35
|
onToggle?: (row?: IDirectoryTreeRow) => void;
|
|
36
|
+
onLoadMoreClick?: (row: IDirectoryTreeRow) => void;
|
|
35
37
|
loadChildren?: (parentRow: IDirectoryTreeRow) => Promise<IDirectoryTreeRow[]>;
|
|
36
38
|
treeAddButtonFn?: (props: DirectoryTreeProps) => JSX.Element;
|
|
37
39
|
services: Optional<$ContextMenuOptions> & $LocalStorage & $ApplicationSettings & $LayoutInfo & $EditOperationStore & $IsIE;
|
|
@@ -5,6 +5,7 @@ import { $ContextMenuOptions } from '@docsvision/webclient/Platform/$ContextMenu
|
|
|
5
5
|
import { Optional } from '@docsvision/web/core/services';
|
|
6
6
|
export interface IDirectoryTreeListProps {
|
|
7
7
|
flatTree: IDirectoryTreeRow[];
|
|
8
|
+
selectedRow?: IDirectoryTreeRow;
|
|
8
9
|
renderRow: (row: IDirectoryTreeRow) => React.ReactNode;
|
|
9
10
|
services: Optional<$ContextMenuOptions>;
|
|
10
11
|
}
|
|
@@ -18,6 +18,10 @@ import("effector").Event<IDirectoryTreeRow<any>[]>;
|
|
|
18
18
|
$shouldResetSelectedRow:
|
|
19
19
|
import("effector").Store<boolean>;
|
|
20
20
|
shouldResetSelectedRowReset:
|
|
21
|
+
import("effector").Event<void>;
|
|
22
|
+
$cancelResetSelectedRow:
|
|
23
|
+
import("effector").Store<boolean>;
|
|
24
|
+
cancelResetSelectedRowReset:
|
|
21
25
|
import("effector").Event<void>;
|
|
22
26
|
toggleRow:
|
|
23
27
|
import("effector").Event<IDirectoryTreeRow<any>>;
|
|
@@ -64,6 +68,11 @@ import("effector").Event<IDirectoryTreeRow<any>>;
|
|
|
64
68
|
unsetCopy:
|
|
65
69
|
import("effector").Event<IDirectoryTreeRow<any>>;
|
|
66
70
|
initSelection(options: DirectoryTreeProps): void;
|
|
71
|
+
loadMoreRow:
|
|
72
|
+
import("effector").Event<IDirectoryTreeRow<any>>;
|
|
73
|
+
loadMoreRowFx:
|
|
74
|
+
import("effector").Effect<IDirectoryTreeRow<any>, IDirectoryTreeRow<any>, Error>;
|
|
75
|
+
initLoadMore(options: DirectoryTreeProps): void;
|
|
67
76
|
rowKeyDown:
|
|
68
77
|
import("effector").Event<{
|
|
69
78
|
row: IDirectoryTreeRow;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ITableData, ITablePlugins, TablePlugins } from "@docsvision/web/components/table/interfaces";
|
|
2
|
+
import { $ScrollPosition } from "@docsvision/web/components/table/plugins/scroll";
|
|
3
|
+
import { ISimplePluginData } from "@docsvision/web/core/extensibility/plugins";
|
|
4
|
+
import { $Domain } from "@docsvision/web/core/state-management";
|
|
5
|
+
import { Store, Event, Effect } from "effector";
|
|
6
|
+
export declare function getSelectedTreeEntityId(table: ITableData): ISimplePluginData<string>;
|
|
7
|
+
export interface IDirectoryTreeRowSelectionService {
|
|
8
|
+
/** Идентификатор выбранного элемента */
|
|
9
|
+
$selectedEntityId: Store<string>;
|
|
10
|
+
/** Событие выбора элемента */
|
|
11
|
+
selectEntity: Event<string>;
|
|
12
|
+
/** Проскроллить до выбранного элемента */
|
|
13
|
+
scrollToSelectedFx: Effect<string, void>;
|
|
14
|
+
}
|
|
15
|
+
export declare type $DirectoryTreeRowSelection = {
|
|
16
|
+
directoryTreeRowSelection: IDirectoryTreeRowSelectionService;
|
|
17
|
+
};
|
|
18
|
+
export declare const $DirectoryTreeRowSelection: string | ((model?: $DirectoryTreeRowSelection) => IDirectoryTreeRowSelectionService);
|
|
19
|
+
export declare const DirectoryTreeRowSelectionFeature = "DirectoryTreeRowSelection";
|
|
20
|
+
export declare const DirectoryTreeRowSelectionServiceProvider: TablePlugins.ServiceProvider<$DirectoryTreeRowSelection & $ScrollPosition & $Domain>;
|
|
21
|
+
export declare const TreeRowSelectionPlugins: ITablePlugins;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IDirectoryTreeRow } from "@docsvision/webclient/BackOffice/IDirectoryTreeRow";
|
|
2
|
+
export declare type FindPartnersSectionResult = {
|
|
3
|
+
row: IDirectoryTreeRow;
|
|
4
|
+
parentRow: IDirectoryTreeRow;
|
|
5
|
+
index: number;
|
|
6
|
+
path: IDirectoryTreeRow[];
|
|
7
|
+
};
|
|
8
|
+
export declare function findPartnersSection(partnerId: string, tree: IDirectoryTreeRow[]): FindPartnersSectionResult;
|
|
9
|
+
export declare function findPartnersSectionImpl(partnerId: string, tree: IDirectoryTreeRow[], path: IDirectoryTreeRow[]): FindPartnersSectionResult;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IPartnersTreeRow } from "@docsvision/webclient/BackOffice/IPartnersTreeRow";
|
|
2
|
+
export declare type PartnerIdFromTreeIdResult = {
|
|
3
|
+
partnerId: string;
|
|
4
|
+
isMore: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare function getPartnerIdFromTreeId(treeId: string): PartnerIdFromTreeIdResult;
|
|
7
|
+
export declare function getPartnersSectionChildrenCount(parentSectionId: string, tree: IPartnersTreeRow[]): number;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
|
|
2
|
+
export declare const PARTNERS_DIRECTORY_ICON_CLASSES: {
|
|
3
|
+
Root: string;
|
|
4
|
+
64: string;
|
|
5
|
+
16: string;
|
|
6
|
+
32: string;
|
|
7
|
+
2: string;
|
|
8
|
+
1: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const getPartnersDirectoryIconClassName: (dataType: GenModels.DirectoryDataType) => any;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ORGANIZATION_TAB_ID, GROUP_TAB_ID } from "@docsvision/webclient/BackOffice/PartnersDirectoryView";
|
|
2
|
+
export declare const PARTNERS_DIRECTORY_SECTION_ID_DICTIONARY: {
|
|
3
|
+
organization: string;
|
|
4
|
+
group: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const getPartnersDirectoryRootSectionID: (tabId: string) => any;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IPartnersTreeRow } from "@docsvision/webclient/BackOffice/IPartnersTreeRow";
|
|
2
|
+
import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
|
|
3
|
+
import { ITableData } from "@docsvision/web/components/table/interfaces";
|
|
4
|
+
export declare function getPartnersSelectedSearchItemEmployeeId(item: GenModels.SearchItemModel, selectedSection: IPartnersTreeRow, employeesData: ITableData): string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PartnersDirectoryParams } from "@docsvision/webclient/BackOffice/PartnersDirectory";
|
|
2
|
+
import { PartnersDirectoryLogic } from "@docsvision/webclient/BackOffice/PartnersDirectoryLogic";
|
|
3
|
+
import { PartnersDirectoryView } from "@docsvision/webclient/BackOffice/PartnersDirectoryView";
|
|
4
|
+
/** Сервис для переопределения реализации PartnersDirectory */
|
|
5
|
+
export interface IPartnersDirectoryOptions {
|
|
6
|
+
getTaskTableView(params: PartnersDirectoryParams): PartnersDirectoryView;
|
|
7
|
+
getTaskTableLogic(params: PartnersDirectoryParams): PartnersDirectoryLogic;
|
|
8
|
+
}
|
|
9
|
+
export declare type $PartnersDirectoryOptions = {
|
|
10
|
+
partnersDirectoryOptions: IPartnersDirectoryOptions;
|
|
11
|
+
};
|
|
12
|
+
export declare const $TaskTableOptions: string | ((model?: $PartnersDirectoryOptions) => IPartnersDirectoryOptions);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ITreeNodeData } from "@docsvision/webclient/Helpers/Tree/Data/ClientModels/ITreeNodeData";
|
|
2
|
+
/** @internal */
|
|
3
|
+
export interface IPartnersDirectoryTreeNodeData extends ITreeNodeData {
|
|
4
|
+
children: IPartnersDirectoryTreeNodeData[];
|
|
5
|
+
childrenLoaded?: boolean;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
|
|
2
|
+
import { IColumn, IRow } from "@docsvision/web/components/table/interfaces";
|
|
3
|
+
export interface IPartnersEmployeeResponseParser {
|
|
4
|
+
convertEmployeeToRow(item: GenModels.PartnersDirectoryItem, id: string): IRow;
|
|
5
|
+
getColumns(): IColumn[];
|
|
6
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IDirectoryTreeRow } from "@docsvision/webclient/BackOffice/IDirectoryTreeRow";
|
|
2
|
+
import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
|
|
3
|
+
export interface IPartnersTreeRow extends IDirectoryTreeRow, GenModels.DirectoryItemData {
|
|
4
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IDirectoryTreeRow } from "@docsvision/webclient/BackOffice/IDirectoryTreeRow";
|
|
2
|
+
import { $DepartmentController, $LayoutRowController } from "@docsvision/webclient/Generated/DocsVision.WebClient.Controllers";
|
|
3
|
+
export declare function loadPartnersEmployeeInfoLayout(employeeId: string, services: $LayoutRowController): Promise<
|
|
4
|
+
import("D:/BuildAgent/work/a67c8f9640042c6e/Bin/Generated/DocsVision.WebClient.Models").GenModels.LayoutRowViewModel>;
|
|
5
|
+
export declare function loadPartnersEmployeeEditLayout(employeeId: string, services: $LayoutRowController): Promise<
|
|
6
|
+
import("D:/BuildAgent/work/a67c8f9640042c6e/Bin/Generated/DocsVision.WebClient.Models").GenModels.LayoutRowViewModel>;
|
|
7
|
+
export declare function loadPartnersEmployeeCreateLayout(parentSection: IDirectoryTreeRow, services: $LayoutRowController & $DepartmentController): Promise<
|
|
8
|
+
import("D:/BuildAgent/work/a67c8f9640042c6e/Bin/Generated/DocsVision.WebClient.Models").GenModels.LayoutRowViewModel>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IDirectoryTreeRow } from "@docsvision/webclient/BackOffice/IDirectoryTreeRow";
|
|
2
|
+
import { $DepartmentController, $LayoutRowController } from "@docsvision/webclient/Generated/DocsVision.WebClient.Controllers";
|
|
3
|
+
import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
|
|
4
|
+
export declare function loadPartnersSectionInfoLayout(section: IDirectoryTreeRow, rowSectionId: string, services: $LayoutRowController): Promise<GenModels.LayoutRowViewModel>;
|
|
5
|
+
export declare function loadPartnersSectionSummaryLayout(section: IDirectoryTreeRow, rowSectionId: string, services: $LayoutRowController): Promise<GenModels.LayoutRowViewModel>;
|
|
6
|
+
export declare function loadPartnersSectionEditLayout(section: IDirectoryTreeRow, rowSectionId: string, services: $LayoutRowController): Promise<GenModels.LayoutRowViewModel>;
|
|
7
|
+
export declare function loadPartnersSectionCreateLayout(parentSection: IDirectoryTreeRow | null, rowSectionId: string, type: GenModels.DirectoryDataType, services: $LayoutRowController & $DepartmentController): Promise<GenModels.LayoutRowViewModel>;
|
|
@@ -1,4 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IPartnersTreeRow } from "@docsvision/webclient/BackOffice/IPartnersTreeRow";
|
|
3
|
+
import { BaseControl, BaseControlParams } from "@docsvision/webclient/System/BaseControl";
|
|
4
|
+
import { BasicApiEvent } from "@docsvision/webclient/System/ApiEvent";
|
|
5
|
+
import { $ApplicationSettings, $DeviceType, $IsIE } from "@docsvision/webclient/StandardServices";
|
|
6
|
+
import { $LocalStorage } from "@docsvision/webclient/System/$LocalStorage";
|
|
7
|
+
import { $DepartmentController, $LayoutCardController, $LayoutRowController, $PartnersDirectoryController } from "@docsvision/webclient/Generated/DocsVision.WebClient.Controllers";
|
|
8
|
+
import { $LayoutManager } from "@docsvision/webclient/System/$LayoutManager";
|
|
9
|
+
import { $SecurityDescriptorDialogServices } from "@docsvision/webclient/Platform/SecurityDescriptorDialog";
|
|
10
|
+
import { $WebFrameDirectorySearchPanelService } from "@docsvision/webclient/BackOffice/$WebFrameDirectorySearchPanelService";
|
|
11
|
+
import { $Domain } from "@docsvision/web/core/state-management";
|
|
12
|
+
import { BaseControlImplState } from "@docsvision/webclient/System/BaseControlImpl";
|
|
13
|
+
import { IPartnersDirectoryLogicOptions, PartnersDirectoryLogic } from "@docsvision/webclient/BackOffice/PartnersDirectoryLogic";
|
|
14
|
+
import { PartnersDirectoryView } from "@docsvision/webclient/BackOffice/PartnersDirectoryView";
|
|
15
|
+
import { $PartnersDirectoryOptions } from "@docsvision/webclient/BackOffice/IPartnersDirectoryOptions";
|
|
16
|
+
import { Optional } from "@docsvision/web/core/services";
|
|
17
|
+
import { ControlImpl } from "@docsvision/webclient/System/ControlImpl";
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Содержит публичные свойства элемента управления [Справочник контрагентов{@link PartnersDirectory}.
|
|
21
|
+
*/
|
|
22
|
+
export declare class PartnersDirectoryParams extends BaseControlParams {
|
|
23
|
+
/** Стандартный CSS класс со стилями элемента управления */
|
|
24
|
+
standardCssClass?: string;
|
|
25
|
+
/** Отображаемое в левой части контрола дерево (подразделения, группы или должности) */
|
|
26
|
+
currentSectionsTree?: IPartnersTreeRow[];
|
|
27
|
+
/** Вызывается после загрузки корневых узлов дерева. */
|
|
28
|
+
rootTreeSectionsLoaded?: BasicApiEvent<IPartnersTreeRow[]>;
|
|
29
|
+
/** Вызывается после любого изменения отображаемого в левой части дерева. */
|
|
30
|
+
currentSectionTreeUpdated?: BasicApiEvent<IPartnersTreeRow[]>;
|
|
31
|
+
/** Сервисы. */
|
|
32
|
+
services?: $ApplicationSettings & $LocalStorage & $LayoutRowController & $LayoutCardController & $LayoutManager & $SecurityDescriptorDialogServices & $DepartmentController & $PartnersDirectoryController & $DeviceType & $IsIE & $WebFrameDirectorySearchPanelService & Optional<$PartnersDirectoryOptions> & $Domain;
|
|
33
|
+
}
|
|
34
|
+
export interface PartnersDirectoryState extends BaseControlImplState, PartnersDirectoryParams, IPartnersDirectoryLogicOptions {
|
|
35
|
+
logic: PartnersDirectoryLogic;
|
|
36
|
+
view: PartnersDirectoryView;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Класс элемента управления Панель поиска в справочнике.
|
|
40
|
+
*/
|
|
41
|
+
export declare class PartnersDirectory extends BaseControl<PartnersDirectoryParams, PartnersDirectoryState> {
|
|
42
|
+
construct(): void;
|
|
43
|
+
protected createParams(): PartnersDirectoryParams;
|
|
44
|
+
protected createImpl(): ControlImpl;
|
|
45
|
+
private get currentSectionsTree();
|
|
46
|
+
showSectionEmployees(section: IPartnersTreeRow): void;
|
|
47
|
+
renderControl(): JSX.Element;
|
|
48
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Event } from "effector";
|
|
3
|
+
import { IComponentProps } from "@docsvision/web/core/component";
|
|
4
|
+
import { $PartnersDirectoryController } from "@docsvision/webclient/Generated/DocsVision.WebClient.Controllers";
|
|
5
|
+
import { IPartnersTreeRow } from "@docsvision/webclient/BackOffice/IPartnersTreeRow";
|
|
6
|
+
import { PartnersDirectoryAddToGroupModalLogic } from "@docsvision/webclient/BackOffice/PartnersDirectoryAddToGroupModalLogic";
|
|
7
|
+
import { PartnersDirectoryGroupsTree } from "@docsvision/webclient/BackOffice/PartnersDirectoryGroupsTree";
|
|
8
|
+
import { PartnersDirectorySelectedButtons } from "@docsvision/webclient/BackOffice/PartnersDirectorySelectedButtons";
|
|
9
|
+
import { PartnersDirectoryButtonsPanel } from "@docsvision/webclient/BackOffice/PartnersDirectoryButtonsPanel";
|
|
10
|
+
export interface IPartnersDirectoryAddToGroupModalProps extends IComponentProps<PartnersDirectoryAddToGroupModalLogic> {
|
|
11
|
+
showEvent: Event<{
|
|
12
|
+
partner: IPartnersTreeRow;
|
|
13
|
+
}>;
|
|
14
|
+
services: $PartnersDirectoryController;
|
|
15
|
+
onAccept: (params: {
|
|
16
|
+
unitId: string;
|
|
17
|
+
groupIds: string[];
|
|
18
|
+
}) => void;
|
|
19
|
+
name?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare class PartnersDirectoryAddToGroupModalView {
|
|
22
|
+
modal: (props:
|
|
23
|
+
import("@docsvision/web/components/modals/modal-dialog").ModalDialogProps) => JSX.Element;
|
|
24
|
+
tree: typeof PartnersDirectoryGroupsTree;
|
|
25
|
+
selectedButtons: typeof PartnersDirectorySelectedButtons;
|
|
26
|
+
buttonsPanel: typeof PartnersDirectoryButtonsPanel;
|
|
27
|
+
}
|
|
28
|
+
export declare function PartnersDirectoryAddToGroupModal(props: IPartnersDirectoryAddToGroupModalProps): JSX.Element;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ComponentLogic } from "@docsvision/web/core/component/ComponentLogic";
|
|
3
|
+
import { IPartnersTreeRow } from "@docsvision/webclient/BackOffice/IPartnersTreeRow";
|
|
4
|
+
import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
|
|
5
|
+
import { IPartnersDirectoryAddToGroupModalProps } from "@docsvision/webclient/BackOffice/PartnersDirectoryAddToGroupModal";
|
|
6
|
+
import { TreeNode } from "@docsvision/webclient/Helpers/Tree/Data/ClientModels/TreeNode";
|
|
7
|
+
import { PartnersDirectoryGroupsTree } from "@docsvision/webclient/BackOffice/PartnersDirectoryGroupsTree";
|
|
8
|
+
export declare class PartnersDirectoryAddToGroupModalLogic extends ComponentLogic<IPartnersDirectoryAddToGroupModalProps> {
|
|
9
|
+
domain:
|
|
10
|
+
import("effector").Domain;
|
|
11
|
+
$modalOpen:
|
|
12
|
+
import("effector").Store<boolean>;
|
|
13
|
+
modalOpened:
|
|
14
|
+
import("effector").Event<{
|
|
15
|
+
partner: IPartnersTreeRow;
|
|
16
|
+
}>;
|
|
17
|
+
modalClosed:
|
|
18
|
+
import("effector").Event<void>;
|
|
19
|
+
$params:
|
|
20
|
+
import("effector").Store<{
|
|
21
|
+
partner: IPartnersTreeRow;
|
|
22
|
+
}>;
|
|
23
|
+
accept:
|
|
24
|
+
import("effector").Event<void>;
|
|
25
|
+
acceptFx:
|
|
26
|
+
import("effector").Effect<{
|
|
27
|
+
unitId: string;
|
|
28
|
+
groupIds: string[];
|
|
29
|
+
}, void, Error>;
|
|
30
|
+
loadGroups:
|
|
31
|
+
import("effector").Event<string | void>;
|
|
32
|
+
loadGroupsFx:
|
|
33
|
+
import("effector").Effect<string | void, GenModels.PartnersLoadResponse, Error>;
|
|
34
|
+
loadPartnerGroups:
|
|
35
|
+
import("effector").Event<void>;
|
|
36
|
+
loadPartnerGroupsFx:
|
|
37
|
+
import("effector").Effect<string, GenModels.PartnersGroupDataModel[], Error>;
|
|
38
|
+
$selectedGroups:
|
|
39
|
+
import("effector").Store<GenModels.PartnersDataModel[]>;
|
|
40
|
+
onGroupSelected:
|
|
41
|
+
import("effector").Event<TreeNode>;
|
|
42
|
+
onGroupSelectRemoved:
|
|
43
|
+
import("effector").Event<string>;
|
|
44
|
+
treeRef:
|
|
45
|
+
import("react").RefObject<PartnersDirectoryGroupsTree>;
|
|
46
|
+
init(props: IPartnersDirectoryAddToGroupModalProps): void;
|
|
47
|
+
initDataLoadHandlers(props: IPartnersDirectoryAddToGroupModalProps): void;
|
|
48
|
+
initSelectHandlers(): void;
|
|
49
|
+
initModalHandlers(props: IPartnersDirectoryAddToGroupModalProps): void;
|
|
50
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
interface IPartnersDirectoryButtonsPanelProps {
|
|
4
|
+
buttons: React.ReactNode;
|
|
5
|
+
selectedButtons: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare function PartnersDirectoryButtonsPanel(props: IPartnersDirectoryButtonsPanelProps): JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
|
|
2
|
+
import { LayoutControl } from "@docsvision/webclient/System/BaseControl";
|
|
3
|
+
import { ICancelableEventArgs } from "@docsvision/webclient/System/ICancelableEventArgs";
|
|
4
|
+
export declare function partnersDirectoryCompanySaving(sender: LayoutControl, e: ICancelableEventArgs<GenModels.SaveControlDataModel>): Promise<void>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare const PARTNERS_DIRECTORY_ID = "65ff9382-17dc-4e9f-8e93-84d6d3d8fe8c";
|
|
2
|
+
export declare const PARTNERS_COMPANIES_SECTION_ID = "c78abded-db1c-4217-ae0d-51a400546923";
|
|
3
|
+
export declare const POSITIONS_SECTION_ID = "bdafe82a-04fa-4391-98b7-5df6502e03dd";
|
|
4
|
+
export declare const EMPLOYEE_SECTION_ID = "1a46bf0f-2d02-4ac9-8866-5adf245921e8";
|
|
5
|
+
export declare const GROUP_SECTION_ID = "78875629-78d3-4ccc-90d9-127b438c5522";
|
|
6
|
+
export declare const EMPLOYEES_LAST_NAME_COLUMN_ID = "Employees_LastName";
|
|
7
|
+
export declare const EMPLOYEES_FIRST_NAME_COLUMN_ID = "Employees_FirstName";
|
|
8
|
+
export declare const EMPLOYEES_MIDDLE_NAME_COLUMN_ID = "Employees_MiddleName";
|
|
9
|
+
export declare const EMPLOYEE_SHORT_NAME_COLUMN = "Employees_ShortName";
|
|
10
|
+
export declare const PARTNERS_DIRECTORY_MAX_COUNT = 500;
|
|
11
|
+
export declare const CONTEXT_MENU_EDIT_ICON = "ico-edit-menu";
|
|
12
|
+
export declare const CONTEXT_MENU_INFO_ICON = "ico-info-menu";
|
|
13
|
+
export declare const CONTEXT_MENU_SECURITY_ICON = "ico-security-menu";
|
|
14
|
+
export declare const CONTEXT_MENU_DELETE_ICON = "ico-delete-menu";
|
|
15
|
+
export declare const CONTEXT_MENU_ADD_ICON = "ico-add-menu";
|
|
16
|
+
export declare const CONTEXT_MENU_COPY_ICON = "ico-copy-menu";
|
|
17
|
+
export declare const CONTEXT_MENU_CUT_ICON = "ico-cut-menu";
|
|
18
|
+
export declare const CONTEXT_MENU_PASTE_ICON = "ico-paste-menu";
|
|
19
|
+
export declare const CONTEXT_MENU_PARTNERS_CREATE_ORGANIZATION_ID = "CONTEXT_MENU_PARTNERS_CREATE_ORGANIZATION_ID";
|
|
20
|
+
export declare const CONTEXT_MENU_PARTNERS_CREATE_DEPARTMENT_ID = "CONTEXT_MENU_PARTNERS_CREATE_DEPARTMENT_ID";
|
|
21
|
+
export declare const CONTEXT_MENU_PARTNERS_CREATE_EMPLOYEE_ID = "CONTEXT_MENU_PARTNERS_CREATE_EMPLOYEE_ID";
|
|
22
|
+
export declare const CONTEXT_MENU_PARTNERS_NAME_ID = "CONTEXT_MENU_PARTNERS_NAME_ID";
|
|
23
|
+
export declare const CONTEXT_MENU_PARTNERS_ACCESS_RIGHTS_ID = "CONTEXT_MENU_PARTNERS_ACCESS_RIGHTS_ID";
|
|
24
|
+
export declare const CONTEXT_MENU_PARTNERS_PASTE_ID = "CONTEXT_MENU_PARTNERS_PASTE_ID";
|
|
25
|
+
export declare const CONTEXT_MENU_PARTNERS_INFO_ID = "CONTEXT_MENU_PARTNERS_INFO_ID";
|
|
26
|
+
export declare const CONTEXT_MENU_PARTNERS_EDIT_ID = "CONTEXT_MENU_PARTNERS_EDIT_ID";
|
|
27
|
+
export declare const CONTEXT_MENU_PARTNERS_DELETE_ID = "CONTEXT_MENU_PARTNERS_DELETE_ID";
|
|
28
|
+
export declare const CONTEXT_MENU_PARTNERS_ADD_TO_GROUP_ID = "CONTEXT_MENU_PARTNERS_ADD_TO_GROUP_ID";
|
|
29
|
+
export declare const CONTEXT_MENU_PARTNERS_REMOVE_FROM_GROUP_ID = "CONTEXT_MENU_PARTNERS_REMOVE_FROM_GROUP_ID";
|
|
30
|
+
export declare const CONTEXT_MENU_PARTNERS_COPY_ID = "CONTEXT_MENU_PARTNERS_COPY_ID";
|
|
31
|
+
export declare const CONTEXT_MENU_PARTNERS_CUT_ID = "CONTEXT_MENU_PARTNERS_CUT_ID";
|
|
32
|
+
export declare const CONTEXT_MENU_EMPLOYEE_INFO_ID = "CONTEXT_MENU_EMPLOYEE_INFO_ID";
|
|
33
|
+
export declare const CONTEXT_MENU_EMPLOYEE_EDIT_ID = "CONTEXT_MENU_EMPLOYEE_EDIT_ID";
|
|
34
|
+
export declare const CONTEXT_MENU_EMPLOYEE_DELETE_ID = "CONTEXT_MENU_EMPLOYEE_DELETE_ID";
|
|
35
|
+
export declare const CONTEXT_MENU_EMPLOYEE_CUT_ID = "CONTEXT_MENU_EMPLOYEE_CUT_ID";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PartnersDirectoryLogic } from "@docsvision/webclient/BackOffice/PartnersDirectoryLogic";
|
|
3
|
+
import { PartnersDirectoryView } from "@docsvision/webclient/BackOffice/PartnersDirectoryView";
|
|
4
|
+
export declare function PartnersDirectoryContainer(props: {
|
|
5
|
+
logic: PartnersDirectoryLogic;
|
|
6
|
+
view: PartnersDirectoryView;
|
|
7
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const PARTNERS_DIRECTORY_SECTION_INFO_LOCATION_NAME = "DV.PartnersDirectory.SectionInfo";
|
|
2
|
+
export declare const PARTNERS_DIRECTORY_SECTION_EDIT_LOCATION_NAME = "DV.PartnersDirectory.SectionEdit";
|
|
3
|
+
export declare const PARTNERS_DIRECTORY_SECTION_CREATE_LOCATION_NAME = "DV.PartnersDirectory.SectionCreate";
|
|
4
|
+
export declare const PARTNERS_DIRECTORY_EMPLOYEE_INFO_LOCATION_NAME = "DV.PartnersDirectory.EmployeeInfo";
|
|
5
|
+
export declare const PARTNERS_DIRECTORY_EMPLOYEE_EDIT_LOCATION_NAME = "DV.PartnersDirectory.EmployeeEdit";
|
|
6
|
+
export declare const PARTNERS_DIRECTORY_EMPLOYEE_CREATE_LOCATION_NAME = "DV.PartnersDirectory.EmployeeCreate";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const PARTNERS_DIRECTORY_EMPLOYEE_ICON_COLUMN = "icon";
|
|
2
|
+
export declare const PARTNERS_DIRECTORY_EMPLOYEE_LASTNAME_COLUMN = "lastname";
|
|
3
|
+
export declare const PARTNERS_DIRECTORY_EMPLOYEE_FIRSTNAME_COLUMN = "firstName";
|
|
4
|
+
export declare const PARTNERS_DIRECTORY_EMPLOYEE_MIDDLENAME_COLUMN = "middleName";
|
|
5
|
+
export declare const PARTNERS_DIRECTORY_EMPLOYEE_INITIALS_COLUMN = "initials";
|
|
6
|
+
export declare const PARTNERS_DIRECTORY_EMPLOYEE_POSITION_COLUMN = "position";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { HtmlProps } from "@docsvision/web/core/component";
|
|
3
|
+
|
|
4
|
+
export interface IEmployeesTabFrameProps extends HtmlProps.div {
|
|
5
|
+
renderHead: () => React.ReactNode;
|
|
6
|
+
renderTable: () => React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare function PartnersDirectoryEmployeesTabFrame(props: IEmployeesTabFrameProps): JSX.Element;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
|
|
3
|
+
import { LoadingState } from "@docsvision/webclient/System/LoadingState";
|
|
4
|
+
import { IPartnersDirectoryTreeNodeData } from "@docsvision/webclient/BackOffice/IPartnersDirectoryTreeNodeData";
|
|
5
|
+
import { PartnersDirectoryTreeNode } from "@docsvision/webclient/BackOffice/PartnersDirectoryTreeNode";
|
|
6
|
+
import { TreeNode } from "@docsvision/webclient/Helpers/Tree/Data/ClientModels/TreeNode";
|
|
7
|
+
import { ITreeBaseProps } from "@docsvision/webclient/Helpers/Tree/ITreeBaseProps";
|
|
8
|
+
import { ITreeBaseState } from "@docsvision/webclient/Helpers/Tree/ITreeBaseState";
|
|
9
|
+
import { TreeBase } from "@docsvision/webclient/Helpers/Tree/TreeBase";
|
|
10
|
+
|
|
11
|
+
/** @internal */
|
|
12
|
+
export interface IPartnersDirectoryGroupsTreeProps extends ITreeBaseProps<PartnersDirectoryTreeNode> {
|
|
13
|
+
loadNodesData: (partnerId?: string) => Promise<GenModels.PartnersLoadResponse>;
|
|
14
|
+
loadSelectedGroups: (partnerId: string) => Promise<GenModels.PartnersGroupDataModel[]>;
|
|
15
|
+
className?: string;
|
|
16
|
+
selectedGroups: GenModels.PartnersDataModel[];
|
|
17
|
+
expandedByDefault?: boolean;
|
|
18
|
+
partnerId?: string;
|
|
19
|
+
}
|
|
20
|
+
/** @internal */
|
|
21
|
+
export interface IPartnersDirectoryGroupsTreeState extends ITreeBaseState {
|
|
22
|
+
rootLoading?: LoadingState;
|
|
23
|
+
}
|
|
24
|
+
/** @internal */
|
|
25
|
+
export declare class PartnersDirectoryGroupsTree extends TreeBase<IPartnersDirectoryTreeNodeData, IPartnersDirectoryGroupsTreeProps, IPartnersDirectoryGroupsTreeState> {
|
|
26
|
+
constructor(props: IPartnersDirectoryGroupsTreeProps);
|
|
27
|
+
componentDidMount(): Promise<void>;
|
|
28
|
+
toggleNode(node: PartnersDirectoryTreeNode, expand: boolean, raiseEvent?: boolean): void;
|
|
29
|
+
private resolveResponse;
|
|
30
|
+
protected createNode(data: IPartnersDirectoryTreeNodeData, level: number, parent: TreeNode, children?: TreeNode[]): PartnersDirectoryTreeNode;
|
|
31
|
+
protected renderToggleMarker(node: TreeNode): JSX.Element;
|
|
32
|
+
updateNodesSelectState(id: string, value: boolean): void;
|
|
33
|
+
render(): JSX.Element;
|
|
34
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { HtmlProps } from '@docsvision/web/core/component';
|
|
3
|
+
|
|
4
|
+
export interface IPartnersDirectoryHeadProps extends HtmlProps.div {
|
|
5
|
+
onDirectorySecurityClick: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function PartnersDirectoryHead(props: IPartnersDirectoryHeadProps): JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { HtmlProps } from '@docsvision/web/core/component';
|
|
3
|
+
|
|
4
|
+
import { GenModels } from '@docsvision/webclient/Generated/DocsVision.WebClient.Models';
|
|
5
|
+
export declare type PartnersDirectorySection = {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
};
|
|
9
|
+
export interface IPartnersDirectoryInfoProps extends HtmlProps.div {
|
|
10
|
+
section: PartnersDirectorySection;
|
|
11
|
+
placeholderText?: string;
|
|
12
|
+
onEditSectionClick: () => void;
|
|
13
|
+
loadLayout: () => Promise<GenModels.LayoutViewModel>;
|
|
14
|
+
}
|
|
15
|
+
export declare const PARTNERS_DIRECTORY_INFO_LOCATION_NAME = "DV.PartnersDirectoryInfo";
|
|
16
|
+
export declare function PartnersDirectoryInfo(props: IPartnersDirectoryInfoProps): JSX.Element;
|