@docsvision/management-console 6.2.0-beta.6 → 6.2.0-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -99,22 +99,6 @@ declare type $DashboardConfigurationService_2 = { dashboardConfigurationService:
99
99
 
100
100
  declare const $DashboardConfigurationService_2 = serviceName((s: $DashboardConfigurationService_2) => s.dashboardConfigurationService);
101
101
 
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
102
  export declare type $DomEntryPointService = {
119
103
  domEntryPointService: IDomEntryPointService;
120
104
  };
@@ -247,6 +231,16 @@ declare type $ResourcesManagement_2 = { resourcesManagement: IResourcesManagemen
247
231
 
248
232
  declare const $ResourcesManagement_2 = serviceName((s: $ResourcesManagement_2) => s.resourcesManagement);
249
233
 
234
+ export declare type $RootElement = {
235
+ rootElement: IRootElementService;
236
+ };
237
+
238
+ export declare const $RootElement: string | ((model?: $RootElement) => IRootElementService);
239
+
240
+ declare type $RootElement_2 = { rootElement: IRootElementService_2 };
241
+
242
+ declare const $RootElement_2 = serviceName((s: $RootElement_2) => s.rootElement);
243
+
250
244
  export declare type $RouteContentRender = {
251
245
  routeContentRender: IRouteContentRenderService;
252
246
  };
@@ -348,15 +342,12 @@ export declare class Application extends ServiceContainer implements IApplicatio
348
342
  serverController: IServersController_2;
349
343
  settingsNavigation: ISettingsNavigationService;
350
344
  formControl: IFormControl;
351
- databaseWizardService: IDatabaseWizardService;
352
- databaseMasterController: IDatabaseMasterController;
353
- databasesConfigurationController: IDatabasesConfigurationController;
354
- databasesController: IDatabasesController;
355
345
  realtimeCommunication: IRealtimeCommunicationService_2;
356
346
  sessionsController: ISessionsController;
357
347
  configurationLocksController: IConfigurationLocksController;
358
348
  extendedConfigurationController: IExtendedConfigurationController_2;
359
349
  processTemplatesController: IProcessTemplatesController;
350
+ rootElement: IRootElementService_2;
360
351
  constructor(reactRootElementId: string);
361
352
  static instance: IApplication;
362
353
  initialize(): Promise<void>;
@@ -419,18 +410,6 @@ export declare const commonMuiProps: {
419
410
 
420
411
  export declare function ComponentIcon(props: IComponentIconProps): JSX.Element;
421
412
 
422
- declare enum ConnectionStatus {
423
- Unknown = -1,
424
- Succesfull = 0,
425
- DatabaseNotExist = 1,
426
- ServerNotExist = 2,
427
- LoginFailed = 3,
428
- AuthNotSupported = 4,
429
-
430
- AliasAlreadyExists = 100,
431
- DatabaseAlreadyExists = 101
432
- }
433
-
434
413
  export declare const convertBase64ToString: (base64: string) => string;
435
414
 
436
415
  export declare const convertDataToBase64: (data: object) => string;
@@ -498,24 +477,6 @@ export declare function DatabaseSettingsCard(props: IDatabaseSettingsCardProps):
498
477
 
499
478
  export declare type DatabaseSettingsCardSize = "sm" | "md";
500
479
 
501
- declare enum DatabaseState {
502
- Attached,
503
- Updating,
504
- Creating,
505
- Attaching
506
- }
507
-
508
- declare enum DatabaseType {
509
- Postgre,
510
- SQL
511
- }
512
-
513
- declare enum DatabaseWizardMode {
514
- Create,
515
- Add,
516
- Update
517
- }
518
-
519
480
  export declare const DateRangeCalendarIcon: React_2.NamedExoticComponent<IDateRangeProps>;
520
481
 
521
482
  export declare function DateRangeContainer(props: IDateRangePickerProps): JSX.Element;
@@ -745,7 +706,7 @@ export declare interface IApplication extends ServiceContainer, IApplicationServ
745
706
  declare interface IApplication_2 extends ServiceContainer, IApplicationServices_2 {
746
707
  }
747
708
 
748
- 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, $SessionsController, $ProcessTemplatesController {
709
+ 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, $ProcessTemplatesController, $RootElement_2 {
749
710
  }
750
711
 
751
712
  declare interface IApplicationServices_2 extends
@@ -776,13 +737,10 @@ $SettingsNavigation_2,
776
737
  $FormControl_2,
777
738
  $ExtendedConfigurationController,
778
739
  $RealtimeCommunication,
779
- $DatabaseWizard,
780
- $DatabasesController,
781
- $DatabasesConfigurationController,
782
- $DatabaseMasterController,
783
740
  $ConfigurationLocksController,
784
741
  $SessionsController,
785
- $ProcessTemplatesController {
742
+ $ProcessTemplatesController,
743
+ $RootElement_2 {
786
744
 
787
745
  }
788
746
 
@@ -996,12 +954,6 @@ declare interface IConfigurationValueChange_2 extends IConfigurationValue_2 {
996
954
  operation: IChangeOperationType_2;
997
955
  }
998
956
 
999
- declare interface IConnectionStatusInfo {
1000
- status: ConnectionStatus;
1001
- message: string;
1002
- uniqueServerName?: string;
1003
- }
1004
-
1005
957
  export declare interface IContainerProps extends HtmlProps.button {
1006
958
  title?: string;
1007
959
  content?: JSX.Element | string;
@@ -1159,82 +1111,6 @@ declare interface IDashboardPosition_2 {
1159
1111
  order: number;
1160
1112
  }
1161
1113
 
1162
- declare interface IDatabase {
1163
- alias: string;
1164
- databaseName: string;
1165
- databaseType: DatabaseType;
1166
- serverName: string;
1167
- isDefault: boolean;
1168
- databaseState: DatabaseState;
1169
- deleted: boolean;
1170
- }
1171
-
1172
- declare interface IDatabaseInfo {
1173
- databaseAlias: string;
1174
- connectionStatus: IConnectionStatusInfo;
1175
- baseVersion: unknown;
1176
- updateDate: string;
1177
- fullTextSearchEnabled: boolean;
1178
- }
1179
-
1180
- declare interface IDatabaseMasterController extends Service {
1181
- setState(serverId: string, state: IDatabaseMasterModel): Promise<void>;
1182
- getState(serverId: string, databaseAlias: string): Promise<IDatabaseMasterModel>;
1183
- deleteState(serverId: string, databaseAlias: string): Promise<void>;
1184
- }
1185
-
1186
- declare interface IDatabaseMasterModel {
1187
- serverParameters?: IServerParameters;
1188
- databaseParameters?: IDatabaseParameters;
1189
- scriptGenerationParameters?: IScriptGenerationParameters;
1190
- libraries?: string[];
1191
- timeout?: number;
1192
- localeId?: number;
1193
- dbFilePath?: string;
1194
- currentPageName: string;
1195
- state?: IDatabaseMasterState;
1196
- lastProcessError?: string;
1197
- masterType: DatabaseWizardMode;
1198
- }
1199
-
1200
- declare enum IDatabaseMasterState {
1201
- Preparing = 0,
1202
- DatabaseInProcess = 1,
1203
- DatabaseProcessFinished = 2,
1204
- SolutionInProcess = 3,
1205
- SolutionProcessFinished = 4
1206
- }
1207
-
1208
- declare interface IDatabaseParameters {
1209
- alias: string;
1210
- databaseName: string;
1211
- additionalOptions?: Record<string, string>;
1212
- }
1213
-
1214
- declare interface IDatabasesConfigurationController extends Service {
1215
- getDefault(serviceId: string): Promise<string>;
1216
- setDefault(serviceId: string, databaseAlias: string): Promise<void>;
1217
- add(serviceId: string, databaseAlias: string): Promise<void>;
1218
- delete(serviceId: string, databaseAlias: string): Promise<void>;
1219
- all(serviceId: string): Promise<IDatabase[]>;
1220
- }
1221
-
1222
- declare interface IDatabasesController extends Service {
1223
- create(serviceId: string, databaseAlias: string): Promise<void>;
1224
- update(serviceId: string, databaseAlias: string): Promise<void>;
1225
- status(serviceId: string, databaseAlias: string): Promise<IProcessStatus>;
1226
- stop(serviceId: string, databaseAlias: string): Promise<void>;
1227
- databases(serviceId: string, serverParameters: IServerParameters): Promise<string[]>;
1228
- checkSqlServerConnection(serviceId: string, serverParameters: IServerParameters): Promise<IConnectionStatusInfo>;
1229
- checkSqlDatabaseConnection(serviceId: string, serverParameters: IServerParameters, databaseParameters: IDatabaseParameters): Promise<IConnectionStatusInfo>;
1230
- checkSqlDatabaseConnectionFull(serviceId: string, serverParameters: IServerParameters, databaseParameters: IDatabaseParameters)
1231
- : Promise<IConnectionStatusInfo>;
1232
- info(serviceId: string): Promise<IDatabaseInfo[]>;
1233
- libraries(serviceId: string, databaseAlias: string): Promise<IScriptGenerationModel>
1234
- solutions(serviceId: string, databaseAlias: string): Promise<ISolution[]>
1235
- installSolutions(serviceId: string, databaseAlias: string, solutions: string[]): Promise<void>;
1236
- }
1237
-
1238
1114
  export declare interface IDatabaseSettingsCardProps {
1239
1115
  title: string;
1240
1116
  label: string;
@@ -1244,12 +1120,6 @@ export declare interface IDatabaseSettingsCardProps {
1244
1120
  error?: string;
1245
1121
  }
1246
1122
 
1247
- declare interface IDatabaseWizardService extends Service {
1248
- openCreateMode(serviceId: string, databaseChangeStateEvent?: Event_2<void>);
1249
- openUpdateMode(serviceId: string, databaseAlias: string, databaseChangeStateEvent?: Event_2<void>);
1250
- openConnectMode(serviceId: string, databaseChangeStateEvent?: Event_2<void>);
1251
- }
1252
-
1253
1123
  export declare interface IDateRangeComponent {
1254
1124
  value?: string[];
1255
1125
  onChange?(value: (string | Moment)[]): void;
@@ -1594,19 +1464,6 @@ declare interface ILayoutService_2 extends Service {
1594
1464
  saveLayout(layoutId: string, serviceId: string, data: IPageSaveModelElement_2[], itemId?: string, timestamp?: number): Promise<ISavePageResultModel_2>;
1595
1465
  }
1596
1466
 
1597
- declare interface ILibrary {
1598
- id: string,
1599
- alias: string,
1600
- name: string,
1601
- cardLibVersion: number,
1602
- dbVersion: number,
1603
- dbSysVersion: number;
1604
- haveUserMetadata: boolean;
1605
- haveUnknownLinks?: boolean;
1606
- canUpdate?: boolean;
1607
- libraryDependencies: TLibraryDependency[];
1608
- }
1609
-
1610
1467
  declare interface ILineWithError {
1611
1468
  error: string;
1612
1469
  }
@@ -1624,6 +1481,7 @@ declare interface IListPanelProps {
1624
1481
  disabled?: boolean;
1625
1482
  validate?: (value: string) => Promise<boolean>;
1626
1483
  errorMessage?: string;
1484
+ services: IApplicationServices;
1627
1485
  }
1628
1486
 
1629
1487
  export declare interface ILocalizationService {
@@ -1865,7 +1723,6 @@ export declare interface IPageLayoutModelElement {
1865
1723
  elements?: IPageModelElement[];
1866
1724
  extendedLayoutId?: string;
1867
1725
  readonly?: boolean;
1868
- inProcess?: boolean;
1869
1726
  parameters?: Record<string, string>;
1870
1727
  }
1871
1728
 
@@ -1883,7 +1740,6 @@ declare interface IPageLayoutModelElement_2 {
1883
1740
  elements?: IPageModelElement_2[];
1884
1741
  extendedLayoutId?: string;
1885
1742
  readonly?: boolean;
1886
- inProcess?: boolean;
1887
1743
  parameters?: Record<string, string>;
1888
1744
  }
1889
1745
 
@@ -1991,21 +1847,8 @@ export declare interface IPopupNotificationProps extends Noty_2.Options {
1991
1847
  buttonsProps?: IButtonsProps[];
1992
1848
  }
1993
1849
 
1994
- export declare interface IProcessOverlayProps {
1995
- children: React_2.ReactNode;
1996
- inProcess?: boolean;
1997
- message?: string;
1998
- spinnerSize?: number;
1999
- className?: string;
2000
- }
2001
-
2002
- declare interface IProcessStatus {
2003
- state: ProcessState;
2004
- errorMessage?: string
2005
- }
2006
-
2007
1850
  declare interface IProcessTemplatesController extends Service {
2008
- installProcessTemplates(serviceId: string, pageId: string, elementId: string, data: IInstallProcessTemplatesRequestModel): Promise<void>;
1851
+ installProcessTemplates(serviceId: string, data: IInstallProcessTemplatesRequestModel): Promise<void>;
2009
1852
  }
2010
1853
 
2011
1854
  declare interface IRealtimeCommunicationService {
@@ -2044,6 +1887,14 @@ declare interface IResourcesMap_2 {
2044
1887
  [id: string]: string;
2045
1888
  }
2046
1889
 
1890
+ export declare interface IRootElementService {
1891
+ readonly rootElementId: string;
1892
+ }
1893
+
1894
+ declare interface IRootElementService_2 {
1895
+ readonly rootElementId: string;
1896
+ }
1897
+
2047
1898
  export declare interface IRouteContentRenderService {
2048
1899
  register(path: string, routeHandler: RouteHandler, hooks?: HooksHandler): any;
2049
1900
  $contentComponent: Store<JSX.Element>;
@@ -2086,23 +1937,6 @@ declare interface ISavePageResultModel_2 {
2086
1937
  timestamp?: number;
2087
1938
  }
2088
1939
 
2089
- declare interface IScriptGenerationModel {
2090
- scriptGeneratorVersion: number,
2091
- libraries: ILibrary[]
2092
- }
2093
-
2094
- declare interface IScriptGenerationParameters {
2095
- searchDataBaseType: TableLocationType,
2096
- changedObjectDataBaseType: TableLocationTypeExtended,
2097
- iconDataBaseType: TableLocationType,
2098
- keysetDataBaseType: TableLocationType,
2099
- fileCursorDataBaseType: TableLocationType,
2100
- cursorDataBaseType: TableLocationType,
2101
- useOuterMetadata: boolean,
2102
- useOuterLog: boolean,
2103
- useOuterArchive: boolean,
2104
- }
2105
-
2106
1940
  export declare interface ISectionContentWrapperProps extends IPageModelElement {
2107
1941
  className?: string;
2108
1942
  refElement?: React_2.RefObject<HTMLDivElement>;
@@ -2135,17 +1969,6 @@ export declare interface IServerExtensionResourcesDescriptor {
2135
1969
  url: string;
2136
1970
  }
2137
1971
 
2138
- declare interface IServerParameters {
2139
- serverName: string;
2140
- serverType: ServerType;
2141
- user: string;
2142
- password: string;
2143
- passwordChanged?: boolean;
2144
- port?: number;
2145
- integratedSecurity: boolean;
2146
- trustServerCertificate?: boolean;
2147
- }
2148
-
2149
1972
  declare interface IServersController extends Service {
2150
1973
  getServers(): Promise<IServerDescription[]>;
2151
1974
  getServerInfo(id: string): Promise<IServerDetails>;
@@ -2242,16 +2065,6 @@ declare interface ISettingsService_2 {
2242
2065
  connectAddress: string;
2243
2066
  }
2244
2067
 
2245
- declare interface ISolution {
2246
- id: string,
2247
- name: string,
2248
- version?: number,
2249
- currentOption: string,
2250
- databaseVersion?: number,
2251
- installDisabled: boolean,
2252
- canUpdate: boolean,
2253
- }
2254
-
2255
2068
  export declare interface IStaticExtensionResourcesDescriptor {
2256
2069
  mode: "static";
2257
2070
  folder?: string;
@@ -2684,15 +2497,6 @@ declare enum PeriodType {
2684
2497
  DateRange
2685
2498
  }
2686
2499
 
2687
- export declare function ProcessOverlay(props: IProcessOverlayProps): JSX.Element;
2688
-
2689
- declare enum ProcessState {
2690
- Running = 0,
2691
- Finished = 1,
2692
- Error = 2,
2693
- Canceled = 3
2694
- }
2695
-
2696
2500
  export declare function registerEditors(): void;
2697
2501
 
2698
2502
  export declare function removeCssVariables(theme: Theme): void;
@@ -2703,6 +2507,11 @@ export declare class ResourcesManagement implements IResourcesManagement {
2703
2507
  addResources(resourcesMap: any): void;
2704
2508
  }
2705
2509
 
2510
+ export declare class RootElementService implements IRootElementService_2 {
2511
+ readonly rootElementId: string;
2512
+ constructor(rootElementId: string);
2513
+ }
2514
+
2706
2515
  export declare class RouteContentRenderService implements IRouteContentRenderService_2 {
2707
2516
  private readonly application?;
2708
2517
  domain: Domain;
@@ -2736,11 +2545,6 @@ declare enum SavePageStatus_2 {
2736
2545
 
2737
2546
  export declare function SectionContentWrapper(props: ISectionContentWrapperProps): JSX.Element;
2738
2547
 
2739
- declare enum ServerType {
2740
- PostgreSQL,
2741
- "MS SQL SERVER",
2742
- }
2743
-
2744
2548
  export declare const ServicesContext: React_2.Context<IApplicationServices>;
2745
2549
 
2746
2550
  declare enum SessionFilterTypes {
@@ -2777,22 +2581,6 @@ export declare function showNotification(text: string): void;
2777
2581
 
2778
2582
  declare type Story = StoryObj<INavigationMenuProps>;
2779
2583
 
2780
- declare enum TableLocationType {
2781
- UseDefaultOrCurrent,
2782
- UseOwnDatabase,
2783
- UseOuterDatabase,
2784
- UseTemporaryDatabase,
2785
- }
2786
-
2787
- declare enum TableLocationTypeExtended {
2788
- UseDefaultOrCurrent,
2789
- UseOwnDatabase,
2790
- UseOuterDatabase,
2791
- UseTemporaryDatabase,
2792
- InMemoryTableOwnDatabase,
2793
- InMemoryTableOwnDatabaseNotPersistData,
2794
- }
2795
-
2796
2584
  export declare function TableScrollContainerComponent(props: ITableScrollContainerComponentProps): JSX.Element;
2797
2585
 
2798
2586
  export declare class TenantsService implements ITenantsService {
@@ -2809,8 +2597,6 @@ export declare function TextMessage(props: ITextMessage): JSX.Element;
2809
2597
 
2810
2598
  export declare const theme: Theme;
2811
2599
 
2812
- declare type TLibraryDependency = Omit<ILibrary, "haveUserMetadata" | "name" | "cardLibVersion" | "dbSysVersion" | "dbVersion" | "haveUnknownLinks" | "canUpdate">;
2813
-
2814
2600
  export declare const toWidgetSettings: (serverSettings: IWidgetSettingServerModel[]) => IWidgetSettings;
2815
2601
 
2816
2602
  export declare const useCustomFormContext: <TFieldValues extends FieldValues, TContext = any, TTransformedValues extends FieldValues = undefined>() => CustomUseFormReturn<TFieldValues, TContext, TTransformedValues>;