@orbe-agro/client-core 5.3.85 → 5.3.89

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 (502) hide show
  1. package/dist/@ecme/assets/styles/app.css +1 -1
  2. package/dist/@ecme/assets/styles/components/_dialog.css +1 -1
  3. package/dist/@ecme/assets/styles/components/_drawer.css +1 -1
  4. package/dist/@ecme/assets/styles/components/_scrollbar.css +1 -1
  5. package/dist/@ecme/assets/styles/components/_switcher.css +1 -1
  6. package/dist/@ecme/assets/styles/components/_upload.css +1 -1
  7. package/dist/@ecme/assets/styles/components/index.css +1 -1
  8. package/dist/@ecme/assets/styles/tailwind/index.css +1 -1
  9. package/dist/@ecme/auth/AuthProvider.js +58 -62
  10. package/dist/@ecme/auth/AuthProvider.js.map +1 -1
  11. package/dist/@ecme/components/docs/DemoCard/DemoCard.js +18 -19
  12. package/dist/@ecme/components/docs/DemoCard/DemoCard.js.map +1 -1
  13. package/dist/@ecme/components/layouts/PostLoginLayout/PostLoginLayout.js +29 -30
  14. package/dist/@ecme/components/layouts/PostLoginLayout/PostLoginLayout.js.map +1 -1
  15. package/dist/@ecme/components/layouts/PostLoginLayout/components/ContentOverlay.js +56 -56
  16. package/dist/@ecme/components/layouts/PostLoginLayout/components/ContentOverlay.js.map +1 -1
  17. package/dist/@ecme/components/shared/Affix.js +9 -10
  18. package/dist/@ecme/components/shared/Affix.js.map +1 -1
  19. package/dist/@ecme/components/shared/AutoComplete.js +27 -28
  20. package/dist/@ecme/components/shared/AutoComplete.js.map +1 -1
  21. package/dist/@ecme/components/shared/CalendarView.js +19 -20
  22. package/dist/@ecme/components/shared/CalendarView.js.map +1 -1
  23. package/dist/@ecme/components/shared/ConfirmDialog.js +16 -16
  24. package/dist/@ecme/components/shared/ConfirmDialog.js.map +1 -1
  25. package/dist/@ecme/components/shared/DataTable.js +151 -151
  26. package/dist/@ecme/components/shared/DataTable.js.map +1 -1
  27. package/dist/@ecme/components/shared/DebounceInput.js +11 -12
  28. package/dist/@ecme/components/shared/DebounceInput.js.map +1 -1
  29. package/dist/@ecme/components/shared/GanttChart/GanttChart.js +20 -20
  30. package/dist/@ecme/components/shared/GanttChart/GanttChart.js.map +1 -1
  31. package/dist/@ecme/components/shared/GanttChart/TaskListTable.js +22 -22
  32. package/dist/@ecme/components/shared/GanttChart/TaskListTable.js.map +1 -1
  33. package/dist/@ecme/components/shared/ImageGallery.js +18 -18
  34. package/dist/@ecme/components/shared/ImageGallery.js.map +1 -1
  35. package/dist/@ecme/components/shared/Masonry/Masonry.js +25 -25
  36. package/dist/@ecme/components/shared/Masonry/Masonry.js.map +1 -1
  37. package/dist/@ecme/components/shared/OtpInput.js +54 -56
  38. package/dist/@ecme/components/shared/OtpInput.js.map +1 -1
  39. package/dist/@ecme/components/shared/PasswordInput.js +6 -6
  40. package/dist/@ecme/components/shared/PasswordInput.js.map +1 -1
  41. package/dist/@ecme/components/shared/RegionMap.js +9 -9
  42. package/dist/@ecme/components/shared/RegionMap.js.map +1 -1
  43. package/dist/@ecme/components/shared/RichTextEditor/RichTextEditor.js +47 -47
  44. package/dist/@ecme/components/shared/RichTextEditor/RichTextEditor.js.map +1 -1
  45. package/dist/@ecme/components/shared/UsersAvatarGroup.js +24 -24
  46. package/dist/@ecme/components/shared/UsersAvatarGroup.js.map +1 -1
  47. package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuContent.js +63 -69
  48. package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuContent.js.map +1 -1
  49. package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuDropdown.js +48 -48
  50. package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuDropdown.js.map +1 -1
  51. package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuDropdownContent.js +220 -231
  52. package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuDropdownContent.js.map +1 -1
  53. package/dist/@ecme/components/template/LanguageSelector.js +10 -13
  54. package/dist/@ecme/components/template/LanguageSelector.js.map +1 -1
  55. package/dist/@ecme/components/template/Search.js +85 -92
  56. package/dist/@ecme/components/template/Search.js.map +1 -1
  57. package/dist/@ecme/components/template/ThemeConfigurator/DirectionSwitcher.js +18 -18
  58. package/dist/@ecme/components/template/ThemeConfigurator/DirectionSwitcher.js.map +1 -1
  59. package/dist/@ecme/components/template/VerticalMenuContent/VerticalCollapsedMenuItem.js +17 -17
  60. package/dist/@ecme/components/template/VerticalMenuContent/VerticalCollapsedMenuItem.js.map +1 -1
  61. package/dist/@ecme/components/template/VerticalMenuContent/VerticalMenuContent.js +59 -59
  62. package/dist/@ecme/components/template/VerticalMenuContent/VerticalMenuContent.js.map +1 -1
  63. package/dist/@ecme/components/template/VerticalMenuContent/VerticalSingleMenuItem.js +34 -34
  64. package/dist/@ecme/components/template/VerticalMenuContent/VerticalSingleMenuItem.js.map +1 -1
  65. package/dist/@ecme/components/ui/Alert/Alert.js +29 -29
  66. package/dist/@ecme/components/ui/Alert/Alert.js.map +1 -1
  67. package/dist/@ecme/components/ui/Avatar/AvatarGroup.js +30 -30
  68. package/dist/@ecme/components/ui/Avatar/AvatarGroup.js.map +1 -1
  69. package/dist/@ecme/components/ui/Button/Button.js +66 -67
  70. package/dist/@ecme/components/ui/Button/Button.js.map +1 -1
  71. package/dist/@ecme/components/ui/Card/Card.js +39 -40
  72. package/dist/@ecme/components/ui/Card/Card.js.map +1 -1
  73. package/dist/@ecme/components/ui/Checkbox/Checkbox.js +42 -42
  74. package/dist/@ecme/components/ui/Checkbox/Checkbox.js.map +1 -1
  75. package/dist/@ecme/components/ui/Checkbox/Group.js +27 -27
  76. package/dist/@ecme/components/ui/Checkbox/Group.js.map +1 -1
  77. package/dist/@ecme/components/ui/DatePicker/BasePicker.js +67 -67
  78. package/dist/@ecme/components/ui/DatePicker/BasePicker.js.map +1 -1
  79. package/dist/@ecme/components/ui/DatePicker/Calendar.js +18 -18
  80. package/dist/@ecme/components/ui/DatePicker/Calendar.js.map +1 -1
  81. package/dist/@ecme/components/ui/DatePicker/CalendarBase.js +77 -78
  82. package/dist/@ecme/components/ui/DatePicker/CalendarBase.js.map +1 -1
  83. package/dist/@ecme/components/ui/DatePicker/DatePicker.js +67 -71
  84. package/dist/@ecme/components/ui/DatePicker/DatePicker.js.map +1 -1
  85. package/dist/@ecme/components/ui/DatePicker/DatePickerRange.js +94 -98
  86. package/dist/@ecme/components/ui/DatePicker/DatePickerRange.js.map +1 -1
  87. package/dist/@ecme/components/ui/DatePicker/DateTimepicker.js +51 -58
  88. package/dist/@ecme/components/ui/DatePicker/DateTimepicker.js.map +1 -1
  89. package/dist/@ecme/components/ui/DatePicker/tables/DateTable.js +67 -67
  90. package/dist/@ecme/components/ui/DatePicker/tables/DateTable.js.map +1 -1
  91. package/dist/@ecme/components/ui/DatePicker/tables/components/Day.js +12 -12
  92. package/dist/@ecme/components/ui/DatePicker/tables/components/Day.js.map +1 -1
  93. package/dist/@ecme/components/ui/Dialog/Dialog.js +25 -25
  94. package/dist/@ecme/components/ui/Dialog/Dialog.js.map +1 -1
  95. package/dist/@ecme/components/ui/Drawer/Drawer.js +32 -32
  96. package/dist/@ecme/components/ui/Drawer/Drawer.js.map +1 -1
  97. package/dist/@ecme/components/ui/Dropdown/DropdownItem.js +58 -58
  98. package/dist/@ecme/components/ui/Dropdown/DropdownItem.js.map +1 -1
  99. package/dist/@ecme/components/ui/Dropdown/DropdownMenu.js +99 -100
  100. package/dist/@ecme/components/ui/Dropdown/DropdownMenu.js.map +1 -1
  101. package/dist/@ecme/components/ui/Dropdown/DropdownSubItem.js +26 -26
  102. package/dist/@ecme/components/ui/Dropdown/DropdownSubItem.js.map +1 -1
  103. package/dist/@ecme/components/ui/Form/FormContainer.js +17 -17
  104. package/dist/@ecme/components/ui/Form/FormContainer.js.map +1 -1
  105. package/dist/@ecme/components/ui/Form/FormItem.js +38 -38
  106. package/dist/@ecme/components/ui/Form/FormItem.js.map +1 -1
  107. package/dist/@ecme/components/ui/Input/Input.js +50 -52
  108. package/dist/@ecme/components/ui/Input/Input.js.map +1 -1
  109. package/dist/@ecme/components/ui/InputGroup/Addon.js +12 -13
  110. package/dist/@ecme/components/ui/InputGroup/Addon.js.map +1 -1
  111. package/dist/@ecme/components/ui/InputGroup/InputGroup.js +10 -11
  112. package/dist/@ecme/components/ui/InputGroup/InputGroup.js.map +1 -1
  113. package/dist/@ecme/components/ui/Notification/Notification.js +19 -19
  114. package/dist/@ecme/components/ui/Notification/Notification.js.map +1 -1
  115. package/dist/@ecme/components/ui/Pagination/Pagination.js +45 -45
  116. package/dist/@ecme/components/ui/Pagination/Pagination.js.map +1 -1
  117. package/dist/@ecme/components/ui/Radio/Group.js +28 -28
  118. package/dist/@ecme/components/ui/Radio/Group.js.map +1 -1
  119. package/dist/@ecme/components/ui/Radio/Radio.js +42 -42
  120. package/dist/@ecme/components/ui/Radio/Radio.js.map +1 -1
  121. package/dist/@ecme/components/ui/Segment/SegmentItem.js +53 -53
  122. package/dist/@ecme/components/ui/Segment/SegmentItem.js.map +1 -1
  123. package/dist/@ecme/components/ui/Select/Select.js +40 -41
  124. package/dist/@ecme/components/ui/Select/Select.js.map +1 -1
  125. package/dist/@ecme/components/ui/Steps/StepItem.js +33 -33
  126. package/dist/@ecme/components/ui/Steps/StepItem.js.map +1 -1
  127. package/dist/@ecme/components/ui/Switcher/Switcher.js +24 -24
  128. package/dist/@ecme/components/ui/Switcher/Switcher.js.map +1 -1
  129. package/dist/@ecme/components/ui/Tabs/TabNav.js +22 -22
  130. package/dist/@ecme/components/ui/Tabs/TabNav.js.map +1 -1
  131. package/dist/@ecme/components/ui/TimeInput/AmPmInput.js +25 -27
  132. package/dist/@ecme/components/ui/TimeInput/AmPmInput.js.map +1 -1
  133. package/dist/@ecme/components/ui/TimeInput/TimeInput.js +130 -135
  134. package/dist/@ecme/components/ui/TimeInput/TimeInput.js.map +1 -1
  135. package/dist/@ecme/components/ui/TimeInput/TimeInputField.js +22 -24
  136. package/dist/@ecme/components/ui/TimeInput/TimeInputField.js.map +1 -1
  137. package/dist/@ecme/components/ui/TimeInput/TimeInputRange.js +65 -68
  138. package/dist/@ecme/components/ui/TimeInput/TimeInputRange.js.map +1 -1
  139. package/dist/@ecme/components/ui/TimeInput/utils/createAmPmHandler.js +11 -12
  140. package/dist/@ecme/components/ui/TimeInput/utils/createAmPmHandler.js.map +1 -1
  141. package/dist/@ecme/components/ui/TimeInput/utils/createTimeHandler.js +19 -20
  142. package/dist/@ecme/components/ui/TimeInput/utils/createTimeHandler.js.map +1 -1
  143. package/dist/@ecme/components/ui/Upload/Upload.js +67 -68
  144. package/dist/@ecme/components/ui/Upload/Upload.js.map +1 -1
  145. package/dist/@ecme/components/ui/hooks/useCallbackRef.js +7 -10
  146. package/dist/@ecme/components/ui/hooks/useCallbackRef.js.map +1 -1
  147. package/dist/@ecme/components/ui/hooks/useRootClose.js +32 -32
  148. package/dist/@ecme/components/ui/hooks/useRootClose.js.map +1 -1
  149. package/dist/@ecme/components/ui/hooks/useTimeout.js +12 -13
  150. package/dist/@ecme/components/ui/hooks/useTimeout.js.map +1 -1
  151. package/dist/@ecme/components/ui/toast/ToastWrapper.js +58 -61
  152. package/dist/@ecme/components/ui/toast/ToastWrapper.js.map +1 -1
  153. package/dist/@ecme/components/ui/toast/toast.js +16 -19
  154. package/dist/@ecme/components/ui/toast/toast.js.map +1 -1
  155. package/dist/@ecme/components/view/Activity/ActivityEvent.js +63 -67
  156. package/dist/@ecme/components/view/Activity/ActivityEvent.js.map +1 -1
  157. package/dist/@ecme/components/view/ChatBox/components/Attachment.js +8 -9
  158. package/dist/@ecme/components/view/ChatBox/components/Attachment.js.map +1 -1
  159. package/dist/@ecme/components/view/ChatBox/components/ChatInput.js +37 -39
  160. package/dist/@ecme/components/view/ChatBox/components/ChatInput.js.map +1 -1
  161. package/dist/@ecme/components/view/ChatBox/components/Message.js +10 -10
  162. package/dist/@ecme/components/view/ChatBox/components/Message.js.map +1 -1
  163. package/dist/@ecme/components/view/CreditCardDialog/CreditCardDialog.js +36 -37
  164. package/dist/@ecme/components/view/CreditCardDialog/CreditCardDialog.js.map +1 -1
  165. package/dist/@ecme/components/view/TaskItem/TaskItem.js +33 -33
  166. package/dist/@ecme/components/view/TaskItem/TaskItem.js.map +1 -1
  167. package/dist/@ecme/mock/fakeApi/chatFakeApi.js +16 -18
  168. package/dist/@ecme/mock/fakeApi/chatFakeApi.js.map +1 -1
  169. package/dist/@ecme/mock/fakeApi/customersFakeApi.js +10 -11
  170. package/dist/@ecme/mock/fakeApi/customersFakeApi.js.map +1 -1
  171. package/dist/@ecme/mock/fakeApi/helpCenterFakeApi.js +10 -11
  172. package/dist/@ecme/mock/fakeApi/helpCenterFakeApi.js.map +1 -1
  173. package/dist/@ecme/mock/fakeApi/mailFakeApi.js +9 -10
  174. package/dist/@ecme/mock/fakeApi/mailFakeApi.js.map +1 -1
  175. package/dist/@ecme/mock/fakeApi/ordersFakeApi.js +9 -10
  176. package/dist/@ecme/mock/fakeApi/ordersFakeApi.js.map +1 -1
  177. package/dist/@ecme/mock/fakeApi/productsFakeApi.js +7 -8
  178. package/dist/@ecme/mock/fakeApi/productsFakeApi.js.map +1 -1
  179. package/dist/@ecme/mock/fakeApi/projectsFakeApi.js +10 -11
  180. package/dist/@ecme/mock/fakeApi/projectsFakeApi.js.map +1 -1
  181. package/dist/@ecme/utils/hooks/useInfiniteScroll.js +11 -11
  182. package/dist/@ecme/utils/hooks/useInfiniteScroll.js.map +1 -1
  183. package/dist/@ecme/utils/hooks/useMenuActive.js +11 -12
  184. package/dist/@ecme/utils/hooks/useMenuActive.js.map +1 -1
  185. package/dist/@ecme/views/auth/ForgotPassword/components/ForgotPasswordForm.js +36 -37
  186. package/dist/@ecme/views/auth/ForgotPassword/components/ForgotPasswordForm.js.map +1 -1
  187. package/dist/@ecme/views/auth/OtpVerification/OtpVerification.js +14 -14
  188. package/dist/@ecme/views/auth/OtpVerification/OtpVerification.js.map +1 -1
  189. package/dist/@ecme/views/auth/OtpVerification/components/OtpVerificationForm.js +41 -42
  190. package/dist/@ecme/views/auth/OtpVerification/components/OtpVerificationForm.js.map +1 -1
  191. package/dist/@ecme/views/auth/ResetPassword/components/ResetPasswordForm.js +59 -60
  192. package/dist/@ecme/views/auth/ResetPassword/components/ResetPasswordForm.js.map +1 -1
  193. package/dist/@ecme/views/auth/SignIn/components/OauthSignIn.js +27 -27
  194. package/dist/@ecme/views/auth/SignIn/components/OauthSignIn.js.map +1 -1
  195. package/dist/@ecme/views/auth/SignIn/components/SignInForm.js +57 -58
  196. package/dist/@ecme/views/auth/SignIn/components/SignInForm.js.map +1 -1
  197. package/dist/@ecme/views/auth/SignUp/components/SignUpForm.js +37 -38
  198. package/dist/@ecme/views/auth/SignUp/components/SignUpForm.js.map +1 -1
  199. package/dist/@ecme/views/concepts/accounts/Pricing/components/PaymentDialog.js +44 -45
  200. package/dist/@ecme/views/concepts/accounts/Pricing/components/PaymentDialog.js.map +1 -1
  201. package/dist/@ecme/views/concepts/accounts/Pricing/components/Plans.js +5 -5
  202. package/dist/@ecme/views/concepts/accounts/Pricing/components/Plans.js.map +1 -1
  203. package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsAccessDialog.js +34 -35
  204. package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsAccessDialog.js.map +1 -1
  205. package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsUserAction.js +26 -26
  206. package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsUserAction.js.map +1 -1
  207. package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsUserTable.js +28 -29
  208. package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsUserTable.js.map +1 -1
  209. package/dist/@ecme/views/concepts/accounts/RolesPermissions/hooks/useRolePermissonsUsers.js +8 -8
  210. package/dist/@ecme/views/concepts/accounts/RolesPermissions/hooks/useRolePermissonsUsers.js.map +1 -1
  211. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingMobileMenu.js +10 -11
  212. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingMobileMenu.js.map +1 -1
  213. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsBilling.js +48 -49
  214. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsBilling.js.map +1 -1
  215. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsMenu.js +14 -14
  216. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsMenu.js.map +1 -1
  217. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsProfile.js +102 -103
  218. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsProfile.js.map +1 -1
  219. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsSecurity.js +34 -35
  220. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsSecurity.js.map +1 -1
  221. package/dist/@ecme/views/concepts/ai/Chat/components/ChatCustomAction.js +16 -16
  222. package/dist/@ecme/views/concepts/ai/Chat/components/ChatCustomAction.js.map +1 -1
  223. package/dist/@ecme/views/concepts/ai/Chat/components/ChatCustomContent.js +76 -78
  224. package/dist/@ecme/views/concepts/ai/Chat/components/ChatCustomContent.js.map +1 -1
  225. package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistory.js +23 -23
  226. package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistory.js.map +1 -1
  227. package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistoryItem.js +48 -49
  228. package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistoryItem.js.map +1 -1
  229. package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistoryRenameDialog.js +34 -35
  230. package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistoryRenameDialog.js.map +1 -1
  231. package/dist/@ecme/views/concepts/ai/Chat/components/ChatMobileNav.js +11 -14
  232. package/dist/@ecme/views/concepts/ai/Chat/components/ChatMobileNav.js.map +1 -1
  233. package/dist/@ecme/views/concepts/ai/Chat/components/ChatSideNav.js +19 -19
  234. package/dist/@ecme/views/concepts/ai/Chat/components/ChatSideNav.js.map +1 -1
  235. package/dist/@ecme/views/concepts/ai/Chat/components/ChatView.js +22 -26
  236. package/dist/@ecme/views/concepts/ai/Chat/components/ChatView.js.map +1 -1
  237. package/dist/@ecme/views/concepts/ai/Chat/store/generativeChatStore.js +18 -24
  238. package/dist/@ecme/views/concepts/ai/Chat/store/generativeChatStore.js.map +1 -1
  239. package/dist/@ecme/views/concepts/ai/Image/components/ConfigDropdown.js +22 -22
  240. package/dist/@ecme/views/concepts/ai/Image/components/ConfigDropdown.js.map +1 -1
  241. package/dist/@ecme/views/concepts/ai/Image/components/GeneratorPrompt.js +31 -32
  242. package/dist/@ecme/views/concepts/ai/Image/components/GeneratorPrompt.js.map +1 -1
  243. package/dist/@ecme/views/concepts/ai/Image/components/ImageDialog.js +31 -32
  244. package/dist/@ecme/views/concepts/ai/Image/components/ImageDialog.js.map +1 -1
  245. package/dist/@ecme/views/concepts/calendar/Calendar/Calendar.js +38 -39
  246. package/dist/@ecme/views/concepts/calendar/Calendar/Calendar.js.map +1 -1
  247. package/dist/@ecme/views/concepts/calendar/Calendar/components/EventDialog.js +68 -69
  248. package/dist/@ecme/views/concepts/calendar/Calendar/components/EventDialog.js.map +1 -1
  249. package/dist/@ecme/views/concepts/chat/Chat/components/ChatBody.js +63 -66
  250. package/dist/@ecme/views/concepts/chat/Chat/components/ChatBody.js.map +1 -1
  251. package/dist/@ecme/views/concepts/chat/Chat/components/ChatList.js +21 -22
  252. package/dist/@ecme/views/concepts/chat/Chat/components/ChatList.js.map +1 -1
  253. package/dist/@ecme/views/concepts/chat/Chat/components/ContactInfoDrawer.js +84 -85
  254. package/dist/@ecme/views/concepts/chat/Chat/components/ContactInfoDrawer.js.map +1 -1
  255. package/dist/@ecme/views/concepts/customers/CustomerDetails/ActivitySection.js +19 -19
  256. package/dist/@ecme/views/concepts/customers/CustomerDetails/ActivitySection.js.map +1 -1
  257. package/dist/@ecme/views/concepts/customers/CustomerDetails/BillingSection.js +51 -58
  258. package/dist/@ecme/views/concepts/customers/CustomerDetails/BillingSection.js.map +1 -1
  259. package/dist/@ecme/views/concepts/customers/CustomerDetails/ProfileSection.js +76 -89
  260. package/dist/@ecme/views/concepts/customers/CustomerDetails/ProfileSection.js.map +1 -1
  261. package/dist/@ecme/views/concepts/customers/CustomerForm/AddressSection.js +104 -107
  262. package/dist/@ecme/views/concepts/customers/CustomerForm/AddressSection.js.map +1 -1
  263. package/dist/@ecme/views/concepts/customers/CustomerForm/CustomerForm.js +22 -22
  264. package/dist/@ecme/views/concepts/customers/CustomerForm/CustomerForm.js.map +1 -1
  265. package/dist/@ecme/views/concepts/customers/CustomerForm/OverviewSection.js +38 -39
  266. package/dist/@ecme/views/concepts/customers/CustomerForm/OverviewSection.js.map +1 -1
  267. package/dist/@ecme/views/concepts/customers/CustomerList/hooks/useCustomerList.js +20 -20
  268. package/dist/@ecme/views/concepts/customers/CustomerList/hooks/useCustomerList.js.map +1 -1
  269. package/dist/@ecme/views/concepts/files/FileManager/components/FileItemDropdown.js +32 -33
  270. package/dist/@ecme/views/concepts/files/FileManager/components/FileItemDropdown.js.map +1 -1
  271. package/dist/@ecme/views/concepts/help-center/EditArticle/components/EditArticleHeader.js +17 -18
  272. package/dist/@ecme/views/concepts/help-center/EditArticle/components/EditArticleHeader.js.map +1 -1
  273. package/dist/@ecme/views/concepts/help-center/ManageArticle/hooks/useManageArticle.js +5 -5
  274. package/dist/@ecme/views/concepts/help-center/ManageArticle/hooks/useManageArticle.js.map +1 -1
  275. package/dist/@ecme/views/concepts/help-center/SupportHub/components/TopSection.js +12 -13
  276. package/dist/@ecme/views/concepts/help-center/SupportHub/components/TopSection.js.map +1 -1
  277. package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailAction.js +28 -29
  278. package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailAction.js.map +1 -1
  279. package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailContent.js +63 -67
  280. package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailContent.js.map +1 -1
  281. package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailTitle.js +8 -8
  282. package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailTitle.js.map +1 -1
  283. package/dist/@ecme/views/concepts/mail/Mail/components/MailEditor.js +36 -37
  284. package/dist/@ecme/views/concepts/mail/Mail/components/MailEditor.js.map +1 -1
  285. package/dist/@ecme/views/concepts/mail/Mail/components/MailList.js +134 -137
  286. package/dist/@ecme/views/concepts/mail/Mail/components/MailList.js.map +1 -1
  287. package/dist/@ecme/views/concepts/orders/OrderDetails/components/OrderDetailProducts.js +17 -17
  288. package/dist/@ecme/views/concepts/orders/OrderDetails/components/OrderDetailProducts.js.map +1 -1
  289. package/dist/@ecme/views/concepts/orders/OrderEdit/OrderEdit.js +35 -35
  290. package/dist/@ecme/views/concepts/orders/OrderEdit/OrderEdit.js.map +1 -1
  291. package/dist/@ecme/views/concepts/orders/OrderForm/OrderForm.js +38 -38
  292. package/dist/@ecme/views/concepts/orders/OrderForm/OrderForm.js.map +1 -1
  293. package/dist/@ecme/views/concepts/orders/OrderForm/components/BillingAddressSection.js +108 -111
  294. package/dist/@ecme/views/concepts/orders/OrderForm/components/BillingAddressSection.js.map +1 -1
  295. package/dist/@ecme/views/concepts/orders/OrderForm/components/CustomerDetailSection.js +44 -45
  296. package/dist/@ecme/views/concepts/orders/OrderForm/components/CustomerDetailSection.js.map +1 -1
  297. package/dist/@ecme/views/concepts/orders/OrderForm/components/PaymentMethodSection.js +211 -214
  298. package/dist/@ecme/views/concepts/orders/OrderForm/components/PaymentMethodSection.js.map +1 -1
  299. package/dist/@ecme/views/concepts/orders/OrderList/components/OrderListTableFilter.js +17 -17
  300. package/dist/@ecme/views/concepts/orders/OrderList/components/OrderListTableFilter.js.map +1 -1
  301. package/dist/@ecme/views/concepts/orders/OrderList/hooks/useOrderlist.js +15 -15
  302. package/dist/@ecme/views/concepts/orders/OrderList/hooks/useOrderlist.js.map +1 -1
  303. package/dist/@ecme/views/concepts/products/ProductForm/ProductForm.js +4 -4
  304. package/dist/@ecme/views/concepts/products/ProductForm/ProductForm.js.map +1 -1
  305. package/dist/@ecme/views/concepts/products/ProductForm/components/AttributeSection.js +97 -100
  306. package/dist/@ecme/views/concepts/products/ProductForm/components/AttributeSection.js.map +1 -1
  307. package/dist/@ecme/views/concepts/products/ProductForm/components/GeneralSection.js +68 -71
  308. package/dist/@ecme/views/concepts/products/ProductForm/components/GeneralSection.js.map +1 -1
  309. package/dist/@ecme/views/concepts/products/ProductForm/components/ImageSection.js +85 -86
  310. package/dist/@ecme/views/concepts/products/ProductForm/components/ImageSection.js.map +1 -1
  311. package/dist/@ecme/views/concepts/products/ProductForm/components/PricingSection.js +121 -124
  312. package/dist/@ecme/views/concepts/products/ProductForm/components/PricingSection.js.map +1 -1
  313. package/dist/@ecme/views/concepts/products/ProductList/components/ProductListSearch.js +11 -11
  314. package/dist/@ecme/views/concepts/products/ProductList/components/ProductListSearch.js.map +1 -1
  315. package/dist/@ecme/views/concepts/products/ProductList/components/ProductTableFilter.js +17 -17
  316. package/dist/@ecme/views/concepts/products/ProductList/components/ProductTableFilter.js.map +1 -1
  317. package/dist/@ecme/views/concepts/products/ProductList/hooks/useProductList.js +17 -17
  318. package/dist/@ecme/views/concepts/products/ProductList/hooks/useProductList.js.map +1 -1
  319. package/dist/@ecme/views/concepts/projects/Issue/components/IssueBody.js +101 -105
  320. package/dist/@ecme/views/concepts/projects/Issue/components/IssueBody.js.map +1 -1
  321. package/dist/@ecme/views/concepts/projects/Issue/components/IssueFooter.js +57 -58
  322. package/dist/@ecme/views/concepts/projects/Issue/components/IssueFooter.js.map +1 -1
  323. package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsHeader.js +51 -52
  324. package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsHeader.js.map +1 -1
  325. package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsOverview.js +22 -23
  326. package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsOverview.js.map +1 -1
  327. package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsSetting.js +45 -46
  328. package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsSetting.js.map +1 -1
  329. package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsTask.js +62 -65
  330. package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsTask.js.map +1 -1
  331. package/dist/@ecme/views/concepts/projects/ProjectList/components/NewProjectForm.js +52 -53
  332. package/dist/@ecme/views/concepts/projects/ProjectList/components/NewProjectForm.js.map +1 -1
  333. package/dist/@ecme/views/concepts/projects/ProjectList/components/NewTaskField.js +23 -25
  334. package/dist/@ecme/views/concepts/projects/ProjectList/components/NewTaskField.js.map +1 -1
  335. package/dist/@ecme/views/concepts/projects/ProjectList/components/ProjectListContent.js +15 -15
  336. package/dist/@ecme/views/concepts/projects/ProjectList/components/ProjectListContent.js.map +1 -1
  337. package/dist/@ecme/views/concepts/projects/ProjectList/components/ProjectListHeader.js +16 -16
  338. package/dist/@ecme/views/concepts/projects/ProjectList/components/ProjectListHeader.js.map +1 -1
  339. package/dist/@ecme/views/concepts/projects/ProjectList/hooks/useProjectList.js +9 -9
  340. package/dist/@ecme/views/concepts/projects/ProjectList/hooks/useProjectList.js.map +1 -1
  341. package/dist/@ecme/views/concepts/projects/ScrumBoard/components/AddNewColumnContent.js +40 -41
  342. package/dist/@ecme/views/concepts/projects/ScrumBoard/components/AddNewColumnContent.js.map +1 -1
  343. package/dist/@ecme/views/concepts/projects/ScrumBoard/components/AddNewTicketContent.js +33 -34
  344. package/dist/@ecme/views/concepts/projects/ScrumBoard/components/AddNewTicketContent.js.map +1 -1
  345. package/dist/@ecme/views/concepts/projects/ScrumBoard/components/BoardCardList.js +33 -33
  346. package/dist/@ecme/views/concepts/projects/ScrumBoard/components/BoardCardList.js.map +1 -1
  347. package/dist/@ecme/views/concepts/projects/ScrumBoard/components/TicketContent.js +203 -210
  348. package/dist/@ecme/views/concepts/projects/ScrumBoard/components/TicketContent.js.map +1 -1
  349. package/dist/@ecme/views/concepts/projects/Tasks/components/AddTask.js +53 -56
  350. package/dist/@ecme/views/concepts/projects/Tasks/components/AddTask.js.map +1 -1
  351. package/dist/@ecme/views/concepts/projects/Tasks/components/TaskList.js +80 -83
  352. package/dist/@ecme/views/concepts/projects/Tasks/components/TaskList.js.map +1 -1
  353. package/dist/@ecme/views/dashboards/AnalyticDashboard/components/AnalyticHeader.js +6 -6
  354. package/dist/@ecme/views/dashboards/AnalyticDashboard/components/AnalyticHeader.js.map +1 -1
  355. package/dist/@ecme/views/dashboards/EcommerceDashboard/components/Overview.js +21 -21
  356. package/dist/@ecme/views/dashboards/EcommerceDashboard/components/Overview.js.map +1 -1
  357. package/dist/@ecme/views/dashboards/EcommerceDashboard/components/RevenueByChannel.js +27 -27
  358. package/dist/@ecme/views/dashboards/EcommerceDashboard/components/RevenueByChannel.js.map +1 -1
  359. package/dist/@ecme/views/dashboards/EcommerceDashboard/components/SalesTarget.js +27 -27
  360. package/dist/@ecme/views/dashboards/EcommerceDashboard/components/SalesTarget.js.map +1 -1
  361. package/dist/@ecme/views/dashboards/MarketingDashboard/components/CreateCampaign.js +59 -60
  362. package/dist/@ecme/views/dashboards/MarketingDashboard/components/CreateCampaign.js.map +1 -1
  363. package/dist/@ecme/views/dashboards/ProjectDashboard/components/CreateEventDialog.js +76 -77
  364. package/dist/@ecme/views/dashboards/ProjectDashboard/components/CreateEventDialog.js.map +1 -1
  365. package/dist/@ecme/views/dashboards/ProjectDashboard/components/UpcomingSchedule.js +30 -30
  366. package/dist/@ecme/views/dashboards/ProjectDashboard/components/UpcomingSchedule.js.map +1 -1
  367. package/dist/@ecme/views/guide/SharedComponentsDoc/components/CustomFormatInputDoc/WithForm.js +21 -22
  368. package/dist/@ecme/views/guide/SharedComponentsDoc/components/CustomFormatInputDoc/WithForm.js.map +1 -1
  369. package/dist/@ecme/views/guide/SharedComponentsDoc/components/ImageGalleryDoc/Example.js +15 -15
  370. package/dist/@ecme/views/guide/SharedComponentsDoc/components/ImageGalleryDoc/Example.js.map +1 -1
  371. package/dist/@ecme/views/guide/SharedComponentsDoc/components/NumericInputDoc/WithForm.js +20 -21
  372. package/dist/@ecme/views/guide/SharedComponentsDoc/components/NumericInputDoc/WithForm.js.map +1 -1
  373. package/dist/@ecme/views/guide/SharedComponentsDoc/components/PatternInputDoc/WithForm.js +20 -21
  374. package/dist/@ecme/views/guide/SharedComponentsDoc/components/PatternInputDoc/WithForm.js.map +1 -1
  375. package/dist/@ecme/views/guide/SharedComponentsDoc/components/RichTextEditorDoc/WithForm.js +20 -21
  376. package/dist/@ecme/views/guide/SharedComponentsDoc/components/RichTextEditorDoc/WithForm.js.map +1 -1
  377. package/dist/@ecme/views/ui-components/data-display/Table/Editable.js +17 -18
  378. package/dist/@ecme/views/ui-components/data-display/Table/Editable.js.map +1 -1
  379. package/dist/@ecme/views/ui-components/data-display/Table/PaginationTable.js +12 -12
  380. package/dist/@ecme/views/ui-components/data-display/Table/PaginationTable.js.map +1 -1
  381. package/dist/@ecme/views/ui-components/forms/FormControl/AsyncValidation.js +28 -29
  382. package/dist/@ecme/views/ui-components/forms/FormControl/AsyncValidation.js.map +1 -1
  383. package/dist/@ecme/views/ui-components/forms/FormControl/Basic.js +21 -22
  384. package/dist/@ecme/views/ui-components/forms/FormControl/Basic.js.map +1 -1
  385. package/dist/@ecme/views/ui-components/forms/FormControl/DependentValidation.js +24 -25
  386. package/dist/@ecme/views/ui-components/forms/FormControl/DependentValidation.js.map +1 -1
  387. package/dist/@ecme/views/ui-components/forms/FormControl/DynamicForm.js +75 -79
  388. package/dist/@ecme/views/ui-components/forms/FormControl/DynamicForm.js.map +1 -1
  389. package/dist/@ecme/views/ui-components/forms/FormControl/FieldValidation.js +19 -20
  390. package/dist/@ecme/views/ui-components/forms/FormControl/FieldValidation.js.map +1 -1
  391. package/dist/@ecme/views/ui-components/forms/FormControl/MixedFormControl.js +90 -91
  392. package/dist/@ecme/views/ui-components/forms/FormControl/MixedFormControl.js.map +1 -1
  393. package/dist/@ecme/views/ui-components/forms/FormControl/SchemaValidation.js +22 -23
  394. package/dist/@ecme/views/ui-components/forms/FormControl/SchemaValidation.js.map +1 -1
  395. package/dist/@types/base/configs/api.config.d.ts +0 -19
  396. package/dist/@types/base/configs/api.config.d.ts.map +1 -1
  397. package/dist/base/assets/styles/init.css +1 -1
  398. package/dist/base/components/forms/ArraysForms/GenericArrayNumberFormSection.js +24 -25
  399. package/dist/base/components/forms/ArraysForms/GenericArrayNumberFormSection.js.map +1 -1
  400. package/dist/base/components/forms/ArraysForms/GenericArrayStringFormSection.js +23 -24
  401. package/dist/base/components/forms/ArraysForms/GenericArrayStringFormSection.js.map +1 -1
  402. package/dist/base/components/forms/GenericFomrsSetValue/GenericNumberFormSectionPrice.js +30 -31
  403. package/dist/base/components/forms/GenericFomrsSetValue/GenericNumberFormSectionPrice.js.map +1 -1
  404. package/dist/base/components/forms/GenericFomrsSetValue/GenericStringFormSection.js +25 -26
  405. package/dist/base/components/forms/GenericFomrsSetValue/GenericStringFormSection.js.map +1 -1
  406. package/dist/base/components/forms/GenericForms/GenericArrayFormSection.js +49 -50
  407. package/dist/base/components/forms/GenericForms/GenericArrayFormSection.js.map +1 -1
  408. package/dist/base/components/forms/GenericForms/GenericNumberFormSection.js +27 -28
  409. package/dist/base/components/forms/GenericForms/GenericNumberFormSection.js.map +1 -1
  410. package/dist/base/components/forms/GenericForms/GenericStringFormSection.js +23 -24
  411. package/dist/base/components/forms/GenericForms/GenericStringFormSection.js.map +1 -1
  412. package/dist/base/components/forms/GenericForms/GenericUploadFormSection.js +27 -28
  413. package/dist/base/components/forms/GenericForms/GenericUploadFormSection.js.map +1 -1
  414. package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionPercentage.js +29 -30
  415. package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionPercentage.js.map +1 -1
  416. package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionPrice.js +27 -28
  417. package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionPrice.js.map +1 -1
  418. package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionWeight.js +27 -28
  419. package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionWeight.js.map +1 -1
  420. package/dist/base/components/shared/TransferirProcessoDialog.js +10 -10
  421. package/dist/base/components/shared/TransferirProcessoDialog.js.map +1 -1
  422. package/dist/base/components/tools/NavFilter.js +68 -75
  423. package/dist/base/components/tools/NavFilter.js.map +1 -1
  424. package/dist/base/configs/api.config.js +11 -14
  425. package/dist/base/configs/api.config.js.map +1 -1
  426. package/dist/base/hooks/adm/roles/useRolesList.js +11 -11
  427. package/dist/base/hooks/adm/roles/useRolesList.js.map +1 -1
  428. package/dist/base/hooks/adm/users/useUsersList.js +10 -10
  429. package/dist/base/hooks/adm/users/useUsersList.js.map +1 -1
  430. package/dist/base/hooks/dm/businessPartner/useBusinessPartnerClienteList.js +5 -5
  431. package/dist/base/hooks/dm/businessPartner/useBusinessPartnerClienteList.js.map +1 -1
  432. package/dist/base/hooks/dm/businessPartner/useBusinessPartnerFornecedorList.js +7 -7
  433. package/dist/base/hooks/dm/businessPartner/useBusinessPartnerFornecedorList.js.map +1 -1
  434. package/dist/base/hooks/dm/businessPartner/useBusinessPartnerList.js +10 -10
  435. package/dist/base/hooks/dm/businessPartner/useBusinessPartnerList.js.map +1 -1
  436. package/dist/base/hooks/dm/canalDistribuicao/useCanalDistribuicaoByCodigoList.js +8 -8
  437. package/dist/base/hooks/dm/canalDistribuicao/useCanalDistribuicaoByCodigoList.js.map +1 -1
  438. package/dist/base/hooks/dm/canalDistribuicao/useCanalDistribuicaoList.js +8 -8
  439. package/dist/base/hooks/dm/canalDistribuicao/useCanalDistribuicaoList.js.map +1 -1
  440. package/dist/base/hooks/dm/centro/useCentroByCodigoList.js +13 -13
  441. package/dist/base/hooks/dm/centro/useCentroByCodigoList.js.map +1 -1
  442. package/dist/base/hooks/dm/centro/useCentroList.js +6 -6
  443. package/dist/base/hooks/dm/centro/useCentroList.js.map +1 -1
  444. package/dist/base/hooks/dm/condicaoPagamento/useCondicaoPagamentoList.js +4 -4
  445. package/dist/base/hooks/dm/condicaoPagamento/useCondicaoPagamentoList.js.map +1 -1
  446. package/dist/base/hooks/dm/deposito/useDepositoByCodigoList.js +9 -9
  447. package/dist/base/hooks/dm/deposito/useDepositoByCodigoList.js.map +1 -1
  448. package/dist/base/hooks/dm/deposito/useDepositoList.js +5 -5
  449. package/dist/base/hooks/dm/deposito/useDepositoList.js.map +1 -1
  450. package/dist/base/hooks/dm/deposito/useDepositosByCodigoCentroList.js +13 -13
  451. package/dist/base/hooks/dm/deposito/useDepositosByCodigoCentroList.js.map +1 -1
  452. package/dist/base/hooks/dm/equipeVenda/useEquipeVendaByCodigoList.js +8 -8
  453. package/dist/base/hooks/dm/equipeVenda/useEquipeVendaByCodigoList.js.map +1 -1
  454. package/dist/base/hooks/dm/equipeVenda/useEquipeVendaList.js +6 -6
  455. package/dist/base/hooks/dm/equipeVenda/useEquipeVendaList.js.map +1 -1
  456. package/dist/base/hooks/dm/escritorioVenda/useEscritorioVendaByCodigoList.js +10 -10
  457. package/dist/base/hooks/dm/escritorioVenda/useEscritorioVendaByCodigoList.js.map +1 -1
  458. package/dist/base/hooks/dm/escritorioVenda/useEscritorioVendaList.js +7 -7
  459. package/dist/base/hooks/dm/escritorioVenda/useEscritorioVendaList.js.map +1 -1
  460. package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoByCodigoList.js +10 -10
  461. package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoByCodigoList.js.map +1 -1
  462. package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoList.js +1 -1
  463. package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoList.js.map +1 -1
  464. package/dist/base/hooks/dm/grupoVenda/useGrupoVendaByCodigoList.js +11 -11
  465. package/dist/base/hooks/dm/grupoVenda/useGrupoVendaByCodigoList.js.map +1 -1
  466. package/dist/base/hooks/dm/grupoVenda/useGrupoVendaList.js +9 -9
  467. package/dist/base/hooks/dm/grupoVenda/useGrupoVendaList.js.map +1 -1
  468. package/dist/base/hooks/dm/incoterms/useIncotermsList.js +17 -18
  469. package/dist/base/hooks/dm/incoterms/useIncotermsList.js.map +1 -1
  470. package/dist/base/hooks/dm/produto/useProdutoByCodigoList.js +13 -13
  471. package/dist/base/hooks/dm/produto/useProdutoByCodigoList.js.map +1 -1
  472. package/dist/base/hooks/dm/produto/useProdutoByGrupoProdutoList.js +21 -21
  473. package/dist/base/hooks/dm/produto/useProdutoByGrupoProdutoList.js.map +1 -1
  474. package/dist/base/hooks/dm/produto/useProdutoFindList.js +8 -8
  475. package/dist/base/hooks/dm/produto/useProdutoFindList.js.map +1 -1
  476. package/dist/base/hooks/dm/produto/useProdutoFindMonitorList.js +11 -11
  477. package/dist/base/hooks/dm/produto/useProdutoFindMonitorList.js.map +1 -1
  478. package/dist/base/hooks/dm/produto/useProdutoIsPrecificadoRacaoList.js +9 -9
  479. package/dist/base/hooks/dm/produto/useProdutoIsPrecificadoRacaoList.js.map +1 -1
  480. package/dist/base/hooks/dm/setorAtividade/useSetorAtividadeList.js +5 -5
  481. package/dist/base/hooks/dm/setorAtividade/useSetorAtividadeList.js.map +1 -1
  482. package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaByCodigoList.js +9 -9
  483. package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaByCodigoList.js.map +1 -1
  484. package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaList.js +9 -9
  485. package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaList.js.map +1 -1
  486. package/dist/base/hooks/dm/tipoOrdemVenda/useTipoOrdemVendaByCodigoList.js +10 -10
  487. package/dist/base/hooks/dm/tipoOrdemVenda/useTipoOrdemVendaByCodigoList.js.map +1 -1
  488. package/dist/base/hooks/dm/tipoOrdemVenda/useTipoOrdemVendaList.js +9 -9
  489. package/dist/base/hooks/dm/tipoOrdemVenda/useTipoOrdemVendaList.js.map +1 -1
  490. package/dist/base/hooks/useList.js +10 -10
  491. package/dist/base/hooks/useList.js.map +1 -1
  492. package/dist/base/services/modules/transportadora/ControleDescarga/ControleDescargaService.js +15 -15
  493. package/dist/base/services/modules/transportadora/ControleDescarga/ControleDescargaService.js.map +1 -1
  494. package/dist/base/services/modules/transportadora/ControleEmbarque/ControleEmbarqueService.js +7 -7
  495. package/dist/base/services/modules/transportadora/ControleEmbarque/ControleEmbarqueService.js.map +1 -1
  496. package/dist/base/services/modules/transportadora/NaturezaCarga/NaturezaCargaService.js +5 -5
  497. package/dist/base/services/modules/transportadora/NaturezaCarga/NaturezaCargaService.js.map +1 -1
  498. package/dist/base/utils/functions/stringUtils.js +14 -15
  499. package/dist/base/utils/functions/stringUtils.js.map +1 -1
  500. package/lib/base/configs/api.config.ts +6 -7
  501. package/package.json +1 -1
  502. package/tsconfig.json +6 -1
