@orbe-agro/client-core 5.3.86 → 5.3.90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (502) hide show
  1. package/dist/@ecme/assets/styles/app.css +1 -1
  2. package/dist/@ecme/assets/styles/components/_dialog.css +1 -1
  3. package/dist/@ecme/assets/styles/components/_drawer.css +1 -1
  4. package/dist/@ecme/assets/styles/components/_scrollbar.css +1 -1
  5. package/dist/@ecme/assets/styles/components/_switcher.css +1 -1
  6. package/dist/@ecme/assets/styles/components/_upload.css +1 -1
  7. package/dist/@ecme/assets/styles/components/index.css +1 -1
  8. package/dist/@ecme/assets/styles/tailwind/index.css +1 -1
  9. package/dist/@ecme/auth/AuthProvider.js +58 -62
  10. package/dist/@ecme/auth/AuthProvider.js.map +1 -1
  11. package/dist/@ecme/components/docs/DemoCard/DemoCard.js +18 -19
  12. package/dist/@ecme/components/docs/DemoCard/DemoCard.js.map +1 -1
  13. package/dist/@ecme/components/layouts/PostLoginLayout/PostLoginLayout.js +29 -30
  14. package/dist/@ecme/components/layouts/PostLoginLayout/PostLoginLayout.js.map +1 -1
  15. package/dist/@ecme/components/layouts/PostLoginLayout/components/ContentOverlay.js +56 -56
  16. package/dist/@ecme/components/layouts/PostLoginLayout/components/ContentOverlay.js.map +1 -1
  17. package/dist/@ecme/components/shared/Affix.js +9 -10
  18. package/dist/@ecme/components/shared/Affix.js.map +1 -1
  19. package/dist/@ecme/components/shared/AutoComplete.js +27 -28
  20. package/dist/@ecme/components/shared/AutoComplete.js.map +1 -1
  21. package/dist/@ecme/components/shared/CalendarView.js +19 -20
  22. package/dist/@ecme/components/shared/CalendarView.js.map +1 -1
  23. package/dist/@ecme/components/shared/ConfirmDialog.js +16 -16
  24. package/dist/@ecme/components/shared/ConfirmDialog.js.map +1 -1
  25. package/dist/@ecme/components/shared/DataTable.js +151 -151
  26. package/dist/@ecme/components/shared/DataTable.js.map +1 -1
  27. package/dist/@ecme/components/shared/DebounceInput.js +11 -12
  28. package/dist/@ecme/components/shared/DebounceInput.js.map +1 -1
  29. package/dist/@ecme/components/shared/GanttChart/GanttChart.js +20 -20
  30. package/dist/@ecme/components/shared/GanttChart/GanttChart.js.map +1 -1
  31. package/dist/@ecme/components/shared/GanttChart/TaskListTable.js +22 -22
  32. package/dist/@ecme/components/shared/GanttChart/TaskListTable.js.map +1 -1
  33. package/dist/@ecme/components/shared/ImageGallery.js +18 -18
  34. package/dist/@ecme/components/shared/ImageGallery.js.map +1 -1
  35. package/dist/@ecme/components/shared/Masonry/Masonry.js +25 -25
  36. package/dist/@ecme/components/shared/Masonry/Masonry.js.map +1 -1
  37. package/dist/@ecme/components/shared/OtpInput.js +54 -56
  38. package/dist/@ecme/components/shared/OtpInput.js.map +1 -1
  39. package/dist/@ecme/components/shared/PasswordInput.js +6 -6
  40. package/dist/@ecme/components/shared/PasswordInput.js.map +1 -1
  41. package/dist/@ecme/components/shared/RegionMap.js +9 -9
  42. package/dist/@ecme/components/shared/RegionMap.js.map +1 -1
  43. package/dist/@ecme/components/shared/RichTextEditor/RichTextEditor.js +47 -47
  44. package/dist/@ecme/components/shared/RichTextEditor/RichTextEditor.js.map +1 -1
  45. package/dist/@ecme/components/shared/UsersAvatarGroup.js +24 -24
  46. package/dist/@ecme/components/shared/UsersAvatarGroup.js.map +1 -1
  47. package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuContent.js +63 -69
  48. package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuContent.js.map +1 -1
  49. package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuDropdown.js +48 -48
  50. package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuDropdown.js.map +1 -1
  51. package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuDropdownContent.js +220 -231
  52. package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuDropdownContent.js.map +1 -1
  53. package/dist/@ecme/components/template/LanguageSelector.js +10 -13
  54. package/dist/@ecme/components/template/LanguageSelector.js.map +1 -1
  55. package/dist/@ecme/components/template/Search.js +85 -92
  56. package/dist/@ecme/components/template/Search.js.map +1 -1
  57. package/dist/@ecme/components/template/ThemeConfigurator/DirectionSwitcher.js +18 -18
  58. package/dist/@ecme/components/template/ThemeConfigurator/DirectionSwitcher.js.map +1 -1
  59. package/dist/@ecme/components/template/VerticalMenuContent/VerticalCollapsedMenuItem.js +17 -17
  60. package/dist/@ecme/components/template/VerticalMenuContent/VerticalCollapsedMenuItem.js.map +1 -1
  61. package/dist/@ecme/components/template/VerticalMenuContent/VerticalMenuContent.js +59 -59
  62. package/dist/@ecme/components/template/VerticalMenuContent/VerticalMenuContent.js.map +1 -1
  63. package/dist/@ecme/components/template/VerticalMenuContent/VerticalSingleMenuItem.js +34 -34
  64. package/dist/@ecme/components/template/VerticalMenuContent/VerticalSingleMenuItem.js.map +1 -1
  65. package/dist/@ecme/components/ui/Alert/Alert.js +29 -29
  66. package/dist/@ecme/components/ui/Alert/Alert.js.map +1 -1
  67. package/dist/@ecme/components/ui/Avatar/AvatarGroup.js +30 -30
  68. package/dist/@ecme/components/ui/Avatar/AvatarGroup.js.map +1 -1
  69. package/dist/@ecme/components/ui/Button/Button.js +66 -67
  70. package/dist/@ecme/components/ui/Button/Button.js.map +1 -1
  71. package/dist/@ecme/components/ui/Card/Card.js +39 -40
  72. package/dist/@ecme/components/ui/Card/Card.js.map +1 -1
  73. package/dist/@ecme/components/ui/Checkbox/Checkbox.js +42 -42
  74. package/dist/@ecme/components/ui/Checkbox/Checkbox.js.map +1 -1
  75. package/dist/@ecme/components/ui/Checkbox/Group.js +27 -27
  76. package/dist/@ecme/components/ui/Checkbox/Group.js.map +1 -1
  77. package/dist/@ecme/components/ui/DatePicker/BasePicker.js +67 -67
  78. package/dist/@ecme/components/ui/DatePicker/BasePicker.js.map +1 -1
  79. package/dist/@ecme/components/ui/DatePicker/Calendar.js +18 -18
  80. package/dist/@ecme/components/ui/DatePicker/Calendar.js.map +1 -1
  81. package/dist/@ecme/components/ui/DatePicker/CalendarBase.js +77 -78
  82. package/dist/@ecme/components/ui/DatePicker/CalendarBase.js.map +1 -1
  83. package/dist/@ecme/components/ui/DatePicker/DatePicker.js +67 -71
  84. package/dist/@ecme/components/ui/DatePicker/DatePicker.js.map +1 -1
  85. package/dist/@ecme/components/ui/DatePicker/DatePickerRange.js +94 -98
  86. package/dist/@ecme/components/ui/DatePicker/DatePickerRange.js.map +1 -1
  87. package/dist/@ecme/components/ui/DatePicker/DateTimepicker.js +51 -58
  88. package/dist/@ecme/components/ui/DatePicker/DateTimepicker.js.map +1 -1
  89. package/dist/@ecme/components/ui/DatePicker/tables/DateTable.js +67 -67
  90. package/dist/@ecme/components/ui/DatePicker/tables/DateTable.js.map +1 -1
  91. package/dist/@ecme/components/ui/DatePicker/tables/components/Day.js +12 -12
  92. package/dist/@ecme/components/ui/DatePicker/tables/components/Day.js.map +1 -1
  93. package/dist/@ecme/components/ui/Dialog/Dialog.js +25 -25
  94. package/dist/@ecme/components/ui/Dialog/Dialog.js.map +1 -1
  95. package/dist/@ecme/components/ui/Drawer/Drawer.js +32 -32
  96. package/dist/@ecme/components/ui/Drawer/Drawer.js.map +1 -1
  97. package/dist/@ecme/components/ui/Dropdown/DropdownItem.js +58 -58
  98. package/dist/@ecme/components/ui/Dropdown/DropdownItem.js.map +1 -1
  99. package/dist/@ecme/components/ui/Dropdown/DropdownMenu.js +99 -100
  100. package/dist/@ecme/components/ui/Dropdown/DropdownMenu.js.map +1 -1
  101. package/dist/@ecme/components/ui/Dropdown/DropdownSubItem.js +26 -26
  102. package/dist/@ecme/components/ui/Dropdown/DropdownSubItem.js.map +1 -1
  103. package/dist/@ecme/components/ui/Form/FormContainer.js +17 -17
  104. package/dist/@ecme/components/ui/Form/FormContainer.js.map +1 -1
  105. package/dist/@ecme/components/ui/Form/FormItem.js +38 -38
  106. package/dist/@ecme/components/ui/Form/FormItem.js.map +1 -1
  107. package/dist/@ecme/components/ui/Input/Input.js +50 -52
  108. package/dist/@ecme/components/ui/Input/Input.js.map +1 -1
  109. package/dist/@ecme/components/ui/InputGroup/Addon.js +12 -13
  110. package/dist/@ecme/components/ui/InputGroup/Addon.js.map +1 -1
  111. package/dist/@ecme/components/ui/InputGroup/InputGroup.js +10 -11
  112. package/dist/@ecme/components/ui/InputGroup/InputGroup.js.map +1 -1
  113. package/dist/@ecme/components/ui/Notification/Notification.js +19 -19
  114. package/dist/@ecme/components/ui/Notification/Notification.js.map +1 -1
  115. package/dist/@ecme/components/ui/Pagination/Pagination.js +45 -45
  116. package/dist/@ecme/components/ui/Pagination/Pagination.js.map +1 -1
  117. package/dist/@ecme/components/ui/Radio/Group.js +28 -28
  118. package/dist/@ecme/components/ui/Radio/Group.js.map +1 -1
  119. package/dist/@ecme/components/ui/Radio/Radio.js +42 -42
  120. package/dist/@ecme/components/ui/Radio/Radio.js.map +1 -1
  121. package/dist/@ecme/components/ui/Segment/SegmentItem.js +53 -53
  122. package/dist/@ecme/components/ui/Segment/SegmentItem.js.map +1 -1
  123. package/dist/@ecme/components/ui/Select/Select.js +40 -41
  124. package/dist/@ecme/components/ui/Select/Select.js.map +1 -1
  125. package/dist/@ecme/components/ui/Steps/StepItem.js +33 -33
  126. package/dist/@ecme/components/ui/Steps/StepItem.js.map +1 -1
  127. package/dist/@ecme/components/ui/Switcher/Switcher.js +24 -24
  128. package/dist/@ecme/components/ui/Switcher/Switcher.js.map +1 -1
  129. package/dist/@ecme/components/ui/Tabs/TabNav.js +22 -22
  130. package/dist/@ecme/components/ui/Tabs/TabNav.js.map +1 -1
  131. package/dist/@ecme/components/ui/TimeInput/AmPmInput.js +25 -27
  132. package/dist/@ecme/components/ui/TimeInput/AmPmInput.js.map +1 -1
  133. package/dist/@ecme/components/ui/TimeInput/TimeInput.js +130 -135
  134. package/dist/@ecme/components/ui/TimeInput/TimeInput.js.map +1 -1
  135. package/dist/@ecme/components/ui/TimeInput/TimeInputField.js +22 -24
  136. package/dist/@ecme/components/ui/TimeInput/TimeInputField.js.map +1 -1
  137. package/dist/@ecme/components/ui/TimeInput/TimeInputRange.js +65 -68
  138. package/dist/@ecme/components/ui/TimeInput/TimeInputRange.js.map +1 -1
  139. package/dist/@ecme/components/ui/TimeInput/utils/createAmPmHandler.js +11 -12
  140. package/dist/@ecme/components/ui/TimeInput/utils/createAmPmHandler.js.map +1 -1
  141. package/dist/@ecme/components/ui/TimeInput/utils/createTimeHandler.js +19 -20
  142. package/dist/@ecme/components/ui/TimeInput/utils/createTimeHandler.js.map +1 -1
  143. package/dist/@ecme/components/ui/Upload/Upload.js +67 -68
  144. package/dist/@ecme/components/ui/Upload/Upload.js.map +1 -1
  145. package/dist/@ecme/components/ui/hooks/useCallbackRef.js +7 -10
  146. package/dist/@ecme/components/ui/hooks/useCallbackRef.js.map +1 -1
  147. package/dist/@ecme/components/ui/hooks/useRootClose.js +32 -32
  148. package/dist/@ecme/components/ui/hooks/useRootClose.js.map +1 -1
  149. package/dist/@ecme/components/ui/hooks/useTimeout.js +12 -13
  150. package/dist/@ecme/components/ui/hooks/useTimeout.js.map +1 -1
  151. package/dist/@ecme/components/ui/toast/ToastWrapper.js +58 -61
  152. package/dist/@ecme/components/ui/toast/ToastWrapper.js.map +1 -1
  153. package/dist/@ecme/components/ui/toast/toast.js +16 -19
  154. package/dist/@ecme/components/ui/toast/toast.js.map +1 -1
  155. package/dist/@ecme/components/view/Activity/ActivityEvent.js +63 -67
  156. package/dist/@ecme/components/view/Activity/ActivityEvent.js.map +1 -1
  157. package/dist/@ecme/components/view/ChatBox/components/Attachment.js +8 -9
  158. package/dist/@ecme/components/view/ChatBox/components/Attachment.js.map +1 -1
  159. package/dist/@ecme/components/view/ChatBox/components/ChatInput.js +37 -39
  160. package/dist/@ecme/components/view/ChatBox/components/ChatInput.js.map +1 -1
  161. package/dist/@ecme/components/view/ChatBox/components/Message.js +10 -10
  162. package/dist/@ecme/components/view/ChatBox/components/Message.js.map +1 -1
  163. package/dist/@ecme/components/view/CreditCardDialog/CreditCardDialog.js +36 -37
  164. package/dist/@ecme/components/view/CreditCardDialog/CreditCardDialog.js.map +1 -1
  165. package/dist/@ecme/components/view/TaskItem/TaskItem.js +33 -33
  166. package/dist/@ecme/components/view/TaskItem/TaskItem.js.map +1 -1
  167. package/dist/@ecme/mock/fakeApi/chatFakeApi.js +16 -18
  168. package/dist/@ecme/mock/fakeApi/chatFakeApi.js.map +1 -1
  169. package/dist/@ecme/mock/fakeApi/customersFakeApi.js +10 -11
  170. package/dist/@ecme/mock/fakeApi/customersFakeApi.js.map +1 -1
  171. package/dist/@ecme/mock/fakeApi/helpCenterFakeApi.js +10 -11
  172. package/dist/@ecme/mock/fakeApi/helpCenterFakeApi.js.map +1 -1
  173. package/dist/@ecme/mock/fakeApi/mailFakeApi.js +9 -10
  174. package/dist/@ecme/mock/fakeApi/mailFakeApi.js.map +1 -1
  175. package/dist/@ecme/mock/fakeApi/ordersFakeApi.js +9 -10
  176. package/dist/@ecme/mock/fakeApi/ordersFakeApi.js.map +1 -1
  177. package/dist/@ecme/mock/fakeApi/productsFakeApi.js +7 -8
  178. package/dist/@ecme/mock/fakeApi/productsFakeApi.js.map +1 -1
  179. package/dist/@ecme/mock/fakeApi/projectsFakeApi.js +10 -11
  180. package/dist/@ecme/mock/fakeApi/projectsFakeApi.js.map +1 -1
  181. package/dist/@ecme/utils/hooks/useInfiniteScroll.js +11 -11
  182. package/dist/@ecme/utils/hooks/useInfiniteScroll.js.map +1 -1
  183. package/dist/@ecme/utils/hooks/useMenuActive.js +11 -12
  184. package/dist/@ecme/utils/hooks/useMenuActive.js.map +1 -1
  185. package/dist/@ecme/views/auth/ForgotPassword/components/ForgotPasswordForm.js +36 -37
  186. package/dist/@ecme/views/auth/ForgotPassword/components/ForgotPasswordForm.js.map +1 -1
  187. package/dist/@ecme/views/auth/OtpVerification/OtpVerification.js +14 -14
  188. package/dist/@ecme/views/auth/OtpVerification/OtpVerification.js.map +1 -1
  189. package/dist/@ecme/views/auth/OtpVerification/components/OtpVerificationForm.js +41 -42
  190. package/dist/@ecme/views/auth/OtpVerification/components/OtpVerificationForm.js.map +1 -1
  191. package/dist/@ecme/views/auth/ResetPassword/components/ResetPasswordForm.js +59 -60
  192. package/dist/@ecme/views/auth/ResetPassword/components/ResetPasswordForm.js.map +1 -1
  193. package/dist/@ecme/views/auth/SignIn/components/OauthSignIn.js +27 -27
  194. package/dist/@ecme/views/auth/SignIn/components/OauthSignIn.js.map +1 -1
  195. package/dist/@ecme/views/auth/SignIn/components/SignInForm.js +57 -58
  196. package/dist/@ecme/views/auth/SignIn/components/SignInForm.js.map +1 -1
  197. package/dist/@ecme/views/auth/SignUp/components/SignUpForm.js +37 -38
  198. package/dist/@ecme/views/auth/SignUp/components/SignUpForm.js.map +1 -1
  199. package/dist/@ecme/views/concepts/accounts/Pricing/components/PaymentDialog.js +44 -45
  200. package/dist/@ecme/views/concepts/accounts/Pricing/components/PaymentDialog.js.map +1 -1
  201. package/dist/@ecme/views/concepts/accounts/Pricing/components/Plans.js +5 -5
  202. package/dist/@ecme/views/concepts/accounts/Pricing/components/Plans.js.map +1 -1
  203. package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsAccessDialog.js +34 -35
  204. package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsAccessDialog.js.map +1 -1
  205. package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsUserAction.js +26 -26
  206. package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsUserAction.js.map +1 -1
  207. package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsUserTable.js +28 -29
  208. package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsUserTable.js.map +1 -1
  209. package/dist/@ecme/views/concepts/accounts/RolesPermissions/hooks/useRolePermissonsUsers.js +8 -8
  210. package/dist/@ecme/views/concepts/accounts/RolesPermissions/hooks/useRolePermissonsUsers.js.map +1 -1
  211. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingMobileMenu.js +10 -11
  212. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingMobileMenu.js.map +1 -1
  213. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsBilling.js +48 -49
  214. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsBilling.js.map +1 -1
  215. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsMenu.js +14 -14
  216. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsMenu.js.map +1 -1
  217. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsProfile.js +102 -103
  218. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsProfile.js.map +1 -1
  219. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsSecurity.js +34 -35
  220. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsSecurity.js.map +1 -1
  221. package/dist/@ecme/views/concepts/ai/Chat/components/ChatCustomAction.js +16 -16
  222. package/dist/@ecme/views/concepts/ai/Chat/components/ChatCustomAction.js.map +1 -1
  223. package/dist/@ecme/views/concepts/ai/Chat/components/ChatCustomContent.js +76 -78
  224. package/dist/@ecme/views/concepts/ai/Chat/components/ChatCustomContent.js.map +1 -1
  225. package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistory.js +23 -23
  226. package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistory.js.map +1 -1
  227. package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistoryItem.js +48 -49
  228. package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistoryItem.js.map +1 -1
  229. package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistoryRenameDialog.js +34 -35
  230. package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistoryRenameDialog.js.map +1 -1
  231. package/dist/@ecme/views/concepts/ai/Chat/components/ChatMobileNav.js +11 -14
  232. package/dist/@ecme/views/concepts/ai/Chat/components/ChatMobileNav.js.map +1 -1
  233. package/dist/@ecme/views/concepts/ai/Chat/components/ChatSideNav.js +19 -19
  234. package/dist/@ecme/views/concepts/ai/Chat/components/ChatSideNav.js.map +1 -1
  235. package/dist/@ecme/views/concepts/ai/Chat/components/ChatView.js +22 -26
  236. package/dist/@ecme/views/concepts/ai/Chat/components/ChatView.js.map +1 -1
  237. package/dist/@ecme/views/concepts/ai/Chat/store/generativeChatStore.js +18 -24
  238. package/dist/@ecme/views/concepts/ai/Chat/store/generativeChatStore.js.map +1 -1
  239. package/dist/@ecme/views/concepts/ai/Image/components/ConfigDropdown.js +22 -22
  240. package/dist/@ecme/views/concepts/ai/Image/components/ConfigDropdown.js.map +1 -1
  241. package/dist/@ecme/views/concepts/ai/Image/components/GeneratorPrompt.js +31 -32
  242. package/dist/@ecme/views/concepts/ai/Image/components/GeneratorPrompt.js.map +1 -1
  243. package/dist/@ecme/views/concepts/ai/Image/components/ImageDialog.js +31 -32
  244. package/dist/@ecme/views/concepts/ai/Image/components/ImageDialog.js.map +1 -1
  245. package/dist/@ecme/views/concepts/calendar/Calendar/Calendar.js +38 -39
  246. package/dist/@ecme/views/concepts/calendar/Calendar/Calendar.js.map +1 -1
  247. package/dist/@ecme/views/concepts/calendar/Calendar/components/EventDialog.js +68 -69
  248. package/dist/@ecme/views/concepts/calendar/Calendar/components/EventDialog.js.map +1 -1
  249. package/dist/@ecme/views/concepts/chat/Chat/components/ChatBody.js +63 -66
  250. package/dist/@ecme/views/concepts/chat/Chat/components/ChatBody.js.map +1 -1
  251. package/dist/@ecme/views/concepts/chat/Chat/components/ChatList.js +21 -22
  252. package/dist/@ecme/views/concepts/chat/Chat/components/ChatList.js.map +1 -1
  253. package/dist/@ecme/views/concepts/chat/Chat/components/ContactInfoDrawer.js +84 -85
  254. package/dist/@ecme/views/concepts/chat/Chat/components/ContactInfoDrawer.js.map +1 -1
  255. package/dist/@ecme/views/concepts/customers/CustomerDetails/ActivitySection.js +19 -19
  256. package/dist/@ecme/views/concepts/customers/CustomerDetails/ActivitySection.js.map +1 -1
  257. package/dist/@ecme/views/concepts/customers/CustomerDetails/BillingSection.js +51 -58
  258. package/dist/@ecme/views/concepts/customers/CustomerDetails/BillingSection.js.map +1 -1
  259. package/dist/@ecme/views/concepts/customers/CustomerDetails/ProfileSection.js +76 -89
  260. package/dist/@ecme/views/concepts/customers/CustomerDetails/ProfileSection.js.map +1 -1
  261. package/dist/@ecme/views/concepts/customers/CustomerForm/AddressSection.js +104 -107
  262. package/dist/@ecme/views/concepts/customers/CustomerForm/AddressSection.js.map +1 -1
  263. package/dist/@ecme/views/concepts/customers/CustomerForm/CustomerForm.js +22 -22
  264. package/dist/@ecme/views/concepts/customers/CustomerForm/CustomerForm.js.map +1 -1
  265. package/dist/@ecme/views/concepts/customers/CustomerForm/OverviewSection.js +38 -39
  266. package/dist/@ecme/views/concepts/customers/CustomerForm/OverviewSection.js.map +1 -1
  267. package/dist/@ecme/views/concepts/customers/CustomerList/hooks/useCustomerList.js +20 -20
  268. package/dist/@ecme/views/concepts/customers/CustomerList/hooks/useCustomerList.js.map +1 -1
  269. package/dist/@ecme/views/concepts/files/FileManager/components/FileItemDropdown.js +32 -33
  270. package/dist/@ecme/views/concepts/files/FileManager/components/FileItemDropdown.js.map +1 -1
  271. package/dist/@ecme/views/concepts/help-center/EditArticle/components/EditArticleHeader.js +17 -18
  272. package/dist/@ecme/views/concepts/help-center/EditArticle/components/EditArticleHeader.js.map +1 -1
  273. package/dist/@ecme/views/concepts/help-center/ManageArticle/hooks/useManageArticle.js +5 -5
  274. package/dist/@ecme/views/concepts/help-center/ManageArticle/hooks/useManageArticle.js.map +1 -1
  275. package/dist/@ecme/views/concepts/help-center/SupportHub/components/TopSection.js +12 -13
  276. package/dist/@ecme/views/concepts/help-center/SupportHub/components/TopSection.js.map +1 -1
  277. package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailAction.js +28 -29
  278. package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailAction.js.map +1 -1
  279. package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailContent.js +63 -67
  280. package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailContent.js.map +1 -1
  281. package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailTitle.js +8 -8
  282. package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailTitle.js.map +1 -1
  283. package/dist/@ecme/views/concepts/mail/Mail/components/MailEditor.js +36 -37
  284. package/dist/@ecme/views/concepts/mail/Mail/components/MailEditor.js.map +1 -1
  285. package/dist/@ecme/views/concepts/mail/Mail/components/MailList.js +134 -137
  286. package/dist/@ecme/views/concepts/mail/Mail/components/MailList.js.map +1 -1
  287. package/dist/@ecme/views/concepts/orders/OrderDetails/components/OrderDetailProducts.js +17 -17
  288. package/dist/@ecme/views/concepts/orders/OrderDetails/components/OrderDetailProducts.js.map +1 -1
  289. package/dist/@ecme/views/concepts/orders/OrderEdit/OrderEdit.js +35 -35
  290. package/dist/@ecme/views/concepts/orders/OrderEdit/OrderEdit.js.map +1 -1
  291. package/dist/@ecme/views/concepts/orders/OrderForm/OrderForm.js +38 -38
  292. package/dist/@ecme/views/concepts/orders/OrderForm/OrderForm.js.map +1 -1
  293. package/dist/@ecme/views/concepts/orders/OrderForm/components/BillingAddressSection.js +108 -111
  294. package/dist/@ecme/views/concepts/orders/OrderForm/components/BillingAddressSection.js.map +1 -1
  295. package/dist/@ecme/views/concepts/orders/OrderForm/components/CustomerDetailSection.js +44 -45
  296. package/dist/@ecme/views/concepts/orders/OrderForm/components/CustomerDetailSection.js.map +1 -1
  297. package/dist/@ecme/views/concepts/orders/OrderForm/components/PaymentMethodSection.js +211 -214
  298. package/dist/@ecme/views/concepts/orders/OrderForm/components/PaymentMethodSection.js.map +1 -1
  299. package/dist/@ecme/views/concepts/orders/OrderList/components/OrderListTableFilter.js +17 -17
  300. package/dist/@ecme/views/concepts/orders/OrderList/components/OrderListTableFilter.js.map +1 -1
  301. package/dist/@ecme/views/concepts/orders/OrderList/hooks/useOrderlist.js +15 -15
  302. package/dist/@ecme/views/concepts/orders/OrderList/hooks/useOrderlist.js.map +1 -1
  303. package/dist/@ecme/views/concepts/products/ProductForm/ProductForm.js +4 -4
  304. package/dist/@ecme/views/concepts/products/ProductForm/ProductForm.js.map +1 -1
  305. package/dist/@ecme/views/concepts/products/ProductForm/components/AttributeSection.js +97 -100
  306. package/dist/@ecme/views/concepts/products/ProductForm/components/AttributeSection.js.map +1 -1
  307. package/dist/@ecme/views/concepts/products/ProductForm/components/GeneralSection.js +68 -71
  308. package/dist/@ecme/views/concepts/products/ProductForm/components/GeneralSection.js.map +1 -1
  309. package/dist/@ecme/views/concepts/products/ProductForm/components/ImageSection.js +85 -86
  310. package/dist/@ecme/views/concepts/products/ProductForm/components/ImageSection.js.map +1 -1
  311. package/dist/@ecme/views/concepts/products/ProductForm/components/PricingSection.js +121 -124
  312. package/dist/@ecme/views/concepts/products/ProductForm/components/PricingSection.js.map +1 -1
  313. package/dist/@ecme/views/concepts/products/ProductList/components/ProductListSearch.js +11 -11
  314. package/dist/@ecme/views/concepts/products/ProductList/components/ProductListSearch.js.map +1 -1
  315. package/dist/@ecme/views/concepts/products/ProductList/components/ProductTableFilter.js +17 -17
  316. package/dist/@ecme/views/concepts/products/ProductList/components/ProductTableFilter.js.map +1 -1
  317. package/dist/@ecme/views/concepts/products/ProductList/hooks/useProductList.js +17 -17
  318. package/dist/@ecme/views/concepts/products/ProductList/hooks/useProductList.js.map +1 -1
  319. package/dist/@ecme/views/concepts/projects/Issue/components/IssueBody.js +101 -105
  320. package/dist/@ecme/views/concepts/projects/Issue/components/IssueBody.js.map +1 -1
  321. package/dist/@ecme/views/concepts/projects/Issue/components/IssueFooter.js +57 -58
  322. package/dist/@ecme/views/concepts/projects/Issue/components/IssueFooter.js.map +1 -1
  323. package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsHeader.js +51 -52
  324. package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsHeader.js.map +1 -1
  325. package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsOverview.js +22 -23
  326. package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsOverview.js.map +1 -1
  327. package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsSetting.js +45 -46
  328. package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsSetting.js.map +1 -1
  329. package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsTask.js +62 -65
  330. package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsTask.js.map +1 -1
  331. package/dist/@ecme/views/concepts/projects/ProjectList/components/NewProjectForm.js +52 -53
  332. package/dist/@ecme/views/concepts/projects/ProjectList/components/NewProjectForm.js.map +1 -1
  333. package/dist/@ecme/views/concepts/projects/ProjectList/components/NewTaskField.js +23 -25
  334. package/dist/@ecme/views/concepts/projects/ProjectList/components/NewTaskField.js.map +1 -1
  335. package/dist/@ecme/views/concepts/projects/ProjectList/components/ProjectListContent.js +15 -15
  336. package/dist/@ecme/views/concepts/projects/ProjectList/components/ProjectListContent.js.map +1 -1
  337. package/dist/@ecme/views/concepts/projects/ProjectList/components/ProjectListHeader.js +16 -16
  338. package/dist/@ecme/views/concepts/projects/ProjectList/components/ProjectListHeader.js.map +1 -1
  339. package/dist/@ecme/views/concepts/projects/ProjectList/hooks/useProjectList.js +9 -9
  340. package/dist/@ecme/views/concepts/projects/ProjectList/hooks/useProjectList.js.map +1 -1
  341. package/dist/@ecme/views/concepts/projects/ScrumBoard/components/AddNewColumnContent.js +40 -41
  342. package/dist/@ecme/views/concepts/projects/ScrumBoard/components/AddNewColumnContent.js.map +1 -1
  343. package/dist/@ecme/views/concepts/projects/ScrumBoard/components/AddNewTicketContent.js +33 -34
  344. package/dist/@ecme/views/concepts/projects/ScrumBoard/components/AddNewTicketContent.js.map +1 -1
  345. package/dist/@ecme/views/concepts/projects/ScrumBoard/components/BoardCardList.js +33 -33
  346. package/dist/@ecme/views/concepts/projects/ScrumBoard/components/BoardCardList.js.map +1 -1
  347. package/dist/@ecme/views/concepts/projects/ScrumBoard/components/TicketContent.js +203 -210
  348. package/dist/@ecme/views/concepts/projects/ScrumBoard/components/TicketContent.js.map +1 -1
  349. package/dist/@ecme/views/concepts/projects/Tasks/components/AddTask.js +53 -56
  350. package/dist/@ecme/views/concepts/projects/Tasks/components/AddTask.js.map +1 -1
  351. package/dist/@ecme/views/concepts/projects/Tasks/components/TaskList.js +80 -83
  352. package/dist/@ecme/views/concepts/projects/Tasks/components/TaskList.js.map +1 -1
  353. package/dist/@ecme/views/dashboards/AnalyticDashboard/components/AnalyticHeader.js +6 -6
  354. package/dist/@ecme/views/dashboards/AnalyticDashboard/components/AnalyticHeader.js.map +1 -1
  355. package/dist/@ecme/views/dashboards/EcommerceDashboard/components/Overview.js +21 -21
  356. package/dist/@ecme/views/dashboards/EcommerceDashboard/components/Overview.js.map +1 -1
  357. package/dist/@ecme/views/dashboards/EcommerceDashboard/components/RevenueByChannel.js +27 -27
  358. package/dist/@ecme/views/dashboards/EcommerceDashboard/components/RevenueByChannel.js.map +1 -1
  359. package/dist/@ecme/views/dashboards/EcommerceDashboard/components/SalesTarget.js +27 -27
  360. package/dist/@ecme/views/dashboards/EcommerceDashboard/components/SalesTarget.js.map +1 -1
  361. package/dist/@ecme/views/dashboards/MarketingDashboard/components/CreateCampaign.js +59 -60
  362. package/dist/@ecme/views/dashboards/MarketingDashboard/components/CreateCampaign.js.map +1 -1
  363. package/dist/@ecme/views/dashboards/ProjectDashboard/components/CreateEventDialog.js +76 -77
  364. package/dist/@ecme/views/dashboards/ProjectDashboard/components/CreateEventDialog.js.map +1 -1
  365. package/dist/@ecme/views/dashboards/ProjectDashboard/components/UpcomingSchedule.js +30 -30
  366. package/dist/@ecme/views/dashboards/ProjectDashboard/components/UpcomingSchedule.js.map +1 -1
  367. package/dist/@ecme/views/guide/SharedComponentsDoc/components/CustomFormatInputDoc/WithForm.js +21 -22
  368. package/dist/@ecme/views/guide/SharedComponentsDoc/components/CustomFormatInputDoc/WithForm.js.map +1 -1
  369. package/dist/@ecme/views/guide/SharedComponentsDoc/components/ImageGalleryDoc/Example.js +15 -15
  370. package/dist/@ecme/views/guide/SharedComponentsDoc/components/ImageGalleryDoc/Example.js.map +1 -1
  371. package/dist/@ecme/views/guide/SharedComponentsDoc/components/NumericInputDoc/WithForm.js +20 -21
  372. package/dist/@ecme/views/guide/SharedComponentsDoc/components/NumericInputDoc/WithForm.js.map +1 -1
  373. package/dist/@ecme/views/guide/SharedComponentsDoc/components/PatternInputDoc/WithForm.js +20 -21
  374. package/dist/@ecme/views/guide/SharedComponentsDoc/components/PatternInputDoc/WithForm.js.map +1 -1
  375. package/dist/@ecme/views/guide/SharedComponentsDoc/components/RichTextEditorDoc/WithForm.js +20 -21
  376. package/dist/@ecme/views/guide/SharedComponentsDoc/components/RichTextEditorDoc/WithForm.js.map +1 -1
  377. package/dist/@ecme/views/ui-components/data-display/Table/Editable.js +17 -18
  378. package/dist/@ecme/views/ui-components/data-display/Table/Editable.js.map +1 -1
  379. package/dist/@ecme/views/ui-components/data-display/Table/PaginationTable.js +12 -12
  380. package/dist/@ecme/views/ui-components/data-display/Table/PaginationTable.js.map +1 -1
  381. package/dist/@ecme/views/ui-components/forms/FormControl/AsyncValidation.js +28 -29
  382. package/dist/@ecme/views/ui-components/forms/FormControl/AsyncValidation.js.map +1 -1
  383. package/dist/@ecme/views/ui-components/forms/FormControl/Basic.js +21 -22
  384. package/dist/@ecme/views/ui-components/forms/FormControl/Basic.js.map +1 -1
  385. package/dist/@ecme/views/ui-components/forms/FormControl/DependentValidation.js +24 -25
  386. package/dist/@ecme/views/ui-components/forms/FormControl/DependentValidation.js.map +1 -1
  387. package/dist/@ecme/views/ui-components/forms/FormControl/DynamicForm.js +75 -79
  388. package/dist/@ecme/views/ui-components/forms/FormControl/DynamicForm.js.map +1 -1
  389. package/dist/@ecme/views/ui-components/forms/FormControl/FieldValidation.js +19 -20
  390. package/dist/@ecme/views/ui-components/forms/FormControl/FieldValidation.js.map +1 -1
  391. package/dist/@ecme/views/ui-components/forms/FormControl/MixedFormControl.js +90 -91
  392. package/dist/@ecme/views/ui-components/forms/FormControl/MixedFormControl.js.map +1 -1
  393. package/dist/@ecme/views/ui-components/forms/FormControl/SchemaValidation.js +22 -23
  394. package/dist/@ecme/views/ui-components/forms/FormControl/SchemaValidation.js.map +1 -1
  395. package/dist/@types/base/configs/api.config.d.ts +3 -22
  396. package/dist/@types/base/configs/api.config.d.ts.map +1 -1
  397. package/dist/base/assets/styles/init.css +1 -1
  398. package/dist/base/components/forms/ArraysForms/GenericArrayNumberFormSection.js +24 -25
  399. package/dist/base/components/forms/ArraysForms/GenericArrayNumberFormSection.js.map +1 -1
  400. package/dist/base/components/forms/ArraysForms/GenericArrayStringFormSection.js +23 -24
  401. package/dist/base/components/forms/ArraysForms/GenericArrayStringFormSection.js.map +1 -1
  402. package/dist/base/components/forms/GenericFomrsSetValue/GenericNumberFormSectionPrice.js +30 -31
  403. package/dist/base/components/forms/GenericFomrsSetValue/GenericNumberFormSectionPrice.js.map +1 -1
  404. package/dist/base/components/forms/GenericFomrsSetValue/GenericStringFormSection.js +25 -26
  405. package/dist/base/components/forms/GenericFomrsSetValue/GenericStringFormSection.js.map +1 -1
  406. package/dist/base/components/forms/GenericForms/GenericArrayFormSection.js +49 -50
  407. package/dist/base/components/forms/GenericForms/GenericArrayFormSection.js.map +1 -1
  408. package/dist/base/components/forms/GenericForms/GenericNumberFormSection.js +27 -28
  409. package/dist/base/components/forms/GenericForms/GenericNumberFormSection.js.map +1 -1
  410. package/dist/base/components/forms/GenericForms/GenericStringFormSection.js +23 -24
  411. package/dist/base/components/forms/GenericForms/GenericStringFormSection.js.map +1 -1
  412. package/dist/base/components/forms/GenericForms/GenericUploadFormSection.js +27 -28
  413. package/dist/base/components/forms/GenericForms/GenericUploadFormSection.js.map +1 -1
  414. package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionPercentage.js +29 -30
  415. package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionPercentage.js.map +1 -1
  416. package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionPrice.js +27 -28
  417. package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionPrice.js.map +1 -1
  418. package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionWeight.js +27 -28
  419. package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionWeight.js.map +1 -1
  420. package/dist/base/components/shared/TransferirProcessoDialog.js +10 -10
  421. package/dist/base/components/shared/TransferirProcessoDialog.js.map +1 -1
  422. package/dist/base/components/tools/NavFilter.js +68 -75
  423. package/dist/base/components/tools/NavFilter.js.map +1 -1
  424. package/dist/base/configs/api.config.js +15 -14
  425. package/dist/base/configs/api.config.js.map +1 -1
  426. package/dist/base/hooks/adm/roles/useRolesList.js +11 -11
  427. package/dist/base/hooks/adm/roles/useRolesList.js.map +1 -1
  428. package/dist/base/hooks/adm/users/useUsersList.js +10 -10
  429. package/dist/base/hooks/adm/users/useUsersList.js.map +1 -1
  430. package/dist/base/hooks/dm/businessPartner/useBusinessPartnerClienteList.js +5 -5
  431. package/dist/base/hooks/dm/businessPartner/useBusinessPartnerClienteList.js.map +1 -1
  432. package/dist/base/hooks/dm/businessPartner/useBusinessPartnerFornecedorList.js +7 -7
  433. package/dist/base/hooks/dm/businessPartner/useBusinessPartnerFornecedorList.js.map +1 -1
  434. package/dist/base/hooks/dm/businessPartner/useBusinessPartnerList.js +10 -10
  435. package/dist/base/hooks/dm/businessPartner/useBusinessPartnerList.js.map +1 -1
  436. package/dist/base/hooks/dm/canalDistribuicao/useCanalDistribuicaoByCodigoList.js +8 -8
  437. package/dist/base/hooks/dm/canalDistribuicao/useCanalDistribuicaoByCodigoList.js.map +1 -1
  438. package/dist/base/hooks/dm/canalDistribuicao/useCanalDistribuicaoList.js +8 -8
  439. package/dist/base/hooks/dm/canalDistribuicao/useCanalDistribuicaoList.js.map +1 -1
  440. package/dist/base/hooks/dm/centro/useCentroByCodigoList.js +13 -13
  441. package/dist/base/hooks/dm/centro/useCentroByCodigoList.js.map +1 -1
  442. package/dist/base/hooks/dm/centro/useCentroList.js +6 -6
  443. package/dist/base/hooks/dm/centro/useCentroList.js.map +1 -1
  444. package/dist/base/hooks/dm/condicaoPagamento/useCondicaoPagamentoList.js +4 -4
  445. package/dist/base/hooks/dm/condicaoPagamento/useCondicaoPagamentoList.js.map +1 -1
  446. package/dist/base/hooks/dm/deposito/useDepositoByCodigoList.js +9 -9
  447. package/dist/base/hooks/dm/deposito/useDepositoByCodigoList.js.map +1 -1
  448. package/dist/base/hooks/dm/deposito/useDepositoList.js +5 -5
  449. package/dist/base/hooks/dm/deposito/useDepositoList.js.map +1 -1
  450. package/dist/base/hooks/dm/deposito/useDepositosByCodigoCentroList.js +13 -13
  451. package/dist/base/hooks/dm/deposito/useDepositosByCodigoCentroList.js.map +1 -1
  452. package/dist/base/hooks/dm/equipeVenda/useEquipeVendaByCodigoList.js +8 -8
  453. package/dist/base/hooks/dm/equipeVenda/useEquipeVendaByCodigoList.js.map +1 -1
  454. package/dist/base/hooks/dm/equipeVenda/useEquipeVendaList.js +6 -6
  455. package/dist/base/hooks/dm/equipeVenda/useEquipeVendaList.js.map +1 -1
  456. package/dist/base/hooks/dm/escritorioVenda/useEscritorioVendaByCodigoList.js +10 -10
  457. package/dist/base/hooks/dm/escritorioVenda/useEscritorioVendaByCodigoList.js.map +1 -1
  458. package/dist/base/hooks/dm/escritorioVenda/useEscritorioVendaList.js +7 -7
  459. package/dist/base/hooks/dm/escritorioVenda/useEscritorioVendaList.js.map +1 -1
  460. package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoByCodigoList.js +10 -10
  461. package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoByCodigoList.js.map +1 -1
  462. package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoList.js +1 -1
  463. package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoList.js.map +1 -1
  464. package/dist/base/hooks/dm/grupoVenda/useGrupoVendaByCodigoList.js +11 -11
  465. package/dist/base/hooks/dm/grupoVenda/useGrupoVendaByCodigoList.js.map +1 -1
  466. package/dist/base/hooks/dm/grupoVenda/useGrupoVendaList.js +9 -9
  467. package/dist/base/hooks/dm/grupoVenda/useGrupoVendaList.js.map +1 -1
  468. package/dist/base/hooks/dm/incoterms/useIncotermsList.js +17 -18
  469. package/dist/base/hooks/dm/incoterms/useIncotermsList.js.map +1 -1
  470. package/dist/base/hooks/dm/produto/useProdutoByCodigoList.js +13 -13
  471. package/dist/base/hooks/dm/produto/useProdutoByCodigoList.js.map +1 -1
  472. package/dist/base/hooks/dm/produto/useProdutoByGrupoProdutoList.js +21 -21
  473. package/dist/base/hooks/dm/produto/useProdutoByGrupoProdutoList.js.map +1 -1
  474. package/dist/base/hooks/dm/produto/useProdutoFindList.js +8 -8
  475. package/dist/base/hooks/dm/produto/useProdutoFindList.js.map +1 -1
  476. package/dist/base/hooks/dm/produto/useProdutoFindMonitorList.js +11 -11
  477. package/dist/base/hooks/dm/produto/useProdutoFindMonitorList.js.map +1 -1
  478. package/dist/base/hooks/dm/produto/useProdutoIsPrecificadoRacaoList.js +9 -9
  479. package/dist/base/hooks/dm/produto/useProdutoIsPrecificadoRacaoList.js.map +1 -1
  480. package/dist/base/hooks/dm/setorAtividade/useSetorAtividadeList.js +5 -5
  481. package/dist/base/hooks/dm/setorAtividade/useSetorAtividadeList.js.map +1 -1
  482. package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaByCodigoList.js +9 -9
  483. package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaByCodigoList.js.map +1 -1
  484. package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaList.js +9 -9
  485. package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaList.js.map +1 -1
  486. package/dist/base/hooks/dm/tipoOrdemVenda/useTipoOrdemVendaByCodigoList.js +10 -10
  487. package/dist/base/hooks/dm/tipoOrdemVenda/useTipoOrdemVendaByCodigoList.js.map +1 -1
  488. package/dist/base/hooks/dm/tipoOrdemVenda/useTipoOrdemVendaList.js +9 -9
  489. package/dist/base/hooks/dm/tipoOrdemVenda/useTipoOrdemVendaList.js.map +1 -1
  490. package/dist/base/hooks/useList.js +10 -10
  491. package/dist/base/hooks/useList.js.map +1 -1
  492. package/dist/base/services/modules/transportadora/ControleDescarga/ControleDescargaService.js +15 -15
  493. package/dist/base/services/modules/transportadora/ControleDescarga/ControleDescargaService.js.map +1 -1
  494. package/dist/base/services/modules/transportadora/ControleEmbarque/ControleEmbarqueService.js +7 -7
  495. package/dist/base/services/modules/transportadora/ControleEmbarque/ControleEmbarqueService.js.map +1 -1
  496. package/dist/base/services/modules/transportadora/NaturezaCarga/NaturezaCargaService.js +5 -5
  497. package/dist/base/services/modules/transportadora/NaturezaCarga/NaturezaCargaService.js.map +1 -1
  498. package/dist/base/utils/functions/stringUtils.js +14 -15
  499. package/dist/base/utils/functions/stringUtils.js.map +1 -1
  500. package/lib/base/configs/api.config.ts +9 -7
  501. package/package.json +1 -1
  502. package/tsconfig.json +6 -1
