@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,24 +1,24 @@
1
- import { jsxs as c, Fragment as m, jsx as o } from "react/jsx-runtime";
1
+ import { jsxs as c, Fragment as m, jsx as r } from "react/jsx-runtime";
2
2
  import { ViewMode as p, Gantt as f } from "gantt-task-react";
3
3
  import g from "./TaskListTable.js";
4
4
  import k from "./TaskListHeader.js";
5
- import h from "./TooltipContent.js";
6
- import C from "./tasksPreProcess.js";
5
+ import C from "./TooltipContent.js";
6
+ import h from "./tasksPreProcess.js";
7
7
  import { PatternLines as u } from "@visx/pattern";
8
- const S = (t) => {
8
+ const B = (t) => {
9
9
  const {
10
10
  tasks: s,
11
11
  viewMode: l = p.Day,
12
- extraColumns: r,
12
+ extraColumns: a,
13
13
  colorsMap: i = {},
14
- showArrow: d,
15
- ...n
14
+ showArrow: n,
15
+ ...d
16
16
  } = t;
17
17
  return /* @__PURE__ */ c(m, { children: [
18
- /* @__PURE__ */ o(
18
+ /* @__PURE__ */ r(
19
19
  f,
20
20
  {
21
- tasks: C(s, i),
21
+ tasks: h(s, i),
22
22
  viewMode: l,
23
23
  listCellWidth: "200px",
24
24
  columnWidth: 65,
@@ -34,27 +34,27 @@ const S = (t) => {
34
34
  milestoneBackgroundSelectedColor: "#3380fa",
35
35
  todayColor: "url(#horzLines)",
36
36
  rowHeight: 50,
37
- TaskListHeader: (e) => /* @__PURE__ */ o(
37
+ TaskListHeader: (o) => /* @__PURE__ */ r(
38
38
  k,
39
39
  {
40
- ...e,
41
- extraHeaders: r == null ? void 0 : r.map((a) => a.header)
40
+ ...o,
41
+ extraHeaders: a?.map((e) => e.header)
42
42
  }
43
43
  ),
44
- TaskListTable: (e) => /* @__PURE__ */ o(
44
+ TaskListTable: (o) => /* @__PURE__ */ r(
45
45
  g,
46
46
  {
47
- ...e,
48
- extraCells: r == null ? void 0 : r.map((a) => a.cell)
47
+ ...o,
48
+ extraCells: a?.map((e) => e.cell)
49
49
  }
50
50
  ),
51
- TooltipContent: h,
51
+ TooltipContent: C,
52
52
  barCornerRadius: 6,
53
- ...d ? {} : { arrowColor: "transparent" },
54
- ...n
53
+ ...n ? {} : { arrowColor: "transparent" },
54
+ ...d
55
55
  }
56
56
  ),
57
- /* @__PURE__ */ o("svg", { className: "h-0 w-0", children: /* @__PURE__ */ o(
57
+ /* @__PURE__ */ r("svg", { className: "h-0 w-0", children: /* @__PURE__ */ r(
58
58
  u,
59
59
  {
60
60
  id: "horzLines",
@@ -69,6 +69,6 @@ const S = (t) => {
69
69
  ] });
70
70
  };
71
71
  export {
72
- S as default
72
+ B as default
73
73
  };
74
74
  //# sourceMappingURL=GanttChart.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GanttChart.js","sources":["../../../../../lib/@ecme/components/shared/GanttChart/GanttChart.tsx"],"sourcesContent":["import { ViewMode, Gantt } from 'gantt-task-react'\nimport TaskListTable from './TaskListTable'\nimport TaskListHeader from './TaskListHeader'\nimport TooltipContent from './TooltipContent'\nimport tasksPreProcess from './tasksPreProcess'\nimport { PatternLines } from '@visx/pattern'\nimport type { ExtraCell } from './TaskListTable'\nimport type { ExtraHeader } from './TaskListHeader'\nimport type { Task, GanttProps } from 'gantt-task-react'\n\ntype ExtendedTask<T extends Record<string, unknown> = NonNullable<unknown>> =\n Task & {\n barVariant?: string\n } & T\n\ntype GanttChartProps<T extends Record<string, unknown>> = GanttProps & {\n extraColumns?: Array<{\n header: ExtraHeader\n cell: ExtraCell\n }>\n tasks: ExtendedTask<T>[]\n colorsMap?: Record<string, string>\n showArrow?: boolean\n}\n\nconst GanttChart = <T extends Record<string, unknown>>(\n props: GanttChartProps<T>,\n) => {\n const {\n tasks,\n viewMode = ViewMode.Day,\n extraColumns,\n colorsMap = {},\n showArrow,\n ...rest\n } = props\n\n return (\n <>\n <Gantt\n tasks={tasksPreProcess(tasks, colorsMap)}\n viewMode={viewMode}\n listCellWidth={'200px'}\n columnWidth={65}\n barProgressColor={'#3380fa'}\n barProgressSelectedColor={'#3380fa'}\n barBackgroundColor={'#e2e8f0'}\n barBackgroundSelectedColor={'#e2e8f0'}\n projectProgressColor={'#6299f1'}\n projectProgressSelectedColor={'#6299f1'}\n projectBackgroundColor=\"#3380fa\"\n projectBackgroundSelectedColor=\"#3380fa\"\n milestoneBackgroundColor=\"#3380fa\"\n milestoneBackgroundSelectedColor=\"#3380fa\"\n todayColor=\"url(#horzLines)\"\n rowHeight={50}\n TaskListHeader={(props) => (\n <TaskListHeader\n {...props}\n extraHeaders={extraColumns?.map((col) => col.header)}\n />\n )}\n TaskListTable={(props) => (\n <TaskListTable\n {...props}\n extraCells={extraColumns?.map((col) => col.cell)}\n />\n )}\n TooltipContent={TooltipContent}\n barCornerRadius={6}\n {...(!showArrow ? { arrowColor: 'transparent' } : {})}\n {...rest}\n />\n <svg className=\"h-0 w-0\">\n <PatternLines\n id=\"horzLines\"\n height={10}\n width={10}\n className=\"stroke-gray-200 dark:stroke-gray-700\"\n strokeWidth={1.5}\n background=\"transparent\"\n orientation={['diagonal']}\n />\n </svg>\n </>\n )\n}\n\nexport type { Task, ExtendedTask }\n\nexport default GanttChart\n"],"names":["GanttChart","props","tasks","viewMode","ViewMode","extraColumns","colorsMap","showArrow","rest","jsxs","Fragment","jsx","Gantt","tasksPreProcess","TaskListHeader","col","TaskListTable","TooltipContent","PatternLines"],"mappings":";;;;;;;AAyBA,MAAMA,IAAa,CACfC,MACC;AACD,QAAM;AAAA,IACF,OAAAC;AAAA,IACA,UAAAC,IAAWC,EAAS;AAAA,IACpB,cAAAC;AAAA,IACA,WAAAC,IAAY,CAAA;AAAA,IACZ,WAAAC;AAAA,IACA,GAAGC;AAAA,EAAA,IACHP;AAEJ,SACI,gBAAAQ,EAAAC,GAAA,EACI,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACG,OAAOC,EAAgBX,GAAOI,CAAS;AAAA,QACvC,UAAAH;AAAA,QACA,eAAe;AAAA,QACf,aAAa;AAAA,QACb,kBAAkB;AAAA,QAClB,0BAA0B;AAAA,QAC1B,oBAAoB;AAAA,QACpB,4BAA4B;AAAA,QAC5B,sBAAsB;AAAA,QACtB,8BAA8B;AAAA,QAC9B,wBAAuB;AAAA,QACvB,gCAA+B;AAAA,QAC/B,0BAAyB;AAAA,QACzB,kCAAiC;AAAA,QACjC,YAAW;AAAA,QACX,WAAW;AAAA,QACX,gBAAgB,CAACF,MACb,gBAAAU;AAAA,UAACG;AAAA,UAAA;AAAA,YACI,GAAGb;AAAAA,YACJ,cAAcI,KAAA,gBAAAA,EAAc,IAAI,CAACU,MAAQA,EAAI;AAAA,UAAM;AAAA,QAAA;AAAA,QAG3D,eAAe,CAACd,MACZ,gBAAAU;AAAA,UAACK;AAAA,UAAA;AAAA,YACI,GAAGf;AAAAA,YACJ,YAAYI,KAAA,gBAAAA,EAAc,IAAI,CAACU,MAAQA,EAAI;AAAA,UAAI;AAAA,QAAA;AAAA,QAGvD,gBAAAE;AAAA,QACA,iBAAiB;AAAA,QAChB,GAAKV,IAA4C,CAAA,IAAhC,EAAE,YAAY,cAAA;AAAA,QAC/B,GAAGC;AAAA,MAAA;AAAA,IAAA;AAAA,IAER,gBAAAG,EAAC,OAAA,EAAI,WAAU,WACX,UAAA,gBAAAA;AAAA,MAACO;AAAA,MAAA;AAAA,QACG,IAAG;AAAA,QACH,QAAQ;AAAA,QACR,OAAO;AAAA,QACP,WAAU;AAAA,QACV,aAAa;AAAA,QACb,YAAW;AAAA,QACX,aAAa,CAAC,UAAU;AAAA,MAAA;AAAA,IAAA,EAC5B,CACJ;AAAA,EAAA,GACJ;AAER;"}
1
+ {"version":3,"file":"GanttChart.js","sources":["../../../../../lib/@ecme/components/shared/GanttChart/GanttChart.tsx"],"sourcesContent":["import { ViewMode, Gantt } from 'gantt-task-react'\nimport TaskListTable from './TaskListTable'\nimport TaskListHeader from './TaskListHeader'\nimport TooltipContent from './TooltipContent'\nimport tasksPreProcess from './tasksPreProcess'\nimport { PatternLines } from '@visx/pattern'\nimport type { ExtraCell } from './TaskListTable'\nimport type { ExtraHeader } from './TaskListHeader'\nimport type { Task, GanttProps } from 'gantt-task-react'\n\ntype ExtendedTask<T extends Record<string, unknown> = NonNullable<unknown>> =\n Task & {\n barVariant?: string\n } & T\n\ntype GanttChartProps<T extends Record<string, unknown>> = GanttProps & {\n extraColumns?: Array<{\n header: ExtraHeader\n cell: ExtraCell\n }>\n tasks: ExtendedTask<T>[]\n colorsMap?: Record<string, string>\n showArrow?: boolean\n}\n\nconst GanttChart = <T extends Record<string, unknown>>(\n props: GanttChartProps<T>,\n) => {\n const {\n tasks,\n viewMode = ViewMode.Day,\n extraColumns,\n colorsMap = {},\n showArrow,\n ...rest\n } = props\n\n return (\n <>\n <Gantt\n tasks={tasksPreProcess(tasks, colorsMap)}\n viewMode={viewMode}\n listCellWidth={'200px'}\n columnWidth={65}\n barProgressColor={'#3380fa'}\n barProgressSelectedColor={'#3380fa'}\n barBackgroundColor={'#e2e8f0'}\n barBackgroundSelectedColor={'#e2e8f0'}\n projectProgressColor={'#6299f1'}\n projectProgressSelectedColor={'#6299f1'}\n projectBackgroundColor=\"#3380fa\"\n projectBackgroundSelectedColor=\"#3380fa\"\n milestoneBackgroundColor=\"#3380fa\"\n milestoneBackgroundSelectedColor=\"#3380fa\"\n todayColor=\"url(#horzLines)\"\n rowHeight={50}\n TaskListHeader={(props) => (\n <TaskListHeader\n {...props}\n extraHeaders={extraColumns?.map((col) => col.header)}\n />\n )}\n TaskListTable={(props) => (\n <TaskListTable\n {...props}\n extraCells={extraColumns?.map((col) => col.cell)}\n />\n )}\n TooltipContent={TooltipContent}\n barCornerRadius={6}\n {...(!showArrow ? { arrowColor: 'transparent' } : {})}\n {...rest}\n />\n <svg className=\"h-0 w-0\">\n <PatternLines\n id=\"horzLines\"\n height={10}\n width={10}\n className=\"stroke-gray-200 dark:stroke-gray-700\"\n strokeWidth={1.5}\n background=\"transparent\"\n orientation={['diagonal']}\n />\n </svg>\n </>\n )\n}\n\nexport type { Task, ExtendedTask }\n\nexport default GanttChart\n"],"names":["GanttChart","props","tasks","viewMode","ViewMode","extraColumns","colorsMap","showArrow","rest","jsxs","Fragment","jsx","Gantt","tasksPreProcess","TaskListHeader","col","TaskListTable","TooltipContent","PatternLines"],"mappings":";;;;;;;AAyBA,MAAMA,IAAa,CACfC,MACC;AACD,QAAM;AAAA,IACF,OAAAC;AAAA,IACA,UAAAC,IAAWC,EAAS;AAAA,IACpB,cAAAC;AAAA,IACA,WAAAC,IAAY,CAAA;AAAA,IACZ,WAAAC;AAAA,IACA,GAAGC;AAAA,EAAA,IACHP;AAEJ,SACI,gBAAAQ,EAAAC,GAAA,EACI,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACG,OAAOC,EAAgBX,GAAOI,CAAS;AAAA,QACvC,UAAAH;AAAA,QACA,eAAe;AAAA,QACf,aAAa;AAAA,QACb,kBAAkB;AAAA,QAClB,0BAA0B;AAAA,QAC1B,oBAAoB;AAAA,QACpB,4BAA4B;AAAA,QAC5B,sBAAsB;AAAA,QACtB,8BAA8B;AAAA,QAC9B,wBAAuB;AAAA,QACvB,gCAA+B;AAAA,QAC/B,0BAAyB;AAAA,QACzB,kCAAiC;AAAA,QACjC,YAAW;AAAA,QACX,WAAW;AAAA,QACX,gBAAgB,CAACF,MACb,gBAAAU;AAAA,UAACG;AAAA,UAAA;AAAA,YACI,GAAGb;AAAAA,YACJ,cAAcI,GAAc,IAAI,CAACU,MAAQA,EAAI,MAAM;AAAA,UAAA;AAAA,QAAA;AAAA,QAG3D,eAAe,CAACd,MACZ,gBAAAU;AAAA,UAACK;AAAA,UAAA;AAAA,YACI,GAAGf;AAAAA,YACJ,YAAYI,GAAc,IAAI,CAACU,MAAQA,EAAI,IAAI;AAAA,UAAA;AAAA,QAAA;AAAA,QAGvD,gBAAAE;AAAA,QACA,iBAAiB;AAAA,QAChB,GAAKV,IAA4C,CAAA,IAAhC,EAAE,YAAY,cAAA;AAAA,QAC/B,GAAGC;AAAA,MAAA;AAAA,IAAA;AAAA,IAER,gBAAAG,EAAC,OAAA,EAAI,WAAU,WACX,UAAA,gBAAAA;AAAA,MAACO;AAAA,MAAA;AAAA,QACG,IAAG;AAAA,QACH,QAAQ;AAAA,QACR,OAAO;AAAA,QACP,WAAU;AAAA,QACV,aAAa;AAAA,QACb,YAAW;AAAA,QACX,aAAa,CAAC,UAAU;AAAA,MAAA;AAAA,IAAA,EAC5B,CACJ;AAAA,EAAA,GACJ;AAER;"}
@@ -1,41 +1,41 @@
1
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
1
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
2
2
  import c from "../../../utils/classNames.js";
3
3
  import { TbChevronDown as h, TbChevronRight as p } from "react-icons/tb";
4
- const f = ({
5
- rowHeight: l,
6
- rowWidth: r,
7
- tasks: n,
4
+ const v = ({
5
+ rowHeight: a,
6
+ rowWidth: l,
7
+ tasks: d,
8
8
  onExpanderClick: s,
9
- extraCells: d
10
- }) => /* @__PURE__ */ i("div", { className: "table", children: n.map((e, o) => /* @__PURE__ */ a(
9
+ extraCells: n
10
+ }) => /* @__PURE__ */ r("div", { className: "table", children: d.map((e, t) => /* @__PURE__ */ i(
11
11
  "div",
12
12
  {
13
13
  className: "_34SS0",
14
- style: { height: l },
14
+ style: { height: a },
15
15
  children: [
16
- /* @__PURE__ */ i(
16
+ /* @__PURE__ */ r(
17
17
  "div",
18
18
  {
19
19
  className: "table-cell align-middle whitespace-nowrap overflow-hidden text-ellipsis border-r border-gray-200 dark:border-gray-700 px-2",
20
20
  style: {
21
- minWidth: r,
22
- maxWidth: r
21
+ minWidth: l,
22
+ maxWidth: l
23
23
  },
24
24
  title: e.name,
25
- children: /* @__PURE__ */ a("div", { className: "flex items-center gap-1", children: [
26
- /* @__PURE__ */ a(
25
+ children: /* @__PURE__ */ i("div", { className: "flex items-center gap-1", children: [
26
+ /* @__PURE__ */ i(
27
27
  "div",
28
28
  {
29
29
  className: "text-lg cursor-pointer min-w-4",
30
30
  role: "button",
31
31
  onClick: () => s(e),
32
32
  children: [
33
- e.hideChildren === !1 && /* @__PURE__ */ i(h, {}),
34
- e.hideChildren === !0 && /* @__PURE__ */ i(p, {})
33
+ e.hideChildren === !1 && /* @__PURE__ */ r(h, {}),
34
+ e.hideChildren === !0 && /* @__PURE__ */ r(p, {})
35
35
  ]
36
36
  }
37
37
  ),
38
- /* @__PURE__ */ i(
38
+ /* @__PURE__ */ r(
39
39
  "div",
40
40
  {
41
41
  className: c(
@@ -48,26 +48,26 @@ const f = ({
48
48
  ] })
49
49
  }
50
50
  ),
51
- d == null ? void 0 : d.map((t, m) => /* @__PURE__ */ a(
51
+ n?.map((o, m) => /* @__PURE__ */ i(
52
52
  "div",
53
53
  {
54
54
  className: "table-cell align-middle whitespace-nowrap overflow-hidden text-ellipsis border-r border-gray-200 dark:border-gray-700 px-2",
55
55
  style: {
56
- minWidth: r,
57
- maxWidth: r
56
+ minWidth: l,
57
+ maxWidth: l
58
58
  },
59
59
  children: [
60
60
  " ",
61
- t(e)
61
+ o(e)
62
62
  ]
63
63
  },
64
- `${e.id}-cell-${o}-${m}`
64
+ `${e.id}-cell-${t}-${m}`
65
65
  ))
66
66
  ]
67
67
  },
68
68
  `${e.id}row`
69
69
  )) });
70
70
  export {
71
- f as default
71
+ v as default
72
72
  };
73
73
  //# sourceMappingURL=TaskListTable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TaskListTable.js","sources":["../../../../../lib/@ecme/components/shared/GanttChart/TaskListTable.tsx"],"sourcesContent":["import classNames from '@/utils/classNames'\nimport { TbChevronRight, TbChevronDown } from 'react-icons/tb'\nimport type { Task } from 'gantt-task-react'\nimport type { ReactNode } from 'react'\n\ntype ExtendedTask = Task & { barVariant?: string }\n\nexport type ExtraCell = (task: ExtendedTask) => ReactNode | string\n\ntype TaskListTableProps = {\n rowHeight: number\n rowWidth: string\n fontFamily: string\n fontSize: string\n locale: string\n tasks: ExtendedTask[]\n selectedTaskId: string\n setSelectedTask: (taskId: string) => void\n onExpanderClick: (task: Task) => void\n extraCells?: ExtraCell[]\n}\n\nconst TaskListTable = ({\n rowHeight,\n rowWidth,\n tasks,\n onExpanderClick,\n extraCells,\n}: TaskListTableProps) => {\n return (\n <div className=\"table\">\n {tasks.map((t, rowIndex) => {\n return (\n <div\n key={`${t.id}row`}\n className=\"_34SS0\"\n style={{ height: rowHeight }}\n >\n <div\n className=\"table-cell align-middle whitespace-nowrap overflow-hidden text-ellipsis border-r border-gray-200 dark:border-gray-700 px-2\"\n style={{\n minWidth: rowWidth,\n maxWidth: rowWidth,\n }}\n title={t.name}\n >\n <div className=\"flex items-center gap-1\">\n <div\n className=\"text-lg cursor-pointer min-w-4\"\n role=\"button\"\n onClick={() => onExpanderClick(t)}\n >\n {t.hideChildren === false && (\n <TbChevronDown />\n )}\n {t.hideChildren === true && (\n <TbChevronRight />\n )}\n </div>\n <div\n className={classNames(\n 'truncate',\n typeof t.hideChildren === 'boolean' &&\n 'heading-text font-bold',\n )}\n >\n {t.name}\n </div>\n </div>\n </div>\n {extraCells?.map((cell, cellIndex) => (\n <div\n key={`${t.id}-cell-${rowIndex}-${cellIndex}`}\n className=\"table-cell align-middle whitespace-nowrap overflow-hidden text-ellipsis border-r border-gray-200 dark:border-gray-700 px-2\"\n style={{\n minWidth: rowWidth,\n maxWidth: rowWidth,\n }}\n >\n &nbsp;{cell(t)}\n </div>\n ))}\n </div>\n )\n })}\n </div>\n )\n}\n\nexport default TaskListTable\n"],"names":["TaskListTable","rowHeight","rowWidth","tasks","onExpanderClick","extraCells","jsx","t","rowIndex","jsxs","TbChevronDown","TbChevronRight","classNames","cell","cellIndex"],"mappings":";;;AAsBA,MAAMA,IAAgB,CAAC;AAAA,EACnB,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,YAAAC;AACJ,MAEQ,gBAAAC,EAAC,SAAI,WAAU,SACV,YAAM,IAAI,CAACC,GAAGC,MAEP,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IAEG,WAAU;AAAA,IACV,OAAO,EAAE,QAAQR,EAAA;AAAA,IAEjB,UAAA;AAAA,MAAA,gBAAAK;AAAA,QAAC;AAAA,QAAA;AAAA,UACG,WAAU;AAAA,UACV,OAAO;AAAA,YACH,UAAUJ;AAAA,YACV,UAAUA;AAAA,UAAA;AAAA,UAEd,OAAOK,EAAE;AAAA,UAET,UAAA,gBAAAE,EAAC,OAAA,EAAI,WAAU,2BACX,UAAA;AAAA,YAAA,gBAAAA;AAAA,cAAC;AAAA,cAAA;AAAA,gBACG,WAAU;AAAA,gBACV,MAAK;AAAA,gBACL,SAAS,MAAML,EAAgBG,CAAC;AAAA,gBAE/B,UAAA;AAAA,kBAAAA,EAAE,iBAAiB,MAChB,gBAAAD,EAACI,GAAA,CAAA,CAAc;AAAA,kBAElBH,EAAE,iBAAiB,MAChB,gBAAAD,EAACK,GAAA,CAAA,CAAe;AAAA,gBAAA;AAAA,cAAA;AAAA,YAAA;AAAA,YAGxB,gBAAAL;AAAA,cAAC;AAAA,cAAA;AAAA,gBACG,WAAWM;AAAA,kBACP;AAAA,kBACA,OAAOL,EAAE,gBAAiB,aACtB;AAAA,gBAAA;AAAA,gBAGP,UAAAA,EAAE;AAAA,cAAA;AAAA,YAAA;AAAA,UACP,EAAA,CACJ;AAAA,QAAA;AAAA,MAAA;AAAA,MAEHF,KAAA,gBAAAA,EAAY,IAAI,CAACQ,GAAMC,MACpB,gBAAAL;AAAA,QAAC;AAAA,QAAA;AAAA,UAEG,WAAU;AAAA,UACV,OAAO;AAAA,YACH,UAAUP;AAAA,YACV,UAAUA;AAAA,UAAA;AAAA,UAEjB,UAAA;AAAA,YAAA;AAAA,YACUW,EAAKN,CAAC;AAAA,UAAA;AAAA,QAAA;AAAA,QAPR,GAAGA,EAAE,EAAE,SAASC,CAAQ,IAAIM,CAAS;AAAA,MAAA;AAAA,IASjD;AAAA,EAAA;AAAA,EA/CI,GAAGP,EAAE,EAAE;AAAA,CAkDvB,EAAA,CACL;"}
1
+ {"version":3,"file":"TaskListTable.js","sources":["../../../../../lib/@ecme/components/shared/GanttChart/TaskListTable.tsx"],"sourcesContent":["import classNames from '@/utils/classNames'\nimport { TbChevronRight, TbChevronDown } from 'react-icons/tb'\nimport type { Task } from 'gantt-task-react'\nimport type { ReactNode } from 'react'\n\ntype ExtendedTask = Task & { barVariant?: string }\n\nexport type ExtraCell = (task: ExtendedTask) => ReactNode | string\n\ntype TaskListTableProps = {\n rowHeight: number\n rowWidth: string\n fontFamily: string\n fontSize: string\n locale: string\n tasks: ExtendedTask[]\n selectedTaskId: string\n setSelectedTask: (taskId: string) => void\n onExpanderClick: (task: Task) => void\n extraCells?: ExtraCell[]\n}\n\nconst TaskListTable = ({\n rowHeight,\n rowWidth,\n tasks,\n onExpanderClick,\n extraCells,\n}: TaskListTableProps) => {\n return (\n <div className=\"table\">\n {tasks.map((t, rowIndex) => {\n return (\n <div\n key={`${t.id}row`}\n className=\"_34SS0\"\n style={{ height: rowHeight }}\n >\n <div\n className=\"table-cell align-middle whitespace-nowrap overflow-hidden text-ellipsis border-r border-gray-200 dark:border-gray-700 px-2\"\n style={{\n minWidth: rowWidth,\n maxWidth: rowWidth,\n }}\n title={t.name}\n >\n <div className=\"flex items-center gap-1\">\n <div\n className=\"text-lg cursor-pointer min-w-4\"\n role=\"button\"\n onClick={() => onExpanderClick(t)}\n >\n {t.hideChildren === false && (\n <TbChevronDown />\n )}\n {t.hideChildren === true && (\n <TbChevronRight />\n )}\n </div>\n <div\n className={classNames(\n 'truncate',\n typeof t.hideChildren === 'boolean' &&\n 'heading-text font-bold',\n )}\n >\n {t.name}\n </div>\n </div>\n </div>\n {extraCells?.map((cell, cellIndex) => (\n <div\n key={`${t.id}-cell-${rowIndex}-${cellIndex}`}\n className=\"table-cell align-middle whitespace-nowrap overflow-hidden text-ellipsis border-r border-gray-200 dark:border-gray-700 px-2\"\n style={{\n minWidth: rowWidth,\n maxWidth: rowWidth,\n }}\n >\n &nbsp;{cell(t)}\n </div>\n ))}\n </div>\n )\n })}\n </div>\n )\n}\n\nexport default TaskListTable\n"],"names":["TaskListTable","rowHeight","rowWidth","tasks","onExpanderClick","extraCells","jsx","t","rowIndex","jsxs","TbChevronDown","TbChevronRight","classNames","cell","cellIndex"],"mappings":";;;AAsBA,MAAMA,IAAgB,CAAC;AAAA,EACnB,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,YAAAC;AACJ,MAEQ,gBAAAC,EAAC,SAAI,WAAU,SACV,YAAM,IAAI,CAACC,GAAGC,MAEP,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IAEG,WAAU;AAAA,IACV,OAAO,EAAE,QAAQR,EAAA;AAAA,IAEjB,UAAA;AAAA,MAAA,gBAAAK;AAAA,QAAC;AAAA,QAAA;AAAA,UACG,WAAU;AAAA,UACV,OAAO;AAAA,YACH,UAAUJ;AAAA,YACV,UAAUA;AAAA,UAAA;AAAA,UAEd,OAAOK,EAAE;AAAA,UAET,UAAA,gBAAAE,EAAC,OAAA,EAAI,WAAU,2BACX,UAAA;AAAA,YAAA,gBAAAA;AAAA,cAAC;AAAA,cAAA;AAAA,gBACG,WAAU;AAAA,gBACV,MAAK;AAAA,gBACL,SAAS,MAAML,EAAgBG,CAAC;AAAA,gBAE/B,UAAA;AAAA,kBAAAA,EAAE,iBAAiB,MAChB,gBAAAD,EAACI,GAAA,CAAA,CAAc;AAAA,kBAElBH,EAAE,iBAAiB,MAChB,gBAAAD,EAACK,GAAA,CAAA,CAAe;AAAA,gBAAA;AAAA,cAAA;AAAA,YAAA;AAAA,YAGxB,gBAAAL;AAAA,cAAC;AAAA,cAAA;AAAA,gBACG,WAAWM;AAAA,kBACP;AAAA,kBACA,OAAOL,EAAE,gBAAiB,aACtB;AAAA,gBAAA;AAAA,gBAGP,UAAAA,EAAE;AAAA,cAAA;AAAA,YAAA;AAAA,UACP,EAAA,CACJ;AAAA,QAAA;AAAA,MAAA;AAAA,MAEHF,GAAY,IAAI,CAACQ,GAAMC,MACpB,gBAAAL;AAAA,QAAC;AAAA,QAAA;AAAA,UAEG,WAAU;AAAA,UACV,OAAO;AAAA,YACH,UAAUP;AAAA,YACV,UAAUA;AAAA,UAAA;AAAA,UAEjB,UAAA;AAAA,YAAA;AAAA,YACUW,EAAKN,CAAC;AAAA,UAAA;AAAA,QAAA;AAAA,QAPR,GAAGA,EAAE,EAAE,SAASC,CAAQ,IAAIM,CAAS;AAAA,MAAA,CASjD;AAAA,IAAA;AAAA,EAAA;AAAA,EA/CI,GAAGP,EAAE,EAAE;AAAA,CAkDvB,EAAA,CACL;"}
@@ -1,26 +1,26 @@
1
- import { jsxs as e, Fragment as i, jsx as c } from "react/jsx-runtime";
2
- import f from "yet-another-react-lightbox";
1
+ import { jsxs as s, Fragment as a, jsx as l } from "react/jsx-runtime";
2
+ import p from "yet-another-react-lightbox";
3
3
  import "yet-another-react-lightbox/styles.css";
4
- const j = ({
5
- children: m,
6
- index: t = -1,
7
- slides: a,
8
- onClose: r,
9
- ...p
10
- }) => /* @__PURE__ */ e(i, { children: [
11
- m,
12
- /* @__PURE__ */ c(
13
- f,
4
+ const f = ({
5
+ children: o,
6
+ index: r = -1,
7
+ slides: t,
8
+ onClose: e,
9
+ ...m
10
+ }) => /* @__PURE__ */ s(a, { children: [
11
+ o,
12
+ /* @__PURE__ */ l(
13
+ p,
14
14
  {
15
- index: t,
16
- slides: a,
17
- ...p,
18
- open: t >= 0,
19
- close: () => r == null ? void 0 : r()
15
+ index: r,
16
+ slides: t,
17
+ ...m,
18
+ open: r >= 0,
19
+ close: () => e?.()
20
20
  }
21
21
  )
22
22
  ] });
23
23
  export {
24
- j as default
24
+ f as default
25
25
  };
26
26
  //# sourceMappingURL=ImageGallery.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ImageGallery.js","sources":["../../../../lib/@ecme/components/shared/ImageGallery.tsx"],"sourcesContent":["import Lightbox, { LightboxProps } from 'yet-another-react-lightbox'\nimport 'yet-another-react-lightbox/styles.css'\nimport type { ReactNode } from 'react'\n\nexport type ImageGalleryProps = Partial<LightboxProps> & {\n children?: ReactNode\n index?: number\n onClose?: () => void\n}\n\nconst ImageGallery = ({\n children,\n index = -1,\n slides,\n onClose,\n ...rest\n}: ImageGalleryProps) => {\n return (\n <>\n {children}\n <Lightbox\n index={index}\n slides={slides}\n {...rest}\n open={index >= 0}\n close={() => onClose?.()}\n />\n </>\n )\n}\n\nexport default ImageGallery\n"],"names":["ImageGallery","children","index","slides","onClose","rest","jsxs","Fragment","jsx","Lightbox"],"mappings":";;;AAUA,MAAMA,IAAe,CAAC;AAAA,EAClB,UAAAC;AAAA,EACA,OAAAC,IAAQ;AAAA,EACR,QAAAC;AAAA,EACA,SAAAC;AAAA,EACA,GAAGC;AACP,MAEQ,gBAAAC,EAAAC,GAAA,EACK,UAAA;AAAA,EAAAN;AAAA,EACD,gBAAAO;AAAA,IAACC;AAAA,IAAA;AAAA,MACG,OAAAP;AAAA,MACA,QAAAC;AAAA,MACC,GAAGE;AAAA,MACJ,MAAMH,KAAS;AAAA,MACf,OAAO,MAAME,KAAA,gBAAAA;AAAA,IAAU;AAAA,EAAA;AAC3B,GACJ;"}
1
+ {"version":3,"file":"ImageGallery.js","sources":["../../../../lib/@ecme/components/shared/ImageGallery.tsx"],"sourcesContent":["import Lightbox, { LightboxProps } from 'yet-another-react-lightbox'\nimport 'yet-another-react-lightbox/styles.css'\nimport type { ReactNode } from 'react'\n\nexport type ImageGalleryProps = Partial<LightboxProps> & {\n children?: ReactNode\n index?: number\n onClose?: () => void\n}\n\nconst ImageGallery = ({\n children,\n index = -1,\n slides,\n onClose,\n ...rest\n}: ImageGalleryProps) => {\n return (\n <>\n {children}\n <Lightbox\n index={index}\n slides={slides}\n {...rest}\n open={index >= 0}\n close={() => onClose?.()}\n />\n </>\n )\n}\n\nexport default ImageGallery\n"],"names":["ImageGallery","children","index","slides","onClose","rest","jsxs","Fragment","jsx","Lightbox"],"mappings":";;;AAUA,MAAMA,IAAe,CAAC;AAAA,EAClB,UAAAC;AAAA,EACA,OAAAC,IAAQ;AAAA,EACR,QAAAC;AAAA,EACA,SAAAC;AAAA,EACA,GAAGC;AACP,MAEQ,gBAAAC,EAAAC,GAAA,EACK,UAAA;AAAA,EAAAN;AAAA,EACD,gBAAAO;AAAA,IAACC;AAAA,IAAA;AAAA,MACG,OAAAP;AAAA,MACA,QAAAC;AAAA,MACC,GAAGE;AAAA,MACJ,MAAMH,KAAS;AAAA,MACf,OAAO,MAAME,IAAA;AAAA,IAAU;AAAA,EAAA;AAC3B,GACJ;"}
@@ -1,48 +1,48 @@
1
- import { jsx as e } from "react/jsx-runtime";
1
+ import { jsx as n } from "react/jsx-runtime";
2
2
  import { useId as d } from "react";
3
3
  import p from "./useMasonry.js";
4
4
  import { MasonryItemContext as _ } from "./context.js";
5
- const M = (s) => {
5
+ const M = (e) => {
6
6
  const {
7
- gap: t,
8
- asElement: l = "div",
9
- columnProps: o,
7
+ gap: s,
8
+ asElement: t = "div",
9
+ columnProps: l,
10
10
  columns: i,
11
- ref: y,
12
- ...a
13
- } = s, r = d(), c = p(s.children, i);
14
- return /* @__PURE__ */ e(
15
- l,
11
+ ref: c,
12
+ ...m
13
+ } = e, o = d(), u = p(e.children, i);
14
+ return /* @__PURE__ */ n(
15
+ t,
16
16
  {
17
- "data-masonry-id": `Masonry-${r}`,
18
- ...a,
19
- ref: y,
20
- style: { display: "flex", gap: t, ...a.style },
21
- children: c.map((u, n) => /* @__PURE__ */ e(
22
- l,
17
+ "data-masonry-id": `Masonry-${o}`,
18
+ ...m,
19
+ ref: c,
20
+ style: { display: "flex", gap: s, ...m.style },
21
+ children: u.map((y, r) => /* @__PURE__ */ n(
22
+ t,
23
23
  {
24
- "data-masonry-column": n + 1,
25
- ...o,
24
+ "data-masonry-column": r + 1,
25
+ ...l,
26
26
  style: {
27
27
  display: "flex",
28
28
  flex: 1,
29
29
  flexDirection: "column",
30
- gap: t,
31
- ...o == null ? void 0 : o.style
30
+ gap: s,
31
+ ...l?.style
32
32
  },
33
- children: u.map((f, m) => /* @__PURE__ */ e(
33
+ children: y.map((f, a) => /* @__PURE__ */ n(
34
34
  _.Provider,
35
35
  {
36
36
  value: {
37
- column: n,
38
- position: m
37
+ column: r,
38
+ position: a
39
39
  },
40
40
  children: f
41
41
  },
42
- `Masonry__Column_Child_${r}_${m}`
42
+ `Masonry__Column_Child_${o}_${a}`
43
43
  ))
44
44
  },
45
- `Masonry__Column_${r}_${n}`
45
+ `Masonry__Column_${o}_${r}`
46
46
  ))
47
47
  }
48
48
  );
@@ -1 +1 @@
1
- {"version":3,"file":"Masonry.js","sources":["../../../../../lib/@ecme/components/shared/Masonry/Masonry.tsx"],"sourcesContent":["import { ElementType, useId } from 'react'\nimport { MasonryProps } from './types'\nimport useMasonry from './useMasonry'\nimport { MasonryItemContext } from './context'\nimport type { Ref } from 'react'\n\nconst MasonryBase = <T extends ElementType = 'div'>(\n props: MasonryProps<T> & {\n ref?: Ref<T>\n },\n) => {\n const {\n gap,\n asElement: Component = 'div',\n columnProps,\n columns,\n ref: forwaredRef,\n ...rest\n } = props\n\n const uniq = useId()\n const columnsChildren = useMasonry(props.children, columns)\n\n return (\n <Component\n data-masonry-id={`Masonry-${uniq}`}\n {...rest}\n ref={forwaredRef}\n style={{ display: 'flex', gap, ...rest.style }}\n >\n {columnsChildren.map((column, index) => {\n return (\n <Component\n key={`Masonry__Column_${uniq}_${index}`}\n data-masonry-column={index + 1}\n {...columnProps}\n style={{\n display: 'flex',\n flex: 1,\n flexDirection: 'column',\n gap,\n ...columnProps?.style,\n }}\n >\n {column.map((child, childIndex) => {\n return (\n <MasonryItemContext.Provider\n key={`Masonry__Column_Child_${uniq}_${childIndex}`}\n value={{\n column: index,\n position: childIndex,\n }}\n >\n {child}\n </MasonryItemContext.Provider>\n )\n })}\n </Component>\n )\n })}\n </Component>\n )\n}\n\nexport const Masonry = MasonryBase\n"],"names":["MasonryBase","props","gap","Component","columnProps","columns","forwaredRef","rest","uniq","useId","columnsChildren","useMasonry","jsx","column","index","child","childIndex","MasonryItemContext","Masonry"],"mappings":";;;;AAMA,MAAMA,IAAc,CAChBC,MAGC;AACD,QAAM;AAAA,IACF,KAAAC;AAAA,IACA,WAAWC,IAAY;AAAA,IACvB,aAAAC;AAAA,IACA,SAAAC;AAAA,IACA,KAAKC;AAAA,IACL,GAAGC;AAAA,EAAA,IACHN,GAEEO,IAAOC,EAAA,GACPC,IAAkBC,EAAWV,EAAM,UAAUI,CAAO;AAE1D,SACI,gBAAAO;AAAA,IAACT;AAAA,IAAA;AAAA,MACG,mBAAiB,WAAWK,CAAI;AAAA,MAC/B,GAAGD;AAAA,MACJ,KAAKD;AAAA,MACL,OAAO,EAAE,SAAS,QAAQ,KAAAJ,GAAK,GAAGK,EAAK,MAAA;AAAA,MAEtC,UAAAG,EAAgB,IAAI,CAACG,GAAQC,MAEtB,gBAAAF;AAAA,QAACT;AAAA,QAAA;AAAA,UAEG,uBAAqBW,IAAQ;AAAA,UAC5B,GAAGV;AAAA,UACJ,OAAO;AAAA,YACH,SAAS;AAAA,YACT,MAAM;AAAA,YACN,eAAe;AAAA,YACf,KAAAF;AAAA,YACA,GAAGE,KAAA,gBAAAA,EAAa;AAAA,UAAA;AAAA,UAGnB,UAAAS,EAAO,IAAI,CAACE,GAAOC,MAEZ,gBAAAJ;AAAA,YAACK,EAAmB;AAAA,YAAnB;AAAA,cAEG,OAAO;AAAA,gBACH,QAAQH;AAAA,gBACR,UAAUE;AAAA,cAAA;AAAA,cAGb,UAAAD;AAAA,YAAA;AAAA,YANI,yBAAyBP,CAAI,IAAIQ,CAAU;AAAA,UAAA,CAS3D;AAAA,QAAA;AAAA,QAvBI,mBAAmBR,CAAI,IAAIM,CAAK;AAAA,MAAA,CA0BhD;AAAA,IAAA;AAAA,EAAA;AAGb,GAEaI,IAAUlB;"}
1
+ {"version":3,"file":"Masonry.js","sources":["../../../../../lib/@ecme/components/shared/Masonry/Masonry.tsx"],"sourcesContent":["import { ElementType, useId } from 'react'\nimport { MasonryProps } from './types'\nimport useMasonry from './useMasonry'\nimport { MasonryItemContext } from './context'\nimport type { Ref } from 'react'\n\nconst MasonryBase = <T extends ElementType = 'div'>(\n props: MasonryProps<T> & {\n ref?: Ref<T>\n },\n) => {\n const {\n gap,\n asElement: Component = 'div',\n columnProps,\n columns,\n ref: forwaredRef,\n ...rest\n } = props\n\n const uniq = useId()\n const columnsChildren = useMasonry(props.children, columns)\n\n return (\n <Component\n data-masonry-id={`Masonry-${uniq}`}\n {...rest}\n ref={forwaredRef}\n style={{ display: 'flex', gap, ...rest.style }}\n >\n {columnsChildren.map((column, index) => {\n return (\n <Component\n key={`Masonry__Column_${uniq}_${index}`}\n data-masonry-column={index + 1}\n {...columnProps}\n style={{\n display: 'flex',\n flex: 1,\n flexDirection: 'column',\n gap,\n ...columnProps?.style,\n }}\n >\n {column.map((child, childIndex) => {\n return (\n <MasonryItemContext.Provider\n key={`Masonry__Column_Child_${uniq}_${childIndex}`}\n value={{\n column: index,\n position: childIndex,\n }}\n >\n {child}\n </MasonryItemContext.Provider>\n )\n })}\n </Component>\n )\n })}\n </Component>\n )\n}\n\nexport const Masonry = MasonryBase\n"],"names":["MasonryBase","props","gap","Component","columnProps","columns","forwaredRef","rest","uniq","useId","columnsChildren","useMasonry","jsx","column","index","child","childIndex","MasonryItemContext","Masonry"],"mappings":";;;;AAMA,MAAMA,IAAc,CAChBC,MAGC;AACD,QAAM;AAAA,IACF,KAAAC;AAAA,IACA,WAAWC,IAAY;AAAA,IACvB,aAAAC;AAAA,IACA,SAAAC;AAAA,IACA,KAAKC;AAAA,IACL,GAAGC;AAAA,EAAA,IACHN,GAEEO,IAAOC,EAAA,GACPC,IAAkBC,EAAWV,EAAM,UAAUI,CAAO;AAE1D,SACI,gBAAAO;AAAA,IAACT;AAAA,IAAA;AAAA,MACG,mBAAiB,WAAWK,CAAI;AAAA,MAC/B,GAAGD;AAAA,MACJ,KAAKD;AAAA,MACL,OAAO,EAAE,SAAS,QAAQ,KAAAJ,GAAK,GAAGK,EAAK,MAAA;AAAA,MAEtC,UAAAG,EAAgB,IAAI,CAACG,GAAQC,MAEtB,gBAAAF;AAAA,QAACT;AAAA,QAAA;AAAA,UAEG,uBAAqBW,IAAQ;AAAA,UAC5B,GAAGV;AAAA,UACJ,OAAO;AAAA,YACH,SAAS;AAAA,YACT,MAAM;AAAA,YACN,eAAe;AAAA,YACf,KAAAF;AAAA,YACA,GAAGE,GAAa;AAAA,UAAA;AAAA,UAGnB,UAAAS,EAAO,IAAI,CAACE,GAAOC,MAEZ,gBAAAJ;AAAA,YAACK,EAAmB;AAAA,YAAnB;AAAA,cAEG,OAAO;AAAA,gBACH,QAAQH;AAAA,gBACR,UAAUE;AAAA,cAAA;AAAA,cAGb,UAAAD;AAAA,YAAA;AAAA,YANI,yBAAyBP,CAAI,IAAIQ,CAAU;AAAA,UAAA,CAS3D;AAAA,QAAA;AAAA,QAvBI,mBAAmBR,CAAI,IAAIM,CAAK;AAAA,MAAA,CA0BhD;AAAA,IAAA;AAAA,EAAA;AAGb,GAEaI,IAAUlB;"}
@@ -1,77 +1,75 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { useState as I, useRef as N, useEffect as O } from "react";
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import { useState as R, useRef as $, useEffect as v } from "react";
3
3
  import "../ui/Input/index.js";
4
- import T from "../../utils/classNames.js";
5
- import V from "../ui/Input/Input.js";
6
- const j = ({
7
- length: e = 6,
8
- value: a = "",
9
- onChange: c,
10
- disabled: m = !1,
11
- className: i = "",
12
- inputClass: D,
13
- autoFocus: w = !1,
14
- placeholder: y,
15
- invalid: A = !1
4
+ import I from "../../utils/classNames.js";
5
+ import N from "../ui/Input/Input.js";
6
+ const E = ({
7
+ length: s = 6,
8
+ value: c = "",
9
+ onChange: f,
10
+ disabled: u = !1,
11
+ className: p = "",
12
+ inputClass: n,
13
+ autoFocus: m = !1,
14
+ placeholder: i,
15
+ invalid: D = !1
16
16
  }) => {
17
- const [_, l] = I(0), f = N([]);
18
- O(() => {
19
- f.current = Array(e).fill(null).map((r, t) => f.current[t] || null);
20
- }, [e]);
21
- const P = (r, t) => {
22
- var u;
23
- const s = r.target.value;
24
- if (s.length > 1) return;
25
- const p = a.slice(0, t) + s + a.slice(t + 1);
26
- c == null || c(p), s && t < e - 1 && (l(t + 1), (u = f.current[t + 1]) == null || u.focus());
27
- }, k = (r, t) => {
28
- var s, p, u;
29
- if (r.key === "Backspace")
30
- if (r.preventDefault(), a[t]) {
31
- const v = a.slice(0, t) + "" + a.slice(t + 1);
32
- c == null || c(v);
33
- } else t > 0 && (l(t - 1), (s = f.current[t - 1]) == null || s.focus());
34
- else r.key === "ArrowLeft" && t > 0 ? (r.preventDefault(), l(t - 1), (p = f.current[t - 1]) == null || p.focus()) : r.key === "ArrowRight" && t < e - 1 && (r.preventDefault(), l(t + 1), (u = f.current[t + 1]) == null || u.focus());
35
- }, R = (r) => {
36
- r.preventDefault();
37
- const t = r.clipboardData.getData("text/plain").slice(0, e);
38
- t.match(/^[0-9]+$/) && (c == null || c(t.padEnd(e, "")));
39
- }, $ = (r) => (t) => {
40
- f.current[r] = t;
17
+ const [O, o] = R(0), a = $([]);
18
+ v(() => {
19
+ a.current = Array(s).fill(null).map((e, t) => a.current[t] || null);
20
+ }, [s]);
21
+ const w = (e, t) => {
22
+ const r = e.target.value;
23
+ if (r.length > 1) return;
24
+ const k = c.slice(0, t) + r + c.slice(t + 1);
25
+ f?.(k), r && t < s - 1 && (o(t + 1), a.current[t + 1]?.focus());
26
+ }, y = (e, t) => {
27
+ if (e.key === "Backspace")
28
+ if (e.preventDefault(), c[t]) {
29
+ const r = c.slice(0, t) + "" + c.slice(t + 1);
30
+ f?.(r);
31
+ } else t > 0 && (o(t - 1), a.current[t - 1]?.focus());
32
+ else e.key === "ArrowLeft" && t > 0 ? (e.preventDefault(), o(t - 1), a.current[t - 1]?.focus()) : e.key === "ArrowRight" && t < s - 1 && (e.preventDefault(), o(t + 1), a.current[t + 1]?.focus());
33
+ }, A = (e) => {
34
+ e.preventDefault();
35
+ const t = e.clipboardData.getData("text/plain").slice(0, s);
36
+ t.match(/^[0-9]+$/) && f?.(t.padEnd(s, ""));
37
+ }, P = (e) => (t) => {
38
+ a.current[e] = t;
41
39
  };
42
- return /* @__PURE__ */ o("div", { className: `flex gap-2 ${i}`, children: Array(e).fill(null).map((r, t) => /* @__PURE__ */ o(
43
- V,
40
+ return /* @__PURE__ */ l("div", { className: `flex gap-2 ${p}`, children: Array(s).fill(null).map((e, t) => /* @__PURE__ */ l(
41
+ N,
44
42
  {
45
- ref: $(t),
46
- className: T(
43
+ ref: P(t),
44
+ className: I(
47
45
  "text-center text-lg h-[58px] w-[58px]",
48
- D
46
+ n
49
47
  ),
50
48
  type: "text",
51
49
  inputMode: "numeric",
52
50
  pattern: "[0-9]*",
53
51
  maxLength: 1,
54
- value: a[t] || "",
55
- disabled: m,
56
- autoFocus: w && t === 0,
57
- placeholder: y,
58
- "aria-label": `Digit ${t + 1} of ${e}`,
59
- invalid: A,
60
- onChange: (s) => P(
61
- s,
52
+ value: c[t] || "",
53
+ disabled: u,
54
+ autoFocus: m && t === 0,
55
+ placeholder: i,
56
+ "aria-label": `Digit ${t + 1} of ${s}`,
57
+ invalid: D,
58
+ onChange: (r) => w(
59
+ r,
62
60
  t
63
61
  ),
64
- onKeyDown: (s) => k(
65
- s,
62
+ onKeyDown: (r) => y(
63
+ r,
66
64
  t
67
65
  ),
68
- onPaste: R,
69
- onFocus: () => l(t)
66
+ onPaste: A,
67
+ onFocus: () => o(t)
70
68
  },
71
69
  t
72
70
  )) });
73
71
  };
74
72
  export {
75
- j as default
73
+ E as default
76
74
  };
77
75
  //# sourceMappingURL=OtpInput.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OtpInput.js","sources":["../../../../lib/@ecme/components/shared/OtpInput.tsx"],"sourcesContent":["import { useEffect, useState, useRef } from 'react'\nimport Input from '@/components/ui/Input'\nimport classNames from '@/utils/classNames'\nimport type { ChangeEvent, KeyboardEvent, ClipboardEvent } from 'react'\n\ninterface OTPInputProps {\n length?: number\n value?: string\n onChange?: (value: string) => void\n disabled?: boolean\n className?: string\n inputClass?: string\n autoFocus?: boolean\n placeholder?: string\n invalid?: boolean\n}\n\nconst OTPInput = ({\n length = 6,\n value = '',\n onChange,\n disabled = false,\n className = '',\n inputClass,\n autoFocus = false,\n placeholder,\n invalid = false,\n}: OTPInputProps) => {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const [_, setActiveInput] = useState<number>(0)\n const inputRefs = useRef<(HTMLInputElement | null)[]>([])\n\n useEffect(() => {\n inputRefs.current = Array(length)\n .fill(null)\n .map((_, i) => inputRefs.current[i] || null)\n }, [length])\n\n const handleChange = (e: ChangeEvent<HTMLInputElement>, index: number) => {\n const newValue = e.target.value\n if (newValue.length > 1) return\n\n const newOTPValue =\n value.slice(0, index) + newValue + value.slice(index + 1)\n\n onChange?.(newOTPValue)\n\n if (newValue && index < length - 1) {\n setActiveInput(index + 1)\n inputRefs.current[index + 1]?.focus()\n }\n }\n\n const handleKeyDown = (\n e: KeyboardEvent<HTMLInputElement>,\n index: number,\n ) => {\n if (e.key === 'Backspace') {\n e.preventDefault()\n if (value[index]) {\n const newOTPValue =\n value.slice(0, index) + '' + value.slice(index + 1)\n onChange?.(newOTPValue)\n } else if (index > 0) {\n setActiveInput(index - 1)\n inputRefs.current[index - 1]?.focus()\n }\n } else if (e.key === 'ArrowLeft' && index > 0) {\n e.preventDefault()\n setActiveInput(index - 1)\n inputRefs.current[index - 1]?.focus()\n } else if (e.key === 'ArrowRight' && index < length - 1) {\n e.preventDefault()\n setActiveInput(index + 1)\n inputRefs.current[index + 1]?.focus()\n }\n }\n\n const handlePaste = (e: ClipboardEvent<HTMLInputElement>) => {\n e.preventDefault()\n const pastedData = e.clipboardData\n .getData('text/plain')\n .slice(0, length)\n if (pastedData.match(/^[0-9]+$/)) {\n onChange?.(pastedData.padEnd(length, ''))\n }\n }\n\n const setRef = (index: number) => (ref: HTMLInputElement | null) => {\n inputRefs.current[index] = ref\n }\n\n return (\n <div className={`flex gap-2 ${className}`}>\n {Array(length)\n .fill(null)\n .map((_, index) => (\n <Input\n key={index}\n ref={setRef(index)}\n className={classNames(\n 'text-center text-lg h-[58px] w-[58px]',\n inputClass,\n )}\n type=\"text\"\n inputMode=\"numeric\"\n pattern=\"[0-9]*\"\n maxLength={1}\n value={value[index] || ''}\n disabled={disabled}\n autoFocus={autoFocus && index === 0}\n placeholder={placeholder}\n aria-label={`Digit ${index + 1} of ${length}`}\n invalid={invalid}\n onChange={(e) =>\n handleChange(\n e as ChangeEvent<HTMLInputElement>,\n index,\n )\n }\n onKeyDown={(e) =>\n handleKeyDown(\n e as KeyboardEvent<HTMLInputElement>,\n index,\n )\n }\n onPaste={handlePaste}\n onFocus={() => setActiveInput(index)}\n />\n ))}\n </div>\n )\n}\n\nexport default OTPInput\n"],"names":["OTPInput","length","value","onChange","disabled","className","inputClass","autoFocus","placeholder","invalid","setActiveInput","useState","inputRefs","useRef","useEffect","_","i","handleChange","e","index","newValue","newOTPValue","_a","handleKeyDown","_b","_c","handlePaste","pastedData","setRef","ref","jsx","Input","classNames"],"mappings":"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"}
1
+ {"version":3,"file":"OtpInput.js","sources":["../../../../lib/@ecme/components/shared/OtpInput.tsx"],"sourcesContent":["import { useEffect, useState, useRef } from 'react'\nimport Input from '@/components/ui/Input'\nimport classNames from '@/utils/classNames'\nimport type { ChangeEvent, KeyboardEvent, ClipboardEvent } from 'react'\n\ninterface OTPInputProps {\n length?: number\n value?: string\n onChange?: (value: string) => void\n disabled?: boolean\n className?: string\n inputClass?: string\n autoFocus?: boolean\n placeholder?: string\n invalid?: boolean\n}\n\nconst OTPInput = ({\n length = 6,\n value = '',\n onChange,\n disabled = false,\n className = '',\n inputClass,\n autoFocus = false,\n placeholder,\n invalid = false,\n}: OTPInputProps) => {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const [_, setActiveInput] = useState<number>(0)\n const inputRefs = useRef<(HTMLInputElement | null)[]>([])\n\n useEffect(() => {\n inputRefs.current = Array(length)\n .fill(null)\n .map((_, i) => inputRefs.current[i] || null)\n }, [length])\n\n const handleChange = (e: ChangeEvent<HTMLInputElement>, index: number) => {\n const newValue = e.target.value\n if (newValue.length > 1) return\n\n const newOTPValue =\n value.slice(0, index) + newValue + value.slice(index + 1)\n\n onChange?.(newOTPValue)\n\n if (newValue && index < length - 1) {\n setActiveInput(index + 1)\n inputRefs.current[index + 1]?.focus()\n }\n }\n\n const handleKeyDown = (\n e: KeyboardEvent<HTMLInputElement>,\n index: number,\n ) => {\n if (e.key === 'Backspace') {\n e.preventDefault()\n if (value[index]) {\n const newOTPValue =\n value.slice(0, index) + '' + value.slice(index + 1)\n onChange?.(newOTPValue)\n } else if (index > 0) {\n setActiveInput(index - 1)\n inputRefs.current[index - 1]?.focus()\n }\n } else if (e.key === 'ArrowLeft' && index > 0) {\n e.preventDefault()\n setActiveInput(index - 1)\n inputRefs.current[index - 1]?.focus()\n } else if (e.key === 'ArrowRight' && index < length - 1) {\n e.preventDefault()\n setActiveInput(index + 1)\n inputRefs.current[index + 1]?.focus()\n }\n }\n\n const handlePaste = (e: ClipboardEvent<HTMLInputElement>) => {\n e.preventDefault()\n const pastedData = e.clipboardData\n .getData('text/plain')\n .slice(0, length)\n if (pastedData.match(/^[0-9]+$/)) {\n onChange?.(pastedData.padEnd(length, ''))\n }\n }\n\n const setRef = (index: number) => (ref: HTMLInputElement | null) => {\n inputRefs.current[index] = ref\n }\n\n return (\n <div className={`flex gap-2 ${className}`}>\n {Array(length)\n .fill(null)\n .map((_, index) => (\n <Input\n key={index}\n ref={setRef(index)}\n className={classNames(\n 'text-center text-lg h-[58px] w-[58px]',\n inputClass,\n )}\n type=\"text\"\n inputMode=\"numeric\"\n pattern=\"[0-9]*\"\n maxLength={1}\n value={value[index] || ''}\n disabled={disabled}\n autoFocus={autoFocus && index === 0}\n placeholder={placeholder}\n aria-label={`Digit ${index + 1} of ${length}`}\n invalid={invalid}\n onChange={(e) =>\n handleChange(\n e as ChangeEvent<HTMLInputElement>,\n index,\n )\n }\n onKeyDown={(e) =>\n handleKeyDown(\n e as KeyboardEvent<HTMLInputElement>,\n index,\n )\n }\n onPaste={handlePaste}\n onFocus={() => setActiveInput(index)}\n />\n ))}\n </div>\n )\n}\n\nexport default OTPInput\n"],"names":["OTPInput","length","value","onChange","disabled","className","inputClass","autoFocus","placeholder","invalid","_","setActiveInput","useState","inputRefs","useRef","useEffect","i","handleChange","index","newValue","newOTPValue","handleKeyDown","handlePaste","pastedData","setRef","ref","jsx","Input","classNames","e"],"mappings":"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"}
@@ -3,12 +3,12 @@ import { useState as l } from "react";
3
3
  import "../ui/Input/index.js";
4
4
  import { HiOutlineEyeOff as u, HiOutlineEye as c } from "react-icons/hi";
5
5
  import f from "../ui/Input/Input.js";
6
- const P = (r) => {
7
- const { onVisibleChange: s, ref: n, ...p } = r, [e, i] = l("password");
6
+ const C = (o) => {
7
+ const { onVisibleChange: r, ref: n, ...i } = o, [e, p] = l("password");
8
8
  return /* @__PURE__ */ t(
9
9
  f,
10
10
  {
11
- ...p,
11
+ ...i,
12
12
  ref: n,
13
13
  type: e,
14
14
  suffix: /* @__PURE__ */ t(
@@ -18,8 +18,8 @@ const P = (r) => {
18
18
  role: "button",
19
19
  onClick: (a) => {
20
20
  a.preventDefault();
21
- const o = e === "password" ? "text" : "password";
22
- i(o), s == null || s(o === "text");
21
+ const s = e === "password" ? "text" : "password";
22
+ p(s), r?.(s === "text");
23
23
  },
24
24
  children: e === "password" ? /* @__PURE__ */ t(u, {}) : /* @__PURE__ */ t(c, {})
25
25
  }
@@ -28,6 +28,6 @@ const P = (r) => {
28
28
  );
29
29
  };
30
30
  export {
31
- P as default
31
+ C as default
32
32
  };
33
33
  //# sourceMappingURL=PasswordInput.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PasswordInput.js","sources":["../../../../lib/@ecme/components/shared/PasswordInput.tsx"],"sourcesContent":["import { useState } from 'react'\nimport { Input, InputProps } from '@/components/ui/Input'\nimport { HiOutlineEyeOff, HiOutlineEye } from 'react-icons/hi'\nimport type { MouseEvent, Ref } from 'react'\n\ninterface PasswordInputProps extends InputProps {\n onVisibleChange?: (visible: boolean) => void\n ref?: Ref<HTMLInputElement>\n}\n\nconst PasswordInput = (props: PasswordInputProps) => {\n const { onVisibleChange, ref, ...rest } = props\n\n const [pwInputType, setPwInputType] = useState('password')\n\n const onPasswordVisibleClick = (e: MouseEvent<HTMLSpanElement>) => {\n e.preventDefault()\n const nextValue = pwInputType === 'password' ? 'text' : 'password'\n setPwInputType(nextValue)\n onVisibleChange?.(nextValue === 'text')\n }\n\n return (\n <Input\n {...rest}\n ref={ref}\n type={pwInputType}\n suffix={\n <span\n className=\"cursor-pointer select-none text-xl\"\n role=\"button\"\n onClick={onPasswordVisibleClick}\n >\n {pwInputType === 'password' ? (\n <HiOutlineEyeOff />\n ) : (\n <HiOutlineEye />\n )}\n </span>\n }\n />\n )\n}\n\nexport default PasswordInput\n"],"names":["PasswordInput","props","onVisibleChange","ref","rest","pwInputType","setPwInputType","useState","jsx","Input","e","nextValue","HiOutlineEyeOff","HiOutlineEye"],"mappings":";;;;;AAUA,MAAMA,IAAgB,CAACC,MAA8B;AACjD,QAAM,EAAE,iBAAAC,GAAiB,KAAAC,GAAK,GAAGC,MAASH,GAEpC,CAACI,GAAaC,CAAc,IAAIC,EAAS,UAAU;AASzD,SACI,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACI,GAAGL;AAAA,MACJ,KAAAD;AAAA,MACA,MAAME;AAAA,MACN,QACI,gBAAAG;AAAA,QAAC;AAAA,QAAA;AAAA,UACG,WAAU;AAAA,UACV,MAAK;AAAA,UACL,SAhBe,CAACE,MAAmC;AAC/D,YAAAA,EAAE,eAAA;AACF,kBAAMC,IAAYN,MAAgB,aAAa,SAAS;AACxD,YAAAC,EAAeK,CAAS,GACxBT,KAAA,QAAAA,EAAkBS,MAAc;AAAA,UACpC;AAAA,UAaiB,gBAAgB,aACb,gBAAAH,EAACI,GAAA,EAAgB,sBAEhBC,GAAA,CAAA,CAAa;AAAA,QAAA;AAAA,MAAA;AAAA,IAEtB;AAAA,EAAA;AAIhB;"}
1
+ {"version":3,"file":"PasswordInput.js","sources":["../../../../lib/@ecme/components/shared/PasswordInput.tsx"],"sourcesContent":["import { useState } from 'react'\nimport { Input, InputProps } from '@/components/ui/Input'\nimport { HiOutlineEyeOff, HiOutlineEye } from 'react-icons/hi'\nimport type { MouseEvent, Ref } from 'react'\n\ninterface PasswordInputProps extends InputProps {\n onVisibleChange?: (visible: boolean) => void\n ref?: Ref<HTMLInputElement>\n}\n\nconst PasswordInput = (props: PasswordInputProps) => {\n const { onVisibleChange, ref, ...rest } = props\n\n const [pwInputType, setPwInputType] = useState('password')\n\n const onPasswordVisibleClick = (e: MouseEvent<HTMLSpanElement>) => {\n e.preventDefault()\n const nextValue = pwInputType === 'password' ? 'text' : 'password'\n setPwInputType(nextValue)\n onVisibleChange?.(nextValue === 'text')\n }\n\n return (\n <Input\n {...rest}\n ref={ref}\n type={pwInputType}\n suffix={\n <span\n className=\"cursor-pointer select-none text-xl\"\n role=\"button\"\n onClick={onPasswordVisibleClick}\n >\n {pwInputType === 'password' ? (\n <HiOutlineEyeOff />\n ) : (\n <HiOutlineEye />\n )}\n </span>\n }\n />\n )\n}\n\nexport default PasswordInput\n"],"names":["PasswordInput","props","onVisibleChange","ref","rest","pwInputType","setPwInputType","useState","jsx","Input","e","nextValue","HiOutlineEyeOff","HiOutlineEye"],"mappings":";;;;;AAUA,MAAMA,IAAgB,CAACC,MAA8B;AACjD,QAAM,EAAE,iBAAAC,GAAiB,KAAAC,GAAK,GAAGC,MAASH,GAEpC,CAACI,GAAaC,CAAc,IAAIC,EAAS,UAAU;AASzD,SACI,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACI,GAAGL;AAAA,MACJ,KAAAD;AAAA,MACA,MAAME;AAAA,MACN,QACI,gBAAAG;AAAA,QAAC;AAAA,QAAA;AAAA,UACG,WAAU;AAAA,UACV,MAAK;AAAA,UACL,SAhBe,CAACE,MAAmC;AAC/D,YAAAA,EAAE,eAAA;AACF,kBAAMC,IAAYN,MAAgB,aAAa,SAAS;AACxD,YAAAC,EAAeK,CAAS,GACxBT,IAAkBS,MAAc,MAAM;AAAA,UAC1C;AAAA,UAaiB,gBAAgB,aACb,gBAAAH,EAACI,GAAA,EAAgB,sBAEhBC,GAAA,CAAA,CAAa;AAAA,QAAA;AAAA,MAAA;AAAA,IAEtB;AAAA,EAAA;AAIhB;"}