@antscorp/antsomi-ui 1.7.3 → 1.7.5

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 (353) hide show
  1. package/CHANGELOG.md +83 -0
  2. package/es/components/atoms/Alert/Alert.d.ts +7 -2
  3. package/es/components/atoms/Alert/Alert.js +39 -5
  4. package/es/components/atoms/Flex/index.d.ts +2 -1
  5. package/es/components/atoms/Flex/index.js +1 -1
  6. package/es/components/atoms/Input/Input.js +1 -1
  7. package/es/components/atoms/Input/styled.d.ts +6 -0
  8. package/es/components/atoms/Input/styled.js +5 -0
  9. package/es/components/atoms/Popover/index.d.ts +1 -0
  10. package/es/components/atoms/Radio/index.js +1 -0
  11. package/es/components/atoms/Scrollbars/Scrollbars.js +6 -5
  12. package/es/components/atoms/Steps/styled.js +3 -0
  13. package/es/components/atoms/index.d.ts +1 -1
  14. package/es/components/atoms/index.js +1 -1
  15. package/es/components/icons/DataIcon.d.ts +3 -0
  16. package/es/components/icons/DataIcon.js +18 -0
  17. package/es/components/icons/EventIcon.js +1 -1
  18. package/es/components/icons/TableIcon.d.ts +3 -0
  19. package/es/components/icons/TableIcon.js +7 -0
  20. package/es/components/icons/hooks/useIcon.d.ts +5 -0
  21. package/es/components/icons/hooks/useIcon.js +9 -0
  22. package/es/components/icons/index.d.ts +2 -0
  23. package/es/components/icons/index.js +2 -0
  24. package/es/components/icons/type.d.ts +1 -0
  25. package/es/components/molecules/AccountSelection/AccountListing.d.ts +1 -0
  26. package/es/components/molecules/AccountSelection/hooks/useAccountSelection.d.ts +1 -0
  27. package/es/components/molecules/AccountSelection/hooks/useAccountSelection.js +3 -3
  28. package/es/components/molecules/AccountSelection/styled.js +7 -1
  29. package/es/components/molecules/ApplyPopupContent/ApplyPopupContent.d.ts +17 -0
  30. package/es/components/{organism/DataTable/components/common/ApplyPopupContent/index.js → molecules/ApplyPopupContent/ApplyPopupContent.js} +4 -2
  31. package/es/components/molecules/ApplyPopupContent/index.d.ts +2 -0
  32. package/es/components/molecules/ApplyPopupContent/index.js +1 -0
  33. package/es/components/{organism/DataTable/components/common → molecules}/ApplyPopupContent/styled.js +0 -2
  34. package/es/components/molecules/CalendarSelection/styled.d.ts +1 -1
  35. package/es/components/molecules/CalendarSelection/styled.js +3 -1
  36. package/es/components/molecules/DatePicker/DatePicker.js +6 -0
  37. package/es/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.d.ts +1 -0
  38. package/es/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.js +4 -2
  39. package/es/components/molecules/DatePicker/components/AdvancedRangePicker/AdvancedRangePicker.d.ts +1 -0
  40. package/es/components/molecules/DatePicker/components/AdvancedRangePicker/AdvancedRangePicker.js +7 -4
  41. package/es/components/molecules/DrawerDetail/DrawerDetail.js +45 -20
  42. package/es/components/molecules/DrawerDetail/styled.js +1 -1
  43. package/es/components/molecules/EditableName/EditableName.js +22 -1
  44. package/es/components/molecules/EditorTab/EditorTab.d.ts +9 -7
  45. package/es/components/molecules/EditorTab/EditorTab.js +53 -14
  46. package/es/components/molecules/EditorTab/index.d.ts +1 -0
  47. package/es/components/molecules/HeaderV2/HeaderV2.d.ts +2 -2
  48. package/es/components/molecules/HeaderV2/HeaderV2.js +2 -1
  49. package/es/components/molecules/HeaderV2/constants.d.ts +1 -1
  50. package/es/components/molecules/HeaderV2/constants.js +1 -1
  51. package/es/components/molecules/HeaderV2/styled.d.ts +1 -1
  52. package/es/components/molecules/HeaderV2/styled.js +22 -10
  53. package/es/components/molecules/ImageEditor/index.d.ts +1 -1
  54. package/es/components/molecules/MatchAnySelect/MatchesAnySelect.d.ts +4 -0
  55. package/es/components/molecules/MatchAnySelect/MatchesAnySelect.js +283 -0
  56. package/es/components/molecules/MatchAnySelect/components/ExtendValuePopup.d.ts +7 -0
  57. package/es/components/molecules/MatchAnySelect/components/ExtendValuePopup.js +66 -0
  58. package/es/components/molecules/MatchAnySelect/constants.d.ts +3 -0
  59. package/es/components/molecules/MatchAnySelect/constants.js +304 -0
  60. package/es/components/molecules/MatchAnySelect/index.d.ts +3 -0
  61. package/es/components/molecules/MatchAnySelect/index.js +2 -0
  62. package/es/components/molecules/MatchAnySelect/styled.d.ts +17 -0
  63. package/es/components/molecules/MatchAnySelect/styled.js +197 -0
  64. package/es/components/molecules/MatchAnySelect/types.d.ts +47 -0
  65. package/es/components/molecules/MatchAnySelect/types.js +1 -0
  66. package/es/components/molecules/Modal/styled.js +6 -4
  67. package/es/components/molecules/ModalSelect/Card.js +27 -11
  68. package/es/components/molecules/ModalSelect/ModalSelect.js +3 -2
  69. package/es/components/molecules/ModalSelect/styled.js +10 -3
  70. package/es/components/molecules/ModalSelect/types.d.ts +3 -0
  71. package/es/components/molecules/ModalV2/styled.js +5 -0
  72. package/es/components/molecules/SearchPopover/components/PopoverAddField/PopoverAddField.d.ts +0 -1
  73. package/es/components/molecules/SearchPopover/components/PopoverAddField/PopoverAddField.js +17 -100
  74. package/es/components/molecules/SearchPopover/components/PopoverSelect/PopoverSelect.d.ts +4 -0
  75. package/es/components/molecules/SearchPopover/components/PopoverSelect/PopoverSelect.js +132 -0
  76. package/es/components/molecules/SearchPopover/components/PopoverSelect/index.d.ts +1 -0
  77. package/es/components/molecules/SearchPopover/components/PopoverSelect/index.js +1 -0
  78. package/es/components/molecules/SearchPopover/components/index.d.ts +1 -0
  79. package/es/components/molecules/SearchPopover/components/index.js +1 -0
  80. package/es/components/molecules/SearchPopover/index.d.ts +1 -1
  81. package/es/components/molecules/SearchPopover/index.js +1 -1
  82. package/es/components/molecules/SearchPopover/types.d.ts +17 -5
  83. package/es/components/molecules/SelectAccount/AccountList.js +32 -34
  84. package/es/components/molecules/SelectAccount/ButtonAdd.js +2 -2
  85. package/es/components/molecules/SelectAccount/ButtonViewAll.js +15 -17
  86. package/es/components/molecules/SelectAccount/Content.js +1 -0
  87. package/es/components/molecules/SelectAccount/context/SelectAccountContext.js +3 -1
  88. package/es/components/molecules/SelectAccount/context/reducer.js +31 -27
  89. package/es/components/molecules/SelectAccount/styled.js +1 -1
  90. package/es/components/molecules/SelectAccount/type.d.ts +5 -6
  91. package/es/components/molecules/SelectAccount/utils.d.ts +1 -0
  92. package/es/components/molecules/SelectAccount/utils.js +13 -0
  93. package/es/components/molecules/ShareAccess/ShareAccess.js +5 -2
  94. package/es/components/molecules/ShareAccess/actions.d.ts +8 -2
  95. package/es/components/molecules/ShareAccess/actions.js +2 -2
  96. package/es/components/molecules/ShareAccess/components/GeneralAccess/GeneralAccess.js +4 -4
  97. package/es/components/molecules/ShareAccess/components/GeneralAccess/styled.js +4 -5
  98. package/es/components/molecules/ShareAccess/components/LayoutContent/LayoutContent.js +2 -2
  99. package/es/components/molecules/ShareAccess/components/LayoutContent/styled.js +1 -1
  100. package/es/components/molecules/ShareAccess/components/ModalTransferOwnerShip/ModalTransferOwnerShip.js +1 -1
  101. package/es/components/molecules/ShareAccess/components/PeopleAccess/PeopleAccess.d.ts +1 -1
  102. package/es/components/molecules/ShareAccess/components/PeopleAccess/PeopleAccess.js +5 -4
  103. package/es/components/molecules/ShareAccess/components/PeopleAccess/styled.js +18 -4
  104. package/es/components/molecules/ShareAccess/components/SearchUser/SearchUser.js +30 -16
  105. package/es/components/molecules/ShareAccess/constants.d.ts +1 -1
  106. package/es/components/molecules/ShareAccess/constants.js +0 -12
  107. package/es/components/molecules/ShareAccess/reducer.js +5 -3
  108. package/es/components/molecules/ShareAccess/types.d.ts +11 -14
  109. package/es/components/molecules/ShareAccess/utils.d.ts +14 -9
  110. package/es/components/molecules/ShareAccess/utils.js +30 -8
  111. package/es/components/molecules/Tabs/Tabs.js +4 -0
  112. package/es/components/molecules/VirtualizedMenu/components/MenuInline/MenuInline.js +3 -3
  113. package/es/components/molecules/VirtualizedMenu/styled.d.ts +2 -2
  114. package/es/components/molecules/VirtualizedMenu/styled.js +2 -2
  115. package/es/components/molecules/VirtualizedMenu/types.d.ts +0 -2
  116. package/es/components/molecules/index.d.ts +5 -1
  117. package/es/components/molecules/index.js +3 -1
  118. package/es/components/organism/AccountProfile/AccountProfile.d.ts +7 -0
  119. package/es/components/organism/AccountProfile/AccountProfile.js +21 -0
  120. package/es/components/organism/AccountProfile/components/AccountSetting/AccountSetting.d.ts +5 -0
  121. package/es/components/organism/AccountProfile/components/AccountSetting/AccountSetting.js +864 -0
  122. package/es/components/organism/AccountProfile/components/AccountSetting/components/EditableInput/constant.d.ts +64 -0
  123. package/es/components/organism/AccountProfile/components/AccountSetting/components/EditableInput/constant.js +64 -0
  124. package/es/components/organism/AccountProfile/components/AccountSetting/components/EditableInput/index.d.ts +13 -0
  125. package/es/components/organism/AccountProfile/components/AccountSetting/components/EditableInput/index.js +293 -0
  126. package/es/components/organism/AccountProfile/components/AccountSetting/components/EditableInput/styles.d.ts +4 -0
  127. package/es/components/organism/AccountProfile/components/AccountSetting/components/EditableInput/styles.js +103 -0
  128. package/es/components/organism/AccountProfile/components/AccountSetting/components/LanguageSelector/images/english.png +0 -0
  129. package/es/components/organism/AccountProfile/components/AccountSetting/components/LanguageSelector/images/vietnam.png +0 -0
  130. package/es/components/organism/AccountProfile/components/AccountSetting/components/LanguageSelector/index.d.ts +18 -0
  131. package/es/components/organism/AccountProfile/components/AccountSetting/components/LanguageSelector/index.js +77 -0
  132. package/es/components/organism/AccountProfile/components/AccountSetting/components/LanguageSelector/styles.d.ts +11 -0
  133. package/es/components/organism/AccountProfile/components/AccountSetting/components/LanguageSelector/styles.js +22 -0
  134. package/es/components/organism/AccountProfile/components/AccountSetting/components/UploadAvatar/index.d.ts +10 -0
  135. package/es/components/organism/AccountProfile/components/AccountSetting/components/UploadAvatar/index.js +83 -0
  136. package/es/components/organism/AccountProfile/components/AccountSetting/constants.d.ts +126 -0
  137. package/es/components/organism/AccountProfile/components/AccountSetting/constants.js +179 -0
  138. package/es/components/organism/AccountProfile/components/AccountSetting/images/img-account-big.png +0 -0
  139. package/es/components/organism/AccountProfile/components/AccountSetting/index.d.ts +1 -0
  140. package/es/components/organism/AccountProfile/components/AccountSetting/index.js +1 -0
  141. package/es/components/organism/AccountProfile/components/AccountSetting/styled.d.ts +8 -0
  142. package/es/components/organism/AccountProfile/components/AccountSetting/styled.js +564 -0
  143. package/es/components/organism/AccountProfile/components/AccountSetting/styles.scss +39 -0
  144. package/es/components/organism/AccountProfile/components/AccountSetting/types.d.ts +36 -0
  145. package/es/components/organism/AccountProfile/components/AccountSetting/types.js +2 -0
  146. package/es/components/organism/AccountProfile/components/AccountSetting/useModal.d.ts +11 -0
  147. package/es/components/organism/AccountProfile/components/AccountSetting/useModal.js +84 -0
  148. package/es/components/organism/AccountProfile/components/AccountSetting/utils.d.ts +21 -0
  149. package/es/components/organism/AccountProfile/components/AccountSetting/utils.js +94 -0
  150. package/es/components/organism/AccountProfile/index.d.ts +2 -0
  151. package/es/components/organism/AccountProfile/index.js +2 -0
  152. package/es/components/organism/AccountSharing/AccountSharing.js +22 -6
  153. package/es/components/organism/AlgorithmsSetting/styled.js +2 -1
  154. package/es/components/organism/DataTable/DataTable.js +4 -3
  155. package/es/components/organism/DataTable/components/AddButton/index.js +2 -1
  156. package/es/components/organism/DataTable/components/Filter/AddFilterButton.js +18 -3
  157. package/es/components/organism/DataTable/components/Filter/FilterActionButton.js +2 -4
  158. package/es/components/organism/DataTable/components/Filter/FilterCondition/index.d.ts +5 -2
  159. package/es/components/organism/DataTable/components/Filter/FilterCondition/index.js +17 -10
  160. package/es/components/organism/DataTable/components/Filter/FilterConditionList.js +15 -15
  161. package/es/components/organism/DataTable/components/Filter/FilterItem.js +39 -7
  162. package/es/components/organism/DataTable/components/Filter/SaveFilterPopover.js +2 -2
  163. package/es/components/organism/DataTable/components/Filter/SavedFilterAndMetrics.d.ts +1 -0
  164. package/es/components/organism/DataTable/components/Filter/SavedFilterAndMetrics.js +65 -18
  165. package/es/components/organism/DataTable/components/Filter/styled.js +15 -0
  166. package/es/components/organism/DataTable/components/ModifyColumn/index.js +84 -30
  167. package/es/components/organism/DataTable/components/ModifyColumn/styled.d.ts +1 -0
  168. package/es/components/organism/DataTable/components/ModifyColumn/styled.js +14 -0
  169. package/es/components/organism/DataTable/components/Pagination/index.d.ts +2 -1
  170. package/es/components/organism/DataTable/components/Pagination/index.js +19 -17
  171. package/es/components/organism/DataTable/components/Pagination/styled.js +2 -1
  172. package/es/components/organism/DataTable/components/Table/ResizableCell.d.ts +5 -1
  173. package/es/components/organism/DataTable/components/Table/ResizableCell.js +61 -10
  174. package/es/components/organism/DataTable/components/Table/index.js +60 -36
  175. package/es/components/organism/DataTable/components/Table/styled.js +70 -15
  176. package/es/components/organism/DataTable/components/Toolbar/RowSelectedControl.js +1 -1
  177. package/es/components/organism/DataTable/components/Toolbar/SearchPopover.d.ts +3 -1
  178. package/es/components/organism/DataTable/components/Toolbar/SearchPopover.js +24 -16
  179. package/es/components/organism/DataTable/components/Toolbar/ToolbarActionButtons.js +29 -17
  180. package/es/components/organism/DataTable/components/Toolbar/index.js +9 -1
  181. package/es/components/organism/DataTable/components/Toolbar/styled.d.ts +3 -0
  182. package/es/components/organism/DataTable/components/Toolbar/styled.js +24 -0
  183. package/es/components/organism/DataTable/constants/common.d.ts +8 -1
  184. package/es/components/organism/DataTable/constants/common.js +9 -2
  185. package/es/components/organism/DataTable/constants/filter.d.ts +10 -0
  186. package/es/components/organism/DataTable/constants/filter.js +10 -0
  187. package/es/components/organism/DataTable/constants/index.js +1 -5
  188. package/es/components/organism/DataTable/constants/pagination.js +2 -2
  189. package/es/components/organism/DataTable/constants/theme.js +8 -0
  190. package/es/components/organism/DataTable/hooks/index.d.ts +1 -0
  191. package/es/components/organism/DataTable/hooks/index.js +1 -0
  192. package/es/components/organism/DataTable/hooks/useAddFilterButton.d.ts +11 -5
  193. package/es/components/organism/DataTable/hooks/useAddFilterButton.js +7 -6
  194. package/es/components/organism/DataTable/hooks/useDataTable.d.ts +2 -1
  195. package/es/components/organism/DataTable/hooks/useDataTable.js +4 -13
  196. package/es/components/organism/DataTable/hooks/useDataTableListing/constants.d.ts +9 -0
  197. package/es/components/organism/DataTable/hooks/useDataTableListing/constants.js +20 -0
  198. package/es/components/organism/DataTable/hooks/useDataTableListing/index.d.ts +1 -0
  199. package/es/components/organism/DataTable/hooks/useDataTableListing/index.js +1 -0
  200. package/es/components/organism/DataTable/hooks/useDataTableListing/types.d.ts +107 -0
  201. package/es/components/organism/DataTable/hooks/useDataTableListing/types.js +1 -0
  202. package/es/components/organism/DataTable/hooks/useDataTableListing/useDataTableListing.d.ts +53 -0
  203. package/es/components/organism/DataTable/hooks/useDataTableListing/useDataTableListing.js +640 -0
  204. package/es/components/organism/DataTable/index.d.ts +2 -1
  205. package/es/components/organism/DataTable/index.js +2 -0
  206. package/es/components/organism/DataTable/stores/index.js +3 -1
  207. package/es/components/organism/DataTable/styled/index.js +3 -5
  208. package/es/components/organism/DataTable/types/filter.d.ts +21 -7
  209. package/es/components/organism/DataTable/types/index.d.ts +5 -0
  210. package/es/components/organism/DataTable/types/toolbar.d.ts +13 -5
  211. package/es/components/organism/DataTable/utils/filter.d.ts +17 -9
  212. package/es/components/organism/DataTable/utils/filter.js +93 -8
  213. package/es/components/organism/FilterSetting/components/common/InputOrSelect/index.js +2 -1
  214. package/es/components/organism/LeftMenu/LeftMenu.js +23 -16
  215. package/es/components/organism/LeftMenu/components/CommonMenu/index.d.ts +5 -1
  216. package/es/components/organism/LeftMenu/components/CommonMenu/index.js +4 -2
  217. package/es/components/organism/LeftMenu/components/CustomMenu/index.d.ts +1 -0
  218. package/es/components/organism/LeftMenu/components/CustomMenu/index.js +3 -2
  219. package/es/components/organism/LeftMenu/components/HomeMenu/index.d.ts +4 -1
  220. package/es/components/organism/LeftMenu/components/HomeMenu/index.js +2 -38
  221. package/es/components/organism/LeftMenu/components/HomeMenu/useHomeMenu.d.ts +2 -1
  222. package/es/components/organism/LeftMenu/components/HomeMenu/useHomeMenu.js +21 -9
  223. package/es/components/organism/LeftMenu/components/common/ChildMenu/components/MenuItemImage/styled.js +1 -1
  224. package/es/components/organism/LeftMenu/components/common/ChildMenu/index.js +32 -24
  225. package/es/components/organism/LeftMenu/components/common/ChildMenu/styled.js +15 -10
  226. package/es/components/organism/LeftMenu/components/common/ChildMenu/utils.d.ts +5 -0
  227. package/es/components/organism/LeftMenu/components/common/ChildMenu/utils.js +52 -0
  228. package/es/components/organism/LeftMenu/constants/variables.d.ts +1 -0
  229. package/es/components/organism/LeftMenu/constants/variables.js +6 -16
  230. package/es/components/organism/LeftMenu/hooks/useLeftMenu.d.ts +2 -0
  231. package/es/components/organism/LeftMenu/hooks/useLeftMenu.js +91 -37
  232. package/es/components/organism/LeftMenu/hooks/useNavigatePath.d.ts +1 -1
  233. package/es/components/organism/LeftMenu/hooks/useNavigatePath.js +8 -6
  234. package/es/components/organism/LeftMenu/hooks/usePermission.d.ts +1 -0
  235. package/es/components/organism/LeftMenu/hooks/usePermission.js +38 -7
  236. package/es/components/organism/LeftMenu/index.d.ts +3 -2
  237. package/es/components/organism/LeftMenu/index.js +7 -4
  238. package/es/components/organism/LeftMenu/stores/index.d.ts +2 -0
  239. package/es/components/organism/LeftMenu/stores/index.js +2 -0
  240. package/es/components/organism/LeftMenu/styled.d.ts +4 -3
  241. package/es/components/organism/LeftMenu/styled.js +32 -14
  242. package/es/components/organism/LeftMenu/utils/index.d.ts +6 -1
  243. package/es/components/organism/LeftMenu/utils/index.js +74 -31
  244. package/es/components/organism/ModifyColumnModal/ModifyColumnModal.js +18 -17
  245. package/es/components/organism/ModifyColumnModal/SelectedMetricsList.js +2 -3
  246. package/es/components/organism/ModifyColumnModal/styled.js +4 -0
  247. package/es/components/organism/ModifyColumnModal/types.d.ts +2 -0
  248. package/es/components/organism/index.d.ts +1 -0
  249. package/es/components/organism/index.js +1 -0
  250. package/es/components/template/Layout/Layout.js +31 -11
  251. package/es/components/template/Layout/components/RecommendationWorkspace/components/MenuMapping/components/OldLeftMenu/index.js +36 -8
  252. package/es/components/template/Layout/components/RecommendationWorkspace/components/MenuMapping/index.js +10 -3
  253. package/es/components/template/Layout/components/RecommendationWorkspace/components/MenuMapping/styled.js +1 -0
  254. package/es/components/template/Layout/components/RecommendationWorkspace/components/RecommendationImage/index.js +4 -3
  255. package/es/components/template/Layout/components/RecommendationWorkspace/components/RecommendationImage/styled.d.ts +1 -0
  256. package/es/components/template/Layout/components/RecommendationWorkspace/components/RecommendationImage/styled.js +31 -5
  257. package/es/components/template/Layout/components/RecommendationWorkspace/index.js +6 -14
  258. package/es/components/template/Layout/components/RecommendationWorkspace/styled.d.ts +1 -0
  259. package/es/components/template/Layout/components/RecommendationWorkspace/styled.js +18 -0
  260. package/es/components/template/Layout/constants/menuCode.d.ts +3 -0
  261. package/es/components/template/Layout/constants/menuCode.js +3 -0
  262. package/es/components/template/Layout/constants/permission.d.ts +3 -2
  263. package/es/components/template/Layout/constants/permission.js +3 -2
  264. package/es/components/template/Layout/stores/index.d.ts +1 -0
  265. package/es/components/template/Layout/styled.js +2 -2
  266. package/es/components/template/Layout/types.d.ts +1 -0
  267. package/es/components/template/Layout/utils/permission.d.ts +6 -1
  268. package/es/components/template/Layout/utils/permission.js +27 -4
  269. package/es/components/template/TemplateListing/components/CategoryListing/index.js +2 -4
  270. package/es/components/template/TemplateListing/hooks/useTemplateListing.js +1 -0
  271. package/es/config/index.d.ts +1 -0
  272. package/es/config/index.js +1 -0
  273. package/es/constants/api.d.ts +20 -0
  274. package/es/constants/api.js +20 -0
  275. package/es/constants/condition.d.ts +35 -0
  276. package/es/constants/condition.js +35 -0
  277. package/es/constants/dataTable.d.ts +16 -0
  278. package/es/constants/dataTable.js +16 -0
  279. package/es/constants/datetime.d.ts +4 -0
  280. package/es/constants/datetime.js +4 -0
  281. package/es/constants/postMessage.d.ts +1 -0
  282. package/es/constants/postMessage.js +1 -0
  283. package/es/constants/queries.d.ts +8 -0
  284. package/es/constants/queries.js +9 -0
  285. package/es/constants/styles.d.ts +12 -0
  286. package/es/constants/styles.js +12 -0
  287. package/es/constants/theme.js +4 -0
  288. package/es/hooks/index.d.ts +1 -0
  289. package/es/hooks/index.js +1 -0
  290. package/es/hooks/useUpdateEffect.d.ts +3 -0
  291. package/es/hooks/useUpdateEffect.js +12 -0
  292. package/es/locales/en/translation.json +87 -2
  293. package/es/locales/i18n.d.ts +170 -0
  294. package/es/locales/translations.d.ts +85 -0
  295. package/es/locales/vi/translation.json +87 -2
  296. package/es/models/DataTable/ColumnMetric.d.ts +15 -0
  297. package/es/models/DataTable/ColumnMetric.js +1 -0
  298. package/es/models/DataTable/DataTableListing.d.ts +22 -0
  299. package/es/models/DataTable/DataTableListing.js +1 -0
  300. package/es/models/DataTable/FilterMetric.d.ts +10 -0
  301. package/es/models/DataTable/FilterMetric.js +1 -0
  302. package/es/models/DataTable/ModifyColumn.d.ts +9 -0
  303. package/es/models/DataTable/ModifyColumn.js +1 -0
  304. package/es/models/DataTable/SavedFilter.d.ts +15 -0
  305. package/es/models/DataTable/SavedFilter.js +1 -0
  306. package/es/models/DataTable/SearchListing.d.ts +4 -0
  307. package/es/models/DataTable/SearchListing.js +1 -0
  308. package/es/models/DataTable/index.d.ts +4 -0
  309. package/es/models/DataTable/index.js +4 -0
  310. package/es/models/LeftMenu/FeatureMenu.d.ts +2 -0
  311. package/es/providers/AppConfigProvider/contexts/index.d.ts +2 -2
  312. package/es/providers/AppConfigProvider/contexts/index.js +1 -0
  313. package/es/providers/ConfigProvider/GlobalStyle.js +14 -6
  314. package/es/queries/DataTable/index.d.ts +99 -0
  315. package/es/queries/DataTable/index.js +97 -0
  316. package/es/queries/index.d.ts +1 -0
  317. package/es/queries/index.js +1 -0
  318. package/es/services/DataTable/index.d.ts +135 -1
  319. package/es/services/DataTable/index.js +224 -1
  320. package/es/test.js +336 -86
  321. package/es/tests/DataTableTest.js +114 -184
  322. package/es/tests/MatchesAnySelect.d.ts +2 -0
  323. package/es/tests/MatchesAnySelect.js +10 -0
  324. package/es/tests/index.d.ts +1 -0
  325. package/es/tests/index.js +1 -0
  326. package/es/tests/styled.js +2 -0
  327. package/es/types/actionsButton.d.ts +1 -1
  328. package/es/types/api.d.ts +4 -0
  329. package/es/types/config.d.ts +1 -1
  330. package/es/types/index.d.ts +1 -0
  331. package/es/types/index.js +1 -0
  332. package/es/utils/common.d.ts +14 -1
  333. package/es/utils/common.js +27 -1
  334. package/es/utils/dataTable.d.ts +12 -0
  335. package/es/utils/dataTable.js +43 -0
  336. package/es/utils/index.d.ts +1 -0
  337. package/es/utils/index.js +1 -0
  338. package/package.json +22 -18
  339. package/es/components/common/ConfigProvider/ConfigProvider.d.ts +0 -11
  340. package/es/components/common/ConfigProvider/ConfigProvider.js +0 -63
  341. package/es/components/common/ConfigProvider/GlobalStyle.d.ts +0 -5
  342. package/es/components/common/ConfigProvider/GlobalStyle.js +0 -868
  343. package/es/components/common/ConfigProvider/index.d.ts +0 -1
  344. package/es/components/common/ConfigProvider/index.js +0 -1
  345. package/es/components/organism/DataTable/components/Filter/FilterCondition/utils.d.ts +0 -0
  346. package/es/components/organism/DataTable/components/Filter/FilterCondition/utils.js +0 -1
  347. package/es/components/organism/DataTable/components/common/ApplyPopupContent/index.d.ts +0 -11
  348. package/es/components/organism/DataTable/components/common/index.d.ts +0 -0
  349. package/es/components/organism/DataTable/components/common/index.js +0 -1
  350. package/es/components/organism/DataTable/hooks/useTablePerformance.d.ts +0 -0
  351. package/es/components/organism/DataTable/hooks/useTablePerformance.js +0 -1
  352. /package/es/components/{organism/DataTable/components/common → molecules}/ApplyPopupContent/styled.d.ts +0 -0
  353. /package/es/components/molecules/SearchPopover/components/{PopoverAddField → PopoverSelect}/styles.scss +0 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,83 @@
