@antscorp/antsomi-ui 1.2.3 → 1.2.4

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 (184) hide show
  1. package/CHANGELOG.md +44 -22
  2. package/README.md +78 -78
  3. package/dist/1a69688fb6f3d353be6b.png +0 -0
  4. package/dist/33b65403c460f2d4423b.svg +87 -0
  5. package/dist/4a824e811d4678e0e3a2.png +0 -0
  6. package/dist/4f873001a3769df8f982.svg +338 -0
  7. package/dist/9468534045e0fef49315.png +0 -0
  8. package/dist/afb8ae1bce88559d24ef.woff +0 -0
  9. package/dist/bfb9cf6473c43ea3c384.png +0 -0
  10. package/dist/c74e9d6a9ac4f04cfd3d.png +0 -0
  11. package/dist/cfed74d00d1032bc5076.ttf +0 -0
  12. package/dist/d623401497f2714dc96f.eot +0 -0
  13. package/dist/ff7db9ff05a910761543.png +0 -0
  14. package/dist/index.js +1 -1
  15. package/dist/index.js.LICENSE.txt +26 -0
  16. package/dist/main.css +68 -0
  17. package/dist/types/components/atoms/Button/Button.d.ts +1 -1
  18. package/dist/types/components/atoms/Button/Button.stories.d.ts +32 -32
  19. package/dist/types/components/atoms/Button/__tests__/Button.test.d.ts +1 -1
  20. package/dist/types/components/atoms/Button/index.d.ts +10 -10
  21. package/dist/types/components/atoms/Button/test.d.ts +3 -3
  22. package/dist/types/components/atoms/Checkbox/Checkbox.d.ts +1 -1
  23. package/dist/types/components/atoms/Checkbox/Checkbox.stories.d.ts +15 -15
  24. package/dist/types/components/atoms/Checkbox/__tests__/Checkbox.test.d.ts +1 -1
  25. package/dist/types/components/atoms/Checkbox/index.d.ts +1 -1
  26. package/dist/types/components/atoms/Divider/Divider.d.ts +1 -1
  27. package/dist/types/components/atoms/Divider/Divider.stories.d.ts +8 -8
  28. package/dist/types/components/atoms/Divider/index.d.ts +1 -1
  29. package/dist/types/components/atoms/Input/Input.d.ts +7 -7
  30. package/dist/types/components/atoms/Input/Input.stories.d.ts +19 -19
  31. package/dist/types/components/atoms/Input/__tests__/Input.test.d.ts +1 -1
  32. package/dist/types/components/atoms/Input/index.d.ts +1 -1
  33. package/dist/types/components/atoms/InputNumber/InputNumber.d.ts +6 -6
  34. package/dist/types/components/atoms/InputNumber/InputNumber.stories.d.ts +16 -16
  35. package/dist/types/components/atoms/InputNumber/__tests__/InputNumber.test.d.ts +1 -1
  36. package/dist/types/components/atoms/InputNumber/index.d.ts +1 -1
  37. package/dist/types/components/atoms/Radio/Radio.d.ts +1 -1
  38. package/dist/types/components/atoms/Radio/index.d.ts +1 -1
  39. package/dist/types/components/atoms/Space/Space.d.ts +1 -1
  40. package/dist/types/components/atoms/Space/index.d.ts +1 -1
  41. package/dist/types/components/atoms/Tag/Tag.d.ts +1 -1
  42. package/dist/types/components/atoms/Tag/index.d.ts +1 -1
  43. package/dist/types/components/atoms/Tooltip/Tooltip.d.ts +1 -1
  44. package/dist/types/components/atoms/Tooltip/index.d.ts +1 -1
  45. package/dist/types/components/atoms/Typography/Text.d.ts +1 -1
  46. package/dist/types/components/atoms/Typography/index.d.ts +1 -1
  47. package/dist/types/components/atoms/index.d.ts +10 -10
  48. package/dist/types/components/common/ConfigProvider/ConfigProvider.d.ts +10 -10
  49. package/dist/types/components/common/ConfigProvider/GlobalStyle.d.ts +5 -5
  50. package/dist/types/components/common/ConfigProvider/index.d.ts +1 -1
  51. package/dist/types/components/common/index.d.ts +1 -1
  52. package/dist/types/components/icons/ArrowGrowIcon.d.ts +1 -0
  53. package/dist/types/components/icons/AudioRecordIcon.d.ts +1 -0
  54. package/dist/types/components/icons/BugIcon.d.ts +1 -0
  55. package/dist/types/components/icons/CameraIcon.d.ts +1 -0
  56. package/dist/types/components/icons/CaptureIcon.d.ts +1 -0
  57. package/dist/types/components/icons/CheckSlimIcon.d.ts +1 -0
  58. package/dist/types/components/icons/CloseIcon.d.ts +3 -0
  59. package/dist/types/components/icons/CommentIcon.d.ts +1 -0
  60. package/dist/types/components/icons/EventIcon.d.ts +3 -3
  61. package/dist/types/components/icons/FreeDrawIcon.d.ts +1 -0
  62. package/dist/types/components/icons/GPTIcon.d.ts +1 -0
  63. package/dist/types/components/icons/GPTIconV2.d.ts +1 -0
  64. package/dist/types/components/icons/GPTIconV3.d.ts +1 -0
  65. package/dist/types/components/icons/HighlightIcon.d.ts +1 -0
  66. package/dist/types/components/icons/IdeaIcon.d.ts +1 -0
  67. package/dist/types/components/icons/InvisibleIcon.d.ts +1 -0
  68. package/dist/types/components/icons/MuteIcon.d.ts +1 -0
  69. package/dist/types/components/icons/OpenUrlIcon.d.ts +1 -0
  70. package/dist/types/components/icons/PauseIcon.d.ts +1 -0
  71. package/dist/types/components/icons/PlaneIcon.d.ts +1 -0
  72. package/dist/types/components/icons/StopRecordIcon.d.ts +1 -0
  73. package/dist/types/components/icons/UserIcon.d.ts +1 -0
  74. package/dist/types/components/icons/VerticalDotsIcon.d.ts +1 -0
  75. package/dist/types/components/icons/WarningIcon.d.ts +1 -0
  76. package/dist/types/components/icons/index.d.ts +24 -1
  77. package/dist/types/components/index.d.ts +4 -4
  78. package/dist/types/components/molecules/Alert/Alert.d.ts +1 -1
  79. package/dist/types/components/molecules/Alert/index.d.ts +1 -1
  80. package/dist/types/components/molecules/CaptureScreen/CaptureScreen.d.ts +11 -0
  81. package/dist/types/components/molecules/CaptureScreen/CaptureScreen.stories.d.ts +21 -0
  82. package/dist/types/components/molecules/CaptureScreen/components/CommentBox/CommentBox.d.ts +16 -0
  83. package/dist/types/components/molecules/CaptureScreen/components/CommentBox/index.d.ts +1 -0
  84. package/dist/types/components/molecules/CaptureScreen/components/CommentBox/styled.d.ts +12 -0
  85. package/dist/types/components/molecules/CaptureScreen/components/CommentBox/types.d.ts +15 -0
  86. package/dist/types/components/molecules/CaptureScreen/components/Cursor/Cursor.d.ts +3 -0
  87. package/dist/types/components/molecules/CaptureScreen/components/Cursor/index.d.ts +1 -0
  88. package/dist/types/components/molecules/CaptureScreen/components/Cursor/styled.d.ts +7 -0
  89. package/dist/types/components/molecules/CaptureScreen/components/Cursor/types.d.ts +10 -0
  90. package/dist/types/components/molecules/CaptureScreen/constants.d.ts +35 -0
  91. package/dist/types/components/molecules/CaptureScreen/hooks/useImageEditor.d.ts +5 -0
  92. package/dist/types/components/molecules/CaptureScreen/index.d.ts +1 -0
  93. package/dist/types/components/molecules/CaptureScreen/styled.d.ts +26 -0
  94. package/dist/types/components/molecules/CaptureScreen/themes/black.d.ts +54 -0
  95. package/dist/types/components/molecules/CaptureScreen/themes/white.d.ts +54 -0
  96. package/dist/types/components/molecules/CaptureScreen/types.d.ts +102 -0
  97. package/dist/types/components/molecules/CaptureScreen/utils.d.ts +13 -0
  98. package/dist/types/components/molecules/Cascader/Cascader.d.ts +1 -1
  99. package/dist/types/components/molecules/Cascader/index.d.ts +1 -1
  100. package/dist/types/components/molecules/ChatBox/ChatBox.d.ts +4 -0
  101. package/dist/types/components/molecules/ChatBox/ChatBox.stories.d.ts +0 -0
  102. package/dist/types/components/molecules/ChatBox/ask.d.ts +3 -0
  103. package/dist/types/components/molecules/ChatBox/constants.d.ts +6 -0
  104. package/dist/types/components/molecules/ChatBox/index.d.ts +1 -0
  105. package/dist/types/components/molecules/ChatBox/styled.d.ts +10 -0
  106. package/dist/types/components/molecules/ChatBox/types.d.ts +29 -0
  107. package/dist/types/components/molecules/ChatBox/utils.d.ts +0 -0
  108. package/dist/types/components/molecules/DatePicker/DatePicker.d.ts +8 -8
  109. package/dist/types/components/molecules/DatePicker/DatePicker.stories.d.ts +4 -4
  110. package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.d.ts +28 -28
  111. package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.stories.d.ts +5 -5
  112. package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/constants.d.ts +53 -53
  113. package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/index.d.ts +3 -3
  114. package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/styled.d.ts +7 -7
  115. package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/types.d.ts +14 -14
  116. package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/utils.d.ts +15 -15
  117. package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/AdvancedRangePicker.d.ts +15 -15
  118. package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/AdvancedRangePicker.stories.d.ts +9 -9
  119. package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/constants.d.ts +4 -4
  120. package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/index.d.ts +2 -2
  121. package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/types.d.ts +17 -17
  122. package/dist/types/components/molecules/DatePicker/index.d.ts +3 -3
  123. package/dist/types/components/molecules/Dropdown/Dropdown.d.ts +1 -1
  124. package/dist/types/components/molecules/Dropdown/index.d.ts +1 -1
  125. package/dist/types/components/molecules/Modal/Modal.d.ts +1 -1
  126. package/dist/types/components/molecules/Modal/index.d.ts +1 -1
  127. package/dist/types/components/molecules/PopupDraggable/PopupDraggable.d.ts +6 -0
  128. package/dist/types/components/molecules/PopupDraggable/index.d.ts +1 -0
  129. package/dist/types/components/molecules/PopupDraggable/styled.d.ts +4 -0
  130. package/dist/types/components/molecules/PopupDraggable/types.d.ts +12 -0
  131. package/dist/types/components/molecules/Select/Select.d.ts +15 -15
  132. package/dist/types/components/molecules/Select/Select.stories.d.ts +28 -28
  133. package/dist/types/components/molecules/Select/Test.d.ts +3 -3
  134. package/dist/types/components/molecules/Select/index.d.ts +2 -2
  135. package/dist/types/components/molecules/Select/styled.d.ts +4 -4
  136. package/dist/types/components/molecules/Tabs/Tabs.d.ts +1 -0
  137. package/dist/types/components/molecules/Tabs/index.d.ts +1 -0
  138. package/dist/types/components/molecules/index.d.ts +11 -7
  139. package/dist/types/components/organism/Help/Help.d.ts +5 -0
  140. package/dist/types/components/organism/Help/constants.d.ts +138 -0
  141. package/dist/types/components/organism/Help/index.d.ts +1 -0
  142. package/dist/types/components/organism/Help/styled.d.ts +78 -0
  143. package/dist/types/components/organism/Help/types.d.ts +65 -0
  144. package/dist/types/components/organism/Help/utils.d.ts +14 -0
  145. package/dist/types/components/organism/Table/CrossTabTable/CrossTabTable.d.ts +18 -0
  146. package/dist/types/components/organism/Table/CrossTabTable/components/CustomCell/CustomCell.d.ts +11 -0
  147. package/dist/types/components/organism/Table/CrossTabTable/components/CustomCell/index.d.ts +0 -0
  148. package/dist/types/components/organism/Table/CrossTabTable/components/CustomCell/styled.d.ts +1 -0
  149. package/dist/types/components/organism/Table/CrossTabTable/constants.d.ts +75 -0
  150. package/dist/types/components/organism/Table/CrossTabTable/index.d.ts +1 -0
  151. package/dist/types/components/organism/Table/CrossTabTable/styled.d.ts +1 -0
  152. package/dist/types/components/organism/Table/CrossTabTable/types.d.ts +1 -0
  153. package/dist/types/components/organism/Table/CrossTabTable/utils.d.ts +1 -0
  154. package/dist/types/components/organism/Table/ExplorePivotTable/ExplorePivotTable.d.ts +11 -0
  155. package/dist/types/components/organism/Table/ExplorePivotTable/components/CustomCell/CustomCell.d.ts +12 -0
  156. package/dist/types/components/organism/Table/ExplorePivotTable/components/CustomCell/index.d.ts +1 -0
  157. package/dist/types/components/organism/Table/ExplorePivotTable/components/CustomCell/styled.d.ts +3 -0
  158. package/dist/types/components/organism/Table/ExplorePivotTable/constants.d.ts +4 -0
  159. package/dist/types/components/organism/Table/ExplorePivotTable/index.d.ts +2 -0
  160. package/dist/types/components/organism/Table/ExplorePivotTable/styled.d.ts +11 -0
  161. package/dist/types/components/organism/Table/ExplorePivotTable/types.d.ts +17 -0
  162. package/dist/types/components/organism/Table/ExplorePivotTable/utils.d.ts +4 -0
  163. package/dist/types/components/organism/Table/Table.d.ts +1 -1
  164. package/dist/types/components/organism/Table/index.d.ts +1 -1
  165. package/dist/types/components/organism/index.d.ts +2 -1
  166. package/dist/types/constants/index.d.ts +1 -1
  167. package/dist/types/constants/theme.d.ts +12 -12
  168. package/dist/types/hooks/index.d.ts +2 -2
  169. package/dist/types/hooks/useDebounce.d.ts +3 -0
  170. package/dist/types/index.d.ts +1 -1
  171. package/dist/types/locales/i18n.d.ts +73 -73
  172. package/dist/types/locales/translations.d.ts +37 -37
  173. package/dist/types/locales/types.d.ts +15 -15
  174. package/dist/types/services/Ticket.d.ts +67 -0
  175. package/dist/types/services/constants.d.ts +20 -0
  176. package/dist/types/test.d.ts +3 -3
  177. package/dist/types/types/index.d.ts +6 -6
  178. package/dist/types/utils/color.d.ts +9 -0
  179. package/dist/types/utils/common.d.ts +46 -8
  180. package/dist/types/utils/handleError.d.ts +2 -2
  181. package/dist/types/utils/index.d.ts +3 -0
  182. package/package.json +131 -122
  183. package/dist/types/components/molecules/CustomComponent/CustomComponent.d.ts +0 -2
  184. package/dist/types/components/molecules/CustomComponent/index.d.ts +0 -1
