@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,34 +1,34 @@
1
1
  import { jsxs as a, Fragment as y, jsx as e } from "react/jsx-runtime";
2
- import { useState as f } from "react";
2
+ import { useState as x } from "react";
3
3
  import "../../../../../components/ui/Card/index.js";
4
4
  import "../../../../../components/ui/Upload/index.js";
5
5
  import "../../../../../components/ui/Form/index.js";
6
6
  import "../../../../../components/ui/Dialog/index.js";
7
- import b from "../../../../../components/shared/ConfirmDialog.js";
8
- import { Controller as w } from "react-hook-form";
9
- import { HiEye as I, HiTrash as j } from "react-icons/hi";
7
+ import N from "../../../../../components/shared/ConfirmDialog.js";
8
+ import { Controller as b } from "react-hook-form";
9
+ import { HiEye as I, HiTrash as w } from "react-icons/hi";
10
10
  import D from "lodash/cloneDeep";
11
11
  import { PiImagesThin as v } from "react-icons/pi";
12
- import k from "../../../../../components/ui/Dialog/Dialog.js";
13
- import L from "../../../../../components/ui/Card/Card.js";
14
- import O from "../../../../../components/ui/Form/FormItem.js";
12
+ import j from "../../../../../components/ui/Dialog/Dialog.js";
13
+ import k from "../../../../../components/ui/Card/Card.js";
14
+ import L from "../../../../../components/ui/Form/FormItem.js";
15
15
  import C from "../../../../../components/ui/Upload/Upload.js";
