@docsvision/webclient 5.17.8 → 5.17.9

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.
Files changed (73) hide show
  1. package/App.d.ts +1 -1
  2. package/Application.d.ts +1 -1
  3. package/BackOffice/AddressStoriesData.d.ts +2 -1
  4. package/BackOffice/CardKindStoriesData.d.ts +2 -1
  5. package/BackOffice/CreateRelatedCardButtonStoriesData.d.ts +2 -1
  6. package/BackOffice/DelegateBatchOperationStoriesData.d.ts +2 -1
  7. package/BackOffice/DeleteShortcutBatchOperationStoriesData.d.ts +2 -1
  8. package/BackOffice/DepartmentStoriesData.d.ts +2 -1
  9. package/BackOffice/DirectoryDesignerRow.stories.d.ts +6 -0
  10. package/BackOffice/DirectoryDesignerRowStoriesData.d.ts +2 -1
  11. package/BackOffice/DisplayInitiatorStoriesData.d.ts +2 -1
  12. package/BackOffice/DisplayPerformersLabel.stories.d.ts +5 -0
  13. package/BackOffice/DisplayPerformersStoriesData.d.ts +2 -1
  14. package/BackOffice/EmailButtonView.d.ts +1 -1
  15. package/BackOffice/EmployeeStoriesData.d.ts +4 -1
  16. package/BackOffice/FileListConstants.d.ts +2 -0
  17. package/BackOffice/GroupTaskCardSelectPerformersStoriesData.d.ts +2 -1
  18. package/BackOffice/HistoryStoriesData.d.ts +2 -1
  19. package/BackOffice/LinksStoriesData.d.ts +2 -1
  20. package/BackOffice/MultipleEmployees.stories.d.ts +3 -0
  21. package/BackOffice/MultipleEmployeesStoriesData.d.ts +4 -1
  22. package/BackOffice/NumeratorStoriesData.d.ts +2 -1
  23. package/BackOffice/Partner.stories.d.ts +46 -0
  24. package/BackOffice/PartnerDepartment.stories.d.ts +39 -0
  25. package/BackOffice/PartnerDepartmentLabel.stories.d.ts +37 -0
  26. package/BackOffice/PartnerDepartmentOldStyles.stories.d.ts +19 -0
  27. package/BackOffice/PartnerDepartmentStoriesData.d.ts +175 -0
  28. package/BackOffice/PartnerLabel.stories.d.ts +25 -0
  29. package/BackOffice/PartnerOldStyles.stories.d.ts +19 -0
  30. package/BackOffice/PartnerStoriesData.d.ts +141 -0
  31. package/BackOffice/SignatureMethodsSetupCertificateRow.d.ts +1 -0
  32. package/BackOffice/SignatureMethodsSetupLogic.d.ts +1 -0
  33. package/BackOffice/StaffDirectoryItemsStoriesData.d.ts +2 -1
  34. package/BackOffice/StateButtonsStoriesData.d.ts +2 -1
  35. package/BackOffice/StateLabel.stories.d.ts +1 -0
  36. package/BackOffice/TasksStoriesData.d.ts +2 -1
  37. package/BackOffice/UniquenessCheckStoriesData.d.ts +2 -1
  38. package/Generated/DocsVision.WebClient.Controllers.d.ts +68 -0
  39. package/Generated/DocsVision.WebClient.Models.d.ts +60 -0
  40. package/Helpers/Sortable/Sortable.d.ts +1 -1
  41. package/Legacy/StandardControllers.d.ts +2 -2
  42. package/Legacy/TaskCardFilePanelRazorControl.d.ts +1 -0
  43. package/Libs/CryptoPro/Crypto.d.ts +3 -3
  44. package/MainBundle.d.ts +2 -0
  45. package/Platform/DeleteBatchOperationStoriesData.d.ts +2 -1
  46. package/Platform/DownloadFilesBatchOperationStoriesData.d.ts +2 -1
  47. package/Platform/FilePreviewImpl.d.ts +4 -1
  48. package/Platform/FilterViews.d.ts +1 -1
  49. package/Platform/FolderGrid.d.ts +2 -2
  50. package/Platform/IsViewNotAvailable.d.ts +2 -0
  51. package/Platform/ListContentHightlight.stories.d.ts +60 -0
  52. package/Platform/MoveShortcutBatchOperationStoriesData.d.ts +2 -1
  53. package/Platform/ReadBatchBatchOperationStoriesData.d.ts +2 -1
  54. package/Platform/SearchResultsItem.d.ts +2 -1
  55. package/Platform/SearchingResultsImpl.d.ts +2 -0
  56. package/Platform/SessionExpiredHandler.d.ts +2 -0
  57. package/Platform/SettingsPopupItemView.d.ts +3 -1
  58. package/Platform/TestUtils.d.ts +3 -2
  59. package/Platform/TextAreaImpl.d.ts +1 -0
  60. package/RegisterServices.d.ts +2 -1
  61. package/StandardServices.d.ts +3 -2
  62. package/StartUp.d.ts +2 -1
  63. package/System/$LongQueries.d.ts +7 -0
  64. package/System/$SessionRelatedContent.d.ts +11 -0
  65. package/System/InputBasedControl.d.ts +2 -0
  66. package/System/InputBasedControlImpl.d.ts +4 -0
  67. package/System/LocationContainerControlStoriesData.d.ts +2 -1
  68. package/System/LongQueriesService.d.ts +20 -0
  69. package/System/RealtimeCommunicationService.d.ts +1 -0
  70. package/System/SessionRelatedContentService.d.ts +8 -0
  71. package/package.json +1 -1
  72. package/System/$PageReloadRequired.d.ts +0 -8
  73. package/System/PageReloadRequiredService.d.ts +0 -5
