@antscorp/antsomi-ui 1.2.3-beta.2 → 1.2.3-beta.21

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.
Files changed (55) hide show
  1. package/CHANGELOG.md +77 -0
  2. package/dist/index.js +1 -1
  3. package/dist/index.js.LICENSE.txt +15 -28
  4. package/dist/main.css +1 -1
  5. package/dist/types/components/icons/AudioRecordIcon.d.ts +1 -0
  6. package/dist/types/components/icons/CameraIcon.d.ts +1 -0
  7. package/dist/types/components/icons/CaptureIcon.d.ts +1 -0
  8. package/dist/types/components/icons/GPTIconV3.d.ts +1 -0
  9. package/dist/types/components/icons/MuteIcon.d.ts +1 -0
  10. package/dist/types/components/icons/OpenUrlIcon.d.ts +1 -0
  11. package/dist/types/components/icons/PauseIcon.d.ts +1 -0
  12. package/dist/types/components/icons/StopRecordIcon.d.ts +1 -0
  13. package/dist/types/components/icons/VerticalDotsIcon.d.ts +1 -0
  14. package/dist/types/components/icons/index.d.ts +11 -0
  15. package/dist/types/components/molecules/CaptureScreen/components/CommentBox/types.d.ts +1 -0
  16. package/dist/types/components/molecules/CaptureScreen/components/Cursor/Cursor.d.ts +1 -2
  17. package/dist/types/components/molecules/CaptureScreen/components/Cursor/styled.d.ts +4 -3
  18. package/dist/types/components/molecules/CaptureScreen/components/Cursor/types.d.ts +5 -5
  19. package/dist/types/components/molecules/CaptureScreen/constants.d.ts +4 -1
  20. package/dist/types/components/molecules/CaptureScreen/hooks/useImageEditor.d.ts +1 -1
  21. package/dist/types/components/molecules/CaptureScreen/styled.d.ts +5 -1
  22. package/dist/types/components/molecules/CaptureScreen/types.d.ts +1 -0
  23. package/dist/types/components/molecules/ChatBox/ChatBox.d.ts +0 -1
  24. package/dist/types/components/molecules/ChatBox/MessageItem.d.ts +5 -0
  25. package/dist/types/components/molecules/ChatBox/constants.d.ts +1 -1
  26. package/dist/types/components/molecules/ChatBox/types.d.ts +6 -0
  27. package/dist/types/components/organism/Help/constants.d.ts +5 -0
  28. package/dist/types/components/organism/Help/styled.d.ts +3 -1
  29. package/dist/types/components/organism/Help/types.d.ts +4 -4
  30. package/dist/types/components/organism/Table/CrossTabTable/CrossTabTable.d.ts +18 -0
  31. package/dist/types/components/organism/Table/CrossTabTable/components/CustomCell/CustomCell.d.ts +11 -0
  32. package/dist/types/components/organism/Table/CrossTabTable/components/CustomCell/index.d.ts +0 -0
  33. package/dist/types/components/organism/Table/CrossTabTable/components/CustomCell/styled.d.ts +1 -0
  34. package/dist/types/components/organism/Table/CrossTabTable/constants.d.ts +75 -0
  35. package/dist/types/components/organism/Table/CrossTabTable/index.d.ts +1 -0
  36. package/dist/types/components/organism/Table/CrossTabTable/styled.d.ts +1 -0
  37. package/dist/types/components/organism/Table/CrossTabTable/types.d.ts +1 -0
  38. package/dist/types/components/organism/Table/CrossTabTable/utils.d.ts +1 -0
  39. package/dist/types/components/organism/Table/ExplorePivotTable/ExplorePivotTable.d.ts +11 -0
  40. package/dist/types/components/organism/Table/ExplorePivotTable/components/CustomCell/CustomCell.d.ts +12 -0
  41. package/dist/types/components/organism/Table/ExplorePivotTable/components/CustomCell/index.d.ts +1 -0
  42. package/dist/types/components/organism/Table/ExplorePivotTable/components/CustomCell/styled.d.ts +3 -0
  43. package/dist/types/components/organism/Table/ExplorePivotTable/constants.d.ts +4 -0
  44. package/dist/types/components/organism/Table/ExplorePivotTable/index.d.ts +2 -0
  45. package/dist/types/components/organism/Table/ExplorePivotTable/styled.d.ts +11 -0
  46. package/dist/types/components/organism/Table/ExplorePivotTable/types.d.ts +17 -0
  47. package/dist/types/components/organism/Table/ExplorePivotTable/utils.d.ts +4 -0
  48. package/dist/types/components/organism/Table/index.d.ts +1 -0
  49. package/dist/types/components/organism/index.d.ts +1 -1
  50. package/dist/types/services/Ticket.d.ts +5 -0
  51. package/dist/types/services/constants.d.ts +12 -0
  52. package/dist/types/utils/color.d.ts +9 -0
  53. package/dist/types/utils/common.d.ts +0 -3
  54. package/dist/types/utils/index.d.ts +3 -0
  55. package/package.json +6 -1
