@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
|
@@ -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 {
|
|
@@ -2495,6 +2499,10 @@ export declare namespace GenModels {
|
|
|
2495
2499
|
* Gets or sets versions count
|
|
2496
2500
|
*/
|
|
2497
2501
|
versionsCount: number;
|
|
2502
|
+
/**
|
|
2503
|
+
* Gets or sets a flag that determines whether current file can be edited.
|
|
2504
|
+
*/
|
|
2505
|
+
allowEdit: boolean;
|
|
2498
2506
|
/**
|
|
2499
2507
|
* Link to open file with webdav
|
|
2500
2508
|
*/
|
|
@@ -2541,6 +2549,12 @@ export declare namespace GenModels {
|
|
|
2541
2549
|
* @format datatype.datetime
|
|
2542
2550
|
*/
|
|
2543
2551
|
creationDate: string;
|
|
2552
|
+
/**
|
|
2553
|
+
* Gets or sets change date
|
|
2554
|
+
*
|
|
2555
|
+
* @format datatype.datetime
|
|
2556
|
+
*/
|
|
2557
|
+
changeDate: string;
|
|
2544
2558
|
/**
|
|
2545
2559
|
* Gets or sets file version comments
|
|
2546
2560
|
*/
|
|
@@ -2734,6 +2748,31 @@ export declare namespace GenModels {
|
|
|
2734
2748
|
* @format datatype.uuid
|
|
2735
2749
|
*/
|
|
2736
2750
|
powerOfAttorneyId: string;
|
|
2751
|
+
/**
|
|
2752
|
+
* Данные отзыва доверенности
|
|
2753
|
+
*/
|
|
2754
|
+
revocationData: GenModels.PowerOfAttorneyRevocationData;
|
|
2755
|
+
}
|
|
2756
|
+
}
|
|
2757
|
+
export declare namespace GenModels {
|
|
2758
|
+
interface PowerOfAttorneyRevocationData {
|
|
2759
|
+
revocationType: GenModels.PowerOfAttorneyRevocationType;
|
|
2760
|
+
revocationReason: string;
|
|
2761
|
+
applicantInfo: GenModels.PowerOfAttorneyRevocationApplicantInfo;
|
|
2762
|
+
}
|
|
2763
|
+
}
|
|
2764
|
+
export declare namespace GenModels {
|
|
2765
|
+
interface PowerOfAttorneyRevocationApplicantInfo {
|
|
2766
|
+
applicantType: GenModels.PowerOfAttorneyRevocationApplicantType;
|
|
2767
|
+
name: string;
|
|
2768
|
+
inn: string;
|
|
2769
|
+
kpp: string;
|
|
2770
|
+
ogrn: string;
|
|
2771
|
+
snils: string;
|
|
2772
|
+
lastName: string;
|
|
2773
|
+
firstName: string;
|
|
2774
|
+
middleName: string;
|
|
2775
|
+
phone: string;
|
|
2737
2776
|
}
|
|
2738
2777
|
}
|
|
2739
2778
|
export declare namespace GenModels {
|
|
@@ -2855,6 +2894,7 @@ export declare namespace GenModels {
|
|
|
2855
2894
|
hasFileSignature: boolean;
|
|
2856
2895
|
hasFileCertificatedSignature: boolean;
|
|
2857
2896
|
isMain: boolean;
|
|
2897
|
+
allowEdit: boolean;
|
|
2858
2898
|
webDavLink: string;
|
|
2859
2899
|
webDavReadonlyLink: string;
|
|
2860
2900
|
versionsCount: number;
|
|
@@ -2869,6 +2909,10 @@ export declare namespace GenModels {
|
|
|
2869
2909
|
* @format datatype.uuid
|
|
2870
2910
|
*/
|
|
2871
2911
|
id: string;
|
|
2912
|
+
/**
|
|
2913
|
+
* @format datatype.datetime
|
|
2914
|
+
*/
|
|
2915
|
+
changeDate: string;
|
|
2872
2916
|
/**
|
|
2873
2917
|
* Gets or set version id
|
|
2874
2918
|
*
|
|
@@ -4370,6 +4414,24 @@ export declare namespace GenModels {
|
|
|
4370
4414
|
loadVersions: boolean;
|
|
4371
4415
|
}
|
|
4372
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
|
+
}
|
|
4373
4435
|
export declare namespace GenModels {
|
|
4374
4436
|
interface AgreementListModel {
|
|
4375
4437
|
documentNumber: string;
|
|
@@ -4496,6 +4558,7 @@ export declare namespace GenModels {
|
|
|
4496
4558
|
}
|
|
4497
4559
|
export declare namespace GenModels {
|
|
4498
4560
|
interface ApprovalHistoryViewModel {
|
|
4561
|
+
displayName: string;
|
|
4499
4562
|
approvalReconcileCardId: string;
|
|
4500
4563
|
approvalTaskCardId: string;
|
|
4501
4564
|
currentCycle: GenModels.ApprovalHistoryCycleModel;
|
|
@@ -4827,6 +4890,15 @@ export declare namespace GenModels {
|
|
|
4827
4890
|
}[];
|
|
4828
4891
|
}
|
|
4829
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
|
+
}
|
|
4830
4902
|
export declare namespace GenModels {
|
|
4831
4903
|
interface SaveControlDataModel {
|
|
4832
4904
|
cardId: string;
|
|
@@ -6535,6 +6607,7 @@ export declare namespace GenModels {
|
|
|
6535
6607
|
interface CommonFileModel {
|
|
6536
6608
|
fileName: string;
|
|
6537
6609
|
fileId: string;
|
|
6610
|
+
allowEdit: boolean;
|
|
6538
6611
|
webDavLink: string;
|
|
6539
6612
|
webDavReadonlyLink: string;
|
|
6540
6613
|
filePreviewAvailable: boolean;
|
|
@@ -7217,6 +7290,10 @@ export declare namespace GenModels {
|
|
|
7217
7290
|
}
|
|
7218
7291
|
export declare namespace GenModels {
|
|
7219
7292
|
interface StaffQuery {
|
|
7293
|
+
/**
|
|
7294
|
+
* Is query exec from staff directory
|
|
7295
|
+
*/
|
|
7296
|
+
isDirectoryLoadContext?: boolean;
|
|
7220
7297
|
/**
|
|
7221
7298
|
* Query type
|
|
7222
7299
|
*/
|
|
@@ -7929,6 +8006,10 @@ export declare namespace GenModels {
|
|
|
7929
8006
|
* File extensions regular expression, that could be loaded to system.
|
|
7930
8007
|
*/
|
|
7931
8008
|
acceptableFileExtensions: string;
|
|
8009
|
+
/**
|
|
8010
|
+
* Gets or sets a regular expression describing which files can be edited.
|
|
8011
|
+
*/
|
|
8012
|
+
acceptableFileExtensionsForEditing: string;
|
|
7932
8013
|
/**
|
|
7933
8014
|
* Current Web-client connection.
|
|
7934
8015
|
*/
|
|
@@ -8045,6 +8126,10 @@ export declare namespace GenModels {
|
|
|
8045
8126
|
* Possible extensions for signature files.
|
|
8046
8127
|
*/
|
|
8047
8128
|
signatureFileExtensions: Array<string>;
|
|
8129
|
+
/**
|
|
8130
|
+
* Selecting a mechanism for generating an electronic signature
|
|
8131
|
+
*/
|
|
8132
|
+
calculateSignatureHashOnServer: boolean;
|
|
8048
8133
|
/**
|
|
8049
8134
|
* Settings for cloud signature (DSS)
|
|
8050
8135
|
*/
|
|
@@ -8998,6 +9083,18 @@ export declare namespace GenModels {
|
|
|
8998
9083
|
unitValueEnabled: boolean;
|
|
8999
9084
|
}
|
|
9000
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
|
+
}
|
|
9001
9098
|
export declare namespace GenModels {
|
|
9002
9099
|
interface TaskDelegationInfoModel {
|
|
9003
9100
|
/**
|
|
@@ -9569,6 +9666,11 @@ export declare namespace GenModels {
|
|
|
9569
9666
|
ApproversAddition = 6,
|
|
9570
9667
|
NonNegative = 7,
|
|
9571
9668
|
Any = 8,
|
|
9669
|
+
BranchA = 20,
|
|
9670
|
+
BranchB = 21,
|
|
9671
|
+
BranchC = 22,
|
|
9672
|
+
BranchD = 23,
|
|
9673
|
+
BranchE = 24,
|
|
9572
9674
|
Completion = 100,
|
|
9573
9675
|
Return = 200
|
|
9574
9676
|
}
|
|
@@ -10070,6 +10172,19 @@ export declare namespace GenModels {
|
|
|
10070
10172
|
OperationError = 5
|
|
10071
10173
|
}
|
|
10072
10174
|
}
|
|
10175
|
+
export declare namespace GenModels {
|
|
10176
|
+
enum PowerOfAttorneyRevocationType {
|
|
10177
|
+
Representative = 0,
|
|
10178
|
+
Principal = 1
|
|
10179
|
+
}
|
|
10180
|
+
}
|
|
10181
|
+
export declare namespace GenModels {
|
|
10182
|
+
enum PowerOfAttorneyRevocationApplicantType {
|
|
10183
|
+
Organization = 0,
|
|
10184
|
+
SoleProprietor = 1,
|
|
10185
|
+
Individual = 2
|
|
10186
|
+
}
|
|
10187
|
+
}
|
|
10073
10188
|
export declare namespace GenModels {
|
|
10074
10189
|
/**
|
|
10075
10190
|
* Possible objects, that security descriptor can be applied to.
|
|
@@ -11250,6 +11365,29 @@ export declare namespace GenModels {
|
|
|
11250
11365
|
NewWindow = 2
|
|
11251
11366
|
}
|
|
11252
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
|
+
}
|
|
11253
11391
|
export declare namespace GenModels {
|
|
11254
11392
|
enum AdditionalElementsMode {
|
|
11255
11393
|
Left = 0,
|
|
@@ -12083,6 +12221,21 @@ export declare namespace GenModels {
|
|
|
12083
12221
|
SystemFolder = 3
|
|
12084
12222
|
}
|
|
12085
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
|
+
}
|
|
12086
12239
|
export declare namespace GenModels {
|
|
12087
12240
|
enum ErrorCode {
|
|
12088
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();
|
|
@@ -15,6 +16,7 @@ export declare class Helpers {
|
|
|
15
16
|
static UpdateCaption(headerText?: string, color?: string): void;
|
|
16
17
|
static GetKindNameFromFullString(str: string): string;
|
|
17
18
|
static GetFileExtension(fileName: string): string;
|
|
19
|
+
static GetFileNameWithoutExtension(fileName: string): string;
|
|
18
20
|
static SetNumericControl(control: HTMLElement, callback?: Function): void;
|
|
19
21
|
static InsertAfter(newElement: any, targetElement: any): void;
|
|
20
22
|
static CapitalizeFirstLatter(str: string): string;
|
|
@@ -50,6 +52,14 @@ export declare class Helpers {
|
|
|
50
52
|
* @returns Функция, вызов которой закрывает модальное окно
|
|
51
53
|
*/
|
|
52
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;
|
|
53
63
|
static ValidateForm(form: HTMLFormElement): boolean;
|
|
54
64
|
static FindParentElement(headerFolderName: HTMLElement, parentClassName: string): HTMLElement;
|
|
55
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;
|