@orbe-agro/client-core 5.3.86 → 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,28 +1,28 @@
1
- import { jsx as e, jsxs as o, Fragment as w } from "react/jsx-runtime";
2
- import { useState as g, useRef as D, useEffect as T } from "react";
1
+ import { jsx as e, jsxs as r, Fragment as R } from "react/jsx-runtime";
2
+ import { useState as g, useRef as S, useEffect as w } from "react";
3
3
  import m from "../../../@ecme/utils/classNames.js";
4
- import I from "../../../@ecme/utils/hoc/withHeaderItem.js";
4
+ import D from "../../../@ecme/utils/hoc/withHeaderItem.js";
5
5
  import "../../../@ecme/components/ui/Button/index.js";
6
6
  import "../../../@ecme/components/ui/Dialog/index.js";
7
- import E from "../../../@ecme/configs/navigation-icon.config.js";
8
- import { GUIDE_PREFIX_PATH as y, UI_COMPONENTS_PREFIX_PATH as H } from "../../../@ecme/constants/route.constant.js";
9
- import { apiGetSearchResult as O } from "../../../@ecme/services/CommonService.js";
10
- import F from "lodash/debounce";
11
- import { HiChevronRight as P, HiOutlineSearch as _ } from "react-icons/hi";
12
- import { PiMagnifyingGlassDuotone as j } from "react-icons/pi";
13
- import { Link as G } from "react-router-dom";
14
- import B from "react-highlight-words";
7
+ import T from "../../../@ecme/configs/navigation-icon.config.js";
8
+ import { GUIDE_PREFIX_PATH as f, UI_COMPONENTS_PREFIX_PATH as I } from "../../../@ecme/constants/route.constant.js";
9
+ import { apiGetSearchResult as E } from "../../../@ecme/services/CommonService.js";
10
+ import H from "lodash/debounce";
11
+ import { HiChevronRight as O, HiOutlineSearch as F } from "react-icons/hi";
12
+ import { PiMagnifyingGlassDuotone as P } from "react-icons/pi";
13
+ import { Link as _ } from "react-router-dom";
14
+ import j from "react-highlight-words";
15
15
  import "../../../@ecme/components/ui/ScrollBar/index.js";
