@docsvision/webclient 5.17.1 → 5.17.2-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/Account/LoginContainer.d.ts +1 -0
  2. package/Account/LoginLogic.d.ts +13 -0
  3. package/Account/ProviderButton.d.ts +4 -2
  4. package/Account/index.d.ts +2 -0
  5. package/BackOffice/$DigitalSignature.d.ts +2 -0
  6. package/BackOffice/$WebFrameDirectorySearchInfoStorageService.d.ts +2 -1
  7. package/BackOffice/ActualizeProfileCertificateSource.d.ts +1 -0
  8. package/BackOffice/AuthenticationKindsFormatLogin.d.ts +7 -0
  9. package/BackOffice/AuthenticationKindsGetMaskOptions.d.ts +8 -0
  10. package/BackOffice/AuthenticationKindsLogic.d.ts +4 -0
  11. package/BackOffice/AuthenticationKindsUpdateLogin.d.ts +2 -0
  12. package/BackOffice/AuthenticationKindsValidRegExps.d.ts +3 -0
  13. package/BackOffice/AuthenticationKindsView.d.ts +3 -3
  14. package/BackOffice/CheckSectionAccessRights.d.ts +3 -0
  15. package/BackOffice/{CheckEmployeeAccount.d.ts → CheckStaffDirectoryData.d.ts} +1 -0
  16. package/BackOffice/ChildTasksPerformingImpl.d.ts +3 -3
  17. package/BackOffice/ConvertPowersOfAttorneyToComboBoxItems.d.ts +6 -0
  18. package/BackOffice/ConvertResponseToTree.d.ts +4 -0
  19. package/BackOffice/DeleteSection.d.ts +2 -0
  20. package/BackOffice/DepartmentFilterViewComponents.d.ts +1 -1
  21. package/BackOffice/DigitalSignatureService.d.ts +3 -2
  22. package/BackOffice/DirectoryDesRowSelectDialog.d.ts +7 -0
  23. package/BackOffice/DirectoryDesignerRow.d.ts +10 -5
  24. package/BackOffice/DirectoryDesignerRowImpl.d.ts +2 -2
  25. package/BackOffice/DirectorySearchContent.d.ts +1 -1
  26. package/BackOffice/DirectorySearchFilters.d.ts +6 -0
  27. package/BackOffice/DirectorySearchResultView.d.ts +1 -1
  28. package/BackOffice/DirectoryTree.d.ts +1 -0
  29. package/BackOffice/DssSignRequestModels.d.ts +1 -0
  30. package/BackOffice/EmailButtonView.d.ts +2 -2
  31. package/BackOffice/ExistingCardLinkDialog.d.ts +4 -2
  32. package/BackOffice/FileSign.d.ts +14 -2
  33. package/BackOffice/FileSignCreateDialog.d.ts +81 -0
  34. package/BackOffice/FileSignListDialog.d.ts +9 -2
  35. package/BackOffice/FileSignListDialog.stories.d.ts +13 -0
  36. package/BackOffice/FileSignSelectCertificateDialog.d.ts +54 -0
  37. package/BackOffice/FindSection.d.ts +9 -0
  38. package/BackOffice/GetPowersIconClassName.d.ts +7 -0
  39. package/BackOffice/GetPowersRootSectionId.d.ts +5 -0
  40. package/BackOffice/IExtraFileAddingArgs.d.ts +1 -0
  41. package/BackOffice/IFileSignInteractionModel.d.ts +1 -0
  42. package/BackOffice/IMainFileAddingArgs.d.ts +1 -0
  43. package/BackOffice/IPowerModel.d.ts +10 -0
  44. package/BackOffice/IPowersDataLoadingEventArgs.d.ts +11 -0
  45. package/BackOffice/IPowersDialog.d.ts +5 -0
  46. package/BackOffice/IPowersDirectoryOptions.d.ts +12 -0
  47. package/BackOffice/IPowersTreeRow.d.ts +6 -0
  48. package/BackOffice/Index.d.ts +0 -6
  49. package/BackOffice/LinksImpl.d.ts +2 -0
  50. package/BackOffice/LoadPowersSectionLayoutFunctions.d.ts +7 -0
  51. package/BackOffice/MarkPartnersAsDepartment.d.ts +2 -0
  52. package/BackOffice/PartnerBase.d.ts +2 -2
  53. package/BackOffice/PartnerDirectoryBase.d.ts +3 -3
  54. package/BackOffice/PowerOfAttorneyErrorMessage.d.ts +7 -0
  55. package/BackOffice/PowerOfAttorneyInfo.d.ts +12 -0
  56. package/BackOffice/Powers.d.ts +72 -0
  57. package/BackOffice/Powers.stories.d.ts +20 -0
  58. package/BackOffice/PowersDialogLocations.d.ts +3 -0
  59. package/BackOffice/PowersDirectory.d.ts +48 -0
  60. package/BackOffice/PowersDirectory.stories.d.ts +20 -0
  61. package/BackOffice/PowersDirectoryConstants.d.ts +12 -0
  62. package/BackOffice/PowersDirectoryContainer.d.ts +7 -0
  63. package/BackOffice/PowersDirectoryHead.d.ts +7 -0
  64. package/BackOffice/PowersDirectoryInfo.d.ts +16 -0
  65. package/BackOffice/PowersDirectoryLogic.d.ts +172 -0
  66. package/BackOffice/PowersDirectorySaveExpandedState.d.ts +5 -0
  67. package/BackOffice/PowersDirectoryTreeAddButton.d.ts +16 -0
  68. package/BackOffice/PowersDirectoryView.d.ts +61 -0
  69. package/BackOffice/PowersImpl.d.ts +72 -0
  70. package/BackOffice/PowersRootSectionConstants.d.ts +17 -0
  71. package/BackOffice/PowersSelectDialog.d.ts +74 -0
  72. package/BackOffice/PrintButtonView.d.ts +1 -1
  73. package/BackOffice/ProcessSettingsChanged.d.ts +1 -0
  74. package/BackOffice/SetPowersCodeUpdateDate.d.ts +2 -0
  75. package/BackOffice/SignatureButtonLogic.d.ts +2 -0
  76. package/BackOffice/SignatureButtonOptions.d.ts +3 -2
  77. package/BackOffice/SignatureDialog.d.ts +8 -2
  78. package/BackOffice/SignatureDialog.stories.d.ts +4 -0
  79. package/BackOffice/SignatureDialogFrame.d.ts +2 -0
  80. package/BackOffice/SignatureDialogLabels.d.ts +2 -2
  81. package/BackOffice/SignatureDialogLogic.d.ts +18 -0
  82. package/BackOffice/SignatureDialogMethods.d.ts +2 -2
  83. package/BackOffice/SignatureDialogPowersOfAttorney.d.ts +9 -0
  84. package/BackOffice/SignatureDialogSettings.d.ts +2 -2
  85. package/BackOffice/StaffDirectoryItems.d.ts +1 -1
  86. package/BackOffice/StaffDirectoryItemsImpl.d.ts +1 -1
  87. package/BackOffice/StaffDirectorySelectDialog.d.ts +1 -0
  88. package/BackOffice/TaskDelegate.d.ts +1 -0
  89. package/BackOffice/TasksTableView.d.ts +3 -3
  90. package/Generated/DocsVision.WebClient.Controllers.d.ts +179 -0
  91. package/Generated/DocsVision.WebClient.Models.d.ts +703 -1
  92. package/Helpers/Button.d.ts +2 -0
  93. package/Helpers/ComandBarButton.d.ts +2 -0
  94. package/Helpers/IconButton.d.ts +2 -0
  95. package/Helpers/InputMask/IInputMaskProps.d.ts +71 -0
  96. package/Helpers/InputMask/InputMask.d.ts +8 -0
  97. package/Helpers/InputMask/InputMask.stories.d.ts +11 -0
  98. package/Helpers/InputMask/InputMaskView.d.ts +14 -0
  99. package/Helpers/InputMask/components/InputMaskContainer.d.ts +7 -0
  100. package/Helpers/InputMask/components/InputMaskField.d.ts +7 -0
  101. package/Helpers/InputMask/components/InputMaskLabel.d.ts +18 -0
  102. package/Helpers/InputMask/index.d.ts +5 -0
  103. package/Helpers/ModalDialog/ModalDialog.d.ts +1 -0
  104. package/Helpers/Table/TableHelperRow.d.ts +4 -0
  105. package/Legacy/ApprovalFilePanel.d.ts +2 -1
  106. package/Legacy/BasicGridHtmlBuilder.d.ts +1 -1
  107. package/Legacy/ISignatureListItemDataModel.d.ts +1 -0
  108. package/Legacy/StandardControllers.d.ts +2 -2
  109. package/MainBundle.d.ts +4 -0
  110. package/Platform/AggregatesApplyButtonPanel.d.ts +1 -0
  111. package/Platform/ApprovalVisualizationVisBlock.d.ts +1 -1
  112. package/Platform/BaseMainMenuItemImpl.d.ts +2 -2
  113. package/Platform/BaseNavigationMenuItemRouteHandler.d.ts +1 -0
  114. package/Platform/CardLink.d.ts +7 -7
  115. package/Platform/CardLinkImpl.d.ts +2 -0
  116. package/Platform/CertificateSettingsView.d.ts +1 -1
  117. package/Platform/ExportESignButton.d.ts +2 -0
  118. package/Platform/FilePickerImpl.d.ts +1 -0
  119. package/Platform/FilePickerOperations.d.ts +2 -1
  120. package/Platform/FilteringExtendedData.d.ts +1 -0
  121. package/Platform/FilteringRequestResolver.d.ts +4 -0
  122. package/Platform/FilteringResponseResolver.d.ts +4 -0
  123. package/Platform/ListCheckbox.d.ts +1 -1
  124. package/Platform/ListInput.d.ts +1 -1
  125. package/Platform/LoaderDialog.d.ts +1 -1
  126. package/Platform/QuotesHighlight.d.ts +2 -0
  127. package/Platform/QuotesLogic.d.ts +7 -0
  128. package/Platform/QuotesModalQuote.d.ts +2 -0
  129. package/Platform/SearchTextInput.d.ts +1 -1
  130. package/Platform/SecurityDescriptorDialog.d.ts +1 -1
  131. package/Platform/Table.d.ts +2 -0
  132. package/Platform/TableImpl.d.ts +1 -1
  133. package/Platform/TextListInputCultureWiseParseFloat.d.ts +3 -0
  134. package/Platform/TextListInputLogic.d.ts +4 -0
  135. package/Platform/UserProfileDialog.d.ts +1 -1
  136. package/System/DirectorySelectDialog.d.ts +3 -2
  137. package/System/NumberCultureFormatting.d.ts +9 -0
  138. package/System/ResourcesStub.d.ts +60 -1
  139. package/package.json +1 -1
  140. package/BackOffice/AuthenticationKindsTextBox.d.ts +0 -7
