@docsvision/webclient 5.16.4 → 5.16.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 (40) hide show
  1. package/Approval/AgreementStage.d.ts +1 -0
  2. package/BackOffice/AcknowledgementList.d.ts +57 -0
  3. package/BackOffice/AcknowledgementListButton.d.ts +5 -0
  4. package/BackOffice/AcknowledgementListContainer.d.ts +8 -0
  5. package/BackOffice/AcknowledgementListLogic.d.ts +8 -0
  6. package/BackOffice/AcknowledgementListView.d.ts +4 -0
  7. package/BackOffice/FileListBuiltInOperations.d.ts +2 -0
  8. package/BackOffice/FileListControl.d.ts +2 -2
  9. package/BackOffice/FileListControlImpl.d.ts +8 -0
  10. package/BackOffice/FileListItemProps.d.ts +2 -2
  11. package/BackOffice/FileSign.d.ts +1 -1
  12. package/BackOffice/IFileSignInteractionModel.d.ts +1 -0
  13. package/BackOffice/ISelectedCardsAddingEventArgs.d.ts +4 -0
  14. package/BackOffice/Links.d.ts +6 -3
  15. package/BackOffice/LinksSearchCardsService.d.ts +2 -2
  16. package/Generated/DocsVision.WebClient.Controllers.d.ts +25 -2
  17. package/Generated/DocsVision.WebClient.Models.d.ts +68 -0
  18. package/Helpers/DVWebToolConnection/DVWebToolConnection.d.ts +7 -2
  19. package/Helpers/FilePreview/FilePreview.d.ts +2 -2
  20. package/Helpers/HighlightedSearchResult.d.ts +2 -0
  21. package/Helpers/Typeahead/ITypeaheadProps.d.ts +2 -0
  22. package/Helpers/Typeahead/ITypeaheadState.d.ts +1 -0
  23. package/Legacy/TaskCardFilePanelRazorControl.d.ts +2 -2
  24. package/Libs/CryptoPro/Crypto.d.ts +1 -1
  25. package/Platform/CardLink.d.ts +20 -5
  26. package/Platform/CardLinkImpl.d.ts +30 -7
  27. package/Platform/FileExtensions.d.ts +20 -0
  28. package/Platform/FilePickerImpl.d.ts +5 -0
  29. package/Platform/FilePreview.d.ts +5 -3
  30. package/Platform/FilePreviewImpl.d.ts +7 -0
  31. package/Platform/LastSearchParametersService.d.ts +1 -3
  32. package/Platform/RotateDirection.d.ts +3 -1
  33. package/Platform/SaveColumnsRequestResolver.d.ts +13 -0
  34. package/Platform/SaveColumnsService.d.ts +2 -1
  35. package/Platform/SaveColumnsServiceProvider.d.ts +2 -1
  36. package/Platform/TestUtils.d.ts +2 -1
  37. package/System/IWebServicesRequest.d.ts +2 -0
  38. package/System/PageLeaveConfirmation.d.ts +1 -0
  39. package/System/PrintContent.d.ts +1 -1
  40. package/package.json +1 -1
@@ -17,6 +17,7 @@ export declare class AgreementStage extends React.Component<AgreementStageProps,
17
17
  [key: number]: string;
18
18
  };
19
19
  constructor(props: AgreementStageProps);
20
+ componentDidUpdate(prevProps: any): void;
20
21
  onToggleClick(ev: React.MouseEvent<any>): void;
21
22
  onStageCheckChange(val: boolean): void;
22
23
  onDeleteApproverClick(id: string): Promise<void>;
@@ -0,0 +1,57 @@
1
+ /// <reference types="react" />
2
+ import { AcknowledgementListLogic } from '@docsvision/webclient/BackOffice/AcknowledgementListLogic';
3
+ import { AcknowledgementListView } from '@docsvision/webclient/BackOffice/AcknowledgementListView';
4
+ import { $LayoutDocumentController } from '@docsvision/webclient/Generated/DocsVision.WebClient.Controllers';
5
+ import { $SiteUrl } from '@docsvision/webclient/StandardServices';
6
+ import { BaseControl, BaseControlParams } from '@docsvision/webclient/System/BaseControl';
7
+ import { BaseControlImplState } from '@docsvision/webclient/System/BaseControlImpl';
8
+ import { ControlImpl } from '@docsvision/webclient/System/ControlImpl';
9
+ import { $CardId } from '@docsvision/webclient/System/LayoutServices';
10
+ import { IBindingResult } from '@docsvision/webclient/System/IBindingResult';
11
+ import { Optional } from "@docsvision/web/core/services";
12
+ import { $RoutingService } from '@docsvision/web/core/routing';
13
+ export declare class AcknowledgementListParams extends BaseControlParams {
14
+ /** Стандартный CSS класс со стилями элемента управления */
15
+ standardCssClass?: string;
16
+ /** Текст, отображаемый на кнопке открытия листа ознакомления. */
17
+ buttonText?: string;
18
+ /** Идентификатор текущей карточки. */
19
+ cardId?: string;
20
+ /** Текст всплывающей подсказки */
21
+ tip?: string;
22
+ /** Шаблон печати. */
23
+ transformation?: string;
24
+ /** Видимость подчинённых заданий. */
25
+ includeSubTasks?: boolean;
26
+ /** Список подчинённых заданий. */
27
+ viewKinds?: Array<string>;
28
+ /** Сервисы */
29
+ services?: $LayoutDocumentController & $CardId & Optional<$AcknowledgementListOptions> & $SiteUrl & $RoutingService;
30
+ }
31
+ export interface AcknowledgementListState extends BaseControlImplState, AcknowledgementListParams {
32
+ logic: AcknowledgementListLogic;
33
+ view: AcknowledgementListView;
34
+ }
35
+ /** Сервис для переопределения реализации AcknowledgementList */
36
+ export interface IAcknowledgementListOptions {
37
+ getAcknowledgementListView(params: AcknowledgementListParams): AcknowledgementListView;
38
+ getAcknowledgementListLogic(params: AcknowledgementListParams): AcknowledgementListLogic;
39
+ }
40
+ export declare type $AcknowledgementListOptions = {
41
+ acknowledgementListOptions: IAcknowledgementListOptions;
42
+ };
43
+ export declare const $AcknowledgementListOptions: string | ((model?: $AcknowledgementListOptions) => IAcknowledgementListOptions);
44
+ /**
45
+ * Класс элемента управления AcknowledgementList.
46
+ */
47
+ export declare class AcknowledgementList extends BaseControl<AcknowledgementListParams, AcknowledgementListState> {
48
+ construct(): void;
49
+ /** @internal */
50
+ protected set transformationLoader(binding: IBindingResult<string>);
51
+ set transformationChanged(val: any);
52
+ private set viewKindsBinding(value);
53
+ /** @notest @internal */
54
+ protected createParams(): AcknowledgementListParams;
55
+ protected createImpl(): ControlImpl;
56
+ renderControl(): JSX.Element;
57
+ }
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { ButtonProps } from '@docsvision/web/components/form/button';
3
+ import './AcknowledgementListButton.css';
4
+ import './AcknowledgementListContent.css';
5
+ export declare function AcknowledgementListButton(props: ButtonProps): JSX.Element;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { AcknowledgementListLogic } from '@docsvision/webclient/BackOffice/AcknowledgementListLogic';
3
+ import { AcknowledgementListView } from '@docsvision/webclient/BackOffice/AcknowledgementListView';
4
+ import './AcknowledgementListContainer.css';
5
+ export declare function AcknowledgementListContainer(props: {
6
+ logic: AcknowledgementListLogic;
7
+ view: AcknowledgementListView;
8
+ }): JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { AcknowledgementListState } from "@docsvision/webclient/BackOffice/AcknowledgementList";
2
+ export declare class AcknowledgementListLogic {
3
+ state: AcknowledgementListState;
4
+ constructor(state: AcknowledgementListState);
5
+ domain:
6
+ import("effector").Domain;
7
+ onButtonClick: () => Promise<void>;
8
+ }
@@ -0,0 +1,4 @@
1
+ import { AcknowledgementListButton } from "@docsvision/webclient/BackOffice/AcknowledgementListButton";
2
+ export declare class AcknowledgementListView {
3
+ button: typeof AcknowledgementListButton;
4
+ }
@@ -11,4 +11,6 @@ export declare class FileListBuiltInOperations {
11
11
  static ReadMainFile: string;
12
12
  static RemoveExtraFile: string;
13
13
  static RenameFiles: string;
14
+ static Read: string;
15
+ static PrintDocument: string;
14
16
  }
