@orbe-agro/client-core 5.3.86 → 5.3.90

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 +3 -22
  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 +15 -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 +9 -7
  501. package/package.json +1 -1
  502. package/tsconfig.json +6 -1
@@ -1,43 +1,42 @@
1
- import { jsx as e, Fragment as c } from "react/jsx-runtime";
1
+ import { jsx as e, Fragment as d } from "react/jsx-runtime";
2
2
  import "../../../../@ecme/components/shared/index.js";
3
3
  import "../../../../@ecme/components/ui/index.js";
4
- import { Controller as f } from "react-hook-form";
5
- import s from "../../../../@ecme/components/ui/Form/FormItem.js";
6
- import h from "../../../../@ecme/components/shared/NumericInput.js";
7
- function S({
8
- control: n,
9
- errors: i,
10
- isView: l,
11
- index: m,
12
- label: p,
13
- placeholder: u,
4
+ import { Controller as c } from "react-hook-form";
5
+ import f from "../../../../@ecme/components/ui/Form/FormItem.js";
6
+ import s from "../../../../@ecme/components/shared/NumericInput.js";
7
+ function F({
8
+ control: a,
9
+ errors: n,
10
+ isView: i,
11
+ index: l,
12
+ label: m,
13
+ placeholder: p,
14
14
  nameNumberArray: r
15
15
  }) {
16
- var t;
17
- const o = (t = i[r]) == null ? void 0 : t[m];
18
- return /* @__PURE__ */ e(c, { children: /* @__PURE__ */ e(
19
- s,
16
+ const o = n[r]?.[l];
17
+ return /* @__PURE__ */ e(d, { children: /* @__PURE__ */ e(
18
+ f,
20
19
  {
21
- label: p,
20
+ label: m,
22
21
  invalid: !!o,
23
22
  errorMessage: o,
24
23
  children: /* @__PURE__ */ e(
25
- f,
24
+ c,
26
25
  {
27
26
  name: r,
28
- control: n,
29
- render: ({ field: a }) => /* @__PURE__ */ e(
30
- h,
27
+ control: a,
28
+ render: ({ field: t }) => /* @__PURE__ */ e(
29
+ s,
31
30
  {
32
31
  thousandSeparator: !0,
33
32
  type: "text",
34
33
  autoComplete: "off",
35
- placeholder: u,
34
+ placeholder: p,
36
35
  displayType: "input",
37
- value: a.value,
38
- disabled: l,
36
+ value: t.value,
37
+ disabled: i,
39
38
  decimalScale: 2,
40
- onValueChange: (d) => a.onChange(d.floatValue ?? 0)
39
+ onValueChange: (u) => t.onChange(u.floatValue ?? 0)
41
40
  }
42
41
  )
43
42
  }
@@ -46,6 +45,6 @@ function S({
46
45
  ) });
47
46
  }
48
47
  export {
49
- S as default
48
+ F as default
50
49
  };
51
50
  //# sourceMappingURL=GenericArrayNumberFormSection.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GenericArrayNumberFormSection.js","sources":["../../../../../lib/base/components/forms/ArraysForms/GenericArrayNumberFormSection.tsx"],"sourcesContent":["import { NumericInput } from '@/components/shared'\nimport { FormItem } from '@/components/ui'\nimport { IFormSectionBaseProps } from '@base/@types/forms'\nimport { Controller, FieldErrors, FieldValues, Path } from 'react-hook-form'\n\ntype GeneralFormSectionProps<T extends FieldValues> =\n IFormSectionBaseProps<T> & {\n index: number\n label: string\n placeholder: string\n nameNumberArray: Path<T>\n }\n\nfunction GenericArrayNumberFormSection<T extends FieldValues>({\n control,\n errors,\n isView,\n index,\n label,\n placeholder,\n nameNumberArray\n}: GeneralFormSectionProps<T>) {\n const fieldError = (\n (errors as FieldErrors<T>)[nameNumberArray] as unknown as Record<\n number,\n string\n >\n )?.[index]\n\n return (\n <>\n <FormItem\n label={label}\n invalid={Boolean(fieldError)}\n errorMessage={fieldError}\n >\n <Controller\n name={nameNumberArray}\n control={control}\n render={({ field }) => (\n <NumericInput\n thousandSeparator\n type=\"text\"\n autoComplete=\"off\"\n placeholder={placeholder}\n displayType=\"input\"\n value={field.value}\n disabled={isView}\n decimalScale={2}\n onValueChange={(e) =>\n field.onChange(e.floatValue ?? 0)\n }\n />\n )}\n />\n </FormItem>\n </>\n )\n}\n\nexport default GenericArrayNumberFormSection\n"],"names":["GenericArrayNumberFormSection","control","errors","isView","index","label","placeholder","nameNumberArray","fieldError","_a","jsx","Fragment","FormItem","Controller","field","NumericInput","e"],"mappings":";;;;;;AAaA,SAASA,EAAqD;AAAA,EAC1D,SAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC;AAAA,EACA,OAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,iBAAAC;AACJ,GAA+B;;AAC3B,QAAMC,KACDC,IAAAP,EAA0BK,CAAe,MAAzC,gBAAAE,EAIDL;AAEJ,SACI,gBAAAM,EAAAC,GAAA,EACI,UAAA,gBAAAD;AAAA,IAACE;AAAA,IAAA;AAAA,MACG,OAAAP;AAAA,MACA,SAAS,EAAQG;AAAA,MACjB,cAAcA;AAAA,MAEd,UAAA,gBAAAE;AAAA,QAACG;AAAA,QAAA;AAAA,UACG,MAAMN;AAAA,UACN,SAAAN;AAAA,UACA,QAAQ,CAAC,EAAE,OAAAa,EAAA,MACP,gBAAAJ;AAAA,YAACK;AAAA,YAAA;AAAA,cACG,mBAAiB;AAAA,cACjB,MAAK;AAAA,cACL,cAAa;AAAA,cACb,aAAAT;AAAA,cACA,aAAY;AAAA,cACZ,OAAOQ,EAAM;AAAA,cACb,UAAUX;AAAA,cACV,cAAc;AAAA,cACd,eAAe,CAACa,MACZF,EAAM,SAASE,EAAE,cAAc,CAAC;AAAA,YAAA;AAAA,UAAA;AAAA,QAExC;AAAA,MAAA;AAAA,IAER;AAAA,EAAA,GAER;AAER;"}
1
+ {"version":3,"file":"GenericArrayNumberFormSection.js","sources":["../../../../../lib/base/components/forms/ArraysForms/GenericArrayNumberFormSection.tsx"],"sourcesContent":["import { NumericInput } from '@/components/shared'\nimport { FormItem } from '@/components/ui'\nimport { IFormSectionBaseProps } from '@base/@types/forms'\nimport { Controller, FieldErrors, FieldValues, Path } from 'react-hook-form'\n\ntype GeneralFormSectionProps<T extends FieldValues> =\n IFormSectionBaseProps<T> & {\n index: number\n label: string\n placeholder: string\n nameNumberArray: Path<T>\n }\n\nfunction GenericArrayNumberFormSection<T extends FieldValues>({\n control,\n errors,\n isView,\n index,\n label,\n placeholder,\n nameNumberArray\n}: GeneralFormSectionProps<T>) {\n const fieldError = (\n (errors as FieldErrors<T>)[nameNumberArray] as unknown as Record<\n number,\n string\n >\n )?.[index]\n\n return (\n <>\n <FormItem\n label={label}\n invalid={Boolean(fieldError)}\n errorMessage={fieldError}\n >\n <Controller\n name={nameNumberArray}\n control={control}\n render={({ field }) => (\n <NumericInput\n thousandSeparator\n type=\"text\"\n autoComplete=\"off\"\n placeholder={placeholder}\n displayType=\"input\"\n value={field.value}\n disabled={isView}\n decimalScale={2}\n onValueChange={(e) =>\n field.onChange(e.floatValue ?? 0)\n }\n />\n )}\n />\n </FormItem>\n </>\n )\n}\n\nexport default GenericArrayNumberFormSection\n"],"names":["GenericArrayNumberFormSection","control","errors","isView","index","label","placeholder","nameNumberArray","fieldError","jsx","Fragment","FormItem","Controller","field","NumericInput","e"],"mappings":";;;;;;AAaA,SAASA,EAAqD;AAAA,EAC1D,SAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC;AAAA,EACA,OAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,iBAAAC;AACJ,GAA+B;AAC3B,QAAMC,IACDN,EAA0BK,CAAe,IAI1CH,CAAK;AAET,SACI,gBAAAK,EAAAC,GAAA,EACI,UAAA,gBAAAD;AAAA,IAACE;AAAA,IAAA;AAAA,MACG,OAAAN;AAAA,MACA,SAAS,EAAQG;AAAA,MACjB,cAAcA;AAAA,MAEd,UAAA,gBAAAC;AAAA,QAACG;AAAA,QAAA;AAAA,UACG,MAAML;AAAA,UACN,SAAAN;AAAA,UACA,QAAQ,CAAC,EAAE,OAAAY,EAAA,MACP,gBAAAJ;AAAA,YAACK;AAAA,YAAA;AAAA,cACG,mBAAiB;AAAA,cACjB,MAAK;AAAA,cACL,cAAa;AAAA,cACb,aAAAR;AAAA,cACA,aAAY;AAAA,cACZ,OAAOO,EAAM;AAAA,cACb,UAAUV;AAAA,cACV,cAAc;AAAA,cACd,eAAe,CAACY,MACZF,EAAM,SAASE,EAAE,cAAc,CAAC;AAAA,YAAA;AAAA,UAAA;AAAA,QAExC;AAAA,MAAA;AAAA,IAER;AAAA,EAAA,GAER;AAER;"}
@@ -1,38 +1,37 @@
1
- import { jsx as r, Fragment as f } from "react/jsx-runtime";
1
+ import { jsx as r, Fragment as a } from "react/jsx-runtime";
2
2
  import "../../../../@ecme/components/ui/index.js";
3
- import { Controller as c } from "react-hook-form";
4
- import s from "../../../../@ecme/components/ui/Form/FormItem.js";
5
- import u from "../../../../@ecme/components/ui/Input/Input.js";
6
- function b({
7
- control: i,
8
- errors: n,
9
- isView: m,
10
- index: d,
11
- label: l,
12
- placeholder: p,
3
+ import { Controller as f } from "react-hook-form";
4
+ import c from "../../../../@ecme/components/ui/Form/FormItem.js";
5
+ import s from "../../../../@ecme/components/ui/Input/Input.js";
6
+ function I({
7
+ control: t,
8
+ errors: i,
9
+ isView: n,
10
+ index: m,
11
+ label: d,
12
+ placeholder: l,
13
13
  nameStringArray: e
14
14
  }) {
15
- var t;
16
- const o = (t = n[e]) == null ? void 0 : t[d];
17
- return /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(
18
- s,
15
+ const o = i[e]?.[m];
16
+ return /* @__PURE__ */ r(a, { children: /* @__PURE__ */ r(
17
+ c,
19
18
  {
20
- label: l,
19
+ label: d,
21
20
  invalid: !!o,
22
21
  errorMessage: o,
23
22
  children: /* @__PURE__ */ r(
24
- c,
23
+ f,
25
24
  {
26
25
  name: e,
27
- control: i,
28
- render: ({ field: a }) => /* @__PURE__ */ r(
29
- u,
26
+ control: t,
27
+ render: ({ field: p }) => /* @__PURE__ */ r(
28
+ s,
30
29
  {
31
30
  required: !0,
32
- disabled: m,
31
+ disabled: n,
33
32
  type: "text",
34
- placeholder: p,
35
- ...a
33
+ placeholder: l,
34
+ ...p
36
35
  }
37
36
  )
38
37
  }
@@ -41,6 +40,6 @@ function b({
41
40
  ) });
42
41
  }
43
42
  export {
44
- b as default
43
+ I as default
45
44
  };
46
45
  //# sourceMappingURL=GenericArrayStringFormSection.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GenericArrayStringFormSection.js","sources":["../../../../../lib/base/components/forms/ArraysForms/GenericArrayStringFormSection.tsx"],"sourcesContent":["import { FormItem, Input } from '@/components/ui'\nimport { IFormSectionBaseProps } from '@base/@types/forms'\nimport { Controller, FieldErrors, FieldValues, Path } from 'react-hook-form'\n\ntype GeneralFormSectionProps<T extends FieldValues> =\n IFormSectionBaseProps<T> & {\n index: number\n label: string\n placeholder: string\n nameStringArray: Path<T>\n }\n\nfunction GenericArrayStringFormSection<T extends FieldValues>({\n control,\n errors,\n isView,\n index,\n label,\n placeholder,\n nameStringArray,\n}: GeneralFormSectionProps<T>) {\n const fieldError = ((errors as FieldErrors<T>)[nameStringArray] as unknown as Record<number, string>)?.[index]\n\n return (\n <>\n <FormItem\n label={label}\n invalid={Boolean(fieldError)}\n errorMessage={fieldError}\n >\n <Controller\n name={nameStringArray}\n control={control}\n render={({ field }) => (\n <Input\n required\n disabled={isView}\n type=\"text\"\n placeholder={placeholder}\n {...field}\n />\n )}\n />\n </FormItem>\n </>\n )\n}\n\nexport default GenericArrayStringFormSection\n"],"names":["GenericArrayStringFormSection","control","errors","isView","index","label","placeholder","nameStringArray","fieldError","_a","jsx","Fragment","FormItem","Controller","field","Input"],"mappings":";;;;;AAYA,SAASA,EAAqD;AAAA,EAC1D,SAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC;AAAA,EACA,OAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,iBAAAC;AACJ,GAA+B;;AAC3B,QAAMC,KAAeC,IAAAP,EAA0BK,CAAe,MAAzC,gBAAAE,EAAmFL;AAExG,SACI,gBAAAM,EAAAC,GAAA,EACI,UAAA,gBAAAD;AAAA,IAACE;AAAA,IAAA;AAAA,MACG,OAAAP;AAAA,MACA,SAAS,EAAQG;AAAA,MACjB,cAAcA;AAAA,MAEd,UAAA,gBAAAE;AAAA,QAACG;AAAA,QAAA;AAAA,UACG,MAAMN;AAAA,UACN,SAAAN;AAAA,UACA,QAAQ,CAAC,EAAE,OAAAa,EAAA,MACP,gBAAAJ;AAAA,YAACK;AAAA,YAAA;AAAA,cACG,UAAQ;AAAA,cACR,UAAUZ;AAAA,cACV,MAAK;AAAA,cACL,aAAAG;AAAA,cACC,GAAGQ;AAAA,YAAA;AAAA,UAAA;AAAA,QACR;AAAA,MAAA;AAAA,IAER;AAAA,EAAA,GAER;AAER;"}
1
+ {"version":3,"file":"GenericArrayStringFormSection.js","sources":["../../../../../lib/base/components/forms/ArraysForms/GenericArrayStringFormSection.tsx"],"sourcesContent":["import { FormItem, Input } from '@/components/ui'\nimport { IFormSectionBaseProps } from '@base/@types/forms'\nimport { Controller, FieldErrors, FieldValues, Path } from 'react-hook-form'\n\ntype GeneralFormSectionProps<T extends FieldValues> =\n IFormSectionBaseProps<T> & {\n index: number\n label: string\n placeholder: string\n nameStringArray: Path<T>\n }\n\nfunction GenericArrayStringFormSection<T extends FieldValues>({\n control,\n errors,\n isView,\n index,\n label,\n placeholder,\n nameStringArray,\n}: GeneralFormSectionProps<T>) {\n const fieldError = ((errors as FieldErrors<T>)[nameStringArray] as unknown as Record<number, string>)?.[index]\n\n return (\n <>\n <FormItem\n label={label}\n invalid={Boolean(fieldError)}\n errorMessage={fieldError}\n >\n <Controller\n name={nameStringArray}\n control={control}\n render={({ field }) => (\n <Input\n required\n disabled={isView}\n type=\"text\"\n placeholder={placeholder}\n {...field}\n />\n )}\n />\n </FormItem>\n </>\n )\n}\n\nexport default GenericArrayStringFormSection\n"],"names":["GenericArrayStringFormSection","control","errors","isView","index","label","placeholder","nameStringArray","fieldError","jsx","Fragment","FormItem","Controller","field","Input"],"mappings":";;;;;AAYA,SAASA,EAAqD;AAAA,EAC1D,SAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC;AAAA,EACA,OAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,iBAAAC;AACJ,GAA+B;AAC3B,QAAMC,IAAeN,EAA0BK,CAAe,IAA0CH,CAAK;AAE7G,SACI,gBAAAK,EAAAC,GAAA,EACI,UAAA,gBAAAD;AAAA,IAACE;AAAA,IAAA;AAAA,MACG,OAAAN;AAAA,MACA,SAAS,EAAQG;AAAA,MACjB,cAAcA;AAAA,MAEd,UAAA,gBAAAC;AAAA,QAACG;AAAA,QAAA;AAAA,UACG,MAAML;AAAA,UACN,SAAAN;AAAA,UACA,QAAQ,CAAC,EAAE,OAAAY,EAAA,MACP,gBAAAJ;AAAA,YAACK;AAAA,YAAA;AAAA,cACG,UAAQ;AAAA,cACR,UAAUX;AAAA,cACV,MAAK;AAAA,cACL,aAAAG;AAAA,cACC,GAAGO;AAAA,YAAA;AAAA,UAAA;AAAA,QACR;AAAA,MAAA;AAAA,IAER;AAAA,EAAA,GAER;AAER;"}
@@ -1,32 +1,31 @@
1
- import { jsx as t, Fragment as u } from "react/jsx-runtime";
1
+ import { jsx as r, Fragment as i } from "react/jsx-runtime";
2
2
  import "../../../../@ecme/components/shared/index.js";
3
3
  import "../../../../@ecme/components/ui/index.js";
4
- import { Controller as c } from "react-hook-form";
5
- import r from "../../../../@ecme/components/ui/Form/FormItem.js";
6
- import d from "../../../../@ecme/components/shared/NumericInput.js";
7
- function B({
8
- control: m,
9
- errors: e,
10
- isView: n,
11
- name: l,
12
- label: i,
13
- placeholder: f,
14
- value: h
4
+ import { Controller as p } from "react-hook-form";
5
+ import u from "../../../../@ecme/components/ui/Form/FormItem.js";
6
+ import c from "../../../../@ecme/components/shared/NumericInput.js";
7
+ function C({
8
+ control: t,
9
+ errors: a,
10
+ isView: l,
11
+ name: o,
12
+ label: m,
13
+ placeholder: d,
14
+ value: f
15
15
  }) {
16
- var o;
17
- return /* @__PURE__ */ t(u, { children: /* @__PURE__ */ t(
18
- r,
16
+ return /* @__PURE__ */ r(i, { children: /* @__PURE__ */ r(
17
+ u,
19
18
  {
20
- label: i,
21
- invalid: !!(e != null && e[l]),
22
- errorMessage: (o = e == null ? void 0 : e[l]) == null ? void 0 : o.message,
23
- children: /* @__PURE__ */ t(
24
- c,
19
+ label: m,
20
+ invalid: !!a?.[o],
21
+ errorMessage: a?.[o]?.message,
22
+ children: /* @__PURE__ */ r(
23
+ p,
25
24
  {
26
- name: l,
27
- control: m,
28
- render: ({ field: a }) => /* @__PURE__ */ t(
29
- d,
25
+ name: o,
26
+ control: t,
27
+ render: ({ field: e }) => /* @__PURE__ */ r(
28
+ c,
30
29
  {
31
30
  thousandSeparator: ".",
32
31
  decimalSeparator: ",",
@@ -35,15 +34,15 @@ function B({
35
34
  autoComplete: "off",
36
35
  placeholder: "R$ 0,00",
37
36
  displayType: "input",
38
- disabled: n,
37
+ disabled: l,
39
38
  decimalScale: 2,
40
39
  fixedDecimalScale: !0,
41
- value: a.value ?? 0,
42
- onValueChange: (p) => {
43
- a.onChange(p.floatValue ?? 0);
40
+ value: e.value ?? 0,
41
+ onValueChange: (n) => {
42
+ e.onChange(n.floatValue ?? 0);
44
43
  },
45
- onBlur: a.onBlur,
46
- name: a.name
44
+ onBlur: e.onBlur,
45
+ name: e.name
47
46
  }
48
47
  )
49
48
  }
@@ -52,6 +51,6 @@ function B({
52
51
  ) });
53
52
  }
54
53
  export {
55
- B as default
54
+ C as default
56
55
  };
57
56
  //# sourceMappingURL=GenericNumberFormSectionPrice.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GenericNumberFormSectionPrice.js","sources":["../../../../../lib/base/components/forms/GenericFomrsSetValue/GenericNumberFormSectionPrice.tsx"],"sourcesContent":["import { NumericInput } from '@/components/shared'\nimport { FormItem } from '@/components/ui'\nimport { IFormSectionBaseProps } from '@base/@types/forms'\nimport { Controller, FieldValues, Path } from 'react-hook-form'\n\ntype GeneralFormSectionProps<T extends FieldValues> =\n IFormSectionBaseProps<T> & {\n value: number\n name: Path<T>\n label: string\n placeholder: string\n }\n\nfunction GenericNumberFormSectionPrice<T extends FieldValues>({\n control,\n errors,\n isView,\n name,\n label,\n placeholder,\n value\n}: GeneralFormSectionProps<T>) {\n return (\n <>\n <FormItem\n label={label}\n invalid={Boolean(errors?.[name])}\n errorMessage={errors?.[name]?.message as string}\n >\n <Controller\n name={name}\n control={control}\n render={({ field }) => (\n <NumericInput\n thousandSeparator=\".\"\n decimalSeparator=\",\"\n prefix=\"R$ \"\n type=\"text\"\n autoComplete=\"off\"\n placeholder=\"R$ 0,00\"\n displayType=\"input\"\n disabled={isView}\n decimalScale={2}\n fixedDecimalScale\n // importante: não espalhar {...field}, porque ele injeta onChange errado\n value={field.value ?? 0}\n onValueChange={(values) => {\n field.onChange(values.floatValue ?? 0) // só o float vai para o form\n }}\n // se precisar de blur/focus, pega manualmente\n onBlur={field.onBlur}\n name={field.name}\n />\n )}\n />\n </FormItem>\n </>\n )\n}\n\nexport default GenericNumberFormSectionPrice\n"],"names":["GenericNumberFormSectionPrice","control","errors","isView","name","label","placeholder","value","jsx","Fragment","FormItem","_a","Controller","field","NumericInput","values"],"mappings":";;;;;;AAaA,SAASA,EAAqD;AAAA,EAC1D,SAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC;AAAA,EACA,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,OAAAC;AACJ,GAA+B;;AAC3B,SACI,gBAAAC,EAAAC,GAAA,EACI,UAAA,gBAAAD;AAAA,IAACE;AAAA,IAAA;AAAA,MACG,OAAAL;AAAA,MACA,SAAS,GAAQH,KAAA,QAAAA,EAASE;AAAA,MAC1B,eAAcO,IAAAT,KAAA,gBAAAA,EAASE,OAAT,gBAAAO,EAAgB;AAAA,MAE9B,UAAA,gBAAAH;AAAA,QAACI;AAAA,QAAA;AAAA,UACG,MAAAR;AAAA,UACA,SAAAH;AAAA,UACA,QAAQ,CAAC,EAAE,OAAAY,EAAA,MACP,gBAAAL;AAAA,YAACM;AAAA,YAAA;AAAA,cACG,mBAAkB;AAAA,cAClB,kBAAiB;AAAA,cACjB,QAAO;AAAA,cACP,MAAK;AAAA,cACL,cAAa;AAAA,cACb,aAAY;AAAA,cACZ,aAAY;AAAA,cACZ,UAAUX;AAAA,cACV,cAAc;AAAA,cACd,mBAAiB;AAAA,cAEjB,OAAOU,EAAM,SAAS;AAAA,cACtB,eAAe,CAACE,MAAW;AACvB,gBAAAF,EAAM,SAASE,EAAO,cAAc,CAAC;AAAA,cACzC;AAAA,cAEA,QAAQF,EAAM;AAAA,cACd,MAAMA,EAAM;AAAA,YAAA;AAAA,UAAA;AAAA,QAChB;AAAA,MAAA;AAAA,IAER;AAAA,EAAA,GAER;AAER;"}
1
+ {"version":3,"file":"GenericNumberFormSectionPrice.js","sources":["../../../../../lib/base/components/forms/GenericFomrsSetValue/GenericNumberFormSectionPrice.tsx"],"sourcesContent":["import { NumericInput } from '@/components/shared'\nimport { FormItem } from '@/components/ui'\nimport { IFormSectionBaseProps } from '@base/@types/forms'\nimport { Controller, FieldValues, Path } from 'react-hook-form'\n\ntype GeneralFormSectionProps<T extends FieldValues> =\n IFormSectionBaseProps<T> & {\n value: number\n name: Path<T>\n label: string\n placeholder: string\n }\n\nfunction GenericNumberFormSectionPrice<T extends FieldValues>({\n control,\n errors,\n isView,\n name,\n label,\n placeholder,\n value\n}: GeneralFormSectionProps<T>) {\n return (\n <>\n <FormItem\n label={label}\n invalid={Boolean(errors?.[name])}\n errorMessage={errors?.[name]?.message as string}\n >\n <Controller\n name={name}\n control={control}\n render={({ field }) => (\n <NumericInput\n thousandSeparator=\".\"\n decimalSeparator=\",\"\n prefix=\"R$ \"\n type=\"text\"\n autoComplete=\"off\"\n placeholder=\"R$ 0,00\"\n displayType=\"input\"\n disabled={isView}\n decimalScale={2}\n fixedDecimalScale\n // importante: não espalhar {...field}, porque ele injeta onChange errado\n value={field.value ?? 0}\n onValueChange={(values) => {\n field.onChange(values.floatValue ?? 0) // só o float vai para o form\n }}\n // se precisar de blur/focus, pega manualmente\n onBlur={field.onBlur}\n name={field.name}\n />\n )}\n />\n </FormItem>\n </>\n )\n}\n\nexport default GenericNumberFormSectionPrice\n"],"names":["GenericNumberFormSectionPrice","control","errors","isView","name","label","placeholder","value","jsx","Fragment","FormItem","Controller","field","NumericInput","values"],"mappings":";;;;;;AAaA,SAASA,EAAqD;AAAA,EAC1D,SAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC;AAAA,EACA,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,OAAAC;AACJ,GAA+B;AAC3B,SACI,gBAAAC,EAAAC,GAAA,EACI,UAAA,gBAAAD;AAAA,IAACE;AAAA,IAAA;AAAA,MACG,OAAAL;AAAA,MACA,SAAS,EAAQH,IAASE,CAAI;AAAA,MAC9B,cAAcF,IAASE,CAAI,GAAG;AAAA,MAE9B,UAAA,gBAAAI;AAAA,QAACG;AAAA,QAAA;AAAA,UACG,MAAAP;AAAA,UACA,SAAAH;AAAA,UACA,QAAQ,CAAC,EAAE,OAAAW,EAAA,MACP,gBAAAJ;AAAA,YAACK;AAAA,YAAA;AAAA,cACG,mBAAkB;AAAA,cAClB,kBAAiB;AAAA,cACjB,QAAO;AAAA,cACP,MAAK;AAAA,cACL,cAAa;AAAA,cACb,aAAY;AAAA,cACZ,aAAY;AAAA,cACZ,UAAUV;AAAA,cACV,cAAc;AAAA,cACd,mBAAiB;AAAA,cAEjB,OAAOS,EAAM,SAAS;AAAA,cACtB,eAAe,CAACE,MAAW;AACvB,gBAAAF,EAAM,SAASE,EAAO,cAAc,CAAC;AAAA,cACzC;AAAA,cAEA,QAAQF,EAAM;AAAA,cACd,MAAMA,EAAM;AAAA,YAAA;AAAA,UAAA;AAAA,QAChB;AAAA,MAAA;AAAA,IAER;AAAA,EAAA,GAER;AAER;"}
@@ -1,38 +1,37 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import "../../../../@ecme/components/ui/index.js";
3
- import { Controller as u } from "react-hook-form";
4
- import a from "../../../../@ecme/components/ui/Form/FormItem.js";
5
- import c from "../../../../@ecme/components/ui/Input/Input.js";
6
- function b({
7
- control: n,
8
- errors: t,
9
- isView: o,
10
- name: i,
11
- label: p,
12
- placeholder: d,
13
- value: l
3
+ import { Controller as l } from "react-hook-form";
4
+ import f from "../../../../@ecme/components/ui/Form/FormItem.js";
5
+ import s from "../../../../@ecme/components/ui/Input/Input.js";
6
+ function F({
7
+ control: t,
8
+ errors: o,
9
+ isView: i,
10
+ name: r,
11
+ label: m,
12
+ placeholder: n,
13
+ value: p
14
14
  }) {
15
- var m;
16
15
  return /* @__PURE__ */ e(
17
- a,
16
+ f,
18
17
  {
19
- label: p,
20
- invalid: !!(t != null && t[i]),
21
- errorMessage: (m = t == null ? void 0 : t[i]) == null ? void 0 : m.message,
18
+ label: m,
19
+ invalid: !!o?.[r],
20
+ errorMessage: o?.[r]?.message,
22
21
  children: /* @__PURE__ */ e(
23
- u,
22
+ l,
24
23
  {
25
- name: i,
26
- control: n,
27
- render: ({ field: f }) => /* @__PURE__ */ e(
28
- c,
24
+ name: r,
25
+ control: t,
26
+ render: ({ field: d }) => /* @__PURE__ */ e(
27
+ s,
29
28
  {
30
29
  required: !0,
31
- disabled: o,
30
+ disabled: i,
32
31
  type: "text",
33
- placeholder: d,
34
- ...f,
35
- value: l
32
+ placeholder: n,
33
+ ...d,
34
+ value: p
36
35
  }
37
36
  )
38
37
  }
@@ -41,6 +40,6 @@ function b({
41
40
  );
42
41
  }
43
42
  export {
44
- b as default
43
+ F as default
45
44
  };
46
45
  //# sourceMappingURL=GenericStringFormSection.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GenericStringFormSection.js","sources":["../../../../../lib/base/components/forms/GenericFomrsSetValue/GenericStringFormSection.tsx"],"sourcesContent":["import { FormItem, Input } from '@/components/ui'\nimport { IFormSectionBaseProps } from '@base/@types/forms'\nimport { Controller, FieldValues, Path } from 'react-hook-form'\n\ntype GeneralFormSectionProps<T extends FieldValues> =\n IFormSectionBaseProps<T> & {\n value: string\n name: Path<T>\n label: string\n placeholder: string\n }\n\nfunction GenericStringFormSection<T extends FieldValues>({\n control,\n errors,\n isView,\n name,\n label,\n placeholder,\n value\n}: GeneralFormSectionProps<T>) {\n return (\n <FormItem\n label={label}\n invalid={Boolean(errors?.[name])}\n errorMessage={errors?.[name]?.message as string}\n >\n <Controller\n name={name}\n control={control}\n render={({ field }) => (\n <Input\n required\n disabled={isView}\n type=\"text\"\n placeholder={placeholder}\n {...field}\n value={value}\n />\n )}\n />\n </FormItem>\n )\n}\n\nexport default GenericStringFormSection"],"names":["GenericStringFormSection","control","errors","isView","name","label","placeholder","value","jsx","FormItem","_a","Controller","field","Input"],"mappings":";;;;;AAYA,SAASA,EAAgD;AAAA,EACrD,SAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC;AAAA,EACA,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,OAAAC;AACJ,GAA+B;;AAC3B,SACI,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACG,OAAAJ;AAAA,MACA,SAAS,GAAQH,KAAA,QAAAA,EAASE;AAAA,MAC1B,eAAcM,IAAAR,KAAA,gBAAAA,EAASE,OAAT,gBAAAM,EAAgB;AAAA,MAE9B,UAAA,gBAAAF;AAAA,QAACG;AAAA,QAAA;AAAA,UACG,MAAAP;AAAA,UACA,SAAAH;AAAA,UACA,QAAQ,CAAC,EAAE,OAAAW,EAAA,MACP,gBAAAJ;AAAA,YAACK;AAAA,YAAA;AAAA,cACG,UAAQ;AAAA,cACR,UAAUV;AAAA,cACV,MAAK;AAAA,cACL,aAAAG;AAAA,cACC,GAAGM;AAAA,cACJ,OAAAL;AAAA,YAAA;AAAA,UAAA;AAAA,QACJ;AAAA,MAAA;AAAA,IAER;AAAA,EAAA;AAGZ;"}
1
+ {"version":3,"file":"GenericStringFormSection.js","sources":["../../../../../lib/base/components/forms/GenericFomrsSetValue/GenericStringFormSection.tsx"],"sourcesContent":["import { FormItem, Input } from '@/components/ui'\nimport { IFormSectionBaseProps } from '@base/@types/forms'\nimport { Controller, FieldValues, Path } from 'react-hook-form'\n\ntype GeneralFormSectionProps<T extends FieldValues> =\n IFormSectionBaseProps<T> & {\n value: string\n name: Path<T>\n label: string\n placeholder: string\n }\n\nfunction GenericStringFormSection<T extends FieldValues>({\n control,\n errors,\n isView,\n name,\n label,\n placeholder,\n value\n}: GeneralFormSectionProps<T>) {\n return (\n <FormItem\n label={label}\n invalid={Boolean(errors?.[name])}\n errorMessage={errors?.[name]?.message as string}\n >\n <Controller\n name={name}\n control={control}\n render={({ field }) => (\n <Input\n required\n disabled={isView}\n type=\"text\"\n placeholder={placeholder}\n {...field}\n value={value}\n />\n )}\n />\n </FormItem>\n )\n}\n\nexport default GenericStringFormSection"],"names":["GenericStringFormSection","control","errors","isView","name","label","placeholder","value","jsx","FormItem","Controller","field","Input"],"mappings":";;;;;AAYA,SAASA,EAAgD;AAAA,EACrD,SAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC;AAAA,EACA,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,OAAAC;AACJ,GAA+B;AAC3B,SACI,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACG,OAAAJ;AAAA,MACA,SAAS,EAAQH,IAASE,CAAI;AAAA,MAC9B,cAAcF,IAASE,CAAI,GAAG;AAAA,MAE9B,UAAA,gBAAAI;AAAA,QAACE;AAAA,QAAA;AAAA,UACG,MAAAN;AAAA,UACA,SAAAH;AAAA,UACA,QAAQ,CAAC,EAAE,OAAAU,EAAA,MACP,gBAAAH;AAAA,YAACI;AAAA,YAAA;AAAA,cACG,UAAQ;AAAA,cACR,UAAUT;AAAA,cACV,MAAK;AAAA,cACL,aAAAG;AAAA,cACC,GAAGK;AAAA,cACJ,OAAAJ;AAAA,YAAA;AAAA,UAAA;AAAA,QACJ;AAAA,MAAA;AAAA,IAER;AAAA,EAAA;AAGZ;"}
@@ -1,75 +1,74 @@
1
- import { jsxs as f, jsx as a } from "react/jsx-runtime";
2
- import { useFieldArray as x } from "react-hook-form";
3
- import { useTranslation as v } from "react-i18next";
4
- import { FaTrash as S } from "react-icons/fa";
5
- import F from "../ArraysForms/GenericArrayNumberFormSection.js";
6
- import r from "../ArraysForms/GenericArrayStringFormSection.js";
7
- function w({
8
- control: n,
9
- errors: e,
10
- isView: p,
11
- nameArray: t,
12
- nameCampoStringArray: b,
13
- nameCampoNumberArray: g,
14
- defaultAppendItem: s
1
+ import { jsxs as s, jsx as t } from "react/jsx-runtime";
2
+ import { useFieldArray as h } from "react-hook-form";
3
+ import { useTranslation as u } from "react-i18next";
4
+ import { FaTrash as $ } from "react-icons/fa";
5
+ import N from "../ArraysForms/GenericArrayNumberFormSection.js";
6
+ import x from "../ArraysForms/GenericArrayStringFormSection.js";
7
+ function k({
8
+ control: o,
9
+ errors: a,
10
+ isView: i,
11
+ nameArray: l,
12
+ nameCampoStringArray: n,
13
+ nameCampoNumberArray: p,
14
+ defaultAppendItem: c
15
15
  }) {
16
- var c, o, d;
17
- const { t: m } = v(), { fields: h, append: u, remove: $ } = x({
18
- control: n,
19
- name: t
16
+ const { t: r } = u(), { fields: d, append: f, remove: b } = h({
17
+ control: o,
18
+ name: l
20
19
  });
21
- return /* @__PURE__ */ f("div", { className: "flex flex-col gap-4", children: [
22
- h.map((N, i) => /* @__PURE__ */ f("div", { className: "flex gap-2 items-center", children: [
23
- b.map((l) => /* @__PURE__ */ a(
24
- r,
20
+ return /* @__PURE__ */ s("div", { className: "flex flex-col gap-4", children: [
21
+ d.map((g, m) => /* @__PURE__ */ s("div", { className: "flex gap-2 items-center", children: [
22
+ n.map((e) => /* @__PURE__ */ t(
23
+ x,
25
24
  {
26
- control: n,
27
- errors: e,
28
- isView: p,
29
- index: i,
30
- label: m(`page.form.${l}.label`),
31
- placeholder: m(`page.form.${l}.placeholder`),
32
- nameStringArray: `${t}.${i}.${l}`
25
+ control: o,
26
+ errors: a,
27
+ isView: i,
28
+ index: m,
29
+ label: r(`page.form.${e}.label`),
30
+ placeholder: r(`page.form.${e}.placeholder`),
31
+ nameStringArray: `${l}.${m}.${e}`
33
32
  },
34
- l
33
+ e
35
34
  )),
36
- g.map((l) => /* @__PURE__ */ a(
37
- F,
35
+ p.map((e) => /* @__PURE__ */ t(
36
+ N,
38
37
  {
39
- control: n,
40
- errors: e,
41
- isView: p,
42
- index: i,
43
- label: m(`page.form.${l}.label`),
44
- placeholder: m(`page.form.${l}.placeholder`),
45
- nameNumberArray: `${t}.${i}.${l}`
38
+ control: o,
39
+ errors: a,
40
+ isView: i,
41
+ index: m,
42
+ label: r(`page.form.${e}.label`),
43
+ placeholder: r(`page.form.${e}.placeholder`),
44
+ nameNumberArray: `${l}.${m}.${e}`
46
45
  },
47
- l
46
+ e
48
47
  )),
49
- /* @__PURE__ */ a(
48
+ /* @__PURE__ */ t(
50
49
  "button",
51
50
  {
52
51
  type: "button",
53
52
  className: "text-red-500 hover:text-red-700 ml-4",
54
- onClick: () => $(i),
55
- children: /* @__PURE__ */ a(S, { className: "w-5 h-5" })
53
+ onClick: () => b(m),
54
+ children: /* @__PURE__ */ t($, { className: "w-5 h-5" })
56
55
  }
57
56
  )
58
- ] }, N.id)),
59
- ((c = e == null ? void 0 : e[t]) == null ? void 0 : c.message) && typeof ((o = e == null ? void 0 : e[t]) == null ? void 0 : o.message) == "string" && /* @__PURE__ */ a("p", { className: "text-red-500 text-sm mt-2", children: String(((d = e == null ? void 0 : e[t]) == null ? void 0 : d.message) || "") }),
60
- /* @__PURE__ */ a("label", { className: "form-label mb-2", children: m(`page.form.${t}.label`) }),
61
- /* @__PURE__ */ a("div", { children: /* @__PURE__ */ a(
57
+ ] }, g.id)),
58
+ a?.[l]?.message && typeof a?.[l]?.message == "string" && /* @__PURE__ */ t("p", { className: "text-red-500 text-sm mt-2", children: String(a?.[l]?.message || "") }),
59
+ /* @__PURE__ */ t("label", { className: "form-label mb-2", children: r(`page.form.${l}.label`) }),
60
+ /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
62
61
  "button",
63
62
  {
64
63
  type: "button",
65
64
  className: "px-4 py-2 bg-blue-500 text-white rounded hover:bg-blue-600",
66
- onClick: () => u(s),
67
- children: m(`page.form.${t}.nameButton`)
65
+ onClick: () => f(c),
66
+ children: r(`page.form.${l}.nameButton`)
68
67
  }
69
68
  ) })
70
69
  ] });
71
70
  }
72
71
  export {
73
- w as default
72
+ k as default
74
73
  };
75
74
  //# sourceMappingURL=GenericArrayFormSection.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GenericArrayFormSection.js","sources":["../../../../../lib/base/components/forms/GenericForms/GenericArrayFormSection.tsx"],"sourcesContent":["import { IFormSectionBaseProps } from '@base/@types/forms'\nimport {\n ArrayPath,\n FieldArray,\n FieldValues,\n Path,\n useFieldArray,\n} from 'react-hook-form'\nimport { useTranslation } from 'react-i18next'\nimport { FaTrash } from 'react-icons/fa'\nimport GenericArrayNumberFormSection from './../ArraysForms/GenericArrayNumberFormSection'\nimport GenericArrayStringFormSection from './../ArraysForms/GenericArrayStringFormSection'\n\ntype OptionType<L = string, V = unknown> = {\n label: L\n value: V\n}\n\ntype SelectConfig<L = string, V = unknown> = {\n campo: string\n valueMapper: (item: unknown) => V\n getOptionLabel: (option: OptionType<L, V>) => string\n}\n\ntype GeneralFormSectionProps<\n T extends FieldValues,\n K extends ArrayPath<T>,\n> = IFormSectionBaseProps<T> & {\n nameArray: K\n defaultAppendItem: FieldArray<T, K>\n nameCampoStringArray: string[]\n nameCampoNumberArray: string[]\n nameCampoSelectArray?: string[]\n selectConfigs?: SelectConfig[]\n}\n\nfunction GenericArrayFormSection<\n T extends FieldValues,\n K extends ArrayPath<T>,\n>({\n control,\n errors,\n isView,\n nameArray,\n nameCampoStringArray,\n nameCampoNumberArray,\n defaultAppendItem,\n}: GeneralFormSectionProps<T, K>) {\n const { t } = useTranslation()\n const { fields, append, remove } = useFieldArray({\n control,\n name: nameArray,\n })\n\n return (\n <div className=\"flex flex-col gap-4\">\n {/* Lista de margens */}\n {fields.map((field, index) => (\n <div key={field.id} className=\"flex gap-2 items-center\">\n {nameCampoStringArray.map((campo) => (\n <GenericArrayStringFormSection\n key={campo}\n control={control}\n errors={errors}\n isView={isView}\n index={index}\n label={t(`page.form.${campo}.label`)}\n placeholder={t(`page.form.${campo}.placeholder`)}\n nameStringArray={\n `${nameArray}.${index}.${campo}` as Path<T>\n }\n />\n ))}\n\n {nameCampoNumberArray.map((campo) => (\n <GenericArrayNumberFormSection\n key={campo}\n control={control}\n errors={errors}\n isView={isView}\n index={index}\n label={t(`page.form.${campo}.label`)}\n placeholder={t(`page.form.${campo}.placeholder`)}\n nameNumberArray={\n `${nameArray}.${index}.${campo}` as Path<T>\n }\n />\n ))}\n\n <button\n type=\"button\"\n className=\"text-red-500 hover:text-red-700 ml-4\"\n onClick={() => remove(index)}\n >\n <FaTrash className=\"w-5 h-5\" />\n </button>\n </div>\n ))}\n\n {errors?.[nameArray as string]?.message &&\n typeof errors?.[nameArray as string]?.message === 'string' && (\n <p className=\"text-red-500 text-sm mt-2\">\n {String(errors?.[nameArray as string]?.message || '')}\n </p>\n )}\n\n {/* Botão separado */}\n <label className=\"form-label mb-2\">\n {t(`page.form.${nameArray}.label`)}\n </label>\n <div>\n <button\n type=\"button\"\n className=\"px-4 py-2 bg-blue-500 text-white rounded hover:bg-blue-600\"\n onClick={() => append(defaultAppendItem)}\n >\n {t(`page.form.${nameArray}.nameButton`)}\n </button>\n </div>\n </div>\n )\n}\n\nexport default GenericArrayFormSection\n"],"names":["GenericArrayFormSection","control","errors","isView","nameArray","nameCampoStringArray","nameCampoNumberArray","defaultAppendItem","t","useTranslation","fields","append","remove","useFieldArray","jsxs","field","index","campo","jsx","GenericArrayStringFormSection","GenericArrayNumberFormSection","FaTrash","_a","_b","_c"],"mappings":";;;;;;AAoCA,SAASA,EAGP;AAAA,EACE,SAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC;AAAA,EACA,WAAAC;AAAA,EACA,sBAAAC;AAAA,EACA,sBAAAC;AAAA,EACA,mBAAAC;AACJ,GAAkC;;AAC9B,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAA,GACR,EAAE,QAAAC,GAAQ,QAAAC,GAAQ,QAAAC,EAAA,IAAWC,EAAc;AAAA,IAC7C,SAAAZ;AAAA,IACA,MAAMG;AAAA,EAAA,CACT;AAED,SACI,gBAAAU,EAAC,OAAA,EAAI,WAAU,uBAEV,UAAA;AAAA,IAAAJ,EAAO,IAAI,CAACK,GAAOC,MAChB,gBAAAF,EAAC,OAAA,EAAmB,WAAU,2BACzB,UAAA;AAAA,MAAAT,EAAqB,IAAI,CAACY,MACvB,gBAAAC;AAAA,QAACC;AAAA,QAAA;AAAA,UAEG,SAAAlB;AAAA,UACA,QAAAC;AAAA,UACA,QAAAC;AAAA,UACA,OAAAa;AAAA,UACA,OAAOR,EAAE,aAAaS,CAAK,QAAQ;AAAA,UACnC,aAAaT,EAAE,aAAaS,CAAK,cAAc;AAAA,UAC/C,iBACI,GAAGb,CAAS,IAAIY,CAAK,IAAIC,CAAK;AAAA,QAAA;AAAA,QAR7BA;AAAA,MAAA,CAWZ;AAAA,MAEAX,EAAqB,IAAI,CAACW,MACvB,gBAAAC;AAAA,QAACE;AAAA,QAAA;AAAA,UAEG,SAAAnB;AAAA,UACA,QAAAC;AAAA,UACA,QAAAC;AAAA,UACA,OAAAa;AAAA,UACA,OAAOR,EAAE,aAAaS,CAAK,QAAQ;AAAA,UACnC,aAAaT,EAAE,aAAaS,CAAK,cAAc;AAAA,UAC/C,iBACI,GAAGb,CAAS,IAAIY,CAAK,IAAIC,CAAK;AAAA,QAAA;AAAA,QAR7BA;AAAA,MAAA,CAWZ;AAAA,MAED,gBAAAC;AAAA,QAAC;AAAA,QAAA;AAAA,UACG,MAAK;AAAA,UACL,WAAU;AAAA,UACV,SAAS,MAAMN,EAAOI,CAAK;AAAA,UAE3B,UAAA,gBAAAE,EAACG,GAAA,EAAQ,WAAU,UAAA,CAAU;AAAA,QAAA;AAAA,MAAA;AAAA,IACjC,KArCMN,EAAM,EAsChB,CACH;AAAA,MAEAO,IAAApB,KAAA,gBAAAA,EAASE,OAAT,gBAAAkB,EAA+B,YAC5B,SAAOC,IAAArB,KAAA,gBAAAA,EAASE,OAAT,gBAAAmB,EAA+B,YAAY,8BAC7C,KAAA,EAAE,WAAU,6BACR,UAAA,SAAOC,IAAAtB,KAAA,gBAAAA,EAASE,OAAT,gBAAAoB,EAA+B,YAAW,EAAE,GACxD;AAAA,IAIR,gBAAAN,EAAC,WAAM,WAAU,mBACZ,YAAE,aAAad,CAAS,QAAQ,EAAA,CACrC;AAAA,sBACC,OAAA,EACG,UAAA,gBAAAc;AAAA,MAAC;AAAA,MAAA;AAAA,QACG,MAAK;AAAA,QACL,WAAU;AAAA,QACV,SAAS,MAAMP,EAAOJ,CAAiB;AAAA,QAEtC,UAAAC,EAAE,aAAaJ,CAAS,aAAa;AAAA,MAAA;AAAA,IAAA,EAC1C,CACJ;AAAA,EAAA,GACJ;AAER;"}
1
+ {"version":3,"file":"GenericArrayFormSection.js","sources":["../../../../../lib/base/components/forms/GenericForms/GenericArrayFormSection.tsx"],"sourcesContent":["import { IFormSectionBaseProps } from '@base/@types/forms'\nimport {\n ArrayPath,\n FieldArray,\n FieldValues,\n Path,\n useFieldArray,\n} from 'react-hook-form'\nimport { useTranslation } from 'react-i18next'\nimport { FaTrash } from 'react-icons/fa'\nimport GenericArrayNumberFormSection from './../ArraysForms/GenericArrayNumberFormSection'\nimport GenericArrayStringFormSection from './../ArraysForms/GenericArrayStringFormSection'\n\ntype OptionType<L = string, V = unknown> = {\n label: L\n value: V\n}\n\ntype SelectConfig<L = string, V = unknown> = {\n campo: string\n valueMapper: (item: unknown) => V\n getOptionLabel: (option: OptionType<L, V>) => string\n}\n\ntype GeneralFormSectionProps<\n T extends FieldValues,\n K extends ArrayPath<T>,\n> = IFormSectionBaseProps<T> & {\n nameArray: K\n defaultAppendItem: FieldArray<T, K>\n nameCampoStringArray: string[]\n nameCampoNumberArray: string[]\n nameCampoSelectArray?: string[]\n selectConfigs?: SelectConfig[]\n}\n\nfunction GenericArrayFormSection<\n T extends FieldValues,\n K extends ArrayPath<T>,\n>({\n control,\n errors,\n isView,\n nameArray,\n nameCampoStringArray,\n nameCampoNumberArray,\n defaultAppendItem,\n}: GeneralFormSectionProps<T, K>) {\n const { t } = useTranslation()\n const { fields, append, remove } = useFieldArray({\n control,\n name: nameArray,\n })\n\n return (\n <div className=\"flex flex-col gap-4\">\n {/* Lista de margens */}\n {fields.map((field, index) => (\n <div key={field.id} className=\"flex gap-2 items-center\">\n {nameCampoStringArray.map((campo) => (\n <GenericArrayStringFormSection\n key={campo}\n control={control}\n errors={errors}\n isView={isView}\n index={index}\n label={t(`page.form.${campo}.label`)}\n placeholder={t(`page.form.${campo}.placeholder`)}\n nameStringArray={\n `${nameArray}.${index}.${campo}` as Path<T>\n }\n />\n ))}\n\n {nameCampoNumberArray.map((campo) => (\n <GenericArrayNumberFormSection\n key={campo}\n control={control}\n errors={errors}\n isView={isView}\n index={index}\n label={t(`page.form.${campo}.label`)}\n placeholder={t(`page.form.${campo}.placeholder`)}\n nameNumberArray={\n `${nameArray}.${index}.${campo}` as Path<T>\n }\n />\n ))}\n\n <button\n type=\"button\"\n className=\"text-red-500 hover:text-red-700 ml-4\"\n onClick={() => remove(index)}\n >\n <FaTrash className=\"w-5 h-5\" />\n </button>\n </div>\n ))}\n\n {errors?.[nameArray as string]?.message &&\n typeof errors?.[nameArray as string]?.message === 'string' && (\n <p className=\"text-red-500 text-sm mt-2\">\n {String(errors?.[nameArray as string]?.message || '')}\n </p>\n )}\n\n {/* Botão separado */}\n <label className=\"form-label mb-2\">\n {t(`page.form.${nameArray}.label`)}\n </label>\n <div>\n <button\n type=\"button\"\n className=\"px-4 py-2 bg-blue-500 text-white rounded hover:bg-blue-600\"\n onClick={() => append(defaultAppendItem)}\n >\n {t(`page.form.${nameArray}.nameButton`)}\n </button>\n </div>\n </div>\n )\n}\n\nexport default GenericArrayFormSection\n"],"names":["GenericArrayFormSection","control","errors","isView","nameArray","nameCampoStringArray","nameCampoNumberArray","defaultAppendItem","t","useTranslation","fields","append","remove","useFieldArray","jsxs","field","index","campo","jsx","GenericArrayStringFormSection","GenericArrayNumberFormSection","FaTrash"],"mappings":";;;;;;AAoCA,SAASA,EAGP;AAAA,EACE,SAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC;AAAA,EACA,WAAAC;AAAA,EACA,sBAAAC;AAAA,EACA,sBAAAC;AAAA,EACA,mBAAAC;AACJ,GAAkC;AAC9B,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAA,GACR,EAAE,QAAAC,GAAQ,QAAAC,GAAQ,QAAAC,EAAA,IAAWC,EAAc;AAAA,IAC7C,SAAAZ;AAAA,IACA,MAAMG;AAAA,EAAA,CACT;AAED,SACI,gBAAAU,EAAC,OAAA,EAAI,WAAU,uBAEV,UAAA;AAAA,IAAAJ,EAAO,IAAI,CAACK,GAAOC,MAChB,gBAAAF,EAAC,OAAA,EAAmB,WAAU,2BACzB,UAAA;AAAA,MAAAT,EAAqB,IAAI,CAACY,MACvB,gBAAAC;AAAA,QAACC;AAAA,QAAA;AAAA,UAEG,SAAAlB;AAAA,UACA,QAAAC;AAAA,UACA,QAAAC;AAAA,UACA,OAAAa;AAAA,UACA,OAAOR,EAAE,aAAaS,CAAK,QAAQ;AAAA,UACnC,aAAaT,EAAE,aAAaS,CAAK,cAAc;AAAA,UAC/C,iBACI,GAAGb,CAAS,IAAIY,CAAK,IAAIC,CAAK;AAAA,QAAA;AAAA,QAR7BA;AAAA,MAAA,CAWZ;AAAA,MAEAX,EAAqB,IAAI,CAACW,MACvB,gBAAAC;AAAA,QAACE;AAAA,QAAA;AAAA,UAEG,SAAAnB;AAAA,UACA,QAAAC;AAAA,UACA,QAAAC;AAAA,UACA,OAAAa;AAAA,UACA,OAAOR,EAAE,aAAaS,CAAK,QAAQ;AAAA,UACnC,aAAaT,EAAE,aAAaS,CAAK,cAAc;AAAA,UAC/C,iBACI,GAAGb,CAAS,IAAIY,CAAK,IAAIC,CAAK;AAAA,QAAA;AAAA,QAR7BA;AAAA,MAAA,CAWZ;AAAA,MAED,gBAAAC;AAAA,QAAC;AAAA,QAAA;AAAA,UACG,MAAK;AAAA,UACL,WAAU;AAAA,UACV,SAAS,MAAMN,EAAOI,CAAK;AAAA,UAE3B,UAAA,gBAAAE,EAACG,GAAA,EAAQ,WAAU,UAAA,CAAU;AAAA,QAAA;AAAA,MAAA;AAAA,IACjC,KArCMN,EAAM,EAsChB,CACH;AAAA,IAEAb,IAASE,CAAmB,GAAG,WAC5B,OAAOF,IAASE,CAAmB,GAAG,WAAY,8BAC7C,KAAA,EAAE,WAAU,6BACR,UAAA,OAAOF,IAASE,CAAmB,GAAG,WAAW,EAAE,GACxD;AAAA,IAIR,gBAAAc,EAAC,WAAM,WAAU,mBACZ,YAAE,aAAad,CAAS,QAAQ,EAAA,CACrC;AAAA,sBACC,OAAA,EACG,UAAA,gBAAAc;AAAA,MAAC;AAAA,MAAA;AAAA,QACG,MAAK;AAAA,QACL,WAAU;AAAA,QACV,SAAS,MAAMP,EAAOJ,CAAiB;AAAA,QAEtC,UAAAC,EAAE,aAAaJ,CAAS,aAAa;AAAA,MAAA;AAAA,IAAA,EAC1C,CACJ;AAAA,EAAA,GACJ;AAER;"}
@@ -1,42 +1,41 @@
1
- import { jsx as t, Fragment as d } from "react/jsx-runtime";
1
+ import { jsx as e, Fragment as p } from "react/jsx-runtime";
2
2
  import "../../../../@ecme/components/ui/index.js";
3
3
  import "../../../../@ecme/components/shared/index.js";
4
- import { Controller as c } from "react-hook-form";
5
- import f from "../../../../@ecme/components/ui/Form/FormItem.js";
6
- import g from "../../../../@ecme/components/shared/NumericInput.js";
7
- function y({
8
- control: m,
9
- errors: e,
10
- isView: l,
11
- name: a,
12
- label: n,
13
- placeholder: p
4
+ import { Controller as u } from "react-hook-form";
5
+ import d from "../../../../@ecme/components/ui/Form/FormItem.js";
6
+ import c from "../../../../@ecme/components/shared/NumericInput.js";
7
+ function v({
8
+ control: a,
9
+ errors: o,
10
+ isView: i,
11
+ name: r,
12
+ label: m,
13
+ placeholder: l
14
14
  }) {
15
- var o;
16
- return /* @__PURE__ */ t(d, { children: /* @__PURE__ */ t(
17
- f,
15
+ return /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(
16
+ d,
18
17
  {
19
- label: n,
20
- invalid: !!(e != null && e[a]),
21
- errorMessage: (o = e == null ? void 0 : e[a]) == null ? void 0 : o.message,
22
- children: /* @__PURE__ */ t(
23
- c,
18
+ label: m,
19
+ invalid: !!o?.[r],
20
+ errorMessage: o?.[r]?.message,
21
+ children: /* @__PURE__ */ e(
22
+ u,
24
23
  {
25
- name: a,
26
- control: m,
27
- render: ({ field: i }) => /* @__PURE__ */ t(
28
- g,
24
+ name: r,
25
+ control: a,
26
+ render: ({ field: t }) => /* @__PURE__ */ e(
27
+ c,
29
28
  {
30
29
  thousandSeparator: ".",
31
30
  decimalSeparator: ",",
32
31
  type: "text",
33
32
  autoComplete: "off",
34
- placeholder: p,
33
+ placeholder: l,
35
34
  displayType: "input",
36
- value: i.value,
37
- disabled: l,
35
+ value: t.value,
36
+ disabled: i,
38
37
  decimalScale: 2,
39
- onValueChange: (u) => i.onChange(u.floatValue ?? 0)
38
+ onValueChange: (n) => t.onChange(n.floatValue ?? 0)
40
39
  }
41
40
  )
42
41
  }
@@ -45,6 +44,6 @@ function y({
45
44
  ) });
46
45
  }
47
46
  export {
48
- y as default
47
+ v as default
49
48
  };
50
49
  //# sourceMappingURL=GenericNumberFormSection.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GenericNumberFormSection.js","sources":["../../../../../lib/base/components/forms/GenericForms/GenericNumberFormSection.tsx"],"sourcesContent":["import { FormItem } from '@/components/ui'\nimport { IFormSectionBaseProps } from '@base/@types/forms'\nimport { NumericInput } from '@/components/shared'\nimport { Controller, FieldValues, Path } from 'react-hook-form'\n\ntype GeneralFormSectionProps<T extends FieldValues> =\n IFormSectionBaseProps<T> & {\n name: Path<T>\n label: string\n placeholder: string\n }\n\nfunction GenericNumberFormSection<T extends FieldValues>({\n control,\n errors,\n isView,\n name,\n label,\n placeholder,\n}: GeneralFormSectionProps<T>) {\n return (\n <>\n <FormItem\n label={label}\n invalid={Boolean(errors?.[name])}\n errorMessage={errors?.[name]?.message as string}\n >\n <Controller\n name={name}\n control={control}\n render={({ field }) => (\n <NumericInput\n thousandSeparator=\".\"\n decimalSeparator=\",\"\n type=\"text\"\n autoComplete=\"off\"\n placeholder={placeholder}\n displayType=\"input\"\n value={field.value}\n disabled={isView}\n decimalScale={2}\n onValueChange={(e) => field.onChange(e.floatValue ?? 0)}\n />\n )}\n />\n </FormItem>\n </>\n )\n}\n\nexport default GenericNumberFormSection\n"],"names":["GenericNumberFormSection","control","errors","isView","name","label","placeholder","jsx","Fragment","FormItem","_a","Controller","field","NumericInput","e"],"mappings":";;;;;;AAYA,SAASA,EAAgD;AAAA,EACrD,SAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC;AAAA,EACA,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AACJ,GAA+B;;AAC3B,SACI,gBAAAC,EAAAC,GAAA,EACI,UAAA,gBAAAD;AAAA,IAACE;AAAA,IAAA;AAAA,MACG,OAAAJ;AAAA,MACA,SAAS,GAAQH,KAAA,QAAAA,EAASE;AAAA,MAC1B,eAAcM,IAAAR,KAAA,gBAAAA,EAASE,OAAT,gBAAAM,EAAgB;AAAA,MAE9B,UAAA,gBAAAH;AAAA,QAACI;AAAA,QAAA;AAAA,UACG,MAAAP;AAAA,UACA,SAAAH;AAAA,UACA,QAAQ,CAAC,EAAE,OAAAW,EAAA,MACP,gBAAAL;AAAA,YAACM;AAAA,YAAA;AAAA,cACG,mBAAkB;AAAA,cAClB,kBAAiB;AAAA,cACjB,MAAK;AAAA,cACL,cAAa;AAAA,cACb,aAAAP;AAAA,cACA,aAAY;AAAA,cACZ,OAAOM,EAAM;AAAA,cACb,UAAUT;AAAA,cACV,cAAc;AAAA,cACd,eAAe,CAACW,MAAMF,EAAM,SAASE,EAAE,cAAc,CAAC;AAAA,YAAA;AAAA,UAAA;AAAA,QAC1D;AAAA,MAAA;AAAA,IAER;AAAA,EAAA,GAER;AAER;"}
1
+ {"version":3,"file":"GenericNumberFormSection.js","sources":["../../../../../lib/base/components/forms/GenericForms/GenericNumberFormSection.tsx"],"sourcesContent":["import { FormItem } from '@/components/ui'\nimport { IFormSectionBaseProps } from '@base/@types/forms'\nimport { NumericInput } from '@/components/shared'\nimport { Controller, FieldValues, Path } from 'react-hook-form'\n\ntype GeneralFormSectionProps<T extends FieldValues> =\n IFormSectionBaseProps<T> & {\n name: Path<T>\n label: string\n placeholder: string\n }\n\nfunction GenericNumberFormSection<T extends FieldValues>({\n control,\n errors,\n isView,\n name,\n label,\n placeholder,\n}: GeneralFormSectionProps<T>) {\n return (\n <>\n <FormItem\n label={label}\n invalid={Boolean(errors?.[name])}\n errorMessage={errors?.[name]?.message as string}\n >\n <Controller\n name={name}\n control={control}\n render={({ field }) => (\n <NumericInput\n thousandSeparator=\".\"\n decimalSeparator=\",\"\n type=\"text\"\n autoComplete=\"off\"\n placeholder={placeholder}\n displayType=\"input\"\n value={field.value}\n disabled={isView}\n decimalScale={2}\n onValueChange={(e) => field.onChange(e.floatValue ?? 0)}\n />\n )}\n />\n </FormItem>\n </>\n )\n}\n\nexport default GenericNumberFormSection\n"],"names":["GenericNumberFormSection","control","errors","isView","name","label","placeholder","jsx","Fragment","FormItem","Controller","field","NumericInput","e"],"mappings":";;;;;;AAYA,SAASA,EAAgD;AAAA,EACrD,SAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC;AAAA,EACA,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AACJ,GAA+B;AAC3B,SACI,gBAAAC,EAAAC,GAAA,EACI,UAAA,gBAAAD;AAAA,IAACE;AAAA,IAAA;AAAA,MACG,OAAAJ;AAAA,MACA,SAAS,EAAQH,IAASE,CAAI;AAAA,MAC9B,cAAcF,IAASE,CAAI,GAAG;AAAA,MAE9B,UAAA,gBAAAG;AAAA,QAACG;AAAA,QAAA;AAAA,UACG,MAAAN;AAAA,UACA,SAAAH;AAAA,UACA,QAAQ,CAAC,EAAE,OAAAU,EAAA,MACP,gBAAAJ;AAAA,YAACK;AAAA,YAAA;AAAA,cACG,mBAAkB;AAAA,cAClB,kBAAiB;AAAA,cACjB,MAAK;AAAA,cACL,cAAa;AAAA,cACb,aAAAN;AAAA,cACA,aAAY;AAAA,cACZ,OAAOK,EAAM;AAAA,cACb,UAAUR;AAAA,cACV,cAAc;AAAA,cACd,eAAe,CAACU,MAAMF,EAAM,SAASE,EAAE,cAAc,CAAC;AAAA,YAAA;AAAA,UAAA;AAAA,QAC1D;AAAA,MAAA;AAAA,IAER;AAAA,EAAA,GAER;AAER;"}