@@ -2,12 +2,17 @@ import { $DocumentCardController } from "@docsvision/webclient/Legacy/DocumentCa
2
2
  import { ISignatureListItemDataModel } from "@docsvision/webclient/Legacy/ISignatureListItemDataModel";
3
3
  import { LoadingState } from "@docsvision/webclient/System/LoadingState";
4
4
  import React from "react";
5
- import { $LayoutDocumentController, $SignatureController } from "@docsvision/webclient/Generated/DocsVision.WebClient.Controllers";
5
+ import { $LayoutDocumentController, $PowerOfAttorneyApiController, $SignatureController } from "@docsvision/webclient/Generated/DocsVision.WebClient.Controllers";
6
6
  import { $WebViewIOSEnabled } from "@docsvision/webclient/StandardServices";
7
7
  import { Popover } from "@docsvision/webclient/Helpers/PopoverHelpers/Popover";
8
+ import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
8
9
  import { ISignatureListItemDetailDataModel } from "@docsvision/webclient/Legacy/ISignatureListItemDetailDataModel";
9
10
  import { $RequestManager } from "@docsvision/webclient/System/$RequestManager";
10
11
  import { $CloudSignature } from "@docsvision/webclient/BackOffice/$CloudSignature";
12
+ import { $Resources } from "@docsvision/web/core/localization/$Resources";
13
+ import { $MessageBox } from "@docsvision/webclient/System/$MessageBox";
14
+ import { $Router } from "@docsvision/webclient/System/$Router";
15
+ import { $MessageWindow } from "@docsvision/web/components/modals/message-box";
11
16
  /** @internal */
