@docsvision/webclient 6.1.15 → 6.1.16

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.
@@ -36,7 +36,7 @@ export declare class AgreementManagementImpl extends BaseControlImpl<AgreementMa
36
36
  private startApproving;
37
37
  private requestClearReconcilationList;
38
38
  protected onSaveClick(): Promise<void>;
39
- protected onInterruptClick(): Promise<void>;
39
+ protected onInterruptClick(stageId?: string): Promise<void>;
40
40
  protected onOperationButtonClick(operation: GenModels.ApprovalOperationKind): Promise<void>;
41
41
  start(): Promise<unknown>;
42
42
  protected handleLoadingErrorOnSidebarOpen(loadingTimer: any): void;
@@ -4,6 +4,7 @@ import { StaffDirectoryItems } from '@docsvision/webclient/BackOffice/StaffDirec
4
4
  /** @internal */
5
5
  export declare class AgreementStageState {
6
6
  stageExpanded: boolean;
7
+ canInterrupt: boolean;
7
8
  approversOrder: string[];
8
9
  approverSelect: StaffDirectoryItems;
9
10
  durationType: ReconcileDurationType;
@@ -1309,6 +1309,10 @@ export declare namespace GenControllers {
1309
1309
  * Gets access token for file.
1310
1310
  */
1311
1311
  getAccessToken(fileCardId: string, versionId: string, ownerCardId: string, options?: RequestOptions): Promise<any>;
1312
+ /**
1313
+ * Gets an access token for a file after checking role-based access rights.
1314
+ */
1315
+ getAccessTokenWithAccessCheck(cardId: string, fileCardId: string, versionId: string, ownerCardId: string, options?: RequestOptions): Promise<any>;
1312
1316
  /**
1313
1317
  * Send message to web client.
1314
1318
  */
@@ -1324,6 +1328,7 @@ export declare namespace GenControllers {
1324
1328
  updateFile(form: Array<Array<string>>, options?: RequestOptions): Promise<any>;
1325
1329
  removeAccessToken(accessToken: string, options?: RequestOptions): Promise<any>;
1326
1330
  getAccessToken(fileCardId: string, versionId: string, ownerCardId: string, options?: RequestOptions): Promise<any>;
1331
+ getAccessTokenWithAccessCheck(cardId: string, fileCardId: string, versionId: string, ownerCardId: string, options?: RequestOptions): Promise<any>;
1327
1332
  sendMessageAfterUnlock(accessToken: string, options?: RequestOptions): Promise<any>;
1328
1333
  }
1329
1334
  }
@@ -1343,11 +1348,11 @@ export declare namespace GenControllers {
1343
1348
  /**
1344
1349
  * Gets server connection address
1345
1350
  */
1346
- getServerAddress(options?: RequestOptions): Promise<string>;
1351
+ getServerAddress(options?: RequestOptions): Promise<any>;
1347
1352
  }
1348
1353
  class R7TokenActivationController extends ControllerBase implements IR7TokenActivationController {
1349
1354
  getAccessToken(config: string, options?: RequestOptions): Promise<any>;
1350
- getServerAddress(options?: RequestOptions): Promise<string>;
1355
+ getServerAddress(options?: RequestOptions): Promise<any>;
1351
1356
  }
1352
1357
  }
