@docsvision/management-console 6.2.3 → 6.2.4-beta.2

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
@@ -33,12 +33,12 @@ import { LogLevel } from 'docsvision.web/core/system-services/logging/LogService
33
33
  import { MenuItemProps } from '@mui/material';
34
34
  import { Moment } from 'moment';
35
35
  import { MouseEventHandler } from 'react';
36
+ import { default as Noty_2 } from 'noty';
36
37
  import { OutlinedTextFieldProps } from '@mui/material';
37
38
  import { Params } from 'docsvision.web/core/routing';
38
39
  import { PopoverOrigin } from '@mui/material';
39
40
  import { default as React_2 } from 'react';
40
41
  import * as React_3 from 'react';
41
- import { ReactNode } from 'react';
42
42
  import { RefObject } from 'react';
43
43
  import { RequestOptions } from 'docsvision.web/core/system-services/networking/RequestService';
44
44
  import { Route } from 'navigo';
@@ -579,6 +579,18 @@ export declare function EditorWrapper({ children, isChanged, isEditable }: {
579
579
 
580
580
  declare type EffectCallbackAsync = () => (Promise<void> | (() => Promise<void | undefined>));
581
581
 
582
+ export declare enum ElementErrorType {
583
+ Internal = 0,
584
+ StorageRead = 1,
585
+ StorageWrite = 2
586
+ }
587
+
588
+ declare enum ElementErrorType_2 {
589
+ Internal,
590
+ StorageRead,
591
+ StorageWrite
592
+ }
593
+
582
594
  export declare const EMAIL_CONNECTION_SETTINGS_LAYOUT = "ea883b59-bb95-446e-879b-97874ac4d82b";
583
595
 
584
596
  export declare enum EngineType {
@@ -683,6 +695,8 @@ export declare function HandPointRightIcon(props: SvgIconProps): JSX.Element;
683
695
 
684
696
  export declare function HelpIconButton(props: IHelpIconButtonProps): JSX.Element;
685
697
 
698
+ export declare const hideNote: (note: Noty_2) => void;
699
+
686
700
  export declare type HooksHandler = (application: IApplication_2) => RouteHooks;
687
701
 
688
702
  declare type HooksHandler_2 = (application: IApplication_2) => RouteHooks;
@@ -918,6 +932,13 @@ declare interface IBreadcrumbsItems_2 {
918
932
  path?: string;
919
933
  }
920
934
 
935
+ declare interface IButtonsProps {
936
+ text: string;
937
+ onClick: () => void;
938
+ className?: string;
939
+ dataTestId?: string;
940
+ }
941
+
921
942
  declare interface IButtonWithLoadingProps extends ButtonProps {
922
943
  isPending: boolean;
923
944
  color?: ButtonProps["color"];
@@ -1003,6 +1024,8 @@ export declare interface IContainerProps extends HtmlProps.button {
1003
1024
  export declare interface IContextMenuParameters {
1004
1025
  dvConnectionId?: string;
1005
1026
  currentCardId?: string;
1027
+ getCardLink?: (cardId: string, context: ICompositionTable) => string | undefined;
1028
+ hasCardLink?: (context: ICompositionTable) => boolean;
1006
1029
  }
1007
1030
 
1008
1031
  declare interface ICopySettingsRequest {
@@ -1172,6 +1195,7 @@ export declare interface IDatabaseModel {
1172
1195
  hash: string;
1173
1196
  serverNames: string[];
1174
1197
  error?: string;
1198
+ errorType?: ElementErrorType_2;
1175
1199
  }
1176
1200
 
1177
1201
  export declare interface IDatabaseSelectionModalProps {
@@ -1899,6 +1923,7 @@ export declare interface IPageLayoutModelElement {
1899
1923
  readonly?: boolean;
1900
1924
  inProcess?: boolean;
1901
1925
  parameters?: Record<string, string>;
1926
+ errorType?: ElementErrorType;
1902
1927
  }
1903
1928
 
1904
1929
  declare interface IPageLayoutModelElement_2 {
@@ -1917,6 +1942,7 @@ declare interface IPageLayoutModelElement_2 {
1917
1942
  readonly?: boolean;
1918
1943
  inProcess?: boolean;
1919
1944
  parameters?: Record<string, string>;
1945
+ errorType?: ElementErrorType_2;
1920
1946
  }
1921
1947
 
1922
1948
  export declare interface IPageModel {
@@ -2019,33 +2045,8 @@ declare interface IPeriodValue {
2019
2045
  value: string;
2020
2046
  }
2021
2047
 
2022
- export declare interface IPopupNotificationButton {
2023
- text: string;
2024
- className?: string;
2025
- dataTestId?: string;
2026
- onClick: (notification: PopupNotification) => void;
2027
- }
2028
-
2029
- export declare interface IPopupNotificationCallbacks {
2030
- beforeShow?: () => void;
2031
- onShow?: () => void;
2032
- afterShow?: () => void;
2033
- onClose?: () => void;
2034
- afterClose?: () => void;
2035
- onHover?: () => void;
2036
- onClick?: () => void;
2037
- }
2038
-
2039
- export declare interface IPopupNotificationOptions {
2040
- text?: ReactNode;
2041
- type?: PopupNotificationType;
2042
- layout?: PopupNotificationLayout;
2043
- timeout?: number | false;
2044
- buttons?: IPopupNotificationButton[];
2045
- killer?: boolean;
2046
- theme?: string;
2047
- callbacks?: IPopupNotificationCallbacks;
2048
- closeWith?: ("click" | "button")[];
2048
+ export declare interface IPopupNotificationProps extends Noty_2.Options {
2049
+ buttonsProps?: IButtonsProps[];
2049
2050
  }
2050
2051
 
2051
2052
  export declare interface IProcessOverlayProps {
@@ -2277,6 +2278,8 @@ export declare interface ISettingsNavigationService {
2277
2278
  goToConfigurationPage: () => void;
2278
2279
  getBreadcrumbsItems: () => IBreadcrumbsItems_2[];
2279
2280
  ensureServiceName: (serviceId?: string) => Promise<void>;
2281
+ getSettingsPageUrl: (serverId: string, serviceId: string, layoutId: string, serviceName: string) => string;
2282
+ resolveServiceName: (serverId?: string, serviceId?: string, fallback?: string) => string;
2280
2283
  }
2281
2284
 
2282
2285
  declare interface ISettingsNavigationService_2 {
@@ -2285,6 +2288,8 @@ declare interface ISettingsNavigationService_2 {
2285
2288
  goToConfigurationPage: () => void;
2286
2289
  getBreadcrumbsItems: () => IBreadcrumbsItems[];
2287
2290
  ensureServiceName: (serviceId?: string) => Promise<void>;
2291
+ getSettingsPageUrl: (serverId: string, serviceId: string, layoutId: string, serviceName: string) => string;
2292
+ resolveServiceName: (serverId?: string, serviceId?: string, fallback?: string) => string;
2288
2293
  }
2289
2294
 
2290
2295
  export declare interface ISettingsPageButtonPanelProps extends HtmlProps_2.div {
@@ -2591,9 +2596,10 @@ export declare interface IWidgetHeaderProps extends HtmlProps.div {
2591
2596
  export declare interface IWidgetHorizontalLineProps extends HtmlProps.hr {
2592
2597
  }
2593
2598
 
2594
- export declare interface IWidgetNameProps extends HtmlProps.div {
2599
+ export declare interface IWidgetNameProps extends HtmlProps.a {
2595
2600
  title?: string;
2596
2601
  dataTestId?: string;
2602
+ link?: string;
2597
2603
  }
2598
2604
 
2599
2605
  export declare interface IWidgetPeriodSelectorProps extends HtmlProps.div {
@@ -2777,40 +2783,6 @@ declare enum PeriodType {
2777
2783
  DateRange
2778
2784
  }
2779
2785
 
2780
- export declare class PopupNotification {
2781
- private static containerId;
2782
- private toastId?;
2783
- private text?;
2784
- private type;
2785
- private timeout;
2786
- private options;
2787
- private callbacks;
2788
- private closeWith;
2789
- constructor(options: IPopupNotificationOptions);
2790
- static getDefaultOptions(): IPopupNotificationOptions;
2791
- static create(options: IPopupNotificationOptions, show?: boolean): PopupNotification;
2792
- static ensureToaster(): void;
2793
- private getDuration;
2794
- private showProgress;
2795
- private getLayoutClass;
2796
- private renderToast;
2797
- show(): void;
2798
- private update;
2799
- close(): void;
2800
- setText(text: ReactNode): void;
2801
- setType(type: PopupNotificationType): void;
2802
- setTimeout(timeout: number | false): void;
2803
- on(event: PopupNotificationEvent, handler: () => void): void;
2804
- static closeAll(): void;
2805
- private static mapLayout;
2806
- }
2807
-
2808
- export declare type PopupNotificationEvent = "beforeShow" | "onShow" | "afterShow" | "onClose" | "afterClose" | "onHover" | "onClick";
2809
-
2810
- export declare type PopupNotificationLayout = "topLeft" | "topCenter" | "topRight" | "bottomLeft" | "bottomCenter" | "bottomRight";
2811
-
2812
- export declare type PopupNotificationType = "alert" | "success" | "error" | "warning" | "info";
2813
-
2814
2786
  export declare function ProcessOverlay(props: IProcessOverlayProps): JSX.Element;
2815
2787
 
2816
2788
  export declare function registerEditors(): void;
@@ -2881,7 +2853,7 @@ export declare class SettingsNavigationService implements ISettingsNavigationSer
2881
2853
  ensureServiceName(serviceId?: string): Promise<void>;
2882
2854
  private rememberServiceName;
2883
2855
  private getCachedServiceName;
2884
- private resolveServiceName;
2856
+ resolveServiceName(serverId?: string, serviceId?: string, fallback?: string): string;
2885
2857
  convertPathToUrl(str: string, ...args: any[]): string;
2886
2858
  getServerPageUrl(serverId: string): string;
2887
2859
  getSettingsPageUrl(serverId: string, serviceId: string, layoutId: string, serviceName: string): string;
@@ -2898,6 +2870,8 @@ export declare function SettingsPageButtonPanel(props: ISettingsPageButtonPanelP
2898
2870
  /** Функциональный контейнер кнопки открытия модального окна с заданным текстом */
2899
2871
  export declare function ShowInformationButton(props: IContainerProps): JSX.Element;
2900
2872
 
2873
+ export declare const showNote: (options: IPopupNotificationProps) => Noty_2;
2874
+
2901
2875
  export declare function showNotification(text: string): void;
2902
2876
 
2903
2877
  declare type Story = StoryObj<IMessageWindowProps_2>;