@@ -23,7 +23,7 @@ import { ISignatureCreatedArgs } from "@docsvision/webclient/BackOffice/ISignatu
23
23
  import { ISignatureCreatingArgs } from "@docsvision/webclient/BackOffice/ISignatureCreatingArgs";
24
24
  import { ISignatureListViewedArgs } from "@docsvision/webclient/BackOffice/ISignatureListViewedArgs";
25
25
  import { ISignatureListViewingArgs } from "@docsvision/webclient/BackOffice/ISignatureListViewingArgs";
26
- import { FileListControlImpl, FileListControlState } from "@docsvision/webclient/BackOffice/FileListControlImpl";
26
+ import { $FileListOptions, FileListControlImpl, FileListControlState } from "@docsvision/webclient/BackOffice/FileListControlImpl";
27
27
  import { $LayoutFileController, $SignatureController, $DataVisualizationController, $LayoutFileApiController, $LayoutDocumentController } from "@docsvision/webclient/Generated/DocsVision.WebClient.Controllers";
28
28
  import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
29
29
  import { $DocumentCardController } from "@docsvision/webclient/Legacy/DocumentCard";
@@ -173,7 +173,7 @@ export declare class FileListControlParams extends BaseControlParams {
173
173
  /** Событие возникает при сохранении файла в WebDAV. */
174
174
  fileSaveByWebDAV?: BasicApiEvent<IEventArgs>;
175
175
  /** Сервисы. */
176
- services?: $FileService & $DocumentCardController & $FileController & $LayoutFileController & $Layout & $RequestManager & $SignatureController & $CardId & $RealtimeCommunicationService & $Router & $DeviceType & $LayoutInfo & $EditOperationStore & $CardInfo & $DataVisualizationController & $LayoutCheck & $ApplicationSettings & $FileUpload & $UrlStore & $MessageBox & $WebViewIOSEnabled & $LayoutFileApiController & $LayoutDocumentController & $LayoutManager;
176
+ services?: $FileService & $DocumentCardController & $FileController & $LayoutFileController & $Layout & $RequestManager & $SignatureController & $CardId & $RealtimeCommunicationService & $Router & $DeviceType & $LayoutInfo & $EditOperationStore & $CardInfo & $DataVisualizationController & $LayoutCheck & $ApplicationSettings & $FileUpload & $UrlStore & $MessageBox & $WebViewIOSEnabled & $LayoutFileApiController & $LayoutDocumentController & $LayoutManager & $FileListOptions;
177
177
  }
178
178
  /**
179
179
  * Класс элемента управления Список файлов.
@@ -35,6 +35,14 @@ export interface ICardOpenedByWebDavMessage {
35
35
  FileId: string;
36
36
  FileName: string;
37
37
  }
38
+ /** Сервис для переопределения реализации FileListLogic */
39
+ export interface IFileListOptions {
40
+ getFileListLogic?(params: FileListControlParams): FileListControlLogic;
41
+ }
42
+ export declare type $FileListOptions = {
43
+ fileListOptions?: IFileListOptions;
44
+ };
45
+ export declare const $FileListOptions: string | ((model?: $FileListOptions) => IFileListOptions);
38
46
  /** @internal */
