@antscorp/antsomi-ui 1.2.3-beta.6 → 1.2.3-beta.8

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 (166) hide show
  1. package/CHANGELOG.md +77 -0
  2. package/README.md +78 -78
  3. package/dist/index.js +1 -1
  4. package/dist/types/components/atoms/Button/Button.d.ts +1 -1
  5. package/dist/types/components/atoms/Button/Button.stories.d.ts +32 -32
  6. package/dist/types/components/atoms/Button/__tests__/Button.test.d.ts +1 -1
  7. package/dist/types/components/atoms/Button/index.d.ts +10 -10
  8. package/dist/types/components/atoms/Button/test.d.ts +3 -3
  9. package/dist/types/components/atoms/Checkbox/Checkbox.d.ts +1 -1
  10. package/dist/types/components/atoms/Checkbox/Checkbox.stories.d.ts +15 -15
  11. package/dist/types/components/atoms/Checkbox/__tests__/Checkbox.test.d.ts +1 -1
  12. package/dist/types/components/atoms/Checkbox/index.d.ts +1 -1
  13. package/dist/types/components/atoms/Divider/Divider.d.ts +1 -1
  14. package/dist/types/components/atoms/Divider/Divider.stories.d.ts +8 -8
  15. package/dist/types/components/atoms/Divider/index.d.ts +1 -1
  16. package/dist/types/components/atoms/Input/Input.d.ts +7 -7
  17. package/dist/types/components/atoms/Input/Input.stories.d.ts +19 -19
  18. package/dist/types/components/atoms/Input/__tests__/Input.test.d.ts +1 -1
  19. package/dist/types/components/atoms/Input/index.d.ts +1 -1
  20. package/dist/types/components/atoms/InputNumber/InputNumber.d.ts +6 -6
  21. package/dist/types/components/atoms/InputNumber/InputNumber.stories.d.ts +16 -16
  22. package/dist/types/components/atoms/InputNumber/__tests__/InputNumber.test.d.ts +1 -1
  23. package/dist/types/components/atoms/InputNumber/index.d.ts +1 -1
  24. package/dist/types/components/atoms/Radio/Radio.d.ts +1 -1
  25. package/dist/types/components/atoms/Radio/index.d.ts +1 -1
  26. package/dist/types/components/atoms/Space/Space.d.ts +1 -1
  27. package/dist/types/components/atoms/Space/index.d.ts +1 -1
  28. package/dist/types/components/atoms/Tag/Tag.d.ts +1 -1
  29. package/dist/types/components/atoms/Tag/index.d.ts +1 -1
  30. package/dist/types/components/atoms/Tooltip/Tooltip.d.ts +1 -1
  31. package/dist/types/components/atoms/Tooltip/index.d.ts +1 -1
  32. package/dist/types/components/atoms/Typography/Text.d.ts +1 -1
  33. package/dist/types/components/atoms/Typography/index.d.ts +1 -1
  34. package/dist/types/components/atoms/index.d.ts +10 -10
  35. package/dist/types/components/common/ConfigProvider/ConfigProvider.d.ts +10 -10
  36. package/dist/types/components/common/ConfigProvider/GlobalStyle.d.ts +5 -5
  37. package/dist/types/components/common/ConfigProvider/index.d.ts +1 -1
  38. package/dist/types/components/common/index.d.ts +1 -1
  39. package/dist/types/components/icons/ArrowGrowIcon.d.ts +1 -1
  40. package/dist/types/components/icons/AudioRecordIcon.d.ts +1 -1
  41. package/dist/types/components/icons/BugIcon.d.ts +1 -1
  42. package/dist/types/components/icons/CameraIcon.d.ts +1 -1
  43. package/dist/types/components/icons/CaptureIcon.d.ts +1 -1
  44. package/dist/types/components/icons/CheckSlimIcon.d.ts +1 -1
  45. package/dist/types/components/icons/CloseIcon.d.ts +3 -3
  46. package/dist/types/components/icons/CommentIcon.d.ts +1 -1
  47. package/dist/types/components/icons/EventIcon.d.ts +3 -3
  48. package/dist/types/components/icons/FreeDrawIcon.d.ts +1 -1
  49. package/dist/types/components/icons/GPTIcon.d.ts +1 -1
  50. package/dist/types/components/icons/GPTIconV2.d.ts +1 -1
  51. package/dist/types/components/icons/HighlightIcon.d.ts +1 -1
  52. package/dist/types/components/icons/IdeaIcon.d.ts +1 -1
  53. package/dist/types/components/icons/InvisibleIcon.d.ts +1 -1
  54. package/dist/types/components/icons/MuteIcon.d.ts +1 -1
  55. package/dist/types/components/icons/OpenUrlIcon.d.ts +1 -0
  56. package/dist/types/components/icons/PauseIcon.d.ts +1 -1
  57. package/dist/types/components/icons/PlaneIcon.d.ts +1 -1
  58. package/dist/types/components/icons/StopRecordIcon.d.ts +1 -1
  59. package/dist/types/components/icons/UserIcon.d.ts +1 -1
  60. package/dist/types/components/icons/VerticalDotsIcon.d.ts +1 -1
  61. package/dist/types/components/icons/WarningIcon.d.ts +1 -1
  62. package/dist/types/components/icons/index.d.ts +21 -20
  63. package/dist/types/components/index.d.ts +4 -4
  64. package/dist/types/components/molecules/Alert/Alert.d.ts +1 -1
  65. package/dist/types/components/molecules/Alert/index.d.ts +1 -1
  66. package/dist/types/components/molecules/CaptureScreen/CaptureScreen.d.ts +11 -11
  67. package/dist/types/components/molecules/CaptureScreen/CaptureScreen.stories.d.ts +21 -21
  68. package/dist/types/components/molecules/CaptureScreen/components/CommentBox/CommentBox.d.ts +16 -16
  69. package/dist/types/components/molecules/CaptureScreen/components/CommentBox/index.d.ts +1 -1
  70. package/dist/types/components/molecules/CaptureScreen/components/CommentBox/styled.d.ts +12 -12
  71. package/dist/types/components/molecules/CaptureScreen/components/CommentBox/types.d.ts +15 -15
  72. package/dist/types/components/molecules/CaptureScreen/components/Cursor/Cursor.d.ts +3 -3
  73. package/dist/types/components/molecules/CaptureScreen/components/Cursor/index.d.ts +1 -1
  74. package/dist/types/components/molecules/CaptureScreen/components/Cursor/styled.d.ts +7 -5
  75. package/dist/types/components/molecules/CaptureScreen/components/Cursor/types.d.ts +10 -9
  76. package/dist/types/components/molecules/CaptureScreen/constants.d.ts +32 -32
  77. package/dist/types/components/molecules/CaptureScreen/hooks/useImageEditor.d.ts +5 -5
  78. package/dist/types/components/molecules/CaptureScreen/index.d.ts +1 -1
  79. package/dist/types/components/molecules/CaptureScreen/styled.d.ts +22 -22
  80. package/dist/types/components/molecules/CaptureScreen/themes/black.d.ts +54 -54
  81. package/dist/types/components/molecules/CaptureScreen/themes/white.d.ts +54 -54
  82. package/dist/types/components/molecules/CaptureScreen/types.d.ts +101 -101
  83. package/dist/types/components/molecules/CaptureScreen/utils.d.ts +13 -13
  84. package/dist/types/components/molecules/Cascader/Cascader.d.ts +1 -1
  85. package/dist/types/components/molecules/Cascader/index.d.ts +1 -1
  86. package/dist/types/components/molecules/ChatBox/ChatBox.d.ts +4 -4
  87. package/dist/types/components/molecules/ChatBox/ask.d.ts +3 -3
  88. package/dist/types/components/molecules/ChatBox/constants.d.ts +6 -6
  89. package/dist/types/components/molecules/ChatBox/index.d.ts +1 -1
  90. package/dist/types/components/molecules/ChatBox/styled.d.ts +10 -10
  91. package/dist/types/components/molecules/ChatBox/types.d.ts +26 -26
  92. package/dist/types/components/molecules/DatePicker/DatePicker.d.ts +8 -8
  93. package/dist/types/components/molecules/DatePicker/DatePicker.stories.d.ts +4 -4
  94. package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.d.ts +28 -28
  95. package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.stories.d.ts +5 -5
  96. package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/constants.d.ts +53 -53
  97. package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/index.d.ts +3 -3
  98. package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/styled.d.ts +7 -7
  99. package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/types.d.ts +14 -14
  100. package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/utils.d.ts +15 -15
  101. package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/AdvancedRangePicker.d.ts +15 -15
  102. package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/AdvancedRangePicker.stories.d.ts +9 -9
  103. package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/constants.d.ts +4 -4
  104. package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/index.d.ts +2 -2
  105. package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/types.d.ts +17 -17
  106. package/dist/types/components/molecules/DatePicker/index.d.ts +3 -3
  107. package/dist/types/components/molecules/Dropdown/Dropdown.d.ts +1 -1
  108. package/dist/types/components/molecules/Dropdown/index.d.ts +1 -1
  109. package/dist/types/components/molecules/Modal/Modal.d.ts +1 -1
  110. package/dist/types/components/molecules/Modal/index.d.ts +1 -1
  111. package/dist/types/components/molecules/PopupDraggable/PopupDraggable.d.ts +6 -6
  112. package/dist/types/components/molecules/PopupDraggable/index.d.ts +1 -1
  113. package/dist/types/components/molecules/PopupDraggable/styled.d.ts +4 -4
  114. package/dist/types/components/molecules/PopupDraggable/types.d.ts +12 -12
  115. package/dist/types/components/molecules/Select/Select.d.ts +15 -15
  116. package/dist/types/components/molecules/Select/Select.stories.d.ts +28 -28
  117. package/dist/types/components/molecules/Select/Test.d.ts +3 -3
  118. package/dist/types/components/molecules/Select/index.d.ts +2 -2
  119. package/dist/types/components/molecules/Select/styled.d.ts +4 -4
  120. package/dist/types/components/molecules/Tabs/Tabs.d.ts +1 -1
  121. package/dist/types/components/molecules/Tabs/index.d.ts +1 -1
  122. package/dist/types/components/molecules/index.d.ts +11 -11
  123. package/dist/types/components/organism/Help/Help.d.ts +5 -5
  124. package/dist/types/components/organism/Help/constants.d.ts +135 -135
  125. package/dist/types/components/organism/Help/index.d.ts +1 -1
  126. package/dist/types/components/organism/Help/styled.d.ts +76 -76
  127. package/dist/types/components/organism/Help/types.d.ts +65 -65
  128. package/dist/types/components/organism/Help/utils.d.ts +14 -14
  129. package/dist/types/components/organism/Table/CrossTabTable/CrossTabTable.d.ts +18 -18
  130. package/dist/types/components/organism/Table/CrossTabTable/components/CustomCell/CustomCell.d.ts +11 -11
  131. package/dist/types/components/organism/Table/CrossTabTable/components/CustomCell/styled.d.ts +1 -1
  132. package/dist/types/components/organism/Table/CrossTabTable/constants.d.ts +75 -75
  133. package/dist/types/components/organism/Table/CrossTabTable/index.d.ts +1 -1
  134. package/dist/types/components/organism/Table/CrossTabTable/styled.d.ts +1 -1
  135. package/dist/types/components/organism/Table/CrossTabTable/types.d.ts +1 -1
  136. package/dist/types/components/organism/Table/CrossTabTable/utils.d.ts +1 -1
  137. package/dist/types/components/organism/Table/ExplorePivotTable/ExplorePivotTable.d.ts +11 -11
  138. package/dist/types/components/organism/Table/ExplorePivotTable/components/CustomCell/CustomCell.d.ts +12 -12
  139. package/dist/types/components/organism/Table/ExplorePivotTable/components/CustomCell/index.d.ts +1 -1
  140. package/dist/types/components/organism/Table/ExplorePivotTable/components/CustomCell/styled.d.ts +3 -3
  141. package/dist/types/components/organism/Table/ExplorePivotTable/constants.d.ts +4 -4
  142. package/dist/types/components/organism/Table/ExplorePivotTable/index.d.ts +2 -2
  143. package/dist/types/components/organism/Table/ExplorePivotTable/styled.d.ts +11 -11
  144. package/dist/types/components/organism/Table/ExplorePivotTable/types.d.ts +17 -17
  145. package/dist/types/components/organism/Table/ExplorePivotTable/utils.d.ts +4 -4
  146. package/dist/types/components/organism/Table/Table.d.ts +1 -1
  147. package/dist/types/components/organism/Table/index.d.ts +2 -2
  148. package/dist/types/components/organism/index.d.ts +2 -2
  149. package/dist/types/constants/index.d.ts +1 -1
  150. package/dist/types/constants/theme.d.ts +12 -12
  151. package/dist/types/hooks/index.d.ts +2 -2
  152. package/dist/types/hooks/useDebounce.d.ts +3 -3
  153. package/dist/types/index.d.ts +1 -1
  154. package/dist/types/locales/i18n.d.ts +73 -73
  155. package/dist/types/locales/translations.d.ts +37 -37
  156. package/dist/types/locales/types.d.ts +15 -15
  157. package/dist/types/services/Ticket.d.ts +62 -62
  158. package/dist/types/services/constants.d.ts +8 -8
  159. package/dist/types/test.d.ts +3 -3
  160. package/dist/types/types/index.d.ts +6 -6
  161. package/dist/types/utils/color.d.ts +9 -9
  162. package/dist/types/utils/common.d.ts +49 -49
  163. package/dist/types/utils/handleError.d.ts +2 -2
  164. package/dist/types/utils/index.d.ts +3 -3
  165. package/package.json +130 -130
  166. package/dist/package.json +0 -128
