@docsvision/management-console 6.2.0-beta.2 → 6.2.0-beta.20

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 (5) hide show
  1. package/index.css +1 -1
  2. package/index.d.ts +273 -228
  3. package/index.js +65023 -65536
  4. package/index.js.map +1 -1
  5. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1,13 +1,14 @@
1
1
  /// <reference types="react" />
2
2
 
3
3
  import { $ContextMenuOptions } from 'docsvision.web/components/table/plugins/context-menu/$ContextMenuOptions';
4
- import { $MessageWindow } from 'docsvision.web/components/modals/message-box';
5
4
  import { $Router } from 'docsvision.web/core/routing';
6
5
  import { $RoutingService } from 'docsvision.web/core/routing';
6
+ import { BodyContainerProvider } from 'docsvision.web/components/modals/body-container-provider';
7
7
  import { ButtonProps } from '@mui/material';
8
8
  import { CircularProgressProps } from '@mui/material';
9
9
  import { ColumnType } from 'docsvision.web/components/table/interfaces';
10
10
  import { Control } from 'react-hook-form';
11
+ import { ControllerRenderProps } from 'react-hook-form';
11
12
  import { DependencyList } from 'react';
12
13
  import { Domain } from 'effector';
13
14
  import { Event as Event_2 } from 'effector';
@@ -20,7 +21,6 @@ import { IconButtonProps } from '@mui/material';
20
21
  import { ICustomContextMenuOption } from 'docsvision.web/components/table/plugins/context-menu/$ContextMenuOptions';
21
22
  import { IDateFormatPluginData } from 'docsvision.web/components/table/plugins/filter';
22
23
  import { ILogService } from 'docsvision.web/core/system-services/logging/LogService';
23
- import { IMessageWindowService } from 'docsvision.web/components/modals/message-box';
24
24
  import { IRequestService } from 'docsvision.web/core/system-services/networking/RequestService';
25
25
  import { IRouter } from 'docsvision.web/core/routing';
26
26
  import { IRoutingService } from 'docsvision.web/core/routing';
@@ -53,6 +53,7 @@ import { TableCell } from '@mui/material';
53
53
  import { TableCompositions } from 'docsvision.web/components/table/interfaces';
54
54
  import { Theme } from '@mui/material';
55
55
  import { TooltipProps } from '@mui/material';
56
+ import { TypographyProps } from '@mui/material';
56
57
  import { UseFormGetFieldState } from 'react-hook-form';
57
58
  import { UseFormGetValues } from 'react-hook-form';
58
59
  import { UseFormHandleSubmit } from 'react-hook-form';