16
- import L from "../../../@ecme/components/ui/Dialog/Dialog.js";
17
- import U from "../../../@ecme/components/ui/Button/Button.js";
18
- import W from "../../../@ecme/components/ui/ScrollBar/ScrollBar.js";
16
+ import G from "../../../@ecme/components/ui/Dialog/Dialog.js";
17
+ import B from "../../../@ecme/components/ui/Button/Button.js";
18
+ import L from "../../../@ecme/components/ui/ScrollBar/ScrollBar.js";
19
19
  const p = [
20
20
  {
21
21
  title: "Recommended",
22
22
  data: [
23
23
  {
24
24
  key: "guide.documentation",
25
- path: `${y}/documentation/introduction`,
25
+ path: `${f}/documentation/introduction`,
26
26
  title: "Documentation",
27
27
  icon: "documentation",
28
28
  category: "Docs",
@@ -30,7 +30,7 @@ const p = [
30
30
  },
31
31
  {
32
32
  key: "guide.changeLog",
33
- path: `${y}/changelog`,
33
+ path: `${f}/changelog`,
34
34
  title: "Changelog",
35
35
  icon: "changeLog",
36
36
  category: "Docs",
@@ -38,7 +38,7 @@ const p = [
38
38
  },
39
39
  {
40
40
  key: "uiComponent.common.button",
41
- path: `${H}/button`,
41
+ path: `${I}/button`,
42
42
  title: "Button",
43
43
  icon: "uiCommonButton",
44
44
  category: "Common",
@@ -46,9 +46,9 @@ const p = [
46
46
  }
47
47
  ]
48
48
  }
49
- ], $ = (d) => {
49
+ ], U = (d) => {
50
50
  const { icon: a, label: i, url: c = "", keyWord: n, onNavigate: l } = d;
51
- return /* @__PURE__ */ e(G, { to: c, onClick: l, children: /* @__PURE__ */ o(
51
+ return /* @__PURE__ */ e(_, { to: c, onClick: l, children: /* @__PURE__ */ r(
52
52
  "div",
53
53
  {
54
54
  className: m(
@@ -56,18 +56,18 @@ const p = [
56
56
  "hover:bg-gray-100 dark:hover:bg-gray-700"
57
57
  ),
58
58
  children: [
59
- /* @__PURE__ */ o("div", { className: "flex items-center gap-2", children: [
59
+ /* @__PURE__ */ r("div", { className: "flex items-center gap-2", children: [
60
60
  /* @__PURE__ */ e(
61
61
  "div",
62
62
  {
63
63
  className: m(
64
64
  "rounded-lg border-2 border-gray-200 shadow-sm text-xl group-hover:shadow h-10 w-10 flex items-center justify-center bg-white dark:bg-gray-700 text-gray-900 dark:text-gray-100"
65
65
  ),
66
- children: a && E[a]
66
+ children: a && T[a]
67
67
  }
68
68
  ),
69
69
  /* @__PURE__ */ e("div", { className: "text-gray-900 dark:text-gray-300", children: /* @__PURE__ */ e(
70
- B,
70
+ j,
71
71
  {
72
72
  autoEscape: !0,
73
73
  highlightClassName: m(
@@ -79,100 +79,93 @@ const p = [
79
79
  }
80
80
  ) })
81
81
  ] }),
82
- /* @__PURE__ */ e(P, { className: "text-lg" })
82
+ /* @__PURE__ */ e(O, { className: "text-lg" })
83
83
  ]
84
84
  }
85
85
  ) });
86
- }, A = ({ className: d }) => {
87
- var f;
88
- const [a, i] = g(!1), [c, n] = g(p), [l, h] = g(!1), s = D(null), b = () => {
86
+ }, W = ({ className: d }) => {
87
+ const [a, i] = g(!1), [c, n] = g(p), [l, h] = g(!1), s = S(null), x = () => {
89
88
  h(!1), n(p);
90
- }, N = () => {
89
+ }, y = () => {
91
90
  i(!0);
92
91
  }, u = () => {
93
- i(!1), b();
94
- }, v = F(k, 200);
95
- async function k(r) {
96
- if (!r) {
92
+ i(!1), x();
93
+ }, b = H(N, 200);
94
+ async function N(t) {
95
+ if (!t) {
97
96
  n(p);
98
97
  return;
99
98
  }
100
99
  l && h(!1);
101
- const t = await O({ query: r });
102
- t && (t.length === 0 && h(!0), n(t));
100
+ const o = await E({ query: t });
101
+ o && (o.length === 0 && h(!0), n(o));
103
102
  }
104
- const C = (r) => {
105
- v(r.target.value);
103
+ const v = (t) => {
104
+ b(t.target.value);
106
105
  };
107
- T(() => {
106
+ w(() => {
108
107
  if (a) {
109
- const r = setTimeout(() => {
110
- var t;
111
- return (t = s.current) == null ? void 0 : t.focus();
112
- }, 100);
108
+ const t = setTimeout(() => s.current?.focus(), 100);
113
109
  return () => {
114
- clearTimeout(r);
110
+ clearTimeout(t);
115
111
  };
116
112
  }
117
113
  }, [a]);
118
- const R = () => {
114
+ const k = () => {
119
115
  u();
120
116
  };
121
- return /* @__PURE__ */ o(w, { children: [
117
+ return /* @__PURE__ */ r(R, { children: [
122
118
  /* @__PURE__ */ e(
123
119
  "div",
124
120
  {
125
121
  className: m(d, "text-2xl"),
126
- onClick: N,
127
- children: /* @__PURE__ */ e(j, {})
122
+ onClick: y,
123
+ children: /* @__PURE__ */ e(P, {})
128
124
  }
129
125
  ),
130
126
  /* @__PURE__ */ e(
131
- L,
127
+ G,
132
128
  {
133
129
  contentClassName: "p-0",
134
130
  isOpen: a,
135
131
  closable: !1,
136
132
  onRequestClose: u,
137
- children: /* @__PURE__ */ o("div", { children: [
138
- /* @__PURE__ */ o("div", { className: "flex items-center justify-between border-b border-gray-200 px-4 dark:border-gray-600", children: [
139
- /* @__PURE__ */ o("div", { className: "flex items-center", children: [
140
- /* @__PURE__ */ e(_, { className: "text-xl" }),
133
+ children: /* @__PURE__ */ r("div", { children: [
134
+ /* @__PURE__ */ r("div", { className: "flex items-center justify-between border-b border-gray-200 px-4 dark:border-gray-600", children: [
135
+ /* @__PURE__ */ r("div", { className: "flex items-center", children: [
136
+ /* @__PURE__ */ e(F, { className: "text-xl" }),
141
137
  /* @__PURE__ */ e(
142
138
  "input",
143
139
  {
144
140
  ref: s,
145
141
  className: "block w-full bg-transparent p-4 text-base text-gray-900 outline-none ring-0 dark:text-gray-100",
146
142
  placeholder: "Search...",
147
- onChange: C
143
+ onChange: v
148
144
  }
149
145
  )
150
146
  ] }),
151
- /* @__PURE__ */ e(U, { size: "xs", onClick: u, children: "Esc" })
147
+ /* @__PURE__ */ e(B, { size: "xs", onClick: u, children: "Esc" })
152
148
  ] }),
153
- /* @__PURE__ */ e("div", { className: "px-5 py-6", children: /* @__PURE__ */ o(W, { className: "max-h-[350px] overflow-y-auto", children: [
154
- c.map((r) => /* @__PURE__ */ o("div", { className: "mb-4", children: [
155
- /* @__PURE__ */ e("h6", { className: "mb-3", children: r.title }),
156
- r.data.map((t, S) => {
157
- var x;
158
- return /* @__PURE__ */ e(
159
- $,
160
- {
161
- icon: t.icon,
162
- label: t.title,
163
- url: t.path,
164
- keyWord: ((x = s.current) == null ? void 0 : x.value) || "",
165
- onNavigate: R
166
- },
167
- t.title + S
168
- );
169
- })
170
- ] }, r.title)),
171
- c.length === 0 && l && /* @__PURE__ */ o("div", { className: "my-10 text-center text-lg", children: [
149
+ /* @__PURE__ */ e("div", { className: "px-5 py-6", children: /* @__PURE__ */ r(L, { className: "max-h-[350px] overflow-y-auto", children: [
150
+ c.map((t) => /* @__PURE__ */ r("div", { className: "mb-4", children: [
151
+ /* @__PURE__ */ e("h6", { className: "mb-3", children: t.title }),
152
+ t.data.map((o, C) => /* @__PURE__ */ e(
153
+ U,
154
+ {
155
+ icon: o.icon,
156
+ label: o.title,
157
+ url: o.path,
158
+ keyWord: s.current?.value || "",
159
+ onNavigate: k
160
+ },
161
+ o.title + C
162
+ ))
163
+ ] }, t.title)),
164
+ c.length === 0 && l && /* @__PURE__ */ r("div", { className: "my-10 text-center text-lg", children: [
172
165
  /* @__PURE__ */ e("span", { children: "No results for " }),
173
- /* @__PURE__ */ o("span", { className: "heading-text", children: [
166
+ /* @__PURE__ */ r("span", { className: "heading-text", children: [
174
167
  "'",
175
- (f = s.current) == null ? void 0 : f.value,
168
+ s.current?.value,
176
169
  "'"
177
170
  ] })
178
171
  ] })
@@ -181,8 +174,8 @@ const p = [
181
174
  }
182
175
  )
183
176
  ] });
184
- }, le = I(A);
177
+ }, ie = D(W);
185
178
  export {
186
- le as default
179
+ ie as default
187
180
  };
188
181
  //# sourceMappingURL=NavFilter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavFilter.js","sources":["../../../../lib/base/components/tools/NavFilter.tsx"],"sourcesContent":["import { useState, useRef, useEffect } from 'react'\nimport classNames from '@/utils/classNames'\nimport withHeaderItem from '@/utils/hoc/withHeaderItem'\nimport Button from '@/components/ui/Button'\nimport Dialog from '@/components/ui/Dialog'\nimport navigationIcon from '@/configs/navigation-icon.config'\nimport {\n GUIDE_PREFIX_PATH,\n UI_COMPONENTS_PREFIX_PATH,\n} from '@/constants/route.constant'\nimport { apiGetSearchResult } from '@/services/CommonService'\nimport debounce from 'lodash/debounce'\nimport { HiOutlineSearch, HiChevronRight } from 'react-icons/hi'\nimport { PiMagnifyingGlassDuotone } from 'react-icons/pi'\nimport { Link } from 'react-router-dom'\nimport Highlighter from 'react-highlight-words'\nimport { ScrollBar } from '@/components/ui/ScrollBar'\n\ntype NavFilterData = {\n key: string\n path: string\n title: string\n icon: string\n category: string\n categoryTitle: string\n}\n\ntype NavFilterResult = {\n title: string\n data: NavFilterData[]\n}\n\nconst recommendedSearch: NavFilterResult[] = [\n {\n title: 'Recommended',\n data: [\n {\n key: 'guide.documentation',\n path: `${GUIDE_PREFIX_PATH}/documentation/introduction`,\n title: 'Documentation',\n icon: 'documentation',\n category: 'Docs',\n categoryTitle: 'Guide',\n },\n {\n key: 'guide.changeLog',\n path: `${GUIDE_PREFIX_PATH}/changelog`,\n title: 'Changelog',\n icon: 'changeLog',\n category: 'Docs',\n categoryTitle: 'Guide',\n },\n {\n key: 'uiComponent.common.button',\n path: `${UI_COMPONENTS_PREFIX_PATH}/button`,\n title: 'Button',\n icon: 'uiCommonButton',\n category: 'Common',\n categoryTitle: 'UI Components',\n },\n ],\n },\n]\n\nconst ListItem = (props: {\n icon: string\n label: string\n url: string\n isLast?: boolean\n keyWord: string\n onNavigate: () => void\n}) => {\n const { icon, label, url = '', keyWord, onNavigate } = props\n\n return (\n <Link to={url} onClick={onNavigate}>\n <div\n className={classNames(\n 'flex items-center justify-between rounded-xl p-3 cursor-pointer user-select',\n 'hover:bg-gray-100 dark:hover:bg-gray-700',\n )}\n >\n <div className=\"flex items-center gap-2\">\n <div\n className={classNames(\n 'rounded-lg border-2 border-gray-200 shadow-sm text-xl group-hover:shadow h-10 w-10 flex items-center justify-center bg-white dark:bg-gray-700 text-gray-900 dark:text-gray-100',\n )}\n >\n {icon && navigationIcon[icon]}\n </div>\n <div className=\"text-gray-900 dark:text-gray-300\">\n <Highlighter\n autoEscape\n highlightClassName={classNames(\n 'text-primary',\n 'underline bg-transparent font-semibold dark:text-white',\n )}\n searchWords={[keyWord]}\n textToHighlight={label}\n />\n </div>\n </div>\n <HiChevronRight className=\"text-lg\" />\n </div>\n </Link>\n )\n}\n\nconst _Search = ({ className }: { className?: string }) => {\n const [searchDialogOpen, setSearchDialogOpen] = useState(false)\n const [searchResult, setSearchResult] =\n useState<NavFilterResult[]>(recommendedSearch)\n const [noResult, setNoResult] = useState(false)\n\n const inputRef = useRef<HTMLInputElement>(null)\n\n const handleReset = () => {\n setNoResult(false)\n setSearchResult(recommendedSearch)\n }\n\n const handleSearchOpen = () => {\n setSearchDialogOpen(true)\n }\n\n const handleSearchClose = () => {\n setSearchDialogOpen(false)\n handleReset()\n }\n\n const debounceFn = debounce(handleDebounceFn, 200)\n\n async function handleDebounceFn(query: string) {\n if (!query) {\n setSearchResult(recommendedSearch)\n return\n }\n\n if (noResult) {\n setNoResult(false)\n }\n\n const respond = await apiGetSearchResult<NavFilterResult[]>({ query })\n\n if (respond) {\n if (respond.length === 0) {\n setNoResult(true)\n }\n setSearchResult(respond)\n }\n }\n\n const handleSearch = (e: React.ChangeEvent<HTMLInputElement>) => {\n debounceFn(e.target.value)\n }\n\n useEffect(() => {\n if (searchDialogOpen) {\n const timeout = setTimeout(() => inputRef.current?.focus(), 100)\n return () => {\n clearTimeout(timeout)\n }\n }\n }, [searchDialogOpen])\n\n const handleNavigate = () => {\n handleSearchClose()\n }\n\n return (\n <>\n <div\n className={classNames(className, 'text-2xl')}\n onClick={handleSearchOpen}\n >\n <PiMagnifyingGlassDuotone />\n </div>\n <Dialog\n contentClassName=\"p-0\"\n isOpen={searchDialogOpen}\n closable={false}\n onRequestClose={handleSearchClose}\n >\n <div>\n <div className=\"flex items-center justify-between border-b border-gray-200 px-4 dark:border-gray-600\">\n <div className=\"flex items-center\">\n <HiOutlineSearch className=\"text-xl\" />\n <input\n ref={inputRef}\n className=\"block w-full bg-transparent p-4 text-base text-gray-900 outline-none ring-0 dark:text-gray-100\"\n placeholder=\"Search...\"\n onChange={handleSearch}\n />\n </div>\n <Button size=\"xs\" onClick={handleSearchClose}>\n Esc\n </Button>\n </div>\n <div className=\"px-5 py-6\">\n <ScrollBar className=\"max-h-[350px] overflow-y-auto\">\n {searchResult.map((result) => (\n <div key={result.title} className=\"mb-4\">\n <h6 className=\"mb-3\">{result.title}</h6>\n {result.data.map((data, index) => (\n <ListItem\n key={data.title + index}\n icon={data.icon}\n label={data.title}\n url={data.path}\n keyWord={\n inputRef.current?.value || ''\n }\n onNavigate={handleNavigate}\n />\n ))}\n </div>\n ))}\n {searchResult.length === 0 && noResult && (\n <div className=\"my-10 text-center text-lg\">\n <span>No results for </span>\n <span className=\"heading-text\">\n {`'`}\n {inputRef.current?.value}\n {`'`}\n </span>\n </div>\n )}\n </ScrollBar>\n </div>\n </div>\n </Dialog>\n </>\n )\n}\n\nconst NavFilter = withHeaderItem(_Search)\n\nexport default NavFilter\n"],"names":["recommendedSearch","GUIDE_PREFIX_PATH","UI_COMPONENTS_PREFIX_PATH","ListItem","props","icon","label","url","keyWord","onNavigate","jsx","Link","jsxs","classNames","navigationIcon","Highlighter","HiChevronRight","_Search","className","searchDialogOpen","setSearchDialogOpen","useState","searchResult","setSearchResult","noResult","setNoResult","inputRef","useRef","handleReset","handleSearchOpen","handleSearchClose","debounceFn","debounce","handleDebounceFn","query","respond","apiGetSearchResult","handleSearch","e","useEffect","timeout","_a","handleNavigate","Fragment","PiMagnifyingGlassDuotone","Dialog","HiOutlineSearch","Button","ScrollBar","result","data","index","NavFilter","withHeaderItem"],"mappings":"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"}
1
+ {"version":3,"file":"NavFilter.js","sources":["../../../../lib/base/components/tools/NavFilter.tsx"],"sourcesContent":["import { useState, useRef, useEffect } from 'react'\nimport classNames from '@/utils/classNames'\nimport withHeaderItem from '@/utils/hoc/withHeaderItem'\nimport Button from '@/components/ui/Button'\nimport Dialog from '@/components/ui/Dialog'\nimport navigationIcon from '@/configs/navigation-icon.config'\nimport {\n GUIDE_PREFIX_PATH,\n UI_COMPONENTS_PREFIX_PATH,\n} from '@/constants/route.constant'\nimport { apiGetSearchResult } from '@/services/CommonService'\nimport debounce from 'lodash/debounce'\nimport { HiOutlineSearch, HiChevronRight } from 'react-icons/hi'\nimport { PiMagnifyingGlassDuotone } from 'react-icons/pi'\nimport { Link } from 'react-router-dom'\nimport Highlighter from 'react-highlight-words'\nimport { ScrollBar } from '@/components/ui/ScrollBar'\n\ntype NavFilterData = {\n key: string\n path: string\n title: string\n icon: string\n category: string\n categoryTitle: string\n}\n\ntype NavFilterResult = {\n title: string\n data: NavFilterData[]\n}\n\nconst recommendedSearch: NavFilterResult[] = [\n {\n title: 'Recommended',\n data: [\n {\n key: 'guide.documentation',\n path: `${GUIDE_PREFIX_PATH}/documentation/introduction`,\n title: 'Documentation',\n icon: 'documentation',\n category: 'Docs',\n categoryTitle: 'Guide',\n },\n {\n key: 'guide.changeLog',\n path: `${GUIDE_PREFIX_PATH}/changelog`,\n title: 'Changelog',\n icon: 'changeLog',\n category: 'Docs',\n categoryTitle: 'Guide',\n },\n {\n key: 'uiComponent.common.button',\n path: `${UI_COMPONENTS_PREFIX_PATH}/button`,\n title: 'Button',\n icon: 'uiCommonButton',\n category: 'Common',\n categoryTitle: 'UI Components',\n },\n ],\n },\n]\n\nconst ListItem = (props: {\n icon: string\n label: string\n url: string\n isLast?: boolean\n keyWord: string\n onNavigate: () => void\n}) => {\n const { icon, label, url = '', keyWord, onNavigate } = props\n\n return (\n <Link to={url} onClick={onNavigate}>\n <div\n className={classNames(\n 'flex items-center justify-between rounded-xl p-3 cursor-pointer user-select',\n 'hover:bg-gray-100 dark:hover:bg-gray-700',\n )}\n >\n <div className=\"flex items-center gap-2\">\n <div\n className={classNames(\n 'rounded-lg border-2 border-gray-200 shadow-sm text-xl group-hover:shadow h-10 w-10 flex items-center justify-center bg-white dark:bg-gray-700 text-gray-900 dark:text-gray-100',\n )}\n >\n {icon && navigationIcon[icon]}\n </div>\n <div className=\"text-gray-900 dark:text-gray-300\">\n <Highlighter\n autoEscape\n highlightClassName={classNames(\n 'text-primary',\n 'underline bg-transparent font-semibold dark:text-white',\n )}\n searchWords={[keyWord]}\n textToHighlight={label}\n />\n </div>\n </div>\n <HiChevronRight className=\"text-lg\" />\n </div>\n </Link>\n )\n}\n\nconst _Search = ({ className }: { className?: string }) => {\n const [searchDialogOpen, setSearchDialogOpen] = useState(false)\n const [searchResult, setSearchResult] =\n useState<NavFilterResult[]>(recommendedSearch)\n const [noResult, setNoResult] = useState(false)\n\n const inputRef = useRef<HTMLInputElement>(null)\n\n const handleReset = () => {\n setNoResult(false)\n setSearchResult(recommendedSearch)\n }\n\n const handleSearchOpen = () => {\n setSearchDialogOpen(true)\n }\n\n const handleSearchClose = () => {\n setSearchDialogOpen(false)\n handleReset()\n }\n\n const debounceFn = debounce(handleDebounceFn, 200)\n\n async function handleDebounceFn(query: string) {\n if (!query) {\n setSearchResult(recommendedSearch)\n return\n }\n\n if (noResult) {\n setNoResult(false)\n }\n\n const respond = await apiGetSearchResult<NavFilterResult[]>({ query })\n\n if (respond) {\n if (respond.length === 0) {\n setNoResult(true)\n }\n setSearchResult(respond)\n }\n }\n\n const handleSearch = (e: React.ChangeEvent<HTMLInputElement>) => {\n debounceFn(e.target.value)\n }\n\n useEffect(() => {\n if (searchDialogOpen) {\n const timeout = setTimeout(() => inputRef.current?.focus(), 100)\n return () => {\n clearTimeout(timeout)\n }\n }\n }, [searchDialogOpen])\n\n const handleNavigate = () => {\n handleSearchClose()\n }\n\n return (\n <>\n <div\n className={classNames(className, 'text-2xl')}\n onClick={handleSearchOpen}\n >\n <PiMagnifyingGlassDuotone />\n </div>\n <Dialog\n contentClassName=\"p-0\"\n isOpen={searchDialogOpen}\n closable={false}\n onRequestClose={handleSearchClose}\n >\n <div>\n <div className=\"flex items-center justify-between border-b border-gray-200 px-4 dark:border-gray-600\">\n <div className=\"flex items-center\">\n <HiOutlineSearch className=\"text-xl\" />\n <input\n ref={inputRef}\n className=\"block w-full bg-transparent p-4 text-base text-gray-900 outline-none ring-0 dark:text-gray-100\"\n placeholder=\"Search...\"\n onChange={handleSearch}\n />\n </div>\n <Button size=\"xs\" onClick={handleSearchClose}>\n Esc\n </Button>\n </div>\n <div className=\"px-5 py-6\">\n <ScrollBar className=\"max-h-[350px] overflow-y-auto\">\n {searchResult.map((result) => (\n <div key={result.title} className=\"mb-4\">\n <h6 className=\"mb-3\">{result.title}</h6>\n {result.data.map((data, index) => (\n <ListItem\n key={data.title + index}\n icon={data.icon}\n label={data.title}\n url={data.path}\n keyWord={\n inputRef.current?.value || ''\n }\n onNavigate={handleNavigate}\n />\n ))}\n </div>\n ))}\n {searchResult.length === 0 && noResult && (\n <div className=\"my-10 text-center text-lg\">\n <span>No results for </span>\n <span className=\"heading-text\">\n {`'`}\n {inputRef.current?.value}\n {`'`}\n </span>\n </div>\n )}\n </ScrollBar>\n </div>\n </div>\n </Dialog>\n </>\n )\n}\n\nconst NavFilter = withHeaderItem(_Search)\n\nexport default NavFilter\n"],"names":["recommendedSearch","GUIDE_PREFIX_PATH","UI_COMPONENTS_PREFIX_PATH","ListItem","props","icon","label","url","keyWord","onNavigate","jsx","Link","jsxs","classNames","navigationIcon","Highlighter","HiChevronRight","_Search","className","searchDialogOpen","setSearchDialogOpen","useState","searchResult","setSearchResult","noResult","setNoResult","inputRef","useRef","handleReset","handleSearchOpen","handleSearchClose","debounceFn","debounce","handleDebounceFn","query","respond","apiGetSearchResult","handleSearch","e","useEffect","timeout","handleNavigate","Fragment","PiMagnifyingGlassDuotone","Dialog","HiOutlineSearch","Button","ScrollBar","result","data","index","NavFilter","withHeaderItem"],"mappings":"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"}
@@ -1,21 +1,18 @@
1
- const t = "production", A = "http://localhost:8081";
2
- var _;
3
- const o = ((_ = window.__ENV) == null ? void 0 : _.URL_BACKEND) ?? "http://172.16.14.30:30001";
4
- var n;
5
- console.log("VARIAVEL window.__ENV?.URL_BACKEND: " + ((n = window.__ENV) == null ? void 0 : n.URL_BACKEND));
1
+ const t = "production", e = "http://localhost:8081", c = await fetch("/", { method: "HEAD", cache: "no-store" }), n = c.headers.get("X-URL-BACKEND"), o = n ?? "http://172.16.14.30:30001";
2
+ console.log("VARIAVEL URL_BACKEND: " + n);
6
3
  console.log("VARIAVEL BUILD_API_URL: " + o);
7
- const E = t === "development" || !o ? A : o, L = void 0, c = void 0, e = {
8
- API_URL: E,
9
- GOOGLE_MAP_API_KEY: L,
10
- GOOGLE_MAP_MAP_ID: c,
4
+ const s = t === "development" || !o ? e : o, A = void 0, _ = void 0, L = {
5
+ API_URL: s,
6
+ GOOGLE_MAP_API_KEY: A,
7
+ GOOGLE_MAP_MAP_ID: _,
11
8
  NODE_ENV: t,
12
- DEV_API_URL: A,
9
+ DEV_API_URL: e,
13
10
  BUILD_API_URL: o
14
11
  };
15
12
  export {
16
- E as API_URL,
17
- L as GOOGLE_MAP_API_KEY,
18
- c as GOOGLE_MAP_MAP_ID,
19
- e as default
13
+ s as API_URL,
14
+ A as GOOGLE_MAP_API_KEY,
15
+ _ as GOOGLE_MAP_MAP_ID,
16
+ L as default
20
17
  };
21
18
  //# sourceMappingURL=api.config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"api.config.js","sources":["../../../lib/base/configs/api.config.ts"],"sourcesContent":["/**\n * @desc Ambiente atual.\n *\n * \"development\" -> iniciado com \"yarn start\".\n *\n * \"production\" -> versão gerado com \"yarn build\".\n **/\nconst NODE_ENV = import.meta.env.MODE\n\n/**\n * @desc Endereço da API usado em modo de desenvolvimento, quando rodando a aplicação com \"yarn start\".\n *\n * @see http://localhost:8080/api (LOCAL)\n *\n * @see http://172.16.14.27:30001/api (QAS)\n *\n * */\n\nconst DEV_API_URL = 'http://localhost:8081'\n\n/**\n * @desc Endereço da API usado em versão de produção.\n *\n * VITE_APP_API_URL é definido no arquivo \".env.development\" e \".env.production\".\n *\n * Ambiente \".env.development\" é usado com o comando \"yarn build:dev\".\n *\n * Ambiente \".env.production\" é usado com o comando \"yarn build:prod\".\n *\n * Os ambientes sobrescrevem qualquer outro ambiente e as variáveis carregadas neles.\n **/\n\ndeclare global {\n interface Window {\n __ENV?: { URL_BACKEND?: string; NOME_APLICACAO?: string };\n }\n}\n\nconst BUILD_API_URL = window.__ENV?.URL_BACKEND ?? import.meta.env.VITE_APP_API_URL\n\n\nconsole.log('VARIAVEL window.__ENV?.URL_BACKEND: ' + window.__ENV?.URL_BACKEND);\nconsole.log('VARIAVEL BUILD_API_URL: ' + BUILD_API_URL);\n\n\n/**\n * @desc Endereço atual da API.\n **/\nexport const API_URL =\n NODE_ENV === 'development' || !BUILD_API_URL ? DEV_API_URL : BUILD_API_URL\n\nexport const GOOGLE_MAP_API_KEY = import.meta.env.VITE_APP_GOOGLE_MAP_API_KEY\nexport const GOOGLE_MAP_MAP_ID = import.meta.env.VITE_APP_GOOGLE_MAP_MAP_ID\n\nconst apiConfig = {\n API_URL,\n GOOGLE_MAP_API_KEY,\n GOOGLE_MAP_MAP_ID,\n NODE_ENV,\n DEV_API_URL,\n BUILD_API_URL,\n}\n\nexport default apiConfig\n"],"names":["NODE_ENV","DEV_API_URL","_a","BUILD_API_URL","API_URL","GOOGLE_MAP_API_KEY","GOOGLE_MAP_MAP_ID","apiConfig"],"mappings":"AAOA,MAAMA,IAAW,cAWXC,IAAc;AAXpB,IAAAC;AA+BA,MAAMC,MAAgBD,IAAA,OAAO,UAAP,gBAAAA,EAAc,gBAAe;AA/BnD,IAAAA;AAkCA,QAAQ,IAAI,2CAAyCA,IAAA,OAAO,UAAP,gBAAAA,EAAc,YAAW;AAC9E,QAAQ,IAAI,6BAA6BC,CAAa;AAM/C,MAAMC,IACTJ,MAAa,iBAAiB,CAACG,IAAgBF,IAAcE,GAEpDE,IAAqB,QACrBC,IAAoB,QAE3BC,IAAY;AAAA,EACd,SAAAH;AAAA,EACA,oBAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,UAAAN;AAAA,EACA,aAAAC;AAAA,EACA,eAAAE;AACJ;"}
1
+ {"version":3,"file":"api.config.js","sources":["../../../lib/base/configs/api.config.ts"],"sourcesContent":["/**\n * @desc Ambiente atual.\n *\n * \"development\" -> iniciado com \"yarn start\".\n *\n * \"production\" -> versão gerado com \"yarn build\".\n **/\nconst NODE_ENV = import.meta.env.MODE\n\n/**\n * @desc Endereço da API usado em modo de desenvolvimento, quando rodando a aplicação com \"yarn start\".\n *\n * @see http://localhost:8080/api (LOCAL)\n *\n * @see http://172.16.14.27:30001/api (QAS)\n *\n * */\n\nconst DEV_API_URL = 'http://localhost:8081'\n\n/**\n * @desc Endereço da API usado em versão de produção.\n *\n * VITE_APP_API_URL é definido no arquivo \".env.development\" e \".env.production\".\n *\n * Ambiente \".env.development\" é usado com o comando \"yarn build:dev\".\n *\n * Ambiente \".env.production\" é usado com o comando \"yarn build:prod\".\n *\n * Os ambientes sobrescrevem qualquer outro ambiente e as variáveis carregadas neles.\n **/\n\n\nconst resp = await fetch('/', { method: 'HEAD', cache: 'no-store' });\nconst URL_BACKEND = resp.headers.get('X-URL-BACKEND'); \n\n\nconst BUILD_API_URL = URL_BACKEND ?? import.meta.env.VITE_APP_API_URL\n\n\nconsole.log('VARIAVEL URL_BACKEND: ' + URL_BACKEND);\nconsole.log('VARIAVEL BUILD_API_URL: ' + BUILD_API_URL);\n\n\n/**\n * @desc Endereço atual da API.\n **/\nexport const API_URL =\n NODE_ENV === 'development' || !BUILD_API_URL ? DEV_API_URL : BUILD_API_URL\n\nexport const GOOGLE_MAP_API_KEY = import.meta.env.VITE_APP_GOOGLE_MAP_API_KEY\nexport const GOOGLE_MAP_MAP_ID = import.meta.env.VITE_APP_GOOGLE_MAP_MAP_ID\n\nconst apiConfig = {\n API_URL,\n GOOGLE_MAP_API_KEY,\n GOOGLE_MAP_MAP_ID,\n NODE_ENV,\n DEV_API_URL,\n BUILD_API_URL,\n}\n\nexport default apiConfig\n"],"names":["NODE_ENV","DEV_API_URL","resp","URL_BACKEND","BUILD_API_URL","API_URL","GOOGLE_MAP_API_KEY","GOOGLE_MAP_MAP_ID","apiConfig"],"mappings":"AAOA,MAAMA,IAAW,cAWXC,IAAc,yBAedC,IAAO,MAAM,MAAM,KAAK,EAAE,QAAQ,QAAQ,OAAO,YAAY,GAC7DC,IAAcD,EAAK,QAAQ,IAAI,eAAe,GAG9CE,IAAgBD,KAAe;AAGrC,QAAQ,IAAI,2BAA2BA,CAAW;AAClD,QAAQ,IAAI,6BAA6BC,CAAa;AAM/C,MAAMC,IACTL,MAAa,iBAAiB,CAACI,IAAgBH,IAAcG,GAEpDE,IAAqB,QACrBC,IAAoB,QAE3BC,IAAY;AAAA,EACd,SAAAH;AAAA,EACA,oBAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,UAAAP;AAAA,EACA,aAAAC;AAAA,EACA,eAAAG;AACJ;"}
@@ -3,29 +3,29 @@ import "../../../services/index.js";
3
3
  import { useRolesListStore as c } from "../../../store/adm/roles/rolesListStore.js";
4
4
  import { generateQueryParams as L } from "../../../services/query.js";
5
5
  import { apiGetRoles as P } from "../../../services/modules/AdmService.js";
6
- function T() {
7
- const { tableParams: r, filterParams: s, setTableParams: o, setFilterParams: i } = c((t) => t), { data: e, error: a, isLoading: m, mutate: l } = p(
8
- ["/api/roles", L(s, r)],
6
+ function S() {
7
+ const { tableParams: e, filterParams: r, setTableParams: o, setFilterParams: a } = c((s) => s), { data: t, error: i, isLoading: m, mutate: l } = p(
8
+ ["/api/roles", L(r, e)],
9
9
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
10
- ([t, f]) => P({ ...f }),
10
+ ([s, f]) => P({ ...f }),
11
11
  {
12
12
  revalidateOnFocus: !1
13
13
  }
14
- ), n = (e == null ? void 0 : e.content) || [], u = (e == null ? void 0 : e.size) || 0;
14
+ ), n = t?.content || [], u = t?.size || 0;
15
15
  return {
16
- data: e,
16
+ data: t,
17
17
  rolesList: n,
18
18
  rolesListTotal: u,
19
- error: a,
19
+ error: i,
20
20
  isLoading: m,
21
- tableParams: r,
22
- filterParams: s,
21
+ tableParams: e,
22
+ filterParams: r,
23
23
  mutate: l,
24
24
  setTableParams: o,
25
- setFilterParams: i
25
+ setFilterParams: a
26
26
  };
27
27
  }
28
28
  export {
29
- T as default
29
+ S as default
30
30
  };
31
31
  //# sourceMappingURL=useRolesList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useRolesList.js","sources":["../../../../../lib/base/hooks/adm/roles/useRolesList.tsx"],"sourcesContent":["import useSWR from 'swr'\nimport { generateQueryParams } from '@base/services'\nimport { useRolesListStore } from '@base/store/adm/roles/rolesListStore'\nimport { apiGetRoles } from '@base/services'\n\nexport default function useRolesList() {\n const { tableParams, filterParams, setTableParams, setFilterParams } =\n useRolesListStore((state) => state)\n\n const { data, error, isLoading, mutate } = useSWR(\n ['/api/roles', generateQueryParams(filterParams, tableParams)],\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n ([_, params]) => apiGetRoles({ ...params }),\n {\n revalidateOnFocus: false,\n },\n )\n\n const rolesList = data?.content || []\n\n const rolesListTotal = data?.size || 0\n\n return {\n data,\n rolesList,\n rolesListTotal,\n error,\n isLoading,\n tableParams,\n filterParams,\n mutate,\n setTableParams,\n setFilterParams,\n }\n}\n"],"names":["useRolesList","tableParams","filterParams","setTableParams","setFilterParams","useRolesListStore","state","data","error","isLoading","mutate","useSWR","generateQueryParams","_","params","apiGetRoles","rolesList","rolesListTotal"],"mappings":";;;;;AAKA,SAAwBA,IAAe;AACnC,QAAM,EAAE,aAAAC,GAAa,cAAAC,GAAc,gBAAAC,GAAgB,iBAAAC,MAC/CC,EAAkB,CAACC,MAAUA,CAAK,GAEhC,EAAE,MAAAC,GAAM,OAAAC,GAAO,WAAAC,GAAW,QAAAC,MAAWC;AAAA,IACvC,CAAC,cAAcC,EAAoBV,GAAcD,CAAW,CAAC;AAAA;AAAA,IAE7D,CAAC,CAACY,GAAGC,CAAM,MAAMC,EAAY,EAAE,GAAGD,GAAQ;AAAA,IAC1C;AAAA,MACI,mBAAmB;AAAA,IAAA;AAAA,EACvB,GAGEE,KAAYT,KAAA,gBAAAA,EAAM,YAAW,CAAA,GAE7BU,KAAiBV,KAAA,gBAAAA,EAAM,SAAQ;AAErC,SAAO;AAAA,IACH,MAAAA;AAAA,IACA,WAAAS;AAAA,IACA,gBAAAC;AAAA,IACA,OAAAT;AAAA,IACA,WAAAC;AAAA,IACA,aAAAR;AAAA,IACA,cAAAC;AAAA,IACA,QAAAQ;AAAA,IACA,gBAAAP;AAAA,IACA,iBAAAC;AAAA,EAAA;AAER;"}
1
+ {"version":3,"file":"useRolesList.js","sources":["../../../../../lib/base/hooks/adm/roles/useRolesList.tsx"],"sourcesContent":["import useSWR from 'swr'\nimport { generateQueryParams } from '@base/services'\nimport { useRolesListStore } from '@base/store/adm/roles/rolesListStore'\nimport { apiGetRoles } from '@base/services'\n\nexport default function useRolesList() {\n const { tableParams, filterParams, setTableParams, setFilterParams } =\n useRolesListStore((state) => state)\n\n const { data, error, isLoading, mutate } = useSWR(\n ['/api/roles', generateQueryParams(filterParams, tableParams)],\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n ([_, params]) => apiGetRoles({ ...params }),\n {\n revalidateOnFocus: false,\n },\n )\n\n const rolesList = data?.content || []\n\n const rolesListTotal = data?.size || 0\n\n return {\n data,\n rolesList,\n rolesListTotal,\n error,\n isLoading,\n tableParams,\n filterParams,\n mutate,\n setTableParams,\n setFilterParams,\n }\n}\n"],"names":["useRolesList","tableParams","filterParams","setTableParams","setFilterParams","useRolesListStore","state","data","error","isLoading","mutate","useSWR","generateQueryParams","_","params","apiGetRoles","rolesList","rolesListTotal"],"mappings":";;;;;AAKA,SAAwBA,IAAe;AACnC,QAAM,EAAE,aAAAC,GAAa,cAAAC,GAAc,gBAAAC,GAAgB,iBAAAC,MAC/CC,EAAkB,CAACC,MAAUA,CAAK,GAEhC,EAAE,MAAAC,GAAM,OAAAC,GAAO,WAAAC,GAAW,QAAAC,MAAWC;AAAA,IACvC,CAAC,cAAcC,EAAoBV,GAAcD,CAAW,CAAC;AAAA;AAAA,IAE7D,CAAC,CAACY,GAAGC,CAAM,MAAMC,EAAY,EAAE,GAAGD,GAAQ;AAAA,IAC1C;AAAA,MACI,mBAAmB;AAAA,IAAA;AAAA,EACvB,GAGEE,IAAYT,GAAM,WAAW,CAAA,GAE7BU,IAAiBV,GAAM,QAAQ;AAErC,SAAO;AAAA,IACH,MAAAA;AAAA,IACA,WAAAS;AAAA,IACA,gBAAAC;AAAA,IACA,OAAAT;AAAA,IACA,WAAAC;AAAA,IACA,aAAAR;AAAA,IACA,cAAAC;AAAA,IACA,QAAAQ;AAAA,IACA,gBAAAP;AAAA,IACA,iBAAAC;AAAA,EAAA;AAER;"}
@@ -3,29 +3,29 @@ import "../../../services/index.js";
3
3
  import { useUsersListStore as c } from "../../../store/adm/users/usersListStore.js";
4
4
  import { generateQueryParams as L } from "../../../services/query.js";
5
5
  import { apiGetUsers as P } from "../../../services/modules/AdmService.js";
6
- function T() {
7
- const { tableParams: r, filterParams: e, setTableParams: o, setFilterParams: i } = c((t) => t), { data: s, error: a, isLoading: m, mutate: n } = p(
8
- ["/api/users", L(e, r)],
6
+ function S() {
7
+ const { tableParams: r, filterParams: t, setTableParams: a, setFilterParams: o } = c((e) => e), { data: s, error: i, isLoading: m, mutate: n } = p(
8
+ ["/api/users", L(t, r)],
9
9
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
10
- ([t, l]) => P({ ...l }),
10
+ ([e, l]) => P({ ...l }),
11
11
  {
12
12
  revalidateOnFocus: !1
13
13
  }
14
- ), u = (s == null ? void 0 : s.content) || [], f = (s == null ? void 0 : s.size) || 0;
14
+ ), u = s?.content || [], f = s?.size || 0;
15
15
  return {
16
16
  data: s,
17
17
  userList: u,
18
18
  userListTotal: f,
19
- error: a,
19
+ error: i,
20
20
  isLoading: m,
21
21
  tableParams: r,
22
- filterParams: e,
22
+ filterParams: t,
23
23
  mutate: n,
24
- setTableParams: o,
25
- setFilterParams: i
24
+ setTableParams: a,
25
+ setFilterParams: o
26
26
  };
27
27
  }
28
28
  export {
29
- T as default
29
+ S as default
30
30
  };
31
31
  //# sourceMappingURL=useUsersList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useUsersList.js","sources":["../../../../../lib/base/hooks/adm/users/useUsersList.tsx"],"sourcesContent":["\nimport useSWR from 'swr'\nimport { generateQueryParams } from '@base/services'\nimport { useUsersListStore } from '@base/store/adm/users/usersListStore'\nimport { apiGetUsers } from '@base/services'\n\nexport default function useUsersList() {\n const { tableParams, filterParams, setTableParams, setFilterParams } =\n useUsersListStore((state) => state)\n\n const { data, error, isLoading, mutate } = useSWR(\n ['/api/users', generateQueryParams(filterParams, tableParams)],\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n ([_, params]) => apiGetUsers({ ...params }),\n {\n revalidateOnFocus: false,\n },\n )\n\n const userList = data?.content || []\n\n const userListTotal = data?.size || 0\n\n return {\n data,\n userList,\n userListTotal,\n error,\n isLoading,\n tableParams,\n filterParams,\n mutate,\n setTableParams,\n setFilterParams,\n }\n}\n"],"names":["useUsersList","tableParams","filterParams","setTableParams","setFilterParams","useUsersListStore","state","data","error","isLoading","mutate","useSWR","generateQueryParams","_","params","apiGetUsers","userList","userListTotal"],"mappings":";;;;;AAMA,SAAwBA,IAAe;AACnC,QAAM,EAAE,aAAAC,GAAa,cAAAC,GAAc,gBAAAC,GAAgB,iBAAAC,MAC/CC,EAAkB,CAACC,MAAUA,CAAK,GAEhC,EAAE,MAAAC,GAAM,OAAAC,GAAO,WAAAC,GAAW,QAAAC,MAAWC;AAAA,IACvC,CAAC,cAAcC,EAAoBV,GAAcD,CAAW,CAAC;AAAA;AAAA,IAE7D,CAAC,CAACY,GAAGC,CAAM,MAAMC,EAAY,EAAE,GAAGD,GAAQ;AAAA,IAC1C;AAAA,MACI,mBAAmB;AAAA,IAAA;AAAA,EACvB,GAGEE,KAAWT,KAAA,gBAAAA,EAAM,YAAW,CAAA,GAE5BU,KAAgBV,KAAA,gBAAAA,EAAM,SAAQ;AAEpC,SAAO;AAAA,IACH,MAAAA;AAAA,IACA,UAAAS;AAAA,IACA,eAAAC;AAAA,IACA,OAAAT;AAAA,IACA,WAAAC;AAAA,IACA,aAAAR;AAAA,IACA,cAAAC;AAAA,IACA,QAAAQ;AAAA,IACA,gBAAAP;AAAA,IACA,iBAAAC;AAAA,EAAA;AAER;"}
1
+ {"version":3,"file":"useUsersList.js","sources":["../../../../../lib/base/hooks/adm/users/useUsersList.tsx"],"sourcesContent":["\nimport useSWR from 'swr'\nimport { generateQueryParams } from '@base/services'\nimport { useUsersListStore } from '@base/store/adm/users/usersListStore'\nimport { apiGetUsers } from '@base/services'\n\nexport default function useUsersList() {\n const { tableParams, filterParams, setTableParams, setFilterParams } =\n useUsersListStore((state) => state)\n\n const { data, error, isLoading, mutate } = useSWR(\n ['/api/users', generateQueryParams(filterParams, tableParams)],\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n ([_, params]) => apiGetUsers({ ...params }),\n {\n revalidateOnFocus: false,\n },\n )\n\n const userList = data?.content || []\n\n const userListTotal = data?.size || 0\n\n return {\n data,\n userList,\n userListTotal,\n error,\n isLoading,\n tableParams,\n filterParams,\n mutate,\n setTableParams,\n setFilterParams,\n }\n}\n"],"names":["useUsersList","tableParams","filterParams","setTableParams","setFilterParams","useUsersListStore","state","data","error","isLoading","mutate","useSWR","generateQueryParams","_","params","apiGetUsers","userList","userListTotal"],"mappings":";;;;;AAMA,SAAwBA,IAAe;AACnC,QAAM,EAAE,aAAAC,GAAa,cAAAC,GAAc,gBAAAC,GAAgB,iBAAAC,MAC/CC,EAAkB,CAACC,MAAUA,CAAK,GAEhC,EAAE,MAAAC,GAAM,OAAAC,GAAO,WAAAC,GAAW,QAAAC,MAAWC;AAAA,IACvC,CAAC,cAAcC,EAAoBV,GAAcD,CAAW,CAAC;AAAA;AAAA,IAE7D,CAAC,CAACY,GAAGC,CAAM,MAAMC,EAAY,EAAE,GAAGD,GAAQ;AAAA,IAC1C;AAAA,MACI,mBAAmB;AAAA,IAAA;AAAA,EACvB,GAGEE,IAAWT,GAAM,WAAW,CAAA,GAE5BU,IAAgBV,GAAM,QAAQ;AAEpC,SAAO;AAAA,IACH,MAAAA;AAAA,IACA,UAAAS;AAAA,IACA,eAAAC;AAAA,IACA,OAAAT;AAAA,IACA,WAAAC;AAAA,IACA,aAAAR;AAAA,IACA,cAAAC;AAAA,IACA,QAAAQ;AAAA,IACA,gBAAAP;AAAA,IACA,iBAAAC;AAAA,EAAA;AAER;"}
@@ -2,19 +2,19 @@ import { apiFindDmBusinessPartnerCliente as c } from "../../../services/modules/
2
2
  import { useBusinessPartnerListStore as f } from "../../../store/dm/businesPartner/businessPartnerListStore.js";
3
3
  import p from "swr";
4
4
  function C() {
5
- const { tableParams: t, filterParams: e, setTableParams: r, setFilterParams: n } = f((P) => P), i = ["/api/dm/business-partner/find-business-partner-is-cliente", e], { data: s, error: a, isLoading: o, mutate: u } = p(
5
+ const { tableParams: t, filterParams: s, setTableParams: r, setFilterParams: n } = f((P) => P), i = ["/api/dm/business-partner/find-business-partner-is-cliente", s], { data: e, error: a, isLoading: o, mutate: u } = p(
6
6
  i,
7
- () => c(e),
7
+ () => c(s),
8
8
  { revalidateOnFocus: !1 }
9
- ), l = s || [], m = (s == null ? void 0 : s.length) || 0;
9
+ ), l = e || [], m = e?.length || 0;
10
10
  return {
11
- data: s,
11
+ data: e,
12
12
  businessPartnerClienteList: l,
13
13
  businessPartnerClienteListTotal: m,
14
14
  error: a,
15
15
  isLoading: o,
16
16
  tableParams: t,
17
- filterParams: e,
17
+ filterParams: s,
18
18
  mutate: u,
19
19
  setTableParams: r,
20
20
  setFilterParams: n
@@ -1 +1 @@
1
- {"version":3,"file":"useBusinessPartnerClienteList.js","sources":["../../../../../lib/base/hooks/dm/businessPartner/useBusinessPartnerClienteList.tsx"],"sourcesContent":["import { apiFindDmBusinessPartnerCliente } from '@base/services/modules/dm/businessPartner/BusinessPartnerService'\nimport { useBusinessPartnerListStore } from '@base/store/dm/businesPartner/businessPartnerListStore';\nimport useSWR from 'swr'\n\nexport default function useBusinessPartnerClienteList() {\n const { tableParams, filterParams, setTableParams, setFilterParams } =\n useBusinessPartnerListStore((state) => state);\n\n const swrKey = [\"/api/dm/business-partner/find-business-partner-is-cliente\", filterParams];\n\n const { data, error, isLoading, mutate } = useSWR(\n swrKey,\n () => apiFindDmBusinessPartnerCliente(filterParams),\n { revalidateOnFocus: false }\n );\n\n const businessPartnerClienteList = data || [];\n\n const businessPartnerClienteListTotal = data?.length || 0;\n\n return {\n data,\n businessPartnerClienteList,\n businessPartnerClienteListTotal,\n error,\n isLoading,\n tableParams,\n filterParams,\n mutate,\n setTableParams,\n setFilterParams,\n };\n}"],"names":["useBusinessPartnerClienteList","tableParams","filterParams","setTableParams","setFilterParams","useBusinessPartnerListStore","state","swrKey","data","error","isLoading","mutate","useSWR","apiFindDmBusinessPartnerCliente","businessPartnerClienteList","businessPartnerClienteListTotal"],"mappings":";;;AAIA,SAAwBA,IAAgC;AACpD,QAAM,EAAE,aAAAC,GAAa,cAAAC,GAAc,gBAAAC,GAAgB,iBAAAC,MAC/CC,EAA4B,CAACC,MAAUA,CAAK,GAE1CC,IAAS,CAAC,6DAA6DL,CAAY,GAEnF,EAAE,MAAAM,GAAM,OAAAC,GAAO,WAAAC,GAAW,QAAAC,MAAWC;AAAA,IACvCL;AAAA,IACA,MAAMM,EAAgCX,CAAY;AAAA,IAClD,EAAE,mBAAmB,GAAA;AAAA,EAAM,GAGzBY,IAA6BN,KAAQ,CAAA,GAErCO,KAAkCP,KAAA,gBAAAA,EAAM,WAAU;AAExD,SAAO;AAAA,IACH,MAAAA;AAAA,IACA,4BAAAM;AAAA,IACA,iCAAAC;AAAA,IACA,OAAAN;AAAA,IACA,WAAAC;AAAA,IACA,aAAAT;AAAA,IACA,cAAAC;AAAA,IACA,QAAAS;AAAA,IACA,gBAAAR;AAAA,IACA,iBAAAC;AAAA,EAAA;AAER;"}
1
+ {"version":3,"file":"useBusinessPartnerClienteList.js","sources":["../../../../../lib/base/hooks/dm/businessPartner/useBusinessPartnerClienteList.tsx"],"sourcesContent":["import { apiFindDmBusinessPartnerCliente } from '@base/services/modules/dm/businessPartner/BusinessPartnerService'\nimport { useBusinessPartnerListStore } from '@base/store/dm/businesPartner/businessPartnerListStore';\nimport useSWR from 'swr'\n\nexport default function useBusinessPartnerClienteList() {\n const { tableParams, filterParams, setTableParams, setFilterParams } =\n useBusinessPartnerListStore((state) => state);\n\n const swrKey = [\"/api/dm/business-partner/find-business-partner-is-cliente\", filterParams];\n\n const { data, error, isLoading, mutate } = useSWR(\n swrKey,\n () => apiFindDmBusinessPartnerCliente(filterParams),\n { revalidateOnFocus: false }\n );\n\n const businessPartnerClienteList = data || [];\n\n const businessPartnerClienteListTotal = data?.length || 0;\n\n return {\n data,\n businessPartnerClienteList,\n businessPartnerClienteListTotal,\n error,\n isLoading,\n tableParams,\n filterParams,\n mutate,\n setTableParams,\n setFilterParams,\n };\n}"],"names":["useBusinessPartnerClienteList","tableParams","filterParams","setTableParams","setFilterParams","useBusinessPartnerListStore","state","swrKey","data","error","isLoading","mutate","useSWR","apiFindDmBusinessPartnerCliente","businessPartnerClienteList","businessPartnerClienteListTotal"],"mappings":";;;AAIA,SAAwBA,IAAgC;AACpD,QAAM,EAAE,aAAAC,GAAa,cAAAC,GAAc,gBAAAC,GAAgB,iBAAAC,MAC/CC,EAA4B,CAACC,MAAUA,CAAK,GAE1CC,IAAS,CAAC,6DAA6DL,CAAY,GAEnF,EAAE,MAAAM,GAAM,OAAAC,GAAO,WAAAC,GAAW,QAAAC,MAAWC;AAAA,IACvCL;AAAA,IACA,MAAMM,EAAgCX,CAAY;AAAA,IAClD,EAAE,mBAAmB,GAAA;AAAA,EAAM,GAGzBY,IAA6BN,KAAQ,CAAA,GAErCO,IAAkCP,GAAM,UAAU;AAExD,SAAO;AAAA,IACH,MAAAA;AAAA,IACA,4BAAAM;AAAA,IACA,iCAAAC;AAAA,IACA,OAAAN;AAAA,IACA,WAAAC;AAAA,IACA,aAAAT;AAAA,IACA,cAAAC;AAAA,IACA,QAAAS;AAAA,IACA,gBAAAR;AAAA,IACA,iBAAAC;AAAA,EAAA;AAER;"}
@@ -2,19 +2,19 @@ import { apiFindDmBusinessPartnerFornecedor as f } from "../../../services/modul
2
2
  import { useBusinessPartnerListStore as l } from "../../../store/dm/businesPartner/businessPartnerListStore.js";
3
3
  import P from "swr";
4
4
  function L() {
5
- const { tableParams: e, filterParams: s, setTableParams: t, setFilterParams: n } = l((d) => d), o = ["/api/dm/business-partner/find-business-partner-is-fornecedor", s], { data: r, error: a, isLoading: i, mutate: u } = P(
6
- o,
7
- () => f(s),
5
+ const { tableParams: e, filterParams: r, setTableParams: t, setFilterParams: n } = l((d) => d), a = ["/api/dm/business-partner/find-business-partner-is-fornecedor", r], { data: s, error: o, isLoading: i, mutate: u } = P(
6
+ a,
7
+ () => f(r),
8
8
  { revalidateOnFocus: !1 }
9
- ), m = r || [], c = (r == null ? void 0 : r.length) || 0;
9
+ ), m = s || [], c = s?.length || 0;
10
10
  return {
11
- data: r,
11
+ data: s,
12
12
  businessPartnerFornecedorList: m,
13
13
  businessPartnerFornecedorListTotal: c,
14
- error: a,
14
+ error: o,
15
15
  isLoading: i,
16
16
  tableParams: e,
17
- filterParams: s,
17
+ filterParams: r,
18
18
  mutate: u,
19
19
  setTableParams: t,
20
20
  setFilterParams: n
@@ -1 +1 @@
1
- {"version":3,"file":"useBusinessPartnerFornecedorList.js","sources":["../../../../../lib/base/hooks/dm/businessPartner/useBusinessPartnerFornecedorList.tsx"],"sourcesContent":["import { apiFindDmBusinessPartnerFornecedor } from '@base/services/modules/dm/businessPartner/BusinessPartnerService'\nimport { useBusinessPartnerListStore } from '@base/store/dm/businesPartner/businessPartnerListStore';\nimport useSWR from 'swr'\n\nexport default function useBusinessPartnerFornecedorList() {\n const { tableParams, filterParams, setTableParams, setFilterParams } =\n useBusinessPartnerListStore((state) => state);\n\n const swrKey = [\"/api/dm/business-partner/find-business-partner-is-fornecedor\", filterParams];\n\n const { data, error, isLoading, mutate } = useSWR(\n swrKey,\n () => apiFindDmBusinessPartnerFornecedor(filterParams),\n { revalidateOnFocus: false }\n );\n\n const businessPartnerFornecedorList = data || [];\n\n const businessPartnerFornecedorListTotal = data?.length || 0;\n\n return {\n data,\n businessPartnerFornecedorList,\n businessPartnerFornecedorListTotal,\n error,\n isLoading,\n tableParams,\n filterParams,\n mutate,\n setTableParams,\n setFilterParams,\n };\n}"],"names":["useBusinessPartnerFornecedorList","tableParams","filterParams","setTableParams","setFilterParams","useBusinessPartnerListStore","state","swrKey","data","error","isLoading","mutate","useSWR","apiFindDmBusinessPartnerFornecedor","businessPartnerFornecedorList","businessPartnerFornecedorListTotal"],"mappings":";;;AAIA,SAAwBA,IAAmC;AACvD,QAAM,EAAE,aAAAC,GAAa,cAAAC,GAAc,gBAAAC,GAAgB,iBAAAC,MAC/CC,EAA4B,CAACC,MAAUA,CAAK,GAE1CC,IAAS,CAAC,gEAAgEL,CAAY,GAEtF,EAAE,MAAAM,GAAM,OAAAC,GAAO,WAAAC,GAAW,QAAAC,MAAWC;AAAA,IACvCL;AAAA,IACA,MAAMM,EAAmCX,CAAY;AAAA,IACrD,EAAE,mBAAmB,GAAA;AAAA,EAAM,GAGzBY,IAAgCN,KAAQ,CAAA,GAExCO,KAAqCP,KAAA,gBAAAA,EAAM,WAAU;AAE3D,SAAO;AAAA,IACH,MAAAA;AAAA,IACA,+BAAAM;AAAA,IACA,oCAAAC;AAAA,IACA,OAAAN;AAAA,IACA,WAAAC;AAAA,IACA,aAAAT;AAAA,IACA,cAAAC;AAAA,IACA,QAAAS;AAAA,IACA,gBAAAR;AAAA,IACA,iBAAAC;AAAA,EAAA;AAER;"}
1
+ {"version":3,"file":"useBusinessPartnerFornecedorList.js","sources":["../../../../../lib/base/hooks/dm/businessPartner/useBusinessPartnerFornecedorList.tsx"],"sourcesContent":["import { apiFindDmBusinessPartnerFornecedor } from '@base/services/modules/dm/businessPartner/BusinessPartnerService'\nimport { useBusinessPartnerListStore } from '@base/store/dm/businesPartner/businessPartnerListStore';\nimport useSWR from 'swr'\n\nexport default function useBusinessPartnerFornecedorList() {\n const { tableParams, filterParams, setTableParams, setFilterParams } =\n useBusinessPartnerListStore((state) => state);\n\n const swrKey = [\"/api/dm/business-partner/find-business-partner-is-fornecedor\", filterParams];\n\n const { data, error, isLoading, mutate } = useSWR(\n swrKey,\n () => apiFindDmBusinessPartnerFornecedor(filterParams),\n { revalidateOnFocus: false }\n );\n\n const businessPartnerFornecedorList = data || [];\n\n const businessPartnerFornecedorListTotal = data?.length || 0;\n\n return {\n data,\n businessPartnerFornecedorList,\n businessPartnerFornecedorListTotal,\n error,\n isLoading,\n tableParams,\n filterParams,\n mutate,\n setTableParams,\n setFilterParams,\n };\n}"],"names":["useBusinessPartnerFornecedorList","tableParams","filterParams","setTableParams","setFilterParams","useBusinessPartnerListStore","state","swrKey","data","error","isLoading","mutate","useSWR","apiFindDmBusinessPartnerFornecedor","businessPartnerFornecedorList","businessPartnerFornecedorListTotal"],"mappings":";;;AAIA,SAAwBA,IAAmC;AACvD,QAAM,EAAE,aAAAC,GAAa,cAAAC,GAAc,gBAAAC,GAAgB,iBAAAC,MAC/CC,EAA4B,CAACC,MAAUA,CAAK,GAE1CC,IAAS,CAAC,gEAAgEL,CAAY,GAEtF,EAAE,MAAAM,GAAM,OAAAC,GAAO,WAAAC,GAAW,QAAAC,MAAWC;AAAA,IACvCL;AAAA,IACA,MAAMM,EAAmCX,CAAY;AAAA,IACrD,EAAE,mBAAmB,GAAA;AAAA,EAAM,GAGzBY,IAAgCN,KAAQ,CAAA,GAExCO,IAAqCP,GAAM,UAAU;AAE3D,SAAO;AAAA,IACH,MAAAA;AAAA,IACA,+BAAAM;AAAA,IACA,oCAAAC;AAAA,IACA,OAAAN;AAAA,IACA,WAAAC;AAAA,IACA,aAAAT;AAAA,IACA,cAAAC;AAAA,IACA,QAAAS;AAAA,IACA,gBAAAR;AAAA,IACA,iBAAAC;AAAA,EAAA;AAER;"}
@@ -2,27 +2,27 @@ import "../../../services/index.js";
2
2
  import { apiFindDmBusinessPartner as f } from "../../../services/modules/dm/businessPartner/BusinessPartnerService.js";
3
3
  import { useBusinessPartnerListStore as p } from "../../../store/dm/businesPartner/businessPartnerListStore.js";
4
4
  import c from "swr";
5
- import { generateQueryParams as b } from "../../../services/query.js";
5
+ import { generateQueryParams as d } from "../../../services/query.js";
6
6
  function S() {
7
- const { tableParams: r, filterParams: e, setTableParams: n, setFilterParams: i } = p((t) => t), { data: s, error: a, isLoading: o, mutate: m } = c(
8
- ["/api/dm/business-partner/find", b(e, r)],
7
+ const { tableParams: t, filterParams: r, setTableParams: a, setFilterParams: n } = p((e) => e), { data: s, error: i, isLoading: o, mutate: m } = c(
8
+ ["/api/dm/business-partner/find", d(r, t)],
9
9
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
10
- ([t, P]) => f({ ...P }),
10
+ ([e, P]) => f({ ...P }),
11
11
  {
12
12
  revalidateOnFocus: !1
13
13
  }
14
- ), u = (s == null ? void 0 : s.content) || [], l = (s == null ? void 0 : s.totalElements) || 0;
14
+ ), u = s?.content || [], l = s?.totalElements || 0;
15
15
  return {
16
16
  data: s,
17
17
  businessPartnersList: u,
18
18
  businessPartnersListTotal: l,
19
- error: a,
19
+ error: i,
20
20
  isLoading: o,
21
- tableParams: r,
22
- filterParams: e,
21
+ tableParams: t,
22
+ filterParams: r,
23
23
  mutate: m,
24
- setTableParams: n,
25
- setFilterParams: i
24
+ setTableParams: a,
25
+ setFilterParams: n
26
26
  };
27
27
  }
28
28
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"useBusinessPartnerList.js","sources":["../../../../../lib/base/hooks/dm/businessPartner/useBusinessPartnerList.tsx"],"sourcesContent":["import { generateQueryParams } from '@base/services'\nimport { apiFindDmBusinessPartner } from '@base/services/modules/dm/businessPartner/BusinessPartnerService'\nimport { useBusinessPartnerListStore } from '@base/store/dm/businesPartner/businessPartnerListStore'\n\nimport useSWR from 'swr'\n\nexport default function useBusinessPartnerList() {\n const { tableParams, filterParams, setTableParams, setFilterParams } = useBusinessPartnerListStore((state) => state)\n\n const { data, error, isLoading, mutate } = useSWR(\n ['/api/dm/business-partner/find', generateQueryParams(filterParams, tableParams)],\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n ([_, params]) => apiFindDmBusinessPartner({ ...params }),\n {\n revalidateOnFocus: false,\n },\n )\n\n const businessPartnersList = data?.content || []\n\n const businessPartnersListTotal = data?.totalElements || 0\n\n return {\n data,\n businessPartnersList,\n businessPartnersListTotal,\n error,\n isLoading,\n tableParams,\n filterParams,\n mutate,\n setTableParams,\n setFilterParams,\n }\n}"],"names":["useBusinessPartnerList","tableParams","filterParams","setTableParams","setFilterParams","useBusinessPartnerListStore","state","data","error","isLoading","mutate","useSWR","generateQueryParams","_","params","apiFindDmBusinessPartner","businessPartnersList","businessPartnersListTotal"],"mappings":";;;;;AAMA,SAAwBA,IAAyB;AAC7C,QAAM,EAAE,aAAAC,GAAa,cAAAC,GAAc,gBAAAC,GAAgB,iBAAAC,MAAoBC,EAA4B,CAACC,MAAUA,CAAK,GAE7G,EAAE,MAAAC,GAAM,OAAAC,GAAO,WAAAC,GAAW,QAAAC,MAAWC;AAAA,IACvC,CAAC,iCAAiCC,EAAoBV,GAAcD,CAAW,CAAC;AAAA;AAAA,IAEhF,CAAC,CAACY,GAAGC,CAAM,MAAMC,EAAyB,EAAE,GAAGD,GAAQ;AAAA,IACvD;AAAA,MACI,mBAAmB;AAAA,IAAA;AAAA,EACvB,GAGEE,KAAuBT,KAAA,gBAAAA,EAAM,YAAW,CAAA,GAExCU,KAA4BV,KAAA,gBAAAA,EAAM,kBAAiB;AAEzD,SAAO;AAAA,IACH,MAAAA;AAAA,IACA,sBAAAS;AAAA,IACA,2BAAAC;AAAA,IACA,OAAAT;AAAA,IACA,WAAAC;AAAA,IACA,aAAAR;AAAA,IACA,cAAAC;AAAA,IACA,QAAAQ;AAAA,IACA,gBAAAP;AAAA,IACA,iBAAAC;AAAA,EAAA;AAER;"}
1
+ {"version":3,"file":"useBusinessPartnerList.js","sources":["../../../../../lib/base/hooks/dm/businessPartner/useBusinessPartnerList.tsx"],"sourcesContent":["import { generateQueryParams } from '@base/services'\nimport { apiFindDmBusinessPartner } from '@base/services/modules/dm/businessPartner/BusinessPartnerService'\nimport { useBusinessPartnerListStore } from '@base/store/dm/businesPartner/businessPartnerListStore'\n\nimport useSWR from 'swr'\n\nexport default function useBusinessPartnerList() {\n const { tableParams, filterParams, setTableParams, setFilterParams } = useBusinessPartnerListStore((state) => state)\n\n const { data, error, isLoading, mutate } = useSWR(\n ['/api/dm/business-partner/find', generateQueryParams(filterParams, tableParams)],\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n ([_, params]) => apiFindDmBusinessPartner({ ...params }),\n {\n revalidateOnFocus: false,\n },\n )\n\n const businessPartnersList = data?.content || []\n\n const businessPartnersListTotal = data?.totalElements || 0\n\n return {\n data,\n businessPartnersList,\n businessPartnersListTotal,\n error,\n isLoading,\n tableParams,\n filterParams,\n mutate,\n setTableParams,\n setFilterParams,\n }\n}"],"names":["useBusinessPartnerList","tableParams","filterParams","setTableParams","setFilterParams","useBusinessPartnerListStore","state","data","error","isLoading","mutate","useSWR","generateQueryParams","_","params","apiFindDmBusinessPartner","businessPartnersList","businessPartnersListTotal"],"mappings":";;;;;AAMA,SAAwBA,IAAyB;AAC7C,QAAM,EAAE,aAAAC,GAAa,cAAAC,GAAc,gBAAAC,GAAgB,iBAAAC,MAAoBC,EAA4B,CAACC,MAAUA,CAAK,GAE7G,EAAE,MAAAC,GAAM,OAAAC,GAAO,WAAAC,GAAW,QAAAC,MAAWC;AAAA,IACvC,CAAC,iCAAiCC,EAAoBV,GAAcD,CAAW,CAAC;AAAA;AAAA,IAEhF,CAAC,CAACY,GAAGC,CAAM,MAAMC,EAAyB,EAAE,GAAGD,GAAQ;AAAA,IACvD;AAAA,MACI,mBAAmB;AAAA,IAAA;AAAA,EACvB,GAGEE,IAAuBT,GAAM,WAAW,CAAA,GAExCU,IAA4BV,GAAM,iBAAiB;AAEzD,SAAO;AAAA,IACH,MAAAA;AAAA,IACA,sBAAAS;AAAA,IACA,2BAAAC;AAAA,IACA,OAAAT;AAAA,IACA,WAAAC;AAAA,IACA,aAAAR;AAAA,IACA,cAAAC;AAAA,IACA,QAAAQ;AAAA,IACA,gBAAAP;AAAA,IACA,iBAAAC;AAAA,EAAA;AAER;"}