@orbe-agro/client-core 5.3.85 → 5.3.89

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (502) hide show
  1. package/dist/@ecme/assets/styles/app.css +1 -1
  2. package/dist/@ecme/assets/styles/components/_dialog.css +1 -1
  3. package/dist/@ecme/assets/styles/components/_drawer.css +1 -1
  4. package/dist/@ecme/assets/styles/components/_scrollbar.css +1 -1
  5. package/dist/@ecme/assets/styles/components/_switcher.css +1 -1
  6. package/dist/@ecme/assets/styles/components/_upload.css +1 -1
  7. package/dist/@ecme/assets/styles/components/index.css +1 -1
  8. package/dist/@ecme/assets/styles/tailwind/index.css +1 -1
  9. package/dist/@ecme/auth/AuthProvider.js +58 -62
  10. package/dist/@ecme/auth/AuthProvider.js.map +1 -1
  11. package/dist/@ecme/components/docs/DemoCard/DemoCard.js +18 -19
  12. package/dist/@ecme/components/docs/DemoCard/DemoCard.js.map +1 -1
  13. package/dist/@ecme/components/layouts/PostLoginLayout/PostLoginLayout.js +29 -30
  14. package/dist/@ecme/components/layouts/PostLoginLayout/PostLoginLayout.js.map +1 -1
  15. package/dist/@ecme/components/layouts/PostLoginLayout/components/ContentOverlay.js +56 -56
  16. package/dist/@ecme/components/layouts/PostLoginLayout/components/ContentOverlay.js.map +1 -1
  17. package/dist/@ecme/components/shared/Affix.js +9 -10
  18. package/dist/@ecme/components/shared/Affix.js.map +1 -1
  19. package/dist/@ecme/components/shared/AutoComplete.js +27 -28
  20. package/dist/@ecme/components/shared/AutoComplete.js.map +1 -1
  21. package/dist/@ecme/components/shared/CalendarView.js +19 -20
  22. package/dist/@ecme/components/shared/CalendarView.js.map +1 -1
  23. package/dist/@ecme/components/shared/ConfirmDialog.js +16 -16
  24. package/dist/@ecme/components/shared/ConfirmDialog.js.map +1 -1
  25. package/dist/@ecme/components/shared/DataTable.js +151 -151
  26. package/dist/@ecme/components/shared/DataTable.js.map +1 -1
  27. package/dist/@ecme/components/shared/DebounceInput.js +11 -12
  28. package/dist/@ecme/components/shared/DebounceInput.js.map +1 -1
  29. package/dist/@ecme/components/shared/GanttChart/GanttChart.js +20 -20
  30. package/dist/@ecme/components/shared/GanttChart/GanttChart.js.map +1 -1
  31. package/dist/@ecme/components/shared/GanttChart/TaskListTable.js +22 -22
  32. package/dist/@ecme/components/shared/GanttChart/TaskListTable.js.map +1 -1
  33. package/dist/@ecme/components/shared/ImageGallery.js +18 -18
  34. package/dist/@ecme/components/shared/ImageGallery.js.map +1 -1
  35. package/dist/@ecme/components/shared/Masonry/Masonry.js +25 -25
  36. package/dist/@ecme/components/shared/Masonry/Masonry.js.map +1 -1
  37. package/dist/@ecme/components/shared/OtpInput.js +54 -56
  38. package/dist/@ecme/components/shared/OtpInput.js.map +1 -1
  39. package/dist/@ecme/components/shared/PasswordInput.js +6 -6
  40. package/dist/@ecme/components/shared/PasswordInput.js.map +1 -1
  41. package/dist/@ecme/components/shared/RegionMap.js +9 -9
  42. package/dist/@ecme/components/shared/RegionMap.js.map +1 -1
  43. package/dist/@ecme/components/shared/RichTextEditor/RichTextEditor.js +47 -47
  44. package/dist/@ecme/components/shared/RichTextEditor/RichTextEditor.js.map +1 -1
  45. package/dist/@ecme/components/shared/UsersAvatarGroup.js +24 -24
  46. package/dist/@ecme/components/shared/UsersAvatarGroup.js.map +1 -1
  47. package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuContent.js +63 -69
  48. package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuContent.js.map +1 -1
  49. package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuDropdown.js +48 -48
  50. package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuDropdown.js.map +1 -1
  51. package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuDropdownContent.js +220 -231
  52. package/dist/@ecme/components/template/HorizontalMenuContent/HorizontalMenuDropdownContent.js.map +1 -1
  53. package/dist/@ecme/components/template/LanguageSelector.js +10 -13
  54. package/dist/@ecme/components/template/LanguageSelector.js.map +1 -1
  55. package/dist/@ecme/components/template/Search.js +85 -92
  56. package/dist/@ecme/components/template/Search.js.map +1 -1
  57. package/dist/@ecme/components/template/ThemeConfigurator/DirectionSwitcher.js +18 -18
  58. package/dist/@ecme/components/template/ThemeConfigurator/DirectionSwitcher.js.map +1 -1
  59. package/dist/@ecme/components/template/VerticalMenuContent/VerticalCollapsedMenuItem.js +17 -17
  60. package/dist/@ecme/components/template/VerticalMenuContent/VerticalCollapsedMenuItem.js.map +1 -1
  61. package/dist/@ecme/components/template/VerticalMenuContent/VerticalMenuContent.js +59 -59
  62. package/dist/@ecme/components/template/VerticalMenuContent/VerticalMenuContent.js.map +1 -1
  63. package/dist/@ecme/components/template/VerticalMenuContent/VerticalSingleMenuItem.js +34 -34
  64. package/dist/@ecme/components/template/VerticalMenuContent/VerticalSingleMenuItem.js.map +1 -1
  65. package/dist/@ecme/components/ui/Alert/Alert.js +29 -29
  66. package/dist/@ecme/components/ui/Alert/Alert.js.map +1 -1
  67. package/dist/@ecme/components/ui/Avatar/AvatarGroup.js +30 -30
  68. package/dist/@ecme/components/ui/Avatar/AvatarGroup.js.map +1 -1
  69. package/dist/@ecme/components/ui/Button/Button.js +66 -67
  70. package/dist/@ecme/components/ui/Button/Button.js.map +1 -1
  71. package/dist/@ecme/components/ui/Card/Card.js +39 -40
  72. package/dist/@ecme/components/ui/Card/Card.js.map +1 -1
  73. package/dist/@ecme/components/ui/Checkbox/Checkbox.js +42 -42
  74. package/dist/@ecme/components/ui/Checkbox/Checkbox.js.map +1 -1
  75. package/dist/@ecme/components/ui/Checkbox/Group.js +27 -27
  76. package/dist/@ecme/components/ui/Checkbox/Group.js.map +1 -1
  77. package/dist/@ecme/components/ui/DatePicker/BasePicker.js +67 -67
  78. package/dist/@ecme/components/ui/DatePicker/BasePicker.js.map +1 -1
  79. package/dist/@ecme/components/ui/DatePicker/Calendar.js +18 -18
  80. package/dist/@ecme/components/ui/DatePicker/Calendar.js.map +1 -1
  81. package/dist/@ecme/components/ui/DatePicker/CalendarBase.js +77 -78
  82. package/dist/@ecme/components/ui/DatePicker/CalendarBase.js.map +1 -1
  83. package/dist/@ecme/components/ui/DatePicker/DatePicker.js +67 -71
  84. package/dist/@ecme/components/ui/DatePicker/DatePicker.js.map +1 -1
  85. package/dist/@ecme/components/ui/DatePicker/DatePickerRange.js +94 -98
  86. package/dist/@ecme/components/ui/DatePicker/DatePickerRange.js.map +1 -1
  87. package/dist/@ecme/components/ui/DatePicker/DateTimepicker.js +51 -58
  88. package/dist/@ecme/components/ui/DatePicker/DateTimepicker.js.map +1 -1
  89. package/dist/@ecme/components/ui/DatePicker/tables/DateTable.js +67 -67
  90. package/dist/@ecme/components/ui/DatePicker/tables/DateTable.js.map +1 -1
  91. package/dist/@ecme/components/ui/DatePicker/tables/components/Day.js +12 -12
  92. package/dist/@ecme/components/ui/DatePicker/tables/components/Day.js.map +1 -1
  93. package/dist/@ecme/components/ui/Dialog/Dialog.js +25 -25
  94. package/dist/@ecme/components/ui/Dialog/Dialog.js.map +1 -1
  95. package/dist/@ecme/components/ui/Drawer/Drawer.js +32 -32
  96. package/dist/@ecme/components/ui/Drawer/Drawer.js.map +1 -1
  97. package/dist/@ecme/components/ui/Dropdown/DropdownItem.js +58 -58
  98. package/dist/@ecme/components/ui/Dropdown/DropdownItem.js.map +1 -1
  99. package/dist/@ecme/components/ui/Dropdown/DropdownMenu.js +99 -100
  100. package/dist/@ecme/components/ui/Dropdown/DropdownMenu.js.map +1 -1
  101. package/dist/@ecme/components/ui/Dropdown/DropdownSubItem.js +26 -26
  102. package/dist/@ecme/components/ui/Dropdown/DropdownSubItem.js.map +1 -1
  103. package/dist/@ecme/components/ui/Form/FormContainer.js +17 -17
  104. package/dist/@ecme/components/ui/Form/FormContainer.js.map +1 -1
  105. package/dist/@ecme/components/ui/Form/FormItem.js +38 -38
  106. package/dist/@ecme/components/ui/Form/FormItem.js.map +1 -1
  107. package/dist/@ecme/components/ui/Input/Input.js +50 -52
  108. package/dist/@ecme/components/ui/Input/Input.js.map +1 -1
  109. package/dist/@ecme/components/ui/InputGroup/Addon.js +12 -13
  110. package/dist/@ecme/components/ui/InputGroup/Addon.js.map +1 -1
  111. package/dist/@ecme/components/ui/InputGroup/InputGroup.js +10 -11
  112. package/dist/@ecme/components/ui/InputGroup/InputGroup.js.map +1 -1
  113. package/dist/@ecme/components/ui/Notification/Notification.js +19 -19
  114. package/dist/@ecme/components/ui/Notification/Notification.js.map +1 -1
  115. package/dist/@ecme/components/ui/Pagination/Pagination.js +45 -45
  116. package/dist/@ecme/components/ui/Pagination/Pagination.js.map +1 -1
  117. package/dist/@ecme/components/ui/Radio/Group.js +28 -28
  118. package/dist/@ecme/components/ui/Radio/Group.js.map +1 -1
  119. package/dist/@ecme/components/ui/Radio/Radio.js +42 -42
  120. package/dist/@ecme/components/ui/Radio/Radio.js.map +1 -1
  121. package/dist/@ecme/components/ui/Segment/SegmentItem.js +53 -53
  122. package/dist/@ecme/components/ui/Segment/SegmentItem.js.map +1 -1
  123. package/dist/@ecme/components/ui/Select/Select.js +40 -41
  124. package/dist/@ecme/components/ui/Select/Select.js.map +1 -1
  125. package/dist/@ecme/components/ui/Steps/StepItem.js +33 -33
  126. package/dist/@ecme/components/ui/Steps/StepItem.js.map +1 -1
  127. package/dist/@ecme/components/ui/Switcher/Switcher.js +24 -24
  128. package/dist/@ecme/components/ui/Switcher/Switcher.js.map +1 -1
  129. package/dist/@ecme/components/ui/Tabs/TabNav.js +22 -22
  130. package/dist/@ecme/components/ui/Tabs/TabNav.js.map +1 -1
  131. package/dist/@ecme/components/ui/TimeInput/AmPmInput.js +25 -27
  132. package/dist/@ecme/components/ui/TimeInput/AmPmInput.js.map +1 -1
  133. package/dist/@ecme/components/ui/TimeInput/TimeInput.js +130 -135
  134. package/dist/@ecme/components/ui/TimeInput/TimeInput.js.map +1 -1
  135. package/dist/@ecme/components/ui/TimeInput/TimeInputField.js +22 -24
  136. package/dist/@ecme/components/ui/TimeInput/TimeInputField.js.map +1 -1
  137. package/dist/@ecme/components/ui/TimeInput/TimeInputRange.js +65 -68
  138. package/dist/@ecme/components/ui/TimeInput/TimeInputRange.js.map +1 -1
  139. package/dist/@ecme/components/ui/TimeInput/utils/createAmPmHandler.js +11 -12
  140. package/dist/@ecme/components/ui/TimeInput/utils/createAmPmHandler.js.map +1 -1
  141. package/dist/@ecme/components/ui/TimeInput/utils/createTimeHandler.js +19 -20
  142. package/dist/@ecme/components/ui/TimeInput/utils/createTimeHandler.js.map +1 -1
  143. package/dist/@ecme/components/ui/Upload/Upload.js +67 -68
  144. package/dist/@ecme/components/ui/Upload/Upload.js.map +1 -1
  145. package/dist/@ecme/components/ui/hooks/useCallbackRef.js +7 -10
  146. package/dist/@ecme/components/ui/hooks/useCallbackRef.js.map +1 -1
  147. package/dist/@ecme/components/ui/hooks/useRootClose.js +32 -32
  148. package/dist/@ecme/components/ui/hooks/useRootClose.js.map +1 -1
  149. package/dist/@ecme/components/ui/hooks/useTimeout.js +12 -13
  150. package/dist/@ecme/components/ui/hooks/useTimeout.js.map +1 -1
  151. package/dist/@ecme/components/ui/toast/ToastWrapper.js +58 -61
  152. package/dist/@ecme/components/ui/toast/ToastWrapper.js.map +1 -1
  153. package/dist/@ecme/components/ui/toast/toast.js +16 -19
  154. package/dist/@ecme/components/ui/toast/toast.js.map +1 -1
  155. package/dist/@ecme/components/view/Activity/ActivityEvent.js +63 -67
  156. package/dist/@ecme/components/view/Activity/ActivityEvent.js.map +1 -1
  157. package/dist/@ecme/components/view/ChatBox/components/Attachment.js +8 -9
  158. package/dist/@ecme/components/view/ChatBox/components/Attachment.js.map +1 -1
  159. package/dist/@ecme/components/view/ChatBox/components/ChatInput.js +37 -39
  160. package/dist/@ecme/components/view/ChatBox/components/ChatInput.js.map +1 -1
  161. package/dist/@ecme/components/view/ChatBox/components/Message.js +10 -10
  162. package/dist/@ecme/components/view/ChatBox/components/Message.js.map +1 -1
  163. package/dist/@ecme/components/view/CreditCardDialog/CreditCardDialog.js +36 -37
  164. package/dist/@ecme/components/view/CreditCardDialog/CreditCardDialog.js.map +1 -1
  165. package/dist/@ecme/components/view/TaskItem/TaskItem.js +33 -33
  166. package/dist/@ecme/components/view/TaskItem/TaskItem.js.map +1 -1
  167. package/dist/@ecme/mock/fakeApi/chatFakeApi.js +16 -18
  168. package/dist/@ecme/mock/fakeApi/chatFakeApi.js.map +1 -1
  169. package/dist/@ecme/mock/fakeApi/customersFakeApi.js +10 -11
  170. package/dist/@ecme/mock/fakeApi/customersFakeApi.js.map +1 -1
  171. package/dist/@ecme/mock/fakeApi/helpCenterFakeApi.js +10 -11
  172. package/dist/@ecme/mock/fakeApi/helpCenterFakeApi.js.map +1 -1
  173. package/dist/@ecme/mock/fakeApi/mailFakeApi.js +9 -10
  174. package/dist/@ecme/mock/fakeApi/mailFakeApi.js.map +1 -1
  175. package/dist/@ecme/mock/fakeApi/ordersFakeApi.js +9 -10
  176. package/dist/@ecme/mock/fakeApi/ordersFakeApi.js.map +1 -1
  177. package/dist/@ecme/mock/fakeApi/productsFakeApi.js +7 -8
  178. package/dist/@ecme/mock/fakeApi/productsFakeApi.js.map +1 -1
  179. package/dist/@ecme/mock/fakeApi/projectsFakeApi.js +10 -11
  180. package/dist/@ecme/mock/fakeApi/projectsFakeApi.js.map +1 -1
  181. package/dist/@ecme/utils/hooks/useInfiniteScroll.js +11 -11
  182. package/dist/@ecme/utils/hooks/useInfiniteScroll.js.map +1 -1
  183. package/dist/@ecme/utils/hooks/useMenuActive.js +11 -12
  184. package/dist/@ecme/utils/hooks/useMenuActive.js.map +1 -1
  185. package/dist/@ecme/views/auth/ForgotPassword/components/ForgotPasswordForm.js +36 -37
  186. package/dist/@ecme/views/auth/ForgotPassword/components/ForgotPasswordForm.js.map +1 -1
  187. package/dist/@ecme/views/auth/OtpVerification/OtpVerification.js +14 -14
  188. package/dist/@ecme/views/auth/OtpVerification/OtpVerification.js.map +1 -1
  189. package/dist/@ecme/views/auth/OtpVerification/components/OtpVerificationForm.js +41 -42
  190. package/dist/@ecme/views/auth/OtpVerification/components/OtpVerificationForm.js.map +1 -1
  191. package/dist/@ecme/views/auth/ResetPassword/components/ResetPasswordForm.js +59 -60
  192. package/dist/@ecme/views/auth/ResetPassword/components/ResetPasswordForm.js.map +1 -1
  193. package/dist/@ecme/views/auth/SignIn/components/OauthSignIn.js +27 -27
  194. package/dist/@ecme/views/auth/SignIn/components/OauthSignIn.js.map +1 -1
  195. package/dist/@ecme/views/auth/SignIn/components/SignInForm.js +57 -58
  196. package/dist/@ecme/views/auth/SignIn/components/SignInForm.js.map +1 -1
  197. package/dist/@ecme/views/auth/SignUp/components/SignUpForm.js +37 -38
  198. package/dist/@ecme/views/auth/SignUp/components/SignUpForm.js.map +1 -1
  199. package/dist/@ecme/views/concepts/accounts/Pricing/components/PaymentDialog.js +44 -45
  200. package/dist/@ecme/views/concepts/accounts/Pricing/components/PaymentDialog.js.map +1 -1
  201. package/dist/@ecme/views/concepts/accounts/Pricing/components/Plans.js +5 -5
  202. package/dist/@ecme/views/concepts/accounts/Pricing/components/Plans.js.map +1 -1
  203. package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsAccessDialog.js +34 -35
  204. package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsAccessDialog.js.map +1 -1
  205. package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsUserAction.js +26 -26
  206. package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsUserAction.js.map +1 -1
  207. package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsUserTable.js +28 -29
  208. package/dist/@ecme/views/concepts/accounts/RolesPermissions/components/RolesPermissionsUserTable.js.map +1 -1
  209. package/dist/@ecme/views/concepts/accounts/RolesPermissions/hooks/useRolePermissonsUsers.js +8 -8
  210. package/dist/@ecme/views/concepts/accounts/RolesPermissions/hooks/useRolePermissonsUsers.js.map +1 -1
  211. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingMobileMenu.js +10 -11
  212. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingMobileMenu.js.map +1 -1
  213. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsBilling.js +48 -49
  214. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsBilling.js.map +1 -1
  215. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsMenu.js +14 -14
  216. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsMenu.js.map +1 -1
  217. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsProfile.js +102 -103
  218. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsProfile.js.map +1 -1
  219. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsSecurity.js +34 -35
  220. package/dist/@ecme/views/concepts/accounts/Settings/components/SettingsSecurity.js.map +1 -1
  221. package/dist/@ecme/views/concepts/ai/Chat/components/ChatCustomAction.js +16 -16
  222. package/dist/@ecme/views/concepts/ai/Chat/components/ChatCustomAction.js.map +1 -1
  223. package/dist/@ecme/views/concepts/ai/Chat/components/ChatCustomContent.js +76 -78
  224. package/dist/@ecme/views/concepts/ai/Chat/components/ChatCustomContent.js.map +1 -1
  225. package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistory.js +23 -23
  226. package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistory.js.map +1 -1
  227. package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistoryItem.js +48 -49
  228. package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistoryItem.js.map +1 -1
  229. package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistoryRenameDialog.js +34 -35
  230. package/dist/@ecme/views/concepts/ai/Chat/components/ChatHistoryRenameDialog.js.map +1 -1
  231. package/dist/@ecme/views/concepts/ai/Chat/components/ChatMobileNav.js +11 -14
  232. package/dist/@ecme/views/concepts/ai/Chat/components/ChatMobileNav.js.map +1 -1
  233. package/dist/@ecme/views/concepts/ai/Chat/components/ChatSideNav.js +19 -19
  234. package/dist/@ecme/views/concepts/ai/Chat/components/ChatSideNav.js.map +1 -1
  235. package/dist/@ecme/views/concepts/ai/Chat/components/ChatView.js +22 -26
  236. package/dist/@ecme/views/concepts/ai/Chat/components/ChatView.js.map +1 -1
  237. package/dist/@ecme/views/concepts/ai/Chat/store/generativeChatStore.js +18 -24
  238. package/dist/@ecme/views/concepts/ai/Chat/store/generativeChatStore.js.map +1 -1
  239. package/dist/@ecme/views/concepts/ai/Image/components/ConfigDropdown.js +22 -22
  240. package/dist/@ecme/views/concepts/ai/Image/components/ConfigDropdown.js.map +1 -1
  241. package/dist/@ecme/views/concepts/ai/Image/components/GeneratorPrompt.js +31 -32
  242. package/dist/@ecme/views/concepts/ai/Image/components/GeneratorPrompt.js.map +1 -1
  243. package/dist/@ecme/views/concepts/ai/Image/components/ImageDialog.js +31 -32
  244. package/dist/@ecme/views/concepts/ai/Image/components/ImageDialog.js.map +1 -1
  245. package/dist/@ecme/views/concepts/calendar/Calendar/Calendar.js +38 -39
  246. package/dist/@ecme/views/concepts/calendar/Calendar/Calendar.js.map +1 -1
  247. package/dist/@ecme/views/concepts/calendar/Calendar/components/EventDialog.js +68 -69
  248. package/dist/@ecme/views/concepts/calendar/Calendar/components/EventDialog.js.map +1 -1
  249. package/dist/@ecme/views/concepts/chat/Chat/components/ChatBody.js +63 -66
  250. package/dist/@ecme/views/concepts/chat/Chat/components/ChatBody.js.map +1 -1
  251. package/dist/@ecme/views/concepts/chat/Chat/components/ChatList.js +21 -22
  252. package/dist/@ecme/views/concepts/chat/Chat/components/ChatList.js.map +1 -1
  253. package/dist/@ecme/views/concepts/chat/Chat/components/ContactInfoDrawer.js +84 -85
  254. package/dist/@ecme/views/concepts/chat/Chat/components/ContactInfoDrawer.js.map +1 -1
  255. package/dist/@ecme/views/concepts/customers/CustomerDetails/ActivitySection.js +19 -19
  256. package/dist/@ecme/views/concepts/customers/CustomerDetails/ActivitySection.js.map +1 -1
  257. package/dist/@ecme/views/concepts/customers/CustomerDetails/BillingSection.js +51 -58
  258. package/dist/@ecme/views/concepts/customers/CustomerDetails/BillingSection.js.map +1 -1
  259. package/dist/@ecme/views/concepts/customers/CustomerDetails/ProfileSection.js +76 -89
  260. package/dist/@ecme/views/concepts/customers/CustomerDetails/ProfileSection.js.map +1 -1
  261. package/dist/@ecme/views/concepts/customers/CustomerForm/AddressSection.js +104 -107
  262. package/dist/@ecme/views/concepts/customers/CustomerForm/AddressSection.js.map +1 -1
  263. package/dist/@ecme/views/concepts/customers/CustomerForm/CustomerForm.js +22 -22
  264. package/dist/@ecme/views/concepts/customers/CustomerForm/CustomerForm.js.map +1 -1
  265. package/dist/@ecme/views/concepts/customers/CustomerForm/OverviewSection.js +38 -39
  266. package/dist/@ecme/views/concepts/customers/CustomerForm/OverviewSection.js.map +1 -1
  267. package/dist/@ecme/views/concepts/customers/CustomerList/hooks/useCustomerList.js +20 -20
  268. package/dist/@ecme/views/concepts/customers/CustomerList/hooks/useCustomerList.js.map +1 -1
  269. package/dist/@ecme/views/concepts/files/FileManager/components/FileItemDropdown.js +32 -33
  270. package/dist/@ecme/views/concepts/files/FileManager/components/FileItemDropdown.js.map +1 -1
  271. package/dist/@ecme/views/concepts/help-center/EditArticle/components/EditArticleHeader.js +17 -18
  272. package/dist/@ecme/views/concepts/help-center/EditArticle/components/EditArticleHeader.js.map +1 -1
  273. package/dist/@ecme/views/concepts/help-center/ManageArticle/hooks/useManageArticle.js +5 -5
  274. package/dist/@ecme/views/concepts/help-center/ManageArticle/hooks/useManageArticle.js.map +1 -1
  275. package/dist/@ecme/views/concepts/help-center/SupportHub/components/TopSection.js +12 -13
  276. package/dist/@ecme/views/concepts/help-center/SupportHub/components/TopSection.js.map +1 -1
  277. package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailAction.js +28 -29
  278. package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailAction.js.map +1 -1
  279. package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailContent.js +63 -67
  280. package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailContent.js.map +1 -1
  281. package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailTitle.js +8 -8
  282. package/dist/@ecme/views/concepts/mail/Mail/components/MailDetailTitle.js.map +1 -1
  283. package/dist/@ecme/views/concepts/mail/Mail/components/MailEditor.js +36 -37
  284. package/dist/@ecme/views/concepts/mail/Mail/components/MailEditor.js.map +1 -1
  285. package/dist/@ecme/views/concepts/mail/Mail/components/MailList.js +134 -137
  286. package/dist/@ecme/views/concepts/mail/Mail/components/MailList.js.map +1 -1
  287. package/dist/@ecme/views/concepts/orders/OrderDetails/components/OrderDetailProducts.js +17 -17
  288. package/dist/@ecme/views/concepts/orders/OrderDetails/components/OrderDetailProducts.js.map +1 -1
  289. package/dist/@ecme/views/concepts/orders/OrderEdit/OrderEdit.js +35 -35
  290. package/dist/@ecme/views/concepts/orders/OrderEdit/OrderEdit.js.map +1 -1
  291. package/dist/@ecme/views/concepts/orders/OrderForm/OrderForm.js +38 -38
  292. package/dist/@ecme/views/concepts/orders/OrderForm/OrderForm.js.map +1 -1
  293. package/dist/@ecme/views/concepts/orders/OrderForm/components/BillingAddressSection.js +108 -111
  294. package/dist/@ecme/views/concepts/orders/OrderForm/components/BillingAddressSection.js.map +1 -1
  295. package/dist/@ecme/views/concepts/orders/OrderForm/components/CustomerDetailSection.js +44 -45
  296. package/dist/@ecme/views/concepts/orders/OrderForm/components/CustomerDetailSection.js.map +1 -1
  297. package/dist/@ecme/views/concepts/orders/OrderForm/components/PaymentMethodSection.js +211 -214
  298. package/dist/@ecme/views/concepts/orders/OrderForm/components/PaymentMethodSection.js.map +1 -1
  299. package/dist/@ecme/views/concepts/orders/OrderList/components/OrderListTableFilter.js +17 -17
  300. package/dist/@ecme/views/concepts/orders/OrderList/components/OrderListTableFilter.js.map +1 -1
  301. package/dist/@ecme/views/concepts/orders/OrderList/hooks/useOrderlist.js +15 -15
  302. package/dist/@ecme/views/concepts/orders/OrderList/hooks/useOrderlist.js.map +1 -1
  303. package/dist/@ecme/views/concepts/products/ProductForm/ProductForm.js +4 -4
  304. package/dist/@ecme/views/concepts/products/ProductForm/ProductForm.js.map +1 -1
  305. package/dist/@ecme/views/concepts/products/ProductForm/components/AttributeSection.js +97 -100
  306. package/dist/@ecme/views/concepts/products/ProductForm/components/AttributeSection.js.map +1 -1
  307. package/dist/@ecme/views/concepts/products/ProductForm/components/GeneralSection.js +68 -71
  308. package/dist/@ecme/views/concepts/products/ProductForm/components/GeneralSection.js.map +1 -1
  309. package/dist/@ecme/views/concepts/products/ProductForm/components/ImageSection.js +85 -86
  310. package/dist/@ecme/views/concepts/products/ProductForm/components/ImageSection.js.map +1 -1
  311. package/dist/@ecme/views/concepts/products/ProductForm/components/PricingSection.js +121 -124
  312. package/dist/@ecme/views/concepts/products/ProductForm/components/PricingSection.js.map +1 -1
  313. package/dist/@ecme/views/concepts/products/ProductList/components/ProductListSearch.js +11 -11
  314. package/dist/@ecme/views/concepts/products/ProductList/components/ProductListSearch.js.map +1 -1
  315. package/dist/@ecme/views/concepts/products/ProductList/components/ProductTableFilter.js +17 -17
  316. package/dist/@ecme/views/concepts/products/ProductList/components/ProductTableFilter.js.map +1 -1
  317. package/dist/@ecme/views/concepts/products/ProductList/hooks/useProductList.js +17 -17
  318. package/dist/@ecme/views/concepts/products/ProductList/hooks/useProductList.js.map +1 -1
  319. package/dist/@ecme/views/concepts/projects/Issue/components/IssueBody.js +101 -105
  320. package/dist/@ecme/views/concepts/projects/Issue/components/IssueBody.js.map +1 -1
  321. package/dist/@ecme/views/concepts/projects/Issue/components/IssueFooter.js +57 -58
  322. package/dist/@ecme/views/concepts/projects/Issue/components/IssueFooter.js.map +1 -1
  323. package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsHeader.js +51 -52
  324. package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsHeader.js.map +1 -1
  325. package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsOverview.js +22 -23
  326. package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsOverview.js.map +1 -1
  327. package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsSetting.js +45 -46
  328. package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsSetting.js.map +1 -1
  329. package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsTask.js +62 -65
  330. package/dist/@ecme/views/concepts/projects/ProjectDetails/components/ProjectDetailsTask.js.map +1 -1
  331. package/dist/@ecme/views/concepts/projects/ProjectList/components/NewProjectForm.js +52 -53
  332. package/dist/@ecme/views/concepts/projects/ProjectList/components/NewProjectForm.js.map +1 -1
  333. package/dist/@ecme/views/concepts/projects/ProjectList/components/NewTaskField.js +23 -25
  334. package/dist/@ecme/views/concepts/projects/ProjectList/components/NewTaskField.js.map +1 -1
  335. package/dist/@ecme/views/concepts/projects/ProjectList/components/ProjectListContent.js +15 -15
  336. package/dist/@ecme/views/concepts/projects/ProjectList/components/ProjectListContent.js.map +1 -1
  337. package/dist/@ecme/views/concepts/projects/ProjectList/components/ProjectListHeader.js +16 -16
  338. package/dist/@ecme/views/concepts/projects/ProjectList/components/ProjectListHeader.js.map +1 -1
  339. package/dist/@ecme/views/concepts/projects/ProjectList/hooks/useProjectList.js +9 -9
  340. package/dist/@ecme/views/concepts/projects/ProjectList/hooks/useProjectList.js.map +1 -1
  341. package/dist/@ecme/views/concepts/projects/ScrumBoard/components/AddNewColumnContent.js +40 -41
  342. package/dist/@ecme/views/concepts/projects/ScrumBoard/components/AddNewColumnContent.js.map +1 -1
  343. package/dist/@ecme/views/concepts/projects/ScrumBoard/components/AddNewTicketContent.js +33 -34
  344. package/dist/@ecme/views/concepts/projects/ScrumBoard/components/AddNewTicketContent.js.map +1 -1
  345. package/dist/@ecme/views/concepts/projects/ScrumBoard/components/BoardCardList.js +33 -33
  346. package/dist/@ecme/views/concepts/projects/ScrumBoard/components/BoardCardList.js.map +1 -1
  347. package/dist/@ecme/views/concepts/projects/ScrumBoard/components/TicketContent.js +203 -210
  348. package/dist/@ecme/views/concepts/projects/ScrumBoard/components/TicketContent.js.map +1 -1
  349. package/dist/@ecme/views/concepts/projects/Tasks/components/AddTask.js +53 -56
  350. package/dist/@ecme/views/concepts/projects/Tasks/components/AddTask.js.map +1 -1
  351. package/dist/@ecme/views/concepts/projects/Tasks/components/TaskList.js +80 -83
  352. package/dist/@ecme/views/concepts/projects/Tasks/components/TaskList.js.map +1 -1
  353. package/dist/@ecme/views/dashboards/AnalyticDashboard/components/AnalyticHeader.js +6 -6
  354. package/dist/@ecme/views/dashboards/AnalyticDashboard/components/AnalyticHeader.js.map +1 -1
  355. package/dist/@ecme/views/dashboards/EcommerceDashboard/components/Overview.js +21 -21
  356. package/dist/@ecme/views/dashboards/EcommerceDashboard/components/Overview.js.map +1 -1
  357. package/dist/@ecme/views/dashboards/EcommerceDashboard/components/RevenueByChannel.js +27 -27
  358. package/dist/@ecme/views/dashboards/EcommerceDashboard/components/RevenueByChannel.js.map +1 -1
  359. package/dist/@ecme/views/dashboards/EcommerceDashboard/components/SalesTarget.js +27 -27
  360. package/dist/@ecme/views/dashboards/EcommerceDashboard/components/SalesTarget.js.map +1 -1
  361. package/dist/@ecme/views/dashboards/MarketingDashboard/components/CreateCampaign.js +59 -60
  362. package/dist/@ecme/views/dashboards/MarketingDashboard/components/CreateCampaign.js.map +1 -1
  363. package/dist/@ecme/views/dashboards/ProjectDashboard/components/CreateEventDialog.js +76 -77
  364. package/dist/@ecme/views/dashboards/ProjectDashboard/components/CreateEventDialog.js.map +1 -1
  365. package/dist/@ecme/views/dashboards/ProjectDashboard/components/UpcomingSchedule.js +30 -30
  366. package/dist/@ecme/views/dashboards/ProjectDashboard/components/UpcomingSchedule.js.map +1 -1
  367. package/dist/@ecme/views/guide/SharedComponentsDoc/components/CustomFormatInputDoc/WithForm.js +21 -22
  368. package/dist/@ecme/views/guide/SharedComponentsDoc/components/CustomFormatInputDoc/WithForm.js.map +1 -1
  369. package/dist/@ecme/views/guide/SharedComponentsDoc/components/ImageGalleryDoc/Example.js +15 -15
  370. package/dist/@ecme/views/guide/SharedComponentsDoc/components/ImageGalleryDoc/Example.js.map +1 -1
  371. package/dist/@ecme/views/guide/SharedComponentsDoc/components/NumericInputDoc/WithForm.js +20 -21
  372. package/dist/@ecme/views/guide/SharedComponentsDoc/components/NumericInputDoc/WithForm.js.map +1 -1
  373. package/dist/@ecme/views/guide/SharedComponentsDoc/components/PatternInputDoc/WithForm.js +20 -21
  374. package/dist/@ecme/views/guide/SharedComponentsDoc/components/PatternInputDoc/WithForm.js.map +1 -1
  375. package/dist/@ecme/views/guide/SharedComponentsDoc/components/RichTextEditorDoc/WithForm.js +20 -21
  376. package/dist/@ecme/views/guide/SharedComponentsDoc/components/RichTextEditorDoc/WithForm.js.map +1 -1
  377. package/dist/@ecme/views/ui-components/data-display/Table/Editable.js +17 -18
  378. package/dist/@ecme/views/ui-components/data-display/Table/Editable.js.map +1 -1
  379. package/dist/@ecme/views/ui-components/data-display/Table/PaginationTable.js +12 -12
  380. package/dist/@ecme/views/ui-components/data-display/Table/PaginationTable.js.map +1 -1
  381. package/dist/@ecme/views/ui-components/forms/FormControl/AsyncValidation.js +28 -29
  382. package/dist/@ecme/views/ui-components/forms/FormControl/AsyncValidation.js.map +1 -1
  383. package/dist/@ecme/views/ui-components/forms/FormControl/Basic.js +21 -22
  384. package/dist/@ecme/views/ui-components/forms/FormControl/Basic.js.map +1 -1
  385. package/dist/@ecme/views/ui-components/forms/FormControl/DependentValidation.js +24 -25
  386. package/dist/@ecme/views/ui-components/forms/FormControl/DependentValidation.js.map +1 -1
  387. package/dist/@ecme/views/ui-components/forms/FormControl/DynamicForm.js +75 -79
  388. package/dist/@ecme/views/ui-components/forms/FormControl/DynamicForm.js.map +1 -1
  389. package/dist/@ecme/views/ui-components/forms/FormControl/FieldValidation.js +19 -20
  390. package/dist/@ecme/views/ui-components/forms/FormControl/FieldValidation.js.map +1 -1
  391. package/dist/@ecme/views/ui-components/forms/FormControl/MixedFormControl.js +90 -91
  392. package/dist/@ecme/views/ui-components/forms/FormControl/MixedFormControl.js.map +1 -1
  393. package/dist/@ecme/views/ui-components/forms/FormControl/SchemaValidation.js +22 -23
  394. package/dist/@ecme/views/ui-components/forms/FormControl/SchemaValidation.js.map +1 -1
  395. package/dist/@types/base/configs/api.config.d.ts +0 -19
  396. package/dist/@types/base/configs/api.config.d.ts.map +1 -1
  397. package/dist/base/assets/styles/init.css +1 -1
  398. package/dist/base/components/forms/ArraysForms/GenericArrayNumberFormSection.js +24 -25
  399. package/dist/base/components/forms/ArraysForms/GenericArrayNumberFormSection.js.map +1 -1
  400. package/dist/base/components/forms/ArraysForms/GenericArrayStringFormSection.js +23 -24
  401. package/dist/base/components/forms/ArraysForms/GenericArrayStringFormSection.js.map +1 -1
  402. package/dist/base/components/forms/GenericFomrsSetValue/GenericNumberFormSectionPrice.js +30 -31
  403. package/dist/base/components/forms/GenericFomrsSetValue/GenericNumberFormSectionPrice.js.map +1 -1
  404. package/dist/base/components/forms/GenericFomrsSetValue/GenericStringFormSection.js +25 -26
  405. package/dist/base/components/forms/GenericFomrsSetValue/GenericStringFormSection.js.map +1 -1
  406. package/dist/base/components/forms/GenericForms/GenericArrayFormSection.js +49 -50
  407. package/dist/base/components/forms/GenericForms/GenericArrayFormSection.js.map +1 -1
  408. package/dist/base/components/forms/GenericForms/GenericNumberFormSection.js +27 -28
  409. package/dist/base/components/forms/GenericForms/GenericNumberFormSection.js.map +1 -1
  410. package/dist/base/components/forms/GenericForms/GenericStringFormSection.js +23 -24
  411. package/dist/base/components/forms/GenericForms/GenericStringFormSection.js.map +1 -1
  412. package/dist/base/components/forms/GenericForms/GenericUploadFormSection.js +27 -28
  413. package/dist/base/components/forms/GenericForms/GenericUploadFormSection.js.map +1 -1
  414. package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionPercentage.js +29 -30
  415. package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionPercentage.js.map +1 -1
  416. package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionPrice.js +27 -28
  417. package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionPrice.js.map +1 -1
  418. package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionWeight.js +27 -28
  419. package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionWeight.js.map +1 -1
  420. package/dist/base/components/shared/TransferirProcessoDialog.js +10 -10
  421. package/dist/base/components/shared/TransferirProcessoDialog.js.map +1 -1
  422. package/dist/base/components/tools/NavFilter.js +68 -75
  423. package/dist/base/components/tools/NavFilter.js.map +1 -1
  424. package/dist/base/configs/api.config.js +11 -14
  425. package/dist/base/configs/api.config.js.map +1 -1
  426. package/dist/base/hooks/adm/roles/useRolesList.js +11 -11
  427. package/dist/base/hooks/adm/roles/useRolesList.js.map +1 -1
  428. package/dist/base/hooks/adm/users/useUsersList.js +10 -10
  429. package/dist/base/hooks/adm/users/useUsersList.js.map +1 -1
  430. package/dist/base/hooks/dm/businessPartner/useBusinessPartnerClienteList.js +5 -5
  431. package/dist/base/hooks/dm/businessPartner/useBusinessPartnerClienteList.js.map +1 -1
  432. package/dist/base/hooks/dm/businessPartner/useBusinessPartnerFornecedorList.js +7 -7
  433. package/dist/base/hooks/dm/businessPartner/useBusinessPartnerFornecedorList.js.map +1 -1
  434. package/dist/base/hooks/dm/businessPartner/useBusinessPartnerList.js +10 -10
  435. package/dist/base/hooks/dm/businessPartner/useBusinessPartnerList.js.map +1 -1
  436. package/dist/base/hooks/dm/canalDistribuicao/useCanalDistribuicaoByCodigoList.js +8 -8
  437. package/dist/base/hooks/dm/canalDistribuicao/useCanalDistribuicaoByCodigoList.js.map +1 -1
  438. package/dist/base/hooks/dm/canalDistribuicao/useCanalDistribuicaoList.js +8 -8
  439. package/dist/base/hooks/dm/canalDistribuicao/useCanalDistribuicaoList.js.map +1 -1
  440. package/dist/base/hooks/dm/centro/useCentroByCodigoList.js +13 -13
  441. package/dist/base/hooks/dm/centro/useCentroByCodigoList.js.map +1 -1
  442. package/dist/base/hooks/dm/centro/useCentroList.js +6 -6
  443. package/dist/base/hooks/dm/centro/useCentroList.js.map +1 -1
  444. package/dist/base/hooks/dm/condicaoPagamento/useCondicaoPagamentoList.js +4 -4
  445. package/dist/base/hooks/dm/condicaoPagamento/useCondicaoPagamentoList.js.map +1 -1
  446. package/dist/base/hooks/dm/deposito/useDepositoByCodigoList.js +9 -9
  447. package/dist/base/hooks/dm/deposito/useDepositoByCodigoList.js.map +1 -1
  448. package/dist/base/hooks/dm/deposito/useDepositoList.js +5 -5
  449. package/dist/base/hooks/dm/deposito/useDepositoList.js.map +1 -1
  450. package/dist/base/hooks/dm/deposito/useDepositosByCodigoCentroList.js +13 -13
  451. package/dist/base/hooks/dm/deposito/useDepositosByCodigoCentroList.js.map +1 -1
  452. package/dist/base/hooks/dm/equipeVenda/useEquipeVendaByCodigoList.js +8 -8
  453. package/dist/base/hooks/dm/equipeVenda/useEquipeVendaByCodigoList.js.map +1 -1
  454. package/dist/base/hooks/dm/equipeVenda/useEquipeVendaList.js +6 -6
  455. package/dist/base/hooks/dm/equipeVenda/useEquipeVendaList.js.map +1 -1
  456. package/dist/base/hooks/dm/escritorioVenda/useEscritorioVendaByCodigoList.js +10 -10
  457. package/dist/base/hooks/dm/escritorioVenda/useEscritorioVendaByCodigoList.js.map +1 -1
  458. package/dist/base/hooks/dm/escritorioVenda/useEscritorioVendaList.js +7 -7
  459. package/dist/base/hooks/dm/escritorioVenda/useEscritorioVendaList.js.map +1 -1
  460. package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoByCodigoList.js +10 -10
  461. package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoByCodigoList.js.map +1 -1
  462. package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoList.js +1 -1
  463. package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoList.js.map +1 -1
  464. package/dist/base/hooks/dm/grupoVenda/useGrupoVendaByCodigoList.js +11 -11
  465. package/dist/base/hooks/dm/grupoVenda/useGrupoVendaByCodigoList.js.map +1 -1
  466. package/dist/base/hooks/dm/grupoVenda/useGrupoVendaList.js +9 -9
  467. package/dist/base/hooks/dm/grupoVenda/useGrupoVendaList.js.map +1 -1
  468. package/dist/base/hooks/dm/incoterms/useIncotermsList.js +17 -18
  469. package/dist/base/hooks/dm/incoterms/useIncotermsList.js.map +1 -1
  470. package/dist/base/hooks/dm/produto/useProdutoByCodigoList.js +13 -13
  471. package/dist/base/hooks/dm/produto/useProdutoByCodigoList.js.map +1 -1
  472. package/dist/base/hooks/dm/produto/useProdutoByGrupoProdutoList.js +21 -21
  473. package/dist/base/hooks/dm/produto/useProdutoByGrupoProdutoList.js.map +1 -1
  474. package/dist/base/hooks/dm/produto/useProdutoFindList.js +8 -8
  475. package/dist/base/hooks/dm/produto/useProdutoFindList.js.map +1 -1
  476. package/dist/base/hooks/dm/produto/useProdutoFindMonitorList.js +11 -11
  477. package/dist/base/hooks/dm/produto/useProdutoFindMonitorList.js.map +1 -1
  478. package/dist/base/hooks/dm/produto/useProdutoIsPrecificadoRacaoList.js +9 -9
  479. package/dist/base/hooks/dm/produto/useProdutoIsPrecificadoRacaoList.js.map +1 -1
  480. package/dist/base/hooks/dm/setorAtividade/useSetorAtividadeList.js +5 -5
  481. package/dist/base/hooks/dm/setorAtividade/useSetorAtividadeList.js.map +1 -1
  482. package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaByCodigoList.js +9 -9
  483. package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaByCodigoList.js.map +1 -1
  484. package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaList.js +9 -9
  485. package/dist/base/hooks/dm/tipoDocumentoVenda/useTipoDocumentoVendaList.js.map +1 -1
  486. package/dist/base/hooks/dm/tipoOrdemVenda/useTipoOrdemVendaByCodigoList.js +10 -10
  487. package/dist/base/hooks/dm/tipoOrdemVenda/useTipoOrdemVendaByCodigoList.js.map +1 -1
  488. package/dist/base/hooks/dm/tipoOrdemVenda/useTipoOrdemVendaList.js +9 -9
  489. package/dist/base/hooks/dm/tipoOrdemVenda/useTipoOrdemVendaList.js.map +1 -1
  490. package/dist/base/hooks/useList.js +10 -10
  491. package/dist/base/hooks/useList.js.map +1 -1
  492. package/dist/base/services/modules/transportadora/ControleDescarga/ControleDescargaService.js +15 -15
  493. package/dist/base/services/modules/transportadora/ControleDescarga/ControleDescargaService.js.map +1 -1
  494. package/dist/base/services/modules/transportadora/ControleEmbarque/ControleEmbarqueService.js +7 -7
  495. package/dist/base/services/modules/transportadora/ControleEmbarque/ControleEmbarqueService.js.map +1 -1
  496. package/dist/base/services/modules/transportadora/NaturezaCarga/NaturezaCargaService.js +5 -5
  497. package/dist/base/services/modules/transportadora/NaturezaCarga/NaturezaCargaService.js.map +1 -1
  498. package/dist/base/utils/functions/stringUtils.js +14 -15
  499. package/dist/base/utils/functions/stringUtils.js.map +1 -1
  500. package/lib/base/configs/api.config.ts +6 -7
  501. package/package.json +1 -1
  502. package/tsconfig.json +6 -1
