@docsvision/webclient 6.1.16 → 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.
Files changed (59) hide show
  1. package/BackOffice/$WebFrameDirectorySearchInfoStorageService.d.ts +2 -1
  2. package/BackOffice/AddPartnersEmployeeIconColumn.d.ts +3 -0
  3. package/BackOffice/CheckPartnersSectionAcccessRights.d.ts +3 -0
  4. package/BackOffice/ConvertPartnersDirectoryResponseToTree.d.ts +5 -0
  5. package/BackOffice/ConvertPartnersEmployeeToRow.d.ts +3 -0
  6. package/BackOffice/DeletePartnersSection.d.ts +3 -0
  7. package/BackOffice/DirectoryTree.d.ts +2 -0
  8. package/BackOffice/DirectoryTreeList.d.ts +1 -0
  9. package/BackOffice/DirectoryTreeLogic.d.ts +9 -0
  10. package/BackOffice/DirectoryTreeRowSelection.d.ts +21 -0
  11. package/BackOffice/FindPartnersSection.d.ts +9 -0
  12. package/BackOffice/GetPartnerIdFromTreeId.d.ts +7 -0
  13. package/BackOffice/GetPartnersContextMenuNames.d.ts +2 -0
  14. package/BackOffice/GetPartnersDirectoryIconClassName.d.ts +10 -0
  15. package/BackOffice/GetPartnersDirectoryRootSectionId.d.ts +6 -0
  16. package/BackOffice/GetPartnersDirectorySearchItemTab.d.ts +2 -0
  17. package/BackOffice/GetPartnersEmployeeColumns.d.ts +4 -0
  18. package/BackOffice/GetPartnersSelectedSearchItemEmployeeId.d.ts +4 -0
  19. package/BackOffice/GetPartnersSelectedSearchItemSection.d.ts +2 -0
  20. package/BackOffice/IDirectoryTreeRow.d.ts +2 -0
  21. package/BackOffice/IPartnersDirectoryOptions.d.ts +12 -0
  22. package/BackOffice/IPartnersDirectoryTreeNodeData.d.ts +6 -0
  23. package/BackOffice/IPartnersEmployeeResponseParser.d.ts +6 -0
  24. package/BackOffice/IPartnersTreeRow.d.ts +4 -0
  25. package/BackOffice/LoadPartnersEmployeeLayoutFunctions.d.ts +8 -0
  26. package/BackOffice/LoadPartnersSectionLayoutFunctions.d.ts +7 -0
  27. package/BackOffice/PartnersDirectory.d.ts +48 -4
  28. package/BackOffice/PartnersDirectoryAddToGroupModal.d.ts +28 -0
  29. package/BackOffice/PartnersDirectoryAddToGroupModalLogic.d.ts +50 -0
  30. package/BackOffice/PartnersDirectoryButtonsPanel.d.ts +8 -0
  31. package/BackOffice/PartnersDirectoryCompanySaving.d.ts +4 -0
  32. package/BackOffice/PartnersDirectoryConstants.d.ts +35 -0
  33. package/BackOffice/PartnersDirectoryContainer.d.ts +7 -0
  34. package/BackOffice/PartnersDirectoryDialogLocations.d.ts +6 -0
  35. package/BackOffice/PartnersDirectoryEmployeeColumns.d.ts +6 -0
  36. package/BackOffice/PartnersDirectoryEmployeesTabFrame.d.ts +8 -0
  37. package/BackOffice/PartnersDirectoryGroupsTree.d.ts +34 -0
  38. package/BackOffice/PartnersDirectoryHead.d.ts +7 -0
  39. package/BackOffice/PartnersDirectoryInfo.d.ts +16 -0
  40. package/BackOffice/PartnersDirectoryLogic.d.ts +366 -0
  41. package/BackOffice/PartnersDirectoryRemoveFromGroupIconGridPlugin.d.ts +15 -0
  42. package/BackOffice/PartnersDirectoryRootSectionConstants.d.ts +15 -0
  43. package/BackOffice/PartnersDirectorySearchFilters.d.ts +5 -0
  44. package/BackOffice/PartnersDirectorySelectedButtons.d.ts +11 -0
  45. package/BackOffice/PartnersDirectoryTreeAddButton.d.ts +17 -0
  46. package/BackOffice/PartnersDirectoryTreeNode.d.ts +15 -0
  47. package/BackOffice/PartnersDirectoryTreeNodeDataResolver.d.ts +3 -0
  48. package/BackOffice/PartnersDirectoryView.d.ts +99 -0
  49. package/BackOffice/PartnersEmployeeRowModelExtendedData.d.ts +5 -0
  50. package/BackOffice/ProcessPartnersEmployeeIdInViewRows.d.ts +3 -0
  51. package/BackOffice/SearchPartnersEmployees.d.ts +4 -0
  52. package/Generated/DocsVision.WebClient.Controllers.d.ts +90 -0
  53. package/Generated/DocsVision.WebClient.Models.d.ts +283 -1
  54. package/Legacy/StandardControllers.d.ts +2 -2
  55. package/Platform/PartnersDirectoryCardViewRouteHandler.d.ts +12 -0
  56. package/Platform/TableColumnImpl.d.ts +0 -1
  57. package/System/ResourcesStub.d.ts +7 -0
  58. package/System/StorybookStory.d.ts +1 -0
  59. package/package.json +1 -1
