@docsvision/webclient 5.16.0 → 5.17.0-beta.11

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 (273) hide show
  1. package/Approval/AgreementHistoryImpl.d.ts +2 -0
  2. package/Approval/AgreementList.d.ts +2 -2
  3. package/Approval/AgreementListImpl.d.ts +3 -0
  4. package/BackOffice/Address.d.ts +3 -2
  5. package/BackOffice/CardKind.d.ts +3 -2
  6. package/BackOffice/ChangeBoundaryValuesSection.d.ts +4 -0
  7. package/BackOffice/ChangeSectionValues.d.ts +4 -0
  8. package/BackOffice/ChildTasksPerformingImpl.d.ts +3 -3
  9. package/BackOffice/ColumnSettingsDialog.d.ts +2 -0
  10. package/BackOffice/ConvertSizetoMegabytes.d.ts +1 -0
  11. package/BackOffice/CreateWindow.d.ts +2 -1
  12. package/BackOffice/Department.d.ts +3 -2
  13. package/BackOffice/DepartmentFilterViewComponents.d.ts +1 -1
  14. package/BackOffice/DepartmentImpl.d.ts +2 -0
  15. package/BackOffice/DirectoryDesignerRow.d.ts +3 -2
  16. package/BackOffice/DirectorySearchResultView.d.ts +1 -1
  17. package/BackOffice/EditTaskDescription.d.ts +2 -1
  18. package/BackOffice/EditTaskDescriptionDialog.d.ts +2 -0
  19. package/BackOffice/EditTaskDuration.d.ts +2 -2
  20. package/BackOffice/EditTaskDurationDialog.d.ts +2 -1
  21. package/BackOffice/EditWindow.d.ts +2 -1
  22. package/BackOffice/EmailButton.d.ts +21 -0
  23. package/BackOffice/EmailButton.stories.d.ts +10 -0
  24. package/BackOffice/EmailButtonContainer.d.ts +8 -0
  25. package/BackOffice/EmailButtonFiles.d.ts +7 -0
  26. package/BackOffice/EmailButtonItem.d.ts +12 -0
  27. package/BackOffice/EmailButtonLogic.d.ts +42 -0
  28. package/BackOffice/EmailButtonOptions.d.ts +36 -0
  29. package/BackOffice/EmailButtonSectionId.d.ts +2 -0
  30. package/BackOffice/EmailButtonSelectedSize.d.ts +9 -0
  31. package/BackOffice/EmailButtonView.d.ts +19 -0
  32. package/BackOffice/ExistingCardLinkDialog.d.ts +12 -4
  33. package/BackOffice/FileRenamingDialog.d.ts +2 -2
  34. package/BackOffice/FileSignCreateDialog.d.ts +1 -2
  35. package/BackOffice/FileSignSelectCertificateDialog.d.ts +1 -1
  36. package/BackOffice/GetEmlUrl.d.ts +11 -0
  37. package/BackOffice/ITaskTableSorting.d.ts +27 -0
  38. package/BackOffice/InitialCheckboxes.d.ts +4 -0
  39. package/BackOffice/NumeratorImpl.d.ts +1 -1
  40. package/BackOffice/PartnerBase.d.ts +4 -3
  41. package/BackOffice/PartnerBaseImpl.d.ts +2 -0
  42. package/BackOffice/PartnerDirectoryBase.d.ts +5 -4
  43. package/BackOffice/PartnerSelectDialog.d.ts +8 -1
  44. package/BackOffice/PartnerTypeaheadVariant.d.ts +3 -2
  45. package/BackOffice/PrepareTasksTableModel.d.ts +2 -1
  46. package/BackOffice/PrintButtonView.d.ts +1 -1
  47. package/BackOffice/SearchBar.d.ts +4 -0
  48. package/BackOffice/SortingRows.d.ts +6 -0
  49. package/BackOffice/StaffDirectoryConstants.d.ts +15 -0
  50. package/BackOffice/StaffDirectoryItems.d.ts +1 -1
  51. package/BackOffice/StaffDirectoryItemsImpl.d.ts +1 -1
  52. package/BackOffice/TaskTasksTreeNodeResolver.d.ts +5 -3
  53. package/BackOffice/Tasks.d.ts +2 -1
  54. package/BackOffice/TasksTable.d.ts +5 -1
  55. package/BackOffice/TasksTableHeaderCell.d.ts +3 -0
  56. package/BackOffice/TasksTableLogic.d.ts +12 -0
  57. package/BackOffice/TasksTableView.d.ts +3 -3
  58. package/BackOffice/TasksTree.d.ts +3 -1
  59. package/BackOffice/TasksTreeImpl.d.ts +3 -0
  60. package/BackOffice/UniquenessCheckImpl.d.ts +1 -1
  61. package/BackOffice/UserProfile.d.ts +1 -0
  62. package/BackOffice/UserStatus.d.ts +5 -0
  63. package/BackOffice/WebFrameDirectorySearchPanel.d.ts +2 -1
  64. package/BackOffice/WebFrameDirectorySearchPanelLogic.d.ts +5 -0
  65. package/BackOffice/WebFrameDirectorySearchPanelView.d.ts +1 -1
  66. package/Generated/DocsVision.WebClient.Controllers.d.ts +106 -5
  67. package/Generated/DocsVision.WebClient.Models.d.ts +334 -33
  68. package/Helpers/DateRangePicker/DateRangePicker.d.ts +24 -0
  69. package/Helpers/DateRangePicker/DateRangePicker.stories.d.ts +9 -0
  70. package/Helpers/DateRangePicker/components/DateRangePickerDay.d.ts +15 -0
  71. package/Helpers/DateRangePicker/components/DateRangePickerToolbar.d.ts +14 -0
  72. package/Helpers/IconButton.d.ts +2 -0
  73. package/Helpers/Menu/AdaptiveMenuBar.d.ts +2 -0
  74. package/Helpers/Menu/MobileMenuBar.d.ts +1 -0
  75. package/Helpers/MessageBox/MessageBox.d.ts +6 -1
  76. package/Helpers/ModalDialog/CommonModalDialog.d.ts +8 -0
  77. package/Helpers/ModalDialog/CommonModalDialogHost.d.ts +5 -2
  78. package/Helpers/ModalDialog/ModalDialogBox.d.ts +2 -0
  79. package/Helpers/ModalDialog/ModalDialogMaximizeButton.d.ts +23 -0
  80. package/Helpers/ModalDialog/ScrollableModal.d.ts +8 -0
  81. package/Helpers/PopoverHelpers/EditPopover/EditPopover.d.ts +1 -1
  82. package/Helpers/Table/TableHelperHeaderRow.d.ts +1 -0
  83. package/Legacy/ApprovalFilePanel.d.ts +1 -0
  84. package/Legacy/BasicGridHtmlBuilder.d.ts +1 -1
  85. package/Legacy/GroupTaskCardPerformersPanelRazorControl.d.ts +2 -1
  86. package/Legacy/ModalWindow.d.ts +7 -2
  87. package/Legacy/ModalWindowParams.d.ts +6 -0
  88. package/Legacy/SelectFolderModalDialog.d.ts +2 -1
  89. package/Legacy/WebFrameSearchPanelRouteHandler.d.ts +0 -1
  90. package/MainBundle.d.ts +2 -2
  91. package/Platform/$AggregatesCheckbox.d.ts +19 -0
  92. package/Platform/$ContextMenuOptions.d.ts +17 -10
  93. package/Platform/$CurrentFolder.d.ts +1 -0
  94. package/Platform/$FileDownload.d.ts +2 -1
  95. package/Platform/$FolderDataLoading.d.ts +5 -1
  96. package/Platform/$FolderGrid.d.ts +14 -6
  97. package/Platform/$HoverPanel.d.ts +8 -0
  98. package/Platform/$SearchText.d.ts +11 -0
  99. package/Platform/$TablePresentationToggle.d.ts +8 -0
  100. package/Platform/$ToolbarDaughterControls.d.ts +20 -0
  101. package/Platform/AggregateItemCheckbox.d.ts +12 -0
  102. package/Platform/Aggregates.stories.d.ts +8 -0
  103. package/Platform/AggregatesCheckbox.d.ts +10 -0
  104. package/Platform/AggregatesCheckboxPlugins.d.ts +11 -0
  105. package/Platform/AggregatesCheckboxService.d.ts +37 -0
  106. package/Platform/AggregatesExtendedData.d.ts +4 -0
  107. package/Platform/AggregatesGroup.d.ts +13 -0
  108. package/Platform/AggregatesListItem.d.ts +5 -0
  109. package/Platform/AggregatesNotAvailable.d.ts +6 -0
  110. package/Platform/AggregatesPanelHeader.d.ts +6 -0
  111. package/Platform/AggregatesRequestResolver.d.ts +12 -0
  112. package/Platform/AggregatesResponseResolver.d.ts +10 -0
  113. package/Platform/AggregatesTree.d.ts +17 -0
  114. package/Platform/AggregatesTreeLoader.d.ts +2 -0
  115. package/Platform/AggregatesUtils.d.ts +5 -0
  116. package/Platform/ArchivedCardsIcon.d.ts +4 -1
  117. package/Platform/ArchivedCardsPlugin.d.ts +1 -1
  118. package/Platform/ArchivedCardsResponseResolver.d.ts +1 -2
  119. package/Platform/BaseMainMenuItemImpl.d.ts +2 -2
  120. package/Platform/BatchOperationsProgressDialogService.d.ts +3 -1
  121. package/Platform/CalendarInput.d.ts +1 -1
  122. package/Platform/ClearButton.d.ts +7 -5
  123. package/Platform/ConfigurableMainMenuContainerButton.d.ts +2 -1
  124. package/Platform/ContextMenu.d.ts +7 -1
  125. package/Platform/ContextMenuOptionsService.d.ts +7 -4
  126. package/Platform/DateInput.d.ts +3 -13
  127. package/Platform/DefaultFolderDataLoader.d.ts +1 -1
  128. package/Platform/DefaultFolderTablePluginFactory.d.ts +4 -1
  129. package/Platform/DeleteBatchOperation.d.ts +31 -0
  130. package/Platform/DeleteBatchOperationImpl.d.ts +23 -0
  131. package/Platform/DownloadBatchOperationFileInfoCard.d.ts +7 -0
  132. package/Platform/DownloadDocumentFileMode.d.ts +5 -0
  133. package/Platform/DownloadFilesBatchOperation.d.ts +36 -0
  134. package/Platform/DownloadFilesBatchOperationImpl.d.ts +26 -0
  135. package/Platform/Dropdown.d.ts +4 -0
  136. package/Platform/ExportPlugin.d.ts +10 -4
  137. package/Platform/Favorite.d.ts +22 -0
  138. package/Platform/FavoritesPageRouteHandler.d.ts +18 -0
  139. package/Platform/FavoritesRouteHandler.d.ts +18 -0
  140. package/Platform/FileDownloadService.d.ts +2 -1
  141. package/Platform/FilterDate.d.ts +11 -0
  142. package/Platform/FilterDateRangePicker.d.ts +6 -0
  143. package/Platform/FilterDateTextListInput.d.ts +5 -0
  144. package/Platform/FocusableTextInput.d.ts +3 -8
  145. package/Platform/Folder.d.ts +2 -1
  146. package/Platform/FolderContent.d.ts +2 -0
  147. package/Platform/FolderDataContext.d.ts +4 -1
  148. package/Platform/FolderDataLoadingService.d.ts +13 -7
  149. package/Platform/FolderGrid.d.ts +4 -2
  150. package/Platform/FolderGrid.stories.d.ts +1 -0
  151. package/Platform/FolderGridBatchOperationsNode.d.ts +2 -1
  152. package/Platform/FolderGridConstants.d.ts +7 -0
  153. package/Platform/FolderGridService.d.ts +7 -3
  154. package/Platform/FolderImpl.d.ts +2 -0
  155. package/Platform/FolderMainMenuItem.d.ts +1 -1
  156. package/Platform/FolderNameImpl.d.ts +1 -0
  157. package/Platform/FolderRouteTypeMapper.d.ts +1 -0
  158. package/Platform/HoverPanelService.d.ts +5 -0
  159. package/Platform/IAggregates.d.ts +34 -0
  160. package/Platform/ICommonFolderInfo.d.ts +1 -0
  161. package/Platform/IFavoritesPageRouteData.d.ts +6 -0
  162. package/Platform/IFavoritesRouteData.d.ts +7 -0
  163. package/Platform/IFileHasSignature.d.ts +4 -0
  164. package/Platform/IFileInfo.d.ts +5 -0
  165. package/Platform/IFilterComponent.d.ts +29 -0
  166. package/Platform/IFolderDataLoader.d.ts +1 -1
  167. package/Platform/IFolderLoadRequest.d.ts +2 -1
  168. package/Platform/InputWithMask.d.ts +4 -3
  169. package/Platform/LayoutIconButton.d.ts +2 -0
  170. package/Platform/LayoutIconButtonImpl.d.ts +1 -0
  171. package/Platform/LayoutSearchParametersDialog.d.ts +2 -1
  172. package/Platform/ListCheckbox.d.ts +6 -0
  173. package/Platform/ListContent.d.ts +8 -0
  174. package/Platform/ListContentHightlight.d.ts +9 -0
  175. package/Platform/ListEmpty.d.ts +6 -0
  176. package/Platform/ListEmptySearchIcon.d.ts +6 -0
  177. package/Platform/ListInput.d.ts +9 -0
  178. package/Platform/ListItem.d.ts +6 -0
  179. package/Platform/ListLoading.d.ts +6 -0
  180. package/Platform/ListSearchIcon.d.ts +6 -0
  181. package/Platform/ListSlot.d.ts +7 -0
  182. package/Platform/ListTotalItem.d.ts +8 -0
  183. package/Platform/ListViewResponseResolver.d.ts +13 -0
  184. package/Platform/LoaderDialog.d.ts +1 -1
  185. package/Platform/{MoveShortcutsBatchOperation.d.ts → MoveShortcutBatchOperation.d.ts} +5 -5
  186. package/Platform/{MoveShortcutsBatchOperationImpl.d.ts → MoveShortcutBatchOperationImpl.d.ts} +5 -5
  187. package/Platform/ReadAllPlugin.d.ts +10 -5
  188. package/Platform/ReadBatchOperation.d.ts +2 -1
  189. package/Platform/RefreshPlugin.d.ts +10 -4
  190. package/Platform/ResetSettingsPlugin.d.ts +10 -4
  191. package/Platform/ScanDialogService.d.ts +2 -1
  192. package/Platform/SearchResultsRequestResolver.d.ts +6 -0
  193. package/Platform/SearchTextInput.d.ts +6 -0
  194. package/Platform/SearchTextProvider.d.ts +7 -0
  195. package/Platform/SearchTextService.d.ts +10 -0
  196. package/Platform/SearchingResultsImpl.d.ts +1 -1
  197. package/Platform/SecurityDescriptorDialog.d.ts +3 -3
  198. package/Platform/SecurityDialogFrame.d.ts +2 -1
  199. package/Platform/SettingsPlugin.d.ts +12 -7
  200. package/Platform/SettingsPopup.d.ts +5 -3
  201. package/Platform/SettingsPopup.stories.d.ts +1 -0
  202. package/Platform/SettingsPopupExtendedData.d.ts +2 -2
  203. package/Platform/SettingsPopupLogic.d.ts +16 -1
  204. package/Platform/SettingsPopupRequestResolver.d.ts +2 -1
  205. package/Platform/SettingsPopupResponseResolver.d.ts +0 -2
  206. package/Platform/ShowAllButton.d.ts +3 -1
  207. package/Platform/Table.d.ts +4 -4
  208. package/Platform/TableCreateRowWindow.d.ts +2 -1
  209. package/Platform/TableEditRowWindow.d.ts +2 -1
  210. package/Platform/TableImpl.d.ts +2 -2
  211. package/Platform/TablePresentationTogglePlugins.d.ts +9 -0
  212. package/Platform/TablePresentationToggleService.d.ts +8 -0
  213. package/Platform/TestUtils.d.ts +10 -1
  214. package/Platform/TextListInput.d.ts +6 -0
  215. package/Platform/TextListInputLogic.d.ts +55 -0
  216. package/Platform/TextListInputView.d.ts +40 -0
  217. package/Platform/TextListInputWrapper.d.ts +7 -0
  218. package/Platform/ToggleArrowIcon.d.ts +5 -0
  219. package/Platform/ToolbarDaughterControl.d.ts +18 -0
  220. package/Platform/ToolbarDaughterControlImpl.d.ts +14 -0
  221. package/Platform/ToolbarDaughterControlsPlugin.d.ts +6 -0
  222. package/Platform/ToolbarDaughterControlsService.d.ts +13 -0
  223. package/Platform/UnreadBarTablePlugins.d.ts +3 -0
  224. package/Platform/UserProfileDialog.d.ts +1 -1
  225. package/Platform/WebFrameMainMenuContainer.d.ts +2 -2
  226. package/Platform/WebFrameSearchPanel.d.ts +8 -5
  227. package/Platform/WebFrameUserPanel.d.ts +4 -2
  228. package/Platform/applyCurrentSettings.d.ts +7 -1
  229. package/Platform/filterViews.d.ts +3 -0
  230. package/Platform/setColumnsSettings.d.ts +6 -0
  231. package/Platform/updateValueCheckedColumn.d.ts +5 -1
  232. package/StandardServices.d.ts +4 -1
  233. package/System/$LastSearchResponse.d.ts +13 -0
  234. package/System/$PollService.d.ts +10 -0
  235. package/System/BaseControl.d.ts +3 -0
  236. package/System/ButtonPositionsSelectionUtils.d.ts +2 -1
  237. package/System/CancelableEvent.d.ts +1 -1
  238. package/System/DateTimeUtils.d.ts +2 -0
  239. package/System/DirectoryBaseImpl.d.ts +5 -1
  240. package/System/DirectorySelectDialog.d.ts +9 -2
  241. package/System/GridAggregatesModelStub.d.ts +13 -0
  242. package/System/LastSearchResponseService.d.ts +19 -0
  243. package/System/Layout.d.ts +3 -3
  244. package/System/LayoutCardControllerStub.d.ts +1 -1
  245. package/System/LayoutContainer.d.ts +1 -1
  246. package/System/LocationContainerControl.d.ts +2 -1
  247. package/System/PageLeaveConfirmation.d.ts +1 -0
  248. package/System/Poll.d.ts +10 -0
  249. package/System/PollService.d.ts +27 -0
  250. package/System/ResourcesStub.d.ts +2 -1
  251. package/System/StandardRoutes.d.ts +4 -0
  252. package/System/summernote-paste-without-formating.d.ts +10 -0
  253. package/package.json +1 -1
  254. package/Legacy/SearchPanelRouteHandler.d.ts +0 -18
  255. package/Platform/$PluginTemplate.d.ts +0 -12
  256. package/Platform/GridConstants.d.ts +0 -4
  257. package/Platform/PluginTemplateExtendedData.d.ts +0 -4
  258. package/Platform/PluginTemplatePlugins.d.ts +0 -15
  259. package/Platform/PluginTemplateService.d.ts +0 -11
  260. package/Platform/Settings.d.ts +0 -3
  261. package/Platform/TemplateRequestResolver.d.ts +0 -12
  262. package/Platform/TemplateResponseResolver.d.ts +0 -11
  263. package/System/$ServiceTemplate.d.ts +0 -16
  264. package/System/ControlTemplate.d.ts +0 -23
  265. package/System/ControlTemplate.stories.d.ts +0 -9
  266. package/System/ControlTemplateContainer.d.ts +0 -7
  267. package/System/ControlTemplateEffect.d.ts +0 -3
  268. package/System/ControlTemplateFrame.d.ts +0 -8
  269. package/System/ControlTemplateLogic.d.ts +0 -17
  270. package/System/ControlTemplateOptions.d.ts +0 -30
  271. package/System/ControlTemplateText.d.ts +0 -7
  272. package/System/ControlTemplateView.d.ts +0 -10
  273. package/System/ServiceTemplateService.d.ts +0 -13