@@ -1,73 +1,73 @@
1
- export declare const translationsJson: {
2
- en: {
3
- translation: {
4
- global: {
5
- minus: string;
6
- plus: string;
7
- };
8
- button: {};
9
- datePicker: {
10
- startDate: string;
11
- endDate: string;
12
- dateTypes: {
13
- today: string;
14
- firstDayOfWeekMonSun: string;
15
- firstDayOfWeekSunSat: string;
16
- firstDayOfMonth: string;
17
- firstDayOfQuarter: string;
18
- firstDayOfYear: string;
19
- lastDayOfWeekMonSun: string;
20
- lastDayOfWeekSunSat: string;
21
- lastDayOfMonth: string;
22
- lastDayOfQuarter: string;
23
- lastDayOfYear: string;
24
- fixed: string;
25
- };
26
- seconds: string;
27
- minutes: string;
28
- hours: string;
29
- days: string;
30
- weeks: string;
31
- months: string;
32
- quarters: string;
33
- years: string;
34
- };
35
- };
36
- };
37
- vi: {
38
- translation: {
39
- global: {
40
- minus: string;
41
- plus: string;
42
- };
43
- button: {};
44
- datePicker: {
45
- startDate: string;
46
- endDate: string;
47
- dateTypes: {
48
- today: string;
49
- firstDayOfWeekMonSun: string;
50
- firstDayOfWeekSunSat: string;
51
- firstDayOfMonth: string;
52
- firstDayOfQuarter: string;
53
- firstDayOfYear: string;
54
- lastDayOfWeekMonSun: string;
55
- lastDayOfWeekSunSat: string;
56
- lastDayOfMonth: string;
57
- lastDayOfQuarter: string;
58
- lastDayOfYear: string;
59
- fixed: string;
60
- };
61
- seconds: string;
62
- minutes: string;
63
- hours: string;
64
- days: string;
65
- weeks: string;
66
- months: string;
67
- quarters: string;
68
- years: string;
69
- };
70
- };
71
- };
72
- };
73
- export declare const i18n: Promise<import("i18next").TFunction<"translation", undefined, "translation">>;
1
+ export declare const translationsJson: {
2
+ en: {
3
+ translation: {
4
+ global: {
5
+ minus: string;
6
+ plus: string;
7
+ };
8
+ button: {};
9
+ datePicker: {
10
+ startDate: string;
11
+ endDate: string;
12
+ dateTypes: {
13
+ today: string;
14
+ firstDayOfWeekMonSun: string;
15
+ firstDayOfWeekSunSat: string;
16
+ firstDayOfMonth: string;
17
+ firstDayOfQuarter: string;
18
+ firstDayOfYear: string;
19
+ lastDayOfWeekMonSun: string;
20
+ lastDayOfWeekSunSat: string;
21
+ lastDayOfMonth: string;
22
+ lastDayOfQuarter: string;
23
+ lastDayOfYear: string;
24
+ fixed: string;
25
+ };
26
+ seconds: string;
27
+ minutes: string;
28
+ hours: string;
29
+ days: string;
30
+ weeks: string;
31
+ months: string;
32
+ quarters: string;
33
+ years: string;
34
+ };
35
+ };
36
+ };
37
+ vi: {
38
+ translation: {
39
+ global: {
40
+ minus: string;
41
+ plus: string;
42
+ };
43
+ button: {};
44
+ datePicker: {
45
+ startDate: string;
46
+ endDate: string;
47
+ dateTypes: {
48
+ today: string;
49
+ firstDayOfWeekMonSun: string;
50
+ firstDayOfWeekSunSat: string;
51
+ firstDayOfMonth: string;
52
+ firstDayOfQuarter: string;
53
+ firstDayOfYear: string;
54
+ lastDayOfWeekMonSun: string;
55
+ lastDayOfWeekSunSat: string;
56
+ lastDayOfMonth: string;
57
+ lastDayOfQuarter: string;
58
+ lastDayOfYear: string;
59
+ fixed: string;
60
+ };
61
+ seconds: string;
62
+ minutes: string;
63
+ hours: string;
64
+ days: string;
65
+ weeks: string;
66
+ months: string;
67
+ quarters: string;
68
+ years: string;
69
+ };
70
+ };
71
+ };
72
+ };
73
+ export declare const i18n: Promise<import("i18next").TFunction<"translation", undefined, "translation">>;
@@ -1,37 +1,37 @@
1
- import { ConvertedToObjectType, TranslationJsonType } from './types';
2
- export declare const translations: ConvertedToObjectType<TranslationJsonType>;
3
- export declare const convertLanguageJsonToObject: (json: any, objToConvertTo?: ConvertedToObjectType<{
4
- global: {
5
- minus: string;
6
- plus: string;
7
- };
8
- button: {};
9
- datePicker: {
10
- startDate: string;
11
- endDate: string;
12
- dateTypes: {
13
- today: string;
14
- firstDayOfWeekMonSun: string;
15
- firstDayOfWeekSunSat: string;
16
- firstDayOfMonth: string;
17
- firstDayOfQuarter: string;
18
- firstDayOfYear: string;
19
- lastDayOfWeekMonSun: string;
20
- lastDayOfWeekSunSat: string;
21
- lastDayOfMonth: string;
22
- lastDayOfQuarter: string;
23
- lastDayOfYear: string;
24
- fixed: string;
25
- };
26
- seconds: string;
27
- minutes: string;
28
- hours: string;
29
- days: string;
30
- weeks: string;
31
- months: string;
32
- quarters: string;
33
- years: string;
34
- };
35
- }>, current?: string) => void;
36
- export declare const t: (id: string, ...rest: any[]) => [string, ...any[]];
37
- export declare const getTranslateMessage: (id: string, defaultMessage?: string, value?: Record<string, unknown>) => string;
1
+ import { ConvertedToObjectType, TranslationJsonType } from './types';
2
+ export declare const translations: ConvertedToObjectType<TranslationJsonType>;
3
+ export declare const convertLanguageJsonToObject: (json: any, objToConvertTo?: ConvertedToObjectType<{
4
+ global: {
5
+ minus: string;
6
+ plus: string;
7
+ };
8
+ button: {};
9
+ datePicker: {
10
+ startDate: string;
11
+ endDate: string;
12
+ dateTypes: {
13
+ today: string;
14
+ firstDayOfWeekMonSun: string;
15
+ firstDayOfWeekSunSat: string;
16
+ firstDayOfMonth: string;
17
+ firstDayOfQuarter: string;
18
+ firstDayOfYear: string;
19
+ lastDayOfWeekMonSun: string;
20
+ lastDayOfWeekSunSat: string;
21
+ lastDayOfMonth: string;
22
+ lastDayOfQuarter: string;
23
+ lastDayOfYear: string;
24
+ fixed: string;
25
+ };
26
+ seconds: string;
27
+ minutes: string;
28
+ hours: string;
29
+ days: string;
30
+ weeks: string;
31
+ months: string;
32
+ quarters: string;
33
+ years: string;
34
+ };
35
+ }>, current?: string) => void;
36
+ export declare const t: (id: string, ...rest: any[]) => [string, ...any[]];
37
+ export declare const getTranslateMessage: (id: string, defaultMessage?: string, value?: Record<string, unknown>) => string;
@@ -1,15 +1,15 @@
1
- export type ConvertedToObjectType<T> = {
2
- [P in keyof T]: T[P] extends string ? string : ConvertedToObjectType<T[P]>;
3
- };
4
- /**
5
-
6
- If you don't want non-existing keys to throw ts error you can simply do(also keeping the intellisense)
7
-
8
- export type ConvertedToObjectType<T> = {
9
- [P in keyof T]: T[P] extends string ? string : ConvertedToObjectType<T[P]>;
10
- } & {
11
- [P: string]: any;
12
- };
13
-
14
- */
15
- export type TranslationJsonType = typeof import('./en/translation.json');
1
+ export type ConvertedToObjectType<T> = {
2
+ [P in keyof T]: T[P] extends string ? string : ConvertedToObjectType<T[P]>;
3
+ };
4
+ /**
5
+
6
+ If you don't want non-existing keys to throw ts error you can simply do(also keeping the intellisense)
7
+
8
+ export type ConvertedToObjectType<T> = {
9
+ [P in keyof T]: T[P] extends string ? string : ConvertedToObjectType<T[P]>;
10
+ } & {
11
+ [P: string]: any;
12
+ };
13
+
14
+ */
15
+ export type TranslationJsonType = typeof import('./en/translation.json');
@@ -0,0 +1,67 @@
1
+ declare const API: {
2
+ lookupInfo: {
3
+ callApi: {
4
+ c_user_id: (params: any, domain: any, token: any, config: any, userId: any) => Promise<{
5
+ code: number;
6
+ codeMessage: any;
7
+ messageAPI: any;
8
+ data: any;
9
+ } | {
10
+ code: number;
11
+ codeMessage: string;
12
+ data: any;
13
+ messageAPI?: undefined;
14
+ }>;
15
+ };
16
+ };
17
+ getAppInfo: {
18
+ getAll: (params: any, domain: any, config: any, token: any, userId: any) => Promise<{
19
+ code: number;
20
+ message: any;
21
+ data: any;
22
+ codeMessage?: undefined;
23
+ } | {
24
+ code: number;
25
+ codeMessage: string;
26
+ message: any;
27
+ data: any;
28
+ }>;
29
+ };
30
+ tickets: {
31
+ callApi: {
32
+ createTicket: (params: any, domain: any, token: any, config: any, userId: any) => Promise<{
33
+ code: number;
34
+ codeMessage: any;
35
+ messageAPI: any;
36
+ data: any;
37
+ } | {
38
+ code: number;
39
+ codeMessage: string;
40
+ data: any;
41
+ messageAPI?: undefined;
42
+ }>;
43
+ getCustomFields: (params: any, domain: any, token: any, config: any, userId: any, type: any) => Promise<any>;
44
+ getDetailsTicket: (params: any, domain: any, token: any, config: any, userId: any, ticketId: any, type: any) => Promise<any>;
45
+ getListComment: (params: any, domain: any, token: any, config: any, userId: any, type: any, ticketId: any) => Promise<any>;
46
+ updateComment: (params: any, domain: any, token: any, config: any, userId: any, type: any, ticketId: any) => Promise<any>;
47
+ updateFollowers: (params: any, domain: any, token: any, config: any, userId: any, ticketId: any) => Promise<any>;
48
+ upload: (params: any, domain: any, token: any, config: any, userId: any, type: any) => Promise<any>;
49
+ };
50
+ };
51
+ accounts: {
52
+ callApi: {
53
+ getAccountManage: (params: any, domain: any, token: any, config: any, userId: any, type: any) => Promise<any>;
54
+ };
55
+ };
56
+ permission: {
57
+ callApi: {
58
+ getList: (params: any, domain: any, token: any, config: any, userId: any, type: any, ownerId: any) => Promise<any>;
59
+ };
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
+ };
66
+ };
67
+ export default API;
@@ -0,0 +1,20 @@
1
+ export declare const MESSAGES: {
2
+ SUCCESS: string;
3
+ VIEW_NAME_IS_EXISTED: string;
4
+ INTERNAL_SERVER_ERROR: string;
5
+ PROPERTY_CODE_IS_EXISTED_IN_THIS_GROUP: string;
6
+ NAME_ALREADY_EXISTS: string;
7
+ TOO_LONG_NAME: string;
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
+ };
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- import '@antscorp/icons/main.css';
3
- export declare const App: () => JSX.Element;
1
+ /// <reference types="react" />
2
+ import '@antscorp/icons/main.css';
3
+ export declare const App: () => JSX.Element;
@@ -1,6 +1,6 @@
1
- export type THandleErrorPayload = {
2
- path: string;
3
- name: string;
4
- args: Record<string, any>;
5
- };
6
- export type TLocale = 'en' | 'vi';
1
+ export type THandleErrorPayload = {
2
+ path: string;
3
+ name: string;
4
+ args: Record<string, any>;
5
+ };
6
+ export type TLocale = 'en' | 'vi';
@@ -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;
@@ -1,8 +1,46 @@
1
- /**
2
- * Function to reorder list
3
- * @param {Object[]} list - list of item want to reorder
4
- * @param {number} startIndex - start item index want to replace position: ;
5
- * @param {number} endIndex - end item index want to replace position: ;
6
- * @returns {object[]}
7
- */
8
- export declare const reorder: (list: Array<Record<string, unknown> | string | number>, startIndex: number, endIndex: number) => any[];
1
+ /**
2
+ * Function to reorder list
3
+ * @param {Object[]} list - list of item want to reorder
4
+ * @param {number} startIndex - start item index want to replace position: ;
5
+ * @param {number} endIndex - end item index want to replace position: ;
6
+ * @returns {object[]}
7
+ */
8
+ export declare const reorder: (list: Array<Record<string, unknown> | string | number>, startIndex: number, endIndex: number) => any[];
9
+ export declare const safeParse: (val: any, defaultVal: any) => any;
10
+ export declare function getPortalId(config: any): any;
11
+ export declare const safeParseInt: (val: any, defaultVal: any) => any;
12
+ export declare function isUrlEmbedded(): boolean;
13
+ export declare function getWindowParam(name: any, config: any): any;
14
+ export declare function getSessionStorage(key: any, config: any): any;
15
+ export declare function getMessageByCode(messageCode: any, def?: undefined | string): any;
16
+ export declare function urlHasQueryString(url: any): boolean;
17
+ export declare function isNumeric(num: any): boolean;
18
+ export declare function getUserLocaleLanguage(config: any): any;
19
+ export declare function getAppSession(key: any, config: any): any;
20
+ export declare function getAppParamURL(pathname: any, forceVersionV2: boolean | undefined, config: any): {
21
+ portalId: number;
22
+ accessUserId: number;
23
+ };
24
+ export declare function callApiWithAuth(endpoint: any, method: string | undefined, body: any, domain?: string, config?: {}, token?: string, userId?: string, isTicket?: boolean, type?: string, isAccount?: boolean, isPermission?: boolean, others?: any): Promise<void | import("axios").AxiosResponse<any, any>>;
25
+ export declare function getData(res: any, def: any): {
26
+ code: number;
27
+ message: any;
28
+ data: any;
29
+ codeMessage?: undefined;
30
+ } | {
31
+ code: number;
32
+ codeMessage: string;
33
+ message: any;
34
+ data: any;
35
+ };
36
+ export declare function getEntriesV2(res: any, def: any): {
37
+ code: number;
38
+ codeMessage: any;
39
+ messageAPI: any;
40
+ data: any;
41
+ } | {
42
+ code: number;
43
+ codeMessage: string;
44
+ data: any;
45
+ messageAPI?: undefined;
46
+ };
@@ -1,2 +1,2 @@
1
- import { THandleErrorPayload } from 'src/types';
2
- export declare const handleError: (error: any, payload: THandleErrorPayload) => void;
1
+ import { THandleErrorPayload } from 'src/types';
2
+ export declare const handleError: (error: any, payload: THandleErrorPayload) => void;
@@ -0,0 +1,3 @@
1
+ export * from './color';
2
+ export * from './common';
3
+ export * from './handleError';