@@ -0,0 +1,366 @@
1
+ /// <reference types="react" />
2
+ import { PartnersDirectoryParams } from "@docsvision/webclient/BackOffice/PartnersDirectory";
3
+ import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
4
+ import { ModalHost } from "@docsvision/webclient/Helpers/ModalHost";
5
+ import { ShowSecurityDescriptorDialogProps } from "@docsvision/webclient/Platform/SecurityDescriptorDialog";
6
+ import { $MessageBox } from "@docsvision/webclient/System/$MessageBox";
7
+ import { ComponentLogic } from "@docsvision/web/core/component";
8
+ import { IPartnersTreeRow } from "@docsvision/webclient/BackOffice/IPartnersTreeRow";
9
+ import { IRow, ITableData, ITableDataLoadRequest } from "@docsvision/web/components/table/interfaces";
10
+ import { IPartnersEmployeeResponseParser } from "@docsvision/webclient/BackOffice/IPartnersEmployeeResponseParser";
11
+ import { IButtonDescription } from "@docsvision/webclient/BackOffice/PartnersDirectoryTreeAddButton";
12
+ import { IFolderDataLoadingPlugin } from "@docsvision/webclient/Platform/IFolderDataLoadingPlugin";
13
+ import { LoadingStatus } from "@docsvision/webclient/System/LoadingState";
14
+ import { SearchFilters } from "@docsvision/webclient/BackOffice/$WebFrameDirectorySearchInfoStorageService";
15
+ import { IDirectoryTreeRow } from "@docsvision/webclient/BackOffice/IDirectoryTreeRow";
16
+ export declare const PARTNERS_ACTIVE_LEFT_TAB_ID_LOCAL_STORAGE_KEY = "PartnersDirectoryActiveTab";
17
+ export interface IPartnersDirectoryLogicOptions extends PartnersDirectoryParams {
18
+ showDeleteConfirmationDialog: (entityName: string, services: $MessageBox, isSection: boolean, dataType: GenModels.DirectoryDataType) => Promise<void>;
19
+ showSecurityDescriptorDialog: (props: ShowSecurityDescriptorDialogProps) => ModalHost;
20
+ showCreateSectionDialog: (addSection: (value?: string) => Promise<void>, loadCreateSectionLayout: any, services: any, rootSection?: any) => Promise<void>;
21
+ showEditSectionDialog: (editSection: (value?: string) => Promise<void>, loadEditSectionLayout: any, services: any, rootSection?: any) => Promise<void>;
22
+ showEditEmployeeDialog: (editEmployee: (value?: string) => Promise<void>, loadEditEmployeeLayout: any, services: any, EmployeeRow?: any) => Promise<void>;
23
+ showInsufficientAccessRightsMessage: (services: $MessageBox) => Promise<void>;
24
+ }
25
+ export declare type PartnersDirectorySearchResponseT = {
26
+ items: GenModels.SearchItemModel[];
27
+ hasMore: boolean;
28
+ totalCount: number;
29
+ directoryTimestamp?: number;
30
+ };
31
+ export declare class PartnersDirectoryLogic extends ComponentLogic<IPartnersDirectoryLogicOptions> {
32
+ protected domain:
33
+ import("effector").Domain;
34
+ $tree:
35
+ import("effector").Store<IPartnersTreeRow[]>;
36
+ $rootSectionId:
37
+ import("effector").Store<string>;
38
+ $selectedSection:
39
+ import("effector").Store<IPartnersTreeRow>;
40
+ $activeRightTab:
41
+ import("effector").Store<string>;
42
+ $activeLeftTab:
43
+ import("effector").Store<string>;
44
+ $showAll:
45
+ import("effector").Store<boolean>;
46
+ $showAddRowButtons:
47
+ import("effector").Store<boolean>;
48
+ showAddRowButtonsToggle:
49
+ import("effector").Event<void>;
50
+ $addRowButtons:
51
+ import("effector").Store<IButtonDescription[]>;
52
+ $rootEmployeesLoading:
53
+ import("effector").Store<boolean>;
54
+ $placeholderEmployeesText:
55
+ import("effector").Store<string>;
56
+ $placeholderInfoText:
57
+ import("effector").Store<string>;
58
+ componentDidMount:
59
+ import("effector").Event<void>;
60
+ activeRightTabChange:
61
+ import("effector").Event<string>;
62
+ activeLeftTabChange:
63
+ import("effector").Event<string>;
64
+ openLeftTab:
65
+ import("effector").Event<{
66
+ tabId: string;
67
+ }>;
68
+ rootSectionChange:
69
+ import("effector").Event<string>;
70
+ sectionSelected:
71
+ import("effector").Event<IPartnersTreeRow>;
72
+ getPlaceholderEmployeesText:
73
+ import("effector").Event<void>;
74
+ getPlaceholderInfoText:
75
+ import("effector").Event<void>;
76
+ resetTree:
77
+ import("effector").Event<void>;
78
+ showEmployeeInfoDialog:
79
+ import("effector").Event<{
80
+ employeeId: string;
81
+ }>;
82
+ canShowEmployeeEditDialog:
83
+ import("effector").Event<{
84
+ employeeId: string;
85
+ }>;
86
+ showEmployeeEditDialog:
87
+ import("effector").Event<{
88
+ employeeId: string;
89
+ }>;
90
+ canShowEmployeeCreateDialog:
91
+ import("effector").Event<{
92
+ parentSection: IPartnersTreeRow;
93
+ }>;
94
+ showEmployeeCreateDialog:
95
+ import("effector").Event<{
96
+ parentSection: IPartnersTreeRow;
97
+ }>;
98
+ showAllToggle:
99
+ import("effector").Event<boolean>;
100
+ clickAddRowOrganizationButton:
101
+ import("effector").Event<void>;
102
+ clickAddRowDepartmentButton:
103
+ import("effector").Event<void>;
104
+ showSectionInfoDialog:
105
+ import("effector").Event<{
106
+ section: IPartnersTreeRow;
107
+ }>;
108
+ canShowSectionEditDialog:
109
+ import("effector").Event<{
110
+ section: IPartnersTreeRow;
111
+ }>;
112
+ showSectionEditDialog:
113
+ import("effector").Event<{
114
+ section: IPartnersTreeRow;
115
+ }>;
116
+ sectionEditDialogAccepted:
117
+ import("effector").Event<{
118
+ section: IPartnersTreeRow;
119
+ }>;
120
+ canShowSectionCreateDialog:
121
+ import("effector").Event<{
122
+ parentSection: IPartnersTreeRow;
123
+ type: GenModels.DirectoryDataType;
124
+ }>;
125
+ showSectionCreateDialog:
126
+ import("effector").Event<{
127
+ parentSection: IPartnersTreeRow;
128
+ type: GenModels.DirectoryDataType;
129
+ }>;
130
+ showAddingToGroupDialog:
131
+ import("effector").Event<{
132
+ partner: IPartnersTreeRow;
133
+ }>;
134
+ sectionCreateDialogAccepted:
135
+ import("effector").Event<{
136
+ parentSection: IPartnersTreeRow;
137
+ }>;
138
+ showPartnersSecuritySettings:
139
+ import("effector").Event<{
140
+ partnerSection?: IPartnersTreeRow;
141
+ isDirectory?: boolean;
142
+ descriptorTargetType?: number;
143
+ }>;
144
+ canDeletePartner:
145
+ import("effector").Event<{
146
+ partnerSection?: IPartnersTreeRow;
147
+ }>;
148
+ deletePartner:
149
+ import("effector").Event<{
150
+ partnerSection?: IPartnersTreeRow;
151
+ }>;
152
+ deletePartnerFx:
153
+ import("effector").Effect<{
154
+ partner?: IPartnersTreeRow;
155
+ }, void, Error>;
156
+ $deletingPartner:
157
+ import("effector").Store<IPartnersTreeRow[]>;
158
+ confirmDeleteFx:
159
+ import("effector").Effect<{
160
+ entityName: string;
161
+ isSection: boolean;
162
+ dataType: GenModels.DirectoryDataType;
163
+ }, void, Error>;
164
+ $loadingPartners:
165
+ import("effector").Store<IPartnersTreeRow[]>;
166
+ copyPartner:
167
+ import("effector").Event<{
168
+ copyPartner: IPartnersTreeRow;
169
+ }>;
170
+ cancelCopied:
171
+ import("effector").Event<void>;
172
+ $copiedPartnerTabId:
173
+ import("effector").Store<string>;
174
+ $copiedPartnerId:
175
+ import("effector").Store<string>;
176
+ $cutFlag:
177
+ import("effector").Store<boolean>;
178
+ $copyFlag:
179
+ import("effector").Store<boolean>;
180
+ $isEmployeeTabFlag:
181
+ import("effector").Store<boolean>;
182
+ $copiedDirectory:
183
+ import("effector").Store<string>;
184
+ $pasteVisibilityFlag:
185
+ import("effector").Store<boolean>;
186
+ cutPartner:
187
+ import("effector").Event<{
188
+ cutPartner: IPartnersTreeRow;
189
+ }>;
190
+ cutPartnerItem:
191
+ import("effector").Event<{
192
+ cutPartner: IPartnersTreeRow;
193
+ parentPartnerId?: string;
194
+ }>;
195
+ copyPartnerItem:
196
+ import("effector").Event<{
197
+ copyPartner: IPartnersTreeRow;
198
+ }>;
199
+ removeFromGroup:
200
+ import("effector").Event<{
201
+ partner: IPartnersTreeRow;
202
+ parentPartner: IPartnersTreeRow;
203
+ }>;
204
+ pastePartnersItem:
205
+ import("effector").Effect<{
206
+ parentPartnerId: string;
207
+ }, void, Error>;
208
+ loadEmployeeInfoLayoutFx:
209
+ import("effector").Effect<{
210
+ employeeId: string;
211
+ }, GenModels.LayoutViewModel, Error>;
212
+ loadEmployeeEditLayoutFx:
213
+ import("effector").Effect<{
214
+ employeeId: string;
215
+ }, GenModels.LayoutViewModel, Error>;
216
+ loadEmployeeCreateLayoutFx:
217
+ import("effector").Effect<{
218
+ parentSection: IPartnersTreeRow;
219
+ }, GenModels.LayoutViewModel, Error>;
220
+ loadRootSectionsFx:
221
+ import("effector").Effect<void, IPartnersTreeRow[], Error>;
222
+ loadSubsectionsFx:
223
+ import("effector").Effect<{
224
+ parentSectionId: string;
225
+ }, IDirectoryTreeRow<any>[], Error>;
226
+ loadMoreSubsectionsFx:
227
+ import("effector").Effect<{
228
+ parentSectionId: string;
229
+ }, IDirectoryTreeRow<any>[], Error>;
230
+ reloadSubsectionsFx:
231
+ import("effector").Effect<{
232
+ parentSectionId: string;
233
+ rootSectionId: string;
234
+ }, IDirectoryTreeRow<any>[], Error>;
235
+ loadSectionsFx:
236
+ import("effector").Effect<{
237
+ parentSectionId: string;
238
+ rootSectionId: string;
239
+ }, IDirectoryTreeRow<any>[], Error>;
240
+ loadSectionInfoLayoutFx:
241
+ import("effector").Effect<{
242
+ section: IPartnersTreeRow;
243
+ }, GenModels.LayoutViewModel, Error>;
244
+ loadSectionSummaryLayoutFx:
245
+ import("effector").Effect<{
246
+ section: IPartnersTreeRow;
247
+ }, GenModels.LayoutViewModel, Error>;
248
+ loadSectionEditLayoutFx:
249
+ import("effector").Effect<{
250
+ section: IPartnersTreeRow;
251
+ }, GenModels.LayoutViewModel, Error>;
252
+ loadSectionCreateLayoutFx:
253
+ import("effector").Effect<{
254
+ parentSection: IPartnersTreeRow;
255
+ type?: GenModels.DirectoryDataType;
256
+ }, GenModels.LayoutViewModel, Error>;
257
+ $employeesGridData:
258
+ import("effector").Store<ITableData>;
259
+ reloadEmployeesGridData:
260
+ import("effector").Event<void>;
261
+ lastGridModel: GenModels.GridViewModel;
262
+ lastRequestSection: any;
263
+ loadEmployeesGridDataFx:
264
+ import("effector").Effect<{
265
+ currentData?: ITableData;
266
+ request?: ITableDataLoadRequest;
267
+ }, ITableData, Error>;
268
+ employeesGridResponseResolvers: IFolderDataLoadingPlugin[];
269
+ addToGroupFx:
270
+ import("effector").Effect<{
271
+ unitId: string;
272
+ groupIds: Array<string>;
273
+ }, Promise<void>, Error>;
274
+ removeFromGroupFx:
275
+ import("effector").Effect<{
276
+ groupId: string;
277
+ partnerId: string;
278
+ }, Promise<void>, Error>;
279
+ setPartnerGroupsFx:
280
+ import("effector").Effect<{
281
+ unitId: string;
282
+ groupIds: Array<string>;
283
+ }, GenModels.SetUnitGroupsResult, Error>;
284
+ canDeleteEmployee:
285
+ import("effector").Event<{
286
+ employee: IRow;
287
+ }>;
288
+ deleteEmployee:
289
+ import("effector").Event<{
290
+ employee: IRow;
291
+ }>;
292
+ deleteEmployeeFx:
293
+ import("effector").Effect<{
294
+ employee: IRow;
295
+ }, void, Error>;
296
+ $deletingEmployees:
297
+ import("effector").Store<IRow[]>;
298
+ $loadingEmployees:
299
+ import("effector").Store<IRow[]>;
300
+ contextMenu:
301
+ import("effector").Event<
302
+ import("react").MouseEvent<Element, MouseEvent>>;
303
+ contextMenuFx:
304
+ import("effector").Effect<
305
+ import("react").MouseEvent<Element, MouseEvent>, void, Error>;
306
+ $contextMenuName:
307
+ import("effector").Store<string>;
308
+ $searchResult:
309
+ import("effector").Store<
310
+ import("@docsvision/webclient/DirectoryEdit/DirectorySearchResult").StaffResponse>;
311
+ $searchLoading:
312
+ import("effector").Store<LoadingStatus>;
313
+ startSearch:
314
+ import("effector").Event<{
315
+ searchFilterKey: SearchFilters;
316
+ searchText: string;
317
+ }>;
318
+ startSearchFx:
319
+ import("effector").Effect<{
320
+ searchFilterKey: SearchFilters;
321
+ searchText: string;
322
+ },
323
+ import("@docsvision/webclient/DirectoryEdit/DirectorySearchResult").StaffResponse, Error>;
324
+ loadPartnersDirectoryResultFx:
325
+ import("effector").Effect<void,
326
+ import("@docsvision/webclient/DirectoryEdit/DirectorySearchResult").StaffResponse, Error>;
327
+ $selectedSearchItem:
328
+ import("effector").Store<GenModels.SearchItemModel>;
329
+ $selectLast:
330
+ import("effector").Store<boolean>;
331
+ selectLastReset:
332
+ import("effector").Event<void>;
333
+ searchItemSelect:
334
+ import("effector").Event<GenModels.SearchItemModel>;
335
+ createTreeFromSearchItemFx:
336
+ import("effector").Effect<GenModels.SearchItemModel, IPartnersTreeRow[], Error>;
337
+ $searchResultsExpanded:
338
+ import("effector").Store<boolean>;
339
+ onSearchResultsExpanded:
340
+ import("effector").Event<boolean>;
341
+ clearSearch:
342
+ import("effector").Event<void>;
343
+ $searchItemEmployeeId:
344
+ import("effector").Store<string>;
345
+ $shouldUpdateSelectedSearchItem:
346
+ import("effector").Store<boolean>;
347
+ responseParser: IPartnersEmployeeResponseParser;
348
+ initActiveTab(): void;
349
+ initSelection(): void;
350
+ initTreeLoading(options: PartnersDirectoryParams): void;
351
+ initEmployeesLoad(): void;
352
+ initShowAllToggler(): void;
353
+ initAddRowButtons(): void;
354
+ initPartnerContextMenu(options: IPartnersDirectoryLogicOptions): void;
355
+ initEmployeesContextMenu(options: IPartnersDirectoryLogicOptions): void;
356
+ initSectionModals(options: IPartnersDirectoryLogicOptions): void;
357
+ initEmployeeModals(): void;
358
+ initEmployeesGrid(): void;
359
+ initContextMenu(): void;
360
+ initSearch(): void;
361
+ getSearchItemPath(item: GenModels.SearchItemModel): GenModels.SearchItemModel[];
362
+ getTargetId(parentId: string): string;
363
+ getPartnersPasteMenuItemVisible(rowId: string): boolean;
364
+ isPartnersCutButtonVisible(): boolean;
365
+ init(options: IPartnersDirectoryLogicOptions): void;
366
+ }
@@ -0,0 +1,15 @@
1
+ import React from "react";
2
+ import { ITablePlugins, TablePlugins } from "@docsvision/web/components/table/interfaces";
3
+ import { IDirectoryValuesIconProps } from "@docsvision/webclient/BackOffice/DirectoryValuesIcon";
4
+
5
+ export declare const PARTNERS_DIRECTORY_REMOVE_FROM_GROUP_COLUMN_ID = "_Employees_Remove_From_Group";
6
+ export declare const PartnersDirectoryRemoveFromGroupIconFeature = "PartnersDirectoryRemoveFromGroupIconFeature";
7
+ export declare const PartnersDirectoryRemoveFromGroupIconGridPlugin: (options: {
8
+ component: React.ComponentType<IDirectoryValuesIconProps>;
9
+ onIconClick: (args?: any) => void;
10
+ }) => TablePlugins.Cell.Component<any>;
11
+ export declare const PartnersDirectoryIconColumnGridPlugin: TablePlugins.HeaderCell.Decorator;
12
+ export declare function PartnersDirectoryRemoveFromGroupIconGridPlugins(options: {
13
+ component: React.ComponentType<IDirectoryValuesIconProps>;
14
+ onIconClick: (args?: any) => void;
15
+ }): ITablePlugins;
@@ -0,0 +1,15 @@
1
+ import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
2
+ export declare const PARTNERS_DIRECTORY_ORGANIZATION_TREE_ROOT_ID = "c78abded-db1c-4217-ae0d-51a400546923";
3
+ export declare const PARTNERS_DIRECTORY_GROUP_TREE_ROOT_ID = "78875629-78d3-4ccc-90d9-127b438c5522";
4
+ export declare const PARTNERS_DIRECTORY_POSITION_TREE_ROOT_ID = "bdafe82a-04fa-4391-98b7-5df6502e03dd";
5
+ export declare const PARTNERS_DIRECTORY_TREE_ROOT_TYPES: {
6
+ "c78abded-db1c-4217-ae0d-51a400546923": number;
7
+ "78875629-78d3-4ccc-90d9-127b438c5522": number;
8
+ "bdafe82a-04fa-4391-98b7-5df6502e03dd": GenModels.DirectoryDataType;
9
+ };
10
+ export declare const PARTNERS_DIRECTORY_TREE_ROOT_WRAP_NAMES: {
11
+ "c78abded-db1c-4217-ae0d-51a400546923": string;
12
+ "78875629-78d3-4ccc-90d9-127b438c5522": string;
13
+ "bdafe82a-04fa-4391-98b7-5df6502e03dd": string;
14
+ };
15
+ export declare const PARTNERS_DIRECTORY_SECTION_ROOT_IDS: string[];
@@ -0,0 +1,5 @@
1
+ export declare enum PartnersDirectorySearchFilters {
2
+ Organization = "0",
3
+ Employee = "1",
4
+ Group = "2"
5
+ }
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
3
+ import { IResourcesMap } from "@docsvision/webclient/System/IResourcesMap";
4
+
5
+ interface IPartnersDirectorySelectedButtonsProps {
6
+ selectedGroups: GenModels.PartnersDataModel[];
7
+ resources: IResourcesMap;
8
+ onGroupSelectRemove: (id: string) => void;
9
+ }
10
+ export declare function PartnersDirectorySelectedButtons(props: IPartnersDirectorySelectedButtonsProps): JSX.Element;
11
+ export {};
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ import { HtmlProps } from '@docsvision/web/core/component';
3
+
4
+ export interface IButtonDescription {
5
+ displayName: string;
6
+ className?: string;
7
+ visible: boolean;
8
+ onClick: () => void;
9
+ disabled?: boolean;
10
+ name?: string;
11
+ }
12
+ export interface IPartnersDirectoryTreeAddButtonProps extends HtmlProps.div {
13
+ buttons: IButtonDescription[];
14
+ onAddButtonClick: () => void;
15
+ displayName?: string;
16
+ }
17
+ export declare function PartnersDirectoryTreeAddButton(props: IPartnersDirectoryTreeAddButtonProps): JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { IPartnersDirectoryTreeNodeData } from "@docsvision/webclient/BackOffice/IPartnersDirectoryTreeNodeData";
2
+ import { TreeNode } from "@docsvision/webclient/Helpers/Tree/Data/ClientModels/TreeNode";
3
+ import { LoadingState } from "@docsvision/webclient/System/LoadingState";
4
+ /** @internal */
5
+ export declare class PartnersDirectoryTreeNode extends TreeNode {
6
+ loading: LoadingState;
7
+ selected: boolean;
8
+ constructor(data: IPartnersDirectoryTreeNodeData, level: number, parent: TreeNode, isSelected: boolean, children?: TreeNode[]);
9
+ get iconClass(): string;
10
+ get nodeClass(): string;
11
+ set selectedState(isSelected: boolean);
12
+ get dynamicChildren(): PartnersDirectoryTreeNode[];
13
+ get childrenLoaded(): boolean;
14
+ set childrenLoaded(loaded: boolean);
15
+ }
@@ -0,0 +1,3 @@
1
+ import { IPartnersDirectoryTreeNodeData } from "@docsvision/webclient/BackOffice/IPartnersDirectoryTreeNodeData";
2
+ import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
3
+ export declare function partnersDirectoryTreeNodeDataResolver(item: GenModels.PartnersDirectoryItem): IPartnersDirectoryTreeNodeData;
@@ -0,0 +1,99 @@
1
+ /// <reference types="react" />
2
+ import { DirectoryFrame } from "@docsvision/webclient/BackOffice/DirectoryFrame";
3
+ import { DirectoryTabInfo } from "@docsvision/webclient/BackOffice/DirectoryTabInfo";
4
+ import { IDirectoryTreeRow } from "@docsvision/webclient/BackOffice/IDirectoryTreeRow";
5
+ import { DirectoryValuesIcon } from "@docsvision/webclient/BackOffice/DirectoryValuesIcon";
6
+ import { PartnersDirectoryEmployeesTabFrame } from "@docsvision/webclient/BackOffice/PartnersDirectoryEmployeesTabFrame";
7
+ import { PartnersDirectoryHead } from "@docsvision/webclient/BackOffice/PartnersDirectoryHead";
8
+ import { PartnersDirectoryInfo } from "@docsvision/webclient/BackOffice/PartnersDirectoryInfo";
9
+ import { PartnersDirectoryTreeAddButton } from "@docsvision/webclient/BackOffice/PartnersDirectoryTreeAddButton";
10
+ import { showSecurityDescriptorDialog } from "@docsvision/webclient/Platform/SecurityDescriptorDialog";
11
+ import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
12
+ import { SliderCheckBox } from "@docsvision/webclient/Helpers/SliderCheckBox/SliderCheckBox";
13
+ import { $MessageBox } from "@docsvision/webclient/System/$MessageBox";
14
+ import { PartnersDirectoryAddToGroupModal } from "@docsvision/webclient/BackOffice/PartnersDirectoryAddToGroupModal";
15
+ export declare const ORGANIZATION_TAB_ID = "organization";
16
+ export declare const GROUP_TAB_ID = "group";
17
+ export declare const INFO_TAB_ID = "info";
18
+ export declare const EMPLOYEES_TAB_ID = "employee";
19
+ export declare const EMPLOYEES_ICON_CLASSES = "dv-ico dv-ico-partners-user";
20
+ export declare const EMPLOYEES_REMOVE_FROM_GROUP_ICON_CLASSES = "dv-ico dv-ico-close-circle";
21
+ export declare const CREATE_SECTION_HEADERS: {
22
+ 32: string;
23
+ 16: string;
24
+ 2: string;
25
+ };
26
+ export declare const CREATE_ROOT_SECTION_HEADERS: {
27
+ [x: number]: string;
28
+ 2: string;
29
+ };
30
+ export declare class PartnersDirectoryView {
31
+ leftTabs: DirectoryTabInfo[];
32
+ rightTabs: DirectoryTabInfo[];
33
+ frame: typeof DirectoryFrame;
34
+ head: typeof PartnersDirectoryHead;
35
+ tabs: (props:
36
+ import("@docsvision/webclient/DirectoryEdit/DirectoryTabs").DirectoryTabsProps) => JSX.Element;
37
+ tree: (props:
38
+ import("@docsvision/webclient/DirectoryEdit/DirectoryTree").DirectoryTreeProps) => JSX.Element;
39
+ employees: (props:
40
+ import("@docsvision/webclient/DirectoryEdit/DirectoryValues").DirectoryValuesProps) => JSX.Element;
41
+ entryModal: (props:
42
+ import("@docsvision/webclient/DirectoryEdit/DirectoryEntryModal").IDirectoryEntryModalProps<any, any>) => JSX.Element;
43
+ sectionInfo: typeof PartnersDirectoryInfo;
44
+ showAllButton: typeof SliderCheckBox;
45
+ employeesTabFrame: typeof PartnersDirectoryEmployeesTabFrame;
46
+ removeIcon: typeof DirectoryValuesIcon;
47
+ treeAddButton: typeof PartnersDirectoryTreeAddButton;
48
+ addingToGroupModal: typeof PartnersDirectoryAddToGroupModal;
49
+ partnersContextMenuItemNames: {
50
+ createSection: string;
51
+ accessRights: string;
52
+ info: string;
53
+ edit: string;
54
+ create: string;
55
+ createOrganization: string;
56
+ createDepartment: string;
57
+ createEmployee: string;
58
+ createGroup: string;
59
+ createPosition: string;
60
+ delete: string;
61
+ addToGroup: string;
62
+ removeFromGroup: string;
63
+ copySection: string;
64
+ cutSection: string;
65
+ pasteSection: string;
66
+ cancel: string;
67
+ };
68
+ employeesContextMenuItemNames: {
69
+ info: string;
70
+ edit: string;
71
+ delete: string;
72
+ };
73
+ getConfirmationDialogText: (entityName: string, isSection: boolean, dataType: GenModels.DirectoryDataType) => any;
74
+ showDeleteConfirmationDialog: (entityName: string, services: $MessageBox, isSection: boolean, dataType: GenModels.DirectoryDataType) => Promise<void>;
75
+ showSecurityDescriptorDialog: typeof showSecurityDescriptorDialog;
76
+ getSectionInfoDialogHeader: (params: {
77
+ section: IDirectoryTreeRow;
78
+ }) => string;
79
+ getSectionEditDialogHeader: (params: {
80
+ section: IDirectoryTreeRow;
81
+ }) => string;
82
+ getSectionCreateDialogHeader: (params: {
83
+ parentSection: IDirectoryTreeRow;
84
+ type: GenModels.DirectoryDataType;
85
+ }) => string;
86
+ getEmployeeInfoDialogHeader: (params: {
87
+ employeeId: string;
88
+ }) => string;
89
+ getEmployeeEditDialogHeader: (params: {
90
+ employeeId: string;
91
+ }) => string;
92
+ getEmployeeCreateDialogHeader: (params: {
93
+ parentSection: IDirectoryTreeRow;
94
+ }) => string;
95
+ showInsufficientAccessRightsMessage: (services: $MessageBox) => Promise<void>;
96
+ searchResult: (props:
97
+ import("@docsvision/webclient/DirectoryEdit/DirectorySearchResult").IDirectorySearchResultProps) => JSX.Element;
98
+ getSearchInfoIconClass: (item: GenModels.SearchItemModel) => any;
99
+ }
@@ -0,0 +1,5 @@
1
+ import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
2
+ import { IRow } from "@docsvision/web/components/table/interfaces";
3
+ import { ISimplePluginData } from "@docsvision/web/core/extensibility/plugins";
4
+ export declare const EMPLOYEE_ROW_MODEL_PLUGIN_ID = "EmployeeRowModel";
5
+ export declare function getPartnersEmployeeRowModel(row: IRow): ISimplePluginData<GenModels.EmployeeDataModel>;
@@ -0,0 +1,3 @@
1
+ import { ITableData } from "@docsvision/web/components/table/interfaces";
2
+ /** При загрузке сотрудников через представление извлекает идентификатор сотрудника из системной ячейки */
3
+ export declare function processPartnersEmployeeIdInViewRows(data: ITableData): void;
@@ -0,0 +1,4 @@
1
+ import { PartnersDirectorySearchResponseT } from "@docsvision/webclient/BackOffice/PartnersDirectoryLogic";
2
+ import { SearchFilters } from "@docsvision/webclient/BackOffice/$WebFrameDirectorySearchInfoStorageService";
3
+ import { $PartnersDirectoryController } from "@docsvision/webclient/Generated/DocsVision.WebClient.Controllers";
4
+ export declare function searchPartnersEmployees(searchText: string, searchFilterKey: SearchFilters, services: $PartnersDirectoryController, maxCount?: number, skipCount?: number): Promise<PartnersDirectorySearchResponseT>;
@@ -1170,6 +1170,96 @@ export declare type $PartnerEmployeeController = {
1170
1170
  partnerEmployeeController: GenControllers.IPartnerEmployeeController;
1171
1171
  };
