@docsvision/webclient 5.17.0-beta.11 → 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/BackOffice/$WebFrameDirectorySearchPanelService.d.ts +4 -0
- package/BackOffice/WebFrameDirectorySearchPanelService.d.ts +2 -0
- package/Generated/DocsVision.WebClient.Controllers.d.ts +7 -0
- package/Generated/DocsVision.WebClient.Models.d.ts +24 -0
- package/Helpers/Typeahead/Typeahead.d.ts +1 -1
- package/Legacy/BasicGridHtmlBuilder.d.ts +3 -1
- package/Legacy/GridOptions.d.ts +3 -1
- package/Platform/$CompanyLogo.d.ts +1 -1
- package/Platform/$GridOptions.d.ts +9 -4
- package/Platform/$LastSearchParameters.d.ts +10 -0
- package/Platform/$RefreshUnreadCounters.d.ts +10 -0
- package/Platform/$SearchParametersFolder.d.ts +13 -0
- package/Platform/CompanyLogoService.d.ts +3 -1
- package/Platform/DefaultFolderDataLoader.d.ts +2 -2
- package/Platform/DefaultFolderTablePluginFactory.d.ts +5 -5
- package/Platform/FavoritesRouteHandler.d.ts +2 -2
- package/Platform/FilePickerImpl.d.ts +1 -0
- package/Platform/FolderCardsDashboardWidgetDataLoader.d.ts +13 -0
- package/Platform/FolderCardsDashboardWidgetImpl.d.ts +14 -13
- package/Platform/FolderDashboardWidget.d.ts +1 -0
- package/Platform/FolderDashboardWidgetImpl.d.ts +3 -1
- package/Platform/FolderDataContext.d.ts +2 -1
- package/Platform/FolderGrid.d.ts +6 -2
- package/Platform/FolderGroupDashboardWidget.d.ts +3 -0
- package/Platform/FolderGroupDashboardWidgetImpl.d.ts +7 -1
- package/Platform/FolderSizePlugin.d.ts +2 -1
- package/Platform/FolderWebFrameRouteHandler.d.ts +3 -2
- package/Platform/GetWebFrameHeaderContainerChildControls.d.ts +11 -0
- package/Platform/IFolderDataLoader.d.ts +4 -3
- package/Platform/LastSearchParametersService.d.ts +11 -0
- package/Platform/ReadAllPlugin.d.ts +2 -1
- package/Platform/ReadBatchOperation.d.ts +3 -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/RefreshUnreadCountersService.d.ts +13 -0
- package/Platform/SearchParametersFolderRequestResolver.d.ts +2 -1
- package/Platform/SearchParametersFolderResponseResolver.d.ts +5 -1
- package/Platform/SearchParametersFolderService.d.ts +12 -0
- package/Platform/TestUtils.d.ts +3 -1
- package/Platform/UnreadBarService.d.ts +3 -1
- package/Platform/UnreadBarTablePlugins.d.ts +3 -1
- package/Platform/UnreadResponseResolver.d.ts +2 -0
- 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/StandardServices.d.ts +5 -1
- package/System/$LayoutBackground.d.ts +27 -0
- package/System/$Router.d.ts +1 -0
- package/System/BaseControlImpl.d.ts +1 -1
- package/System/Layout.d.ts +6 -0
- package/System/LayoutBackgroundService.d.ts +12 -0
- package/System/LayoutImpl.d.ts +1 -0
- package/System/Router.d.ts +1 -0
- package/package.json +1 -1
- package/Platform/SearchParametersFolderExtendedData.d.ts +0 -4
|
@@ -15,6 +15,10 @@ export interface IWebFrameDirectorySearchPanelService {
|
|
|
15
15
|
startSearch: Event<ISearchRequest>;
|
|
16
16
|
/** Событие очистки поисковой формы */
|
|
17
17
|
clearSearch: Event<void>;
|
|
18
|
+
/** Флаг состояния видимости панели поиска */
|
|
19
|
+
$expanded: Store<boolean>;
|
|
20
|
+
/** Событие состояния видимости панели поиска */
|
|
21
|
+
setExpanded: Event<boolean>;
|
|
18
22
|
}
|
|
19
23
|
export declare type $WebFrameDirectorySearchPanelService = {
|
|
20
24
|
webFrameDirectorySearchPanelService: IWebFrameDirectorySearchPanelService;
|
|
@@ -6,6 +6,8 @@ export declare class WebFrameDirectorySearchPanelService implements IWebFrameDir
|
|
|
6
6
|
setActivity: Event<boolean>;
|
|
7
7
|
startSearch: Event<ISearchRequest>;
|
|
8
8
|
clearSearch: Event<void>;
|
|
9
|
+
$expanded: Store<boolean>;
|
|
10
|
+
setExpanded: Event<boolean>;
|
|
9
11
|
protected domain:
|
|
10
12
|
import("effector").Domain;
|
|
11
13
|
constructor();
|
|
@@ -1305,6 +1305,12 @@ export declare namespace GenControllers {
|
|
|
1305
1305
|
* Get grid aggregates model
|
|
1306
1306
|
*/
|
|
1307
1307
|
getGridAggregatesModel(request: GenModels.GridAggregateRequest, options?: RequestOptions): Promise<Array<GenModels.GridAggregateModel>>;
|
|
1308
|
+
/**
|
|
1309
|
+
* Force unread counter recalculation.
|
|
1310
|
+
*
|
|
1311
|
+
* @param requestModel
|
|
1312
|
+
*/
|
|
1313
|
+
refreshUnreadCounter(requestModel: GenModels.RefreshUnreadCounterRequest, options?: RequestOptions): Promise<any>;
|
|
1308
1314
|
}
|
|
1309
1315
|
class GridController extends BaseController implements IGridController {
|
|
1310
1316
|
getCardList(requestModel: GenModels.CardListRequestModel, options?: RequestOptions): Promise<GenModels.CardListViewModel>;
|
|
@@ -1322,6 +1328,7 @@ export declare namespace GenControllers {
|
|
|
1322
1328
|
getFilterDistinctValues(request: GenModels.FilterDistinctValuesRequestModel, options?: RequestOptions): Promise<GenModels.DistinctValuesModel>;
|
|
1323
1329
|
loadAllPages(baseCursorId: string, options?: RequestOptions): Promise<number>;
|
|
1324
1330
|
getGridAggregatesModel(request: GenModels.GridAggregateRequest, options?: RequestOptions): Promise<Array<GenModels.GridAggregateModel>>;
|
|
1331
|
+
refreshUnreadCounter(requestModel: GenModels.RefreshUnreadCounterRequest, options?: RequestOptions): Promise<any>;
|
|
1325
1332
|
}
|
|
1326
1333
|
}
|
|
1327
1334
|
export declare type $GridController = {
|
|
@@ -3262,6 +3262,16 @@ export declare namespace GenModels {
|
|
|
3262
3262
|
checked?: boolean;
|
|
3263
3263
|
}
|
|
3264
3264
|
}
|
|
3265
|
+
export declare namespace GenModels {
|
|
3266
|
+
interface RefreshUnreadCounterRequest {
|
|
3267
|
+
/**
|
|
3268
|
+
* @format datatype.uuid
|
|
3269
|
+
*/
|
|
3270
|
+
folderId: string;
|
|
3271
|
+
folderRefreshTimeout: number;
|
|
3272
|
+
forceVirtualFolderSearch: boolean;
|
|
3273
|
+
}
|
|
3274
|
+
}
|
|
3265
3275
|
export declare namespace GenModels {
|
|
3266
3276
|
interface GetRequestModel {
|
|
3267
3277
|
locationName?: string;
|
|
@@ -5148,6 +5158,7 @@ export declare namespace GenModels {
|
|
|
5148
5158
|
interface ApprovalHistoryStageModel {
|
|
5149
5159
|
name: string;
|
|
5150
5160
|
approvalType?: GenModels.ApprovalType;
|
|
5161
|
+
beginDate: string;
|
|
5151
5162
|
stageItems: Array<GenModels.ApprovalHistoryStageItemModel>;
|
|
5152
5163
|
}
|
|
5153
5164
|
}
|
|
@@ -10534,6 +10545,19 @@ export declare namespace GenModels {
|
|
|
10534
10545
|
Pdfjs = 1
|
|
10535
10546
|
}
|
|
10536
10547
|
}
|
|
10548
|
+
export declare namespace GenModels {
|
|
10549
|
+
enum BackgroundStyle {
|
|
10550
|
+
Tile = 0,
|
|
10551
|
+
Stretch = 1
|
|
10552
|
+
}
|
|
10553
|
+
}
|
|
10554
|
+
export declare namespace GenModels {
|
|
10555
|
+
enum BackgroundType {
|
|
10556
|
+
Default = 0,
|
|
10557
|
+
Inherit = 1,
|
|
10558
|
+
Custom = 2
|
|
10559
|
+
}
|
|
10560
|
+
}
|
|
10537
10561
|
export declare namespace GenModels {
|
|
10538
10562
|
enum AgreementHistoryMode {
|
|
10539
10563
|
Button = 0,
|
|
@@ -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 */
|
|
@@ -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;
|
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
|
}
|
|
@@ -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;
|
|
@@ -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,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);
|
|
@@ -7,9 +7,11 @@ export declare class CompanyLogoService implements ICompanyLogoService {
|
|
|
7
7
|
_isHidden: boolean;
|
|
8
8
|
_logoType: LogoType;
|
|
9
9
|
_logoText: string;
|
|
10
|
+
_alwaysShow: boolean;
|
|
11
|
+
_filePath: string;
|
|
10
12
|
updateLogoVisibility: SimpleEvent<any>;
|
|
11
13
|
updateLogoType: SimpleEvent<any>;
|
|
12
|
-
setCompanyLogoElements: (control: HTMLElement, icon: HTMLElement) => void;
|
|
14
|
+
setCompanyLogoElements: (control: HTMLElement, icon: HTMLElement, alwaysShow?: boolean, filePath?: string) => void;
|
|
13
15
|
getCompanyLogoElement: () => HTMLElement;
|
|
14
16
|
getLogoVisibility: () => boolean;
|
|
15
17
|
getTypeOfLogo: () => LogoType;
|
|
@@ -2,9 +2,9 @@ import { GenModels } from '@docsvision/webclient/Generated/DocsVision.WebClient.
|
|
|
2
2
|
import { IFolderDataLoader } from '@docsvision/webclient/Platform/IFolderDataLoader';
|
|
3
3
|
import { $GridController } from '@docsvision/webclient/Generated/DocsVision.WebClient.Controllers';
|
|
4
4
|
export declare class DefaultFolderDataLoader implements IFolderDataLoader {
|
|
5
|
-
|
|
5
|
+
protected services: $GridController;
|
|
6
6
|
id: string;
|
|
7
7
|
constructor(services: $GridController);
|
|
8
|
-
load(request: GenModels.CardListRequestModel): Promise<GenModels.GridViewModelEx>;
|
|
8
|
+
load(request: GenModels.CardListRequestModel, isMobile?: boolean): Promise<GenModels.GridViewModelEx>;
|
|
9
9
|
saveUserSettings(folderId: string, viewId: string, gridUserSettings: GenModels.GridUserSettingsData, instanceId?: string): Promise<void>;
|
|
10
10
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { IFolderPluginFactory } from "@docsvision/webclient/Platform/IFolderPluginFactory";
|
|
2
|
-
import { ICommonFolderInfo } from
|
|
3
|
-
import { $CurrentLocation } from
|
|
4
|
-
import { $ApplicationSettings, $DeviceType } from
|
|
5
|
-
import { $CardController } from
|
|
6
|
-
import { $UnreadCounter } from
|
|
2
|
+
import { ICommonFolderInfo } from "@docsvision/webclient/Platform/ICommonFolderInfo";
|
|
3
|
+
import { $CurrentLocation } from "@docsvision/webclient/System/LayoutServices";
|
|
4
|
+
import { $ApplicationSettings, $DeviceType } from "@docsvision/webclient/StandardServices";
|
|
5
|
+
import { $CardController } from "@docsvision/webclient/Generated/DocsVision.WebClient.Controllers";
|
|
6
|
+
import { $UnreadCounter } from "@docsvision/webclient/Platform/$UnreadCounter";
|
|
7
7
|
import { $FolderGrid } from "@docsvision/webclient/Platform/$FolderGrid";
|
|
8
8
|
import { $FolderDataLoading } from "@docsvision/webclient/Platform/$FolderDataLoading";
|
|
9
9
|
import { ITablePlugins } from "@docsvision/web/components/table/interfaces";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { $GridController } from '@docsvision/webclient/Generated/DocsVision.WebClient.Controllers';
|
|
2
|
-
import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
|
|
3
2
|
import { IFavoritesRouteData } from "@docsvision/webclient/Platform/IFavoritesRouteData";
|
|
4
3
|
import { IRouteHandler } from "@docsvision/webclient/System/IRouteHandler";
|
|
5
4
|
import { RouteHandleResult } from "@docsvision/webclient/System/RouteHandleResult";
|
|
6
5
|
import { RouteType } from "@docsvision/webclient/System/RouteType";
|
|
7
6
|
import { $LayoutManager } from '@docsvision/webclient/System/$LayoutManager';
|
|
7
|
+
import { IFolderDataLoader } from "@docsvision/webclient/Platform/IFolderDataLoader";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export declare class FavoritesRouteHandler implements IRouteHandler<IFavoritesRouteData> {
|
|
10
10
|
private services;
|
|
11
11
|
private gridLocationName;
|
|
12
12
|
name: string;
|
|
13
13
|
constructor(services: $GridController & $LayoutManager);
|
|
14
|
-
protected
|
|
14
|
+
protected getGridModelLoader: () => IFolderDataLoader;
|
|
15
15
|
loadRouteData(knownRouteData: Partial<IFavoritesRouteData>, routeType: RouteType): Promise<RouteHandleResult>;
|
|
16
16
|
mountRoute(data: IFavoritesRouteData, routeType: RouteType): Promise<RouteHandleResult>;
|
|
17
17
|
unmountRoute(data: IFavoritesRouteData, routeType: RouteType): Promise<{}>;
|
|
@@ -108,6 +108,7 @@ import("./Components/FilePickerMenuItemsView").IFilePickerMenuItemProps) => JSX.
|
|
|
108
108
|
renderMenu(): JSX.Element;
|
|
109
109
|
renderEmptyModeContent(): JSX.Element;
|
|
110
110
|
renderEmptyMode(): JSX.Element;
|
|
111
|
+
showDeleteButton: () => boolean;
|
|
111
112
|
renderValueContent(): JSX.Element;
|
|
112
113
|
renderValueContentWithPlaceholder(): JSX.Element;
|
|
113
114
|
renderValueContentLabeled(labelText: any): JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
|
|
2
|
+
import { DefaultFolderDataLoader } from "@docsvision/webclient/Platform/DefaultFolderDataLoader";
|
|
3
|
+
import { IFolderDataLoader } from "@docsvision/webclient/Platform/IFolderDataLoader";
|
|
4
|
+
export declare class FolderCardsDashboardWidgetDataLoader extends DefaultFolderDataLoader implements IFolderDataLoader {
|
|
5
|
+
protected services: any;
|
|
6
|
+
private widgetParams?;
|
|
7
|
+
id: string;
|
|
8
|
+
constructor(services: any, widgetParams?: any);
|
|
9
|
+
load(requestAfterResolvers: GenModels.CardListRequestModel): Promise<any>;
|
|
10
|
+
loadLayoutModel(request?: GenModels.CardListRequestModel, isMobile?: boolean): Promise<GenModels.CardListViewModel>;
|
|
11
|
+
prepareRequest(originalRequest?: GenModels.CardListRequestModel): GenModels.CardListRequestModel;
|
|
12
|
+
prepareResponse(model: GenModels.GridViewModelEx): GenModels.GridViewModelEx;
|
|
13
|
+
}
|
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { $GridController } from '@docsvision/webclient/Generated/DocsVision.WebClient.Controllers';
|
|
3
1
|
import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
|
|
4
|
-
import { GridOptions } from "@docsvision/webclient/Legacy/GridOptions";
|
|
5
2
|
import { FolderCardsDashboardWidgetParams } from "@docsvision/webclient/Platform/FolderCardsDashboardWidget";
|
|
6
3
|
import { PanelImpl, PanelState } from "@docsvision/webclient/Platform/PanelImpl";
|
|
7
|
-
import { $GridOptions } from '@docsvision/webclient/Platform/$GridOptions';
|
|
8
|
-
import { $Layout } from '@docsvision/webclient/System/$Layout';
|
|
9
|
-
import { $LocationContainerControlServices } from '@docsvision/webclient/System/LocationContainerControl';
|
|
4
|
+
import { $GridOptions, IGridOptions } from '@docsvision/webclient/Platform/$GridOptions';
|
|
10
5
|
import { RequestHelper } from "@docsvision/webclient/System/RequestHelper";
|
|
11
|
-
import
|
|
6
|
+
import React from "react";
|
|
7
|
+
import { $FolderGrid } from '@docsvision/webclient/Platform/$FolderGrid';
|
|
8
|
+
import { IFolderDataLoader } from '@docsvision/webclient/Platform/IFolderDataLoader';
|
|
9
|
+
export declare type FolderCardsDashboardWidgetServices = FolderCardsDashboardWidgetParams["services"] & $FolderGrid & $GridOptions;
|
|
12
10
|
/** @internal */
|
|
13
11
|
export interface FolderCardsDashboardWidgetState extends FolderCardsDashboardWidgetParams, PanelState {
|
|
14
12
|
gridModel: GenModels.CardListViewModel;
|
|
15
13
|
loader: RequestHelper;
|
|
16
14
|
gridContainer: HTMLElement;
|
|
17
15
|
locationName: string;
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
opacity: number;
|
|
17
|
+
gridOptions: IGridOptions;
|
|
18
|
+
gridLayoutServices: FolderCardsDashboardWidgetServices;
|
|
20
19
|
}
|
|
21
20
|
/** @internal */
|
|
22
21
|
export declare class FolderCardsDashboardWidgetImpl<PropsT extends FolderCardsDashboardWidgetParams, StateT extends FolderCardsDashboardWidgetState> extends PanelImpl<PropsT, StateT> {
|
|
23
22
|
static readonly size = 5;
|
|
23
|
+
dataLoader: IFolderDataLoader;
|
|
24
24
|
constructor(props: PropsT, state: StateT);
|
|
25
25
|
componentDidMount(): void;
|
|
26
|
-
componentWillUnmount(): void;
|
|
27
26
|
loadGridModel(): Promise<void>;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
prepareServices(gridLayoutServices: FolderCardsDashboardWidgetParams["services"]): void;
|
|
28
|
+
handleWrapperScroll(): void;
|
|
29
|
+
getBlockWrapper(): HTMLElement;
|
|
30
|
+
componentWillUnmount(): void;
|
|
31
|
+
getCssStyle(): React.CSSProperties;
|
|
31
32
|
renderControl(): JSX.Element;
|
|
32
33
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FolderDashboardWidgetParams } from "@docsvision/webclient/Platform/FolderDashboardWidget";
|
|
3
2
|
import { PanelImpl, PanelState } from "@docsvision/webclient/Platform/PanelImpl";
|
|
3
|
+
import React from "react";
|
|
4
4
|
/** @internal */
|
|
5
5
|
export interface FolderDashboardWidgetState extends FolderDashboardWidgetParams, PanelState {
|
|
6
|
+
opacity: number;
|
|
6
7
|
}
|
|
7
8
|
/** @internal */
|
|
8
9
|
export declare class FolderDashboardWidgetImpl<PropsT extends FolderDashboardWidgetParams, StateT extends FolderDashboardWidgetState> extends PanelImpl<PropsT, StateT> {
|
|
@@ -13,5 +14,6 @@ export declare class FolderDashboardWidgetImpl<PropsT extends FolderDashboardWid
|
|
|
13
14
|
private attachUnreadCounter;
|
|
14
15
|
private shouldShowUnreadCounter;
|
|
15
16
|
updateUnreadCounter(count: number): void;
|
|
17
|
+
getCssStyle(): React.CSSProperties;
|
|
16
18
|
renderControl(): JSX.Element;
|
|
17
19
|
}
|
|
@@ -11,7 +11,8 @@ import { $FolderPluginProvider } from '@docsvision/webclient/Platform/$FolderPlu
|
|
|
11
11
|
import { Optional } from '@docsvision/web/core/services';
|
|
12
12
|
import { $WebFrameSearchPanel } from "@docsvision/webclient/Platform/$WebFrameSearchPanel";
|
|
13
13
|
import { $LastSearchResponse } from "@docsvision/webclient/System/$LastSearchResponse";
|
|
14
|
-
|
|
14
|
+
import { $GridOptions } from "@docsvision/webclient/Platform/$GridOptions";
|
|
15
|
+
export declare type $FolderDataContextServices = Optional<$CurrentFolder> & $CurrentLocation & $GridController & $DeviceType & $FolderPluginProvider & $WebFrameSearchPanel & $GridOptions;
|
|
15
16
|
/**
|
|
16
17
|
* Содержит публичные свойства элемента управления [Данные папки]{@link FolderDataContext}.
|
|
17
18
|
*/
|
package/Platform/FolderGrid.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ import { $TableData } from "@docsvision/web/components/table/plugins/table-data"
|
|
|
19
19
|
import { $LayoutManager } from '@docsvision/webclient/System/$LayoutManager';
|
|
20
20
|
import { $ContextMenuOptions } from '@docsvision/webclient/Platform/$ContextMenuOptions';
|
|
21
21
|
import { $FolderGrid } from '@docsvision/webclient/Platform/$FolderGrid';
|
|
22
|
+
import { $ToolbarHeight } from '@docsvision/web/components/table/plugins/toolbar';
|
|
22
23
|
import { $ToolbarDaughterControls } from '@docsvision/webclient/Platform/$ToolbarDaughterControls';
|
|
23
24
|
/**
|
|
24
25
|
* Содержит публичные свойства элемента управления [Метка]{@link Grid}.
|
|
@@ -40,15 +41,18 @@ export declare class FolderGridParams extends BaseControlParams {
|
|
|
40
41
|
opacity?: number;
|
|
41
42
|
isGroupingAllowed?: boolean;
|
|
42
43
|
showList?: boolean;
|
|
43
|
-
services?:
|
|
44
|
+
services?: $GridOptions & ServiceContainer & $GridController & $DeviceType & $ExperimentalFeature & $FolderInfo & $ApplicationSettings & $FolderPluginProvider & $CurrentLocation & $FolderDataLoading & $BatchOperationServices & $CheckboxService & $Domain & $LayoutController & $LayoutManager & $TableData & $FolderGrid & Optional<$ContextMenuOptions> & $ToolbarDaughterControls & $ToolbarHeight;
|
|
44
45
|
}
|
|
45
46
|
/**
|
|
46
47
|
* Класс элемента управления FolderGrid.
|
|
47
48
|
*/
|
|
48
49
|
export declare class FolderGrid extends BaseControl<FolderGridParams, FolderGridState> {
|
|
49
50
|
prepare(): void;
|
|
50
|
-
private
|
|
51
|
+
private configureFoldreGrid;
|
|
52
|
+
private preparePlugins;
|
|
51
53
|
private processToolbarPlugins;
|
|
54
|
+
private disableAllToolbarPlugins;
|
|
55
|
+
private disableToolbarPlugin;
|
|
52
56
|
private initToolbarDaughterControls;
|
|
53
57
|
private initBatchOperations;
|
|
54
58
|
/** @internal @deprecated */
|
|
@@ -14,11 +14,14 @@ export declare class FolderGroupDashboardWidgetParams extends PanelParams {
|
|
|
14
14
|
text: string;
|
|
15
15
|
/** Стандартный CSS класс со стилями элемента управления */
|
|
16
16
|
standardCssClass?: string;
|
|
17
|
+
/** Отступы вокруг виджета */
|
|
18
|
+
paddings?: boolean;
|
|
17
19
|
headerFolderId?: string;
|
|
18
20
|
headerFolderInfo: GenModels.FolderNode;
|
|
19
21
|
headerFolderUnreadCount?: number;
|
|
20
22
|
color?: string;
|
|
21
23
|
unreadCount?: number;
|
|
24
|
+
opacity?: number;
|
|
22
25
|
forceVirtualFolderSearch?: boolean;
|
|
23
26
|
services?: $UnreadCounter & $Folders & $Router;
|
|
24
27
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FolderGroupDashboardWidgetParams } from "@docsvision/webclient/Platform/FolderGroupDashboardWidget";
|
|
3
2
|
import { PanelImpl, PanelState } from "@docsvision/webclient/Platform/PanelImpl";
|
|
3
|
+
import React from "react";
|
|
4
4
|
/** @internal */
|
|
5
5
|
export interface FolderGroupDashboardWidgetState extends FolderGroupDashboardWidgetParams, PanelState {
|
|
6
|
+
opacity: number;
|
|
6
7
|
}
|
|
7
8
|
/** @internal */
|
|
8
9
|
export declare class FolderGroupDashboardWidgetImpl<PropsT extends FolderGroupDashboardWidgetParams, StateT extends FolderGroupDashboardWidgetState> extends PanelImpl<PropsT, StateT> {
|
|
@@ -13,5 +14,10 @@ export declare class FolderGroupDashboardWidgetImpl<PropsT extends FolderGroupDa
|
|
|
13
14
|
private attachUnreadCounter;
|
|
14
15
|
private shouldShowUnreadCounter;
|
|
15
16
|
updateUnreadCounter(count: number): void;
|
|
17
|
+
getCssStyle(): React.CSSProperties;
|
|
18
|
+
getWidgetStyle(): {
|
|
19
|
+
backgroundColor: string;
|
|
20
|
+
padding: string;
|
|
21
|
+
};
|
|
16
22
|
renderControl(): JSX.Element;
|
|
17
23
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { $FolderDataLoading } from "@docsvision/webclient/Platform/$FolderDataLoading";
|
|
2
2
|
import { $FolderInfo } from "@docsvision/webclient/Platform/$FolderInfo";
|
|
3
|
+
import { $SearchParametersFolder } from "@docsvision/webclient/Platform/$SearchParametersFolder";
|
|
3
4
|
import { TablePlugins } from "@docsvision/web/components/table/interfaces";
|
|
4
5
|
import { $CheckboxService } from "@docsvision/web/components/table/plugins/checkbox";
|
|
5
6
|
import { $Grouping } from "@docsvision/web/components/table/plugins/grouping";
|
|
@@ -7,4 +8,4 @@ import { $TableData } from "@docsvision/web/components/table/plugins/table-data"
|
|
|
7
8
|
import { Optional } from "@docsvision/web/core/services";
|
|
8
9
|
import "./FolderSizePlugin.css";
|
|
9
10
|
export declare const FolderSizeToolbarLabelFeature = "FolderSizeToolbarLabelFeature";
|
|
10
|
-
export declare const FolderSizePlugin: TablePlugins.Toolbar.Component<$FolderDataLoading & Optional<$CheckboxService> & $Grouping & $TableData & $FolderInfo>;
|
|
11
|
+
export declare const FolderSizePlugin: TablePlugins.Toolbar.Component<$FolderDataLoading & Optional<$CheckboxService> & $Grouping & $TableData & $FolderInfo & $SearchParametersFolder>;
|
|
@@ -2,7 +2,8 @@ import { IRouteHandler } from "@docsvision/webclient/System/IRouteHandler";
|
|
|
2
2
|
import { RouteHandleResult } from "@docsvision/webclient/System/RouteHandleResult";
|
|
3
3
|
import { RouteType } from "@docsvision/webclient/System/RouteType";
|
|
4
4
|
import { IFolderPageRouteData } from '@docsvision/webclient/Platform/IFolderPageRouteData';
|
|
5
|
-
import { $
|
|
5
|
+
import { $LayoutBackground } from "@docsvision/webclient/System/$LayoutBackground";
|
|
6
|
+
import { $LayoutManager } from "@docsvision/webclient/System/$LayoutManager";
|
|
6
7
|
/** @internal */
|
|
7
8
|
export declare class FolderWebFrameRouteHandler implements IRouteHandler<IFolderPageRouteData> {
|
|
8
9
|
private services;
|
|
@@ -10,7 +11,7 @@ export declare class FolderWebFrameRouteHandler implements IRouteHandler<IFolder
|
|
|
10
11
|
private layoutContainerName;
|
|
11
12
|
private webFrameContentBackgroundClass;
|
|
12
13
|
private webFrameContentName;
|
|
13
|
-
constructor(services: $
|
|
14
|
+
constructor(services: $LayoutBackground & $LayoutManager);
|
|
14
15
|
private routeTypeCheck;
|
|
15
16
|
private filterClasses;
|
|
16
17
|
mountRoute(data: IFolderPageRouteData, routeType: RouteType): Promise<RouteHandleResult>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LayoutControl } from "@docsvision/webclient/System/BaseControl";
|
|
2
|
+
export declare enum WebFrameHeaderContentAvailableControls {
|
|
3
|
+
CustomButton = "CustomButton",
|
|
4
|
+
TextBox = "TextBox",
|
|
5
|
+
Number = "Number",
|
|
6
|
+
Url = "Url",
|
|
7
|
+
Dropdown = "Dropdown",
|
|
8
|
+
Label = "Label",
|
|
9
|
+
RadioGroup = "RadioGroup"
|
|
10
|
+
}
|
|
11
|
+
export declare function getWebFrameHeaderContainerChildControls(controls?: LayoutControl[]): LayoutControl[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { GenModels } from '@docsvision/webclient/Generated/DocsVision.WebClient.Models';
|
|
2
2
|
export interface IFolderDataLoader {
|
|
3
|
-
id
|
|
4
|
-
load(request: GenModels.CardListRequestModel): Promise<GenModels.GridViewModelEx>;
|
|
5
|
-
saveUserSettings(folderId: string, viewId: string, girdUserSettings: GenModels.GridUserSettingsData, instanceId?: string): Promise<void>;
|
|
3
|
+
id?: string;
|
|
4
|
+
load?(request: GenModels.CardListRequestModel, isMobile?: boolean): Promise<GenModels.GridViewModelEx>;
|
|
5
|
+
saveUserSettings?(folderId: string, viewId: string, girdUserSettings: GenModels.GridUserSettingsData, instanceId?: string): Promise<void>;
|
|
6
|
+
loadLayoutModel?(request?: GenModels.CardListRequestModel, isMobile?: boolean): Promise<GenModels.CardListViewModel>;
|
|
6
7
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { GenModels } from '@docsvision/webclient/Generated/DocsVision.WebClient.Models';
|
|
2
|
+
import { ILastSearchParametersService } from '@docsvision/webclient/Platform/$LastSearchParameters';
|
|
3
|
+
/** @internal Реализация {@link ILastSearchParametersService}. */
|
|
4
|
+
export declare class LastSearchParametersService implements ILastSearchParametersService {
|
|
5
|
+
_lastParameters: {
|
|
6
|
+
[folderId: string]: GenModels.SearchParameter[];
|
|
7
|
+
};
|
|
8
|
+
constructor();
|
|
9
|
+
getSearchParameters: (folderId: string) => GenModels.SearchParameter[];
|
|
10
|
+
setSearchParameters: (folderId: string, value: GenModels.SearchParameter[]) => void;
|
|
11
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { $SearchParametersFolder } from "@docsvision/webclient/Platform/$SearchParametersFolder";
|
|
1
2
|
import { $UnreadCounter } from "@docsvision/webclient/Platform/$UnreadCounter";
|
|
2
3
|
import { $DeviceType } from "@docsvision/webclient/StandardServices";
|
|
3
4
|
import { $RequestManager } from "@docsvision/webclient/System/$RequestManager";
|
|
@@ -5,7 +6,7 @@ import { $UrlStore } from "@docsvision/webclient/System/$UrlStore";
|
|
|
5
6
|
import { $TableData } from "@docsvision/web/components/table/plugins/table-data";
|
|
6
7
|
import { $TableUpdate } from "@docsvision/web/components/table/plugins/table-update/$TableUpdate";
|
|
7
8
|
import { IComposition } from "@docsvision/web/core/composition";
|
|
8
|
-
export declare type $ReadAllToolbarActionServices = $TableData & $UnreadCounter & $TableUpdate & $RequestManager & $DeviceType & $UrlStore;
|
|
9
|
+
export declare type $ReadAllToolbarActionServices = $TableData & $UnreadCounter & $TableUpdate & $RequestManager & $DeviceType & $UrlStore & $SearchParametersFolder;
|
|
9
10
|
export declare const ReadAllPlugin: {
|
|
10
11
|
name: string;
|
|
11
12
|
iconClass: string;
|
|
@@ -10,7 +10,9 @@ import { $TableMode } from '@docsvision/webclient/Platform/$TableMode';
|
|
|
10
10
|
import { $TableRowSelection } from '@docsvision/webclient/Platform/$TableRowSelection';
|
|
11
11
|
import { BaseControl, BaseControlParams } from '@docsvision/webclient/System/BaseControl';
|
|
12
12
|
import { Router } from '@docsvision/webclient/System/Router';
|
|
13
|
+
import { $RefreshUnreadCounters } from '@docsvision/webclient/Platform/$RefreshUnreadCounters';
|
|
13
14
|
import { $FolderDataLoading } from '@docsvision/webclient/Platform/$FolderDataLoading';
|
|
15
|
+
import { $CurrentFolder } from '@docsvision/webclient/Platform/$CurrentFolder';
|
|
14
16
|
/**
|
|
15
17
|
* Содержит публичные свойства элемента управления [ControlTypes_ReadBatchOperation]{@link ControlTypes_ReadBatchOperation}.
|
|
16
18
|
*/
|
|
@@ -19,7 +21,7 @@ export declare class ReadBatchOperationParams extends BaseControlParams {
|
|
|
19
21
|
standardCssClass?: string;
|
|
20
22
|
/** Текст кнопки операции. */
|
|
21
23
|
buttonText?: string;
|
|
22
|
-
services?: $TableRowSelection & $BatchOperationsPerformer & $TableManagement & $TableMode & $BatchOperations & $FolderDataLoading & $LayoutTasksController & $EmployeeServices & $TextAreaServices & $CheckBoxServices & Router & $BaseCardController;
|
|
24
|
+
services?: $TableRowSelection & $BatchOperationsPerformer & $TableManagement & $TableMode & $BatchOperations & $FolderDataLoading & $LayoutTasksController & $EmployeeServices & $TextAreaServices & $CheckBoxServices & Router & $BaseCardController & $RefreshUnreadCounters & $CurrentFolder;
|
|
23
25
|
}
|
|
24
26
|
/**
|
|
25
27
|
* Класс элемента управления ReadBatchOperation.
|
|
@@ -15,6 +15,7 @@ export declare class RecentCardsDashboardWidgetParams extends PanelParams {
|
|
|
15
15
|
header: string;
|
|
16
16
|
/** Стандартный CSS класс со стилями элемента управления */
|
|
17
17
|
standardCssClass?: string;
|
|
18
|
+
opacity?: number;
|
|
18
19
|
services?: $PagesController & $GridController & $LayoutManager & $Layout & $LocationContainerControlServices & $ExperimentalFeature;
|
|
19
20
|
}
|
|
20
21
|
/** @internal */
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
|
|
2
|
+
import { RequestOptions } from "@docsvision/webclient/Legacy/Utils";
|
|
3
|
+
import { DefaultFolderDataLoader } from "@docsvision/webclient/Platform/DefaultFolderDataLoader";
|
|
4
|
+
import { IFolderDataLoader } from "@docsvision/webclient/Platform/IFolderDataLoader";
|
|
5
|
+
export declare class RecentCardsDashboardWidgetDataLoader extends DefaultFolderDataLoader implements IFolderDataLoader {
|
|
6
|
+
protected services: any;
|
|
7
|
+
private widgetParams?;
|
|
8
|
+
id: string;
|
|
9
|
+
constructor(services: any, widgetParams?: any);
|
|
10
|
+
load(request: GenModels.CardListRequestModel, isMobile?: boolean): Promise<any>;
|
|
11
|
+
loadLayoutModel(requestData: any, isMobile?: boolean): Promise<GenModels.CardListViewModel>;
|
|
12
|
+
prepareRequest(originalRequest: GenModels.CardListRequestModel): GenModels.CardListRequestModel;
|
|
13
|
+
protected getRequestOptions(isMobile: boolean): RequestOptions;
|
|
14
|
+
prepareResponse(model: GenModels.GridViewModelEx): GenModels.GridViewModelEx;
|
|
15
|
+
}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { $GridController, $PagesController } from '@docsvision/webclient/Generated/DocsVision.WebClient.Controllers';
|
|
3
1
|
import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
|
|
4
|
-
import { GridOptions } from "@docsvision/webclient/Legacy/GridOptions";
|
|
5
|
-
import { RequestOptions } from "@docsvision/webclient/Legacy/Utils";
|
|
6
2
|
import { RecentCardsDashboardWidgetParams } from "@docsvision/webclient/Platform/RecentCardsDashboardWidget";
|
|
7
3
|
import { PanelImpl, PanelState } from "@docsvision/webclient/Platform/PanelImpl";
|
|
8
|
-
import { $GridOptions } from '@docsvision/webclient/Platform/$GridOptions';
|
|
9
|
-
import { $Layout } from '@docsvision/webclient/System/$Layout';
|
|
10
|
-
import { $LocationContainerControlServices } from '@docsvision/webclient/System/LocationContainerControl';
|
|
4
|
+
import { $GridOptions, IGridOptions } from '@docsvision/webclient/Platform/$GridOptions';
|
|
11
5
|
import { RequestHelper } from "@docsvision/webclient/System/RequestHelper";
|
|
12
|
-
import
|
|
13
|
-
import { $
|
|
6
|
+
import React from "react";
|
|
7
|
+
import { $FolderGrid } from '@docsvision/webclient/Platform/$FolderGrid';
|
|
8
|
+
import { IFolderDataLoader } from '@docsvision/webclient/Platform/IFolderDataLoader';
|
|
9
|
+
export declare const TABLE_BLOCK_SCROLL_CLASS = "table-scroll-block";
|
|
10
|
+
export declare type RecentCardsDashboardWidgetServices = RecentCardsDashboardWidgetParams["services"] & $GridOptions & $FolderGrid;
|
|
14
11
|
/** @internal */
|
|
15
12
|
export interface RecentCardsDashboardWidgetState extends RecentCardsDashboardWidgetParams, PanelState {
|
|
16
13
|
gridModel: GenModels.CardListViewModel;
|
|
17
14
|
loader: RequestHelper;
|
|
18
15
|
gridContainer: HTMLElement;
|
|
19
16
|
locationName: string;
|
|
20
|
-
gridOptions:
|
|
21
|
-
|
|
17
|
+
gridOptions: IGridOptions;
|
|
18
|
+
opacity: number;
|
|
19
|
+
gridLayoutServices: RecentCardsDashboardWidgetServices;
|
|
22
20
|
}
|
|
23
21
|
/** @internal */
|
|
24
22
|
export declare class RecentCardsDashboardWidgetImpl<PropsT extends RecentCardsDashboardWidgetParams, StateT extends RecentCardsDashboardWidgetState> extends PanelImpl<PropsT, StateT> {
|
|
25
23
|
static readonly size = 5;
|
|
24
|
+
dataLoader: IFolderDataLoader;
|
|
26
25
|
constructor(props: PropsT, state: StateT);
|
|
27
26
|
componentDidMount(): void;
|
|
28
27
|
loadGridModel(): Promise<void>;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
prepareServices(gridLayoutServices: RecentCardsDashboardWidgetParams["services"]): void;
|
|
29
|
+
handleWrapperScroll(): void;
|
|
30
|
+
getBlockWrapper(): HTMLElement;
|
|
31
|
+
getCssStyle(): React.CSSProperties;
|
|
32
32
|
renderControl(): JSX.Element;
|
|
33
33
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { $GridController } from '@docsvision/webclient/Generated/DocsVision.WebClient.Controllers';
|
|
2
|
-
import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
|
|
3
2
|
import { IRecentCardsRouteData } from "@docsvision/webclient/Platform/IRecentCardsRouteData";
|
|
4
3
|
import { IRouteHandler } from "@docsvision/webclient/System/IRouteHandler";
|
|
5
4
|
import { RouteHandleResult } from "@docsvision/webclient/System/RouteHandleResult";
|
|
6
5
|
import { RouteType } from "@docsvision/webclient/System/RouteType";
|
|
7
6
|
import { $LayoutManager } from '@docsvision/webclient/System/$LayoutManager';
|
|
8
7
|
import { $ExperimentalFeature } from "@docsvision/webclient/System/$ExperimentalFeature";
|
|
8
|
+
import { IFolderDataLoader } from "@docsvision/webclient/Platform/IFolderDataLoader";
|
|
9
9
|
/** @internal */
|
|
10
10
|
export declare class RecentCardsRouteHandler implements IRouteHandler<IRecentCardsRouteData> {
|
|
11
11
|
private services;
|
|
12
12
|
private gridLocationName;
|
|
13
13
|
name: string;
|
|
14
14
|
constructor(services: $GridController & $LayoutManager & $ExperimentalFeature);
|
|
15
|
-
protected
|
|
15
|
+
protected getGridModelLoader: () => IFolderDataLoader;
|
|
16
16
|
loadRouteData(knownRouteData: Partial<IRecentCardsRouteData>, routeType: RouteType): Promise<RouteHandleResult>;
|
|
17
17
|
mountRoute(data: IRecentCardsRouteData, routeType: RouteType): Promise<RouteHandleResult>;
|
|
18
18
|
unmountRoute(data: IRecentCardsRouteData, routeType: RouteType): Promise<{}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { $GridController } from '@docsvision/webclient/Generated/DocsVision.WebClient.Controllers';
|
|
2
|
+
import { GenModels } from '@docsvision/webclient/Generated/DocsVision.WebClient.Models';
|
|
3
|
+
import { Debouncer } from '@docsvision/webclient/Helpers/Debouncer';
|
|
4
|
+
import { IRefreshUnreadCountersService } from '@docsvision/webclient/Platform/$RefreshUnreadCounters';
|
|
5
|
+
/** @internal Реализация {@link IRefreshUnreadCountersService}. */
|
|
6
|
+
export declare class RefreshUnreadCountersService implements IRefreshUnreadCountersService {
|
|
7
|
+
private services;
|
|
8
|
+
folderDebouncersMap: {
|
|
9
|
+
[folderId: string]: Debouncer;
|
|
10
|
+
};
|
|
11
|
+
constructor(services: $GridController);
|
|
12
|
+
requestUnreadCounterRecalculation(request: GenModels.RefreshUnreadCounterRequest): void;
|
|
13
|
+
}
|
|
@@ -3,9 +3,10 @@ import { PluginOrder } from '@docsvision/webclient/System/PluginOrder';
|
|
|
3
3
|
import { GenModels } from '@docsvision/webclient/Generated/DocsVision.WebClient.Models';
|
|
4
4
|
import { IFolderLoadRequest } from '@docsvision/webclient/Platform/IFolderLoadRequest';
|
|
5
5
|
import { ITableData } from '@docsvision/web/components/table/interfaces';
|
|
6
|
+
import { $SearchParametersFolder } from '@docsvision/webclient/Platform/$SearchParametersFolder';
|
|
6
7
|
export declare class SearchParametersFolderRequestResolver implements IFolderDataLoadingPlugin {
|
|
7
8
|
id: string;
|
|
8
9
|
description: string;
|
|
9
10
|
order: PluginOrder;
|
|
10
|
-
resolveRequest(options: IFolderLoadRequest, request: GenModels.CardListRequestModel, currentData: ITableData, previousResponse?: GenModels.GridViewModel): Promise<void>;
|
|
11
|
+
resolveRequest(options: IFolderLoadRequest, request: GenModels.CardListRequestModel, currentData: ITableData, previousResponse?: GenModels.GridViewModel, services?: $SearchParametersFolder): Promise<void>;
|
|
11
12
|
}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { GenModels } from '@docsvision/webclient/Generated/DocsVision.WebClient.Models';
|
|
2
|
+
import { $SearchParametersFolder } from '@docsvision/webclient/Platform/$SearchParametersFolder';
|
|
2
3
|
import { IFolderDataLoadingPlugin, ResponseResolveResult } from '@docsvision/webclient/Platform/IFolderDataLoadingPlugin';
|
|
3
4
|
import { PluginOrder } from '@docsvision/webclient/System/PluginOrder';
|
|
4
5
|
import { ITableData } from '@docsvision/web/components/table/interfaces';
|
|
6
|
+
import { $LastSearchParameters } from '@docsvision/webclient/Platform/$LastSearchParameters';
|
|
7
|
+
import { $CurrentFolder } from '@docsvision/webclient/Platform/$CurrentFolder';
|
|
8
|
+
import { $Router } from '@docsvision/webclient/System/$Router';
|
|
5
9
|
export declare class SearchParametersFolderResponseResolver implements IFolderDataLoadingPlugin {
|
|
6
10
|
id: "SearchParametersFolderResponseResolver";
|
|
7
11
|
description?: "Показывает модальное окно с поисковыми параметрами";
|
|
8
12
|
order: PluginOrder.System;
|
|
9
13
|
private layoutSearchParametersDialog;
|
|
10
|
-
resolveResponse?(data: ITableData, response?: GenModels.GridViewModelEx): Promise<void | ResponseResolveResult>;
|
|
14
|
+
resolveResponse?(data: ITableData, response?: GenModels.GridViewModelEx, services?: $SearchParametersFolder & $LastSearchParameters & $CurrentFolder & $Router): Promise<void | ResponseResolveResult>;
|
|
11
15
|
private loadSearchParametres;
|
|
12
16
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { GenModels } from "@docsvision/webclient/Generated/DocsVision.WebClient.Models";
|
|
2
|
+
import { ISearchParametersFolderService } from "@docsvision/webclient/Platform/$SearchParametersFolder";
|
|
3
|
+
import { $Domain } from "@docsvision/web/core/state-management";
|
|
4
|
+
import { Event, Store } from "effector";
|
|
5
|
+
export declare class SearchParametersFolderService implements ISearchParametersFolderService {
|
|
6
|
+
private services;
|
|
7
|
+
$parameters: Store<GenModels.SearchParameter[]>;
|
|
8
|
+
setParameters: Event<GenModels.SearchParameter[]>;
|
|
9
|
+
$requestCanceled: Store<boolean>;
|
|
10
|
+
setRequestCanceled: Event<boolean>;
|
|
11
|
+
constructor(services: $Domain);
|
|
12
|
+
}
|
package/Platform/TestUtils.d.ts
CHANGED
|
@@ -16,10 +16,12 @@ import { $Resources } from '@docsvision/web/core/localization/$Resources';
|
|
|
16
16
|
import { $ToolbarActionContainer } from '@docsvision/web/components/table/plugins/toolbar-action-container';
|
|
17
17
|
import { $LocalStorage } from '@docsvision/webclient/System/$LocalStorage';
|
|
18
18
|
import { $ToolbarDaughterControls } from '@docsvision/webclient/Platform/$ToolbarDaughterControls';
|
|
19
|
+
import { $HoverPanel } from '@docsvision/webclient/Platform/$HoverPanel';
|
|
20
|
+
import { $LastSearchParameters } from '@docsvision/webclient/Platform/$LastSearchParameters';
|
|
19
21
|
export declare let ScrollContainer:
|
|
20
22
|
import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
21
23
|
export declare let ScrollContainerWrapper:
|
|
22
24
|
import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
23
25
|
export declare function common(): FolderGridParams;
|
|
24
26
|
export declare let gridStory: (name: string, render: (services: any) => JSX.Element, params?: StoryParameters) => () => JSX.Element;
|
|
25
|
-
export declare function services(): $GridOptions & $Router & $GridController & $DeviceType & $ExperimentalFeature & $ApplicationSettings & $Resources & $ToolbarActionContainer & $FolderPluginProvider & $CurrentLocation & $CurrentFolder & $WebFrameSearchPanel & $LastSearchResponse & $Domain & $LocalStorage & $ToolbarDaughterControls;
|
|
27
|
+
export declare function services(): $GridOptions & $Router & $GridController & $DeviceType & $ExperimentalFeature & $ApplicationSettings & $Resources & $ToolbarActionContainer & $FolderPluginProvider & $CurrentLocation & $CurrentFolder & $WebFrameSearchPanel & $LastSearchResponse & $Domain & $LocalStorage & $ToolbarDaughterControls & $HoverPanel & $LastSearchParameters;
|
|
@@ -5,11 +5,13 @@ import { $UnreadCounter } from '@docsvision/webclient/Platform/$UnreadCounter';
|
|
|
5
5
|
import { IRowData } from '@docsvision/web/components/table/interfaces';
|
|
6
6
|
import { $Domain } from '@docsvision/web/core/state-management';
|
|
7
7
|
import { Event } from 'effector';
|
|
8
|
+
import { $RefreshUnreadCounters } from '@docsvision/webclient/Platform/$RefreshUnreadCounters';
|
|
9
|
+
import { $CurrentFolder } from '@docsvision/webclient/Platform/$CurrentFolder';
|
|
8
10
|
/** Сервис для корректного инициирования скачивания файла из скриптов. */
|
|
9
11
|
export declare class UnreadBarService implements IUnreadBarService {
|
|
10
12
|
private services;
|
|
11
13
|
performOnce: PerformOnce;
|
|
12
14
|
rowToggled: Event<IRowData>;
|
|
13
|
-
constructor(services: $CardController & $UnreadCounter & $Domain);
|
|
15
|
+
constructor(services: $CardController & $UnreadCounter & $Domain & $RefreshUnreadCounters & $CurrentFolder);
|
|
14
16
|
toggleUnread(rowData: IRowData): Promise<any>;
|
|
15
17
|
}
|
|
@@ -4,12 +4,14 @@ import { $CardController } from '@docsvision/webclient/Generated/DocsVision.WebC
|
|
|
4
4
|
import { $UnreadCounter } from '@docsvision/webclient/Platform/$UnreadCounter';
|
|
5
5
|
import { TablePlugins, ITablePlugins } from '@docsvision/web/components/table/interfaces';
|
|
6
6
|
import { $Domain } from '@docsvision/web/core/state-management';
|
|
7
|
+
import { $RefreshUnreadCounters } from '@docsvision/webclient/Platform/$RefreshUnreadCounters';
|
|
8
|
+
import { $CurrentFolder } from '@docsvision/webclient/Platform/$CurrentFolder';
|
|
7
9
|
import "./UnreadBarTablePlugins.css";
|
|
8
10
|
export declare const UnreadBarFeature = "UnreadBarFeature";
|
|
9
11
|
export declare const UNREAD_BAR_COLUMN_VISIBILITY = "UnreadBarVisibility";
|
|
10
12
|
export declare const UnreadBarTableCellPlugin: TablePlugins.Cell.Component<$UnreadBar>;
|
|
11
13
|
export declare const UnreadBarListViewTableCellPlugin: TablePlugins.Cell.Component<$UnreadBar>;
|
|
12
|
-
export declare const UnreadBarServiceProvider: TablePlugins.ServiceProvider<$UnreadBar & $CardController & $UnreadCounter & $Domain>;
|
|
14
|
+
export declare const UnreadBarServiceProvider: TablePlugins.ServiceProvider<$UnreadBar & $CardController & $UnreadCounter & $Domain & $RefreshUnreadCounters & $CurrentFolder>;
|
|
13
15
|
export declare const UnreadBarTableRowMountEffect: TablePlugins.Row.MountEffect<$ApplicationSettings & $UnreadBar>;
|
|
14
16
|
export declare const UnreadBarTableRowDecorator: TablePlugins.Row.Decorator<$ApplicationSettings & $UnreadBar>;
|
|
15
17
|
export declare const UnreadBarTableHeaderCellPlugin: TablePlugins.HeaderCell.Component<$ApplicationSettings>;
|
|
@@ -4,8 +4,10 @@ import { GenModels } from '@docsvision/webclient/Generated/DocsVision.WebClient.
|
|
|
4
4
|
import { ITableData } from '@docsvision/web/components/table/interfaces';
|
|
5
5
|
export declare const UNREAD_COLUMN_ORDER = -10000;
|
|
6
6
|
export declare class UnreadResponseResolver implements IFolderDataLoadingPlugin {
|
|
7
|
+
private services;
|
|
7
8
|
id: string;
|
|
8
9
|
description: string;
|
|
9
10
|
order: PluginOrder;
|
|
11
|
+
constructor(services: any);
|
|
10
12
|
resolveResponse(data: ITableData, response: GenModels.GridViewModelEx): Promise<void | ResponseResolveResult>;
|
|
11
13
|
}
|
|
@@ -15,6 +15,10 @@ export declare class WebFrameCompanyLogoParams extends BaseControlParams {
|
|
|
15
15
|
typeOfLogo?: LogoType;
|
|
16
16
|
/** Текст логотипа */
|
|
17
17
|
logoText?: string;
|
|
18
|
+
/** Показывать ли логотип при переходе по папкам */
|
|
19
|
+
alwaysShow?: boolean;
|
|
20
|
+
/** Путь к логотипу */
|
|
21
|
+
filePath?: string;
|
|
18
22
|
services?: $CompanyLogo & $Layout;
|
|
19
23
|
}
|
|
20
24
|
export interface WebFrameCompanyLogoState extends WebFrameCompanyLogoParams, BaseControlState {
|
|
@@ -3,13 +3,21 @@ import { $ApplicationSettings } from '@docsvision/webclient/StandardServices';
|
|
|
3
3
|
import { BaseControl, BaseControlParams, BaseControlState } from "@docsvision/webclient/System/BaseControl";
|
|
4
4
|
import { $ContentElementProvider } from '@docsvision/webclient/Platform/$ContentElementProvider';
|
|
5
5
|
import { $LocalStorage } from '@docsvision/webclient/System/$LocalStorage';
|
|
6
|
+
import { GenModels } from '@docsvision/webclient/Generated/DocsVision.WebClient.Models';
|
|
7
|
+
import { $LayoutBackground } from '@docsvision/webclient/System/$LayoutBackground';
|
|
6
8
|
/**
|
|
7
9
|
* Содержит публичные свойства элемента управления [Метка]{@link WebFrameContent}.
|
|
8
10
|
*/
|
|
9
11
|
export declare class WebFrameContentParams extends BaseControlParams {
|
|
10
12
|
/** Стандартный CSS класс со стилями элемента управления */
|
|
11
13
|
standardCssClass?: string;
|
|
12
|
-
|
|
14
|
+
/** URL к картинке фона */
|
|
15
|
+
backgroundImage?: string;
|
|
16
|
+
/** Режим отображения фона */
|
|
17
|
+
backgroundType?: GenModels.BackgroundType;
|
|
18
|
+
/** Стиль отображения фона */
|
|
19
|
+
backgroundStyle?: GenModels.BackgroundStyle;
|
|
20
|
+
services?: $ApplicationSettings & $ContentElementProvider & $LocalStorage & $LayoutBackground;
|
|
13
21
|
}
|
|
14
22
|
export interface WebFrameContentState extends WebFrameContentParams, BaseControlState {
|
|
15
23
|
}
|
|
@@ -6,7 +6,11 @@ import React from 'react';
|
|
|
6
6
|
*/
|
|
7
7
|
export declare class WebFrameContentImpl extends BaseControlImpl<WebFrameContentParams, WebFrameContentState> {
|
|
8
8
|
private content;
|
|
9
|
+
private backgroundUnsubscribe;
|
|
9
10
|
componentDidMount(): void;
|
|
11
|
+
componentWillUnmount(): void;
|
|
12
|
+
private setBackgroundStyle;
|
|
13
|
+
protected getCssStyle(): React.CSSProperties;
|
|
10
14
|
protected handleClick(event: React.MouseEvent<any>): void;
|
|
11
15
|
hideMainMenu: () => void;
|
|
12
16
|
protected renderControl(): JSX.Element;
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
+
import { $WebFrameDirectorySearchPanelService } from '@docsvision/webclient/BackOffice/$WebFrameDirectorySearchPanelService';
|
|
1
2
|
import { Panel, PanelParams } from '@docsvision/webclient/Platform/Panel';
|
|
2
3
|
import { PanelState } from '@docsvision/webclient/Platform/PanelImpl';
|
|
3
4
|
import { WebFrameHeaderContainerImpl } from '@docsvision/webclient/Platform/WebFrameHeaderContainerImpl';
|
|
5
|
+
import { $WebFrameSearchPanel } from '@docsvision/webclient/Platform/$WebFrameSearchPanel';
|
|
4
6
|
import { $ApplicationSettings } from '@docsvision/webclient/StandardServices';
|
|
7
|
+
import { $Layout } from '@docsvision/webclient/System/$Layout';
|
|
5
8
|
/**
|
|
6
9
|
* Содержит публичные свойства элемента управления [Метка]{@link WebFrameHeaderContainer}.
|
|
7
10
|
*/
|
|
8
11
|
export declare class WebFrameHeaderContainerParams extends PanelParams {
|
|
9
12
|
/** Стандартный CSS класс со стилями элемента управления */
|
|
10
13
|
standardCssClass?: string;
|
|
11
|
-
|
|
14
|
+
height?: number;
|
|
15
|
+
services: $ApplicationSettings & $WebFrameSearchPanel & $WebFrameDirectorySearchPanelService & $Layout;
|
|
12
16
|
}
|
|
13
17
|
export interface WebFrameHeaderContainerState extends WebFrameHeaderContainerParams, PanelState {
|
|
14
18
|
}
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { PanelImpl } from '@docsvision/webclient/Platform/PanelImpl';
|
|
3
2
|
import { WebFrameHeaderContainerParams, WebFrameHeaderContainerState } from '@docsvision/webclient/Platform/WebFrameHeaderContainer';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Subscription } from 'effector';
|
|
4
5
|
/**
|
|
5
6
|
* Класс элемента управления WebFrameHeaderContainerImpl.
|
|
6
7
|
*/
|
|
7
8
|
export declare class WebFrameHeaderContainerImpl extends PanelImpl<WebFrameHeaderContainerParams, WebFrameHeaderContainerState> {
|
|
9
|
+
visibilityControlsUnsubscribe: Subscription;
|
|
10
|
+
constructor(props: WebFrameHeaderContainerParams, state: WebFrameHeaderContainerState);
|
|
11
|
+
componentDidMount(): void;
|
|
12
|
+
componentWillUnmount(): void;
|
|
13
|
+
private visibilityControls;
|
|
8
14
|
hideUserMenu: (e: any) => void;
|
|
15
|
+
protected getCssStyle(): React.CSSProperties;
|
|
9
16
|
renderControl(): JSX.Element;
|
|
10
17
|
}
|
package/StandardServices.d.ts
CHANGED
|
@@ -48,8 +48,12 @@ import { $WebFrameDirectorySearchInfoStorageService } from "@docsvision/webclien
|
|
|
48
48
|
import { $DialogManagement } from "@docsvision/webclient/Helpers/ModalDialog/$DialogManagement";
|
|
49
49
|
import { $WebFrameSearchPanel } from "@docsvision/webclient/Platform/$WebFrameSearchPanel";
|
|
50
50
|
import { $LastSearchResponse } from "@docsvision/webclient/System/$LastSearchResponse";
|
|
51
|
+
import { $RefreshUnreadCounters } from "@docsvision/webclient/Platform/$RefreshUnreadCounters";
|
|
52
|
+
import { $CurrentFolder } from "@docsvision/webclient/Platform/$CurrentFolder";
|
|
53
|
+
import { $LastSearchParameters } from "@docsvision/webclient/Platform/$LastSearchParameters";
|
|
51
54
|
import { $Poll } from "@docsvision/webclient/System/$PollService";
|
|
52
55
|
import { $FolderPluginProvider } from "@docsvision/webclient/Platform/$FolderPluginProvider";
|
|
56
|
+
import { $LayoutBackground } from "@docsvision/webclient/System/$LayoutBackground";
|
|
53
57
|
import { $HoverPanel } from "@docsvision/webclient/Platform/$HoverPanel";
|
|
54
58
|
/** Сервис доступа к идентификатору текущего пользователя. */
|
|
55
59
|
export declare type $CurrentEmployeeId = {
|
|
@@ -140,4 +144,4 @@ export declare type $ApplicationSettings = {
|
|
|
140
144
|
};
|
|
141
145
|
export declare const $ApplicationSettings: string | ((model?: $ApplicationSettings) => GenModels.ApplicationSettings);
|
|
142
146
|
/** Стандартные сервисы Web-клиента. */
|
|
143
|
-
export declare type $StandardServices = $Layout & $Router & $CurrentEmployeeId & $CurrentEmployeeAccountName & $DeviceType & $SiteUrl & $Locale & $FullTextSearchEnabled & $RequestManager & $Sidebar & $FolderViews & $SearchPanel & $NavBar & $Folders & $UnreadCounter & $InstalledCSP & $ApplicationTimestamp & $LayoutManager & $RealtimeCommunicationService & $UserMenu & $LayoutControlFactory & $EditOperationStore & $LayoutInfo & $CardInfo & $RowInfo & $CardId & $RowId & $CardTimestamp & $ControlStore & $LocalStorage & $BaseName & $RouteTimestamp & $EnableRouterLogging & $IsMobileSafari & $LogEnabled & $IsIE & $IsSafari & $LastSearchRequest & $UrlStore & $UrlResolver & $CurrentEmployee & $RouterNavigation & $OwnerLayout & $ApplicationSettings & $ExtensionManager & $WebServices & $BatchOperationsProgressDialog & $BatchOperationsPerformer & $InsideMainMenu & $Timeout & $WebFrameContext & $ExtendedDataSourceInfos & $FilePickerUpload & $MessageBox & $WindowLocation & $FileDownload & $ExperimentalFeature & $UnreadCounterNotification & $EmployeeStatus & $CacheManagement & $FileScan & $LayoutCheck & $ScanDialog & $FileService & $CompanyLogo & $ContentElementProvider & $RootCssClass & $FilePreview & $WebViewIOSEnabled & $FileUpload & Partial<$WebFrameDirectorySearchPanelService> & $Domain & $Resources & $MessageWindow & $DialogManagement & $WebFrameDirectorySearchInfoStorageService & $WebFrameSearchPanel & $LastSearchResponse & $Poll & $FolderPluginProvider & $HoverPanel;
|
|
147
|
+
export declare type $StandardServices = $Layout & $Router & $CurrentEmployeeId & $CurrentEmployeeAccountName & $DeviceType & $SiteUrl & $Locale & $FullTextSearchEnabled & $RequestManager & $Sidebar & $FolderViews & $SearchPanel & $NavBar & $Folders & $UnreadCounter & $InstalledCSP & $ApplicationTimestamp & $LayoutManager & $RealtimeCommunicationService & $UserMenu & $LayoutControlFactory & $EditOperationStore & $LayoutInfo & $CardInfo & $RowInfo & $CardId & $RowId & $CardTimestamp & $ControlStore & $LocalStorage & $BaseName & $RouteTimestamp & $EnableRouterLogging & $IsMobileSafari & $LogEnabled & $IsIE & $IsSafari & $LastSearchRequest & $UrlStore & $UrlResolver & $CurrentEmployee & $RouterNavigation & $OwnerLayout & $ApplicationSettings & $ExtensionManager & $WebServices & $BatchOperationsProgressDialog & $BatchOperationsPerformer & $InsideMainMenu & $Timeout & $WebFrameContext & $ExtendedDataSourceInfos & $FilePickerUpload & $MessageBox & $WindowLocation & $FileDownload & $ExperimentalFeature & $UnreadCounterNotification & $EmployeeStatus & $CacheManagement & $FileScan & $LayoutCheck & $ScanDialog & $FileService & $CompanyLogo & $ContentElementProvider & $RootCssClass & $FilePreview & $WebViewIOSEnabled & $FileUpload & Partial<$WebFrameDirectorySearchPanelService> & $Domain & $Resources & $MessageWindow & $DialogManagement & $WebFrameDirectorySearchInfoStorageService & $WebFrameSearchPanel & $LastSearchResponse & $RefreshUnreadCounters & $LastSearchParameters & $CurrentFolder & $LastSearchResponse & $Poll & $FolderPluginProvider & $LayoutBackground & $HoverPanel & $WebFrameDirectorySearchPanelService;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { GenModels } from '@docsvision/webclient/Generated/DocsVision.WebClient.Models';
|
|
2
|
+
import { Store, Event } from 'effector';
|
|
3
|
+
export declare enum LayoutBackgroundStyle {
|
|
4
|
+
Tile = "repeat",
|
|
5
|
+
Stretch = "cover"
|
|
6
|
+
}
|
|
7
|
+
export interface ILayoutBackground {
|
|
8
|
+
/** Источник фона */
|
|
9
|
+
source: string;
|
|
10
|
+
/** Режим отображения фона */
|
|
11
|
+
type: GenModels.BackgroundType;
|
|
12
|
+
/** Стиль отображения фона */
|
|
13
|
+
style: GenModels.BackgroundStyle;
|
|
14
|
+
/** Видимость */
|
|
15
|
+
visibility?: boolean;
|
|
16
|
+
}
|
|
17
|
+
/** Реализация {@link ILayoutBackgroundService} */
|
|
18
|
+
export interface ILayoutBackgroundService {
|
|
19
|
+
readonly $webFrame: Store<ILayoutBackground>;
|
|
20
|
+
readonly $layout: Store<ILayoutBackground>;
|
|
21
|
+
setWebFrame: Event<ILayoutBackground>;
|
|
22
|
+
setLayout: Event<ILayoutBackground>;
|
|
23
|
+
}
|
|
24
|
+
export declare type $LayoutBackground = {
|
|
25
|
+
layoutBackground: ILayoutBackgroundService;
|
|
26
|
+
};
|
|
27
|
+
export declare const $LayoutBackground: string | ((model?: $LayoutBackground) => ILayoutBackgroundService);
|
package/System/$Router.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export interface IRouter {
|
|
|
12
12
|
* Please, don't use it. Really.
|
|
13
13
|
*/
|
|
14
14
|
readonly dangerouslyUrl: string;
|
|
15
|
+
readonly previousUrl: string;
|
|
15
16
|
getLastRouteProcessingId(): string;
|
|
16
17
|
addHandler<T>(routeType: RouteType, handler: IRouteHandler<T>): any;
|
|
17
18
|
removeHandler<T>(routeType: RouteType, handler: IRouteHandler<T>): any;
|
|
@@ -18,7 +18,7 @@ export declare abstract class BaseControlImpl<P extends BaseControlParams, S ext
|
|
|
18
18
|
private propertySetHandlers;
|
|
19
19
|
private changedParams;
|
|
20
20
|
private newStyleControlImpl;
|
|
21
|
-
|
|
21
|
+
protected containerElement: HTMLElement;
|
|
22
22
|
state: S;
|
|
23
23
|
/**
|
|
24
24
|
* Инициализирует объект.
|
package/System/Layout.d.ts
CHANGED
|
@@ -28,6 +28,12 @@ export declare class LayoutParams extends PanelParams implements ILayoutParams {
|
|
|
28
28
|
layoutName: string;
|
|
29
29
|
/** Дочерние разметки. */
|
|
30
30
|
childLayouts?: Layout[];
|
|
31
|
+
/** URL к картинке фона */
|
|
32
|
+
backgroundImage?: string;
|
|
33
|
+
/** Режим отображения фона */
|
|
34
|
+
backgroundType?: GenModels.BackgroundType;
|
|
35
|
+
/** Стиль отображения фона */
|
|
36
|
+
backgroundStyle?: GenModels.BackgroundStyle;
|
|
31
37
|
/** Запрещает автоматическое удаление карточки/строки при закрытии несохраненной разметки создания */
|
|
32
38
|
disableUnsavedEntityDeletion?: boolean;
|
|
33
39
|
/** Событие возникает при открытии карточки. */
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ILayoutBackground, ILayoutBackgroundService } from '@docsvision/webclient/System/$LayoutBackground';
|
|
2
|
+
import { $Domain } from '@docsvision/web/core/state-management';
|
|
3
|
+
import { Store, Event } from 'effector';
|
|
4
|
+
/** @internal Реализация {@link ILayoutBackgroundService}. */
|
|
5
|
+
export declare class LayoutBackgroundService implements ILayoutBackgroundService {
|
|
6
|
+
private services;
|
|
7
|
+
$webFrame: Store<ILayoutBackground>;
|
|
8
|
+
setWebFrame: Event<ILayoutBackground>;
|
|
9
|
+
$layout: Store<ILayoutBackground>;
|
|
10
|
+
setLayout: Event<ILayoutBackground>;
|
|
11
|
+
constructor(services: $Domain);
|
|
12
|
+
}
|
package/System/LayoutImpl.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export declare type LayoutImplState = LayoutState;
|
|
|
27
27
|
/** @internal */
|
|
28
28
|
export declare class LayoutImpl extends PanelImpl<LayoutImplProps, LayoutImplState> {
|
|
29
29
|
constructor(props: LayoutImplProps, state: LayoutImplState);
|
|
30
|
+
componentDidMount(): void;
|
|
30
31
|
protected get wrapper(): Layout;
|
|
31
32
|
protected prepareChildren(): void;
|
|
32
33
|
protected getCssClass(): string;
|
package/System/Router.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ export declare class Router implements IRouter, ILegacyRouter, IRouterNavigation
|
|
|
54
54
|
back(isCancel?: boolean): Promise<void>;
|
|
55
55
|
/** @internal */
|
|
56
56
|
get dangerouslyUrl(): string;
|
|
57
|
+
get previousUrl(): string;
|
|
57
58
|
getLastRouteProcessingId(): string;
|
|
58
59
|
/** @internal */
|
|
59
60
|
addHandler<T>(routeType: RouteType, handler: IRouteHandler<T>, order?: number): void;
|
package/package.json
CHANGED
|
@@ -1,4 +0,0 @@
|
|
|
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 getExtendedDataSearchParameters(tableData: ITableData): ISimplePluginData<GenModels.SearchParameter[]>;
|