@@ -12,39 +12,18 @@
12
12
  */
13
13
 
14
14
  /*!
15
- * TOAST UI Color Picker
16
- * @version 2.2.8
17
- * @author NHN Cloud FE Development Team <dl_javascript@nhn.com>
18
- * @license MIT
15
+ * Determine if an object is a Buffer
16
+ *
17
+ * @author Feross Aboukhadijeh <https://feross.org>
18
+ * @license MIT
19
19
  */
20
20
 
21
21
  /*!
22
22
  * TOAST UI ImageEditor
23
- * @version 3.15.3
23
+ * @version 1.0.1
24
24
  * @license MIT
25
25
  */
26
26
 
27
- /*!
28
- * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
29
- * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
30
- * Released under MIT License
31
- */
32
-
33
- /*! *****************************************************************************
34
- Copyright (c) Microsoft Corporation.
35
-
36
- Permission to use, copy, modify, and/or distribute this software for any
37
- purpose with or without fee is hereby granted.
38
-
39
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
40
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
41
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
42
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
43
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
44
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
45
- PERFORMANCE OF THIS SOFTWARE.
46
- ***************************************************************************** */
47
-
48
27
  /*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */
49
28
 
50
29
  /*! Fabric.js Copyright 2008-2015, Printio (Juriy Zaytsev, Maxim Chernyak) */
@@ -60,7 +39,8 @@
60
39
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
61
40
  */
62
41
 
63
- /** @license React v16.13.1
42
+ /**
43
+ * @license React
64
44
  * react-is.production.min.js
65
45
  *
66
46
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -69,4 +49,11 @@
69
49
  * LICENSE file in the root directory of this source tree.
70
50
  */
71
51
 