1172
1172
  export declare const $PartnerEmployeeController: string | ((model?: $PartnerEmployeeController) => GenControllers.IPartnerEmployeeController);
1173
+ export declare namespace GenControllers {
1174
+ /**
1175
+ * Layout controller for partners directory
1176
+ */
1177
+ interface IPartnersDirectoryController {
1178
+ /**
1179
+ * Get Partners Grid Data
1180
+ */
1181
+ getPartnersGridData(requestModel: GenModels.PartnersGridRequestModel, options?: RequestOptions): Promise<GenModels.GridViewModel>;
1182
+ /**
1183
+ * Load partners data (tree)
1184
+ *
1185
+ * @param query Search string
1186
+ */
1187
+ loadPartnersData(query: GenModels.PartnersQuery, options?: RequestOptions): Promise<GenModels.PartnersLoadResponse>;
1188
+ /**
1189
+ * Adds partner companies to group
1190
+ *
1191
+ * @param model Instance od the {@link GenModels}
1192
+ */
1193
+ addToGroup(model: GenModels.PartnersAddToGroupRequestModel, options?: RequestOptions): Promise<void>;
1194
+ /**
1195
+ * Removes partners companies from group
1196
+ *
1197
+ * @param groupId source group id
1198
+ * @param partnerId partner company id
1199
+ */
1200
+ removeUnitFromGroup(groupId: string, partnerId: string, options?: RequestOptions): Promise<void>;
1201
+ /**
1202
+ * Move unit to another parent
1203
+ */
1204
+ moveUnit(model: GenModels.PartnersDirectoryMoveModel, options?: RequestOptions): Promise<void>;
1205
+ /**
1206
+ * Copy unit
1207
+ */
1208
+ copyUnit(model: GenModels.PartnersDirectoryMoveModel, options?: RequestOptions): Promise<void>;
1209
+ /**
1210
+ * Deletes unit
1211
+ */
1212
+ deleteUnit(unitId: string, options?: RequestOptions): Promise<void>;
1213
+ /**
1214
+ * Move group to another parent
1215
+ */
1216
+ moveGroup(model: GenModels.PartnersDirectoryMoveModel, options?: RequestOptions): Promise<void>;
1217
+ /**
1218
+ * Copy group
1219
+ */
1220
+ copyGroup(model: GenModels.PartnersDirectoryMoveModel, options?: RequestOptions): Promise<void>;
1221
+ /**
1222
+ * Deletes group
1223
+ */
1224
+ deleteGroup(groupId: string, options?: RequestOptions): Promise<void>;
1225
+ /**
1226
+ * Move employee to another unit
1227
+ */
1228
+ moveEmployee(model: GenModels.PartnersEmployeeMoveModel, options?: RequestOptions): Promise<void>;
1229
+ /**
1230
+ * Deletes employee
1231
+ */
1232
+ deleteEmployee(employeeId: string, options?: RequestOptions): Promise<void>;
1233
+ /**
1234
+ * Get partner unit groups
1235
+ */
1236
+ getUnitGroups(unitId: string, options?: RequestOptions): Promise<Array<GenModels.PartnersGroupDataModel>>;
1237
+ /**
1238
+ * Set unit groups
1239
+ */
1240
+ setUnitGroups(unitGroupsQuery: GenModels.SetUnitGroupsQuery, options?: RequestOptions): Promise<GenModels.SetUnitGroupsResult>;
1241
+ }
1242
+ class PartnersDirectoryController extends ControllerBase implements IPartnersDirectoryController {
1243
+ getPartnersGridData(requestModel: GenModels.PartnersGridRequestModel, options?: RequestOptions): Promise<GenModels.GridViewModel>;
1244
+ loadPartnersData(query: GenModels.PartnersQuery, options?: RequestOptions): Promise<GenModels.PartnersLoadResponse>;
1245
+ addToGroup(model: GenModels.PartnersAddToGroupRequestModel, options?: RequestOptions): Promise<void>;
1246
+ removeUnitFromGroup(groupId: string, partnerId: string, options?: RequestOptions): Promise<void>;
1247
+ moveUnit(model: GenModels.PartnersDirectoryMoveModel, options?: RequestOptions): Promise<void>;
1248
+ copyUnit(model: GenModels.PartnersDirectoryMoveModel, options?: RequestOptions): Promise<void>;
1249
+ deleteUnit(unitId: string, options?: RequestOptions): Promise<void>;
1250
+ moveGroup(model: GenModels.PartnersDirectoryMoveModel, options?: RequestOptions): Promise<void>;
1251
+ copyGroup(model: GenModels.PartnersDirectoryMoveModel, options?: RequestOptions): Promise<void>;
1252
+ deleteGroup(groupId: string, options?: RequestOptions): Promise<void>;
1253
+ moveEmployee(model: GenModels.PartnersEmployeeMoveModel, options?: RequestOptions): Promise<void>;
1254
+ deleteEmployee(employeeId: string, options?: RequestOptions): Promise<void>;
1255
+ getUnitGroups(unitId: string, options?: RequestOptions): Promise<Array<GenModels.PartnersGroupDataModel>>;
1256
+ setUnitGroups(unitGroupsQuery: GenModels.SetUnitGroupsQuery, options?: RequestOptions): Promise<GenModels.SetUnitGroupsResult>;
1257
+ }
1258
+ }
1259
+ export declare type $PartnersDirectoryController = {
1260
+ partnersDirectoryController: GenControllers.IPartnersDirectoryController;
1261
+ };
1262
+ export declare const $PartnersDirectoryController: string | ((model?: $PartnersDirectoryController) => GenControllers.IPartnersDirectoryController);
1173
1263
  export declare namespace GenControllers {
1174
1264
  /**
1175
1265
  * Api controller with power of attorney methods