@docsvision/management-console 6.2.2 → 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 {
@@ -1821,6 +1844,8 @@ declare interface IMetaInformation_2 {
1821
1844
 
1822
1845
  export declare interface INavigationMenuProps {
1823
1846
  menuItems: IMenuItem_2[];
1847
+ activeMenuId?: string;
1848
+ onMenuClick: (menuId: string) => void;
1824
1849
  }
1825
1850
 
1826
1851
  declare interface INavigationMenuService {
@@ -1897,6 +1922,7 @@ export declare interface IPageLayoutModelElement {
1897
1922
  readonly?: boolean;
1898
1923
  inProcess?: boolean;
1899
1924
  parameters?: Record<string, string>;
1925
+ errorType?: ElementErrorType;
1900
1926
  }
1901
1927
 
1902
1928
  declare interface IPageLayoutModelElement_2 {
@@ -1915,6 +1941,7 @@ declare interface IPageLayoutModelElement_2 {
1915
1941
  readonly?: boolean;
1916
1942
  inProcess?: boolean;
1917
1943
  parameters?: Record<string, string>;
1944
+ errorType?: ElementErrorType_2;
1918
1945
  }
1919
1946
 
1920
1947
  export declare interface IPageModel {
@@ -2017,33 +2044,8 @@ declare interface IPeriodValue {
2017
2044
  value: string;
2018
2045
  }
2019
2046
 
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")[];
2047
+ export declare interface IPopupNotificationProps extends Noty_2.Options {
2048
+ buttonsProps?: IButtonsProps[];
2047
2049
  }
2048
2050
 
2049
2051
  export declare interface IProcessOverlayProps {
@@ -2275,6 +2277,8 @@ export declare interface ISettingsNavigationService {
2275
2277
  goToConfigurationPage: () => void;
2276
2278
  getBreadcrumbsItems: () => IBreadcrumbsItems_2[];
2277
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;
2278
2282
  }
2279
2283
 
2280
2284
  declare interface ISettingsNavigationService_2 {
@@ -2283,6 +2287,8 @@ declare interface ISettingsNavigationService_2 {
2283
2287
  goToConfigurationPage: () => void;
2284
2288
  getBreadcrumbsItems: () => IBreadcrumbsItems[];
2285
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;
2286
2292
  }
2287
2293
 
2288
2294
  export declare interface ISettingsPageButtonPanelProps extends HtmlProps_2.div {
@@ -2589,9 +2595,10 @@ export declare interface IWidgetHeaderProps extends HtmlProps.div {
2589
2595
  export declare interface IWidgetHorizontalLineProps extends HtmlProps.hr {
2590
2596
  }
2591
2597
 
2592
- export declare interface IWidgetNameProps extends HtmlProps.div {
2598
+ export declare interface IWidgetNameProps extends HtmlProps.a {
2593
2599
  title?: string;
2594
2600
  dataTestId?: string;
2601
+ link?: string;
2595
2602
  }
2596
2603
 
2597
2604
  export declare interface IWidgetPeriodSelectorProps extends HtmlProps.div {
@@ -2775,40 +2782,6 @@ declare enum PeriodType {
2775
2782
  DateRange
2776
2783
  }
2777
2784
 
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
-
2812
2785
  export declare function ProcessOverlay(props: IProcessOverlayProps): JSX.Element;
2813
2786
 
2814
2787
  export declare function registerEditors(): void;
@@ -2875,14 +2848,11 @@ export declare const setDashboardPosition: (settings: IWidgetSettings_2, positio
2875
2848
  export declare class SettingsNavigationService implements ISettingsNavigationService {
2876
2849
  private readonly application;
2877
2850
  private readonly serviceNamesCache;
2878
- private readonly serversNamesCache;
2879
2851
  constructor(application: IApplication);
2880
2852
  ensureServiceName(serviceId?: string): Promise<void>;
2881
2853
  private rememberServiceName;
2882
2854
  private getCachedServiceName;
2883
- private resolveServiceName;
2884
- private rememberServerName;
2885
- private getCachedServerName;
2855
+ resolveServiceName(serverId?: string, serviceId?: string, fallback?: string): string;
2886
2856
  convertPathToUrl(str: string, ...args: any[]): string;
2887
2857
  getServerPageUrl(serverId: string): string;
2888
2858
  getSettingsPageUrl(serverId: string, serviceId: string, layoutId: string, serviceName: string): string;
@@ -2899,6 +2869,8 @@ export declare function SettingsPageButtonPanel(props: ISettingsPageButtonPanelP
2899
2869
  /** Функциональный контейнер кнопки открытия модального окна с заданным текстом */
2900
2870
  export declare function ShowInformationButton(props: IContainerProps): JSX.Element;
2901
2871
 
2872
+ export declare const showNote: (options: IPopupNotificationProps) => Noty_2;
2873
+
2902
2874
  export declare function showNotification(text: string): void;
2903
2875
 
2904
2876
  declare type Story = StoryObj<IMessageWindowProps_2>;