@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,19 +1,19 @@
1
- import { jsxs as ce, jsx as b } from "react/jsx-runtime";
2
- import { useState as M, useRef as ie } from "react";
1
+ import { jsxs as ce, jsx as d } from "react/jsx-runtime";
2
+ import { useState as b, useRef as ie } from "react";
3
3
  import fe from "classnames";
4
4
  import ue from "../hooks/useControllableState.js";
5
5
  import "../ConfigProvider/index.js";
6
6
  import we from "./tables/DateTable.js";
7
- import De from "./tables/MonthTable.js";
8
- import ge from "./tables/YearTable.js";
9
- import { useConfig as he } from "../ConfigProvider/ConfigProvider.js";
7
+ import he from "./tables/MonthTable.js";
8
+ import me from "./tables/YearTable.js";
9
+ import { useConfig as De } from "../ConfigProvider/ConfigProvider.js";
10
10
  const Re = (k) => {
11
11
  const {
12
- className: w,
13
- dateViewCount: c = 1,
12
+ className: u,
13
+ dateViewCount: l = 1,
14
14
  dayClassName: v,
15
15
  dayStyle: x,
16
- defaultMonth: Y,
16
+ defaultMonth: M,
17
17
  defaultView: S = "date",
18
18
  disableDate: p,
19
19
  disableOutOfMonth: N,
@@ -29,38 +29,37 @@ const Re = (k) => {
29
29
  year: "YYYY"
30
30
  },
31
31
  locale: W,
32
- maxDate: i,
33
- minDate: f,
32
+ maxDate: c,
33
+ minDate: i,
34
34
  month: E,
35
35
  monthLabelFormat: H = "MMM",
36
36
  onChange: U,
37
37
  onDayMouseEnter: V,
38
- onMonthChange: q,
39
- paginateBy: z = c,
40
- preventFocus: D,
41
- range: G,
42
- ref: J,
43
- renderDay: Q,
44
- style: C,
45
- value: X,
46
- weekdayLabelFormat: Z = "dd",
47
- weekendDays: $,
48
- yearLabelFormat: y = "YYYY",
49
- ..._
50
- } = k, { locale: ee } = he(), [g, u] = M(S), F = W || ee, n = ie(
51
- Array(c).fill(0).map(() => [])
52
- ), [o, h] = ue({
38
+ onMonthChange: _,
39
+ paginateBy: q = l,
40
+ preventFocus: w,
41
+ range: z,
42
+ ref: G,
43
+ renderDay: J,
44
+ style: Y,
45
+ value: Q,
46
+ weekdayLabelFormat: X = "dd",
47
+ weekendDays: Z,
48
+ yearLabelFormat: C = "YYYY",
49
+ ...$
50
+ } = k, { locale: ee } = De(), [h, f] = b(S), y = W || ee, r = ie(
51
+ Array(l).fill(0).map(() => [])
52
+ ), [n, m] = ue({
53
53
  prop: E,
54
- defaultProp: Y !== void 0 ? Y : /* @__PURE__ */ new Date(),
55
- onChange: q
56
- }), [m, L] = M(o == null ? void 0 : o.getFullYear()), [te, ae] = M(o == null ? void 0 : o.getMonth()), oe = f instanceof Date ? f.getFullYear() : 100, re = i instanceof Date ? i.getFullYear() : 1e4, R = 6, s = (e, t, a, r = 1) => {
57
- const l = ["down", "up"].includes(e), se = l ? a.rowIndex + (e === "down" ? r : -r) : a.rowIndex, le = l ? a.cellIndex : a.cellIndex + (e === "right" ? r : -r), d = n.current[t][se][le];
58
- d && (d.disabled ? s(e, t, a, r + 1) : d.focus());
54
+ defaultProp: M !== void 0 ? M : /* @__PURE__ */ new Date(),
55
+ onChange: _
56
+ }), [D, F] = b(n?.getFullYear()), [te, ae] = b(n?.getMonth()), oe = i instanceof Date ? i.getFullYear() : 100, re = c instanceof Date ? c.getFullYear() : 1e4, L = 6, s = (e, t, a, o = 1) => {
57
+ const R = ["down", "up"].includes(e), se = R ? a.rowIndex + (e === "down" ? o : -o) : a.rowIndex, le = R ? a.cellIndex : a.cellIndex + (e === "right" ? o : -o), g = r.current[t][se][le];
58
+ g && (g.disabled ? s(e, t, a, o + 1) : g.focus());
59
59
  }, ne = (e, t, a) => {
60
- var r;
61
60
  switch (a.key) {
62
61
  case "ArrowDown": {
63
- a.preventDefault(), t.rowIndex + 1 < n.current[e].length && s("down", e, t);
62
+ a.preventDefault(), t.rowIndex + 1 < r.current[e].length && s("down", e, t);
64
63
  break;
65
64
  }
66
65
  case "ArrowUp": {
@@ -68,11 +67,11 @@ const Re = (k) => {
68
67
  break;
69
68
  }
70
69
  case "ArrowRight": {
71
- a.preventDefault(), t.cellIndex !== R ? s("right", e, t) : e + 1 < c && n.current[e + 1][t.rowIndex] && ((r = n.current[e + 1][t.rowIndex][0]) == null || r.focus());
70
+ a.preventDefault(), t.cellIndex !== L ? s("right", e, t) : e + 1 < l && r.current[e + 1][t.rowIndex] && r.current[e + 1][t.rowIndex][0]?.focus();
72
71
  break;
73
72
  }
74
73
  case "ArrowLeft": {
75
- a.preventDefault(), t.cellIndex !== 0 ? s("left", e, t) : e > 0 && n.current[e - 1][t.rowIndex] && n.current[e - 1][t.rowIndex][R].focus();
74
+ a.preventDefault(), t.cellIndex !== 0 ? s("left", e, t) : e > 0 && r.current[e - 1][t.rowIndex] && r.current[e - 1][t.rowIndex][L].focus();
76
75
  break;
77
76
  }
78
77
  default:
@@ -82,80 +81,80 @@ const Re = (k) => {
82
81
  return /* @__PURE__ */ ce(
83
82
  "div",
84
83
  {
85
- ref: J,
86
- className: fe("picker-view", w),
87
- ..._,
84
+ ref: G,
85
+ className: fe("picker-view", u),
86
+ ...$,
88
87
  children: [
89
- g === "year" && /* @__PURE__ */ b(
90
- ge,
88
+ h === "year" && /* @__PURE__ */ d(
89
+ me,
91
90
  {
92
- value: m,
91
+ value: D,
93
92
  minYear: oe,
94
93
  maxYear: re,
95
- className: w,
96
- preventFocus: D,
97
- yearLabelFormat: y,
94
+ className: u,
95
+ preventFocus: w,
96
+ yearLabelFormat: C,
98
97
  onChange: (e) => {
99
- h(new Date(e, te, 1)), L(e), u("date");
98
+ m(new Date(e, te, 1)), F(e), f("date");
100
99
  }
101
100
  }
102
101
  ),
103
- g === "month" && /* @__PURE__ */ b(
104
- De,
102
+ h === "month" && /* @__PURE__ */ d(
103
+ he,
105
104
  {
106
105
  value: {
107
- month: o.getMonth(),
108
- year: o.getFullYear()
106
+ month: n.getMonth(),
107
+ year: n.getFullYear()
109
108
  },
110
- year: m,
111
- locale: F,
112
- minDate: f,
113
- maxDate: i,
114
- className: w,
115
- style: C,
116
- preventFocus: D,
117
- yearLabelFormat: y,
109
+ year: D,
110
+ locale: y,
111
+ minDate: i,
112
+ maxDate: c,
113
+ className: u,
114
+ style: Y,
115
+ preventFocus: w,
116
+ yearLabelFormat: C,
118
117
  monthLabelFormat: H,
119
- onYearChange: L,
120
- onNextLevel: () => u("year"),
118
+ onYearChange: F,
119
+ onNextLevel: () => f("year"),
121
120
  onChange: (e) => {
122
- h(
123
- new Date(m, e, 1)
124
- ), ae(e), u("date");
121
+ m(
122
+ new Date(D, e, 1)
123
+ ), ae(e), f("date");
125
124
  }
126
125
  }
127
126
  ),
128
- g === "date" && /* @__PURE__ */ b(
127
+ h === "date" && /* @__PURE__ */ d(
129
128
  we,
130
129
  {
131
- dateViewCount: c,
132
- paginateBy: z,
133
- month: o,
134
- locale: F,
135
- minDate: f,
136
- maxDate: i,
130
+ dateViewCount: l,
131
+ paginateBy: q,
132
+ month: n,
133
+ locale: y,
134
+ minDate: i,
135
+ maxDate: c,
137
136
  enableHeaderLabel: A,
138
- daysRefs: n,
139
- style: C,
137
+ daysRefs: r,
138
+ style: Y,
140
139
  dayClassName: v,
141
140
  dayStyle: x,
142
141
  disableOutOfMonth: N,
143
142
  disableDate: p,
144
143
  hideWeekdays: B,
145
- preventFocus: D,
144
+ preventFocus: w,
146
145
  firstDayOfWeek: I,
147
- value: X,
148
- range: G,
146
+ value: Q,
147
+ range: z,
149
148
  labelFormat: P,
150
- weekdayLabelFormat: Z,
151
- renderDay: Q,
149
+ weekdayLabelFormat: X,
150
+ renderDay: J,
152
151
  hideOutOfMonthDates: O,
153
152
  isDateInRange: j,
154
153
  isDateFirstInRange: T,
155
154
  isDateLastInRange: K,
156
- weekendDays: $,
157
- onMonthChange: h,
158
- onNextLevel: (e) => u(e),
155
+ weekendDays: Z,
156
+ onMonthChange: m,
157
+ onNextLevel: (e) => f(e),
159
158
  onDayKeyDown: ne,
160
159
  onChange: U,
161
160
  onDayMouseEnter: V
@@ -1 +1 @@
1
- {"version":3,"file":"CalendarBase.js","sources":["../../../../../lib/@ecme/components/ui/DatePicker/CalendarBase.tsx"],"sourcesContent":["import { useRef, useState } from 'react'\nimport classNames from 'classnames'\nimport useControllableState from '../hooks/useControllableState'\nimport { useConfig } from '../ConfigProvider'\nimport DateTable from './tables/DateTable'\nimport MonthTable from './tables/MonthTable'\nimport YearTable from './tables/YearTable'\nimport type { CommonProps } from '../@types/common'\nimport type { MonthBaseProps } from './tables/components/Month'\nimport type { DayKeydownPayload } from './tables/components/types'\nimport type { ReactNode, KeyboardEvent, MouseEvent, Ref } from 'react'\n\nexport interface CalendarSharedProps extends Omit<MonthBaseProps, 'value'> {\n dateViewCount?: number\n defaultView?: 'date' | 'month' | 'year'\n defaultMonth?: Date\n enableHeaderLabel?: boolean\n locale?: string\n labelFormat?: { month: string; year: string }\n monthLabelFormat?: string\n onDayMouseEnter?: (date: Date, event: MouseEvent) => void\n onMonthChange?: (month: Date) => void\n paginateBy?: number\n range?: [Date, Date]\n renderDay?: (date: Date) => ReactNode\n weekdayLabelFormat?: string\n yearLabelFormat?: string\n}\n\ninterface CalendarBaseProps extends CommonProps, CalendarSharedProps {\n ref?: Ref<HTMLDivElement>\n onChange?: (value: Date | Date[]) => void\n value?: Date | Date[] | null\n}\n\nconst CalendarBase = (props: CalendarBaseProps) => {\n const {\n className,\n dateViewCount = 1,\n dayClassName,\n dayStyle,\n defaultMonth,\n defaultView = 'date',\n disableDate,\n disableOutOfMonth,\n enableHeaderLabel = true,\n firstDayOfWeek = 'monday',\n hideOutOfMonthDates,\n hideWeekdays,\n isDateFirstInRange,\n isDateInRange,\n isDateLastInRange,\n labelFormat = {\n month: 'MMM',\n year: 'YYYY',\n },\n locale,\n maxDate,\n minDate,\n month,\n monthLabelFormat = 'MMM',\n onChange,\n onDayMouseEnter,\n onMonthChange,\n paginateBy = dateViewCount,\n preventFocus,\n range,\n ref,\n renderDay,\n style,\n value,\n weekdayLabelFormat = 'dd',\n weekendDays,\n yearLabelFormat = 'YYYY',\n ...rest\n } = props\n\n const { locale: themeLocale } = useConfig()\n\n const [selectionState, setSelectionState] = useState(defaultView)\n\n const finalLocale = locale || themeLocale\n\n const daysRefs = useRef<HTMLButtonElement[][][]>(\n Array(dateViewCount)\n .fill(0)\n .map(() => []),\n )\n\n const [_month, setMonth] = useControllableState({\n prop: month,\n defaultProp: defaultMonth !== undefined ? defaultMonth : new Date(),\n onChange: onMonthChange,\n })\n\n const [yearSelection, setYearSelection] = useState(_month?.getFullYear())\n const [monthSelection, setMonthSelection] = useState(_month?.getMonth())\n\n const minYear = minDate instanceof Date ? minDate.getFullYear() : 100\n const maxYear = maxDate instanceof Date ? maxDate.getFullYear() : 10000\n\n const daysPerRow = 6\n\n const focusOnNextFocusableDay = (\n direction: 'down' | 'up' | 'left' | 'right',\n monthIndex: number,\n payload: DayKeydownPayload,\n n = 1,\n ) => {\n const changeRow = ['down', 'up'].includes(direction)\n\n const rowIndex = changeRow\n ? payload.rowIndex + (direction === 'down' ? n : -n)\n : payload.rowIndex\n\n const cellIndex = changeRow\n ? payload.cellIndex\n : payload.cellIndex + (direction === 'right' ? n : -n)\n\n const dayToFocus = daysRefs.current[monthIndex][rowIndex][cellIndex]\n\n if (!dayToFocus) {\n return\n }\n\n if (dayToFocus.disabled) {\n focusOnNextFocusableDay(direction, monthIndex, payload, n + 1)\n } else {\n dayToFocus.focus()\n }\n }\n\n const handleDayKeyDown = (\n monthIndex: number,\n payload: DayKeydownPayload,\n event: KeyboardEvent<HTMLButtonElement>,\n ) => {\n switch (event.key) {\n case 'ArrowDown': {\n event.preventDefault()\n\n const hasRowBelow =\n payload.rowIndex + 1 < daysRefs.current[monthIndex].length\n if (hasRowBelow) {\n focusOnNextFocusableDay('down', monthIndex, payload)\n }\n break\n }\n case 'ArrowUp': {\n event.preventDefault()\n\n const hasRowAbove = payload.rowIndex > 0\n if (hasRowAbove) {\n focusOnNextFocusableDay('up', monthIndex, payload)\n }\n break\n }\n case 'ArrowRight': {\n event.preventDefault()\n\n const isNotLastCell = payload.cellIndex !== daysPerRow\n if (isNotLastCell) {\n focusOnNextFocusableDay('right', monthIndex, payload)\n } else if (monthIndex + 1 < dateViewCount) {\n if (daysRefs.current[monthIndex + 1][payload.rowIndex]) {\n daysRefs.current[monthIndex + 1][\n payload.rowIndex\n ][0]?.focus()\n }\n }\n break\n }\n case 'ArrowLeft': {\n event.preventDefault()\n\n if (payload.cellIndex !== 0) {\n focusOnNextFocusableDay('left', monthIndex, payload)\n } else if (monthIndex > 0) {\n if (daysRefs.current[monthIndex - 1][payload.rowIndex]) {\n daysRefs.current[monthIndex - 1][payload.rowIndex][\n daysPerRow\n ].focus()\n }\n }\n break\n }\n default:\n break\n }\n }\n\n return (\n <div\n ref={ref}\n className={classNames('picker-view', className)}\n {...rest}\n >\n {selectionState === 'year' && (\n <YearTable\n value={yearSelection as number}\n minYear={minYear}\n maxYear={maxYear}\n className={className}\n preventFocus={preventFocus}\n yearLabelFormat={yearLabelFormat}\n onChange={(year) => {\n setMonth(new Date(year, monthSelection as number, 1))\n setYearSelection(year)\n setSelectionState('date')\n }}\n />\n )}\n {selectionState === 'month' && (\n <MonthTable\n value={{\n month: (_month as Date).getMonth(),\n year: (_month as Date).getFullYear(),\n }}\n year={yearSelection as number}\n locale={finalLocale}\n minDate={minDate}\n maxDate={maxDate}\n className={className}\n style={style}\n preventFocus={preventFocus}\n yearLabelFormat={yearLabelFormat}\n monthLabelFormat={monthLabelFormat}\n onYearChange={setYearSelection}\n onNextLevel={() => setSelectionState('year')}\n onChange={(monthValue) => {\n setMonth(\n new Date(yearSelection as number, monthValue, 1),\n )\n setMonthSelection(monthValue)\n setSelectionState('date')\n }}\n />\n )}\n {selectionState === 'date' && (\n <DateTable\n dateViewCount={dateViewCount}\n paginateBy={paginateBy}\n month={_month as Date}\n locale={finalLocale}\n minDate={minDate}\n maxDate={maxDate}\n enableHeaderLabel={enableHeaderLabel}\n daysRefs={daysRefs}\n style={style}\n dayClassName={dayClassName}\n dayStyle={dayStyle}\n disableOutOfMonth={disableOutOfMonth}\n disableDate={disableDate}\n hideWeekdays={hideWeekdays}\n preventFocus={preventFocus}\n firstDayOfWeek={firstDayOfWeek}\n value={value as Date | Date[]}\n range={range}\n labelFormat={labelFormat}\n weekdayLabelFormat={weekdayLabelFormat}\n renderDay={renderDay}\n hideOutOfMonthDates={hideOutOfMonthDates}\n isDateInRange={isDateInRange}\n isDateFirstInRange={isDateFirstInRange}\n isDateLastInRange={isDateLastInRange}\n weekendDays={weekendDays}\n onMonthChange={setMonth}\n onNextLevel={(view) => setSelectionState(view)}\n onDayKeyDown={handleDayKeyDown}\n onChange={onChange}\n onDayMouseEnter={onDayMouseEnter}\n />\n )}\n </div>\n )\n}\n\nexport default CalendarBase\n"],"names":["CalendarBase","props","className","dateViewCount","dayClassName","dayStyle","defaultMonth","defaultView","disableDate","disableOutOfMonth","enableHeaderLabel","firstDayOfWeek","hideOutOfMonthDates","hideWeekdays","isDateFirstInRange","isDateInRange","isDateLastInRange","labelFormat","locale","maxDate","minDate","month","monthLabelFormat","onChange","onDayMouseEnter","onMonthChange","paginateBy","preventFocus","range","ref","renderDay","style","value","weekdayLabelFormat","weekendDays","yearLabelFormat","rest","themeLocale","useConfig","selectionState","setSelectionState","useState","finalLocale","daysRefs","useRef","_month","setMonth","useControllableState","yearSelection","setYearSelection","monthSelection","setMonthSelection","minYear","maxYear","daysPerRow","focusOnNextFocusableDay","direction","monthIndex","payload","n","changeRow","rowIndex","cellIndex","dayToFocus","handleDayKeyDown","event","_a","jsxs","classNames","jsx","YearTable","year","MonthTable","monthValue","DateTable","view"],"mappings":";;;;;;;;;AAmCA,MAAMA,KAAe,CAACC,MAA6B;AAC/C,QAAM;AAAA,IACF,WAAAC;AAAA,IACA,eAAAC,IAAgB;AAAA,IAChB,cAAAC;AAAA,IACA,UAAAC;AAAA,IACA,cAAAC;AAAA,IACA,aAAAC,IAAc;AAAA,IACd,aAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,mBAAAC,IAAoB;AAAA,IACpB,gBAAAC,IAAiB;AAAA,IACjB,qBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,eAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,aAAAC,IAAc;AAAA,MACV,OAAO;AAAA,MACP,MAAM;AAAA,IAAA;AAAA,IAEV,QAAAC;AAAA,IACA,SAAAC;AAAA,IACA,SAAAC;AAAA,IACA,OAAAC;AAAA,IACA,kBAAAC,IAAmB;AAAA,IACnB,UAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,eAAAC;AAAA,IACA,YAAAC,IAAavB;AAAA,IACb,cAAAwB;AAAA,IACA,OAAAC;AAAA,IACA,KAAAC;AAAA,IACA,WAAAC;AAAA,IACA,OAAAC;AAAA,IACA,OAAAC;AAAA,IACA,oBAAAC,IAAqB;AAAA,IACrB,aAAAC;AAAA,IACA,iBAAAC,IAAkB;AAAA,IAClB,GAAGC;AAAA,EAAA,IACHnC,GAEE,EAAE,QAAQoC,GAAA,IAA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C;AAAA,UAAA;AAAA,QAAA;AAAA,MACJ;AAAA,IAAA;AAAA,EAAA;AAIhB;"}
1
+ {"version":3,"file":"CalendarBase.js","sources":["../../../../../lib/@ecme/components/ui/DatePicker/CalendarBase.tsx"],"sourcesContent":["import { useRef, useState } from 'react'\nimport classNames from 'classnames'\nimport useControllableState from '../hooks/useControllableState'\nimport { useConfig } from '../ConfigProvider'\nimport DateTable from './tables/DateTable'\nimport MonthTable from './tables/MonthTable'\nimport YearTable from './tables/YearTable'\nimport type { CommonProps } from '../@types/common'\nimport type { MonthBaseProps } from './tables/components/Month'\nimport type { DayKeydownPayload } from './tables/components/types'\nimport type { ReactNode, KeyboardEvent, MouseEvent, Ref } from 'react'\n\nexport interface CalendarSharedProps extends Omit<MonthBaseProps, 'value'> {\n dateViewCount?: number\n defaultView?: 'date' | 'month' | 'year'\n defaultMonth?: Date\n enableHeaderLabel?: boolean\n locale?: string\n labelFormat?: { month: string; year: string }\n monthLabelFormat?: string\n onDayMouseEnter?: (date: Date, event: MouseEvent) => void\n onMonthChange?: (month: Date) => void\n paginateBy?: number\n range?: [Date, Date]\n renderDay?: (date: Date) => ReactNode\n weekdayLabelFormat?: string\n yearLabelFormat?: string\n}\n\ninterface CalendarBaseProps extends CommonProps, CalendarSharedProps {\n ref?: Ref<HTMLDivElement>\n onChange?: (value: Date | Date[]) => void\n value?: Date | Date[] | null\n}\n\nconst CalendarBase = (props: CalendarBaseProps) => {\n const {\n className,\n dateViewCount = 1,\n dayClassName,\n dayStyle,\n defaultMonth,\n defaultView = 'date',\n disableDate,\n disableOutOfMonth,\n enableHeaderLabel = true,\n firstDayOfWeek = 'monday',\n hideOutOfMonthDates,\n hideWeekdays,\n isDateFirstInRange,\n isDateInRange,\n isDateLastInRange,\n labelFormat = {\n month: 'MMM',\n year: 'YYYY',\n },\n locale,\n maxDate,\n minDate,\n month,\n monthLabelFormat = 'MMM',\n onChange,\n onDayMouseEnter,\n onMonthChange,\n paginateBy = dateViewCount,\n preventFocus,\n range,\n ref,\n renderDay,\n style,\n value,\n weekdayLabelFormat = 'dd',\n weekendDays,\n yearLabelFormat = 'YYYY',\n ...rest\n } = props\n\n const { locale: themeLocale } = useConfig()\n\n const [selectionState, setSelectionState] = useState(defaultView)\n\n const finalLocale = locale || themeLocale\n\n const daysRefs = useRef<HTMLButtonElement[][][]>(\n Array(dateViewCount)\n .fill(0)\n .map(() => []),\n )\n\n const [_month, setMonth] = useControllableState({\n prop: month,\n defaultProp: defaultMonth !== undefined ? defaultMonth : new Date(),\n onChange: onMonthChange,\n })\n\n const [yearSelection, setYearSelection] = useState(_month?.getFullYear())\n const [monthSelection, setMonthSelection] = useState(_month?.getMonth())\n\n const minYear = minDate instanceof Date ? minDate.getFullYear() : 100\n const maxYear = maxDate instanceof Date ? maxDate.getFullYear() : 10000\n\n const daysPerRow = 6\n\n const focusOnNextFocusableDay = (\n direction: 'down' | 'up' | 'left' | 'right',\n monthIndex: number,\n payload: DayKeydownPayload,\n n = 1,\n ) => {\n const changeRow = ['down', 'up'].includes(direction)\n\n const rowIndex = changeRow\n ? payload.rowIndex + (direction === 'down' ? n : -n)\n : payload.rowIndex\n\n const cellIndex = changeRow\n ? payload.cellIndex\n : payload.cellIndex + (direction === 'right' ? n : -n)\n\n const dayToFocus = daysRefs.current[monthIndex][rowIndex][cellIndex]\n\n if (!dayToFocus) {\n return\n }\n\n if (dayToFocus.disabled) {\n focusOnNextFocusableDay(direction, monthIndex, payload, n + 1)\n } else {\n dayToFocus.focus()\n }\n }\n\n const handleDayKeyDown = (\n monthIndex: number,\n payload: DayKeydownPayload,\n event: KeyboardEvent<HTMLButtonElement>,\n ) => {\n switch (event.key) {\n case 'ArrowDown': {\n event.preventDefault()\n\n const hasRowBelow =\n payload.rowIndex + 1 < daysRefs.current[monthIndex].length\n if (hasRowBelow) {\n focusOnNextFocusableDay('down', monthIndex, payload)\n }\n break\n }\n case 'ArrowUp': {\n event.preventDefault()\n\n const hasRowAbove = payload.rowIndex > 0\n if (hasRowAbove) {\n focusOnNextFocusableDay('up', monthIndex, payload)\n }\n break\n }\n case 'ArrowRight': {\n event.preventDefault()\n\n const isNotLastCell = payload.cellIndex !== daysPerRow\n if (isNotLastCell) {\n focusOnNextFocusableDay('right', monthIndex, payload)\n } else if (monthIndex + 1 < dateViewCount) {\n if (daysRefs.current[monthIndex + 1][payload.rowIndex]) {\n daysRefs.current[monthIndex + 1][\n payload.rowIndex\n ][0]?.focus()\n }\n }\n break\n }\n case 'ArrowLeft': {\n event.preventDefault()\n\n if (payload.cellIndex !== 0) {\n focusOnNextFocusableDay('left', monthIndex, payload)\n } else if (monthIndex > 0) {\n if (daysRefs.current[monthIndex - 1][payload.rowIndex]) {\n daysRefs.current[monthIndex - 1][payload.rowIndex][\n daysPerRow\n ].focus()\n }\n }\n break\n }\n default:\n break\n }\n }\n\n return (\n <div\n ref={ref}\n className={classNames('picker-view', className)}\n {...rest}\n >\n {selectionState === 'year' && (\n <YearTable\n value={yearSelection as number}\n minYear={minYear}\n maxYear={maxYear}\n className={className}\n preventFocus={preventFocus}\n yearLabelFormat={yearLabelFormat}\n onChange={(year) => {\n setMonth(new Date(year, monthSelection as number, 1))\n setYearSelection(year)\n setSelectionState('date')\n }}\n />\n )}\n {selectionState === 'month' && (\n <MonthTable\n value={{\n month: (_month as Date).getMonth(),\n year: (_month as Date).getFullYear(),\n }}\n year={yearSelection as number}\n locale={finalLocale}\n minDate={minDate}\n maxDate={maxDate}\n className={className}\n style={style}\n preventFocus={preventFocus}\n yearLabelFormat={yearLabelFormat}\n monthLabelFormat={monthLabelFormat}\n onYearChange={setYearSelection}\n onNextLevel={() => setSelectionState('year')}\n onChange={(monthValue) => {\n setMonth(\n new Date(yearSelection as number, monthValue, 1),\n )\n setMonthSelection(monthValue)\n setSelectionState('date')\n }}\n />\n )}\n {selectionState === 'date' && (\n <DateTable\n dateViewCount={dateViewCount}\n paginateBy={paginateBy}\n month={_month as Date}\n locale={finalLocale}\n minDate={minDate}\n maxDate={maxDate}\n enableHeaderLabel={enableHeaderLabel}\n daysRefs={daysRefs}\n style={style}\n dayClassName={dayClassName}\n dayStyle={dayStyle}\n disableOutOfMonth={disableOutOfMonth}\n disableDate={disableDate}\n hideWeekdays={hideWeekdays}\n preventFocus={preventFocus}\n firstDayOfWeek={firstDayOfWeek}\n value={value as Date | Date[]}\n range={range}\n labelFormat={labelFormat}\n weekdayLabelFormat={weekdayLabelFormat}\n renderDay={renderDay}\n hideOutOfMonthDates={hideOutOfMonthDates}\n isDateInRange={isDateInRange}\n isDateFirstInRange={isDateFirstInRange}\n isDateLastInRange={isDateLastInRange}\n weekendDays={weekendDays}\n onMonthChange={setMonth}\n onNextLevel={(view) => setSelectionState(view)}\n onDayKeyDown={handleDayKeyDown}\n onChange={onChange}\n onDayMouseEnter={onDayMouseEnter}\n />\n )}\n </div>\n )\n}\n\nexport default CalendarBase\n"],"names":["CalendarBase","props","className","dateViewCount","dayClassName","dayStyle","defaultMonth","defaultView","disableDate","disableOutOfMonth","enableHeaderLabel","firstDayOfWeek","hideOutOfMonthDates","hideWeekdays","isDateFirstInRange","isDateInRange","isDateLastInRange","labelFormat","locale","maxDate","minDate","month","monthLabelFormat","onChange","onDayMouseEnter","onMonthChange","paginateBy","preventFocus","range","ref","renderDay","style","value","weekdayLabelFormat","weekendDays","yearLabelFormat","rest","themeLocale","useConfig","selectionState","setSelectionState","useState","finalLocale","daysRefs","useRef","_month","setMonth","useControllableState","yearSelection","setYearSelection","monthSelection","setMonthSelection","minYear","maxYear","daysPerRow","focusOnNextFocusableDay","direction","monthIndex","payload","n","changeRow","rowIndex","cellIndex","dayToFocus","handleDayKeyDown","event","jsxs","classNames","jsx","YearTable","year","MonthTable","monthValue","DateTable","view"],"mappings":";;;;;;;;;AAmCA,MAAMA,KAAe,CAACC,MAA6B;AAC/C,QAAM;AAAA,IACF,WAAAC;AAAA,IACA,eAAAC,IAAgB;AAAA,IAChB,cAAAC;AAAA,IACA,UAAAC;AAAA,IACA,cAAAC;AAA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AmB,UAChB,gBAAA6B;AAAA,UAACK;AAAA,UAAA;AAAA,YACG,eAAAtE;AAAA,YACA,YAAAuB;AAAA,YACA,OAAOmB;AAAA,YACP,QAAQH;AAAA,YACR,SAAAtB;AAAA,YACA,SAAAD;AAAA,YACA,mBAAAT;AAAA,YACA,UAAAiC;AAAA,YACA,OAAAZ;AAAA,YACA,cAAA3B;AAAA,YACA,UAAAC;AAAA,YACA,mBAAAI;AAAA,YACA,aAAAD;AAAA,YACA,cAAAK;AAAA,YACA,cAAAc;AAAA,YACA,gBAAAhB;AAAA,YACA,OAAAqB;AAAA,YACA,OAAAJ;AAAA,YACA,aAAAX;AAAA,YACA,oBAAAgB;AAAA,YACA,WAAAH;AAAA,YACA,qBAAAlB;AAAA,YACA,eAAAG;AAAA,YACA,oBAAAD;AAAA,YACA,mBAAAE;AAAA,YACA,aAAAkB;AAAA,YACA,eAAeY;AAAA,YACf,aAAa,CAAC4B,MAASlC,EAAkBkC,CAAI;AAAA,YAC7C,cAAcV;AAAA,YACd,UAAAzC;AAAA,YACA,iBAAAC;AAAA,UAAA;AAAA,QAAA;AAAA,MACJ;AAAA,IAAA;AAAA,EAAA;AAIhB;"}
@@ -1,8 +1,8 @@
1
1
  import { jsx as A } from "react/jsx-runtime";
2
- import { useState as m, useRef as we, useEffect as k } from "react";
2
+ import { useState as d, useRef as Fe, useEffect as O } from "react";
3
3
  import a from "dayjs";
4
- import Ve from "../hooks/useControllableState.js";
5
- import Oe from "../hooks/useMergeRef.js";
4
+ import Oe from "../hooks/useControllableState.js";
5
+ import Ve from "../hooks/useMergeRef.js";
6
6
  import ke from "./Calendar.js";
7
7
  import Ye from "./BasePicker.js";
8
8
  import "../ConfigProvider/index.js";
@@ -17,11 +17,11 @@ const R = "YYYY-MM-DD", Ne = (T) => {
17
17
  dateViewCount: z,
18
18
  dayClassName: K,
19
19
  dayStyle: U,
20
- defaultMonth: Y,
20
+ defaultMonth: V,
21
21
  defaultOpen: W = !1,
22
- defaultValue: C,
22
+ defaultValue: h,
23
23
  defaultView: H,
24
- disabled: B = !1,
24
+ disabled: k = !1,
25
25
  disableDate: q,
26
26
  enableHeaderLabel: G,
27
27
  disableOutOfMonth: J,
@@ -31,7 +31,7 @@ const R = "YYYY-MM-DD", Ne = (T) => {
31
31
  inputFormat: $,
32
32
  inputPrefix: ee,
33
33
  inputSuffix: te,
34
- inputtable: i,
34
+ inputtable: f,
35
35
  labelFormat: ae = {
36
36
  month: "MMM",
37
37
  year: "YYYY"
@@ -40,105 +40,101 @@ const R = "YYYY-MM-DD", Ne = (T) => {
40
40
  maxDate: o,
41
41
  minDate: n,
42
42
  name: ne = "date",
43
- onBlur: L,
43
+ onBlur: Y,
44
44
  onChange: le,
45
- onFocus: P,
46
- onDropdownClose: h,
47
- onDropdownOpen: D,
45
+ onFocus: B,
46
+ onDropdownClose: L,
47
+ onDropdownOpen: P,
48
48
  openPickerOnClear: se = !1,
49
49
  renderDay: re,
50
50
  ref: fe = null,
51
51
  size: ie,
52
52
  style: ue,
53
- type: M,
54
- value: u,
53
+ type: y,
54
+ value: i,
55
55
  weekendDays: ce,
56
56
  yearLabelFormat: de,
57
- ...me
58
- } = T, { locale: g } = Be(), s = oe || g, f = M === "date" ? R : $ || R, [pe, b] = m(W), F = we(null), [he, w] = m(C ?? null), [t, c] = Ve({
59
- prop: u,
60
- defaultProp: C,
57
+ ...pe
58
+ } = T, { locale: C } = Be(), s = oe || C, r = y === "date" ? R : $ || R, [me, w] = d(W), M = Fe(null), [De, g] = d(h ?? null), [t, u] = Oe({
59
+ prop: i,
60
+ defaultProp: h,
61
61
  onChange: le
62
- }), [V, d] = m(
63
- t || Y || /* @__PURE__ */ new Date()
64
- ), [y, v] = m(!1), [S, l] = m(
65
- t instanceof Date ? p(a(t).locale(s).format(f)) : ""
66
- ), De = () => {
67
- b(!1), h == null || h();
68
- }, O = () => {
69
- b(!0), D == null || D();
62
+ }), [b, c] = d(
63
+ t || V || /* @__PURE__ */ new Date()
64
+ ), [m, v] = d(!1), [S, l] = d(
65
+ t instanceof Date ? p(a(t).locale(s).format(r)) : ""
66
+ ), he = () => {
67
+ w(!1), L?.();
68
+ }, F = () => {
69
+ w(!0), P?.();
70
70
  };
71
- k(() => {
72
- t || (o && a(V).isAfter(o) && d(o), n && a(V).isBefore(n) && d(n));
73
- }, [n, o]), k(() => {
74
- u === null && !y && l(""), u instanceof Date && !y && l(
75
- p(a(u).locale(s).format(f))
71
+ O(() => {
72
+ t || (o && a(b).isAfter(o) && c(o), n && a(b).isBefore(n) && c(n));
73
+ }, [n, o]), O(() => {
74
+ i === null && !m && l(""), i instanceof Date && !m && l(
75
+ p(a(i).locale(s).format(r))
76
76
  );
77
- }, [u, y, g]), k(() => {
78
- C instanceof Date && S && !y && l(
77
+ }, [i, m, C]), O(() => {
78
+ h instanceof Date && S && !m && l(
79
79
  p(
80
- a(t).locale(s).format(f)
80
+ a(t).locale(s).format(r)
81
81
  )
82
82
  );
83
- }, [g]);
83
+ }, [C]);
84
84
  const ye = (e) => {
85
- c(e), l(
86
- p(a(e).locale(s).format(f))
87
- ), j && O(), window.setTimeout(() => {
88
- var r;
89
- return (r = F.current) == null ? void 0 : r.focus();
90
- }, 0);
85
+ u(e), l(
86
+ p(a(e).locale(s).format(r))
87
+ ), j && F(), window.setTimeout(() => M.current?.focus(), 0);
91
88
  }, Ce = () => {
92
- var e;
93
- c(null), w(null), l(""), se && O(), (e = F.current) == null || e.focus();
94
- }, x = (e) => a(e, f, s).toDate(), I = () => {
89
+ u(null), g(null), l(""), se && F(), M.current?.focus();
90
+ }, x = (e) => a(e, r, s).toDate(), I = () => {
95
91
  let e = typeof t == "string" ? x(t) : t;
96
- o && a(e).isAfter(o) && (e = o), n && a(e).isBefore(n) && (e = n), a(e).isValid() ? (c(e), w(e), l(
97
- p(a(e).locale(s).format(f))
98
- ), d(e)) : c(he);
92
+ o && a(e).isAfter(o) && (e = o), n && a(e).isBefore(n) && (e = n), a(e).isValid() ? (u(e), g(e), l(
93
+ p(a(e).locale(s).format(r))
94
+ ), c(e)) : u(De);
95
+ }, we = (e) => {
96
+ typeof Y == "function" && Y(e), v(!1), f && I();
99
97
  }, Me = (e) => {
100
- typeof L == "function" && L(e), v(!1), i && I();
98
+ e.key === "Enter" && f && (he(), I());
101
99
  }, ge = (e) => {
102
- e.key === "Enter" && i && (De(), I());
100
+ typeof B == "function" && B(e), v(!0);
103
101
  }, be = (e) => {
104
- typeof P == "function" && P(e), v(!0);
105
- }, Fe = (e) => {
106
- O();
107
- const r = x(e.target.value);
108
- a(r).isValid() ? (c(r), w(r), l(e.target.value), d(r)) : l(e.target.value);
102
+ F();
103
+ const D = x(e.target.value);
104
+ a(D).isValid() ? (u(D), g(D), l(e.target.value), c(D)) : l(e.target.value);
109
105
  };
110
106
  return /* @__PURE__ */ A(
111
107
  Ye,
112
108
  {
113
- ref: Oe(fe, F),
114
- inputtable: i,
115
- dropdownOpened: pe,
116
- setDropdownOpened: b,
109
+ ref: Ve(fe, M),
110
+ inputtable: f,
111
+ dropdownOpened: me,
112
+ setDropdownOpened: w,
117
113
  size: ie,
118
114
  style: ue,
119
115
  className: E,
120
116
  name: ne,
121
117
  inputLabel: S,
122
- clearable: M === "date" ? !1 : N && !!t && !B,
118
+ clearable: y === "date" ? !1 : N && !!t && !k,
123
119
  clearButton: _,
124
- disabled: B,
125
- type: M,
120
+ disabled: k,
121
+ type: y,
126
122
  inputPrefix: ee,
127
123
  inputSuffix: te,
128
- onChange: Fe,
129
- onBlur: Me,
130
- onFocus: be,
131
- onKeyDown: ge,
124
+ onChange: be,
125
+ onBlur: we,
126
+ onFocus: ge,
127
+ onKeyDown: Me,
132
128
  onClear: Ce,
133
- onDropdownClose: h,
134
- onDropdownOpen: D,
135
- ...me,
129
+ onDropdownClose: L,
130
+ onDropdownOpen: P,
131
+ ...pe,
136
132
  children: /* @__PURE__ */ A(
137
133
  ke,
138
134
  {
139
135
  locale: s,
140
- month: i ? V : void 0,
141
- defaultMonth: Y || (t instanceof Date ? t : /* @__PURE__ */ new Date()),
136
+ month: f ? b : void 0,
137
+ defaultMonth: V || (t instanceof Date ? t : /* @__PURE__ */ new Date()),
142
138
  value: t instanceof Date ? t : t && a(t).toDate(),
143
139
  labelFormat: ae,
144
140
  dayClassName: K,
@@ -148,7 +144,7 @@ const R = "YYYY-MM-DD", Ne = (T) => {
148
144
  maxDate: o,
149
145
  disableDate: q,
150
146
  firstDayOfWeek: Q,
151
- preventFocus: i,
147
+ preventFocus: f,
152
148
  dateViewCount: z,
153
149
  enableHeaderLabel: G,
154
150
  defaultView: H,
@@ -157,7 +153,7 @@ const R = "YYYY-MM-DD", Ne = (T) => {
157
153
  renderDay: re,
158
154
  weekendDays: ce,
159
155
  yearLabelFormat: de,
160
- onMonthChange: d,
156
+ onMonthChange: c,
161
157
  onChange: ye
162
158
  }
163
159
  )
@@ -1 +1 @@
1
- {"version":3,"file":"DatePicker.js","sources":["../../../../../lib/@ecme/components/ui/DatePicker/DatePicker.tsx"],"sourcesContent":["import { useState, useRef, useEffect } from 'react'\nimport dayjs from 'dayjs'\nimport useControllableState from '../hooks/useControllableState'\nimport useMergedRef from '../hooks/useMergeRef'\nimport Calendar from './Calendar'\nimport BasePicker from './BasePicker'\nimport { useConfig } from '../ConfigProvider'\nimport capitalize from '../utils/capitalize'\nimport type { CommonProps } from '../@types/common'\nimport type { CalendarSharedProps } from './CalendarBase'\nimport type { BasePickerSharedProps } from './BasePicker'\nimport type { FocusEvent, KeyboardEvent, ChangeEvent, Ref } from 'react'\n\nconst DEFAULT_INPUT_FORMAT = 'YYYY-MM-DD'\n\nexport interface DatePickerProps\n extends CommonProps,\n Omit<\n CalendarSharedProps,\n | 'onMonthChange'\n | 'onChange'\n | 'isDateInRange'\n | 'isDateFirstInRange'\n | 'isDateLastInRange'\n | 'month'\n >,\n BasePickerSharedProps {\n closePickerOnChange?: boolean\n defaultOpen?: boolean\n defaultValue?: Date | null\n value?: Date | null\n inputFormat?: string\n inputtableBlurClose?: boolean\n openPickerOnClear?: boolean\n onChange?: (value: Date | null) => void\n ref?: Ref<HTMLInputElement>\n}\n\nconst DatePicker = (props: DatePickerProps) => {\n const {\n className,\n clearable = true,\n clearButton,\n closePickerOnChange = true,\n dateViewCount,\n dayClassName,\n dayStyle,\n defaultMonth,\n defaultOpen = false,\n defaultValue,\n defaultView,\n disabled = false,\n disableDate,\n enableHeaderLabel,\n disableOutOfMonth,\n firstDayOfWeek = 'monday',\n hideOutOfMonthDates,\n hideWeekdays,\n inputFormat,\n inputPrefix,\n inputSuffix,\n inputtable,\n labelFormat = {\n month: 'MMM',\n year: 'YYYY',\n },\n locale,\n maxDate,\n minDate,\n name = 'date',\n onBlur,\n onChange,\n onFocus,\n onDropdownClose,\n onDropdownOpen,\n openPickerOnClear = false,\n renderDay,\n ref = null,\n size,\n style,\n type,\n value,\n weekendDays,\n yearLabelFormat,\n ...rest\n } = props\n\n const { locale: themeLocale } = useConfig()\n const finalLocale = locale || themeLocale\n\n const dateFormat =\n type === 'date'\n ? DEFAULT_INPUT_FORMAT\n : inputFormat || DEFAULT_INPUT_FORMAT\n\n const [dropdownOpened, setDropdownOpened] = useState(defaultOpen)\n\n const inputRef = useRef<HTMLInputElement>(null)\n\n const [lastValidValue, setLastValidValue] = useState(defaultValue ?? null)\n\n const [_value, setValue] = useControllableState({\n prop: value,\n defaultProp: defaultValue,\n onChange,\n })\n\n const [calendarMonth, setCalendarMonth] = useState(\n _value || defaultMonth || new Date(),\n )\n\n const [focused, setFocused] = useState(false)\n\n const [inputState, setInputState] = useState(\n _value instanceof Date\n ? capitalize(dayjs(_value).locale(finalLocale).format(dateFormat))\n : '',\n )\n\n const closeDropdown = () => {\n setDropdownOpened(false)\n onDropdownClose?.()\n }\n\n const openDropdown = () => {\n setDropdownOpened(true)\n onDropdownOpen?.()\n }\n\n useEffect(() => {\n if (!_value) {\n if (maxDate && dayjs(calendarMonth).isAfter(maxDate)) {\n setCalendarMonth(maxDate)\n }\n\n if (minDate && dayjs(calendarMonth).isBefore(minDate)) {\n setCalendarMonth(minDate)\n }\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [minDate, maxDate])\n\n useEffect(() => {\n if (value === null && !focused) {\n setInputState('')\n }\n\n if (value instanceof Date && !focused) {\n setInputState(\n capitalize(dayjs(value).locale(finalLocale).format(dateFormat)),\n )\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [value, focused, themeLocale])\n\n useEffect(() => {\n if (defaultValue instanceof Date && inputState && !focused) {\n setInputState(\n capitalize(\n dayjs(_value).locale(finalLocale).format(dateFormat),\n ),\n )\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [themeLocale])\n\n const handleValueChange = (date: Date | null) => {\n setValue(date)\n setInputState(\n capitalize(dayjs(date).locale(finalLocale).format(dateFormat)),\n )\n if (closePickerOnChange) {\n openDropdown()\n }\n window.setTimeout(() => inputRef.current?.focus(), 0)\n }\n\n const handleClear = () => {\n setValue(null)\n setLastValidValue(null)\n setInputState('')\n if (openPickerOnClear) {\n openDropdown()\n }\n inputRef.current?.focus()\n }\n\n const parseDate = (date: string) =>\n dayjs(date, dateFormat, finalLocale).toDate()\n\n const setDateFromInput = () => {\n let date = typeof _value === 'string' ? parseDate(_value) : _value\n\n if (maxDate && dayjs(date).isAfter(maxDate)) {\n date = maxDate\n }\n\n if (minDate && dayjs(date).isBefore(minDate)) {\n date = minDate\n }\n\n if (dayjs(date).isValid()) {\n setValue(date)\n setLastValidValue(date as Date)\n setInputState(\n capitalize(dayjs(date).locale(finalLocale).format(dateFormat)),\n )\n setCalendarMonth(date as Date)\n } else {\n setValue(lastValidValue)\n }\n }\n\n const handleInputBlur = (event: FocusEvent<HTMLInputElement, Element>) => {\n if (typeof onBlur === 'function') {\n onBlur(event)\n }\n setFocused(false)\n\n if (inputtable) {\n setDateFromInput()\n }\n }\n\n const handleKeyDown = (event: KeyboardEvent<HTMLInputElement>) => {\n if (event.key === 'Enter' && inputtable) {\n closeDropdown()\n setDateFromInput()\n }\n }\n\n const handleInputFocus = (event: FocusEvent<HTMLInputElement, Element>) => {\n if (typeof onFocus === 'function') {\n onFocus(event)\n }\n setFocused(true)\n }\n\n const handleChange = (event: ChangeEvent<HTMLInputElement>) => {\n openDropdown()\n\n const date = parseDate(event.target.value)\n if (dayjs(date).isValid()) {\n setValue(date)\n setLastValidValue(date)\n setInputState(event.target.value)\n setCalendarMonth(date)\n } else {\n setInputState(event.target.value)\n }\n }\n\n return (\n <BasePicker\n ref={useMergedRef(ref, inputRef)}\n inputtable={inputtable}\n dropdownOpened={dropdownOpened as boolean}\n setDropdownOpened={setDropdownOpened}\n size={size}\n style={style}\n className={className}\n name={name}\n inputLabel={inputState}\n clearable={\n type === 'date' ? false : clearable && !!_value && !disabled\n }\n clearButton={clearButton}\n disabled={disabled}\n type={type}\n inputPrefix={inputPrefix}\n inputSuffix={inputSuffix}\n onChange={handleChange}\n onBlur={handleInputBlur}\n onFocus={handleInputFocus}\n onKeyDown={handleKeyDown}\n onClear={handleClear}\n onDropdownClose={onDropdownClose}\n onDropdownOpen={onDropdownOpen}\n {...rest}\n >\n <Calendar\n locale={finalLocale}\n month={inputtable ? calendarMonth : undefined}\n defaultMonth={\n defaultMonth ||\n (_value instanceof Date ? _value : new Date())\n }\n value={\n _value instanceof Date\n ? _value\n : _value && dayjs(_value).toDate()\n }\n labelFormat={labelFormat}\n dayClassName={dayClassName}\n dayStyle={dayStyle}\n disableOutOfMonth={disableOutOfMonth}\n minDate={minDate}\n maxDate={maxDate}\n disableDate={disableDate}\n firstDayOfWeek={firstDayOfWeek}\n preventFocus={inputtable}\n dateViewCount={dateViewCount}\n enableHeaderLabel={enableHeaderLabel}\n defaultView={defaultView}\n hideOutOfMonthDates={hideOutOfMonthDates}\n hideWeekdays={hideWeekdays}\n renderDay={renderDay}\n weekendDays={weekendDays}\n yearLabelFormat={yearLabelFormat}\n onMonthChange={setCalendarMonth}\n onChange={handleValueChange}\n />\n </BasePicker>\n )\n}\n\nexport default DatePicker\n"],"names":["DEFAULT_INPUT_FORMAT","DatePicker","props","className","clearable","clearButton","closePickerOnChange","dateViewCount","dayClassName","dayStyle","defaultMonth","defaultOpen","defaultValue","defaultView","disabled","disableDate","enableHeaderLabel","disableOutOfMonth","firstDayOfWeek","hideOutOfMonthDates","hideWeekdays","inputFormat","inputPrefix","inputSuffix","inputtable","labelFormat","locale","maxDate","minDate","name","onBlur","onChange","onFocus","onDropdownClose","onDropdownOpen","openPickerOnClear","renderDay","ref","size","style","type","value","weekendDays","yearLabelFormat","rest","themeLocale","useConfig","finalLocale","dateFormat","dropdownOpened","setDropdownOpened","useState","inputRef","useRef","lastValidValue","setLastValidValue","_value","setValue","useControllableState","calendarMonth","setCalendarMonth","focused","setFocused","inputState","setInputState","capitalize","dayjs","closeDropdown","openDropdown","useEffect","handleValueChange","date","_a","handleClear","parseDate","setDateFromInput","handleInputBlur","event","handleKeyDown","handleInputFocus","handleChange","jsx","BasePicker","useMergedRef","Calendar"],"mappings":";;;;;;;;;;AAaA,MAAMA,IAAuB,cAyBvBC,KAAa,CAACC,MAA2B;AAC3C,QAAM;AAAA,IACF,WAAAC;AAAA,IACA,WAAAC,IAAY;AAAA,IACZ,aAAAC;AAAA,IACA,qBAAAC,IAAsB;AAAA,IACtB,eAAAC;AAAA,IACA,cAAAC;AAAA,IACA,UAAAC;AAAA,IACA,cAAAC;AAAA,IACA,aAAAC,IAAc;AAAA,IACd,cAAAC;AAAA,IACA,aAAAC;AAAA,IACA,UAAAC,IAAW;AAAA,IACX,aAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,gBAAAC,IAAiB;AAAA,IACjB,qBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,aAAAC;AAAA,IACA,aAAAC;AAAA,IACA,aAAAC;AAAA,IACA,YAAAC;AAAA,IACA,aAAAC,KAAc;AAAA,MACV,OAAO;AAAA,MACP,MAAM;AAAA,IAAA;AAAA,IAEV,QAAAC;AAAA,IACA,SAAAC;AAAA,IACA,SA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AAQpC,KAAa,CAAC,CAACoD,KAAU,CAAC1C;AAAA,MAExD,aAAAT;AAAA,MACA,UAAAS;AAAA,MACA,MAAA0B;AAAA,MACA,aAAAlB;AAAA,MACA,aAAAC;AAAA,MACA,UAAUyD;AAAA,MACV,QAAQJ;AAAA,MACR,SAASG;AAAA,MACT,WAAWD;AAAA,MACX,SAASL;AAAA,MACT,iBAAAxC;AAAA,MACA,gBAAAC;AAAA,MACC,GAAGU;AAAA,MAEJ,UAAA,gBAAAqC;AAAA,QAACG;AAAA,QAAA;AAAA,UACG,QAAQrC;AAAA,UACR,OAAOvB,IAAamC,IAAgB;AAAA,UACpC,cACIjD,MACC8C,aAAkB,OAAOA,wBAAa;UAE3C,OACIA,aAAkB,OACZA,IACAA,KAAUU,EAAMV,CAAM,EAAE,OAAA;AAAA,UAElC,aAAA/B;AAAA,UACA,cAAAjB;AAAA,UACA,UAAAC;AAAA,UACA,mBAAAQ;AAAA,UACA,SAAAW;AAAA,UACA,SAAAD;AAAA,UACA,aAAAZ;AAAA,UACA,gBAAAG;AAAA,UACA,cAAcM;AAAA,UACd,eAAAjB;AAAA,UACA,mBAAAS;AAAA,UACA,aAAAH;AAAA,UACA,qBAAAM;AAAA,UACA,cAAAC;AAAA,UACA,WAAAgB;AAAA,UACA,aAAAM;AAAA,UACA,iBAAAC;AAAA,UACA,eAAeiB;AAAA,UACf,UAAUU;AAAA,QAAA;AAAA,MAAA;AAAA,IACd;AAAA,EAAA;AAGZ;"}
1
+ {"version":3,"file":"DatePicker.js","sources":["../../../../../lib/@ecme/components/ui/DatePicker/DatePicker.tsx"],"sourcesContent":["import { useState, useRef, useEffect } from 'react'\nimport dayjs from 'dayjs'\nimport useControllableState from '../hooks/useControllableState'\nimport useMergedRef from '../hooks/useMergeRef'\nimport Calendar from './Calendar'\nimport BasePicker from './BasePicker'\nimport { useConfig } from '../ConfigProvider'\nimport capitalize from '../utils/capitalize'\nimport type { CommonProps } from '../@types/common'\nimport type { CalendarSharedProps } from './CalendarBase'\nimport type { BasePickerSharedProps } from './BasePicker'\nimport type { FocusEvent, KeyboardEvent, ChangeEvent, Ref } from 'react'\n\nconst DEFAULT_INPUT_FORMAT = 'YYYY-MM-DD'\n\nexport interface DatePickerProps\n extends CommonProps,\n Omit<\n CalendarSharedProps,\n | 'onMonthChange'\n | 'onChange'\n | 'isDateInRange'\n | 'isDateFirstInRange'\n | 'isDateLastInRange'\n | 'month'\n >,\n BasePickerSharedProps {\n closePickerOnChange?: boolean\n defaultOpen?: boolean\n defaultValue?: Date | null\n value?: Date | null\n inputFormat?: string\n inputtableBlurClose?: boolean\n openPickerOnClear?: boolean\n onChange?: (value: Date | null) => void\n ref?: Ref<HTMLInputElement>\n}\n\nconst DatePicker = (props: DatePickerProps) => {\n const {\n className,\n clearable = true,\n clearButton,\n closePickerOnChange = true,\n dateViewCount,\n dayClassName,\n dayStyle,\n defaultMonth,\n defaultOpen = false,\n defaultValue,\n defaultView,\n disabled = false,\n disableDate,\n enableHeaderLabel,\n disableOutOfMonth,\n firstDayOfWeek = 'monday',\n hideOutOfMonthDates,\n hideWeekdays,\n inputFormat,\n inputPrefix,\n inputSuffix,\n inputtable,\n labelFormat = {\n month: 'MMM',\n year: 'YYYY',\n },\n locale,\n maxDate,\n minDate,\n name = 'date',\n onBlur,\n onChange,\n onFocus,\n onDropdownClose,\n onDropdownOpen,\n openPickerOnClear = false,\n renderDay,\n ref = null,\n size,\n style,\n type,\n value,\n weekendDays,\n yearLabelFormat,\n ...rest\n } = props\n\n const { locale: themeLocale } = useConfig()\n const finalLocale = locale || themeLocale\n\n const dateFormat =\n type === 'date'\n ? DEFAULT_INPUT_FORMAT\n : inputFormat || DEFAULT_INPUT_FORMAT\n\n const [dropdownOpened, setDropdownOpened] = useState(defaultOpen)\n\n const inputRef = useRef<HTMLInputElement>(null)\n\n const [lastValidValue, setLastValidValue] = useState(defaultValue ?? null)\n\n const [_value, setValue] = useControllableState({\n prop: value,\n defaultProp: defaultValue,\n onChange,\n })\n\n const [calendarMonth, setCalendarMonth] = useState(\n _value || defaultMonth || new Date(),\n )\n\n const [focused, setFocused] = useState(false)\n\n const [inputState, setInputState] = useState(\n _value instanceof Date\n ? capitalize(dayjs(_value).locale(finalLocale).format(dateFormat))\n : '',\n )\n\n const closeDropdown = () => {\n setDropdownOpened(false)\n onDropdownClose?.()\n }\n\n const openDropdown = () => {\n setDropdownOpened(true)\n onDropdownOpen?.()\n }\n\n useEffect(() => {\n if (!_value) {\n if (maxDate && dayjs(calendarMonth).isAfter(maxDate)) {\n setCalendarMonth(maxDate)\n }\n\n if (minDate && dayjs(calendarMonth).isBefore(minDate)) {\n setCalendarMonth(minDate)\n }\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [minDate, maxDate])\n\n useEffect(() => {\n if (value === null && !focused) {\n setInputState('')\n }\n\n if (value instanceof Date && !focused) {\n setInputState(\n capitalize(dayjs(value).locale(finalLocale).format(dateFormat)),\n )\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [value, focused, themeLocale])\n\n useEffect(() => {\n if (defaultValue instanceof Date && inputState && !focused) {\n setInputState(\n capitalize(\n dayjs(_value).locale(finalLocale).format(dateFormat),\n ),\n )\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [themeLocale])\n\n const handleValueChange = (date: Date | null) => {\n setValue(date)\n setInputState(\n capitalize(dayjs(date).locale(finalLocale).format(dateFormat)),\n )\n if (closePickerOnChange) {\n openDropdown()\n }\n window.setTimeout(() => inputRef.current?.focus(), 0)\n }\n\n const handleClear = () => {\n setValue(null)\n setLastValidValue(null)\n setInputState('')\n if (openPickerOnClear) {\n openDropdown()\n }\n inputRef.current?.focus()\n }\n\n const parseDate = (date: string) =>\n dayjs(date, dateFormat, finalLocale).toDate()\n\n const setDateFromInput = () => {\n let date = typeof _value === 'string' ? parseDate(_value) : _value\n\n if (maxDate && dayjs(date).isAfter(maxDate)) {\n date = maxDate\n }\n\n if (minDate && dayjs(date).isBefore(minDate)) {\n date = minDate\n }\n\n if (dayjs(date).isValid()) {\n setValue(date)\n setLastValidValue(date as Date)\n setInputState(\n capitalize(dayjs(date).locale(finalLocale).format(dateFormat)),\n )\n setCalendarMonth(date as Date)\n } else {\n setValue(lastValidValue)\n }\n }\n\n const handleInputBlur = (event: FocusEvent<HTMLInputElement, Element>) => {\n if (typeof onBlur === 'function') {\n onBlur(event)\n }\n setFocused(false)\n\n if (inputtable) {\n setDateFromInput()\n }\n }\n\n const handleKeyDown = (event: KeyboardEvent<HTMLInputElement>) => {\n if (event.key === 'Enter' && inputtable) {\n closeDropdown()\n setDateFromInput()\n }\n }\n\n const handleInputFocus = (event: FocusEvent<HTMLInputElement, Element>) => {\n if (typeof onFocus === 'function') {\n onFocus(event)\n }\n setFocused(true)\n }\n\n const handleChange = (event: ChangeEvent<HTMLInputElement>) => {\n openDropdown()\n\n const date = parseDate(event.target.value)\n if (dayjs(date).isValid()) {\n setValue(date)\n setLastValidValue(date)\n setInputState(event.target.value)\n setCalendarMonth(date)\n } else {\n setInputState(event.target.value)\n }\n }\n\n return (\n <BasePicker\n ref={useMergedRef(ref, inputRef)}\n inputtable={inputtable}\n dropdownOpened={dropdownOpened as boolean}\n setDropdownOpened={setDropdownOpened}\n size={size}\n style={style}\n className={className}\n name={name}\n inputLabel={inputState}\n clearable={\n type === 'date' ? false : clearable && !!_value && !disabled\n }\n clearButton={clearButton}\n disabled={disabled}\n type={type}\n inputPrefix={inputPrefix}\n inputSuffix={inputSuffix}\n onChange={handleChange}\n onBlur={handleInputBlur}\n onFocus={handleInputFocus}\n onKeyDown={handleKeyDown}\n onClear={handleClear}\n onDropdownClose={onDropdownClose}\n onDropdownOpen={onDropdownOpen}\n {...rest}\n >\n <Calendar\n locale={finalLocale}\n month={inputtable ? calendarMonth : undefined}\n defaultMonth={\n defaultMonth ||\n (_value instanceof Date ? _value : new Date())\n }\n value={\n _value instanceof Date\n ? _value\n : _value && dayjs(_value).toDate()\n }\n labelFormat={labelFormat}\n dayClassName={dayClassName}\n dayStyle={dayStyle}\n disableOutOfMonth={disableOutOfMonth}\n minDate={minDate}\n maxDate={maxDate}\n disableDate={disableDate}\n firstDayOfWeek={firstDayOfWeek}\n preventFocus={inputtable}\n dateViewCount={dateViewCount}\n enableHeaderLabel={enableHeaderLabel}\n defaultView={defaultView}\n hideOutOfMonthDates={hideOutOfMonthDates}\n hideWeekdays={hideWeekdays}\n renderDay={renderDay}\n weekendDays={weekendDays}\n yearLabelFormat={yearLabelFormat}\n onMonthChange={setCalendarMonth}\n onChange={handleValueChange}\n />\n </BasePicker>\n )\n}\n\nexport default DatePicker\n"],"names":["DEFAULT_INPUT_FORMAT","DatePicker","props","className","clearable","clearButton","closePickerOnChange","dateViewCount","dayClassName","dayStyle","defaultMonth","defaultOpen","defaultValue","defaultView","disabled","disableDate","enableHeaderLabel","disableOutOfMonth","firstDayOfWeek","hideOutOfMonthDates","hideWeekdays","inputFormat","inputPrefix","inputSuffix","inputtable","labelFormat","locale","maxDate","minDate","name","onBlur","onChange","onFocus","onDropdownClose","onDropdownOpen","openPickerOnClear","renderDay","ref","size","style","type","value","weekendDays","yearLabelFormat","rest","themeLocale","useConfig","finalLocale","dateFormat","dropdownOpened","setDropdownOpened","useState","inputRef","useRef","lastValidValue","setLastValidValue","_value","setValue","useControllableState","calendarMonth","setCalendarMonth","focused","setFocused","inputState","setInputState","capitalize","dayjs","closeDropdown","openDropdown","useEffect","handleValueChange","date","handleClear","parseDate","setDateFromInput","handleInputBlur","event","handleKeyDown","handleInputFocus","handleChange","jsx","BasePicker","useMergedRef","Calendar"],"mappings":";;;;;;;;;;AAaA,MAAMA,IAAuB,cAyBvBC,KAAa,CAACC,MAA2B;AAC3C,QAAM;AAAA,IACF,WAAAC;AAAA,IACA,WAAAC,IAAY;AAAA,IACZ,aAAAC;AAAA,IACA,qBAAAC,IAAsB;AAAA,IACtB,eAAAC;AAAA,IACA,cAAAC;AAAA,IACA,UAAAC;AAAA,IACA,cAAAC;AAAA,IACA,aAA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