@docsvision/webclient 6.1.5-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.
Files changed (80) hide show
  1. package/Approval/AgreementHistory.d.ts +7 -1
  2. package/Approval/AgreementHistoryImpl.d.ts +3 -3
  3. package/Approval/AgreementManagementImpl.d.ts +1 -0
  4. package/Approval/ApprovalDialogContent.d.ts +31 -0
  5. package/BackOffice/$DigitalSignature.d.ts +2 -0
  6. package/BackOffice/CardKindImpl.d.ts +1 -1
  7. package/BackOffice/CardKindTree.d.ts +1 -1
  8. package/BackOffice/DirectoryDesRowSelectDialog.d.ts +2 -1
  9. package/BackOffice/FileListConstants.d.ts +1 -0
  10. package/BackOffice/FileListControl.d.ts +15 -1
  11. package/BackOffice/FileListControl.stories.d.ts +10 -0
  12. package/BackOffice/FileListControlImpl.d.ts +16 -1
  13. package/BackOffice/FileListItemComponent.d.ts +1 -0
  14. package/BackOffice/Powers.d.ts +2 -0
  15. package/BackOffice/PowersImpl.d.ts +2 -0
  16. package/BackOffice/StaffDirectoryDataVisualiser.d.ts +1 -0
  17. package/BackOffice/StaffDirectorySelectDialog.d.ts +1 -0
  18. package/Generated/DocsVision.WebClient.Controllers.d.ts +123 -5
  19. package/Generated/DocsVision.WebClient.Models.d.ts +119 -0
  20. package/Helpers/Breadcrumbs/Breadcrumbs.d.ts +1 -0
  21. package/Helpers/Breadcrumbs/BreadcrumbsView.d.ts +1 -0
  22. package/Helpers/Breadcrumbs/LinkView/LinkItemViewWithSeparator.d.ts +3 -1
  23. package/Helpers/FileViewZip/FileViewZip.d.ts +47 -0
  24. package/Helpers/FileViewZip/FileViewZipModal.d.ts +24 -0
  25. package/Helpers/Menu/AdaptiveMenuBar.d.ts +2 -0
  26. package/Helpers/Menu/DesktopMenuBar.d.ts +1 -0
  27. package/Legacy/ApprovalFilePanel.d.ts +2 -0
  28. package/Legacy/TaskCardFilePanelRazorControl.d.ts +2 -0
  29. package/Legacy/TaskCardView.d.ts +0 -1
  30. package/Legacy/Utils.d.ts +9 -0
  31. package/Libs/CryptoPro/Crypto.d.ts +6 -3
  32. package/MainBundle.d.ts +2 -0
  33. package/Platform/CardLink.d.ts +2 -1
  34. package/Platform/CardLinkImpl.d.ts +4 -2
  35. package/Platform/ContextMenuCustomPlugins.d.ts +1 -0
  36. package/Platform/DateTimePicker.d.ts +1 -0
  37. package/Platform/DateTimePickerImpl.d.ts +1 -1
  38. package/Platform/FileExtensions.d.ts +4 -1
  39. package/Platform/FilePicker.d.ts +11 -5
  40. package/Platform/FilePicker.stories.d.ts +11 -0
  41. package/Platform/FilePickerImpl.d.ts +14 -3
  42. package/Platform/FilePickerMenuItemsView.d.ts +1 -0
  43. package/Platform/FilePickerOperations.d.ts +13 -4
  44. package/Platform/FilePickerOperationsAvailability.d.ts +1 -0
  45. package/Platform/FilePreview.d.ts +3 -3
  46. package/Platform/FolderPageRouteHelpers.d.ts +4 -3
  47. package/Platform/FolderRouteParameters.d.ts +1 -0
  48. package/Platform/FolderWebFrameRouteHandler.d.ts +1 -1
  49. package/Platform/IFilePickerMenuOpeningArgs.d.ts +4 -0
  50. package/Platform/IFolderDataLoadingPlugin.d.ts +2 -1
  51. package/Platform/IFolderPageRouteData.d.ts +1 -0
  52. package/Platform/ITextBoxMaskProps.d.ts +56 -0
  53. package/Platform/OpenedDialogFixture.d.ts +2 -0
  54. package/Platform/ScanDialogService.d.ts +1 -0
  55. package/Platform/ScanDialogService.stories.d.ts +22 -0
  56. package/Platform/SearchParametersFolderRequestResolver.d.ts +2 -2
  57. package/Platform/SearchParametersFolderResponseResolver.d.ts +1 -2
  58. package/Platform/SearchTextInput.d.ts +2 -2
  59. package/Platform/TestUtils.d.ts +1 -2
  60. package/Platform/TextBox.d.ts +3 -0
  61. package/Platform/TextBox.stories.d.ts +17 -9
  62. package/Platform/TextBoxImpl.d.ts +11 -0
  63. package/Platform/TextBoxInputField.d.ts +3 -0
  64. package/Platform/TextBoxInputMask.d.ts +7 -0
  65. package/Platform/TextBoxInputMaskView.d.ts +10 -0
  66. package/Platform/TextListInputLogic.d.ts +1 -0
  67. package/StandardServices.d.ts +1 -2
  68. package/System/FileScanServiceStub.d.ts +8 -0
  69. package/System/IWebServicesConnection.d.ts +2 -0
  70. package/System/IWebServicesService.d.ts +0 -2
  71. package/System/LayoutCardControllerStub.d.ts +1 -0
  72. package/System/LocationContainerControl.stories.d.ts +18 -0
  73. package/System/LocationContainerControlRealoadLayoutApi.stories.d.ts +20 -0
  74. package/System/LocationContainerControlStoriesData.d.ts +15 -0
  75. package/System/ResourcesStub.d.ts +5 -0
  76. package/System/WebServicesConnection.d.ts +2 -0
  77. package/System/WebServicesService.d.ts +10 -10
  78. package/package.json +1 -1
  79. package/Platform/$LastSearchParameters.d.ts +0 -10
  80. package/Platform/LastSearchParametersService.d.ts +0 -11