@@ -27,5 +27,7 @@ export declare class SessionExpiredHandler implements IRouteHandler<IFolderRoute
27
27
  protected onSessionNotificationsPaused: () => void;
28
28
  protected onSessionNotificationsContinued: () => void;
29
29
  protected showSessionInactiveMessage: () => void;
30
+ /** Сообщение о завершении сессии — при наличии зависящего от сессии контента показываем модальное окно. */
31
+ protected showSessionDisposedMessage: () => void;
30
32
  protected restoreSession: () => Promise<any>;
31
33
  }
@@ -1,7 +1,9 @@
1
- import React from 'react';
1
+ import React from "react";
2
2
 
3
3
  export interface ISettingsPopupItemView extends React.HTMLAttributes<HTMLDivElement> {
4
4
  isDefault?: boolean;
5
5
  selected?: boolean;
6
+ disabled?: boolean;
7
+ onClick: React.MouseEventHandler<HTMLDivElement>;
6
8
  }
7
9
  export declare function SettingsPopupItemView(props: ISettingsPopupItemView): JSX.Element;
@@ -20,11 +20,12 @@ import { $HoverPanel } from '@docsvision/webclient/Platform/$HoverPanel';
20
20
  import { $LastSearchParameters } from '@docsvision/webclient/Platform/$LastSearchParameters';
21
21
  import { $EmployeeStatus } from '@docsvision/webclient/Platform/$EmployeeStatus';
22
22
  import { $IsIE } from '@docsvision/web/core/system-services/environment';
23
- import { $PageReloadRequired } from "@docsvision/webclient/System/$PageReloadRequired";
23
+ import { $SessionRelatedContent } from "@docsvision/webclient/System/$SessionRelatedContent";
24
24
  export declare let ScrollContainer:
25
25
  import("styled-components").StyledComponent<"div", any, {}, never>;
26
26
  export declare let ScrollContainerWrapper:
27
27
  import("styled-components").StyledComponent<"div", any, {}, never>;
28
28
  export declare function common(): FolderGridParams;