@@ -1,6 +1,6 @@
1
- import { jsx as t, jsxs as f, Fragment as x } from "react/jsx-runtime";
2
- import { useState as h, useEffect as y } from "react";
3
- import { ComposableMap as k, Geographies as C, Geography as M, Marker as b } from "react-simple-maps";
1
+ import { jsx as t, jsxs as f, Fragment as v } from "react/jsx-runtime";
2
+ import { useState as h, useEffect as x } from "react";
3
+ import { ComposableMap as y, Geographies as C, Geography as M, Marker as b } from "react-simple-maps";
4
4
  import j from "../../utils/classNames.js";
5
5
  import { PatternCircles as m } from "@visx/pattern";
6
6
  import { Tooltip as N } from "react-tooltip";
@@ -24,10 +24,10 @@ const u = "/maps/world-countries-sans-antarctica.json", S = (r, e, a = "", i = "
24
24
  marker: l,
25
25
  hoverable: d = !0
26
26
  } = r, [c, g] = h(null);
27
- return y(() => {
27
+ return x(() => {
28
28
  fetch(i ?? u).then((s) => s.json()).then((s) => g(s)).catch((s) => console.error("Erro ao carregar mapa:", s));
29
29
  }, [i]), c ? /* @__PURE__ */ f(
30
- k,
30
+ y,
31
31
  {
32
32
  style: { transform: "translateY(20px)" },
33
33
  "data-tip": "",
@@ -57,7 +57,7 @@ const u = "/maps/world-countries-sans-antarctica.json", S = (r, e, a = "", i = "
57
57
  }
58
58
  ),
59
59
  /* @__PURE__ */ t(C, { geography: c, children: ({ geographies: s }) => s.map((p) => {
60
- const v = p.properties.name;
60
+ const k = p.properties.name;
61
61
  return /* @__PURE__ */ t(
62
62
  M,
63
63
  {
@@ -73,7 +73,7 @@ const u = "/maps/world-countries-sans-antarctica.json", S = (r, e, a = "", i = "
73
73
  onMouseEnter: () => {
74
74
  e(
75
75
  S(
76
- v,
76
+ k,
77
77
  a,
78
78
  o,
79
79
  n
@@ -87,13 +87,13 @@ const u = "/maps/world-countries-sans-antarctica.json", S = (r, e, a = "", i = "
87
87
  p.rsmKey
88
88
  );
89
89
  }) }),
90
- l == null ? void 0 : l(b)
90
+ l?.(b)
91
91
  ]
92
92
  }
93
93
  ) : /* @__PURE__ */ t("div", { children: "Carregando mapa..." });
94
94
  }, w = (r) => {
95
95
  const [e, a] = h("");
96
- return /* @__PURE__ */ f(x, { children: [
96
+ return /* @__PURE__ */ f(v, { children: [
97
97
  /* @__PURE__ */ t($, { ...r, setTooltipContent: a }),
98
98
  /* @__PURE__ */ t(N, { children: e })
99
99
  ] });
@@ -1 +1 @@
1
- {"version":3,"file":"RegionMap.js","sources":["../../../../lib/@ecme/components/shared/RegionMap.tsx"],"sourcesContent":["import { useState, useEffect } from 'react'\nimport {\n ComposableMap,\n Geographies,\n Geography,\n Marker,\n} from 'react-simple-maps'\nimport classNames from '@/utils/classNames'\nimport { PatternCircles } from '@visx/pattern'\nimport { Tooltip as ReactTooltip } from 'react-tooltip'\n\nimport type { Dispatch, ReactNode, SetStateAction } from 'react'\n\ntype MarkerCallback = (markerComponet: typeof Marker) => ReactNode\n\ntype MapDataProp = {\n name: string\n value?: string | number\n color?: string\n}[]\n\ntype RegionMapProps = {\n data: MapDataProp\n mapSource?: string\n valueSuffix?: string\n valuePrefix?: string\n marker?: MarkerCallback\n hoverable?: boolean\n}\n\ntype MapProps = Omit<RegionMapProps, 'valueSuffix' | 'valuePrefix'> & {\n prefix?: string\n suffix?: string\n}\n\ntype MapChartProps = MapProps & {\n setTooltipContent: Dispatch<SetStateAction<string>>\n}\n\nconst defaultMapUrl = '/maps/world-countries-sans-antarctica.json'\n\nconst getRegionValue = (\n name: unknown,\n data: MapDataProp,\n suffix = '',\n prefix = '',\n) => {\n if (data.length > 0 || name) {\n for (let i = 0; i < data.length; i++) {\n const elm = data[i]\n if (name === elm.name) {\n return `${elm.name} - ${prefix ?? ''}${elm.value}${suffix ?? ''}`\n }\n }\n return ''\n }\n return ''\n}\n\nconst MapChart = (props: MapChartProps) => {\n const {\n setTooltipContent,\n data,\n mapSource,\n suffix,\n prefix,\n marker,\n hoverable = true,\n } = props\n\n const [geoData, setGeoData] = useState<any>(null)\n\n useEffect(() => {\n fetch(mapSource ?? defaultMapUrl)\n .then((res) => res.json())\n .then((data) => setGeoData(data))\n .catch((err) => console.error('Erro ao carregar mapa:', err))\n }, [mapSource])\n\n if (!geoData) {\n return <div>Carregando mapa...</div>\n }\n\n return (\n <ComposableMap\n style={{ transform: 'translateY(20px)' }}\n data-tip=\"\"\n height={450}\n projectionConfig={{ scale: 170 }}\n >\n <PatternCircles\n id=\"map-dots\"\n height={6}\n width={6}\n className=\"fill-gray-300 dark:fill-gray-500 \"\n strokeWidth={1}\n background=\"transparent\"\n />\n <PatternCircles\n id=\"map-dots-hover\"\n height={6}\n width={6}\n className=\"fill-gray-400 dark:fill-gray-300 \"\n strokeWidth={1}\n background=\"transparent\"\n />\n <Geographies geography={geoData}>\n {({ geographies }) =>\n geographies.map((geo) => {\n const geoName = geo.properties.name\n return (\n <Geography\n key={geo.rsmKey}\n geography={geo}\n strokeWidth={2}\n className={classNames('stroke-transparent')}\n fill=\"url('#map-dots')\"\n style={\n hoverable\n ? {\n hover: {\n fill: \"url('#map-dots-hover')\",\n },\n }\n : {}\n }\n onMouseEnter={() => {\n setTooltipContent(\n getRegionValue(\n geoName,\n data,\n suffix,\n prefix,\n ),\n )\n }}\n onMouseLeave={() => {\n setTooltipContent('')\n }}\n />\n )\n })\n }\n </Geographies>\n {marker?.(Marker)}\n </ComposableMap>\n )\n}\n\nconst Map = (props: MapProps) => {\n const [content, setContent] = useState('')\n return (\n <>\n <MapChart {...props} setTooltipContent={setContent} />\n <ReactTooltip>{content}</ReactTooltip>\n </>\n )\n}\n\nconst RegionMap = (props: RegionMapProps) => {\n const {\n data = [],\n mapSource = defaultMapUrl,\n valueSuffix,\n valuePrefix,\n marker,\n hoverable,\n } = props\n\n return (\n <Map\n data={data}\n mapSource={mapSource}\n prefix={valuePrefix}\n suffix={valueSuffix}\n marker={marker}\n hoverable={hoverable}\n />\n )\n}\n\nexport default RegionMap\n"],"names":["defaultMapUrl","getRegionValue","name","data","suffix","prefix","i","elm","MapChart","props","setTooltipContent","mapSource","marker","hoverable","geoData","setGeoData","useState","useEffect","res","err","jsxs","ComposableMap","jsx","PatternCircles","Geographies","geographies","geo","geoName","Geography","classNames","Marker","Map","content","setContent","Fragment","ReactTooltip","RegionMap","valueSuffix","valuePrefix"],"mappings":";;;;;;AAuCA,MAAMA,IAAgB,8CAEhBC,IAAiB,CACnBC,GACAC,GACAC,IAAS,IACTC,IAAS,OACR;AACD,MAAIF,EAAK,SAAS,KAAKD,GAAM;AACzB,aAASI,IAAI,GAAGA,IAAIH,EAAK,QAAQG,KAAK;AAClC,YAAMC,IAAMJ,EAAKG,CAAC;AAClB,UAAIJ,MAASK,EAAI;AACb,eAAO,GAAGA,EAAI,IAAI,MAAMF,KAAU,EAAE,GAAGE,EAAI,KAAK,GAAGH,KAAU,EAAE;AAAA,IAEvE;AACA,WAAO;AAAA,EACX;AACA,SAAO;AACX,GAEMI,IAAW,CAACC,MAAyB;AACvC,QAAM;AAAA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import { useState, useEffect } from 'react'\nimport {\n ComposableMap,\n Geographies,\n Geography,\n Marker,\n} from 'react-simple-maps'\nimport classNames from '@/utils/classNames'\nimport { PatternCircles } from '@visx/pattern'\nimport { Tooltip as ReactTooltip } from 'react-tooltip'\n\nimport type { Dispatch, ReactNode, SetStateAction } from 'react'\n\ntype MarkerCallback = (markerComponet: typeof Marker) => ReactNode\n\ntype MapDataProp = {\n name: string\n value?: string | number\n color?: string\n}[]\n\ntype RegionMapProps = {\n data: MapDataProp\n mapSource?: string\n valueSuffix?: string\n valuePrefix?: string\n marker?: MarkerCallback\n hoverable?: boolean\n}\n\ntype MapProps = Omit<RegionMapProps, 'valueSuffix' | 'valuePrefix'> & {\n prefix?: string\n suffix?: string\n}\n\ntype MapChartProps = MapProps & {\n setTooltipContent: Dispatch<SetStateAction<string>>\n}\n\nconst defaultMapUrl = '/maps/world-countries-sans-antarctica.json'\n\nconst getRegionValue = (\n name: unknown,\n data: MapDataProp,\n suffix = '',\n prefix = '',\n) => {\n if (data.length > 0 || name) {\n for (let i = 0; i < data.length; i++) {\n const elm = data[i]\n if (name === elm.name) {\n return `${elm.name} - ${prefix ?? ''}${elm.value}${suffix ?? ''}`\n }\n }\n return ''\n }\n return ''\n}\n\nconst MapChart = (props: MapChartProps) => {\n const {\n setTooltipContent,\n data,\n mapSource,\n suffix,\n prefix,\n marker,\n hoverable = true,\n } = props\n\n const [geoData, setGeoData] = useState<any>(null)\n\n useEffect(() => {\n fetch(mapSource ?? defaultMapUrl)\n .then((res) => res.json())\n .then((data) => setGeoData(data))\n .catch((err) => console.error('Erro ao carregar mapa:', err))\n }, [mapSource])\n\n if (!geoData) {\n return <div>Carregando mapa...</div>\n }\n\n return (\n <ComposableMap\n style={{ transform: 'translateY(20px)' }}\n data-tip=\"\"\n height={450}\n projectionConfig={{ scale: 170 }}\n >\n <PatternCircles\n id=\"map-dots\"\n height={6}\n width={6}\n className=\"fill-gray-300 dark:fill-gray-500 \"\n strokeWidth={1}\n background=\"transparent\"\n />\n <PatternCircles\n id=\"map-dots-hover\"\n height={6}\n width={6}\n className=\"fill-gray-400 dark:fill-gray-300 \"\n strokeWidth={1}\n background=\"transparent\"\n />\n <Geographies geography={geoData}>\n {({ geographies }) =>\n geographies.map((geo) => {\n const geoName = geo.properties.name\n return (\n <Geography\n key={geo.rsmKey}\n geography={geo}\n strokeWidth={2}\n className={classNames('stroke-transparent')}\n fill=\"url('#map-dots')\"\n style={\n hoverable\n ? {\n hover: {\n fill: \"url('#map-dots-hover')\",\n },\n }\n : {}\n }\n onMouseEnter={() => {\n setTooltipContent(\n getRegionValue(\n geoName,\n data,\n suffix,\n prefix,\n ),\n )\n }}\n onMouseLeave={() => {\n setTooltipContent('')\n }}\n />\n )\n })\n }\n </Geographies>\n {marker?.(Marker)}\n </ComposableMap>\n )\n}\n\nconst Map = (props: MapProps) => {\n const [content, setContent] = useState('')\n return (\n <>\n <MapChart {...props} setTooltipContent={setContent} />\n <ReactTooltip>{content}</ReactTooltip>\n </>\n )\n}\n\nconst RegionMap = (props: RegionMapProps) => {\n const {\n data = [],\n mapSource = defaultMapUrl,\n valueSuffix,\n valuePrefix,\n marker,\n hoverable,\n } = props\n\n return (\n <Map\n data={data}\n mapSource={mapSource}\n prefix={valuePrefix}\n suffix={valueSuffix}\n marker={marker}\n hoverable={hoverable}\n />\n )\n}\n\nexport default RegionMap\n"],"names":["defaultMapUrl","getRegionValue","name","data","suffix","prefix","i","elm","MapChart","props","setTooltipContent","mapSource","marker","hoverable","geoData","setGeoData","useState","useEffect","res","err","jsxs","ComposableMap","jsx","PatternCircles","Geographies","geographies","geo","geoName","Geography","classNames","Marker","Map","content","setContent","Fragment","ReactTooltip","RegionMap","valueSuffix","valuePrefix"],"mappings":";;;;;;AAuCA,MAAMA,IAAgB,8CAEhBC,IAAiB,CACnBC,GACAC,GACAC,IAAS,IACTC,IAAS,OACR;AACD,MAAIF,EAAK,SAAS,KAAKD,GAAM;AACzB,aAASI,IAAI,GAAGA,IAAI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BAAAa;AAAA,IAACS;AAAA,IAAA;AAAA,MACG,MAAA5B;AAAA,MACA,WAAAQ;AAAA,MACA,QAAQ2B;AAAA,MACR,QAAQD;AAAA,MACR,QAAAzB;AAAA,MACA,WAAAC;AAAA,IAAA;AAAA,EAAA;AAGZ;"}
@@ -1,31 +1,31 @@
1
- import { jsxs as n, jsx as r, Fragment as L } from "react/jsx-runtime";
2
- import s from "../../../utils/classNames.js";
3
- import a from "./toolButtons/ToolButtonBold.js";
4
- import d from "./toolButtons/ToolButtonItalic.js";
5
- import u from "./toolButtons/ToolButtonStrike.js";
6
- import p from "./toolButtons/ToolButtonCode.js";
7
- import f from "./toolButtons/ToolButtonOrderedList.js";
8
- import c from "./toolButtons/ToolButtonCodeBlock.js";
9
- import g from "./toolButtons/ToolButtonBlockquote.js";
10
- import B from "./toolButtons/ToolButtonHorizontalRule.js";
11
- import x from "./toolButtons/ToolButtonHeading.js";
1
+ import { jsxs as l, jsx as r, Fragment as L } from "react/jsx-runtime";
2
+ import m from "../../../utils/classNames.js";
3
+ import s from "./toolButtons/ToolButtonBold.js";
4
+ import a from "./toolButtons/ToolButtonItalic.js";
5
+ import d from "./toolButtons/ToolButtonStrike.js";
6
+ import u from "./toolButtons/ToolButtonCode.js";
7
+ import p from "./toolButtons/ToolButtonOrderedList.js";
8
+ import g from "./toolButtons/ToolButtonCodeBlock.js";
9
+ import f from "./toolButtons/ToolButtonBlockquote.js";
10
+ import c from "./toolButtons/ToolButtonHorizontalRule.js";
11
+ import B from "./toolButtons/ToolButtonHeading.js";
12
12
  import N from "./toolButtons/ToolButtonParagraph.js";
13
13
  import v from "./toolButtons/ToolButtonUndo.js";
14
14
  import E from "./toolButtons/ToolButtonRedo.js";
15
- import T from "./toolButtons/ToolButtonBulletList.js";
15
+ import x from "./toolButtons/ToolButtonBulletList.js";
16
16
  import { useEditor as j, EditorContent as F } from "@tiptap/react";
17
17
  import H from "@tiptap/starter-kit";
18
- const V = (b) => {
18
+ const V = (T) => {
19
19
  const {
20
- content: k = "",
21
- customToolBar: i,
22
- invalid: l,
23
- onChange: t,
20
+ content: b = "",
21
+ customToolBar: e,
22
+ invalid: i,
23
+ onChange: k,
24
24
  editorContentClass: y,
25
- customEditor: m,
25
+ customEditor: n,
26
26
  ref: h,
27
27
  ...C
28
- } = b, o = m || j({
28
+ } = T, o = n || j({
29
29
  extensions: [
30
30
  H.configure({
31
31
  bulletList: {
@@ -41,56 +41,56 @@ const V = (b) => {
41
41
  class: "m-2 focus:outline-none"
42
42
  }
43
43
  },
44
- content: k,
45
- onUpdate({ editor: e }) {
46
- t == null || t({
47
- text: e.getText(),
48
- html: e.getHTML(),
49
- json: e.getJSON()
44
+ content: b,
45
+ onUpdate({ editor: t }) {
46
+ k?.({
47
+ text: t.getText(),
48
+ html: t.getHTML(),
49
+ json: t.getJSON()
50
50
  });
51
51
  }
52
52
  });
53
- return o ? /* @__PURE__ */ n(
53
+ return o ? /* @__PURE__ */ l(
54
54
  "div",
55
55
  {
56
- className: s(
56
+ className: m(
57
57
  "rich-text-editor rounded-xl ring-1 ring-gray-200 dark:ring-gray-600 border border-gray-200 dark:border-gray-600 bg-gray-100 dark:bg-gray-700 pt-3",
58
58
  o.isFocused && "ring-primary border-primary",
59
- l && "bg-error-subtle",
60
- o.isFocused && l && "bg-error-subtle ring-error border-error"
59
+ i && "bg-error-subtle",
60
+ o.isFocused && i && "bg-error-subtle ring-error border-error"
61
61
  ),
62
62
  children: [
63
- /* @__PURE__ */ r("div", { className: "flex gap-x-1 gap-y-2 px-2", children: i ? i(o, {
64
- ToolButtonBold: a,
65
- ToolButtonItalic: d,
66
- ToolButtonStrike: u,
67
- ToolButtonCode: p,
68
- ToolButtonBlockquote: g,
69
- ToolButtonHeading: x,
70
- ToolButtonBulletList: T,
71
- ToolButtonOrderedList: f,
72
- ToolButtonCodeBlock: c,
73
- ToolButtonHorizontalRule: B,
63
+ /* @__PURE__ */ r("div", { className: "flex gap-x-1 gap-y-2 px-2", children: e ? e(o, {
64
+ ToolButtonBold: s,
65
+ ToolButtonItalic: a,
66
+ ToolButtonStrike: d,
67
+ ToolButtonCode: u,
68
+ ToolButtonBlockquote: f,
69
+ ToolButtonHeading: B,
70
+ ToolButtonBulletList: x,
71
+ ToolButtonOrderedList: p,
72
+ ToolButtonCodeBlock: g,
73
+ ToolButtonHorizontalRule: c,
74
74
  ToolButtonParagraph: N,
75
75
  ToolButtonUndo: v,
76
76
  ToolButtonRedo: E
77
- }) : /* @__PURE__ */ n(L, { children: [
77
+ }) : /* @__PURE__ */ l(L, { children: [
78
+ /* @__PURE__ */ r(s, { editor: o }),
78
79
  /* @__PURE__ */ r(a, { editor: o }),
79
80
  /* @__PURE__ */ r(d, { editor: o }),
80
81
  /* @__PURE__ */ r(u, { editor: o }),
82
+ /* @__PURE__ */ r(f, { editor: o }),
83
+ /* @__PURE__ */ r(B, { editor: o }),
84
+ /* @__PURE__ */ r(x, { editor: o }),
81
85
  /* @__PURE__ */ r(p, { editor: o }),
82
86
  /* @__PURE__ */ r(g, { editor: o }),
83
- /* @__PURE__ */ r(x, { editor: o }),
84
- /* @__PURE__ */ r(T, { editor: o }),
85
- /* @__PURE__ */ r(f, { editor: o }),
86
- /* @__PURE__ */ r(c, { editor: o }),
87
- /* @__PURE__ */ r(B, { editor: o })
87
+ /* @__PURE__ */ r(c, { editor: o })
88
88
  ] }) }),
89
89
  /* @__PURE__ */ r(
90
90
  F,
91
91
  {
92
92
  ref: h,
93
- className: s(
93
+ className: m(
94
94
  "max-h-[600px] overflow-auto px-2 prose prose-p:text-sm prose-p:dark:text-gray-400 max-w-full",
95
95
  y
96
96
  ),
@@ -1 +1 @@
1
- {"version":3,"file":"RichTextEditor.js","sources":["../../../../../lib/@ecme/components/shared/RichTextEditor/RichTextEditor.tsx"],"sourcesContent":["import classNames from '@/utils/classNames'\nimport ToolButtonBold from './toolButtons/ToolButtonBold'\nimport ToolButtonItalic from './toolButtons/ToolButtonItalic'\nimport ToolButtonStrike from './toolButtons/ToolButtonStrike'\nimport ToolButtonCode from './toolButtons/ToolButtonCode'\nimport ToolButtonOrderedList from './toolButtons/ToolButtonOrderedList'\nimport ToolButtonCodeBlock from './toolButtons/ToolButtonCodeBlock'\nimport ToolButtonBlockquote from './toolButtons/ToolButtonBlockquote'\nimport ToolButtonHorizontalRule from './toolButtons/ToolButtonHorizontalRule'\nimport ToolButtonHeading from './toolButtons/ToolButtonHeading'\nimport ToolButtonParagraph from './toolButtons/ToolButtonParagraph'\nimport ToolButtonUndo from './toolButtons/ToolButtonUndo'\nimport ToolButtonRedo from './toolButtons/ToolButtonRedo'\nimport ToolButtonBulletList from './toolButtons/ToolButtonBulletList'\nimport { EditorContent, useEditor } from '@tiptap/react'\nimport StarterKit from '@tiptap/starter-kit'\nimport type { Editor, EditorContentProps, JSONContent } from '@tiptap/react'\nimport type { ReactNode, JSX, Ref } from 'react'\nimport type { BaseToolButtonProps, HeadingLevel } from './toolButtons/types'\n\nexport type RichTextEditorRef = HTMLDivElement\n\ntype RichTextEditorProps = {\n content?: string\n invalid?: boolean\n customToolBar?: (\n editor: Editor,\n components: {\n ToolButtonBold: ({ editor }: BaseToolButtonProps) => JSX.Element\n ToolButtonItalic: ({ editor }: BaseToolButtonProps) => JSX.Element\n ToolButtonStrike: ({ editor }: BaseToolButtonProps) => JSX.Element\n ToolButtonCode: ({ editor }: BaseToolButtonProps) => JSX.Element\n ToolButtonBlockquote: ({\n editor,\n }: BaseToolButtonProps) => JSX.Element\n ToolButtonHeading: ({\n editor,\n }: BaseToolButtonProps & {\n headingLevel?: HeadingLevel[]\n }) => JSX.Element\n ToolButtonBulletList: ({\n editor,\n }: BaseToolButtonProps) => JSX.Element\n ToolButtonOrderedList: ({\n editor,\n }: BaseToolButtonProps) => JSX.Element\n ToolButtonCodeBlock: ({\n editor,\n }: BaseToolButtonProps) => JSX.Element\n ToolButtonHorizontalRule: ({\n editor,\n }: BaseToolButtonProps) => JSX.Element\n ToolButtonParagraph: ({\n editor,\n }: BaseToolButtonProps) => JSX.Element\n ToolButtonUndo: ({ editor }: BaseToolButtonProps) => JSX.Element\n ToolButtonRedo: ({ editor }: BaseToolButtonProps) => JSX.Element\n },\n ) => ReactNode\n onChange?: (content: {\n text: string\n html: string\n json: JSONContent\n }) => void\n editorContentClass?: string\n customEditor?: Editor | null\n ref?: Ref<RichTextEditorRef>\n} & Omit<EditorContentProps, 'editor' | 'ref' | 'onChange'>\n\nconst RichTextEditor = (props: RichTextEditorProps) => {\n const {\n content = '',\n customToolBar,\n invalid,\n onChange,\n editorContentClass,\n customEditor,\n ref,\n ...rest\n } = props\n\n const editor = customEditor\n ? customEditor\n : useEditor({\n extensions: [\n StarterKit.configure({\n bulletList: {\n keepMarks: true,\n },\n orderedList: {\n keepMarks: true,\n },\n }),\n ],\n editorProps: {\n attributes: {\n class: 'm-2 focus:outline-none',\n },\n },\n content,\n onUpdate({ editor }) {\n onChange?.({\n text: editor.getText(),\n html: editor.getHTML(),\n json: editor.getJSON(),\n })\n },\n })\n\n if (!editor) return null\n\n return (\n <div\n className={classNames(\n 'rich-text-editor rounded-xl ring-1 ring-gray-200 dark:ring-gray-600 border border-gray-200 dark:border-gray-600 bg-gray-100 dark:bg-gray-700 pt-3',\n editor.isFocused && 'ring-primary border-primary',\n invalid && 'bg-error-subtle',\n editor.isFocused &&\n invalid &&\n 'bg-error-subtle ring-error border-error',\n )}\n >\n <div className=\"flex gap-x-1 gap-y-2 px-2\">\n {customToolBar ? (\n customToolBar(editor, {\n ToolButtonBold,\n ToolButtonItalic,\n ToolButtonStrike,\n ToolButtonCode,\n ToolButtonBlockquote,\n ToolButtonHeading,\n ToolButtonBulletList,\n ToolButtonOrderedList,\n ToolButtonCodeBlock,\n ToolButtonHorizontalRule,\n ToolButtonParagraph,\n ToolButtonUndo,\n ToolButtonRedo,\n })\n ) : (\n <>\n <ToolButtonBold editor={editor} />\n <ToolButtonItalic editor={editor} />\n <ToolButtonStrike editor={editor} />\n <ToolButtonCode editor={editor} />\n <ToolButtonBlockquote editor={editor} />\n <ToolButtonHeading editor={editor} />\n <ToolButtonBulletList editor={editor} />\n <ToolButtonOrderedList editor={editor} />\n <ToolButtonCodeBlock editor={editor} />\n <ToolButtonHorizontalRule editor={editor} />\n </>\n )}\n </div>\n\n <EditorContent\n ref={ref}\n className={classNames(\n 'max-h-[600px] overflow-auto px-2 prose prose-p:text-sm prose-p:dark:text-gray-400 max-w-full',\n editorContentClass,\n )}\n editor={editor}\n {...rest}\n />\n </div>\n )\n}\n\nexport default RichTextEditor\n"],"names":["RichTextEditor","props","content","customToolBar","invalid","onChange","editorContentClass","customEditor","ref","rest","editor","useEditor","StarterKit","jsxs","classNames","jsx","ToolButtonBold","ToolButtonItalic","ToolButtonStrike","ToolButtonCode","ToolButtonBlockquote","ToolButtonHeading","ToolButtonBulletList","ToolButtonOrderedList","ToolButtonCodeBlock","ToolButtonHorizontalRule","ToolButtonParagraph","ToolButtonUndo","ToolButtonRedo","Fragment","EditorContent"],"mappings":";;;;;;;;;;;;;;;;;AAqEA,MAAMA,IAAiB,CAACC,MAA+B;AACnD,QAAM;AAAA,IACF,SAAAC,IAAU;AAAA,IACV,eAAAC;AAAA,IACA,SAAAC;AAAA,IACA,UAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,KAAAC;AAAA,IACA,GAAGC;AAAA,EAAA,IACHR,GAEES,IAASH,KAETI,EAAU;AAAA,IACN,YAAY;AAAA,MACRC,EAAW,UAAU;AAAA,QACjB,YAAY;AAAA,UACR,WAAW;AAAA,QAAA;AAAA,QAEf,aAAa;AAAA,UACT,WAAW;AAAA,QAAA;AAAA,MACf,CACH;AAAA,IAAA;AAAA,IAEL,aAAa;AAAA,MACT,YAAY;AAAA,QACR,OAAO;AAAA,MAAA;AAAA,IACX;AAAA,IAEJ,SAAAV;AAAA,IACA,SAAS,EAAE,QAAAQ,KAAU;AACjB,MAAAL,KAAA,QAAAA,EAAW;AAAA,QACP,MAAMK,EAAO,QAAA;AAAA,QACb,M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AAA,YACG,KAAAtB;AAAA,YACA,WAAWM;AAAA,cACP;AAAA,cACAR;AAAA,YAAA;AAAA,YAEJ,QAAAI;AAAA,YACC,GAAGD;AAAA,UAAA;AAAA,QAAA;AAAA,MACR;AAAA,IAAA;AAAA,EAAA,IAtDY;AAyDxB;"}
1
+ {"version":3,"file":"RichTextEditor.js","sources":["../../../../../lib/@ecme/components/shared/RichTextEditor/RichTextEditor.tsx"],"sourcesContent":["import classNames from '@/utils/classNames'\nimport ToolButtonBold from './toolButtons/ToolButtonBold'\nimport ToolButtonItalic from './toolButtons/ToolButtonItalic'\nimport ToolButtonStrike from './toolButtons/ToolButtonStrike'\nimport ToolButtonCode from './toolButtons/ToolButtonCode'\nimport ToolButtonOrderedList from './toolButtons/ToolButtonOrderedList'\nimport ToolButtonCodeBlock from './toolButtons/ToolButtonCodeBlock'\nimport ToolButtonBlockquote from './toolButtons/ToolButtonBlockquote'\nimport ToolButtonHorizontalRule from './toolButtons/ToolButtonHorizontalRule'\nimport ToolButtonHeading from './toolButtons/ToolButtonHeading'\nimport ToolButtonParagraph from './toolButtons/ToolButtonParagraph'\nimport ToolButtonUndo from './toolButtons/ToolButtonUndo'\nimport ToolButtonRedo from './toolButtons/ToolButtonRedo'\nimport ToolButtonBulletList from './toolButtons/ToolButtonBulletList'\nimport { EditorContent, useEditor } from '@tiptap/react'\nimport StarterKit from '@tiptap/starter-kit'\nimport type { Editor, EditorContentProps, JSONContent } from '@tiptap/react'\nimport type { ReactNode, JSX, Ref } from 'react'\nimport type { BaseToolButtonProps, HeadingLevel } from './toolButtons/types'\n\nexport type RichTextEditorRef = HTMLDivElement\n\ntype RichTextEditorProps = {\n content?: string\n invalid?: boolean\n customToolBar?: (\n editor: Editor,\n components: {\n ToolButtonBold: ({ editor }: BaseToolButtonProps) => JSX.Element\n ToolButtonItalic: ({ editor }: BaseToolButtonProps) => JSX.Element\n ToolButtonStrike: ({ editor }: BaseToolButtonProps) => JSX.Element\n ToolButtonCode: ({ editor }: BaseToolButtonProps) => JSX.Element\n ToolButtonBlockquote: ({\n editor,\n }: BaseToolButtonProps) => JSX.Element\n ToolButtonHeading: ({\n editor,\n }: BaseToolButtonProps & {\n headingLevel?: HeadingLevel[]\n }) => JSX.Element\n ToolButtonBulletList: ({\n editor,\n }: BaseToolButtonProps) => JSX.Element\n ToolButtonOrderedList: ({\n editor,\n }: BaseToolButtonProps) => JSX.Element\n ToolButtonCodeBlock: ({\n editor,\n }: BaseToolButtonProps) => JSX.Element\n ToolButtonHorizontalRule: ({\n editor,\n }: BaseToolButtonProps) => JSX.Element\n ToolButtonParagraph: ({\n editor,\n }: BaseToolButtonProps) => JSX.Element\n ToolButtonUndo: ({ editor }: BaseToolButtonProps) => JSX.Element\n ToolButtonRedo: ({ editor }: BaseToolButtonProps) => JSX.Element\n },\n ) => ReactNode\n onChange?: (content: {\n text: string\n html: string\n json: JSONContent\n }) => void\n editorContentClass?: string\n customEditor?: Editor | null\n ref?: Ref<RichTextEditorRef>\n} & Omit<EditorContentProps, 'editor' | 'ref' | 'onChange'>\n\nconst RichTextEditor = (props: RichTextEditorProps) => {\n const {\n content = '',\n customToolBar,\n invalid,\n onChange,\n editorContentClass,\n customEditor,\n ref,\n ...rest\n } = props\n\n const editor = customEditor\n ? customEditor\n : useEditor({\n extensions: [\n StarterKit.configure({\n bulletList: {\n keepMarks: true,\n },\n orderedList: {\n keepMarks: true,\n },\n }),\n ],\n editorProps: {\n attributes: {\n class: 'm-2 focus:outline-none',\n },\n },\n content,\n onUpdate({ editor }) {\n onChange?.({\n text: editor.getText(),\n html: editor.getHTML(),\n json: editor.getJSON(),\n })\n },\n })\n\n if (!editor) return null\n\n return (\n <div\n className={classNames(\n 'rich-text-editor rounded-xl ring-1 ring-gray-200 dark:ring-gray-600 border border-gray-200 dark:border-gray-600 bg-gray-100 dark:bg-gray-700 pt-3',\n editor.isFocused && 'ring-primary border-primary',\n invalid && 'bg-error-subtle',\n editor.isFocused &&\n invalid &&\n 'bg-error-subtle ring-error border-error',\n )}\n >\n <div className=\"flex gap-x-1 gap-y-2 px-2\">\n {customToolBar ? (\n customToolBar(editor, {\n ToolButtonBold,\n ToolButtonItalic,\n ToolButtonStrike,\n ToolButtonCode,\n ToolButtonBlockquote,\n ToolButtonHeading,\n ToolButtonBulletList,\n ToolButtonOrderedList,\n ToolButtonCodeBlock,\n ToolButtonHorizontalRule,\n ToolButtonParagraph,\n ToolButtonUndo,\n ToolButtonRedo,\n })\n ) : (\n <>\n <ToolButtonBold editor={editor} />\n <ToolButtonItalic editor={editor} />\n <ToolButtonStrike editor={editor} />\n <ToolButtonCode editor={editor} />\n <ToolButtonBlockquote editor={editor} />\n <ToolButtonHeading editor={editor} />\n <ToolButtonBulletList editor={editor} />\n <ToolButtonOrderedList editor={editor} />\n <ToolButtonCodeBlock editor={editor} />\n <ToolButtonHorizontalRule editor={editor} />\n </>\n )}\n </div>\n\n <EditorContent\n ref={ref}\n className={classNames(\n 'max-h-[600px] overflow-auto px-2 prose prose-p:text-sm prose-p:dark:text-gray-400 max-w-full',\n editorContentClass,\n )}\n editor={editor}\n {...rest}\n />\n </div>\n )\n}\n\nexport default RichTextEditor\n"],"names":["RichTextEditor","props","content","customToolBar","invalid","onChange","editorContentClass","customEditor","ref","rest","editor","useEditor","StarterKit","jsxs","classNames","jsx","ToolButtonBold","ToolButtonItalic","ToolButtonStrike","ToolButtonCode","ToolButtonBlockquote","ToolButtonHeading","ToolButtonBulletList","ToolButtonOrderedList","ToolButtonCodeBlock","ToolButtonHorizontalRule","ToolButtonParagraph","ToolButtonUndo","ToolButtonRedo","Fragment","EditorContent"],"mappings":";;;;;;;;;;;;;;;;;AAqEA,MAAMA,IAAiB,CAACC,MAA+B;AACnD,QAAM;AAAA,IACF,SAAAC,IAAU;AAAA,IACV,eAAAC;AAAA,IACA,SAAAC;AAAA,IACA,UAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,KAAAC;AAAA,IACA,GAAGC;AAAA,EAAA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AAT,GAAgB;AAAA,UAChC,gBAAAK,EAACK,KAAqB,QAAAV,GAAgB;AAAA,UACtC,gBAAAK,EAACM,KAAkB,QAAAX,GAAgB;AAAA,UACnC,gBAAAK,EAACO,KAAqB,QAAAZ,GAAgB;AAAA,UACtC,gBAAAK,EAACQ,KAAsB,QAAAb,GAAgB;AAAA,UACvC,gBAAAK,EAACS,KAAoB,QAAAd,GAAgB;AAAA,UACrC,gBAAAK,EAACU,KAAyB,QAAAf,EAAA,CAAgB;AAAA,QAAA,EAAA,CAC9C,EAAA,CAER;AAAA,QAEA,gBAAAK;AAAA,UAACe;AAAA,UAAA;AAAA,YACG,KAAAtB;AAAA,YACA,WAAWM;AAAA,cACP;AAAA,cACAR;AAAA,YAAA;AAAA,YAEJ,QAAAI;AAAA,YACC,GAAGD;AAAA,UAAA;AAAA,QAAA;AAAA,MACR;AAAA,IAAA;AAAA,EAAA,IAtDY;AAyDxB;"}
@@ -1,51 +1,51 @@
1
- import { jsx as s } from "react/jsx-runtime";
1
+ import { jsx as t } from "react/jsx-runtime";
2
2
  import { useMemo as v } from "react";
3
3
  import "../ui/Tooltip/index.js";
4
4
  import { Avatar as i } from "../ui/Avatar/index.js";
5
- import h from "../../utils/acronym.js";
6
- import A from "../../utils/hooks/useRandomBgColor.js";
7
- import C from "../ui/Tooltip/Tooltip.js";
8
- const w = (m) => {
5
+ import A from "../../utils/acronym.js";
6
+ import C from "../../utils/hooks/useRandomBgColor.js";
7
+ import h from "../ui/Tooltip/Tooltip.js";
8
+ const T = (p) => {
9
9
  const {
10
- avatarGroupProps: c = {},
11
- avatarProps: e = {},
12
- imgKey: p = "img",
10
+ avatarGroupProps: m = {},
11
+ avatarProps: s = {},
12
+ imgKey: e = "img",
13
13
  nameKey: o = "name",
14
- onAvatarClick: a,
14
+ onAvatarClick: c,
15
15
  users: n = [],
16
16
  ...l
17
- } = m, u = A(), t = v(() => ({
17
+ } = p, u = C(), a = v(() => ({
18
18
  shape: "circle",
19
19
  size: 30,
20
20
  className: "cursor-pointer",
21
- ...e
22
- }), [e]), d = (r) => {
23
- a == null || a(r);
21
+ ...s
22
+ }), [s]), d = (r) => {
23
+ c?.(r);
24
24
  };
25
- return /* @__PURE__ */ s(
25
+ return /* @__PURE__ */ t(
26
26
  i.Group,
27
27
  {
28
28
  omittedAvatarTooltip: !0,
29
29
  chained: !0,
30
- omittedAvatarProps: t,
30
+ omittedAvatarProps: a,
31
31
  omittedAvatarTooltipProps: {
32
32
  wrapperClass: "flex"
33
33
  },
34
- ...c,
34
+ ...m,
35
35
  ...l,
36
- children: n.map((r, f) => /* @__PURE__ */ s(
37
- C,
36
+ children: n.map((r, f) => /* @__PURE__ */ t(
37
+ h,
38
38
  {
39
39
  wrapperClass: "flex",
40
40
  title: r[o],
41
- children: /* @__PURE__ */ s(
41
+ children: /* @__PURE__ */ t(
42
42
  i,
43
43
  {
44
- ...t,
45
- className: `${r[p] ? "" : u(r[o])} ${t.className}`,
46
- src: r[p],
44
+ ...a,
45
+ className: `${r[e] ? "" : u(r[o])} ${a.className}`,
46
+ src: r[e],
47
47
  onClick: () => d(r),
48
- children: h(r.name)
48
+ children: A(r.name)
49
49
  }
50
50
  )
51
51
  },
@@ -55,6 +55,6 @@ const w = (m) => {
55
55
  );
56
56
  };
57
57
  export {
58
- w as default
58
+ T as default
59
59
  };
60
60
  //# sourceMappingURL=UsersAvatarGroup.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UsersAvatarGroup.js","sources":["../../../../lib/@ecme/components/shared/UsersAvatarGroup.tsx"],"sourcesContent":["import { useMemo } from 'react'\nimport Tooltip from '@/components/ui/Tooltip'\nimport Avatar from '@/components/ui/Avatar'\nimport acronym from '@/utils/acronym'\nimport useRandomBgColor from '@/utils/hooks/useRandomBgColor'\nimport type { AvatarProps, AvatarGroupProps } from '@/components/ui/Avatar'\n\ntype User = Record<string, string>\n\ninterface UsersAvatarGroupProps extends AvatarGroupProps {\n avatarGroupProps?: AvatarGroupProps\n avatarProps?: AvatarProps\n imgKey?: string\n nameKey?: string\n onAvatarClick?: (avatar: User) => void\n users?: User[]\n}\n\nconst UsersAvatarGroup = (props: UsersAvatarGroupProps) => {\n const {\n avatarGroupProps = {},\n avatarProps = {},\n imgKey = 'img',\n nameKey = 'name',\n onAvatarClick,\n users = [],\n ...rest\n } = props\n\n const bgColor = useRandomBgColor()\n\n const defaultAvatarProps = useMemo(() => {\n return {\n shape: 'circle' as 'round' | 'circle' | 'square',\n size: 30,\n className: 'cursor-pointer',\n ...avatarProps,\n }\n }, [avatarProps])\n\n const handleAvatarClick = (avatar: User) => {\n onAvatarClick?.(avatar)\n }\n\n return (\n <Avatar.Group\n omittedAvatarTooltip\n chained\n omittedAvatarProps={defaultAvatarProps}\n omittedAvatarTooltipProps={{\n wrapperClass: 'flex',\n }}\n {...avatarGroupProps}\n {...rest}\n >\n {users.map((elm, index) => (\n <Tooltip\n key={elm[nameKey] + index}\n wrapperClass=\"flex\"\n title={elm[nameKey]}\n >\n <Avatar\n {...defaultAvatarProps}\n className={`${\n elm[imgKey] ? '' : bgColor(elm[nameKey])\n } ${defaultAvatarProps.className}`}\n src={elm[imgKey]}\n onClick={() => handleAvatarClick(elm)}\n >\n {acronym(elm.name)}\n </Avatar>\n </Tooltip>\n ))}\n </Avatar.Group>\n )\n}\n\nexport default UsersAvatarGroup\n"],"names":["UsersAvatarGroup","props","avatarGroupProps","avatarProps","imgKey","nameKey","onAvatarClick","users","rest","bgColor","useRandomBgColor","defaultAvatarProps","useMemo","handleAvatarClick","avatar","jsx","Avatar","elm","index","Tooltip","acronym"],"mappings":";;;;;;;AAkBA,MAAMA,IAAmB,CAACC,MAAiC;AACvD,QAAM;AAAA,IACF,kBAAAC,IAAmB,CAAA;AAAA,IACnB,aAAAC,IAAc,CAAA;AAAA,IACd,QAAAC,IAAS;AAAA,IACT,SAAAC,IAAU;AAAA,IACV,eAAAC;AAAA,IACA,OAAAC,IAAQ,CAAA;AAAA,IACR,GAAGC;AAAA,EAAA,IACHP,GAEEQ,IAAUC,EAAA,GAEVC,IAAqBC,EAAQ,OACxB;AAAA,IACH,OAAO;AAAA,IACP,MAAM;AAAA,IACN,WAAW;AAAA,IACX,GAAGT;AAAA,EAAA,IAER,CAACA,CAAW,CAAC,GAEVU,IAAoB,CAACC,MAAiB;AACxC,IAAAR,KAAA,QAAAA,EAAgBQ;AAAA,EACpB;AAEA,SACI,gBAAAC;AAAA,IAACC,EAAO;AAAA,IAAP;AAAA,MACG,sBAAoB;AAAA,MACpB,SAAO;AAAA,MACP,oBAAoBL;AAAA,MACpB,2BAA2B;AAAA,QACvB,cAAc;AAAA,MAAA;AAAA,MAEjB,GAAGT;AAAA,MACH,GAAGM;AAAA,MAEH,UAAAD,EAAM,IAAI,CAACU,GAAKC,MACb,gBAAAH;AAAA,QAACI;AAAA,QAAA;AAAA,UAEG,cAAa;AAAA,UACb,OAAOF,EAAIZ,CAAO;AAAA,UAElB,UAAA,gBAAAU;AAAA,YAACC;AAAA,YAAA;AAAA,cACI,GAAGL;AAAA,cACJ,WAAW,GACPM,EAAIb,CAAM,IAAI,KAAKK,EAAQQ,EAAIZ,CAAO,CAAC,CAC3C,IAAIM,EAAmB,SAAS;AAAA,cAChC,KAAKM,EAAIb,CAAM;AAAA,cACf,SAAS,MAAMS,EAAkBI,CAAG;AAAA,cAEnC,UAAAG,EAAQH,EAAI,IAAI;AAAA,YAAA;AAAA,UAAA;AAAA,QACrB;AAAA,QAbKA,EAAIZ,CAAO,IAAIa;AAAA,MAAA,CAe3B;AAAA,IAAA;AAAA,EAAA;AAGb;"}
1
+ {"version":3,"file":"UsersAvatarGroup.js","sources":["../../../../lib/@ecme/components/shared/UsersAvatarGroup.tsx"],"sourcesContent":["import { useMemo } from 'react'\nimport Tooltip from '@/components/ui/Tooltip'\nimport Avatar from '@/components/ui/Avatar'\nimport acronym from '@/utils/acronym'\nimport useRandomBgColor from '@/utils/hooks/useRandomBgColor'\nimport type { AvatarProps, AvatarGroupProps } from '@/components/ui/Avatar'\n\ntype User = Record<string, string>\n\ninterface UsersAvatarGroupProps extends AvatarGroupProps {\n avatarGroupProps?: AvatarGroupProps\n avatarProps?: AvatarProps\n imgKey?: string\n nameKey?: string\n onAvatarClick?: (avatar: User) => void\n users?: User[]\n}\n\nconst UsersAvatarGroup = (props: UsersAvatarGroupProps) => {\n const {\n avatarGroupProps = {},\n avatarProps = {},\n imgKey = 'img',\n nameKey = 'name',\n onAvatarClick,\n users = [],\n ...rest\n } = props\n\n const bgColor = useRandomBgColor()\n\n const defaultAvatarProps = useMemo(() => {\n return {\n shape: 'circle' as 'round' | 'circle' | 'square',\n size: 30,\n className: 'cursor-pointer',\n ...avatarProps,\n }\n }, [avatarProps])\n\n const handleAvatarClick = (avatar: User) => {\n onAvatarClick?.(avatar)\n }\n\n return (\n <Avatar.Group\n omittedAvatarTooltip\n chained\n omittedAvatarProps={defaultAvatarProps}\n omittedAvatarTooltipProps={{\n wrapperClass: 'flex',\n }}\n {...avatarGroupProps}\n {...rest}\n >\n {users.map((elm, index) => (\n <Tooltip\n key={elm[nameKey] + index}\n wrapperClass=\"flex\"\n title={elm[nameKey]}\n >\n <Avatar\n {...defaultAvatarProps}\n className={`${\n elm[imgKey] ? '' : bgColor(elm[nameKey])\n } ${defaultAvatarProps.className}`}\n src={elm[imgKey]}\n onClick={() => handleAvatarClick(elm)}\n >\n {acronym(elm.name)}\n </Avatar>\n </Tooltip>\n ))}\n </Avatar.Group>\n )\n}\n\nexport default UsersAvatarGroup\n"],"names":["UsersAvatarGroup","props","avatarGroupProps","avatarProps","imgKey","nameKey","onAvatarClick","users","rest","bgColor","useRandomBgColor","defaultAvatarProps","useMemo","handleAvatarClick","avatar","jsx","Avatar","elm","index","Tooltip","acronym"],"mappings":";;;;;;;AAkBA,MAAMA,IAAmB,CAACC,MAAiC;AACvD,QAAM;AAAA,IACF,kBAAAC,IAAmB,CAAA;AAAA,IACnB,aAAAC,IAAc,CAAA;AAAA,IACd,QAAAC,IAAS;AAAA,IACT,SAAAC,IAAU;AAAA,IACV,eAAAC;AAAA,IACA,OAAAC,IAAQ,CAAA;AAAA,IACR,GAAGC;AAAA,EAAA,IACHP,GAEEQ,IAAUC,EAAA,GAEVC,IAAqBC,EAAQ,OACxB;AAAA,IACH,OAAO;AAAA,IACP,MAAM;AAAA,IACN,WAAW;AAAA,IACX,GAAGT;AAAA,EAAA,IAER,CAACA,CAAW,CAAC,GAEVU,IAAoB,CAACC,MAAiB;AACxC,IAAAR,IAAgBQ,CAAM;AAAA,EAC1B;AAEA,SACI,gBAAAC;AAAA,IAACC,EAAO;AAAA,IAAP;AAAA,MACG,sBAAoB;AAAA,MACpB,SAAO;AAAA,MACP,oBAAoBL;AAAA,MACpB,2BAA2B;AAAA,QACvB,cAAc;AAAA,MAAA;AAAA,MAEjB,GAAGT;AAAA,MACH,GAAGM;AAAA,MAEH,UAAAD,EAAM,IAAI,CAACU,GAAKC,MACb,gBAAAH;AAAA,QAACI;AAAA,QAAA;AAAA,UAEG,cAAa;AAAA,UACb,OAAOF,EAAIZ,CAAO;AAAA,UAElB,UAAA,gBAAAU;AAAA,YAACC;AAAA,YAAA;AAAA,cACI,GAAGL;AAAA,cACJ,WAAW,GACPM,EAAIb,CAAM,IAAI,KAAKK,EAAQQ,EAAIZ,CAAO,CAAC,CAC3C,IAAIM,EAAmB,SAAS;AAAA,cAChC,KAAKM,EAAIb,CAAM;AAAA,cACf,SAAS,MAAMS,EAAkBI,CAAG;AAAA,cAEnC,UAAAG,EAAQH,EAAI,IAAI;AAAA,YAAA;AAAA,UAAA;AAAA,QACrB;AAAA,QAbKA,EAAIZ,CAAO,IAAIa;AAAA,MAAA,CAe3B;AAAA,IAAA;AAAA,EAAA;AAGb;"}
@@ -1,75 +1,69 @@
1
- import { jsx as t, jsxs as y } from "react/jsx-runtime";
2
- import c from "./HorizontalMenuDropdownTrigger.js";
3
- import f from "./HorizontalMenuDropdown.js";
4
- import g from "./HorizontalMenuDropdownContent.js";
5
- import M from "../../shared/AuthorityCheck.js";
6
- import { useTranslation as x } from "../../../utils/hooks/useTranslation.js";
7
- import C from "../../../utils/hooks/useMenuActive.js";
8
- import { TbChevronDown as k } from "react-icons/tb";
9
- const A = (l) => {
1
+ import { jsx as t, jsxs as c } from "react/jsx-runtime";
2
+ import m from "./HorizontalMenuDropdownTrigger.js";
3
+ import d from "./HorizontalMenuDropdown.js";
4
+ import h from "./HorizontalMenuDropdownContent.js";
5
+ import y from "../../shared/AuthorityCheck.js";
6
+ import { useTranslation as f } from "../../../utils/hooks/useTranslation.js";
7
+ import g from "../../../utils/hooks/useMenuActive.js";
8
+ import { TbChevronDown as M } from "react-icons/tb";
9
+ const b = (i) => {
10
10
  const {
11
- routeKey: s,
12
- navigationTree: a = [],
13
- translationSetup: d,
14
- userAuthority: m
15
- } = l, { t: o } = x(!d), { activedRoute: r } = C(a, s);
16
- return /* @__PURE__ */ t("div", { className: "flex gap-1", children: a.map((e) => {
17
- var u, p;
18
- return /* @__PURE__ */ t(
19
- M,
20
- {
21
- userAuthority: m,
22
- authority: e.authority,
23
- children: e.subMenu.length > 0 ? /* @__PURE__ */ t(
24
- f,
25
- {
26
- dropdownLean: ((p = (u = e.meta) == null ? void 0 : u.horizontalMenu) == null ? void 0 : p.layout) === "default",
27
- triggerContent: ({ ref: n, props: i }) => /* @__PURE__ */ t(
28
- c,
29
- {
30
- ref: n,
31
- ...i,
32
- asElement: "button",
33
- children: /* @__PURE__ */ y("div", { className: "flex items-center gap-1", children: [
34
- /* @__PURE__ */ t("span", { children: o(e.translateKey, e.title) }),
35
- /* @__PURE__ */ t(k, {})
36
- ] })
37
- }
38
- ),
39
- menuContent: ({ styles: n, handleDropdownClose: i }) => {
40
- var h;
41
- return /* @__PURE__ */ t(
42
- g,
43
- {
44
- style: n,
45
- navigationTree: e.subMenu,
46
- t: o,
47
- layoutMeta: (h = e == null ? void 0 : e.meta) == null ? void 0 : h.horizontalMenu,
48
- routeKey: s,
49
- routeParentKey: r == null ? void 0 : r.parentKey,
50
- userAuthority: m,
51
- onDropdownClose: i
52
- }
53
- );
11
+ routeKey: a,
12
+ navigationTree: l = [],
13
+ translationSetup: p,
14
+ userAuthority: s
15
+ } = i, { t: o } = f(!p), { activedRoute: u } = g(l, a);
16
+ return /* @__PURE__ */ t("div", { className: "flex gap-1", children: l.map((e) => /* @__PURE__ */ t(
17
+ y,
18
+ {
19
+ userAuthority: s,
20
+ authority: e.authority,
21
+ children: e.subMenu.length > 0 ? /* @__PURE__ */ t(
22
+ d,
23
+ {
24
+ dropdownLean: e.meta?.horizontalMenu?.layout === "default",
25
+ triggerContent: ({ ref: r, props: n }) => /* @__PURE__ */ t(
26
+ m,
27
+ {
28
+ ref: r,
29
+ ...n,
30
+ asElement: "button",
31
+ children: /* @__PURE__ */ c("div", { className: "flex items-center gap-1", children: [
32
+ /* @__PURE__ */ t("span", { children: o(e.translateKey, e.title) }),
33
+ /* @__PURE__ */ t(M, {})
34
+ ] })
54
35
  }
55
- }
56
- ) : /* @__PURE__ */ t(
57
- c,
58
- {
59
- ...l,
60
- path: e.path,
61
- isExternalLink: e.isExternalLink,
62
- active: (r == null ? void 0 : r.key) === e.key,
63
- asElement: "a",
64
- children: /* @__PURE__ */ t("div", { className: "flex items-center gap-1", children: /* @__PURE__ */ t("span", { children: o(e.translateKey, e.title) }) })
65
- }
66
- )
67
- },
68
- e.key
69
- );
70
- }) });
36
+ ),
37
+ menuContent: ({ styles: r, handleDropdownClose: n }) => /* @__PURE__ */ t(
38
+ h,
39
+ {
40
+ style: r,
41
+ navigationTree: e.subMenu,
42
+ t: o,
43
+ layoutMeta: e?.meta?.horizontalMenu,
44
+ routeKey: a,
45
+ routeParentKey: u?.parentKey,
46
+ userAuthority: s,
47
+ onDropdownClose: n
48
+ }
49
+ )
50
+ }
51
+ ) : /* @__PURE__ */ t(
52
+ m,
53
+ {
54
+ ...i,
55
+ path: e.path,
56
+ isExternalLink: e.isExternalLink,
57
+ active: u?.key === e.key,
58
+ asElement: "a",
59
+ children: /* @__PURE__ */ t("div", { className: "flex items-center gap-1", children: /* @__PURE__ */ t("span", { children: o(e.translateKey, e.title) }) })
60
+ }
61
+ )
62
+ },
63
+ e.key
64
+ )) });
71
65
  };
72
66
  export {
73
- A as default
67
+ b as default
74
68
  };
75
69
  //# sourceMappingURL=HorizontalMenuContent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"HorizontalMenuContent.js","sources":["../../../../../lib/@ecme/components/template/HorizontalMenuContent/HorizontalMenuContent.tsx"],"sourcesContent":["import HorizontalMenuDropdownTrigger from './HorizontalMenuDropdownTrigger'\nimport HorizontalMenuDropdown from './HorizontalMenuDropdown'\nimport HorizontalMenuDropdownContent from './HorizontalMenuDropdownContent'\nimport AuthorityCheck from '@/components/shared/AuthorityCheck'\nimport useTranslation from '@/utils/hooks/useTranslation'\nimport useMenuActive from '@/utils/hooks/useMenuActive'\nimport { TbChevronDown } from 'react-icons/tb'\nimport { Direction } from '@/@types/theme'\nimport type { NavigationTree } from '@/@types/navigation'\nimport type { TraslationFn } from '@/@types/common'\n\ntype HorizontalMenuContentProps = {\n routeKey: string\n navigationTree?: NavigationTree[]\n direction?: Direction\n translationSetup?: boolean\n userAuthority: string[]\n}\n\nconst HorizontalMenuContent = (props: HorizontalMenuContentProps) => {\n const {\n routeKey,\n navigationTree = [],\n translationSetup,\n userAuthority,\n } = props\n\n const { t } = useTranslation(!translationSetup)\n const { activedRoute } = useMenuActive(navigationTree, routeKey)\n\n return (\n <div className=\"flex gap-1\">\n {navigationTree.map((nav) => (\n <AuthorityCheck\n key={nav.key}\n userAuthority={userAuthority}\n authority={nav.authority}\n >\n {nav.subMenu.length > 0 ? (\n <HorizontalMenuDropdown\n dropdownLean={\n nav.meta?.horizontalMenu?.layout === 'default'\n }\n triggerContent={({ ref, props }) => (\n <HorizontalMenuDropdownTrigger\n ref={ref}\n {...props}\n asElement=\"button\"\n >\n <div className=\"flex items-center gap-1\">\n <span>\n {t(nav.translateKey, nav.title)}\n </span>\n <TbChevronDown />\n </div>\n </HorizontalMenuDropdownTrigger>\n )}\n menuContent={({ styles, handleDropdownClose }) => (\n <HorizontalMenuDropdownContent\n style={styles}\n navigationTree={nav.subMenu}\n t={t as TraslationFn}\n layoutMeta={nav?.meta?.horizontalMenu}\n routeKey={routeKey}\n routeParentKey={activedRoute?.parentKey}\n userAuthority={userAuthority}\n onDropdownClose={handleDropdownClose}\n />\n )}\n ></HorizontalMenuDropdown>\n ) : (\n <HorizontalMenuDropdownTrigger\n {...props}\n path={nav.path}\n isExternalLink={nav.isExternalLink}\n active={activedRoute?.key === nav.key}\n asElement=\"a\"\n >\n <div className=\"flex items-center gap-1\">\n <span>{t(nav.translateKey, nav.title)}</span>\n </div>\n </HorizontalMenuDropdownTrigger>\n )}\n </AuthorityCheck>\n ))}\n </div>\n )\n}\n\nexport default HorizontalMenuContent\n"],"names":["HorizontalMenuContent","props","routeKey","navigationTree","translationSetup","userAuthority","t","useTranslation","activedRoute","useMenuActive","nav","jsx","AuthorityCheck","HorizontalMenuDropdown","_b","_a","ref","HorizontalMenuDropdownTrigger","jsxs","TbChevronDown","styles","handleDropdownClose","HorizontalMenuDropdownContent"],"mappings":";;;;;;;;AAmBA,MAAMA,IAAwB,CAACC,MAAsC;AACjE,QAAM;AAAA,IACF,UAAAC;AAAA,IACA,gBAAAC,IAAiB,CAAA;AAAA,IACjB,kBAAAC;AAAA,IACA,eAAAC;AAAA,EAAA,IACAJ,GAEE,EAAE,GAAAK,EAAA,IAAMC,EAAe,CAACH,CAAgB,GACxC,EAAE,cAAAI,EAAA,IAAiBC,EAAcN,GAAgBD,CAAQ;AAE/D,2BACK,OAAA,EAAI,WAAU,cACV,UAAAC,EAAe,IAAI,CAACO;;AACjB,2BAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QAEG,eAAAP;AAAA,QACA,WAAWK,EAAI;AAAA,QAEd,UAAAA,EAAI,QAAQ,SAAS,IAClB,gBAAAC;AAAA,UAACE;AAAA,UAAA;AAAA,YACG,gBACIC,KAAAC,IA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A,IAAA;AAAA,GAkDhB,GACL;AAER;"}
1
+ {"version":3,"file":"HorizontalMenuContent.js","sources":["../../../../../lib/@ecme/components/template/HorizontalMenuContent/HorizontalMenuContent.tsx"],"sourcesContent":["import HorizontalMenuDropdownTrigger from './HorizontalMenuDropdownTrigger'\nimport HorizontalMenuDropdown from './HorizontalMenuDropdown'\nimport HorizontalMenuDropdownContent from './HorizontalMenuDropdownContent'\nimport AuthorityCheck from '@/components/shared/AuthorityCheck'\nimport useTranslation from '@/utils/hooks/useTranslation'\nimport useMenuActive from '@/utils/hooks/useMenuActive'\nimport { TbChevronDown } from 'react-icons/tb'\nimport { Direction } from '@/@types/theme'\nimport type { NavigationTree } from '@/@types/navigation'\nimport type { TraslationFn } from '@/@types/common'\n\ntype HorizontalMenuContentProps = {\n routeKey: string\n navigationTree?: NavigationTree[]\n direction?: Direction\n translationSetup?: boolean\n userAuthority: string[]\n}\n\nconst HorizontalMenuContent = (props: HorizontalMenuContentProps) => {\n const {\n routeKey,\n navigationTree = [],\n translationSetup,\n userAuthority,\n } = props\n\n const { t } = useTranslation(!translationSetup)\n const { activedRoute } = useMenuActive(navigationTree, routeKey)\n\n return (\n <div className=\"flex gap-1\">\n {navigationTree.map((nav) => (\n <AuthorityCheck\n key={nav.key}\n userAuthority={userAuthority}\n authority={nav.authority}\n >\n {nav.subMenu.length > 0 ? (\n <HorizontalMenuDropdown\n dropdownLean={\n nav.meta?.horizontalMenu?.layout === 'default'\n }\n triggerContent={({ ref, props }) => (\n <HorizontalMenuDropdownTrigger\n ref={ref}\n {...props}\n asElement=\"button\"\n >\n <div className=\"flex items-center gap-1\">\n <span>\n {t(nav.translateKey, nav.title)}\n </span>\n <TbChevronDown />\n </div>\n </HorizontalMenuDropdownTrigger>\n )}\n menuContent={({ styles, handleDropdownClose }) => (\n <HorizontalMenuDropdownContent\n style={styles}\n navigationTree={nav.subMenu}\n t={t as TraslationFn}\n layoutMeta={nav?.meta?.horizontalMenu}\n routeKey={routeKey}\n routeParentKey={activedRoute?.parentKey}\n userAuthority={userAuthority}\n onDropdownClose={handleDropdownClose}\n />\n )}\n ></HorizontalMenuDropdown>\n ) : (\n <HorizontalMenuDropdownTrigger\n {...props}\n path={nav.path}\n isExternalLink={nav.isExternalLink}\n active={activedRoute?.key === nav.key}\n asElement=\"a\"\n >\n <div className=\"flex items-center gap-1\">\n <span>{t(nav.translateKey, nav.title)}</span>\n </div>\n </HorizontalMenuDropdownTrigger>\n )}\n </AuthorityCheck>\n ))}\n </div>\n )\n}\n\nexport default HorizontalMenuContent\n"],"names":["HorizontalMenuContent","props","routeKey","navigationTree","translationSetup","userAuthority","t","useTranslation","activedRoute","useMenuActive","nav","jsx","AuthorityCheck","HorizontalMenuDropdown","ref","HorizontalMenuDropdownTrigger","jsxs","TbChevronDown","styles","handleDropdownClose","HorizontalMenuDropdownContent"],"mappings":";;;;;;;;AAmBA,MAAMA,IAAwB,CAACC,MAAsC;AACjE,QAAM;AAAA,IACF,UAAAC;AAAA,IACA,gBAAAC,IAAiB,CAAA;AAAA,IACjB,kBAAAC;AAAA,IACA,eAAAC;AAAA,EAAA,IACAJ,GAEE,EAAE,GAAAK,EAAA,IAAMC,EAAe,CAACH,CAAgB,GACxC,EAAE,cAAAI,EAAA,IAAiBC,EAAcN,GAAgBD,CAAQ;AAE/D,2BACK,OAAA,EAAI,WAAU,cACV,UAAAC,EAAe,IAAI,CAACO,MACjB,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MAEG,eAAAP;AAAA,MACA,WAAWK,EAAI;AAAA,MAEd,UAAAA,EAAI,QAAQ,SAAS,IAClB,gBAAAC;AAAA,QAACE;AAAA,QAAA;AAAA,UACG,cACIH,EAAI,MAAM,gBAAgB,WAAW;AAAA,UAEzC,gBAAgB,CAAC,EAAE,KAAAI,GAAK,OAAAb,QACpB,gBAAAU;AAAA,YAACI;AAAA,YAAA;AAAA,cACG,KAAAD;AAAA,cACC,GAAGb;AAAAA,cACJ,WAAU;AAAA,cAEV,U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