12
17
  export interface IFileSignListDialogProps {
13
18
  /** Идентификатор документа. */
@@ -16,7 +21,7 @@ export interface IFileSignListDialogProps {
16
21
  onInit?: () => void;
17
22
  /** Вызывается при закрытии окна со списком подписей. */
18
23
  onClose?: () => void;
19
- services: $DocumentCardController & $SignatureController & $LayoutDocumentController & $WebViewIOSEnabled & $RequestManager & $CloudSignature;
24
+ services: $DocumentCardController & $SignatureController & $LayoutDocumentController & $MessageWindow & $WebViewIOSEnabled & $RequestManager & $CloudSignature & $PowerOfAttorneyApiController & $Resources & $MessageBox & $Router;
20
25
  }
21
26
  /** @internal */
22
27
  export interface IFileSignListDialogState {
@@ -58,6 +63,8 @@ export declare class FileSignListDialog extends React.Component<IFileSignListDia
58
63
  */
59
64
  protected renderSignatureDetails(signatureId: string, showTimestamp: boolean, detailsColumnCount: number, showExpireDate: boolean): any[];
60
65
  private renderSignatureInfoPopover;
66
+ protected renderResultOfValidation(powerOfAttorneyData: GenModels.PowerOfAttorneyVerificationModel): JSX.Element;
67
+ protected renderPowerOfAttorneyInfo(powerOfAttorneyId: any): Promise<void>;
61
68
  /** Отрисовывает таблицу с информацией о подписях. */
62
69
  renderTable(): JSX.Element;
63
70
  /** @internal */
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { FileSignListDialog } from '@docsvision/webclient/BackOffice/FileSignListDialog';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof FileSignListDialog;
6
+ };
7
+ export default _default;
8
+ export declare const Loading: () => JSX.Element;
9
+ export declare const WithoutPowerOfAttorney: () => JSX.Element;
10
+ export declare const WithValidPowerOfAttorney: () => JSX.Element;
11
+ export declare const WithInvalidPowerOfAttorney: () => JSX.Element;
12
+ export declare const InformationAboutPowerOfAttorney: () => JSX.Element;
13
+ export declare const InformationAboutInconsistencies: () => JSX.Element;
@@ -0,0 +1,54 @@
1
+ import { RequestHelper } from "@docsvision/webclient/System/RequestHelper";
2
+ import { ICryptoCertificate, ICryptoCertificateInfo } from "Libs/CryptoPro/Crypto";
3
+ import React from "react";
4
+ import { $WebViewIOSEnabled } from "@docsvision/webclient/StandardServices";
5
+ export interface IFileSignSelectCertificateDialogProps {
6
+ /** Видно ли окно. */
7
+ isVisible?: boolean;
8
+ /** Вызывается при закрытии данного окна. */
9
+ onClose?: (selectedCertInfo: ICryptoCertificateInfo) => void;
10
+ /** Сервисы */
11
+ services?: $WebViewIOSEnabled;
12
+ }
13
+ export interface IFileSignSelectCertificateDialogState {
14
+ /** Инициализирован ли компонент. */
15
+ isInitialized: boolean;
16
+ /** Выбранный сертификат для подписи. */
17
+ selectedCert: ICryptoCertificate;
18
+ /** Видно ли окно. */
19
+ isVisible: boolean;
20
+ /** Список доступных сертификатов для подписи. */
21
+ certs: ICryptoCertificate[];
22
+ /** Помощник для загрузки данных о списке сертификатов. */
23
+ loadingHelper: RequestHelper;
24
+ }
25
+ export declare class FileSignSelectCertificateDialog extends React.Component<IFileSignSelectCertificateDialogProps, IFileSignSelectCertificateDialogState> {
26
+ constructor(props: IFileSignSelectCertificateDialogProps);
27
+ /** @internal */
28
+ UNSAFE_componentWillMount(): void;
29
+ /** @internal */
30
+ UNSAFE_componentWillReceiveProps(nextProps: IFileSignSelectCertificateDialogProps): void;
31
+ /** Загружаются ли сертификаты в данный момент. */
32
+ get isCertsLoading(): boolean;
33
+ /** Обновляет список доступных сертификатов. */
34
+ updateCerts: () => Promise<any>;
35
+ /** Показать окно. */
36
+ show: () => void;
37
+ /** Скрыть окно. */
38
+ hide: () => void;
39
+ /** При закрытии окна. */
40
+ protected onClose: () => void;
41
+ /**
42
+ * При нажатии на строку таблицы для выбора сертификата.
43
+ * @param cert Информация о сертификате для данной строки.
44
+ */
45
+ protected onCertRowClick: (cert: ICryptoCertificate) => void;
46
+ /**
47
+ * Отрисовывает строку таблицы для выбора сертификата.
48
+ * @param cert Информация о сертификате для данной строки.
49
+ */
50
+ protected renderCertRow(cert: ICryptoCertificate): JSX.Element;
51
+ private saveCertList;
52
+ /** @internal */
53
+ render(): JSX.Element;
54
+ }
@@ -0,0 +1,9 @@
1
+ import { IDirectoryTreeRow } from "@docsvision/webclient/BackOffice/IDirectoryTreeRow";
2
+ export declare type FindSectionResult = {
3
+ row: IDirectoryTreeRow;
4
+ parentRow: IDirectoryTreeRow;
5
+ index: number;
6
+ path: IDirectoryTreeRow[];
7
+ };
8
+ export declare function findSection(sectionId: string, tree: IDirectoryTreeRow[]): FindSectionResult;
9
+ export declare function findSectionImpl(sectionId: string, tree: IDirectoryTreeRow[], path: IDirectoryTreeRow[]): FindSectionResult;
@@ -0,0 +1,7 @@
1
+ import { PowersDirectoryDataType } from "@docsvision/webclient/BackOffice/PowersRootSectionConstants";
2
+ export declare const POWERS_DIRECTORY_ICON_CLASSES: {
3
+ Root: string;
4
+ 0: string;
5
+ 1: string;
6
+ };
7
+ export declare const getPowersSectionIconClass: (dataType: PowersDirectoryDataType) => string;
@@ -0,0 +1,5 @@
1
+ import { POWERS_CODE_TAB_ID } from "@docsvision/webclient/BackOffice/PowersDirectoryView";
2
+ export declare const POWERS_SECTION_ID_DICTIONARY: {
3
+ "powers code": string;
4
+ };
5
+ export declare const getPowersRootSectionId: (tabId: string) => any;
@@ -1,4 +1,5 @@
1
1
  import { IFileListItem } from "@docsvision/webclient/BackOffice/IFileListItem";
2
2
  export interface IExtraFileAddingArgs {
3
3
  fileItem: IFileListItem;
4
+ multipleAddingFiles: File[];
4
5
  }
@@ -14,6 +14,7 @@ export interface IFileSignInteractionModel {
14
14
  getFiles: () => IFileSignInfo[];
15
15
  signButton: HTMLElement;
16
16
  viewSignButton: HTMLElement;
17
+ doNotShowSignatureCompleteMessage?: boolean;
17
18
  beforeShowSignDialogCallback: () => Promise<any>;
18
19
  beforeSignCallback: () => Promise<any>;
19
20
  beforeViewSignCallback: () => Promise<any>;
@@ -1,4 +1,5 @@
1
1
  import { IFileListItem } from "@docsvision/webclient/BackOffice/IFileListItem";
2
2
  export interface IMainFileAddingArgs {
3
3
  fileItem: IFileListItem;
4
+ multipleAddingFiles: File[];
4
5
  }
@@ -0,0 +1,10 @@
1
+ import { PowersDirectoryDataType } from "@docsvision/webclient/BackOffice/PowersRootSectionConstants";
2
+ import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
3
+ export interface IPowerModel extends GenModels.IDirectoryItemData {
4
+ id: string;
5
+ name: string;
6
+ code: string;
7
+ powerDataType: PowersDirectoryDataType;
8
+ dataType: GenModels.DirectoryDataType;
9
+ hasChildren: boolean;
10
+ }
@@ -0,0 +1,11 @@
1
+ import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
2
+ export declare class IPowersDataLoadingEventArgs {
3
+ /**
4
+ * Запрашиваемая информация, включая текущий фильтр.
5
+ */
6
+ query: GenModels.GetDataRequest | GenModels.SearchPowersRequest;
7
+ /**
8
+ * Результат выполнения запроса.
9
+ */
10
+ result?: GenModels.GetDataResponse | GenModels.SearchPowersQueryResponse;
11
+ }
@@ -0,0 +1,5 @@
1
+ import { IPowerModel } from '@docsvision/webclient/BackOffice/IPowerModel';
2
+ import { IDirectorySelectDialog } from '@docsvision/webclient/System/IDirectorySelectDialog';
3
+ export interface IPowersDialog extends IDirectorySelectDialog {
4
+ selectedItems?: IPowerModel[];
5
+ }
@@ -0,0 +1,12 @@
1
+ import { PowersDirectoryParams } from "@docsvision/webclient/BackOffice/PowersDirectory";
2
+ import { PowersDirectoryLogic } from "@docsvision/webclient/BackOffice/PowersDirectoryLogic";
3
+ import { PowersDirectoryView } from "@docsvision/webclient/BackOffice/PowersDirectoryView";
4
+ /** Сервис для переопределения реализации PowersDirectory */
5
+ export interface IPowersDirectoryOptions {
6
+ getPowersDirectoryView(params: PowersDirectoryParams): PowersDirectoryView;
7
+ getPowersDirectoryLogic(params: PowersDirectoryParams): PowersDirectoryLogic;
8
+ }
9
+ export declare type $PowersDirectoryOptions = {
10
+ powersDirectoryOptions: IPowersDirectoryOptions;
11
+ };
12
+ export declare const $PowersDirectoryOptions: string | ((model?: $PowersDirectoryOptions) => IPowersDirectoryOptions);
@@ -0,0 +1,6 @@
1
+ import { IDirectoryTreeRow } from "@docsvision/webclient/BackOffice/IDirectoryTreeRow";
2
+ import { PowersDirectoryDataType } from "@docsvision/webclient/BackOffice/PowersRootSectionConstants";
3
+ import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
4
+ export interface IPowersTreeRow extends Omit<IDirectoryTreeRow, "dataType">, Omit<GenModels.DirectoryItemData, "dataType"> {
5
+ dataType?: PowersDirectoryDataType;
6
+ }
@@ -1,9 +1,3 @@
1
- export declare enum DirectorySearchFilters {
2
- Organization = "0",
3
- Employee = "1",
4
- Group = "2",
5
- JobTitle = "3"
6
- }
7
1
  export declare enum NomenclatureSearchFilters {
8
2
  Case = "0",
9
3
  Unit = "1"
@@ -31,6 +31,7 @@ export interface LinksState extends LinksParams, IPanelState {
31
31
  linksLoaded: boolean;
32
32
  isAddUrlDialogShown: boolean;
33
33
  editOperationAllowed: boolean;
34
+ lastMaximized: boolean;
34
35
  }
35
36
  /** @internal */
36
37
  export declare type LinksImplState = LinksState;
@@ -77,6 +78,7 @@ export declare class LinksImpl extends PanelImpl<LinksParams, LinksState> {
77
78
  closeAddNewUrlDialog: () => void;
78
79
  onAddNewCardLinkClick(ev?: React.MouseEvent<any>): Promise<void>;
79
80
  onAddExistingCardLinkClick(ev?: React.MouseEvent): void;
81
+ setLastMaximized: (value: any) => void;
80
82
  protected onViewFileMenuClick(linkItem: LinkItem): void;
81
83
  protected onFollowLinkClick(linkItem: LinkItem): void;
82
84
  onDeleteMenuClick(linkItem: LinkItem): void;
@@ -0,0 +1,7 @@
1
+ import { IDirectoryTreeRow } from "@docsvision/webclient/BackOffice/IDirectoryTreeRow";
2
+ import { $LayoutRowController } from "@docsvision/webclient/Generated/DocsVision.WebClient.Controllers";
3
+ import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
4
+ export declare function loadSectionInfoLayout(section: IDirectoryTreeRow, rowSectionId: string, services: $LayoutRowController): Promise<GenModels.LayoutRowViewModel>;
5
+ export declare function loadSectionSummaryLayout(section: IDirectoryTreeRow, rowSectionId: string, services: $LayoutRowController): Promise<GenModels.LayoutRowViewModel>;
6
+ export declare function loadSectionEditLayout(section: IDirectoryTreeRow, rowSectionId: string, services: $LayoutRowController): Promise<GenModels.LayoutRowViewModel>;
7
+ export declare function loadSectionCreateLayout(parentSection: IDirectoryTreeRow | null, rowSectionId: string, type: GenModels.DirectoryDataType, services: $LayoutRowController): Promise<GenModels.LayoutRowViewModel>;
@@ -0,0 +1,2 @@
1
+ import { LayoutControl } from "@docsvision/webclient/System/BaseControl";
2
+ export declare function markPartnersCompanyAsDepartment(sender: LayoutControl): Promise<void>;
@@ -69,8 +69,8 @@ export declare class PartnerBaseParams<T> extends InputBasedControlParams<T> {
69
69
  export declare abstract class PartnerBase<T extends GenModels.DepartmentModel | GenModels.EmployeeDataModel, ParamsT extends PartnerBaseParams<T> = PartnerBaseParams<T>, StateT extends PartnerBaseState<T> = PartnerBaseState<T>> extends InputBasedControl<T, ParamsT, StateT> {
70
70
  /** @internal */
71
71
  protected getServices(): $LayoutPartnerController & $EditOperationStore & $LayoutInfo & $LayoutRowController & $LayoutController & Partial<$LayoutController> & $LayoutManager & Partial<
72
- import("C:/Dev/WebC17/Bin/TypeScriptDefinitions/System/Controls/Layout/LayoutServices").$CurrentLocation> & Partial<
73
- import("C:/Dev/WebC17/Bin/TypeScriptDefinitions/System/Controls/Layout/$Layout").$Layout> & $DeviceType & $LayoutStaffController & $DepartmentController;
72
+ import("C:/dev/WebClient/Bin/TypeScriptDefinitions/System/Controls/Layout/LayoutServices").$CurrentLocation> & Partial<
73
+ import("C:/dev/WebClient/Bin/TypeScriptDefinitions/System/Controls/Layout/$Layout").$Layout> & $DeviceType & $LayoutStaffController & $DepartmentController;
74
74
  /** @internal */
75
75
  protected get partnerImpl(): PartnerBaseImpl<T>;
76
76
  private set partnerBindingHandler(value);
@@ -39,9 +39,9 @@ export declare class PartnerDirectoryBaseParams<T extends ValueT> extends Direct
39
39
  export declare abstract class PartnerDirectoryBase<T extends ValueT, ParamsT extends PartnerDirectoryBaseParams<T> = PartnerDirectoryBaseParams<T>, StateT extends PartnerDirectoryBaseState<T> = PartnerDirectoryBaseState<T>> extends DirectoryBase<T, NodeT, ItemT, ParamsT, StateT> {
40
40
  /** @internal */
41
41
  protected getServices(): $LayoutPartnerController & $EditOperationStore & $LayoutInfo & $LayoutRowController & $LayoutController & Partial<$LayoutController> &
42
- import("C:/Dev/WebC17/Bin/TypeScriptDefinitions/System/Services/$LayoutManager").$LayoutManager & Partial<
43
- import("C:/Dev/WebC17/Bin/TypeScriptDefinitions/System/Controls/Layout/LayoutServices").$CurrentLocation> & Partial<
44
- import("C:/Dev/WebC17/Bin/TypeScriptDefinitions/System/Controls/Layout/$Layout").$Layout> & $DeviceType & $LayoutStaffController & $DepartmentController;
42
+ import("C:/dev/WebClient/Bin/TypeScriptDefinitions/System/Services/$LayoutManager").$LayoutManager & Partial<
43
+ import("C:/dev/WebClient/Bin/TypeScriptDefinitions/System/Controls/Layout/LayoutServices").$CurrentLocation> & Partial<
44
+ import("C:/dev/WebClient/Bin/TypeScriptDefinitions/System/Controls/Layout/$Layout").$Layout> & $DeviceType & $LayoutStaffController & $DepartmentController;
45
45
  /** @internal */
46
46
  protected get partnerImpl(): PartnerDirectoryBaseImpl<T>;
47
47
  init(): Promise<void>;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { HtmlProps } from "@docsvision/web/core/component";
3
+
4
+ export interface IPowerOfAttorneyErrorMessageProps extends HtmlProps.div {
5
+ text?: string;
6
+ }
7
+ export declare function PowerOfAttorneyErrorMessage(props: IPowerOfAttorneyErrorMessageProps): JSX.Element;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
3
+ import { $Router } from "@docsvision/webclient/System/$Router";
4
+ import { $MessageWindow } from "@docsvision/web/components/modals/message-box";
5
+ import { $Resources } from "@docsvision/web/core/localization/$Resources";
6
+
7
+ export interface IPowerOfAttorneyInfoProps {
8
+ data: GenModels.PowerOfAttorneyInfoModel;
9
+ services: $Resources & $Router & $MessageWindow;
10
+ }
11
+ export declare function PowerOfAttorneyInfo(props: IPowerOfAttorneyInfoProps): JSX.Element;
12
+ export declare function showPowerOfAttorneyInfo(props: IPowerOfAttorneyInfoProps): void;
@@ -0,0 +1,72 @@
1
+ import { $PowersDirectoryController } from '@docsvision/webclient/Generated/DocsVision.WebClient.Controllers';
2
+ import { DirectoryBase, DirectoryBaseParams } from '@docsvision/webclient/System/DirectoryBase';
3
+ import { $CardInfo, $EditOperationStore, $LayoutInfo } from '@docsvision/webclient/System/LayoutServices';
4
+ import { IBindingResult } from '@docsvision/webclient/System/IBindingResult';
5
+ import { BasicApiEvent, CancelableApiEvent } from '@docsvision/webclient/System/ApiEvent';
6
+ import { IPowersDataLoadingEventArgs } from '@docsvision/webclient/BackOffice/IPowersDataLoadingEventArgs';
7
+ import { PowersImpl, IPowersState } from '@docsvision/webclient/BackOffice/PowersImpl';
8
+ import { IPowersDialog } from '@docsvision/webclient/BackOffice/IPowersDialog';
9
+ import { $LabelWidth } from '@docsvision/webclient/System/$LabelWidth';
10
+ import { Optional } from '@docsvision/web/core/services';
11
+ import { IPowerModel } from '@docsvision/webclient/BackOffice/IPowerModel';
12
+ export declare type $PowersServices = $LayoutInfo & $EditOperationStore & $CardInfo & $PowersDirectoryController & Optional<$LabelWidth>;
13
+ export declare type PowersValueType = IPowerModel | IPowerModel[];
14
+ export declare type PowersNodeType = IPowerModel;
15
+ declare type ItemT = IPowerModel;
16
+ export declare class PowersParams<ValueT extends PowersValueType = PowersValueType> extends DirectoryBaseParams<ValueT, PowersNodeType, ItemT> {
17
+ standardCssClass?: string;
18
+ displayIcon?: boolean;
19
+ /** Доступен ли выбор нескольких значений. */
20
+ multipleSelection?: boolean;
21
+ selectedItem?: ItemT;
22
+ /** Сохранять разметку при изменении значения */
23
+ saveOnChangeValue?: boolean;
24
+ /**
25
+ * Событие, возникающее перед выполнением поиска записей на сервере. В обработчике события можно изменить параметры запроса.
26
+ * Если в обработчике задать значение result, то запрос на сервер выполнен не будет.
27
+ */
28
+ searchResultsLoading?: CancelableApiEvent<IPowersDataLoadingEventArgs>;
29
+ /** Событие, возникающее после выполнения поиска записей на сервере. В обработчике события можно изменить возвращенные данные. */
30
+ searchResultsLoaded?: BasicApiEvent<IPowersDataLoadingEventArgs>;
31
+ /** События возникает при добавлении сотрудника. */
32
+ /** @covered */
33
+ itemAdding?: CancelableApiEvent<ValueT>;
34
+ /** События возникает после добавления сотрудника. */
35
+ /** @covered */
36
+ itemAdded?: BasicApiEvent<ValueT>;
37
+ /** События возникает при удалении сотрудника из списка. */
38
+ /** @covered */
39
+ itemRemoving?: CancelableApiEvent<ValueT>;
40
+ /** События возникает после удаления сотрудника из списка. */
41
+ /** @covered */
42
+ itemRemoved?: BasicApiEvent<ValueT>;
43
+ services?: $PowersServices;
44
+ }
45
+ export declare type PowersSingle = Powers<ItemT>;
46
+ export declare type PowersMultiple = Powers<ItemT[]>;
47
+ export declare class Powers<ValueT extends PowersValueType = PowersValueType> extends DirectoryBase<ValueT, PowersNodeType, ItemT, PowersParams<ValueT>, IPowersState<ValueT>> {
48
+ /** @internal */
49
+ protected createParams(): PowersParams<ValueT>;
50
+ /** @internal */
51
+ protected createImpl(): PowersImpl;
52
+ static ControlTypeName: string;
53
+ protected getServices(): $PowersServices;
54
+ private set binding(value);
55
+ get inputChanged():
56
+ import("C:/dev/WebClient/Bin/TypeScriptDefinitions/System/Events/SimpleEvent").SimpleEvent<string>;
57
+ /** Удаляет выбранное значение. */
58
+ /** @covered */
59
+ removeItem(item?: ItemT): Promise<void>;
60
+ /** Добавляет значение. */
61
+ addItem(item: ItemT): Promise<void>;
62
+ setParamValue(paramName: string, value: any, initial: boolean): void;
63
+ /** Показывает окно справочника. */
64
+ showDictionary(): Promise<IPowersDialog>;
65
+ /** Скрывает окно справочника. */
66
+ hideDictionary(): Promise<void>;
67
+ protected shouldSaveEditInPlaceValue(): boolean;
68
+ onSaved(): Promise<void>;
69
+ /** @internal */
70
+ protected getBindings(): IBindingResult<any>[];
71
+ }
72
+ export {};
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ import { Powers } from '@docsvision/webclient/BackOffice/Powers';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof Powers;
6
+ };
7
+ export default _default;
8
+ export declare const Edit: () => JSX.Element;
9
+ export declare const EditDisabled: () => JSX.Element;
10
+ export declare const EditSingleSelection: () => JSX.Element;
11
+ export declare const EditMultiSelection: () => JSX.Element;
12
+ export declare const EditInPlace: () => JSX.Element;
13
+ export declare const EditInPlaceDisabled: () => JSX.Element;
14
+ export declare const EditInPlaceSingleSelection: () => JSX.Element;
15
+ export declare const EditInPlaceMultiSelection: () => JSX.Element;
16
+ export declare const ViewSingleSelection: () => JSX.Element;
17
+ export declare const ViewMultiSelection: () => JSX.Element;
18
+ export declare const SelectDialogWithGroups: () => JSX.Element;
19
+ export declare const SelectDialogWithSingleSelectionCodes: () => JSX.Element;
20
+ export declare const SelectDialogWithMultiSelectionCodes: () => JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare const POWERS_SECTION_INFO_LOCATION_NAME = "DV.PowersDirectory.SectionInfo";
2
+ export declare const POWERS_SECTION_EDIT_LOCATION_NAME = "DV.PowersDirectory.SectionEdit";
3
+ export declare const POWERS_SECTION_CREATE_LOCATION_NAME = "DV.PowersDirectory.SectionCreate";
@@ -0,0 +1,48 @@
1
+ /// <reference types="react" />
2
+ import { BaseControl, BaseControlParams } from "@docsvision/webclient/System/BaseControl";
3
+ import { BaseControlImplState } from "@docsvision/webclient/System/BaseControlImpl";
4
+ import { ControlImpl } from "@docsvision/webclient/System/ControlImpl";
5
+ import { $ApplicationSettings, $DeviceType, $IsIE } from "@docsvision/webclient/StandardServices";
6
+ import { $LocalStorage } from "@docsvision/webclient/System/$LocalStorage";
7
+ import { $LayoutManager } from "@docsvision/webclient/System/$LayoutManager";
8
+ import { IPowersDirectoryLogicOptions, PowersDirectoryLogic } from "@docsvision/webclient/BackOffice/PowersDirectoryLogic";
9
+ import { PowersDirectoryView } from "@docsvision/webclient/BackOffice/PowersDirectoryView";
10
+ import { $SecurityDescriptorDialogServices } from "@docsvision/webclient/Platform/SecurityDescriptorDialog";
11
+ import { $PowersDirectoryOptions } from "@docsvision/webclient/BackOffice/IPowersDirectoryOptions";
12
+
13
+ import { Optional } from "@docsvision/web/core/services";
14
+ import { $WebFrameDirectorySearchPanelService } from "@docsvision/webclient/BackOffice/$WebFrameDirectorySearchPanelService";
15
+ import { BasicApiEvent } from "@docsvision/webclient/System/ApiEvent";
16
+ import { $Domain } from "@docsvision/web/core/state-management";
17
+ import { IPowersTreeRow } from "@docsvision/webclient/BackOffice/IPowersTreeRow";
18
+ import { $LayoutRowController, $LayoutCardController, $PowersDirectoryController } from "@docsvision/webclient/Generated/DocsVision.WebClient.Controllers";
19
+ /**
20
+ * Содержит публичные свойства элемента управления [Справочник полномочий]{@link PowersDirectory}.
21
+ */
22
+ export declare class PowersDirectoryParams extends BaseControlParams {
23
+ /** Стандартный CSS класс со стилями элемента управления */
24
+ standardCssClass?: string;
25
+ /** Отображаемое в левой части контрола дерево (подразделения, группы или должности) */
26
+ currentSectionsTree?: IPowersTreeRow[];
27
+ /** Вызывается после загрузки корневых узлов дерева. */
28
+ rootTreeSectionsLoaded?: BasicApiEvent<IPowersTreeRow[]>;
29
+ /** Вызывается после любого изменении отображаемого в левой части дерева. */
30
+ currentSectionTreeUpdated?: BasicApiEvent<IPowersTreeRow[]>;
31
+ /** Сервисы. */
32
+ services?: $ApplicationSettings & $LocalStorage & $LayoutRowController & $LayoutCardController & $LayoutManager & $SecurityDescriptorDialogServices & Optional<$PowersDirectoryOptions> & $DeviceType & $IsIE & $WebFrameDirectorySearchPanelService & $Domain & $PowersDirectoryController;
33
+ }
34
+ export interface IPowersDirectoryState extends BaseControlImplState, PowersDirectoryParams, IPowersDirectoryLogicOptions {
35
+ logic: PowersDirectoryLogic;
36
+ view: PowersDirectoryView;
37
+ }
38
+ /**
39
+ * Класс элемента управления Панель поиска в справочнике.
40
+ */
41
+ export declare class PowersDirectory extends BaseControl<PowersDirectoryParams, IPowersDirectoryState> {
42
+ construct(): void;
43
+ protected createParams(): PowersDirectoryParams;
44
+ protected createImpl(): ControlImpl;
45
+ private get currentSectionsTree();
46
+ saveExpandedRows(ids: string[]): void;
47
+ renderControl(): JSX.Element;
48
+ }
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ import { PowersDirectory } from "@docsvision/webclient/BackOffice/PowersDirectory";
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof PowersDirectory;
6
+ };
7
+ export default _default;
8
+ export declare const Default: () => JSX.Element;
9
+ export declare const ExpandedNode: () => JSX.Element;
10
+ export declare const TreeAddButton: () => JSX.Element;
11
+ export declare const SecuritySettingsButton: () => JSX.Element;
12
+ export declare const GroupContextMenu: () => JSX.Element;
13
+ export declare const CodeContextMenu: () => JSX.Element;
14
+ export declare const RootContextMenu: () => JSX.Element;
15
+ export declare const EditDialog: () => JSX.Element;
16
+ export declare const CreateCodeDialog: () => JSX.Element;
17
+ export declare const CreateGroupDialog: () => JSX.Element;
18
+ export declare const DeleteGroupConfirmation: () => JSX.Element;
19
+ export declare const DeleteCodeConfirmation: () => JSX.Element;
20
+ export declare const SecuritySettingsRow: () => JSX.Element;
@@ -0,0 +1,12 @@
1
+ export declare const POWERS_DIRECTORY_ID = "30EB75E2-16F8-4150-A2D4-4A82A38A1849";
2
+ export declare const CONTEXT_MENU_EDIT_ICON = "ico-edit-menu";
3
+ export declare const CONTEXT_MENU_INFO_ICON = "ico-info-menu";
4
+ export declare const CONTEXT_MENU_SECURITY_ICON = "ico-security-menu";
5
+ export declare const CONTEXT_MENU_DELETE_ICON = "ico-delete-menu";
6
+ export declare const CONTEXT_MENU_ADD_ICON = "ico-add-menu";
7
+ export declare const CONTEXT_MENU_POWERS_CREATE_GROUP_ID = "CONTEXT_MENU_POWERS_CREATE_GROUP_ID";
8
+ export declare const CONTEXT_MENU_POWERS_CREATE_CODE_ID = "CONTEXT_MENU_POWERS_CREATE_CODE_ID";
9
+ export declare const CONTEXT_MENU_POWERS_ACCESS_RIGHTS_ID = "CONTEXT_MENU_POWERS_ACCESS_RIGHTS_ID";
10
+ export declare const CONTEXT_MENU_POWERS_INFO_ID = "CONTEXT_MENU_POWERS_INFO_ID";
11
+ export declare const CONTEXT_MENU_POWERS_EDIT_ID = "CONTEXT_MENU_POWERS_EDIT_ID";
12
+ export declare const CONTEXT_MENU_POWERS_DELETE_ID = "CONTEXT_MENU_POWERS_DELETE_ID";
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { PowersDirectoryLogic } from "@docsvision/webclient/BackOffice/PowersDirectoryLogic";
3
+ import { PowersDirectoryView } from "@docsvision/webclient/BackOffice/PowersDirectoryView";
4
+ export declare function PowersDirectoryContainer(props: {
5
+ logic: PowersDirectoryLogic;
6
+ view: PowersDirectoryView;
7
+ }): JSX.Element;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { HtmlProps } from '@docsvision/web/core/component';
3
+
4
+ export interface IPowersDirectoryHeadProps extends HtmlProps.div {
5
+ onDirectorySecurityClick: () => void;
6
+ }
7
+ export declare function PowersDirectoryHead(props: IPowersDirectoryHeadProps): JSX.Element;
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import { HtmlProps } from '@docsvision/web/core/component';
3
+
4
+ import { GenModels } from '@docsvision/webclient/Generated/DocsVision.WebClient.Models';
5
+ export declare type PowersDirectorySection = {
6
+ id: string;
7
+ name: string;
8
+ };
9
+ export interface IPowersDirectoryInfoProps extends HtmlProps.div {
10
+ section: PowersDirectorySection;
11
+ placeholderText?: string;
12
+ onEditSectionClick: () => void;
13
+ loadLayout: () => Promise<GenModels.LayoutViewModel>;
14
+ }
15
+ export declare const POWERS_DIRECTORY_INFO_LOCATION_NAME = "DV.PowersDirectoryInfo";
16
+ export declare function PowersDirectoryInfo(props: IPowersDirectoryInfoProps): JSX.Element;