72
- // @license RGB <-> HSV conversion utilities based off of http://www.cs.rit.edu/~ncs/color/t_convert.html
52
+ /** @license React v16.13.1
53
+ * react-is.production.min.js
54
+ *
55
+ * Copyright (c) Facebook, Inc. and its affiliates.
56
+ *
57
+ * This source code is licensed under the MIT license found in the
58
+ * LICENSE file in the root directory of this source tree.
59
+ */
package/dist/main.css CHANGED
@@ -1,4 +1,4 @@
1
- .chat{display:flex;flex-direction:column;height:100%;padding:2rem;border-radius:1rem;border:1px solid #ddd;box-shadow:0 4px 6px rgba(49,54,68,.05),0 5px 20px rgba(49,54,68,.08)}.logs{flex:1;overflow-y:auto;margin-bottom:1rem}.log{gap:.4rem;display:flex;flex-direction:column}@keyframes blink{to{visibility:hidden}}​.streaming>div{white-space:pre-wrap}.streaming>div>:not(ol):not(ul):not(pre):last-child:after,.streaming>div>ol:last-child li:last-child:after,.streaming>div>pre:last-child code:after,.streaming>div>ul:last-child li:last-child:after{-webkit-animation:blink 1s steps(5, start) infinite;animation:blink 1s steps(5, start) infinite;content:"▋";margin-left:.25rem;vertical-align:baseline}
1
+ pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#1e1e1e;color:#dcdcdc}.hljs-keyword,.hljs-literal,.hljs-name,.hljs-symbol{color:#569cd6}.hljs-link{color:#569cd6;text-decoration:underline}.hljs-built_in,.hljs-type{color:#4ec9b0}.hljs-class,.hljs-number{color:#b8d7a3}.hljs-meta .hljs-string,.hljs-string{color:#d69d85}.hljs-regexp,.hljs-template-tag{color:#9a5334}.hljs-formula,.hljs-function,.hljs-params,.hljs-subst,.hljs-title{color:#dcdcdc}.hljs-comment,.hljs-quote{color:#57a64a;font-style:italic}.hljs-doctag{color:#608b4e}.hljs-meta,.hljs-meta .hljs-keyword,.hljs-tag{color:#9b9b9b}.hljs-template-variable,.hljs-variable{color:#bd63c5}.hljs-attr,.hljs-attribute{color:#9cdcfe}.hljs-section{color:gold}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.hljs-bullet,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-selector-pseudo,.hljs-selector-tag{color:#d7ba7d}.hljs-addition{background-color:#144212;display:inline-block;width:100%}.hljs-deletion{background-color:#600;display:inline-block;width:100%}
2
2
  .react-resizable {
3
3
  position: relative;
4
4
  }
@@ -0,0 +1 @@
1
+ export declare const AudioRecordIcon: (props: any) => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const CameraIcon: (props: any) => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const CaptureIcon: (props: any) => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const GPTIconV3: (props: any) => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const MuteIcon: (props: any) => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const OpenUrlIcon: (props: any) => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const PauseIcon: (props: any) => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const StopRecordIcon: (props: any) => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const VerticalDotsIcon: (props: any) => JSX.Element;
@@ -2,6 +2,7 @@ export { EventIcon } from './EventIcon';
2
2
  export { CloseIcon } from './CloseIcon';
3
3
  export { GPTIcon } from './GPTIcon';
4
4
  export { GPTIconV2 } from './GPTIconV2';
5
+ export { GPTIconV3 } from './GPTIconV3';
5
6
  export { PlaneIcon } from './PlaneIcon';
6
7
  export { WarningIcon } from './WarningIcon';
7
8
  export { UserIcon } from './UserIcon';
@@ -11,3 +12,13 @@ export { CheckSlimIcon } from './CheckSlimIcon';
11
12
  export { CommentIcon } from './CommentIcon';
12
13
  export { FreeDrawIcon } from './FreeDrawIcon';
13
14
  export { InvisibleIcon } from './InvisibleIcon';
15
+ export { AudioRecordIcon } from './AudioRecordIcon';
16
+ export { CameraIcon } from './CameraIcon';
17
+ export { CaptureIcon } from './CaptureIcon';
18
+ export { MuteIcon } from './MuteIcon';
19
+ export { PauseIcon } from './PauseIcon';
20
+ export { StopRecordIcon } from './StopRecordIcon';
21
+ export { VerticalDotsIcon } from './VerticalDotsIcon';
22
+ export { OpenUrlIcon } from './OpenUrlIcon';
23
+ export { BugIcon } from './BugIcon';
24
+ export { IdeaIcon } from './IdeaIcon';
@@ -4,6 +4,7 @@ export interface BoxDimensionProps {
4
4
  height: number;
5
5
  }
6
6
  export interface CommentBoxProps {
7
+ className?: string;
7
8
  info: CommentListProps;
8
9
  offset: number;
9
10
  boxDimension: BoxDimensionProps;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CursorProps } from './types';
3
- declare const Cursor: (props: CursorProps) => JSX.Element;
2
+ declare const Cursor: (props: CursorProps) => JSX.Element | null;
4
3
  export { Cursor };
@@ -1,6 +1,7 @@
1
- import { PositionCursorProps } from './types';
2
- export declare const CursorOverlay: import("styled-components").StyledComponent<"div", any, {}, never>;
1
+ export declare const PlusCursor: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const TooltipDrag: import("styled-components").StyledComponent<"div", any, {}, never>;
3
3
  export declare const DottedCursor: import("styled-components").StyledComponent<"div", any, {
4
4
  bgColor?: string | undefined;
5
- position?: PositionCursorProps | undefined;
5
+ isPointerBox?: boolean | undefined;
6
+ offset: number;
6
7
  }, never>;
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
- export interface PositionCursorProps {
3
- left?: number;
4
- top?: number;
5
- }
6
2
  export interface CursorProps {
3
+ drawItemType: string;
4
+ isShowCursor: boolean;
7
5
  cursorRef?: React.RefObject<HTMLDivElement>;
8
- position?: PositionCursorProps;
9
6
  bgColor?: string;
7
+ isPointerBox?: boolean;
8
+ offset: number;
9
+ children?: any;
10
10
  }
@@ -2,9 +2,12 @@ import { CSSProperties } from 'react';
2
2
  import { BoxDimensionProps } from './components/CommentBox/types';
3
3
  import { DrawItemProps } from './types';
4
4
  export declare const OFFSET_CENTER = 20;
5
+ export declare const SIZE_ADJUST = 1;
5
6
  export declare enum IGNORE_DRAW_ID_LIST {
6
7
  ICON_CLOSE = "antsomi-package-close-draw-icon",
7
- DRAW_ACTIONS = "antsomi-package-draw-action-options"
8
+ BORDER_OVERLAY = "antsomi-package-border-overlay",
9
+ DRAW_ACTIONS = "antsomi-package-draw-action-options",
10
+ CLASS_PREVENT_HOVER = "antsomi-package-ignore-hovering-draw"
8
11
  }
9
12
  export declare const COMMENT_BOX_DIMENSION_FIXED: BoxDimensionProps;
10
13
  export declare const styleContainer: CSSProperties;
@@ -1,5 +1,5 @@
1
1
  import { RefObject } from 'react';
2
2
  import { ImageEditorInstanceProps } from '../types';
3
- export declare const useImageEditor: (src: string, imageEditorRef: RefObject<HTMLDivElement>, options?: {
3
+ export declare const useImageEditor: (imageEditorRef: RefObject<HTMLDivElement>, options?: {
4
4
  preventCreateInstance: boolean;
5
5
  }) => ImageEditorInstanceProps;
@@ -1,11 +1,13 @@
1
1
  /// <reference types="react" />
2
2
  export declare const ContainerCapture: import("styled-components").StyledComponent<"div", any, {
3
3
  isRecord: boolean;
4
+ imageURL?: string | undefined;
4
5
  }, never>;
6
+ export declare const BorderOverlay: import("styled-components").StyledComponent<"div", any, {}, never>;
5
7
  export declare const FlexColumn: import("styled-components").StyledComponent<"div", any, {}, never>;
6
8
  export declare const FlexCenter: import("styled-components").StyledComponent<"div", any, {}, never>;
7
9
  export declare const WrapperIcon: import("styled-components").StyledComponent<"div", any, {
8
- isRecord: boolean;
10
+ isRecord?: boolean | undefined;
9
11
  }, never>;
10
12
  export declare const DrawerGroups: import("styled-components").StyledComponent<"div", any, {}, never>;
11
13
  export declare const WrapperDraggable: import("styled-components").StyledComponent<"strong", any, {}, never>;
@@ -20,3 +22,5 @@ export declare const BoxColor: import("styled-components").StyledComponent<"div"
20
22
  bgColor?: string | undefined;
21
23
  }, never>;
22
24
  export declare const ImageIcon: import("styled-components").StyledComponent<"img", any, {}, never>;
25
+ export declare const OutlineRemoveContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
26
+ export declare const WrapperRemoveBtn: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -62,6 +62,7 @@ export interface MethodImageEditorProps {
62
62
  }
63
63
  export interface ImageEditorInstanceProps {
64
64
  editorInstance: ImageEditor | null;
65
+ canvasEditor: any;
65
66
  methods: MethodImageEditorProps;
66
67
  }
67
68
  export type ColorListProps = '#0f2eae' | '#212b37' | '#1e6be5' | '#17bb84' | '#f5b108' | '#f71007';
@@ -1,4 +1,3 @@
1
1
  import React from 'react';
2
2
  import { IChatBoxProps } from './types';
3
- import './style.scss';
4
3
  export declare const ChatBox: React.FC<IChatBoxProps>;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import 'highlight.js/styles/vs2015.css';
3
+ import { IChatBoxMessageProps } from './types';
4
+ declare const _default: React.NamedExoticComponent<IChatBoxMessageProps>;
5
+ export default _default;
@@ -3,4 +3,4 @@ export declare const CONVERSATION: {
3
3
  role: Role;
4
4
  content: string;
5
5
  }[];
6
- export declare const LIMIT_MESSAGE = 30;
6
+ export declare const LIMIT_MESSAGE = 10;
@@ -12,10 +12,14 @@ export interface IChatBoxMessageProps extends Message {
12
12
  role: Role;
13
13
  content: string;
14
14
  isTyping?: boolean;
15
+ isPlaceholder?: boolean;
15
16
  scrollBody: Function;
16
17
  renderDone: Function;
17
18
  doAnimation: boolean;
18
19
  answeringContent: string;
20
+ avatar?: string;
21
+ idx?: number;
22
+ renderType: 'text' | 'markdown';
19
23
  }
20
24
  export interface IChatBoxProps {
21
25
  onClose?: Function;
@@ -23,4 +27,6 @@ export interface IChatBoxProps {
23
27
  domain: string;
24
28
  userId: string | number;
25
29
  token: string;
30
+ avatar?: string;
31
+ style?: Record<string, any>;
26
32
  }
@@ -1,5 +1,7 @@
1
1
  import { ITabShareScreenProps } from './types';
2
2
  export declare const TICKET_CUSTOM_MESSAGE_KEY = "TICKET_CUSTOM_MESSAGE_KEY";
3
+ export declare const PORTALS_ANTSOMI_PACKAGE_UI_KEY = "PORTALS_ANTSOMI_PACKAGE_UI_KEY";
4
+ export declare const PORTALS_ANTSOMI_PACKAGE_UI_KEY_POPUP = "PORTALS_ANTSOMI_PACKAGE_UI_KEY_POPUP";
3
5
  export declare const MESSAGE_TYPE: {
4
6
  TICKET_CREATE_STATUS: string;
5
7
  };
@@ -36,6 +38,7 @@ export declare const TABS_SHARING_SCREEN: ITabShareScreenProps[];
36
38
  export declare const HELP_APP: ({
37
39
  title: string;
38
40
  key: string;
41
+ appCode: string;
39
42
  children: ({
40
43
  title: string;
41
44
  key: string;
@@ -74,6 +77,7 @@ export declare const HELP_APP: ({
74
77
  } | {
75
78
  title: string;
76
79
  key: string;
80
+ appCode: string;
77
81
  children: ({
78
82
  title: string;
79
83
  key: string;
@@ -109,6 +113,7 @@ export declare const HELP_APP: ({
109
113
  })[];
110
114
  } | {
111
115
  title: string;
116
+ appCode: string;
112
117
  key: string;
113
118
  children: ({
114
119
  title: string;
@@ -35,7 +35,9 @@ export declare const Image: import("styled-components").StyledComponent<"img", a
35
35
  export declare const Video: import("styled-components").StyledComponent<"video", any, {}, never>;
36
36
  export declare const WrapperHeader: import("styled-components").StyledComponent<"strong", any, {}, never>;
37
37
  export declare const Header: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/typography/Text").TextProps & import("react").RefAttributes<HTMLSpanElement>>, any, {}, never>;
38
- export declare const WrapperBody: import("styled-components").StyledComponent<"div", any, {}, never>;
38
+ export declare const WrapperBody: import("styled-components").StyledComponent<"div", any, {
39
+ types?: string | undefined;
40
+ }, never>;
39
41
  export declare const WrapperFooter: import("styled-components").StyledComponent<"div", any, {}, never>;
40
42
  export declare const WrapperFooterSpace: import("styled-components").StyledComponent<"div", any, {}, never>;
41
43
  export declare const EditorWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import type { MenuProps, TabPaneProps } from 'antd';
2
+ import type { TabPaneProps } from 'antd';
3
3
  type TriggerTypeDropdown = Array<'hover' | 'contextMenu' | 'click'>;
4
4
  type ConfigProps = {
5
5
  domain: string;
@@ -9,8 +9,9 @@ type ConfigProps = {
9
9
  portalId: string;
10
10
  config: any;
11
11
  userId: string;
12
- ownerId: string;
13
- appNameCurrent: string;
12
+ domainPlatform: string;
13
+ appCode: string;
14
+ avatar?: string;
14
15
  };
15
16
  export interface ValueFormProps {
16
17
  title: string;
@@ -29,7 +30,6 @@ export interface AllAppOptionsProps {
29
30
  raw?: any;
30
31
  }
31
32
  export interface IHelpProps {
32
- menuProps: MenuProps;
33
33
  configs: ConfigProps;
34
34
  triggerType: TriggerTypeDropdown;
35
35
  onClick?: Function;
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import { ColumnsType } from 'antd/es/table';
3
+ interface CrossTabTableProps {
4
+ }
5
+ export declare const columns: ColumnsType<any>;
6
+ export declare const data: {
7
+ key: string;
8
+ country_id: string;
9
+ first_user_source: string;
10
+ active_users_0: number;
11
+ active_users_1: number;
12
+ active_users_2: number;
13
+ active_users_3: number;
14
+ active_users_4: number;
15
+ active_users_5: number;
16
+ }[];
17
+ export declare const CrossTabTable: React.FC<CrossTabTableProps>;
18
+ export {};
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { TCellType } from '../../types';
3
+ interface CustomCellProps {
4
+ value: any;
5
+ record: Record<string, any>;
6
+ index?: number;
7
+ max?: number;
8
+ type: TCellType;
9
+ }
10
+ export declare const CustomCell: React.FC<CustomCellProps>;
11
+ export {};
@@ -0,0 +1 @@
1
+ export declare const BarCell: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,75 @@
1
+ import { ColumnsType } from 'antd/es/table';
2
+ export declare const TEST_DATA: {
3
+ dimensions: string[];
4
+ metrics: {
5
+ id: string;
6
+ }[];
7
+ colDimensions: string[];
8
+ responseRows: {
9
+ dimensionValues: never[];
10
+ dimensionCompoundValues: {
11
+ value: string;
12
+ }[];
13
+ metricValues: never[];
14
+ metricCompoundValues: {
15
+ value: number;
16
+ }[];
17
+ rowTotals: number[];
18
+ anomalyAnnotations: never[];
19
+ }[];
20
+ totalsRow: {
21
+ dimensionValues: never[];
22
+ dimensionCompoundValues: {
23
+ value: string;
24
+ }[];
25
+ metricValues: never[];
26
+ metricCompoundValues: {
27
+ value: number;
28
+ }[];
29
+ rowTotals: number[];
30
+ anomalyAnnotations: never[];
31
+ };
32
+ pivotHeaders: {
33
+ names: string[];
34
+ }[];
35
+ storageIds: never[];
36
+ segmentKeyMap: {
37
+ key: string;
38
+ id: string;
39
+ name: string;
40
+ }[];
41
+ overallRowCount: number;
42
+ numberOfSamplesRead: number[];
43
+ samplingSpaceSize: number[];
44
+ metadata: {
45
+ performance: {
46
+ f1QueryLatencyMs: string;
47
+ reportRequestLatencyMs: string;
48
+ f1GcuSecs: number;
49
+ };
50
+ classification: {
51
+ identityBlendingStrategy: number;
52
+ numDaysInDateRange: number;
53
+ externalWideningSources: never[];
54
+ storageType: number[];
55
+ largestDailyNumRowsInSelectedTables: string;
56
+ };
57
+ venusRequestId: string;
58
+ dataTruncationReasons: never[];
59
+ isBehavioralModelingEnabledByUser: boolean;
60
+ isBehavioralModelingApplied: boolean;
61
+ };
62
+ isThresholded: boolean;
63
+ }[];
64
+ export declare const columns: ColumnsType<any>;
65
+ export declare const data: {
66
+ key: string;
67
+ country_id: string;
68
+ first_user_source: string;
69
+ active_users_0: number;
70
+ active_users_1: number;
71
+ active_users_2: number;
72
+ active_users_3: number;
73
+ active_users_4: number;
74
+ active_users_5: number;
75
+ }[];
@@ -0,0 +1 @@
1
+ export { CrossTabTable } from './CrossTabTable';
@@ -0,0 +1 @@
1
+ export declare const BarCell: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1 @@
1
+ export type TCellType = 'bar' | 'heat' | 'text';
@@ -0,0 +1 @@
1
+ export declare const refinePivotHeaders: (pivotHeaders: Record<string, any>) => void;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { TData } from './types';
3
+ interface ExplorePivotTableProps {
4
+ data: TData;
5
+ scroll?: {
6
+ x?: number | string;
7
+ y?: number | string;
8
+ };
9
+ }
10
+ export declare const ExplorePivotTable: React.FC<ExplorePivotTableProps>;
11
+ export {};
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { TCellType } from '../../types';
3
+ interface CustomCellProps {
4
+ value: any;
5
+ record: Record<string, any>;
6
+ index?: number;
7
+ max?: number;
8
+ type: TCellType;
9
+ color?: string;
10
+ }
11
+ export declare const CustomCell: React.FC<CustomCellProps>;
12
+ export {};
@@ -0,0 +1 @@
1
+ export { CustomCell } from './CustomCell';
@@ -0,0 +1,3 @@
1
+ export declare const BarCell: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const HeatCell: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const StyledValue: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,4 @@
1
+ import { TData } from './types';
2
+ declare const GRAND_TOTAL_KEY = "grand-total";
3
+ declare const TEST_DATA: TData;
4
+ export { TEST_DATA, GRAND_TOTAL_KEY };
@@ -0,0 +1,2 @@
1
+ export { ExplorePivotTable } from './ExplorePivotTable';
2
+ export { TEST_DATA } from './constants';
@@ -0,0 +1,11 @@
1
+ export declare const StyledTable: import("styled-components").StyledComponent<import("antd/es/table/interface").RefTable & {
2
+ SELECTION_COLUMN: {};
3
+ EXPAND_COLUMN: {};
4
+ SELECTION_ALL: "SELECT_ALL";
5
+ SELECTION_INVERT: "SELECT_INVERT";
6
+ SELECTION_NONE: "SELECT_NONE";
7
+ Column: typeof import("antd/es/table/Column").default;
8
+ ColumnGroup: typeof import("antd/es/table/ColumnGroup").default;
9
+ Summary: typeof import("rc-table/lib/Footer/Summary").default;
10
+ }, any, {}, never>;
11
+ export declare const StyledHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,17 @@
1
+ export type TCellType = 'bar' | 'heat' | 'text';
2
+ export type TData = {
3
+ versions: {
4
+ key: string | number;
5
+ name: string;
6
+ }[];
7
+ rowDimension: string[];
8
+ columnDimension: string[];
9
+ dataRow: any[];
10
+ totalRowDimension: number[];
11
+ totalColumnDimension: number[];
12
+ metrics: any[];
13
+ dimensions: any[];
14
+ showRowTotal?: boolean;
15
+ showColumnTotal?: boolean;
16
+ maxValue?: number;
17
+ };
@@ -0,0 +1,4 @@
1
+ import { ColumnsType } from 'antd/es/table';
2
+ import { TData } from './types';
3
+ export declare const buildColumns: (data: TData) => ColumnsType<any>;
4
+ export declare const buildDataSource: (data: TData) => any[];
@@ -1 +1,2 @@
1
1
  export { Table } from './Table';
2
+ export { ExplorePivotTable, TEST_DATA as EXPLORE_PIVOT_TABLE_TEST_DATA } from './ExplorePivotTable';
@@ -1,2 +1,2 @@
1
- export { Table } from './Table';
2
1
  export { Help } from './Help';
2
+ export { Table, ExplorePivotTable, EXPLORE_PIVOT_TABLE_TEST_DATA } from './Table';
@@ -58,5 +58,10 @@ declare const API: {
58
58
  getList: (params: any, domain: any, token: any, config: any, userId: any, type: any, ownerId: any) => Promise<any>;
59
59
  };
60
60
  };
61
+ help: {
62
+ callApi: {
63
+ getList: (params: any, domain: any, token: any, config: any, userId: any) => Promise<void | import("axios").AxiosResponse<any, any>>;
64
+ };
65
+ };
61
66
  };
62
67
  export default API;
@@ -6,3 +6,15 @@ export declare const MESSAGES: {
6
6
  NAME_ALREADY_EXISTS: string;
7
7
  TOO_LONG_NAME: string;
8
8
  };
9
+ export declare const PORTAL_KEYS: {
10
+ CURRENCY: string;
11
+ USER_LANGUAGE: string;
12
+ PORTAL_LANGUAGE: string;
13
+ TIME_ZONE: string;
14
+ CURRENCY_FORMAT: string;
15
+ DATE_TIME_FORMAT: string;
16
+ DATE_TIME_FORMAT_LONG: string;
17
+ NUMBER_FORMAT: string;
18
+ PERCENTAGE_FORMAT: string;
19
+ VERSION: string;
20
+ };
@@ -0,0 +1,9 @@
1
+ export declare const isDarkColor: (hexcolor: any, alpha?: number) => boolean;
2
+ /**
3
+ * Converts a hexadecimal color code to its corresponding RGB values.
4
+ * @param {string} hexCode - The hexadecimal color code to convert.
5
+ * @returns {Array} An array containing the RGB values.
6
+ * @throws {Error} If the input is an invalid hexadecimal color code.
7
+ */
8
+ export declare const hexToRgb: (hexCode: string) => [number, number, number];
9
+ export declare const generateHeatMapColor: (value: number, maxValue: number, rgbColor: [number, number, number]) => string;
@@ -15,9 +15,6 @@ export declare function getSessionStorage(key: any, config: any): any;
15
15
  export declare function getMessageByCode(messageCode: any, def?: undefined | string): any;
16
16
  export declare function urlHasQueryString(url: any): boolean;
17
17
  export declare function isNumeric(num: any): boolean;
18
- export declare const PORTAL_KEYS: {
19
- USER_LANGUAGE: string;
20
- };
21
18
  export declare function getUserLocaleLanguage(config: any): any;
22
19
  export declare function getAppSession(key: any, config: any): any;
23
20
  export declare function getAppParamURL(pathname: any, forceVersionV2: boolean | undefined, config: any): {
@@ -0,0 +1,3 @@
1
+ export * from './color';
2
+ export * from './common';
3
+ export * from './handleError';