@@ -0,0 +1,23 @@
1
+ import { $DeviceType } from "@docsvision/webclient/StandardServices";
2
+ import React from "react";
3
+ /** Свойства для {@link ModalSidebarCloseButton} */
4
+ export interface IModalDialogMaximizeButtonProps {
5
+ /** Доступность кнопки. Значение по умолчанию: true */
6
+ enabled?: boolean;
7
+ /** Обработчик события click */
8
+ onClick: (ev: React.MouseEvent<any>) => void;
9
+ maximized?: boolean;
10
+ services: $DeviceType;
11
+ }
12
+ /**
13
+ * Представляет закрывающую кнопку в правой части выезжающей панели ({@link ModalDialog}).
14
+ *
15
+ * Пример использования:
16
+ *
17
+ * <ModalDialog isOpen={this.state.dialogOpen} >
18
+ * <ModalDialogBox defaultWidth={true}>
19
+ * <ModalDialogCloseButton onClick={() => this.setState({ dialogOpen: false })} />
20
+ * </ModalDialogBox>
21
+ * </ModalDialog>
22
+ */
23
+ export declare const ModalMaximizeButton: (props: IModalDialogMaximizeButtonProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ import { $DeviceType } from "@docsvision/webclient/StandardServices";
1
2
  import React from "react";
2
3
  /**
3
4
  * @internal
@@ -10,6 +11,12 @@ export interface IScrollableModalProps {
10
11
  onClose?: () => void;
11
12
  /** Существует ли кнопка закрытия модального окна (крестик) */
12
13
  closeButtonDisabled?: boolean;
14
+ /** Существует ли кнопка развертывания */
15
+ maximizeButtonEnabled?: boolean;
16
+ /** Вызывается при попытке развернуть окно */
17
+ onMaximize?: () => void;
18
+ /** При смене значения на true модальное окно развернётся, при смене в false - свернётся. */
19
+ maximized?: boolean;
13
20
  header?: React.ReactNode;
14
21
  content?: React.ReactNode;
15
22
  buttons?: React.ReactNode;
@@ -26,6 +33,7 @@ export interface IScrollableModalProps {
26
33
  contentClassName?: string;
27
34
  buttonsClassName?: string;
28
35
  boxClassName?: string;
36
+ services: $DeviceType;
29
37
  }
30
38
  /**
31
39
  * @internal
@@ -52,7 +52,7 @@ export declare class EditPopover extends React.Component<IEditPopoverProps, IEdi
52
52
  /**
53
53
  * Отображает всплыающее окно на экране.
54
54
  */
55
- show(): Promise<any>;
55
+ show(): Promise<void>;
56
56
  /**
57
57
  * Скрывает всплыающее окно.
58
58
  */
@@ -23,6 +23,7 @@ export interface ITableHeaderCellHelperProps {
23
23
  key?: string;
24
24
  /** Tooltip */
25
25
  title?: string;
26
+ onClick?(ev: React.MouseEvent): void;
26
27
  }
27
28
  /** @internal */
28
29
  export declare const TableHelperHeaderRow: (props: ITableHelperHeaderRowProps) => JSX.Element;
@@ -3,6 +3,7 @@ import { IEventArgs } from '@docsvision/webclient/System/IEventArgs';
3
3
  import { $CardTimestamp } from '@docsvision/webclient/System/LayoutServices';
4
4
  import { $RequestManager } from '@docsvision/webclient/System/$RequestManager';
5
5
  export declare class ApprovalFilePanel {
6
+ static ControlTypeName: string;
6
7
  private static FileLinkCssClass;
7
8
  private static FileSettingsCssClass;
8
9
  private static FileItemCssClass;
@@ -52,7 +52,7 @@ export declare abstract class BasicGridHtmlBuilder implements IGridHtmlBuilder {
52
52
  protected abstract buildRowSwitcher(options: GridOptions, model: GenModels.GridViewModel, rowSwitcher: HTMLDivElement, rootElement: HTMLElement): HTMLDivElement;
53
53
  abstract getChanges(): Promise<GenModels.GridViewModel>;
54
54
  getSelection():
55
- import("C:/Dev/WebC16/Bin/TypeScriptDefinitions/@docsvision/Platform/Services/Table/TableRowsSelectionModel").TableRowsSelectionModel;
55
+ import("C:/dev/WebClient/Bin/TypeScriptDefinitions/@docsvision/Platform/Services/Table/TableRowsSelectionModel").TableRowsSelectionModel;
56
56
  clearSelection(cardIds?: string[]): void;
57
57
  selectionChanged: SimpleEvent<any>;
58
58
  protected addActionButtons(header: HTMLElement): void;
@@ -4,6 +4,7 @@ import { IBindingResult } from "@docsvision/webclient/System/IBindingResult";
4
4
  import { IValidationParams } from '@docsvision/webclient/System/IValidationParams';
5
5
  import { IValidationResult } from '@docsvision/webclient/System/IValidationResult';
6
6
  import { $BusinessCalendarController } from '@docsvision/webclient/Generated/DocsVision.WebClient.Controllers';
7
+ import { $DeviceType } from "@docsvision/webclient/StandardServices";
7
8
  /** @internal */
8
9
  export declare class GroupTaskCardPerformersPanelParams extends BaseRazorControlParams {
9
10
  /** Является ли обязательным заполнение данного поля. */
@@ -11,7 +12,7 @@ export declare class GroupTaskCardPerformersPanelParams extends BaseRazorControl
11
12
  defaultCalendarId?: string;
12
13
  useBusinessCalendar?: boolean;
13
14
  autoDurationsRecalculation?: boolean;
14
- services?: $BusinessCalendarController;
15
+ services?: $BusinessCalendarController & $DeviceType;
15
16
  }
16
17
  /** @internal */
17
18
  export interface GroupTaskCardPerformersPanelState extends BaseRazorControlState, GroupTaskCardPerformersPanelParams {
@@ -1,12 +1,14 @@
1
1
  import { ModalWindowEvents, ModalWindowParams } from "@docsvision/webclient/Legacy/ModalWindowParams";
2
2
  import { Optional } from '@docsvision/web/core/services';
3
3
  import { $RootCssClass } from '@docsvision/webclient/Helpers/$RootCssClass';
4
+ import { $DeviceType } from "@docsvision/webclient/StandardServices";
4
5
  /** @internal */
5
6
  export interface IModalWindowCreatorOptions {
6
7
  withoutAnimation?: boolean;
7
8
  }
8
9
  /** @deprecated Используйте {@link ModalDialog} или {@link MessageBox}. */
9
10
  export declare class ModalWindow {
11
+ private services?;
10
12
  private traceProvider;
11
13
  private params;
12
14
  private overlay;
@@ -17,18 +19,20 @@ export declare class ModalWindow {
17
19
  private modalOkButton;
18
20
  private modalCancelButton;
19
21
  private modalCloseButton;
22
+ private modalMaximizeButton;
20
23
  private buttonsDiv;
21
24
  private content;
22
25
  private isOpened;
23
26
  events: ModalWindowEvents;
24
27
  static lastError?: ModalWindow;
25
28
  private rootCssClass;
26
- constructor(params: ModalWindowParams, services?: Optional<$RootCssClass> | {});
29
+ constructor(params: ModalWindowParams, services?: Optional<$RootCssClass> & $DeviceType);
27
30
  get IsOpened(): boolean;
28
31
  get ModalElement(): HTMLElement;
29
32
  get ModalContentElement(): HTMLElement;
30
33
  get OkButtonElement(): HTMLButtonElement;
31
34
  get CancelButtonElement(): HTMLButtonElement;
35
+ private onMaximize;
32
36
  Show(withoutAnimation?: boolean): void;
33
37
  Hide(withCallbacks?: boolean, withoutAnimation?: boolean): Promise<any>;
34
38
  HideOverlay(): void;
@@ -37,6 +41,7 @@ export declare class ModalWindow {
37
41
  private CreateModal;
38
42
  private CreateModalContent;
39
43
  private CreateModalCloseButton;
44
+ private CreateModalmaximizeButton;
40
45
  private CreateModalHeader;
41
46
  private CreateModalButtonsDiv;
42
47
  private CreateModalOkButton;
@@ -44,7 +49,7 @@ export declare class ModalWindow {
44
49
  private CreateModalCancelButton;
45
50
  private Destroy;
46
51
  static ShowErrorDialog(message: string, options?: IModalWindowCreatorOptions): ModalWindow;
47
- static ShowConfirmDialog(message: string, yesButton?: Function, cancelButton?: Function, options?: IModalWindowCreatorOptions): ModalWindow;
52
+ static ShowConfirmDialog(message: string, yesButton?: Function, cancelButton?: Function, options?: IModalWindowCreatorOptions, services?: Optional<$RootCssClass> & $DeviceType): ModalWindow;
48
53
  static ShowInformationDialog(message: string, headerText?: string, options?: IModalWindowCreatorOptions): ModalWindow;
49
54
  static ShowWarningDialog(message: string, headerText?: string, okButton?: Function, cancelButton?: Function, options?: IModalWindowCreatorOptions): ModalWindow;
50
55
  }
@@ -27,6 +27,12 @@ export declare class ModalWindowParams extends ModalWindowEvents {
27
27
  buttonCancelText: string;
28
28
  buttonCancelFunction: Function;
29
29
  userFocusTrap: boolean;
30
+ /** Существует ли кнопка развертывания */
31
+ maximizeButtonEnabled?: boolean;
32
+ /** Развернуто ли модальное окно */
33
+ maximized?: boolean;
34
+ /** Вызывается при попытке развернуть окно */
35
+ onMaximize?: () => void;
30
36
  buttons: Array<ModalButton>;
31
37
  replaceDefaultButtons: boolean;
32
38
  }
@@ -1,12 +1,13 @@
1
1
  import { FolderTree } from "@docsvision/webclient/Legacy/FolderTree";
2
2
  import { $RequestManager } from '@docsvision/webclient/System/$RequestManager';
3
+ import { $DeviceType } from "@docsvision/webclient/StandardServices";
3
4
  /** @internal */
4
5
  export declare class SelectFolderModalDialog extends FolderTree {
5
6
  private services;
6
7
  private static DialogContainerClassName;
7
8
  private onClose;
8
9
  private dialog;
9
- constructor(onClose?: (folders: string[]) => void, services?: $RequestManager);
10
+ constructor(onClose?: (folders: string[]) => void, services?: $RequestManager & $DeviceType);
10
11
  ShowDialog(): void;
11
12
  private AttachFolder;
12
13
  protected ClearSelectedFolders(): void;
@@ -10,7 +10,6 @@ import { $CompanyLogo } from "@docsvision/webclient/Platform/$CompanyLogo";
10
10
  export declare class WebFrameSearchPanelRouteHandler implements IRouteHandler<any> {
11
11
  private services;
12
12
  name: string;
13
- private isAvaibleRouteHandler;
14
13
  constructor(services: $WebFrameSearchPanel & $ExperimentalFeature & $FullTextSearchEnabled & $CompanyLogo);
15
14
  private hide;
16
15
  mountRoute(data: IFolderRouteData, routeType: RouteType): Promise<RouteHandleResult>;
package/MainBundle.d.ts CHANGED
@@ -18,5 +18,5 @@ import '@docsvision/webclient/Platform/SecurityDescriptorDialog';
18
18
  import "@docsvision/webclient/BackOffice/DirectoryValues";
19
19
  import "@docsvision/webclient/BackOffice/DirectoryTree";
20
20
  import "@docsvision/webclient/BackOffice/DirectorySearchResult";
21
- import "@docsvision/webclient/System/ControlTemplate";
22
- import "@docsvision/webclient/System/ServiceTemplateService";
21
+ import "@docsvision/webclient/Templates/ControlTemplate";
22
+ import "@docsvision/webclient/Templates/ServiceTemplateService";
@@ -0,0 +1,19 @@
1
+ import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
2
+ import { IAggregate, IAggregatesState, ISelectItemData } from "@docsvision/webclient/Platform/IAggregates";
3
+ import { Store } from "effector";
4
+ export interface IAggregatesCheckboxService {
5
+ readonly $isAggregatesAvailable: Store<boolean>;
6
+ /** Дерево значений агрегации. */
7
+ readonly $aggregates: Store<IAggregate[] | null>;
8
+ /** Состояние загрузки агрегатов */
9
+ readonly $aggregatesState: Store<IAggregatesState>;
10
+ /** Выбранные значения агрегатов */
11
+ readonly $selectedAggregateItems: Store<GenModels.GridAggregateValue[]>;
12
+ toggleAggregate(item: IAggregate): void;
13
+ selectItemValue(data: ISelectItemData): void;
14
+ clearAll(): void;
15
+ }
16
+ export declare type $Aggregates = {
17
+ aggregates: IAggregatesCheckboxService;
18
+ };
19
+ export declare const $Aggregates: string | ((model?: $Aggregates) => IAggregatesCheckboxService);
@@ -2,6 +2,7 @@ import { TableCompositionNames, TableCompositions } from '@docsvision/web/compon
2
2
  import { Event, Store } from 'effector';
3
3
  import { IComposition } from '@docsvision/web/core/composition';
4
4
  export interface ICustomContextMenuOption {
5
+ id: string;
5
6
  name: string;
6
7
  action: (context: TableCompositions.Row | TableCompositions.HeaderRow | TableCompositions.Cell) => void;
7
8
  composition?: string;
@@ -41,19 +42,21 @@ export declare type CustomMenuStateData = Store<{
41
42
  className: string;
42
43
  eventTarget: CustomMenuEventTarget;
43
44
  }>;
44
- export declare type ContextMenuItemsManagementData = {
45
- [TableCompositionNames.TableHeaderRow]?: IDataItemProvider[] | IDataItemFilter;
46
- [TableCompositionNames.TableRow]?: IDataItemProvider[] | IDataItemFilter;
47
- [TableCompositionNames.TableCell]?: IDataItemProvider[] | IDataItemFilter;
45
+ export declare type ContextMenuItemsManagementData<T> = {
46
+ [TableCompositionNames.TableHeaderRow]?: T;
47
+ [TableCompositionNames.TableRow]?: T;
48
+ [TableCompositionNames.TableCell]?: T;
48
49
  };
49
- export interface IDataItemProvider {
50
+ export declare type ContextMenuItemsManagementDataProvider = ContextMenuItemsManagementData<IDataItemProvider[]>;
51
+ export declare type ContextMenuItemsManagementDataFilter = ContextMenuItemsManagementData<IDataItemFilter[]>;
52
+ export interface IDataItem {
50
53
  id: string;
51
54
  composition: string;
55
+ }
56
+ export interface IDataItemProvider extends IDataItem {
52
57
  getItemsToAdd: (context?: IComposition<any, any, any>) => ICustomContextMenuOption[];
53
58
  }
54
- export interface IDataItemFilter {
55
- id: string;
56
- composition: string;
59
+ export interface IDataItemFilter extends IDataItem {
57
60
  getItemsToHide: (context: IComposition<any, any, any>) => string[];
58
61
  }
59
62
  /** Сервис для создания опций кастомного контекстного меню. */
@@ -69,9 +72,9 @@ export interface IContextMenuOptionsService {
69
72
  /** Пользовательский класс контекстного меню */
70
73
  menuClassName?: string;
71
74
  /** Данные функций-провайдеров контекстного меню в соответсвии с композицией */
72
- readonly $itemProviders: Store<ContextMenuItemsManagementData>;
75
+ readonly $itemProviders: Store<ContextMenuItemsManagementDataProvider>;
73
76
  /** Данные функций-фильтров контекстного меню в соответсвии с композицией */
74
- readonly $itemFilters: Store<ContextMenuItemsManagementData>;
77
+ readonly $itemFilters: Store<ContextMenuItemsManagementDataFilter>;
75
78
  /** Добавляет функцию-провайдер пунктов контекстного меню */
76
79
  addItemProvider?: (data: IDataItemProvider) => void;
77
80
  /** Удаляет функцию-провайдер пунктов контекстного меню */
@@ -85,6 +88,10 @@ export interface IContextMenuOptionsService {
85
88
  /** Удаляет зарегистрированные блоки контекстного меню */
86
89
  unregisterBlocks?: (blockIds: string[]) => void;
87
90
  getMenuItems?: (context: IComposition<any, any, any>) => ICustomContextMenuOption[];
91
+ /** Проверка провайдера в заданной композиции */
92
+ isAddedProvider?: (id: string, compositionName: string) => boolean;
93
+ /** Проверка фильтра в заданной композиции */
94
+ isAddedFilter?: (id: string, compositionName: string) => boolean;
88
95
  }
89
96
  /** Сервис для создания опций кастомного контекстного меню. */
90
97
  export declare type $ContextMenuOptions = {
@@ -14,6 +14,7 @@ export interface ICurrentFolderService {
14
14
  readonly forceVirtualFolderSearch?: boolean;
15
15
  readonly searchId?: string;
16
16
  readonly systemFolder?: GenModels.SystemFolders;
17
+ readonly viewSelection?: string;
17
18
  }
18
19
  /** Сервис информации о текущей папке. */
19
20
  export declare type $CurrentFolder = {
@@ -1,3 +1,4 @@
1
+ import { RequestOptions } from '@docsvision/webclient/Legacy/Utils';
1
2
  /** Сервис для корректного инициирования скачивания файла из скриптов. */
2
3
  export interface IFileDownload {
3
4
  /** Обычное скачивание через создание ссылки и клик по ней. */
@@ -7,7 +8,7 @@ export interface IFileDownload {
7
8
  *
8
9
  * Позволяет скачивать файлы последовательно, однако имеет ограничение на размер файла (он загружается в память браузера).
9
10
  */
10
- saveAs(url: string, fileName: string): Promise<Blob>;
11
+ saveAs(url: string, fileName: string, options?: RequestOptions): Promise<Blob>;
11
12
  }
12
13
  /** Сервис для корректного инициирования скачивания файла из скриптов. */
13
14
  export declare type $FileDownload = {
@@ -7,21 +7,25 @@ import { IColumnsWidth } from '@docsvision/web/components/table/plugins/resize-c
7
7
  import { Store } from 'effector';
8
8
  import { IFilterActiveColumn } from '@docsvision/web/components/table/plugins/filter';
9
9
  import { IGrouping, IGroupingPathItem, ILoadGroupingItemsOptions } from '@docsvision/web/components/table/plugins/grouping';
10
+ import { GenModels } from '@docsvision/webclient/Generated/DocsVision.WebClient.Models';
10
11
  export interface IFolderDataLoadingService {
11
12
  init(): void;
12
13
  addPlugin(resolver: IFolderDataLoadingPlugin): void;
13
14
  removePlugin(id: string): void;
14
15
  getPlugins(): IFolderDataLoadingPlugin[];
15
16
  readonly currentData: Store<ITableData>;
17
+ readonly lastResponse: GenModels.GridViewModel;
16
18
  readonly pageSize: number;
17
19
  loadData(options?: IFolderLoadRequest, loader?: IFolderDataLoader): Promise<void>;
18
20
  sortBy(columnId: string, sortDirection: SortDirection): Promise<void>;
19
21
  filterBy(filterData: IFilterActiveColumn[]): Promise<any>;
20
22
  setDefaultDataLoader(loader: IFolderDataLoader): void;
21
23
  downloadExcelReport(): void;
22
- saveUserSettings(columns: IColumnsWidth[]): Promise<void>;
24
+ saveColumnSettings(columns: IColumnsWidth[]): Promise<void>;
25
+ savePresentation(tablePresentation: GenModels.TablePresentation): Promise<void>;
23
26
  resetUserSettings(): Promise<void>;
24
27
  updateUserSettings(loader?: IFolderDataLoader): Promise<void>;
28
+ saveAggregatesToGridUserSettings(items: GenModels.GridAggregateValue[]): Promise<void>;
25
29
  loadGrouping(options: ILoadGroupingItemsOptions): Promise<IGrouping>;
26
30
  saveGroupingPath(path: IGroupingPathItem[]): Promise<void>;
27
31
  }
@@ -1,20 +1,28 @@
1
- import { IColumn, IRow, ITableData, ITableDataLoadRequest } from '@docsvision/web/components/table/interfaces';
2
- import { SortDirection } from '@docsvision/web/components/table/plugins/sort';
3
- import { IFilterActiveColumn } from '@docsvision/web/components/table/plugins/filter';
4
- import { ICustomContextMenuBlock, IDataItemProvider, IParamsItemProvider } from '@docsvision/webclient/Platform/$ContextMenuOptions';
5
- import { IComposition } from '@docsvision/web/core/composition';
1
+ import { IColumn, IRow, ITableData, ITableDataLoadRequest } from "@docsvision/web/components/table/interfaces";
2
+ import { SortDirection } from "@docsvision/web/components/table/plugins/sort";
3
+ import { IFilterActiveColumn } from "@docsvision/web/components/table/plugins/filter";
4
+ import { ICustomContextMenuBlock, IDataItemProvider, IParamsItemProvider } from "@docsvision/webclient/Platform/$ContextMenuOptions";
6
5
  import { IGrouping, IGroupingPathItem, ILoadGroupingItemsOptions } from '@docsvision/web/components/table/plugins/grouping';
7
6
  import { Store } from 'effector';
7
+ import { IComposition } from "@docsvision/web/core/composition";
8
+ import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
8
9
  export interface IFolderGridService {
9
10
  $groupingReadonly: Store<boolean>;
10
11
  setGroupingReadonly(available: boolean): void;
12
+ getContextMenuBlockNames: () => {
13
+ gridOperation: string;
14
+ textOperation: string;
15
+ linkOperation: string;
16
+ };
11
17
  onRowClick(row: IRow): void;
12
18
  backgroundOpacity: number;
13
- onSortRequest(column: IColumn, sortDirection: SortDirection): void;
19
+ defaultTablePresentation: GenModels.TablePresentation;
20
+ onSortRequest(column: IColumn, sortDirection: SortDirection): Promise<void>;
14
21
  onFilterRequest(filterData: IFilterActiveColumn[]): void;
15
22
  onLoadData(data?: ITableData, options?: ITableDataLoadRequest): Promise<void>;
16
23
  getContextMenuBlocks(): ICustomContextMenuBlock[];
17
24
  getContextMenuItemProviders(params?: IParamsItemProvider<any, any>, context?: IComposition<any, any, any>): IDataItemProvider[];
25
+ onChangeAggregateValue(items: GenModels.GridAggregateValue[]): void;
18
26
  onSearchRequest(): Promise<void>;
19
27
  onLoadGrouping(options: ILoadGroupingItemsOptions): Promise<IGrouping>;
20
28
  onReloadWithNewSettings(): Promise<void>;
@@ -0,0 +1,8 @@
1
+ import { HeaderHoverPanelPlugin } from '@docsvision/web/components/table/plugins/hover-panel';
2
+ export interface IHoverPanelService {
3
+ getPlugins(defaultPlugins: HeaderHoverPanelPlugin[]): HeaderHoverPanelPlugin[];
4
+ }
5
+ export declare type $HoverPanel = {
6
+ hoverPanel: IHoverPanelService;
7
+ };
8
+ export declare const $HoverPanel: string | ((model?: $HoverPanel) => IHoverPanelService);
@@ -0,0 +1,11 @@
1
+ import { Store } from 'effector';
2
+ /** Интефрейс сервиса {@see $SearchText} */
3
+ export interface ISearchTextService {
4
+ readonly $current: Store<string>;
5
+ setCurrent(text: string): void;
6
+ }
7
+ /** Предоставляет информацию об поисковом запросе. */
8
+ export declare type $SearchText = {
9
+ searchText: ISearchTextService;
10
+ };
11
+ export declare const $SearchText: string | ((model?: $SearchText) => ISearchTextService);
@@ -0,0 +1,8 @@
1
+ /** Интерфейс сервиса {@link $TablePresentationToggle} */
2
+ export interface ITablePresentationToggleService {
3
+ }
4
+ /** Сервис, инициирующий сохранение режима отображения таблицы. */
5
+ export declare type $TablePresentationToggle = {
6
+ tablePresentationToggle: ITablePresentationToggleService;
7
+ };
8
+ export declare const $TablePresentationToggle: string | ((model?: $TablePresentationToggle) => ITablePresentationToggleService);
@@ -0,0 +1,20 @@
1
+ import { GenModels } from '@docsvision/webclient/Generated/DocsVision.WebClient.Models';
2
+ import { IToolbarActionContainerButton } from '@docsvision/web/components/table/plugins/toolbar-action-container';
3
+ import { Store, Event } from 'effector';
4
+ /** */
5
+ export interface IToolbarDaughterControlsService {
6
+ /** Содержит информацию о дочерних контролах */
7
+ readonly $controls: Store<GenModels.ControlModel[]>;
8
+ /** Добавляет контролы в хранилище */
9
+ setControls: Event<GenModels.ControlModel[]>;
10
+ /** Расположение элементов относительно стандартных элементов */
11
+ readonly $location: Store<GenModels.AdditionalElementsMode>;
12
+ /** Добовляет информацию о расположении контролов относительно стандартных кнопок */
13
+ setLocation: Event<GenModels.AdditionalElementsMode>;
14
+ /** Отдаёт дочерние контролы панели настроек таблицы относительно расположения стандартных кнопок панели настроек */
15
+ getRelativeToLocation(actionButtonsRelativeToLocation: IToolbarActionContainerButton[], ...actionButtons: IToolbarActionContainerButton[]): IToolbarActionContainerButton[];
16
+ }
17
+ export declare type $ToolbarDaughterControls = {
18
+ toolbarDaughterControls: IToolbarDaughterControlsService;
19
+ };
20
+ export declare const $ToolbarDaughterControls: string | ((model?: $ToolbarDaughterControls) => IToolbarDaughterControlsService);
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { GenModels } from '@docsvision/webclient/Generated/DocsVision.WebClient.Models';
3
+ import { ISelectItemData } from '@docsvision/webclient/Platform/IAggregates';
4
+ import '@docsvision/webclient/Platform/Controls/FolderGrid/Plugins/AggregatesCheckbox/components/aggregates-tree/aggregates-group/list-item/AggregatesListItem.css';
5
+ import './AggregateItemCheckbox.css';
6
+ export interface IAggregateItemCheckbox {
7
+ item: GenModels.GridAggregateValue;
8
+ onChange(data: ISelectItemData): void;
9
+ value: boolean;
10
+ count: number;
11
+ }
12
+ export declare const AggregateItemCheckbox: React.FC<IAggregateItemCheckbox>;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { FolderGrid } from "@docsvision/webclient/Platform/FolderGrid";
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof FolderGrid;
6
+ };
7
+ export default _default;
8
+ export declare const WithAggregates: () => JSX.Element;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { $Aggregates } from '@docsvision/webclient/Platform/$AggregatesCheckbox';
3
+ import { ITableData } from '@docsvision/web/components/table/interfaces';
4
+ import { ICompositionPluginProps } from '@docsvision/web/core/composition';
5
+ import { $Resources } from '@docsvision/web/core/localization/$Resources';
6
+ export interface IAggregatesTextResources {
7
+ showMoreText: string;
8
+ collapseItemsText: string;
9
+ }
10
+ export declare const AggregatesCheckbox: ({ composition }: ICompositionPluginProps<any, ITableData, $Aggregates & $Resources>) => JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { $AggregatesCheckboxServices } from "@docsvision/webclient/Platform/AggregatesCheckboxService";
2
+ import { IAggregatesServiceOptions } from "@docsvision/webclient/Platform/IAggregates";
3
+ import { ITablePlugins, TablePlugins } from "@docsvision/web/components/table/interfaces";
4
+ import { $TableFilterService } from "@docsvision/web/components/table/plugins/filter";
5
+ import { $SidePanel } from "@docsvision/web/components/table/plugins/side-panel";
6
+ import { $Resources } from "@docsvision/web/core/localization/$Resources";
7
+ import { $Aggregates } from "@docsvision/webclient/Platform/$AggregatesCheckbox";
8
+ export declare const AggregatesFeature = "Aggregates";
9
+ export declare const AggregatesPanelContentSidePanelPlugin: TablePlugins.SidePanel.Component<$SidePanel & $Aggregates & $Resources & $AggregatesCheckboxServices>;
10
+ export declare const getAggregatesServiceProvider: (options: IAggregatesServiceOptions) => TablePlugins.ServiceProvider<$Aggregates & $AggregatesCheckboxServices & $TableFilterService>;
11
+ export declare const getAggregatesPlugins: (options: IAggregatesServiceOptions) => ITablePlugins;
@@ -0,0 +1,37 @@
1
+ import { $GridController } from "@docsvision/webclient/Generated/DocsVision.WebClient.Controllers";
2
+ import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
3
+ import { IAggregate, IAggregateServiceOptions, IAggregatesState, ILoadItemsOptions, ISelectItemData } from "@docsvision/webclient/Platform/IAggregates";
4
+ import { $SidePanel } from "@docsvision/web/components/table/plugins/side-panel";
5
+ import { $TableData } from "@docsvision/web/components/table/plugins/table-data";
6
+ import { $Domain } from "@docsvision/web/core/state-management";
7
+ import { Store, Event, Effect } from "effector";
8
+ import { $FolderGrid } from "@docsvision/webclient/Platform/$FolderGrid";
9
+ import { IAggregatesCheckboxService } from "@docsvision/webclient/Platform/$AggregatesCheckbox";
10
+ import { $CurrentFolder } from "@docsvision/webclient/Platform/$CurrentFolder";
11
+ import { $LastSearchResponse } from "@docsvision/webclient/System/$LastSearchResponse";
12
+ import { $FolderDataLoading } from "@docsvision/webclient/Platform/$FolderDataLoading";
13
+ import { $WebFrameSearchPanel } from "@docsvision/webclient/Platform/$WebFrameSearchPanel";
14
+ export declare type $AggregatesCheckboxServices = $Domain & $SidePanel & $TableData & $GridController & $FolderGrid & $CurrentFolder & $LastSearchResponse & $WebFrameSearchPanel & $FolderDataLoading;
15
+ export declare class AggregatesCheckboxService implements IAggregatesCheckboxService {
16
+ private options;
17
+ private services;
18
+ $isAggregatesAvailable: Store<boolean>;
19
+ $aggregates: Store<IAggregate[]>;
20
+ $lastAggregates: Store<IAggregate[]>;
21
+ $selectedAggregateItems: Store<GenModels.GridAggregateValue[] | null>;
22
+ $aggregatesState: Store<IAggregatesState>;
23
+ loadAggregateItemsFx: Effect<ILoadItemsOptions | void, IAggregate[]>;
24
+ toggleAggregate: Event<IAggregate>;
25
+ selectItemValue: Event<ISelectItemData>;
26
+ setAggregatesAvailabe: Event<boolean>;
27
+ setLoading: Event<boolean>;
28
+ toggleAll: Event<boolean>;
29
+ clearAll: Event<void>;
30
+ selectItem: any;
31
+ $lastDataId: Store<string>;
32
+ constructor(options: IAggregateServiceOptions, services: $AggregatesCheckboxServices);
33
+ private getSelection;
34
+ updateTableAndAggregates(selectedAggregates: GenModels.GridAggregateValue[], options?: ILoadItemsOptions): Promise<void>;
35
+ getAggregates({ dropFilters }?: ILoadItemsOptions): Promise<IAggregate[]>;
36
+ prepareAggregates(aggregateModel: GenModels.GridAggregateModel[]): GenModels.GridAggregateModel[];
37
+ }
@@ -0,0 +1,4 @@
1
+ import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
2
+ import { ITableData } from "@docsvision/web/components/table/interfaces";
3
+ import { ISimplePluginData } from "@docsvision/web/core/extensibility/plugins";
4
+ export declare function getCurrentAggregates(cellData: ITableData): ISimplePluginData<GenModels.AggregateFilterItem[]>;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { GenModels } from '@docsvision/webclient/Generated/DocsVision.WebClient.Models';
3
+ import { IAggregate, ISelectItemData } from '@docsvision/webclient/Platform/IAggregates';
4
+ import { IAggregatesTextResources } from '@docsvision/webclient/Platform/AggregatesCheckbox';
5
+ import '@docsvision/webclient/Platform/Controls/FolderGrid/Plugins/AggregatesCheckbox/components/aggregates-tree/aggregates-group/AggregatesGroup.css';
6
+ export interface IAggregatesGroup {
7
+ aggregate: IAggregate;
8
+ renderItem(item: GenModels.GridAggregateValue, onItemSelect: (data: ISelectItemData) => void): React.ReactElement;
9
+ toggleAggregate(item: IAggregate): void;
10
+ onItemSelect(data: ISelectItemData): void;
11
+ textResources: IAggregatesTextResources;
12
+ }
13
+ export declare const AggregatesGroup: React.FC<IAggregatesGroup>;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import './AggregatesListItem.css';
3
+ export declare const AggregatesListItem: ({ children }: {
4
+ children: any;
5
+ }) => JSX.Element;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { HtmlProps } from '@docsvision/web/core/component';
3
+ import './AggregatesNotAvailable.css';
4
+ export interface IAggregatesNotAvailableProps extends HtmlProps.div {
5
+ }
6
+ export declare const AggregatesNotAvailable: (props: IAggregatesNotAvailableProps) => JSX.Element;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import './AggregatesPanelHeader.css';
3
+ export interface IAggregatesPanelHeaderProps {
4
+ services: any;
5
+ }
6
+ export declare const AggregatesPanelHeader: React.FC<IAggregatesPanelHeaderProps>;
@@ -0,0 +1,12 @@
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 { $LastSearchResponse } from "@docsvision/webclient/System/$LastSearchResponse";
7
+ export declare class AggregatesRequestResolver implements IFolderDataLoadingPlugin {
8
+ id: string;
9
+ description: string;
10
+ order: PluginOrder;
11
+ resolveRequest(options: IFolderLoadRequest, request: GenModels.CardListRequestModel, currentData: ITableData, previousResponse?: GenModels.GridViewModel, services?: $LastSearchResponse): Promise<void>;
12
+ }
@@ -0,0 +1,10 @@
1
+ import { IFolderDataLoadingPlugin, ResponseResolveResult } 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
+ export declare class AggregatesResponseResolver implements IFolderDataLoadingPlugin {
6
+ id: string;
7
+ description: string;
8
+ order: PluginOrder;
9
+ resolveResponse(data: ITableData, response: GenModels.GridViewModel): Promise<void | ResponseResolveResult>;
10
+ }
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
3
+ import { IAggregatesState, IAggregate, ISelectItemData } from "@docsvision/webclient/Platform/IAggregates";
4
+ import { IComposition } from "@docsvision/web/core/composition";
5
+ import { IAggregatesTextResources } from "@docsvision/webclient/Platform/AggregatesCheckbox";
6
+ import "./AggregatesTree.css";
7
+ export interface IAggregateTreeProps {
8
+ /** Дерево группировки. Значение null означает, что данные еще в процессе загрузки. */
9
+ aggregates?: IAggregate[] | null;
10
+ textResources: IAggregatesTextResources;
11
+ aggregatesState?: IAggregatesState;
12
+ composition?: IComposition;
13
+ toggleAggregate?: (item: IAggregate) => void;
14
+ onItemSelect?: (data: ISelectItemData) => void;
15
+ onLoadMoreItems?: (aggregates: GenModels.GridAggregateModel[]) => void;
16
+ }
17
+ export declare const AggregatesTree: ({ aggregates, aggregatesState, ...props }: IAggregateTreeProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const AggregatesTreeLoader: () => JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
2
+ import { IAggregate } from "@docsvision/webclient/Platform/IAggregates";
3
+ export declare const NUMBER_OF_AGGREGATE_ITEMS_IN_ONE_GROUP = 7;
4
+ export declare const setMainAggregateFirst: (aggregates: IAggregate[] | null) => IAggregate[];
5
+ export declare const prepareToShowByGroups: (items: GenModels.GridAggregateValue[], numberOfExpandedGroups: number) => GenModels.GridAggregateValue[];