@docsvision/management-console 1.0.0 → 6.2.0-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (6) hide show
  1. package/index.css +1 -3907
  2. package/index.d.ts +2670 -515
  3. package/index.js +122737 -89595
  4. package/index.js.map +1 -1
  5. package/package.json +1 -1
  6. package/index.css.map +0 -1
package/index.d.ts CHANGED
@@ -1,588 +1,2743 @@
1
- import * as React$1 from 'react';
2
- import React__default, { RefObject, MouseEventHandler } from 'react';
3
- import * as _material_ui_core from '@material-ui/core';
4
- import { SvgIconProps, TableCell, ButtonProps, SelectProps, Theme } from '@material-ui/core';
5
- import { $MessageWindow } from 'docsvision.web/components/modals/message-box';
6
- import { TableCompositions, ITableData, IRow, ITableDataLoadRequest, ITablePlugins, ColumnType } from 'docsvision.web/components/table/interfaces';
7
- import { $ContextMenuOptions, ICustomContextMenuOption } from 'docsvision.web/components/table/plugins/context-menu/$ContextMenuOptions';
8
- import { IComposition } from 'docsvision.web/core/composition';
9
- import { $CardUrl } from 'extensions/WorkerService/services/$CardUrl';
10
- import { $Resources, IResourcesMap } from 'system/resources/$Resources';
11
- import { HtmlProps } from 'docsvision.web/core/component/HtmlProps';
12
- import { $ApplicationSettings } from 'system/settings/IApplicationSettings';
13
- import { HtmlProps as HtmlProps$1 } from 'docsvision.web/core/component';
14
- import { IPeriodValue } from 'extensions/WorkerService/widgets/OutgoingMessagesQueue/OutgoingMessagesQueueWidgetDescription';
15
- import { Moment } from 'moment';
16
- import { $LocalStorage } from 'system/common/$LocalStorage';
17
- import { IApplication } from 'system/application/Application';
18
- import { IDateFormatPluginData } from 'docsvision.web/components/table/plugins/filter';
19
- import { IDateRangeComponent as IDateRangeComponent$1 } from 'reusable/dateRangePicker/DateRangePickerCalendarButton/IDateRangeComponent';
20
- import { $Router, $RoutingService } from 'docsvision.web/core/routing';
21
- import { SystemServices } from 'docsvision.web/core/system-services/SystemServices';
22
- import { $RepeatProcessButton } from 'plugins/RepeatProcessButton/$RepeatProcessButton';
23
- import { $ToolbarVisibility } from 'plugins/Toolbar/$ToolbarVisibility';
24
- import { $FilterPluginsLoading } from 'plugins/Toolbar/FilterPluginsLoading/$FilterPluginsLoading';
25
- import { $DashboardConfigurationService } from 'system/dashboard/IDashboardConfigurationService';
26
- import { $ExtensionsService } from 'system/extensibility/ExtensionsService';
27
- import { $ResourcesManagement } from 'system/resources/$ResourcesManagement';
28
- import { $RouteContentRender } from 'system/routing/$RouteContentRender';
29
- import { $AboutSettings } from 'system/settings/IAboutSettings';
30
- import { $LocalizationService } from 'system/settings/ILocalizationService';
31
- import { $TenantsService } from 'system/tenants/TenantsService';
32
- import { $WidgetsService } from 'system/widgets/WidgetsService';
33
- import { $PanelsExpansionService } from 'webframe/pages/settings/components/SettingsPanel/panels/WorkerPanel/$PanelsExpansionService';
34
- import { Service } from 'docsvision.web/core/services';
35
- import { Store, Event } from 'effector';
36
- import { $DatabaseMasterController } from 'Controllers/DatabaseMasterController/$DatabaseMasterController';
37
- import { $DatabasesConfigurationController } from 'Controllers/DatabasesConfigurationController/$DatabasesConfigurationController';
38
- import { $DatabasesController } from 'Controllers/DatabasesController/$DatabasesController';
39
- import { $DatabaseWizard } from 'webframe/pages/ServiceSettings/DatabaseWizard/DatabaseWizardService/$DatabaseWizardService';
40
- import { FieldValues, UseFormGetValues, UseFormGetFieldState, UseFormSetValue, FormState, UseFormResetField, UseFormReset, UseFormHandleSubmit, Control, UseFormSetFocus } from 'react-hook-form';
41
- import { StoryObj } from '@storybook/react';
42
- import { IWidgetDescription } from 'system/widgets/IWidgetDescription';
43
-
44
- declare const copyTextToClipboard: (text: string, host?: HTMLElement) => void;
45
-
46
- declare const LightTooltip: React$1.ComponentType<Pick<_material_ui_core.TooltipProps, "dir" | "slot" | "style" | "title" | "color" | "translate" | "hidden" | "open" | "arrow" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "disableFocusListener" | "disableHoverListener" | "disableTouchListener" | "enterDelay" | "enterNextDelay" | "enterTouchDelay" | "interactive" | "leaveDelay" | "leaveTouchDelay" | "onClose" | "onOpen" | "placement" | "PopperComponent" | "PopperProps" | "TransitionComponent" | "TransitionProps" | "innerRef" | "ref"> & _material_ui_core.StyledComponentProps<"tooltip">>;
47
-
48
- declare const useHideOnScroll: () => boolean;
49
-
50
- declare const useOutsideClick: (ref: React.MutableRefObject<HTMLElement>, callback: () => void) => void;
51
-
52
- interface IAccordionProps {
1
+ /// <reference types="react" />
2
+
3
+ import { $ContextMenuOptions } from 'docsvision.web/components/table/plugins/context-menu/$ContextMenuOptions';
4
+ import { $MessageWindow } from 'docsvision.web/components/modals/message-box';
5
+ import { $Router } from 'docsvision.web/core/routing';
6
+ import { $RoutingService } from 'docsvision.web/core/routing';
7
+ import { ButtonProps } from '@mui/material';
8
+ import { CircularProgressProps } from '@mui/material';
9
+ import { ColumnType } from 'docsvision.web/components/table/interfaces';
10
+ import { Control } from 'react-hook-form';
11
+ import { ControllerRenderProps } from 'react-hook-form';
12
+ import { DependencyList } from 'react';
13
+ import { Domain } from 'effector';
14
+ import { Event as Event_2 } from 'effector';
15
+ import { FieldValues } from 'react-hook-form';
16
+ import { FormState } from 'react-hook-form';
17
+ import { HtmlProps } from 'docsvision.web/core/component/HtmlProps';
18
+ import { HtmlProps as HtmlProps_2 } from 'docsvision.web/core/component';
19
+ import { IComposition } from 'docsvision.web/core/composition';
20
+ import { IconButtonProps } from '@mui/material';
21
+ import { ICustomContextMenuOption } from 'docsvision.web/components/table/plugins/context-menu/$ContextMenuOptions';
22
+ import { IDateFormatPluginData } from 'docsvision.web/components/table/plugins/filter';
23
+ import { ILogService } from 'docsvision.web/core/system-services/logging/LogService';
24
+ import { IMessageWindowService } from 'docsvision.web/components/modals/message-box';
25
+ import { IRequestService } from 'docsvision.web/core/system-services/networking/RequestService';
26
+ import { IRouter } from 'docsvision.web/core/routing';
27
+ import { IRoutingService } from 'docsvision.web/core/routing';
28
+ import { IRow } from 'docsvision.web/components/table/interfaces';
29
+ import { ITableData } from 'docsvision.web/components/table/interfaces';
30
+ import { ITableDataLoadRequest } from 'docsvision.web/components/table/interfaces';
31
+ import { ITablePlugins } from 'docsvision.web/components/table/interfaces';
32
+ import { LogLevel } from 'docsvision.web/core/system-services/logging/LogService';
33
+ import { MenuItemProps } from '@mui/material';
34
+ import { Moment } from 'moment';
35
+ import { MouseEventHandler } from 'react';
36
+ import { default as Noty_2 } from 'noty';
37
+ import { OutlinedTextFieldProps } from '@mui/material';
38
+ import { Params } from 'docsvision.web/core/routing';
39
+ import { PopoverOrigin } from '@mui/material';
40
+ import { default as React_2 } from 'react';
41
+ import { RefObject } from 'react';
42
+ import { RequestOptions } from 'docsvision.web/core/system-services/networking/RequestService';
43
+ import { Route } from 'navigo';
44
+ import { RouteContext } from 'docsvision.web/core/routing';
45
+ import { RouteHooks } from 'navigo';
46
+ import { SelectProps } from '@mui/material';
47
+ import { Service } from 'docsvision.web/core/services';
48
+ import { ServiceContainer } from 'docsvision.web/core/services';
49
+ import { Store } from 'effector';
50
+ import { StoryObj } from '@storybook/react';
51
+ import { SvgIconProps } from '@mui/material';
52
+ import { SystemServices } from 'docsvision.web/core/system-services/SystemServices';
53
+ import { TableCell } from '@mui/material';
54
+ import { TableCompositions } from 'docsvision.web/components/table/interfaces';
55
+ import { Theme } from '@mui/material';
56
+ import { TooltipProps } from '@mui/material';
57
+ import { UseFormGetFieldState } from 'react-hook-form';
58
+ import { UseFormGetValues } from 'react-hook-form';
59
+ import { UseFormHandleSubmit } from 'react-hook-form';
60
+ import { UseFormReset } from 'react-hook-form';
61
+ import { UseFormResetField } from 'react-hook-form';
62
+ import { UseFormSetFocus } from 'react-hook-form';
63
+ import { UseFormSetValue } from 'react-hook-form';
64
+
65
+ export declare type $AboutSettings = {
66
+ aboutSettings: IAboutSettings;
67
+ };
68
+
69
+ export declare const $AboutSettings: string | ((model?: $AboutSettings) => IAboutSettings);
70
+
71
+ declare type $AboutSettings_2 = { aboutSettings: IAboutSettings_2 };
72
+
73
+ declare const $AboutSettings_2 = serviceName((s: $AboutSettings_2) => s.aboutSettings);
74
+
75
+ export declare type $ApplicationSettings = {
76
+ applicationSettings: IApplicationSettings;
77
+ };
78
+
79
+ export declare const $ApplicationSettings: string | ((model?: $ApplicationSettings) => IApplicationSettings);
80
+
81
+ declare type $ApplicationSettings_2 = { applicationSettings: IApplicationSettings_2 };
82
+
83
+ declare const $ApplicationSettings_2 = serviceName((s: $ApplicationSettings_2) => s.applicationSettings);
84
+
85
+ declare type $CardUrl = { cardUrl: ICardUrl; };
86
+
87
+ declare const $CardUrl = serviceName((s: $CardUrl) => s.cardUrl);
88
+
89
+ declare type $ConfigurationLocksController = { configurationLocksController: IConfigurationLocksController };
90
+
91
+ declare const $ConfigurationLocksController = serviceName((s: $ConfigurationLocksController) => s.configurationLocksController);
92
+
93
+ export declare type $DashboardConfigurationService = {
94
+ dashboardConfigurationService: IDashboardConfigurationService;
95
+ };
96
+
97
+ export declare const $DashboardConfigurationService: string | ((model?: $DashboardConfigurationService) => IDashboardConfigurationService);
98
+
99
+ declare type $DashboardConfigurationService_2 = { dashboardConfigurationService: IDashboardConfigurationService_2 };
100
+
101
+ declare const $DashboardConfigurationService_2 = serviceName((s: $DashboardConfigurationService_2) => s.dashboardConfigurationService);
102
+
103
+ export declare type $DomEntryPointService = {
104
+ domEntryPointService: IDomEntryPointService;
105
+ };
106
+
107
+ export declare const $DomEntryPointService: string | ((model?: $DomEntryPointService) => IDomEntryPointService);
108
+
109
+ declare type $DomEntryPointService_2 = { domEntryPointService: IDomEntryPointService_2 };
110
+
111
+ declare const $DomEntryPointService_2 = serviceName((s: $DomEntryPointService_2) => s.domEntryPointService);
112
+
113
+ export declare type $EditorFactory = {
114
+ editorFactory: IEditorFactory;
115
+ };
116
+
117
+ export declare const $EditorFactory: string | ((model?: $EditorFactory) => IEditorFactory);
118
+
119
+ declare type $ExtendedConfigurationController = { extendedConfigurationController: IExtendedConfigurationController };
120
+
121
+ declare const $ExtendedConfigurationController = serviceName((s: $ExtendedConfigurationController) => s.extendedConfigurationController);
122
+
123
+ declare type $ExtendedConfigurationController_2 = {
124
+ extendedConfigurationController: IExtendedConfigurationController_2;
125
+ };
126
+
127
+ declare const $ExtendedConfigurationController_2: string | ((model?: $ExtendedConfigurationController_2) => IExtendedConfigurationController_2);
128
+
129
+ export declare type $ExtensionsService = {
130
+ extensionsService: IExtensionsService;
131
+ };
132
+
133
+ export declare const $ExtensionsService: string | ((model?: $ExtensionsService) => IExtensionsService);
134
+
135
+ declare type $ExtensionsService_2 = { extensionsService: IExtensionsService_2 };
136
+
137
+ declare const $ExtensionsService_2 = serviceName((s: $ExtensionsService_2) => s.extensionsService);
138
+
139
+ declare type $FilterPluginsLoading = { filterPluginsLoading: IFilterPluginsLoadingService };
140
+
141
+ declare const $FilterPluginsLoading = serviceName<$FilterPluginsLoading, IFilterPluginsLoadingService>(x => x.filterPluginsLoading);
142
+
143
+ export declare type $FormControl = {
144
+ formControl: IFormControl;
145
+ };
146
+
147
+ export declare const $FormControl: string | ((model?: $FormControl) => IFormControl);
148
+
149
+ declare type $FormControl_2 = { formControl: IFormControl_2 };
150
+
151
+ declare const $FormControl_2 = serviceName((s: $FormControl_2) => s.formControl);
152
+
153
+ export declare type $Layout = {
154
+ layoutService: ILayoutService;
155
+ };
156
+
157
+ export declare const $Layout: string | ((model?: $Layout) => ILayoutService);
158
+
159
+ declare type $Layout_2 = { layoutService: ILayoutService_2; };
160
+
161
+ declare const $Layout_2 = serviceName((s: $Layout_2) => s.layoutService);
162
+
163
+ export declare type $LocalizationService = {
164
+ localizationService: ILocalizationService;
165
+ };
166
+
167
+ export declare const $LocalizationService: string | ((model?: $LocalizationService) => ILocalizationService);
168
+
169
+ declare type $LocalizationService_2 = { localizationService: ILocalizationService_2 };
170
+
171
+ declare const $LocalizationService_2 = serviceName((s: $LocalizationService_2) => s.localizationService);
172
+
173
+ export declare type $LocalStorage = {
174
+ localStorage: ILocalStorage;
175
+ };
176
+
177
+ export declare const $LocalStorage: string | ((model?: $LocalStorage) => ILocalStorage);
178
+
179
+ declare type $LocalStorage_2 = { localStorage: ILocalStorage_2; };
180
+
181
+ declare const $LocalStorage_2 = serviceName((s: $LocalStorage_2) => s.localStorage);
182
+
183
+ declare type $NavigationMenu = { navigationMenu: INavigationMenuService };
184
+
185
+ declare const $NavigationMenu = serviceName<$NavigationMenu, INavigationMenuService>(x => x.navigationMenu);
186
+
187
+ declare type $NavigationMenu_2 = {
188
+ navigationMenu: INavigationMenuService_2;
189
+ };
190
+
191
+ declare const $NavigationMenu_2: string | ((model?: $NavigationMenu_2) => INavigationMenuService_2);
192
+
193
+ declare type $PanelsExpansionService = { panelsExpansionService: IPanelsExpansionService };
194
+
195
+ declare const $PanelsExpansionService = serviceName((s: $PanelsExpansionService) => s.panelsExpansionService);
196
+
197
+ declare type $RealtimeCommunication = { realtimeCommunication: IRealtimeCommunicationService };
198
+
199
+ declare const $RealtimeCommunication = serviceName((s: $RealtimeCommunication) => s.realtimeCommunication);
200
+
201
+ declare type $RealtimeCommunication_2 = {
202
+ realtimeCommunication: IRealtimeCommunicationService_2;
203
+ };
204
+
205
+ declare const $RealtimeCommunication_2: string | ((model?: $RealtimeCommunication_2) => IRealtimeCommunicationService_2);
206
+
207
+ declare type $RepeatProcessButton = { repeatProcessButton: IRepeatProcessButtonService };
208
+
209
+ declare const $RepeatProcessButton = serviceName<$RepeatProcessButton, IRepeatProcessButtonService>(x => x.repeatProcessButton);
210
+
211
+ export declare type $Resources = {
212
+ resources: IResourcesMap;
213
+ };
214
+
215
+ export declare const $Resources: string | ((model?: $Resources) => IResourcesMap);
216
+
217
+ declare type $Resources_2 = { resources: IResourcesMap_2};
218
+
219
+ declare const $Resources_2 = serviceName((s: $Resources_2) => s.resources);
220
+
221
+ export declare type $ResourcesManagement = {
222
+ resourcesManagement: IResourcesManagement;
223
+ };
224
+
225
+ export declare const $ResourcesManagement: string | ((model?: $ResourcesManagement) => IResourcesManagement);
226
+
227
+ declare type $ResourcesManagement_2 = { resourcesManagement: IResourcesManagement_2; };
228
+
229
+ declare const $ResourcesManagement_2 = serviceName((s: $ResourcesManagement_2) => s.resourcesManagement);
230
+
231
+ export declare type $RootElement = {
232
+ rootElement: IRootElementService;
233
+ };
234
+
235
+ export declare const $RootElement: string | ((model?: $RootElement) => IRootElementService);
236
+
237
+ declare type $RootElement_2 = { rootElement: IRootElementService_2 };
238
+
239
+ declare const $RootElement_2 = serviceName((s: $RootElement_2) => s.rootElement);
240
+
241
+ export declare type $RouteContentRender = {
242
+ routeContentRender: IRouteContentRenderService;
243
+ };
244
+
245
+ export declare const $RouteContentRender: string | ((model?: $RouteContentRender) => IRouteContentRenderService);
246
+
247
+ declare type $RouteContentRender_2 = { routeContentRender: IRouteContentRenderService_2 };
248
+
249
+ declare const $RouteContentRender_2 = serviceName((s: $RouteContentRender_2) => s.routeContentRender);
250
+
251
+ declare type $ServersController = { serverController: IServersController };
252
+
253
+ declare const $ServersController = serviceName((s: $ServersController) => s.serverController);
254
+
255
+ declare type $ServersController_2 = {
256
+ serverController: IServersController_2;
257
+ };
258
+
259
+ declare const $ServersController_2: string | ((model?: $ServersController_2) => IServersController_2);
260
+
261
+ declare type $SessionsController = { sessionsController: ISessionsController };
262
+
263
+ declare const $SessionsController = serviceName((s: $SessionsController) => s.sessionsController);
264
+
265
+ export declare type $SettingsNavigation = {
266
+ settingsNavigation: ISettingsNavigationService;
267
+ };
268
+
269
+ export declare const $SettingsNavigation: string | ((model?: $SettingsNavigation) => ISettingsNavigationService);
270
+
271
+ declare type $SettingsNavigation_2 = { settingsNavigation: ISettingsNavigationService_2 };
272
+
273
+ declare const $SettingsNavigation_2 = serviceName((s: $SettingsNavigation_2) => s.settingsNavigation);
274
+
275
+ export declare type $TenantsService = {
276
+ tenantsService: ITenantsService;
277
+ };
278
+
279
+ export declare const $TenantsService: string | ((model?: $TenantsService) => ITenantsService);
280
+
281
+ declare type $TenantsService_2 = { tenantsService: ITenantsService_2 };
282
+
283
+ declare const $TenantsService_2 = serviceName((s: $TenantsService_2) => s.tenantsService);
284
+
285
+ declare type $ToolbarVisibility = { toolbarVisibility: IToolbarVisibilityService };
286
+
287
+ declare const $ToolbarVisibility = serviceName((x: $ToolbarVisibility) => x.toolbarVisibility);
288
+
289
+ export declare type $WidgetsService = {
290
+ widgetsService: IWidgetsService;
291
+ };
292
+
293
+ export declare const $WidgetsService: string | ((model?: $WidgetsService) => IWidgetsService);
294
+
295
+ declare type $WidgetsService_2= { widgetsService: IWidgetsService_2 };
296
+
297
+ declare const $WidgetsService_2 = serviceName((s: $WidgetsService_2) => s.widgetsService);
298
+
299
+ export declare function Accordion(props: IAccordionProps): JSX.Element;
300
+
301
+ export declare enum ActionType {
302
+ add = 0,
303
+ delete = 1
304
+ }
305
+
306
+ export declare function actionWithThemeCssVariables(theme: Theme, action: ActionType): void;
307
+
308
+ export declare function addCssVariables(theme: Theme): void;
309
+
310
+ export declare function AlertBanner({ text }: IAlertBanner): JSX.Element;
311
+
312
+ export declare function appendStyle(fileName: string): void;
313
+
314
+ export declare class Application extends ServiceContainer implements IApplication {
315
+ protected readonly reactRootElementId: string;
316
+ logService: ILogService;
317
+ domEntryPointService: IDomEntryPointService_2;
318
+ extensionsService: IExtensionsService_2;
319
+ requestService: IRequestService;
320
+ tenantsService: ITenantsService_2;
321
+ applicationSettings: IApplicationSettings_2;
322
+ localizationService: ILocalizationService_2;
323
+ aboutSettings: IAboutSettings_2;
324
+ widgetsService: IWidgetsService_2;
325
+ router: IRouter;
326
+ routingService: IRoutingService;
327
+ dashboardConfigurationService: IDashboardConfigurationService_2;
328
+ localStorage: ILocalStorage_2;
329
+ resourcesManagement: IResourcesManagement_2;
330
+ resources: IResourcesMap_2;
331
+ routeContentRender: IRouteContentRenderService_2;
332
+ filterPluginsLoading: IFilterPluginsLoadingService;
333
+ toolbarVisibility: IToolbarVisibilityService;
334
+ messageWindow: IMessageWindowService;
335
+ repeatProcessButton: IRepeatProcessButtonService;
336
+ panelsExpansionService: IPanelsExpansionService;
337
+ layoutService: ILayoutService;
338
+ navigationMenu: INavigationMenuService_2;
339
+ serverController: IServersController_2;
340
+ settingsNavigation: ISettingsNavigationService;
341
+ formControl: IFormControl;
342
+ realtimeCommunication: IRealtimeCommunicationService_2;
343
+ sessionsController: ISessionsController;
344
+ configurationLocksController: IConfigurationLocksController;
345
+ extendedConfigurationController: IExtendedConfigurationController_2;
346
+ rootElement: IRootElementService_2;
347
+ constructor(reactRootElementId: string);
348
+ static instance: IApplication;
349
+ initialize(): Promise<void>;
350
+ initializeLoginPage(): Promise<void>;
351
+ run(): void;
352
+ protected registerSystemServices(): Promise<void>;
353
+ protected registerRouter(): void;
354
+ protected registerRoutes(): void;
355
+ protected registerLocalization(): Promise<void>;
356
+ protected loadExtensions(): Promise<void>;
357
+ protected registerServices(): void;
358
+ protected registerWidgets(): Promise<void>;
359
+ protected registerEditors(): Promise<void>;
360
+ }
361
+
362
+ export declare function ArrowIconButton({ onClick, disabled }: {
363
+ onClick?: (e: React_2.MouseEvent) => void;
364
+ disabled?: boolean;
365
+ }): JSX.Element;
366
+
367
+ declare enum BreadcrumbsLabel {
368
+ WidgetIncomingMessagesQueue,
369
+ WidgetOutgoingMessagesQueue,
370
+ PageIncomingMessagesQueue,
371
+ PageOutgoingMessagesQueue,
372
+ WidgetSearchForCardMessages,
373
+ PageSearchForCardMessages,
374
+ PageErrorAndBlockLog,
375
+ WidgetOpenSessions,
376
+ PageOpenSessions
377
+ }
378
+
379
+ declare enum BreadcrumbsLabel_2 {
380
+ WidgetIncomingMessagesQueue = 0,
381
+ WidgetOutgoingMessagesQueue = 1,
382
+ PageIncomingMessagesQueue = 2,
383
+ PageOutgoingMessagesQueue = 3,
384
+ WidgetSearchForCardMessages = 4,
385
+ PageSearchForCardMessages = 5,
386
+ PageErrorAndBlockLog = 6,
387
+ WidgetOpenSessions = 7,
388
+ PageOpenSessions = 8
389
+ }
390
+
391
+ export declare function ButtonWithLoading(props: IButtonWithLoadingProps): JSX.Element;
392
+
393
+ export declare function CellPreloader(): JSX.Element;
394
+
395
+ export declare function CellTextContent({ content, multiline }: ICellTextContentProps): JSX.Element;
396
+
397
+ export declare function CellWithFixedWidth(props: ICellWithFixedWidthProps): JSX.Element;
398
+
399
+ export declare function CellWithTwoLineClamping(props: ICellWithTwoLineClampingProps): JSX.Element;
400
+
401
+ export declare function ClearButton(props: IFilteringClearButtonProps): JSX.Element;
402
+
403
+ export declare const commonMuiProps: {
404
+ select: Partial<SelectProps<unknown>>;
405
+ };
406
+
407
+ export declare function ComponentIcon(props: IComponentIconProps): JSX.Element;
408
+
409
+ export declare const convertBase64ToString: (base64: string) => string;
410
+
411
+ export declare const convertDataToBase64: (data: object) => string;
412
+
413
+ export declare const copyTextToClipboard: (text: string, host?: HTMLElement) => void;
414
+
415
+ /**
416
+ * Replaced original FormProvider from react-hook-form because of error:
417
+ * "Type instantiation is excessively deep and possibly infinite".
418
+ * After fixing it is necessary to replace with FormProvider.
419
+ **/
420
+ export declare function CustomFormProvider<TFieldValues extends FieldValues, TContext = any, TTransformedValues extends FieldValues | undefined = undefined>(props: FormProviderProps<TFieldValues, TContext, TTransformedValues>): JSX.Element;
421
+
422
+ export declare type CustomUseFormReturn<TFieldValues extends FieldValues = FieldValues, TContext = any, TTransformedValues extends FieldValues | undefined = undefined> = {
423
+ watch: any;
424
+ setError: any;
425
+ clearErrors: any;
426
+ trigger: any;
427
+ unregister: any;
428
+ register: any;
429
+ getValues: UseFormGetValues<TFieldValues>;
430
+ getFieldState: UseFormGetFieldState<TFieldValues>;
431
+ setValue: UseFormSetValue<TFieldValues>;
432
+ formState: FormState<TFieldValues>;
433
+ resetField: UseFormResetField<TFieldValues>;
434
+ reset: UseFormReset<TFieldValues>;
435
+ handleSubmit: UseFormHandleSubmit<TFieldValues, TTransformedValues>;
436
+ control: Control<TFieldValues, TContext>;
437
+ setFocus: UseFormSetFocus<TFieldValues>;
438
+ };
439
+
440
+ declare type CustomUseFormReturn_2<
441
+ TFieldValues extends FieldValues = FieldValues,
442
+ TContext = any,
443
+ TTransformedValues extends FieldValues | undefined = undefined,
444
+ > = {
445
+ watch: any;
446
+ setError: any;
447
+ clearErrors: any;
448
+ trigger: any;
449
+ unregister: any;
450
+ register: any;
451
+
452
+ getValues: UseFormGetValues<TFieldValues>;
453
+ getFieldState: UseFormGetFieldState<TFieldValues>;
454
+ setValue: UseFormSetValue<TFieldValues>;
455
+ formState: FormState<TFieldValues>;
456
+ resetField: UseFormResetField<TFieldValues>;
457
+ reset: UseFormReset<TFieldValues>;
458
+ handleSubmit: UseFormHandleSubmit<TFieldValues, TTransformedValues>;
459
+ control: Control<TFieldValues, TContext>;
460
+ setFocus: UseFormSetFocus<TFieldValues>;
461
+ };
462
+
463
+ export declare class DashboardConfigurationService implements IDashboardConfigurationService {
464
+ private readonly requestService;
465
+ constructor(requestService: IRequestService);
466
+ getDashboardConfiguration(dashboardId: string): Promise<IDashboardConfiguration>;
467
+ addDashboardConfiguration(dashboardConfiguration: IDashboardConfiguration): Promise<void>;
468
+ updateDashboardConfiguration(dashboardConfiguration: IDashboardConfiguration): Promise<void>;
469
+ removeDashboardConfiguration(dashboardId: string): Promise<void>;
470
+ }
471
+
472
+ export declare function DatabaseSelectionModal(props: IDatabaseSelectionModalProps): JSX.Element;
473
+
474
+ export declare function DatabaseSettingsCard(props: IDatabaseSettingsCardProps): JSX.Element;
475
+
476
+ export declare type DatabaseSettingsCardSize = "sm" | "md";
477
+
478
+ export declare const DateRangeCalendarIcon: React_2.NamedExoticComponent<IDateRangeProps>;
479
+
480
+ export declare function DateRangeContainer(props: IDateRangePickerProps): JSX.Element;
481
+
482
+ export declare const Default: Story;
483
+
484
+ export declare const DEFAULT_PAGE_SIZE = 50;
485
+
486
+ export declare function DeleteIcon({ onClick }: {
487
+ onClick?: () => void;
488
+ }): JSX.Element;
489
+
490
+ export declare function DeleteIconButton({ onClick, disabled }: {
491
+ onClick?: (e: React_2.MouseEvent) => void;
492
+ disabled?: boolean;
493
+ }): JSX.Element;
494
+
495
+ export declare const DOCSVISION_CONNECTION_SETTINGS_LAYOUT = "8770b559-bcd5-48c4-b42e-e0b1c44afe7b";
496
+
497
+ export declare class DomEntryPointService implements IDomEntryPointService {
498
+ private readonly application;
499
+ constructor(application: IApplication);
500
+ render(rootElementId: string): void;
501
+ renderLoginPage(rootElementId: string): void;
502
+ }
503
+
504
+ export declare function DropdownBody(props: IDropdownBodyProps): JSX.Element;
505
+
506
+ export declare const DropdownOption: React_2.ForwardRefExoticComponent<Pick<IDropdownOptionProps, "slot" | "style" | "title" | "onClick" | "color" | "children" | "className" | "id" | "classes" | "onChange" | "sx" | "translate" | "disabled" | "disableGutters" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoFocus" | "value" | "action" | "selected" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "component" | "dense" | "displayName" | "divider"> & React_2.RefAttributes<HTMLLIElement>>;
507
+
508
+ export declare function DropdownWithEllipsis(props: IDropdownWithEllipsisProps): JSX.Element;
509
+
510
+ export declare function EditorCollectionEditor(props: IEditorCollectionEditorProps): JSX.Element;
511
+
512
+ export declare function EditorContainer(props: IEditorContainer): JSX.Element;
513
+
514
+ export declare function EditorDescription({ text }: {
515
+ text: string;
516
+ }): JSX.Element;
517
+
518
+ /** Хранит ссылки на классы редакторов с доступом по имени типа. */
519
+ export declare class EditorFactory implements IEditorFactory {
520
+ /** Словарь редакторов. */
521
+ protected editorMap: IEditorMap;
522
+ /**
523
+ * Регистрирует редактор в словаре.
524
+ * @param name Имя типа редактора.
525
+ * @param componentType Функция, возвращающая редактор.
526
+ * @param replaceExisting Следует ли разрешить перерегистрацию редакторов (по умолчанию false).
527
+ */
528
+ register(name: string, componentType: React.ComponentType<IPageModelElement>, replaceExisting?: boolean): void;
529
+ /** Возвращает зарегистрированный ранее контрол по имени типа. */
530
+ get(name: string): React.ComponentType<IPageModelElement>;
531
+ }
532
+
533
+ export declare const editorFactory: EditorFactory;
534
+
535
+ export declare function EditorInnerWrapper(props: IEditorInnerWrapper): JSX.Element;
536
+
537
+ export declare function EditorName({ text }: {
538
+ text: string;
539
+ }): JSX.Element;
540
+
541
+ export declare function EditorWrapper({ children, isChanged, isEditable }: {
542
+ children: React_2.ReactNode;
543
+ isChanged?: boolean;
544
+ isEditable?: boolean;
545
+ }): JSX.Element;
546
+
547
+ declare type EffectCallbackAsync = () => (Promise<void> | (() => Promise<void | undefined>));
548
+
549
+ export declare const EMAIL_CONNECTION_SETTINGS_LAYOUT = "ea883b59-bb95-446e-879b-97874ac4d82b";
550
+
551
+ export declare enum EngineType {
552
+ MsSQL = 0,
553
+ PgSQL = 1
554
+ }
555
+
556
+ export declare const ERROR_ROW_CLASS_NAME = "page-table__row-error";
557
+
558
+ export declare function ErrorBlock({ text, close }: IErrorBlockProps): JSX.Element;
559
+
560
+ export declare const errorHandler: (response: Response, parameters: RequestOptions) => Promise<never>;
561
+
562
+ export declare function ErrorIcon(): JSX.Element;
563
+
564
+ export declare function ErrorMessage(props: IErrorMessageProps): JSX.Element;
565
+
566
+ export declare function ExpandButton(props: IExpandButtonProps): JSX.Element;
567
+
568
+ export declare function ExpandMoreIcon(props: IExpandMoreIconProps): JSX.Element;
569
+
570
+ export declare class ExtensionsService implements IExtensionsService {
571
+ private readonly logService;
572
+ private readonly widgetService;
573
+ private readonly applicationSettings;
574
+ private readonly extensions;
575
+ constructor(logService: ILogService, widgetService: IWidgetsService_2, applicationSettings: IApplicationSettings_2);
576
+ loadExtensions(application: IApplication_2): Promise<void>;
577
+ registerServices(application: IApplication_2): void;
578
+ registerWidgets(application: IApplication_2): void;
579
+ registerEditors(): void;
580
+ getOnApplicationRunHandlers(): ((application: IApplication_2) => void)[];
581
+ private getExtensionsLoadingInfo;
582
+ private loadJSModule;
583
+ private loadStyles;
584
+ private loadExtensionResources;
585
+ }
586
+
587
+ /** Делает заглавной первую букву строки */
588
+ export declare function firstLetterToUppercase(str?: string): string;
589
+
590
+ export declare const formatDateToString: (date: Date, formatMask?: string) => string;
591
+
592
+ /** Форматирует строку, заменяя вхождения {0}, {1}, {2}... на значения переданных параметров. */
593
+ export declare function formatString(str: string, ...args: any[]): string;
594
+
595
+ /**
596
+ * Возвращает строку с аргументами, выделенными жирным шрифтом.
597
+ */
598
+ export declare function formatStringWithBoldArguments(str: string, ...args: string[]): JSX.Element;
599
+
600
+ export declare class FormControlService implements IFormControl {
601
+ isDirty: boolean;
602
+ submitted: Event_2<unknown>;
603
+ canceled: Event_2<void>;
604
+ onSubmit: ({ confirm }: {
605
+ confirm: boolean;
606
+ }) => void;
607
+ onCancel: () => void;
608
+ constructor(onSubmit?: ({ confirm }: {
609
+ confirm: boolean;
610
+ }) => void, onCancel?: () => void);
611
+ setIsDirty(value: boolean): void;
612
+ }
613
+
614
+ export declare type FormProviderProps<TFieldValues extends FieldValues = FieldValues, TContext = any, TTransformedValues extends FieldValues | undefined = undefined> = {
615
+ children: React_2.ReactNode | React_2.ReactNode[];
616
+ } & CustomUseFormReturn<TFieldValues, TContext, TTransformedValues>;
617
+
618
+ export declare const generateCardRoutePath: (model: IRoutePathModel) => string;
619
+
620
+ export declare function generateErrorText(error: string, serverName?: string, serverTime?: string | Date): string;
621
+
622
+ export declare const generateRoutePath: (model: IRoutePathModel) => string;
623
+
624
+ export declare const generateUrl: (model: IUrlModel) => string;
625
+
626
+ export declare const getCalendarPeriod: (periodKey: string, datesInSelector: string[]) => any[];
627
+
628
+ export declare const getContextMenuOptions: (parameters?: IContextMenuParameters, context?: ICompositionTable) => ICustomContextMenuOption[];
629
+
630
+ export declare const getDashboardPosition: (settings: IWidgetSettings_2) => IDashboardPosition_2;
631
+
632
+ export declare const getPeriod: (periodKey: string, datesInSelector: string[]) => any[];
633
+
634
+ export declare const getThisMonthBeginAndEndDays: () => {
635
+ beginMonthDate: string;
636
+ endMonthDate: string;
637
+ };
638
+
639
+ export declare const getWidgetsOrder: (id: string) => 0 | 1 | 2 | 3;
640
+
641
+ export declare function GroupPanel(props: IGroupPanelProps): JSX.Element;
642
+
643
+ export declare const handleOnEscape: (e: React.KeyboardEvent, onCancel: () => void) => void;
644
+
645
+ export declare function HandPointRightIcon(props: SvgIconProps): JSX.Element;
646
+
647
+ export declare function HelpIconButton(props: IHelpIconButtonProps): JSX.Element;
648
+
649
+ export declare const hideNote: (note: Noty_2) => void;
650
+
651
+ export declare type HooksHandler = (application: IApplication_2) => RouteHooks;
652
+
653
+ declare type HooksHandler_2 = (application: IApplication_2) => RouteHooks;
654
+
655
+ export declare interface IAboutSettings {
656
+ /**
657
+ * Gets application name
658
+ */
659
+ applicationName: string;
660
+ /**
661
+ * Gets application build version
662
+ */
663
+ buildVersion: string;
664
+ /**
665
+ * Gets server list of server extensions
666
+ */
667
+ extensions: IExtensionInfo[];
668
+ /**
669
+ * Gets list of used third-party components
670
+ */
671
+ thirdPartyComponents: IThirdPartyComponentInfo[];
672
+ }
673
+
674
+ declare interface IAboutSettings_2 {
675
+ /**
676
+ * Gets application name
677
+ */
678
+ applicationName: string
679
+
680
+ /**
681
+ * Gets application build version
682
+ */
683
+ buildVersion: string
684
+
685
+ /**
686
+ * Gets server list of server extensions
687
+ */
688
+ extensions: IExtensionInfo_2[]
689
+
690
+ /**
691
+ * Gets list of used third-party components
692
+ */
693
+ thirdPartyComponents: IThirdPartyComponentInfo_2[]
694
+ }
695
+
696
+ export declare interface IAccordionProps {
53
697
  summary?: () => JSX.Element;
54
698
  details?: () => JSX.Element;
55
699
  ariaControls: string;
56
700
  id: string;
57
701
  dataTestId?: string;
58
702
  }
59
- declare function Accordion(props: IAccordionProps): JSX.Element;
60
-
61
- interface IComponentIconProps {
62
- className?: string;
63
- color?: string;
64
- onClick?: () => void;
703
+
704
+ declare interface IAlertBanner {
705
+ text: string;
706
+ }
707
+
708
+ export declare interface IApplication extends ServiceContainer, IApplicationServices_2 {
709
+ }
710
+
711
+ declare interface IApplication_2 extends ServiceContainer, IApplicationServices_2 {
712
+ }
713
+
714
+ export declare interface IApplicationServices extends SystemServices, $ExtensionsService_2, $DomEntryPointService, $ApplicationSettings_2, $WidgetsService_2, $Router, $RoutingService, $TenantsService_2, $DashboardConfigurationService_2, $LocalizationService_2, $AboutSettings_2, $LocalStorage_2, $ResourcesManagement_2, $Resources_2, $RouteContentRender_2, $FilterPluginsLoading, $ToolbarVisibility, $MessageWindow, $RepeatProcessButton, $PanelsExpansionService, $Layout, $NavigationMenu_2, $ServersController_2, $SettingsNavigation, $FormControl, $ExtendedConfigurationController_2, $RealtimeCommunication_2, $ConfigurationLocksController, $SessionsController, $RootElement_2 {
715
+ }
716
+
717
+ declare interface IApplicationServices_2 extends
718
+ SystemServices,
719
+ $ExtensionsService_2,
720
+ $DomEntryPointService_2,
721
+ $ApplicationSettings_2,
722
+ $WidgetsService_2,
723
+ $Router,
724
+ $RoutingService,
725
+ $TenantsService_2,
726
+ $DashboardConfigurationService_2,
727
+ $LocalizationService_2,
728
+ $AboutSettings_2,
729
+ $LocalStorage_2,
730
+ $ResourcesManagement_2,
731
+ $Resources_2,
732
+ $RouteContentRender_2,
733
+ $FilterPluginsLoading,
734
+ $ToolbarVisibility,
735
+ $MessageWindow,
736
+ $RepeatProcessButton,
737
+ $PanelsExpansionService,
738
+ $Layout_2,
739
+ $NavigationMenu,
740
+ $ServersController,
741
+ $SettingsNavigation_2,
742
+ $FormControl_2,
743
+ $ExtendedConfigurationController,
744
+ $RealtimeCommunication,
745
+ $ConfigurationLocksController,
746
+ $SessionsController,
747
+ $RootElement_2 {
748
+
749
+ }
750
+
751
+ export declare interface IApplicationSettings {
752
+ /**
753
+ * Gets or sets available locales settings
754
+ */
755
+ availableLocales: IAvailableLocalesSettings_2[];
756
+ /**
757
+ * Gets or sets culture settings
758
+ */
759
+ culture: ICultureSettings_2;
760
+ /**
761
+ * Gets or sets environment settings
762
+ */
763
+ environment: IEnvironmentSettings_2;
764
+ /**
765
+ * Gets or sets extensions loading info settings
766
+ */
767
+ extensionsLoadingInfo: IExtensionLoadingInfo_2[];
768
+ /**
769
+ * Gets or sets system settings
770
+ */
771
+ system: ISystemSettings_2;
772
+ /**
773
+ * Gets user info
774
+ */
775
+ user: IUserInfo_2;
776
+ /**
777
+ * Gets settings service info
778
+ */
779
+ settingsService: ISettingsService;
780
+ /**
781
+ * Gets grid settings
782
+ */
783
+ view: IViewSettings;
784
+ }
785
+
786
+ declare interface IApplicationSettings_2 {
787
+ /**
788
+ * Gets or sets available locales settings
789
+ */
790
+ availableLocales: IAvailableLocalesSettings_2[];
791
+
792
+ /**
793
+ * Gets or sets culture settings
794
+ */
795
+ culture: ICultureSettings_2;
796
+
797
+ /**
798
+ * Gets or sets environment settings
799
+ */
800
+ environment: IEnvironmentSettings_2;
801
+
802
+ /**
803
+ * Gets or sets extensions loading info settings
804
+ */
805
+ extensionsLoadingInfo: IExtensionLoadingInfo_2[];
806
+
807
+ /**
808
+ * Gets or sets system settings
809
+ */
810
+ system: ISystemSettings_2;
811
+
812
+ /**
813
+ * Gets user info
814
+ */
815
+ user: IUserInfo_2;
816
+
817
+ /**
818
+ * Gets settings service info
819
+ */
820
+ settingsService: ISettingsService_2;
821
+ /**
822
+ * Gets grid settings
823
+ */
824
+ view: IViewSettings;
825
+ }
826
+
827
+ export declare interface IAvailableLocalesSettings {
828
+ /**
829
+ * Language display name
830
+ */
831
+ displayName: string;
832
+ /**
833
+ * Icon title (with filename extension)
834
+ */
835
+ iconFileName: string;
836
+ /**
837
+ * LCID decimal
838
+ */
839
+ lcid: number;
840
+ /**
841
+ * Language code
842
+ */
843
+ name: string;
844
+ }
845
+
846
+ declare interface IAvailableLocalesSettings_2 {
847
+ /**
848
+ * Language display name
849
+ */
850
+ displayName: string;
851
+
852
+ /**
853
+ * Icon title (with filename extension)
854
+ */
855
+ iconFileName: string;
856
+
857
+ /**
858
+ * LCID decimal
859
+ */
860
+ lcid: number;
861
+
862
+ /**
863
+ * Language code
864
+ */
865
+ name: string;
866
+ }
867
+
868
+ declare interface IBreadcrumbsItems {
869
+ label: BreadcrumbsLabel | string;
870
+ path?: string;
871
+ }
872
+
873
+ declare interface IBreadcrumbsItems_2 {
874
+ label: BreadcrumbsLabel_2 | string;
875
+ path?: string;
876
+ }
877
+
878
+ declare interface IButtonsProps {
879
+ text: string;
880
+ onClick: () => void;
881
+ className?: string;
882
+ dataTestId?: string;
883
+ }
884
+
885
+ declare interface IButtonWithLoadingProps extends ButtonProps {
886
+ isPending: boolean;
887
+ color?: ButtonProps["color"];
888
+ circularProgressSize?: CircularProgressProps["size"];
889
+ circularProgressColor?: CircularProgressProps["color"];
890
+ showTextOnPending?: boolean;
891
+ textArrangement?: "start" | "end";
892
+ }
893
+
894
+ declare interface ICardUrl extends Service {
895
+ getLinkToWebClient(dvConnectionId: string, cardID: string): Promise<string>;
896
+ getLinkToWindowsClient(dvConnectionId: string, cardID: string): Promise<string>;
897
+ }
898
+
899
+ declare interface ICellTextContentProps {
900
+ content: string;
901
+ multiline?: boolean;
902
+ }
903
+
904
+ export declare interface ICellWithFixedWidthProps {
905
+ content: string | string[];
906
+ maxWidth: string | number;
907
+ }
908
+
909
+ export declare interface ICellWithTwoLineClampingProps {
910
+ content: string;
911
+ className?: string;
912
+ align?: "left" | "right" | "center";
913
+ component?: typeof TableCell;
914
+ maxWidth: string | number;
915
+ onClick: () => void;
916
+ }
917
+
918
+ declare enum IChangeOperationType {
919
+ Save = 0,
920
+ Remove = 1
921
+ }
922
+
923
+ declare enum IChangeOperationType_2 {
924
+ Save = 0,
925
+ Remove = 1
926
+ }
927
+
928
+ export declare interface IComponentIconProps {
929
+ className?: string;
930
+ color?: string;
931
+ onClick?: () => void;
932
+ }
933
+
934
+ export declare interface ICompositionTable extends IComposition<string, any, TableCompositions.Row<string>> {
935
+ props?: IComposition<string, string, $Resources_2 & $CardUrl & $MessageWindow & $ContextMenuOptions>;
936
+ }
937
+
938
+ declare interface IConfigurationLocksController extends Service {
939
+ getConfigurationLocks(): Promise<ILongOperation[]>;
940
+ unlockOperation(longOperationId: string): Promise<void>;
941
+ }
942
+
943
+ declare interface IConfigurationValue {
944
+ path: string;
945
+ value: string;
946
+ }
947
+
948
+ declare interface IConfigurationValue_2 {
949
+ path: string;
950
+ value: string;
951
+ }
952
+
953
+ declare interface IConfigurationValueChange extends IConfigurationValue{
954
+ operation: IChangeOperationType;
955
+ }
956
+
957
+ declare interface IConfigurationValueChange_2 extends IConfigurationValue_2 {
958
+ operation: IChangeOperationType_2;
959
+ }
960
+
961
+ export declare interface IContainerProps extends HtmlProps.button {
962
+ title?: string;
963
+ content?: JSX.Element | string;
964
+ services?: $Resources_2;
965
+ }
966
+
967
+ export declare interface IContextMenuParameters {
968
+ dvConnectionId?: string;
969
+ currentCardId?: string;
970
+ }
971
+
972
+ export declare interface ICultureSettings {
973
+ /**
974
+ * First day of week
975
+ */
976
+ firstDayOfWeek: number;
977
+ /**
978
+ * Date time pattern: "dddd, MMMM DD, YYYY hh:mm:ss a"
979
+ */
980
+ fullDateTimePattern: string;
981
+ /**
982
+ * Date time pattern: "dddd, MMMM DD, YYYY"
983
+ */
984
+ longDatePattern: string;
985
+ /**
986
+ * Time pattern:"hh:mm:ss a"
987
+ */
988
+ longTimePattern: string;
989
+ /**
990
+ * Culture name (e.g. "en-US")
991
+ */
992
+ name: string;
993
+ /**
994
+ * Number decimal separator (e.g. ".")
995
+ */
996
+ numberDecimalSeparator: string;
997
+ /**
998
+ * Number group separator (e.g. ",")
999
+ */
1000
+ numberGroupSeparator: string;
1001
+ /**
1002
+ * Percent decimal digits
1003
+ */
1004
+ percentDecimalDigits: number;
1005
+ /**
1006
+ * Date pattern: "MM/DD/YYYY"
1007
+ */
1008
+ shortDatePattern: string;
1009
+ /**
1010
+ * Time pattern: "hh:mm a"
1011
+ */
1012
+ shortTimePattern: string;
1013
+ /**
1014
+ * ISO language name (e.g. "en")
1015
+ */
1016
+ twoLetterISOLanguageName: string;
1017
+ }
1018
+
1019
+ declare interface ICultureSettings_2 {
1020
+ /**
1021
+ * First day of week
1022
+ */
1023
+ firstDayOfWeek: number,
1024
+
1025
+ /**
1026
+ * Date time pattern: "dddd, MMMM DD, YYYY hh:mm:ss a"
1027
+ */
1028
+ fullDateTimePattern: string,
1029
+
1030
+ /**
1031
+ * Date time pattern: "dddd, MMMM DD, YYYY"
1032
+ */
1033
+ longDatePattern: string,
1034
+
1035
+ /**
1036
+ * Time pattern:"hh:mm:ss a"
1037
+ */
1038
+ longTimePattern: string,
1039
+
1040
+ /**
1041
+ * Culture name (e.g. "en-US")
1042
+ */
1043
+ name: string,
1044
+
1045
+ /**
1046
+ * Number decimal separator (e.g. ".")
1047
+ */
1048
+ numberDecimalSeparator: string,
1049
+
1050
+ /**
1051
+ * Number group separator (e.g. ",")
1052
+ */
1053
+ numberGroupSeparator: string,
1054
+
1055
+ /**
1056
+ * Percent decimal digits
1057
+ */
1058
+ percentDecimalDigits: number,
1059
+
1060
+ /**
1061
+ * Date pattern: "MM/DD/YYYY"
1062
+ */
1063
+ shortDatePattern: string,
1064
+
1065
+ /**
1066
+ * Time pattern: "hh:mm a"
1067
+ */
1068
+ shortTimePattern: string,
1069
+
1070
+ /**
1071
+ * ISO language name (e.g. "en")
1072
+ */
1073
+ twoLetterISOLanguageName: string,
1074
+ }
1075
+
1076
+ export declare interface IDashboard {
1077
+ id: string;
1078
+ title: string;
1079
+ }
1080
+
1081
+ declare interface IDashboard_2 {
1082
+ id: string;
1083
+ title: string;
1084
+ }
1085
+
1086
+ export declare interface IDashboardConfiguration {
1087
+ dashboard: IDashboard;
1088
+ widgets: IWidgetServerModel_2[];
1089
+ }
1090
+
1091
+ declare interface IDashboardConfiguration_2 {
1092
+ dashboard: IDashboard_2;
1093
+ widgets: IWidgetServerModel_2[];
1094
+ }
1095
+
1096
+ export declare interface IDashboardConfigurationService {
1097
+ getDashboardConfiguration(dashboardId: string): Promise<IDashboardConfiguration>;
1098
+ addDashboardConfiguration(dashboardConfiguration: IDashboardConfiguration): Promise<void>;
1099
+ updateDashboardConfiguration(dashboardConfiguration: IDashboardConfiguration): Promise<void>;
1100
+ removeDashboardConfiguration(dashboardId: string): Promise<void>;
1101
+ }
1102
+
1103
+ declare interface IDashboardConfigurationService_2 {
1104
+ getDashboardConfiguration(dashboardId: string): Promise<IDashboardConfiguration_2>;
1105
+ addDashboardConfiguration(dashboardConfiguration: IDashboardConfiguration_2): Promise<void>;
1106
+ updateDashboardConfiguration(dashboardConfiguration: IDashboardConfiguration_2): Promise<void>;
1107
+ removeDashboardConfiguration(dashboardId: string): Promise<void>;
1108
+ }
1109
+
1110
+ export declare interface IDashboardPosition {
1111
+ order: number;
1112
+ }
1113
+
1114
+ declare interface IDashboardPosition_2 {
1115
+ order: number;
1116
+ }
1117
+
1118
+ export declare interface IDatabaseModel {
1119
+ baseName: string;
1120
+ sqlServerName: string;
1121
+ serverType: EngineType;
1122
+ usesFileService: boolean;
1123
+ hash: string;
1124
+ serverNames: string[];
1125
+ error?: string;
1126
+ }
1127
+
1128
+ export declare interface IDatabaseSelectionModalProps {
1129
+ open: boolean;
1130
+ databases: IDatabaseModel[];
1131
+ onCancel: () => void;
1132
+ onApply: (selected: IDatabaseModel[]) => void;
1133
+ resources: IResourcesMap_2;
1134
+ }
1135
+
1136
+ export declare interface IDatabaseSettingsCardProps {
1137
+ title: string;
1138
+ label: string;
1139
+ isDefault: boolean;
1140
+ children?: React_2.ReactNode;
1141
+ size?: DatabaseSettingsCardSize;
1142
+ error?: string;
1143
+ }
1144
+
1145
+ export declare interface IDateRangeComponent {
1146
+ value?: string[];
1147
+ onChange?(value: (string | Moment)[]): void;
1148
+ customClass?: string;
1149
+ forwardRef?: RefObject<HTMLElement>;
1150
+ dateFormatData?: IDateFormatPluginData;
1151
+ services?: $Resources_2;
1152
+ columnName?: string;
1153
+ type?: ColumnType;
1154
+ focused?: boolean;
1155
+ onChangeFocus?(e: React_2.FocusEvent, flag: boolean): void;
1156
+ isValueValid?: boolean;
1157
+ locale?: string;
1158
+ visible?: boolean;
1159
+ }
1160
+
1161
+ declare interface IDateRangeComponent_2 {
1162
+ value?: string[];
1163
+ onChange?(value: (string | Moment)[]): void;
1164
+ customClass?: string;
1165
+ forwardRef?: RefObject<HTMLElement>;
1166
+ dateFormatData?: IDateFormatPluginData;
1167
+ services?: $Resources_2;
1168
+ columnName?: string;
1169
+ type?: ColumnType;
1170
+ focused?: boolean;
1171
+ onChangeFocus?(e: React_2.FocusEvent, flag: boolean): void;
1172
+ isValueValid?: boolean;
1173
+ locale?: string;
1174
+ visible?: boolean;
1175
+ }
1176
+
1177
+ export declare interface IDateRangePickerProps extends IDateRangeComponent_2 {
1178
+ onAccept?: (dates: Moment[]) => void;
1179
+ collapsedCalendar?: () => void;
1180
+ }
1181
+
1182
+ export declare interface IDateRangeProps extends IDateRangeComponent_2 {
1183
+ onAccept?: (dates: Moment[]) => void;
1184
+ dataTestIdPostfix?: string;
1185
+ }
1186
+
1187
+ declare class IDistinctValue{
1188
+ displayName?: string;
1189
+ value?: string;
1190
+ }
1191
+
1192
+ export declare interface IDomEntryPointService {
1193
+ render(rootElementId: string): any;
1194
+ renderLoginPage(rootElementId: string): any;
1195
+ }
1196
+
1197
+ declare interface IDomEntryPointService_2 {
1198
+ render(rootElementId: string);
1199
+ renderLoginPage(rootElementId: string);
1200
+ }
1201
+
1202
+ export declare interface IDropdownBodyProps {
1203
+ value?: SelectProps["value"];
1204
+ options?: IPageElementOption_2[];
1205
+ label: string;
1206
+ }
1207
+
1208
+ export declare interface IDropdownOptionProps extends Omit<MenuItemProps, "button"> {
1209
+ displayName: string;
1210
+ }
1211
+
1212
+ export declare interface IDropdownWithEllipsisProps {
1213
+ options: IPageElementOption_2[];
1214
+ value: string;
1215
+ label: string;
1216
+ handleChange: (value: string) => void;
1217
+ field: ControllerRenderProps<FieldValues, string>;
1218
+ dataTestId?: string;
1219
+ className?: string;
1220
+ noOptionsText?: string;
1221
+ }
1222
+
1223
+ export declare interface IEditorCollectionEditorProps extends IPageModelElement {
1224
+ children: React_2.ReactNode | React_2.ReactNode[];
1225
+ isChanged?: boolean;
1226
+ resetValue?: () => void;
1227
+ className?: string;
1228
+ isEditable?: boolean;
1229
+ }
1230
+
1231
+ export declare interface IEditorContainer extends IPageModelElement {
1232
+ children: React_2.ReactNode;
1233
+ isChanged?: boolean;
1234
+ resetValue?: () => void;
1235
+ className?: string;
1236
+ isEditable?: boolean;
1237
+ }
1238
+
1239
+ export declare interface IEditorDescription {
1240
+ /** Название редактора. */
1241
+ name: string;
1242
+ /** Компонент редактора */
1243
+ component: React_2.ComponentType<IPageModelElement>;
1244
+ /**
1245
+ * Определяет поведение, в случае если редактор с указанным типом уже зарегистрирован.
1246
+ *
1247
+ * При значении `true` существующий контрол будет заменен.
1248
+ * При значении `false` замена не произойдет, и в консоли браузера будет отображена ошибка.
1249
+ *
1250
+ * По умолчанию значение `false`.
1251
+ */
1252
+ replaceExisting?: boolean;
1253
+ }
1254
+
1255
+ export declare interface IEditorFactory {
1256
+ register(name: string, componentType: React.ComponentType, replaceExisting: boolean): void;
1257
+ get(name: string): React.ComponentType;
1258
+ }
1259
+
1260
+ export declare interface IEditorInnerWrapper {
1261
+ children?: React_2.ReactNode;
1262
+ label?: string;
1263
+ description?: string;
1264
+ className?: string;
1265
+ }
1266
+
1267
+ export declare interface IEditorMap {
1268
+ [name: string]: IEditorType;
1269
+ }
1270
+
1271
+ export declare interface IEditorType {
1272
+ componentType: React_2.ComponentType<IPageModelElement>;
1273
+ editorName: string;
1274
+ }
1275
+
1276
+ export declare interface IEnvironmentSettings {
1277
+ /**
1278
+ * Name of the application.
1279
+ */
1280
+ applicationName: string;
1281
+ /**
1282
+ * Gets or sets application path
1283
+ */
1284
+ applicationPath: string;
1285
+ /**
1286
+ * Unique value associated with application start time.
1287
+ */
1288
+ applicationTimestamp: string;
1289
+ }
1290
+
1291
+ declare interface IEnvironmentSettings_2 {
1292
+ /**
1293
+ * Name of the application.
1294
+ */
1295
+ applicationName: string;
1296
+
1297
+ /**
1298
+ * Gets or sets application path
1299
+ */
1300
+ applicationPath: string;
1301
+
1302
+ /**
1303
+ * Unique value associated with application start time.
1304
+ */
1305
+ applicationTimestamp: string;
1306
+ }
1307
+
1308
+ export declare interface IErrorBlockProps {
1309
+ text: string;
1310
+ close: MouseEventHandler<HTMLDivElement>;
1311
+ }
1312
+
1313
+ export declare interface IErrorMessageProps {
1314
+ message: string;
1315
+ className?: string;
1316
+ }
1317
+
1318
+ export declare interface IExpandButtonProps extends HtmlProps_2.button {
1319
+ expanded?: boolean;
1320
+ dataTestId?: string;
1321
+ }
1322
+
1323
+ export declare interface IExpandMoreIconProps {
1324
+ onClick?: () => void;
1325
+ color?: string;
1326
+ }
1327
+
1328
+ declare interface IExtendedConfigurationController extends Service {
1329
+ getConfiguration(serviceId: string): Promise<IConfigurationValue[]>;
1330
+ saveConfiguration(serviceId: string, changes: IConfigurationValueChange[]): Promise<void>;
1331
+ }
1332
+
1333
+ declare interface IExtendedConfigurationController_2 extends Service {
1334
+ getConfiguration(serviceId: string): Promise<IConfigurationValue_2[]>;
1335
+ saveConfiguration(serviceId: string, changes: IConfigurationValueChange_2[]): Promise<void>;
1336
+ }
1337
+
1338
+ export declare interface IExtension {
1339
+ name: string;
1340
+ version: string;
1341
+ services?: (application: IApplication_2) => Service<any>[];
1342
+ widgets?: (application: IApplication_2) => IWidgetDescription_2[];
1343
+ editors?: () => IEditorDescription[];
1344
+ onApplicationRun?: (application: IApplication_2) => void;
1345
+ resources?: IExtensionResourcesDescriptor;
1346
+ }
1347
+
1348
+ export declare interface IExtensionInfo {
1349
+ /**
1350
+ * Gets extension name
1351
+ */
1352
+ extensionName: string;
1353
+ /**
1354
+ * Gets extension version
1355
+ */
1356
+ version: string;
1357
+ }
1358
+
1359
+ declare interface IExtensionInfo_2 {
1360
+ /**
1361
+ * Gets extension name
1362
+ */
1363
+ extensionName: string
1364
+
1365
+ /**
1366
+ * Gets extension version
1367
+ */
1368
+ version: string
1369
+ }
1370
+
1371
+ export declare interface IExtensionLoadingInfo {
1372
+ enabled: boolean;
1373
+ folderName: string;
1374
+ order: number;
1375
+ }
1376
+
1377
+ declare interface IExtensionLoadingInfo_2 {
1378
+ enabled: boolean;
1379
+ folderName: string;
1380
+ order: number;
1381
+ }
1382
+
1383
+ export declare type IExtensionResourcesDescriptor = IServerExtensionResourcesDescriptor | IStaticExtensionResourcesDescriptor;
1384
+
1385
+ export declare interface IExtensionsService {
1386
+ loadExtensions(application: IApplication_2): any;
1387
+ registerServices(application: IApplication_2): any;
1388
+ registerWidgets(application: IApplication_2): any;
1389
+ registerEditors(application: IApplication_2): any;
1390
+ getOnApplicationRunHandlers(): ((application: IApplication_2) => void)[];
1391
+ }
1392
+
1393
+ declare interface IExtensionsService_2 {
1394
+ loadExtensions(application: IApplication_2);
1395
+ registerServices(application: IApplication_2);
1396
+ registerWidgets(application: IApplication_2);
1397
+ registerEditors(application: IApplication_2);
1398
+ getOnApplicationRunHandlers(): ((application: IApplication_2) => void)[];
1399
+ }
1400
+
1401
+ export declare interface IFilteringClearButtonProps {
1402
+ onChange(value: (string | Moment)[]): void;
1403
+ visible: boolean;
1404
+ }
1405
+
1406
+ declare interface IFilterPluginsLoadingService {
1407
+ $stateButtons: Store<IDistinctValue[]>;
1408
+ $services: Store<IDistinctValue[]>;
1409
+ onStateClick: Event_2<IDistinctValue>;
1410
+ serviceChange: Event_2<IDistinctValue>;
1411
+ $selectedState: Store<IDistinctValue>;
1412
+ $selectedService: Store<IDistinctValue>;
1413
+ updateStateButtons: Event_2<IDistinctValue[]>;
1414
+ updateServices: Event_2<IDistinctValue[]>;
1415
+ onLockButtonClick: Event_2<void>;
1416
+ $lockButtonState: Store<boolean>;
1417
+ $stateButtonsLoading: Store<boolean>;
1418
+ changeStateButtonsLoading: Event_2<boolean>;
1419
+ $serviceLoading: Store<boolean>;
1420
+ changeServiceLoading: Event_2<boolean>;
1421
+ $lockButtonLoading: Store<boolean>;
1422
+ changeLockButtonLoading: Event_2<boolean>;
1423
+ initialization: Event_2<void>;
1424
+ $cursorId: Store<string>;
1425
+ updateCursorId: Event_2<string>;
1426
+ $savedFilters: Store<IFilterValues>;
1427
+ save: Event_2<IFilterValues>;
1428
+ $disabled: Store<boolean>;
1429
+ }
1430
+
1431
+ declare interface IFilterValues {
1432
+ state?: IncomingMessageState,
1433
+ hasWaitingLocks?: boolean,
1434
+ typeId?: string
1435
+ }
1436
+
1437
+ export declare interface IFormControl {
1438
+ isDirty: boolean;
1439
+ submitted: Event_2<unknown>;
1440
+ canceled: Event_2<void>;
1441
+ setIsDirty: (value: boolean) => void;
1442
+ onSubmit: ({ confirm }: {
1443
+ confirm: boolean;
1444
+ }) => void;
1445
+ onCancel: () => void;
1446
+ }
1447
+
1448
+ declare interface IFormControl_2 {
1449
+ isDirty: boolean;
1450
+ submitted: Event_2<unknown>;
1451
+ canceled: Event_2<void>;
1452
+
1453
+ setIsDirty: (value: boolean) => void;
1454
+ onSubmit: ({ confirm }: { confirm: boolean }) => void;
1455
+ onCancel: () => void;
1456
+ }
1457
+
1458
+ export declare interface IGroupPanelProps {
1459
+ groups: Record<string, string[]>;
1460
+ selectedGroup: string;
1461
+ selectGroup: (group: string) => void;
1462
+ }
1463
+
1464
+ declare interface IHelpIconButtonProps {
1465
+ helpText: string;
1466
+ iconButtonSize?: IconButtonProps["size"];
1467
+ iconClassName?: string;
1468
+ iconColor?: SvgIconProps["color"];
1469
+ popoverClassName?: string;
1470
+ popoverOrigin?: PopoverOrigin;
1471
+ transformOrigin?: PopoverOrigin;
1472
+ }
1473
+
1474
+ export declare interface IInformationIconProps {
1475
+ className?: string;
1476
+ color?: string;
1477
+ onClick?: () => void;
1478
+ }
1479
+
1480
+ export declare interface IKeyValue {
1481
+ key: string;
1482
+ value: string;
1483
+ }
1484
+
1485
+ export declare interface ILayoutService extends Service {
1486
+ getLayout(layoutId: string, serviceId?: string, itemId?: string): Promise<IPageModel>;
1487
+ saveLayout(layoutId: string, serviceId: string, data: IPageSaveModelElement[], itemId?: string, timestamp?: number): Promise<ISavePageResultModel>;
1488
+ }
1489
+
1490
+ declare interface ILayoutService_2 extends Service {
1491
+ getLayout(layoutId: string, serviceId?: string, itemId?: string): Promise<IPageModel_2>;
1492
+ saveLayout(layoutId: string, serviceId: string, data: IPageSaveModelElement_2[], itemId?: string, timestamp?: number): Promise<ISavePageResultModel_2>;
1493
+ }
1494
+
1495
+ declare interface ILineWithError {
1496
+ error: string;
1497
+ }
1498
+
1499
+ export declare interface IListitemProps {
1500
+ value: string;
1501
+ deleteItem: () => void;
1502
+ changeItem: (value: string) => void;
1503
+ }
1504
+
1505
+ declare interface IListPanelProps {
1506
+ items: string[];
1507
+ setItems: (items: string[]) => void;
1508
+ className?: string;
1509
+ disabled?: boolean;
1510
+ validate?: (value: string) => Promise<boolean>;
1511
+ errorMessage?: string;
1512
+ services: IApplicationServices;
1513
+ }
1514
+
1515
+ export declare interface ILocalizationService {
1516
+ /**
1517
+ * Gets localization
1518
+ */
1519
+ getLocales(): Promise<IAvailableLocalesSettings_2[]>;
1520
+ /**
1521
+ * Updates localization
1522
+ */
1523
+ setUserLocale(locale: string, options?: RequestInit): Promise<void>;
1524
+ /**
1525
+ * Gets resources
1526
+ */
1527
+ getResources(): Promise<IResourcesMap_2>;
1528
+ }
1529
+
1530
+ declare interface ILocalizationService_2 {
1531
+ /**
1532
+ * Gets localization
1533
+ */
1534
+ getLocales(): Promise<IAvailableLocalesSettings_2[]>;
1535
+
1536
+ /**
1537
+ * Updates localization
1538
+ */
1539
+ setUserLocale(locale: string, options?: RequestInit): Promise<void>;
1540
+
1541
+ /**
1542
+ * Gets resources
1543
+ */
1544
+ getResources(): Promise<IResourcesMap_2>;
1545
+ }
1546
+
1547
+ export declare interface ILocalizationsMap {
1548
+ [id: string]: IResourcesMap;
1549
+ }
1550
+
1551
+ export declare interface ILocalStorage {
1552
+ /** Поддерживает ли браузер localStorage. */
1553
+ supportsLocalStorage(): boolean;
1554
+ /**
1555
+ * Сериализует из записывает значение в localStorage.
1556
+ *
1557
+ * Внимание, к ключу добавляется имя базы и идентификатор пользователя!
1558
+ * Для чтения значения используйте {@link getData}.
1559
+ */
1560
+ setData<T>(id: string, obj: T): boolean;
1561
+ /**
1562
+ * Получает данные из localStorage и десериализует их.
1563
+ *
1564
+ * Внимание, к ключу добавляется имя базы и идентификатор пользователя!
1565
+ * Для записи значения используйте {@link getData}.
1566
+ */
1567
+ getData<T>(id: string): T | null;
1568
+ /**
1569
+ * Записывает значение в localStorage.
1570
+ *
1571
+ * Внимание, к ключу добавляется имя базы и идентификатор пользователя!
1572
+ * Для чтения значения используйте {@link getItem}.
1573
+ */
1574
+ setItem(id: string, data: string): boolean;
1575
+ /**
1576
+ * Возвращает значение из localStorage.
1577
+ *
1578
+ * Внимание, к ключу добавляется имя базы и идентификатор пользователя!
1579
+ * Для записи значения используйте {@link setItem}.
1580
+ */
1581
+ getItem(id: string): string | null;
1582
+ /**
1583
+ * Удаляет значение из localStorage.
1584
+ *
1585
+ * Внимание, к ключу добавляется имя базы и идентификатор пользователя!
1586
+ * Для записи значения используйте {@link setItem}.
1587
+ */
1588
+ removeItem(id: string): void;
1589
+ /**
1590
+ * Преобразует ключ, добавляя к нему имя базы и идентификатор пользователя.
1591
+ *
1592
+ * Используется остальными методами сервиса. Необходим для исключения
1593
+ * конфликтов при одновременной работе с разными базами и разными пользователями.
1594
+ */
1595
+ transformId(id: string): string;
1596
+ }
1597
+
1598
+ declare interface ILocalStorage_2 {
1599
+
1600
+ /** Поддерживает ли браузер localStorage. */
1601
+ supportsLocalStorage(): boolean;
1602
+ /**
1603
+ * Сериализует из записывает значение в localStorage.
1604
+ *
1605
+ * Внимание, к ключу добавляется имя базы и идентификатор пользователя!
1606
+ * Для чтения значения используйте {@link getData}.
1607
+ */
1608
+ setData<T>(id: string, obj: T): boolean;
1609
+ /**
1610
+ * Получает данные из localStorage и десериализует их.
1611
+ *
1612
+ * Внимание, к ключу добавляется имя базы и идентификатор пользователя!
1613
+ * Для записи значения используйте {@link getData}.
1614
+ */
1615
+ getData<T>(id: string): T | null;
1616
+ /**
1617
+ * Записывает значение в localStorage.
1618
+ *
1619
+ * Внимание, к ключу добавляется имя базы и идентификатор пользователя!
1620
+ * Для чтения значения используйте {@link getItem}.
1621
+ */
1622
+ setItem(id: string, data: string): boolean;
1623
+ /**
1624
+ * Возвращает значение из localStorage.
1625
+ *
1626
+ * Внимание, к ключу добавляется имя базы и идентификатор пользователя!
1627
+ * Для записи значения используйте {@link setItem}.
1628
+ */
1629
+ getItem(id: string): string | null;
1630
+ /**
1631
+ * Удаляет значение из localStorage.
1632
+ *
1633
+ * Внимание, к ключу добавляется имя базы и идентификатор пользователя!
1634
+ * Для записи значения используйте {@link setItem}.
1635
+ */
1636
+ removeItem(id: string): void;
1637
+ /**
1638
+ * Преобразует ключ, добавляя к нему имя базы и идентификатор пользователя.
1639
+ *
1640
+ * Используется остальными методами сервиса. Необходим для исключения
1641
+ * конфликтов при одновременной работе с разными базами и разными пользователями.
1642
+ */
1643
+ transformId(id: string): string;
1644
+ }
1645
+
1646
+ declare interface ILongOperation {
1647
+ operationId: string;
1648
+ serverName: string;
1649
+ componentName: string;
1650
+ startDate: string;
1651
+ author: string;
1652
+ }
1653
+
1654
+ declare interface IMenuItem {
1655
+ id: string;
1656
+ name: string;
1657
+ refElement?: React.RefObject<HTMLDivElement>;
1658
+ }
1659
+
1660
+ declare interface IMenuItem_2 {
1661
+ id: string;
1662
+ name: string;
1663
+ refElement?: React.RefObject<HTMLDivElement>;
1664
+ }
1665
+
1666
+ export declare interface IMetaInformation {
1667
+ readOnly: boolean;
1668
+ acceptMessage: string;
1669
+ readonlyReasonMsg?: string;
1670
+ timestamp?: number;
1671
+ }
1672
+
1673
+ declare interface IMetaInformation_2 {
1674
+ readOnly: boolean;
1675
+ acceptMessage: string;
1676
+ readonlyReasonMsg?: string;
1677
+ timestamp?: number;
1678
+ }
1679
+
1680
+ export declare interface INavigationMenuProps {
1681
+ menuItems: IMenuItem_2[];
1682
+ }
1683
+
1684
+ declare interface INavigationMenuService {
1685
+ $menuItems: Store<IMenuItem[]>;
1686
+ addMenuItem: Event_2<IMenuItem>;
1687
+ clearMenuItems: Event_2<void>;
1688
+ }
1689
+
1690
+ declare interface INavigationMenuService_2 {
1691
+ $menuItems: Store<IMenuItem_2[]>;
1692
+ addMenuItem: Event_2<IMenuItem_2>;
1693
+ clearMenuItems: Event_2<void>;
1694
+ }
1695
+
1696
+ declare enum IncomingMessageState {
1697
+ Unhandled = 0,
1698
+ Handled = 1,
1699
+ Error = 2,
1700
+ Paused = 4
1701
+ }
1702
+
1703
+ export declare function InformationIcon(props: IInformationIconProps): JSX.Element;
1704
+
1705
+ declare interface INumberComponentProps extends Omit<OutlinedTextFieldProps, "variant"> {
1706
+ name: string;
1707
+ value?: number | string;
1708
+ minValue?: number;
1709
+ maxValue?: number;
1710
+ fullWidth?: boolean;
1711
+ width?: number;
1712
+ textAlign?: "left" | "center" | "right";
1713
+ errorMessage?: string;
1714
+ }
1715
+
1716
+ declare interface IOpenSessionsCount {
1717
+ onlineCount: number,
1718
+ offlineCount: number,
1719
+ }
1720
+
1721
+ export declare interface IPageElementOption {
1722
+ displayName: string;
1723
+ value: string | number;
1724
+ }
1725
+
1726
+ declare interface IPageElementOption_2 {
1727
+ displayName: string;
1728
+ value: string | number;
1729
+ }
1730
+
1731
+ export declare interface IPageFilterButtonProps {
1732
+ onClick?: (event: React_2.MouseEvent<HTMLButtonElement>) => void;
1733
+ text?: string;
1734
+ selected?: boolean;
1735
+ loading?: boolean;
1736
+ disabled?: boolean;
1737
+ dataTestIdPostfix?: string;
1738
+ }
1739
+
1740
+ export declare interface IPageLayoutModelElement {
1741
+ id: string;
1742
+ label: string;
1743
+ description?: string;
1744
+ valueLabel?: string;
1745
+ editorType?: string;
1746
+ required?: boolean;
1747
+ hidden?: boolean;
1748
+ options?: IPageElementOption[];
1749
+ value?: unknown;
1750
+ error?: string | null;
1751
+ elements?: IPageModelElement[];
1752
+ extendedLayoutId?: string;
1753
+ readonly?: boolean;
1754
+ parameters?: Record<string, string>;
1755
+ }
1756
+
1757
+ declare interface IPageLayoutModelElement_2 {
1758
+ id: string;
1759
+ label: string;
1760
+ description?: string;
1761
+ valueLabel?: string;
1762
+ editorType?: string;
1763
+ required?: boolean;
1764
+ hidden?: boolean;
1765
+ options?: IPageElementOption_2[];
1766
+ value?: unknown;
1767
+ error?: string | null;
1768
+ elements?: IPageModelElement_2[];
1769
+ extendedLayoutId?: string;
1770
+ readonly?: boolean;
1771
+ parameters?: Record<string, string>;
1772
+ }
1773
+
1774
+ export declare interface IPageModel {
1775
+ elements: IPageLayoutModelElement[];
1776
+ meta: IMetaInformation;
1777
+ }
1778
+
1779
+ declare interface IPageModel_2 {
1780
+ elements: IPageLayoutModelElement_2[];
1781
+ meta: IMetaInformation_2;
1782
+ }
1783
+
1784
+ export declare interface IPageModelElement extends IPageLayoutModelElement {
1785
+ services?: IApplicationServices;
1786
+ formMethods?: CustomUseFormReturn;
1787
+ }
1788
+
1789
+ declare interface IPageModelElement_2 extends IPageLayoutModelElement_2 {
1790
+ services?: IApplicationServices_2;
1791
+ formMethods?: CustomUseFormReturn_2;
1792
+ }
1793
+
1794
+ export declare interface IPageSaveModel {
1795
+ layoutId: string;
1796
+ serviceId?: string;
1797
+ data: IPageSaveModelElement[];
1798
+ itemId?: string;
1799
+ timestamp?: number;
1800
+ }
1801
+
1802
+ export declare interface IPageSaveModelElement {
1803
+ id: string;
1804
+ value: unknown;
1805
+ }
1806
+
1807
+ declare interface IPageSaveModelElement_2 {
1808
+ id: string;
1809
+ value: unknown;
1810
+ }
1811
+
1812
+ declare interface IPageSessionResult {
1813
+ queryId: string,
1814
+ result: ISessionInfo[],
1815
+ currentPage: number,
1816
+ hasMore: boolean,
1817
+ totalItemsCount: number
1818
+ }
1819
+
1820
+ export declare interface IPageTabLabelProps extends HtmlProps.div {
1821
+ text: string;
1822
+ selected: boolean;
1823
+ onTabLabelClick?: (activeTab: any) => void;
1824
+ children?: React_2.ReactNode;
1825
+ }
1826
+
1827
+ export declare interface IPageTableProps extends HtmlProps.div {
1828
+ data: ITableData;
1829
+ onRowClick?: (row: IRow) => void;
1830
+ addRowClassName?: (row: IRow) => string;
1831
+ services?: $Resources_2 & $ApplicationSettings_2 & $MessageWindow;
1832
+ loadData?: (data?: ITableData, options?: ITableDataLoadRequest) => Promise<void>;
1833
+ disabledFeatures?: string[];
1834
+ extraPlugins?: ITablePlugins[];
1835
+ }
1836
+
1837
+ export declare interface IPageTabProps extends HtmlProps.div {
1838
+ children?: React_2.ReactNode;
1839
+ className?: string;
1840
+ }
1841
+
1842
+ export declare interface IPageTitleProps extends HtmlProps.div {
1843
+ text: string;
1844
+ }
1845
+
1846
+ declare interface IPagingParameters {
1847
+ page: number,
1848
+ pageSize?: number,
1849
+ UsePagination?: boolean
1850
+ }
1851
+
1852
+ /**
1853
+ * Сервис для раскрытия или закрытия всех панелей.
1854
+ */
1855
+ declare interface IPanelsExpansionService {
1856
+
1857
+ $panelsState: Store<PanelsState>;
1858
+
1859
+ /** Раскрывает все панели. */
1860
+ expandAllPanels(): void;
1861
+
1862
+ /** Закрывает все панели. */
1863
+ collapseAllPanels(): void;
1864
+
1865
+ /** Устанавливает смешанное состояние панелей. */
1866
+ toggleMixedState(): void;
1867
+ }
1868
+
1869
+ declare interface IPeriodValue {
1870
+ key: PeriodType;
1871
+ value: string;
1872
+ }
1873
+
1874
+ export declare interface IPopupNotificationProps extends Noty_2.Options {
1875
+ buttonsProps?: IButtonsProps[];
1876
+ }
1877
+
1878
+ declare interface IRealtimeCommunicationService {
1879
+ on: (methodName: string, callback: (...args: unknown[]) => void) => void;
1880
+ off: (methodName: string, callback: (...args: unknown[]) => void) => void;
1881
+ invoke: (methodName: string, ...args: unknown[]) => Promise<unknown>;
1882
+ }
1883
+
1884
+ declare interface IRealtimeCommunicationService_2 {
1885
+ on: (methodName: string, callback: (...args: unknown[]) => void) => void;
1886
+ off: (methodName: string, callback: (...args: unknown[]) => void) => void;
1887
+ invoke: (methodName: string, ...args: unknown[]) => Promise<unknown>;
1888
+ }
1889
+
1890
+ declare interface IRepeatProcessButtonService {
1891
+ $repeatProcess: Store<boolean>;
1892
+ changeRepeatProcess: Event_2<boolean>;
1893
+ }
1894
+
1895
+ export declare interface IResourcesManagement {
1896
+ resources: IResourcesMap_2;
1897
+ addResources: (resourcesMap: IResourcesMap_2) => void;
1898
+ }
1899
+
1900
+ declare interface IResourcesManagement_2 {
1901
+ resources: IResourcesMap_2;
1902
+ addResources: (resourcesMap: IResourcesMap_2) => void;
1903
+
1904
+ }
1905
+
1906
+ export declare interface IResourcesMap {
1907
+ [id: string]: string;
1908
+ }
1909
+
1910
+ declare interface IResourcesMap_2 {
1911
+ [id: string]: string;
1912
+ }
1913
+
1914
+ export declare interface IRootElementService {
1915
+ readonly rootElementId: string;
1916
+ }
1917
+
1918
+ declare interface IRootElementService_2 {
1919
+ readonly rootElementId: string;
1920
+ }
1921
+
1922
+ export declare interface IRouteContentRenderService {
1923
+ register(path: string, routeHandler: RouteHandler, hooks?: HooksHandler): any;
1924
+ $contentComponent: Store<JSX.Element>;
1925
+ }
1926
+
1927
+ declare interface IRouteContentRenderService_2 {
1928
+ register(path: string, routeHandler: RouteHandler_2, hooks?: HooksHandler_2);
1929
+ $contentComponent: Store<JSX.Element>;
1930
+ }
1931
+
1932
+ export declare interface IRoutePathModel {
1933
+ basePath?: string;
1934
+ dashboardId?: string;
1935
+ widgetId?: string;
1936
+ cardId?: string;
1937
+ url?: string;
1938
+ }
1939
+
1940
+ export declare interface ISavePageErrorModel {
1941
+ id: string;
1942
+ errorMessage: string;
1943
+ }
1944
+
1945
+ declare interface ISavePageErrorModel_2 {
1946
+ id: string;
1947
+ errorMessage: string;
1948
+ }
1949
+
1950
+ export declare interface ISavePageResultModel {
1951
+ status: SavePageStatus;
1952
+ longOperations: string[];
1953
+ errors: ISavePageErrorModel[];
1954
+ timestamp?: number;
1955
+ }
1956
+
1957
+ declare interface ISavePageResultModel_2 {
1958
+ status: SavePageStatus_2;
1959
+ longOperations: string[];
1960
+ errors: ISavePageErrorModel_2[];
1961
+ timestamp?: number;
1962
+ }
1963
+
1964
+ export declare interface ISectionContentWrapperProps extends IPageModelElement {
1965
+ className?: string;
1966
+ refElement?: React_2.RefObject<HTMLDivElement>;
1967
+ }
1968
+
1969
+ declare interface IServerDescription {
1970
+ id: string;
1971
+ name: string;
1972
+ }
1973
+
1974
+ declare interface IServerDescription_2 {
1975
+ id: string;
1976
+ name: string;
1977
+ }
1978
+
1979
+ declare interface IServerDetails extends IServerDescription {
1980
+ alias: string;
1981
+ operatingSystem: string;
1982
+ services: IServiceDescription[];
1983
+ }
1984
+
1985
+ declare interface IServerDetails_2 extends IServerDescription_2 {
1986
+ alias: string;
1987
+ operatingSystem: string;
1988
+ services: IServiceDescription_2[];
1989
+ }
1990
+
1991
+ export declare interface IServerExtensionResourcesDescriptor {
1992
+ mode: "server";
1993
+ url: string;
1994
+ }
1995
+
1996
+ declare interface IServersController extends Service {
1997
+ getServers(): Promise<IServerDescription[]>;
1998
+ getServerInfo(id: string): Promise<IServerDetails>;
1999
+ deleteService(id: string): Promise<void>;
2000
+ }
2001
+
2002
+ declare interface IServersController_2 extends Service {
2003
+ getServers(): Promise<IServerDescription_2[]>;
2004
+ getServerInfo(id: string): Promise<IServerDetails_2>;
2005
+ deleteService(id: string): Promise<void>;
2006
+ }
2007
+
2008
+ declare interface IServiceDescription {
2009
+ serviceId: string;
2010
+ serviceName: string;
2011
+ configurationLayoutId: string;
2012
+ }
2013
+
2014
+ declare interface IServiceDescription_2 {
2015
+ serviceId: string;
2016
+ serviceName: string;
2017
+ configurationLayoutId: string;
2018
+ }
2019
+
2020
+ declare interface ISessionCloseInfo {
2021
+ sessionId: string,
2022
+ message: string
2023
+ }
2024
+
2025
+ declare interface ISessionInfo {
2026
+ id: string,
2027
+ userName: string,
2028
+ computerName: string,
2029
+ loginTime: string,
2030
+ inactivityTime: string,
2031
+ offline: boolean
2032
+ }
2033
+
2034
+ declare interface ISessionsController extends Service {
2035
+ getSessionsCount(connectionId: string): Promise<IOpenSessionsCount>
2036
+ getSessions(connectionId, request: ISessionsGetRequest): Promise<ISessionsGetResponse>
2037
+ closeSessions(connectionId: string, sessionIds: string[]): Promise<ISessionCloseInfo[]>
2038
+ }
2039
+
2040
+ declare interface ISessionsGetRequest {
2041
+ query: ISessionsQuery,
2042
+ pagingParameters: IPagingParameters
2043
+ }
2044
+
2045
+ declare interface ISessionsGetResponse {
2046
+ licenseInfo: IUsedLicenseInfoModel,
2047
+ availableFilterTypes: SessionFilterTypes,
2048
+ pagedResult: IPageSessionResult
2049
+ }
2050
+
2051
+ declare interface ISessionSortCondition {
2052
+ columnName: string,
2053
+ ascending: boolean,
2054
+ order: number
2055
+ }
2056
+
2057
+ declare interface ISessionsQuery {
2058
+ queryId?: string,
2059
+ filterTypes: SessionFilterTypes,
2060
+ sortConditions: ISessionSortCondition[],
2061
+ }
2062
+
2063
+ export declare interface ISettingsNavigationService {
2064
+ goToSettingsPage: (layoutId: string, serviceName: string, serviceId: string) => void;
2065
+ goToItemSettingsPage: (layoutId: string, id: string, label: string) => void;
2066
+ goToConfigurationPage: () => void;
2067
+ getBreadcrumbsItems: () => IBreadcrumbsItems_2[];
2068
+ }
2069
+
2070
+ declare interface ISettingsNavigationService_2 {
2071
+ goToSettingsPage: (layoutId: string, serviceName: string, serviceId: string) => void;
2072
+ goToItemSettingsPage: (layoutId: string, id: string, label: string) => void;
2073
+ goToConfigurationPage: () => void;
2074
+ getBreadcrumbsItems: () => IBreadcrumbsItems[];
2075
+ }
2076
+
2077
+ export declare interface ISettingsPageButtonPanelProps extends HtmlProps_2.div {
2078
+ buttons: ISettingsPagePanelButton[];
2079
+ }
2080
+
2081
+ export declare interface ISettingsPagePanelButton extends ButtonProps {
2082
+ }
2083
+
2084
+ export declare interface ISettingsService {
2085
+ connectAddress: string;
2086
+ }
2087
+
2088
+ declare interface ISettingsService_2 {
2089
+ connectAddress: string;
2090
+ }
2091
+
2092
+ export declare interface IStaticExtensionResourcesDescriptor {
2093
+ mode: "static";
2094
+ folder?: string;
2095
+ fileName?: string;
2096
+ }
2097
+
2098
+ export declare interface ISystemSettings {
2099
+ logLevel: LogLevel;
2100
+ }
2101
+
2102
+ declare interface ISystemSettings_2 {
2103
+ logLevel: LogLevel;
2104
+ }
2105
+
2106
+ export declare interface ITableScrollContainerComponentProps extends HtmlProps_2.div {
2107
+ }
2108
+
2109
+ export declare interface ITenant {
2110
+ id: string;
2111
+ displayName: string;
2112
+ connectAddress: string;
2113
+ database: string;
2114
+ login: string;
2115
+ password: string;
2116
+ }
2117
+
2118
+ declare interface ITenant_2 {
2119
+ id: string;
2120
+ displayName: string;
2121
+ connectAddress: string;
2122
+ database: string;
2123
+ login: string;
2124
+ password: string;
2125
+ }
2126
+
2127
+ export declare interface ITenantModel {
2128
+ id: string;
2129
+ displayName: string;
2130
+ connectAddress: string;
2131
+ database: string;
2132
+ login: string;
2133
+ passwordNotEmpty: boolean;
2134
+ defaultConnection: boolean;
2135
+ }
2136
+
2137
+ declare interface ITenantModel_2 {
2138
+ id: string;
2139
+ displayName: string;
2140
+ connectAddress: string;
2141
+ database: string;
2142
+ login: string;
2143
+ passwordNotEmpty: boolean;
2144
+ defaultConnection: boolean;
2145
+ }
2146
+
2147
+ export declare interface ITenantsService {
2148
+ getTenant(tenantId: string): Promise<ITenantModel>;
2149
+ getTenants(): Promise<ITenantModel[]>;
2150
+ addTenant(tenant: ITenant): Promise<void>;
2151
+ removeTenant(tenantId: string): Promise<void>;
2152
+ findTenant(connectAddress: string, database: string): Promise<ITenantModel>;
2153
+ }
2154
+
2155
+ declare interface ITenantsService_2 {
2156
+ getTenant(tenantId: string): Promise<ITenantModel_2>;
2157
+ getTenants(): Promise<ITenantModel_2[]>;
2158
+ addTenant(tenant: ITenant_2): Promise<void>;
2159
+ removeTenant(tenantId: string): Promise<void>;
2160
+ findTenant(connectAddress: string, database: string): Promise<ITenantModel_2>;
2161
+ }
2162
+
2163
+ declare interface ITextMessage {
2164
+ content: string | string[];
2165
+ header?: string;
2166
+ footer?: string;
2167
+ wrapperClassName?: string;
2168
+ contentClassName?: string;
2169
+ headerClassName?: string;
2170
+ footerClassName?: string;
2171
+ }
2172
+
2173
+ export declare interface IThirdPartyComponentInfo {
2174
+ /**
2175
+ * Gets third-party component name
2176
+ */
2177
+ name: string;
2178
+ /**
2179
+ * Gets third-party component version
2180
+ */
2181
+ version: string;
2182
+ /**
2183
+ * Gets third-party component developers site
2184
+ */
2185
+ site: string;
2186
+ /**
2187
+ * Gets third-party component license
2188
+ */
2189
+ license: IThirdPartyComponentLicenseInfo;
2190
+ }
2191
+
2192
+ declare interface IThirdPartyComponentInfo_2 {
2193
+ /**
2194
+ * Gets third-party component name
2195
+ */
2196
+ name: string
2197
+
2198
+ /**
2199
+ * Gets third-party component version
2200
+ */
2201
+ version: string
2202
+
2203
+ /**
2204
+ * Gets third-party component developers site
2205
+ */
2206
+ site: string
2207
+
2208
+ /**
2209
+ * Gets third-party component license
2210
+ */
2211
+ license: IThirdPartyComponentLicenseInfo_2
65
2212
  }
66
- declare function ComponentIcon(props: IComponentIconProps): JSX.Element;
67
-
68
- interface ICompositionTable extends IComposition<string, any, TableCompositions.Row<string>> {
69
- props?: IComposition<string, string, $Resources & $CardUrl & $MessageWindow & $ContextMenuOptions>;
2213
+
2214
+ export declare interface IThirdPartyComponentLicenseInfo {
2215
+ /**
2216
+ * Gets third-party component license type
2217
+ */
2218
+ type: string;
2219
+ /**
2220
+ * Gets third-party component license url
2221
+ */
2222
+ url: string;
70
2223
  }
71
- interface IContextMenuParameters {
72
- dvConnectionId?: string;
73
- currentCardId?: string;
2224
+
2225
+ declare interface IThirdPartyComponentLicenseInfo_2 {
2226
+ /**
2227
+ * Gets third-party component license type
2228
+ */
2229
+ type: string
2230
+
2231
+ /**
2232
+ * Gets third-party component license url
2233
+ */
2234
+
2235
+ url: string
74
2236
  }
75
- declare const getContextMenuOptions: (parameters?: IContextMenuParameters, context?: ICompositionTable) => ICustomContextMenuOption[];
76
-
77
- interface IPageFilterButtonProps {
78
- onClick?: (event: React__default.MouseEvent<HTMLButtonElement>) => void;
79
- text?: string;
80
- selected?: boolean;
81
- loading?: boolean;
82
- disabled?: boolean;
83
- dataTestIdPostfix?: string;
2237
+
2238
+ declare interface IToolbarVisibilityService {
2239
+ $visibility: Store<boolean>;
2240
+ changeVisibility: Event_2<boolean>;
84
2241
  }
85
- declare function PageFilterButton(props: IPageFilterButtonProps): JSX.Element;
86
-
87
- interface IPageTabLabelProps extends HtmlProps.div {
88
- text: string;
89
- selected: boolean;
90
- onTabLabelClick?: (activeTab: any) => void;
91
- children?: React__default.ReactNode;
2242
+
2243
+ export declare interface IUrlModel {
2244
+ typeId: string;
2245
+ connectionId?: string;
2246
+ connectionName?: string;
2247
+ periodId?: string;
2248
+ beginDate?: string;
2249
+ endDate?: string;
2250
+ messageCardId?: string;
2251
+ messageId?: string;
2252
+ cardId?: string;
2253
+ breadcrumbsItems?: string;
2254
+ source?: string;
2255
+ database?: string;
92
2256
  }
93
- declare function PageTabLabel(props: IPageTabLabelProps): JSX.Element;
94
-
95
- declare const ERROR_ROW_CLASS_NAME = "page-table__row-error";
96
- declare const DEFAULT_PAGE_SIZE = 50;
97
- interface IPageTableProps extends HtmlProps.div {
98
- data: ITableData;
99
- onRowClick?: (row: IRow) => void;
100
- addRowClassName?: (row: IRow) => string;
101
- services?: $Resources & $ApplicationSettings & $MessageWindow;
102
- loadData?: (data?: ITableData, options?: ITableDataLoadRequest) => Promise<void>;
103
- disabledFeatures?: string[];
104
- extraPlugins?: ITablePlugins[];
2257
+
2258
+ declare interface IUsedLicenseInfoModel {
2259
+ totalCount: number,
2260
+ usedCount: number
105
2261
  }
106
- declare function PageTable(props: IPageTableProps): JSX.Element;
107
-
108
- interface IPageTabProps extends HtmlProps.div {
109
- children?: React__default.ReactNode;
110
- className?: string;
2262
+
2263
+ export declare interface IUserInfo {
2264
+ /**
2265
+ * User account name
2266
+ */
2267
+ accountName: string;
2268
+ /**
2269
+ * User display name
2270
+ */
2271
+ displayName: string;
111
2272
  }
112
- declare function PageTabPanel(props: IPageTabProps): JSX.Element;
113
-
114
- interface IPageTitleProps extends HtmlProps.div {
115
- text: string;
2273
+
2274
+ declare interface IUserInfo_2 {
2275
+ /**
2276
+ * User account name
2277
+ */
2278
+ accountName: string,
2279
+
2280
+ /**
2281
+ * User display name
2282
+ */
2283
+ displayName: string,
116
2284
  }
117
- declare function PageTitle(props: IPageTitleProps): JSX.Element;
118
-
119
- interface ITableScrollContainerComponentProps extends HtmlProps$1.div {
2285
+
2286
+ declare interface IViewSettings{
2287
+ pageSize: number;
120
2288
  }
121
- declare function TableScrollContainerComponent(props: ITableScrollContainerComponentProps): JSX.Element;
122
-
123
- interface IKeyValue {
124
- key: string;
125
- value: string;
2289
+
2290
+ export declare interface IWidget {
2291
+ id: string;
2292
+ typeId: string;
2293
+ version: string;
2294
+ description?: IWidgetDescription_2;
2295
+ settings?: IWidgetSettings_2;
2296
+ render?(dashboardId?: string): JSX.Element;
2297
+ renderPage?(pageProps?: any): JSX.Element;
2298
+ application: IApplication_2;
126
2299
  }
127
- interface IWidgetConnectionSelectorProps extends HtmlProps.div {
2300
+
2301
+ declare interface IWidget_2 {
2302
+ id: string;
2303
+ typeId: string;
2304
+ version: string;
2305
+
2306
+ description?: IWidgetDescription_2;
2307
+ settings?: IWidgetSettings_2;
2308
+
2309
+ render?(dashboardId?: string): JSX.Element;
2310
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2311
+ renderPage?(pageProps?: any): JSX.Element;
2312
+
2313
+ application: IApplication_2;
2314
+ }
2315
+
2316
+ export declare interface IWidgetConnectionSelectorProps extends HtmlProps.div {
128
2317
  selectedValue: string;
129
2318
  options: IKeyValue[];
130
2319
  onChange: (newValue: any) => void;
131
- services: $Resources;
2320
+ services: $Resources_2;
132
2321
  isLoading?: boolean;
133
2322
  }
134
- declare function WidgetConnectionSelector(props: IWidgetConnectionSelectorProps): JSX.Element;
135
-
136
- interface IWidgetContainerProps extends HtmlProps.div {
2323
+
2324
+ export declare interface IWidgetContainerProps extends HtmlProps.div {
2325
+ }
2326
+
2327
+ export declare interface IWidgetDescription {
2328
+ flags: WidgetFlags_2;
2329
+ typeId: string;
2330
+ version: string;
2331
+ renderWidget(widget: IWidget_2, dashboardId?: string): any;
2332
+ renderWidgetPage?(widget: IWidget_2, pageProps?: any): any;
2333
+ name?: string;
2334
+ }
2335
+
2336
+ declare interface IWidgetDescription_2 {
2337
+ flags: WidgetFlags_2;
2338
+ typeId: string;
2339
+ version: string;
2340
+ renderWidget(widget: IWidget_2, dashboardId?: string);
2341
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2342
+ renderWidgetPage?(widget: IWidget_2, pageProps?: any);
2343
+ name?: string;
137
2344
  }
138
- declare function WidgetContainer(props: IWidgetContainerProps): JSX.Element;
139
-
140
- interface IWidgetHeaderProps extends HtmlProps.div {
2345
+
2346
+ export declare interface IWidgetHeaderProps extends HtmlProps.div {
141
2347
  openWidget?: () => void;
142
2348
  }
143
- declare function WidgetHeader(props: IWidgetHeaderProps): JSX.Element;
144
-
145
- interface IWidgetHorizontalLineProps extends HtmlProps.hr {
2349
+
2350
+ export declare interface IWidgetHorizontalLineProps extends HtmlProps.hr {
146
2351
  }
147
- declare function WidgetHorizontalLine(props: IWidgetHorizontalLineProps): JSX.Element;
148
-
149
- interface IWidgetNameProps extends HtmlProps.div {
2352
+
2353
+ export declare interface IWidgetNameProps extends HtmlProps.div {
150
2354
  title?: string;
151
2355
  dataTestId?: string;
152
2356
  }
153
- declare function WidgetName(props: IWidgetNameProps): JSX.Element;
154
-
155
- interface IWidgetPeriodSelectorProps extends HtmlProps.div {
2357
+
2358
+ export declare interface IWidgetPeriodSelectorProps extends HtmlProps.div {
156
2359
  selectedValue: string;
157
2360
  options: IPeriodValue[];
158
2361
  onChange: (newValue: any) => void;
159
- services: $Resources & $LocalStorage;
2362
+ services: $Resources_2 & $LocalStorage_2;
160
2363
  isLoading?: boolean;
161
2364
  onDatesChange?: (dates: any) => void;
162
2365
  datesValue?: string[];
163
2366
  onAccept?: (dates: Moment[]) => void;
164
2367
  dataTestIdPostfix?: string;
165
2368
  }
166
- declare function WidgetPeriodSelector(props: IWidgetPeriodSelectorProps): JSX.Element;
167
-
168
- interface IWidgetRefreshButtonProps extends HtmlProps.div {
2369
+
2370
+ export declare interface IWidgetRefreshButtonProps extends HtmlProps.div {
169
2371
  onClick: (e: any) => void;
170
2372
  className?: string;
171
2373
  }
172
- declare function WidgetRefreshButton(props: IWidgetRefreshButtonProps): JSX.Element;
173
-
174
- interface IWidgetRefreshDateProps extends HtmlProps.div {
2374
+
2375
+ export declare interface IWidgetRefreshDateProps extends HtmlProps.div {
175
2376
  date: Date;
176
- application: IApplication;
177
- }
178
- declare function WidgetRefreshDate(props: IWidgetRefreshDateProps): JSX.Element;
179
-
180
- interface IDateRangeComponent {
181
- value?: string[];
182
- onChange?(value: (string | Moment)[]): void;
183
- customClass?: string;
184
- forwardRef?: RefObject<HTMLElement>;
185
- dateFormatData?: IDateFormatPluginData;
186
- services?: $Resources;
187
- columnName?: string;
188
- type?: ColumnType;
189
- focused?: boolean;
190
- onChangeFocus?(e: React__default.FocusEvent, flag: boolean): void;
191
- isValueValid?: boolean;
192
- locale?: string;
193
- visible?: boolean;
194
- }
195
-
196
- interface IFilteringClearButtonProps {
197
- onChange(value: (string | Moment)[]): void;
198
- visible: boolean;
199
- }
200
- declare function ClearButton(props: IFilteringClearButtonProps): JSX.Element;
201
-
202
- interface IDateRangeProps extends IDateRangeComponent$1 {
203
- onAccept?: (dates: Moment[]) => void;
204
- dataTestIdPostfix?: string;
205
- }
206
- declare const DateRangeCalendarIcon: React__default.NamedExoticComponent<IDateRangeProps>;
207
-
208
- interface IDateRangePickerProps extends IDateRangeComponent$1 {
209
- onAccept?: (dates: Moment[]) => void;
210
- collapsedCalendar?: () => void;
211
- }
212
- declare function DateRangeContainer(props: IDateRangePickerProps): JSX.Element;
213
-
214
- declare function DeleteIcon({ onClick }: {
215
- onClick?: () => void;
216
- }): JSX.Element;
217
-
218
- interface IErrorBlockProps {
219
- text: string;
220
- close: MouseEventHandler<HTMLDivElement>;
221
- }
222
- declare function ErrorBlock({ text, close }: IErrorBlockProps): JSX.Element;
223
-
224
- declare function ErrorIcon(): JSX.Element;
225
-
226
- declare function ErrorMessage({ message }: {
227
- message: string;
228
- }): JSX.Element;
229
-
230
- interface IExpandButtonProps extends HtmlProps$1.button {
231
- expanded?: boolean;
232
- dataTestId?: string;
233
- }
234
- declare function ExpandButton(props: IExpandButtonProps): JSX.Element;
235
-
236
- interface IExpandMoreIconProps {
237
- onClick?: () => void;
238
- color?: string;
239
- }
240
- declare function ExpandMoreIcon(props: IExpandMoreIconProps): JSX.Element;
241
-
242
- declare function HandPointRightIcon(props: SvgIconProps): JSX.Element;
243
-
244
- interface IInformationIconProps {
245
- className?: string;
246
- color?: string;
247
- onClick?: () => void;
248
- }
249
- declare function InformationIcon(props: IInformationIconProps): JSX.Element;
250
-
251
- interface ILineWithError {
252
- error: string;
2377
+ application: IApplication_2;
253
2378
  }
254
- declare function LineWithError({ error }: ILineWithError): JSX.Element;
255
-
256
- declare function ListItemMarker(): JSX.Element;
257
-
258
- interface IContainerProps extends HtmlProps.button {
259
- title?: string;
260
- content?: JSX.Element | string;
261
- services?: $Resources;
2379
+
2380
+ export declare interface IWidgetServerModel {
2381
+ id: string;
2382
+ typeId: string;
2383
+ version: string;
2384
+ settings: IWidgetSettingServerModel[];
262
2385
  }
263
- /** Функциональный контейнер кнопки открытия модального окна с заданным текстом */
264
- declare function ShowInformationButton(props: IContainerProps): JSX.Element;
265
-
266
- declare function showNotification(text: string): void;
267
-
268
- declare function ArrowIconButton({ onClick, disabled }: {
269
- onClick?: (e: React__default.MouseEvent) => void;
270
- disabled?: boolean;
271
- }): JSX.Element;
272
-
273
- declare function DeleteIconButton({ onClick }: {
274
- onClick?: (e: React__default.MouseEvent) => void;
275
- }): JSX.Element;
276
-
277
- declare function CellPreloader(): JSX.Element;
278
-
279
- interface ICellWithFixedWidthProps {
280
- content: string;
281
- maxWidth: string | number;
2386
+
2387
+ declare interface IWidgetServerModel_2 {
2388
+ id: string;
2389
+ typeId: string;
2390
+ version: string;
2391
+ settings: IWidgetSettingServerModel_2[];
282
2392
  }
283
- declare function CellWithFixedWidth(props: ICellWithFixedWidthProps): JSX.Element;
284
-
285
- interface ICellWithTwoLineClampingProps {
286
- content: string;
287
- className?: string;
288
- align?: "left" | "right" | "center";
289
- component?: typeof TableCell;
290
- maxWidth: string | number;
291
- onClick: () => void;
2393
+
2394
+ export declare interface IWidgetSettings {
2395
+ data: IWidgetSettingsMap_2;
2396
+ previewMode: boolean;
292
2397
  }
293
- declare function CellWithTwoLineClamping(props: ICellWithTwoLineClampingProps): JSX.Element;
294
-
295
- interface ILayoutService extends Service {
296
- getLayout(layoutId: string, serviceId?: string, itemId?: string): Promise<IPageModel>;
297
- saveLayout(layoutId: string, serviceId: string, data: IPageSaveModelElement[], itemId?: string): Promise<void>;
2398
+
2399
+ declare interface IWidgetSettings_2 {
2400
+ data: IWidgetSettingsMap_2;
2401
+ previewMode: boolean;
298
2402
  }
299
- declare type $Layout = {
300
- layoutService: ILayoutService;
301
- };
302
- declare const $Layout: string | ((model?: $Layout) => ILayoutService);
303
-
304
- interface IMenuItem {
305
- id: string;
2403
+
2404
+ export declare interface IWidgetSettingServerModel {
306
2405
  name: string;
307
- refElement?: React.RefObject<HTMLDivElement>;
308
- }
309
-
310
- interface INavigationMenuService {
311
- $menuItems: Store<IMenuItem[]>;
312
- addMenuItem: Event<IMenuItem>;
313
- clearMenuItems: Event<void>;
2406
+ value: string;
314
2407
  }
315
- declare type $NavigationMenu = {
316
- navigationMenu: INavigationMenuService;
317
- };
318
- declare const $NavigationMenu: string | ((model?: $NavigationMenu) => INavigationMenuService);
319
-
320
- interface IServerDescription {
321
- id: string;
2408
+
2409
+ declare interface IWidgetSettingServerModel_2 {
322
2410
  name: string;
2411
+ value: string;
323
2412
  }
324
- interface IServerDetails extends IServerDescription {
325
- alias: string;
326
- operatingSystem: string;
327
- services: IServiceDescription[];
328
- }
329
- interface IServiceDescription {
330
- serviceId: string;
331
- serviceName: string;
332
- configurationLayoutId: string;
333
- }
334
-
335
- interface IServersController extends Service {
336
- getServers(): Promise<IServerDescription[]>;
337
- getServerInfo(id: string): Promise<IServerDetails>;
338
- }
339
- declare type $ServersController = {
340
- serverController: IServersController;
341
- };
342
- declare const $ServersController: string | ((model?: $ServersController) => IServersController);
343
-
344
- interface IBreadcrumbsItems {
345
- label: BreadcrumbsLabel | string;
346
- path?: string;
2413
+
2414
+ export declare interface IWidgetSettingsMap {
2415
+ [id: string]: string;
347
2416
  }
348
- declare enum BreadcrumbsLabel {
349
- WidgetIncomingMessagesQueue = 0,
350
- WidgetOutgoingMessagesQueue = 1,
351
- PageIncomingMessagesQueue = 2,
352
- PageOutgoingMessagesQueue = 3,
353
- WidgetSearchForCardMessages = 4,
354
- PageSearchForCardMessages = 5,
355
- PageErrorAndBlockLog = 6
356
- }
357
-
358
- interface ISettingsNavigationService {
359
- goToSettingsPage: (layoutId: string, serviceName: string, serviceId: string) => void;
360
- goToItemSettingsPage: (layoutId: string, id: string, label: string) => void;
361
- goToConfigurationPage: () => void;
362
- getBreadcrumbsItems: () => IBreadcrumbsItems[];
2417
+
2418
+ declare interface IWidgetSettingsMap_2 {
2419
+ [id: string]: string;
363
2420
  }
364
- declare type $SettingsNavigation = {
365
- settingsNavigation: ISettingsNavigationService;
366
- };
367
- declare const $SettingsNavigation: string | ((model?: $SettingsNavigation) => ISettingsNavigationService);
368
-
369
- interface IFormControl {
370
- isDirty: boolean;
371
- submitted: Event<unknown>;
372
- canceled: Event<void>;
373
- setIsDirty: (value: boolean) => void;
374
- onSubmit: ({ confirm }: {
375
- confirm: boolean;
376
- }) => void;
377
- onCancel: () => void;
2421
+
2422
+ export declare interface IWidgetsService {
2423
+ registerDescription(widgetDescription: IWidgetDescription_2): any;
2424
+ getWidget(widgetServerModel: IWidgetServerModel_2): IWidget_2;
2425
+ getDescription(typeId: string): IWidgetDescription_2;
2426
+ getAllDescriptions(): IWidgetDescription_2[];
378
2427
  }
379
- declare type $FormControl = {
380
- formControl: IFormControl;
381
- };
382
- declare const $FormControl: string | ((model?: $FormControl) => IFormControl);
383
-
384
- declare enum IChangeOperationType {
385
- Save = 0,
386
- Remove = 1
2428
+
2429
+ declare interface IWidgetsService_2 {
2430
+ registerDescription(widgetDescription: IWidgetDescription_2);
2431
+ getWidget(widgetServerModel: IWidgetServerModel_2): IWidget_2;
2432
+ getDescription(typeId: string): IWidgetDescription_2;
2433
+ getAllDescriptions(): IWidgetDescription_2[];
387
2434
  }
388
- interface IConfigurationValue {
389
- path: string;
390
- value: string;
2435
+
2436
+ export declare const KEYCODE_ESCAPE = 27;
2437
+
2438
+ export declare class LayoutService implements ILayoutService {
2439
+ private readonly requestService;
2440
+ name: string;
2441
+ meta: any;
2442
+ constructor(requestService: IRequestService);
2443
+ getLayout(layoutId: string, serviceId?: string, itemId?: string): Promise<IPageModel>;
2444
+ saveLayout(layoutId: string, serviceId: string, data: IPageSaveModelElement[], itemId?: string, timestamp?: number): Promise<ISavePageResultModel>;
391
2445
  }
392
- interface IConfigurationValueChange extends IConfigurationValue {
393
- operation: IChangeOperationType;
394
- }
395
-
396
- interface IExtendedConfigurationController extends Service {
397
- getConfiguration(serviceId: string): Promise<IConfigurationValue[]>;
398
- saveConfiguration(serviceId: string, changes: IConfigurationValueChange[]): Promise<void>;
2446
+
2447
+ export declare function LightTooltip(props: TooltipProps): JSX.Element;
2448
+
2449
+ export declare function LineWithError({ error }: ILineWithError): JSX.Element;
2450
+
2451
+ export declare function ListItem(props: IListitemProps): JSX.Element;
2452
+
2453
+ export declare function ListItemMarker(): JSX.Element;
2454
+
2455
+ export declare function ListPanel(props: IListPanelProps): JSX.Element;
2456
+
2457
+ export declare class LocalizationService implements ILocalizationService {
2458
+ private readonly requestService;
2459
+ constructor(requestService: IRequestService);
2460
+ getLocales(): Promise<IAvailableLocalesSettings_2[]>;
2461
+ setUserLocale(locale: string): any;
2462
+ getResources(): Promise<IResourcesMap_2>;
399
2463
  }
400
- declare type $ExtendedConfigurationController = {
401
- extendedConfigurationController: IExtendedConfigurationController;
402
- };
403
- declare const $ExtendedConfigurationController: string | ((model?: $ExtendedConfigurationController) => IExtendedConfigurationController);
404
-
405
- interface IDomEntryPointService {
406
- render(rootElementId: string): any;
407
- renderLoginPage(rootElementId: string): any;
2464
+
2465
+ /** Сервис для работы с localStorage. */
2466
+ export declare class LocalStorage implements ILocalStorage_2 {
2467
+ private readonly applicationSettings;
2468
+ private supportsLocalStorageCache;
2469
+ constructor(applicationSettings: IApplicationSettings_2);
2470
+ supportsLocalStorage(): boolean;
2471
+ setData<T>(id: string, obj: T): boolean;
2472
+ getData<T>(id: string): T | null;
2473
+ setItem(id: string, data: string): boolean;
2474
+ getItem(id: string): string | null;
2475
+ removeItem(id: string): void;
2476
+ transformId(id: string): string;
408
2477
  }
409
- declare type $DomEntryPointService = {
410
- domEntryPointService: IDomEntryPointService;
2478
+
2479
+ export declare function NavigationMenu(props: INavigationMenuProps): JSX.Element;
2480
+
2481
+ export declare function newGuid(): string;
2482
+
2483
+ export declare function NoOptionMenuItem({ text }: {
2484
+ text: string;
2485
+ }): JSX.Element;
2486
+
2487
+ export declare function NumberComponent(props: INumberComponentProps): JSX.Element;
2488
+
2489
+ /**
2490
+ * Ключ для обозначения сервисов, которые должны быть переинициализированы в контексте конкретной страницы.
2491
+ *
2492
+ * Для применения необходимо передать данное значение третьим параметром в метод {@link ServiceContainer.registerService}
2493
+ */
2494
+ export declare const PAGE_SERVICE: {
2495
+ isPageService: boolean;
411
2496
  };
412
- declare const $DomEntryPointService: string | ((model?: $DomEntryPointService) => IDomEntryPointService);
413
-
414
- interface IApplicationServices extends SystemServices, $ExtensionsService, $DomEntryPointService, $ApplicationSettings, $WidgetsService, $Router, $RoutingService, $TenantsService, $DashboardConfigurationService, $LocalizationService, $AboutSettings, $LocalStorage, $ResourcesManagement, $Resources, $RouteContentRender, $FilterPluginsLoading, $ToolbarVisibility, $MessageWindow, $RepeatProcessButton, $PanelsExpansionService, $Layout, $NavigationMenu, $ServersController, $DatabaseWizard, $DatabasesController, $DatabasesConfigurationController, $DatabaseMasterController, $SettingsNavigation, $FormControl, $NavigationMenu, $ServersController, $SettingsNavigation, $FormControl, $ExtendedConfigurationController {
415
- }
416
-
417
- declare type CustomUseFormReturn<TFieldValues extends FieldValues = FieldValues, TContext = any, TTransformedValues extends FieldValues | undefined = undefined> = {
418
- watch: any;
419
- setError: any;
420
- clearErrors: any;
421
- trigger: any;
422
- unregister: any;
423
- register: any;
424
- getValues: UseFormGetValues<TFieldValues>;
425
- getFieldState: UseFormGetFieldState<TFieldValues>;
426
- setValue: UseFormSetValue<TFieldValues>;
427
- formState: FormState<TFieldValues>;
428
- resetField: UseFormResetField<TFieldValues>;
429
- reset: UseFormReset<TFieldValues>;
430
- handleSubmit: UseFormHandleSubmit<TFieldValues, TTransformedValues>;
431
- control: Control<TFieldValues, TContext>;
432
- setFocus: UseFormSetFocus<TFieldValues>;
433
- };
434
-
435
- interface IPageModelElement extends IPageLayoutModelElement {
436
- services?: IApplicationServices;
437
- formMethods?: CustomUseFormReturn;
438
- }
439
- interface IPageLayoutModelElement {
440
- id: string;
441
- label: string;
442
- description?: string;
443
- valueLabel?: string;
444
- editorType?: string;
445
- required?: boolean;
446
- hidden?: boolean;
447
- options?: IPageElementOptions[];
448
- value?: unknown;
449
- error?: string | null;
450
- elements?: IPageModelElement[];
451
- extendedLayoutId?: string;
452
- binding: IPageElementBinding;
453
- parameters?: Record<string, string>;
2497
+
2498
+ export declare function PageFilterButton(props: IPageFilterButtonProps): JSX.Element;
2499
+
2500
+ export declare function PageTabLabel(props: IPageTabLabelProps): JSX.Element;
2501
+
2502
+ export declare function PageTable(props: IPageTableProps): JSX.Element;
2503
+
2504
+ export declare function PageTabPanel(props: IPageTabProps): JSX.Element;
2505
+
2506
+ export declare function PageTitle(props: IPageTitleProps): JSX.Element;
2507
+
2508
+ declare enum PanelsState {
2509
+ Mixed,
2510
+ Expanded,
2511
+ Collapsed
454
2512
  }
455
- interface IPageElementBinding {
456
- handler: string;
457
- path: string;
2513
+
2514
+ export declare function parseQueryString(query: string): {};
2515
+
2516
+ declare enum PeriodType {
2517
+ Today,
2518
+ Yesterday,
2519
+ ThisWeek,
2520
+ ThisMonth,
2521
+ DateRange
458
2522
  }
459
- interface IPageElementOptions {
460
- displayName: string;
461
- value: string | number;
2523
+
2524
+ export declare function registerEditors(): void;
2525
+
2526
+ export declare function removeCssVariables(theme: Theme): void;
2527
+
2528
+ export declare class ResourcesManagement implements IResourcesManagement {
2529
+ resources: IResourcesMap_2;
2530
+ setResources(resourcesMap: IResourcesMap_2): void;
2531
+ addResources(resourcesMap: any): void;
462
2532
  }
463
- interface IMetaInformation {
464
- readOnly: boolean;
2533
+
2534
+ export declare class RootElementService implements IRootElementService_2 {
2535
+ readonly rootElementId: string;
2536
+ constructor(rootElementId: string);
465
2537
  }
466
- interface IPageModel {
467
- elements: IPageLayoutModelElement[];
468
- meta: IMetaInformation;
2538
+
2539
+ export declare class RouteContentRenderService implements IRouteContentRenderService_2 {
2540
+ private readonly application?;
2541
+ domain: Domain;
2542
+ $contentComponent: Store<JSX.Element>;
2543
+ setContentComponent: Event_2<JSX.Element>;
2544
+ constructor(application?: IApplication_2);
2545
+ register(path: string, routeHandler: RouteHandler_2, hooksHandler?: HooksHandler_2): void;
469
2546
  }
470
- interface IPageSaveModel {
471
- layoutId: string;
472
- serviceId?: string;
473
- data: IPageSaveModelElement[];
474
- itemId?: string;
2547
+
2548
+ export declare type RouteHandler = (application: IApplication_2, params: Params, query: string) => Promise<JSX.Element>;
2549
+
2550
+ declare type RouteHandler_2 = (application: IApplication_2, params: Params, query: string) => Promise<JSX.Element>;
2551
+
2552
+ export declare type RouteResolveContext = RouteContext & {
2553
+ params: {
2554
+ [key: string]: any;
2555
+ } | null;
2556
+ } & {
2557
+ route?: Route;
2558
+ };
2559
+
2560
+ export declare enum SavePageStatus {
2561
+ Success = 0,
2562
+ Error = 1
475
2563
  }
476
- interface IPageSaveModelElement {
477
- id: string;
478
- value: unknown;
479
- binding: IPageElementBinding;
480
- }
481
-
482
- interface IEditorContainer extends IPageModelElement {
483
- children: React__default.ReactNode;
484
- isChanged: boolean;
485
- resetValue: () => void;
486
- className?: string;
2564
+
2565
+ declare enum SavePageStatus_2 {
2566
+ Success,
2567
+ Error
487
2568
  }
488
- declare function EditorContainer(props: IEditorContainer): JSX.Element;
489
-
490
- declare function EditorDescription({ text }: {
491
- text: string;
492
- }): JSX.Element;
493
-
494
- declare function EditorName({ text }: {
495
- text: string;
496
- }): JSX.Element;
497
-
498
- declare function EditorWrapper({ children, isChanged }: {
499
- children: React__default.ReactNode;
500
- isChanged?: boolean;
501
- }): JSX.Element;
502
-
503
- interface IGroupPanelProps {
504
- groups: Record<string, string[]>;
505
- selectedGroup: string;
506
- selectGroup: (group: string) => void;
2569
+
2570
+ export declare function SectionContentWrapper(props: ISectionContentWrapperProps): JSX.Element;
2571
+
2572
+ export declare const ServicesContext: React_2.Context<IApplicationServices>;
2573
+
2574
+ declare enum SessionFilterTypes {
2575
+ None = 0,
2576
+ Online = 1,
2577
+ Offline = 2,
2578
+ All = 3
507
2579
  }
508
- declare function GroupPanel(props: IGroupPanelProps): JSX.Element;
509
-
510
- interface IListitemProps {
511
- value: string;
512
- deleteItem: () => void;
513
- changeItem: (value: string) => void;
2580
+
2581
+ export declare const setDashboardPosition: (settings: IWidgetSettings_2, position: IDashboardPosition_2) => void;
2582
+
2583
+ export declare class SettingsNavigationService implements ISettingsNavigationService {
2584
+ private readonly application;
2585
+ constructor(application: IApplication);
2586
+ convertPathToUrl(str: string, ...args: any[]): string;
2587
+ getServerPageUrl(serverId: string): string;
2588
+ getSettingsPageUrl(serverId: string, serviceId: string, layoutId: string, serviceName: string): string;
2589
+ getItemSettingsPageUrl(serverId: string, serviceId: string, layoutId: string, itemId: string, serviceName: string, label: string, extendedLayoutId: string): string;
2590
+ getConfigurationPageUrl(serverId: string, serviceId: string, layoutId: string, serviceName: string): string;
2591
+ goToSettingsPage(layoutId: string, serviceName: string, serviceId: string): void;
2592
+ goToItemSettingsPage(extendedLayoutId: string, id: string, label: string): void;
2593
+ goToConfigurationPage: () => void;
2594
+ getBreadcrumbsItems(): IBreadcrumbsItems_2[];
514
2595
  }
515
- declare function ListItem(props: IListitemProps): JSX.Element;
516
-
517
- interface IListPanelProps {
518
- items: string[];
519
- setItems: (items: string[]) => void;
520
- className?: string;
521
- disabled?: boolean;
522
- validate?: (value: string) => Promise<boolean>;
2596
+
2597
+ export declare function SettingsPageButtonPanel(props: ISettingsPageButtonPanelProps): JSX.Element;
2598
+
2599
+ /** Функциональный контейнер кнопки открытия модального окна с заданным текстом */
2600
+ export declare function ShowInformationButton(props: IContainerProps): JSX.Element;
2601
+
2602
+ export declare const showNote: (options: IPopupNotificationProps) => Noty_2;
2603
+
2604
+ export declare function showNotification(text: string): void;
2605
+
2606
+ declare type Story = StoryObj<INavigationMenuProps>;
2607
+
2608
+ export declare function TableScrollContainerComponent(props: ITableScrollContainerComponentProps): JSX.Element;
2609
+
2610
+ export declare class TenantsService implements ITenantsService {
2611
+ private readonly requestService;
2612
+ constructor(requestService: IRequestService);
2613
+ getTenant(tenantId: string): Promise<ITenantModel>;
2614
+ getTenants(): Promise<ITenantModel[]>;
2615
+ addTenant(tenant: ITenant): any;
2616
+ removeTenant(tenantId: string): any;
2617
+ findTenant(connectAddress: string, database: string): Promise<ITenantModel>;
523
2618
  }
524
- declare function ListPanel(props: IListPanelProps): JSX.Element;
525
-
526
- interface INavigationMenuProps {
527
- menuItems: IMenuItem[];
2619
+
2620
+ export declare function TextMessage(props: ITextMessage): JSX.Element;
2621
+
2622
+ export declare const theme: Theme;
2623
+
2624
+ export declare const toWidgetSettings: (serverSettings: IWidgetSettingServerModel[]) => IWidgetSettings;
2625
+
2626
+ export declare const useCustomFormContext: <TFieldValues extends FieldValues, TContext = any, TTransformedValues extends FieldValues = undefined>() => CustomUseFormReturn<TFieldValues, TContext, TTransformedValues>;
2627
+
2628
+ export declare const useDefaultRoute: (application: IApplication_2) => void;
2629
+
2630
+ export declare const useEffectAsync: (effect: (EffectCallbackAsync), deps?: DependencyList) => void;
2631
+
2632
+ export declare const useHideOnScroll: () => boolean;
2633
+
2634
+ /** Создает локальный сервис-контейнер через клонирование родительского сервис-контейнера. */
2635
+ export declare function useLocalServiceContainer<MetaT>(context: typeof ServicesContext, meta?: (metaKey: MetaT) => boolean): IApplicationServices;
2636
+
2637
+ export declare const useOutsideClick: (ref: React.MutableRefObject<HTMLElement>, callback: () => void) => void;
2638
+
2639
+ export declare class Widget implements IWidget_2 {
2640
+ readonly id: string;
2641
+ readonly typeId: string;
2642
+ readonly version: string;
2643
+ readonly description: IWidgetDescription_2;
2644
+ readonly settings: IWidgetSettings_2;
2645
+ readonly application: IApplication_2;
2646
+ constructor(id: string, typeId: string, version: string, description: IWidgetDescription_2, settings: IWidgetSettings_2, application: IApplication_2);
2647
+ render(dashboardId?: string): JSX.Element;
2648
+ renderPage(pageProps?: any): JSX.Element;
528
2649
  }
529
- declare function NavigationMenu(props: INavigationMenuProps): JSX.Element;
530
-
531
- declare type Story = StoryObj<INavigationMenuProps>;
532
- declare const Default: Story;
533
- declare const WithSelectedItem: Story;
534
-
535
- interface ISectionContentWrapperProps extends IPageModelElement {
536
- className?: string;
537
- refElement?: React__default.RefObject<HTMLDivElement>;
2650
+
2651
+ declare class Widget_2 implements IWidget_2 {
2652
+ constructor(
2653
+ public readonly id: string,
2654
+ public readonly typeId: string,
2655
+ public readonly version: string,
2656
+ public readonly description: IWidgetDescription_2,
2657
+ public readonly settings: IWidgetSettings_2,
2658
+ public readonly application: IApplication_2
2659
+ ) {
2660
+ this.description = description;
2661
+ }
2662
+
2663
+ public render(dashboardId?: string): JSX.Element {
2664
+ return this.description.renderWidget(this, dashboardId);
2665
+ }
2666
+
2667
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2668
+ public renderPage(pageProps?: any): JSX.Element {
2669
+ return this.description.renderWidgetPage(this, pageProps);
2670
+ }
538
2671
  }
539
- declare function SectionContentWrapper(props: ISectionContentWrapperProps): JSX.Element;
540
-
541
- interface ISettingsPagePanelButton extends ButtonProps {
2672
+
2673
+ /**
2674
+ * Ключ для обозначения сервисов, которые должны быть переинициализированы в контексте конкретной страницы виджета.
2675
+ *
2676
+ * Для применения необходимо передать данное значение третьим параметром в метод {@link ServiceContainer.registerService}
2677
+ */
2678
+ export declare const WIDGET_PAGE_SERVICE: {
2679
+ isWidgetPageService: boolean;
2680
+ };
2681
+
2682
+ /**
2683
+ * Ключ для обозначения сервисов, которые должны быть переинициализированы в контексте конкретного виджета.
2684
+ *
2685
+ * Для применения необходимо передать данное значение третьим параметром в метод {@link ServiceContainer.registerService}
2686
+ */
2687
+ export declare const WIDGET_SERVICE: {
2688
+ isWidgetService: boolean;
2689
+ };
2690
+
2691
+ export declare function WidgetConnectionSelector(props: IWidgetConnectionSelectorProps): JSX.Element;
2692
+
2693
+ export declare function WidgetContainer(props: IWidgetContainerProps): JSX.Element;
2694
+
2695
+ export declare enum WidgetFlags {
2696
+ None = 0,
2697
+ SingleInstance = 1,
2698
+ Configurable = 4,
2699
+ ShouldConfigure = 8,
2700
+ Resizable = 16
542
2701
  }
543
- interface ISettingsPageButtonPanelProps extends HtmlProps$1.div {
544
- buttons: ISettingsPagePanelButton[];
2702
+
2703
+ declare enum WidgetFlags_2 {
2704
+ /* None */
2705
+ None = 0,
2706
+ /* Only one widget instance could be added to the dashboard */
2707
+ SingleInstance = 1 << 0,
2708
+ /* Widget could be configured via widget configuration button */
2709
+ Configurable = 1 << 2,
2710
+ /* Widget must be configured on adding to the dashboard else it will be removed */
2711
+ ShouldConfigure = 1 << 3,
2712
+ /* Widget could be resized by the user action */
2713
+ Resizable = 1 << 4,
545
2714
  }
546
- declare function SettingsPageButtonPanel(props: ISettingsPageButtonPanelProps): JSX.Element;
547
-
548
- interface IEditorDescription {
549
- /** Название редактора. */
550
- name: string;
551
- /** Компонент редактора */
552
- component: React__default.ComponentType<IPageModelElement>;
553
- /**
554
- * Определяет поведение, в случае если редактор с указанным типом уже зарегистрирован.
555
- *
556
- * При значении `true` существующий контрол будет заменен.
557
- * При значении `false` замена не произойдет, и в консоли браузера будет отображена ошибка.
558
- *
559
- * По умолчанию значение `false`.
560
- */
561
- replaceExisting?: boolean;
562
- }
563
-
564
- interface IExtension {
565
- name: string;
566
- version: string;
567
- services?: (application: IApplication) => Service<any>[];
568
- widgets?: (application: IApplication) => IWidgetDescription[];
569
- editors?: () => IEditorDescription[];
570
- onApplicationRun?: (application: IApplication) => void;
571
- resources?: (application: IApplication) => Promise<IResourcesMap>;
572
- }
573
-
574
- declare const commonMuiProps: {
575
- select: Partial<SelectProps>;
576
- };
577
-
578
- declare enum ActionType {
579
- add = 0,
580
- delete = 1
2715
+
2716
+ export declare function WidgetHeader(props: IWidgetHeaderProps): JSX.Element;
2717
+
2718
+ export declare function WidgetHorizontalLine(props: IWidgetHorizontalLineProps): JSX.Element;
2719
+
2720
+ export declare function WidgetName(props: IWidgetNameProps): JSX.Element;
2721
+
2722
+ export declare function WidgetPeriodSelector(props: IWidgetPeriodSelectorProps): JSX.Element;
2723
+
2724
+ export declare function WidgetRefreshButton(props: IWidgetRefreshButtonProps): JSX.Element;
2725
+
2726
+ export declare function WidgetRefreshDate(props: IWidgetRefreshDateProps): JSX.Element;
2727
+
2728
+ export declare class WidgetsService implements IWidgetsService {
2729
+ private readonly application;
2730
+ private readonly logService;
2731
+ private readonly widgets;
2732
+ constructor(application: IApplication_2, logService: ILogService);
2733
+ registerDescription(widgetDescription: IWidgetDescription_2): void;
2734
+ getWidget(widgetServerModel: IWidgetServerModel_2): Widget_2;
2735
+ getDescription(typeId: string): IWidgetDescription_2;
2736
+ getAllDescriptions(): IWidgetDescription_2[];
581
2737
  }
582
- declare function actionWithThemeCssVariables(theme: Theme, action: ActionType): void;
583
- declare function addCssVariables(theme: Theme): void;
584
- declare function removeCssVariables(theme: Theme): void;
585
-
586
- declare const theme: _material_ui_core.Theme;
587
-
588
- export { Accordion, ActionType, ArrowIconButton, CellPreloader, CellWithFixedWidth, CellWithTwoLineClamping, ClearButton, ComponentIcon, DEFAULT_PAGE_SIZE, DateRangeCalendarIcon, DateRangeContainer, Default, DeleteIcon, DeleteIconButton, ERROR_ROW_CLASS_NAME, EditorContainer, EditorDescription, EditorName, EditorWrapper, ErrorBlock, ErrorIcon, ErrorMessage, ExpandButton, ExpandMoreIcon, GroupPanel, HandPointRightIcon, IAccordionProps, ICellWithFixedWidthProps, ICellWithTwoLineClampingProps, IComponentIconProps, ICompositionTable, IContainerProps, IContextMenuParameters, IDateRangeComponent, IDateRangePickerProps, IDateRangeProps, IEditorContainer, IErrorBlockProps, IExpandButtonProps, IExpandMoreIconProps, IExtension, IFilteringClearButtonProps, IGroupPanelProps, IInformationIconProps, IKeyValue, IListPanelProps, IListitemProps, IMetaInformation, INavigationMenuProps, IPageElementBinding, IPageElementOptions, IPageFilterButtonProps, IPageLayoutModelElement, IPageModel, IPageModelElement, IPageSaveModel, IPageSaveModelElement, IPageTabLabelProps, IPageTabProps, IPageTableProps, IPageTitleProps, ISectionContentWrapperProps, ISettingsPageButtonPanelProps, ISettingsPagePanelButton, ITableScrollContainerComponentProps, IWidgetConnectionSelectorProps, IWidgetContainerProps, IWidgetHeaderProps, IWidgetHorizontalLineProps, IWidgetNameProps, IWidgetPeriodSelectorProps, IWidgetRefreshButtonProps, IWidgetRefreshDateProps, InformationIcon, LightTooltip, LineWithError, ListItem, ListItemMarker, ListPanel, NavigationMenu, PageFilterButton, PageTabLabel, PageTabPanel, PageTable, PageTitle, SectionContentWrapper, SettingsPageButtonPanel, ShowInformationButton, TableScrollContainerComponent, WidgetConnectionSelector, WidgetContainer, WidgetHeader, WidgetHorizontalLine, WidgetName, WidgetPeriodSelector, WidgetRefreshButton, WidgetRefreshDate, WithSelectedItem, actionWithThemeCssVariables, addCssVariables, commonMuiProps, copyTextToClipboard, getContextMenuOptions, removeCssVariables, showNotification, theme, useHideOnScroll, useOutsideClick };
2738
+
2739
+ export declare const WithSelectedItem: Story;
2740
+
2741
+ export declare const WORKER_SETTINGS_LAYOUT = "906f3990-98e5-4c2e-9e5f-5998fdb26daa";
2742
+
2743
+ export { }