@docsvision/webclient 6.1.4-beta.1 → 6.1.6-beta.1
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/AgreementHistory.d.ts +7 -1
- package/Approval/AgreementHistoryImpl.d.ts +3 -3
- package/Approval/AgreementManagementImpl.d.ts +1 -0
- package/Approval/ApprovalDialogContent.d.ts +31 -0
- package/BackOffice/$DigitalSignature.d.ts +2 -0
- package/BackOffice/CardKindImpl.d.ts +1 -1
- package/BackOffice/CardKindTree.d.ts +1 -1
- package/BackOffice/DirectoryDesRowSelectDialog.d.ts +2 -1
- package/BackOffice/FileListConstants.d.ts +1 -0
- package/BackOffice/FileListControl.d.ts +17 -2
- package/BackOffice/FileListControl.stories.d.ts +10 -0
- package/BackOffice/FileListControlImpl.d.ts +16 -1
- package/BackOffice/FileListItemComponent.d.ts +1 -0
- package/BackOffice/Powers.d.ts +2 -0
- package/BackOffice/PowersImpl.d.ts +2 -0
- package/BackOffice/StaffDirectoryDataVisualiser.d.ts +1 -0
- package/BackOffice/StaffDirectorySelectDialog.d.ts +1 -0
- package/Generated/DocsVision.WebClient.Controllers.d.ts +105 -5
- package/Generated/DocsVision.WebClient.Models.d.ts +153 -0
- package/Helpers/Breadcrumbs/Breadcrumbs.d.ts +1 -0
- package/Helpers/Breadcrumbs/BreadcrumbsView.d.ts +1 -0
- package/Helpers/Breadcrumbs/LinkView/LinkItemViewWithSeparator.d.ts +3 -1
- package/Helpers/FileViewZip/FileViewZip.d.ts +47 -0
- package/Helpers/FileViewZip/FileViewZipModal.d.ts +24 -0
- package/Helpers/Menu/AdaptiveMenuBar.d.ts +2 -0
- package/Helpers/Menu/DesktopMenuBar.d.ts +1 -0
- package/Legacy/ApprovalFilePanel.d.ts +2 -0
- package/Legacy/TaskCardFilePanelRazorControl.d.ts +2 -0
- package/Legacy/TaskCardView.d.ts +0 -1
- package/Legacy/Utils.d.ts +10 -0
- package/Libs/CryptoPro/Crypto.d.ts +6 -3
- package/MainBundle.d.ts +2 -0
- package/Platform/CardLink.d.ts +2 -1
- package/Platform/CardLinkImpl.d.ts +4 -2
- package/Platform/ContextMenuCustomPlugins.d.ts +1 -0
- package/Platform/DateTimePicker.d.ts +1 -0
- package/Platform/DateTimePickerImpl.d.ts +1 -1
- package/Platform/FileExtensions.d.ts +4 -1
- package/Platform/FilePicker.d.ts +11 -5
- package/Platform/FilePicker.stories.d.ts +11 -0
- package/Platform/FilePickerImpl.d.ts +14 -3
- package/Platform/FilePickerMenuItemsView.d.ts +1 -0
- package/Platform/FilePickerOperations.d.ts +13 -4
- package/Platform/FilePickerOperationsAvailability.d.ts +1 -0
- package/Platform/FilePreview.d.ts +3 -3
- package/Platform/FolderPageRouteHelpers.d.ts +4 -3
- package/Platform/FolderRouteParameters.d.ts +1 -0
- package/Platform/FolderWebFrameRouteHandler.d.ts +1 -1
- package/Platform/IFilePickerMenuOpeningArgs.d.ts +4 -0
- package/Platform/IFolderDataLoadingPlugin.d.ts +2 -1
- package/Platform/IFolderPageRouteData.d.ts +1 -0
- package/Platform/ITextBoxMaskProps.d.ts +56 -0
- package/Platform/OpenedDialogFixture.d.ts +2 -0
- package/Platform/ScanDialogService.d.ts +1 -0
- package/Platform/ScanDialogService.stories.d.ts +22 -0
- package/Platform/SearchParametersFolderRequestResolver.d.ts +2 -2
- package/Platform/SearchParametersFolderResponseResolver.d.ts +1 -2
- package/Platform/SearchTextInput.d.ts +2 -2
- package/Platform/TestUtils.d.ts +1 -2
- package/Platform/TextBox.d.ts +3 -0
- package/Platform/TextBox.stories.d.ts +17 -9
- package/Platform/TextBoxImpl.d.ts +11 -0
- package/Platform/TextBoxInputField.d.ts +3 -0
- package/Platform/TextBoxInputMask.d.ts +7 -0
- package/Platform/TextBoxInputMaskView.d.ts +10 -0
- package/Platform/TextListInputLogic.d.ts +1 -0
- package/StandardServices.d.ts +1 -2
- package/System/FileScanServiceStub.d.ts +8 -0
- package/System/IWebServicesConnection.d.ts +2 -0
- package/System/IWebServicesService.d.ts +0 -2
- package/System/LayoutCardControllerStub.d.ts +1 -0
- package/System/LocationContainerControl.d.ts +2 -1
- package/System/LocationContainerControl.stories.d.ts +18 -0
- package/System/LocationContainerControlRealoadLayoutApi.stories.d.ts +20 -0
- package/System/LocationContainerControlStoriesData.d.ts +15 -0
- package/System/ResourcesStub.d.ts +5 -0
- package/System/WebServicesConnection.d.ts +2 -0
- package/System/WebServicesService.d.ts +10 -10
- package/package.json +1 -1
- package/Platform/$LastSearchParameters.d.ts +0 -10
- package/Platform/LastSearchParametersService.d.ts +0 -11
|
@@ -37,11 +37,13 @@ export declare class AgreementHistoryParams extends BaseControlParams {
|
|
|
37
37
|
/** Основная информация об истории. */
|
|
38
38
|
model: GenModels.AgreementHistoryDataModel;
|
|
39
39
|
/** Данные об истории и её циклах. */
|
|
40
|
-
rows?: GenModels.ApprovalHistoryViewModel
|
|
40
|
+
rows?: Array<GenModels.ApprovalHistoryViewModel>;
|
|
41
41
|
/** Отображать комментарий в таблице */
|
|
42
42
|
showCommentsInTable?: boolean;
|
|
43
43
|
/** Режим открытия заданий. */
|
|
44
44
|
openMode?: GenModels.OpenMode;
|
|
45
|
+
/** Режим отображения */
|
|
46
|
+
displayMode?: GenModels.AgreementHistoryDisplayMode;
|
|
45
47
|
/** Событие возникает при открытии окна хода согласования. */
|
|
46
48
|
approvingReportOpening?: CancelableApiEvent<IApprovingReportOpeningEventArgs>;
|
|
47
49
|
/** Событие возникает при закрытии окна хода согласования. */
|
|
@@ -54,6 +56,10 @@ export declare class AgreementHistoryParams extends BaseControlParams {
|
|
|
54
56
|
approvingReportClosed?: BasicApiEvent<IEventArgs>;
|
|
55
57
|
/** Событие возникает после обновления данных хода согласования. */
|
|
56
58
|
approvingReportRefreshed?: BasicApiEvent<IApprovingReportRefreshedEventArgs>;
|
|
59
|
+
/** Событие возникает перед сменой выбора этапа. */
|
|
60
|
+
beforeDataChanging?: CancelableApiEvent<IEventArgs>;
|
|
61
|
+
/** Событие возникает после смены выбора этапа. */
|
|
62
|
+
afterDataChanged?: BasicApiEvent<IEventArgs>;
|
|
57
63
|
/** Сервисы. */
|
|
58
64
|
services?: $FileController & $LayoutAgreementController & $EditOperationStore & Optional<$AgreementHistoryStageRenderer> & $RouterNavigation & $FilePreviewServices;
|
|
59
65
|
/** Параметр для переопределения сервиса рендеринга таблицы или ячейки этапа */
|
|
@@ -12,7 +12,8 @@ export interface AgreementHistoryState extends BaseControlState, AgreementHistor
|
|
|
12
12
|
isHistoryDataReceived: boolean;
|
|
13
13
|
loading: boolean;
|
|
14
14
|
maximized: boolean;
|
|
15
|
-
lastLoadedData: GenModels.ApprovalHistoryViewModel
|
|
15
|
+
lastLoadedData: Array<GenModels.ApprovalHistoryViewModel>;
|
|
16
|
+
selectedAgreementItem: GenModels.ApprovalHistoryViewModel;
|
|
16
17
|
}
|
|
17
18
|
/** @internal */
|
|
18
19
|
export declare type AgreementHistoryImplState = AgreementHistoryState;
|
|
@@ -34,13 +35,12 @@ export declare class AgreementHistoryImpl extends BaseControlImpl<AgreementHisto
|
|
|
34
35
|
/** Можно ли показать отчёт. */
|
|
35
36
|
canShowReport(): boolean;
|
|
36
37
|
/** Загрузить историю. */
|
|
37
|
-
loadData(): Promise<GenModels.ApprovalHistoryViewModel
|
|
38
|
+
loadData(): Promise<Array<GenModels.ApprovalHistoryViewModel>>;
|
|
38
39
|
/**
|
|
39
40
|
* Отрисовать содержимое диалогового окна
|
|
40
41
|
* @param dialog Диалог
|
|
41
42
|
* @param data Данные
|
|
42
43
|
*/
|
|
43
|
-
private renderDialogContent;
|
|
44
44
|
/** Обновить отчёт. */
|
|
45
45
|
refreshReport(): void;
|
|
46
46
|
/** Показан ли отчёт. */
|
|
@@ -55,6 +55,7 @@ export declare class AgreementManagementImpl extends BaseControlImpl<AgreementMa
|
|
|
55
55
|
protected getButtonName: (operationKind: GenModels.AgreementManagementOperations) => string;
|
|
56
56
|
protected getTemplateComboBoxProps(): any;
|
|
57
57
|
protected getTemplateComboBoxElements(): any;
|
|
58
|
+
private getTemplateComboBoxId;
|
|
58
59
|
get canStart(): boolean;
|
|
59
60
|
get canManage(): boolean;
|
|
60
61
|
renderControl(): JSX.Element;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IApprovingReportRefreshedEventArgs } from "@docsvision/webclient/Approval/IApprovingReportRefreshedEventArgs";
|
|
3
|
+
import { IApprovingReportRefreshingEventArgs } from "@docsvision/webclient/Approval/IApprovingReportRefreshingEventArgs";
|
|
4
|
+
import { $AgreementHistoryStageRenderer, IAgreementHistoryStageRenderer } from "@docsvision/webclient/Approval/$AgreementHistoryStageRenderer";
|
|
5
|
+
import { $LayoutAgreementController } from "@docsvision/webclient/Generated/DocsVision.WebClient.Controllers";
|
|
6
|
+
import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
|
|
7
|
+
import { $FileController } from "@docsvision/webclient/Legacy/FileController";
|
|
8
|
+
import { $FilePreviewServices } from "@docsvision/webclient/Platform/FilePreview";
|
|
9
|
+
import { $EditOperationStore } from "@docsvision/webclient/System/LayoutServices";
|
|
10
|
+
import { BasicApiEvent, CancelableApiEvent } from "@docsvision/webclient/System/ApiEvent";
|
|
11
|
+
import { IEventArgs } from "@docsvision/webclient/System/IEventArgs";
|
|
12
|
+
import { $RouterNavigation } from "@docsvision/webclient/System/$Router";
|
|
13
|
+
import { Optional } from "@docsvision/web/core/services";
|
|
14
|
+
export interface IDialogContentDataProps {
|
|
15
|
+
data: Array<GenModels.ApprovalHistoryViewModel>;
|
|
16
|
+
displayMode: GenModels.AgreementHistoryDisplayMode;
|
|
17
|
+
controlName: string;
|
|
18
|
+
showCommentsInTable?: boolean;
|
|
19
|
+
openMode?: GenModels.OpenMode;
|
|
20
|
+
inline?: boolean;
|
|
21
|
+
tabIndex: number;
|
|
22
|
+
stageRenderer?: IAgreementHistoryStageRenderer;
|
|
23
|
+
approvingReportRefreshed?: BasicApiEvent<IApprovingReportRefreshedEventArgs>;
|
|
24
|
+
approvingReportRefreshing?: CancelableApiEvent<IApprovingReportRefreshingEventArgs>;
|
|
25
|
+
beforeDataChanging?: CancelableApiEvent<IEventArgs>;
|
|
26
|
+
afterDataChanged?: BasicApiEvent<IEventArgs>;
|
|
27
|
+
services?: $FileController & $LayoutAgreementController & $EditOperationStore & Optional<$AgreementHistoryStageRenderer> & $RouterNavigation & $FilePreviewServices;
|
|
28
|
+
refreshReport: () => void;
|
|
29
|
+
closeDialog?: () => void;
|
|
30
|
+
}
|
|
31
|
+
export declare function ApprovalDialogContent(props: IDialogContentDataProps): JSX.Element;
|
|
@@ -44,6 +44,8 @@ export interface IDigitalSignOptions {
|
|
|
44
44
|
/** Дополнительная необязательная информация о карточке для кастомизации подписи в решениях. */
|
|
45
45
|
cardInfo?: GenModels.CardInfoModel;
|
|
46
46
|
powerOfAttorneyID?: string;
|
|
47
|
+
/** Параметр позволяет задать явно тип подписи, если вызывающий код хочет отменить стандартную логику выбора. */
|
|
48
|
+
signatureType?: GenModels.DigitalSignatureKind;
|
|
47
49
|
}
|
|
48
50
|
export declare class IEncryptedInfo {
|
|
49
51
|
/** Идентификатор карточки документа */
|
|
@@ -49,7 +49,7 @@ export declare class CardKindImpl extends InputBasedControlImpl<GenModels.CardKi
|
|
|
49
49
|
/**
|
|
50
50
|
* Доступен ли вид карточки
|
|
51
51
|
*/
|
|
52
|
-
protected isCardKindAvailable: (cardKind: CardKindTreeNodeModel) => boolean;
|
|
52
|
+
protected isCardKindAvailable: (cardKind: CardKindTreeNodeModel, notAvailableProperty?: "notAvailable" | "notSelectable") => boolean;
|
|
53
53
|
/**
|
|
54
54
|
* При выборе вида в списке с автодополнением
|
|
55
55
|
*/
|
|
@@ -11,7 +11,7 @@ export interface ICardKindTreeProps {
|
|
|
11
11
|
activeKindId?: string;
|
|
12
12
|
emptyMessage?: string;
|
|
13
13
|
onCardKindSelected?: (kind: CardKindTreeNodeModel) => void;
|
|
14
|
-
isCardKindAvailable?: (kind: CardKindTreeNodeModel) => boolean;
|
|
14
|
+
isCardKindAvailable?: (kind: CardKindTreeNodeModel, notAvailbaleProperty?: "notAvailable" | "notSelectable") => boolean;
|
|
15
15
|
notAvailableProperty: "notSelectable" | "notAvailable";
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { $DirectoryDesignerRowController, $LayoutRowController } from "@docsvision/webclient/Generated/DocsVision.WebClient.Controllers";
|
|
3
2
|
import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
|
|
4
3
|
import { LayoutControl } from '@docsvision/webclient/System/BaseControl';
|
|
5
4
|
import { DirectorySelectDialog, IDirectorySelectDialogProps, IDirectorySelectDialogState } from '@docsvision/webclient/System/DirectorySelectDialog';
|
|
6
5
|
import { IDirectoryChildrenLoadResponse, IDirectoryItem, IDirectorySearchItem, IDirectorySearchResponse } from '@docsvision/webclient/System/DirectoryServerModels';
|
|
7
6
|
import { $LocationContainerControlServices } from '@docsvision/webclient/System/LocationContainerControl';
|
|
7
|
+
import React from "react";
|
|
8
8
|
import { DirectoryDesignerRowItemVisualiser } from "@docsvision/webclient/BackOffice/DirectoryDesignerRowItemVisualiser";
|
|
9
9
|
import { FieldNameAccessor } from "@docsvision/webclient/Helpers/DynamicModel/FieldNameAccessor";
|
|
10
10
|
import { FuncAccessor } from "@docsvision/webclient/Helpers/DynamicModel/FuncAccessor";
|
|
@@ -52,6 +52,7 @@ export declare class DirectoryDesRowSelectDialog extends DirectorySelectDialog<V
|
|
|
52
52
|
protected getItemTooltip(item: IDirectoryItem<NodeT | ItemT>): string;
|
|
53
53
|
protected get currentNodeId(): string;
|
|
54
54
|
protected loadChildrenList(nodeId: string, nodeType: any, from: number, to: number): Promise<IDirectoryChildrenLoadResponse<NodeT | ItemT>>;
|
|
55
|
+
protected onChildrenListItemDoubleClick(item: IDirectoryItem<NodeT | ItemT>, ev: React.MouseEvent<unknown>): boolean;
|
|
55
56
|
protected search(searchText: string, nodeId: string, nodeType: any, maxCount: number, skip: number, reset: boolean): Promise<IDirectorySearchResponse<NodeT, NodeT | ItemT>>;
|
|
56
57
|
protected getSearchNodePath(item: IDirectorySearchItem<NodeT, NodeT | ItemT>): GenModels.DirectoryDesignerItem[];
|
|
57
58
|
protected onToggleSearchMode: () => void;
|
|
@@ -10,4 +10,5 @@ export declare class FileListAcceptExtensions {
|
|
|
10
10
|
export declare class FileListPowerOfAttorneyData {
|
|
11
11
|
static FEDERAL_TAX_SERVICE_WEB_SEARCH_URL: string;
|
|
12
12
|
static FEDERAL_TAX_SERVICE_WEB_SEARCH_URL_POA_NUMBER_PARAMETER: string;
|
|
13
|
+
static FEDERAL_TAX_SERVICE_WEB_SEARCH_URL_GUID_PARAMETER: string;
|
|
13
14
|
}
|
|
@@ -57,6 +57,8 @@ import { IRowClickArgs } from "@docsvision/webclient/BackOffice/IRowClickArgs";
|
|
|
57
57
|
import { IFileVersionExpandingArgs } from "@docsvision/webclient/BackOffice/IFileVersionExpandingArgs";
|
|
58
58
|
import { IFileClickingArgs } from "@docsvision/webclient/BackOffice/IFileClickingArgs";
|
|
59
59
|
import { $WebServices } from "@docsvision/webclient/System/IWebServicesService";
|
|
60
|
+
import { AdaptiveMenuBar } from "@docsvision/webclient/Helpers/Menu/AdaptiveMenuBar";
|
|
61
|
+
import { $FileDownload } from "@docsvision/webclient/Platform/$FileDownload";
|
|
60
62
|
/**
|
|
61
63
|
* Содержит публичные свойства элемента управления [Список файлов]{@link FileListControl}.
|
|
62
64
|
*/
|
|
@@ -112,6 +114,12 @@ export declare class FileListControlParams extends BaseControlParams {
|
|
|
112
114
|
addAdditionalFileText?: string;
|
|
113
115
|
/** Показывать ли кнопку подписания и просмотра журнала подписи. {@see SignatureButton} */
|
|
114
116
|
hideSignatureButton?: boolean;
|
|
117
|
+
/** Текущая сортировка файлов */
|
|
118
|
+
sortingFiles?: GenModels.SortingFiles;
|
|
119
|
+
/** Флаг, определяющий доступен ли выбор сортировки файлов пользователю */
|
|
120
|
+
userSorting?: boolean;
|
|
121
|
+
/** Флаг, определяющий открыто ли меню сортировки файлов */
|
|
122
|
+
openSortingMenu?: boolean;
|
|
115
123
|
/** Событие возникает при добавлении основного файла. */
|
|
116
124
|
mainFileAdding?: CancelableApiEvent<IMainFileAddingArgs>;
|
|
117
125
|
/** Событие возникает при добавлении дополнительного файла. */
|
|
@@ -191,7 +199,7 @@ export declare class FileListControlParams extends BaseControlParams {
|
|
|
191
199
|
/** Сервисы. */
|
|
192
200
|
services?: FileListServices;
|
|
193
201
|
}
|
|
194
|
-
export declare type FileListServices = $FileService & $DocumentCardController & $FileController & $LayoutFileController & $Layout & $RequestManager & $SignatureController & $CardId & $RealtimeCommunicationService & $Router & $DeviceType & $EditOperationStore & $CardInfo & $DataVisualizationController & $LayoutCheck & $ApplicationSettings & $FileUpload & $UrlStore & $MessageBox & $WebViewIOSEnabled & $LayoutFileApiController & $LayoutDocumentController & $CloudSignature & $CryptoPro & $LocalStorage & $SignatureMethodsController & $DigitalSignature & $LayoutManager & $LayoutInfo & $FileListOptions & $SiteUrl & $WebServices & $CardTimestamp & $R7OfficeController;
|
|
202
|
+
export declare type FileListServices = $FileService & $DocumentCardController & $FileController & $LayoutFileController & $Layout & $RequestManager & $SignatureController & $CardId & $RealtimeCommunicationService & $Router & $DeviceType & $EditOperationStore & $CardInfo & $DataVisualizationController & $LayoutCheck & $ApplicationSettings & $FileUpload & $UrlStore & $MessageBox & $WebViewIOSEnabled & $LayoutFileApiController & $LayoutDocumentController & $CloudSignature & $CryptoPro & $LocalStorage & $FileDownload & $SignatureMethodsController & $DigitalSignature & $LayoutManager & $LayoutInfo & $FileListOptions & $SiteUrl & $WebServices & $CardTimestamp & $R7OfficeController;
|
|
195
203
|
/**
|
|
196
204
|
* Класс элемента управления Список файлов.
|
|
197
205
|
*
|
|
@@ -205,6 +213,7 @@ export declare class FileListControl extends BaseControl<FileListControlParams,
|
|
|
205
213
|
protected createParams(): FileListControlParams;
|
|
206
214
|
protected createImpl(): FileListControlImpl;
|
|
207
215
|
private get fileListImpl();
|
|
216
|
+
get sortingMenu(): AdaptiveMenuBar;
|
|
208
217
|
private set bindingEditOperation(value);
|
|
209
218
|
/** Установка раскрытости основных файлов. */
|
|
210
219
|
set mainFilesExpanded(val: boolean);
|
|
@@ -317,10 +326,16 @@ export declare class FileListControl extends BaseControl<FileListControlParams,
|
|
|
317
326
|
*/
|
|
318
327
|
select(file: FileListItem): void;
|
|
319
328
|
/**
|
|
329
|
+
* @deprecated Используй openFile.
|
|
320
330
|
* Открывает файл с использованием технологии WebDAV.
|
|
321
331
|
* @param fileItem Файл.
|
|
322
332
|
*/
|
|
323
|
-
openWebDav(fileItem: FileListItem):
|
|
333
|
+
openWebDav(fileItem: FileListItem): void;
|
|
334
|
+
/**
|
|
335
|
+
* Открывает файл с помощью dvwebtool/dvsupservice.
|
|
336
|
+
* @param fileItem Файл.
|
|
337
|
+
*/
|
|
338
|
+
openFile(fileItem: FileListItem): void;
|
|
324
339
|
/** @inheritDoc */
|
|
325
340
|
init(): void;
|
|
326
341
|
deinit(): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FileListControl } from "@docsvision/webclient/BackOffice/FileListControl";
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof FileListControl;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const Default: () => JSX.Element;
|
|
9
|
+
export declare const SortingMenu: () => JSX.Element;
|
|
10
|
+
export declare const SortingMenuNotAvailable: () => JSX.Element;
|
|
@@ -12,6 +12,7 @@ import { ControlSelector } from '@docsvision/webclient/Helpers/ControlSelector/C
|
|
|
12
12
|
import { RequestHelper } from '@docsvision/webclient/System/RequestHelper';
|
|
13
13
|
import { LayoutControl } from '@docsvision/webclient/System/BaseControl';
|
|
14
14
|
import { FileListFormType } from '@docsvision/webclient/BackOffice/FileListFormType';
|
|
15
|
+
import { AdaptiveMenuBar } from "@docsvision/webclient/Helpers/Menu/AdaptiveMenuBar";
|
|
15
16
|
/** @internal */
|
|
16
17
|
export interface FileListControlState extends BaseControlImplState, FileListControlParams {
|
|
17
18
|
fileListOperationModels: GenModels.ControlModel[];
|
|
@@ -26,7 +27,7 @@ export declare type FileListImplState = FileListControlState;
|
|
|
26
27
|
export declare const WEB_DAV_FILE_CLOSED_MESSAGE_TYPE = "FileClosed";
|
|
27
28
|
export declare const WEB_DAV_FILE_OPENED_FOR_READING_MESSAGE_TYPE = "FileOpenForReading";
|
|
28
29
|
export declare const WEB_DAV_FILE_OPENED_FOR_EDITING_MESSAGE_TYPE = "FileOpenForWriting";
|
|
29
|
-
export declare const
|
|
30
|
+
export declare const FILE_CHANGED_AND_SAVED_MESSAGE_TYPE = "NewFileVersionAdded";
|
|
30
31
|
export interface ICardOpenedByWebDavMessage {
|
|
31
32
|
CardId: string;
|
|
32
33
|
FileId: string;
|
|
@@ -44,6 +45,10 @@ export interface ICardOpenedByWebDavMessage {
|
|
|
44
45
|
export interface IFileListOptions {
|
|
45
46
|
getFileListLogic?(params: FileListControlParams): FileListControlLogic;
|
|
46
47
|
}
|
|
48
|
+
export interface ISortFilesOption {
|
|
49
|
+
displayString: string;
|
|
50
|
+
key: GenModels.SortingFiles;
|
|
51
|
+
}
|
|
47
52
|
export declare type $FileListOptions = {
|
|
48
53
|
fileListOptions?: IFileListOptions;
|
|
49
54
|
};
|
|
@@ -63,6 +68,8 @@ export declare class FileListControlImpl extends BaseControlImpl<FileListControl
|
|
|
63
68
|
requestHelper: RequestHelper;
|
|
64
69
|
filesHeader: HTMLElement;
|
|
65
70
|
wasToggled: boolean;
|
|
71
|
+
sortingLocalStorageKey: string;
|
|
72
|
+
sortingMenu: AdaptiveMenuBar;
|
|
66
73
|
get logic(): FileListControlLogic;
|
|
67
74
|
constructor(props: FileListControlParams, state: FileListControlState);
|
|
68
75
|
UNSAFE_componentWillMount(): void;
|
|
@@ -86,6 +93,8 @@ export declare class FileListControlImpl extends BaseControlImpl<FileListControl
|
|
|
86
93
|
set signCommandBarExpanded(val: boolean);
|
|
87
94
|
renderUploadForm(attach: FileListAttachedElements, action: string, main: boolean, type: FileListFormType, fileItem?: FileListItem, accept?: string): JSX.Element;
|
|
88
95
|
private sortFiles;
|
|
96
|
+
private compareFileName;
|
|
97
|
+
private compareFileTime;
|
|
89
98
|
protected onDropzoneClick(): void;
|
|
90
99
|
protected renderEditModeTitle(mainFiles: boolean): JSX.Element;
|
|
91
100
|
protected renderEditModeCommandBar(): JSX.Element;
|
|
@@ -119,6 +128,12 @@ export declare class FileListControlImpl extends BaseControlImpl<FileListControl
|
|
|
119
128
|
private getFolderButtonTitle;
|
|
120
129
|
protected renderViewModeCommandBar(): JSX.Element;
|
|
121
130
|
protected renderViewModeSignPanel(): JSX.Element;
|
|
131
|
+
protected renderSortingOption(): JSX.Element;
|
|
132
|
+
selectSorting(sortOption: ISortFilesOption): void;
|
|
133
|
+
openSortingMenu: () => void;
|
|
134
|
+
closeSortingMenu: () => void;
|
|
135
|
+
toggleSortingMenu: () => void;
|
|
136
|
+
protected onSortMenuKeyDown: (event: React.KeyboardEvent) => void;
|
|
122
137
|
protected renderViewModeFilesHeader(): JSX.Element;
|
|
123
138
|
selectFile(file: FileListItem): void;
|
|
124
139
|
highlightSelectedFile(): void;
|
|
@@ -29,6 +29,7 @@ export declare class FileListItemComponent extends React.Component<FileListItemP
|
|
|
29
29
|
onLockOperationClick(fileItem: FileListItem): void;
|
|
30
30
|
onUnlockOperationClick(fileItem: FileListItem): void;
|
|
31
31
|
onOpenFileClick(fileItem: FileListItem): Promise<void>;
|
|
32
|
+
openFile(fileItem: FileListItem): void;
|
|
32
33
|
protected onDeleteOperationClick(fileItem: FileListItem): void;
|
|
33
34
|
protected onFileMenuClick(fileItem: FileListItem): Promise<void>;
|
|
34
35
|
protected onRowClick(fileItem: FileListItem): void;
|
package/BackOffice/Powers.d.ts
CHANGED
|
@@ -21,6 +21,8 @@ export declare class PowersParams<ValueT extends PowersValueType = PowersValueTy
|
|
|
21
21
|
selectedItem?: ItemT;
|
|
22
22
|
/** Сохранять разметку при изменении значения */
|
|
23
23
|
saveOnChangeValue?: boolean;
|
|
24
|
+
/** Доступен ли выбор из списка последних. */
|
|
25
|
+
enableFavorites?: boolean;
|
|
24
26
|
/**
|
|
25
27
|
* Событие, возникающее перед выполнением поиска записей на сервере. В обработчике события можно изменить параметры запроса.
|
|
26
28
|
* Если в обработчике задать значение result, то запрос на сервер выполнен не будет.
|
|
@@ -23,6 +23,8 @@ export declare class PowersImpl extends DirectoryBaseImpl<PowersValueType, Power
|
|
|
23
23
|
constructor(props: PowersParams, state: IPowersState);
|
|
24
24
|
protected getTextValue(): string;
|
|
25
25
|
protected getCssClass(): string;
|
|
26
|
+
private shouldShowFavorites;
|
|
27
|
+
protected onInputAndPlaceholderClick(): void;
|
|
26
28
|
protected onInputChange(event: any): Promise<void>;
|
|
27
29
|
protected getIconClassName(): string;
|
|
28
30
|
hasValue(): boolean;
|
|
@@ -7,6 +7,7 @@ export declare class StaffDirectoryDataVisualiser {
|
|
|
7
7
|
constructor(employeeVisualiser: EmployeeVisualizer);
|
|
8
8
|
getDisplayName(item: GenModels.IDirectoryItemData): string;
|
|
9
9
|
getShortDisplayName(item: GenModels.IDirectoryItemData): string;
|
|
10
|
+
getNotAvailable(item: GenModels.IDirectoryItemData): boolean;
|
|
10
11
|
getTooltip(item: GenModels.IDirectoryItemData): string;
|
|
11
12
|
getIconClassName(item: GenModels.IDirectoryItemData, selected: boolean): string;
|
|
12
13
|
}
|
|
@@ -45,6 +45,7 @@ export declare class StaffDirectorySelectDialog extends DirectorySelectDialog<St
|
|
|
45
45
|
directoryDataId: FieldNameAccessor<GenModels.IDirectoryItemData, string>;
|
|
46
46
|
directoryDataName: FuncAccessor<GenModels.IDirectoryItemData, string>;
|
|
47
47
|
directoryDataTip: FuncAccessor<GenModels.IDirectoryItemData, string>;
|
|
48
|
+
directoryItemReadonly: FuncAccessor<GenModels.IDirectoryItemData, boolean>;
|
|
48
49
|
constructor(props: IStaffDirectorySelectDialogProps);
|
|
49
50
|
componentDidMount(): void;
|
|
50
51
|
get selectedItems(): GenModels.IDirectoryItemData[];
|
|
@@ -1,6 +1,25 @@
|
|
|
1
1
|
import { ControllerBase } from '@docsvision/webclient/System/ControllerBase';
|
|
2
2
|
import { RequestOptions } from '@docsvision/webclient/Legacy/Utils';
|
|
3
3
|
import { GenModels } from '@docsvision/webclient/Generated/DocsVision.WebClient.Models';
|
|
4
|
+
export declare namespace GenControllers {
|
|
5
|
+
/**
|
|
6
|
+
* Represents controller to check Web-client initialization status.
|
|
7
|
+
*/
|
|
8
|
+
interface IInitializationController {
|
|
9
|
+
/**
|
|
10
|
+
* Gets the initialization status of Web-client.
|
|
11
|
+
* Returns a 200 OK status if initialized, otherwise returns a 503 Service Unavailable status.
|
|
12
|
+
*/
|
|
13
|
+
isInitialized(options?: RequestOptions): Promise<string>;
|
|
14
|
+
}
|
|
15
|
+
class InitializationController extends ControllerBase implements IInitializationController {
|
|
16
|
+
isInitialized(options?: RequestOptions): Promise<string>;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export declare type $InitializationController = {
|
|
20
|
+
initializationController: GenControllers.IInitializationController;
|
|
21
|
+
};
|
|
22
|
+
export declare const $InitializationController: string | ((model?: $InitializationController) => GenControllers.IInitializationController);
|
|
4
23
|
export declare namespace GenControllers {
|
|
5
24
|
/**
|
|
6
25
|
* Employee controller
|
|
@@ -635,6 +654,56 @@ export declare type $FavoritesController = {
|
|
|
635
654
|
favoritesController: GenControllers.IFavoritesController;
|
|
636
655
|
};
|
|
637
656
|
export declare const $FavoritesController: string | ((model?: $FavoritesController) => GenControllers.IFavoritesController);
|
|
657
|
+
export declare namespace GenControllers {
|
|
658
|
+
/**
|
|
659
|
+
* File hash controller
|
|
660
|
+
*/
|
|
661
|
+
interface IFileHashController {
|
|
662
|
+
/**
|
|
663
|
+
* Get hash of file data
|
|
664
|
+
*
|
|
665
|
+
* @param fileId File ID
|
|
666
|
+
* @param algorithm Hash algorithm name
|
|
667
|
+
*
|
|
668
|
+
* @returns Returns the hash of the file
|
|
669
|
+
*/
|
|
670
|
+
getDataHash(fileId: string, algorithm: string, options?: RequestOptions): Promise<string>;
|
|
671
|
+
/**
|
|
672
|
+
* Get hash of attachment stream
|
|
673
|
+
*
|
|
674
|
+
* @param cardId Card id
|
|
675
|
+
* @param algorithm Hash algorithm name
|
|
676
|
+
*
|
|
677
|
+
* @returns Returns the hash of the attachment stream
|
|
678
|
+
*/
|
|
679
|
+
getAttachmentStreamHash(cardId: string, algorithm: string, options?: RequestOptions): Promise<string>;
|
|
680
|
+
/**
|
|
681
|
+
* Get hash of fields stream
|
|
682
|
+
*
|
|
683
|
+
* @param cardId Card id
|
|
684
|
+
* @param algorithm Hash algorithm name
|
|
685
|
+
*
|
|
686
|
+
* @returns Returns the hash of the fields stream
|
|
687
|
+
*/
|
|
688
|
+
getFieldsStreamHash(cardId: string, algorithm: string, options?: RequestOptions): Promise<string>;
|
|
689
|
+
/**
|
|
690
|
+
* Get hash algorithm name from certificate in base64
|
|
691
|
+
*
|
|
692
|
+
* @returns Hash algorithm name
|
|
693
|
+
*/
|
|
694
|
+
getCertificateHashAlgorithm(options?: RequestOptions): Promise<any>;
|
|
695
|
+
}
|
|
696
|
+
class FileHashController extends ControllerBase implements IFileHashController {
|
|
697
|
+
getDataHash(fileId: string, algorithm: string, options?: RequestOptions): Promise<string>;
|
|
698
|
+
getAttachmentStreamHash(cardId: string, algorithm: string, options?: RequestOptions): Promise<string>;
|
|
699
|
+
getFieldsStreamHash(cardId: string, algorithm: string, options?: RequestOptions): Promise<string>;
|
|
700
|
+
getCertificateHashAlgorithm(options?: RequestOptions): Promise<any>;
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
export declare type $FileHashController = {
|
|
704
|
+
fileHashController: GenControllers.IFileHashController;
|
|
705
|
+
};
|
|
706
|
+
export declare const $FileHashController: string | ((model?: $FileHashController) => GenControllers.IFileHashController);
|
|
638
707
|
export declare namespace GenControllers {
|
|
639
708
|
/**
|
|
640
709
|
* Defines FilePreviewController
|
|
@@ -1266,6 +1335,24 @@ export declare type $R7OfficeController = {
|
|
|
1266
1335
|
R7OfficeController: GenControllers.IR7OfficeController;
|
|
1267
1336
|
};
|
|
1268
1337
|
export declare const $R7OfficeController: string | ((model?: $R7OfficeController) => GenControllers.IR7OfficeController);
|
|
1338
|
+
export declare namespace GenControllers {
|
|
1339
|
+
/**
|
|
1340
|
+
* R7Office controller for getting token
|
|
1341
|
+
*/
|
|
1342
|
+
interface IR7TokenActivationController {
|
|
1343
|
+
/**
|
|
1344
|
+
* Gets access token for r7documentserver.
|
|
1345
|
+
*/
|
|
1346
|
+
getAccessToken(config: string, options?: RequestOptions): Promise<any>;
|
|
1347
|
+
}
|
|
1348
|
+
class R7TokenActivationController extends ControllerBase implements IR7TokenActivationController {
|
|
1349
|
+
getAccessToken(config: string, options?: RequestOptions): Promise<any>;
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
export declare type $R7TokenActivationController = {
|
|
1353
|
+
R7TokenActivationController: GenControllers.IR7TokenActivationController;
|
|
1354
|
+
};
|
|
1355
|
+
export declare const $R7TokenActivationController: string | ((model?: $R7TokenActivationController) => GenControllers.IR7TokenActivationController);
|
|
1269
1356
|
export declare namespace GenControllers {
|
|
1270
1357
|
/**
|
|
1271
1358
|
* File controller
|
|
@@ -1904,6 +1991,10 @@ export declare namespace GenControllers {
|
|
|
1904
1991
|
* POST: /FilePicker/GetFile
|
|
1905
1992
|
*/
|
|
1906
1993
|
prepareFileDownload(request: GenModels.FilePickerRequestModel, options?: RequestOptions): Promise<void>;
|
|
1994
|
+
/**
|
|
1995
|
+
* POST: /FilePicker/GetViewZipContent
|
|
1996
|
+
*/
|
|
1997
|
+
getViewZipContent(request: GenModels.FilePickerGetViewZipContentRequestModel, options?: RequestOptions): Promise<Array<GenModels.FilePickerViewZipItemModel>>;
|
|
1907
1998
|
}
|
|
1908
1999
|
class FilePickerController extends ControllerBase implements IFilePickerController {
|
|
1909
2000
|
createFile(formCollection: Array<Array<string>>, options?: RequestOptions): Promise<any>;
|
|
@@ -1911,6 +2002,7 @@ export declare namespace GenControllers {
|
|
|
1911
2002
|
replaceFile(formCollection: Array<Array<string>>, options?: RequestOptions): Promise<any>;
|
|
1912
2003
|
getFile(request: GenModels.FilePickerGetFileRequestModel, options?: RequestOptions): Promise<GenModels.FileCardModel>;
|
|
1913
2004
|
prepareFileDownload(request: GenModels.FilePickerRequestModel, options?: RequestOptions): Promise<void>;
|
|
2005
|
+
getViewZipContent(request: GenModels.FilePickerGetViewZipContentRequestModel, options?: RequestOptions): Promise<Array<GenModels.FilePickerViewZipItemModel>>;
|
|
1914
2006
|
}
|
|
1915
2007
|
}
|
|
1916
2008
|
export declare type $FilePickerController = {
|
|
@@ -2018,13 +2110,14 @@ export declare namespace GenControllers {
|
|
|
2018
2110
|
*/
|
|
2019
2111
|
agreementResume(documentCardId: string, reconcileCardId: string, options?: RequestOptions): Promise<void>;
|
|
2020
2112
|
/**
|
|
2021
|
-
*
|
|
2113
|
+
* Gets agreement history.
|
|
2022
2114
|
*
|
|
2023
|
-
* @param reconcileCardId Reconcile card id
|
|
2115
|
+
* @param reconcileCardId Reconcile card id.
|
|
2116
|
+
* @param includeAllReconciliations Determines whether to return all approvals or only current one.
|
|
2024
2117
|
*
|
|
2025
|
-
* @returns JSON representation of {@link GenModels}
|
|
2118
|
+
* @returns JSON representation of {@link GenModels}.
|
|
2026
2119
|
*/
|
|
2027
|
-
getAgreementHistory(reconcileCardId: string, options?: RequestOptions): Promise<GenModels.ApprovalHistoryViewModel
|
|
2120
|
+
getAgreementHistory(reconcileCardId: string, includeAllReconciliations: boolean, options?: RequestOptions): Promise<Array<GenModels.ApprovalHistoryViewModel>>;
|
|
2028
2121
|
}
|
|
2029
2122
|
class LayoutAgreementController extends ControllerBase implements ILayoutAgreementController {
|
|
2030
2123
|
getAgreementList(cardId: string, options?: RequestOptions): Promise<GenModels.AgreementListModel>;
|
|
@@ -2038,7 +2131,7 @@ export declare namespace GenControllers {
|
|
|
2038
2131
|
agreementFinish(documentCardId: string, reconcileCardId: string, options?: RequestOptions): Promise<void>;
|
|
2039
2132
|
agreementPause(documentCardId: string, reconcileCardId: string, options?: RequestOptions): Promise<void>;
|
|
2040
2133
|
agreementResume(documentCardId: string, reconcileCardId: string, options?: RequestOptions): Promise<void>;
|
|
2041
|
-
getAgreementHistory(reconcileCardId: string, options?: RequestOptions): Promise<GenModels.ApprovalHistoryViewModel
|
|
2134
|
+
getAgreementHistory(reconcileCardId: string, includeAllReconciliations: boolean, options?: RequestOptions): Promise<Array<GenModels.ApprovalHistoryViewModel>>;
|
|
2042
2135
|
}
|
|
2043
2136
|
}
|
|
2044
2137
|
export declare type $LayoutAgreementController = {
|
|
@@ -2088,6 +2181,12 @@ export declare namespace GenControllers {
|
|
|
2088
2181
|
* @param layoutPartParams layout part params
|
|
2089
2182
|
*/
|
|
2090
2183
|
getLayoutPart(layoutPartParams: GenModels.LayoutPartParams, options?: RequestOptions): Promise<GenModels.LayoutModel>;
|
|
2184
|
+
/**
|
|
2185
|
+
* Gets layout part
|
|
2186
|
+
*
|
|
2187
|
+
* @param layoutPartParams layout part params
|
|
2188
|
+
*/
|
|
2189
|
+
getLayoutPartEx(layoutPartParams: GenModels.LayoutPartParamsEx, options?: RequestOptions): Promise<GenModels.LayoutModel>;
|
|
2091
2190
|
/**
|
|
2092
2191
|
* HTTP: /LayoutCard/Save
|
|
2093
2192
|
*/
|
|
@@ -2131,6 +2230,7 @@ export declare namespace GenControllers {
|
|
|
2131
2230
|
cancelCreation(cardId: string, parentCardId: string, options?: RequestOptions): Promise<string>;
|
|
2132
2231
|
getLayout(cardLayoutParams: GenModels.CardLayoutParams, options?: RequestOptions): Promise<GenModels.LayoutCardViewModel>;
|
|
2133
2232
|
getLayoutPart(layoutPartParams: GenModels.LayoutPartParams, options?: RequestOptions): Promise<GenModels.LayoutModel>;
|
|
2233
|
+
getLayoutPartEx(layoutPartParams: GenModels.LayoutPartParamsEx, options?: RequestOptions): Promise<GenModels.LayoutModel>;
|
|
2134
2234
|
save(model: GenModels.SaveControlDataModel, options?: RequestOptions): Promise<void>;
|
|
2135
2235
|
moveShortcutsToFolder(request: GenModels.MoveOrCopyShortcutsToFolderRequest, options?: RequestOptions): Promise<string>;
|
|
2136
2236
|
copyShortcutsToFolder(request: GenModels.MoveOrCopyShortcutsToFolderRequest, options?: RequestOptions): Promise<string>;
|