39
47
  export declare class FileListControlImpl extends BaseControlImpl<FileListControlParams, FileListControlState> {
40
48
  mainAttach: FileListAttachedElements;
@@ -2,7 +2,7 @@ import { FileListAttachedElements } from "@docsvision/webclient/BackOffice/FileL
2
2
  import { FileListItem } from "@docsvision/webclient/BackOffice/FileListItem";
3
3
  import { FileListControlLogic } from "@docsvision/webclient/BackOffice/FileListControlLogic";
4
4
  import { $LayoutFileController } from "@docsvision/webclient/Generated/DocsVision.WebClient.Controllers";
5
- import { $DeviceType } from "@docsvision/webclient/StandardServices";
5
+ import { $ApplicationSettings, $DeviceType } from "@docsvision/webclient/StandardServices";
6
6
  import { EditMode } from "@docsvision/webclient/System/EditMode";
7
7
  import { $Layout } from '@docsvision/webclient/System/$Layout';
8
8
  import { $CardId, $CardInfo, $LayoutInfo } from '@docsvision/webclient/System/LayoutServices';
@@ -20,7 +20,7 @@ export declare class FileListItemProps {
20
20
  logic: FileListControlLogic;
21
21
  renderUploadForm: (attach: FileListAttachedElements, action: string, main?: boolean, type?: FileListFormType, fileItem?: FileListItem, accept?: string) => any;
22
22
  key: string;
23
- services: $LayoutFileController & $DeviceType & $Layout & $CardId & $FileService & $LayoutCheck & $CardInfo & $RequestManager & $FileController & $LayoutInfo & $LayoutManager;
23
+ services: $LayoutFileController & $DeviceType & $Layout & $CardId & $FileService & $ApplicationSettings & $LayoutCheck & $CardInfo & $RequestManager & $FileController & $LayoutInfo & $LayoutManager;
24
24
  onClick?: any;
25
25
  selected?: boolean;
26
26
  importSignatureEditOperation?: string;
@@ -38,7 +38,7 @@ export declare class FileSign {
38
38
  * @param selectedThumbprint Отпечаток
39
39
  * @param selectedLabelId Идентификатор метки
40
40
  */
41
- protected sign(selectedThumbprint: string, selectedLabel: ISignatureLabel, timestamp: number, signFields?: boolean, signAttachments?: boolean): Promise<{}>;
41
+ sign(selectedThumbprint: string, selectedLabel: ISignatureLabel, timestamp: number, signFields?: boolean, signAttachments?: boolean): Promise<{}>;
42
42
  /** Сохраняет файлы, подписанные на ios-устройстве. Вызывается из WebView */
43
43
  protected saveSignedDoc: (filesData: IDataIOSSign[]) => Promise<void>;
44
44
  protected cancelDocumentsSign(): void;
@@ -8,6 +8,7 @@ export interface IFileSignInteractionModel {
8
8
  getFiles: () => IFileSignInfo[];
9
9
  signButton: HTMLElement;
10
10
  viewSignButton: HTMLElement;
11
+ doNotshowSignatureCompleteMessage?: boolean;
11
12
  beforeShowSignDialogCallback: () => Promise<any>;
12
13
  beforeSignCallback: () => Promise<any>;
13
14
  beforeViewSignCallback: () => Promise<any>;
@@ -0,0 +1,4 @@
1
+ import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
2
+ export interface ISelectedCardsAddingEventArgs {
3
+ cards: GenModels.CardPresentation[];
4
+ }
@@ -7,7 +7,7 @@ import { $LayoutFileController, $LayoutLinksController, $LayoutController, $Card
7
7
  import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
8
8
  import { $FileController } from "@docsvision/webclient/Legacy/FileController";
9
9
  import { Panel, PanelParams } from '@docsvision/webclient/Platform/Panel';
10
- import { $DeviceType } from '@docsvision/webclient/StandardServices';
10
+ import { $ApplicationSettings, $DeviceType } from '@docsvision/webclient/StandardServices';
11
11
  import { $Layout } from "@docsvision/webclient/System/$Layout";
12
12
  import { $CardId, $CardInfo, $CardTimestamp, $EditOperationStore, $LayoutInfo } from "@docsvision/webclient/System/LayoutServices";
13
13
  import { BasicApiEvent, CancelableApiEvent } from "@docsvision/webclient/System/ApiEvent";
@@ -20,6 +20,7 @@ import { $LayoutCheck } from '@docsvision/webclient/System/$LayoutCheckService';
20
20
  import { $RequestManager } from '@docsvision/webclient/System/$RequestManager';
21
21
  import { $FileService } from '@docsvision/webclient/System/$FileService';
22
22
  import { $FilePreview } from '@docsvision/webclient/Platform/$FilePreview';
23
+ import { ISelectedCardsAddingEventArgs } from "@docsvision/webclient/BackOffice/ISelectedCardsAddingEventArgs";
23
24
  /**
24
25
  * Публичные свойства для контрола {@link Links}.
25
26
  */
@@ -131,8 +132,10 @@ export declare class LinksParams extends PanelParams {
131
132
  linkCardOpening?: CancelableApiEvent<ILinkEventArgs>;
132
133
  /** Событие возникает перед сворачиванием контрола. */
133
134
  collapsing?: CancelableApiEvent<IEventArgs>;
134
- /** Событие возникает перед разворачивании контрола. */
135
+ /** Событие возникает перед разворачиванием контрола. */
135
136
  expanding?: CancelableApiEvent<IEventArgs>;
137
+ /** Событие возникает перед перед добавлением ссылок на выбранные карточки */
138
+ selectedCardsAdding?: CancelableApiEvent<ISelectedCardsAddingEventArgs>;
136
139
  /** Событие возникает при добавлении ссылки на существующую карточку. */
137
140
  linkAdded?: BasicApiEvent<ILinkEventArgs>;
138
141
  /** Событие возникает при удалении ссылки. */
@@ -156,7 +159,7 @@ export declare class LinksParams extends PanelParams {
156
159
  /** Событие возникает после загрузки данных контрола (актуально при асинхронной загрузке данных). */
157
160
  dataLoaded?: BasicApiEvent<IEventArgs>;
158
161
  /** Сервисы */
159
- services?: $FileController & $LayoutFileController & $LayoutController & $LayoutLinksController & $EditOperationStore & $Layout & $LayoutManager & $LocalStorage & $DeviceType & $CardId & $CardTimestamp & $LayoutInfo & Optional<$LinksSearchCards> & $LayoutCheck & $CardInfo & $RequestManager & $FileService & $CardOperationsController & Optional<$FilePreview>;
162
+ services?: $FileController & $LayoutFileController & $LayoutController & $LayoutLinksController & $EditOperationStore & $ApplicationSettings & $Layout & $LayoutManager & $LocalStorage & $DeviceType & $CardId & $CardTimestamp & $LayoutInfo & Optional<$LinksSearchCards> & $LayoutCheck & $CardInfo & $RequestManager & $FileService & $CardOperationsController & Optional<$FilePreview>;
160
163
  }
161
164
  export declare const defaultColumns: GenModels.LinksColumnsConfiguration;
162
165
  /**
@@ -12,8 +12,8 @@ export declare class LinksSearchCardsService implements ILinksSearchCardsService
12
12
  allowedLinkTypes?: GenModels.LinkTypeModel[];
13
13
  addFileKind?: GenModels.CardNodeInfo;
14
14
  folderList?: GenModels.SelectFolderNode[];
15
- onOkClick: () => void;
16
- onCancelClick: () => void;
15
+ onOkClick: any;
16
+ onCancelClick: any;
17
17
  descriptionColumnViewMode: GenModels.LinksDescriptionColumnViewMode;
18
18
  descriptionColumnMethodKey: string;
19
19
  changeSearchId: SimpleEvent<void>;
@@ -26,10 +26,10 @@ export declare namespace GenControllers {
26
26
  *
27
27
  * @returns file stream
28
28
  */
29
- downloadPdf(fileId: string, options?: RequestOptions): Promise<string>;
29
+ downloadPdf(fileId: string, cardId?: string, options?: RequestOptions): Promise<string>;
30
30
  }
31
31
  class FilePreviewController extends BaseController implements IFilePreviewController {
32
- downloadPdf(fileId: string, options?: RequestOptions): Promise<string>;
32
+ downloadPdf(fileId: string, cardId?: string, options?: RequestOptions): Promise<string>;
33
33
  }
34
34
  }
35
35
  export declare type $FilePreviewController = {
@@ -439,6 +439,24 @@ export declare type $LogController = {
439
439
  logController: GenControllers.ILogController;
440
440
  };
441
441
  export declare const $LogController: string | ((model?: $LogController) => GenControllers.ILogController);
442
+ export declare namespace GenControllers {
443
+ /**
444
+ * R7Office controller
445
+ */
446
+ interface IR7OfficeController {
447
+ /**
448
+ * Получение файла с поддержкой AllowAnonymous
449
+ */
450
+ getFile(id: string, accountName: string, idext: string, options?: RequestOptions): Promise<any>;
451
+ }
452
+ class R7OfficeController extends BaseController implements IR7OfficeController {
453
+ getFile(id: string, accountName: string, idext: string, options?: RequestOptions): Promise<any>;
454
+ }
455
+ }
456
+ export declare type $R7OfficeController = {
457
+ R7OfficeController: GenControllers.IR7OfficeController;
458
+ };
459
+ export declare const $R7OfficeController: string | ((model?: $R7OfficeController) => GenControllers.IR7OfficeController);
442
460
  export declare namespace GenControllers {
443
461
  /**
444
462
  * DataGridControl controller
@@ -2088,6 +2106,10 @@ export declare namespace GenControllers {
2088
2106
  * Get signature information
2089
2107
  */
2090
2108
  getSignatureInfo(documentId: string, signaturePartId: string, signatureId: string, options?: RequestOptions): Promise<GenModels.SignatureInfoModel>;
2109
+ /**
2110
+ * Get signature information
2111
+ */
2112
+ getAcknowledgemenList(request: GenModels.GetAcknowledgemenListRequest, options?: RequestOptions): Promise<string>;
2091
2113
  }
2092
2114
  class LayoutDocumentController extends BaseController implements ILayoutDocumentController {
2093
2115
  generateNumber(request: GenModels.GenerateNumberRequest, options?: RequestOptions): Promise<GenModels.NumberInfo>;
@@ -2098,6 +2120,7 @@ export declare namespace GenControllers {
2098
2120
  exportESign(cardId: string, signatureFormat: GenModels.SignatureFormat, options?: RequestOptions): Promise<any>;
2099
2121
  downloadSignature(request: GenModels.SignatureRequest, options?: RequestOptions): Promise<any>;
2100
2122
  getSignatureInfo(documentId: string, signaturePartId: string, signatureId: string, options?: RequestOptions): Promise<GenModels.SignatureInfoModel>;
2123
+ getAcknowledgemenList(request: GenModels.GetAcknowledgemenListRequest, options?: RequestOptions): Promise<string>;
2101
2124
  }
2102
2125
  }
2103
2126
  export declare type $LayoutDocumentController = {
@@ -4035,6 +4035,10 @@ export declare namespace GenModels {
4035
4035
  * Gets name
4036
4036
  */
4037
4037
  name: string;
4038
+ /**
4039
+ * Gets file extension
4040
+ */
4041
+ fileExtension: string;
4038
4042
  /**
4039
4043
  * Gets file identifier
4040
4044
  *
@@ -5539,6 +5543,7 @@ export declare namespace GenModels {
5539
5543
  interface ApprovalHistoryFileModel {
5540
5544
  fileCardId: string;
5541
5545
  name: string;
5546
+ fileExtension: string;
5542
5547
  currentVersion: GenModels.ApprovalHistoryFileVersionModel;
5543
5548
  }
5544
5549
  }
@@ -6521,6 +6526,30 @@ export declare namespace GenModels {
6521
6526
  timestampType: GenModels.TimestampType;
6522
6527
  }
6523
6528
  }
6529
+ export declare namespace GenModels {
6530
+ interface GetAcknowledgemenListRequest {
6531
+ /**
6532
+ * Card id
6533
+ *
6534
+ * @format datatype.uuid
6535
+ */
6536
+ documentId: string;
6537
+ /**
6538
+ * Content of card document transformation
6539
+ */
6540
+ transformationAlias: string;
6541
+ /**
6542
+ * List of task kind ids which should be included in acknowledgemen list
6543
+ */
6544
+ taskKindIds: Array<string>;
6545
+ /**
6546
+ * Flag indicating the need to include tasks of all levels in acknowledgemen list
6547
+ *
6548
+ * If value is FALSE (default), in acknowledgemen list should include only the tasks of the first level
6549
+ */
6550
+ includeTasksAllLevels: boolean;
6551
+ }
6552
+ }
6524
6553
  export declare namespace GenModels {
6525
6554
  interface GetFilesRequest {
6526
6555
  /**
@@ -7520,6 +7549,10 @@ export declare namespace GenModels {
7520
7549
  * Organization INN
7521
7550
  */
7522
7551
  inn: string;
7552
+ /**
7553
+ * Not available flag
7554
+ */
7555
+ notAvailable: boolean;
7523
7556
  /**
7524
7557
  * Node department type
7525
7558
  */
@@ -8033,10 +8066,30 @@ export declare namespace GenModels {
8033
8066
  * Pdf cache directory
8034
8067
  */
8035
8068
  pdfCacheDirectory: string;
8069
+ /**
8070
+ * Gets or sets whether DVWebTool should be terminated after use.
8071
+ */
8072
+ dvWebToolAppShutDown: boolean;
8073
+ /**
8074
+ * Gets or sets whether DVWebTool should be launch after load OS.
8075
+ */
8076
+ dvWebToolStartUpLaunch: boolean;
8036
8077
  /**
8037
8078
  * Search context options
8038
8079
  */
8039
8080
  searchContextOptions: Array<GenModels.SearchOptionModel>;
8081
+ /**
8082
+ * R7 address connection
8083
+ */
8084
+ serverR7ConnectionAddress: string;
8085
+ /**
8086
+ * File preview mode
8087
+ */
8088
+ filePreviewMode: GenModels.FilePreviewMode;
8089
+ /**
8090
+ * R7 secret token
8091
+ */
8092
+ serverR7SecretToken: string;
8040
8093
  }
8041
8094
  }
8042
8095
  export declare namespace GenModels {
@@ -10945,6 +10998,21 @@ export declare namespace GenModels {
10945
10998
  Pdfjs = 1
10946
10999
  }
10947
11000
  }
11001
+ export declare namespace GenModels {
11002
+ /**
11003
+ * FilePreviewMode
11004
+ */
11005
+ enum FilePreviewMode {
11006
+ /**
11007
+ * pdf.js viewer
11008
+ */
11009
+ Pdfjs = 0,
11010
+ /**
11011
+ * r7 viewer
11012
+ */
11013
+ R7 = 1
11014
+ }
11015
+ }
10948
11016
  export declare namespace GenModels {
10949
11017
  enum AgreementHistoryMode {
10950
11018
  Button = 0,
@@ -4,8 +4,13 @@ import { IWebServicesRequest } from '@docsvision/webclient/System/IWebServicesRe
4
4
  import { IWebServicesConnection } from '@docsvision/webclient/System/IWebServicesConnection';
5
5
  import { $MessageBox } from '@docsvision/webclient/System/$MessageBox';
6
6
  export declare class DVWebToolConnection {
7
- private static maxTryCount;
7
+ private static WebToolInstalledOptionsKey;
8
+ private static dvWebToolOpenCommand;
9
+ private static delayTime;
10
+ static cancel: boolean;
8
11
  static trySendData<RequestT, ResponseT>(webService: string, data: IWebServicesRequest<RequestT>, services: $WebServices & $ApplicationSettings & $MessageBox): Promise<ResponseT>;
12
+ static trySendDataEx<RequestT, ResponseT>(webService: string, data: IWebServicesRequest<RequestT>, services: $WebServices & $ApplicationSettings & $MessageBox, maxTryCount?: number): Promise<ResponseT>;
9
13
  static tryConnect<RequestT, ResponseT>(webService: string, services: $WebServices & $ApplicationSettings & $MessageBox): Promise<IWebServicesConnection>;
10
- static renderModalWindow(container: HTMLElement, services: $ApplicationSettings): void;
14
+ static tryConnectEx<RequestT, ResponseT>(webService: string, services: $WebServices & $ApplicationSettings & $MessageBox, maxTryCount?: number): Promise<IWebServicesConnection>;
15
+ static renderModalWindow(container: HTMLElement, services: $WebServices & $ApplicationSettings & $MessageBox): void;
11
16
  }
@@ -2,7 +2,7 @@ import { $LayoutFileController } from "@docsvision/webclient/Generated/DocsVisio
2
2
  import { GenModels } from '@docsvision/webclient/Generated/DocsVision.WebClient.Models';
3
3
  import { $FileController } from "@docsvision/webclient/Legacy/FileController";
4
4
  import { IFilePreviewModel } from "@docsvision/webclient/Legacy/IFilePreviewModel";
5
- import { $CardId } from '@docsvision/webclient/System/LayoutServices';
5
+ import { $CardId, $EditOperationStore } from '@docsvision/webclient/System/LayoutServices';
6
6
  import React from "react";
7
7
  import { RequestHelper } from '@docsvision/webclient/System/RequestHelper';
8
8
  /** @internal Свойства для {@link FilePreview} */
@@ -36,7 +36,7 @@ export interface IFilePreviewProps {
36
36
  canDeleteLastComment?: () => boolean;
37
37
  onDownloadClick?: (ev: React.MouseEvent) => void;
38
38
  onCommentsChanged?: (comments: GenModels.VersionedFileCommentModel[]) => void;
39
- services: $FileController & $LayoutFileController & $CardId & Partial<$FilePreviewService>;
39
+ services: $FileController & $LayoutFileController & $CardId & Partial<$FilePreviewService> & $EditOperationStore;
40
40
  }
41
41
  /** @internal */
42
42
  export interface IFilePreviewState {
@@ -13,6 +13,8 @@ export interface IHighlightedSearchResultProps {
13
13
  key?: any;
14
14
  /** Обрезать длинный текст с помощью многоточия или нет. По умолчанию: true. */
15
15
  useEllipsis?: boolean;
16
+ /** Подсвечивать ли результаты поиска */
17
+ highlightSearchResult?: boolean;
16
18
  }
17
19
  /**
18
20
  * @internal Показывает текст с выделенным в нём результатом поиска.
@@ -74,6 +74,8 @@ export interface ITypeaheadProps {
74
74
  afterOpenCallback?: () => void;
75
75
  /** Hide the pop-up if it crossed the padding */
76
76
  hideIfBehindPadding?: boolean;
77
+ /** Need to highlight search result */
78
+ highlightSearchResult?: boolean;
77
79
  }
78
80
  export declare enum PaginatorLoadLogic {
79
81
  LoadOnlyNewItems = 0,
@@ -23,4 +23,5 @@ export interface ITypeaheadState {
23
23
  lastExternalState: any;
24
24
  lastSearchResult: ITypeaheadSearchResult;
25
25
  positionsUpdater: Debouncer;
26
+ highlightSearchResult?: boolean;
26
27
  }
@@ -13,7 +13,7 @@ import { FileListItem } from '@docsvision/webclient/BackOffice/FileListItem';
13
13
  import { $LayoutCheck } from '@docsvision/webclient/System/$LayoutCheckService';
14
14
  import { $RequestManager } from '@docsvision/webclient/System/$RequestManager';
15
15
  import { $FileController } from '@docsvision/webclient/Legacy/FileController';
16
- import { $DeviceType } from '@docsvision/webclient/StandardServices';
16
+ import { $ApplicationSettings, $DeviceType } from '@docsvision/webclient/StandardServices';
17
17
  import { BasicApiEvent } from "@docsvision/webclient/System/ApiEvent";
18
18
  import { IEventArgs } from "@docsvision/webclient/System/IEventArgs";
19
19
  import { ICardOpenedByWebDavMessage } from "@docsvision/webclient/BackOffice/FileListControlImpl";
@@ -25,7 +25,7 @@ export declare class TaskCardFilePanelParams extends BaseRazorControlParams {
25
25
  shadowClass?: boolean;
26
26
  /** Событие возникает при сохранении файла в WebDAV. */
27
27
  fileSaveByWebDAV?: BasicApiEvent<IEventArgs>;
28
- services?: $LayoutCardController & $Layout & $Router & $LayoutInfo & $CardTimestamp & $FileService & $FilePreviewServices & $LayoutFileApiController & $RealtimeCommunicationService;
28
+ services?: $LayoutCardController & $Layout & $Router & $LayoutInfo & $ApplicationSettings & $CardTimestamp & $FileService & $FilePreviewServices & $LayoutFileApiController & $RealtimeCommunicationService;
29
29
  }
30
30
  /** @internal */
31
31
  export interface TaskCardFilePanelState extends TaskCardFilePanelParams, BaseRazorControlState {
@@ -95,7 +95,7 @@ export declare class Crypto {
95
95
  static GetSignatureType(services: $SignatureController & Optional<$MessageBox>, certificate: string): Promise<{
96
96
  cadesSignType: number;
97
97
  tspAddress: string;
98
- certificateThumberpint: any;
98
+ certificateThumberprint: any;
99
99
  }>;
100
100
  private static SignData_NPAPI;
101
101
  }
@@ -1,8 +1,7 @@
1
- import { $LayoutFileController, $LayoutLinksController, $LayoutController, $CardOperationsController } from "@docsvision/webclient/Generated/DocsVision.WebClient.Controllers";
1
+ import { $LayoutFileController, $LayoutLinksController, $LayoutController, $CardOperationsController, $CardsPresentationController } from "@docsvision/webclient/Generated/DocsVision.WebClient.Controllers";
2
2
  import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
3
3
  import { $FileController } from "@docsvision/webclient/Legacy/FileController";
4
4
  import { CardLinkImpl, CardLinkState } from "@docsvision/webclient/Platform/CardLinkImpl";
5
- import { BaseControl, BaseControlParams } from "@docsvision/webclient/System/BaseControl";
6
5
  import { IDataChangedEventArgsEx } from "@docsvision/webclient/System/IDataChangedEventArgs";
7
6
  import { $CardId, $EditOperationStore } from "@docsvision/webclient/System/LayoutServices";
8
7
  import { IBindingResult } from "@docsvision/webclient/System/IBindingResult";
@@ -16,10 +15,11 @@ import { $LayoutManager } from '@docsvision/webclient/System/$LayoutManager';
16
15
  import { $LinksSearchCards } from '@docsvision/webclient/BackOffice/$LinksSearchCardsService';
17
16
  import { $Layout } from '@docsvision/webclient/System/$Layout';
18
17
  import { $FilePreviewServices } from '@docsvision/webclient/Platform/FilePreview';
18
+ import { InputBasedControl, InputBasedControlParams } from "@docsvision/webclient/System/InputBasedControl";
19
19
  /**
20
20
  * Публичные свойства для контрола {@link CardLink}.
21
21
  */
22
- export declare class CardLinkParams extends BaseControlParams {
22
+ export declare class CardLinkParams extends InputBasedControlParams<GenModels.CardLinkDataModel> {
23
23
  standardCssClass?: string;
24
24
  /** Информация о текущей выбранной карточке. */
25
25
  value?: GenModels.CardLinkDataModel;
@@ -45,6 +45,12 @@ export declare class CardLinkParams extends BaseControlParams {
45
45
  required?: boolean;
46
46
  searchQueryId?: string;
47
47
  folderList?: GenModels.SelectFolderNode[];
48
+ /** Наименование параметра поискового запроса */
49
+ searchQueryParamName?: string;
50
+ /** Задержка поиска (мс) */
51
+ searchDelay?: number;
52
+ /** Минимальное количество символов для поиска */
53
+ searchIndex?: number;
48
54
  /** Событие, возникающее перед очисткой значения. */
49
55
  linkDeleting?: CancelableApiEvent<IEventArgs>;
50
56
  /** Событие, возникающее после очистки значения. */
@@ -65,14 +71,23 @@ export declare class CardLinkParams extends BaseControlParams {
65
71
  linkFilePreviewed?: BasicApiEvent<IEventArgs>;
66
72
  /** Событие, возникающее перед открытием связанной карточки. */
67
73
  linkCardOpening?: CancelableApiEvent<IEventArgs>;
68
- services?: $FileController & $LayoutFileController & $LayoutLinksController & $LayoutController & Optional<$CardId> & $EditOperationStore & $CardId & Optional<$LabelWidth> & $LayoutManager & $Layout & $FilePreviewServices & $CardOperationsController & Optional<$LinksSearchCards>;
74
+ services?: $FileController & $LayoutFileController & $LayoutLinksController & $LayoutController & Optional<$CardId> & $EditOperationStore & $CardId & Optional<$LabelWidth> & $LayoutManager & $Layout & $FilePreviewServices & $CardOperationsController & Optional<$LinksSearchCards> & $CardsPresentationController;
69
75
  }
70
76
  /**
71
77
  * Представляет элемент управления для редактирования связанной карточки.
72
78
  */
73
- export declare class CardLink extends BaseControl<CardLinkParams, CardLinkState> {
79
+ export declare class CardLink extends InputBasedControl<GenModels.CardLinkDataModel, CardLinkParams, CardLinkState> {
74
80
  protected construct(): void;
75
81
  componentDidMount(): void;
82
+ protected getServices(): $FileController & $LayoutFileController & $LayoutLinksController & $LayoutController & Partial<$CardId> & $EditOperationStore & $CardId & Partial<$LabelWidth> & $LayoutManager & $Layout &
83
+ import("C:/Dev/WebC16/Bin/TypeScriptDefinitions/System/Services/$LayoutCheckService").$LayoutCheck &
84
+ import("C:/Dev/WebC16/Bin/TypeScriptDefinitions/System/Controls/Layout/LayoutServices").$CardInfo &
85
+ import("C:/Dev/WebC16/Bin/TypeScriptDefinitions/System/Core/RequestProcessing/$RequestManager").$RequestManager &
86
+ import("C:/Dev/WebC16/Bin/TypeScriptDefinitions/StandardServices").$ApplicationSettings &
87
+ import("C:/Dev/WebC16/Bin/TypeScriptDefinitions/System/Services/$FileService").$FileService &
88
+ import("C:/Dev/WebC16/Bin/TypeScriptDefinitions/System/Controls/Layout/LayoutServices").$LayoutInfo &
89
+ import("C:/Dev/WebC16/Bin/TypeScriptDefinitions/StandardServices").$DeviceType & Partial<
90
+ import("@docsvision/webclient/FilePreview/$FilePreview").$FilePreview> & $CardOperationsController & Partial<$LinksSearchCards> & $CardsPresentationController;
76
91
  protected createParams(): CardLinkParams;
77
92
  protected createImpl(): CardLinkImpl;
78
93
  private set binding(value);
@@ -2,32 +2,42 @@ import { ExistingCardLinkDialog } from "@docsvision/webclient/BackOffice/Existin
2
2
  import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
3
3
  import { PerformOnce } from "@docsvision/webclient/Legacy/Utils";
4
4
  import { CardLinkParams } from "@docsvision/webclient/Platform/CardLink";
5
- import { BaseControlState } from "@docsvision/webclient/System/BaseControl";
6
- import { BaseControlImpl } from "@docsvision/webclient/System/BaseControlImpl";
7
5
  import { IBindingResult } from "@docsvision/webclient/System/IBindingResult";
8
6
  import { RequestHelper } from "@docsvision/webclient/System/RequestHelper";
7
+ import { SimpleEvent } from "@docsvision/webclient/System/SimpleEvent";
9
8
  import { IValidationResult } from "@docsvision/webclient/System/IValidationResult";
10
9
  import React from "react";
11
10
  import { $LinksSearchCards } from '@docsvision/webclient/BackOffice/$LinksSearchCardsService';
12
11
  import { $LayoutLinksController } from '@docsvision/webclient/Generated/DocsVision.WebClient.Controllers';
13
12
  import { $CardId, $CardTimestamp } from '@docsvision/webclient/System/LayoutServices';
13
+ import { Typeahead } from '../../../Helpers/Typeahead/Typeahead';
14
+ import { InputBasedControlImpl, InputBasedControlState } from '../../../System/Controls/InputBasedControl/InputBasedControlImpl';
15
+ import { ITypeaheadSearchQuery } from '../../../Helpers/Typeahead/Models/ITypeaheadSearchQuery';
16
+ import { ITypeaheadSearchResult } from '../../../Helpers/Typeahead/Models/ITypeaheadSearchResult';
17
+ import { ITypeaheadVariant } from '../../../Helpers/Typeahead/Models/ITypeaheadVariant';
14
18
  /** @internal */
15
- export interface CardLinkState extends BaseControlState, CardLinkParams {
19
+ export interface CardLinkState extends CardLinkParams, InputBasedControlState<GenModels.CardLinkDataModel> {
16
20
  addExistingCardLinkDialog: ExistingCardLinkDialog;
17
21
  saveHelper: RequestHelper;
18
22
  validationMessage: string;
19
23
  bindingInfo: IBindingResult<GenModels.CardLinkDataModel>;
24
+ inputKeyDown: SimpleEvent<React.KeyboardEvent<any>>;
20
25
  }
21
26
  /** @internal */
22
- export declare class CardLinkImpl extends BaseControlImpl<CardLinkParams, CardLinkState> {
27
+ export declare class CardLinkImpl extends InputBasedControlImpl<GenModels.CardLinkDataModel, CardLinkParams, CardLinkState> {
28
+ private typeahead;
23
29
  performOnce: PerformOnce;
24
30
  constructor(props: CardLinkParams, state: CardLinkState);
25
31
  setValue(value: GenModels.CardLinkDataModel, forceUpdate?: boolean): Promise<any>;
26
32
  set value(newVal: GenModels.CardLinkDataModel);
27
33
  get value(): GenModels.CardLinkDataModel;
34
+ protected get isQueryCondition(): boolean;
28
35
  componentDidMount(): void;
29
36
  componentWillUnmount(): void;
30
37
  protected onDocumentClick: (e: MouseEvent) => void;
38
+ protected onDocumentKeyDown: (ev: KeyboardEvent) => void;
39
+ protected disallowHideByEscEditPopover: () => void;
40
+ protected allowHideByEscEditPopover: () => void;
31
41
  getLinkUrl(cardId: string): string;
32
42
  openMenu: () => void;
33
43
  closeMenu: () => void;
@@ -43,8 +53,8 @@ export declare class CardLinkImpl extends BaseControlImpl<CardLinkParams, CardLi
43
53
  onOpenSelectCardDialogMenuClick: () => void;
44
54
  onDeleteLinkedCardMenuClick: () => void;
45
55
  onTextClick: () => void;
46
- onMenuClick: () => void;
47
- get hasValue(): boolean;
56
+ onMenuClick: (ev: React.MouseEvent) => void;
57
+ hasValue: () => boolean;
48
58
  get isLoading(): boolean;
49
59
  get isMenuAvailable(): boolean;
50
60
  get cardViewAllowed(): boolean;
@@ -58,11 +68,24 @@ export declare class CardLinkImpl extends BaseControlImpl<CardLinkParams, CardLi
58
68
  protected getTextTabIndex(): 0 | -1;
59
69
  protected onTextKeyDown: (event: React.KeyboardEvent<any>) => void;
60
70
  protected onMenuKeyDown: (event: React.KeyboardEvent<any>) => void;
71
+ protected onSelected: (variant: ITypeaheadVariant) => Promise<void>;
72
+ protected attachTypeahead: (t: Typeahead) => void;
73
+ protected findItems: (typeaheadQuery: ITypeaheadSearchQuery) => Promise<ITypeaheadSearchResult>;
74
+ protected renderInto(props: CardLinkParams, container: HTMLElement): void;
75
+ protected onValueClick(event: any): void;
76
+ protected afterOpenCallback: () => void;
77
+ protected onInputChange(event: any): void;
78
+ protected renderWithTextValue(): string | JSX.Element;
79
+ protected renderWithText(): JSX.Element;
61
80
  protected renderLabel(): JSX.Element;
62
81
  /**
63
82
  * Renders settings menu and its icon to open menu
64
83
  */
65
- protected renderSettingsMenu(): JSX.Element;
84
+ protected renderSettingsMenu(isVisibleButton?: boolean): JSX.Element;
85
+ /**
86
+ * Render search with query parameter
87
+ */
88
+ protected renderInputWithPlaceholder(): JSX.Element;
66
89
  /**
67
90
  * Renders label value
68
91
  */
@@ -0,0 +1,20 @@
1
+ export declare enum FileExtensions {
2
+ DOC = ".doc",
3
+ DOCX = ".docx",
4
+ XLS = ".xls",
5
+ XLSX = ".xlsx",
6
+ ODS = ".ods",
7
+ XLT = ".xlt",
8
+ XLTX = ".xltx",
9
+ PPTX = ".pptx",
10
+ PPT = ".ppt",
11
+ JPG = ".jpg",
12
+ JPEG = ".jpeg",
13
+ GIF = ".gif",
14
+ PNG = ".png",
15
+ BMP = ".bmp",
16
+ TIFF = ".tiff",
17
+ TIF = ".tif",
18
+ EMF = ".emf",
19
+ WMF = ".wmf"
20
+ }
@@ -14,6 +14,8 @@ import { BooleanState } from '@docsvision/webclient/System/BooleanState';
14
14
  import { EventEmitter } from '@docsvision/webclient/System/EventEmitter';
15
15
  import { IValidationParams } from '@docsvision/webclient/System/IValidationParams';
16
16
  import { IValidationResult } from '@docsvision/webclient/System/IValidationResult';
17
+ import { ICardOpenedByWebDavMessage } from '@docsvision/webclient/BackOffice/FileListControlImpl';
18
+ import { IRealTimeCommunicationMessage } from '@docsvision/webclient/System/IRealTimeCommunicationMessage';
17
19
  /** @internal */
18
20
  export interface FilePickerState extends FilePickerParams, BaseControlState {
19
21
  binding: IBindingResult<GenModels.FileCardModel>;
@@ -39,6 +41,9 @@ export declare class FilePickerImpl extends BaseControlImpl<FilePickerParams, Fi
39
41
  protected availability: FilePickerOperationsAvailability;
40
42
  protected dragOverState: BooleanState;
41
43
  constructor(props: FilePickerParams, state: FilePickerState);
44
+ componentDidMount(): void;
45
+ componentWillUnmount(): void;
46
+ protected onDocumentChangedAndSavedByWebdav: (msg: IRealTimeCommunicationMessage<ICardOpenedByWebDavMessage>) => Promise<void>;
42
47
  getCssClass(): string;
43
48
  setValue(val: IFilePickerValue, redraw?: boolean, triggerEvent?: boolean): void;
44
49
  getValue(): IFilePickerValue;
@@ -19,13 +19,13 @@ import { IFileVersionCommentDeletedArgs } from '@docsvision/webclient/BackOffice
19
19
  import { $Layout } from '@docsvision/webclient/System/$Layout';
20
20
  import { EditMode } from '@docsvision/webclient/System/EditMode';
21
21
  import { IEventArgs } from '@docsvision/webclient/System/IEventArgs';
22
- import { $DeviceType } from '@docsvision/webclient/StandardServices';
22
+ import { $ApplicationSettings, $DeviceType } from '@docsvision/webclient/StandardServices';
23
23
  import { GenModels } from '@docsvision/webclient/Generated/DocsVision.WebClient.Models';
24
24
  import { BodyContainerProvider } from '@docsvision/webclient/Helpers/BodyContainerProvider';
25
25
  import React from 'react';
26
26
  import { $FilePreview } from '@docsvision/webclient/Platform/$FilePreview';
27
27
  import { Optional } from '@docsvision/web/core/services';
28
- export declare type $FilePreviewServices = $LayoutCheck & $CardInfo & $RequestManager & $FileController & $LayoutFileController & $CardId & $FileService & $Layout & $LayoutInfo & $DeviceType & Optional<$FilePreview>;
28
+ export declare type $FilePreviewServices = $LayoutCheck & $CardInfo & $RequestManager & $FileController & $ApplicationSettings & $LayoutFileController & $CardId & $FileService & $Layout & $LayoutInfo & $DeviceType & Optional<$FilePreview>;
29
29
  export declare class FilePreviewParams extends BaseControlParams {
30
30
  /** Стандартный CSS класс со стилями элемента управления. */
31
31
  standardCssClass?: string;
@@ -69,6 +69,8 @@ export declare class FilePreviewParams extends BaseControlParams {
69
69
  tabStop?: boolean;
70
70
  /** Ошибка при рендере превью. */
71
71
  errorInsideIframe?: boolean;
72
+ /** Ошибка доступа при рендере превью. */
73
+ forbiddenErrorInsideIframe?: boolean;
72
74
  /** Событие возникает перед открытием окна предварительного просмотра файла. */
73
75
  beforeOpenCloseWindow?: CancelableApiEvent<IFilePreviewingArgs>;
74
76
  /** Событие возникает после открытия окна предварительного просмотра файла. */
@@ -93,7 +95,7 @@ export declare class FilePreviewParams extends BaseControlParams {
93
95
  beforeOpenCloseCommentsBlock?: CancelableApiEvent<IEventArgs>;
94
96
  /** Событие возникает после открытия окна комментарии. */
95
97
  afterOpenCloseCommentsBlock?: BasicApiEvent<IEventArgs>;
96
- services?: $FilePreviewServices;
98
+ services?: $FilePreviewServices & $ApplicationSettings;
97
99
  }
98
100
  export declare class FilePreview extends BaseControl<FilePreviewParams, FilePreviewState> {
99
101
  static bodyProvider: BodyContainerProvider;
@@ -23,6 +23,7 @@ export interface FilePreviewState extends FilePreviewParams, BaseControlState {
23
23
  pdfUrl: string;
24
24
  isCommentsOpened: boolean;
25
25
  wasClosed: boolean;
26
+ useR7Viewer: boolean;
26
27
  }
27
28
  export declare class FilePreviewImpl extends BaseControlImpl<FilePreviewParams, FilePreviewState> {
28
29
  private rootControl;
@@ -73,6 +74,8 @@ export declare class FilePreviewImpl extends BaseControlImpl<FilePreviewParams,
73
74
  previewInModalContent: () => JSX.Element;
74
75
  addListenerToButton: () => void;
75
76
  loadFileData: (version?: GenModels.VersionedFileModel) => Promise<void>;
77
+ checkAllowedPreviewExtension: (ext: string) => boolean;
78
+ isImageExtension: (ext: string) => boolean;
76
79
  showPreviewArea: () => void;
77
80
  canComment: () => boolean;
78
81
  startDrag: (e: any) => void;
@@ -97,6 +100,10 @@ export declare class FilePreviewImpl extends BaseControlImpl<FilePreviewParams,
97
100
  selectedID: string;
98
101
  };
99
102
  onCurrentFileChange: (selectedElement: IComboBoxElement) => Promise<void>;
103
+ getPdfJsPreview: () => JSX.Element;
104
+ getR7Preview: () => JSX.Element;
100
105
  filePreviewDialog: () => JSX.Element;
106
+ private getR7ViewerUrl;
107
+ private getDocType;
101
108
  protected renderControl(): JSX.Element;
102
109
  }
@@ -1,13 +1,11 @@
1
- import { $GridController } from '@docsvision/webclient/Generated/DocsVision.WebClient.Controllers';
2
1
  import { GenModels } from '@docsvision/webclient/Generated/DocsVision.WebClient.Models';
3
2
  import { ILastSearchParametersService } from '@docsvision/webclient/Platform/$LastSearchParameters';
4
3
  /** @internal Реализация {@link ILastSearchParametersService}. */
5
4
  export declare class LastSearchParametersService implements ILastSearchParametersService {
6
- private services;
7
5
  _lastParameters: {
8
6
  [folderId: string]: GenModels.SearchParameter[];
9
7
  };
10
- constructor(services: $GridController);
8
+ constructor();
11
9
  getSearchParameters: (folderId: string) => GenModels.SearchParameter[];
12
10
  setSearchParameters: (folderId: string, value: GenModels.SearchParameter[]) => void;
13
11
  }
@@ -16,5 +16,7 @@ export declare enum ScanInfo {
16
16
  Prepare = 0,
17
17
  Process = 1,
18
18
  Success = 2,
19
- Error = 3
19
+ Error = 3,
20
+ NotConnected = 4,
21
+ NotConnectedOnFirstScan = 5
20
22
  }
@@ -0,0 +1,13 @@
1
+ import { IFolderDataLoadingPlugin } from '@docsvision/webclient/Platform/IFolderDataLoadingPlugin';
2
+ import { PluginOrder } from '@docsvision/webclient/System/PluginOrder';
3
+ import { GenModels } from '@docsvision/webclient/Generated/DocsVision.WebClient.Models';
4
+ import { ITableData } from '@docsvision/web/components/table/interfaces';
5
+ import { IFolderLoadRequest } from '@docsvision/webclient/Platform/IFolderLoadRequest';
6
+ import { $CurrentFolder } from '@docsvision/webclient/Platform/$CurrentFolder';
7
+ import { $GridController } from '@docsvision/webclient/Generated/DocsVision.WebClient.Controllers';
8
+ export declare class SaveColumnsRequestResolver implements IFolderDataLoadingPlugin {
9
+ id: string;
10
+ description: string;
11
+ order: PluginOrder;
12
+ resolveRequest(options: IFolderLoadRequest, request: GenModels.CardListRequestModel, currentData: ITableData, previousResponse?: GenModels.GridViewModel, services?: $CurrentFolder & $GridController): Promise<void>;
13
+ }
@@ -1,8 +1,9 @@
1
1
  import { ISaveColumnsService } from "@docsvision/webclient/Platform/$SaveColumns";
2
2
  import { $FolderDataLoading } from "@docsvision/webclient/Platform/$FolderDataLoading";
3
3
  import { $ResizeColumn } from "@docsvision/web/components/table/plugins/resize-column/$ResizeColumn";
4
+ import { $TableData } from "@docsvision/web/components/table/plugins/table-data";
4
5
  export declare class SaveColumnsService implements ISaveColumnsService {
5
6
  private services;
6
- constructor(services: $ResizeColumn & $FolderDataLoading);
7
+ constructor(services: $ResizeColumn & $FolderDataLoading & $TableData);
7
8
  saveUserSettings(): void;
8
9
  }
@@ -2,5 +2,6 @@ import { ITablePlugins, TablePlugins } from "@docsvision/web/components/table/in
2
2
  import { $FolderDataLoading } from "@docsvision/webclient/Platform/$FolderDataLoading";
3
3
  import { $ResizeColumn } from "@docsvision/web/components/table/plugins/resize-column/$ResizeColumn";
4
4
  import { $SaveColumns } from "@docsvision/webclient/Platform/$SaveColumns";
5
- export declare const SaveColumnsServiceProvider: TablePlugins.ServiceProvider<$SaveColumns & $FolderDataLoading & $ResizeColumn>;
5
+ import { $TableData } from "@docsvision/web/components/table/plugins/table-data";
6
+ export declare const SaveColumnsServiceProvider: TablePlugins.ServiceProvider<$SaveColumns & $FolderDataLoading & $ResizeColumn & $TableData>;
6
7
  export declare const SaveColumnsServicePlugins: ITablePlugins;
@@ -11,6 +11,7 @@ import { $CurrentLocation } from '@docsvision/webclient/System/LayoutServices';
11
11
  import { $FolderPluginProvider } from '@docsvision/webclient/Platform/$FolderPluginProvider';
12
12
  import { $WebFrameSearchPanel } from '@docsvision/webclient/Platform/$WebFrameSearchPanel';
13
13
  import { $Resources } from '@docsvision/web/core/localization/$Resources';
14
+ import { $LastSearchParameters } from '@docsvision/webclient/Platform/$LastSearchParameters';
14
15
  export declare function common(): FolderGridParams;
15
16
  export declare let gridStory: (name: string, render: (services: any) => JSX.Element, params?: StoryParameters) => () => JSX.Element;
16
- export declare function services(): $GridOptions & $Router & $GridController & $DeviceType & $ExperimentalFeature & $ApplicationSettings & $Resources & $FolderPluginProvider & $CurrentLocation & $CurrentFolder & $WebFrameSearchPanel;
17
+ export declare function services(): $GridOptions & $Router & $GridController & $DeviceType & $ExperimentalFeature & $ApplicationSettings & $Resources & $FolderPluginProvider & $CurrentLocation & $CurrentFolder & $WebFrameSearchPanel & $LastSearchParameters;
@@ -5,4 +5,6 @@ export interface IWebServicesRequest<T> {
5
5
  data?: T;
6
6
  /** Двухбуквенный ISO-код культуры. */
7
7
  locale: string;
8
+ /** Закрывать ли DVWebTool после вызова. */
9
+ exitAfterCall: boolean;
8
10
  }
@@ -3,6 +3,7 @@ export declare class PageLeaveConfirmation {
3
3
  message: string;
4
4
  constructor(condition?: () => boolean, message?: string);
5
5
  static Setup(condition?: () => boolean): PageLeaveConfirmation;
6
+ static suppressLeaveConfirmation: boolean;
6
7
  dispose(): void;
7
8
  start(): void;
8
9
  private onBeforeWindowUnload;
@@ -1,2 +1,2 @@
1
1
  /** Открывает html-разметку в новом окне, копируя туда все текущие стили, после чего инициирует печать открытой страницы. */
2
- export declare function printContent(content: string, siteUrl?: string): void;
2
+ export declare function printContent(content: string, siteUrl?: string, contentClassName?: string): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docsvision/webclient",
3
- "version": "5.16.4",
3
+ "version": "5.16.6-beta.1",
4
4
  "description": "Type definitions for DocsVision WebClient scripts and extensions.",
5
5
  "main": "index.js",
6
6
  "scripts": {},