29
29
  export declare let gridStory: (name: string, render: (services: any) => JSX.Element, params?: StoryParameters) => () => JSX.Element;
30
- export declare function services(): $GridOptions & $Router & $GridController & $DeviceType & $ExperimentalFeature & $ApplicationSettings & $Resources & $ToolbarActionContainer & $FolderPluginProvider & $CurrentLocation & $CurrentFolder & $WebFrameSearchPanel & $LastSearchResponse & $Domain & $LocalStorage & $ToolbarDaughterControls & $HoverPanel & $LastSearchParameters & $EmployeeStatus & $IsIE & $PageReloadRequired;
30
+ export declare function services():
31
+ import("@docsvision/web/core/services").ServiceContainer & $GridOptions & $Router & $GridController & $DeviceType & $ExperimentalFeature & $ApplicationSettings & $Resources & $ToolbarActionContainer & $FolderPluginProvider & $CurrentLocation & $CurrentFolder & $WebFrameSearchPanel & $LastSearchResponse & $Domain & $LocalStorage & $ToolbarDaughterControls & $HoverPanel & $LastSearchParameters & $EmployeeStatus & $IsIE & $SessionRelatedContent;
@@ -30,6 +30,7 @@ export declare class TextAreaImpl extends TextControlBaseImpl<TextAreaParams, IT
30
30
  private saveCard;
31
31
  private shouldSaveCardWithEditInPlaceValue;
32
32
  private isLayoutViewMode;
33
+ private updateWhenVisible;
33
34
  private updateSizeAndPositions;
34
35
  /** Тоже что и {@link InputBasedControlParams.value} */
35
36
  set value(val: string);
@@ -1 +1,2 @@
1
- export declare function registerServices(): void;
1
+ import { ServiceContainer } from "@docsvision/web/core/services";
2
+ export declare function registerServices(pageloadServices?: ServiceContainer): void;
@@ -62,7 +62,8 @@ import { $WebFrameContentHeight } from "@docsvision/webclient/System/$WebFrameCo
62
62
  import { $DigitalSignature } from "@docsvision/webclient/BackOffice/$DigitalSignature";
63
63
  import { $FolderColors } from "@docsvision/webclient/System/$FolderColors";
64
64
  import { $FolderMenuManagement } from "@docsvision/webclient/Platform/$FolderMenuManagement";
65
- import { $PageReloadRequired } from "@docsvision/webclient/System/$PageReloadRequired";
65
+ import { $SessionRelatedContent } from "@docsvision/webclient/System/$SessionRelatedContent";
66
+ import { $LongQueries } from "@docsvision/webclient/System/$LongQueries";
66
67
  /** Сервис доступа к идентификатору текущего пользователя. */
