@docsvision/management-console 6.2.3 → 6.2.4-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';
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 {
@@ -1899,6 +1922,7 @@ export declare interface IPageLayoutModelElement {
1899
1922
  readonly?: boolean;
1900
1923
  inProcess?: boolean;
1901
1924
  parameters?: Record<string, string>;
1925
+ errorType?: ElementErrorType;
1902
1926
  }
1903
1927
 
1904
1928
  declare interface IPageLayoutModelElement_2 {
@@ -1917,6 +1941,7 @@ declare interface IPageLayoutModelElement_2 {
1917
1941
  readonly?: boolean;
1918
1942
  inProcess?: boolean;
1919
1943
  parameters?: Record<string, string>;
1944
+ errorType?: ElementErrorType_2;
1920
1945
  }
1921
1946
 
1922
1947
  export declare interface IPageModel {
@@ -2019,33 +2044,8 @@ declare interface IPeriodValue {
2019
2044
  value: string;
2020
2045
  }
2021
2046
 
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")[];
2047
+ export declare interface IPopupNotificationProps extends Noty_2.Options {
2048
+ buttonsProps?: IButtonsProps[];
2049
2049
  }
2050
2050
 
2051
2051
  export declare interface IProcessOverlayProps {
@@ -2277,6 +2277,8 @@ export declare interface ISettingsNavigationService {
2277
2277
  goToConfigurationPage: () => void;
2278
2278
  getBreadcrumbsItems: () => IBreadcrumbsItems_2[];
2279
2279
  ensureServiceName: (serviceId?: string) => Promise<void>;
2280
+ getSettingsPageUrl: (serverId: string, serviceId: string, layoutId: string, serviceName: string) => string;
2281
+ resolveServiceName: (serverId?: string, serviceId?: string, fallback?: string) => string;
2280
2282
  }
2281
2283
 
2282
2284
  declare interface ISettingsNavigationService_2 {
@@ -2285,6 +2287,8 @@ declare interface ISettingsNavigationService_2 {
2285
2287
  goToConfigurationPage: () => void;
2286
2288
  getBreadcrumbsItems: () => IBreadcrumbsItems[];
2287
2289
  ensureServiceName: (serviceId?: string) => Promise<void>;
2290
+ getSettingsPageUrl: (serverId: string, serviceId: string, layoutId: string, serviceName: string) => string;
2291
+ resolveServiceName: (serverId?: string, serviceId?: string, fallback?: string) => string;
2288
2292
  }
2289
2293
 
2290
2294
  export declare interface ISettingsPageButtonPanelProps extends HtmlProps_2.div {
@@ -2591,9 +2595,10 @@ export declare interface IWidgetHeaderProps extends HtmlProps.div {
2591
2595
  export declare interface IWidgetHorizontalLineProps extends HtmlProps.hr {
2592
2596
  }
2593
2597
 
2594
- export declare interface IWidgetNameProps extends HtmlProps.div {
2598
+ export declare interface IWidgetNameProps extends HtmlProps.a {
2595
2599
  title?: string;
2596
2600
  dataTestId?: string;
2601
+ link?: string;
2597
2602
  }
2598
2603
 
2599
2604
  export declare interface IWidgetPeriodSelectorProps extends HtmlProps.div {
@@ -2777,40 +2782,6 @@ declare enum PeriodType {
2777
2782
  DateRange
2778
2783
  }
2779
2784
 
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
2785
  export declare function ProcessOverlay(props: IProcessOverlayProps): JSX.Element;
2815
2786
 
2816
2787
  export declare function registerEditors(): void;
@@ -2881,7 +2852,7 @@ export declare class SettingsNavigationService implements ISettingsNavigationSer
2881
2852
  ensureServiceName(serviceId?: string): Promise<void>;
2882
2853
  private rememberServiceName;
2883
2854
  private getCachedServiceName;
2884
- private resolveServiceName;
2855
+ resolveServiceName(serverId?: string, serviceId?: string, fallback?: string): string;
2885
2856
  convertPathToUrl(str: string, ...args: any[]): string;
2886
2857
  getServerPageUrl(serverId: string): string;
2887
2858
  getSettingsPageUrl(serverId: string, serviceId: string, layoutId: string, serviceName: string): string;
@@ -2898,6 +2869,8 @@ export declare function SettingsPageButtonPanel(props: ISettingsPageButtonPanelP
2898
2869
  /** Функциональный контейнер кнопки открытия модального окна с заданным текстом */
2899
2870
  export declare function ShowInformationButton(props: IContainerProps): JSX.Element;
2900
2871
 
2872
+ export declare const showNote: (options: IPopupNotificationProps) => Noty_2;
2873
+
2901
2874
  export declare function showNotification(text: string): void;
2902
2875
 
2903
2876
  declare type Story = StoryObj<IMessageWindowProps_2>;