@docsvision/webclient 6.1.3-beta.1 → 6.1.3
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/BackOffice/DepartmentImpl.d.ts +2 -0
- package/BackOffice/FileListControl.d.ts +2 -1
- package/BackOffice/FileListControlLogic.d.ts +1 -1
- package/Generated/DocsVision.WebClient.Models.d.ts +0 -4
- package/Legacy/Utils.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/package.json +1 -1
|
@@ -47,5 +47,7 @@ export declare class DepartmentImpl extends InputBasedControlImpl<GenModels.Depa
|
|
|
47
47
|
private onMaximize;
|
|
48
48
|
get isDictionaryShown(): boolean;
|
|
49
49
|
protected renderDialog: () => JSX.Element;
|
|
50
|
+
protected onMouseDownIcon(): void;
|
|
51
|
+
protected onButtonBlur(event: React.FocusEvent): void;
|
|
50
52
|
protected renderInputWithPlaceholder(): React.ReactNode;
|
|
51
53
|
}
|
|
@@ -57,6 +57,7 @@ import { IRowClickArgs } from "@docsvision/webclient/BackOffice/IRowClickArgs";
|
|
|
57
57
|
import { IFileVersionExpandingArgs } from "@docsvision/webclient/BackOffice/IFileVersionExpandingArgs";
|
|
58
58
|
import { IFileClickingArgs } from "@docsvision/webclient/BackOffice/IFileClickingArgs";
|
|
59
59
|
import { $WebServices } from "@docsvision/webclient/System/IWebServicesService";
|
|
60
|
+
import { $FileDownload } from "@docsvision/webclient/Platform/$FileDownload";
|
|
60
61
|
/**
|
|
61
62
|
* Содержит публичные свойства элемента управления [Список файлов]{@link FileListControl}.
|
|
62
63
|
*/
|
|
@@ -191,7 +192,7 @@ export declare class FileListControlParams extends BaseControlParams {
|
|
|
191
192
|
/** Сервисы. */
|
|
192
193
|
services?: FileListServices;
|
|
193
194
|
}
|
|
194
|
-
export declare type FileListServices = $FileService & $DocumentCardController & $FileController & $LayoutFileController & $Layout & $RequestManager & $SignatureController & $CardId & $RealtimeCommunicationService & $Router & $DeviceType & $EditOperationStore & $CardInfo & $DataVisualizationController & $LayoutCheck & $ApplicationSettings & $FileUpload & $UrlStore & $MessageBox & $WebViewIOSEnabled & $LayoutFileApiController & $LayoutDocumentController & $CloudSignature & $CryptoPro & $LocalStorage & $SignatureMethodsController & $DigitalSignature & $LayoutManager & $LayoutInfo & $FileListOptions & $SiteUrl & $WebServices & $CardTimestamp & $R7OfficeController;
|
|
195
|
+
export declare type FileListServices = $FileService & $DocumentCardController & $FileController & $LayoutFileController & $Layout & $RequestManager & $SignatureController & $CardId & $RealtimeCommunicationService & $Router & $DeviceType & $EditOperationStore & $CardInfo & $DataVisualizationController & $LayoutCheck & $ApplicationSettings & $FileUpload & $UrlStore & $MessageBox & $WebViewIOSEnabled & $LayoutFileApiController & $LayoutDocumentController & $CloudSignature & $CryptoPro & $LocalStorage & $FileDownload & $SignatureMethodsController & $DigitalSignature & $LayoutManager & $LayoutInfo & $FileListOptions & $SiteUrl & $WebServices & $CardTimestamp & $R7OfficeController;
|
|
195
196
|
/**
|
|
196
197
|
* Класс элемента управления Список файлов.
|
|
197
198
|
*
|
|
@@ -16,7 +16,7 @@ export declare class FileListControlLogic {
|
|
|
16
16
|
filesToRemove: FileListItem[];
|
|
17
17
|
openedInEditorFiles: string[];
|
|
18
18
|
static readonly illegalFileNameCharacters: RegExp;
|
|
19
|
-
static readonly terminalServiceUrl:
|
|
19
|
+
static readonly terminalServiceUrl = "http://localhost:5050/";
|
|
20
20
|
constructor(forceUpdate?: () => void);
|
|
21
21
|
init(_mainAttach: FileListAttachedElements, _extraAttach: FileListAttachedElements, _parent: FileListControlImpl): void;
|
|
22
22
|
loadFilesFromModel(model: GenModels.FileListDataModel, oldFiles?: FileListItem[]): FileListItem[];
|
|
@@ -7970,10 +7970,6 @@ export declare namespace GenModels {
|
|
|
7970
7970
|
* Disable warning if file is read only
|
|
7971
7971
|
*/
|
|
7972
7972
|
disableReadOnlyWarning: boolean;
|
|
7973
|
-
/**
|
|
7974
|
-
* Port on localhost that util is listening.
|
|
7975
|
-
*/
|
|
7976
|
-
dvSupServiceConnectionPort: number;
|
|
7977
7973
|
}
|
|
7978
7974
|
}
|
|
7979
7975
|
export declare namespace GenModels {
|
package/Legacy/Utils.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export declare class Helpers {
|
|
|
15
15
|
static UpdateCaption(headerText?: string, color?: string): void;
|
|
16
16
|
static GetKindNameFromFullString(str: string): string;
|
|
17
17
|
static GetFileExtension(fileName: string): string;
|
|
18
|
+
static GetFileNameWithoutExtension(fileName: string): string;
|
|
18
19
|
static SetNumericControl(control: HTMLElement, callback?: Function): void;
|
|
19
20
|
static InsertAfter(newElement: any, targetElement: any): void;
|
|
20
21
|
static CapitalizeFirstLatter(str: string): string;
|
|
@@ -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;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { $LayoutController } from "@docsvision/webclient/Generated/DocsVision.WebClient.Controllers";
|
|
2
|
+
import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
|
|
3
|
+
import { $CurrentLocation } from "@docsvision/webclient/System/LayoutServices";
|
|
4
|
+
import { $LayoutManager } from "@docsvision/webclient/System/$LayoutManager";
|
|
5
|
+
import { $Layout } from "@docsvision/webclient/System/$Layout";
|
|
6
|
+
import { $DeviceType } from "@docsvision/webclient/StandardServices";
|
|
7
|
+
export declare function getLocationContainerMockServices(): $LayoutController & $LayoutManager & $CurrentLocation & $Layout & $DeviceType;
|
|
8
|
+
export declare function locationContainerStoryCustomloader(): Promise<GenModels.LayoutViewModel>;
|
|
9
|
+
export declare function locationContainerStoryCustomloaderForReaload(): Promise<GenModels.LayoutViewModel>;
|
|
10
|
+
export declare const locationContainerStoryLayoutGuid = "b64c55d9-4817-4ad4-9816-8af35022c32e";
|
|
11
|
+
export declare function locationContainerStoryRegisterControls(): void;
|
|
12
|
+
export declare function getLayoutModel({ controlName, layoutId }: {
|
|
13
|
+
controlName: any;
|
|
14
|
+
layoutId: any;
|
|
15
|
+
}): GenModels.LayoutViewModel;
|