@docsvision/management-console 6.2.4-beta.1 → 6.2.4-beta.3
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.css +2 -1
- package/index.d.ts +136 -45
- package/index.js +779 -111581
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
|
|
3
1
|
import { $ContextMenuOptions } from 'docsvision.web/components/table/plugins/context-menu/$ContextMenuOptions';
|
|
4
2
|
import { $Resources as $Resources_2 } from 'docsvision.web/core/localization/$Resources';
|
|
5
3
|
import { $Router } from 'docsvision.web/core/routing';
|
|
@@ -33,12 +31,12 @@ import { LogLevel } from 'docsvision.web/core/system-services/logging/LogService
|
|
|
33
31
|
import { MenuItemProps } from '@mui/material';
|
|
34
32
|
import { Moment } from 'moment';
|
|
35
33
|
import { MouseEventHandler } from 'react';
|
|
36
|
-
import { default as Noty_2 } from 'noty';
|
|
37
34
|
import { OutlinedTextFieldProps } from '@mui/material';
|
|
38
35
|
import { Params } from 'docsvision.web/core/routing';
|
|
39
36
|
import { PopoverOrigin } from '@mui/material';
|
|
40
37
|
import { default as React_2 } from 'react';
|
|
41
38
|
import * as React_3 from 'react';
|
|
39
|
+
import { ReactNode } from 'react';
|
|
42
40
|
import { RefObject } from 'react';
|
|
43
41
|
import { RequestOptions } from 'docsvision.web/core/system-services/networking/RequestService';
|
|
44
42
|
import { Route } from 'navigo';
|
|
@@ -48,7 +46,6 @@ import { SelectProps } from '@mui/material';
|
|
|
48
46
|
import { Service } from 'docsvision.web/core/services';
|
|
49
47
|
import { ServiceContainer } from 'docsvision.web/core/services';
|
|
50
48
|
import { Store } from 'effector';
|
|
51
|
-
import { StoryObj } from '@storybook/react';
|
|
52
49
|
import { SvgIconProps } from '@mui/material';
|
|
53
50
|
import { SystemServices } from 'docsvision.web/core/system-services/SystemServices';
|
|
54
51
|
import { TableCell } from '@mui/material';
|
|
@@ -425,12 +422,24 @@ export declare function CellWithTwoLineClamping(props: ICellWithTwoLineClampingP
|
|
|
425
422
|
export declare function ClearButton(props: IFilteringClearButtonProps): JSX.Element;
|
|
426
423
|
|
|
427
424
|
export declare const commonMuiProps: {
|
|
428
|
-
select: Partial<SelectProps
|
|
425
|
+
select: Partial<SelectProps>;
|
|
429
426
|
};
|
|
430
427
|
|
|
431
428
|
export declare function ComponentIcon(props: IComponentIconProps): JSX.Element;
|
|
432
429
|
|
|
433
|
-
export declare const Confirmation:
|
|
430
|
+
export declare const Confirmation: {
|
|
431
|
+
parameters: {
|
|
432
|
+
title: string;
|
|
433
|
+
};
|
|
434
|
+
args: {
|
|
435
|
+
content: string;
|
|
436
|
+
title: string;
|
|
437
|
+
onClose: () => void;
|
|
438
|
+
buttons: JSX.Element[];
|
|
439
|
+
icon: JSX.Element;
|
|
440
|
+
color: string;
|
|
441
|
+
};
|
|
442
|
+
};
|
|
434
443
|
|
|
435
444
|
export declare const convertBase64ToString: (base64: string) => string;
|
|
436
445
|
|
|
@@ -438,7 +447,21 @@ export declare const convertDataToBase64: (data: object) => string;
|
|
|
438
447
|
|
|
439
448
|
export declare const copyTextToClipboard: (text: string, host?: HTMLElement) => void;
|
|
440
449
|
|
|
441
|
-
export declare const Custom:
|
|
450
|
+
export declare const Custom: {
|
|
451
|
+
parameters: {
|
|
452
|
+
title: string;
|
|
453
|
+
};
|
|
454
|
+
args: {
|
|
455
|
+
content: string;
|
|
456
|
+
title: string;
|
|
457
|
+
onClose: () => void;
|
|
458
|
+
buttons: JSX.Element[];
|
|
459
|
+
icon: JSX.Element;
|
|
460
|
+
color: string;
|
|
461
|
+
boxMaxWidth: number;
|
|
462
|
+
contentMaxHeight: number;
|
|
463
|
+
};
|
|
464
|
+
};
|
|
442
465
|
|
|
443
466
|
/**
|
|
444
467
|
* Replaced original FormProvider from react-hook-form because of error:
|
|
@@ -598,7 +621,19 @@ export declare enum EngineType {
|
|
|
598
621
|
PgSQL = 1
|
|
599
622
|
}
|
|
600
623
|
|
|
601
|
-
declare const Error_2:
|
|
624
|
+
declare const Error_2: {
|
|
625
|
+
parameters: {
|
|
626
|
+
title: string;
|
|
627
|
+
};
|
|
628
|
+
args: {
|
|
629
|
+
content: string;
|
|
630
|
+
title: string;
|
|
631
|
+
onClose: () => void;
|
|
632
|
+
buttons: JSX.Element[];
|
|
633
|
+
icon: JSX.Element;
|
|
634
|
+
color: string;
|
|
635
|
+
};
|
|
636
|
+
};
|
|
602
637
|
export { Error_2 as Error }
|
|
603
638
|
|
|
604
639
|
export declare const ERROR_ROW_CLASS_NAME = "page-table__row-error";
|
|
@@ -695,8 +730,6 @@ export declare function HandPointRightIcon(props: SvgIconProps): JSX.Element;
|
|
|
695
730
|
|
|
696
731
|
export declare function HelpIconButton(props: IHelpIconButtonProps): JSX.Element;
|
|
697
732
|
|
|
698
|
-
export declare const hideNote: (note: Noty_2) => void;
|
|
699
|
-
|
|
700
733
|
export declare type HooksHandler = (application: IApplication_2) => RouteHooks;
|
|
701
734
|
|
|
702
735
|
declare type HooksHandler_2 = (application: IApplication_2) => RouteHooks;
|
|
@@ -932,13 +965,6 @@ declare interface IBreadcrumbsItems_2 {
|
|
|
932
965
|
path?: string;
|
|
933
966
|
}
|
|
934
967
|
|
|
935
|
-
declare interface IButtonsProps {
|
|
936
|
-
text: string;
|
|
937
|
-
onClick: () => void;
|
|
938
|
-
className?: string;
|
|
939
|
-
dataTestId?: string;
|
|
940
|
-
}
|
|
941
|
-
|
|
942
968
|
declare interface IButtonWithLoadingProps extends ButtonProps {
|
|
943
969
|
isPending: boolean;
|
|
944
970
|
color?: ButtonProps["color"];
|
|
@@ -1188,13 +1214,15 @@ declare interface IDashboardPosition_2 {
|
|
|
1188
1214
|
}
|
|
1189
1215
|
|
|
1190
1216
|
export declare interface IDatabaseModel {
|
|
1191
|
-
|
|
1192
|
-
|
|
1217
|
+
platformServiceId: string;
|
|
1218
|
+
baseName: string | null;
|
|
1219
|
+
sqlServerName: string | null;
|
|
1193
1220
|
serverType: EngineType;
|
|
1194
1221
|
usesFileService: boolean;
|
|
1195
1222
|
hash: string;
|
|
1196
|
-
serverNames: string[];
|
|
1223
|
+
serverNames: string[] | null;
|
|
1197
1224
|
error?: string;
|
|
1225
|
+
errorType?: ElementErrorType_2;
|
|
1198
1226
|
}
|
|
1199
1227
|
|
|
1200
1228
|
export declare interface IDatabaseSelectionModalProps {
|
|
@@ -1803,22 +1831,6 @@ export declare interface IMessageWindowProps {
|
|
|
1803
1831
|
boxMaxWidth?: string | number;
|
|
1804
1832
|
}
|
|
1805
1833
|
|
|
1806
|
-
declare interface IMessageWindowProps_2 {
|
|
1807
|
-
open: boolean
|
|
1808
|
-
icon: React_2.ReactNode;
|
|
1809
|
-
content: React_2.ReactNode;
|
|
1810
|
-
buttons: React_2.ReactNode;
|
|
1811
|
-
onClose: () => void;
|
|
1812
|
-
handleBackdropClick?: () => void;
|
|
1813
|
-
disableEscapeKeyDown?: boolean;
|
|
1814
|
-
className?: string;
|
|
1815
|
-
title: React_2.ReactNode;
|
|
1816
|
-
color: string;
|
|
1817
|
-
contentMaxHeight?: string | number;
|
|
1818
|
-
boxDefaultWidth?: boolean;
|
|
1819
|
-
boxMaxWidth?:string | number;
|
|
1820
|
-
}
|
|
1821
|
-
|
|
1822
1834
|
declare interface IMessageWindowService {
|
|
1823
1835
|
showError(content: React.ReactNode, options?: IMessageWindowOptions): Promise<void>;
|
|
1824
1836
|
showInfo(content: React.ReactNode, options?: IMessageWindowOptions): Promise<void>;
|
|
@@ -1867,7 +1879,19 @@ declare enum IncomingMessageState {
|
|
|
1867
1879
|
Paused = 4
|
|
1868
1880
|
}
|
|
1869
1881
|
|
|
1870
|
-
export declare const Info:
|
|
1882
|
+
export declare const Info: {
|
|
1883
|
+
parameters: {
|
|
1884
|
+
title: string;
|
|
1885
|
+
};
|
|
1886
|
+
args: {
|
|
1887
|
+
content: string;
|
|
1888
|
+
title: string;
|
|
1889
|
+
onClose: () => void;
|
|
1890
|
+
buttons: JSX.Element[];
|
|
1891
|
+
icon: JSX.Element;
|
|
1892
|
+
color: string;
|
|
1893
|
+
};
|
|
1894
|
+
};
|
|
1871
1895
|
|
|
1872
1896
|
export declare function InfoBanner({ text, typographyProps }: IInfoBanner): JSX.Element;
|
|
1873
1897
|
|
|
@@ -2044,8 +2068,33 @@ declare interface IPeriodValue {
|
|
|
2044
2068
|
value: string;
|
|
2045
2069
|
}
|
|
2046
2070
|
|
|
2047
|
-
export declare interface
|
|
2048
|
-
|
|
2071
|
+
export declare interface IPopupNotificationButton {
|
|
2072
|
+
text: string;
|
|
2073
|
+
className?: string;
|
|
2074
|
+
dataTestId?: string;
|
|
2075
|
+
onClick: (notification: PopupNotification) => void;
|
|
2076
|
+
}
|
|
2077
|
+
|
|
2078
|
+
export declare interface IPopupNotificationCallbacks {
|
|
2079
|
+
beforeShow?: () => void;
|
|
2080
|
+
onShow?: () => void;
|
|
2081
|
+
afterShow?: () => void;
|
|
2082
|
+
onClose?: () => void;
|
|
2083
|
+
afterClose?: () => void;
|
|
2084
|
+
onHover?: () => void;
|
|
2085
|
+
onClick?: () => void;
|
|
2086
|
+
}
|
|
2087
|
+
|
|
2088
|
+
export declare interface IPopupNotificationOptions {
|
|
2089
|
+
text?: ReactNode;
|
|
2090
|
+
type?: PopupNotificationType;
|
|
2091
|
+
layout?: PopupNotificationLayout;
|
|
2092
|
+
timeout?: number | false;
|
|
2093
|
+
buttons?: IPopupNotificationButton[];
|
|
2094
|
+
killer?: boolean;
|
|
2095
|
+
theme?: string;
|
|
2096
|
+
callbacks?: IPopupNotificationCallbacks;
|
|
2097
|
+
closeWith?: ("click" | "button")[];
|
|
2049
2098
|
}
|
|
2050
2099
|
|
|
2051
2100
|
export declare interface IProcessOverlayProps {
|
|
@@ -2782,6 +2831,40 @@ declare enum PeriodType {
|
|
|
2782
2831
|
DateRange
|
|
2783
2832
|
}
|
|
2784
2833
|
|
|
2834
|
+
export declare class PopupNotification {
|
|
2835
|
+
private static containerId;
|
|
2836
|
+
private toastId?;
|
|
2837
|
+
private text?;
|
|
2838
|
+
private type;
|
|
2839
|
+
private timeout;
|
|
2840
|
+
private options;
|
|
2841
|
+
private callbacks;
|
|
2842
|
+
private closeWith;
|
|
2843
|
+
constructor(options: IPopupNotificationOptions);
|
|
2844
|
+
static getDefaultOptions(): IPopupNotificationOptions;
|
|
2845
|
+
static create(options: IPopupNotificationOptions, show?: boolean): PopupNotification;
|
|
2846
|
+
static ensureToaster(): void;
|
|
2847
|
+
private getDuration;
|
|
2848
|
+
private showProgress;
|
|
2849
|
+
private getLayoutClass;
|
|
2850
|
+
private renderToast;
|
|
2851
|
+
show(): void;
|
|
2852
|
+
private update;
|
|
2853
|
+
close(): void;
|
|
2854
|
+
setText(text: ReactNode): void;
|
|
2855
|
+
setType(type: PopupNotificationType): void;
|
|
2856
|
+
setTimeout(timeout: number | false): void;
|
|
2857
|
+
on(event: PopupNotificationEvent, handler: () => void): void;
|
|
2858
|
+
static closeAll(): void;
|
|
2859
|
+
private static mapLayout;
|
|
2860
|
+
}
|
|
2861
|
+
|
|
2862
|
+
export declare type PopupNotificationEvent = "beforeShow" | "onShow" | "afterShow" | "onClose" | "afterClose" | "onHover" | "onClick";
|
|
2863
|
+
|
|
2864
|
+
export declare type PopupNotificationLayout = "topLeft" | "topCenter" | "topRight" | "bottomLeft" | "bottomCenter" | "bottomRight";
|
|
2865
|
+
|
|
2866
|
+
export declare type PopupNotificationType = "alert" | "success" | "error" | "warning" | "info";
|
|
2867
|
+
|
|
2785
2868
|
export declare function ProcessOverlay(props: IProcessOverlayProps): JSX.Element;
|
|
2786
2869
|
|
|
2787
2870
|
export declare function registerEditors(): void;
|
|
@@ -2869,12 +2952,8 @@ export declare function SettingsPageButtonPanel(props: ISettingsPageButtonPanelP
|
|
|
2869
2952
|
/** Функциональный контейнер кнопки открытия модального окна с заданным текстом */
|
|
2870
2953
|
export declare function ShowInformationButton(props: IContainerProps): JSX.Element;
|
|
2871
2954
|
|
|
2872
|
-
export declare const showNote: (options: IPopupNotificationProps) => Noty_2;
|
|
2873
|
-
|
|
2874
2955
|
export declare function showNotification(text: string): void;
|
|
2875
2956
|
|
|
2876
|
-
declare type Story = StoryObj<IMessageWindowProps_2>;
|
|
2877
|
-
|
|
2878
2957
|
export declare function TableScrollContainerComponent(props: ITableScrollContainerComponentProps): JSX.Element;
|
|
2879
2958
|
|
|
2880
2959
|
export declare class TenantsService implements ITenantsService {
|
|
@@ -2899,7 +2978,7 @@ export declare function TreeView(props: ITreeViewProps): JSX.Element;
|
|
|
2899
2978
|
|
|
2900
2979
|
export declare const TreeViewContext: React_3.Context<ITreeViewContext>;
|
|
2901
2980
|
|
|
2902
|
-
export declare const useCustomFormContext: <TFieldValues extends FieldValues, TContext = any, TTransformedValues extends FieldValues = undefined>() => CustomUseFormReturn<TFieldValues, TContext, TTransformedValues>;
|
|
2981
|
+
export declare const useCustomFormContext: <TFieldValues extends FieldValues, TContext = any, TTransformedValues extends FieldValues | undefined = undefined>() => CustomUseFormReturn<TFieldValues, TContext, TTransformedValues>;
|
|
2903
2982
|
|
|
2904
2983
|
export declare const useDefaultRoute: (application: IApplication_2) => void;
|
|
2905
2984
|
|
|
@@ -2912,7 +2991,19 @@ export declare function useLocalServiceContainer<MetaT>(context: typeof Services
|
|
|
2912
2991
|
|
|
2913
2992
|
export declare const useOutsideClick: (ref: React.MutableRefObject<HTMLElement>, callback: () => void) => void;
|
|
2914
2993
|
|
|
2915
|
-
export declare const Warning:
|
|
2994
|
+
export declare const Warning: {
|
|
2995
|
+
parameters: {
|
|
2996
|
+
title: string;
|
|
2997
|
+
};
|
|
2998
|
+
args: {
|
|
2999
|
+
content: string;
|
|
3000
|
+
title: string;
|
|
3001
|
+
onClose: () => void;
|
|
3002
|
+
buttons: JSX.Element[];
|
|
3003
|
+
icon: JSX.Element;
|
|
3004
|
+
color: string;
|
|
3005
|
+
};
|
|
3006
|
+
};
|
|
2916
3007
|
|
|
2917
3008
|
export declare function WarningBanner(props: IWarningBanner): JSX.Element;
|
|
2918
3009
|
|