@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
|
@@ -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>;
|
|
@@ -23,3 +23,4 @@ export interface IDownloadFilePickerMenuItemProps extends IFilePickerMenuItemPro
|
|
|
23
23
|
}
|
|
24
24
|
export declare const DownloadFilePickerMenuItem: (props: IDownloadFilePickerMenuItemProps) => JSX.Element;
|
|
25
25
|
export declare const DeleteFilePickerMenuItem: (props: IFilePickerMenuItemProps) => JSX.Element;
|
|
26
|
+
export declare const ViewZipFilePickerMenuItem: (props: IFilePickerMenuItemProps) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $FilePickerController, $LayoutFileController } from
|
|
1
|
+
import { $FilePickerController, $LayoutFileController, $R7OfficeController } from "@docsvision/webclient/Generated/DocsVision.WebClient.Controllers";
|
|
2
2
|
import { GenModels } from '@docsvision/webclient/Generated/DocsVision.WebClient.Models';
|
|
3
3
|
import { $FileController } from '@docsvision/webclient/Legacy/FileController';
|
|
4
4
|
import { FilePickerAccessState } from '@docsvision/webclient/Platform/FilePickerMenuItemsView';
|
|
@@ -6,18 +6,27 @@ import { FilePickerOperationsAvailability } from '@docsvision/webclient/Platform
|
|
|
6
6
|
import { $FileDownload } from '@docsvision/webclient/Platform/$FileDownload';
|
|
7
7
|
import { $WindowLocation } from '@docsvision/webclient/Platform/$WindowLocation';
|
|
8
8
|
import { $FilePickerUpload } from '@docsvision/webclient/Platform/IFilePickerUploadService';
|
|
9
|
-
import { $CardId } from
|
|
9
|
+
import { $CardId, $CardInfo, $CardTimestamp } from "@docsvision/webclient/System/LayoutServices";
|
|
10
10
|
import { EventEmitter } from '@docsvision/webclient/System/EventEmitter';
|
|
11
11
|
import { $MessageBox } from '@docsvision/webclient/System/$MessageBox';
|
|
12
12
|
import { $FilePreviewServices } from '@docsvision/webclient/Platform/FilePreview';
|
|
13
|
-
import { $ApplicationSettings } from
|
|
13
|
+
import { $ApplicationSettings, $SiteUrl } from "@docsvision/webclient/StandardServices";
|
|
14
|
+
import { $Layout } from "@docsvision/webclient/System/$Layout";
|
|
15
|
+
import { $RequestManager } from "@docsvision/webclient/System/$RequestManager";
|
|
16
|
+
import { $WebServices } from "@docsvision/webclient/System/IWebServicesService";
|
|
14
17
|
export declare class FilePickerOperations {
|
|
15
|
-
|
|
18
|
+
openedInEditorFiles: string[];
|
|
19
|
+
open(file: GenModels.FileCardModel, accessState: FilePickerAccessState, events: EventEmitter, services: $MessageBox & $WindowLocation & $ApplicationSettings & $Layout & $SiteUrl & $CardId & $CardTimestamp & $R7OfficeController & $CardInfo & $RequestManager & $WebServices, afterCloseEditorEvent?: () => void): Promise<void>;
|
|
16
20
|
preview(file: GenModels.FileCardModel, version: GenModels.FileCardVersionModel, access: FilePickerOperationsAvailability, events: EventEmitter, onDownloadClick: () => void, services: $FileController & $LayoutFileController & $CardId & $FilePreviewServices): Promise<void>;
|
|
17
21
|
showCommentsDialog(file: GenModels.FileCardModel, version: GenModels.FileCardVersionModel, enableAddComments: boolean, dialogOpenEvents: EventEmitter, dialogCloseEvents: EventEmitter, addCommentEvents: EventEmitter, deleteCommentEvents: EventEmitter, services: $LayoutFileController & $CardId): Promise<void>;
|
|
22
|
+
private getOpenFileRequestData;
|
|
23
|
+
private sendOpenFileRequest;
|
|
24
|
+
private reloadFiles;
|
|
25
|
+
private sendOpenFileDvWebTool;
|
|
18
26
|
addFileVersion(file: GenModels.FileCardModel, inputContainer: HTMLElement, services: $MessageBox & $FilePickerUpload): Promise<File>;
|
|
19
27
|
replaceFile(file: GenModels.FileCardModel, inputContainer: HTMLElement, services: $MessageBox & $FilePickerUpload): Promise<File>;
|
|
20
28
|
openSelectFileDialog(file: GenModels.FileCardModel, inputContainer: HTMLElement, services: $MessageBox & $FilePickerUpload): Promise<File>;
|
|
21
29
|
download(file: GenModels.FileCardModel, version: GenModels.FileCardVersionModel | null, events: EventEmitter, logInfo: GenModels.LogInfo, services: $FileDownload & $FilePickerController): Promise<void>;
|
|
22
30
|
saveAs(file: GenModels.FileCardModel, version: GenModels.FileCardVersionModel | null, events: EventEmitter, logInfo: GenModels.LogInfo, services: $FilePickerController & $FileDownload): Promise<Blob>;
|
|
31
|
+
showViewZipDialog(file: GenModels.FileCardModel, services: $FilePickerController & $CardId): Promise<void>;
|
|
23
32
|
}
|
|
@@ -9,6 +9,7 @@ export declare class FilePickerOperationsAvailability {
|
|
|
9
9
|
private getServices;
|
|
10
10
|
constructor(getAccessState: () => FilePickerAccessState, getEditMode: () => EditMode, getFile: () => GenModels.FileCardModel, getServices: () => $DeviceType);
|
|
11
11
|
private check;
|
|
12
|
+
get canRead(): boolean;
|
|
12
13
|
get canOpen(): boolean;
|
|
13
14
|
get canPreview(): boolean;
|
|
14
15
|
get canComment(): boolean;
|
|
@@ -8,7 +8,7 @@ import { CancelableApiEvent, BasicApiEvent } from '@docsvision/webclient/System/
|
|
|
8
8
|
import { IFilePreviewingArgs } from '@docsvision/webclient/BackOffice/IFilePreviewingArgs';
|
|
9
9
|
import { IFilePreviewedArgs } from '@docsvision/webclient/BackOffice/IFilePreviewedArgs';
|
|
10
10
|
import { $FileController } from '@docsvision/webclient/Legacy/FileController';
|
|
11
|
-
import { $LayoutFileController } from
|
|
11
|
+
import { $LayoutFileController } from "@docsvision/webclient/Generated/DocsVision.WebClient.Controllers";
|
|
12
12
|
import { IFileVersionDownloadingArgs } from '@docsvision/webclient/BackOffice/IFileVersionDownloadingArgs';
|
|
13
13
|
import { IFileVersionDownloadedArgs } from '@docsvision/webclient/BackOffice/IFileVersionDownloadedArgs';
|
|
14
14
|
import { $FileService } from '@docsvision/webclient/System/$FileService';
|
|
@@ -19,14 +19,14 @@ import { IFileVersionCommentDeletedArgs } from '@docsvision/webclient/BackOffice
|
|
|
19
19
|
import { $Layout } from '@docsvision/webclient/System/$Layout';
|
|
20
20
|
import { EditMode } from '@docsvision/webclient/System/EditMode';
|
|
21
21
|
import { IEventArgs } from '@docsvision/webclient/System/IEventArgs';
|
|
22
|
-
import { $ApplicationSettings, $DeviceType } from
|
|
22
|
+
import { $ApplicationSettings, $DeviceType, $SiteUrl } from "@docsvision/webclient/StandardServices";
|
|
23
23
|
import { GenModels } from '@docsvision/webclient/Generated/DocsVision.WebClient.Models';
|
|
24
24
|
import { BodyContainerProvider } from '@docsvision/webclient/Helpers/BodyContainerProvider';
|
|
25
25
|
import React from 'react';
|
|
26
26
|
import { $FilePreview } from '@docsvision/webclient/Platform/$FilePreview';
|
|
27
27
|
import { Optional } from '@docsvision/web/core/services';
|
|
28
28
|
import { FileViewer, IFileViewerConstructor } from '@docsvision/webclient/Platform/FileViewer';
|
|
29
|
-
export declare type $FilePreviewServices = $LayoutCheck & $CardInfo & $RequestManager & $FileController & $ApplicationSettings & $LayoutFileController & $CardId & $FileService & $Layout & $DeviceType & Optional<$FilePreview> & $ApplicationSettings
|
|
29
|
+
export declare type $FilePreviewServices = $LayoutCheck & $CardInfo & $RequestManager & $FileController & $ApplicationSettings & $LayoutFileController & $CardId & $FileService & $Layout & $DeviceType & Optional<$FilePreview> & $ApplicationSettings & Optional<$SiteUrl>;
|
|
30
30
|
export declare class FilePreviewParams extends BaseControlParams {
|
|
31
31
|
/** Стандартный CSS класс со стилями элемента управления. */
|
|
32
32
|
standardCssClass?: string;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
|
|
1
2
|
import { IFolderPageRouteData } from '@docsvision/webclient/Platform/IFolderPageRouteData';
|
|
2
3
|
/** @internal */
|
|
3
4
|
export declare class FolderPageRouteHelpers {
|
|
4
|
-
static openFolder(folderId: string, color?: string): void;
|
|
5
|
-
static makeFolderUrl(folderId: string, color?: string): string;
|
|
5
|
+
static openFolder(folderId: string, color?: string, parameters?: GenModels.SearchParameter[]): void;
|
|
6
|
+
static makeFolderUrl(folderId: string, color?: string, parameters?: GenModels.SearchParameter[]): string;
|
|
6
7
|
static getRecentCardsUrl(): string;
|
|
7
|
-
static makeFolderPageRouteData(folderId?: string, color?: string): IFolderPageRouteData;
|
|
8
|
+
static makeFolderPageRouteData(folderId?: string, color?: string, parameters?: GenModels.SearchParameter[]): IFolderPageRouteData;
|
|
8
9
|
}
|
|
@@ -16,6 +16,6 @@ export declare class FolderWebFrameRouteHandler implements IRouteHandler<IFolder
|
|
|
16
16
|
private get useNewGrid();
|
|
17
17
|
private routeTypeCheck;
|
|
18
18
|
private filterClasses;
|
|
19
|
-
|
|
19
|
+
prepareRouteMount(data: IFolderPageRouteData, routeType: RouteType): Promise<RouteHandleResult>;
|
|
20
20
|
unmountRoute(data: IFolderPageRouteData, routeType: RouteType): Promise<void>;
|
|
21
21
|
}
|
|
@@ -4,5 +4,6 @@ import { ICommonFolderInfo } from "@docsvision/webclient/Platform/ICommonFolderI
|
|
|
4
4
|
export interface IFolderPageRouteData {
|
|
5
5
|
layout?: GenModels.LayoutViewModel;
|
|
6
6
|
folderInfo?: ICommonFolderInfo;
|
|
7
|
+
parameters?: GenModels.SearchParameter[];
|
|
7
8
|
useLastParameters?: boolean;
|
|
8
9
|
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TextBoxInputMaskView } from "@docsvision/webclient/Platform/TextBoxInputMaskView";
|
|
3
|
+
import { HtmlProps, IComponentProps } from "@docsvision/web/core/component";
|
|
4
|
+
import { InputState, MaskOptions } from "react-input-mask";
|
|
5
|
+
export interface ITextBoxMaskProps extends HtmlProps.input, IComponentProps<never, TextBoxInputMaskView> {
|
|
6
|
+
/**
|
|
7
|
+
* Маска. Символы формата:
|
|
8
|
+
* * `9`: `0-9`
|
|
9
|
+
* * `a`: `A-Z, a-z`
|
|
10
|
+
* * `\*`: `A-Z, a-z, 0-9`
|
|
11
|
+
*
|
|
12
|
+
* Любой символ можно экранировать с помощью обратной косой черты, которая обычно отображается как двойная обратная косая черта в строках JS.
|
|
13
|
+
* Например, немецкая маска телефона с неустранимым префиксом +49 будет выглядеть как `mask="+4\\9 99 999 99"` или `mask={"+4\\\\9 99 999 99"}`
|
|
14
|
+
*/
|
|
15
|
+
mask: string | null;
|
|
16
|
+
/**
|
|
17
|
+
* Символ для покрытия незаполненных редактируемых частей маски. Символ по умолчанию "_".
|
|
18
|
+
* Если установлено значение null, незаполненные части будут пустыми, как и при обычном вводе.
|
|
19
|
+
*/
|
|
20
|
+
maskChar?: string | null;
|
|
21
|
+
/**
|
|
22
|
+
* Определяет символы формата с символами в качестве ключей и соответствующей строкой RegExp в качестве значений.
|
|
23
|
+
* По умолчанию:
|
|
24
|
+
* ```
|
|
25
|
+
* {
|
|
26
|
+
* "9": "[0-9]",
|
|
27
|
+
* "a": "[A-Za-z]",
|
|
28
|
+
* "*": "[A-Za-z0-9]"
|
|
29
|
+
* }```
|
|
30
|
+
*/
|
|
31
|
+
formatChars?: {
|
|
32
|
+
[key: string]: string;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Показывать маску даже при пустом вводе без фокуса
|
|
36
|
+
*/
|
|
37
|
+
alwaysShowMask?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Если вам нужно реализовать более сложное поведение маскирования, вы можете использовать
|
|
40
|
+
* функцию beforeMaskedValueChange для изменения замаскированного значения прежде, чем
|
|
41
|
+
* значение будет изменено
|
|
42
|
+
*/
|
|
43
|
+
beforeMaskedValueChange?(newState: InputState, oldState: InputState, userInput: string, maskOptions: MaskOptions): InputState;
|
|
44
|
+
/**
|
|
45
|
+
* Используйте inputRef вместо ref, если вам нужен узел для управления фокусом, выбором и т. д
|
|
46
|
+
*/
|
|
47
|
+
inputRef?: React.Ref<HTMLInputElement>;
|
|
48
|
+
/** Использовать маску. По умолчанию: true */
|
|
49
|
+
useMask?: boolean;
|
|
50
|
+
/** Событие фокуса */
|
|
51
|
+
onFocus?: (ev: React.FocusEvent<HTMLInputElement>) => void;
|
|
52
|
+
/** Событие потери фокуса */
|
|
53
|
+
onBlur?: (ev: React.FocusEvent<HTMLInputElement>) => void;
|
|
54
|
+
/** Событие изменения значения в поле ввода */
|
|
55
|
+
onChange?: (ev: React.ChangeEvent<HTMLInputElement>) => void;
|
|
56
|
+
}
|
|
@@ -51,6 +51,7 @@ export declare class ScanDialogService implements IScanDialog {
|
|
|
51
51
|
attachScan: (element: HTMLElement) => void;
|
|
52
52
|
zoomScan: (value: ZoomOptions) => void;
|
|
53
53
|
rotateScan: (direction: RotateDirection) => void;
|
|
54
|
+
deletePage: () => void;
|
|
54
55
|
switchPage: (button: PageSwitchers) => void;
|
|
55
56
|
createCanvas: (src: string, direction: RotateDirection, callback: any) => void;
|
|
56
57
|
renderPreviewBlock: () => JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IComponentProps } from '@docsvision/web/core/component';
|
|
3
|
+
import { StoryObj } from '@storybook/react';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: () => JSX.Element;
|
|
7
|
+
decorators:
|
|
8
|
+
import("@storybook/csf").DecoratorFunction<{
|
|
9
|
+
component: any;
|
|
10
|
+
storyResult:
|
|
11
|
+
import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType;
|
|
12
|
+
},
|
|
13
|
+
import("@storybook/react").Args>[];
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
16
|
+
declare type Story = StoryObj<IScanDialogParams>;
|
|
17
|
+
export declare const Default: Story;
|
|
18
|
+
export declare const SelectScanner: Story;
|
|
19
|
+
export declare const ScanOneImage: Story;
|
|
20
|
+
export declare const ScanPreviewImage: Story;
|
|
21
|
+
export interface IScanDialogParams extends IComponentProps {
|
|
22
|
+
}
|
|
@@ -3,10 +3,10 @@ import { PluginOrder } from '@docsvision/webclient/System/PluginOrder';
|
|
|
3
3
|
import { GenModels } from '@docsvision/webclient/Generated/DocsVision.WebClient.Models';
|
|
4
4
|
import { IFolderLoadRequest } from '@docsvision/webclient/Platform/IFolderLoadRequest';
|
|
5
5
|
import { ITableData } from '@docsvision/web/components/table/interfaces';
|
|
6
|
-
import { $
|
|
6
|
+
import { $Router } from '@docsvision/webclient/System/$Router';
|
|
7
7
|
export declare class SearchParametersFolderRequestResolver implements IFolderDataLoadingPlugin {
|
|
8
8
|
id: string;
|
|
9
9
|
description: string;
|
|
10
10
|
order: PluginOrder;
|
|
11
|
-
resolveRequest(options: IFolderLoadRequest, request: GenModels.CardListRequestModel, currentData: ITableData, previousResponse?: GenModels.GridViewModel, services?: $
|
|
11
|
+
resolveRequest(options: IFolderLoadRequest, request: GenModels.CardListRequestModel, currentData: ITableData, previousResponse?: GenModels.GridViewModel, services?: $Router): Promise<void>;
|
|
12
12
|
}
|
|
@@ -3,7 +3,6 @@ import { $SearchParametersFolder } from '@docsvision/webclient/Platform/$SearchP
|
|
|
3
3
|
import { IFolderDataLoadingPlugin, ResponseResolveResult } from '@docsvision/webclient/Platform/IFolderDataLoadingPlugin';
|
|
4
4
|
import { PluginOrder } from '@docsvision/webclient/System/PluginOrder';
|
|
5
5
|
import { ITableData } from '@docsvision/web/components/table/interfaces';
|
|
6
|
-
import { $LastSearchParameters } from '@docsvision/webclient/Platform/$LastSearchParameters';
|
|
7
6
|
import { $CurrentFolder } from '@docsvision/webclient/Platform/$CurrentFolder';
|
|
8
7
|
import { $Router } from '@docsvision/webclient/System/$Router';
|
|
9
8
|
export declare class SearchParametersFolderResponseResolver implements IFolderDataLoadingPlugin {
|
|
@@ -11,6 +10,6 @@ export declare class SearchParametersFolderResponseResolver implements IFolderDa
|
|
|
11
10
|
description?: "Показывает модальное окно с поисковыми параметрами";
|
|
12
11
|
order: PluginOrder.System;
|
|
13
12
|
private layoutSearchParametersDialog;
|
|
14
|
-
resolveResponse?(data: ITableData, response?: GenModels.GridViewModelEx, services?: $SearchParametersFolder & $
|
|
13
|
+
resolveResponse?(data: ITableData, response?: GenModels.GridViewModelEx, services?: $SearchParametersFolder & $CurrentFolder & $Router): Promise<void | ResponseResolveResult>;
|
|
15
14
|
private loadSearchParametres;
|
|
16
15
|
}
|
package/Platform/TestUtils.d.ts
CHANGED
|
@@ -17,7 +17,6 @@ import { $ToolbarActionContainer } from '@docsvision/web/components/table/plugin
|
|
|
17
17
|
import { $LocalStorage } from '@docsvision/webclient/System/$LocalStorage';
|
|
18
18
|
import { $ToolbarDaughterControls } from '@docsvision/webclient/Platform/$ToolbarDaughterControls';
|
|
19
19
|
import { $HoverPanel } from '@docsvision/webclient/Platform/$HoverPanel';
|
|
20
|
-
import { $LastSearchParameters } from '@docsvision/webclient/Platform/$LastSearchParameters';
|
|
21
20
|
import { $EmployeeStatus } from '@docsvision/webclient/Platform/$EmployeeStatus';
|
|
22
21
|
import { $IsIE } from '@docsvision/web/core/system-services/environment';
|
|
23
22
|
export declare let ScrollContainer:
|
|
@@ -26,4 +25,4 @@ export declare let ScrollContainerWrapper:
|
|
|
26
25
|
import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
27
26
|
export declare function common(): FolderGridParams;
|
|
28
27
|
export declare let gridStory: (name: string, render: (services: any) => JSX.Element, params?: StoryParameters) => () => JSX.Element;
|
|
29
|
-
export declare function services(): $GridOptions & $Router & $GridController & $DeviceType & $ExperimentalFeature & $ApplicationSettings & $Resources & $ToolbarActionContainer & $FolderPluginProvider & $CurrentLocation & $CurrentFolder & $WebFrameSearchPanel & $LastSearchResponse & $Domain & $LocalStorage & $ToolbarDaughterControls & $HoverPanel & $
|
|
28
|
+
export declare function services(): $GridOptions & $Router & $GridController & $DeviceType & $ExperimentalFeature & $ApplicationSettings & $Resources & $ToolbarActionContainer & $FolderPluginProvider & $CurrentLocation & $CurrentFolder & $WebFrameSearchPanel & $LastSearchResponse & $Domain & $LocalStorage & $ToolbarDaughterControls & $HoverPanel & $EmployeeStatus & $IsIE;
|
package/Platform/TextBox.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
|
|
1
2
|
import { TextBoxImpl, ITextBoxState } from "@docsvision/webclient/Platform/TextBoxImpl";
|
|
2
3
|
import { TextControlBase, TextControlBaseParams } from "@docsvision/webclient/Platform/TextControlBase";
|
|
3
4
|
import { $EditOperationStore, $LayoutInfo } from "@docsvision/webclient/System/LayoutServices";
|
|
@@ -8,6 +9,8 @@ export declare class TextBoxParams extends TextControlBaseParams {
|
|
|
8
9
|
/** Стандартный CSS класс со стилями элемента управления. */
|
|
9
10
|
standardCssClass?: string;
|
|
10
11
|
services?: $LayoutInfo & $EditOperationStore;
|
|
12
|
+
/** Модель содержит маску ввода и регулярное выражение для проверки значения. */
|
|
13
|
+
inputMask?: GenModels.InputMaskModel;
|
|
11
14
|
}
|
|
12
15
|
/**
|
|
13
16
|
* Вспомогательный контрол для редактирования текстовой информации.
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { TextBox } from '@docsvision/webclient/Platform/TextBox';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export
|
|
2
|
+
import { TextBox, TextBoxParams } from '@docsvision/webclient/Platform/TextBox';
|
|
3
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
4
|
+
declare type Story = StoryObj<TextBoxParams & {
|
|
5
|
+
ref: React.MutableRefObject<TextBox>;
|
|
6
|
+
}>;
|
|
7
|
+
declare const metaStory: Meta<TextBoxParams & {
|
|
8
|
+
ref: React.MutableRefObject<TextBox>;
|
|
9
|
+
}>;
|
|
10
|
+
export default metaStory;
|
|
11
|
+
export declare const Edit: Story;
|
|
12
|
+
export declare const EditInPlace: Story;
|
|
13
|
+
export declare const View: Story;
|
|
14
|
+
export declare const EditWithMask: Story;
|
|
15
|
+
export declare const EditInPlaceWithMask: Story;
|
|
16
|
+
export declare const ViewWithMask: Story;
|
|
17
|
+
export declare const ValidationErrorRequired: Story;
|
|
18
|
+
export declare const ValidationErrorWithMask: Story;
|
|
@@ -2,6 +2,9 @@ import { IEditPopoverProps } from "@docsvision/webclient/Helpers/PopoverHelpers/
|
|
|
2
2
|
import { TextBox, TextBoxParams } from "@docsvision/webclient/Platform/TextBox";
|
|
3
3
|
import { TextControlBaseImpl, ITextControlBaseState } from "@docsvision/webclient/Platform/TextControlBaseImpl";
|
|
4
4
|
import React from "react";
|
|
5
|
+
import { IValidationParams } from "@docsvision/webclient/System/IValidationParams";
|
|
6
|
+
import { IValidationResult } from "@docsvision/webclient/System/IValidationResult";
|
|
7
|
+
import { ITextBoxMaskProps } from "@docsvision/webclient/Platform/ITextBoxMaskProps";
|
|
5
8
|
/** @internal */
|
|
6
9
|
export interface ITextBoxState extends TextBoxParams, ITextControlBaseState {
|
|
7
10
|
}
|
|
@@ -11,11 +14,19 @@ export interface TextBoxState extends ITextBoxState {
|
|
|
11
14
|
export declare type TextBoxImplState = ITextBoxState;
|
|
12
15
|
/** @internal */
|
|
13
16
|
export declare class TextBoxImpl extends TextControlBaseImpl<TextBoxParams, ITextBoxState> {
|
|
17
|
+
protected maskChar: string;
|
|
14
18
|
constructor(props: TextBoxParams, state: ITextBoxState);
|
|
19
|
+
protected renderInput(): React.ReactNode;
|
|
15
20
|
protected renderInto(props: TextBoxParams, container: HTMLElement): void;
|
|
16
21
|
protected showEditPopover(popoverOptions?: IEditPopoverProps): Promise<TextBox>;
|
|
22
|
+
validate(params: IValidationParams): IValidationResult;
|
|
23
|
+
protected validatePattern(params: IValidationParams): IValidationResult;
|
|
24
|
+
protected validateMask(params: IValidationParams): IValidationResult;
|
|
17
25
|
protected onInputBlur(event: React.FocusEvent): void;
|
|
18
26
|
private saveCard;
|
|
19
27
|
private shouldSaveCardWithEditInPlaceValue;
|
|
20
28
|
private isLayoutViewMode;
|
|
29
|
+
private useMask;
|
|
30
|
+
private useRegExp;
|
|
31
|
+
protected getMaskProps(): ITextBoxMaskProps;
|
|
21
32
|
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { HtmlProps } from "@docsvision/web/core/component/HtmlProps";
|
|
3
|
+
export declare const TextBoxInputField: React.ForwardRefExoticComponent<Pick<HtmlProps.input, "form" | "slot" | "style" | "title" | "pattern" | "children" | "name" | "id" | "disabled" | "onSubmit" | "autoComplete" | "type" | "placeholder" | "value" | "autoFocus" | "dir" | "className" | "color" | "height" | "lang" | "max" | "min" | "width" | "role" | "tabIndex" | "crossOrigin" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "alt" | "src" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "accept" | "capture" | "checked" | "enterKeyHint" | "list" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "size" | "step"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ITextBoxMaskProps } from "@docsvision/webclient/Platform/ITextBoxMaskProps";
|
|
3
|
+
/**
|
|
4
|
+
* Предоставляет возможность отобразить элемент с маской.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export declare function TextBoxInputMask(props: ITextBoxMaskProps): JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import InputMask from "react-input-mask";
|
|
3
|
+
/** Визуальные компоненты {@see TextBoxInputMask}. */
|
|
4
|
+
export declare class TextBoxInputMaskView {
|
|
5
|
+
inputMask: typeof InputMask;
|
|
6
|
+
input:
|
|
7
|
+
import("react").ForwardRefExoticComponent<Pick<
|
|
8
|
+
| "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "alt" | "src" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "accept" | "capture" | "checked" | "enterKeyHint" | "list" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "size" | "step"> &
|
|
9
|
+
import("react").RefAttributes<HTMLInputElement>>;
|
|
10
|
+
}
|
package/StandardServices.d.ts
CHANGED
|
@@ -53,7 +53,6 @@ import { $RefreshUnreadCounters } from "@docsvision/webclient/Platform/$RefreshU
|
|
|
53
53
|
import { $CurrentFolder } from "@docsvision/webclient/Platform/$CurrentFolder";
|
|
54
54
|
import { $CloudSignature } from "@docsvision/webclient/BackOffice/$CloudSignature";
|
|
55
55
|
import { $CryptoPro } from "@docsvision/webclient/BackOffice/$CryptoPro";
|
|
56
|
-
import { $LastSearchParameters } from "@docsvision/webclient/Platform/$LastSearchParameters";
|
|
57
56
|
import { $Poll } from "@docsvision/webclient/System/$PollService";
|
|
58
57
|
import { $FolderPluginProvider } from "@docsvision/webclient/Platform/$FolderPluginProvider";
|
|
59
58
|
import { $LayoutBackground } from "@docsvision/webclient/System/$LayoutBackground";
|
|
@@ -150,4 +149,4 @@ export declare type $ApplicationSettings = {
|
|
|
150
149
|
};
|
|
151
150
|
export declare const $ApplicationSettings: string | ((model?: $ApplicationSettings) => GenModels.ApplicationSettings);
|
|
152
151
|
/** Стандартные сервисы Web-клиента. */
|
|
153
|
-
export declare type $StandardServices = $Layout & $Router & $CurrentEmployeeId & $CurrentEmployeeAccountName & $DeviceType & $SiteUrl & $Locale & $FullTextSearchEnabled & $RequestManager & $Sidebar & $FolderViews & $SearchPanel & $NavBar & $Folders & $UnreadCounter & $InstalledCSP & $ApplicationTimestamp & $LayoutManager & $RealtimeCommunicationService & $UserMenu & $LayoutControlFactory & $EditOperationStore & $LayoutInfo & $CardInfo & $RowInfo & $CardId & $RowId & $CardTimestamp & $ControlStore & $LocalStorage & $BaseName & $RouteTimestamp & $EnableRouterLogging & $IsMobileSafari & $LogEnabled & $IsIE & $IsSafari & $LastSearchRequest & $UrlStore & $UrlResolver & $CurrentEmployee & $RouterNavigation & $OwnerLayout & $ApplicationSettings & $ExtensionManager & $WebServices & $BatchOperationsProgressDialog & $BatchOperationsPerformer & $InsideMainMenu & $Timeout & $WebFrameContext & $ExtendedDataSourceInfos & $FilePickerUpload & $MessageBox & $WindowLocation & $FileDownload & $ExperimentalFeature & $UnreadCounterNotification & $EmployeeStatus & $CacheManagement & $FileScan & $LayoutCheck & $ScanDialog & $FileService & $CompanyLogo & $ContentElementProvider & $RootCssClass & $FilePreview & $WebViewIOSEnabled & $FileUpload & Partial<$WebFrameDirectorySearchPanelService> & $Domain & $Resources & $MessageWindow & $DialogManagement & $WebFrameDirectorySearchInfoStorageService & $WebFrameSearchPanel & $LastSearchResponse & $RefreshUnreadCounters & $
|
|
152
|
+
export declare type $StandardServices = $Layout & $Router & $CurrentEmployeeId & $CurrentEmployeeAccountName & $DeviceType & $SiteUrl & $Locale & $FullTextSearchEnabled & $RequestManager & $Sidebar & $FolderViews & $SearchPanel & $NavBar & $Folders & $UnreadCounter & $InstalledCSP & $ApplicationTimestamp & $LayoutManager & $RealtimeCommunicationService & $UserMenu & $LayoutControlFactory & $EditOperationStore & $LayoutInfo & $CardInfo & $RowInfo & $CardId & $RowId & $CardTimestamp & $ControlStore & $LocalStorage & $BaseName & $RouteTimestamp & $EnableRouterLogging & $IsMobileSafari & $LogEnabled & $IsIE & $IsSafari & $LastSearchRequest & $UrlStore & $UrlResolver & $CurrentEmployee & $RouterNavigation & $OwnerLayout & $ApplicationSettings & $ExtensionManager & $WebServices & $BatchOperationsProgressDialog & $BatchOperationsPerformer & $InsideMainMenu & $Timeout & $WebFrameContext & $ExtendedDataSourceInfos & $FilePickerUpload & $MessageBox & $WindowLocation & $FileDownload & $ExperimentalFeature & $UnreadCounterNotification & $EmployeeStatus & $CacheManagement & $FileScan & $LayoutCheck & $ScanDialog & $FileService & $CompanyLogo & $ContentElementProvider & $RootCssClass & $FilePreview & $WebViewIOSEnabled & $FileUpload & Partial<$WebFrameDirectorySearchPanelService> & $Domain & $Resources & $MessageWindow & $DialogManagement & $WebFrameDirectorySearchInfoStorageService & $WebFrameSearchPanel & $LastSearchResponse & $RefreshUnreadCounters & $CloudSignature & $CryptoPro & $CurrentFolder & $LastSearchResponse & $Poll & $FolderPluginProvider & $LayoutBackground & $ApprovalPathVisualizationController & $HoverPanel & $HoverPanel & $DigitalSignature & $WebFrameDirectorySearchPanelService & $WebFrameContentHeight & $FolderColors;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IFileScanService } from "@docsvision/webclient/Platform/$FileScan";
|
|
2
|
+
import { ScanOptions } from "@docsvision/webclient/Platform/ScanOptions";
|
|
3
|
+
export declare class FileScanServiceStub implements IFileScanService {
|
|
4
|
+
getScannerList(): Promise<string[]>;
|
|
5
|
+
scan(scannerName: string, options: ScanOptions): Promise<string>;
|
|
6
|
+
scanAll(scannerName: string, options: ScanOptions): Promise<string[]>;
|
|
7
|
+
getFileList(base64Images: string[]): FileList;
|
|
8
|
+
}
|
|
@@ -9,7 +9,6 @@ export interface IWebServicesService {
|
|
|
9
9
|
/**
|
|
10
10
|
* Отправляет сообщение в агент веб-сервисов методом GET, и возвращает полученный ответ.
|
|
11
11
|
* @param plugin Адрес плагина, для которого предназначено сообщение.
|
|
12
|
-
* @param action Действие плагина, которое необходимо выполнить. Может быть не задано.
|
|
13
12
|
* @param message JavaScript объект, содержащий параметры запроса.
|
|
14
13
|
* @returns JavaScript объект ответа.
|
|
15
14
|
*/
|
|
@@ -17,7 +16,6 @@ export interface IWebServicesService {
|
|
|
17
16
|
/**
|
|
18
17
|
* Отправляет сообщение в агент веб-сервисов методом POST, и возвращает полученный ответ.
|
|
19
18
|
* @param plugin Адрес плагина, для которого предназначено сообщение.
|
|
20
|
-
* @param action Действие плагина, которое необходимо выполнить. Может быть не задано.
|
|
21
19
|
* @param message JavaScript объект, содержащий параметры запроса.
|
|
22
20
|
* @returns JavaScript объект ответа.
|
|
23
21
|
*/
|
|
@@ -11,6 +11,7 @@ export declare class LayoutCardControllerStub implements GenControllers.ILayoutC
|
|
|
11
11
|
delete(deleteCardRequestModel: GenModels.DeleteCardRequestModel, options?: RequestOptions): Promise<string>;
|
|
12
12
|
getLayout(cardLayoutParams: GenModels.CardLayoutParams, options?: RequestOptions): Promise<GenModels.LayoutCardViewModel>;
|
|
13
13
|
getLayoutPart(layoutPartParams: GenModels.LayoutPartParams, options?: RequestOptions): Promise<GenModels.LayoutModel>;
|
|
14
|
+
getLayoutPartEx(layoutPartParams: GenModels.LayoutPartParamsEx, options?: RequestOptions): Promise<GenModels.LayoutModel>;
|
|
14
15
|
save(model: GenModels.SaveControlDataModel, options?: RequestOptions): Promise<void>;
|
|
15
16
|
checkModifiedAndLocked(cardId: string, timestamp: number, options?: RequestOptions): Promise<void>;
|
|
16
17
|
changeState(changeStateDataModel: GenModels.ChangeStateDataModelWithParams, options?: RequestOptions): Promise<GenModels.LayoutCardViewModel>;
|
|
@@ -77,7 +77,8 @@ export declare class LocationContainerControl extends BaseControl<LocationContai
|
|
|
77
77
|
/** @internal */
|
|
78
78
|
init(): void;
|
|
79
79
|
/** @internal */
|
|
80
|
-
protected initInternal(): Promise<
|
|
80
|
+
protected initInternal(isReload?: boolean): Promise<unknown>;
|
|
81
|
+
reloadLayout(): Promise<void>;
|
|
81
82
|
/** @internal */
|
|
82
83
|
protected loadLayout(): Promise<GenModels.LayoutViewModel>;
|
|
83
84
|
/** @internal */
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { LocationContainerControl, LocationContainerControlParams } from "@docsvision/webclient/System/LocationContainerControl";
|
|
4
|
+
declare const metaStory: Meta<LocationContainerControlParams & {
|
|
5
|
+
ref: React.MutableRefObject<LocationContainerControl>;
|
|
6
|
+
}>;
|
|
7
|
+
export default metaStory;
|
|
8
|
+
declare type Story = StoryObj<LocationContainerControlParams & {
|
|
9
|
+
ref: React.MutableRefObject<LocationContainerControl>;
|
|
10
|
+
}>;
|
|
11
|
+
export declare const WithLayoutModel: Story;
|
|
12
|
+
export declare const WithoutLayoutModel: Story;
|
|
13
|
+
export declare const AsyncModeWithLayoutModel: Story;
|
|
14
|
+
export declare const AsyncModeWithoutLayoutModel: Story;
|
|
15
|
+
export declare const WithoutLayoutModelWithCustomLoader: Story;
|
|
16
|
+
export declare const WithLayoutModelWithCustomLoader: Story;
|
|
17
|
+
export declare const AsyncWithoutLayoutModelWithCustomLoader: Story;
|
|
18
|
+
export declare const AsyncWithLayoutModelWithCustomLoader: Story;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { LocationContainerControl, LocationContainerControlParams } from "@docsvision/webclient/System/LocationContainerControl";
|
|
4
|
+
declare const metaStory: Meta<LocationContainerControlParams & {
|
|
5
|
+
ref: React.MutableRefObject<LocationContainerControl>;
|
|
6
|
+
}>;
|
|
7
|
+
export default metaStory;
|
|
8
|
+
declare type Story = StoryObj<LocationContainerControlParams & {
|
|
9
|
+
ref: React.MutableRefObject<LocationContainerControl>;
|
|
10
|
+
}>;
|
|
11
|
+
export declare const ReloadWithLayoutModel: Story;
|
|
12
|
+
export declare const ReloadWithoutLayoutModel: Story;
|
|
13
|
+
export declare const ReloadAsyncModeWithLayoutModel: Story;
|
|
14
|
+
export declare const ReloadAsyncModeWithoutLayoutModel: Story;
|
|
15
|
+
export declare const ReloadAsyncModeFromEmptyLayout: Story;
|
|
16
|
+
export declare const ReloadFromEmptyLayout: Story;
|
|
17
|
+
export declare const ReloadWithoutLayoutModelWithCustomLoader: Story;
|
|
18
|
+
export declare const ReloadWithLayoutModelWithCustomLoader: Story;
|
|
19
|
+
export declare const ReloadAsyncWithoutLayoutModelWithCustomLoader: Story;
|
|
20
|
+
export declare const ReloadAsyncWithLayoutModelWithCustomLoader: Story;
|