@docsvision/webclient 5.16.1 → 5.17.0-beta.12
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.
- package/Approval/AgreementHistoryImpl.d.ts +2 -0
- package/Approval/AgreementList.d.ts +2 -2
- package/Approval/AgreementListImpl.d.ts +3 -0
- package/BackOffice/$WebFrameDirectorySearchPanelService.d.ts +4 -0
- package/BackOffice/Address.d.ts +3 -2
- package/BackOffice/CardKind.d.ts +3 -2
- package/BackOffice/ChangeBoundaryValuesSection.d.ts +4 -0
- package/BackOffice/ChangeSectionValues.d.ts +4 -0
- package/BackOffice/ChildTasksPerformingImpl.d.ts +3 -3
- package/BackOffice/ColumnSettingsDialog.d.ts +2 -0
- package/BackOffice/ConvertSizetoMegabytes.d.ts +1 -0
- package/BackOffice/CreateWindow.d.ts +2 -1
- package/BackOffice/Department.d.ts +3 -2
- package/BackOffice/DepartmentFilterViewComponents.d.ts +1 -1
- package/BackOffice/DepartmentImpl.d.ts +2 -0
- package/BackOffice/DirectoryDesignerRow.d.ts +3 -2
- package/BackOffice/DirectorySearchResultView.d.ts +1 -1
- package/BackOffice/EditTaskDescription.d.ts +2 -1
- package/BackOffice/EditTaskDescriptionDialog.d.ts +2 -0
- package/BackOffice/EditTaskDuration.d.ts +2 -2
- package/BackOffice/EditTaskDurationDialog.d.ts +2 -1
- package/BackOffice/EditWindow.d.ts +2 -1
- package/BackOffice/EmailButton.d.ts +21 -0
- package/BackOffice/EmailButton.stories.d.ts +10 -0
- package/BackOffice/EmailButtonContainer.d.ts +8 -0
- package/BackOffice/EmailButtonFiles.d.ts +7 -0
- package/BackOffice/EmailButtonItem.d.ts +12 -0
- package/BackOffice/EmailButtonLogic.d.ts +42 -0
- package/BackOffice/EmailButtonOptions.d.ts +36 -0
- package/BackOffice/EmailButtonSectionId.d.ts +2 -0
- package/BackOffice/EmailButtonSelectedSize.d.ts +9 -0
- package/BackOffice/EmailButtonView.d.ts +19 -0
- package/BackOffice/ExistingCardLinkDialog.d.ts +12 -4
- package/BackOffice/FileRenamingDialog.d.ts +2 -2
- package/BackOffice/FileSignCreateDialog.d.ts +1 -2
- package/BackOffice/FileSignSelectCertificateDialog.d.ts +1 -1
- package/BackOffice/GetEmlUrl.d.ts +11 -0
- package/BackOffice/ITaskTableSorting.d.ts +27 -0
- package/BackOffice/InitialCheckboxes.d.ts +4 -0
- package/BackOffice/NumeratorImpl.d.ts +1 -1
- package/BackOffice/PartnerBase.d.ts +4 -3
- package/BackOffice/PartnerBaseImpl.d.ts +2 -0
- package/BackOffice/PartnerDirectoryBase.d.ts +5 -4
- package/BackOffice/PartnerSelectDialog.d.ts +8 -1
- package/BackOffice/PartnerTypeaheadVariant.d.ts +3 -2
- package/BackOffice/PrepareTasksTableModel.d.ts +2 -1
- package/BackOffice/PrintButtonView.d.ts +1 -1
- package/BackOffice/SearchBar.d.ts +4 -0
- package/BackOffice/SortingRows.d.ts +6 -0
- package/BackOffice/StaffDirectoryConstants.d.ts +15 -0
- package/BackOffice/StaffDirectoryItems.d.ts +1 -1
- package/BackOffice/StaffDirectoryItemsImpl.d.ts +1 -1
- package/BackOffice/TaskTasksTreeNodeResolver.d.ts +5 -3
- package/BackOffice/Tasks.d.ts +2 -1
- package/BackOffice/TasksTable.d.ts +5 -1
- package/BackOffice/TasksTableHeaderCell.d.ts +3 -0
- package/BackOffice/TasksTableLogic.d.ts +12 -0
- package/BackOffice/TasksTableView.d.ts +3 -3
- package/BackOffice/TasksTree.d.ts +3 -1
- package/BackOffice/TasksTreeImpl.d.ts +3 -0
- package/BackOffice/UniquenessCheckImpl.d.ts +1 -1
- package/BackOffice/UserProfile.d.ts +1 -0
- package/BackOffice/UserStatus.d.ts +5 -0
- package/BackOffice/WebFrameDirectorySearchPanel.d.ts +2 -1
- package/BackOffice/WebFrameDirectorySearchPanelLogic.d.ts +5 -0
- package/BackOffice/WebFrameDirectorySearchPanelService.d.ts +2 -0
- package/BackOffice/WebFrameDirectorySearchPanelView.d.ts +1 -1
- package/Generated/DocsVision.WebClient.Controllers.d.ts +113 -5
- package/Generated/DocsVision.WebClient.Models.d.ts +358 -33
- package/Helpers/DateRangePicker/DateRangePicker.d.ts +24 -0
- package/Helpers/DateRangePicker/DateRangePicker.stories.d.ts +9 -0
- package/Helpers/DateRangePicker/components/DateRangePickerDay.d.ts +15 -0
- package/Helpers/DateRangePicker/components/DateRangePickerToolbar.d.ts +14 -0
- package/Helpers/IconButton.d.ts +2 -0
- package/Helpers/Menu/AdaptiveMenuBar.d.ts +2 -0
- package/Helpers/Menu/MobileMenuBar.d.ts +1 -0
- package/Helpers/MessageBox/MessageBox.d.ts +6 -1
- package/Helpers/ModalDialog/CommonModalDialog.d.ts +8 -0
- package/Helpers/ModalDialog/CommonModalDialogHost.d.ts +5 -2
- package/Helpers/ModalDialog/ModalDialogBox.d.ts +2 -0
- package/Helpers/ModalDialog/ModalDialogMaximizeButton.d.ts +23 -0
- package/Helpers/ModalDialog/ScrollableModal.d.ts +8 -0
- package/Helpers/PopoverHelpers/EditPopover/EditPopover.d.ts +1 -1
- package/Helpers/Table/TableHelperHeaderRow.d.ts +1 -0
- package/Helpers/Typeahead/Typeahead.d.ts +1 -1
- package/Legacy/ApprovalFilePanel.d.ts +1 -0
- package/Legacy/BasicGridHtmlBuilder.d.ts +4 -2
- package/Legacy/GridOptions.d.ts +3 -1
- package/Legacy/GroupTaskCardPerformersPanelRazorControl.d.ts +2 -1
- package/Legacy/ModalWindow.d.ts +7 -2
- package/Legacy/ModalWindowParams.d.ts +6 -0
- package/Legacy/SelectFolderModalDialog.d.ts +2 -1
- package/Legacy/WebFrameSearchPanelRouteHandler.d.ts +0 -1
- package/MainBundle.d.ts +2 -2
- package/Platform/$AggregatesCheckbox.d.ts +19 -0
- package/Platform/$CompanyLogo.d.ts +1 -1
- package/Platform/$ContextMenuOptions.d.ts +17 -10
- package/Platform/$CurrentFolder.d.ts +1 -0
- package/Platform/$FileDownload.d.ts +2 -1
- package/Platform/$FolderDataLoading.d.ts +5 -1
- package/Platform/$FolderGrid.d.ts +14 -6
- package/Platform/$GridOptions.d.ts +9 -4
- package/Platform/$HoverPanel.d.ts +8 -0
- package/Platform/$LastSearchParameters.d.ts +10 -0
- package/Platform/$RefreshUnreadCounters.d.ts +10 -0
- package/Platform/$SearchParametersFolder.d.ts +13 -0
- package/Platform/$SearchText.d.ts +11 -0
- package/Platform/$TablePresentationToggle.d.ts +8 -0
- package/Platform/$ToolbarDaughterControls.d.ts +20 -0
- package/Platform/AggregateItemCheckbox.d.ts +12 -0
- package/Platform/Aggregates.stories.d.ts +8 -0
- package/Platform/AggregatesCheckbox.d.ts +10 -0
- package/Platform/AggregatesCheckboxPlugins.d.ts +11 -0
- package/Platform/AggregatesCheckboxService.d.ts +37 -0
- package/Platform/{SearchParametersFolderExtendedData.d.ts → AggregatesExtendedData.d.ts} +1 -1
- package/Platform/AggregatesGroup.d.ts +13 -0
- package/Platform/AggregatesListItem.d.ts +5 -0
- package/Platform/AggregatesNotAvailable.d.ts +6 -0
- package/Platform/AggregatesPanelHeader.d.ts +6 -0
- package/Platform/AggregatesRequestResolver.d.ts +12 -0
- package/Platform/AggregatesResponseResolver.d.ts +10 -0
- package/Platform/AggregatesTree.d.ts +17 -0
- package/Platform/AggregatesTreeLoader.d.ts +2 -0
- package/Platform/AggregatesUtils.d.ts +5 -0
- package/Platform/ArchivedCardsIcon.d.ts +4 -1
- package/Platform/ArchivedCardsPlugin.d.ts +1 -1
- package/Platform/ArchivedCardsResponseResolver.d.ts +1 -2
- package/Platform/BaseMainMenuItemImpl.d.ts +2 -2
- package/Platform/BatchOperationsProgressDialogService.d.ts +3 -1
- package/Platform/CalendarInput.d.ts +1 -1
- package/Platform/ClearButton.d.ts +7 -5
- package/Platform/CompanyLogoService.d.ts +3 -1
- package/Platform/ConfigurableMainMenuContainerButton.d.ts +2 -1
- package/Platform/ContextMenu.d.ts +7 -1
- package/Platform/ContextMenuOptionsService.d.ts +7 -4
- package/Platform/DateInput.d.ts +3 -13
- package/Platform/DefaultFolderDataLoader.d.ts +3 -3
- package/Platform/DefaultFolderTablePluginFactory.d.ts +9 -6
- package/Platform/DeleteBatchOperation.d.ts +31 -0
- package/Platform/DeleteBatchOperationImpl.d.ts +23 -0
- package/Platform/DownloadBatchOperationFileInfoCard.d.ts +7 -0
- package/Platform/DownloadDocumentFileMode.d.ts +5 -0
- package/Platform/DownloadFilesBatchOperation.d.ts +36 -0
- package/Platform/DownloadFilesBatchOperationImpl.d.ts +26 -0
- package/Platform/Dropdown.d.ts +4 -0
- package/Platform/ExportPlugin.d.ts +10 -4
- package/Platform/Favorite.d.ts +22 -0
- package/Platform/FavoritesPageRouteHandler.d.ts +18 -0
- package/Platform/FavoritesRouteHandler.d.ts +18 -0
- package/Platform/FileDownloadService.d.ts +2 -1
- package/Platform/FilePickerImpl.d.ts +1 -0
- package/Platform/FilterDate.d.ts +11 -0
- package/Platform/FilterDateRangePicker.d.ts +6 -0
- package/Platform/FilterDateTextListInput.d.ts +5 -0
- package/Platform/FocusableTextInput.d.ts +3 -8
- package/Platform/Folder.d.ts +2 -1
- package/Platform/FolderCardsDashboardWidgetDataLoader.d.ts +13 -0
- package/Platform/FolderCardsDashboardWidgetImpl.d.ts +14 -13
- package/Platform/FolderContent.d.ts +2 -0
- package/Platform/FolderDashboardWidget.d.ts +1 -0
- package/Platform/FolderDashboardWidgetImpl.d.ts +3 -1
- package/Platform/FolderDataContext.d.ts +6 -2
- package/Platform/FolderDataLoadingService.d.ts +13 -7
- package/Platform/FolderGrid.d.ts +9 -3
- package/Platform/FolderGrid.stories.d.ts +1 -0
- package/Platform/FolderGridBatchOperationsNode.d.ts +2 -1
- package/Platform/FolderGridConstants.d.ts +7 -0
- package/Platform/FolderGridService.d.ts +7 -3
- package/Platform/FolderGroupDashboardWidget.d.ts +3 -0
- package/Platform/FolderGroupDashboardWidgetImpl.d.ts +7 -1
- package/Platform/FolderImpl.d.ts +2 -0
- package/Platform/FolderMainMenuItem.d.ts +1 -1
- package/Platform/FolderNameImpl.d.ts +1 -0
- package/Platform/FolderRouteTypeMapper.d.ts +1 -0
- package/Platform/FolderSizePlugin.d.ts +2 -1
- package/Platform/FolderWebFrameRouteHandler.d.ts +3 -2
- package/Platform/GetWebFrameHeaderContainerChildControls.d.ts +11 -0
- package/Platform/HoverPanelService.d.ts +5 -0
- package/Platform/IAggregates.d.ts +34 -0
- package/Platform/ICommonFolderInfo.d.ts +1 -0
- package/Platform/IFavoritesPageRouteData.d.ts +6 -0
- package/Platform/IFavoritesRouteData.d.ts +7 -0
- package/Platform/IFileHasSignature.d.ts +4 -0
- package/Platform/IFileInfo.d.ts +5 -0
- package/Platform/IFilterComponent.d.ts +29 -0
- package/Platform/IFolderDataLoader.d.ts +4 -3
- package/Platform/IFolderLoadRequest.d.ts +2 -1
- package/Platform/InputWithMask.d.ts +4 -3
- package/Platform/LastSearchParametersService.d.ts +11 -0
- package/Platform/LayoutIconButton.d.ts +2 -0
- package/Platform/LayoutIconButtonImpl.d.ts +1 -0
- package/Platform/LayoutSearchParametersDialog.d.ts +2 -1
- package/Platform/ListCheckbox.d.ts +6 -0
- package/Platform/ListContent.d.ts +8 -0
- package/Platform/ListContentHightlight.d.ts +9 -0
- package/Platform/ListEmpty.d.ts +6 -0
- package/Platform/ListEmptySearchIcon.d.ts +6 -0
- package/Platform/ListInput.d.ts +9 -0
- package/Platform/ListItem.d.ts +6 -0
- package/Platform/ListLoading.d.ts +6 -0
- package/Platform/ListSearchIcon.d.ts +6 -0
- package/Platform/ListSlot.d.ts +7 -0
- package/Platform/ListTotalItem.d.ts +8 -0
- package/Platform/ListViewResponseResolver.d.ts +13 -0
- package/Platform/LoaderDialog.d.ts +1 -1
- package/Platform/{MoveShortcutsBatchOperation.d.ts → MoveShortcutBatchOperation.d.ts} +5 -5
- package/Platform/{MoveShortcutsBatchOperationImpl.d.ts → MoveShortcutBatchOperationImpl.d.ts} +5 -5
- package/Platform/ReadAllPlugin.d.ts +11 -5
- package/Platform/ReadBatchOperation.d.ts +4 -1
- package/Platform/RecentCardsDashboardWidget.d.ts +1 -0
- package/Platform/RecentCardsDashboardWidgetDataLoader.d.ts +15 -0
- package/Platform/RecentCardsDashboardWidgetImpl.d.ts +14 -14
- package/Platform/RecentCardsRouteHandler.d.ts +2 -2
- package/Platform/RefreshPlugin.d.ts +10 -4
- package/Platform/RefreshUnreadCountersService.d.ts +13 -0
- package/Platform/ResetSettingsPlugin.d.ts +10 -4
- package/Platform/ScanDialogService.d.ts +2 -1
- package/Platform/SearchParametersFolderRequestResolver.d.ts +2 -1
- package/Platform/SearchParametersFolderResponseResolver.d.ts +5 -1
- package/Platform/SearchParametersFolderService.d.ts +12 -0
- package/Platform/SearchResultsRequestResolver.d.ts +6 -0
- package/Platform/SearchTextInput.d.ts +6 -0
- package/Platform/SearchTextProvider.d.ts +7 -0
- package/Platform/SearchTextService.d.ts +10 -0
- package/Platform/SearchingResultsImpl.d.ts +1 -1
- package/Platform/SecurityDescriptorDialog.d.ts +3 -3
- package/Platform/SecurityDialogFrame.d.ts +2 -1
- package/Platform/SettingsPlugin.d.ts +12 -7
- package/Platform/SettingsPopup.d.ts +5 -3
- package/Platform/SettingsPopup.stories.d.ts +1 -0
- package/Platform/SettingsPopupExtendedData.d.ts +2 -2
- package/Platform/SettingsPopupLogic.d.ts +16 -1
- package/Platform/SettingsPopupRequestResolver.d.ts +2 -1
- package/Platform/SettingsPopupResponseResolver.d.ts +0 -2
- package/Platform/ShowAllButton.d.ts +3 -1
- package/Platform/Table.d.ts +4 -4
- package/Platform/TableCreateRowWindow.d.ts +2 -1
- package/Platform/TableEditRowWindow.d.ts +2 -1
- package/Platform/TableImpl.d.ts +2 -2
- package/Platform/TablePresentationTogglePlugins.d.ts +9 -0
- package/Platform/TablePresentationToggleService.d.ts +8 -0
- package/Platform/TestUtils.d.ts +12 -1
- package/Platform/TextListInput.d.ts +6 -0
- package/Platform/TextListInputLogic.d.ts +55 -0
- package/Platform/TextListInputView.d.ts +40 -0
- package/Platform/TextListInputWrapper.d.ts +7 -0
- package/Platform/ToggleArrowIcon.d.ts +5 -0
- package/Platform/ToolbarDaughterControl.d.ts +18 -0
- package/Platform/ToolbarDaughterControlImpl.d.ts +14 -0
- package/Platform/ToolbarDaughterControlsPlugin.d.ts +6 -0
- package/Platform/ToolbarDaughterControlsService.d.ts +13 -0
- package/Platform/UnreadBarService.d.ts +3 -1
- package/Platform/UnreadBarTablePlugins.d.ts +6 -1
- package/Platform/UnreadResponseResolver.d.ts +2 -0
- package/Platform/UserProfileDialog.d.ts +1 -1
- package/Platform/VisibilityWebFrameHeaderContainerChildControls.d.ts +2 -0
- package/Platform/WebFrameCompanyLogo.d.ts +4 -0
- package/Platform/WebFrameContent.d.ts +9 -1
- package/Platform/WebFrameContentImpl.d.ts +4 -0
- package/Platform/WebFrameHeaderContainer.d.ts +5 -1
- package/Platform/WebFrameHeaderContainerImpl.d.ts +8 -1
- package/Platform/WebFrameMainMenuContainer.d.ts +2 -2
- package/Platform/WebFrameSearchPanel.d.ts +8 -5
- package/Platform/WebFrameUserPanel.d.ts +4 -2
- package/Platform/applyCurrentSettings.d.ts +7 -1
- package/Platform/filterViews.d.ts +3 -0
- package/Platform/setColumnsSettings.d.ts +6 -0
- package/Platform/updateValueCheckedColumn.d.ts +5 -1
- package/StandardServices.d.ts +8 -1
- package/System/$LastSearchResponse.d.ts +13 -0
- package/System/$LayoutBackground.d.ts +27 -0
- package/System/$PollService.d.ts +10 -0
- package/System/$Router.d.ts +1 -0
- package/System/BaseControl.d.ts +3 -0
- package/System/BaseControlImpl.d.ts +1 -1
- package/System/ButtonPositionsSelectionUtils.d.ts +2 -1
- package/System/CancelableEvent.d.ts +1 -1
- package/System/DateTimeUtils.d.ts +2 -0
- package/System/DirectoryBaseImpl.d.ts +5 -1
- package/System/DirectorySelectDialog.d.ts +9 -2
- package/System/GridAggregatesModelStub.d.ts +13 -0
- package/System/LastSearchResponseService.d.ts +19 -0
- package/System/Layout.d.ts +9 -3
- package/System/LayoutBackgroundService.d.ts +12 -0
- package/System/LayoutCardControllerStub.d.ts +1 -1
- package/System/LayoutContainer.d.ts +1 -1
- package/System/LayoutImpl.d.ts +1 -0
- package/System/LocationContainerControl.d.ts +2 -1
- package/System/PageLeaveConfirmation.d.ts +1 -0
- package/System/Poll.d.ts +10 -0
- package/System/PollService.d.ts +27 -0
- package/System/ResourcesStub.d.ts +2 -1
- package/System/Router.d.ts +1 -0
- package/System/StandardRoutes.d.ts +4 -0
- package/System/summernote-paste-without-formating.d.ts +10 -0
- package/package.json +1 -1
- package/Legacy/SearchPanelRouteHandler.d.ts +0 -18
- package/Platform/$PluginTemplate.d.ts +0 -12
- package/Platform/GridConstants.d.ts +0 -4
- package/Platform/PluginTemplateExtendedData.d.ts +0 -4
- package/Platform/PluginTemplatePlugins.d.ts +0 -15
- package/Platform/PluginTemplateService.d.ts +0 -11
- package/Platform/Settings.d.ts +0 -3
- package/Platform/TemplateRequestResolver.d.ts +0 -12
- package/Platform/TemplateResponseResolver.d.ts +0 -11
- package/System/$ServiceTemplate.d.ts +0 -16
- package/System/ControlTemplate.d.ts +0 -23
- package/System/ControlTemplate.stories.d.ts +0 -9
- package/System/ControlTemplateContainer.d.ts +0 -7
- package/System/ControlTemplateEffect.d.ts +0 -3
- package/System/ControlTemplateFrame.d.ts +0 -8
- package/System/ControlTemplateLogic.d.ts +0 -17
- package/System/ControlTemplateOptions.d.ts +0 -30
- package/System/ControlTemplateText.d.ts +0 -7
- package/System/ControlTemplateView.d.ts +0 -10
- package/System/ServiceTemplateService.d.ts +0 -13
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import { $RootCssClass } from '@docsvision/webclient/Helpers/$RootCssClass';
|
|
1
2
|
import { $DialogManagement } from '@docsvision/webclient/Helpers/ModalDialog/$DialogManagement';
|
|
2
3
|
import { Props } from '@docsvision/webclient/Helpers/ModalDialog/CommonModalDialog';
|
|
4
|
+
import { $DeviceType } from '@docsvision/webclient/StandardServices';
|
|
5
|
+
import { Optional } from '@docsvision/web/core/services';
|
|
3
6
|
import React from 'react';
|
|
4
7
|
/** Вспомогательный класс для отрисовки {@link CommonModalDialog} в {@link ModalHost}. */
|
|
5
8
|
export declare class CommonModalDialogHost {
|
|
@@ -13,10 +16,10 @@ export declare class CommonModalDialogHost {
|
|
|
13
16
|
private _service;
|
|
14
17
|
private contentDiv;
|
|
15
18
|
private isCancelled;
|
|
16
|
-
constructor(className: string, services
|
|
19
|
+
constructor(className: string, services: $DeviceType & Optional<$RootCssClass>, dialogProps?: Partial<Props>, renderCallback?: () => React.ReactNode, onAcceptCallback?: () => Promise<void>, onCancelCallback?: () => Promise<void>);
|
|
17
20
|
forceUpdate(callback?: Function): Promise<void>;
|
|
18
21
|
isMounted(): boolean;
|
|
19
|
-
get service(): $DialogManagement;
|
|
22
|
+
get service(): $DialogManagement & $DeviceType;
|
|
20
23
|
cancel: () => Promise<void>;
|
|
21
24
|
accept: () => Promise<void>;
|
|
22
25
|
showDialog(): Promise<unknown>;
|
|
@@ -11,6 +11,8 @@ export interface IModalDialogBoxProps {
|
|
|
11
11
|
maxWidth?: string;
|
|
12
12
|
/** Пользовательский CSS-класс */
|
|
13
13
|
className?: string;
|
|
14
|
+
/** сработает при разворачивании окна */
|
|
15
|
+
maximized?: boolean;
|
|
14
16
|
}
|
|
15
17
|
/**
|
|
16
18
|
* Представляет полотно модального окна ({@link ModalDialog}).
|
|
@@ -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
|
|
@@ -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;
|
|
@@ -41,7 +41,7 @@ export declare class Typeahead extends React.Component<ITypeaheadProps, ITypeahe
|
|
|
41
41
|
private documentClick;
|
|
42
42
|
private documentScroll;
|
|
43
43
|
protected onShowMore(): Promise<ITypeaheadSearchResult>;
|
|
44
|
-
protected onShowVariants(): void;
|
|
44
|
+
protected onShowVariants(ev: React.MouseEvent): void;
|
|
45
45
|
protected onInputKeyDown(ev: React.KeyboardEvent<any>): void;
|
|
46
46
|
protected onItemClick(ev: React.MouseEvent<any>, item: TypeaheadItem): void;
|
|
47
47
|
/** Contains logic for keyboard navigation */
|
|
@@ -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;
|
|
@@ -6,6 +6,8 @@ import { SimpleEvent } from "@docsvision/webclient/System/SimpleEvent";
|
|
|
6
6
|
import { GridRowsSelectionLogic } from '@docsvision/webclient/Legacy/GridRowsSelectionLogic';
|
|
7
7
|
import { $WebFrameContext } from '@docsvision/webclient/Platform/$WebFrameContext';
|
|
8
8
|
import { $MessageBox } from "@docsvision/webclient/System/$MessageBox";
|
|
9
|
+
import { $CurrentFolder } from "@docsvision/webclient/Platform/$CurrentFolder";
|
|
10
|
+
import { $RefreshUnreadCounters } from "@docsvision/webclient/Platform/$RefreshUnreadCounters";
|
|
9
11
|
export declare const RESIZEABLE_STORAGE_ID = "Storage";
|
|
10
12
|
export declare const WIDTH_STORE = ".widths";
|
|
11
13
|
/** @internal */
|
|
@@ -43,7 +45,7 @@ export declare abstract class BasicGridHtmlBuilder implements IGridHtmlBuilder {
|
|
|
43
45
|
static DefaultBackColor: string;
|
|
44
46
|
static FilterSettingsName: string;
|
|
45
47
|
private traceProvider;
|
|
46
|
-
protected services: $GridController & $WebFrameContext & $MessageBox;
|
|
48
|
+
protected services: $GridController & $WebFrameContext & $MessageBox & $CurrentFolder & $RefreshUnreadCounters;
|
|
47
49
|
constructor(options: GridOptions);
|
|
48
50
|
abstract rowsSelectionMode: boolean;
|
|
49
51
|
abstract buildGrid(model: GenModels.GridViewModel, targetElement: HTMLElement, rootElement: HTMLElement): any;
|
|
@@ -52,7 +54,7 @@ export declare abstract class BasicGridHtmlBuilder implements IGridHtmlBuilder {
|
|
|
52
54
|
protected abstract buildRowSwitcher(options: GridOptions, model: GenModels.GridViewModel, rowSwitcher: HTMLDivElement, rootElement: HTMLElement): HTMLDivElement;
|
|
53
55
|
abstract getChanges(): Promise<GenModels.GridViewModel>;
|
|
54
56
|
getSelection():
|
|
55
|
-
import("C:/
|
|
57
|
+
import("C:/dev/WebClient/Bin/TypeScriptDefinitions/@docsvision/Platform/Services/Table/TableRowsSelectionModel").TableRowsSelectionModel;
|
|
56
58
|
clearSelection(cardIds?: string[]): void;
|
|
57
59
|
selectionChanged: SimpleEvent<any>;
|
|
58
60
|
protected addActionButtons(header: HTMLElement): void;
|
package/Legacy/GridOptions.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { $GridController } from '@docsvision/webclient/Generated/DocsVision.WebClient.Controllers';
|
|
2
2
|
import { IGridOptions } from '@docsvision/webclient/Platform/$GridOptions';
|
|
3
|
+
import { IFolderDataLoader } from '@docsvision/webclient/Platform/IFolderDataLoader';
|
|
3
4
|
/** @internal */
|
|
4
5
|
export declare class GridOptions implements IGridOptions {
|
|
5
6
|
tableClass: string;
|
|
@@ -10,6 +11,7 @@ export declare class GridOptions implements IGridOptions {
|
|
|
10
11
|
enableToolbar: boolean;
|
|
11
12
|
enablePaging: boolean;
|
|
12
13
|
enableSorting: boolean;
|
|
14
|
+
enableUnreadBar: boolean;
|
|
13
15
|
enableGrouping: boolean;
|
|
14
16
|
enableItemDetails: boolean;
|
|
15
17
|
enableBatchOperations: boolean;
|
|
@@ -22,6 +24,6 @@ export declare class GridOptions implements IGridOptions {
|
|
|
22
24
|
searchParameters: object;
|
|
23
25
|
saveGridUserSettingsData: boolean;
|
|
24
26
|
folderHeader: string;
|
|
25
|
-
dataLoader:
|
|
27
|
+
dataLoader: IFolderDataLoader;
|
|
26
28
|
services: $GridController;
|
|
27
29
|
}
|
|
@@ -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 {
|
package/Legacy/ModalWindow.d.ts
CHANGED
|
@@ -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/
|
|
22
|
-
import "@docsvision/webclient/
|
|
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);
|
|
@@ -5,7 +5,7 @@ export declare enum LogoType {
|
|
|
5
5
|
}
|
|
6
6
|
/** Сервис для установки CompanyLogo. */
|
|
7
7
|
export interface ICompanyLogoService {
|
|
8
|
-
setCompanyLogoElements(control: HTMLElement, icon: HTMLElement): void;
|
|
8
|
+
setCompanyLogoElements(control: HTMLElement, icon: HTMLElement, alwaysShow?: boolean, filePath?: string): void;
|
|
9
9
|
show(text?: string): void;
|
|
10
10
|
showLogo(): void;
|
|
11
11
|
hideLogo(): void;
|
|
@@ -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]?:
|
|
46
|
-
[TableCompositionNames.TableRow]?:
|
|
47
|
-
[TableCompositionNames.TableCell]?:
|
|
45
|
+
export declare type ContextMenuItemsManagementData<T> = {
|
|
46
|
+
[TableCompositionNames.TableHeaderRow]?: T;
|
|
47
|
+
[TableCompositionNames.TableRow]?: T;
|
|
48
|
+
[TableCompositionNames.TableCell]?: T;
|
|
48
49
|
};
|
|
49
|
-
export
|
|
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<
|
|
75
|
+
readonly $itemProviders: Store<ContextMenuItemsManagementDataProvider>;
|
|
73
76
|
/** Данные функций-фильтров контекстного меню в соответсвии с композицией */
|
|
74
|
-
readonly $itemFilters: Store<
|
|
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
|
-
|
|
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
|
|
2
|
-
import { SortDirection } from
|
|
3
|
-
import { IFilterActiveColumn } from
|
|
4
|
-
import { ICustomContextMenuBlock, IDataItemProvider, IParamsItemProvider } from
|
|
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
|
-
|
|
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>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { IFolderDataLoader } from '@docsvision/webclient/Platform/IFolderDataLoader';
|
|
2
|
+
interface BasicGridOptions {
|
|
2
3
|
tableClass: string;
|
|
3
4
|
tableId: string;
|
|
4
5
|
wrapRow: boolean;
|
|
@@ -8,6 +9,7 @@ export interface IGridOptions {
|
|
|
8
9
|
enablePaging: boolean;
|
|
9
10
|
enableSorting: boolean;
|
|
10
11
|
enableGrouping: boolean;
|
|
12
|
+
enableUnreadBar: boolean;
|
|
11
13
|
enableItemDetails: boolean;
|
|
12
14
|
enableBatchOperations: boolean;
|
|
13
15
|
isFilterAllowed: boolean;
|
|
@@ -19,9 +21,12 @@ export interface IGridOptions {
|
|
|
19
21
|
searchParameters: object;
|
|
20
22
|
saveGridUserSettingsData: boolean;
|
|
21
23
|
folderHeader: string;
|
|
22
|
-
dataLoader:
|
|
24
|
+
dataLoader: IFolderDataLoader;
|
|
25
|
+
services: any;
|
|
23
26
|
}
|
|
27
|
+
export declare type IGridOptions = Partial<BasicGridOptions>;
|
|
24
28
|
export declare type $GridOptions = {
|
|
25
|
-
gridOptions: IGridOptions
|
|
29
|
+
gridOptions: Partial<IGridOptions>;
|
|
26
30
|
};
|
|
27
|
-
export declare const $GridOptions: string | ((model?: $GridOptions) =>
|
|
31
|
+
export declare const $GridOptions: string | ((model?: $GridOptions) => Partial<Partial<BasicGridOptions>>);
|
|
32
|
+
export {};
|
|
@@ -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,10 @@
|
|
|
1
|
+
import { GenModels } from '@docsvision/webclient/Generated/DocsVision.WebClient.Models';
|
|
2
|
+
/** Cервис передачи последних поисковых параметров. */
|
|
3
|
+
export interface ILastSearchParametersService {
|
|
4
|
+
getSearchParameters: (folderId: string) => GenModels.SearchParameter[];
|
|
5
|
+
setSearchParameters: (folderId: string, value: GenModels.SearchParameter[]) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare type $LastSearchParameters = {
|
|
8
|
+
lastSearchParameters: ILastSearchParametersService;
|
|
9
|
+
};
|
|
10
|
+
export declare const $LastSearchParameters: string | ((model?: $LastSearchParameters) => ILastSearchParametersService);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GenModels } from '@docsvision/webclient/Generated/DocsVision.WebClient.Models';
|
|
2
|
+
/** Cервис обновления счетчиков непрочитанных карточек. */
|
|
3
|
+
export interface IRefreshUnreadCountersService {
|
|
4
|
+
/** Запрашивает внеоочередной пересчет счетчиков. */
|
|
5
|
+
requestUnreadCounterRecalculation(request: GenModels.RefreshUnreadCounterRequest): void;
|
|
6
|
+
}
|
|
7
|
+
export declare type $RefreshUnreadCounters = {
|
|
8
|
+
refreshUnreadCounters: IRefreshUnreadCountersService;
|
|
9
|
+
};
|
|
10
|
+
export declare const $RefreshUnreadCounters: string | ((model?: $RefreshUnreadCounters) => IRefreshUnreadCountersService);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { GenModels } from '@docsvision/webclient/Generated/DocsVision.WebClient.Models';
|
|
2
|
+
import { Store } from 'effector';
|
|
3
|
+
/** Сервис для предоставления информация о поисковых параметрах папке. */
|
|
4
|
+
export interface ISearchParametersFolderService {
|
|
5
|
+
readonly $parameters: Store<GenModels.SearchParameter[]>;
|
|
6
|
+
readonly $requestCanceled: Store<boolean>;
|
|
7
|
+
setParameters(parameters: GenModels.SearchParameter[]): void;
|
|
8
|
+
setRequestCanceled(param: boolean): void;
|
|
9
|
+
}
|
|
10
|
+
export declare type $SearchParametersFolder = {
|
|
11
|
+
searchParametersFolder: ISearchParametersFolderService;
|
|
12
|
+
};
|
|
13
|
+
export declare const $SearchParametersFolder: string | ((model?: $SearchParametersFolder) => ISearchParametersFolderService);
|
|
@@ -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;
|