@@ -1,117 +1,117 @@
1
- import { jsxs as M, jsx as s, Fragment as I } from "react/jsx-runtime";
1
+ import { jsxs as M, jsx as r, Fragment as H } from "react/jsx-runtime";
2
2
  import v from "classnames";
3
- import o from "dayjs";
3
+ import e from "dayjs";
4
4
  import { isMonthInRange as N } from "../utils/isMonthInRange.js";
5
- import R from "./Header.js";
6
- import K from "./components/Month.js";
7
- import P from "../../utils/capitalize.js";
5
+ import I from "./Header.js";
6
+ import R from "./components/Month.js";
7
+ import K from "../../utils/capitalize.js";
8
8
  function k({
9
- month: c,
10
- locale: a,
11
- format: m
9
+ month: m,
10
+ locale: o,
11
+ format: s
12
12
  }) {
13
- return P(o(c).locale(a).format(m));
13
+ return K(e(m).locale(o).format(s));
14
14
  }
15
- const F = (c) => {
15
+ const E = (m) => {
16
16
  const {
17
- dateViewCount: a,
18
- paginateBy: m,
19
- month: n,
20
- locale: h,
21
- minDate: l,
22
- maxDate: d,
23
- enableHeaderLabel: p,
17
+ dateViewCount: o,
18
+ paginateBy: s,
19
+ month: a,
20
+ locale: l,
21
+ minDate: c,
22
+ maxDate: h,
23
+ enableHeaderLabel: u,
24
24
  daysRefs: w,
25
- onMonthChange: f,
26
- onNextLevel: D,
25
+ onMonthChange: p,
26
+ onNextLevel: b,
27
27
  onDayKeyDown: C,
28
- className: y,
29
- labelFormat: e,
28
+ className: f,
29
+ labelFormat: D,
30
30
  weekdayLabelFormat: L,
31
- preventFocus: i,
31
+ preventFocus: d,
32
32
  renderDay: g,
33
- ...Y
34
- } = c, j = o(n).add(a, "months").toDate(), x = o(n).subtract(1, "months").toDate(), b = "picker-header-label hover:text-primary", H = Array(a).fill(0).map((z, t) => {
35
- const u = o(n).add(t, "months").toDate();
33
+ ...F
34
+ } = m, Y = e(a).add(o, "months").toDate(), j = e(a).subtract(1, "months").toDate(), y = "picker-header-label hover:text-primary", x = Array(o).fill(0).map((P, t) => {
35
+ const i = e(a).add(t, "months").toDate();
36
36
  return /* @__PURE__ */ M("div", { className: "day-picker", children: [
37
- /* @__PURE__ */ s(
38
- R,
37
+ /* @__PURE__ */ r(
38
+ I,
39
39
  {
40
- hasNext: t + 1 === a && N({
41
- date: j,
42
- minDate: l,
43
- maxDate: d
40
+ hasNext: t + 1 === o && N({
41
+ date: Y,
42
+ minDate: c,
43
+ maxDate: h
44
44
  }),
45
45
  hasPrevious: t === 0 && N({
46
- date: x,
47
- minDate: l,
48
- maxDate: d
46
+ date: j,
47
+ minDate: c,
48
+ maxDate: h
49
49
  }),
50
- className: y,
51
- onNext: () => f(
52
- o(n).add(m, "months").toDate()
50
+ className: f,
51
+ onNext: () => p(
52
+ e(a).add(s, "months").toDate()
53
53
  ),
54
- onPrevious: () => f(
55
- o(n).subtract(m, "months").toDate()
54
+ onPrevious: () => p(
55
+ e(a).subtract(s, "months").toDate()
56
56
  ),
57
57
  children: /* @__PURE__ */ M("div", { children: [
58
- /* @__PURE__ */ s(
58
+ /* @__PURE__ */ r(
59
59
  "button",
60
60
  {
61
- className: v(b),
62
- disabled: !p,
61
+ className: v(y),
62
+ disabled: !u,
63
63
  tabIndex: t > 0 ? -1 : 0,
64
64
  type: "button",
65
- onClick: () => D("month"),
66
- onMouseDown: (r) => i && r.preventDefault(),
65
+ onClick: () => b("month"),
66
+ onMouseDown: (n) => d && n.preventDefault(),
67
67
  children: k({
68
- month: u,
69
- locale: h,
70
- format: (e == null ? void 0 : e.month) || "MMM"
68
+ month: i,
69
+ locale: l,
70
+ format: D?.month || "MMM"
71
71
  })
72
72
  }
73
73
  ),
74
- /* @__PURE__ */ s(
74
+ /* @__PURE__ */ r(
75
75
  "button",
76
76
  {
77
- className: v(b),
78
- disabled: !p,
77
+ className: v(y),
78
+ disabled: !u,
79
79
  tabIndex: t > 0 ? -1 : 0,
80
80
  type: "button",
81
- onClick: () => D("year"),
82
- onMouseDown: (r) => i && r.preventDefault(),
81
+ onClick: () => b("year"),
82
+ onMouseDown: (n) => d && n.preventDefault(),
83
83
  children: k({
84
- month: u,
85
- locale: h,
86
- format: (e == null ? void 0 : e.year) || "YYYY"
84
+ month: i,
85
+ locale: l,
86
+ format: D?.year || "YYYY"
87
87
  })
88
88
  }
89
89
  )
90
90
  ] })
91
91
  }
92
92
  ),
93
- /* @__PURE__ */ s(
94
- K,
93
+ /* @__PURE__ */ r(
94
+ R,
95
95
  {
96
- month: u,
96
+ month: i,
97
97
  daysRefs: w.current[t],
98
- minDate: l,
99
- maxDate: d,
100
- className: y,
101
- locale: h,
98
+ minDate: c,
99
+ maxDate: h,
100
+ className: f,
101
+ locale: l,
102
102
  focusable: t === 0,
103
- preventFocus: i,
103
+ preventFocus: d,
104
104
  renderDay: g,
105
105
  weekdayLabelFormat: L,
106
- onDayKeyDown: (...r) => C(t, ...r),
107
- ...Y
106
+ onDayKeyDown: (...n) => C(t, ...n),
107
+ ...F
108
108
  }
109
109
  )
110
110
  ] }, t);
111
111
  });
112
- return /* @__PURE__ */ s(I, { children: H });
112
+ return /* @__PURE__ */ r(H, { children: x });
113
113
  };
114
114
  export {
115
- F as default
115
+ E as default
116
116
  };
117
117
  //# sourceMappingURL=DateTable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DateTable.js","sources":["../../../../../../lib/@ecme/components/ui/DatePicker/tables/DateTable.tsx"],"sourcesContent":["import classNames from 'classnames'\nimport dayjs from 'dayjs'\nimport { isMonthInRange } from '../utils/isMonthInRange'\nimport Header from './Header'\nimport Month from './components/Month'\nimport capitalize from '../../utils/capitalize'\nimport type { CommonProps } from '../../@types/common'\nimport type { MonthBaseProps } from './components/Month'\nimport type { DayKeydownPayload } from './components/types'\nimport type { RefObject } from 'react'\n\nexport interface DateTableProps extends CommonProps, MonthBaseProps {\n dateViewCount: number\n paginateBy: number\n locale: string\n enableHeaderLabel: boolean\n daysRefs: RefObject<HTMLButtonElement[][][] | null>\n onMonthChange: (month: Date) => void\n onNextLevel: (unit: 'month' | 'year') => void\n onDayKeyDown: (\n monthIndex: number,\n payload: DayKeydownPayload,\n event: React.KeyboardEvent<HTMLButtonElement>,\n ) => void\n labelFormat?: { month: string; year: string }\n weekdayLabelFormat?: string\n onChange?: (value: Date) => void\n onDayMouseEnter?: (date: Date, event: React.MouseEvent) => void\n preventFocus?: boolean\n renderDay?: (date: Date) => React.ReactNode\n range?: [Date, Date]\n}\n\nfunction formatMonthLabel({\n month,\n locale,\n format,\n}: {\n month: Date\n locale: string\n format: string\n}) {\n return capitalize(dayjs(month).locale(locale).format(format))\n}\n\nconst DateTable = (props: DateTableProps) => {\n const {\n dateViewCount,\n paginateBy,\n month,\n locale,\n minDate,\n maxDate,\n enableHeaderLabel,\n daysRefs,\n onMonthChange,\n onNextLevel,\n onDayKeyDown,\n className,\n labelFormat,\n weekdayLabelFormat,\n preventFocus,\n renderDay,\n ...rest\n } = props\n\n const nextMonth = dayjs(month).add(dateViewCount, 'months').toDate()\n const previousMonth = dayjs(month).subtract(1, 'months').toDate()\n\n const pickerHeaderLabelClass = 'picker-header-label hover:text-primary'\n\n const months = Array(dateViewCount)\n .fill(0)\n .map((_, index) => {\n const monthDate = dayjs(month).add(index, 'months').toDate()\n return (\n <div key={index} className=\"day-picker\">\n <Header\n hasNext={\n index + 1 === dateViewCount &&\n isMonthInRange({\n date: nextMonth,\n minDate,\n maxDate,\n })\n }\n hasPrevious={\n index === 0 &&\n isMonthInRange({\n date: previousMonth,\n minDate,\n maxDate,\n })\n }\n className={className}\n onNext={() =>\n onMonthChange(\n dayjs(month).add(paginateBy, 'months').toDate(),\n )\n }\n onPrevious={() =>\n onMonthChange(\n dayjs(month)\n .subtract(paginateBy, 'months')\n .toDate(),\n )\n }\n >\n <div>\n <button\n className={classNames(pickerHeaderLabelClass)}\n disabled={!enableHeaderLabel}\n tabIndex={index > 0 ? -1 : 0}\n type=\"button\"\n onClick={() => onNextLevel('month')}\n onMouseDown={(event) =>\n preventFocus && event.preventDefault()\n }\n >\n {formatMonthLabel({\n month: monthDate,\n locale,\n format: labelFormat?.month || 'MMM',\n })}\n </button>\n <button\n className={classNames(pickerHeaderLabelClass)}\n disabled={!enableHeaderLabel}\n tabIndex={index > 0 ? -1 : 0}\n type=\"button\"\n onClick={() => onNextLevel('year')}\n onMouseDown={(event) =>\n preventFocus && event.preventDefault()\n }\n >\n {formatMonthLabel({\n month: monthDate,\n locale,\n format: labelFormat?.year || 'YYYY',\n })}\n </button>\n </div>\n </Header>\n <Month\n month={monthDate}\n daysRefs={\n (daysRefs.current as HTMLButtonElement[][][])[index]\n }\n minDate={minDate}\n maxDate={maxDate}\n className={className}\n locale={locale}\n focusable={index === 0}\n preventFocus={preventFocus}\n renderDay={renderDay}\n weekdayLabelFormat={weekdayLabelFormat}\n onDayKeyDown={(...args) => onDayKeyDown(index, ...args)}\n {...rest}\n />\n </div>\n )\n })\n\n return <>{months}</>\n}\n\nexport default DateTable\n"],"names":["formatMonthLabel","month","locale","format","capitalize","dayjs","DateTable","props","dateViewCount","paginateBy","minDate","maxDate","enableHeaderLabel","daysRefs","onMonthChange","onNextLevel","onDayKeyDown","className","labelFormat","weekdayLabelFormat","preventFocus","renderDay","rest","nextMonth","previousMonth","pickerHeaderLabelClass","months","_","index","monthDate","jsxs","jsx","Header","isMonthInRange","classNames","event","Month","args"],"mappings":";;;;;;;AAiCA,SAASA,EAAiB;AAAA,EACtB,OAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC;AACJ,GAIG;AACC,SAAOC,EAAWC,EAAMJ,CAAK,EAAE,OAAOC,CAAM,EAAE,OAAOC,CAAM,CAAC;AAChE;AAEA,MAAMG,IAAY,CAACC,MAA0B;AACzC,QAAM;AAAA,IACF,eAAAC;AAAA,IACA,YAAAC;AAAA,IACA,OAAAR;AAAA,IACA,QAAAC;AAAA,IACA,SAAAQ;AAAA,IACA,SAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,UAAAC;AAAA,IACA,eAAAC;AAAA,IACA,aAAAC;AAAA,IACA,cAAAC;AAAA,IACA,WAAAC;AAAA,IACA,aAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,WAAAC;AAAA,IACA,GAAGC;AAAA,EAAA,IACHf,GAEEgB,IAAYlB,EAAMJ,CAAK,EAAE,IAAIO,GAAe,QAAQ,EAAE,OAAA,GACtDgB,IAAgBnB,EAAMJ,CAAK,EAAE,SAAS,GAAG,QAAQ,EAAE,OAAA,GAEnDwB,IAAyB,0CAEzBC,IAAS,MAAMlB,CAAa,EAC7B,KAAK,CAAC,EACN,IAAI,CAACmB,GAAGC,MAAU;AACf,UAAMC,IAAYxB,EAAMJ,CAAK,EAAE,IAAI2B,GAAO,QAAQ,EAAE,OAAA;AACpD,WACI,gBAAAE,EAAC,OAAA,EAAgB,WAAU,cACvB,UAAA;AAAA,MAAA,gBAAAC;AAAA,QAACC;AAAA,QAAA;AAAA,UACG,SACIJ,IAAQ,MAAMpB,KACdyB,EAAe;AAAA,YACX,MAAMV;AAAA,YACN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AA;AAAA,YAAA;AAAA,UACL,EAAA,CACJ;AAAA,QAAA;AAAA,MAAA;AAAA,MAEJ,gBAAAa;AAAA,QAACK;AAAA,QAAA;AAAA,UACG,OAAOP;AAAA,UACP,UACKhB,EAAS,QAAoCe,CAAK;AAAA,UAEvD,SAAAlB;AAAA,UACA,SAAAC;AAAA,UACA,WAAAM;AAAA,UACA,QAAAf;AAAA,UACA,WAAW0B,MAAU;AAAA,UACrB,cAAAR;AAAA,UACA,WAAAC;AAAA,UACA,oBAAAF;AAAA,UACA,cAAc,IAAIkB,MAASrB,EAAaY,GAAO,GAAGS,CAAI;AAAA,UACrD,GAAGf;AAAA,QAAA;AAAA,MAAA;AAAA,IACR,EAAA,GAlFMM,CAmFV;AAAA,EAER,CAAC;AAEL,gCAAU,UAAAF,EAAA,CAAO;AACrB;"}
1
+ {"version":3,"file":"DateTable.js","sources":["../../../../../../lib/@ecme/components/ui/DatePicker/tables/DateTable.tsx"],"sourcesContent":["import classNames from 'classnames'\nimport dayjs from 'dayjs'\nimport { isMonthInRange } from '../utils/isMonthInRange'\nimport Header from './Header'\nimport Month from './components/Month'\nimport capitalize from '../../utils/capitalize'\nimport type { CommonProps } from '../../@types/common'\nimport type { MonthBaseProps } from './components/Month'\nimport type { DayKeydownPayload } from './components/types'\nimport type { RefObject } from 'react'\n\nexport interface DateTableProps extends CommonProps, MonthBaseProps {\n dateViewCount: number\n paginateBy: number\n locale: string\n enableHeaderLabel: boolean\n daysRefs: RefObject<HTMLButtonElement[][][] | null>\n onMonthChange: (month: Date) => void\n onNextLevel: (unit: 'month' | 'year') => void\n onDayKeyDown: (\n monthIndex: number,\n payload: DayKeydownPayload,\n event: React.KeyboardEvent<HTMLButtonElement>,\n ) => void\n labelFormat?: { month: string; year: string }\n weekdayLabelFormat?: string\n onChange?: (value: Date) => void\n onDayMouseEnter?: (date: Date, event: React.MouseEvent) => void\n preventFocus?: boolean\n renderDay?: (date: Date) => React.ReactNode\n range?: [Date, Date]\n}\n\nfunction formatMonthLabel({\n month,\n locale,\n format,\n}: {\n month: Date\n locale: string\n format: string\n}) {\n return capitalize(dayjs(month).locale(locale).format(format))\n}\n\nconst DateTable = (props: DateTableProps) => {\n const {\n dateViewCount,\n paginateBy,\n month,\n locale,\n minDate,\n maxDate,\n enableHeaderLabel,\n daysRefs,\n onMonthChange,\n onNextLevel,\n onDayKeyDown,\n className,\n labelFormat,\n weekdayLabelFormat,\n preventFocus,\n renderDay,\n ...rest\n } = props\n\n const nextMonth = dayjs(month).add(dateViewCount, 'months').toDate()\n const previousMonth = dayjs(month).subtract(1, 'months').toDate()\n\n const pickerHeaderLabelClass = 'picker-header-label hover:text-primary'\n\n const months = Array(dateViewCount)\n .fill(0)\n .map((_, index) => {\n const monthDate = dayjs(month).add(index, 'months').toDate()\n return (\n <div key={index} className=\"day-picker\">\n <Header\n hasNext={\n index + 1 === dateViewCount &&\n isMonthInRange({\n date: nextMonth,\n minDate,\n maxDate,\n })\n }\n hasPrevious={\n index === 0 &&\n isMonthInRange({\n date: previousMonth,\n minDate,\n maxDate,\n })\n }\n className={className}\n onNext={() =>\n onMonthChange(\n dayjs(month).add(paginateBy, 'months').toDate(),\n )\n }\n onPrevious={() =>\n onMonthChange(\n dayjs(month)\n .subtract(paginateBy, 'months')\n .toDate(),\n )\n }\n >\n <div>\n <button\n className={classNames(pickerHeaderLabelClass)}\n disabled={!enableHeaderLabel}\n tabIndex={index > 0 ? -1 : 0}\n type=\"button\"\n onClick={() => onNextLevel('month')}\n onMouseDown={(event) =>\n preventFocus && event.preventDefault()\n }\n >\n {formatMonthLabel({\n month: monthDate,\n locale,\n format: labelFormat?.month || 'MMM',\n })}\n </button>\n <button\n className={classNames(pickerHeaderLabelClass)}\n disabled={!enableHeaderLabel}\n tabIndex={index > 0 ? -1 : 0}\n type=\"button\"\n onClick={() => onNextLevel('year')}\n onMouseDown={(event) =>\n preventFocus && event.preventDefault()\n }\n >\n {formatMonthLabel({\n month: monthDate,\n locale,\n format: labelFormat?.year || 'YYYY',\n })}\n </button>\n </div>\n </Header>\n <Month\n month={monthDate}\n daysRefs={\n (daysRefs.current as HTMLButtonElement[][][])[index]\n }\n minDate={minDate}\n maxDate={maxDate}\n className={className}\n locale={locale}\n focusable={index === 0}\n preventFocus={preventFocus}\n renderDay={renderDay}\n weekdayLabelFormat={weekdayLabelFormat}\n onDayKeyDown={(...args) => onDayKeyDown(index, ...args)}\n {...rest}\n />\n </div>\n )\n })\n\n return <>{months}</>\n}\n\nexport default DateTable\n"],"names":["formatMonthLabel","month","locale","format","capitalize","dayjs","DateTable","props","dateViewCount","paginateBy","minDate","maxDate","enableHeaderLabel","daysRefs","onMonthChange","onNextLevel","onDayKeyDown","className","labelFormat","weekdayLabelFormat","preventFocus","renderDay","rest","nextMonth","previousMonth","pickerHeaderLabelClass","months","_","index","monthDate","jsxs","jsx","Header","isMonthInRange","classNames","event","Month","args"],"mappings":";;;;;;;AAiCA,SAASA,EAAiB;AAAA,EACtB,OAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC;AACJ,GAIG;AACC,SAAOC,EAAWC,EAAMJ,CAAK,EAAE,OAAOC,CAAM,EAAE,OAAOC,CAAM,CAAC;AAChE;AAEA,MAAMG,IAAY,CAACC,MAA0B;AACzC,QAAM;AAAA,IACF,eAAAC;AAAA,IACA,YAAAC;AAAA,IACA,OAAAR;AAAA,IACA,QAAAC;AAAA,IACA,SAAAQ;AAAA,IACA,SAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,UAAAC;AAAA,IACA,eAAAC;AAAA,IACA,aAAAC;AAAA,IACA,cAAAC;AAAA,IACA,WAAAC;AAAA,IACA,aAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,WAAAC;AAAA,IACA,GAAGC;AAAA,EAAA,IACHf,GAEEgB,IAAYlB,EAAMJ,CAAK,EAAE,IAAIO,GAAe,QAAQ,EAAE,OAAA,GACtDgB,IAAgBnB,EAAMJ,CAAK,EAAE,SAAS,GAAG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A,gBACG,WAAWG,EAAWT,CAAsB;AAAA,gBAC5C,UAAU,CAACb;AAAA,gBACX,UAAUgB,IAAQ,IAAI,KAAK;AAAA,gBAC3B,MAAK;AAAA,gBACL,SAAS,MAAMb,EAAY,MAAM;AAAA,gBACjC,aAAa,CAACoB,MACVf,KAAgBe,EAAM,eAAA;AAAA,gBAGzB,UAAAnC,EAAiB;AAAA,kBACd,OAAO6B;AAAA,kBACP,QAAA3B;AAAA,kBACA,QAAQgB,GAAa,QAAQ;AAAA,gBAAA,CAChC;AAAA,cAAA;AAAA,YAAA;AAAA,UACL,EAAA,CACJ;AAAA,QAAA;AAAA,MAAA;AAAA,MAEJ,gBAAAa;AAAA,QAACK;AAAA,QAAA;AAAA,UACG,OAAOP;AAAA,UACP,UACKhB,EAAS,QAAoCe,CAAK;AAAA,UAEvD,SAAAlB;AAAA,UACA,SAAAC;AAAA,UACA,WAAAM;AAAA,UACA,QAAAf;AAAA,UACA,WAAW0B,MAAU;AAAA,UACrB,cAAAR;AAAA,UACA,WAAAC;AAAA,UACA,oBAAAF;AAAA,UACA,cAAc,IAAIkB,MAASrB,EAAaY,GAAO,GAAGS,CAAI;AAAA,UACrD,GAAGf;AAAA,QAAA;AAAA,MAAA;AAAA,IACR,EAAA,GAlFMM,CAmFV;AAAA,EAER,CAAC;AAEL,gCAAU,UAAAF,EAAA,CAAO;AACrB;"}
@@ -3,16 +3,16 @@ import D from "classnames";
3
3
  function I({
4
4
  focusable: a,
5
5
  hasValue: l,
6
- selected: t,
7
- firstInMonth: r
6
+ selected: r,
7
+ firstInMonth: t
8
8
  }) {
9
- return a ? l ? t ? 0 : -1 : r ? 0 : -1 : -1;
9
+ return a ? l ? r ? 0 : -1 : t ? 0 : -1 : -1;
10
10
  }
11
11
  const R = (a) => {
12
12
  const {
13
13
  className: l,
14
- value: t,
15
- selected: r,
14
+ value: r,
15
+ selected: t,
16
16
  weekend: u,
17
17
  outOfMonth: c,
18
18
  onMouseEnter: p,
@@ -41,7 +41,7 @@ const R = (a) => {
41
41
  tabIndex: I({
42
42
  focusable: k,
43
43
  hasValue: f,
44
- selected: r,
44
+ selected: t,
45
45
  firstInMonth: h
46
46
  }),
47
47
  className: D(
@@ -51,18 +51,18 @@ const R = (a) => {
51
51
  u && !e && "date-picker-cell-weekend",
52
52
  c && !e && "date-picker-other-month",
53
53
  c && m && "d-none",
54
- !c && !e && !r && "date-picker-cell-current-month",
55
- !e && !r && !n && "date-picker-cell-hoverable",
56
- r && !e && "date-picker-cell-selected bg-primary text-neutral",
57
- n && !e && !d && !i && !r && "bg-primary-subtle",
54
+ !c && !e && !t && "date-picker-cell-current-month",
55
+ !e && !t && !n && "date-picker-cell-hoverable",
56
+ t && !e && "date-picker-cell-selected bg-primary text-neutral",
57
+ n && !e && !d && !i && !t && "bg-primary-subtle",
58
58
  !n && !d && !i && "rounded-full",
59
59
  n && o && "date-picker-cell-inrange-today",
60
60
  d && !e && "date-picker-cell-selected-start",
61
61
  i && !e && "date-picker-cell-selected-end",
62
62
  l
63
63
  ),
64
- onMouseEnter: (y) => p(t, y),
65
- children: typeof s == "function" ? s(t) : t == null ? void 0 : t.getDate()
64
+ onMouseEnter: (y) => p(r, y),
65
+ children: typeof s == "function" ? s(r) : r?.getDate()
66
66
  }
67
67
  );
68
68
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Day.js","sources":["../../../../../../../lib/@ecme/components/ui/DatePicker/tables/components/Day.tsx"],"sourcesContent":["import classNames from 'classnames'\nimport type { ComponentPropsWithRef, ReactNode, MouseEvent, Ref } from 'react'\nimport type { CommonProps } from '../../../@types/common'\n\nexport interface DayProps\n extends CommonProps,\n Omit<ComponentPropsWithRef<'button'>, 'value' | 'onMouseEnter'> {\n value: Date\n selected: boolean\n weekend: boolean\n outOfMonth: boolean\n onMouseEnter: (date: Date, event: MouseEvent<HTMLButtonElement>) => void\n hasValue: boolean\n inRange: boolean\n firstInRange: boolean\n lastInRange: boolean\n isToday: boolean\n fullWidth: boolean\n firstInMonth: boolean\n focusable: boolean\n hideOutOfMonthDates?: boolean\n ref?: Ref<HTMLButtonElement>\n renderDay?: (date: Date) => ReactNode\n disabled: boolean\n}\n\nfunction getDayTabIndex({\n focusable,\n hasValue,\n selected,\n firstInMonth,\n}: {\n focusable: boolean\n hasValue: boolean\n selected: boolean\n firstInMonth: boolean\n}) {\n if (!focusable) {\n return -1\n }\n\n if (hasValue) {\n return selected ? 0 : -1\n }\n\n return firstInMonth ? 0 : -1\n}\n\nconst Day = (props: DayProps) => {\n const {\n className,\n value,\n selected,\n weekend,\n outOfMonth,\n onMouseEnter,\n hasValue,\n firstInRange,\n lastInRange,\n inRange,\n isToday,\n firstInMonth,\n focusable,\n hideOutOfMonthDates,\n ref,\n renderDay,\n disabled,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n fullWidth,\n ...others\n } = props\n\n return (\n <button\n {...others}\n ref={ref}\n type=\"button\"\n disabled={disabled}\n tabIndex={getDayTabIndex({\n focusable,\n hasValue,\n selected,\n firstInMonth,\n })}\n className={classNames(\n 'date-picker-cell-content',\n disabled && 'date-picker-cell-disabled',\n isToday && `ring-1 ring-inset ring-primary`,\n weekend && !disabled && 'date-picker-cell-weekend',\n outOfMonth && !disabled && 'date-picker-other-month',\n outOfMonth && hideOutOfMonthDates && 'd-none',\n !outOfMonth &&\n !disabled &&\n !selected &&\n 'date-picker-cell-current-month',\n !disabled &&\n !selected &&\n !inRange &&\n 'date-picker-cell-hoverable',\n selected &&\n !disabled &&\n 'date-picker-cell-selected bg-primary text-neutral',\n inRange &&\n !disabled &&\n !firstInRange &&\n !lastInRange &&\n !selected &&\n 'bg-primary-subtle',\n !inRange && !firstInRange && !lastInRange && 'rounded-full',\n inRange && isToday && 'date-picker-cell-inrange-today',\n firstInRange && !disabled && 'date-picker-cell-selected-start',\n lastInRange && !disabled && 'date-picker-cell-selected-end',\n className,\n )}\n onMouseEnter={(event) => onMouseEnter(value, event)}\n >\n {typeof renderDay === 'function'\n ? renderDay(value)\n : value?.getDate()}\n </button>\n )\n}\n\nexport default Day\n"],"names":["getDayTabIndex","focusable","hasValue","selected","firstInMonth","Day","props","className","value","weekend","outOfMonth","onMouseEnter","firstInRange","lastInRange","inRange","isToday","hideOutOfMonthDates","ref","renderDay","disabled","fullWidth","others","jsx","classNames","event"],"mappings":";;AA0BA,SAASA,EAAe;AAAA,EACpB,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,cAAAC;AACJ,GAKG;AACC,SAAKH,IAIDC,IACOC,IAAW,IAAI,KAGnBC,IAAe,IAAI,KAPf;AAQf;AAEA,MAAMC,IAAM,CAACC,MAAoB;AAC7B,QAAM;AAAA,IACF,WAAAC;AAAA,IACA,OAAAC;AAAA,IACA,UAAAL;AAAA,IACA,SAAAM;AAAA,IACA,YAAAC;AAAA,IACA,cAAAC;AAAA,IACA,UAAAT;AAAA,IACA,cAAAU;AAAA,IACA,aAAAC;AAAA,IACA,SAAAC;AAAA,IACA,SAAAC;AAAA,IACA,cAAAX;AAAA,IACA,WAAAH;AAAA,IACA,qBAAAe;AAAA,IACA,KAAAC;AAAA,IACA,WAAAC;AAAA,IACA,UAAAC;AAAA;AAAA,IAEA,WAAAC;AAAA,IACA,GAAGC;AAAA,EAAA,IACHf;AAEJ,SACI,gBAAAgB;AAAA,IAAC;AAAA,IAAA;AAAA,MACI,GAAGD;AAAA,MACJ,KAAAJ;AAAA,MACA,MAAK;AAAA,MACL,UAAAE;AAAA,MACA,UAAUnB,EAAe;AAAA,QACrB,WAAAC;AAAA,QACA,UAAAC;AAAA,QACA,UAAAC;AAAA,QACA,cAAAC;AAAA,MAAA,CACH;AAAA,MACD,WAAWmB;AAAA,QACP;AAAA,QACAJ,KAAY;AAAA,QACZJ,KAAW;AAAA,QACXN,KAAW,CAACU,KAAY;AAAA,QACxBT,KAAc,CAACS,KAAY;AAAA,QAC3BT,KAAcM,KAAuB;AAAA,QACrC,CAACN,KACG,CAACS,KACD,CAAChB,KACD;AAAA,QACJ,CAACgB,KACG,CAAChB,KACD,CAACW,KACD;AAAA,QACJX,KACI,CAACgB,KACD;AAAA,QACJL,KACI,CAACK,KACD,CAACP,KACD,CAACC,KACD,CAACV,KACD;AAAA,QACJ,CAACW,KAAW,CAACF,KAAgB,CAACC,KAAe;AAAA,QAC7CC,KAAWC,KAAW;AAAA,QACtBH,KAAgB,CAACO,KAAY;AAAA,QAC7BN,KAAe,CAACM,KAAY;AAAA,QAC5BZ;AAAA,MAAA;AAAA,MAEJ,cAAc,CAACiB,MAAUb,EAAaH,GAAOgB,CAAK;AAAA,MAEjD,iBAAON,KAAc,aAChBA,EAAUV,CAAK,IACfA,KAAA,gBAAAA,EAAO;AAAA,IAAQ;AAAA,EAAA;AAGjC;"}
1
+ {"version":3,"file":"Day.js","sources":["../../../../../../../lib/@ecme/components/ui/DatePicker/tables/components/Day.tsx"],"sourcesContent":["import classNames from 'classnames'\nimport type { ComponentPropsWithRef, ReactNode, MouseEvent, Ref } from 'react'\nimport type { CommonProps } from '../../../@types/common'\n\nexport interface DayProps\n extends CommonProps,\n Omit<ComponentPropsWithRef<'button'>, 'value' | 'onMouseEnter'> {\n value: Date\n selected: boolean\n weekend: boolean\n outOfMonth: boolean\n onMouseEnter: (date: Date, event: MouseEvent<HTMLButtonElement>) => void\n hasValue: boolean\n inRange: boolean\n firstInRange: boolean\n lastInRange: boolean\n isToday: boolean\n fullWidth: boolean\n firstInMonth: boolean\n focusable: boolean\n hideOutOfMonthDates?: boolean\n ref?: Ref<HTMLButtonElement>\n renderDay?: (date: Date) => ReactNode\n disabled: boolean\n}\n\nfunction getDayTabIndex({\n focusable,\n hasValue,\n selected,\n firstInMonth,\n}: {\n focusable: boolean\n hasValue: boolean\n selected: boolean\n firstInMonth: boolean\n}) {\n if (!focusable) {\n return -1\n }\n\n if (hasValue) {\n return selected ? 0 : -1\n }\n\n return firstInMonth ? 0 : -1\n}\n\nconst Day = (props: DayProps) => {\n const {\n className,\n value,\n selected,\n weekend,\n outOfMonth,\n onMouseEnter,\n hasValue,\n firstInRange,\n lastInRange,\n inRange,\n isToday,\n firstInMonth,\n focusable,\n hideOutOfMonthDates,\n ref,\n renderDay,\n disabled,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n fullWidth,\n ...others\n } = props\n\n return (\n <button\n {...others}\n ref={ref}\n type=\"button\"\n disabled={disabled}\n tabIndex={getDayTabIndex({\n focusable,\n hasValue,\n selected,\n firstInMonth,\n })}\n className={classNames(\n 'date-picker-cell-content',\n disabled && 'date-picker-cell-disabled',\n isToday && `ring-1 ring-inset ring-primary`,\n weekend && !disabled && 'date-picker-cell-weekend',\n outOfMonth && !disabled && 'date-picker-other-month',\n outOfMonth && hideOutOfMonthDates && 'd-none',\n !outOfMonth &&\n !disabled &&\n !selected &&\n 'date-picker-cell-current-month',\n !disabled &&\n !selected &&\n !inRange &&\n 'date-picker-cell-hoverable',\n selected &&\n !disabled &&\n 'date-picker-cell-selected bg-primary text-neutral',\n inRange &&\n !disabled &&\n !firstInRange &&\n !lastInRange &&\n !selected &&\n 'bg-primary-subtle',\n !inRange && !firstInRange && !lastInRange && 'rounded-full',\n inRange && isToday && 'date-picker-cell-inrange-today',\n firstInRange && !disabled && 'date-picker-cell-selected-start',\n lastInRange && !disabled && 'date-picker-cell-selected-end',\n className,\n )}\n onMouseEnter={(event) => onMouseEnter(value, event)}\n >\n {typeof renderDay === 'function'\n ? renderDay(value)\n : value?.getDate()}\n </button>\n )\n}\n\nexport default Day\n"],"names":["getDayTabIndex","focusable","hasValue","selected","firstInMonth","Day","props","className","value","weekend","outOfMonth","onMouseEnter","firstInRange","lastInRange","inRange","isToday","hideOutOfMonthDates","ref","renderDay","disabled","fullWidth","others","jsx","classNames","event"],"mappings":";;AA0BA,SAASA,EAAe;AAAA,EACpB,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,cAAAC;AACJ,GAKG;AACC,SAAKH,IAIDC,IACOC,IAAW,IAAI,KAGnBC,IAAe,IAAI,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,MAEjD,iBAAON,KAAc,aAChBA,EAAUV,CAAK,IACfA,GAAO,QAAA;AAAA,IAAQ;AAAA,EAAA;AAGjC;"}
@@ -1,33 +1,33 @@
1
- import { jsx as n, jsxs as w } from "react/jsx-runtime";
1
+ import { jsx as i, jsxs as w } from "react/jsx-runtime";
2
2
  import O from "react-modal";
3
3
  import e from "classnames";
4
4
  import "../CloseButton/index.js";
5
5
  import { motion as D } from "framer-motion";
6
6
  import S from "../hooks/useWindowSize.js";
7
7
  import k from "../CloseButton/CloseButton.js";
8
- const x = (r) => {
9
- const l = S(), {
10
- bodyOpenClassName: c,
11
- children: d,
12
- className: m,
13
- closable: f = !0,
14
- closeTimeoutMS: p = 150,
15
- contentClassName: C,
16
- height: s,
17
- isOpen: i,
18
- onClose: t,
8
+ const x = (n) => {
9
+ const a = S(), {
10
+ bodyOpenClassName: r,
11
+ children: c,
12
+ className: d,
13
+ closable: m = !0,
14
+ closeTimeoutMS: f = 150,
15
+ contentClassName: p,
16
+ height: l,
17
+ isOpen: s,
18
+ onClose: C,
19
19
  overlayClassName: g,
20
20
  portalClassName: u,
21
21
  style: h,
22
- width: a = 520,
22
+ width: t = 520,
23
23
  ...N
24
- } = r, y = /* @__PURE__ */ n(
24
+ } = n, y = /* @__PURE__ */ i(
25
25
  k,
26
26
  {
27
27
  absolute: !0,
28
28
  className: "ltr:right-6 rtl:left-6 top-4.5",
29
29
  onClick: (v) => {
30
- t == null || t(v);
30
+ C?.(v);
31
31
  }
32
32
  }
33
33
  ), o = {
@@ -36,13 +36,13 @@ const x = (r) => {
36
36
  },
37
37
  ...h
38
38
  };
39
- a !== void 0 && (o.content.width = a, typeof l.width < "u" && l.width <= a && (o.content.width = "auto")), s !== void 0 && (o.content.height = s);
40
- const b = e("dialog-content", C);
41
- return /* @__PURE__ */ n(
39
+ t !== void 0 && (o.content.width = t, typeof a.width < "u" && a.width <= t && (o.content.width = "auto")), l !== void 0 && (o.content.height = l);
40
+ const b = e("dialog-content", p);
41
+ return /* @__PURE__ */ i(
42
42
  O,
43
43
  {
44
44
  className: {
45
- base: e("dialog", m),
45
+ base: e("dialog", d),
46
46
  afterOpen: "dialog-after-open",
47
47
  beforeClose: "dialog-before-close"
48
48
  },
@@ -52,11 +52,11 @@ const x = (r) => {
52
52
  beforeClose: "dialog-overlay-before-close"
53
53
  },
54
54
  portalClassName: e("dialog-portal", u),
55
- bodyOpenClassName: e("dialog-open", c),
55
+ bodyOpenClassName: e("dialog-open", r),
56
56
  ariaHideApp: !1,
57
- isOpen: i,
57
+ isOpen: s,
58
58
  style: { ...o },
59
- closeTimeoutMS: p,
59
+ closeTimeoutMS: f,
60
60
  ...N,
61
61
  children: /* @__PURE__ */ w(
62
62
  D.div,
@@ -64,11 +64,11 @@ const x = (r) => {
64
64
  className: b,
65
65
  initial: { transform: "scale(0.9)" },
66
66
  animate: {
67
- transform: i ? "scale(1)" : "scale(0.9)"
67
+ transform: s ? "scale(1)" : "scale(0.9)"
68
68
  },
69
69
  children: [
70
- f && y,
71
- d
70
+ m && y,
71
+ c
72
72
  ]
73
73
  }
74
74
  )
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.js","sources":["../../../../../lib/@ecme/components/ui/Dialog/Dialog.tsx"],"sourcesContent":["import Modal from 'react-modal'\nimport classNames from 'classnames'\nimport CloseButton from '../CloseButton'\nimport { motion } from 'framer-motion'\nimport useWindowSize from '../hooks/useWindowSize'\nimport type ReactModal from 'react-modal'\nimport type { MouseEvent } from 'react'\n\nexport interface DialogProps extends ReactModal.Props {\n closable?: boolean\n contentClassName?: string\n height?: string | number\n onClose?: (e: MouseEvent<HTMLSpanElement>) => void\n width?: number\n}\n\nconst Dialog = (props: DialogProps) => {\n const currentSize = useWindowSize()\n\n const {\n bodyOpenClassName,\n children,\n className,\n closable = true,\n closeTimeoutMS = 150,\n contentClassName,\n height,\n isOpen,\n onClose,\n overlayClassName,\n portalClassName,\n style,\n width = 520,\n ...rest\n } = props\n\n const onCloseClick = (e: MouseEvent<HTMLSpanElement>) => {\n onClose?.(e)\n }\n\n const renderCloseButton = (\n <CloseButton\n absolute\n className=\"ltr:right-6 rtl:left-6 top-4.5\"\n onClick={onCloseClick}\n />\n )\n\n const contentStyle = {\n content: {\n inset: 'unset',\n },\n ...style,\n }\n\n if (width !== undefined) {\n contentStyle.content.width = width\n\n if (\n typeof currentSize.width !== 'undefined' &&\n currentSize.width <= width\n ) {\n contentStyle.content.width = 'auto'\n }\n }\n\n if (height !== undefined) {\n contentStyle.content.height = height\n }\n\n const defaultDialogContentClass = 'dialog-content'\n\n const dialogClass = classNames(defaultDialogContentClass, contentClassName)\n\n return (\n <Modal\n className={{\n base: classNames('dialog', className as string),\n afterOpen: 'dialog-after-open',\n beforeClose: 'dialog-before-close',\n }}\n overlayClassName={{\n base: classNames('dialog-overlay', overlayClassName as string),\n afterOpen: 'dialog-overlay-after-open',\n beforeClose: 'dialog-overlay-before-close',\n }}\n portalClassName={classNames('dialog-portal', portalClassName)}\n bodyOpenClassName={classNames('dialog-open', bodyOpenClassName)}\n ariaHideApp={false}\n isOpen={isOpen}\n style={{ ...contentStyle }}\n closeTimeoutMS={closeTimeoutMS}\n {...rest}\n >\n <motion.div\n className={dialogClass}\n initial={{ transform: 'scale(0.9)' }}\n animate={{\n transform: isOpen ? 'scale(1)' : 'scale(0.9)',\n }}\n >\n {closable && renderCloseButton}\n {children}\n </motion.div>\n </Modal>\n )\n}\n\nDialog.displayName = 'Dialog'\n\nexport default Dialog\n"],"names":["Dialog","props","currentSize","useWindowSize","bodyOpenClassName","children","className","closable","closeTimeoutMS","contentClassName","height","isOpen","onClose","overlayClassName","portalClassName","style","width","rest","renderCloseButton","jsx","CloseButton","e","contentStyle","dialogClass","classNames","Modal","jsxs","motion"],"mappings":";;;;;;;AAgBA,MAAMA,IAAS,CAACC,MAAuB;AACnC,QAAMC,IAAcC,EAAA,GAEd;AAAA,IACF,mBAAAC;AAAA,IACA,UAAAC;AAAA,IACA,WAAAC;AAAA,IACA,UAAAC,I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WAAWJ;AAAA,UACX,SAAS,EAAE,WAAW,aAAA;AAAA,UACtB,SAAS;AAAA,YACL,WAAWZ,IAAS,aAAa;AAAA,UAAA;AAAA,UAGpC,UAAA;AAAA,YAAAJ,KAAYW;AAAA,YACZb;AAAA,UAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IACL;AAAA,EAAA;AAGZ;AAEAL,EAAO,cAAc;"}
1
+ {"version":3,"file":"Dialog.js","sources":["../../../../../lib/@ecme/components/ui/Dialog/Dialog.tsx"],"sourcesContent":["import Modal from 'react-modal'\nimport classNames from 'classnames'\nimport CloseButton from '../CloseButton'\nimport { motion } from 'framer-motion'\nimport useWindowSize from '../hooks/useWindowSize'\nimport type ReactModal from 'react-modal'\nimport type { MouseEvent } from 'react'\n\nexport interface DialogProps extends ReactModal.Props {\n closable?: boolean\n contentClassName?: string\n height?: string | number\n onClose?: (e: MouseEvent<HTMLSpanElement>) => void\n width?: number\n}\n\nconst Dialog = (props: DialogProps) => {\n const currentSize = useWindowSize()\n\n const {\n bodyOpenClassName,\n children,\n className,\n closable = true,\n closeTimeoutMS = 150,\n contentClassName,\n height,\n isOpen,\n onClose,\n overlayClassName,\n portalClassName,\n style,\n width = 520,\n ...rest\n } = props\n\n const onCloseClick = (e: MouseEvent<HTMLSpanElement>) => {\n onClose?.(e)\n }\n\n const renderCloseButton = (\n <CloseButton\n absolute\n className=\"ltr:right-6 rtl:left-6 top-4.5\"\n onClick={onCloseClick}\n />\n )\n\n const contentStyle = {\n content: {\n inset: 'unset',\n },\n ...style,\n }\n\n if (width !== undefined) {\n contentStyle.content.width = width\n\n if (\n typeof currentSize.width !== 'undefined' &&\n currentSize.width <= width\n ) {\n contentStyle.content.width = 'auto'\n }\n }\n\n if (height !== undefined) {\n contentStyle.content.height = height\n }\n\n const defaultDialogContentClass = 'dialog-content'\n\n const dialogClass = classNames(defaultDialogContentClass, contentClassName)\n\n return (\n <Modal\n className={{\n base: classNames('dialog', className as string),\n afterOpen: 'dialog-after-open',\n beforeClose: 'dialog-before-close',\n }}\n overlayClassName={{\n base: classNames('dialog-overlay', overlayClassName as string),\n afterOpen: 'dialog-overlay-after-open',\n beforeClose: 'dialog-overlay-before-close',\n }}\n portalClassName={classNames('dialog-portal', portalClassName)}\n bodyOpenClassName={classNames('dialog-open', bodyOpenClassName)}\n ariaHideApp={false}\n isOpen={isOpen}\n style={{ ...contentStyle }}\n closeTimeoutMS={closeTimeoutMS}\n {...rest}\n >\n <motion.div\n className={dialogClass}\n initial={{ transform: 'scale(0.9)' }}\n animate={{\n transform: isOpen ? 'scale(1)' : 'scale(0.9)',\n }}\n >\n {closable && renderCloseButton}\n {children}\n </motion.div>\n </Modal>\n )\n}\n\nDialog.displayName = 'Dialog'\n\nexport default Dialog\n"],"names":["Dialog","props","currentSize","useWindowSize","bodyOpenClassName","children","className","closable","closeTimeoutMS","contentClassName","height","isOpen","onClose","overlayClassName","portalClassName","style","width","rest","renderCloseButton","jsx","CloseButton","e","contentStyle","dialogClass","classNames","Modal","jsxs","motion"],"mappings":";;;;;;;AAgBA,MAAMA,IAAS,CAACC,MAAuB;AACnC,QAAMC,IAAcC,EAAA,GAEd;AAAA,IACF,mBAAAC;AAAA,IACA,UAAAC;AAAA,IACA,WAAAC;AAAA,IACA,UAAAC,IAAW;AAAA,IACX,gBAAAC,IAAiB;AAAA,IACjB,kBAAAC;AAAA,IACA,QAAAC;AAAA,IACA,QAAAC;AAAA,IACA,SAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,OAAAC;AAAA,IACA,OAAAC,IAAQ;AAAA,IACR,GAAGC;AAAA,EAAA,IACHhB,GAMEiB,IACF,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACG,UAAQ;AAAA,MACR,WAAU;AAAA,MACV,SARa,CAACC,MAAmC;AACrD,QAAAT,IAAUS,CAAC;AAAA,MACf;AAAA,IAMiB;AAAA,EAAA,GAIXC,IAAe;AAAA,IACjB,SAAS;AAAA,MACL,OAAO;AAAA,IAAA;AAAA,IAEX,GAAGP;AAAA,EAAA;AAGP,EAAIC,MAAU,WACVM,EAAa,QAAQ,QAAQN,GAGzB,OAAOd,EAAY,QAAU,OAC7BA,EAAY,SAASc,MAErBM,EAAa,QAAQ,QAAQ,UAIjCZ,MAAW,WACXY,EAAa,QAAQ,SAASZ;AAKlC,QAAMa,IAAcC,EAFc,kBAEwBf,CAAgB;AAE1E,SACI,gBAAAU;AAAA,IAACM;AAAA,IAAA;AAAA,MACG,WAAW;AAAA,QACP,MAAMD,EAAW,UAAUlB,CAAmB;AAAA,QAC9C,WAAW;AAAA,QACX,aAAa;AAAA,MAAA;AAAA,MAEjB,kBAAkB;AAAA,QACd,MAAMkB,EAAW,kBAAkBX,CAA0B;AAAA,QAC7D,WAAW;AAAA,QACX,aAAa;AAAA,MAAA;AAAA,MAEjB,iBAAiBW,EAAW,iBAAiBV,CAAe;AAAA,MAC5D,mBAAmBU,EAAW,eAAepB,CAAiB;AAAA,MAC9D,aAAa;AAAA,MACb,QAAAO;AAAA,MACA,OAAO,EAAE,GAAGW,EAAA;AAAA,MACZ,gBAAAd;AAAA,MACC,GAAGS;AAAA,MAEJ,UAAA,gBAAAS;AAAA,QAACC,EAAO;AAAA,QAAP;AAAA,UACG,WAAWJ;AAAA,UACX,SAAS,EAAE,WAAW,aAAA;AAAA,UACtB,SAAS;AAAA,YACL,WAAWZ,IAAS,aAAa;AAAA,UAAA;AAAA,UAGpC,UAAA;AAAA,YAAAJ,KAAYW;AAAA,YACZb;AAAA,UAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IACL;AAAA,EAAA;AAGZ;AAEAL,EAAO,cAAc;"}
@@ -1,38 +1,38 @@
1
- import { jsx as o, jsxs as c } from "react/jsx-runtime";
1
+ import { jsx as o, jsxs as m } from "react/jsx-runtime";
2
2
  import r from "classnames";
3
3
  import D from "react-modal";
4
4
  import "../CloseButton/index.js";
5
5
  import { motion as M } from "framer-motion";
6
6
  import z from "../CloseButton/CloseButton.js";
7
- const A = (p) => {
7
+ const A = (c) => {
8
8
  const {
9
- bodyOpenClassName: f,
10
- bodyClass: y,
11
- children: C,
12
- className: h,
13
- closable: n = !0,
14
- closeTimeoutMS: w = 300,
15
- footer: i,
16
- footerClass: b,
17
- headerClass: u,
9
+ bodyOpenClassName: p,
10
+ bodyClass: f,
11
+ children: y,
12
+ className: C,
13
+ closable: s = !0,
14
+ closeTimeoutMS: h = 300,
15
+ footer: n,
16
+ footerClass: w,
17
+ headerClass: b,
18
18
  height: t = 400,
19
- isOpen: d,
20
- lockScroll: N = !0,
21
- onClose: l,
19
+ isOpen: i,
20
+ lockScroll: u = !0,
21
+ onClose: N,
22
22
  overlayClassName: v,
23
23
  placement: e = "right",
24
24
  portalClassName: S,
25
25
  showBackdrop: g = !0,
26
26
  title: a,
27
- width: s = 400,
27
+ width: l = 400,
28
28
  ...k
29
- } = p, x = /* @__PURE__ */ o(z, { onClick: (j) => {
30
- l == null || l(j);
29
+ } = c, x = /* @__PURE__ */ o(z, { onClick: (j) => {
30
+ N?.(j);
31
31
  } }), O = () => e === "left" || e === "right" ? {
32
32
  dimensionClass: "vertical",
33
- contentStyle: { width: s },
33
+ contentStyle: { width: l },
34
34
  motionStyle: {
35
- [e]: `-${s}${typeof s == "number" && "px"}`
35
+ [e]: `-${l}${typeof l == "number" && "px"}`
36
36
  }
37
37
  } : e === "top" || e === "bottom" ? {
38
38
  dimensionClass: "horizontal",
@@ -42,12 +42,12 @@ const A = (p) => {
42
42
  }
43
43
  } : {
44
44
  motionStyle: {}
45
- }, { dimensionClass: $, contentStyle: B, motionStyle: m } = O();
45
+ }, { dimensionClass: $, contentStyle: B, motionStyle: d } = O();
46
46
  return /* @__PURE__ */ o(
47
47
  D,
48
48
  {
49
49
  className: {
50
- base: r("drawer", h),
50
+ base: r("drawer", C),
51
51
  afterOpen: "drawer-after-open",
52
52
  beforeClose: "drawer-before-close"
53
53
  },
@@ -63,29 +63,29 @@ const A = (p) => {
63
63
  portalClassName: r("drawer-portal", S),
64
64
  bodyOpenClassName: r(
65
65
  "drawer-open",
66
- N && "drawer-lock-scroll",
67
- f
66
+ u && "drawer-lock-scroll",
67
+ p
68
68
  ),
69
69
  ariaHideApp: !1,
70
- isOpen: d,
71
- closeTimeoutMS: w,
70
+ isOpen: i,
71
+ closeTimeoutMS: h,
72
72
  ...k,
73
- children: /* @__PURE__ */ c(
73
+ children: /* @__PURE__ */ m(
74
74
  M.div,
75
75
  {
76
76
  className: r("drawer-content", $),
77
77
  style: B,
78
- initial: m,
78
+ initial: d,
79
79
  animate: {
80
- [e]: d ? 0 : m[e]
80
+ [e]: i ? 0 : d[e]
81
81
  },
82
82
  children: [
83
- a || n ? /* @__PURE__ */ c("div", { className: r("drawer-header", u), children: [
83
+ a || s ? /* @__PURE__ */ m("div", { className: r("drawer-header", b), children: [
84
84
  typeof a == "string" ? /* @__PURE__ */ o("h4", { children: a }) : /* @__PURE__ */ o("span", { children: a }),
85
- n && x
85
+ s && x
86
86
  ] }) : null,
87
- /* @__PURE__ */ o("div", { className: r("drawer-body", y), children: C }),
88
- i && /* @__PURE__ */ o("div", { className: r("drawer-footer", b), children: i })
87
+ /* @__PURE__ */ o("div", { className: r("drawer-body", f), children: y }),
88
+ n && /* @__PURE__ */ o("div", { className: r("drawer-footer", w), children: n })
89
89
  ]
90
90
  }
91
91
  )
@@ -1 +1 @@
1
- {"version":3,"file":"Drawer.js","sources":["../../../../../lib/@ecme/components/ui/Drawer/Drawer.tsx"],"sourcesContent":["import classNames from 'classnames'\nimport Modal from 'react-modal'\nimport CloseButton from '../CloseButton'\nimport { motion } from 'framer-motion'\nimport type ReactModal from 'react-modal'\nimport type { MouseEvent, ReactNode } from 'react'\n\nexport interface DrawerProps extends ReactModal.Props {\n bodyClass?: string\n closable?: boolean\n footer?: string | ReactNode\n footerClass?: string\n headerClass?: string\n height?: string | number\n lockScroll?: boolean\n onClose?: (e: MouseEvent<HTMLSpanElement>) => void\n placement?: 'top' | 'right' | 'bottom' | 'left'\n showBackdrop?: boolean\n title?: string | ReactNode\n width?: string | number\n}\n\nconst Drawer = (props: DrawerProps) => {\n const {\n bodyOpenClassName,\n bodyClass,\n children,\n className,\n closable = true,\n closeTimeoutMS = 300,\n footer,\n footerClass,\n headerClass,\n height = 400,\n isOpen,\n lockScroll = true,\n onClose,\n overlayClassName,\n placement = 'right',\n portalClassName,\n showBackdrop = true,\n title,\n width = 400,\n ...rest\n } = props\n\n const onCloseClick = (e: MouseEvent<HTMLSpanElement>) => {\n onClose?.(e)\n }\n\n const renderCloseButton = <CloseButton onClick={onCloseClick} />\n\n const getStyle = (): {\n dimensionClass?: string\n contentStyle?: {\n width?: string | number\n height?: string | number\n }\n motionStyle: {\n [x: string]: string\n }\n } => {\n if (placement === 'left' || placement === 'right') {\n return {\n dimensionClass: 'vertical',\n contentStyle: { width },\n motionStyle: {\n [placement]: `-${width}${\n typeof width === 'number' && 'px'\n }`,\n },\n }\n }\n\n if (placement === 'top' || placement === 'bottom') {\n return {\n dimensionClass: 'horizontal',\n contentStyle: { height },\n motionStyle: {\n [placement]: `-${height}${\n typeof height === 'number' && 'px'\n }`,\n },\n }\n }\n\n return {\n motionStyle: {},\n }\n }\n\n const { dimensionClass, contentStyle, motionStyle } = getStyle()\n\n return (\n <Modal\n className={{\n base: classNames('drawer', className as string),\n afterOpen: 'drawer-after-open',\n beforeClose: 'drawer-before-close',\n }}\n overlayClassName={{\n base: classNames(\n 'drawer-overlay',\n overlayClassName as string,\n !showBackdrop && 'bg-transparent',\n ),\n afterOpen: 'drawer-overlay-after-open',\n beforeClose: 'drawer-overlay-before-close',\n }}\n portalClassName={classNames('drawer-portal', portalClassName)}\n bodyOpenClassName={classNames(\n 'drawer-open',\n lockScroll && 'drawer-lock-scroll',\n bodyOpenClassName,\n )}\n ariaHideApp={false}\n isOpen={isOpen}\n closeTimeoutMS={closeTimeoutMS}\n {...rest}\n >\n <motion.div\n className={classNames('drawer-content', dimensionClass)}\n style={contentStyle}\n initial={motionStyle}\n animate={{\n [placement as 'top' | 'right' | 'bottom' | 'left']: isOpen\n ? 0\n : motionStyle[placement],\n }}\n >\n {title || closable ? (\n <div className={classNames('drawer-header', headerClass)}>\n {typeof title === 'string' ? (\n <h4>{title}</h4>\n ) : (\n <span>{title}</span>\n )}\n {closable && renderCloseButton}\n </div>\n ) : null}\n <div className={classNames('drawer-body', bodyClass)}>\n {children}\n </div>\n {footer && (\n <div className={classNames('drawer-footer', footerClass)}>\n {footer}\n </div>\n )}\n </motion.div>\n </Modal>\n )\n}\n\nDrawer.displayName = 'Drawer'\n\nexport default Drawer\n"],"names":["Drawer","props","bodyOpenClassName","bodyClass","children","className","closable","closeTimeoutMS","footer","footerClass","headerClass","height","isOpen","lockScroll","onClose","overlayClassName","placement","portalClassName","showBackdrop","title","width","rest","renderCloseButton","jsx","CloseButton","e","getStyle","dimensionClass","contentStyle","motionStyle","Modal","classNames","jsxs","motion"],"mappings":";;;;;;AAsBA,MAAMA,IAAS,CAACC,MAAuB;AACnC,QAAM;AAAA,IACF,mBAAAC;AAAA,IACA,WAAAC;AAAA,IACA,UAAAC;AAAA,IACA,WAAAC;AAAA,IACA,UAAAC,IAAW;AAAA,IACX,gBAAAC,IAAiB;AAAA,IACjB,QAAAC;AAAA,IACA,aAAAC;AAAA,IACA,aAAAC;AAAA,IACA,QAAAC,IAAS;AAAA,IACT,QAAAC;AAAA,IACA,YAAAC,IAAa;AAAA,IACb,SAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,WAAAC,IAAY;AAAA,IACZ,iBAAAC;AAAA,IACA,cAAAC,IAAe;AAAA,IACf,OAAAC;AAAA,IACA,OAAAC,IAAQ;AAAA,IACR,GAAGC;AAAA,EAAA,IACHpB,GAMEqB,IAAoB,gBAAAC,EAACC,GAAA,EAAY,SAJlB,CAACC,MAAmC;AACrD,IAAAX,KAAA,QAAAA,EAAUW;AAAA,EACd,EAEgD,CAAc,GAExDC,IAAW,MAUTV,MAAc,UAAUA,MAAc,UAC/B;AAAA,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KAASb,IACN,gBAAA0B,EAAC,OAAA,EAAI,WAAWD,EAAW,iBAAiBrB,CAAW,GAClD,UAAA;AAAA,cAAA,OAAOS,KAAU,WACd,gBAAAI,EAAC,MAAA,EAAI,aAAM,IAEX,gBAAAA,EAAC,UAAM,UAAAJ,EAAA,CAAM;AAAA,cAEhBb,KAAYgB;AAAA,YAAA,EAAA,CACjB,IACA;AAAA,8BACH,OAAA,EAAI,WAAWS,EAAW,eAAe5B,CAAS,GAC9C,UAAAC,GACL;AAAA,YACCI,uBACI,OAAA,EAAI,WAAWuB,EAAW,iBAAiBtB,CAAW,GAClD,UAAAD,EAAA,CACL;AAAA,UAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IAER;AAAA,EAAA;AAGZ;AAEAR,EAAO,cAAc;"}
1
+ {"version":3,"file":"Drawer.js","sources":["../../../../../lib/@ecme/components/ui/Drawer/Drawer.tsx"],"sourcesContent":["import classNames from 'classnames'\nimport Modal from 'react-modal'\nimport CloseButton from '../CloseButton'\nimport { motion } from 'framer-motion'\nimport type ReactModal from 'react-modal'\nimport type { MouseEvent, ReactNode } from 'react'\n\nexport interface DrawerProps extends ReactModal.Props {\n bodyClass?: string\n closable?: boolean\n footer?: string | ReactNode\n footerClass?: string\n headerClass?: string\n height?: string | number\n lockScroll?: boolean\n onClose?: (e: MouseEvent<HTMLSpanElement>) => void\n placement?: 'top' | 'right' | 'bottom' | 'left'\n showBackdrop?: boolean\n title?: string | ReactNode\n width?: string | number\n}\n\nconst Drawer = (props: DrawerProps) => {\n const {\n bodyOpenClassName,\n bodyClass,\n children,\n className,\n closable = true,\n closeTimeoutMS = 300,\n footer,\n footerClass,\n headerClass,\n height = 400,\n isOpen,\n lockScroll = true,\n onClose,\n overlayClassName,\n placement = 'right',\n portalClassName,\n showBackdrop = true,\n title,\n width = 400,\n ...rest\n } = props\n\n const onCloseClick = (e: MouseEvent<HTMLSpanElement>) => {\n onClose?.(e)\n }\n\n const renderCloseButton = <CloseButton onClick={onCloseClick} />\n\n const getStyle = (): {\n dimensionClass?: string\n contentStyle?: {\n width?: string | number\n height?: string | number\n }\n motionStyle: {\n [x: string]: string\n }\n } => {\n if (placement === 'left' || placement === 'right') {\n return {\n dimensionClass: 'vertical',\n contentStyle: { width },\n motionStyle: {\n [placement]: `-${width}${\n typeof width === 'number' && 'px'\n }`,\n },\n }\n }\n\n if (placement === 'top' || placement === 'bottom') {\n return {\n dimensionClass: 'horizontal',\n contentStyle: { height },\n motionStyle: {\n [placement]: `-${height}${\n typeof height === 'number' && 'px'\n }`,\n },\n }\n }\n\n return {\n motionStyle: {},\n }\n }\n\n const { dimensionClass, contentStyle, motionStyle } = getStyle()\n\n return (\n <Modal\n className={{\n base: classNames('drawer', className as string),\n afterOpen: 'drawer-after-open',\n beforeClose: 'drawer-before-close',\n }}\n overlayClassName={{\n base: classNames(\n 'drawer-overlay',\n overlayClassName as string,\n !showBackdrop && 'bg-transparent',\n ),\n afterOpen: 'drawer-overlay-after-open',\n beforeClose: 'drawer-overlay-before-close',\n }}\n portalClassName={classNames('drawer-portal', portalClassName)}\n bodyOpenClassName={classNames(\n 'drawer-open',\n lockScroll && 'drawer-lock-scroll',\n bodyOpenClassName,\n )}\n ariaHideApp={false}\n isOpen={isOpen}\n closeTimeoutMS={closeTimeoutMS}\n {...rest}\n >\n <motion.div\n className={classNames('drawer-content', dimensionClass)}\n style={contentStyle}\n initial={motionStyle}\n animate={{\n [placement as 'top' | 'right' | 'bottom' | 'left']: isOpen\n ? 0\n : motionStyle[placement],\n }}\n >\n {title || closable ? (\n <div className={classNames('drawer-header', headerClass)}>\n {typeof title === 'string' ? (\n <h4>{title}</h4>\n ) : (\n <span>{title}</span>\n )}\n {closable && renderCloseButton}\n </div>\n ) : null}\n <div className={classNames('drawer-body', bodyClass)}>\n {children}\n </div>\n {footer && (\n <div className={classNames('drawer-footer', footerClass)}>\n {footer}\n </div>\n )}\n </motion.div>\n </Modal>\n )\n}\n\nDrawer.displayName = 'Drawer'\n\nexport default Drawer\n"],"names":["Drawer","props","bodyOpenClassName","bodyClass","children","className","closable","closeTimeoutMS","footer","footerClass","headerClass","height","isOpen","lockScroll","onClose","overlayClassName","placement","portalClassName","showBackdrop","title","width","rest","renderCloseButton","jsx","CloseButton","e","getStyle","dimensionClass","contentStyle","motionStyle","Modal","classNames","jsxs","motion"],"mappings":";;;;;;AAsBA,MAAMA,IAAS,CAACC,MAAuB;AACnC,QAAM;AAAA,IACF,mBAAAC;AAAA,IACA,WAAAC;AAAA,IACA,UAAAC;AAAA,IACA,WAAAC;AAAA,IACA,UAAAC,IAAW;AAAA,IACX,gBAAAC,IAAiB;AAAA,IACjB,QAAAC;AAAA,IACA,aAAAC;AAAA,IACA,aAAAC;AAAA,IACA,QAAAC,IAAS;AAAA,IACT,QAAAC;AAAA,IACA,YAAAC,IAAa;AAAA,IACb,SAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,WAAAC,IAAY;AAAA,IACZ,iBAAAC;AAAA,IACA,cAAAC,IAAe;AAAA,IACf,OAAAC;AAAA,IACA,OAAAC,IAAQ;AAAA,IACR,GAAGC;AAAA,EAAA,IACHpB,GAMEqB,IAAoB,gBAAAC,EAACC,GAAA,EAAY,SAJlB,CAACC,MAAmC;AACrD,IAAAX,IAAUW,CAAC;AAAA,EACf,EAEgD,CAAc,GAExDC,IAAW,MAUTV,MAAc,UAAUA,MAAc,UAC/B;AAAA,IACH,gBAAgB;AAAA,IAChB,cAAc,EAAE,OAAAI,EAAA;AAAA,IAChB,aAAa;AAAA,MACT,CAACJ,CAAS,GAAG,IAAII,CAAK,GAClB,OAAOA,KAAU,YAAY,IACjC;AAAA,IAAA;AAAA,EACJ,IAIJJ,MAAc,SAASA,MAAc,WAC9B;AAAA,IACH,gBAAgB;AAAA,IAChB,cAAc,EAAE,QAAAL,EAAA;AAAA,IAChB,aAAa;AAAA,MACT,CAACK,CAAS,GAAG,IAAIL,CAAM,GACnB,OAAOA,KAAW,YAAY,IAClC;AAAA,IAAA;AAAA,EAC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