@@ -37,11 +37,13 @@ export declare class AgreementHistoryParams extends BaseControlParams {
37
37
  /** Основная информация об истории. */
38
38
  model: GenModels.AgreementHistoryDataModel;
39
39
  /** Данные об истории и её циклах. */
40
- rows?: GenModels.ApprovalHistoryViewModel;
40
+ rows?: Array<GenModels.ApprovalHistoryViewModel>;
41
41
  /** Отображать комментарий в таблице */
42
42
  showCommentsInTable?: boolean;
43
43
  /** Режим открытия заданий. */
44
44
  openMode?: GenModels.OpenMode;
45
+ /** Режим отображения */
46
+ displayMode?: GenModels.AgreementHistoryDisplayMode;
45
47
  /** Событие возникает при открытии окна хода согласования. */
46
48
  approvingReportOpening?: CancelableApiEvent<IApprovingReportOpeningEventArgs>;
47
49
  /** Событие возникает при закрытии окна хода согласования. */
@@ -54,6 +56,10 @@ export declare class AgreementHistoryParams extends BaseControlParams {
54
56
  approvingReportClosed?: BasicApiEvent<IEventArgs>;
55
57
  /** Событие возникает после обновления данных хода согласования. */
56
58
  approvingReportRefreshed?: BasicApiEvent<IApprovingReportRefreshedEventArgs>;
59
+ /** Событие возникает перед сменой выбора этапа. */
60
+ beforeDataChanging?: CancelableApiEvent<IEventArgs>;
61
+ /** Событие возникает после смены выбора этапа. */
62
+ afterDataChanged?: BasicApiEvent<IEventArgs>;
57
63
  /** Сервисы. */
58
64
  services?: $FileController & $LayoutAgreementController & $EditOperationStore & Optional<$AgreementHistoryStageRenderer> & $RouterNavigation & $FilePreviewServices;
59
65
  /** Параметр для переопределения сервиса рендеринга таблицы или ячейки этапа */
@@ -12,7 +12,8 @@ export interface AgreementHistoryState extends BaseControlState, AgreementHistor
12
12
  isHistoryDataReceived: boolean;
13
13
  loading: boolean;
14
14
  maximized: boolean;
15
- lastLoadedData: GenModels.ApprovalHistoryViewModel;
15
+ lastLoadedData: Array<GenModels.ApprovalHistoryViewModel>;
16
+ selectedAgreementItem: GenModels.ApprovalHistoryViewModel;
16
17
  }
17
18
  /** @internal */
18
19
  export declare type AgreementHistoryImplState = AgreementHistoryState;
@@ -34,13 +35,12 @@ export declare class AgreementHistoryImpl extends BaseControlImpl<AgreementHisto
34
35
  /** Можно ли показать отчёт. */
35
36
  canShowReport(): boolean;
36
37
  /** Загрузить историю. */
37
- loadData(): Promise<GenModels.ApprovalHistoryViewModel>;
38
+ loadData(): Promise<Array<GenModels.ApprovalHistoryViewModel>>;
38
39
  /**
39
40
  * Отрисовать содержимое диалогового окна
40
41
  * @param dialog Диалог
41
42
  * @param data Данные
42
43
  */
43
- private renderDialogContent;
44
44
  /** Обновить отчёт. */
45
45
  refreshReport(): void;
46
46
  /** Показан ли отчёт. */
@@ -55,6 +55,7 @@ export declare class AgreementManagementImpl extends BaseControlImpl<AgreementMa
55
55
  protected getButtonName: (operationKind: GenModels.AgreementManagementOperations) => string;
56
56
  protected getTemplateComboBoxProps(): any;
57
57
  protected getTemplateComboBoxElements(): any;
58
+ private getTemplateComboBoxId;
58
59
  get canStart(): boolean;
59
60
  get canManage(): boolean;
60
61
  renderControl(): JSX.Element;
@@ -0,0 +1,31 @@
1
+ /// <reference types="react" />
2
+ import { IApprovingReportRefreshedEventArgs } from "@docsvision/webclient/Approval/IApprovingReportRefreshedEventArgs";
3
+ import { IApprovingReportRefreshingEventArgs } from "@docsvision/webclient/Approval/IApprovingReportRefreshingEventArgs";
4
+ import { $AgreementHistoryStageRenderer, IAgreementHistoryStageRenderer } from "@docsvision/webclient/Approval/$AgreementHistoryStageRenderer";
5
+ import { $LayoutAgreementController } from "@docsvision/webclient/Generated/DocsVision.WebClient.Controllers";
6
+ import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
7
+ import { $FileController } from "@docsvision/webclient/Legacy/FileController";
8
+ import { $FilePreviewServices } from "@docsvision/webclient/Platform/FilePreview";
9
+ import { $EditOperationStore } from "@docsvision/webclient/System/LayoutServices";
10
+ import { BasicApiEvent, CancelableApiEvent } from "@docsvision/webclient/System/ApiEvent";
11
+ import { IEventArgs } from "@docsvision/webclient/System/IEventArgs";
12
+ import { $RouterNavigation } from "@docsvision/webclient/System/$Router";
13
+ import { Optional } from "@docsvision/web/core/services";
14
+ export interface IDialogContentDataProps {
15
+ data: Array<GenModels.ApprovalHistoryViewModel>;
16
+ displayMode: GenModels.AgreementHistoryDisplayMode;
17
+ controlName: string;
18
+ showCommentsInTable?: boolean;
19
+ openMode?: GenModels.OpenMode;
20
+ inline?: boolean;
21
+ tabIndex: number;
22
+ stageRenderer?: IAgreementHistoryStageRenderer;
23
+ approvingReportRefreshed?: BasicApiEvent<IApprovingReportRefreshedEventArgs>;
24
+ approvingReportRefreshing?: CancelableApiEvent<IApprovingReportRefreshingEventArgs>;
25
+ beforeDataChanging?: CancelableApiEvent<IEventArgs>;
26
+ afterDataChanged?: BasicApiEvent<IEventArgs>;
27
+ services?: $FileController & $LayoutAgreementController & $EditOperationStore & Optional<$AgreementHistoryStageRenderer> & $RouterNavigation & $FilePreviewServices;
28
+ refreshReport: () => void;
29
+ closeDialog?: () => void;
30
+ }
31
+ export declare function ApprovalDialogContent(props: IDialogContentDataProps): JSX.Element;
@@ -44,6 +44,8 @@ export interface IDigitalSignOptions {
44
44
  /** Дополнительная необязательная информация о карточке для кастомизации подписи в решениях. */
45
45
  cardInfo?: GenModels.CardInfoModel;
46
46
  powerOfAttorneyID?: string;
47
+ /** Параметр позволяет задать явно тип подписи, если вызывающий код хочет отменить стандартную логику выбора. */
48
+ signatureType?: GenModels.DigitalSignatureKind;
47
49
  }
48
50
  export declare class IEncryptedInfo {
49
51
  /** Идентификатор карточки документа */
@@ -49,7 +49,7 @@ export declare class CardKindImpl extends InputBasedControlImpl<GenModels.CardKi
49
49
  /**
50
50
  * Доступен ли вид карточки
51
51
  */
52
- protected isCardKindAvailable: (cardKind: CardKindTreeNodeModel) => boolean;
52
+ protected isCardKindAvailable: (cardKind: CardKindTreeNodeModel, notAvailableProperty?: "notAvailable" | "notSelectable") => boolean;
53
53
  /**
54
54
  * При выборе вида в списке с автодополнением
55
55
  */
@@ -11,7 +11,7 @@ export interface ICardKindTreeProps {
11
11
  activeKindId?: string;
12
12
  emptyMessage?: string;
13
13
  onCardKindSelected?: (kind: CardKindTreeNodeModel) => void;
14
- isCardKindAvailable?: (kind: CardKindTreeNodeModel) => boolean;
14
+ isCardKindAvailable?: (kind: CardKindTreeNodeModel, notAvailbaleProperty?: "notAvailable" | "notSelectable") => boolean;
15
15
  notAvailableProperty: "notSelectable" | "notAvailable";
16
16
  }
17
17
  /**
@@ -1,10 +1,10 @@
1
- /// <reference types="react" />
2
1
  import { $DirectoryDesignerRowController, $LayoutRowController } from "@docsvision/webclient/Generated/DocsVision.WebClient.Controllers";
3
2
  import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
4
3
  import { LayoutControl } from '@docsvision/webclient/System/BaseControl';
5
4
  import { DirectorySelectDialog, IDirectorySelectDialogProps, IDirectorySelectDialogState } from '@docsvision/webclient/System/DirectorySelectDialog';
6
5
  import { IDirectoryChildrenLoadResponse, IDirectoryItem, IDirectorySearchItem, IDirectorySearchResponse } from '@docsvision/webclient/System/DirectoryServerModels';
7
6
  import { $LocationContainerControlServices } from '@docsvision/webclient/System/LocationContainerControl';
7
+ import React from "react";
8
8
  import { DirectoryDesignerRowItemVisualiser } from "@docsvision/webclient/BackOffice/DirectoryDesignerRowItemVisualiser";
9
9
  import { FieldNameAccessor } from "@docsvision/webclient/Helpers/DynamicModel/FieldNameAccessor";
10
10
  import { FuncAccessor } from "@docsvision/webclient/Helpers/DynamicModel/FuncAccessor";
@@ -52,6 +52,7 @@ export declare class DirectoryDesRowSelectDialog extends DirectorySelectDialog<V
52
52
  protected getItemTooltip(item: IDirectoryItem<NodeT | ItemT>): string;
53
53
  protected get currentNodeId(): string;
54
54
  protected loadChildrenList(nodeId: string, nodeType: any, from: number, to: number): Promise<IDirectoryChildrenLoadResponse<NodeT | ItemT>>;
55
+ protected onChildrenListItemDoubleClick(item: IDirectoryItem<NodeT | ItemT>, ev: React.MouseEvent<unknown>): boolean;
55
56
  protected search(searchText: string, nodeId: string, nodeType: any, maxCount: number, skip: number, reset: boolean): Promise<IDirectorySearchResponse<NodeT, NodeT | ItemT>>;
56
57
  protected getSearchNodePath(item: IDirectorySearchItem<NodeT, NodeT | ItemT>): GenModels.DirectoryDesignerItem[];
57
58
  protected onToggleSearchMode: () => void;
@@ -10,4 +10,5 @@ export declare class FileListAcceptExtensions {
10
10
  export declare class FileListPowerOfAttorneyData {
11
11
  static FEDERAL_TAX_SERVICE_WEB_SEARCH_URL: string;
12
12
  static FEDERAL_TAX_SERVICE_WEB_SEARCH_URL_POA_NUMBER_PARAMETER: string;
13
+ static FEDERAL_TAX_SERVICE_WEB_SEARCH_URL_GUID_PARAMETER: string;
13
14
  }
@@ -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 { AdaptiveMenuBar } from "@docsvision/webclient/Helpers/Menu/AdaptiveMenuBar";
60
61
  import { $FileDownload } from "@docsvision/webclient/Platform/$FileDownload";
61
62
  /**
62
63
  * Содержит публичные свойства элемента управления [Список файлов]{@link FileListControl}.
@@ -113,6 +114,12 @@ export declare class FileListControlParams extends BaseControlParams {
113
114
  addAdditionalFileText?: string;
114
115
  /** Показывать ли кнопку подписания и просмотра журнала подписи. {@see SignatureButton} */
115
116
  hideSignatureButton?: boolean;
117
+ /** Текущая сортировка файлов */
118
+ sortingFiles?: GenModels.SortingFiles;
119
+ /** Флаг, определяющий доступен ли выбор сортировки файлов пользователю */
120
+ userSorting?: boolean;
121
+ /** Флаг, определяющий открыто ли меню сортировки файлов */
122
+ openSortingMenu?: boolean;
116
123
  /** Событие возникает при добавлении основного файла. */
117
124
  mainFileAdding?: CancelableApiEvent<IMainFileAddingArgs>;
118
125
  /** Событие возникает при добавлении дополнительного файла. */
@@ -206,6 +213,7 @@ export declare class FileListControl extends BaseControl<FileListControlParams,
206
213
  protected createParams(): FileListControlParams;
207
214
  protected createImpl(): FileListControlImpl;
208
215
  private get fileListImpl();
216
+ get sortingMenu(): AdaptiveMenuBar;
209
217
  private set bindingEditOperation(value);
210
218
  /** Установка раскрытости основных файлов. */
211
219
  set mainFilesExpanded(val: boolean);
@@ -318,10 +326,16 @@ export declare class FileListControl extends BaseControl<FileListControlParams,
318
326
  */
319
327
  select(file: FileListItem): void;
320
328
  /**
329
+ * @deprecated Используй openFile.
321
330
  * Открывает файл с использованием технологии WebDAV.
322
331
  * @param fileItem Файл.
323
332
  */
324
- openWebDav(fileItem: FileListItem): Promise<void>;
333
+ openWebDav(fileItem: FileListItem): void;
334
+ /**
335
+ * Открывает файл с помощью dvwebtool/dvsupservice.
336
+ * @param fileItem Файл.
337
+ */
338
+ openFile(fileItem: FileListItem): void;
325
339
  /** @inheritDoc */
326
340
  init(): void;
327
341
  deinit(): void;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { FileListControl } from "@docsvision/webclient/BackOffice/FileListControl";
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof FileListControl;
6
+ };
7
+ export default _default;
8
+ export declare const Default: () => JSX.Element;
9
+ export declare const SortingMenu: () => JSX.Element;
10
+ export declare const SortingMenuNotAvailable: () => JSX.Element;
@@ -12,6 +12,7 @@ import { ControlSelector } from '@docsvision/webclient/Helpers/ControlSelector/C
12
12
  import { RequestHelper } from '@docsvision/webclient/System/RequestHelper';
13
13
  import { LayoutControl } from '@docsvision/webclient/System/BaseControl';
14
14
  import { FileListFormType } from '@docsvision/webclient/BackOffice/FileListFormType';
15
+ import { AdaptiveMenuBar } from "@docsvision/webclient/Helpers/Menu/AdaptiveMenuBar";
15
16
  /** @internal */
16
17
  export interface FileListControlState extends BaseControlImplState, FileListControlParams {
17
18
  fileListOperationModels: GenModels.ControlModel[];
@@ -26,7 +27,7 @@ export declare type FileListImplState = FileListControlState;
26
27
  export declare const WEB_DAV_FILE_CLOSED_MESSAGE_TYPE = "FileClosed";
27
28
  export declare const WEB_DAV_FILE_OPENED_FOR_READING_MESSAGE_TYPE = "FileOpenForReading";
28
29
  export declare const WEB_DAV_FILE_OPENED_FOR_EDITING_MESSAGE_TYPE = "FileOpenForWriting";
29
- export declare const WEB_DAV_FILE_CHANGED_AND_SAVED_MESSAGE_TYPE = "NewFileVersionAdded";
30
+ export declare const FILE_CHANGED_AND_SAVED_MESSAGE_TYPE = "NewFileVersionAdded";
30
31
  export interface ICardOpenedByWebDavMessage {
31
32
  CardId: string;
32
33
  FileId: string;
@@ -44,6 +45,10 @@ export interface ICardOpenedByWebDavMessage {
44
45
  export interface IFileListOptions {
45
46
  getFileListLogic?(params: FileListControlParams): FileListControlLogic;
46
47
  }
48
+ export interface ISortFilesOption {
49
+ displayString: string;
50
+ key: GenModels.SortingFiles;
51
+ }
47
52
  export declare type $FileListOptions = {
48
53
  fileListOptions?: IFileListOptions;
49
54
  };
@@ -63,6 +68,8 @@ export declare class FileListControlImpl extends BaseControlImpl<FileListControl
63
68
  requestHelper: RequestHelper;
64
69
  filesHeader: HTMLElement;
65
70
  wasToggled: boolean;
71
+ sortingLocalStorageKey: string;
72
+ sortingMenu: AdaptiveMenuBar;
66
73
  get logic(): FileListControlLogic;
67
74
  constructor(props: FileListControlParams, state: FileListControlState);
68
75
  UNSAFE_componentWillMount(): void;
@@ -86,6 +93,8 @@ export declare class FileListControlImpl extends BaseControlImpl<FileListControl
86
93
  set signCommandBarExpanded(val: boolean);
87
94
  renderUploadForm(attach: FileListAttachedElements, action: string, main: boolean, type: FileListFormType, fileItem?: FileListItem, accept?: string): JSX.Element;
88
95
  private sortFiles;
96
+ private compareFileName;
97
+ private compareFileTime;
89
98
  protected onDropzoneClick(): void;
90
99
  protected renderEditModeTitle(mainFiles: boolean): JSX.Element;
91
100
  protected renderEditModeCommandBar(): JSX.Element;
@@ -119,6 +128,12 @@ export declare class FileListControlImpl extends BaseControlImpl<FileListControl
119
128
  private getFolderButtonTitle;
120
129
  protected renderViewModeCommandBar(): JSX.Element;
121
130
  protected renderViewModeSignPanel(): JSX.Element;
131
+ protected renderSortingOption(): JSX.Element;
132
+ selectSorting(sortOption: ISortFilesOption): void;
133
+ openSortingMenu: () => void;
134
+ closeSortingMenu: () => void;
135
+ toggleSortingMenu: () => void;
136
+ protected onSortMenuKeyDown: (event: React.KeyboardEvent) => void;
122
137
  protected renderViewModeFilesHeader(): JSX.Element;
123
138
  selectFile(file: FileListItem): void;
124
139
  highlightSelectedFile(): void;
@@ -29,6 +29,7 @@ export declare class FileListItemComponent extends React.Component<FileListItemP
29
29
  onLockOperationClick(fileItem: FileListItem): void;
30
30
  onUnlockOperationClick(fileItem: FileListItem): void;
31
31
  onOpenFileClick(fileItem: FileListItem): Promise<void>;
32
+ openFile(fileItem: FileListItem): void;
32
33
  protected onDeleteOperationClick(fileItem: FileListItem): void;
33
34
  protected onFileMenuClick(fileItem: FileListItem): Promise<void>;
34
35
  protected onRowClick(fileItem: FileListItem): void;
@@ -21,6 +21,8 @@ export declare class PowersParams<ValueT extends PowersValueType = PowersValueTy
21
21
  selectedItem?: ItemT;
22
22
  /** Сохранять разметку при изменении значения */
23
23
  saveOnChangeValue?: boolean;
24
+ /** Доступен ли выбор из списка последних. */
25
+ enableFavorites?: boolean;
24
26
  /**
25
27
  * Событие, возникающее перед выполнением поиска записей на сервере. В обработчике события можно изменить параметры запроса.
26
28
  * Если в обработчике задать значение result, то запрос на сервер выполнен не будет.
@@ -23,6 +23,8 @@ export declare class PowersImpl extends DirectoryBaseImpl<PowersValueType, Power
23
23
  constructor(props: PowersParams, state: IPowersState);
24
24
  protected getTextValue(): string;
25
25
  protected getCssClass(): string;
26
+ private shouldShowFavorites;
27
+ protected onInputAndPlaceholderClick(): void;
26
28
  protected onInputChange(event: any): Promise<void>;
27
29
  protected getIconClassName(): string;
28
30
  hasValue(): boolean;
@@ -7,6 +7,7 @@ export declare class StaffDirectoryDataVisualiser {
7
7
  constructor(employeeVisualiser: EmployeeVisualizer);
8
8
  getDisplayName(item: GenModels.IDirectoryItemData): string;
9
9
  getShortDisplayName(item: GenModels.IDirectoryItemData): string;
10
+ getNotAvailable(item: GenModels.IDirectoryItemData): boolean;
10
11
  getTooltip(item: GenModels.IDirectoryItemData): string;
11
12
  getIconClassName(item: GenModels.IDirectoryItemData, selected: boolean): string;
12
13
  }
@@ -45,6 +45,7 @@ export declare class StaffDirectorySelectDialog extends DirectorySelectDialog<St
45
45
  directoryDataId: FieldNameAccessor<GenModels.IDirectoryItemData, string>;
46
46
  directoryDataName: FuncAccessor<GenModels.IDirectoryItemData, string>;
47
47
  directoryDataTip: FuncAccessor<GenModels.IDirectoryItemData, string>;
48
+ directoryItemReadonly: FuncAccessor<GenModels.IDirectoryItemData, boolean>;
48
49
  constructor(props: IStaffDirectorySelectDialogProps);
49
50
  componentDidMount(): void;
50
51
  get selectedItems(): GenModels.IDirectoryItemData[];
@@ -1,6 +1,25 @@
1
1
  import { ControllerBase } from '@docsvision/webclient/System/ControllerBase';
2
2
  import { RequestOptions } from '@docsvision/webclient/Legacy/Utils';
3
3
  import { GenModels } from '@docsvision/webclient/Generated/DocsVision.WebClient.Models';
4
+ export declare namespace GenControllers {
5
+ /**
6
+ * Represents controller to check Web-client initialization status.
7
+ */
8
+ interface IInitializationController {
9
+ /**
10
+ * Gets the initialization status of Web-client.
11
+ * Returns a 200 OK status if initialized, otherwise returns a 503 Service Unavailable status.
12
+ */
13
+ isInitialized(options?: RequestOptions): Promise<string>;
14
+ }
15
+ class InitializationController extends ControllerBase implements IInitializationController {
16
+ isInitialized(options?: RequestOptions): Promise<string>;
17
+ }
18
+ }
19
+ export declare type $InitializationController = {
20
+ initializationController: GenControllers.IInitializationController;
21
+ };
22
+ export declare const $InitializationController: string | ((model?: $InitializationController) => GenControllers.IInitializationController);
4
23
  export declare namespace GenControllers {
5
24
  /**
6
25
  * Employee controller
@@ -635,6 +654,56 @@ export declare type $FavoritesController = {
635
654
  favoritesController: GenControllers.IFavoritesController;
636
655
  };
637
656
  export declare const $FavoritesController: string | ((model?: $FavoritesController) => GenControllers.IFavoritesController);
657
+ export declare namespace GenControllers {
658
+ /**
659
+ * File hash controller
660
+ */
661
+ interface IFileHashController {
662
+ /**
663
+ * Get hash of file data
664
+ *
665
+ * @param fileId File ID
666
+ * @param algorithm Hash algorithm name
667
+ *
668
+ * @returns Returns the hash of the file
669
+ */
670
+ getDataHash(fileId: string, algorithm: string, options?: RequestOptions): Promise<string>;
671
+ /**
672
+ * Get hash of attachment stream
673
+ *
674
+ * @param cardId Card id
675
+ * @param algorithm Hash algorithm name
676
+ *
677
+ * @returns Returns the hash of the attachment stream
678
+ */
679
+ getAttachmentStreamHash(cardId: string, algorithm: string, options?: RequestOptions): Promise<string>;
680
+ /**
681
+ * Get hash of fields stream
682
+ *
683
+ * @param cardId Card id
684
+ * @param algorithm Hash algorithm name
685
+ *
686
+ * @returns Returns the hash of the fields stream
687
+ */
688
+ getFieldsStreamHash(cardId: string, algorithm: string, options?: RequestOptions): Promise<string>;
689
+ /**
690
+ * Get hash algorithm name from certificate in base64
691
+ *
692
+ * @returns Hash algorithm name
693
+ */
694
+ getCertificateHashAlgorithm(options?: RequestOptions): Promise<any>;
695
+ }
696
+ class FileHashController extends ControllerBase implements IFileHashController {
697
+ getDataHash(fileId: string, algorithm: string, options?: RequestOptions): Promise<string>;
698
+ getAttachmentStreamHash(cardId: string, algorithm: string, options?: RequestOptions): Promise<string>;
699
+ getFieldsStreamHash(cardId: string, algorithm: string, options?: RequestOptions): Promise<string>;
700
+ getCertificateHashAlgorithm(options?: RequestOptions): Promise<any>;
701
+ }
702
+ }
703
+ export declare type $FileHashController = {
704
+ fileHashController: GenControllers.IFileHashController;
705
+ };
706
+ export declare const $FileHashController: string | ((model?: $FileHashController) => GenControllers.IFileHashController);
638
707
  export declare namespace GenControllers {
639
708
  /**
640
709
  * Defines FilePreviewController
@@ -808,6 +877,24 @@ export declare type $GridController = {
808
877
  gridController: GenControllers.IGridController;
809
878
  };
810
879
  export declare const $GridController: string | ((model?: $GridController) => GenControllers.IGridController);
880
+ export declare namespace GenControllers {
881
+ /**
882
+ * Controller for receiving access token
883
+ */
884
+ interface IJwtTokenController {
885
+ /**
886
+ * Get access token for Bearer authorization
887
+ */
888
+ getAccessToken(options?: RequestOptions): Promise<string>;
889
+ }
890
+ class JwtTokenController extends ControllerBase implements IJwtTokenController {
891
+ getAccessToken(options?: RequestOptions): Promise<string>;
892
+ }
893
+ }
894
+ export declare type $JwtTokenController = {
895
+ jwtTokenController: GenControllers.IJwtTokenController;
896
+ };
897
+ export declare const $JwtTokenController: string | ((model?: $JwtTokenController) => GenControllers.IJwtTokenController);
811
898
  export declare namespace GenControllers {
812
899
  /**
813
900
  * Layout controller
@@ -1248,6 +1335,24 @@ export declare type $R7OfficeController = {
1248
1335
  R7OfficeController: GenControllers.IR7OfficeController;
1249
1336
  };
1250
1337
  export declare const $R7OfficeController: string | ((model?: $R7OfficeController) => GenControllers.IR7OfficeController);
1338
+ export declare namespace GenControllers {
1339
+ /**
1340
+ * R7Office controller for getting token
1341
+ */
1342
+ interface IR7TokenActivationController {
1343
+ /**
1344
+ * Gets access token for r7documentserver.
1345
+ */
1346
+ getAccessToken(config: string, options?: RequestOptions): Promise<any>;
1347
+ }
1348
+ class R7TokenActivationController extends ControllerBase implements IR7TokenActivationController {
1349
+ getAccessToken(config: string, options?: RequestOptions): Promise<any>;
1350
+ }
1351
+ }
1352
+ export declare type $R7TokenActivationController = {
1353
+ R7TokenActivationController: GenControllers.IR7TokenActivationController;
1354
+ };
1355
+ export declare const $R7TokenActivationController: string | ((model?: $R7TokenActivationController) => GenControllers.IR7TokenActivationController);
1251
1356
  export declare namespace GenControllers {
1252
1357
  /**
1253
1358
  * File controller
@@ -1886,6 +1991,10 @@ export declare namespace GenControllers {
1886
1991
  * POST: /FilePicker/GetFile
1887
1992
  */
1888
1993
  prepareFileDownload(request: GenModels.FilePickerRequestModel, options?: RequestOptions): Promise<void>;
1994
+ /**
1995
+ * POST: /FilePicker/GetViewZipContent
1996
+ */
1997
+ getViewZipContent(request: GenModels.FilePickerGetViewZipContentRequestModel, options?: RequestOptions): Promise<Array<GenModels.FilePickerViewZipItemModel>>;
1889
1998
  }
1890
1999
  class FilePickerController extends ControllerBase implements IFilePickerController {
1891
2000
  createFile(formCollection: Array<Array<string>>, options?: RequestOptions): Promise<any>;
@@ -1893,6 +2002,7 @@ export declare namespace GenControllers {
1893
2002
  replaceFile(formCollection: Array<Array<string>>, options?: RequestOptions): Promise<any>;
1894
2003
  getFile(request: GenModels.FilePickerGetFileRequestModel, options?: RequestOptions): Promise<GenModels.FileCardModel>;
1895
2004
  prepareFileDownload(request: GenModels.FilePickerRequestModel, options?: RequestOptions): Promise<void>;
2005
+ getViewZipContent(request: GenModels.FilePickerGetViewZipContentRequestModel, options?: RequestOptions): Promise<Array<GenModels.FilePickerViewZipItemModel>>;
1896
2006
  }
1897
2007
  }
1898
2008
  export declare type $FilePickerController = {
@@ -2000,13 +2110,14 @@ export declare namespace GenControllers {
2000
2110
  */
2001
2111
  agreementResume(documentCardId: string, reconcileCardId: string, options?: RequestOptions): Promise<void>;
2002
2112
  /**
2003
- * Get agreement history
2113
+ * Gets agreement history.
2004
2114
  *
2005
- * @param reconcileCardId Reconcile card id
2115
+ * @param reconcileCardId Reconcile card id.
2116
+ * @param includeAllReconciliations Determines whether to return all approvals or only current one.
2006
2117
  *
2007
- * @returns JSON representation of {@link GenModels}
2118
+ * @returns JSON representation of {@link GenModels}.
2008
2119
  */
2009
- getAgreementHistory(reconcileCardId: string, options?: RequestOptions): Promise<GenModels.ApprovalHistoryViewModel>;
2120
+ getAgreementHistory(reconcileCardId: string, includeAllReconciliations: boolean, options?: RequestOptions): Promise<Array<GenModels.ApprovalHistoryViewModel>>;
2010
2121
  }
2011
2122
  class LayoutAgreementController extends ControllerBase implements ILayoutAgreementController {
2012
2123
  getAgreementList(cardId: string, options?: RequestOptions): Promise<GenModels.AgreementListModel>;
@@ -2020,7 +2131,7 @@ export declare namespace GenControllers {
2020
2131
  agreementFinish(documentCardId: string, reconcileCardId: string, options?: RequestOptions): Promise<void>;
2021
2132
  agreementPause(documentCardId: string, reconcileCardId: string, options?: RequestOptions): Promise<void>;
2022
2133
  agreementResume(documentCardId: string, reconcileCardId: string, options?: RequestOptions): Promise<void>;
2023
- getAgreementHistory(reconcileCardId: string, options?: RequestOptions): Promise<GenModels.ApprovalHistoryViewModel>;
2134
+ getAgreementHistory(reconcileCardId: string, includeAllReconciliations: boolean, options?: RequestOptions): Promise<Array<GenModels.ApprovalHistoryViewModel>>;
2024
2135
  }
2025
2136
  }
2026
2137
  export declare type $LayoutAgreementController = {
@@ -2070,6 +2181,12 @@ export declare namespace GenControllers {
2070
2181
  * @param layoutPartParams layout part params
2071
2182
  */
2072
2183
  getLayoutPart(layoutPartParams: GenModels.LayoutPartParams, options?: RequestOptions): Promise<GenModels.LayoutModel>;
2184
+ /**
2185
+ * Gets layout part
2186
+ *
2187
+ * @param layoutPartParams layout part params
2188
+ */
2189
+ getLayoutPartEx(layoutPartParams: GenModels.LayoutPartParamsEx, options?: RequestOptions): Promise<GenModels.LayoutModel>;
2073
2190
  /**
2074
2191
  * HTTP: /LayoutCard/Save
2075
2192
  */
@@ -2113,6 +2230,7 @@ export declare namespace GenControllers {
2113
2230
  cancelCreation(cardId: string, parentCardId: string, options?: RequestOptions): Promise<string>;
2114
2231
  getLayout(cardLayoutParams: GenModels.CardLayoutParams, options?: RequestOptions): Promise<GenModels.LayoutCardViewModel>;
2115
2232
  getLayoutPart(layoutPartParams: GenModels.LayoutPartParams, options?: RequestOptions): Promise<GenModels.LayoutModel>;
2233
+ getLayoutPartEx(layoutPartParams: GenModels.LayoutPartParamsEx, options?: RequestOptions): Promise<GenModels.LayoutModel>;
2116
2234
  save(model: GenModels.SaveControlDataModel, options?: RequestOptions): Promise<void>;
2117
2235
  moveShortcutsToFolder(request: GenModels.MoveOrCopyShortcutsToFolderRequest, options?: RequestOptions): Promise<string>;
2118
2236
  copyShortcutsToFolder(request: GenModels.MoveOrCopyShortcutsToFolderRequest, options?: RequestOptions): Promise<string>;