@@ -1,30 +1,30 @@
1
- import { jsxs as a, jsx as t, Fragment as F } from "react/jsx-runtime";
2
- import { useRef as A, useState as B } from "react";
3
- import { useIssueStore as K } from "../store/issueStore.js";
4
- import { DatePicker as j } from "../../../../../components/ui/DatePicker/index.js";
5
- import { Avatar as E } from "../../../../../components/ui/Avatar/index.js";
6
- import { Dropdown as c } from "../../../../../components/ui/Dropdown/index.js";
1
+ import { jsxs as a, jsx as t, Fragment as P } from "react/jsx-runtime";
2
+ import { useRef as S, useState as F } from "react";
3
+ import { useIssueStore as A } from "../store/issueStore.js";
4
+ import { DatePicker as B } from "../../../../../components/ui/DatePicker/index.js";
5
+ import { Avatar as K } from "../../../../../components/ui/Avatar/index.js";
6
+ import { Dropdown as o } from "../../../../../components/ui/Dropdown/index.js";
7
7
  import "../../../../../components/ui/Tag/index.js";
8
8
  import "../../../../../components/ui/Badge/index.js";
9
9
  import "../../../../../components/shared/RichTextEditor/index.js";
10
- import H from "../../../../../components/shared/UsersAvatarGroup.js";
11
- import $ from "./IssueField.js";
12
- import d from "./IssueFieldDropdown.js";
13
- import m from "../../../../../utils/classNames.js";
14
- import p from "dayjs";
15
- import z from "html-react-parser";
16
- import { TbCheck as x, TbTag as R, TbCircle as U, TbFlag2Filled as G, TbFlag as O, TbUser as q, TbClock as J } from "react-icons/tb";
17
- import { useEditor as Q } from "@tiptap/react";
18
- import V from "@tiptap/starter-kit";
19
- import k from "../../../../../components/ui/Tag/Tag.js";
20
- import W from "../../../../../components/ui/Badge/Badge.js";
21
- import X from "../../../../../components/shared/RichTextEditor/RichTextEditor.js";
22
- const v = [
10
+ import j from "../../../../../components/shared/UsersAvatarGroup.js";
11
+ import E from "./IssueField.js";
12
+ import c from "./IssueFieldDropdown.js";
13
+ import d from "../../../../../utils/classNames.js";
14
+ import m from "dayjs";
15
+ import H from "html-react-parser";
16
+ import { TbCheck as h, TbTag as $, TbCircle as z, TbFlag2Filled as R, TbFlag as U, TbUser as G, TbClock as O } from "react-icons/tb";
17
+ import { useEditor as q } from "@tiptap/react";
18
+ import J from "@tiptap/starter-kit";
19
+ import b from "../../../../../components/ui/Tag/Tag.js";
20
+ import Q from "../../../../../components/ui/Badge/Badge.js";
21
+ import V from "../../../../../components/shared/RichTextEditor/RichTextEditor.js";
22
+ const x = [
23
23
  { id: "1", title: "Bug" },
24
24
  { id: "2", title: "Live issue" },
25
25
  { id: "3", title: "Task" },
26
26
  { id: "4", title: "Optimization" }
27
- ], N = {
27
+ ], k = {
28
28
  "Live issue": "bg-rose-200 dark:bg-rose-200 dark:text-gray-900",
29
29
  Task: "bg-blue-200 dark:bg-blue-200 dark:text-gray-900",
30
30
  Bug: "bg-amber-200 dark:bg-amber-200 dark:text-gray-900",
@@ -32,7 +32,7 @@ const v = [
32
32
  "In progress": "bg-sky-200 dark:bg-sky-200 dark:text-gray-900",
33
33
  Completed: "bg-emerald-200 dark:bg-emerald-200 dark:text-gray-900",
34
34
  Pending: "bg-amber-200 dark:bg-amber-200 dark:text-gray-900"
35
- }, Y = ["Pending", "In progress", "Completed"], Z = ["Low", "Medium", "High"], y = {
35
+ }, W = ["Pending", "In progress", "Completed"], X = ["Low", "Medium", "High"], v = {
36
36
  Low: {
37
37
  text: "text-success",
38
38
  bg: "bg-success"
@@ -45,45 +45,44 @@ const v = [
45
45
  text: "text-error",
46
46
  bg: "bg-error"
47
47
  }
48
- }, ve = () => {
49
- var h, b;
50
- const D = A(null), { issueData: s, updateIssueData: l, memberList: u } = K(), [w, f] = B(!1), n = () => ({ ...s }), C = (e) => {
48
+ }, xe = () => {
49
+ const N = S(null), { issueData: s, updateIssueData: l, memberList: g } = A(), [y, u] = F(!1), n = () => ({ ...s }), D = (e) => {
51
50
  const r = n();
52
51
  if (r.labels.some((i) => i.id === e))
53
52
  r.labels = r.labels.filter(
54
53
  (i) => i.id !== e
55
54
  );
56
55
  else {
57
- const i = v.find((g) => g.id === e);
56
+ const i = x.find((p) => p.id === e);
58
57
  i && r.labels.push(i);
59
58
  }
60
59
  l(r);
61
- }, T = (e) => {
60
+ }, w = (e) => {
62
61
  const r = n();
63
62
  r.status = e, l(r);
64
- }, L = (e) => {
63
+ }, C = (e) => {
65
64
  const r = n();
66
65
  r.priority = e, l(r);
67
- }, I = (e) => {
66
+ }, T = (e) => {
68
67
  const r = n();
69
68
  if (r.assignees.some((i) => i.id === e))
70
69
  r.assignees = r.assignees.filter(
71
70
  (i) => i.id !== e
72
71
  );
73
72
  else {
74
- const i = u.find((g) => g.id === e);
73
+ const i = g.find((p) => p.id === e);
75
74
  i && r.assignees.push(i);
76
75
  }
77
76
  l(r);
78
- }, M = (e) => {
77
+ }, L = (e) => {
79
78
  const r = n();
80
- r.dueDate = p(e).unix(), l(r);
81
- }, P = (e) => {
79
+ r.dueDate = m(e).unix(), l(r);
80
+ }, I = (e) => {
82
81
  const r = n();
83
82
  r.description = e, l(r);
84
- }, o = Q({
83
+ }, f = q({
85
84
  extensions: [
86
- V.configure({
85
+ J.configure({
87
86
  bulletList: {
88
87
  keepMarks: !0
89
88
  },
@@ -99,40 +98,40 @@ const v = [
99
98
  },
100
99
  content: s.description,
101
100
  onUpdate({ editor: e }) {
102
- P(e.getHTML());
101
+ I(e.getHTML());
103
102
  }
104
- }), S = () => {
105
- f(!0), o == null || o.chain().focus();
103
+ }), M = () => {
104
+ u(!0), f?.chain().focus();
106
105
  };
107
106
  return /* @__PURE__ */ a("div", { children: [
108
107
  /* @__PURE__ */ a("div", { className: "grid grid-cols-1 xl:grid-cols-2 gap-x-4", children: [
109
108
  /* @__PURE__ */ a("div", { className: "flex flex-col", children: [
110
109
  /* @__PURE__ */ t(
111
- d,
110
+ c,
112
111
  {
113
112
  title: "Label",
114
- icon: /* @__PURE__ */ t(R, {}),
115
- dropdownTrigger: /* @__PURE__ */ t(F, { children: (h = s.labels) == null ? void 0 : h.map((e, r) => /* @__PURE__ */ t(
116
- k,
113
+ icon: /* @__PURE__ */ t($, {}),
114
+ dropdownTrigger: /* @__PURE__ */ t(P, { children: s.labels?.map((e, r) => /* @__PURE__ */ t(
115
+ b,
117
116
  {
118
- className: `${N[e.title]}`,
117
+ className: `${k[e.title]}`,
119
118
  children: e.title
120
119
  },
121
120
  e.title + r
122
121
  )) }),
123
- children: v.map((e) => /* @__PURE__ */ t(
124
- c.Item,
122
+ children: x.map((e) => /* @__PURE__ */ t(
123
+ o.Item,
125
124
  {
126
125
  eventKey: e.id,
127
- onSelect: C,
126
+ onSelect: D,
128
127
  children: /* @__PURE__ */ a("div", { className: "flex items-center relative", children: [
129
128
  s.labels.some(
130
129
  (r) => r.id === e.id
131
- ) && /* @__PURE__ */ t(x, { className: "absolute text-primary ltr:left-[-5px] text-lg" }),
130
+ ) && /* @__PURE__ */ t(h, { className: "absolute text-primary ltr:left-[-5px] text-lg" }),
132
131
  /* @__PURE__ */ t(
133
132
  "span",
134
133
  {
135
- className: m(
134
+ className: d(
136
135
  s.labels.length > 0 && "mx-5"
137
136
  ),
138
137
  children: e.title
@@ -145,23 +144,23 @@ const v = [
145
144
  }
146
145
  ),
147
146
  /* @__PURE__ */ t(
148
- d,
147
+ c,
149
148
  {
150
149
  title: "Status",
151
- icon: /* @__PURE__ */ t(U, {}),
150
+ icon: /* @__PURE__ */ t(z, {}),
152
151
  dropdownTrigger: /* @__PURE__ */ t(
153
- k,
152
+ b,
154
153
  {
155
- className: `${N[s.status || ""]}`,
154
+ className: `${k[s.status || ""]}`,
156
155
  children: s.status
157
156
  }
158
157
  ),
159
- children: Y.map((e) => /* @__PURE__ */ t(
160
- c.Item,
158
+ children: W.map((e) => /* @__PURE__ */ t(
159
+ o.Item,
161
160
  {
162
161
  eventKey: e,
163
162
  active: e === s.status,
164
- onSelect: T,
163
+ onSelect: w,
165
164
  children: /* @__PURE__ */ t("div", { className: "flex items-center relative", children: /* @__PURE__ */ t("span", { children: e }) })
166
165
  },
167
166
  e
@@ -169,54 +168,51 @@ const v = [
169
168
  }
170
169
  ),
171
170
  /* @__PURE__ */ t(
172
- d,
171
+ c,
173
172
  {
174
173
  title: "Priority",
175
- icon: /* @__PURE__ */ t(O, {}),
174
+ icon: /* @__PURE__ */ t(U, {}),
176
175
  dropdownTrigger: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
177
176
  /* @__PURE__ */ t(
178
- G,
177
+ R,
179
178
  {
180
- className: m(
179
+ className: d(
181
180
  "text-lg",
182
- `${(b = y[s.priority || ""]) == null ? void 0 : b.text}`
181
+ `${v[s.priority || ""]?.text}`
183
182
  )
184
183
  }
185
184
  ),
186
185
  /* @__PURE__ */ t("span", { className: "font-semibold", children: s.priority })
187
186
  ] }),
188
- children: Z.map((e) => {
189
- var r;
190
- return /* @__PURE__ */ t(
191
- c.Item,
192
- {
193
- eventKey: e,
194
- active: e === s.priority,
195
- onSelect: L,
196
- children: /* @__PURE__ */ a("div", { className: "flex items-center", children: [
197
- /* @__PURE__ */ t(
198
- W,
199
- {
200
- innerClass: `${(r = y[e]) == null ? void 0 : r.bg}`
201
- }
202
- ),
203
- /* @__PURE__ */ t("span", { className: "ml-2 rtl:mr-2", children: e })
204
- ] })
205
- },
206
- e
207
- );
208
- })
187
+ children: X.map((e) => /* @__PURE__ */ t(
188
+ o.Item,
189
+ {
190
+ eventKey: e,
191
+ active: e === s.priority,
192
+ onSelect: C,
193
+ children: /* @__PURE__ */ a("div", { className: "flex items-center", children: [
194
+ /* @__PURE__ */ t(
195
+ Q,
196
+ {
197
+ innerClass: `${v[e]?.bg}`
198
+ }
199
+ ),
200
+ /* @__PURE__ */ t("span", { className: "ml-2 rtl:mr-2", children: e })
201
+ ] })
202
+ },
203
+ e
204
+ ))
209
205
  }
210
206
  )
211
207
  ] }),
212
208
  /* @__PURE__ */ a("div", { className: "flex flex-col", children: [
213
209
  /* @__PURE__ */ t(
214
- d,
210
+ c,
215
211
  {
216
212
  title: "Assigned to",
217
- icon: /* @__PURE__ */ t(q, {}),
213
+ icon: /* @__PURE__ */ t(G, {}),
218
214
  dropdownTrigger: /* @__PURE__ */ t(
219
- H,
215
+ j,
220
216
  {
221
217
  className: "gap-1",
222
218
  avatarProps: {
@@ -227,31 +223,31 @@ const v = [
227
223
  users: s.assignees
228
224
  }
229
225
  ),
230
- children: u.map((e) => /* @__PURE__ */ t(
231
- c.Item,
226
+ children: g.map((e) => /* @__PURE__ */ t(
227
+ o.Item,
232
228
  {
233
229
  eventKey: e.id,
234
- onSelect: I,
230
+ onSelect: T,
235
231
  children: /* @__PURE__ */ a(
236
232
  "div",
237
233
  {
238
- className: m(
234
+ className: d(
239
235
  "flex items-center justify-between relative"
240
236
  ),
241
237
  children: [
242
238
  s.assignees.some(
243
239
  (r) => r.id === e.id
244
- ) && /* @__PURE__ */ t(x, { className: "absolute text-primary ltr:left-[-5px] text-lg" }),
240
+ ) && /* @__PURE__ */ t(h, { className: "absolute text-primary ltr:left-[-5px] text-lg" }),
245
241
  /* @__PURE__ */ a(
246
242
  "div",
247
243
  {
248
- className: m(
244
+ className: d(
249
245
  "flex items-center gap-2",
250
246
  s.labels.length > 0 && "mx-5"
251
247
  ),
252
248
  children: [
253
249
  /* @__PURE__ */ t(
254
- E,
250
+ K,
255
251
  {
256
252
  shape: "circle",
257
253
  size: 22,
@@ -270,18 +266,18 @@ const v = [
270
266
  ))
271
267
  }
272
268
  ),
273
- /* @__PURE__ */ t($, { title: "Due date", icon: /* @__PURE__ */ t(J, {}), children: /* @__PURE__ */ a("div", { className: "flex items-center gap-1 px-3 rounded-xl hover:bg-gray-200 dark:hover:bg-gray-700 focus:bg-gray-200 dark:focus:bg-gray-700 cursor-pointer w-full min-h-[46px] relative", children: [
274
- /* @__PURE__ */ t("span", { className: "font-semibold", children: p.unix(s.dueDate || 0).format("MMMM DD") }),
269
+ /* @__PURE__ */ t(E, { title: "Due date", icon: /* @__PURE__ */ t(O, {}), children: /* @__PURE__ */ a("div", { className: "flex items-center gap-1 px-3 rounded-xl hover:bg-gray-200 dark:hover:bg-gray-700 focus:bg-gray-200 dark:focus:bg-gray-700 cursor-pointer w-full min-h-[46px] relative", children: [
270
+ /* @__PURE__ */ t("span", { className: "font-semibold", children: m.unix(s.dueDate || 0).format("MMMM DD") }),
275
271
  /* @__PURE__ */ t(
276
- j,
272
+ B,
277
273
  {
278
274
  className: "opacity-0 cursor-pointer absolute",
279
- value: p.unix(s.dueDate || p().unix()).toDate(),
275
+ value: m.unix(s.dueDate || m().unix()).toDate(),
280
276
  inputtable: !1,
281
277
  inputPrefix: null,
282
278
  inputSuffix: null,
283
279
  clearable: !1,
284
- onChange: (e) => M(e)
280
+ onChange: (e) => L(e)
285
281
  }
286
282
  )
287
283
  ] }) })
@@ -289,29 +285,29 @@ const v = [
289
285
  ] }),
290
286
  /* @__PURE__ */ a("div", { className: "mt-8", children: [
291
287
  /* @__PURE__ */ t("h5", { className: "mb-4", children: "Description" }),
292
- w ? /* @__PURE__ */ t(
293
- X,
288
+ y ? /* @__PURE__ */ t(
289
+ V,
294
290
  {
295
- ref: D,
291
+ ref: N,
296
292
  content: s.description,
297
- customEditor: o,
298
- onBlur: () => f(!1)
293
+ customEditor: f,
294
+ onBlur: () => u(!1)
299
295
  }
300
296
  ) : /* @__PURE__ */ t(
301
297
  "div",
302
298
  {
303
299
  className: "mt-2 prose max-w-full cursor-pointer",
304
300
  role: "button",
305
- onClick: S,
306
- children: /* @__PURE__ */ t("div", { className: "prose-p:text-sm prose-p:dark:text-gray-400", children: z(s.description || "") })
301
+ onClick: M,
302
+ children: /* @__PURE__ */ t("div", { className: "prose-p:text-sm prose-p:dark:text-gray-400", children: H(s.description || "") })
307
303
  }
308
304
  )
309
305
  ] })
310
306
  ] });
311
307
  };
312
308
  export {
313
- ve as default,
314
- v as labelList,
315
- N as taskLabelColors
309
+ xe as default,
310
+ x as labelList,
311
+ k as taskLabelColors
316
312
  };
317
313
  //# sourceMappingURL=IssueBody.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IssueBody.js","sources":["../../../../../../../lib/@ecme/views/concepts/projects/Issue/components/IssueBody.tsx"],"sourcesContent":["/* eslint-disable react-refresh/only-export-components */\nimport { useState, useRef } from 'react'\nimport { useIssueStore } from '../store/issueStore'\nimport DatePicker from '@/components/ui/DatePicker'\nimport Avatar from '@/components/ui/Avatar'\nimport Dropdown from '@/components/ui/Dropdown'\nimport Tag from '@/components/ui/Tag'\nimport Badge from '@/components/ui/Badge'\nimport RichTextEditor from '@/components/shared/RichTextEditor'\nimport UsersAvatarGroup from '@/components/shared/UsersAvatarGroup'\nimport IssueField from './IssueField'\nimport IssueFieldDropdown from './IssueFieldDropdown'\nimport classNames from '@/utils/classNames'\nimport dayjs from 'dayjs'\nimport ReactHtmlParser from 'html-react-parser'\nimport {\n TbTag,\n TbCircle,\n TbFlag,\n TbFlag2Filled,\n TbUser,\n TbClock,\n TbCheck,\n} from 'react-icons/tb'\nimport { useEditor } from '@tiptap/react'\nimport StarterKit from '@tiptap/starter-kit'\nimport type { RichTextEditorRef } from '@/components/shared/RichTextEditor'\n\nexport const labelList = [\n { id: '1', title: 'Bug' },\n { id: '2', title: 'Live issue' },\n { id: '3', title: 'Task' },\n { id: '4', title: 'Optimization' },\n]\n\nexport const taskLabelColors: Record<string, string> = {\n 'Live issue': 'bg-rose-200 dark:bg-rose-200 dark:text-gray-900',\n Task: 'bg-blue-200 dark:bg-blue-200 dark:text-gray-900',\n Bug: 'bg-amber-200 dark:bg-amber-200 dark:text-gray-900',\n Optimization: 'bg-purple-200 dark:bg-purple-200 dark:text-gray-900',\n 'In progress': 'bg-sky-200 dark:bg-sky-200 dark:text-gray-900',\n Completed: 'bg-emerald-200 dark:bg-emerald-200 dark:text-gray-900',\n Pending: 'bg-amber-200 dark:bg-amber-200 dark:text-gray-900',\n}\n\nconst statusList: string[] = ['Pending', 'In progress', 'Completed']\n\nconst priorityList: string[] = ['Low', 'Medium', 'High']\n\nconst flagColors: Record<string, { text: string; bg: string }> = {\n Low: {\n text: 'text-success',\n bg: 'bg-success',\n },\n Medium: {\n text: 'text-warning',\n bg: 'bg-warning',\n },\n High: {\n text: 'text-error',\n bg: 'bg-error',\n },\n}\n\nconst IssueBody = () => {\n const descriptionInput = useRef<RichTextEditorRef>(null)\n\n const { issueData, updateIssueData, memberList } = useIssueStore()\n\n const [editDescription, setEditDescription] = useState(false)\n\n const createNewData = () => {\n return { ...issueData }\n }\n\n const handleAddLabelClick = (value: string) => {\n const newData = createNewData()\n if (newData.labels.some((label) => label.id === value)) {\n newData.labels = newData.labels.filter(\n (label) => label.id !== value,\n )\n } else {\n const label = labelList.find((label) => label.id === value)\n if (label) {\n newData.labels.push(label)\n }\n }\n updateIssueData(newData)\n }\n\n const handleChangeStatusClick = (value: string) => {\n const newData = createNewData()\n newData.status = value\n updateIssueData(newData)\n }\n\n const handlePriorityChange = (value: string) => {\n const newData = createNewData()\n newData.priority = value\n updateIssueData(newData)\n }\n\n const handleAddMember = (value: string) => {\n const newData = createNewData()\n if (newData.assignees.some((member) => member.id === value)) {\n newData.assignees = newData.assignees.filter(\n (member) => member.id !== value,\n )\n } else {\n const member = memberList.find((member) => member.id === value)\n if (member) {\n newData.assignees.push(member)\n }\n }\n updateIssueData(newData)\n }\n\n const handleDueDateChange = (date: Date) => {\n const newData = createNewData()\n newData.dueDate = dayjs(date).unix()\n updateIssueData(newData)\n }\n\n const handleDescriptionChange = (value: string) => {\n const newData = createNewData()\n newData.description = value\n updateIssueData(newData)\n }\n\n const editor = useEditor({\n extensions: [\n StarterKit.configure({\n bulletList: {\n keepMarks: true,\n },\n orderedList: {\n keepMarks: true,\n },\n }),\n ],\n editorProps: {\n attributes: {\n class: 'm-2 focus:outline-none',\n },\n },\n content: issueData.description,\n onUpdate({ editor }) {\n handleDescriptionChange(editor.getHTML())\n },\n })\n\n const handleDescriptionClick = () => {\n setEditDescription(true)\n editor?.chain().focus()\n }\n\n return (\n <div>\n <div className=\"grid grid-cols-1 xl:grid-cols-2 gap-x-4\">\n <div className=\"flex flex-col\">\n <IssueFieldDropdown\n title=\"Label\"\n icon={<TbTag />}\n dropdownTrigger={\n <>\n {issueData.labels?.map((label, index) => (\n <Tag\n key={label.title + index}\n className={`${\n taskLabelColors[label.title]\n }`}\n >\n {label.title}\n </Tag>\n ))}\n </>\n }\n >\n {labelList.map((label) => (\n <Dropdown.Item\n key={label.title}\n eventKey={label.id}\n onSelect={handleAddLabelClick}\n >\n <div className=\"flex items-center relative\">\n {issueData.labels.some(\n (labelitem) =>\n labelitem.id === label.id,\n ) && (\n <TbCheck className=\"absolute text-primary ltr:left-[-5px] text-lg\" />\n )}\n <span\n className={classNames(\n issueData.labels.length > 0 &&\n 'mx-5',\n )}\n >\n {label.title}\n </span>\n </div>\n </Dropdown.Item>\n ))}\n </IssueFieldDropdown>\n <IssueFieldDropdown\n title=\"Status\"\n icon={<TbCircle />}\n dropdownTrigger={\n <Tag\n className={`${\n taskLabelColors[issueData.status || '']\n }`}\n >\n {issueData.status}\n </Tag>\n }\n >\n {statusList.map((status) => (\n <Dropdown.Item\n key={status}\n eventKey={status}\n active={status === issueData.status}\n onSelect={handleChangeStatusClick}\n >\n <div className=\"flex items-center relative\">\n <span>{status}</span>\n </div>\n </Dropdown.Item>\n ))}\n </IssueFieldDropdown>\n <IssueFieldDropdown\n title=\"Priority\"\n icon={<TbFlag />}\n dropdownTrigger={\n <div className=\"flex items-center gap-2\">\n <TbFlag2Filled\n className={classNames(\n 'text-lg',\n `${\n flagColors[issueData.priority || '']\n ?.text\n }`,\n )}\n />\n <span className=\"font-semibold\">\n {issueData.priority}\n </span>\n </div>\n }\n >\n {priorityList.map((priority) => (\n <Dropdown.Item\n key={priority}\n eventKey={priority}\n active={priority === issueData.priority}\n onSelect={handlePriorityChange}\n >\n <div className=\"flex items-center\">\n <Badge\n innerClass={`${flagColors[priority]?.bg}`}\n />\n <span className=\"ml-2 rtl:mr-2\">\n {priority}\n </span>\n </div>\n </Dropdown.Item>\n ))}\n </IssueFieldDropdown>\n </div>\n <div className=\"flex flex-col\">\n <IssueFieldDropdown\n title=\"Assigned to\"\n icon={<TbUser />}\n dropdownTrigger={\n <UsersAvatarGroup\n className=\"gap-1\"\n avatarProps={{\n className: 'cursor-pointer',\n }}\n avatarGroupProps={{ maxCount: 4 }}\n chained={false}\n users={issueData.assignees}\n />\n }\n >\n {memberList.map((member) => (\n <Dropdown.Item\n key={member.name}\n eventKey={member.id}\n onSelect={handleAddMember}\n >\n <div\n className={classNames(\n 'flex items-center justify-between relative',\n )}\n >\n {issueData.assignees.some(\n (assignee) => assignee.id === member.id,\n ) && (\n <TbCheck className=\"absolute text-primary ltr:left-[-5px] text-lg\" />\n )}\n <div\n className={classNames(\n 'flex items-center gap-2',\n issueData.labels.length > 0 &&\n 'mx-5',\n )}\n >\n <Avatar\n shape=\"circle\"\n size={22}\n src={member.img}\n />\n <span>{member.name}</span>\n </div>\n </div>\n </Dropdown.Item>\n ))}\n </IssueFieldDropdown>\n <IssueField title=\"Due date\" icon={<TbClock />}>\n <div className=\"flex items-center gap-1 px-3 rounded-xl hover:bg-gray-200 dark:hover:bg-gray-700 focus:bg-gray-200 dark:focus:bg-gray-700 cursor-pointer w-full min-h-[46px] relative\">\n <span className=\"font-semibold\">\n {dayjs\n .unix(issueData.dueDate || 0)\n .format('MMMM DD')}\n </span>\n <DatePicker\n className=\"opacity-0 cursor-pointer absolute\"\n value={dayjs\n .unix(issueData.dueDate || dayjs().unix())\n .toDate()}\n inputtable={false}\n inputPrefix={null}\n inputSuffix={null}\n clearable={false}\n onChange={(date) =>\n handleDueDateChange(date as Date)\n }\n />\n </div>\n </IssueField>\n </div>\n </div>\n <div className=\"mt-8\">\n <h5 className=\"mb-4\">Description</h5>\n {editDescription ? (\n <RichTextEditor\n ref={descriptionInput}\n content={issueData.description}\n customEditor={editor}\n onBlur={() => setEditDescription(false)}\n />\n ) : (\n <div\n className=\"mt-2 prose max-w-full cursor-pointer\"\n role=\"button\"\n onClick={handleDescriptionClick}\n >\n <div className=\"prose-p:text-sm prose-p:dark:text-gray-400\">\n {ReactHtmlParser(issueData.description || '')}\n </div>\n </div>\n )}\n </div>\n </div>\n )\n}\n\nexport default IssueBody\n"],"names":["labelList","taskLabelColors","statusList","priorityList","flagColors","IssueBody","descriptionInput","useRef","issueData","updateIssueData","memberList","useIssueStore","editDescription","setEditDescription","useState","createNewData","handleAddLabelClick","value","newData","label","handleChangeStatusClick","handlePriorityChange","handleAddMember","member","handleDueDateChange","date","dayjs","handleDescriptionChange","editor","useEditor","StarterKit","handleDescriptionClick","jsxs","jsx","IssueFieldDropdown","TbTag","Fragment","_a","index","Tag","Dropdown","labelitem","TbCheck","classNames","TbCircle","status","TbFlag","TbFlag2Filled","_b","priority","Badge","TbUser","UsersAvatarGroup","assignee","Avatar","IssueField","TbClock","DatePicker","RichTextEditor"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA4BO,MAAMA,IAAY;AAAA,EACrB,EAAE,IAAI,KAAK,OAAO,MAAA;AAAA,EAClB,EAAE,IAAI,KAAK,OAAO,aAAA;AAAA,E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AAA,QAAA;AAAA,MAAA,IAG1C,gBAAAoB;AAAA,QAAC;AAAA,QAAA;AAAA,UACG,WAAU;AAAA,UACV,MAAK;AAAA,UACL,SAASF;AAAA,UAET,UAAA,gBAAAE,EAAC,SAAI,WAAU,8CACV,YAAgBzB,EAAU,eAAe,EAAE,EAAA,CAChD;AAAA,QAAA;AAAA,MAAA;AAAA,IACJ,EAAA,CAER;AAAA,EAAA,GACJ;AAER;"}
1
+ {"version":3,"file":"IssueBody.js","sources":["../../../../../../../lib/@ecme/views/concepts/projects/Issue/components/IssueBody.tsx"],"sourcesContent":["/* eslint-disable react-refresh/only-export-components */\nimport { useState, useRef } from 'react'\nimport { useIssueStore } from '../store/issueStore'\nimport DatePicker from '@/components/ui/DatePicker'\nimport Avatar from '@/components/ui/Avatar'\nimport Dropdown from '@/components/ui/Dropdown'\nimport Tag from '@/components/ui/Tag'\nimport Badge from '@/components/ui/Badge'\nimport RichTextEditor from '@/components/shared/RichTextEditor'\nimport UsersAvatarGroup from '@/components/shared/UsersAvatarGroup'\nimport IssueField from './IssueField'\nimport IssueFieldDropdown from './IssueFieldDropdown'\nimport classNames from '@/utils/classNames'\nimport dayjs from 'dayjs'\nimport ReactHtmlParser from 'html-react-parser'\nimport {\n TbTag,\n TbCircle,\n TbFlag,\n TbFlag2Filled,\n TbUser,\n TbClock,\n TbCheck,\n} from 'react-icons/tb'\nimport { useEditor } from '@tiptap/react'\nimport StarterKit from '@tiptap/starter-kit'\nimport type { RichTextEditorRef } from '@/components/shared/RichTextEditor'\n\nexport const labelList = [\n { id: '1', title: 'Bug' },\n { id: '2', title: 'Live issue' },\n { id: '3', title: 'Task' },\n { id: '4', title: 'Optimization' },\n]\n\nexport const taskLabelColors: Record<string, string> = {\n 'Live issue': 'bg-rose-200 dark:bg-rose-200 dark:text-gray-900',\n Task: 'bg-blue-200 dark:bg-blue-200 dark:text-gray-900',\n Bug: 'bg-amber-200 dark:bg-amber-200 dark:text-gray-900',\n Optimization: 'bg-purple-200 dark:bg-purple-200 dark:text-gray-900',\n 'In progress': 'bg-sky-200 dark:bg-sky-200 dark:text-gray-900',\n Completed: 'bg-emerald-200 dark:bg-emerald-200 dark:text-gray-900',\n Pending: 'bg-amber-200 dark:bg-amber-200 dark:text-gray-900',\n}\n\nconst statusList: string[] = ['Pending', 'In progress', 'Completed']\n\nconst priorityList: string[] = ['Low', 'Medium', 'High']\n\nconst flagColors: Record<string, { text: string; bg: string }> = {\n Low: {\n text: 'text-success',\n bg: 'bg-success',\n },\n Medium: {\n text: 'text-warning',\n bg: 'bg-warning',\n },\n High: {\n text: 'text-error',\n bg: 'bg-error',\n },\n}\n\nconst IssueBody = () => {\n const descriptionInput = useRef<RichTextEditorRef>(null)\n\n const { issueData, updateIssueData, memberList } = useIssueStore()\n\n const [editDescription, setEditDescription] = useState(false)\n\n const createNewData = () => {\n return { ...issueData }\n }\n\n const handleAddLabelClick = (value: string) => {\n const newData = createNewData()\n if (newData.labels.some((label) => label.id === value)) {\n newData.labels = newData.labels.filter(\n (label) => label.id !== value,\n )\n } else {\n const label = labelList.find((label) => label.id === value)\n if (label) {\n newData.labels.push(label)\n }\n }\n updateIssueData(newData)\n }\n\n const handleChangeStatusClick = (value: string) => {\n const newData = createNewData()\n newData.status = value\n updateIssueData(newData)\n }\n\n const handlePriorityChange = (value: string) => {\n const newData = createNewData()\n newData.priority = value\n updateIssueData(newData)\n }\n\n const handleAddMember = (value: string) => {\n const newData = createNewData()\n if (newData.assignees.some((member) => member.id === value)) {\n newData.assignees = newData.assignees.filter(\n (member) => member.id !== value,\n )\n } else {\n const member = memberList.find((member) => member.id === value)\n if (member) {\n newData.assignees.push(member)\n }\n }\n updateIssueData(newData)\n }\n\n const handleDueDateChange = (date: Date) => {\n const newData = createNewData()\n newData.dueDate = dayjs(date).unix()\n updateIssueData(newData)\n }\n\n const handleDescriptionChange = (value: string) => {\n const newData = createNewData()\n newData.description = value\n updateIssueData(newData)\n }\n\n const editor = useEditor({\n extensions: [\n StarterKit.configure({\n bulletList: {\n keepMarks: true,\n },\n orderedList: {\n keepMarks: true,\n },\n }),\n ],\n editorProps: {\n attributes: {\n class: 'm-2 focus:outline-none',\n },\n },\n content: issueData.description,\n onUpdate({ editor }) {\n handleDescriptionChange(editor.getHTML())\n },\n })\n\n const handleDescriptionClick = () => {\n setEditDescription(true)\n editor?.chain().focus()\n }\n\n return (\n <div>\n <div className=\"grid grid-cols-1 xl:grid-cols-2 gap-x-4\">\n <div className=\"flex flex-col\">\n <IssueFieldDropdown\n title=\"Label\"\n icon={<TbTag />}\n dropdownTrigger={\n <>\n {issueData.labels?.map((label, index) => (\n <Tag\n key={label.title + index}\n className={`${\n taskLabelColors[label.title]\n }`}\n >\n {label.title}\n </Tag>\n ))}\n </>\n }\n >\n {labelList.map((label) => (\n <Dropdown.Item\n key={label.title}\n eventKey={label.id}\n onSelect={handleAddLabelClick}\n >\n <div className=\"flex items-center relative\">\n {issueData.labels.some(\n (labelitem) =>\n labelitem.id === label.id,\n ) && (\n <TbCheck className=\"absolute text-primary ltr:left-[-5px] text-lg\" />\n )}\n <span\n className={classNames(\n issueData.labels.length > 0 &&\n 'mx-5',\n )}\n >\n {label.title}\n </span>\n </div>\n </Dropdown.Item>\n ))}\n </IssueFieldDropdown>\n <IssueFieldDropdown\n title=\"Status\"\n icon={<TbCircle />}\n dropdownTrigger={\n <Tag\n className={`${\n taskLabelColors[issueData.status || '']\n }`}\n >\n {issueData.status}\n </Tag>\n }\n >\n {statusList.map((status) => (\n <Dropdown.Item\n key={status}\n eventKey={status}\n active={status === issueData.status}\n onSelect={handleChangeStatusClick}\n >\n <div className=\"flex items-center relative\">\n <span>{status}</span>\n </div>\n </Dropdown.Item>\n ))}\n </IssueFieldDropdown>\n <IssueFieldDropdown\n title=\"Priority\"\n icon={<TbFlag />}\n dropdownTrigger={\n <div className=\"flex items-center gap-2\">\n <TbFlag2Filled\n className={classNames(\n 'text-lg',\n `${\n flagColors[issueData.priority || '']\n ?.text\n }`,\n )}\n />\n <span className=\"font-semibold\">\n {issueData.priority}\n </span>\n </div>\n }\n >\n {priorityList.map((priority) => (\n <Dropdown.Item\n key={priority}\n eventKey={priority}\n active={priority === issueData.priority}\n onSelect={handlePriorityChange}\n >\n <div className=\"flex items-center\">\n <Badge\n innerClass={`${flagColors[priority]?.bg}`}\n />\n <span className=\"ml-2 rtl:mr-2\">\n {priority}\n </span>\n </div>\n </Dropdown.Item>\n ))}\n </IssueFieldDropdown>\n </div>\n <div className=\"flex flex-col\">\n <IssueFieldDropdown\n title=\"Assigned to\"\n icon={<TbUser />}\n dropdownTrigger={\n <UsersAvatarGroup\n className=\"gap-1\"\n avatarProps={{\n className: 'cursor-pointer',\n }}\n avatarGroupProps={{ maxCount: 4 }}\n chained={false}\n users={issueData.assignees}\n />\n }\n >\n {memberList.map((member) => (\n <Dropdown.Item\n key={member.name}\n eventKey={member.id}\n onSelect={handleAddMember}\n >\n <div\n className={classNames(\n 'flex items-center justify-between relative',\n )}\n >\n {issueData.assignees.some(\n (assignee) => assignee.id === member.id,\n ) && (\n <TbCheck className=\"absolute text-primary ltr:left-[-5px] text-lg\" />\n )}\n <div\n className={classNames(\n 'flex items-center gap-2',\n issueData.labels.length > 0 &&\n 'mx-5',\n )}\n >\n <Avatar\n shape=\"circle\"\n size={22}\n src={member.img}\n />\n <span>{member.name}</span>\n </div>\n </div>\n </Dropdown.Item>\n ))}\n </IssueFieldDropdown>\n <IssueField title=\"Due date\" icon={<TbClock />}>\n <div className=\"flex items-center gap-1 px-3 rounded-xl hover:bg-gray-200 dark:hover:bg-gray-700 focus:bg-gray-200 dark:focus:bg-gray-700 cursor-pointer w-full min-h-[46px] relative\">\n <span className=\"font-semibold\">\n {dayjs\n .unix(issueData.dueDate || 0)\n .format('MMMM DD')}\n </span>\n <DatePicker\n className=\"opacity-0 cursor-pointer absolute\"\n value={dayjs\n .unix(issueData.dueDate || dayjs().unix())\n .toDate()}\n inputtable={false}\n inputPrefix={null}\n inputSuffix={null}\n clearable={false}\n onChange={(date) =>\n handleDueDateChange(date as Date)\n }\n />\n </div>\n </IssueField>\n </div>\n </div>\n <div className=\"mt-8\">\n <h5 className=\"mb-4\">Description</h5>\n {editDescription ? (\n <RichTextEditor\n ref={descriptionInput}\n content={issueData.description}\n customEditor={editor}\n onBlur={() => setEditDescription(false)}\n />\n ) : (\n <div\n className=\"mt-2 prose max-w-full cursor-pointer\"\n role=\"button\"\n onClick={handleDescriptionClick}\n >\n <div className=\"prose-p:text-sm prose-p:dark:text-gray-400\">\n {ReactHtmlParser(issueData.description || '')}\n </div>\n </div>\n )}\n </div>\n </div>\n )\n}\n\nexport default IssueBody\n"],"names":["labelList","taskLabelColors","statusList","priorityList","flagColors","IssueBody","descriptionInput","useRef","issueData","updateIssueData","memberList","useIssueStore","editDescription","setEditDescription","useState","createNewData","handleAddLabelClick","value","newData","label","handleChangeStatusClick","handlePriorityChange","handleAddMember","member","handleDueDateChange","date","dayjs","handleDescriptionChange","editor","useEditor","StarterKit","handleDescriptionClick","jsxs","jsx","IssueFieldDropdown","TbTag","Fragment","index","Tag","Dropdown","labelitem","TbCheck","classNames","TbCircle","status","TbFlag","TbFlag2Filled","priority","Badge","TbUser","UsersAvatarGroup","assignee","Avatar","IssueField","TbClock","DatePicker","RichTextEditor"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA4BO,MAAMA,IAAY;AAAA,EACrB,EAAE,IAAI,KAAK,OAAO,MAAA;AAAA,EAClB,EAAE,IAAI,KAAK,OAAO,aAAA;AAAA,EAClB,EAAE,IAAI,KAAK,OAAO,OAAA;AAAA,EAClB,EAAE,IAAI,KAAK,OAAO,eAAA;AACtB,GAEaC,IAA0C;AAAA,EACnD,cAAc;AAAA,EACd,MAAM;AAAA,EACN,KAAK;AAAA,EACL,cAAc;AAAA,EACd,eAAe;AAAA,EACf,WAAW;AAAA,EACX,SAAS;AACb,GAEMC,IAAuB,CAAC,WAAW,eAAe,WAAW,GAE7DC,IAAyB,CAAC,OAAO,UAAU,MAAM,GA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