@@ -99,22 +100,6 @@ declare type $DashboardConfigurationService_2 = { dashboardConfigurationService:
99
100
 
100
101
  declare const $DashboardConfigurationService_2 = serviceName((s: $DashboardConfigurationService_2) => s.dashboardConfigurationService);
101
102
 
102
- declare type $DatabaseMasterController = { databaseMasterController: IDatabaseMasterController };
103
-
104
- declare const $DatabaseMasterController = serviceName((s: $DatabaseMasterController) => s.databaseMasterController);
105
-
106
- declare type $DatabasesConfigurationController = { databasesConfigurationController: IDatabasesConfigurationController };
107
-
108
- declare const $DatabasesConfigurationController = serviceName((s: $DatabasesConfigurationController) => s.databasesConfigurationController);
109
-
110
- declare type $DatabasesController = { databasesController: IDatabasesController };
111
-
112
- declare const $DatabasesController = serviceName((s: $DatabasesController) => s.databasesController);
113
-
114
- declare type $DatabaseWizard = { databaseWizardService: IDatabaseWizardService; };
115
-
116
- declare const $DatabaseWizard = serviceName((s: $DatabaseWizard) => s.databaseWizardService);
117
-
118
103
  export declare type $DomEntryPointService = {
119
104
  domEntryPointService: IDomEntryPointService;
120
105
  };
@@ -195,6 +180,10 @@ declare type $LocalStorage_2 = { localStorage: ILocalStorage_2; };
195
180
 
196
181
  declare const $LocalStorage_2 = serviceName((s: $LocalStorage_2) => s.localStorage);
197
182
 
183
+ declare type $MessageWindow = { messageWindow: IMessageWindowService; };
184
+
185
+ declare const $MessageWindow = serviceName((s: $MessageWindow) => s.messageWindow);
186
+
198
187
  declare type $NavigationMenu = { navigationMenu: INavigationMenuService };
199
188
 
200
189
  declare const $NavigationMenu = serviceName<$NavigationMenu, INavigationMenuService>(x => x.navigationMenu);
@@ -243,6 +232,16 @@ declare type $ResourcesManagement_2 = { resourcesManagement: IResourcesManagemen
243
232
 
244
233
  declare const $ResourcesManagement_2 = serviceName((s: $ResourcesManagement_2) => s.resourcesManagement);
245
234
 
235
+ export declare type $RootElement = {
236
+ rootElement: IRootElementService;
237
+ };
238
+
239
+ export declare const $RootElement: string | ((model?: $RootElement) => IRootElementService);
240
+
241
+ declare type $RootElement_2 = { rootElement: IRootElementService_2 };
242
+
243
+ declare const $RootElement_2 = serviceName((s: $RootElement_2) => s.rootElement);
244
+
246
245
  export declare type $RouteContentRender = {
247
246
  routeContentRender: IRouteContentRenderService;
248
247
  };
@@ -263,6 +262,14 @@ declare type $ServersController_2 = {
263
262
 
264
263
  declare const $ServersController_2: string | ((model?: $ServersController_2) => IServersController_2);
265
264
 
265
+ declare type $SessionsController = { sessionsController: ISessionsController };
266
+
267
+ declare const $SessionsController = serviceName((s: $SessionsController) => s.sessionsController);
268
+
269
+ declare type $SettingsController = { settingsController: ISettingsController };
270
+
271
+ declare const $SettingsController = serviceName((s: $SettingsController) => s.settingsController);
272
+
266
273
  export declare type $SettingsNavigation = {
267
274
  settingsNavigation: ISettingsNavigationService;
268
275
  };
@@ -340,13 +347,12 @@ export declare class Application extends ServiceContainer implements IApplicatio
340
347
  serverController: IServersController_2;
341
348
  settingsNavigation: ISettingsNavigationService;
342
349
  formControl: IFormControl;
343
- databaseWizardService: IDatabaseWizardService;
344
- databaseMasterController: IDatabaseMasterController;
345
- databasesConfigurationController: IDatabasesConfigurationController;
346
- databasesController: IDatabasesController;
347
350
  realtimeCommunication: IRealtimeCommunicationService_2;
351
+ sessionsController: ISessionsController;
348
352
  configurationLocksController: IConfigurationLocksController;
349
353
  extendedConfigurationController: IExtendedConfigurationController_2;
354
+ rootElement: IRootElementService_2;
355
+ settingsController: ISettingsController;
350
356
  constructor(reactRootElementId: string);
351
357
  static instance: IApplication;
352
358
  initialize(): Promise<void>;
@@ -374,8 +380,9 @@ declare enum BreadcrumbsLabel {
374
380
  PageOutgoingMessagesQueue,
375
381
  WidgetSearchForCardMessages,
376
382
  PageSearchForCardMessages,
377
- PageErrorAndBlockLog
378
-
383
+ PageErrorAndBlockLog,
384
+ WidgetOpenSessions,
385
+ PageOpenSessions
379
386
  }
380
387
 
381
388
  declare enum BreadcrumbsLabel_2 {
@@ -385,7 +392,14 @@ declare enum BreadcrumbsLabel_2 {
385
392
  PageOutgoingMessagesQueue = 3,
386
393
  WidgetSearchForCardMessages = 4,
387
394
  PageSearchForCardMessages = 5,
388
- PageErrorAndBlockLog = 6
395
+ PageErrorAndBlockLog = 6,
396
+ WidgetOpenSessions = 7,
397
+ PageOpenSessions = 8
398
+ }
399
+
400
+ declare enum ButtonColorModes {
401
+ Primary = 0,
402
+ Secondary = 1
389
403
  }
390
404
 
391
405
  export declare function ButtonWithLoading(props: IButtonWithLoadingProps): JSX.Element;
@@ -406,18 +420,6 @@ export declare const commonMuiProps: {
406
420
 
407
421
  export declare function ComponentIcon(props: IComponentIconProps): JSX.Element;
408
422
 
409
- declare enum ConnectionStatus {
410
- Unknown = -1,
411
- Succesfull = 0,
412
- DatabaseNotExist = 1,
413
- ServerNotExist = 2,
414
- LoginFailed = 3,
415
- AuthNotSupported = 4,
416
-
417
- AliasAlreadyExists = 100,
418
- DatabaseAlreadyExists = 101
419
- }
420
-
421
423
  export declare const convertBase64ToString: (base64: string) => string;
422
424
 
423
425
  export declare const convertDataToBase64: (data: object) => string;
@@ -487,24 +489,6 @@ export declare function DatabaseSettingsCard(props: IDatabaseSettingsCardProps):
487
489
 
488
490
  export declare type DatabaseSettingsCardSize = "sm" | "md";
489
491
 
490
- declare enum DatabaseState {
491
- Attached,
492
- Updating,
493
- Creating,
494
- Attaching
495
- }
496
-
497
- declare enum DatabaseType {
498
- Postgre,
499
- SQL
500
- }
501
-
502
- declare enum DatabaseWizardMode {
503
- Create,
504
- Add,
505
- Update
506
- }
507
-
508
492
  export declare const DateRangeCalendarIcon: React_2.NamedExoticComponent<IDateRangeProps>;
509
493
 
510
494
  export declare function DateRangeContainer(props: IDateRangePickerProps): JSX.Element;
@@ -535,6 +519,10 @@ export declare function DropdownBody(props: IDropdownBodyProps): JSX.Element;
535
519
 
536
520
  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>>;
537
521
 
522
+ export declare function DropdownWithEllipsis(props: IDropdownWithEllipsisProps): JSX.Element;
523
+
524
+ export declare function EditorCollectionEditor(props: IEditorCollectionEditorProps): JSX.Element;
525
+
538
526
  export declare function EditorContainer(props: IEditorContainer): JSX.Element;
539
527
 
540
528
  export declare function EditorDescription({ text }: {
@@ -662,7 +650,7 @@ export declare const getThisMonthBeginAndEndDays: () => {
662
650
  endMonthDate: string;
663
651
  };
664
652
 
665
- export declare const getWidgetsOrder: (id: string) => 0 | 1 | 2;
653
+ export declare const getWidgetsOrder: (id: string) => 0 | 1 | 2 | 3;
666
654
 
667
655
  export declare function GroupPanel(props: IGroupPanelProps): JSX.Element;
668
656
 
@@ -737,7 +725,7 @@ export declare interface IApplication extends ServiceContainer, IApplicationServ
737
725
  declare interface IApplication_2 extends ServiceContainer, IApplicationServices_2 {
738
726
  }
739
727
 
740
- 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, $DatabaseWizard, $DatabasesController, $DatabasesConfigurationController, $DatabaseMasterController, $ConfigurationLocksController {
728
+ 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, $SettingsController {
741
729
  }
742
730
 
743
731
  declare interface IApplicationServices_2 extends
@@ -768,11 +756,10 @@ $SettingsNavigation_2,
768
756
  $FormControl_2,
769
757
  $ExtendedConfigurationController,
770
758
  $RealtimeCommunication,
771
- $DatabaseWizard,
772
- $DatabasesController,
773
- $DatabasesConfigurationController,
774
- $DatabaseMasterController,
775
- $ConfigurationLocksController {
759
+ $ConfigurationLocksController,
760
+ $SessionsController,
761
+ $RootElement_2,
762
+ $SettingsController {
776
763
 
777
764
  }
778
765
 
@@ -986,12 +973,6 @@ declare interface IConfigurationValueChange_2 extends IConfigurationValue_2 {
986
973
  operation: IChangeOperationType_2;
987
974
  }
988
975
 
989
- declare interface IConnectionStatusInfo {
990
- status: ConnectionStatus;
991
- message: string;
992
- uniqueServerName?: string;
993
- }
994
-
995
976
  export declare interface IContainerProps extends HtmlProps.button {
996
977
  title?: string;
997
978
  content?: JSX.Element | string;
@@ -1003,6 +984,11 @@ export declare interface IContextMenuParameters {
1003
984
  currentCardId?: string;
1004
985
  }
1005
986
 
987
+ declare interface ICopySettingsRequest {
988
+ sourceServiceId: string;
989
+ targetServiceId: string;
990
+ }
991
+
1006
992
  export declare interface ICultureSettings {
1007
993
  /**
1008
994
  * First day of week
@@ -1107,6 +1093,14 @@ declare interface ICultureSettings_2 {
1107
1093
  twoLetterISOLanguageName: string,
1108
1094
  }
1109
1095
 
1096
+ declare interface ICustomMessageWindowOptions extends IMessageWindowOptions {
1097
+ color?: string;
1098
+ hideByBackdropClick?: boolean;
1099
+ boxDefaultWidth?: boolean;
1100
+ boxMaxWidth?: string | number;
1101
+ className?: string;
1102
+ }
1103
+
1110
1104
  export declare interface IDashboard {
1111
1105
  id: string;
1112
1106
  title: string;
@@ -1149,50 +1143,6 @@ declare interface IDashboardPosition_2 {
1149
1143
  order: number;
1150
1144
  }
1151
1145
 
1152
- declare interface IDatabase {
1153
- alias: string;
1154
- databaseName: string;
1155
- databaseType: DatabaseType;
1156
- serverName: string;
1157
- isDefault: boolean;
1158
- databaseState: DatabaseState;
1159
- deleted: boolean;
1160
- }
1161
-
1162
- declare interface IDatabaseInfo {
1163
- databaseAlias: string;
1164
- connectionStatus: IConnectionStatusInfo;
1165
- baseVersion: unknown;
1166
- updateDate: string;
1167
- fullTextSearchEnabled: boolean;
1168
- }
1169
-
1170
- declare interface IDatabaseMasterController extends Service {
1171
- setState(serverId: string, state: IDatabaseMasterModel): Promise<void>;
1172
- getState(serverId: string, databaseAlias: string): Promise<IDatabaseMasterModel>;
1173
- deleteState(serverId: string, databaseAlias: string): Promise<void>;
1174
- }
1175
-
1176
- declare interface IDatabaseMasterModel {
1177
- serverParameters?: IServerParameters;
1178
- databaseParameters?: IDatabaseParameters;
1179
- scriptGenerationParameters?: IScriptGenerationParameters;
1180
- libraries?: string[];
1181
- timeout?: number;
1182
- localeId?: number;
1183
- dbFilePath?: string;
1184
- currentPageName: string;
1185
- state?: IDatabaseMasterState;
1186
- lastProcessError?: string;
1187
- masterType: DatabaseWizardMode;
1188
- }
1189
-
1190
- declare enum IDatabaseMasterState {
1191
- Preparing = 0,
1192
- InProcess = 1,
1193
- ProcessFinished = 2
1194
- }
1195
-
1196
1146
  export declare interface IDatabaseModel {
1197
1147
  baseName: string;
1198
1148
  sqlServerName: string;
@@ -1203,34 +1153,6 @@ export declare interface IDatabaseModel {
1203
1153
  error?: string;
1204
1154
  }
1205
1155
 
1206
- declare interface IDatabaseParameters {
1207
- alias: string;
1208
- databaseName: string;
1209
- additionalOptions?: Record<string, string>;
1210
- }
1211
-
1212
- declare interface IDatabasesConfigurationController extends Service {
1213
- getDefault(serviceId: string): Promise<string>;
1214
- setDefault(serviceId: string, databaseAlias: string): Promise<void>;
1215
- add(serviceId: string, databaseAlias: string): Promise<void>;
1216
- delete(serviceId: string, databaseAlias: string): Promise<void>;
1217
- all(serviceId: string): Promise<IDatabase[]>;
1218
- }
1219
-
1220
- declare interface IDatabasesController extends Service {
1221
- create(serviceId: string, databaseAlias: string): Promise<void>;
1222
- update(serviceId: string, databaseAlias: string): Promise<void>;
1223
- status(serviceId: string, databaseAlias: string): Promise<IProcessStatus>;
1224
- stop(serviceId: string, databaseAlias: string): Promise<void>;
1225
- databases(serviceId: string, serverParameters: IServerParameters): Promise<string[]>;
1226
- checkSqlServerConnection(serviceId: string, serverParameters: IServerParameters): Promise<IConnectionStatusInfo>;
1227
- checkSqlDatabaseConnection(serviceId: string, serverParameters: IServerParameters, databaseParameters: IDatabaseParameters): Promise<IConnectionStatusInfo>;
1228
- checkSqlDatabaseConnectionFull(serviceId: string, serverParameters: IServerParameters, databaseParameters: IDatabaseParameters)
1229
- : Promise<IConnectionStatusInfo>;
1230
- info(serviceId: string): Promise<IDatabaseInfo[]>;
1231
- libraries(serviceId: string, databaseAlias: string): Promise<IScriptGenerationModel>
1232
- }
1233
-
1234
1156
  export declare interface IDatabaseSelectionModalProps {
1235
1157
  open: boolean;
1236
1158
  databases: IDatabaseModel[];
@@ -1245,12 +1167,7 @@ export declare interface IDatabaseSettingsCardProps {
1245
1167
  isDefault: boolean;
1246
1168
  children?: React_2.ReactNode;
1247
1169
  size?: DatabaseSettingsCardSize;
1248
- }
1249
-
1250
- declare interface IDatabaseWizardService extends Service {
1251
- openCreateMode(serviceId: string, databaseChangeStateEvent?: Event_2<void>);
1252
- openUpdateMode(serviceId: string, databaseAlias: string, databaseChangeStateEvent?: Event_2<void>);
1253
- openConnectMode(serviceId: string, databaseChangeStateEvent?: Event_2<void>);
1170
+ error?: string;
1254
1171
  }
1255
1172
 
1256
1173
  export declare interface IDateRangeComponent {
@@ -1320,6 +1237,25 @@ export declare interface IDropdownOptionProps extends Omit<MenuItemProps, "butto
1320
1237
  displayName: string;
1321
1238
  }
1322
1239
 
1240
+ export declare interface IDropdownWithEllipsisProps {
1241
+ options: IPageElementOption_2[];
1242
+ value: string;
1243
+ label: string;
1244
+ handleChange: (value: string) => void;
1245
+ field: ControllerRenderProps<FieldValues, string>;
1246
+ dataTestId?: string;
1247
+ className?: string;
1248
+ noOptionsText?: string;
1249
+ }
1250
+
1251
+ export declare interface IEditorCollectionEditorProps extends IPageModelElement {
1252
+ children: React_2.ReactNode | React_2.ReactNode[];
1253
+ isChanged?: boolean;
1254
+ resetValue?: () => void;
1255
+ className?: string;
1256
+ isEditable?: boolean;
1257
+ }
1258
+
1323
1259
  export declare interface IEditorContainer extends IPageModelElement {
1324
1260
  children: React_2.ReactNode;
1325
1261
  isChanged?: boolean;
@@ -1563,6 +1499,11 @@ declare interface IHelpIconButtonProps {
1563
1499
  transformOrigin?: PopoverOrigin;
1564
1500
  }
1565
1501
 
1502
+ declare interface IInfoBanner {
1503
+ text: string;
1504
+ typographyProps?: TypographyProps;
1505
+ }
1506
+
1566
1507
  export declare interface IInformationIconProps {
1567
1508
  className?: string;
1568
1509
  color?: string;
@@ -1584,19 +1525,6 @@ declare interface ILayoutService_2 extends Service {
1584
1525
  saveLayout(layoutId: string, serviceId: string, data: IPageSaveModelElement_2[], itemId?: string, timestamp?: number): Promise<ISavePageResultModel_2>;
1585
1526
  }
1586
1527
 
1587
- declare interface ILibrary {
1588
- id: string,
1589
- alias: string,
1590
- name: string,
1591
- cardLibVersion: number,
1592
- dbVersion: number,
1593
- dbSysVersion: number;
1594
- haveUserMetadata: boolean;
1595
- haveUnknownLinks?: boolean;
1596
- canUpdate?: boolean;
1597
- libraryDependencies: TLibraryDependency[];
1598
- }
1599
-
1600
1528
  declare interface ILineWithError {
1601
1529
  error: string;
1602
1530
  }
@@ -1614,6 +1542,7 @@ declare interface IListPanelProps {
1614
1542
  disabled?: boolean;
1615
1543
  validate?: (value: string) => Promise<boolean>;
1616
1544
  errorMessage?: string;
1545
+ services: IApplicationServices;
1617
1546
  }
1618
1547
 
1619
1548
  export declare interface ILocalizationService {
@@ -1767,6 +1696,40 @@ declare interface IMenuItem_2 {
1767
1696
  refElement?: React.RefObject<HTMLDivElement>;
1768
1697
  }
1769
1698
 
1699
+ declare interface IMessageConfirmationWindowOptions extends IMessageWindowOptions {
1700
+ color?: string;
1701
+ modalIcon?: React_2.ReactNode;
1702
+ hideByBackdropClick?: boolean;
1703
+ closeOnEscape?: boolean;
1704
+ }
1705
+
1706
+ declare interface IMessageWindowButton<T> {
1707
+ name?: React_2.ReactNode | string;
1708
+ value?: T;
1709
+ id?: string;
1710
+ isCancel?: boolean;
1711
+ onClick?: () => void;
1712
+ className?: string;
1713
+ colorMode?: ButtonColorModes;
1714
+ }
1715
+
1716
+ declare interface IMessageWindowOptions {
1717
+ customCaptionText?: React_2.ReactNode;
1718
+ contentMaxHeight?: string | number;
1719
+ customButtonOkText?: React_2.ReactNode;
1720
+ withConfirmation?: boolean;
1721
+ customButtonCancelText?: React_2.ReactNode;
1722
+ }
1723
+
1724
+ declare interface IMessageWindowService {
1725
+ showError(content: React.ReactNode, options?: IMessageWindowOptions): Promise<void>;
1726
+ showInfo(content: React.ReactNode, options?: IMessageWindowOptions): Promise<void>;
1727
+ showWarning(content: React.ReactNode, options?: IMessageWindowOptions): Promise<void>;
1728
+ showConfirmation(content: React.ReactNode, options?: IMessageConfirmationWindowOptions): Promise<void>;
1729
+ showCustom<T>(content: React.ReactNode, buttons: IMessageWindowButton<T>[], options?: ICustomMessageWindowOptions): Promise<T | void>;
1730
+ getMessageBoxContainer(): BodyContainerProvider;
1731
+ }
1732
+
1770
1733
  export declare interface IMetaInformation {
1771
1734
  readOnly: boolean;
1772
1735
  acceptMessage: string;
@@ -1804,17 +1767,22 @@ declare enum IncomingMessageState {
1804
1767
  Paused = 4
1805
1768
  }
1806
1769
 
1770
+ export declare function InfoBanner({ text, typographyProps }: IInfoBanner): JSX.Element;
1771
+
1807
1772
  export declare function InformationIcon(props: IInformationIconProps): JSX.Element;
1808
1773
 
1809
- declare interface INumberComponentProps extends Omit<OutlinedTextFieldProps, "variant"> {
1810
- name: string;
1811
- value?: number;
1812
- minValue?: number;
1813
- maxValue?: number;
1814
- fullWidth?: boolean;
1815
- width?: number;
1816
- textAlign?: "left" | "center" | "right";
1817
- errorMessage?: string;
1774
+ declare interface INumberComponentProps extends Omit<OutlinedTextFieldProps, "variant" | "value" | "onChange" | "type" | "defaultValue"> {
1775
+ minValue?: string | number;
1776
+ maxValue?: string | number;
1777
+ value?: string;
1778
+ onChange: (value: string) => void;
1779
+ allowDecimals?: boolean;
1780
+ numberDecimalSeparator?: string;
1781
+ }
1782
+
1783
+ declare interface IOpenSessionsCount {
1784
+ onlineCount: number,
1785
+ offlineCount: number,
1818
1786
  }
1819
1787
 
1820
1788
  export declare interface IPageElementOption {
@@ -1850,6 +1818,7 @@ export declare interface IPageLayoutModelElement {
1850
1818
  elements?: IPageModelElement[];
1851
1819
  extendedLayoutId?: string;
1852
1820
  readonly?: boolean;
1821
+ inProcess?: boolean;
1853
1822
  parameters?: Record<string, string>;
1854
1823
  }
1855
1824
 
@@ -1867,6 +1836,7 @@ declare interface IPageLayoutModelElement_2 {
1867
1836
  elements?: IPageModelElement_2[];
1868
1837
  extendedLayoutId?: string;
1869
1838
  readonly?: boolean;
1839
+ inProcess?: boolean;
1870
1840
  parameters?: Record<string, string>;
1871
1841
  }
1872
1842
 
@@ -1908,6 +1878,14 @@ declare interface IPageSaveModelElement_2 {
1908
1878
  value: unknown;
1909
1879
  }
1910
1880
 
1881
+ declare interface IPageSessionResult {
1882
+ queryId: string,
1883
+ result: ISessionInfo[],
1884
+ currentPage: number,
1885
+ hasMore: boolean,
1886
+ totalItemsCount: number
1887
+ }
1888
+
1911
1889
  export declare interface IPageTabLabelProps extends HtmlProps.div {
1912
1890
  text: string;
1913
1891
  selected: boolean;
@@ -1934,6 +1912,12 @@ export declare interface IPageTitleProps extends HtmlProps.div {
1934
1912
  text: string;
1935
1913
  }
1936
1914
 
1915
+ declare interface IPagingParameters {
1916
+ page: number,
1917
+ pageSize?: number,
1918
+ UsePagination?: boolean
1919
+ }
1920
+
1937
1921
  /**
1938
1922
  * Сервис для раскрытия или закрытия всех панелей.
1939
1923
  */
@@ -1960,9 +1944,12 @@ export declare interface IPopupNotificationProps extends Noty_2.Options {
1960
1944
  buttonsProps?: IButtonsProps[];
1961
1945
  }
1962
1946
 
1963
- declare interface IProcessStatus {
1964
- state: ProcessState;
1965
- errorMessage?: string
1947
+ export declare interface IProcessOverlayProps {
1948
+ children: React_2.ReactNode;
1949
+ inProcess?: boolean;
1950
+ message?: string;
1951
+ spinnerSize?: number;
1952
+ className?: string;
1966
1953
  }
1967
1954
 
1968
1955
  declare interface IRealtimeCommunicationService {
@@ -2001,6 +1988,14 @@ declare interface IResourcesMap_2 {
2001
1988
  [id: string]: string;
2002
1989
  }
2003
1990
 
1991
+ export declare interface IRootElementService {
1992
+ readonly rootElementId: string;
1993
+ }
1994
+
1995
+ declare interface IRootElementService_2 {
1996
+ readonly rootElementId: string;
1997
+ }
1998
+
2004
1999
  export declare interface IRouteContentRenderService {
2005
2000
  register(path: string, routeHandler: RouteHandler, hooks?: HooksHandler): any;
2006
2001
  $contentComponent: Store<JSX.Element>;
@@ -2043,23 +2038,6 @@ declare interface ISavePageResultModel_2 {
2043
2038
  timestamp?: number;
2044
2039
  }
2045
2040
 
2046
- declare interface IScriptGenerationModel {
2047
- scriptGeneratorVersion: number,
2048
- libraries: ILibrary[]
2049
- }
2050
-
2051
- declare interface IScriptGenerationParameters {
2052
- searchDataBaseType: TableLocationType,
2053
- changedObjectDataBaseType: TableLocationTypeExtended,
2054
- iconDataBaseType: TableLocationType,
2055
- keysetDataBaseType: TableLocationType,
2056
- fileCursorDataBaseType: TableLocationType,
2057
- cursorDataBaseType: TableLocationType,
2058
- useOuterMetadata: boolean,
2059
- useOuterLog: boolean,
2060
- useOuterArchive: boolean,
2061
- }
2062
-
2063
2041
  export declare interface ISectionContentWrapperProps extends IPageModelElement {
2064
2042
  className?: string;
2065
2043
  refElement?: React_2.RefObject<HTMLDivElement>;
@@ -2092,27 +2070,20 @@ export declare interface IServerExtensionResourcesDescriptor {
2092
2070
  url: string;
2093
2071
  }
2094
2072
 
2095
- declare interface IServerParameters {
2096
- serverName: string;
2097
- serverType: ServerType;
2098
- user: string;
2099
- password: string;
2100
- passwordChanged?: boolean;
2101
- port?: number;
2102
- integratedSecurity: boolean;
2103
- trustServerCertificate?: boolean;
2104
- }
2105
-
2106
2073
  declare interface IServersController extends Service {
2107
2074
  getServers(): Promise<IServerDescription[]>;
2108
2075
  getServerInfo(id: string): Promise<IServerDetails>;
2076
+ getServiceInfo(serviceId: string): Promise<IServiceDescription | null>;
2109
2077
  deleteService(id: string): Promise<void>;
2078
+ getPeers(id: string): Promise<IServiceInfo[]>;
2110
2079
  }
2111
2080
 
2112
2081
  declare interface IServersController_2 extends Service {
2113
2082
  getServers(): Promise<IServerDescription_2[]>;
2114
2083
  getServerInfo(id: string): Promise<IServerDetails_2>;
2084
+ getServiceInfo(serviceId: string): Promise<IServiceDescription_2 | null>;
2115
2085
  deleteService(id: string): Promise<void>;
2086
+ getPeers(id: string): Promise<IServiceInfo_2[]>;
2116
2087
  }
2117
2088
 
2118
2089
  declare interface IServiceDescription {
@@ -2127,11 +2098,77 @@ declare interface IServiceDescription_2 {
2127
2098
  configurationLayoutId: string;
2128
2099
  }
2129
2100
 
2101
+ declare interface IServiceInfo {
2102
+ id: string;
2103
+ serviceTypeCode: number;
2104
+ serverName: string;
2105
+ productVersion: string;
2106
+ codeVersion: string;
2107
+ lastUpdated?: string;
2108
+ }
2109
+
2110
+ declare interface IServiceInfo_2 {
2111
+ id: string;
2112
+ serviceTypeCode: number;
2113
+ serverName: string;
2114
+ productVersion: string;
2115
+ codeVersion: string;
2116
+ lastUpdated?: string;
2117
+ }
2118
+
2119
+ declare interface ISessionCloseInfo {
2120
+ sessionId: string,
2121
+ message: string
2122
+ }
2123
+
2124
+ declare interface ISessionInfo {
2125
+ id: string,
2126
+ userName: string,
2127
+ computerName: string,
2128
+ loginTime: string,
2129
+ inactivityTime: string,
2130
+ offline: boolean
2131
+ }
2132
+
2133
+ declare interface ISessionsController extends Service {
2134
+ getSessionsCount(connectionId: string): Promise<IOpenSessionsCount>
2135
+ getSessions(connectionId, request: ISessionsGetRequest): Promise<ISessionsGetResponse>
2136
+ closeSessions(connectionId: string, sessionIds: string[]): Promise<ISessionCloseInfo[]>
2137
+ }
2138
+
2139
+ declare interface ISessionsGetRequest {
2140
+ query: ISessionsQuery,
2141
+ pagingParameters: IPagingParameters
2142
+ }
2143
+
2144
+ declare interface ISessionsGetResponse {
2145
+ licenseInfo: IUsedLicenseInfoModel,
2146
+ availableFilterTypes: SessionFilterTypes,
2147
+ pagedResult: IPageSessionResult
2148
+ }
2149
+
2150
+ declare interface ISessionSortCondition {
2151
+ columnName: string,
2152
+ ascending: boolean,
2153
+ order: number
2154
+ }
2155
+
2156
+ declare interface ISessionsQuery {
2157
+ queryId?: string,
2158
+ filterTypes: SessionFilterTypes,
2159
+ sortConditions: ISessionSortCondition[],
2160
+ }
2161
+
2162
+ declare interface ISettingsController extends Service {
2163
+ copy(request: ICopySettingsRequest): Promise<void>;
2164
+ }
2165
+
2130
2166
  export declare interface ISettingsNavigationService {
2131
2167
  goToSettingsPage: (layoutId: string, serviceName: string, serviceId: string) => void;
2132
2168
  goToItemSettingsPage: (layoutId: string, id: string, label: string) => void;
2133
2169
  goToConfigurationPage: () => void;
2134
2170
  getBreadcrumbsItems: () => IBreadcrumbsItems_2[];
2171
+ ensureServiceName: (serviceId?: string) => Promise<void>;
2135
2172
  }
2136
2173
 
2137
2174
  declare interface ISettingsNavigationService_2 {
@@ -2139,6 +2176,7 @@ declare interface ISettingsNavigationService_2 {
2139
2176
  goToItemSettingsPage: (layoutId: string, id: string, label: string) => void;
2140
2177
  goToConfigurationPage: () => void;
2141
2178
  getBreadcrumbsItems: () => IBreadcrumbsItems[];
2179
+ ensureServiceName: (serviceId?: string) => Promise<void>;
2142
2180
  }
2143
2181
 
2144
2182
  export declare interface ISettingsPageButtonPanelProps extends HtmlProps_2.div {
@@ -2322,6 +2360,11 @@ export declare interface IUrlModel {
2322
2360
  database?: string;
2323
2361
  }
2324
2362
 
2363
+ declare interface IUsedLicenseInfoModel {
2364
+ totalCount: number,
2365
+ usedCount: number
2366
+ }
2367
+
2325
2368
  export declare interface IUserInfo {
2326
2369
  /**
2327
2370
  * User account name
@@ -2538,6 +2581,19 @@ export declare class LocalStorage implements ILocalStorage_2 {
2538
2581
  transformId(id: string): string;
2539
2582
  }
2540
2583
 
2584
+ export declare class MessageWindowService implements IMessageWindowService {
2585
+ private static mMessageBoxContainerProvider;
2586
+ static lastError?: HTMLElement;
2587
+ services: $Resources_2;
2588
+ constructor(services: $Resources_2);
2589
+ showError(content: React_2.ReactNode, options?: IMessageWindowOptions): Promise<void>;
2590
+ showInfo(content: React_2.ReactNode, options?: IMessageWindowOptions): Promise<void>;
2591
+ showWarning(content: React_2.ReactNode, options?: IMessageWindowOptions): Promise<void>;
2592
+ showConfirmation(content: React_2.ReactNode, options?: IMessageConfirmationWindowOptions): Promise<void>;
2593
+ showCustom<T>(content: React_2.ReactNode, buttons: IMessageWindowButton<T>[], options?: ICustomMessageWindowOptions): Promise<T | void>;
2594
+ getMessageBoxContainer(): BodyContainerProvider;
2595
+ }
2596
+
2541
2597
  export declare function NavigationMenu(props: INavigationMenuProps): JSX.Element;
2542
2598
 
2543
2599
  export declare function newGuid(): string;
@@ -2583,12 +2639,7 @@ declare enum PeriodType {
2583
2639
  DateRange
2584
2640
  }
2585
2641
 
2586
- declare enum ProcessState {
2587
- Running = 0,
2588
- Finished = 1,
2589
- Error = 2,
2590
- Canceled = 3
2591
- }
2642
+ export declare function ProcessOverlay(props: IProcessOverlayProps): JSX.Element;
2592
2643
 
2593
2644
  export declare function registerEditors(): void;
2594
2645
 
@@ -2600,6 +2651,11 @@ export declare class ResourcesManagement implements IResourcesManagement {
2600
2651
  addResources(resourcesMap: any): void;
2601
2652
  }
2602
2653
 
2654
+ export declare class RootElementService implements IRootElementService_2 {
2655
+ readonly rootElementId: string;
2656
+ constructor(rootElementId: string);
2657
+ }
2658
+
2603
2659
  export declare class RouteContentRenderService implements IRouteContentRenderService_2 {
2604
2660
  private readonly application?;
2605
2661
  domain: Domain;
@@ -2633,18 +2689,25 @@ declare enum SavePageStatus_2 {
2633
2689
 
2634
2690
  export declare function SectionContentWrapper(props: ISectionContentWrapperProps): JSX.Element;
2635
2691
 
2636
- declare enum ServerType {
2637
- PostgreSQL,
2638
- "MS SQL SERVER",
2639
- }
2640
-
2641
2692
  export declare const ServicesContext: React_2.Context<IApplicationServices>;
2642
2693
 
2694
+ declare enum SessionFilterTypes {
2695
+ None = 0,
2696
+ Online = 1,
2697
+ Offline = 2,
2698
+ All = 3
2699
+ }
2700
+
2643
2701
  export declare const setDashboardPosition: (settings: IWidgetSettings_2, position: IDashboardPosition_2) => void;
2644
2702
 
2645
2703
  export declare class SettingsNavigationService implements ISettingsNavigationService {
2646
2704
  private readonly application;
2705
+ private readonly serviceNamesCache;
2647
2706
  constructor(application: IApplication);
2707
+ ensureServiceName(serviceId?: string): Promise<void>;
2708
+ private rememberServiceName;
2709
+ private getCachedServiceName;
2710
+ private resolveServiceName;
2648
2711
  convertPathToUrl(str: string, ...args: any[]): string;
2649
2712
  getServerPageUrl(serverId: string): string;
2650
2713
  getSettingsPageUrl(serverId: string, serviceId: string, layoutId: string, serviceName: string): string;
@@ -2667,22 +2730,6 @@ export declare function showNotification(text: string): void;
2667
2730
 
2668
2731
  declare type Story = StoryObj<INavigationMenuProps>;
2669
2732
 
2670
- declare enum TableLocationType {
2671
- UseDefaultOrCurrent,
2672
- UseOwnDatabase,
2673
- UseOuterDatabase,
2674
- UseTemporaryDatabase,
2675
- }
2676
-
2677
- declare enum TableLocationTypeExtended {
2678
- UseDefaultOrCurrent,
2679
- UseOwnDatabase,
2680
- UseOuterDatabase,
2681
- UseTemporaryDatabase,
2682
- InMemoryTableOwnDatabase,
2683
- InMemoryTableOwnDatabaseNotPersistData,
2684
- }
2685
-
2686
2733
  export declare function TableScrollContainerComponent(props: ITableScrollContainerComponentProps): JSX.Element;
2687
2734
 
2688
2735
  export declare class TenantsService implements ITenantsService {
@@ -2699,8 +2746,6 @@ export declare function TextMessage(props: ITextMessage): JSX.Element;
2699
2746
 
2700
2747
  export declare const theme: Theme;
2701
2748
 
2702
- declare type TLibraryDependency = Omit<ILibrary, "haveUserMetadata" | "name" | "cardLibVersion" | "dbSysVersion" | "dbVersion" | "haveUnknownLinks" | "canUpdate">;
2703
-
2704
2749
  export declare const toWidgetSettings: (serverSettings: IWidgetSettingServerModel[]) => IWidgetSettings;
2705
2750
 
2706
2751
  export declare const useCustomFormContext: <TFieldValues extends FieldValues, TContext = any, TTransformedValues extends FieldValues = undefined>() => CustomUseFormReturn<TFieldValues, TContext, TTransformedValues>;