scorer-ui-kit 1.7.18 → 1.7.19

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.
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { IUserDrawerMeta } from '..';
3
+ interface IProps {
4
+ item: IUserDrawerMeta;
5
+ onUserDrawerMetaClick?: () => void;
6
+ }
7
+ declare const UserDrawerMeta: React.FC<IProps>;
8
+ export default UserDrawerMeta;
@@ -16,6 +16,12 @@ export interface IMenuItemTop {
16
16
  isExternalLink?: boolean;
17
17
  submenu?: IMenuItemSubmenu[];
18
18
  }
19
+ export interface IUserDrawerMeta {
20
+ title?: string;
21
+ icon?: string;
22
+ subTitle?: string;
23
+ notes?: string;
24
+ }
19
25
  export interface IMenuItemSubmenu {
20
26
  title: string;
21
27
  href?: string;
@@ -40,6 +46,16 @@ export interface ICustomDrawer {
40
46
  counter?: number;
41
47
  width?: string;
42
48
  }
49
+ export interface IUserDrawerFooter {
50
+ icon: string;
51
+ title: string;
52
+ }
53
+ export interface IUserDrawerMeta {
54
+ icon?: string;
55
+ title?: string;
56
+ subTitle?: string;
57
+ notes?: string;
58
+ }
43
59
  export interface ITopBar {
44
60
  hasNotifications?: boolean;
45
61
  userSubmenu?: any[];
@@ -58,6 +74,10 @@ export interface ITopBar {
58
74
  customDrawer?: ICustomDrawer;
59
75
  onLogout?: () => void;
60
76
  onLanguageToggle?: () => void;
77
+ onUserDrawerMetaClick?: () => void;
78
+ userDrawerFooter?: IUserDrawerFooter;
79
+ userDrawerMeta?: IUserDrawerMeta[];
80
+ hasUserDrawerMeta?: boolean;
61
81
  }
62
82
  export interface INotificationItem {
63
83
  imgUrl?: string;
@@ -8,6 +8,7 @@ interface ILineSetProps {
8
8
  lineData: IPointSet;
9
9
  options: IDragLineUISharedOptions;
10
10
  onLineMoveEnd: () => void;
11
+ onLineClick: (lineSetId: number) => void;
11
12
  getCTM: () => DOMMatrix | null;
12
13
  }
13
14
  declare const LineSet: React.FC<ILineSetProps>;
@@ -7,6 +7,7 @@ interface LineUIProps {
7
7
  w: number;
8
8
  }) => void;
9
9
  onLineMoveEnd?: () => void;
10
+ onLineClick?: (lineSetId: number) => void;
10
11
  options?: LineUIOptions;
11
12
  showDirectionMark?: boolean;
12
13
  }
@@ -7,6 +7,7 @@ interface LineUIProps {
7
7
  w: number;
8
8
  }) => void;
9
9
  onLineMoveEnd?: () => void;
10
+ onLineClick?: () => void;
10
11
  onLoaded?: (metadata: {
11
12
  height: number;
12
13
  width: number;
@@ -7,6 +7,7 @@ interface LineUIProps {
7
7
  w: number;
8
8
  }) => void;
9
9
  onLineMoveEnd?: () => void;
10
+ onLineClick?: () => void;
10
11
  onLoaded?: (metadata: {
11
12
  height: number;
12
13
  width: number;
@@ -8,6 +8,7 @@ interface ILineUnitProps {
8
8
  x2: number;
9
9
  y2: number;
10
10
  unit: number;
11
+ lineClickCallback?: (lineSetId: number) => void;
11
12
  lineMoveCallback: any;
12
13
  lineMoveStartCallback: any;
13
14
  moveEndCB?: () => void;