16
- const U = (h) => {
17
- const { imgList: p, onImageDelete: m } = h, [l, c] = f({}), [g, t] = f(!1), [r, n] = f(!1), s = (o) => {
18
- c(o), t(!0);
19
- }, i = () => {
16
+ const O = (u) => {
17
+ const { imgList: d, onImageDelete: p } = u, [i, m] = x({}), [r, t] = x(!1), [s, o] = x(!1), l = (n) => {
18
+ m(n), t(!0);
19
+ }, g = () => {
20
20
  t(!1), setTimeout(() => {
21
- c({});
21
+ m({});
22
22
  }, 300);
23
- }, u = (o) => {
24
- c(o), n(!0);
25
- }, d = () => {
26
- c({}), n(!1);
27
- }, x = () => {
28
- m == null || m(l), n(!1);
23
+ }, f = (n) => {
24
+ m(n), o(!0);
25
+ }, h = () => {
26
+ m({}), o(!1);
27
+ }, c = () => {
28
+ p?.(i), o(!1);
29
29
  };
30
30
  return /* @__PURE__ */ a(y, { children: [
31
- p.map((o) => /* @__PURE__ */ a(
31
+ d.map((n) => /* @__PURE__ */ a(
32
32
  "div",
33
33
  {
34
34
  className: "group relative rounded-xl border border-gray-200 dark:border-gray-600 p-2 flex",
@@ -37,8 +37,8 @@ const U = (h) => {
37
37
  "img",
38
38
  {
39
39
  className: "rounded-lg max-h-[140px] mx-auto max-w-full dark:bg-transparent",
40
- src: o.img,
41
- alt: o.name
40
+ src: n.img,
41
+ alt: n.name
42
42
  }
43
43
  ),
44
44
  /* @__PURE__ */ a("div", { className: "absolute inset-2 bg-[#000000ba] group-hover:flex hidden text-xl items-center justify-center", children: [
@@ -46,7 +46,7 @@ const U = (h) => {
46
46
  "span",
47
47
  {
48
48
  className: "text-gray-100 hover:text-gray-300 cursor-pointer p-1.5",
49
- onClick: () => s(o),
49
+ onClick: () => l(n),
50
50
  children: /* @__PURE__ */ e(I, {})
51
51
  }
52
52
  ),
@@ -54,97 +54,96 @@ const U = (h) => {
54
54
  "span",
55
55
  {
56
56
  className: "text-gray-100 hover:text-gray-300 cursor-pointer p-1.5",
57
- onClick: () => u(o),
58
- children: /* @__PURE__ */ e(j, {})
57
+ onClick: () => f(n),
58
+ children: /* @__PURE__ */ e(w, {})
59
59
  }
60
60
  )
61
61
  ] })
62
62
  ]
63
63
  },
64
- o.id
64
+ n.id
65
65
  )),
66
66
  /* @__PURE__ */ a(
67
- k,
67
+ j,
68
68
  {
69
- isOpen: g,
70
- onClose: i,
71
- onRequestClose: i,
69
+ isOpen: r,
70
+ onClose: g,
71
+ onRequestClose: g,
72
72
  children: [
73
- /* @__PURE__ */ e("h5", { className: "mb-4", children: l.name }),
73
+ /* @__PURE__ */ e("h5", { className: "mb-4", children: i.name }),
74
74
  /* @__PURE__ */ e(
75
75
  "img",
76
76
  {
77
77
  className: "w-full",
78
- src: l.img,
79
- alt: l.name
78
+ src: i.img,
79
+ alt: i.name
80
80
  }
81
81
  )
82
82
  ]
83
83
  }
84
84
  ),
85
85
  /* @__PURE__ */ e(
86
- b,
86
+ N,
87
87
  {
88
- isOpen: r,
88
+ isOpen: s,
89
89
  type: "danger",
90
90
  title: "Remove image",
91
- onClose: d,
92
- onRequestClose: d,
93
- onCancel: d,
94
- onConfirm: x,
91
+ onClose: h,
92
+ onRequestClose: h,
93
+ onCancel: h,
94
+ onConfirm: c,
95
95
  children: /* @__PURE__ */ e("p", { children: " Are you sure you want to remove this image? " })
96
96
  }
97
97
  )
98
98
  ] });
99
- }, Q = ({ control: h, errors: p }) => {
100
- var g;
101
- const m = (t) => {
102
- let r = !0;
103
- const n = ["image/jpeg", "image/png"], s = 5e5;
104
- if (t)
105
- for (const i of t)
106
- n.includes(i.type) || (r = "Please upload a .jpeg or .png file!"), i.size >= s && (r = "Upload image cannot more then 500kb!");
107
- return r;
108
- }, l = (t, r = [], n) => {
109
- let s = "1-img-0";
110
- const i = n.length - 1;
111
- if (r.length > 0) {
112
- const o = r[r.length - 1].id.split("-"), N = parseInt(o[o.length - 1]) + 1;
113
- o.pop(), s = [...o, N].join("-");
99
+ }, K = ({ control: u, errors: d }) => {
100
+ const p = (r) => {
101
+ let t = !0;
102
+ const s = ["image/jpeg", "image/png"], o = 5e5;
103
+ if (r)
104
+ for (const l of r)
105
+ s.includes(l.type) || (t = "Please upload a .jpeg or .png file!"), l.size >= o && (t = "Upload image cannot more then 500kb!");
106
+ return t;
107
+ }, i = (r, t = [], s) => {
108
+ let o = "1-img-0";
109
+ const l = s.length - 1;
110
+ if (t.length > 0) {
111
+ const c = t[t.length - 1].id.split("-"), n = parseInt(c[c.length - 1]) + 1;
112
+ c.pop(), o = [...c, n].join("-");
114
113
  }
115
- const u = {
116
- id: s,
117
- name: n[i].name,
118
- img: URL.createObjectURL(n[i])
119
- }, d = [...r, u];
120
- t(d);
121
- }, c = (t, r = [], n) => {
122
- let s = D(r);
123
- s = s.filter((i) => i.id !== n.id), t(s);
114
+ const g = {
115
+ id: o,
116
+ name: s[l].name,
117
+ img: URL.createObjectURL(s[l])
118
+ }, f = [...t, g];
119
+ r(f);
120
+ }, m = (r, t = [], s) => {
121
+ let o = D(t);
122
+ o = o.filter((l) => l.id !== s.id), r(o);
124
123
  };
125
- return /* @__PURE__ */ a(L, { children: [
124
+ return /* @__PURE__ */ a(k, { children: [
126
125
  /* @__PURE__ */ e("h4", { className: "mb-2", children: "Product Image" }),
127
126
  /* @__PURE__ */ e("p", { children: "Choose a product photo or simply drag and drop up to 5 photos here." }),
128
127
  /* @__PURE__ */ e("div", { className: "mt-4", children: /* @__PURE__ */ e(
129
- O,
128
+ L,
130
129
  {
131
- invalid: !!p.imgList,
132
- errorMessage: (g = p.imgList) == null ? void 0 : g.message,
130
+ invalid: !!d.imgList,
131
+ errorMessage: d.imgList?.message,
133
132
  className: "mb-4",
134
133
  children: /* @__PURE__ */ e(
135
- w,
134
+ b,
136
135
  {
137
136
  name: "imgList",
138
- control: h,
139
- render: ({ field: t }) => /* @__PURE__ */ e(y, { children: t.value && t.value.length ? /* @__PURE__ */ a("div", { className: "grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-2 xl:grid-cols-3 gap-2", children: [
137
+ control: u,
138
+ render: ({ field: r }) => /* @__PURE__ */ e(y, { children: r.value && r.value.length ? /* @__PURE__ */ a("div", { className: "grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-2 xl:grid-cols-3 gap-2", children: [
140
139
  /* @__PURE__ */ e(
141
- U,
140
+ O,
142
141
  {
143
- imgList: t.value,
144
- onImageDelete: (r) => c(
145
- t.onChange,
146
- t.value,
147
- r
142
+ imgList: r.value,
143
+ onImageDelete: (t) => m(
144
+ r.onChange,
145
+ r.value,
146
+ t
148
147
  )
149
148
  }
150
149
  ),
@@ -153,12 +152,12 @@ const U = (h) => {
153
152
  {
154
153
  draggable: !0,
155
154
  className: "min-h-fit",
156
- beforeUpload: m,
155
+ beforeUpload: p,
157
156
  showList: !1,
158
- onChange: (r) => l(
159
- t.onChange,
160
- t.value,
161
- r
157
+ onChange: (t) => i(
158
+ r.onChange,
159
+ r.value,
160
+ t
162
161
  ),
163
162
  children: /* @__PURE__ */ a("div", { className: "max-w-full flex flex-col px-4 py-2 justify-center items-center min-h-[130px]", children: [
164
163
  /* @__PURE__ */ e("div", { className: "text-[50px]", children: /* @__PURE__ */ e(v, {}) }),
@@ -177,12 +176,12 @@ const U = (h) => {
177
176
  C,
178
177
  {
179
178
  draggable: !0,
180
- beforeUpload: m,
179
+ beforeUpload: p,
181
180
  showList: !1,
182
- onChange: (r) => l(
183
- t.onChange,
184
- t.value,
185
- r
181
+ onChange: (t) => i(
182
+ r.onChange,
183
+ r.value,
184
+ t
186
185
  ),
187
186
  children: /* @__PURE__ */ a("div", { className: "max-w-full flex flex-col px-4 py-8 justify-center items-center", children: [
188
187
  /* @__PURE__ */ e("div", { className: "text-[60px]", children: /* @__PURE__ */ e(v, {}) }),
@@ -205,6 +204,6 @@ const U = (h) => {
205
204
  ] });
206
205
  };
207
206
  export {
208
- Q as default
207
+ K as default
209
208
  };
210
209
  //# sourceMappingURL=ImageSection.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ImageSection.js","sources":["../../../../../../../lib/@ecme/views/concepts/products/ProductForm/components/ImageSection.tsx"],"sourcesContent":["import { useState } from 'react'\nimport Card from '@/components/ui/Card'\nimport Upload from '@/components/ui/Upload'\nimport { FormItem } from '@/components/ui/Form'\nimport Dialog from '@/components/ui/Dialog'\nimport ConfirmDialog from '@/components/shared/ConfirmDialog'\nimport { Controller } from 'react-hook-form'\nimport { HiEye, HiTrash } from 'react-icons/hi'\nimport cloneDeep from 'lodash/cloneDeep'\nimport { PiImagesThin } from 'react-icons/pi'\n\nimport type { FormSectionBaseProps } from '../types'\n\ntype ImageSectionProps = FormSectionBaseProps\n\ntype Image = {\n id: string\n name: string\n img: string\n}\n\ntype ImageListProps = {\n imgList: Image[]\n onImageDelete: (img: Image) => void\n}\n\nconst ImageList = (props: ImageListProps) => {\n const { imgList, onImageDelete } = props\n\n const [selectedImg, setSelectedImg] = useState<Image>({} as Image)\n const [viewOpen, setViewOpen] = useState(false)\n const [deleteConfirmationOpen, setDeleteConfirmationOpen] = useState(false)\n\n const onViewOpen = (img: Image) => {\n setSelectedImg(img)\n setViewOpen(true)\n }\n\n const onDialogClose = () => {\n setViewOpen(false)\n setTimeout(() => {\n setSelectedImg({} as Image)\n }, 300)\n }\n\n const onDeleteConfirmation = (img: Image) => {\n setSelectedImg(img)\n setDeleteConfirmationOpen(true)\n }\n\n const onDeleteConfirmationClose = () => {\n setSelectedImg({} as Image)\n setDeleteConfirmationOpen(false)\n }\n\n const onDelete = () => {\n onImageDelete?.(selectedImg)\n setDeleteConfirmationOpen(false)\n }\n\n return (\n <>\n {imgList.map((img) => (\n <div\n key={img.id}\n className=\"group relative rounded-xl border border-gray-200 dark:border-gray-600 p-2 flex\"\n >\n <img\n className=\"rounded-lg max-h-[140px] mx-auto max-w-full dark:bg-transparent\"\n src={img.img}\n alt={img.name}\n />\n <div className=\"absolute inset-2 bg-[#000000ba] group-hover:flex hidden text-xl items-center justify-center\">\n <span\n className=\"text-gray-100 hover:text-gray-300 cursor-pointer p-1.5\"\n onClick={() => onViewOpen(img)}\n >\n <HiEye />\n </span>\n <span\n className=\"text-gray-100 hover:text-gray-300 cursor-pointer p-1.5\"\n onClick={() => onDeleteConfirmation(img)}\n >\n <HiTrash />\n </span>\n </div>\n </div>\n ))}\n <Dialog\n isOpen={viewOpen}\n onClose={onDialogClose}\n onRequestClose={onDialogClose}\n >\n <h5 className=\"mb-4\">{selectedImg.name}</h5>\n <img\n className=\"w-full\"\n src={selectedImg.img}\n alt={selectedImg.name}\n />\n </Dialog>\n <ConfirmDialog\n isOpen={deleteConfirmationOpen}\n type=\"danger\"\n title=\"Remove image\"\n onClose={onDeleteConfirmationClose}\n onRequestClose={onDeleteConfirmationClose}\n onCancel={onDeleteConfirmationClose}\n onConfirm={onDelete}\n >\n <p> Are you sure you want to remove this image? </p>\n </ConfirmDialog>\n </>\n )\n}\n\nconst ImageSection = ({ control, errors }: ImageSectionProps) => {\n const beforeUpload = (file: FileList | null) => {\n let valid: boolean | string = true\n\n const allowedFileType = ['image/jpeg', 'image/png']\n const maxFileSize = 500000\n\n if (file) {\n for (const f of file) {\n if (!allowedFileType.includes(f.type)) {\n valid = 'Please upload a .jpeg or .png file!'\n }\n\n if (f.size >= maxFileSize) {\n valid = 'Upload image cannot more then 500kb!'\n }\n }\n }\n\n return valid\n }\n\n const handleUpload = (\n onChange: (images: Image[]) => void,\n originalImageList: Image[] = [],\n files: File[],\n ) => {\n let imageId = '1-img-0'\n const latestUpload = files.length - 1\n if (originalImageList.length > 0) {\n const prevImgId = originalImageList[originalImageList.length - 1].id\n const splitImgId = prevImgId.split('-')\n const newIdNumber = parseInt(splitImgId[splitImgId.length - 1]) + 1\n splitImgId.pop()\n const newIdArr = [...splitImgId, ...[newIdNumber]]\n imageId = newIdArr.join('-')\n }\n const image = {\n id: imageId,\n name: files[latestUpload].name,\n img: URL.createObjectURL(files[latestUpload]),\n }\n const imageList = [...originalImageList, ...[image]]\n onChange(imageList)\n }\n\n const handleImageDelete = (\n onChange: (images: Image[]) => void,\n originalImageList: Image[] = [],\n deletedImg: Image,\n ) => {\n let imgList = cloneDeep(originalImageList)\n imgList = imgList.filter((img) => img.id !== deletedImg.id)\n onChange(imgList)\n }\n\n return (\n <Card>\n <h4 className=\"mb-2\">Product Image</h4>\n <p>\n Choose a product photo or simply drag and drop up to 5 photos\n here.\n </p>\n <div className=\"mt-4\">\n <FormItem\n invalid={Boolean(errors.imgList)}\n errorMessage={errors.imgList?.message}\n className=\"mb-4\"\n >\n <Controller\n name=\"imgList\"\n control={control}\n render={({ field }) => (\n <>\n {field.value && field.value.length ? (\n <div className=\"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-2 xl:grid-cols-3 gap-2\">\n <ImageList\n imgList={field.value}\n onImageDelete={(img: Image) =>\n handleImageDelete(\n field.onChange,\n field.value,\n img,\n )\n }\n />\n <Upload\n draggable\n className=\"min-h-fit\"\n beforeUpload={beforeUpload}\n showList={false}\n onChange={(files) =>\n handleUpload(\n field.onChange,\n field.value,\n files,\n )\n }\n >\n <div className=\"max-w-full flex flex-col px-4 py-2 justify-center items-center min-h-[130px]\">\n <div className=\"text-[50px]\">\n <PiImagesThin />\n </div>\n <p className=\"text-center mt-1 text-xs\">\n <span className=\"text-gray-800 dark:text-white\">\n Drop your image here, or{' '}\n {''}\n </span>\n <span className=\"text-primary\">\n Click to browse\n </span>\n </p>\n </div>\n </Upload>\n </div>\n ) : (\n <Upload\n draggable\n beforeUpload={beforeUpload}\n showList={false}\n onChange={(files) =>\n handleUpload(\n field.onChange,\n field.value,\n files,\n )\n }\n >\n <div className=\"max-w-full flex flex-col px-4 py-8 justify-center items-center\">\n <div className=\"text-[60px]\">\n <PiImagesThin />\n </div>\n <p className=\"flex flex-col items-center mt-2\">\n <span className=\"text-gray-800 dark:text-white\">\n Drop your image here, or{' '}\n {''}\n </span>\n <span className=\"text-primary\">\n Click to browse\n </span>\n </p>\n </div>\n </Upload>\n )}\n </>\n )}\n />\n </FormItem>\n </div>\n <p>\n Image formats: .jpg, .jpeg, .png, preferred size: 1:1, file size\n is restricted to a maximum of 500kb.\n </p>\n </Card>\n )\n}\n\nexport default ImageSection\n"],"names":["ImageList","props","imgList","onImageDelete","selectedImg","setSelectedImg","useState","viewOpen","setViewOpen","deleteConfirmationOpen","setDeleteConfirmationOpen","onViewOpen","img","onDialogClose","onDeleteConfirmation","onDeleteConfirmationClose","onDelete","jsxs","Fragment","jsx","HiEye","HiTrash","Dialog","ConfirmDialog","ImageSection","control","errors","beforeUpload","file","valid","allowedFileType","maxFileSize","f","handleUpload","onChange","originalImageList","files","imageId","latestUpload","splitImgId","newIdNumber","image","imageList","handleImageDelete","deletedImg","cloneDeep","Card","FormItem","_a","Controller","field","Upload","PiImagesThin"],"mappings":";;;;;;;;;;;;;;;AA0BA,MAAMA,IAAY,CAACC,MAA0B;AACzC,QAAM,EAAE,SAAAC,GAAS,eAAAC,EAAA,IAAkBF,GAE7B,CAACG,GAAaC,CAAc,IAAIC,EAAgB,CAAA,CAAW,GAC3D,CAACC,GAAUC,CAAW,IAAIF,EAAS,EAAK,GACxC,CAACG,GAAwBC,CAAyB,IAAIJ,EAAS,EAAK,GAEpEK,IAAa,CAACC,MAAe;AAC/B,IAAAP,EAAeO,CAAG,GAClBJ,EAAY,EAAI;AAAA,EACpB,GAEMK,IAAgB,MAAM;AACxB,IAAAL,EAAY,EAAK,GACjB,WAAW,MAAM;AACb,MAAAH,EAAe,CAAA,CAAW;AAAA,IAC9B,GAAG,GAAG;AAAA,EACV,GAEMS,IAAuB,CAACF,MAAe;AACzC,IAAAP,EAAeO,CAAG,GAClBF,EAA0B,EAAI;AAAA,EAClC,GAEMK,IAA4B,MAAM;AACpC,IAAAV,EAAe,CAAA,CAAW,GAC1BK,EAA0B,EAAK;AAA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sources":["../../../../../../../lib/@ecme/views/concepts/products/ProductForm/components/ImageSection.tsx"],"sourcesContent":["import { useState } from 'react'\nimport Card from '@/components/ui/Card'\nimport Upload from '@/components/ui/Upload'\nimport { FormItem } from '@/components/ui/Form'\nimport Dialog from '@/components/ui/Dialog'\nimport ConfirmDialog from '@/components/shared/ConfirmDialog'\nimport { Controller } from 'react-hook-form'\nimport { HiEye, HiTrash } from 'react-icons/hi'\nimport cloneDeep from 'lodash/cloneDeep'\nimport { PiImagesThin } from 'react-icons/pi'\n\nimport type { FormSectionBaseProps } from '../types'\n\ntype ImageSectionProps = FormSectionBaseProps\n\ntype Image = {\n id: string\n name: string\n img: string\n}\n\ntype ImageListProps = {\n imgList: Image[]\n onImageDelete: (img: Image) => void\n}\n\nconst ImageList = (props: ImageListProps) => {\n const { imgList, onImageDelete } = props\n\n const [selectedImg, setSelectedImg] = useState<Image>({} as Image)\n const [viewOpen, setViewOpen] = useState(false)\n const [deleteConfirmationOpen, setDeleteConfirmationOpen] = useState(false)\n\n const onViewOpen = (img: Image) => {\n setSelectedImg(img)\n setViewOpen(true)\n }\n\n const onDialogClose = () => {\n setViewOpen(false)\n setTimeout(() => {\n setSelectedImg({} as Image)\n }, 300)\n }\n\n const onDeleteConfirmation = (img: Image) => {\n setSelectedImg(img)\n setDeleteConfirmationOpen(true)\n }\n\n const onDeleteConfirmationClose = () => {\n setSelectedImg({} as Image)\n setDeleteConfirmationOpen(false)\n }\n\n const onDelete = () => {\n onImageDelete?.(selectedImg)\n setDeleteConfirmationOpen(false)\n }\n\n return (\n <>\n {imgList.map((img) => (\n <div\n key={img.id}\n className=\"group relative rounded-xl border border-gray-200 dark:border-gray-600 p-2 flex\"\n >\n <img\n className=\"rounded-lg max-h-[140px] mx-auto max-w-full dark:bg-transparent\"\n src={img.img}\n alt={img.name}\n />\n <div className=\"absolute inset-2 bg-[#000000ba] group-hover:flex hidden text-xl items-center justify-center\">\n <span\n className=\"text-gray-100 hover:text-gray-300 cursor-pointer p-1.5\"\n onClick={() => onViewOpen(img)}\n >\n <HiEye />\n </span>\n <span\n className=\"text-gray-100 hover:text-gray-300 cursor-pointer p-1.5\"\n onClick={() => onDeleteConfirmation(img)}\n >\n <HiTrash />\n </span>\n </div>\n </div>\n ))}\n <Dialog\n isOpen={viewOpen}\n onClose={onDialogClose}\n onRequestClose={onDialogClose}\n >\n <h5 className=\"mb-4\">{selectedImg.name}</h5>\n <img\n className=\"w-full\"\n src={selectedImg.img}\n alt={selectedImg.name}\n />\n </Dialog>\n <ConfirmDialog\n isOpen={deleteConfirmationOpen}\n type=\"danger\"\n title=\"Remove image\"\n onClose={onDeleteConfirmationClose}\n onRequestClose={onDeleteConfirmationClose}\n onCancel={onDeleteConfirmationClose}\n onConfirm={onDelete}\n >\n <p> Are you sure you want to remove this image? </p>\n </ConfirmDialog>\n </>\n )\n}\n\nconst ImageSection = ({ control, errors }: ImageSectionProps) => {\n const beforeUpload = (file: FileList | null) => {\n let valid: boolean | string = true\n\n const allowedFileType = ['image/jpeg', 'image/png']\n const maxFileSize = 500000\n\n if (file) {\n for (const f of file) {\n if (!allowedFileType.includes(f.type)) {\n valid = 'Please upload a .jpeg or .png file!'\n }\n\n if (f.size >= maxFileSize) {\n valid = 'Upload image cannot more then 500kb!'\n }\n }\n }\n\n return valid\n }\n\n const handleUpload = (\n onChange: (images: Image[]) => void,\n originalImageList: Image[] = [],\n files: File[],\n ) => {\n let imageId = '1-img-0'\n const latestUpload = files.length - 1\n if (originalImageList.length > 0) {\n const prevImgId = originalImageList[originalImageList.length - 1].id\n const splitImgId = prevImgId.split('-')\n const newIdNumber = parseInt(splitImgId[splitImgId.length - 1]) + 1\n splitImgId.pop()\n const newIdArr = [...splitImgId, ...[newIdNumber]]\n imageId = newIdArr.join('-')\n }\n const image = {\n id: imageId,\n name: files[latestUpload].name,\n img: URL.createObjectURL(files[latestUpload]),\n }\n const imageList = [...originalImageList, ...[image]]\n onChange(imageList)\n }\n\n const handleImageDelete = (\n onChange: (images: Image[]) => void,\n originalImageList: Image[] = [],\n deletedImg: Image,\n ) => {\n let imgList = cloneDeep(originalImageList)\n imgList = imgList.filter((img) => img.id !== deletedImg.id)\n onChange(imgList)\n }\n\n return (\n <Card>\n <h4 className=\"mb-2\">Product Image</h4>\n <p>\n Choose a product photo or simply drag and drop up to 5 photos\n here.\n </p>\n <div className=\"mt-4\">\n <FormItem\n invalid={Boolean(errors.imgList)}\n errorMessage={errors.imgList?.message}\n className=\"mb-4\"\n >\n <Controller\n name=\"imgList\"\n control={control}\n render={({ field }) => (\n <>\n {field.value && field.value.length ? (\n <div className=\"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-2 xl:grid-cols-3 gap-2\">\n <ImageList\n imgList={field.value}\n onImageDelete={(img: Image) =>\n handleImageDelete(\n field.onChange,\n field.value,\n img,\n )\n }\n />\n <Upload\n draggable\n className=\"min-h-fit\"\n beforeUpload={beforeUpload}\n showList={false}\n onChange={(files) =>\n handleUpload(\n field.onChange,\n field.value,\n files,\n )\n }\n >\n <div className=\"max-w-full flex flex-col px-4 py-2 justify-center items-center min-h-[130px]\">\n <div className=\"text-[50px]\">\n <PiImagesThin />\n </div>\n <p className=\"text-center mt-1 text-xs\">\n <span className=\"text-gray-800 dark:text-white\">\n Drop your image here, or{' '}\n {''}\n </span>\n <span className=\"text-primary\">\n Click to browse\n </span>\n </p>\n </div>\n </Upload>\n </div>\n ) : (\n <Upload\n draggable\n beforeUpload={beforeUpload}\n showList={false}\n onChange={(files) =>\n handleUpload(\n field.onChange,\n field.value,\n files,\n )\n }\n >\n <div className=\"max-w-full flex flex-col px-4 py-8 justify-center items-center\">\n <div className=\"text-[60px]\">\n <PiImagesThin />\n </div>\n <p className=\"flex flex-col items-center mt-2\">\n <span className=\"text-gray-800 dark:text-white\">\n Drop your image here, or{' '}\n {''}\n </span>\n <span className=\"text-primary\">\n Click to browse\n </span>\n </p>\n </div>\n </Upload>\n )}\n </>\n )}\n />\n </FormItem>\n </div>\n <p>\n Image formats: .jpg, .jpeg, .png, preferred size: 1:1, file size\n is restricted to a maximum of 500kb.\n </p>\n </Card>\n )\n}\n\nexport default ImageSection\n"],"names":["ImageList","props","imgList","onImageDelete","selectedImg","setSelectedImg","useState","viewOpen","setViewOpen","deleteConfirmationOpen","setDeleteConfirmationOpen","onViewOpen","img","onDialogClose","onDeleteConfirmation","onDeleteConfirmationClose","onDelete","jsxs","Fragment","jsx","HiEye","HiTrash","Dialog","ConfirmDialog","ImageSection","control","errors","beforeUpload","file","valid","allowedFileType","maxFileSize","f","handleUpload","onChange","originalImageList","files","imageId","latestUpload","splitImgId","newIdNumber","image","imageList","handleImageDelete","deletedImg","cloneDeep","Card","FormItem","Controller","field","Upload","PiImagesThin"],"mappings":";;;;;;;;;;;;;;;AA0BA,MAAMA,IAAY,CAACC,MAA0B;AACzC,QAAM,EAAE,SAAAC,GAAS,eAAAC,EAAA,IAAkBF,GAE7B,CAACG,GAAaC,CAAc,IAAIC,EAAgB,CAAA,CAAW,GAC3D,CAACC,GAAUC,CAAW,IAAIF,EAAS,EAAK,GACxC,CAACG,GAAwBC,CAAyB,IAAIJ,EAAS,EAAK,GAEpEK,IAAa,CAACC,MAAe;AAC/B,IAAAP,EAAeO,CAAG,GAClBJ,EAAY,EAAI;AAAA,EACpB,GAEMK,IAAgB,MAAM;AACxB,IAAAL,EAAY,EAAK,GACjB,WAAW,MAAM;AACb,MAAAH,EAAe,CAAA,CAAW;AAAA,IAC9B,GAAG,GAAG;AAAA,EACV,GAEMS,IAAuB,CAACF,MAAe;AACzC,IAAAP,EAAeO,CAAG,GAClBF,EAA0B,EAAI;AAAA,EAClC,GAEMK,IAA4B,MAAM;AACpC,IAAAV,EAAe,CAAA,CAAW,GAC1BK,EAA0B,EAAK;AAAA,EACnC,GAEMM,IAAW,MAAM;AACnB,IAAAb,IAAgBC,CAAW,GAC3BM,EAA0B,EAAK;AAAA,EACnC;AAEA,SACI,gBAAAO,EAAAC,GAAA,EACK,UAAA;AAAA,IAAAhB,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AAA;AAAA,wBACnB;AAAA,wBACxB;AAAA,sBAAA,GACL;AAAA,sBACA,gBAAAE,EAAC,QAAA,EAAK,WAAU,gBAAe,UAAA,kBAAA,CAE/B;AAAA,oBAAA,EAAA,CACJ;AAAA,kBAAA,EAAA,CACJ;AAAA,gBAAA;AAAA,cAAA;AAAA,YACJ,EAAA,CACJ,IAEA,gBAAAA;AAAA,cAAC+B;AAAA,cAAA;AAAA,gBACG,WAAS;AAAA,gBACT,cAAAvB;AAAA,gBACA,UAAU;AAAA,gBACV,UAAU,CAACS,MACPH;AAAA,kBACIgB,EAAM;AAAA,kBACNA,EAAM;AAAA,kBACNb;AAAA,gBAAA;AAAA,gBAIR,UAAA,gBAAAnB,EAAC,OAAA,EAAI,WAAU,kEACX,UAAA;AAAA,kBAAA,gBAAAE,EAAC,OAAA,EAAI,WAAU,eACX,UAAA,gBAAAA,EAACgC,KAAa,GAClB;AAAA,kBACA,gBAAAlC,EAAC,KAAA,EAAE,WAAU,mCACT,UAAA;AAAA,oBAAA,gBAAAA,EAAC,QAAA,EAAK,WAAU,iCAAgC,UAAA;AAAA,sBAAA;AAAA,sBACnB;AAAA,sBACxB;AAAA,oBAAA,GACL;AAAA,oBACA,gBAAAE,EAAC,QAAA,EAAK,WAAU,gBAAe,UAAA,kBAAA,CAE/B;AAAA,kBAAA,EAAA,CACJ;AAAA,gBAAA,EAAA,CACJ;AAAA,cAAA;AAAA,YAAA,EACJ,CAER;AAAA,UAAA;AAAA,QAAA;AAAA,MAER;AAAA,IAAA,GAER;AAAA,IACA,gBAAAA,EAAC,OAAE,UAAA,wGAAA,CAGH;AAAA,EAAA,GACJ;AAER;"}
@@ -3,131 +3,128 @@ import "../../../../../components/ui/Card/index.js";
3
3
  import "../../../../../components/ui/Form/index.js";
4
4
  import l from "../../../../../components/shared/NumericInput.js";
5
5
  import { Controller as r } from "react-hook-form";
6
- import h from "../../../../../components/ui/Card/Card.js";
6
+ import c from "../../../../../components/ui/Card/Card.js";
7
7
  import n from "../../../../../components/ui/Form/FormItem.js";
8
- const B = ({ control: o, errors: t }) => {
9
- var u, m, c, s;
10
- return /* @__PURE__ */ i(h, { children: [
11
- /* @__PURE__ */ e("h4", { className: "mb-6", children: "Pricing" }),
12
- /* @__PURE__ */ i("div", { children: [
13
- /* @__PURE__ */ e(
14
- n,
15
- {
16
- label: "Price",
17
- invalid: !!t.price,
18
- errorMessage: (u = t.price) == null ? void 0 : u.message,
19
- children: /* @__PURE__ */ e(
20
- r,
21
- {
22
- name: "price",
23
- control: o,
24
- render: ({ field: a }) => /* @__PURE__ */ e(
25
- l,
26
- {
27
- thousandSeparator: !0,
28
- type: "text",
29
- inputPrefix: "$",
30
- autoComplete: "off",
31
- placeholder: "0.00",
32
- value: a.value,
33
- onChange: a.onChange
34
- }
35
- )
36
- }
37
- )
38
- }
39
- ),
40
- /* @__PURE__ */ e(
41
- n,
42
- {
43
- label: "Cost price",
44
- invalid: !!t.costPerItem,
45
- errorMessage: (m = t.costPerItem) == null ? void 0 : m.message,
46
- children: /* @__PURE__ */ e(
47
- r,
48
- {
49
- name: "costPerItem",
50
- control: o,
51
- render: ({ field: a }) => /* @__PURE__ */ e(
52
- l,
53
- {
54
- thousandSeparator: !0,
55
- type: "text",
56
- inputPrefix: "$",
57
- autoComplete: "off",
58
- placeholder: "0.00",
59
- value: a.value,
60
- onChange: a.onChange
61
- }
62
- )
63
- }
64
- )
65
- }
66
- )
67
- ] }),
68
- /* @__PURE__ */ i("div", { className: "md:flex gap-4", children: [
69
- /* @__PURE__ */ e(
70
- n,
71
- {
72
- label: "Bulk discount price",
73
- invalid: !!t.bulkDiscountPrice,
74
- errorMessage: (c = t.bulkDiscountPrice) == null ? void 0 : c.message,
75
- className: "w-full",
76
- children: /* @__PURE__ */ e(
77
- r,
78
- {
79
- name: "bulkDiscountPrice",
80
- control: o,
81
- render: ({ field: a }) => /* @__PURE__ */ e(
82
- l,
83
- {
84
- thousandSeparator: !0,
85
- type: "text",
86
- inputPrefix: "$",
87
- autoComplete: "off",
88
- placeholder: "0.00",
89
- value: a.value,
90
- onChange: a.onChange
91
- }
92
- )
93
- }
94
- )
95
- }
96
- ),
97
- /* @__PURE__ */ e(
98
- n,
99
- {
100
- label: "Tax rate(%)",
101
- invalid: !!t.taxRate,
102
- errorMessage: (s = t.taxRate) == null ? void 0 : s.message,
103
- className: "w-full",
104
- children: /* @__PURE__ */ e(
105
- r,
106
- {
107
- name: "taxRate",
108
- control: o,
109
- render: ({ field: a }) => /* @__PURE__ */ e(
110
- l,
111
- {
112
- type: "text",
113
- autoComplete: "off",
114
- placeholder: "0",
115
- value: a.value,
116
- isAllowed: (p) => {
117
- const { floatValue: d } = p;
118
- return (d || 0) <= 100;
119
- },
120
- onChange: a.onChange
121
- }
122
- )
123
- }
124
- )
125
- }
126
- )
127
- ] })
128
- ] });
129
- };
8
+ const C = ({ control: o, errors: t }) => /* @__PURE__ */ i(c, { children: [
9
+ /* @__PURE__ */ e("h4", { className: "mb-6", children: "Pricing" }),
10
+ /* @__PURE__ */ i("div", { children: [
11
+ /* @__PURE__ */ e(
12
+ n,
13
+ {
14
+ label: "Price",
15
+ invalid: !!t.price,
16
+ errorMessage: t.price?.message,
17
+ children: /* @__PURE__ */ e(
18
+ r,
19
+ {
20
+ name: "price",
21
+ control: o,
22
+ render: ({ field: a }) => /* @__PURE__ */ e(
23
+ l,
24
+ {
25
+ thousandSeparator: !0,
26
+ type: "text",
27
+ inputPrefix: "$",
28
+ autoComplete: "off",
29
+ placeholder: "0.00",
30
+ value: a.value,
31
+ onChange: a.onChange
32
+ }
33
+ )
34
+ }
35
+ )
36
+ }
37
+ ),
38
+ /* @__PURE__ */ e(
39
+ n,
40
+ {
41
+ label: "Cost price",
42
+ invalid: !!t.costPerItem,
43
+ errorMessage: t.costPerItem?.message,
44
+ children: /* @__PURE__ */ e(
45
+ r,
46
+ {
47
+ name: "costPerItem",
48
+ control: o,
49
+ render: ({ field: a }) => /* @__PURE__ */ e(
50
+ l,
51
+ {
52
+ thousandSeparator: !0,
53
+ type: "text",
54
+ inputPrefix: "$",
55
+ autoComplete: "off",
56
+ placeholder: "0.00",
57
+ value: a.value,
58
+ onChange: a.onChange
59
+ }
60
+ )
61
+ }
62
+ )
63
+ }
64
+ )
65
+ ] }),
66
+ /* @__PURE__ */ i("div", { className: "md:flex gap-4", children: [
67
+ /* @__PURE__ */ e(
68
+ n,
69
+ {
70
+ label: "Bulk discount price",
71
+ invalid: !!t.bulkDiscountPrice,
72
+ errorMessage: t.bulkDiscountPrice?.message,
73
+ className: "w-full",
74
+ children: /* @__PURE__ */ e(
75
+ r,
76
+ {
77
+ name: "bulkDiscountPrice",
78
+ control: o,
79
+ render: ({ field: a }) => /* @__PURE__ */ e(
80
+ l,
81
+ {
82
+ thousandSeparator: !0,
83
+ type: "text",
84
+ inputPrefix: "$",
85
+ autoComplete: "off",
86
+ placeholder: "0.00",
87
+ value: a.value,
88
+ onChange: a.onChange
89
+ }
90
+ )
91
+ }
92
+ )
93
+ }
94
+ ),
95
+ /* @__PURE__ */ e(
96
+ n,
97
+ {
98
+ label: "Tax rate(%)",
99
+ invalid: !!t.taxRate,
100
+ errorMessage: t.taxRate?.message,
101
+ className: "w-full",
102
+ children: /* @__PURE__ */ e(
103
+ r,
104
+ {
105
+ name: "taxRate",
106
+ control: o,
107
+ render: ({ field: a }) => /* @__PURE__ */ e(
108
+ l,
109
+ {
110
+ type: "text",
111
+ autoComplete: "off",
112
+ placeholder: "0",
113
+ value: a.value,
114
+ isAllowed: (u) => {
115
+ const { floatValue: m } = u;
116
+ return (m || 0) <= 100;
117
+ },
118
+ onChange: a.onChange
119
+ }
120
+ )
121
+ }
122
+ )
123
+ }
124
+ )
125
+ ] })
126
+ ] });
130
127
  export {
131
- B as default
128
+ C as default
132
129
  };
133
130
  //# sourceMappingURL=PricingSection.js.map