@docsvision/webclient 6.1.11 → 6.1.12-beta.2
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/Application.d.ts +1 -0
- package/BackOffice/CheckStaffSectionAcccessRights.d.ts +1 -0
- package/BackOffice/CreateCardDialog.d.ts +15 -0
- package/BackOffice/CreateCardDialogLogic.d.ts +20 -0
- package/BackOffice/CreateCardSelectKindDialog.d.ts +10 -0
- package/BackOffice/DirectoryTabs.d.ts +1 -0
- package/BackOffice/StaffDirectoryLogic.d.ts +1 -0
- package/Generated/DocsVision.WebClient.Controllers.d.ts +11 -6
- package/Generated/DocsVision.WebClient.Models.d.ts +80 -5
- package/Helpers/LoadingIcon/LoadingIcon.d.ts +2 -2
- package/Legacy/NewCardDialog.d.ts +3 -3
- package/Platform/CardManagement.d.ts +1 -1
- package/Platform/CardManagementImpl.d.ts +3 -0
- package/Platform/FilePreview.d.ts +2 -0
- package/Platform/FilePreviewImpl.d.ts +1 -0
- package/Platform/WebFrameUserPanel.d.ts +2 -0
- package/StandardServices.d.ts +2 -1
- package/System/$BrowserTabId.d.ts +5 -0
- package/System/AddCardModalStub.d.ts +3 -0
- package/System/GetBrowserTabId.d.ts +1 -0
- package/System/LayoutManager.d.ts +2 -1
- package/System/NavigatorControllerStub.d.ts +21 -0
- package/System/RequestManager.d.ts +3 -1
- package/package.json +2 -2
- package/BackOffice/AddressStoriesData.d.ts +0 -22
- package/BackOffice/CardKindStoriesData.d.ts +0 -45
- package/BackOffice/CommentsStoriesData.d.ts +0 -8
- package/BackOffice/CreateRelatedCardButtonStoriesData.d.ts +0 -23
- package/BackOffice/DelegateBatchOperationStoriesData.d.ts +0 -16
- package/BackOffice/DeleteShortcutBatchOperationStoriesData.d.ts +0 -13
- package/BackOffice/DepartmentStoriesData.d.ts +0 -89
- package/BackOffice/DirectoryDesignerRowStoriesData.d.ts +0 -15
- package/BackOffice/DisplayInitiatorStoriesData.d.ts +0 -35
- package/BackOffice/DisplayPerformersStoriesData.d.ts +0 -72
- package/BackOffice/EmployeeStoriesData.d.ts +0 -19
- package/BackOffice/FileListControlStoriesData.d.ts +0 -162
- package/BackOffice/GroupTaskCardSelectPerformersStoriesData.d.ts +0 -14
- package/BackOffice/HistoryStoriesData.d.ts +0 -46
- package/BackOffice/HistoryStoriesHelpers.d.ts +0 -4
- package/BackOffice/LinksStoriesData.d.ts +0 -61
- package/BackOffice/MultipleEmployeesStoriesData.d.ts +0 -38
- package/BackOffice/NumeratorStoriesData.d.ts +0 -25
- package/BackOffice/PartnerDepartmentStoriesData.d.ts +0 -175
- package/BackOffice/PartnerStoriesData.d.ts +0 -141
- package/BackOffice/StateButtonsStoriesData.d.ts +0 -23
- package/BackOffice/TasksStoriesData.d.ts +0 -37
- package/Helpers/AddCardModalDialog/AddCardModalDialog.d.ts +0 -18
- package/Helpers/AddCardModalDialog/AddCardModalDialogContent.d.ts +0 -15
- package/Helpers/AddCardModalDialog/AddCardModalDialogKindsTree.d.ts +0 -14
- package/Platform/DeleteBatchOperationStoriesData.d.ts +0 -14
- package/Platform/DownloadFilesBatchOperationStoriesData.d.ts +0 -17
- package/Platform/MoveShortcutBatchOperationStoriesData.d.ts +0 -13
- package/Platform/ReadBatchBatchOperationStoriesData.d.ts +0 -14
- package/System/LocationContainerControlStoriesData.d.ts +0 -16
package/Application.d.ts
CHANGED
|
@@ -87,6 +87,7 @@ export declare class Application extends ServiceContainer implements IApp {
|
|
|
87
87
|
/** @deprecated */
|
|
88
88
|
get CompanyLogo(): HTMLElement;
|
|
89
89
|
set InstalledCSP(value: boolean);
|
|
90
|
+
private onWindowUnload;
|
|
90
91
|
private isApple;
|
|
91
92
|
private detectBrowsers;
|
|
92
93
|
private registerNotificationListener;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { $SecurityController } from "@docsvision/webclient/Generated/DocsVision.WebClient.Controllers";
|
|
2
2
|
import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
|
|
3
|
+
export declare const checkStaffSectionAccessRights: (rowId: string, sectionId: string, cardDataRights: GenModels.CardDataRights, services: $SecurityController) => Promise<boolean>;
|
|
3
4
|
export declare const checkStaffSectionAcccessRights: (rowId: string, sectionId: string, cardDataRights: GenModels.CardDataRights, services: $SecurityController) => Promise<boolean>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
|
|
3
|
+
import { IComponentProps } from "@docsvision/web/core/component";
|
|
4
|
+
import { CreateCardDialogLogic } from "@docsvision/webclient/BackOffice/CreateCardDialogLogic";
|
|
5
|
+
import { $NavigatorController } from "@docsvision/webclient/Generated/DocsVision.WebClient.Controllers";
|
|
6
|
+
import { $Folders } from "@docsvision/webclient/Legacy/$Folders";
|
|
7
|
+
import { $Router, $RouterNavigation } from "@docsvision/webclient/System/$Router";
|
|
8
|
+
|
|
9
|
+
export interface ICreateCardDialogProps extends IComponentProps<CreateCardDialogLogic, null> {
|
|
10
|
+
visible?: boolean;
|
|
11
|
+
onClose?: () => void;
|
|
12
|
+
services: $NavigatorController & $Folders & $Router & $RouterNavigation;
|
|
13
|
+
data?: GenModels.AddCardModalModel;
|
|
14
|
+
}
|
|
15
|
+
export declare function CreateCardDialog(props: ICreateCardDialogProps): JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ICreateCardDialogProps } from "@docsvision/webclient/BackOffice/CreateCardDialog";
|
|
2
|
+
import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
|
|
3
|
+
import { ComponentLogic } from "@docsvision/web/core/component";
|
|
4
|
+
export declare class CreateCardDialogLogic extends ComponentLogic<ICreateCardDialogProps> {
|
|
5
|
+
domain:
|
|
6
|
+
import("effector").Domain;
|
|
7
|
+
$templates:
|
|
8
|
+
import("effector").Store<GenModels.CreateCardTemplatesModalModel>;
|
|
9
|
+
$kinds:
|
|
10
|
+
import("effector").Store<GenModels.CardKindInfoModel[]>;
|
|
11
|
+
getTemplates:
|
|
12
|
+
import("effector").Event<void>;
|
|
13
|
+
getKinds:
|
|
14
|
+
import("effector").Event<GenModels.AddCardModalModelLink>;
|
|
15
|
+
getTemplatesFx:
|
|
16
|
+
import("effector").Effect<void, GenModels.CreateCardTemplatesModalModel, Error>;
|
|
17
|
+
getKindsFx:
|
|
18
|
+
import("effector").Effect<GenModels.AddCardModalModelLink, GenModels.CardKindInfoModel[], Error>;
|
|
19
|
+
init(): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CardKindTreeNodeModel } from "@docsvision/webclient/BackOffice/CardKindTreeNodeModel";
|
|
3
|
+
|
|
4
|
+
export interface ICreateCardSelectKindDialogProps {
|
|
5
|
+
visible?: boolean;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
onKindSelected?: (kind: CardKindTreeNodeModel) => void;
|
|
8
|
+
data?: CardKindTreeNodeModel[];
|
|
9
|
+
}
|
|
10
|
+
export declare function CreateCardSelectKindDialog(props: ICreateCardSelectKindDialogProps): JSX.Element;
|
|
@@ -13,6 +13,7 @@ import { IButtonDescription } from "@docsvision/webclient/BackOffice/StaffDirect
|
|
|
13
13
|
import { LoadingStatus } from "@docsvision/webclient/System/LoadingState";
|
|
14
14
|
import { SearchFilters } from "@docsvision/webclient/BackOffice/$WebFrameDirectorySearchInfoStorageService";
|
|
15
15
|
export declare const sectionTabs: string[];
|
|
16
|
+
export declare const ACTIVE_LEFT_TAB_ID_LOCAL_STORAGE_KEY = "StaffDirectoryActiveTab";
|
|
16
17
|
export declare type StaffDirectorySearchResponseT = {
|
|
17
18
|
items: GenModels.SearchItemModel[];
|
|
18
19
|
hasMore: boolean;
|
|
@@ -3098,15 +3098,15 @@ export declare namespace GenControllers {
|
|
|
3098
3098
|
/**
|
|
3099
3099
|
* HTTP: /Navigator/GetCardCreateLinks
|
|
3100
3100
|
*/
|
|
3101
|
-
getCardCreateLinks(folderId: string, options?: RequestOptions): Promise<
|
|
3101
|
+
getCardCreateLinks(folderId: string, options?: RequestOptions): Promise<GenModels.AddCardModalModel>;
|
|
3102
3102
|
/**
|
|
3103
3103
|
* HTTP: /Navigator/GetCardCreateTemplates
|
|
3104
3104
|
*/
|
|
3105
|
-
getCardCreateTemplates(folderId: string, options?: RequestOptions): Promise<
|
|
3105
|
+
getCardCreateTemplates(folderId: string, options?: RequestOptions): Promise<GenModels.CreateCardTemplatesModalModel>;
|
|
3106
3106
|
/**
|
|
3107
3107
|
* HTTP: /Navigator/GetCardKinds
|
|
3108
3108
|
*/
|
|
3109
|
-
getCardKinds(requestModel: GenModels.GetCardKindsRequestModel, options?: RequestOptions): Promise<
|
|
3109
|
+
getCardKinds(requestModel: GenModels.GetCardKindsRequestModel, options?: RequestOptions): Promise<Array<GenModels.CardKindInfoModel>>;
|
|
3110
3110
|
/**
|
|
3111
3111
|
* HTTP: /Navigator/SendFoldersAndUnreadCounters
|
|
3112
3112
|
*/
|
|
@@ -3115,6 +3115,10 @@ export declare namespace GenControllers {
|
|
|
3115
3115
|
* HTTP: /Navigator/ResetClientCache
|
|
3116
3116
|
*/
|
|
3117
3117
|
resetClientCache(options?: RequestOptions): Promise<any>;
|
|
3118
|
+
/**
|
|
3119
|
+
* HTTP: /Navigator/TabClosed
|
|
3120
|
+
*/
|
|
3121
|
+
tabClosed(browserTabId: string, options?: RequestOptions): Promise<void>;
|
|
3118
3122
|
/**
|
|
3119
3123
|
* HTTP: /Navigator/ShowSelectExistingCard
|
|
3120
3124
|
*/
|
|
@@ -3145,11 +3149,12 @@ export declare namespace GenControllers {
|
|
|
3145
3149
|
awake(options?: RequestOptions): Promise<any>;
|
|
3146
3150
|
about(options?: RequestOptions): Promise<GenModels.ApplicationInfoModel>;
|
|
3147
3151
|
switchView(options?: RequestOptions): Promise<string>;
|
|
3148
|
-
getCardCreateLinks(folderId: string, options?: RequestOptions): Promise<
|
|
3149
|
-
getCardCreateTemplates(folderId: string, options?: RequestOptions): Promise<
|
|
3150
|
-
getCardKinds(requestModel: GenModels.GetCardKindsRequestModel, options?: RequestOptions): Promise<
|
|
3152
|
+
getCardCreateLinks(folderId: string, options?: RequestOptions): Promise<GenModels.AddCardModalModel>;
|
|
3153
|
+
getCardCreateTemplates(folderId: string, options?: RequestOptions): Promise<GenModels.CreateCardTemplatesModalModel>;
|
|
3154
|
+
getCardKinds(requestModel: GenModels.GetCardKindsRequestModel, options?: RequestOptions): Promise<Array<GenModels.CardKindInfoModel>>;
|
|
3151
3155
|
sendFoldersAndUnreadCounters(unreadCountersRequest: GenModels.UnreadCountersRequest, options?: RequestOptions): Promise<any>;
|
|
3152
3156
|
resetClientCache(options?: RequestOptions): Promise<any>;
|
|
3157
|
+
tabClosed(browserTabId: string, options?: RequestOptions): Promise<void>;
|
|
3153
3158
|
showSelectExistingCard(requestModel: GenModels.ShowSelectExistingCardRequestModel, options?: RequestOptions): Promise<any>;
|
|
3154
3159
|
showSelectNewDocumentKind(isReport?: boolean, options?: RequestOptions): Promise<any>;
|
|
3155
3160
|
attachLink(model: GenModels.LinkAddModel, options?: RequestOptions): Promise<any>;
|
|
@@ -7851,6 +7851,50 @@ export declare namespace GenModels {
|
|
|
7851
7851
|
saveInFolder: string;
|
|
7852
7852
|
}
|
|
7853
7853
|
}
|
|
7854
|
+
export declare namespace GenModels {
|
|
7855
|
+
interface CreateCardTemplatesModalModel {
|
|
7856
|
+
/**
|
|
7857
|
+
* List of card templates
|
|
7858
|
+
*/
|
|
7859
|
+
templates: Array<GenModels.CardTemplate>;
|
|
7860
|
+
/**
|
|
7861
|
+
* Available card types (distinct)
|
|
7862
|
+
*/
|
|
7863
|
+
cardTypes: Array<GenModels.CardTypeWeb>;
|
|
7864
|
+
}
|
|
7865
|
+
}
|
|
7866
|
+
export declare namespace GenModels {
|
|
7867
|
+
interface CardTemplate {
|
|
7868
|
+
/**
|
|
7869
|
+
* Get template id
|
|
7870
|
+
*
|
|
7871
|
+
* @format datatype.uuid
|
|
7872
|
+
*/
|
|
7873
|
+
id: string;
|
|
7874
|
+
/**
|
|
7875
|
+
* Get template name
|
|
7876
|
+
*/
|
|
7877
|
+
name: string;
|
|
7878
|
+
/**
|
|
7879
|
+
* Get template card type id
|
|
7880
|
+
*
|
|
7881
|
+
* @format datatype.uuid
|
|
7882
|
+
*/
|
|
7883
|
+
cardTypeId: string;
|
|
7884
|
+
/**
|
|
7885
|
+
* Get template card kind id
|
|
7886
|
+
*
|
|
7887
|
+
* @format datatype.uuid
|
|
7888
|
+
*/
|
|
7889
|
+
kindId: string;
|
|
7890
|
+
/**
|
|
7891
|
+
* Get template card state id
|
|
7892
|
+
*
|
|
7893
|
+
* @format datatype.uuid
|
|
7894
|
+
*/
|
|
7895
|
+
stateId: string;
|
|
7896
|
+
}
|
|
7897
|
+
}
|
|
7854
7898
|
export declare namespace GenModels {
|
|
7855
7899
|
interface UploadToDssResponse {
|
|
7856
7900
|
/**
|
|
@@ -8014,13 +8058,13 @@ export declare namespace GenModels {
|
|
|
8014
8058
|
*/
|
|
8015
8059
|
gridFilterSupported: boolean;
|
|
8016
8060
|
/**
|
|
8017
|
-
*
|
|
8061
|
+
* Represents base alias hash
|
|
8018
8062
|
*/
|
|
8019
|
-
|
|
8063
|
+
baseAliasHash: string;
|
|
8020
8064
|
/**
|
|
8021
|
-
*
|
|
8065
|
+
* Returns true if SmartSearch is allowed in the Docsvision system
|
|
8022
8066
|
*/
|
|
8023
|
-
|
|
8067
|
+
smartSearchEnabled: boolean;
|
|
8024
8068
|
/**
|
|
8025
8069
|
* Gets or sets max upload file item size
|
|
8026
8070
|
*/
|
|
@@ -8389,6 +8433,14 @@ export declare namespace GenModels {
|
|
|
8389
8433
|
messageCardId: string;
|
|
8390
8434
|
}
|
|
8391
8435
|
}
|
|
8436
|
+
export declare namespace GenModels {
|
|
8437
|
+
interface AdminPanelSettingsModel {
|
|
8438
|
+
baseAlias: string;
|
|
8439
|
+
managementConsoleAddress: string;
|
|
8440
|
+
connectAddress: string;
|
|
8441
|
+
messages: Array<GenModels.AdminPanelMessageModel>;
|
|
8442
|
+
}
|
|
8443
|
+
}
|
|
8392
8444
|
export declare namespace GenModels {
|
|
8393
8445
|
interface AgreementHistoryDataModel {
|
|
8394
8446
|
historyExists: boolean;
|
|
@@ -8409,6 +8461,13 @@ export declare namespace GenModels {
|
|
|
8409
8461
|
mainFileReadAllowed: boolean;
|
|
8410
8462
|
}
|
|
8411
8463
|
}
|
|
8464
|
+
export declare namespace GenModels {
|
|
8465
|
+
interface ConnectSettingsModel {
|
|
8466
|
+
baseAlias: string;
|
|
8467
|
+
managementConsoleAddress: string;
|
|
8468
|
+
connectAddress: string;
|
|
8469
|
+
}
|
|
8470
|
+
}
|
|
8412
8471
|
export declare namespace GenModels {
|
|
8413
8472
|
interface ControlsInfoModel {
|
|
8414
8473
|
controlDisplayName: string;
|
|
@@ -8488,6 +8547,11 @@ export declare namespace GenModels {
|
|
|
8488
8547
|
valueCode: number;
|
|
8489
8548
|
}
|
|
8490
8549
|
}
|
|
8550
|
+
export declare namespace GenModels {
|
|
8551
|
+
interface FilePreviewSettingsModel {
|
|
8552
|
+
serverR7ConnectionAddress: string;
|
|
8553
|
+
}
|
|
8554
|
+
}
|
|
8491
8555
|
export declare namespace GenModels {
|
|
8492
8556
|
interface LayoutTableBindingModel {
|
|
8493
8557
|
sectionId: string;
|
|
@@ -8537,6 +8601,12 @@ export declare namespace GenModels {
|
|
|
8537
8601
|
decisionName: string;
|
|
8538
8602
|
}
|
|
8539
8603
|
}
|
|
8604
|
+
export declare namespace GenModels {
|
|
8605
|
+
interface ServerR7SettingsModel {
|
|
8606
|
+
serverR7ConnectionAddress: string;
|
|
8607
|
+
serverR7SecretToken: string;
|
|
8608
|
+
}
|
|
8609
|
+
}
|
|
8540
8610
|
export declare namespace GenModels {
|
|
8541
8611
|
interface TransformationDataModel {
|
|
8542
8612
|
id: string;
|
|
@@ -8555,6 +8625,11 @@ export declare namespace GenModels {
|
|
|
8555
8625
|
loadNewVersion: boolean;
|
|
8556
8626
|
}
|
|
8557
8627
|
}
|
|
8628
|
+
export declare namespace GenModels {
|
|
8629
|
+
interface WebFrameUserPanelSettingsModel {
|
|
8630
|
+
baseAlias: string;
|
|
8631
|
+
}
|
|
8632
|
+
}
|
|
8558
8633
|
export declare namespace GenModels {
|
|
8559
8634
|
interface CardTreeNodeModel extends GenModels.TreeNodeModel {
|
|
8560
8635
|
/**
|
|
@@ -12361,7 +12436,7 @@ export declare namespace GenModels {
|
|
|
12361
12436
|
}
|
|
12362
12437
|
export declare namespace GenModels {
|
|
12363
12438
|
/**
|
|
12364
|
-
*
|
|
12439
|
+
* Severity of the {@link GenModels}
|
|
12365
12440
|
*/
|
|
12366
12441
|
enum SystemStateNotificationSource {
|
|
12367
12442
|
/**
|
|
@@ -15,14 +15,14 @@ export interface ILoadingIconProps {
|
|
|
15
15
|
*/
|
|
16
16
|
errorClassName?: string;
|
|
17
17
|
/** Loading icon color */
|
|
18
|
-
color?:
|
|
18
|
+
color?: LoadingIconColor;
|
|
19
19
|
dataTestId?: string;
|
|
20
20
|
}
|
|
21
21
|
/** @internal */
|
|
22
22
|
export interface ILoadingIconState {
|
|
23
23
|
}
|
|
24
24
|
/** @internal */
|
|
25
|
-
export declare enum
|
|
25
|
+
export declare enum LoadingIconColor {
|
|
26
26
|
Blue = 0,
|
|
27
27
|
White = 1,
|
|
28
28
|
Black = 2
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { PerformOnce } from "@docsvision/webclient/Legacy/Utils";
|
|
1
2
|
/** @internal */
|
|
2
3
|
export declare class NewCardDialog {
|
|
3
|
-
|
|
4
|
+
static performOnce: PerformOnce;
|
|
4
5
|
static openModalFlag: boolean;
|
|
6
|
+
static ShowCreateCardDialog: () => Promise<void>;
|
|
5
7
|
static AddNewItemEventClick(buttonElement: HTMLElement): void;
|
|
6
|
-
private static GetItemKindsEventClick;
|
|
7
|
-
private static GetRoute;
|
|
8
8
|
}
|
|
@@ -49,7 +49,7 @@ export declare class CardManagement extends BaseControl<CardManagementParams, IC
|
|
|
49
49
|
*/
|
|
50
50
|
edit(): void;
|
|
51
51
|
private set bindingEditOperation(value);
|
|
52
|
-
private set
|
|
52
|
+
private set adminPanelSettings(value);
|
|
53
53
|
/** @internal */
|
|
54
54
|
createImpl(): CardManagementImpl;
|
|
55
55
|
}
|
|
@@ -4,6 +4,9 @@ import { BaseControlState } from "@docsvision/webclient/System/BaseControl";
|
|
|
4
4
|
import { BaseControlImpl } from "@docsvision/webclient/System/BaseControlImpl";
|
|
5
5
|
/** @internal */
|
|
6
6
|
export interface ICardManagementState extends CardManagementParams, BaseControlState {
|
|
7
|
+
baseAlias: string;
|
|
8
|
+
managementConsoleAddress: string;
|
|
9
|
+
connectAddress: string;
|
|
7
10
|
refresh: Function;
|
|
8
11
|
deleteAndRedirect: Function;
|
|
9
12
|
goToEdit: Function;
|
|
@@ -111,6 +111,8 @@ export declare class FilePreview extends BaseControl<FilePreviewParams, IFilePre
|
|
|
111
111
|
get fileOpen(): boolean;
|
|
112
112
|
/** Показано ли окно с комментариями */
|
|
113
113
|
get isCommentsOpened(): boolean;
|
|
114
|
+
/** Данные для подключения к R7 */
|
|
115
|
+
private set filePreviewBinding(value);
|
|
114
116
|
/** Скачать файл */
|
|
115
117
|
download(): void;
|
|
116
118
|
/**
|
|
@@ -24,6 +24,7 @@ export interface IFilePreviewState extends FilePreviewParams, BaseControlState {
|
|
|
24
24
|
isCommentsOpened: boolean;
|
|
25
25
|
wasClosed: boolean;
|
|
26
26
|
useR7Viewer: boolean;
|
|
27
|
+
serverR7ConnectionAddress: string;
|
|
27
28
|
viewer: IFileViewerConstructor | FileViewer;
|
|
28
29
|
}
|
|
29
30
|
export interface FilePreviewState extends IFilePreviewState {
|
|
@@ -32,6 +32,7 @@ export declare class WebFrameUserPanelParams extends BaseControlParams {
|
|
|
32
32
|
export interface IWebFrameUserPanelState extends WebFrameUserPanelParams, BaseControlState {
|
|
33
33
|
employeeStatus: GenModels.StaffEmployeeStatus;
|
|
34
34
|
displayName: string;
|
|
35
|
+
baseAlias: string;
|
|
35
36
|
}
|
|
36
37
|
/**
|
|
37
38
|
* Класс элемента управления WebFrameUserPanel.
|
|
@@ -55,6 +56,7 @@ export declare class WebFrameUserPanel extends BaseControl<WebFrameUserPanelPara
|
|
|
55
56
|
set setUserDataDisplay(value: boolean);
|
|
56
57
|
/** @covered */
|
|
57
58
|
set setUserPanelDisplayMode(value: number);
|
|
59
|
+
private set WebFrameUserPanelBinding(value);
|
|
58
60
|
getUserAvatar(): Promise<void>;
|
|
59
61
|
getEmployeeStatus(): GenModels.StaffEmployeeStatus;
|
|
60
62
|
renderUserData(userDataDisplay?: boolean, userPanelDisplayMode?: GenModels.UserPanelDisplayMode): JSX.Element;
|
package/StandardServices.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ import { $DigitalSignature } from "@docsvision/webclient/BackOffice/$DigitalSign
|
|
|
61
61
|
import { $FolderColors } from "@docsvision/webclient/System/$FolderColors";
|
|
62
62
|
import { $LogoutService } from "@docsvision/webclient/System/$LogoutService";
|
|
63
63
|
import { $SessionRelatedContent } from "@docsvision/webclient/System/$SessionRelatedContent";
|
|
64
|
+
import { $BrowserTabId } from "@docsvision/webclient/System/$BrowserTabId";
|
|
64
65
|
/** Сервис доступа к идентификатору текущего пользователя. */
|
|
65
66
|
export declare type $CurrentEmployeeId = {
|
|
66
67
|
currentEmployeeId: string;
|
|
@@ -150,4 +151,4 @@ export declare type $ApplicationSettings = {
|
|
|
150
151
|
};
|
|
151
152
|
export declare const $ApplicationSettings: string | ((model?: $ApplicationSettings) => GenModels.ApplicationSettings);
|
|
152
153
|
/** Стандартные сервисы Web-клиента. */
|
|
153
|
-
export declare type $StandardServices = $Layout & $Router & $CurrentEmployeeId & $CurrentEmployeeAccountName & $DeviceType & $SiteUrl & $Locale & $FullTextSearchEnabled & $RequestManager & $Sidebar & $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 & $LogoutService & $SessionRelatedContent;
|
|
154
|
+
export declare type $StandardServices = $Layout & $Router & $CurrentEmployeeId & $CurrentEmployeeAccountName & $DeviceType & $SiteUrl & $Locale & $FullTextSearchEnabled & $RequestManager & $Sidebar & $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 & $LogoutService & $SessionRelatedContent & $BrowserTabId;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getBrowserTabId(): string;
|
|
@@ -15,12 +15,13 @@ import { SimpleEvent } from "@docsvision/webclient/System/SimpleEvent";
|
|
|
15
15
|
import { ShowLayoutParams } from "@docsvision/webclient/System/ShowLayoutParams";
|
|
16
16
|
import { ILayoutManager } from "@docsvision/webclient/System/$LayoutManager";
|
|
17
17
|
import { $Router } from '@docsvision/webclient/System/$Router';
|
|
18
|
+
import { $BrowserTabId } from "@docsvision/webclient/System/$BrowserTabId";
|
|
18
19
|
/** @internal */
|
|
19
20
|
export declare type $MainContentElementId = {
|
|
20
21
|
mainContentElementId: string;
|
|
21
22
|
};
|
|
22
23
|
export declare const $MainContentElementId: string | ((model?: $MainContentElementId) => string);
|
|
23
|
-
export declare type $LayoutManagerServices = $SiteUrl & $ApplicationTimestamp & $LayoutCardController & $Locale & $CardId & $RowId & $CardTimestamp & $Router & $ExtendedDataSourceInfos;
|
|
24
|
+
export declare type $LayoutManagerServices = $SiteUrl & $ApplicationTimestamp & $LayoutCardController & $Locale & $CardId & $RowId & $CardTimestamp & $Router & $ExtendedDataSourceInfos & $BrowserTabId;
|
|
24
25
|
/** Основной класс для отображения разметок и получения к ним доступа. */
|
|
25
26
|
export declare class LayoutManager implements ILayoutManager {
|
|
26
27
|
protected services: $LayoutManagerServices;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { GenControllers } from "@docsvision/webclient/Generated/DocsVision.WebClient.Controllers";
|
|
2
|
+
import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
|
|
3
|
+
import { RequestOptions } from "@docsvision/webclient/Legacy/Utils";
|
|
4
|
+
export declare class NavigatorControllerStub implements GenControllers.INavigatorController {
|
|
5
|
+
tabClosed(browserTabId: string, options?: RequestOptions): Promise<void>;
|
|
6
|
+
index(options?: RequestOptions): Promise<any>;
|
|
7
|
+
awake(options?: RequestOptions): Promise<any>;
|
|
8
|
+
about(options?: RequestOptions): Promise<any>;
|
|
9
|
+
switchView(options?: RequestOptions): Promise<string>;
|
|
10
|
+
getCardCreateLinks(folderId: string, options?: RequestOptions): Promise<GenModels.AddCardModalModel>;
|
|
11
|
+
getCardCreateTemplates(folderId: string, options?: RequestOptions): Promise<GenModels.CreateCardTemplatesModalModel>;
|
|
12
|
+
getCardKinds(requestModel: GenModels.GetCardKindsRequestModel, options?: RequestOptions): Promise<Array<GenModels.CardKindInfoModel>>;
|
|
13
|
+
sendFoldersAndUnreadCounters(unreadCountersRequest: GenModels.UnreadCountersRequest, options?: RequestOptions): Promise<any>;
|
|
14
|
+
resetClientCache(options?: RequestOptions): Promise<any>;
|
|
15
|
+
showSelectExistingCard(requestModel: GenModels.ShowSelectExistingCardRequestModel, options?: RequestOptions): Promise<any>;
|
|
16
|
+
showSelectNewDocumentKind(isReport?: boolean, options?: RequestOptions): Promise<any>;
|
|
17
|
+
attachLink(model: GenModels.LinkAddModel, options?: RequestOptions): Promise<any>;
|
|
18
|
+
healthCheck(checkPoolSession?: boolean, options?: RequestOptions): Promise<string>;
|
|
19
|
+
getNavigatorFolders(navigatorFolders: GenModels.GetNavigatorFoldersRequestModel, options?: RequestOptions): Promise<string>;
|
|
20
|
+
attachUserFolders(folderIds: GenModels.AttachUserFoldersRequestModel, options?: RequestOptions): Promise<string>;
|
|
21
|
+
}
|
|
@@ -3,6 +3,7 @@ import { $CardId, $CardTimestamp, $ExtendedDataSourceInfos, $RowId } from '@docs
|
|
|
3
3
|
import { IRequestManager } from "@docsvision/webclient/System/$RequestManager";
|
|
4
4
|
import { ICommonResponse } from "@docsvision/webclient/System/ICommonResponse";
|
|
5
5
|
import { RequestMethods } from "@docsvision/webclient/System/IRequestInfo";
|
|
6
|
+
import { $BrowserTabId } from "@docsvision/webclient/System/$BrowserTabId";
|
|
6
7
|
/**
|
|
7
8
|
* Класс для выполнения запросов к серверу.
|
|
8
9
|
* Осуществляет стандартный механизм обработки ошибок, показа прогресса выполнения запроса и обновления timestamp карточки.
|
|
@@ -10,7 +11,7 @@ import { RequestMethods } from "@docsvision/webclient/System/IRequestInfo";
|
|
|
10
11
|
export declare class RequestManager implements IRequestManager {
|
|
11
12
|
private services;
|
|
12
13
|
private lastQuery;
|
|
13
|
-
constructor(services: $CardId & $CardTimestamp & $RowId & $ExtendedDataSourceInfos);
|
|
14
|
+
constructor(services: $CardId & $CardTimestamp & $RowId & $ExtendedDataSourceInfos & $BrowserTabId);
|
|
14
15
|
/**
|
|
15
16
|
* Выполняет GET запрос по указанному URL.
|
|
16
17
|
*
|
|
@@ -64,6 +65,7 @@ export declare class RequestManager implements IRequestManager {
|
|
|
64
65
|
* Основной метод, выполняющий отправку запросов.
|
|
65
66
|
*/
|
|
66
67
|
protected makeRequest<TResponse>(url: string, data: any, method: RequestMethods, routeChangeProtection?: boolean, options?: RequestOptions): Promise<TResponse>;
|
|
68
|
+
private getRequestOptions;
|
|
67
69
|
private generateErrorText;
|
|
68
70
|
private unauthorizedConfirmDialog;
|
|
69
71
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docsvision/webclient",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.12-beta.2",
|
|
4
4
|
"description": "Type definitions for DocsVision WebClient scripts and extensions.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {},
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"@types/react": "^16.6",
|
|
12
12
|
"@types/react-dom": "^16.0.6",
|
|
13
13
|
"@types/shallowequal": "^0.2.3",
|
|
14
|
-
"@types/styled-components": "^4.
|
|
14
|
+
"@types/styled-components": "^4.4.3",
|
|
15
15
|
"@types/systemjs": "^0.20.6",
|
|
16
16
|
"@types/vis": "^4.21.8",
|
|
17
17
|
"tslib": "^1.9.3",
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { $DeviceType } from "@docsvision/webclient/StandardServices";
|
|
2
|
-
import { $Layout } from "@docsvision/webclient/System/$Layout";
|
|
3
|
-
import { $EditOperationStore, $LayoutInfo, $CardId } from "@docsvision/webclient/System/LayoutServices";
|
|
4
|
-
export declare function getAddressMockServices():
|
|
5
|
-
import("@docsvision/web/core/services").ServiceContainer & $LayoutInfo & $CardId & $Layout & $EditOperationStore & $DeviceType;
|
|
6
|
-
export declare function getAddressMockProps(): {
|
|
7
|
-
placeHolder: string;
|
|
8
|
-
value: {
|
|
9
|
-
addressType: number;
|
|
10
|
-
zipCode: string;
|
|
11
|
-
city: string;
|
|
12
|
-
address: string;
|
|
13
|
-
country: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export declare function getAddressMockValue(): {
|
|
17
|
-
addressType: number;
|
|
18
|
-
zipCode: string;
|
|
19
|
-
city: string;
|
|
20
|
-
address: string;
|
|
21
|
-
country: string;
|
|
22
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { $LayoutCardKindController } from "@docsvision/webclient/Generated/DocsVision.WebClient.Controllers";
|
|
2
|
-
import { $DeviceType } from "@docsvision/webclient/StandardServices";
|
|
3
|
-
import { $LayoutInfo, $EditOperationStore } from "@docsvision/webclient/System/LayoutServices";
|
|
4
|
-
import { $LabelWidth } from "@docsvision/webclient/System/$LabelWidth";
|
|
5
|
-
export declare function getCardKindMockServices():
|
|
6
|
-
import("@docsvision/web/core/services").ServiceContainer & $LayoutCardKindController & $LayoutInfo & $EditOperationStore & $LabelWidth & $DeviceType;
|
|
7
|
-
export declare function getCardKindMockProps(): {
|
|
8
|
-
value: {
|
|
9
|
-
cardKindName: string;
|
|
10
|
-
cardKindFullName: string;
|
|
11
|
-
cardKindId: string;
|
|
12
|
-
loadingError: boolean;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
export declare function getCardKindMockValue(): {
|
|
16
|
-
cardKindName: string;
|
|
17
|
-
cardKindFullName: string;
|
|
18
|
-
cardKindId: string;
|
|
19
|
-
loadingError: boolean;
|
|
20
|
-
};
|
|
21
|
-
export declare function getCardKindMockTree(): {
|
|
22
|
-
cardTypeId: string;
|
|
23
|
-
kindId: string;
|
|
24
|
-
name: string;
|
|
25
|
-
isDefault: boolean;
|
|
26
|
-
notAvailable: boolean;
|
|
27
|
-
notSelectable: boolean;
|
|
28
|
-
kinds: {
|
|
29
|
-
cardTypeId: string;
|
|
30
|
-
kindId: string;
|
|
31
|
-
name: string;
|
|
32
|
-
isDefault: boolean;
|
|
33
|
-
notAvailable: boolean;
|
|
34
|
-
notSelectable: boolean;
|
|
35
|
-
kinds: {
|
|
36
|
-
cardTypeId: string;
|
|
37
|
-
kindId: string;
|
|
38
|
-
name: string;
|
|
39
|
-
isDefault: boolean;
|
|
40
|
-
notAvailable: boolean;
|
|
41
|
-
notSelectable: boolean;
|
|
42
|
-
kinds: any[];
|
|
43
|
-
}[];
|
|
44
|
-
}[];
|
|
45
|
-
}[];
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { $Layout } from "@docsvision/webclient/System/$Layout";
|
|
2
|
-
import { $Router } from "@docsvision/web/core/routing";
|
|
3
|
-
export declare function getCreateRelatedCardButtonMockServices():
|
|
4
|
-
import("@docsvision/web/core/services").ServiceContainer & $Router & $Layout;
|
|
5
|
-
export declare function getCreateRelatedCardButtonMockProps(): {
|
|
6
|
-
buttonsLimit: number;
|
|
7
|
-
binding: {
|
|
8
|
-
value: {
|
|
9
|
-
id: string;
|
|
10
|
-
displayName: string;
|
|
11
|
-
cardKindId: string;
|
|
12
|
-
cardTypeId: string;
|
|
13
|
-
location: number;
|
|
14
|
-
}[];
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export declare function getCreateRelatedCardButtonMockModel(): {
|
|
18
|
-
id: string;
|
|
19
|
-
displayName: string;
|
|
20
|
-
cardKindId: string;
|
|
21
|
-
cardTypeId: string;
|
|
22
|
-
location: number;
|
|
23
|
-
}[];
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { $EmployeeController, $LayoutStaffController, $LayoutTasksController } from "@docsvision/webclient/Generated/DocsVision.WebClient.Controllers";
|
|
2
|
-
import { $FolderDataLoading } from "@docsvision/webclient/Platform/$FolderDataLoading";
|
|
3
|
-
import { $FolderGrid } from "@docsvision/webclient/Platform/$FolderGrid";
|
|
4
|
-
import { $BatchOperations } from "@docsvision/webclient/Platform/$BatchOperations";
|
|
5
|
-
import { $BatchOperationsPerformer } from "@docsvision/webclient/Platform/$BatchOperationsPerformer";
|
|
6
|
-
import { $BatchOperationsProgressDialog } from "@docsvision/webclient/Platform/$BatchOperationsProgressDialog";
|
|
7
|
-
import { $TableManagement } from "@docsvision/webclient/Platform/$TableManagement";
|
|
8
|
-
import { $TableMode } from "@docsvision/webclient/Platform/$TableMode";
|
|
9
|
-
import { $TableRowSelection } from "@docsvision/webclient/Platform/$TableRowSelection";
|
|
10
|
-
import { $ApplicationSettings } from "@docsvision/webclient/StandardServices";
|
|
11
|
-
import { $EditOperationStore, $LayoutInfo } from "@docsvision/webclient/System/LayoutServices";
|
|
12
|
-
import { $LocalStorage } from "@docsvision/webclient/System/$LocalStorage";
|
|
13
|
-
import { $Domain } from "@docsvision/web/core/state-management";
|
|
14
|
-
export declare function getDelegateBatchOperationMockServices():
|
|
15
|
-
import("@docsvision/web/core/services").ServiceContainer & $TableRowSelection & $BatchOperationsPerformer & $TableManagement & $TableMode & $BatchOperations & $ApplicationSettings & $Domain & $LayoutTasksController & $FolderGrid & $FolderDataLoading & $BatchOperationsProgressDialog & $LayoutStaffController & $EditOperationStore & $LayoutInfo & $LocalStorage & $EmployeeController;
|
|
16
|
-
export declare function getDelegateBatchOperationMockProps(): {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { $LayoutFolderController, $LayoutCardController } from "@docsvision/webclient/Generated/DocsVision.WebClient.Controllers";
|
|
2
|
-
import { $CurrentFolder } from "@docsvision/webclient/Platform/$CurrentFolder";
|
|
3
|
-
import { $FolderDataLoading } from "@docsvision/webclient/Platform/$FolderDataLoading";
|
|
4
|
-
import { $FolderGrid } from "@docsvision/webclient/Platform/$FolderGrid";
|
|
5
|
-
import { $BatchOperations } from "@docsvision/webclient/Platform/$BatchOperations";
|
|
6
|
-
import { $BatchOperationsPerformer } from "@docsvision/webclient/Platform/$BatchOperationsPerformer";
|
|
7
|
-
import { $TableManagement } from "@docsvision/webclient/Platform/$TableManagement";
|
|
8
|
-
import { $TableMode } from "@docsvision/webclient/Platform/$TableMode";
|
|
9
|
-
import { $TableRowSelection } from "@docsvision/webclient/Platform/$TableRowSelection";
|
|
10
|
-
import { $LayoutInfo, $CardInfo } from "@docsvision/webclient/System/LayoutServices";
|
|
11
|
-
export declare function getDeleteShortcutBatchOperationMockServices():
|
|
12
|
-
import("@docsvision/web/core/services").ServiceContainer & $LayoutInfo & $LayoutFolderController & $CardInfo & $LayoutCardController & $FolderDataLoading & $FolderGrid & $TableRowSelection & $BatchOperationsPerformer & $TableManagement & $TableMode & $BatchOperations & $CurrentFolder;
|
|
13
|
-
export declare function getDeleteShortcutBatchOperationMockProps(): {};
|