67
68
  export declare type $CurrentEmployeeId = {
68
69
  currentEmployeeId: string;
@@ -152,4 +153,4 @@ export declare type $ApplicationSettings = {
152
153
  };
153
154
  export declare const $ApplicationSettings: string | ((model?: $ApplicationSettings) => GenModels.ApplicationSettings);
154
155
  /** Стандартные сервисы Web-клиента. */
155
- 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 & $LastSearchParameters & $CloudSignature & $CryptoPro & $CurrentFolder & $LastSearchResponse & $Poll & $FolderPluginProvider & $LayoutBackground & $ApprovalPathVisualizationController & $HoverPanel & $HoverPanel & $DigitalSignature & $WebFrameDirectorySearchPanelService & $WebFrameContentHeight & $FolderColors & $FolderMenuManagement & $PageReloadRequired;
156
+ 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 & $LastSearchParameters & $CloudSignature & $CryptoPro & $CurrentFolder & $LastSearchResponse & $Poll & $FolderPluginProvider & $LayoutBackground & $ApprovalPathVisualizationController & $HoverPanel & $HoverPanel & $DigitalSignature & $WebFrameDirectorySearchPanelService & $WebFrameContentHeight & $FolderColors & $FolderMenuManagement & $SessionRelatedContent & $LongQueries;
package/StartUp.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { Layout } from '@docsvision/webclient/System/Layout';
2
+ import { ServiceContainer } from "@docsvision/web/core/services";
2
3
  export declare const rootLocationLayoutName = "root";
3
- export declare function initApp(): Promise<void>;
4
+ export declare function initApp(pageloadServices: ServiceContainer): Promise<void>;
4
5
  export declare function LoadRootLocationLayout(): Promise<Layout>;
@@ -0,0 +1,7 @@
1
+ export interface ILongQueries {
2
+ recreateSession: (manual?: boolean) => void;
3
+ }
4
+ export declare type $LongQueries = {
5
+ LongQueries: ILongQueries;
6
+ };
7
+ export declare const $LongQueries: string | ((model?: $LongQueries) => ILongQueries);
@@ -0,0 +1,11 @@
1
+ import { Event, Store } from "effector";
2
+ export interface ISessionRelatedContent {
3
+ /** Флаг наличия на странице контента, зависящего от пользовательской сессии, например данных из курсоров выборки. */
4
+ readonly $hasSessionRelatedContent: Store<boolean>;
5
+ setHasSessionRelatedContent: Event<boolean>;
6
+ }
7
+ /** Сервис состояния наличия зависящего от сессии контента на текущей странице. */
8
+ export declare type $SessionRelatedContent = {
9
+ sessionRelatedContent: ISessionRelatedContent;
10
+ };
11
+ export declare const $SessionRelatedContent: string | ((model?: $SessionRelatedContent) => ISessionRelatedContent);
@@ -137,6 +137,8 @@ export declare abstract class InputBasedControl<ModelT, P extends InputBasedCont
137
137
  get value(): ModelT;
138
138
  /** @covered */
139
139
  set value(val: ModelT);
140
+ /** Устанавливает значение без вызова dataChanged, сохраняя логику setValue контрола. */
141
+ setValueSilent(value: ModelT, redraw?: boolean): void | Promise<unknown>;
140
142
  /**
141
143
  * Для контрола, находящегося в режиме редактирования по месту возвращает основной экземпляр контрола.
142
144
  *
@@ -26,6 +26,8 @@ export declare abstract class InputBasedControlImpl<ModelT, PropsT extends Input
26
26
  /** Edit popover, where control currently located */
27
27
  containingEditPopover: EditPopover;
28
28
  input: HTMLElement;
29
+ /** Флаг для временного подавления dataChanged при "тихой" установке значения. */
30
+ private suppressDataChanged;
29
31
  constructor(props: PropsT, state?: StateT);
30
32
  canShowEditDialog(): boolean;
31
33
  /**
@@ -101,6 +103,8 @@ export declare abstract class InputBasedControlImpl<ModelT, PropsT extends Input
101
103
  protected get editPopoverControlImpl(): InputBasedControlImpl<ModelT, any, any>;
102
104
  protected get editPopoverParentImpl(): InputBasedControlImpl<ModelT, any, any>;
103
105
  setValue(value: ModelT, redraw: boolean): void;
106
+ /** Устанавливает значение через setValue контрола без вызова dataChanged. */
107
+ setValueSilent(value: ModelT, redraw?: boolean): void | Promise<unknown>;
104
108
  setValueInternal(value: ModelT): void;
105
109
  getValue(): ModelT;
106
110
  /** Тоже что и {@link InputBasedControlParams.value} */
@@ -4,7 +4,8 @@ import { $CurrentLocation } from "@docsvision/webclient/System/LayoutServices";
4
4
  import { $LayoutManager } from "@docsvision/webclient/System/$LayoutManager";
5
5
  import { $Layout } from "@docsvision/webclient/System/$Layout";
6
6
  import { $DeviceType } from "@docsvision/webclient/StandardServices";
7
- export declare function getLocationContainerMockServices(): $LayoutController & $LayoutManager & $CurrentLocation & $Layout & $DeviceType;
7
+ export declare function getLocationContainerMockServices():
8
+ import("@docsvision/web/core/services").ServiceContainer & $LayoutController & $LayoutManager & $CurrentLocation & $Layout & $DeviceType;
8
9
  export declare function locationContainerStoryCustomloader(): Promise<GenModels.LayoutViewModel>;
9
10
  export declare function locationContainerStoryCustomloaderForReaload(): Promise<GenModels.LayoutViewModel>;
10
11
  export declare const locationContainerStoryLayoutGuid = "b64c55d9-4817-4ad4-9816-8af35022c32e";
@@ -0,0 +1,20 @@
1
+ import { $SessionManagementController } from "@docsvision/webclient/Generated/DocsVision.WebClient.Controllers";
2
+ import { $LocalStorage } from "@docsvision/webclient/System/$LocalStorage";
3
+ import { $MessageBox } from "@docsvision/webclient/System/$MessageBox";
4
+ import { $Router } from "@docsvision/webclient/System/$Router";
5
+ import { $RealtimeCommunicationService } from "@docsvision/webclient/System/$RealtimeCommunicationService";
6
+ import { $Resources } from "@docsvision/web/core/localization/$Resources";
7
+ import { Optional } from "@docsvision/web/core/services";
8
+ import { ILongQueries } from "@docsvision/webclient/System/$LongQueries";
9
+
10
+ export declare type TLongQueriesServices = $RealtimeCommunicationService & $LocalStorage & $Resources & Optional<$Router> & $MessageBox & Optional<$SessionManagementController>;
11
+ export declare class LongQueriesService implements ILongQueries {
12
+ private services;
13
+ private noty;
14
+ private longQuery;
15
+ private requestMessageType;
16
+ constructor(services: TLongQueriesServices);
17
+ recreateSession: (manual?: boolean) => Promise<void>;
18
+ private notifyLongQuery;
19
+ private clearNotification;
20
+ }
@@ -38,6 +38,7 @@ export declare class RealtimeCommunicationService implements IRealtimeCommunicat
38
38
  private static RegisterTabMessage;
39
39
  private static TabRegisteredMessage;
40
40
  private static TabUnregisteredMessage;
41
+ private static TabInitializedMessage;
41
42
  /** Тип сообщения об установлении соединения с сервером. */
42
43
  static ConnectedMessage: string;
43
44
  /** Тип сообщения о потере соединения с сервером. */
@@ -0,0 +1,8 @@
1
+ import { ISessionRelatedContent } from "@docsvision/webclient/System/$SessionRelatedContent";
2
+ import { $Domain } from "@docsvision/web/core/state-management";
3
+ import { Event, Store } from "effector";
4
+ export declare class SessionRelatedContentService implements ISessionRelatedContent {
5
+ $hasSessionRelatedContent: Store<boolean>;
6
+ setHasSessionRelatedContent: Event<boolean>;
7
+ constructor(services: $Domain);
8
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docsvision/webclient",
3
- "version": "5.17.8",
3
+ "version": "5.17.9",
4
4
  "description": "Type definitions for DocsVision WebClient scripts and extensions.",
5
5
  "main": "index.js",
6
6
  "scripts": {},
@@ -1,8 +0,0 @@
1
- export interface IPageReloadRequired {
2
- reloadRequired: boolean;
3
- }
4
- /** Сервис, позволяющий установить признак необходимости перезагруки страницы. */
5
- export declare type $PageReloadRequired = {
6
- pageReloadRequired: IPageReloadRequired;
7
- };
8
- export declare const $PageReloadRequired: string | ((model?: $PageReloadRequired) => IPageReloadRequired);
@@ -1,5 +0,0 @@
1
- import { IPageReloadRequired } from "@docsvision/webclient/System/$PageReloadRequired";
2
- export declare class PageReloadPageRequiredService implements IPageReloadRequired {
3
- constructor();
4
- reloadRequired: boolean;
5
- }