1
+ ### Changelog
2
+
3
+ All notable changes to this project will be documented in this file. Dates are displayed in UTC.
4
+
5
+ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
+
7
+ #### [v1.7.5](https://bitbucket.org/git-vn/at.packages.frontend/compare/v1.7.5..v2.0.22)
8
+
9
+ - chore: update storybook version [`d13f194`](https://bitbucket.org/git-vn/at.packages.frontend/commits/d13f19462c2fe117934df7fe2e09fd0aa95a0167)
10
+ - feat: update input width when in view [`f27b982`](https://bitbucket.org/git-vn/at.packages.frontend/commits/f27b982a4427c414a1b5d5538641516a3d35aa6e)
11
+ - chore: update datatable components [`d38cf96`](https://bitbucket.org/git-vn/at.packages.frontend/commits/d38cf9687b2a6fd03396247d04c6ef37a6b030f1)
12
+
13
+ ### [v2.0.22](https://bitbucket.org/git-vn/at.packages.frontend/compare/v2.0.22..v1.7.4)
14
+
15
+ > 19 January 2023
16
+
17
+ #### [v1.7.4](https://bitbucket.org/git-vn/at.packages.frontend/compare/v1.7.4..v1.3.5-beta.446)
18
+
19
+ > 5 July 2024
20
+
21
+ - chore: update storybook version [`d13f194`](https://bitbucket.org/git-vn/at.packages.frontend/commits/d13f19462c2fe117934df7fe2e09fd0aa95a0167)
22
+ - feat(MatchesAnySelect): create and handle new MatchesAnySelect component [`a89c46e`](https://bitbucket.org/git-vn/at.packages.frontend/commits/a89c46e00e81d5a28ac37f42166dcab1c49212df)
23
+ - chore: update filter matches any datatable [`4db6dc8`](https://bitbucket.org/git-vn/at.packages.frontend/commits/4db6dc81b62a9168ca9fe1a5e39e414e473e7285)
24
+
25
+ #### [v1.3.5-beta.446](https://bitbucket.org/git-vn/at.packages.frontend/compare/v1.3.5-beta.446..v1.0.10)
26
+
27
+ > 2 July 2024
28
+
29
+ - chore(datatable): update useTableListing hook [`262def1`](https://bitbucket.org/git-vn/at.packages.frontend/commits/262def14c8a44ae73d1d9163696afc25e026ba45)
30
+ - chore: update data table component [`7fce77d`](https://bitbucket.org/git-vn/at.packages.frontend/commits/7fce77db8191ff7633679ea9befe28718eb40a88)
31
+ - chore(storybook): add addon-controls [`8ea93fc`](https://bitbucket.org/git-vn/at.packages.frontend/commits/8ea93fc4bb41c50f7a7025bc79d968d849e8d113)
32
+
33
+ #### [v1.0.10](https://bitbucket.org/git-vn/at.packages.frontend/compare/v1.0.10..v1.0.9)
34
+
35
+ > 20 June 2024
36
+
37
+ #### [v1.0.9](https://bitbucket.org/git-vn/at.packages.frontend/compare/v1.0.9..v1.0.8)
38
+
39
+ > 20 June 2024
40
+
41
+ #### [v1.0.8](https://bitbucket.org/git-vn/at.packages.frontend/compare/v1.0.8..v1.0.3)
42
+
43
+ > 20 June 2024
44
+
45
+ - feat(SelectAccount): add component [`2f1dea0`](https://bitbucket.org/git-vn/at.packages.frontend/commits/2f1dea035af07a01a6be8da47b531d52d2977bbe)
46
+ - fix: update style for calendar selection [`4347b91`](https://bitbucket.org/git-vn/at.packages.frontend/commits/4347b91f5bbe31caeb64478116c1822fe443f359)
47
+ - feat(EditorTab): use modal async in onCloseTab [`76aece8`](https://bitbucket.org/git-vn/at.packages.frontend/commits/76aece8cc7a44385d63019058daa1f8477c8fbcb)
48
+
49
+ #### [v1.0.3](https://bitbucket.org/git-vn/at.packages.frontend/compare/v1.0.3..v1.0.2)
50
+
51
+ > 17 January 2023
52
+
53
+ - update timeline package [`e198927`](https://bitbucket.org/git-vn/at.packages.frontend/commits/e198927d83931f9155e90ab9a1d9d3a5ac2989c4)
54
+ - update-ticket-editor [`38dd7b0`](https://bitbucket.org/git-vn/at.packages.frontend/commits/38dd7b0a7b2b0b58a63e725419e9b057e053f44f)
55
+ - update-upload-file-ticket-editor [`bb2f2ef`](https://bitbucket.org/git-vn/at.packages.frontend/commits/bb2f2ef1c46f4239ad716c897e53856a6368ea7d)
56
+
57
+ #### v1.0.2
58
+
59
+ > 4 January 2023
60
+
61
+ - Sprint10/vinlt/feature/date advanced [`#24`](https://bitbucket.org/git-vn/at.packages.frontend/pull-requests/24)
62
+ - Sprint10/sangndd/feature/extend value matches any [`#23`](https://bitbucket.org/git-vn/at.packages.frontend/pull-requests/23)
63
+ - Sprint10/sangndd/feature/extend value matches any [`#22`](https://bitbucket.org/git-vn/at.packages.frontend/pull-requests/22)
64
+ - [Scatter chart] Max X-axis giá trị bị lặp [`#20`](https://bitbucket.org/git-vn/at.packages.frontend/pull-requests/20)
65
+ - Sprint8/vinlt/feature/show data label short [`#18`](https://bitbucket.org/git-vn/at.packages.frontend/pull-requests/18)
66
+ - Fix duplicate axis max value [`#17`](https://bitbucket.org/git-vn/at.packages.frontend/pull-requests/17)
67
+ - [Antalyser] Một số bug khi nhập axis giá trị thập phân [`#16`](https://bitbucket.org/git-vn/at.packages.frontend/pull-requests/16)
68
+ - Sprint6/vinlt/fixbug/chart [`#15`](https://bitbucket.org/git-vn/at.packages.frontend/pull-requests/15)
69
+ - - Axis allows input of decimal values [`#14`](https://bitbucket.org/git-vn/at.packages.frontend/pull-requests/14)
70
+ - Sprint4/sangndd/feature/icons [`#12`](https://bitbucket.org/git-vn/at.packages.frontend/pull-requests/12)
71
+ - Sprint4/sangndd/feature/icons [`#11`](https://bitbucket.org/git-vn/at.packages.frontend/pull-requests/11)
72
+ - Sprint4/thanghn/fixbug/pivot alias border [`#10`](https://bitbucket.org/git-vn/at.packages.frontend/pull-requests/10)
73
+ - fix scroll dimension and total column [`#9`](https://bitbucket.org/git-vn/at.packages.frontend/pull-requests/9)
74
+ - [ANTALYSER][Filter][Khi filter filed có type date và semantic là "Month day" thì không load được danh sách các ngày trong tháng] [`#7`](https://bitbucket.org/git-vn/at.packages.frontend/pull-requests/7)
75
+ - [ANTALYSER][Pivot chart][Tính năng Add border shadow chưa hoạt động] [`#8`](https://bitbucket.org/git-vn/at.packages.frontend/pull-requests/8)
76
+ - Fix bug [ANTALYSER][Scatter chart][Label ở cột X và Y chưa đổi theo alias name đã change ở metric] [`#6`](https://bitbucket.org/git-vn/at.packages.frontend/pull-requests/6)
77
+ - Fix bug [Pivot chart] Row color không hiển thị được khi chọn hiển thị data của metric là Bar [`#5`](https://bitbucket.org/git-vn/at.packages.frontend/pull-requests/5)
78
+ - Fix bug package antscorp/charts [`#1`](https://bitbucket.org/git-vn/at.packages.frontend/pull-requests/1)
79
+ - Fix bug package antscorp/chart [`#2`](https://bitbucket.org/git-vn/at.packages.frontend/pull-requests/2)
80
+ - table component [`#1`](https://bitbucket.org/git-vn/at.packages.frontend/pull-requests/1)
81
+ - Update map indonesia [`fc94208`](https://bitbucket.org/git-vn/at.packages.frontend/commits/fc9420838b3f4087a5763017e9bf7e72ee8c5e31)
82
+ - Update geomap [`43f3098`](https://bitbucket.org/git-vn/at.packages.frontend/commits/43f3098506f30a215dc2b30734590e5c55f8b490)
83
+ - sync package master [`7476118`](https://bitbucket.org/git-vn/at.packages.frontend/commits/7476118de2fcfa1bd6b0a9e3c0f887b29fd149b6)
@@ -1,4 +1,9 @@
1
- /// <reference types="react" />
2
- export declare const Alert: import("styled-components").StyledComponent<import("react").FC<import("antd").AlertProps> & {
1
+ import React from 'react';
2
+ import type { AlertProps as AntdAlertProps } from 'antd';
3
+ export declare const AlertStyled: import("styled-components").StyledComponent<React.FC<AntdAlertProps> & {
3
4
  ErrorBoundary: typeof import("antd/es/alert/ErrorBoundary").default;
4
5
  }, any, {}, never>;
6
+ export interface AlertProps extends AntdAlertProps {
7
+ variant?: 'default' | 'outline';
8
+ }
9
+ export declare const Alert: React.FC<AlertProps>;
@@ -1,19 +1,53 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
1
12
  var _a, _b, _c, _d;
2
13
  // Libraries
14
+ import React from 'react';
3
15
  import styled from 'styled-components';
4
16
  import { Alert as AntdAlert } from 'antd';
5
17
  // Constants
6
- import { THEME } from '@antscorp/antsomi-ui/es/constants';
7
- export const Alert = styled(AntdAlert) `
8
- padding: 10px;
18
+ import { globalToken, THEME } from '@antscorp/antsomi-ui/es/constants';
19
+ import clsx from 'clsx';
20
+ import { WarningIcon } from '@antscorp/antsomi-ui/es/components/icons';
21
+ export const AlertStyled = styled(AntdAlert) `
22
+ padding: 15px !important;
9
23
  font-size: ${(_a = THEME.token) === null || _a === void 0 ? void 0 : _a.fontSize}px;
24
+ box-sizing: border-box;
25
+ gap: 15px;
10
26
 
11
- .antsomi-alert-message {
27
+ /* .antsomi-alert-message {
12
28
  color: ${(_b = THEME.token) === null || _b === void 0 ? void 0 : _b.colorTextBase} !important;
13
- }
29
+ } */
14
30
 
15
31
  &.antsomi-alert-info {
16
32
  background-color: ${(_c = THEME.token) === null || _c === void 0 ? void 0 : _c.bw1};
17
33
  border-color: ${(_d = THEME.token) === null || _d === void 0 ? void 0 : _d.bw1};
18
34
  }
35
+
36
+ &.antsomi-alert-outline {
37
+ background-color: transparent;
38
+
39
+ &.antsomi-alert-warning {
40
+ border-color: ${globalToken === null || globalToken === void 0 ? void 0 : globalToken.orange6} !important;
41
+ svg {
42
+ margin: 0;
43
+ }
44
+ }
45
+ }
19
46
  `;
47
+ export const Alert = props => {
48
+ const { variant = 'default', className, icon, type } = props, restProps = __rest(props, ["variant", "className", "icon", "type"]);
49
+ return (React.createElement(AlertStyled, Object.assign({ className: clsx(className, {
50
+ 'antsomi-alert-outline': variant === 'outline',
51
+ 'antsomi-alert-default': variant === 'default',
52
+ }), icon: variant === 'outline' && !icon && type === 'warning' ? React.createElement(WarningIcon, null) : icon, type: type }, restProps)));
53
+ };
@@ -1 +1,2 @@
1
- export * from './Flex';
1
+ export { Flex } from './Flex';
2
+ export type { FlexProps } from './Flex';
@@ -1 +1 @@
1
- export * from './Flex';
1
+ export { Flex } from './Flex';
@@ -96,7 +96,7 @@ OriginInput.defaultProps = {
96
96
  withWrapper: true,
97
97
  };
98
98
  export const Input = OriginInput;
99
- const SearchInput = props => (React.createElement(Input, Object.assign({ bordered: false, autoFocus: true, suffix: React.createElement(Icon, { type: "icon-ants-search-2", size: 24, color: globalToken === null || globalToken === void 0 ? void 0 : globalToken.bw8 }) }, props, { className: `${props.className} antsomi-search-input` })));
99
+ const SearchInput = props => (React.createElement(OriginInput, Object.assign({ bordered: false, autoFocus: true, suffix: React.createElement(Icon, { type: "icon-ants-search-2", size: 24, color: globalToken === null || globalToken === void 0 ? void 0 : globalToken.bw8 }) }, props, { className: `${props.className} antsomi-search-input` })));
100
100
  Input.CustomSearch = SearchInput;
101
101
  Input.TextArea = StyledInput.TextArea;
102
102
  Input.DefaultInput = AntdInput;
@@ -9,3 +9,9 @@ export declare const StyledInput: import("styled-components").StyledComponent<im
9
9
  export declare const TextArea: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef>>, any, {
10
10
  showBorder?: boolean | undefined;
11
11
  }, never>;
12
+ export declare const StyledSearchInput: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef>> & {
13
+ Group: import("react").FC<import("antd/es/input").GroupProps>;
14
+ Search: import("react").ForwardRefExoticComponent<import("antd/es/input").SearchProps & import("react").RefAttributes<import("antd").InputRef>>;
15
+ TextArea: import("react").ForwardRefExoticComponent<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef>>;
16
+ Password: import("react").ForwardRefExoticComponent<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef>>;
17
+ }, any, {}, never>;
@@ -107,3 +107,8 @@ export const TextArea = styled(InputAntd.TextArea) `
107
107
  border: 1px solid #e0e0e0;
108
108
  `}
109
109
  `;
110
+ export const StyledSearchInput = styled(InputAntd) `
111
+ &.antsomi-input-affix-wrapper:hover > input.antsomi-input {
112
+ background-color: transparent;
113
+ }
114
+ `;
@@ -1 +1,2 @@
1
1
  export { Popover } from './Popover';
2
+ export type { PopoverProps } from 'antd';
@@ -16,6 +16,7 @@ export const Radio = styled(AntdRadio) `
16
16
  border-color: ${(_c = THEME.token) === null || _c === void 0 ? void 0 : _c.colorPrimary};
17
17
 
18
18
  &::after {
19
+ flex-shrink: 0;
19
20
  background-color: ${(_d = THEME.token) === null || _d === void 0 ? void 0 : _d.colorPrimary};
20
21
  }
21
22
  }
@@ -12,16 +12,17 @@ var __rest = (this && this.__rest) || function (s, e) {
12
12
  import { Scrollbars as CustomScrollbars, } from 'react-custom-scrollbars';
13
13
  import { cloneDeep } from 'lodash';
14
14
  // Libraries
15
- import React, { useRef } from 'react';
15
+ import React, { forwardRef, useImperativeHandle, useRef } from 'react';
16
16
  // Styled
17
17
  import { HorizontalTrack, ThumbBar, VerticalTrack } from './styled';
18
18
  const THUMB_SIZE = 4;
19
19
  const MARGIN = 3;
20
- export const Scrollbars = props => {
20
+ export const Scrollbars = forwardRef((props, refProp) => {
21
21
  // Props
22
22
  const { autoHide = true, autoHeightMax = 0, className } = props, restProps = __rest(props, ["autoHide", "autoHeightMax", "className"]);
23
23
  // Refs
24
24
  const ref = useRef(null);
25
+ useImperativeHandle(refProp, () => ref.current, []);
25
26
  /**
26
27
  * Updates the size and position of the custom scrollbar thumbs based on the provided dimensions and scroll positions.
27
28
  *
@@ -57,7 +58,7 @@ export const Scrollbars = props => {
57
58
  ref.current.trackHorizontal.style.visibility =
58
59
  scrollWidth <= clientWidth ? 'hidden' : 'visible';
59
60
  };
60
- return (React.createElement(CustomScrollbars, Object.assign({ className: `custom-scrollbars ${className || ''}`, ref: ref, autoHide: autoHide, autoHeightMax: autoHeightMax, renderThumbVertical: props => React.createElement(ThumbBar, Object.assign({ className: "thumb-vertical" }, props)), renderThumbHorizontal: props => React.createElement(ThumbBar, Object.assign({ className: "thumb-horizontal" }, props)), renderTrackVertical: (_a) => {
61
+ return (React.createElement(CustomScrollbars, Object.assign({ className: `custom-scrollbars ${className || ''}`, autoHide: autoHide, autoHeightMax: autoHeightMax, renderThumbVertical: props => React.createElement(ThumbBar, Object.assign({ className: "thumb-vertical" }, props)), renderThumbHorizontal: props => React.createElement(ThumbBar, Object.assign({ className: "thumb-horizontal" }, props)), renderTrackVertical: (_a) => {
61
62
  var { style } = _a, restOfProps = __rest(_a, ["style"]);
62
63
  return (React.createElement(VerticalTrack, Object.assign({ className: "scrollbar-track" }, restOfProps, { style: Object.assign(Object.assign({}, style), { display: 'block' }) })));
63
64
  }, renderTrackHorizontal: (_a) => {
@@ -77,5 +78,5 @@ export const Scrollbars = props => {
77
78
  // }
78
79
  // Return a div element with the adjusted styles and original props, applying a custom class for styling
79
80
  return React.createElement("div", Object.assign({ className: "scrollbar-view" }, props, { style: newStyle }));
80
- }, onUpdate: onUpdate, hideTracksWhenNotNeeded: true }, restProps)));
81
- };
81
+ }, onUpdate: onUpdate, hideTracksWhenNotNeeded: true }, restProps, { ref: ref })));
82
+ });
@@ -11,6 +11,7 @@ export const SelectedIcon = styled.div `
11
11
  border: 1px solid #b8cfe6;
12
12
  border-radius: 100%;
13
13
  font-size: 14px;
14
+ line-height: 23px;
14
15
  color: ${(_a = THEME.token) === null || _a === void 0 ? void 0 : _a.colorPrimary};
15
16
  box-sizing: border-box;
16
17
  width: 100%;
@@ -49,6 +50,8 @@ export const StepsWrapper = styled(Steps) `
49
50
  width: 100%;
50
51
  height: 100%;
51
52
  display: flex;
53
+ line-height: 23px;
54
+ top: 0px;
52
55
  justify-content: center;
53
56
  align-items: center;
54
57
  }
@@ -21,7 +21,6 @@ export { Steps } from './Steps';
21
21
  export { Empty } from './Empty';
22
22
  export { Icon } from './Icon';
23
23
  export { Text } from './Text';
24
- export { Popover } from './Popover';
25
24
  export { RequiredLabel } from './RequiredLabel';
26
25
  export { Slider } from './Slider';
27
26
  export { Spin } from './Spin';
@@ -41,6 +40,7 @@ export * from './Scrollbars';
41
40
  export * from './Switch';
42
41
  export * from './Button';
43
42
  export * from './RateV2';
43
+ export * from './Popover';
44
44
  export type { SliderProps } from './Slider';
45
45
  export type { PaginationProps } from './Pagination';
46
46
  export type { InputDynamicProps } from './InputDynamic';
@@ -21,7 +21,6 @@ export { Steps } from './Steps';
21
21
  export { Empty } from './Empty';
22
22
  export { Icon } from './Icon';
23
23
  export { Text } from './Text';
24
- export { Popover } from './Popover';
25
24
  export { RequiredLabel } from './RequiredLabel';
26
25
  export { Slider } from './Slider';
27
26
  export { Spin } from './Spin';
@@ -41,3 +40,4 @@ export * from './Scrollbars';
41
40
  export * from './Switch';
42
41
  export * from './Button';
43
42
  export * from './RateV2';
43
+ export * from './Popover';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { IconProps } from './type';
3
+ export declare const DataIcon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,18 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ // Libraries
13
+ import React, { forwardRef } from 'react';
14
+ export const DataIcon = forwardRef((props, ref) => {
15
+ const restProps = __rest(props, []);
16
+ return (React.createElement("svg", Object.assign({ ref: ref, width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, restProps),
17
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M19.002 6.5C19.002 7.88071 15.6499 9 11.515 9C7.38 9 4.02795 7.88071 4.02795 6.5C4.02795 5.11929 7.38 4 11.515 4C15.6499 4 19.002 5.11929 19.002 6.5ZM18.974 12.131C18.974 13.42 15.622 14.465 11.487 14.465C7.352 14.465 4 13.419 4 12.131V8.46204C4 9.75104 7.352 10.795 11.487 10.795C15.622 10.795 18.974 9.74904 18.974 8.46204V12.131ZM18.974 17.8423C18.974 19.1313 15.622 20.1763 11.487 20.1763C7.352 20.1763 4 19.1303 4 17.8423V14.1733C4 15.4623 7.352 16.5063 11.487 16.5063C15.622 16.5063 18.974 15.4603 18.974 14.1733V17.8423Z", fill: "currentColor" })));
18
+ });
@@ -14,5 +14,5 @@ export const EventIcon = (_a) => {
14
14
  var props = __rest(_a, []);
15
15
  return (React.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "currentColor" }, props),
16
16
  React.createElement("path", { d: "M0 0h24v24H0V0z", fill: "none" }),
17
- React.createElement("path", { d: "M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zm0-12H5V6h14v2zm-7 5h5v5h-5z" })));
17
+ React.createElement("path", { d: "M16 13h-3c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1zm0-10v1H8V3c0-.55-.45-1-1-1s-1 .45-1 1v1H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-1V3c0-.55-.45-1-1-1s-1 .45-1 1zm2 17H6c-.55 0-1-.45-1-1V9h14v10c0 .55-.45 1-1 1z" })));
18
18
  };
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { IconProps } from './type';
3
+ export declare const TableIcon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,7 @@
1
+ import React, { forwardRef } from 'react';
2
+ import { useIcon } from './hooks/useIcon';
3
+ export const TableIcon = forwardRef((props, ref) => {
4
+ const { width, height } = useIcon(props);
5
+ return (React.createElement("svg", Object.assign({}, props, { ref: ref, width: width, height: height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }),
6
+ React.createElement("path", { d: "M3 14.0156V9.98438H6.98438V14.0156H3ZM3 18.9844V15H6.98438V18.9844H3ZM3 9V5.01562H6.98438V9H3ZM8.01562 14.0156V9.98438H21V14.0156H8.01562ZM8.01562 18.9844V15H21V18.9844H8.01562ZM8.01562 5.01562H21V9H8.01562V5.01562Z", fill: "currentColor" })));
7
+ });
@@ -0,0 +1,5 @@
1
+ import { IconProps } from '../type';
2
+ export declare const useIcon: (props: IconProps) => {
3
+ width: string | number | undefined;
4
+ height: string | number | undefined;
5
+ };
@@ -0,0 +1,9 @@
1
+ import { useMemo } from 'react';
2
+ export const useIcon = (props) => {
3
+ const { size = 24 } = props;
4
+ const [width, height] = useMemo(() => [size || (props === null || props === void 0 ? void 0 : props.width), size || (props === null || props === void 0 ? void 0 : props.height)], [size, props.width, props.height]);
5
+ return {
6
+ width,
7
+ height,
8
+ };
9
+ };
@@ -54,3 +54,5 @@ export { Interactive } from './Interactive';
54
54
  export { Web } from './Web';
55
55
  export { LocalMallIcon } from './LocalMallIcon';
56
56
  export { LoadingIcon } from './LoadingIcon';
57
+ export { TableIcon } from './TableIcon';
58
+ export { DataIcon } from './DataIcon';
@@ -54,3 +54,5 @@ export { Interactive } from './Interactive';
54
54
  export { Web } from './Web';
55
55
  export { LocalMallIcon } from './LocalMallIcon';
56
56
  export { LoadingIcon } from './LoadingIcon';
57
+ export { TableIcon } from './TableIcon';
58
+ export { DataIcon } from './DataIcon';
@@ -1,3 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  export interface IconProps extends React.ComponentPropsWithoutRef<'svg'> {
3
+ size?: number;
3
4
  }
@@ -4,6 +4,7 @@ export interface AccountListingProps {
4
4
  className?: string;
5
5
  apiConfig: {
6
6
  domain: string;
7
+ permissionDomain?: string;
7
8
  token: string;
8
9
  userId: number;
9
10
  portalId?: number;
@@ -7,6 +7,7 @@ interface AccountData {
7
7
  }
8
8
  export declare const useAccountSelection: (apiConfig: {
9
9
  domain: string;
10
+ permissionDomain?: string;
10
11
  token: string;
11
12
  userId: number;
12
13
  portalId?: number;
@@ -13,7 +13,7 @@ const isUsePermissionAccount = (appCode) => {
13
13
  return false;
14
14
  };
15
15
  export const useAccountSelection = (apiConfig) => {
16
- const { domain, token, userId, appCode, menuCode } = apiConfig;
16
+ const { permissionDomain, token, userId, appCode, menuCode } = apiConfig;
17
17
  const { data } = useGetAccountList({
18
18
  apiConfig,
19
19
  options: {
@@ -26,13 +26,13 @@ export const useAccountSelection = (apiConfig) => {
26
26
  _user_id: userId,
27
27
  _app_code: appCode || '',
28
28
  _token: token,
29
- domain,
29
+ domain: permissionDomain || '',
30
30
  appCode: appCode || '',
31
31
  fullParent: true,
32
32
  menuCode: menuCode || appCode || '',
33
33
  },
34
34
  options: {
35
- enabled: isUsePermissionAccount(appCode || '') && !!token && !!userId,
35
+ enabled: isUsePermissionAccount(appCode || '') && !!token && !!userId && !!permissionDomain,
36
36
  },
37
37
  });
38
38
  const { data: recentData } = useGetRecentAccount({
@@ -1,5 +1,5 @@
1
1
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
2
- import { THEME } from '@antscorp/antsomi-ui/es/constants';
2
+ import { globalToken, THEME } from '@antscorp/antsomi-ui/es/constants';
3
3
  import styled from 'styled-components';
4
4
  export const AccountSelectionStyled = styled.div `
5
5
  background-color: white;
@@ -13,6 +13,12 @@ export const AccountSelectionStyled = styled.div `
13
13
  padding: 8px 10px;
14
14
  height: 40px;
15
15
  box-sizing: border-box;
16
+ border-color: ${globalToken === null || globalToken === void 0 ? void 0 : globalToken.bw3};
17
+ &:hover,
18
+ &:focus,
19
+ &:focus-within {
20
+ border-color: ${globalToken === null || globalToken === void 0 ? void 0 : globalToken.bw3};
21
+ }
16
22
  }
17
23
 
18
24
  .recent-text {
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { ButtonProps, FlexProps } from '@antscorp/antsomi-ui/es/components/atoms';
3
+ export interface ApplyPopupContentProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ /** The title of the popup content */
5
+ title?: string;
6
+ /** Properties for the cancel button. */
7
+ cancelButtonProps?: ButtonProps;
8
+ /** Properties for the apply button. */
9
+ applyButtonProps?: ButtonProps;
10
+ /** Properties for the footer Flex container, excluding children. */
11
+ footerProps?: Omit<FlexProps, 'children'>;
12
+ /** Handler for the cancel button click event. */
13
+ onCancel?: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
14
+ /** Handler for the apply button click event. */
15
+ onApply?: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
16
+ }
17
+ export declare const ApplyPopupContent: React.FC<React.PropsWithChildren<ApplyPopupContentProps>>;
@@ -11,6 +11,7 @@ var __rest = (this && this.__rest) || function (s, e) {
11
11
  };
12
12
  // Libraries
13
13
  import React from 'react';
14
+ import clsx from 'clsx';
14
15
  // Components
15
16
  import { Flex, Typography, Icon, Button, } from '@antscorp/antsomi-ui/es/components/atoms';
16
17
  // Styled
@@ -21,7 +22,8 @@ import i18nInstance from '@antscorp/antsomi-ui/es/locales/i18n';
21
22
  import { translations } from '@antscorp/antsomi-ui/es/locales/translations';
22
23
  const { Text } = Typography;
23
24
  export const ApplyPopupContent = props => {
24
- const { title, children, cancelButtonProps, applyButtonProps, onApply, onCancel } = props, restProps = __rest(props, ["title", "children", "cancelButtonProps", "applyButtonProps", "onApply", "onCancel"]);
25
+ const { title, children, cancelButtonProps, applyButtonProps, footerProps, onApply, onCancel } = props, restProps = __rest(props, ["title", "children", "cancelButtonProps", "applyButtonProps", "footerProps", "onApply", "onCancel"]);
26
+ const { align = 'center', justify = 'flex-end' } = footerProps || {};
25
27
  const { t } = i18nInstance;
26
28
  return (React.createElement(ContentWrapper, Object.assign({}, restProps),
27
29
  React.createElement(Flex, { className: "content__body", vertical: true, gap: 20 },
@@ -30,7 +32,7 @@ export const ApplyPopupContent = props => {
30
32
  React.createElement(CloseButton, { align: "center", justify: "center", onClick: onCancel },
31
33
  React.createElement(Icon, { type: "icon-ants-remove-slim" }))),
32
34
  children),
33
- React.createElement("div", { className: "content__footer" },
35
+ React.createElement(Flex, Object.assign({}, footerProps, { align: align, justify: justify, className: clsx('content__footer', footerProps === null || footerProps === void 0 ? void 0 : footerProps.className) }),
34
36
  React.createElement(Button, Object.assign({ onClick: onCancel }, cancelButtonProps), t(translations.cancel.title).toString()),
35
37
  React.createElement(Button, Object.assign({ type: "primary", onClick: onApply }, applyButtonProps), t(translations.apply.title).toString()))));
36
38
  };
@@ -0,0 +1,2 @@
1
+ export { ApplyPopupContent } from './ApplyPopupContent';
2
+ export type { ApplyPopupContentProps } from './ApplyPopupContent';
@@ -0,0 +1 @@
1
+ export { ApplyPopupContent } from './ApplyPopupContent';
@@ -17,8 +17,6 @@ export const ContentWrapper = styled.div `
17
17
 
18
18
  &__footer {
19
19
  display: flex;
20
- align-items: center;
21
- justify-content: flex-end;
22
20
  padding: 15px;
23
21
  gap: 10px;
24
22
  border-top: 1px solid ${globalToken === null || globalToken === void 0 ? void 0 : globalToken.bw3};
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare const StyledPopover: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").PopoverProps & import("react").RefAttributes<unknown>> & {
2
+ export declare const StyledPopover: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/popover").PopoverProps & import("react").RefAttributes<unknown>> & {
3
3
  _InternalPanelDoNotUseOrYouWillBeFired: import("react").FC<import("antd/es/popover/PurePanel").PurePanelProps>;
4
4
  }, any, {}, never>;
5
5
  export declare const StyledPopoverContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,5 +1,7 @@
1
- import { Popover } from '@antscorp/antsomi-ui/es/components/atoms';
1
+ // Libraries
2
2
  import styled from 'styled-components';
3
+ // Components
4
+ import { Popover } from '@antscorp/antsomi-ui/es/components/atoms/Popover';
3
5
  export const StyledPopover = styled(Popover) `
4
6
  font-size: 12px;
5
7
  `;
@@ -1,8 +1,14 @@
1
1
  // Libraries
2
+ import React from 'react';
2
3
  import { DatePicker as AntdDatePicker } from 'antd';
3
4
  // Components
4
5
  import { AdvancedPicker } from './components/AdvancedPicker';
5
6
  import { AdvancedRangePicker } from './components/AdvancedRangePicker';
7
+ import { EventIcon } from '../../icons';
8
+ import { globalToken } from '@antscorp/antsomi-ui/es/constants';
6
9
  export const DatePicker = AntdDatePicker;
10
+ DatePicker.defaultProps = {
11
+ suffixIcon: React.createElement(EventIcon, { width: 20, height: 20, color: globalToken === null || globalToken === void 0 ? void 0 : globalToken.bw8 }),
12
+ };
7
13
  DatePicker.AdvancedPicker = AdvancedPicker;
8
14
  DatePicker.AdvancedRangePicker = AdvancedRangePicker;
@@ -15,6 +15,7 @@ export interface AdvancedPickerProps {
15
15
  format?: string;
16
16
  formatInputDisplay?: string;
17
17
  inputStyle?: React.CSSProperties;
18
+ popupStyle?: React.CSSProperties;
18
19
  disableAfterDate?: string;
19
20
  disableBeforeDate?: string;
20
21
  errorMessage?: string;
@@ -1,3 +1,4 @@
1
+ var _a, _b;
1
2
  /* eslint-disable react/no-unused-prop-types */
2
3
  // Libraries
3
4
  import React, { useEffect, useMemo, useCallback, useState } from 'react';
@@ -29,7 +30,7 @@ const { Text } = Typography;
29
30
  export const AdvancedPicker = props => {
30
31
  var _a, _b;
31
32
  // Props
32
- const { label, inputStyle, dateTypeKeysShow, calculationTypeKeysShow, showCalculationTypeCondition, defaultDateTypeKey, valueType, option: propsOption, operatorKey, type, date: propsDate, format, formatInputDisplay, errorMessage, disableAfterDate, disableBeforeDate, showTime, disabled, timezone, isViewMode, onUpdatedNewDate, onApply, } = props;
33
+ const { label, inputStyle, popupStyle, dateTypeKeysShow, calculationTypeKeysShow, showCalculationTypeCondition, defaultDateTypeKey, valueType, option: propsOption, operatorKey, type, date: propsDate, format, formatInputDisplay, errorMessage, disableAfterDate, disableBeforeDate, showTime, disabled, timezone, isViewMode, onUpdatedNewDate, onApply, } = props;
33
34
  // Memo
34
35
  const newDateTypes = useMemo(() => {
35
36
  if (dateTypeKeysShow && dateTypeKeysShow.length) {
@@ -386,7 +387,7 @@ export const AdvancedPicker = props => {
386
387
  !!label && typeof label === 'string' ? (React.createElement(Text, { style: { color: '#666666' } }, label)) : (label),
387
388
  option.dateType.value === 'fixed' &&
388
389
  !['WEEK', 'DAY_OF_WEEK', 'MONTH_DAY', 'DAY'].includes(valueType) ? (React.createElement(Tooltip, { title: selectedDateTitle },
389
- React.createElement(DatePicker, { disabled: disabled, open: !disabled && isOpen, allowClear: false, inputReadOnly: true, style: Object.assign({ textOverflow: 'ellipsis' }, inputStyle), status: errorMessage ? 'error' : '', inputRender: () => (React.createElement(DatePickerCustomInput, { readOnly: true, placeholder: "Select Date", value: selectedDateTitle, onClick: () => toggleOpenDropdown() })), value: currDate,
390
+ React.createElement(DatePicker, { disabled: disabled, open: !disabled && isOpen, popupStyle: popupStyle, allowClear: false, inputReadOnly: true, style: Object.assign({ textOverflow: 'ellipsis' }, inputStyle), status: errorMessage ? 'error' : '', inputRender: () => (React.createElement(DatePickerCustomInput, { readOnly: true, placeholder: "Select Date", value: selectedDateTitle, onClick: () => toggleOpenDropdown() })), value: currDate,
390
391
  // style={{
391
392
  // width: 120,
392
393
  // }}
@@ -433,6 +434,7 @@ export const AdvancedPicker = props => {
433
434
  AdvancedPicker.defaultProps = {
434
435
  label: '',
435
436
  type: ADVANCED_PICKER_TYPE.START_DATE.value,
437
+ popupStyle: { borderRadius: (_b = (_a = THEME.token) === null || _a === void 0 ? void 0 : _a.borderRadiusLG) !== null && _b !== void 0 ? _b : 10 },
436
438
  operatorKey: 'after',
437
439
  dateTypeKeysShow: [],
438
440
  date: dayjs().format(DEFAULT_DATE_FORMAT),
@@ -19,6 +19,7 @@ export interface AdvancedRangePickerProps {
19
19
  timezone?: string;
20
20
  separator?: ReactNode;
21
21
  inputStyle?: React.CSSProperties;
22
+ popupStyle?: React.CSSProperties;
22
23
  isViewMode?: boolean;
23
24
  onChange?: ({ timeRange, mode }: TOnChangePayload) => void;
24
25
  }