1353
1358
  export declare type $R7TokenActivationController = {
@@ -2140,6 +2145,16 @@ export declare namespace GenControllers {
2140
2145
  * @returns JSON representation of {@link GenModels}
2141
2146
  */
2142
2147
  interruptCurrentStages(documentCardId: string, reconcileCardId: string, options?: RequestOptions): Promise<void>;
2148
+ /**
2149
+ * Interrupt current stages
2150
+ *
2151
+ * @param documentCardId Document card id
2152
+ * @param reconcileCardId Reconcile card id
2153
+ * @param stageId Interrupted stage id
2154
+ *
2155
+ * @returns JSON representation of {@link GenModels}
2156
+ */
2157
+ interruptStage(documentCardId: string, reconcileCardId: string, stageId: string, options?: RequestOptions): Promise<void>;
2143
2158
  /**
2144
2159
  * Stop agreement
2145
2160
  *
@@ -2194,6 +2209,7 @@ export declare namespace GenControllers {
2194
2209
  createReconciliation(model: GenModels.ReconcilationCreationModel, options?: RequestOptions): Promise<string>;
2195
2210
  changeStages(model: GenModels.ReconcilationEditModel, options?: RequestOptions): Promise<void>;
2196
2211
  interruptCurrentStages(documentCardId: string, reconcileCardId: string, options?: RequestOptions): Promise<void>;
2212
+ interruptStage(documentCardId: string, reconcileCardId: string, stageId: string, options?: RequestOptions): Promise<void>;
2197
2213
  agreementStop(documentCardId: string, reconcileCardId: string, options?: RequestOptions): Promise<void>;
2198
2214
  agreementFinish(documentCardId: string, reconcileCardId: string, options?: RequestOptions): Promise<void>;
2199
2215
  agreementPause(documentCardId: string, reconcileCardId: string, options?: RequestOptions): Promise<void>;
@@ -8569,6 +8569,7 @@ export declare namespace GenModels {
8569
8569
  columnWidth: string;
8570
8570
  tip: string;
8571
8571
  visibility: boolean;
8572
+ visibilityEditOperation: string;
8572
8573
  }
8573
8574
  }
8574
8575
  export declare namespace GenModels {
@@ -26,6 +26,7 @@ export interface IFilePreviewState extends FilePreviewParams, BaseControlState {
26
26
  useR7Viewer: boolean;
27
27
  serverR7ConnectionAddress: string;
28
28
  viewer: IFileViewerConstructor | FileViewer;
29
+ r7AccessError: boolean;
29
30
  }
30
31
  export interface FilePreviewState extends IFilePreviewState {
31
32
  }
@@ -0,0 +1,2 @@
1
+ import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
2
+ export declare function resetTrusteeOrder(currentOrder: GenModels.AccessControlTrustee[], descriptor: GenModels.SecurityDescriptor): GenModels.AccessControlTrustee[];
@@ -5,7 +5,7 @@ import { IRowEventArgs } from "@docsvision/webclient/Platform/IRowEventArgs";
5
5
  import { TableImpl, ITableState } from "@docsvision/webclient/Platform/TableImpl";
6
6
  import { LayoutControl } from '@docsvision/webclient/System/BaseControl';
7
7
  import { $Layout, SaveCardOptions } from "@docsvision/webclient/System/$Layout";
8
- import { $CardId, $RowId, $RowInfo } from '@docsvision/webclient/System/LayoutServices';
8
+ import { $CardId, $EditOperationStore, $RowId, $RowInfo } from '@docsvision/webclient/System/LayoutServices';
9
9
  import { IBindingResult } from "@docsvision/webclient/System/IBindingResult";
10
10
  import { EditMode } from "@docsvision/webclient/System/EditMode";
11
11
  import { BasicApiEvent, CancelableApiEvent } from "@docsvision/webclient/System/ApiEvent";
@@ -72,7 +72,7 @@ export declare class TableParams extends PanelParams {
72
72
  expanding: CancelableApiEvent<IEventArgs>;
73
73
  /** Событие, возникающее при разворачивании. */
74
74
  expanded: BasicApiEvent<IEventArgs>;
75
- services?: $LayoutCardController & $LayoutRowController & $Layout & $CardId & $RowId & Optional<$RowInfo> & $LayoutManager & $DeviceType;
75
+ services?: $LayoutCardController & $LayoutRowController & $Layout & $CardId & $RowId & Optional<$RowInfo> & $LayoutManager & $DeviceType & $EditOperationStore;
76
76
  }
77
77
  /**
78
78
  * Класс элемента управления Таблица
@@ -127,6 +127,12 @@ export declare class Table extends Panel<TableParams, ITableState> {
127
127
  * @param visibility Виден ли или нет
128
128
  */
129
129
  setColumnVisibility(columnNumber: number, visibility: boolean): void;
130
+ /**
131
+ * Установка видимости для столбца таблицы.
132
+ * @param columnNumber Номер столбца
133
+ * @param visibility Виден ли или нет
134
+ */
135
+ setColumnVisibilityEditOperation(columnNumber: number, visibilityEditOperation: string): void;
130
136
  /**
131
137
  * Возвращает номер строки или -1, если строка не найдена.
132
138
  * @param rowId Идентификатор искомой строки
@@ -1,11 +1,13 @@
1
1
  import { Panel, PanelParams } from "@docsvision/webclient/Platform/Panel";
2
2
  import { TableColumnImpl, ITableColumnState } from "@docsvision/webclient/Platform/TableColumnImpl";
3
+ import { $EditOperationStore } from "@docsvision/webclient/System/LayoutServices";
3
4
  /**
4
5
  * Содержит публичные свойства элемента управления [Столбец таблицы]{@link TableColumn}.
5
6
  */
6
7
  export declare class TableColumnParams extends PanelParams {
7
8
  /** Стандартный CSS класс со стилями элемента управления. */
8
9
  standardCssClass?: string;
10
+ services: $EditOperationStore;
9
11
  }
10
12
  /**
11
13
  * Класс элемента управления Столбец таблицы
@@ -2,6 +2,7 @@
2
2
  import { PanelImpl, IPanelState } from "@docsvision/webclient/Platform/PanelImpl";
3
3
  import { TableColumnParams } from "@docsvision/webclient/Platform/TableColumn";
4
4
  import { TableImpl } from "@docsvision/webclient/Platform/TableImpl";
5
+ import { $EditOperationStore } from "@docsvision/webclient/System/LayoutServices";
5
6
  /** @internal */
6
7
  export interface ITableColumnState extends TableColumnParams, IPanelState {
7
8
  /** Таблица. */
@@ -10,6 +11,8 @@ export interface ITableColumnState extends TableColumnParams, IPanelState {
10
11
  columnNumber: number;
11
12
  /** Ширина столбца таблицы (любые единицы измерения). */
12
13
  columnWidth: string;
14
+ /** Сервисы */
15
+ services: $EditOperationStore;
13
16
  }
14
17
  export interface TableColumnState extends ITableColumnState {
15
18
  }
@@ -17,5 +20,6 @@ export interface TableColumnState extends ITableColumnState {
17
20
  export declare class TableColumnImpl extends PanelImpl<TableColumnParams, ITableColumnState> {
18
21
  constructor(props: TableColumnParams, state: ITableColumnState);
19
22
  protected prepareChildren(): void;
23
+ private checkVisibility;
20
24
  renderControl(): JSX.Element;
21
25
  }
@@ -18,5 +18,7 @@ export declare class TableColumnWrapper implements GenModels.LayoutTableColumnIn
18
18
  set tip(val: string);
19
19
  get visibility(): boolean;
20
20
  set visibility(val: boolean);
21
+ get visibilityEditOperation(): string;
22
+ set visibilityEditOperation(val: string);
21
23
  }
22
24
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docsvision/webclient",
3
- "version": "6.1.15",
3
+ "version": "6.1.16",
4
4
  "description": "Type definitions for DocsVision WebClient scripts and extensions.",
5
5
  "main": "index.js",
6
6
  "scripts": {},
@@ -1,2 +0,0 @@
1
- export declare function generateTestData<T>(modelName: string, testCaseId?: string): Promise<T>;
2
- export declare function generateTestDataArray<T>(modelName: string, count?: number, testCaseId?: string): Promise<T[]>;