@docsvision/webclient 6.1.5-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 +15 -1
- 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 +123 -5
- package/Generated/DocsVision.WebClient.Models.d.ts +119 -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 +9 -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.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
|
@@ -56,6 +56,10 @@ export declare namespace GenModels {
|
|
|
56
56
|
* Type of the data
|
|
57
57
|
*/
|
|
58
58
|
dataType: GenModels.DirectoryDataType;
|
|
59
|
+
/**
|
|
60
|
+
* Is department available when search
|
|
61
|
+
*/
|
|
62
|
+
notAvailable?: boolean;
|
|
59
63
|
}
|
|
60
64
|
}
|
|
61
65
|
export declare namespace GenModels {
|
|
@@ -138,6 +142,10 @@ export declare namespace GenModels {
|
|
|
138
142
|
* @format datatype.uuid
|
|
139
143
|
*/
|
|
140
144
|
unitId: string;
|
|
145
|
+
/**
|
|
146
|
+
* All units of employee, including parent units.
|
|
147
|
+
*/
|
|
148
|
+
units: Array<string>;
|
|
141
149
|
/**
|
|
142
150
|
* Email
|
|
143
151
|
*/
|
|
@@ -2491,6 +2499,10 @@ export declare namespace GenModels {
|
|
|
2491
2499
|
* Gets or sets versions count
|
|
2492
2500
|
*/
|
|
2493
2501
|
versionsCount: number;
|
|
2502
|
+
/**
|
|
2503
|
+
* Gets or sets a flag that determines whether current file can be edited.
|
|
2504
|
+
*/
|
|
2505
|
+
allowEdit: boolean;
|
|
2494
2506
|
/**
|
|
2495
2507
|
* Link to open file with webdav
|
|
2496
2508
|
*/
|
|
@@ -2537,6 +2549,12 @@ export declare namespace GenModels {
|
|
|
2537
2549
|
* @format datatype.datetime
|
|
2538
2550
|
*/
|
|
2539
2551
|
creationDate: string;
|
|
2552
|
+
/**
|
|
2553
|
+
* Gets or sets change date
|
|
2554
|
+
*
|
|
2555
|
+
* @format datatype.datetime
|
|
2556
|
+
*/
|
|
2557
|
+
changeDate: string;
|
|
2540
2558
|
/**
|
|
2541
2559
|
* Gets or sets file version comments
|
|
2542
2560
|
*/
|
|
@@ -2876,6 +2894,7 @@ export declare namespace GenModels {
|
|
|
2876
2894
|
hasFileSignature: boolean;
|
|
2877
2895
|
hasFileCertificatedSignature: boolean;
|
|
2878
2896
|
isMain: boolean;
|
|
2897
|
+
allowEdit: boolean;
|
|
2879
2898
|
webDavLink: string;
|
|
2880
2899
|
webDavReadonlyLink: string;
|
|
2881
2900
|
versionsCount: number;
|
|
@@ -2890,6 +2909,10 @@ export declare namespace GenModels {
|
|
|
2890
2909
|
* @format datatype.uuid
|
|
2891
2910
|
*/
|
|
2892
2911
|
id: string;
|
|
2912
|
+
/**
|
|
2913
|
+
* @format datatype.datetime
|
|
2914
|
+
*/
|
|
2915
|
+
changeDate: string;
|
|
2893
2916
|
/**
|
|
2894
2917
|
* Gets or set version id
|
|
2895
2918
|
*
|
|
@@ -4391,6 +4414,24 @@ export declare namespace GenModels {
|
|
|
4391
4414
|
loadVersions: boolean;
|
|
4392
4415
|
}
|
|
4393
4416
|
}
|
|
4417
|
+
export declare namespace GenModels {
|
|
4418
|
+
interface FilePickerGetViewZipContentRequestModel {
|
|
4419
|
+
/**
|
|
4420
|
+
* FileCard id
|
|
4421
|
+
*
|
|
4422
|
+
* @format datatype.uuid
|
|
4423
|
+
*/
|
|
4424
|
+
fileCardId: string;
|
|
4425
|
+
}
|
|
4426
|
+
}
|
|
4427
|
+
export declare namespace GenModels {
|
|
4428
|
+
interface FilePickerViewZipItemModel {
|
|
4429
|
+
/**
|
|
4430
|
+
* File/folder name in zip archive with full path
|
|
4431
|
+
*/
|
|
4432
|
+
fullName: string;
|
|
4433
|
+
}
|
|
4434
|
+
}
|
|
4394
4435
|
export declare namespace GenModels {
|
|
4395
4436
|
interface AgreementListModel {
|
|
4396
4437
|
documentNumber: string;
|
|
@@ -4517,6 +4558,7 @@ export declare namespace GenModels {
|
|
|
4517
4558
|
}
|
|
4518
4559
|
export declare namespace GenModels {
|
|
4519
4560
|
interface ApprovalHistoryViewModel {
|
|
4561
|
+
displayName: string;
|
|
4520
4562
|
approvalReconcileCardId: string;
|
|
4521
4563
|
approvalTaskCardId: string;
|
|
4522
4564
|
currentCycle: GenModels.ApprovalHistoryCycleModel;
|
|
@@ -4848,6 +4890,15 @@ export declare namespace GenModels {
|
|
|
4848
4890
|
}[];
|
|
4849
4891
|
}
|
|
4850
4892
|
}
|
|
4893
|
+
export declare namespace GenModels {
|
|
4894
|
+
interface LayoutPartParamsEx {
|
|
4895
|
+
cardId: string;
|
|
4896
|
+
layoutMode?: string;
|
|
4897
|
+
rootControlName: string;
|
|
4898
|
+
includeRootControl: boolean;
|
|
4899
|
+
contextData: Array<GenModels.LayoutParamModel>;
|
|
4900
|
+
}
|
|
4901
|
+
}
|
|
4851
4902
|
export declare namespace GenModels {
|
|
4852
4903
|
interface SaveControlDataModel {
|
|
4853
4904
|
cardId: string;
|
|
@@ -6556,6 +6607,7 @@ export declare namespace GenModels {
|
|
|
6556
6607
|
interface CommonFileModel {
|
|
6557
6608
|
fileName: string;
|
|
6558
6609
|
fileId: string;
|
|
6610
|
+
allowEdit: boolean;
|
|
6559
6611
|
webDavLink: string;
|
|
6560
6612
|
webDavReadonlyLink: string;
|
|
6561
6613
|
filePreviewAvailable: boolean;
|
|
@@ -7238,6 +7290,10 @@ export declare namespace GenModels {
|
|
|
7238
7290
|
}
|
|
7239
7291
|
export declare namespace GenModels {
|
|
7240
7292
|
interface StaffQuery {
|
|
7293
|
+
/**
|
|
7294
|
+
* Is query exec from staff directory
|
|
7295
|
+
*/
|
|
7296
|
+
isDirectoryLoadContext?: boolean;
|
|
7241
7297
|
/**
|
|
7242
7298
|
* Query type
|
|
7243
7299
|
*/
|
|
@@ -7950,6 +8006,10 @@ export declare namespace GenModels {
|
|
|
7950
8006
|
* File extensions regular expression, that could be loaded to system.
|
|
7951
8007
|
*/
|
|
7952
8008
|
acceptableFileExtensions: string;
|
|
8009
|
+
/**
|
|
8010
|
+
* Gets or sets a regular expression describing which files can be edited.
|
|
8011
|
+
*/
|
|
8012
|
+
acceptableFileExtensionsForEditing: string;
|
|
7953
8013
|
/**
|
|
7954
8014
|
* Current Web-client connection.
|
|
7955
8015
|
*/
|
|
@@ -8066,6 +8126,10 @@ export declare namespace GenModels {
|
|
|
8066
8126
|
* Possible extensions for signature files.
|
|
8067
8127
|
*/
|
|
8068
8128
|
signatureFileExtensions: Array<string>;
|
|
8129
|
+
/**
|
|
8130
|
+
* Selecting a mechanism for generating an electronic signature
|
|
8131
|
+
*/
|
|
8132
|
+
calculateSignatureHashOnServer: boolean;
|
|
8069
8133
|
/**
|
|
8070
8134
|
* Settings for cloud signature (DSS)
|
|
8071
8135
|
*/
|
|
@@ -9019,6 +9083,18 @@ export declare namespace GenModels {
|
|
|
9019
9083
|
unitValueEnabled: boolean;
|
|
9020
9084
|
}
|
|
9021
9085
|
}
|
|
9086
|
+
export declare namespace GenModels {
|
|
9087
|
+
interface InputMaskModel {
|
|
9088
|
+
/**
|
|
9089
|
+
* Input mask string
|
|
9090
|
+
*/
|
|
9091
|
+
inputMask?: string;
|
|
9092
|
+
/**
|
|
9093
|
+
* Regular expression for validation input
|
|
9094
|
+
*/
|
|
9095
|
+
inputRegExp?: string;
|
|
9096
|
+
}
|
|
9097
|
+
}
|
|
9022
9098
|
export declare namespace GenModels {
|
|
9023
9099
|
interface TaskDelegationInfoModel {
|
|
9024
9100
|
/**
|
|
@@ -9590,6 +9666,11 @@ export declare namespace GenModels {
|
|
|
9590
9666
|
ApproversAddition = 6,
|
|
9591
9667
|
NonNegative = 7,
|
|
9592
9668
|
Any = 8,
|
|
9669
|
+
BranchA = 20,
|
|
9670
|
+
BranchB = 21,
|
|
9671
|
+
BranchC = 22,
|
|
9672
|
+
BranchD = 23,
|
|
9673
|
+
BranchE = 24,
|
|
9593
9674
|
Completion = 100,
|
|
9594
9675
|
Return = 200
|
|
9595
9676
|
}
|
|
@@ -11284,6 +11365,29 @@ export declare namespace GenModels {
|
|
|
11284
11365
|
NewWindow = 2
|
|
11285
11366
|
}
|
|
11286
11367
|
}
|
|
11368
|
+
export declare namespace GenModels {
|
|
11369
|
+
/**
|
|
11370
|
+
* Represents sorting files types
|
|
11371
|
+
*/
|
|
11372
|
+
enum SortingFiles {
|
|
11373
|
+
/**
|
|
11374
|
+
* Sort file by name in ascending order
|
|
11375
|
+
*/
|
|
11376
|
+
ByNameAsc = 0,
|
|
11377
|
+
/**
|
|
11378
|
+
* Sort files by name in descending order
|
|
11379
|
+
*/
|
|
11380
|
+
ByNameDesc = 1,
|
|
11381
|
+
/**
|
|
11382
|
+
* Sort file by append time in ascending order
|
|
11383
|
+
*/
|
|
11384
|
+
ByTimeAsc = 2,
|
|
11385
|
+
/**
|
|
11386
|
+
* Sort file by append time in descending order
|
|
11387
|
+
*/
|
|
11388
|
+
ByTimeDesc = 3
|
|
11389
|
+
}
|
|
11390
|
+
}
|
|
11287
11391
|
export declare namespace GenModels {
|
|
11288
11392
|
enum AdditionalElementsMode {
|
|
11289
11393
|
Left = 0,
|
|
@@ -12117,6 +12221,21 @@ export declare namespace GenModels {
|
|
|
12117
12221
|
SystemFolder = 3
|
|
12118
12222
|
}
|
|
12119
12223
|
}
|
|
12224
|
+
export declare namespace GenModels {
|
|
12225
|
+
/**
|
|
12226
|
+
* Defines state operation display mode
|
|
12227
|
+
*/
|
|
12228
|
+
enum AgreementHistoryDisplayMode {
|
|
12229
|
+
/**
|
|
12230
|
+
* Standard mode. Only the current approval is displayed.
|
|
12231
|
+
*/
|
|
12232
|
+
Standart = 0,
|
|
12233
|
+
/**
|
|
12234
|
+
* Full mode. All approvals are displayed.
|
|
12235
|
+
*/
|
|
12236
|
+
Full = 1
|
|
12237
|
+
}
|
|
12238
|
+
}
|
|
12120
12239
|
export declare namespace GenModels {
|
|
12121
12240
|
enum ErrorCode {
|
|
12122
12241
|
Failure = 1280,
|
|
@@ -8,6 +8,7 @@ export interface IDepartmentFilterProps<T> {
|
|
|
8
8
|
itemId: IReadonlyAccessor<T, string>;
|
|
9
9
|
itemName: IReadonlyAccessor<T, string>;
|
|
10
10
|
itemTip: IReadonlyAccessor<T, string>;
|
|
11
|
+
itemReadonly?: IReadonlyAccessor<T, boolean>;
|
|
11
12
|
rootLabel: string;
|
|
12
13
|
rootTip?: string;
|
|
13
14
|
onPathChange: (newPath: T[]) => void;
|
|
@@ -8,6 +8,7 @@ export interface IBreadcrumbsViewProps<T> {
|
|
|
8
8
|
itemId: IReadonlyAccessor<T, string>;
|
|
9
9
|
itemName: IReadonlyAccessor<T, string>;
|
|
10
10
|
itemTip: IReadonlyAccessor<T, string>;
|
|
11
|
+
itemReadonly?: IReadonlyAccessor<T, boolean>;
|
|
11
12
|
rootLabel: string;
|
|
12
13
|
rootTip?: string;
|
|
13
14
|
/** При выборе элемента */
|
|
@@ -5,6 +5,8 @@ export interface ILinkItemViewWithSeparatorProps {
|
|
|
5
5
|
className?: string;
|
|
6
6
|
/** Является ли элемент первым в списке */
|
|
7
7
|
first?: boolean;
|
|
8
|
+
/** Является ли элемент доступным (кликабельным) */
|
|
9
|
+
readonly?: boolean;
|
|
8
10
|
/** Текст элемента */
|
|
9
11
|
title?: string;
|
|
10
12
|
/** @internal */
|
|
@@ -12,4 +14,4 @@ export interface ILinkItemViewWithSeparatorProps {
|
|
|
12
14
|
ref?: React.RefObject<HTMLDivElement>;
|
|
13
15
|
}
|
|
14
16
|
/** @review Отображает {@link LinkItemView} c {@link LinkSeparator} перед ним, если элемент первый в списке. */
|
|
15
|
-
export declare const LinkItemViewWithSeparator: React.ForwardRefExoticComponent<Pick<ILinkItemViewWithSeparatorProps, "title" | "children" | "className" | "first"> & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
export declare const LinkItemViewWithSeparator: React.ForwardRefExoticComponent<Pick<ILinkItemViewWithSeparatorProps, "title" | "children" | "className" | "first" | "readonly"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { $FilePickerController } from "@docsvision/webclient/Generated/DocsVision.WebClient.Controllers";
|
|
3
|
+
import { RequestHelper } from "@docsvision/webclient/System/RequestHelper";
|
|
4
|
+
import { GenModels } from "../../Generated/DocsVision.WebClient.Models";
|
|
5
|
+
|
|
6
|
+
/** @internal Свойства для {@link FileViewZip} */
|
|
7
|
+
export interface IFileViewZipProps {
|
|
8
|
+
/** Список элементов содержимого zip-архива */
|
|
9
|
+
items?: string[];
|
|
10
|
+
/** Идентификатор карточки файла. */
|
|
11
|
+
fileCardId: string;
|
|
12
|
+
/** Кнопка закрытия окна комментариев. */
|
|
13
|
+
closeButton?: boolean;
|
|
14
|
+
/** Своя функция отрисовки. */
|
|
15
|
+
customRender?: (component: FileViewZip) => React.ReactNode;
|
|
16
|
+
/** По нажатию на кнопку закрытия окна просмотра zip-архива. */
|
|
17
|
+
onClose?: () => void;
|
|
18
|
+
services: $FilePickerController;
|
|
19
|
+
}
|
|
20
|
+
/** @internal */
|
|
21
|
+
export interface IFileViewZipState {
|
|
22
|
+
items?: string[];
|
|
23
|
+
/** Загружаются ли в данный момент данные для предпросмотра файла. */
|
|
24
|
+
isLoading: boolean;
|
|
25
|
+
/** Помощник для загрузки данных о содержимом zip-архива. */
|
|
26
|
+
loadingHelper: RequestHelper;
|
|
27
|
+
}
|
|
28
|
+
export declare class FileViewZip extends React.Component<IFileViewZipProps, IFileViewZipState> {
|
|
29
|
+
protected viewZipContainer: HTMLElement;
|
|
30
|
+
protected viewZipDialog: HTMLDivElement;
|
|
31
|
+
constructor(props: IFileViewZipProps);
|
|
32
|
+
/** @internal */
|
|
33
|
+
componentDidMount(): Promise<void>;
|
|
34
|
+
/** @internal */
|
|
35
|
+
componentDidUpdate(prevProps: any): void;
|
|
36
|
+
/** Загружается ли содержание zip в данный момент */
|
|
37
|
+
get isLoading(): boolean;
|
|
38
|
+
/** Загрузить список узлов zip-архива */
|
|
39
|
+
protected load: () => Promise<GenModels.FilePickerViewZipItemModel[]>;
|
|
40
|
+
/** @internal Отрисовка заголовка блока просмотра zip-архива. */
|
|
41
|
+
renderHeader(): JSX.Element;
|
|
42
|
+
renderItems: () => JSX.Element[];
|
|
43
|
+
/** @internal Отрисовка блока просмотра zip-архива */
|
|
44
|
+
renderViewZip(): JSX.Element;
|
|
45
|
+
/** @internal */
|
|
46
|
+
render(): {};
|
|
47
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { $FilePickerController } from "@docsvision/webclient/Generated/DocsVision.WebClient.Controllers";
|
|
3
|
+
import { FileViewZip, IFileViewZipProps } from "@docsvision/webclient/Helpers/FileViewZip/FileViewZip";
|
|
4
|
+
/** @internal Свойства для {@link FileViewZipModal} */
|
|
5
|
+
export interface IFileViewZipModalProps extends IFileViewZipProps {
|
|
6
|
+
services: $FilePickerController;
|
|
7
|
+
}
|
|
8
|
+
/** @internal */
|
|
9
|
+
export interface IFileViewZipModalState {
|
|
10
|
+
/** Показывается ли модальное окно. */
|
|
11
|
+
isOpened: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Модальное окно с содержимым zip-файла
|
|
15
|
+
*/
|
|
16
|
+
export declare class FileViewZipModal extends React.Component<IFileViewZipModalProps, IFileViewZipModalState> {
|
|
17
|
+
constructor(props: IFileViewZipModalProps);
|
|
18
|
+
/** Закрытие модального окна. */
|
|
19
|
+
protected closeModal: () => Promise<void>;
|
|
20
|
+
/** Отрисовка блока с содержимым zip-файла. */
|
|
21
|
+
protected renderViewZipBody: (component: FileViewZip) => JSX.Element;
|
|
22
|
+
/** @internal */
|
|
23
|
+
render(): JSX.Element;
|
|
24
|
+
}
|
|
@@ -11,7 +11,9 @@ export interface IAdaptiveMenuBarProps {
|
|
|
11
11
|
targetGetter?: () => HTMLElement;
|
|
12
12
|
handleOutsideClick?: boolean;
|
|
13
13
|
menuBarClassName?: string;
|
|
14
|
+
desktopMenuClassName?: string;
|
|
14
15
|
renderBackdrop?: boolean;
|
|
16
|
+
disableFocus?: boolean;
|
|
15
17
|
}
|
|
16
18
|
/** @internal */
|
|
17
19
|
export interface IAdaptiveMenuBarState {
|
|
@@ -44,6 +44,8 @@ export declare class ApprovalFilePanel {
|
|
|
44
44
|
private VersionEventHandler;
|
|
45
45
|
private updateOpenFileMenuSettings;
|
|
46
46
|
getVisibilityOpenFileButton(fileId: string): boolean;
|
|
47
|
+
hideOpenFileButton(fileVersionId: string): void;
|
|
48
|
+
showOpenFileButton(fileVersionId: string): void;
|
|
47
49
|
openFile(fileCardId: string, fileId: string, currentFileId: string, fileName: string, readonly: boolean, approvalDocumentId: string): Promise<void>;
|
|
48
50
|
private getOpenFileRequestData;
|
|
49
51
|
private sendOpenFileRequest;
|
|
@@ -57,6 +57,8 @@ export declare class TaskCardFilePanelRazorControl extends BaseRazorControl<Task
|
|
|
57
57
|
private updatePreview;
|
|
58
58
|
private updateOpenFileMenuSettings;
|
|
59
59
|
getVisibilityOpenFileButton(fileId: string): boolean;
|
|
60
|
+
hideOpenFileButton(fileVersionId: string): void;
|
|
61
|
+
showOpenFileButton(fileVersionId: string): void;
|
|
60
62
|
openFile(fileCardId: string, fileId: string, currentFileId: string, fileName: string, documentId: string, readonly: boolean, documentFileCardId: string): Promise<void>;
|
|
61
63
|
private getOpenFileRequestData;
|
|
62
64
|
private sendOpenFileRequest;
|
package/Legacy/TaskCardView.d.ts
CHANGED
package/Legacy/Utils.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { DateTimeFormat } from "@docsvision/webclient/Legacy/DateTimeFormat";
|
|
|
5
5
|
import { $CardId, $CardTimestamp, $ExtendedDataSourceInfos, $RowId } from '@docsvision/webclient/System/LayoutServices';
|
|
6
6
|
import { Optional } from "@docsvision/web/core/services";
|
|
7
7
|
import { StandardRouteSemantics } from "@docsvision/webclient/System/StandardRouteSemantics";
|
|
8
|
+
import { IFileViewZipModalProps } from "@docsvision/webclient/Helpers/FileViewZip/FileViewZipModal";
|
|
8
9
|
/** @internal */
|
|
9
10
|
export declare class Helpers {
|
|
10
11
|
constructor();
|
|
@@ -51,6 +52,14 @@ export declare class Helpers {
|
|
|
51
52
|
* @returns Функция, вызов которой закрывает модальное окно
|
|
52
53
|
*/
|
|
53
54
|
static ShowRenameFileDialog(props: any): () => void;
|
|
55
|
+
/**
|
|
56
|
+
* Показать окно содержимого zip-файла.
|
|
57
|
+
* @returns Функция, вызов которой закрывает модальное окно
|
|
58
|
+
*/
|
|
59
|
+
static ShowViewZipFileDialog(props: IFileViewZipModalProps, options?: {
|
|
60
|
+
onClose?: () => void;
|
|
61
|
+
onShowed?: () => void;
|
|
62
|
+
}): () => void;
|
|
54
63
|
static ValidateForm(form: HTMLFormElement): boolean;
|
|
55
64
|
static FindParentElement(headerFolderName: HTMLElement, parentClassName: string): HTMLElement;
|
|
56
65
|
static SuppressEvents(e: Event): void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { $SignatureController } from "@docsvision/webclient/Generated/DocsVision.WebClient.Controllers";
|
|
2
|
+
import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
|
|
2
3
|
import { EncryptedInfo } from "@docsvision/webclient/Legacy/EncryptedInfo";
|
|
3
4
|
import { IFileSignInfo } from "@docsvision/webclient/Legacy/IFileSingInfo";
|
|
4
5
|
import { $MessageBox } from "@docsvision/webclient/System/$MessageBox";
|
|
@@ -49,6 +50,7 @@ export declare class Crypto {
|
|
|
49
50
|
static DocumentFileOIDAttribute: string;
|
|
50
51
|
static DocumentVersionOIDAttribute: string;
|
|
51
52
|
static EmployeeOIDAttribute: string;
|
|
53
|
+
static THE_URL_OF_OCSP_SERVICE_IS_NOT_SPECIFIED_ERROR: string;
|
|
52
54
|
static ProviderName: string;
|
|
53
55
|
static ProviderType: string;
|
|
54
56
|
static CADESCOM_CERT_INFO_TYPE_SUBJECT_SIMPLE_NAME: number;
|
|
@@ -80,10 +82,10 @@ export declare class Crypto {
|
|
|
80
82
|
static GetCertificateInfoByThumbprint(thumbprint: any): Promise<ICryptoCertificateInfo>;
|
|
81
83
|
private static GetCertificateByThumbprint_NPAPI;
|
|
82
84
|
static CheckForPlugIn(): any;
|
|
83
|
-
static SignFilesWithCertificate(encryptedInfo: EncryptedInfo, files: IFileSignInfo[], cardId: string, signFields?: boolean, signAttachments?: boolean, signType?: number, tspService?: string): Promise<any>;
|
|
84
|
-
static SignFilesWithCertificateEx(encryptedInfo: EncryptedInfo, files: IFileSignInfo[], cardId: string, signFields?: boolean, signAttachments?: boolean, signType?: number, tspService?: string): Promise<any>;
|
|
85
|
+
static SignFilesWithCertificate(encryptedInfo: EncryptedInfo, files: IFileSignInfo[], cardId: string, signFields?: boolean, signAttachments?: boolean, signType?: number, tspService?: string, signHash?: boolean): Promise<any>;
|
|
86
|
+
static SignFilesWithCertificateEx(encryptedInfo: EncryptedInfo, files: IFileSignInfo[], cardId: string, signFields?: boolean, signAttachments?: boolean, signType?: number, tspService?: string, signHash?: boolean): Promise<any>;
|
|
85
87
|
static CanAsync(): boolean;
|
|
86
|
-
static SignData(encryptedInfo: EncryptedInfo, dataToSign: any, signType?: any, tspService?: any): any;
|
|
88
|
+
static SignData(encryptedInfo: EncryptedInfo, dataToSign: any, signType?: any, tspService?: any, signHashAlgorithmCode?: number): any;
|
|
87
89
|
private static Verify;
|
|
88
90
|
static GetCertsList(): Promise<ICryptoCertificate[]>;
|
|
89
91
|
private static GetCertsList_NPAPI;
|
|
@@ -97,6 +99,7 @@ export declare class Crypto {
|
|
|
97
99
|
tspAddress: string;
|
|
98
100
|
certificateThumberpint: string;
|
|
99
101
|
}>;
|
|
102
|
+
static GetCadesSignType(signType: GenModels.DigitalSignatureKind): number;
|
|
100
103
|
private static SignData_NPAPI;
|
|
101
104
|
}
|
|
102
105
|
export declare function getBstrBase64(str: string): string;
|
package/MainBundle.d.ts
CHANGED
package/Platform/CardLink.d.ts
CHANGED
|
@@ -88,7 +88,8 @@ import("D:/BuildAgent/work/43698d70d905217f/Bin/TypeScriptDefinitions/System/Cor
|
|
|
88
88
|
import("D:/BuildAgent/work/43698d70d905217f/Bin/TypeScriptDefinitions/StandardServices").$ApplicationSettings &
|
|
89
89
|
import("D:/BuildAgent/work/43698d70d905217f/Bin/TypeScriptDefinitions/System/Services/$FileService").$FileService &
|
|
90
90
|
import("D:/BuildAgent/work/43698d70d905217f/Bin/TypeScriptDefinitions/StandardServices").$DeviceType & Partial<
|
|
91
|
-
import("@docsvision/webclient/FilePreview/$FilePreview").$FilePreview> &
|
|
91
|
+
import("@docsvision/webclient/FilePreview/$FilePreview").$FilePreview> & Partial<
|
|
92
|
+
import("D:/BuildAgent/work/43698d70d905217f/Bin/TypeScriptDefinitions/StandardServices").$SiteUrl> & $CardOperationsController & Partial<$LinksSearchCards> & $CardsPresentationController;
|
|
92
93
|
protected createParams(): CardLinkParams;
|
|
93
94
|
protected createImpl(): CardLinkImpl;
|
|
94
95
|
private set binding(value);
|
|
@@ -71,6 +71,8 @@ export declare class CardLinkImpl extends InputBasedControlImpl<GenModels.CardLi
|
|
|
71
71
|
protected updateValidationMessage(): void;
|
|
72
72
|
protected getCssClass(): string;
|
|
73
73
|
protected getTextValue(): string;
|
|
74
|
+
/** Вызывается в режиме View и в режиме когда не задан searchQueryParamName */
|
|
75
|
+
protected getLabeledTextValue(): string;
|
|
74
76
|
protected getTextTabIndex(): 0 | -1;
|
|
75
77
|
protected onTextKeyDown: (event: React.KeyboardEvent) => void;
|
|
76
78
|
protected onMenuKeyDown: (event: React.KeyboardEvent) => void;
|
|
@@ -85,7 +87,7 @@ export declare class CardLinkImpl extends InputBasedControlImpl<GenModels.CardLi
|
|
|
85
87
|
protected get isShowIcon(): boolean;
|
|
86
88
|
protected renderWithTextValue(): string | JSX.Element;
|
|
87
89
|
protected renderWithText(): JSX.Element;
|
|
88
|
-
protected
|
|
90
|
+
protected renderLabeledText(): JSX.Element;
|
|
89
91
|
/**
|
|
90
92
|
* Renders settings menu and its icon to open menu
|
|
91
93
|
*/
|
|
@@ -104,6 +106,6 @@ export declare class CardLinkImpl extends InputBasedControlImpl<GenModels.CardLi
|
|
|
104
106
|
/**
|
|
105
107
|
* Renders label value
|
|
106
108
|
*/
|
|
107
|
-
protected
|
|
109
|
+
protected renderLabeledTextValue(): JSX.Element;
|
|
108
110
|
renderControl(): {};
|
|
109
111
|
}
|
|
@@ -6,4 +6,5 @@ export declare const ContextMenuCustomTableHeaderRowPlugin: TablePlugins.HeaderR
|
|
|
6
6
|
export declare const ContextMenuCustomTableRowPlugin: TablePlugins.Row.MountEffect;
|
|
7
7
|
export declare const ContextMenuCustomTableCellPlugin: TablePlugins.Cell.MountEffect;
|
|
8
8
|
export declare const ContextMenuOptionsServiceProvider: (itemProviders: IDataItemProvider[], blocks?: ICustomContextMenuBlock[]) => TablePlugins.ServiceProvider<$ContextMenuOptions & $Domain>;
|
|
9
|
+
export declare const DisableNativeContextMenuTablePlugin: TablePlugins.Table.MountEffect;
|
|
9
10
|
export declare const ContextMenuCustomPlugins: ITablePlugins;
|
|
@@ -77,6 +77,7 @@ export declare class DateTimePicker extends InputBasedControl<Date, DateTimePick
|
|
|
77
77
|
protected set defaultValue(val: Date);
|
|
78
78
|
private set defaultWorkTimeBinding(value);
|
|
79
79
|
private set dateTimePickerMode(value);
|
|
80
|
+
set setDateTimePickerMode(value: GenModels.DateTimePickerType);
|
|
80
81
|
private get defaultCurrentDateTime();
|
|
81
82
|
protected onSaveRequest(sender: unknown, args: ICancelableEventArgs<unknown>): Promise<void>;
|
|
82
83
|
/**
|
|
@@ -52,7 +52,7 @@ export declare class DateTimePickerImpl extends InputBasedControlImpl<Date, Date
|
|
|
52
52
|
constructor(props: DateTimePickerParams, state: IDateTimePickerState);
|
|
53
53
|
componentDidMount(): Promise<void>;
|
|
54
54
|
getColor: () => "#7BB652" | "rgba(0, 149, 218, 0.8)" | "#3B4C60" | "#0095da" | "#7bb652";
|
|
55
|
-
|
|
55
|
+
initializeCultureSettings(): void;
|
|
56
56
|
protected setEditInPlaceWidth(element: Element): void;
|
|
57
57
|
protected getMask(date: string): string;
|
|
58
58
|
protected getTextValue(): string;
|
package/Platform/FilePicker.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $FilePickerController, $LayoutFileController } from
|
|
1
|
+
import { $FilePickerController, $LayoutFileController, $R7OfficeController } from "@docsvision/webclient/Generated/DocsVision.WebClient.Controllers";
|
|
2
2
|
import { $FileController } from '@docsvision/webclient/Legacy/FileController';
|
|
3
3
|
import { FilePickerImpl, IFilePickerState } from "@docsvision/webclient/Platform/FilePickerImpl";
|
|
4
4
|
import { IFilePicker } from '@docsvision/webclient/Platform/IFilePicker';
|
|
@@ -7,10 +7,10 @@ import { IFilePickerValue } from '@docsvision/webclient/Platform/IFilePickerValu
|
|
|
7
7
|
import { $FileDownload } from '@docsvision/webclient/Platform/$FileDownload';
|
|
8
8
|
import { $WindowLocation } from '@docsvision/webclient/Platform/$WindowLocation';
|
|
9
9
|
import { $FilePickerUpload } from '@docsvision/webclient/Platform/IFilePickerUploadService';
|
|
10
|
-
import { $DeviceType } from
|
|
10
|
+
import { $DeviceType, $SiteUrl } from "@docsvision/webclient/StandardServices";
|
|
11
11
|
import { BaseControl, BaseControlParams } from "@docsvision/webclient/System/BaseControl";
|
|
12
12
|
import { IDataChangedEventArgsEx } from '@docsvision/webclient/System/IDataChangedEventArgs';
|
|
13
|
-
import { $CardId, $EditOperationStore, $LayoutInfo } from "@docsvision/webclient/System/LayoutServices";
|
|
13
|
+
import { $CardId, $CardTimestamp, $EditOperationStore, $LayoutInfo } from "@docsvision/webclient/System/LayoutServices";
|
|
14
14
|
import { IBindingResult } from "@docsvision/webclient/System/IBindingResult";
|
|
15
15
|
import { EditMode } from '@docsvision/webclient/System/EditMode';
|
|
16
16
|
import { BasicApiEvent, CancelableApiEvent } from '@docsvision/webclient/System/ApiEvent';
|
|
@@ -22,6 +22,8 @@ import { $Layout } from '@docsvision/webclient/System/$Layout';
|
|
|
22
22
|
import { $FilePreviewServices } from '@docsvision/webclient/Platform/FilePreview';
|
|
23
23
|
import { $RealtimeCommunicationService } from "@docsvision/webclient/System/$RealtimeCommunicationService";
|
|
24
24
|
import { LoadingState } from "@docsvision/webclient/System/LoadingState";
|
|
25
|
+
import { $WebServices } from "@docsvision/webclient/System/IWebServicesService";
|
|
26
|
+
import { IFilePickerMenuOpeningArgs } from "@docsvision/webclient/Platform/IFilePickerMenuOpeningArgs";
|
|
25
27
|
/**
|
|
26
28
|
* Содержит публичные свойства элемента управления [Файл]{@link FilePicker}.
|
|
27
29
|
*/
|
|
@@ -119,9 +121,11 @@ export declare class FilePickerParams extends BaseControlParams {
|
|
|
119
121
|
fileVersionsDialogClosed?: BasicApiEvent<IEventArgs>;
|
|
120
122
|
/** Событие возникает после подгрузки информации о версиях файла. @covered */
|
|
121
123
|
fileVersionsLoaded?: BasicApiEvent<IEventArgs>;
|
|
124
|
+
/** Событие возникает при открытии меню файла. */
|
|
125
|
+
fileMenuOpening?: CancelableApiEvent<IFilePickerMenuOpeningArgs>;
|
|
122
126
|
/** Событие возникает при сохранении файла в WebDAV. */
|
|
123
127
|
fileSaveByWebDAV?: BasicApiEvent<IEventArgs>;
|
|
124
|
-
services?: $EditOperationStore & $FilePickerUpload & $MessageBox & $WindowLocation & $FileController & $LayoutFileController & $CardId & $FilePickerController & $DeviceType & $FileDownload & $Layout & $RealtimeCommunicationService & $FilePreviewServices & $LayoutInfo;
|
|
128
|
+
services?: $EditOperationStore & $FilePickerUpload & $MessageBox & $WindowLocation & $FileController & $LayoutFileController & $CardId & $FilePickerController & $DeviceType & $SiteUrl & $CardTimestamp & $R7OfficeController & $WebServices & $FileDownload & $Layout & $RealtimeCommunicationService & $FilePreviewServices & $LayoutInfo;
|
|
125
129
|
}
|
|
126
130
|
/**
|
|
127
131
|
* Класс элемента управления Файл.
|
|
@@ -158,8 +162,10 @@ export declare class FilePicker extends BaseControl<FilePickerParams, IFilePicke
|
|
|
158
162
|
openPreview(): Promise<void>;
|
|
159
163
|
/** Открывает диалог комментариев. @covered */
|
|
160
164
|
showComments(): Promise<void>;
|
|
161
|
-
/**
|
|
165
|
+
/** @deprecated Используй openFile. */
|
|
162
166
|
openWebDav(): Promise<void>;
|
|
167
|
+
/** Открывает файл с помощью dvwebtool/dvsupservice. */
|
|
168
|
+
openFile(): Promise<void>;
|
|
163
169
|
/** Очищает значение контрола. @covered */
|
|
164
170
|
clear(): Promise<void>;
|
|
165
171
|
private callMenuItem;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FilePicker } from "@docsvision/webclient/Platform/FilePicker";
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof FilePicker;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const Default: () => JSX.Element;
|
|
9
|
+
export declare const Disabled: () => JSX.Element;
|
|
10
|
+
export declare const FilePickerWithValue: () => JSX.Element;
|
|
11
|
+
export declare const FilePickerWithValueDisabled: () => JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { GenModels } from
|
|
2
|
+
import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
|
|
3
3
|
import { IFilePickerMenuItem } from '@docsvision/webclient/Platform/FilePickerMenu';
|
|
4
4
|
import { FilePickerAccessState } from '@docsvision/webclient/Platform/FilePickerMenuItemsView';
|
|
5
5
|
import { FilePickerParams } from "@docsvision/webclient/Platform/FilePicker";
|
|
6
|
-
import { FilePickerOperations } from
|
|
6
|
+
import { FilePickerOperations } from "@docsvision/webclient/Platform/FilePickerOperations";
|
|
7
7
|
import { FilePickerOperationsAvailability } from '@docsvision/webclient/Platform/FilePickerOperationsAvailability';
|
|
8
8
|
import { IFilePickerValue } from '@docsvision/webclient/Platform/IFilePickerValue';
|
|
9
9
|
import { BaseControlState } from "@docsvision/webclient/System/BaseControl";
|
|
@@ -14,8 +14,9 @@ import { BooleanState } from '@docsvision/webclient/System/BooleanState';
|
|
|
14
14
|
import { EventEmitter } from '@docsvision/webclient/System/EventEmitter';
|
|
15
15
|
import { IValidationParams } from '@docsvision/webclient/System/IValidationParams';
|
|
16
16
|
import { IValidationResult } from '@docsvision/webclient/System/IValidationResult';
|
|
17
|
-
import { ICardOpenedByWebDavMessage } from
|
|
17
|
+
import { ICardOpenedByWebDavMessage } from "@docsvision/webclient/BackOffice/FileListControlImpl";
|
|
18
18
|
import { IRealTimeCommunicationMessage } from '@docsvision/webclient/System/IRealTimeCommunicationMessage';
|
|
19
|
+
import { LoadingState } from '@docsvision/webclient/System/LoadingState';
|
|
19
20
|
/** @internal */
|
|
20
21
|
export interface IFilePickerState extends FilePickerParams, BaseControlState {
|
|
21
22
|
binding: IBindingResult<GenModels.FileCardModel>;
|
|
@@ -25,6 +26,7 @@ export interface IFilePickerState extends FilePickerParams, BaseControlState {
|
|
|
25
26
|
readOperationId: string;
|
|
26
27
|
validationMessage: string;
|
|
27
28
|
deleting: boolean;
|
|
29
|
+
loadingAddVersion: LoadingState;
|
|
28
30
|
}
|
|
29
31
|
export interface FilePickerState extends IFilePickerState {
|
|
30
32
|
}
|
|
@@ -43,6 +45,7 @@ export declare class FilePickerImpl extends BaseControlImpl<FilePickerParams, IF
|
|
|
43
45
|
protected operations: FilePickerOperations;
|
|
44
46
|
protected availability: FilePickerOperationsAvailability;
|
|
45
47
|
protected dragOverState: BooleanState;
|
|
48
|
+
protected menuItems: IFilePickerMenuItem[];
|
|
46
49
|
constructor(props: FilePickerParams, state: IFilePickerState);
|
|
47
50
|
componentDidMount(): void;
|
|
48
51
|
componentWillUnmount(): void;
|
|
@@ -54,6 +57,7 @@ export declare class FilePickerImpl extends BaseControlImpl<FilePickerParams, IF
|
|
|
54
57
|
hasValue(): boolean;
|
|
55
58
|
uploadSelectedInternal(): Promise<GenModels.FileCardModel>;
|
|
56
59
|
onMenuOpenChange: (newVal: boolean) => void;
|
|
60
|
+
onFileMenuOpen: () => Promise<void>;
|
|
57
61
|
protected shouldSaveImmediately(): boolean;
|
|
58
62
|
protected getAccessState(): FilePickerAccessState;
|
|
59
63
|
openVersionsDialog: () => Promise<void>;
|
|
@@ -106,6 +110,13 @@ import("./Components/FilePickerMenuItemsView").IFilePickerMenuItemProps) => JSX.
|
|
|
106
110
|
getDeleteMenuItem: () => {
|
|
107
111
|
name: string;
|
|
108
112
|
component: (props:
|
|
113
|
+
import("./Components/FilePickerMenuItemsView").IFilePickerMenuItemProps) => JSX.Element;
|
|
114
|
+
isAvailable: boolean;
|
|
115
|
+
onClick: () => Promise<any>;
|
|
116
|
+
};
|
|
117
|
+
getViewZipMenuItem: () => {
|
|
118
|
+
name: string;
|
|
119
|
+
component: (props:
|
|
109
120
|
import("./Components/FilePickerMenuItemsView").IFilePickerMenuItemProps) => JSX.Element;
|
|
110
121
|
isAvailable: boolean;
|
|
111
122
|
onClick: () => Promise<any>;
|