@@ -1,101 +1,101 @@
1
- import ImageEditor from 'tui-image-editor';
2
- import { DRAW_KEYS } from './constants';
3
- import { ATTACH_KEYS } from 'src/components/organism/Help/constants';
4
- import { StreamTrackProps } from 'src/components/organism/Help/types';
5
- interface RecorderConfigProps {
6
- isMute: boolean;
7
- recorder?: MediaRecorder;
8
- streamTracks?: StreamTrackProps;
9
- }
10
- export interface IImageEditorProps {
11
- src?: string;
12
- alt?: string;
13
- recorderConfigs: RecorderConfigProps;
14
- captureType: CaptureTypeProps;
15
- callback: Function;
16
- }
17
- export type CaptureTypeProps = ATTACH_KEYS.CAPTURE | ATTACH_KEYS.RECORD;
18
- export interface IncludeUIOptionProps {
19
- loadImage?: {
20
- path: string;
21
- name: string;
22
- };
23
- theme?: any;
24
- menu?: string[];
25
- initMenu?: string;
26
- uiSize?: {
27
- width: string;
28
- height: string;
29
- };
30
- menuBarPosition?: string;
31
- usageStatistics?: boolean;
32
- }
33
- export interface SelectionStyleConfigProps {
34
- cornerStyle?: string;
35
- cornerSize?: number;
36
- cornerColor?: string;
37
- cornerStrokeColor?: string;
38
- transparentCorners?: boolean;
39
- lineWidth?: number;
40
- borderColor?: string;
41
- rotatingPointOffset?: number;
42
- }
43
- export interface EditorConfigProps {
44
- includeUI?: IncludeUIOptionProps;
45
- cssMaxWidth?: number;
46
- cssMaxHeight?: number;
47
- usageStatistics?: boolean;
48
- selectionStyle?: SelectionStyleConfigProps;
49
- }
50
- export interface DrawItemProps {
51
- key: string;
52
- icon: string;
53
- type?: string;
54
- label?: string;
55
- isShowColorList: boolean;
56
- colorList?: Array<string>;
57
- }
58
- export interface MethodImageEditorProps {
59
- activateShapeMode: Function;
60
- activateTextMode: Function;
61
- getSettings: Function;
62
- }
63
- export interface ImageEditorInstanceProps {
64
- editorInstance: ImageEditor | null;
65
- methods: MethodImageEditorProps;
66
- }
67
- export type ColorListProps = '#0f2eae' | '#212b37' | '#1e6be5' | '#17bb84' | '#f5b108' | '#f71007';
68
- export type ColorKeys = DRAW_KEYS.HIGHLIGHT | DRAW_KEYS.COMMENT | DRAW_KEYS.PEN | DRAW_KEYS.ARROW | DRAW_KEYS.HIDE;
69
- export interface ShapeOptionProps {
70
- fill?: string;
71
- stroke?: string;
72
- strokeWidth?: number;
73
- width?: number;
74
- height?: number;
75
- rx?: number;
76
- ry?: number;
77
- left?: number;
78
- top?: number;
79
- isRegular?: boolean;
80
- }
81
- interface ArrowTypeProps {
82
- tail?: 'chevron' | 'triangle';
83
- head?: 'chevron' | 'triangle';
84
- }
85
- export interface DrawingModeOptionProps {
86
- width?: number;
87
- color?: string;
88
- arrowType?: ArrowTypeProps;
89
- }
90
- export interface CommentListProps {
91
- id: string;
92
- index: number;
93
- color: string;
94
- content?: string;
95
- isSubmitted: boolean;
96
- left: number;
97
- top: number;
98
- isReverseAxisX: boolean;
99
- isReverseAxisY: boolean;
100
- }
101
- export {};
1
+ import ImageEditor from 'tui-image-editor';
2
+ import { DRAW_KEYS } from './constants';
3
+ import { ATTACH_KEYS } from 'src/components/organism/Help/constants';
4
+ import { StreamTrackProps } from 'src/components/organism/Help/types';
5
+ interface RecorderConfigProps {
6
+ isMute: boolean;
7
+ recorder?: MediaRecorder;
8
+ streamTracks?: StreamTrackProps;
9
+ }
10
+ export interface IImageEditorProps {
11
+ src?: string;
12
+ alt?: string;
13
+ recorderConfigs: RecorderConfigProps;
14
+ captureType: CaptureTypeProps;
15
+ callback: Function;
16
+ }
17
+ export type CaptureTypeProps = ATTACH_KEYS.CAPTURE | ATTACH_KEYS.RECORD;
18
+ export interface IncludeUIOptionProps {
19
+ loadImage?: {
20
+ path: string;
21
+ name: string;
22
+ };
23
+ theme?: any;
24
+ menu?: string[];
25
+ initMenu?: string;
26
+ uiSize?: {
27
+ width: string;
28
+ height: string;
29
+ };
30
+ menuBarPosition?: string;
31
+ usageStatistics?: boolean;
32
+ }
33
+ export interface SelectionStyleConfigProps {
34
+ cornerStyle?: string;
35
+ cornerSize?: number;
36
+ cornerColor?: string;
37
+ cornerStrokeColor?: string;
38
+ transparentCorners?: boolean;
39
+ lineWidth?: number;
40
+ borderColor?: string;
41
+ rotatingPointOffset?: number;
42
+ }
43
+ export interface EditorConfigProps {
44
+ includeUI?: IncludeUIOptionProps;
45
+ cssMaxWidth?: number;
46
+ cssMaxHeight?: number;
47
+ usageStatistics?: boolean;
48
+ selectionStyle?: SelectionStyleConfigProps;
49
+ }
50
+ export interface DrawItemProps {
51
+ key: string;
52
+ icon: string;
53
+ type?: string;
54
+ label?: string;
55
+ isShowColorList: boolean;
56
+ colorList?: Array<string>;
57
+ }
58
+ export interface MethodImageEditorProps {
59
+ activateShapeMode: Function;
60
+ activateTextMode: Function;
61
+ getSettings: Function;
62
+ }
63
+ export interface ImageEditorInstanceProps {
64
+ editorInstance: ImageEditor | null;
65
+ methods: MethodImageEditorProps;
66
+ }
67
+ export type ColorListProps = '#0f2eae' | '#212b37' | '#1e6be5' | '#17bb84' | '#f5b108' | '#f71007';
68
+ export type ColorKeys = DRAW_KEYS.HIGHLIGHT | DRAW_KEYS.COMMENT | DRAW_KEYS.PEN | DRAW_KEYS.ARROW | DRAW_KEYS.HIDE;
69
+ export interface ShapeOptionProps {
70
+ fill?: string;
71
+ stroke?: string;
72
+ strokeWidth?: number;
73
+ width?: number;
74
+ height?: number;
75
+ rx?: number;
76
+ ry?: number;
77
+ left?: number;
78
+ top?: number;
79
+ isRegular?: boolean;
80
+ }
81
+ interface ArrowTypeProps {
82
+ tail?: 'chevron' | 'triangle';
83
+ head?: 'chevron' | 'triangle';
84
+ }
85
+ export interface DrawingModeOptionProps {
86
+ width?: number;
87
+ color?: string;
88
+ arrowType?: ArrowTypeProps;
89
+ }
90
+ export interface CommentListProps {
91
+ id: string;
92
+ index: number;
93
+ color: string;
94
+ content?: string;
95
+ isSubmitted: boolean;
96
+ left: number;
97
+ top: number;
98
+ isReverseAxisX: boolean;
99
+ isReverseAxisY: boolean;
100
+ }
101
+ export {};
@@ -1,13 +1,13 @@
1
- import { EditorConfigProps } from './types';
2
- export declare const getEditorConfigs: () => EditorConfigProps;
3
- export declare const initDefaultColors: () => {
4
- highlight: string;
5
- comment: string;
6
- pen: string;
7
- arrow: string;
8
- hide: string;
9
- };
10
- export declare const base64ToFile: (dataUrl: string, filename: string) => File | undefined;
11
- export declare const convertBlobToFile: (blob: Blob, fileName: string) => File;
12
- export declare const generateUniqueId: () => string;
13
- export declare const mergeAudioStreams: (desktopStream: MediaStream, voiceStream: MediaStream) => any[];
1
+ import { EditorConfigProps } from './types';
2
+ export declare const getEditorConfigs: () => EditorConfigProps;
3
+ export declare const initDefaultColors: () => {
4
+ highlight: string;
5
+ comment: string;
6
+ pen: string;
7
+ arrow: string;
8
+ hide: string;
9
+ };
10
+ export declare const base64ToFile: (dataUrl: string, filename: string) => File | undefined;
11
+ export declare const convertBlobToFile: (blob: Blob, fileName: string) => File;
12
+ export declare const generateUniqueId: () => string;
13
+ export declare const mergeAudioStreams: (desktopStream: MediaStream, voiceStream: MediaStream) => any[];
@@ -1 +1 @@
1
- export { Cascader } from 'antd';
1
+ export { Cascader } from 'antd';
@@ -1 +1 @@
1
- export { Cascader } from './Cascader';
1
+ export { Cascader } from './Cascader';
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { IChatBoxProps } from './types';
3
- import './style.scss';
4
- export declare const ChatBox: React.FC<IChatBoxProps>;
1
+ import React from 'react';
2
+ import { IChatBoxProps } from './types';
3
+ import './style.scss';
4
+ export declare const ChatBox: React.FC<IChatBoxProps>;
@@ -1,3 +1,3 @@
1
- import type { Message } from './types';
2
- declare const ask: (onMessage: Function, messages: Partial<Message>[], token?: string) => Promise<void>;
3
- export default ask;
1
+ import type { Message } from './types';
2
+ declare const ask: (onMessage: Function, messages: Partial<Message>[], token?: string) => Promise<void>;
3
+ export default ask;
@@ -1,6 +1,6 @@
1
- import { Role } from './types';
2
- export declare const CONVERSATION: {
3
- role: Role;
4
- content: string;
5
- }[];
6
- export declare const LIMIT_MESSAGE = 30;
1
+ import { Role } from './types';
2
+ export declare const CONVERSATION: {
3
+ role: Role;
4
+ content: string;
5
+ }[];
6
+ export declare const LIMIT_MESSAGE = 30;
@@ -1 +1 @@
1
- export { ChatBox } from './ChatBox';
1
+ export { ChatBox } from './ChatBox';
@@ -1,10 +1,10 @@
1
- export declare const ChatBoxWrapper: import("styled-components").StyledComponent<"div", any, {
2
- withoutBox?: boolean | undefined;
3
- }, never>;
4
- export declare const ChatBoxHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
5
- export declare const ChatBoxBody: import("styled-components").StyledComponent<"div", any, {}, never>;
6
- export declare const ChatBoxFooter: import("styled-components").StyledComponent<"div", any, {}, never>;
7
- export declare const MessageItemWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
8
- export declare const WarningWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
9
- export declare const InputWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
10
- export declare const TypingCursor: import("styled-components").StyledComponent<"div", any, {}, never>;
1
+ export declare const ChatBoxWrapper: import("styled-components").StyledComponent<"div", any, {
2
+ withoutBox?: boolean | undefined;
3
+ }, never>;
4
+ export declare const ChatBoxHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
5
+ export declare const ChatBoxBody: import("styled-components").StyledComponent<"div", any, {}, never>;
6
+ export declare const ChatBoxFooter: import("styled-components").StyledComponent<"div", any, {}, never>;
7
+ export declare const MessageItemWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
8
+ export declare const WarningWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
9
+ export declare const InputWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
10
+ export declare const TypingCursor: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,26 +1,26 @@
1
- export declare const enum Role {
2
- Assistant = "assistant",
3
- User = "user"
4
- }
5
- export interface Message {
6
- id: string;
7
- role: Role;
8
- content: string;
9
- answering?: boolean;
10
- }
11
- export interface IChatBoxMessageProps extends Message {
12
- role: Role;
13
- content: string;
14
- isTyping?: boolean;
15
- scrollBody: Function;
16
- renderDone: Function;
17
- doAnimation: boolean;
18
- answeringContent: string;
19
- }
20
- export interface IChatBoxProps {
21
- onClose?: Function;
22
- withoutBox?: boolean;
23
- domain: string;
24
- userId: string | number;
25
- token: string;
26
- }
1
+ export declare const enum Role {
2
+ Assistant = "assistant",
3
+ User = "user"
4
+ }
5
+ export interface Message {
6
+ id: string;
7
+ role: Role;
8
+ content: string;
9
+ answering?: boolean;
10
+ }
11
+ export interface IChatBoxMessageProps extends Message {
12
+ role: Role;
13
+ content: string;
14
+ isTyping?: boolean;
15
+ scrollBody: Function;
16
+ renderDone: Function;
17
+ doAnimation: boolean;
18
+ answeringContent: string;
19
+ }
20
+ export interface IChatBoxProps {
21
+ onClose?: Function;
22
+ withoutBox?: boolean;
23
+ domain: string;
24
+ userId: string | number;
25
+ token: string;
26
+ }
@@ -1,8 +1,8 @@
1
- import { DatePicker as AntdDatePicker } from 'antd';
2
- import { AdvancedPicker } from './components/AdvancedPicker';
3
- import { AdvancedRangePicker } from './components/AdvancedRangePicker';
4
- export type TDatePicker = typeof AntdDatePicker & {
5
- AdvancedPicker: typeof AdvancedPicker;
6
- AdvancedRangePicker: typeof AdvancedRangePicker;
7
- };
8
- export declare const DatePicker: TDatePicker;
1
+ import { DatePicker as AntdDatePicker } from 'antd';
2
+ import { AdvancedPicker } from './components/AdvancedPicker';
3
+ import { AdvancedRangePicker } from './components/AdvancedRangePicker';
4
+ export type TDatePicker = typeof AntdDatePicker & {
5
+ AdvancedPicker: typeof AdvancedPicker;
6
+ AdvancedRangePicker: typeof AdvancedRangePicker;
7
+ };
8
+ export declare const DatePicker: TDatePicker;
@@ -1,4 +1,4 @@
1
- import { ComponentStory, ComponentMeta } from '@storybook/react';
2
- declare const _default: ComponentMeta<import("./DatePicker").TDatePicker>;
3
- export default _default;
4
- export declare const Default: ComponentStory<import("./DatePicker").TDatePicker>;
1
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
2
+ declare const _default: ComponentMeta<import("./DatePicker").TDatePicker>;
3
+ export default _default;
4
+ export declare const Default: ComponentStory<import("./DatePicker").TDatePicker>;
@@ -1,28 +1,28 @@
1
- import React from 'react';
2
- import { TAdvancedType, TCalculationType, TOperatorKey, TOption, TShowCalculationTypeCondition } from './types';
3
- export interface AdvancedPickerProps {
4
- label?: string;
5
- disabled?: boolean;
6
- dateTypeKeysShow?: string[];
7
- showCalculationTypeCondition?: TShowCalculationTypeCondition;
8
- calculationTypeKeysShow?: TCalculationType[];
9
- defaultDateTypeKey?: string;
10
- valueType?: string;
11
- option?: TOption;
12
- operatorKey?: TOperatorKey;
13
- type?: TAdvancedType;
14
- date?: string;
15
- format?: string;
16
- formatInputDisplay?: string;
17
- inputStyle?: React.CSSProperties;
18
- disableAfterDate?: string;
19
- disableBeforeDate?: string;
20
- errorMessage?: string;
21
- showTime?: boolean;
22
- onUpdatedNewDate?: (newDate: any) => void;
23
- onApply?: ({ date, option }: {
24
- date: string;
25
- option: TOption;
26
- }) => void;
27
- }
28
- export declare const AdvancedPicker: React.FC<AdvancedPickerProps>;
1
+ import React from 'react';
2
+ import { TAdvancedType, TCalculationType, TOperatorKey, TOption, TShowCalculationTypeCondition } from './types';
3
+ export interface AdvancedPickerProps {
4
+ label?: string;
5
+ disabled?: boolean;
6
+ dateTypeKeysShow?: string[];
7
+ showCalculationTypeCondition?: TShowCalculationTypeCondition;
8
+ calculationTypeKeysShow?: TCalculationType[];
9
+ defaultDateTypeKey?: string;
10
+ valueType?: string;
11
+ option?: TOption;
12
+ operatorKey?: TOperatorKey;
13
+ type?: TAdvancedType;
14
+ date?: string;
15
+ format?: string;
16
+ formatInputDisplay?: string;
17
+ inputStyle?: React.CSSProperties;
18
+ disableAfterDate?: string;
19
+ disableBeforeDate?: string;
20
+ errorMessage?: string;
21
+ showTime?: boolean;
22
+ onUpdatedNewDate?: (newDate: any) => void;
23
+ onApply?: ({ date, option }: {
24
+ date: string;
25
+ option: TOption;
26
+ }) => void;
27
+ }
28
+ export declare const AdvancedPicker: React.FC<AdvancedPickerProps>;
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- import { ComponentStory, ComponentMeta } from '@storybook/react';
3
- declare const _default: ComponentMeta<React.FC<import("./AdvancedPicker").AdvancedPickerProps>>;
4
- export default _default;
5
- export declare const Default: ComponentStory<React.FC<import("./AdvancedPicker").AdvancedPickerProps>>;
1
+ import React from 'react';
2
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
3
+ declare const _default: ComponentMeta<React.FC<import("./AdvancedPicker").AdvancedPickerProps>>;
4
+ export default _default;
5
+ export declare const Default: ComponentStory<React.FC<import("./AdvancedPicker").AdvancedPickerProps>>;
@@ -1,53 +1,53 @@
1
- import { TAdvancedType } from './types';
2
- export declare const DATE_TYPES: {
3
- value: string;
4
- label: string;
5
- }[];
6
- export declare const CALCULATION_TYPES: {
7
- value: string;
8
- label: string;
9
- }[];
10
- export declare const CALCULATION_DATES: {
11
- value: string;
12
- label: string;
13
- }[];
14
- export declare const VALUE_TYPES: {
15
- INPUT_TEXT: string;
16
- INPUT_NUMBER: string;
17
- MATCHES_ANY: string;
18
- YEAR: string;
19
- YEAR_QUARTER: string;
20
- YEAR_MONTH: string;
21
- YEAR_WEEK: string;
22
- YEAR_MONTH_DAY: string;
23
- YEAR_MONTH_DAY_HOUR: string;
24
- YEAR_MONTH_DAY_MINUTE: string;
25
- YEAR_MONTH_DAY_SECOND: string;
26
- QUARTER: string;
27
- MONTH: string;
28
- WEEK: string;
29
- MONTH_DAY: string;
30
- DAY_OF_WEEK: string;
31
- DAY: string;
32
- HOUR: string;
33
- MINUTE: string;
34
- INPUT_TEXT_NO_FIELD: string;
35
- };
36
- export declare const DEFAULT_DATE_FORMAT = "YYYYMMDDHHmmss";
37
- export declare const DEFAULT_TIME_FORMAT = "HH:mm:ss";
38
- export declare const DEFAULT_DATE_DISPLAY_FORMAT = "DD/MM/YYYY HH:mm:ss";
39
- export declare const TIME_PICKER_TYPE: {
40
- DATE_TIME: string;
41
- DATE_HOUR: string;
42
- DATE_HOUR_MINUTE: string;
43
- DATE: string;
44
- };
45
- export declare const YEAR_PICKER_TYPE: {
46
- YEAR: string;
47
- MONTH: string;
48
- QUARTER: string;
49
- };
50
- export declare const ADVANCED_PICKER_TYPE: Record<string, {
51
- value: TAdvancedType;
52
- label: string;
53
- }>;
1
+ import { TAdvancedType } from './types';
2
+ export declare const DATE_TYPES: {
3
+ value: string;
4
+ label: string;
5
+ }[];
6
+ export declare const CALCULATION_TYPES: {
7
+ value: string;
8
+ label: string;
9
+ }[];
10
+ export declare const CALCULATION_DATES: {
11
+ value: string;
12
+ label: string;
13
+ }[];
14
+ export declare const VALUE_TYPES: {
15
+ INPUT_TEXT: string;
16
+ INPUT_NUMBER: string;
17
+ MATCHES_ANY: string;
18
+ YEAR: string;
19
+ YEAR_QUARTER: string;
20
+ YEAR_MONTH: string;
21
+ YEAR_WEEK: string;
22
+ YEAR_MONTH_DAY: string;
23
+ YEAR_MONTH_DAY_HOUR: string;
24
+ YEAR_MONTH_DAY_MINUTE: string;
25
+ YEAR_MONTH_DAY_SECOND: string;
26
+ QUARTER: string;
27
+ MONTH: string;
28
+ WEEK: string;
29
+ MONTH_DAY: string;
30
+ DAY_OF_WEEK: string;
31
+ DAY: string;
32
+ HOUR: string;
33
+ MINUTE: string;
34
+ INPUT_TEXT_NO_FIELD: string;
35
+ };
36
+ export declare const DEFAULT_DATE_FORMAT = "YYYYMMDDHHmmss";
37
+ export declare const DEFAULT_TIME_FORMAT = "HH:mm:ss";
38
+ export declare const DEFAULT_DATE_DISPLAY_FORMAT = "DD/MM/YYYY HH:mm:ss";
39
+ export declare const TIME_PICKER_TYPE: {
40
+ DATE_TIME: string;
41
+ DATE_HOUR: string;
42
+ DATE_HOUR_MINUTE: string;
43
+ DATE: string;
44
+ };
45
+ export declare const YEAR_PICKER_TYPE: {
46
+ YEAR: string;
47
+ MONTH: string;
48
+ QUARTER: string;
49
+ };
50
+ export declare const ADVANCED_PICKER_TYPE: Record<string, {
51
+ value: TAdvancedType;
52
+ label: string;
53
+ }>;
@@ -1,3 +1,3 @@
1
- export { AdvancedPicker } from './AdvancedPicker';
2
- export type { AdvancedPickerProps } from './AdvancedPicker';
3
- export type { TOption as TAdvancedPickerOption } from './types';
1
+ export { AdvancedPicker } from './AdvancedPicker';
2
+ export type { AdvancedPickerProps } from './AdvancedPicker';
3
+ export type { TOption as TAdvancedPickerOption } from './types';
@@ -1,7 +1,7 @@
1
- export declare const DropdownContent: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export declare const DropdownHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
3
- export declare const DropdownFooter: import("styled-components").StyledComponent<"div", any, {}, never>;
4
- export declare const DatePickerHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
5
- export declare const DatePickerCustomInput: import("styled-components").StyledComponent<"input", any, {}, never>;
6
- export declare const DatePickerFooter: import("styled-components").StyledComponent<"div", any, {}, never>;
7
- export declare const CalendarIconWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
1
+ export declare const DropdownContent: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const DropdownHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const DropdownFooter: import("styled-components").StyledComponent<"div", any, {}, never>;
4
+ export declare const DatePickerHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
5
+ export declare const DatePickerCustomInput: import("styled-components").StyledComponent<"input", any, {}, never>;
6
+ export declare const DatePickerFooter: import("styled-components").StyledComponent<"div", any, {}, never>;
7
+ export declare const CalendarIconWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,14 +1,14 @@
1
- export type TOption = {
2
- dateType: TDateType;
3
- calculationType: TCalculationType;
4
- calculationDate: TCalculationDate;
5
- value: number;
6
- };
7
- export type TShowCalculationTypeCondition = {
8
- dateType: Partial<Record<TDateType, TCalculationType[]>>;
9
- };
10
- export type TDateType = 'today' | 'first_day_of_week_mon_sun' | 'first_day_of_week_sun_sat' | 'first_day_of_month' | 'first_day_of_quarter' | 'first_day_of_year' | 'last_day_of_week_mon_sun' | 'last_day_of_week_sun_sat' | 'last_day_of_month' | 'last_day_of_quarter' | 'last_day_of_year' | 'fixed';
11
- export type TCalculationType = 'minus' | 'plus' | '';
12
- export type TCalculationDate = 'seconds' | 'minutes' | 'hours' | 'days' | 'weeks' | 'months' | 'quarters' | 'years' | '';
13
- export type TOperatorKey = 'after' | 'between' | 'before';
14
- export type TAdvancedType = 'startDate' | 'endDate';
1
+ export type TOption = {
2
+ dateType: TDateType;
3
+ calculationType: TCalculationType;
4
+ calculationDate: TCalculationDate;
5
+ value: number;
6
+ };
7
+ export type TShowCalculationTypeCondition = {
8
+ dateType: Partial<Record<TDateType, TCalculationType[]>>;
9
+ };
10
+ export type TDateType = 'today' | 'first_day_of_week_mon_sun' | 'first_day_of_week_sun_sat' | 'first_day_of_month' | 'first_day_of_quarter' | 'first_day_of_year' | 'last_day_of_week_mon_sun' | 'last_day_of_week_sun_sat' | 'last_day_of_month' | 'last_day_of_quarter' | 'last_day_of_year' | 'fixed';
11
+ export type TCalculationType = 'minus' | 'plus' | '';
12
+ export type TCalculationDate = 'seconds' | 'minutes' | 'hours' | 'days' | 'weeks' | 'months' | 'quarters' | 'years' | '';
13
+ export type TOperatorKey = 'after' | 'between' | 'before';
14
+ export type TAdvancedType = 'startDate' | 'endDate';
@@ -1,15 +1,15 @@
1
- /**
2
- * Calculates a new date based on the given parameters.
3
- * @param {string} [dateTypeKey='today'] - Key to determine the type of date to be used as the starting point.
4
- * Valid values are: 'today', 'first_day_of_week_mon_sun', 'first_day_of_week_sun_sat',
5
- * 'first_day_of_month', 'first_day_of_quarter', 'first_day_of_year', 'last_day_of_week_mon_sun',
6
- * 'last_day_of_week_sun_sat', 'last_day_of_month', 'last_day_of_quarter', 'last_day_of_year'.
7
- * @param {string} [calculationTypeKey='minus'] - Key to determine whether to add or subtract the specified value.
8
- * Valid values are: 'plus', 'minus'.
9
- * @param {string} [calculationDateKey='days'] - Key to determine the unit of time to be added or subtracted.
10
- * Valid values are: 'days', 'weeks', 'months', 'quarters', 'years'.
11
- * @param {number} [value=0] - Value to be added or subtracted.
12
- * @param {string} [dateFormat=DEFAULT_DATE_FORMAT] - Format in which to return the new date.
13
- * @returns {string} The new date in the specified format.
14
- */
15
- export declare const calculationDateAdvanced: (dateTypeKey?: string, calculationTypeKey?: string, calculationDateKey?: any, value?: number, dateFormat?: string) => any;
1
+ /**
2
+ * Calculates a new date based on the given parameters.
3
+ * @param {string} [dateTypeKey='today'] - Key to determine the type of date to be used as the starting point.
4
+ * Valid values are: 'today', 'first_day_of_week_mon_sun', 'first_day_of_week_sun_sat',
5
+ * 'first_day_of_month', 'first_day_of_quarter', 'first_day_of_year', 'last_day_of_week_mon_sun',
6
+ * 'last_day_of_week_sun_sat', 'last_day_of_month', 'last_day_of_quarter', 'last_day_of_year'.
7
+ * @param {string} [calculationTypeKey='minus'] - Key to determine whether to add or subtract the specified value.
8
+ * Valid values are: 'plus', 'minus'.
9
+ * @param {string} [calculationDateKey='days'] - Key to determine the unit of time to be added or subtracted.
10
+ * Valid values are: 'days', 'weeks', 'months', 'quarters', 'years'.
11
+ * @param {number} [value=0] - Value to be added or subtracted.
12
+ * @param {string} [dateFormat=DEFAULT_DATE_FORMAT] - Format in which to return the new date.
13
+ * @returns {string} The new date in the specified format.
14
+ */
15
+ export declare const calculationDateAdvanced: (dateTypeKey?: string, calculationTypeKey?: string, calculationDateKey?: any, value?: number, dateFormat?: string) => any;