@docsvision/management-console 6.2.1 → 6.2.2-beta.1

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';
37
36
  import { OutlinedTextFieldProps } from '@mui/material';
38
37
  import { Params } from 'docsvision.web/core/routing';
39
38
  import { PopoverOrigin } from '@mui/material';
40
39
  import { default as React_2 } from 'react';
41
40
  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';
@@ -683,8 +683,6 @@ export declare function HandPointRightIcon(props: SvgIconProps): JSX.Element;
683
683
 
684
684
  export declare function HelpIconButton(props: IHelpIconButtonProps): JSX.Element;
685
685
 
686
- export declare const hideNote: (note: Noty_2) => void;
687
-
688
686
  export declare type HooksHandler = (application: IApplication_2) => RouteHooks;
689
687
 
690
688
  declare type HooksHandler_2 = (application: IApplication_2) => RouteHooks;
@@ -920,13 +918,6 @@ declare interface IBreadcrumbsItems_2 {
920
918
  path?: string;
921
919
  }
922
920
 
923
- declare interface IButtonsProps {
924
- text: string;
925
- onClick: () => void;
926
- className?: string;
927
- dataTestId?: string;
928
- }
929
-
930
921
  declare interface IButtonWithLoadingProps extends ButtonProps {
931
922
  isPending: boolean;
932
923
  color?: ButtonProps["color"];
@@ -2026,8 +2017,33 @@ declare interface IPeriodValue {
2026
2017
  value: string;
2027
2018
  }
2028
2019
 
2029
- export declare interface IPopupNotificationProps extends Noty_2.Options {
2030
- buttonsProps?: IButtonsProps[];
2020
+ export declare interface IPopupNotificationButton {
2021
+ text: string;
2022
+ className?: string;
2023
+ dataTestId?: string;
2024
+ onClick: () => void;
2025
+ }
2026
+
2027
+ export declare interface IPopupNotificationCallbacks {
2028
+ beforeShow?: () => void;
2029
+ onShow?: () => void;
2030
+ afterShow?: () => void;
2031
+ onClose?: () => void;
2032
+ afterClose?: () => void;
2033
+ onHover?: () => void;
2034
+ onClick?: () => void;
2035
+ }
2036
+
2037
+ export declare interface IPopupNotificationOptions {
2038
+ text?: ReactNode;
2039
+ type?: PopupNotificationType;
2040
+ layout?: PopupNotificationLayout;
2041
+ timeout?: number | false;
2042
+ buttons?: IPopupNotificationButton[];
2043
+ killer?: boolean;
2044
+ theme?: string;
2045
+ callbacks?: IPopupNotificationCallbacks;
2046
+ closeWith?: ("click" | "button")[];
2031
2047
  }
2032
2048
 
2033
2049
  export declare interface IProcessOverlayProps {
@@ -2759,6 +2775,40 @@ declare enum PeriodType {
2759
2775
  DateRange
2760
2776
  }
2761
2777
 
2778
+ export declare class PopupNotification {
2779
+ private static containerId;
2780
+ private toastId?;
2781
+ private text?;
2782
+ private type;
2783
+ private timeout;
2784
+ private options;
2785
+ private callbacks;
2786
+ private closeWith;
2787
+ constructor(options: IPopupNotificationOptions);
2788
+ static getDefaultOptions(): IPopupNotificationOptions;
2789
+ static create(options: IPopupNotificationOptions, show?: boolean): PopupNotification;
2790
+ static ensureToaster(): void;
2791
+ private getDuration;
2792
+ private showProgress;
2793
+ private getLayoutClass;
2794
+ private renderToast;
2795
+ show(): void;
2796
+ private update;
2797
+ close(): void;
2798
+ setText(text: ReactNode): void;
2799
+ setType(type: PopupNotificationType): void;
2800
+ setTimeout(timeout: number | false): void;
2801
+ on(event: PopupNotificationEvent, handler: () => void): void;
2802
+ static closeAll(): void;
2803
+ private static mapLayout;
2804
+ }
2805
+
2806
+ export declare type PopupNotificationEvent = "beforeShow" | "onShow" | "afterShow" | "onClose" | "afterClose" | "onHover" | "onClick";
2807
+
2808
+ export declare type PopupNotificationLayout = "topLeft" | "topCenter" | "topRight" | "bottomLeft" | "bottomCenter" | "bottomRight";
2809
+
2810
+ export declare type PopupNotificationType = "alert" | "success" | "error" | "warning" | "info";
2811
+
2762
2812
  export declare function ProcessOverlay(props: IProcessOverlayProps): JSX.Element;
2763
2813
 
2764
2814
  export declare function registerEditors(): void;
@@ -2825,11 +2875,14 @@ export declare const setDashboardPosition: (settings: IWidgetSettings_2, positio
2825
2875
  export declare class SettingsNavigationService implements ISettingsNavigationService {
2826
2876
  private readonly application;
2827
2877
  private readonly serviceNamesCache;
2878
+ private readonly serversNamesCache;
2828
2879
  constructor(application: IApplication);
2829
2880
  ensureServiceName(serviceId?: string): Promise<void>;
2830
2881
  private rememberServiceName;
2831
2882
  private getCachedServiceName;
2832
2883
  private resolveServiceName;
2884
+ private rememberServerName;
2885
+ private getCachedServerName;
2833
2886
  convertPathToUrl(str: string, ...args: any[]): string;
2834
2887
  getServerPageUrl(serverId: string): string;
2835
2888
  getSettingsPageUrl(serverId: string, serviceId: string, layoutId: string, serviceName: string): string;
@@ -2846,8 +2899,6 @@ export declare function SettingsPageButtonPanel(props: ISettingsPageButtonPanelP
2846
2899
  /** Функциональный контейнер кнопки открытия модального окна с заданным текстом */
2847
2900
  export declare function ShowInformationButton(props: IContainerProps): JSX.Element;
2848
2901
 
2849
- export declare const showNote: (options: IPopupNotificationProps) => Noty_2;
2850
-
2851
2902
  export declare function showNotification(text: string): void;
2852
2903
 
2853
2904
  declare type Story = StoryObj<IMessageWindowProps_2>;