@axelor/aos-mobile-ui 9.1.12 → 9.2.1

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 (434) hide show
  1. package/lib/components/atoms/BorderBar/BorderBar.d.ts +9 -0
  2. package/lib/components/atoms/BorderBar/BorderBar.js +30 -0
  3. package/lib/components/atoms/BorderBar/BorderBar.js.map +1 -0
  4. package/lib/components/atoms/Card/Card.d.ts +2 -1
  5. package/lib/components/atoms/Card/Card.js +2 -2
  6. package/lib/components/atoms/Card/Card.js.map +1 -1
  7. package/lib/components/atoms/HorizontalRule/HorizontalRule.d.ts +3 -1
  8. package/lib/components/atoms/HorizontalRule/HorizontalRule.js +5 -7
  9. package/lib/components/atoms/HorizontalRule/HorizontalRule.js.map +1 -1
  10. package/lib/components/atoms/HtmlInput/HtmlInput.d.ts +3 -1
  11. package/lib/components/atoms/HtmlInput/HtmlInput.js +13 -8
  12. package/lib/components/atoms/HtmlInput/HtmlInput.js.map +1 -1
  13. package/lib/components/atoms/HtmlViewer/HtmlViewer.d.ts +10 -0
  14. package/lib/components/atoms/HtmlViewer/HtmlViewer.js +93 -0
  15. package/lib/components/atoms/HtmlViewer/HtmlViewer.js.map +1 -0
  16. package/lib/components/atoms/Icon/Icon.d.ts +2 -1
  17. package/lib/components/atoms/Icon/Icon.js +4 -5
  18. package/lib/components/atoms/Icon/Icon.js.map +1 -1
  19. package/lib/components/atoms/Input/Input.d.ts +5 -5
  20. package/lib/components/atoms/Input/Input.js +6 -5
  21. package/lib/components/atoms/Input/Input.js.map +1 -1
  22. package/lib/components/atoms/ProgressCircle/ProgressCircle.js +11 -7
  23. package/lib/components/atoms/ProgressCircle/ProgressCircle.js.map +1 -1
  24. package/lib/components/atoms/RadioButton/RadioButton.js +25 -21
  25. package/lib/components/atoms/RadioButton/RadioButton.js.map +1 -1
  26. package/lib/components/atoms/Screen/Screen.d.ts +1 -2
  27. package/lib/components/atoms/Screen/Screen.js +2 -9
  28. package/lib/components/atoms/Screen/Screen.js.map +1 -1
  29. package/lib/components/atoms/Switch/Switch.d.ts +1 -1
  30. package/lib/components/atoms/Switch/Switch.js +5 -5
  31. package/lib/components/atoms/Switch/Switch.js.map +1 -1
  32. package/lib/components/atoms/Text/Text.d.ts +2 -1
  33. package/lib/components/atoms/Text/Text.js +1 -1
  34. package/lib/components/atoms/Text/Text.js.map +1 -1
  35. package/lib/components/atoms/VerticalRule/VerticalRule.d.ts +8 -0
  36. package/lib/components/atoms/VerticalRule/VerticalRule.js +33 -0
  37. package/lib/components/atoms/VerticalRule/VerticalRule.js.map +1 -0
  38. package/lib/components/atoms/index.d.ts +3 -0
  39. package/lib/components/atoms/index.js +3 -0
  40. package/lib/components/atoms/index.js.map +1 -1
  41. package/lib/components/molecules/Alert/Alert.js +18 -30
  42. package/lib/components/molecules/Alert/Alert.js.map +1 -1
  43. package/lib/components/molecules/Badge/Badge.d.ts +2 -1
  44. package/lib/components/molecules/Badge/Badge.js +15 -12
  45. package/lib/components/molecules/Badge/Badge.js.map +1 -1
  46. package/lib/components/molecules/BottomSheet/BottomSheet.js +1 -1
  47. package/lib/components/molecules/BottomSheet/BottomSheet.js.map +1 -1
  48. package/lib/components/molecules/Breadcrumb/Breadcrumb.js +1 -1
  49. package/lib/components/molecules/Button/Button.d.ts +2 -1
  50. package/lib/components/molecules/Button/Button.js +6 -12
  51. package/lib/components/molecules/Button/Button.js.map +1 -1
  52. package/lib/components/molecules/CalendarLegend/CalendarLegend.d.ts +13 -0
  53. package/lib/components/molecules/CalendarLegend/CalendarLegend.js +89 -0
  54. package/lib/components/molecules/CalendarLegend/CalendarLegend.js.map +1 -0
  55. package/lib/components/molecules/CalendarLegend/index.d.ts +2 -0
  56. package/lib/components/molecules/CalendarLegend/index.js +19 -0
  57. package/lib/components/molecules/CalendarLegend/index.js.map +1 -0
  58. package/lib/components/molecules/CalendarLegend/types.d.ts +6 -0
  59. package/lib/components/molecules/CalendarLegend/types.js +19 -0
  60. package/lib/components/molecules/CalendarLegend/types.js.map +1 -0
  61. package/lib/components/molecules/CalendarMonthGrid/CalendarMonthGrid.d.ts +15 -0
  62. package/lib/components/molecules/CalendarMonthGrid/CalendarMonthGrid.js +49 -0
  63. package/lib/components/molecules/CalendarMonthGrid/CalendarMonthGrid.js.map +1 -0
  64. package/lib/components/molecules/CalendarMonthGrid/CalendarMonthTitle.d.ts +8 -0
  65. package/lib/components/molecules/CalendarMonthGrid/CalendarMonthTitle.js +35 -0
  66. package/lib/components/molecules/CalendarMonthGrid/CalendarMonthTitle.js.map +1 -0
  67. package/lib/components/molecules/CalendarMonthGrid/CalendarWeekDays.d.ts +7 -0
  68. package/lib/components/molecules/CalendarMonthGrid/CalendarWeekDays.js +44 -0
  69. package/lib/components/molecules/CalendarMonthGrid/CalendarWeekDays.js.map +1 -0
  70. package/lib/components/molecules/CalendarMonthGrid/index.d.ts +3 -0
  71. package/lib/components/molecules/CalendarMonthGrid/index.js +21 -0
  72. package/lib/components/molecules/CalendarMonthGrid/index.js.map +1 -0
  73. package/lib/components/molecules/CardIconButton/CardIconButton.js +1 -1
  74. package/lib/components/molecules/Checkbox/Checkbox.d.ts +1 -1
  75. package/lib/components/molecules/Checkbox/Checkbox.js +11 -27
  76. package/lib/components/molecules/Checkbox/Checkbox.js.map +1 -1
  77. package/lib/components/molecules/Chip/Chip.d.ts +1 -1
  78. package/lib/components/molecules/Chip/Chip.js +23 -19
  79. package/lib/components/molecules/Chip/Chip.js.map +1 -1
  80. package/lib/components/molecules/CircleButton/CircleButton.js +1 -1
  81. package/lib/components/molecules/CircleButton/CircleButton.js.map +1 -1
  82. package/lib/components/molecules/ClearableCard/ClearableCard.js +2 -7
  83. package/lib/components/molecules/ClearableCard/ClearableCard.js.map +1 -1
  84. package/lib/components/molecules/DoubleIcon/DoubleIcon.js +1 -1
  85. package/lib/components/molecules/DoubleIcon/DoubleIcon.js.map +1 -1
  86. package/lib/components/molecules/DropdownCard/DropdownCard.d.ts +4 -3
  87. package/lib/components/molecules/DropdownCard/DropdownCard.js +36 -55
  88. package/lib/components/molecules/DropdownCard/DropdownCard.js.map +1 -1
  89. package/lib/components/molecules/DropdownMenu/DropdownMenu.d.ts +4 -2
  90. package/lib/components/molecules/DropdownMenu/DropdownMenu.js +52 -26
  91. package/lib/components/molecules/DropdownMenu/DropdownMenu.js.map +1 -1
  92. package/lib/components/molecules/EditableHtmlInput/EditableHtmlInput.js +2 -3
  93. package/lib/components/molecules/EditableHtmlInput/EditableHtmlInput.js.map +1 -1
  94. package/lib/components/molecules/EditableInput/EditableInput.js +4 -17
  95. package/lib/components/molecules/EditableInput/EditableInput.js.map +1 -1
  96. package/lib/components/molecules/FormHtmlInput/FormHtmlInput.d.ts +2 -2
  97. package/lib/components/molecules/FormHtmlInput/FormHtmlInput.js +13 -23
  98. package/lib/components/molecules/FormHtmlInput/FormHtmlInput.js.map +1 -1
  99. package/lib/components/molecules/FormIncrementInput/FormIncrementInput.js +6 -17
  100. package/lib/components/molecules/FormIncrementInput/FormIncrementInput.js.map +1 -1
  101. package/lib/components/molecules/FormInput/FormInput.d.ts +1 -1
  102. package/lib/components/molecules/FormInput/FormInput.js +2 -9
  103. package/lib/components/molecules/FormInput/FormInput.js.map +1 -1
  104. package/lib/components/molecules/FormSlider/FormSlider.js +3 -13
  105. package/lib/components/molecules/FormSlider/FormSlider.js.map +1 -1
  106. package/lib/components/molecules/GroupedCard/GroupedCard.d.ts +13 -0
  107. package/lib/components/molecules/GroupedCard/GroupedCard.js +60 -0
  108. package/lib/components/molecules/GroupedCard/GroupedCard.js.map +1 -0
  109. package/lib/components/molecules/HorizontalRuleText/HorizontalRuleText.js +5 -6
  110. package/lib/components/molecules/HorizontalRuleText/HorizontalRuleText.js.map +1 -1
  111. package/lib/components/molecules/IconInput/IconInput.d.ts +4 -4
  112. package/lib/components/molecules/IconInput/IconInput.js +15 -23
  113. package/lib/components/molecules/IconInput/IconInput.js.map +1 -1
  114. package/lib/components/molecules/IconTile/IconTile.d.ts +19 -0
  115. package/lib/components/molecules/IconTile/IconTile.js +43 -0
  116. package/lib/components/molecules/IconTile/IconTile.js.map +1 -0
  117. package/lib/components/molecules/Increment/Increment.d.ts +1 -1
  118. package/lib/components/molecules/Increment/Increment.js +3 -5
  119. package/lib/components/molecules/Increment/Increment.js.map +1 -1
  120. package/lib/components/molecules/Increment/IncrementButton.js +7 -14
  121. package/lib/components/molecules/Increment/IncrementButton.js.map +1 -1
  122. package/lib/components/molecules/Label/Label.d.ts +1 -1
  123. package/lib/components/molecules/Label/Label.js +11 -15
  124. package/lib/components/molecules/Label/Label.js.map +1 -1
  125. package/lib/components/molecules/LabelText/LabelText.js +6 -4
  126. package/lib/components/molecules/LabelText/LabelText.js.map +1 -1
  127. package/lib/components/molecules/MovementIndicationCard/MovementIndicationCard.d.ts +6 -7
  128. package/lib/components/molecules/MovementIndicationCard/MovementIndicationCard.js +91 -33
  129. package/lib/components/molecules/MovementIndicationCard/MovementIndicationCard.js.map +1 -1
  130. package/lib/components/molecules/MultiValuePickerButton/MultiValuePickerButton.js +21 -33
  131. package/lib/components/molecules/MultiValuePickerButton/MultiValuePickerButton.js.map +1 -1
  132. package/lib/components/molecules/NotesCard/NotesCard.d.ts +2 -1
  133. package/lib/components/molecules/NotesCard/NotesCard.js +11 -15
  134. package/lib/components/molecules/NotesCard/NotesCard.js.map +1 -1
  135. package/lib/components/molecules/NumberBubble/NumberBubble.js +2 -2
  136. package/lib/components/molecules/NumberBubble/NumberBubble.js.map +1 -1
  137. package/lib/components/molecules/NumberChevronInput/NumberChevronInput.d.ts +5 -3
  138. package/lib/components/molecules/NumberChevronInput/NumberChevronInput.js +35 -28
  139. package/lib/components/molecules/NumberChevronInput/NumberChevronInput.js.map +1 -1
  140. package/lib/components/molecules/PanelTabs/PanelTabs.js +1 -1
  141. package/lib/components/molecules/PeriodNavigation/PeriodNavigation.d.ts +14 -0
  142. package/lib/components/molecules/PeriodNavigation/PeriodNavigation.js +45 -0
  143. package/lib/components/molecules/PeriodNavigation/PeriodNavigation.js.map +1 -0
  144. package/lib/components/molecules/RadioSelect/RadioSelect.js +8 -8
  145. package/lib/components/molecules/RadioSelect/RadioSelect.js.map +1 -1
  146. package/lib/components/molecules/RightIconButton/RightIconButton.d.ts +4 -1
  147. package/lib/components/molecules/RightIconButton/RightIconButton.js +8 -7
  148. package/lib/components/molecules/RightIconButton/RightIconButton.js.map +1 -1
  149. package/lib/components/molecules/SelectionContainer/SelectionContainer.d.ts +2 -1
  150. package/lib/components/molecules/SelectionContainer/SelectionContainer.js +46 -58
  151. package/lib/components/molecules/SelectionContainer/SelectionContainer.js.map +1 -1
  152. package/lib/components/molecules/StarScore/StarScore.d.ts +1 -1
  153. package/lib/components/molecules/StarScore/StarScore.js +7 -10
  154. package/lib/components/molecules/StarScore/StarScore.js.map +1 -1
  155. package/lib/components/molecules/Stepper/StepList.d.ts +2 -1
  156. package/lib/components/molecules/Stepper/StepList.js +14 -12
  157. package/lib/components/molecules/Stepper/StepList.js.map +1 -1
  158. package/lib/components/molecules/Stepper/Stepper.d.ts +1 -2
  159. package/lib/components/molecules/Stepper/Stepper.js +17 -28
  160. package/lib/components/molecules/Stepper/Stepper.js.map +1 -1
  161. package/lib/components/molecules/SwitchCard/SwitchCard.d.ts +6 -2
  162. package/lib/components/molecules/SwitchCard/SwitchCard.js +6 -13
  163. package/lib/components/molecules/SwitchCard/SwitchCard.js.map +1 -1
  164. package/lib/components/molecules/TextUnit/TextUnit.js +3 -3
  165. package/lib/components/molecules/TextUnit/TextUnit.js.map +1 -1
  166. package/lib/components/molecules/ToggleSwitch/ToggleSwitch.js +34 -34
  167. package/lib/components/molecules/ToggleSwitch/ToggleSwitch.js.map +1 -1
  168. package/lib/components/molecules/ViewAllContainer/ViewAllContainer.d.ts +2 -1
  169. package/lib/components/molecules/ViewAllContainer/ViewAllContainer.js +24 -33
  170. package/lib/components/molecules/ViewAllContainer/ViewAllContainer.js.map +1 -1
  171. package/lib/components/molecules/index.d.ts +5 -0
  172. package/lib/components/molecules/index.js +5 -0
  173. package/lib/components/molecules/index.js.map +1 -1
  174. package/lib/components/organisms/ActionCard/ActionCard.js +4 -5
  175. package/lib/components/organisms/ActionCard/ActionCard.js.map +1 -1
  176. package/lib/components/organisms/ActionSheet/ActionSheet.d.ts +2 -1
  177. package/lib/components/organisms/ActionSheet/ActionSheet.js +18 -8
  178. package/lib/components/organisms/ActionSheet/ActionSheet.js.map +1 -1
  179. package/lib/components/organisms/AgendaView/AgendaDayCell.d.ts +13 -0
  180. package/lib/components/organisms/AgendaView/AgendaDayCell.js +71 -0
  181. package/lib/components/organisms/AgendaView/AgendaDayCell.js.map +1 -0
  182. package/lib/components/organisms/AgendaView/AgendaDayRow.d.ts +14 -0
  183. package/lib/components/organisms/AgendaView/AgendaDayRow.js +65 -0
  184. package/lib/components/organisms/AgendaView/AgendaDayRow.js.map +1 -0
  185. package/lib/components/organisms/AgendaView/AgendaHeader.d.ts +12 -0
  186. package/lib/components/organisms/AgendaView/AgendaHeader.js +44 -0
  187. package/lib/components/organisms/AgendaView/AgendaHeader.js.map +1 -0
  188. package/lib/components/organisms/AgendaView/AgendaItemRow.d.ts +8 -0
  189. package/lib/components/organisms/AgendaView/AgendaItemRow.js +58 -0
  190. package/lib/components/organisms/AgendaView/AgendaItemRow.js.map +1 -0
  191. package/lib/components/organisms/AgendaView/AgendaMonth.d.ts +16 -0
  192. package/lib/components/organisms/AgendaView/AgendaMonth.js +26 -0
  193. package/lib/components/organisms/AgendaView/AgendaMonth.js.map +1 -0
  194. package/lib/components/organisms/AgendaView/AgendaMonthSeparator.d.ts +7 -0
  195. package/lib/components/organisms/AgendaView/AgendaMonthSeparator.js +41 -0
  196. package/lib/components/organisms/AgendaView/AgendaMonthSeparator.js.map +1 -0
  197. package/lib/components/organisms/AgendaView/AgendaView.d.ts +24 -0
  198. package/lib/components/organisms/AgendaView/AgendaView.js +134 -0
  199. package/lib/components/organisms/AgendaView/AgendaView.js.map +1 -0
  200. package/lib/components/organisms/AgendaView/MonthList.d.ts +16 -0
  201. package/lib/components/organisms/AgendaView/MonthList.js +64 -0
  202. package/lib/components/organisms/AgendaView/MonthList.js.map +1 -0
  203. package/lib/components/organisms/AgendaView/MonthPanel.d.ts +17 -0
  204. package/lib/components/organisms/AgendaView/MonthPanel.js +108 -0
  205. package/lib/components/organisms/AgendaView/MonthPanel.js.map +1 -0
  206. package/lib/components/organisms/AgendaView/agenda-view.helpers.d.ts +6 -0
  207. package/lib/components/organisms/AgendaView/agenda-view.helpers.js +53 -0
  208. package/lib/components/organisms/AgendaView/agenda-view.helpers.js.map +1 -0
  209. package/lib/components/organisms/AgendaView/index.d.ts +3 -0
  210. package/lib/components/organisms/AgendaView/index.js +20 -0
  211. package/lib/components/organisms/AgendaView/index.js.map +1 -0
  212. package/lib/components/organisms/AgendaView/types.d.ts +12 -0
  213. package/lib/components/organisms/AgendaView/types.js +19 -0
  214. package/lib/components/organisms/AgendaView/types.js.map +1 -0
  215. package/lib/components/organisms/AgendaView/use-month-panel-drag.d.ts +13 -0
  216. package/lib/components/organisms/AgendaView/use-month-panel-drag.js +77 -0
  217. package/lib/components/organisms/AgendaView/use-month-panel-drag.js.map +1 -0
  218. package/lib/components/organisms/AutoCompleteSearch/AutoCompleteSearch.js +5 -5
  219. package/lib/components/organisms/AutoCompleteSearch/AutoCompleteSearch.js.map +1 -1
  220. package/lib/components/organisms/AutoCompleteSearch/ItemCard.d.ts +2 -2
  221. package/lib/components/organisms/AutoCompleteSearch/ItemCard.js +13 -20
  222. package/lib/components/organisms/AutoCompleteSearch/ItemCard.js.map +1 -1
  223. package/lib/components/organisms/AutoCompleteSearch/SearchDetailsPopUp.js +8 -9
  224. package/lib/components/organisms/AutoCompleteSearch/SearchDetailsPopUp.js.map +1 -1
  225. package/lib/components/organisms/CalendarRangePicker/CalendarDaySheet.d.ts +12 -0
  226. package/lib/components/organisms/CalendarRangePicker/CalendarDaySheet.js +60 -0
  227. package/lib/components/organisms/CalendarRangePicker/CalendarDaySheet.js.map +1 -0
  228. package/lib/components/organisms/CalendarRangePicker/CalendarRangePicker.d.ts +28 -0
  229. package/lib/components/organisms/CalendarRangePicker/CalendarRangePicker.js +140 -0
  230. package/lib/components/organisms/CalendarRangePicker/CalendarRangePicker.js.map +1 -0
  231. package/lib/components/organisms/CalendarRangePicker/DayCell.d.ts +17 -0
  232. package/lib/components/organisms/CalendarRangePicker/DayCell.js +131 -0
  233. package/lib/components/organisms/CalendarRangePicker/DayCell.js.map +1 -0
  234. package/lib/components/organisms/CalendarRangePicker/RangeMonth.d.ts +18 -0
  235. package/lib/components/organisms/CalendarRangePicker/RangeMonth.js +35 -0
  236. package/lib/components/organisms/CalendarRangePicker/RangeMonth.js.map +1 -0
  237. package/lib/components/organisms/CalendarRangePicker/calendar-range.helpers.d.ts +12 -0
  238. package/lib/components/organisms/CalendarRangePicker/calendar-range.helpers.js +68 -0
  239. package/lib/components/organisms/CalendarRangePicker/calendar-range.helpers.js.map +1 -0
  240. package/lib/components/organisms/CalendarRangePicker/index.d.ts +2 -0
  241. package/lib/components/organisms/CalendarRangePicker/index.js +19 -0
  242. package/lib/components/organisms/CalendarRangePicker/index.js.map +1 -0
  243. package/lib/components/organisms/CalendarRangePicker/types.d.ts +11 -0
  244. package/lib/components/organisms/CalendarRangePicker/types.js +19 -0
  245. package/lib/components/organisms/CalendarRangePicker/types.js.map +1 -0
  246. package/lib/components/organisms/ChipSelect/ChipSelect.js +24 -21
  247. package/lib/components/organisms/ChipSelect/ChipSelect.js.map +1 -1
  248. package/lib/components/organisms/DropdownCardSwitch/DropdownCardSwitch.d.ts +2 -0
  249. package/lib/components/organisms/DropdownCardSwitch/DropdownCardSwitch.js +2 -2
  250. package/lib/components/organisms/DropdownCardSwitch/DropdownCardSwitch.js.map +1 -1
  251. package/lib/components/organisms/DropdownMenuItem/DropdownMenuItem.d.ts +3 -2
  252. package/lib/components/organisms/DropdownMenuItem/DropdownMenuItem.js +36 -34
  253. package/lib/components/organisms/DropdownMenuItem/DropdownMenuItem.js.map +1 -1
  254. package/lib/components/organisms/FloatingButton/FloatingActionButton.d.ts +2 -2
  255. package/lib/components/organisms/FloatingButton/FloatingActionButton.js +2 -1
  256. package/lib/components/organisms/FloatingButton/FloatingActionButton.js.map +1 -1
  257. package/lib/components/organisms/GanttView/GanttView.d.ts +36 -0
  258. package/lib/components/organisms/GanttView/GanttView.js +267 -0
  259. package/lib/components/organisms/GanttView/GanttView.js.map +1 -0
  260. package/lib/components/organisms/GanttView/body/GanttBar.d.ts +12 -0
  261. package/lib/components/organisms/GanttView/body/GanttBar.js +52 -0
  262. package/lib/components/organisms/GanttView/body/GanttBar.js.map +1 -0
  263. package/lib/components/organisms/GanttView/body/GanttCellStrip.d.ts +10 -0
  264. package/lib/components/organisms/GanttView/body/GanttCellStrip.js +55 -0
  265. package/lib/components/organisms/GanttView/body/GanttCellStrip.js.map +1 -0
  266. package/lib/components/organisms/GanttView/body/GanttGridLines.d.ts +9 -0
  267. package/lib/components/organisms/GanttView/body/GanttGridLines.js +45 -0
  268. package/lib/components/organisms/GanttView/body/GanttGridLines.js.map +1 -0
  269. package/lib/components/organisms/GanttView/body/GanttGroupHeader.d.ts +9 -0
  270. package/lib/components/organisms/GanttView/body/GanttGroupHeader.js +61 -0
  271. package/lib/components/organisms/GanttView/body/GanttGroupHeader.js.map +1 -0
  272. package/lib/components/organisms/GanttView/body/GanttGroupLane.d.ts +10 -0
  273. package/lib/components/organisms/GanttView/body/GanttGroupLane.js +43 -0
  274. package/lib/components/organisms/GanttView/body/GanttGroupLane.js.map +1 -0
  275. package/lib/components/organisms/GanttView/body/GanttRowLane.d.ts +13 -0
  276. package/lib/components/organisms/GanttView/body/GanttRowLane.js +53 -0
  277. package/lib/components/organisms/GanttView/body/GanttRowLane.js.map +1 -0
  278. package/lib/components/organisms/GanttView/body/GanttRowName.d.ts +9 -0
  279. package/lib/components/organisms/GanttView/body/GanttRowName.js +51 -0
  280. package/lib/components/organisms/GanttView/body/GanttRowName.js.map +1 -0
  281. package/lib/components/organisms/GanttView/body/index.d.ts +6 -0
  282. package/lib/components/organisms/GanttView/body/index.js +24 -0
  283. package/lib/components/organisms/GanttView/body/index.js.map +1 -0
  284. package/lib/components/organisms/GanttView/gantt-view.helpers.d.ts +19 -0
  285. package/lib/components/organisms/GanttView/gantt-view.helpers.js +219 -0
  286. package/lib/components/organisms/GanttView/gantt-view.helpers.js.map +1 -0
  287. package/lib/components/organisms/GanttView/gantt-view.styles.d.ts +124 -0
  288. package/lib/components/organisms/GanttView/gantt-view.styles.js +148 -0
  289. package/lib/components/organisms/GanttView/gantt-view.styles.js.map +1 -0
  290. package/lib/components/organisms/GanttView/header/GanttControls.d.ts +13 -0
  291. package/lib/components/organisms/GanttView/header/GanttControls.js +53 -0
  292. package/lib/components/organisms/GanttView/header/GanttControls.js.map +1 -0
  293. package/lib/components/organisms/GanttView/header/GanttHeader.d.ts +24 -0
  294. package/lib/components/organisms/GanttView/header/GanttHeader.js +75 -0
  295. package/lib/components/organisms/GanttView/header/GanttHeader.js.map +1 -0
  296. package/lib/components/organisms/GanttView/header/index.d.ts +1 -0
  297. package/lib/components/organisms/GanttView/header/index.js +19 -0
  298. package/lib/components/organisms/GanttView/header/index.js.map +1 -0
  299. package/lib/components/organisms/GanttView/index.d.ts +4 -0
  300. package/lib/components/organisms/GanttView/index.js +21 -0
  301. package/lib/components/organisms/GanttView/index.js.map +1 -0
  302. package/lib/components/organisms/GanttView/scale/GanttScaleDayRow.d.ts +10 -0
  303. package/lib/components/organisms/GanttView/scale/GanttScaleDayRow.js +67 -0
  304. package/lib/components/organisms/GanttView/scale/GanttScaleDayRow.js.map +1 -0
  305. package/lib/components/organisms/GanttView/scale/GanttScaleHeader.d.ts +15 -0
  306. package/lib/components/organisms/GanttView/scale/GanttScaleHeader.js +46 -0
  307. package/lib/components/organisms/GanttView/scale/GanttScaleHeader.js.map +1 -0
  308. package/lib/components/organisms/GanttView/scale/GanttScaleSpanRow.d.ts +8 -0
  309. package/lib/components/organisms/GanttView/scale/GanttScaleSpanRow.js +69 -0
  310. package/lib/components/organisms/GanttView/scale/GanttScaleSpanRow.js.map +1 -0
  311. package/lib/components/organisms/GanttView/scale/gantt-scale.helpers.d.ts +6 -0
  312. package/lib/components/organisms/GanttView/scale/gantt-scale.helpers.js +53 -0
  313. package/lib/components/organisms/GanttView/scale/gantt-scale.helpers.js.map +1 -0
  314. package/lib/components/organisms/GanttView/scale/index.d.ts +1 -0
  315. package/lib/components/organisms/GanttView/scale/index.js +19 -0
  316. package/lib/components/organisms/GanttView/scale/index.js.map +1 -0
  317. package/lib/components/organisms/GanttView/types.d.ts +87 -0
  318. package/lib/components/organisms/GanttView/types.js +19 -0
  319. package/lib/components/organisms/GanttView/types.js.map +1 -0
  320. package/lib/components/organisms/GanttView/use-default-zoom.d.ts +2 -0
  321. package/lib/components/organisms/GanttView/use-default-zoom.js +23 -0
  322. package/lib/components/organisms/GanttView/use-default-zoom.js.map +1 -0
  323. package/lib/components/organisms/GroupByScrollList/GroupByScrollList.js +6 -2
  324. package/lib/components/organisms/GroupByScrollList/GroupByScrollList.js.map +1 -1
  325. package/lib/components/organisms/HeaderContainer/HeaderContainer.js +21 -17
  326. package/lib/components/organisms/HeaderContainer/HeaderContainer.js.map +1 -1
  327. package/lib/components/organisms/ImageBubble/ImageBubble.d.ts +1 -1
  328. package/lib/components/organisms/ImageBubble/ImageBubble.js +4 -7
  329. package/lib/components/organisms/ImageBubble/ImageBubble.js.map +1 -1
  330. package/lib/components/organisms/InfoBubble/InfoBubble.js +1 -1
  331. package/lib/components/organisms/InfoBubble/InfoBubble.js.map +1 -1
  332. package/lib/components/organisms/InfoButton/InfoButton.d.ts +1 -1
  333. package/lib/components/organisms/MultiValuePicker/MultiValuePicker.js +6 -10
  334. package/lib/components/organisms/MultiValuePicker/MultiValuePicker.js.map +1 -1
  335. package/lib/components/organisms/Picker/Picker.d.ts +2 -1
  336. package/lib/components/organisms/Picker/Picker.js +25 -29
  337. package/lib/components/organisms/Picker/Picker.js.map +1 -1
  338. package/lib/components/organisms/ProgressBar/ProgressBar.d.ts +1 -1
  339. package/lib/components/organisms/ProgressBar/ProgressBar.js +11 -16
  340. package/lib/components/organisms/ProgressBar/ProgressBar.js.map +1 -1
  341. package/lib/components/organisms/QuantityCard/QuantityCard.d.ts +3 -2
  342. package/lib/components/organisms/QuantityCard/QuantityCard.js +47 -56
  343. package/lib/components/organisms/QuantityCard/QuantityCard.js.map +1 -1
  344. package/lib/components/organisms/ScrollList/DottedButton.js +10 -18
  345. package/lib/components/organisms/ScrollList/DottedButton.js.map +1 -1
  346. package/lib/components/organisms/ScrollList/ScrollList.js +9 -7
  347. package/lib/components/organisms/ScrollList/ScrollList.js.map +1 -1
  348. package/lib/components/organisms/ScrollList/TopActions.js +5 -3
  349. package/lib/components/organisms/ScrollList/TopActions.js.map +1 -1
  350. package/lib/components/organisms/SearchBar/SearchBar.d.ts +3 -3
  351. package/lib/components/organisms/SearchBar/SearchBar.js +15 -32
  352. package/lib/components/organisms/SearchBar/SearchBar.js.map +1 -1
  353. package/lib/components/organisms/SingleSelectScrollList/SingleSelectScrollList.js +1 -1
  354. package/lib/components/organisms/ToggleButton/ToggleButton.js +2 -2
  355. package/lib/components/organisms/ToggleButton/ToggleButton.js.map +1 -1
  356. package/lib/components/organisms/ViewAllEditList/AllLinesAlert.js +14 -16
  357. package/lib/components/organisms/ViewAllEditList/AllLinesAlert.js.map +1 -1
  358. package/lib/components/organisms/ViewAllEditList/LineComponent.js +6 -8
  359. package/lib/components/organisms/ViewAllEditList/LineComponent.js.map +1 -1
  360. package/lib/components/organisms/ViewAllEditList/ViewAllEditList.d.ts +3 -2
  361. package/lib/components/organisms/ViewAllEditList/ViewAllEditList.js +5 -9
  362. package/lib/components/organisms/ViewAllEditList/ViewAllEditList.js.map +1 -1
  363. package/lib/components/organisms/WeekDayPicker/DayGauge.d.ts +18 -0
  364. package/lib/components/organisms/WeekDayPicker/DayGauge.js +112 -0
  365. package/lib/components/organisms/WeekDayPicker/DayGauge.js.map +1 -0
  366. package/lib/components/organisms/WeekDayPicker/WeekDayPicker.d.ts +18 -0
  367. package/lib/components/organisms/WeekDayPicker/WeekDayPicker.js +118 -0
  368. package/lib/components/organisms/WeekDayPicker/WeekDayPicker.js.map +1 -0
  369. package/lib/components/organisms/WeekDayPicker/WeekRow.d.ts +15 -0
  370. package/lib/components/organisms/WeekDayPicker/WeekRow.js +39 -0
  371. package/lib/components/organisms/WeekDayPicker/WeekRow.js.map +1 -0
  372. package/lib/components/organisms/WeekDayPicker/index.d.ts +3 -0
  373. package/lib/components/organisms/WeekDayPicker/index.js +20 -0
  374. package/lib/components/organisms/WeekDayPicker/index.js.map +1 -0
  375. package/lib/components/organisms/WeekDayPicker/types.d.ts +17 -0
  376. package/lib/components/organisms/WeekDayPicker/types.js +19 -0
  377. package/lib/components/organisms/WeekDayPicker/types.js.map +1 -0
  378. package/lib/components/organisms/WeekDayPicker/week-day.helpers.d.ts +9 -0
  379. package/lib/components/organisms/WeekDayPicker/week-day.helpers.js +83 -0
  380. package/lib/components/organisms/WeekDayPicker/week-day.helpers.js.map +1 -0
  381. package/lib/components/organisms/index.d.ts +4 -0
  382. package/lib/components/organisms/index.js +4 -0
  383. package/lib/components/organisms/index.js.map +1 -1
  384. package/lib/components/templates/BottomBar/BottomBar.js +81 -22
  385. package/lib/components/templates/BottomBar/BottomBar.js.map +1 -1
  386. package/lib/components/templates/BottomBar/ItemTitle.d.ts +1 -1
  387. package/lib/components/templates/BottomBar/ItemTitle.js +1 -2
  388. package/lib/components/templates/BottomBar/ItemTitle.js.map +1 -1
  389. package/lib/components/templates/Dashboard/Chart/BarChart.js +3 -3
  390. package/lib/components/templates/Dashboard/Chart/BarChart.js.map +1 -1
  391. package/lib/components/templates/Dashboard/Chart/IndicatorChart/IndicatorItem.js +1 -1
  392. package/lib/components/templates/Dashboard/Chart/IndicatorChart/IndicatorItem.js.map +1 -1
  393. package/lib/components/templates/Dashboard/Chart/IndicatorChart/SimpleIndicator.js +24 -20
  394. package/lib/components/templates/Dashboard/Chart/IndicatorChart/SimpleIndicator.js.map +1 -1
  395. package/lib/components/templates/ObjectCard/ObjectCard.d.ts +3 -2
  396. package/lib/components/templates/ObjectCard/ObjectCard.js +46 -32
  397. package/lib/components/templates/ObjectCard/ObjectCard.js.map +1 -1
  398. package/lib/components/templates/TabsScreen/Tab.js +1 -1
  399. package/lib/components/templates/TabsScreen/Tab.js.map +1 -1
  400. package/lib/hooks/index.d.ts +1 -0
  401. package/lib/hooks/index.js +1 -0
  402. package/lib/hooks/index.js.map +1 -1
  403. package/lib/hooks/use-click-outside.js +2 -2
  404. package/lib/hooks/use-click-outside.js.map +1 -1
  405. package/lib/hooks/use-orientation.d.ts +1 -0
  406. package/lib/hooks/use-orientation.js +23 -0
  407. package/lib/hooks/use-orientation.js.map +1 -0
  408. package/lib/theme/color/ThemeContext.js +1 -1
  409. package/lib/theme/color/ThemeContext.js.map +1 -1
  410. package/lib/theme/color/color.defaults.js +22 -22
  411. package/lib/theme/color/content.helpers.d.ts +2 -1
  412. package/lib/theme/color/content.helpers.js +47 -45
  413. package/lib/theme/color/content.helpers.js.map +1 -1
  414. package/lib/theme/color/themes.js +83 -80
  415. package/lib/theme/color/themes.js.map +1 -1
  416. package/lib/theme/color/types.d.ts +1 -0
  417. package/lib/theme/writing/writingTheme.js +5 -5
  418. package/lib/tools/AnimationUtil.d.ts +18 -3
  419. package/lib/utils/calendar.d.ts +42 -0
  420. package/lib/utils/calendar.js +64 -0
  421. package/lib/utils/calendar.js.map +1 -0
  422. package/lib/utils/commons-styles.d.ts +8 -20
  423. package/lib/utils/commons-styles.js +14 -22
  424. package/lib/utils/commons-styles.js.map +1 -1
  425. package/lib/utils/commons-utlis.d.ts +1 -0
  426. package/lib/utils/commons-utlis.js +7 -0
  427. package/lib/utils/commons-utlis.js.map +1 -1
  428. package/lib/utils/dates.d.ts +30 -0
  429. package/lib/utils/dates.js +142 -0
  430. package/lib/utils/dates.js.map +1 -0
  431. package/lib/utils/index.d.ts +10 -8
  432. package/lib/utils/index.js +4 -2
  433. package/lib/utils/index.js.map +1 -1
  434. package/package.json +16 -16
@@ -0,0 +1,134 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2026 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
19
+ import { FlatList, StyleSheet, View } from 'react-native';
20
+ import { buildMonths, DEFAULT_FIRST_DAY_OF_WEEK, monthIndexOf, sliceByMonth, toDateString, } from '../../../utils';
21
+ import AgendaMonthSeparator from './AgendaMonthSeparator';
22
+ import AgendaDayRow from './AgendaDayRow';
23
+ import AgendaHeader from './AgendaHeader';
24
+ import MonthPanel from './MonthPanel';
25
+ import { buildDayWindow, DEFAULT_DAYS_AHEAD, shiftDate, } from './agenda-view.helpers';
26
+ const EMPTY_DATA = Object.freeze({});
27
+ const EMPTY_ITEMS = Object.freeze([]);
28
+ const VISIBLE_MONTH_DELAY = 300;
29
+ const viewabilityConfig = { itemVisiblePercentThreshold: 10 };
30
+ const AgendaView = ({ itemsByDate = EMPTY_DATA, selectedDate, onDateChange, onVisibleMonthChange, renderItem, getItemHours, daysAhead = DEFAULT_DAYS_AHEAD, monthsBefore = 12, monthsAfter = 12, firstDayOfWeek = DEFAULT_FIRST_DAY_OF_WEEK, showNavigation = true, showTodayButton = true, filters, headerLeft, refreshing = false, onRefresh, translator, style, }) => {
31
+ const referenceDate = useRef(new Date());
32
+ const todayDateString = useMemo(() => toDateString(referenceDate.current), []);
33
+ const months = useMemo(() => buildMonths(referenceDate.current, monthsBefore, monthsAfter, firstDayOfWeek), [firstDayOfWeek, monthsAfter, monthsBefore]);
34
+ const lastDate = useMemo(() => {
35
+ const last = months[months.length - 1];
36
+ return toDateString(new Date(last.year, last.monthIndex + 1, 0));
37
+ }, [months]);
38
+ const itemsByMonth = useMemo(() => sliceByMonth(itemsByDate, months, EMPTY_DATA), [itemsByDate, months]);
39
+ const [isExpanded, setIsExpanded] = useState(false);
40
+ const [extraDays, setExtraDays] = useState(0);
41
+ const [visibleDate, setVisibleDate] = useState(selectedDate);
42
+ const [visibleMonthKey, setVisibleMonthKey] = useState(() => selectedDate.slice(0, 7));
43
+ useEffect(() => {
44
+ setExtraDays(0);
45
+ setVisibleDate(selectedDate);
46
+ setVisibleMonthKey(selectedDate.slice(0, 7));
47
+ }, [selectedDate]);
48
+ const days = useMemo(() => buildDayWindow(selectedDate, daysAhead + extraDays, lastDate), [daysAhead, extraDays, lastDate, selectedDate]);
49
+ const list = useRef(null);
50
+ useEffect(() => {
51
+ list.current?.scrollToOffset({ offset: 0, animated: false });
52
+ }, [selectedDate]);
53
+ const onVisibleMonthChangeRef = useRef(onVisibleMonthChange);
54
+ onVisibleMonthChangeRef.current = onVisibleMonthChange;
55
+ useEffect(() => {
56
+ const timeout = setTimeout(() => onVisibleMonthChangeRef.current?.(visibleMonthKey), VISIBLE_MONTH_DELAY);
57
+ return () => clearTimeout(timeout);
58
+ }, [visibleMonthKey]);
59
+ const focusOn = useCallback((dateString) => {
60
+ setIsExpanded(false);
61
+ setVisibleDate(dateString);
62
+ setVisibleMonthKey(dateString.slice(0, 7));
63
+ }, []);
64
+ const handleDayPress = useCallback((dateString) => {
65
+ focusOn(dateString);
66
+ onDateChange(dateString);
67
+ }, [focusOn, onDateChange]);
68
+ const handleToggle = useCallback(() => {
69
+ if (isExpanded) {
70
+ focusOn(selectedDate);
71
+ return;
72
+ }
73
+ setIsExpanded(true);
74
+ }, [focusOn, isExpanded, selectedDate]);
75
+ const handleVisibleMonthChange = useCallback((monthKey) => setVisibleMonthKey(monthKey), []);
76
+ const handleEndReached = useCallback(() => {
77
+ if (days.length > 0 && days[days.length - 1].dateString >= lastDate)
78
+ return;
79
+ setExtraDays(current => current + DEFAULT_DAYS_AHEAD);
80
+ }, [days, lastDate]);
81
+ const shift = useCallback((dayOffset) => {
82
+ const nextDate = shiftDate(selectedDate, dayOffset);
83
+ if (monthIndexOf(months, nextDate) < 0)
84
+ return;
85
+ onDateChange(nextDate);
86
+ }, [months, onDateChange, selectedDate]);
87
+ const goToPreviousWeek = useCallback(() => shift(-7), [shift]);
88
+ const goToNextWeek = useCallback(() => shift(7), [shift]);
89
+ const goToToday = useCallback(() => {
90
+ focusOn(todayDateString);
91
+ onDateChange(todayDateString);
92
+ }, [focusOn, onDateChange, todayDateString]);
93
+ const renderDay = useCallback(({ item, index }) => (<View>
94
+ {index > 0 && item.isFirstOfMonth && (<AgendaMonthSeparator monthKey={item.monthKey} translator={translator}/>)}
95
+ <AgendaDayRow dateString={item.dateString} dayNumber={item.dayNumber} dayIndex={item.dayIndex} isToday={item.dateString === todayDateString} items={itemsByDate[item.dateString] ?? EMPTY_ITEMS} renderItem={renderItem} getItemHours={getItemHours} translator={translator}/>
96
+ </View>), [getItemHours, itemsByDate, renderItem, todayDateString, translator]);
97
+ const keyExtractor = useCallback((item) => item.dateString, []);
98
+ const emitVisibleDay = useRef(undefined);
99
+ emitVisibleDay.current = (viewableItems) => {
100
+ const dateString = viewableItems[0]?.item?.dateString;
101
+ if (dateString == null || dateString === visibleDate)
102
+ return;
103
+ setVisibleDate(dateString);
104
+ const monthKey = dateString.slice(0, 7);
105
+ if (monthKey !== visibleMonthKey)
106
+ setVisibleMonthKey(monthKey);
107
+ };
108
+ const viewabilityConfigCallbackPairs = useRef([
109
+ {
110
+ viewabilityConfig,
111
+ onViewableItemsChanged: ({ viewableItems, }) => emitVisibleDay.current?.(viewableItems),
112
+ },
113
+ ]);
114
+ return (<View style={[styles.container, style]}>
115
+ <AgendaHeader filters={filters} headerLeft={headerLeft} showNavigation={showNavigation} showTodayButton={showTodayButton} onPreviousWeek={goToPreviousWeek} onNextWeek={goToNextWeek} onToday={goToToday}/>
116
+ <MonthPanel months={months} itemsByMonth={itemsByMonth} selectedDate={visibleDate} visibleMonthKey={visibleMonthKey} todayDateString={todayDateString} firstDayOfWeek={firstDayOfWeek} isExpanded={isExpanded} translator={translator} onToggle={handleToggle} onDayPress={handleDayPress} onVisibleMonthChange={handleVisibleMonthChange}/>
117
+ <FlatList ref={list} style={styles.list} contentContainerStyle={styles.listContent} data={days} renderItem={renderDay} keyExtractor={keyExtractor} initialNumToRender={7} maxToRenderPerBatch={7} windowSize={5} removeClippedSubviews showsVerticalScrollIndicator={false} onEndReached={handleEndReached} onEndReachedThreshold={0.5} refreshing={refreshing} onRefresh={onRefresh} viewabilityConfigCallbackPairs={viewabilityConfigCallbackPairs.current} testID="agendaDayList"/>
118
+ </View>);
119
+ };
120
+ const styles = StyleSheet.create({
121
+ container: {
122
+ flex: 1,
123
+ width: '100%',
124
+ },
125
+ list: {
126
+ flex: 1,
127
+ },
128
+ listContent: {
129
+ paddingHorizontal: 10,
130
+ paddingBottom: 24,
131
+ },
132
+ });
133
+ export default AgendaView;
134
+ //# sourceMappingURL=AgendaView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgendaView.js","sourceRoot":"","sources":["../../../../src/components/organisms/AgendaView/AgendaView.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC/E,OAAO,EAAC,QAAQ,EAAiB,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AACvE,OAAO,EACL,WAAW,EACX,yBAAyB,EACzB,YAAY,EACZ,YAA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wB,CAAC,EAEjD;MAAA,CAAC,QAAQ,CACP,GAAG,CAAC,CAAC,IAAI,CAAC,CACV,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CACnB,qBAAqB,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,CAC1C,IAAI,CAAC,CAAC,IAAI,CAAC,CACX,UAAU,CAAC,CAAC,SAAS,CAAC,CACtB,YAAY,CAAC,CAAC,YAAY,CAAC,CAC3B,kBAAkB,CAAC,CAAC,CAAC,CAAC,CACtB,mBAAmB,CAAC,CAAC,CAAC,CAAC,CACvB,UAAU,CAAC,CAAC,CAAC,CAAC,CACd,qBAAqB,CACrB,4BAA4B,CAAC,CAAC,KAAK,CAAC,CACpC,YAAY,CAAC,CAAC,gBAAgB,CAAC,CAC/B,qBAAqB,CAAC,CAAC,GAAG,CAAC,CAC3B,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,SAAS,CAAC,CAAC,SAAS,CAAC,CACrB,8BAA8B,CAAC,CAAC,8BAA8B,CAAC,OAAO,CAAC,CACvE,MAAM,CAAC,eAAe,EAE1B;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,IAAI,EAAE,CAAC;QACP,KAAK,EAAE,MAAM;KACd;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,CAAC;KACR;IACD,WAAW,EAAE;QACX,iBAAiB,EAAE,EAAE;QACrB,aAAa,EAAE,EAAE;KAClB;CACF,CAAC,CAAC;AAEH,eAAe,UAAU,CAAC"}
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { CalendarMonth } from '../../../utils';
3
+ interface MonthListProps {
4
+ months: CalendarMonth[];
5
+ itemsByMonth: Record<string, Record<string, any[]>>;
6
+ selectedDate?: string;
7
+ visibleMonthKey: string;
8
+ visibleIndex: number;
9
+ todayDateString: string;
10
+ firstDayOfWeek: number;
11
+ translator: (key: string) => string;
12
+ onDayPress: (dateString: string) => void;
13
+ onVisibleMonthChange: (monthKey: string) => void;
14
+ }
15
+ declare const MonthList: ({ months, itemsByMonth, selectedDate, visibleMonthKey, visibleIndex, todayDateString, firstDayOfWeek, translator, onDayPress, onVisibleMonthChange, }: MonthListProps) => React.JSX.Element;
16
+ export default MonthList;
@@ -0,0 +1,64 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2026 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import React, { useCallback, useMemo, useRef } from 'react';
19
+ import { FlatList, StyleSheet, View } from 'react-native';
20
+ import { buildMonthLayout, getMonthHeight, MAX_WEEKS_IN_MONTH, } from '../../../utils';
21
+ import AgendaMonth from './AgendaMonth';
22
+ const viewabilityConfig = { itemVisiblePercentThreshold: 60 };
23
+ const EMPTY_ITEMS = Object.freeze({});
24
+ const MonthList = ({ months, itemsByMonth, selectedDate, visibleMonthKey, visibleIndex, todayDateString, firstDayOfWeek, translator, onDayPress, onVisibleMonthChange, }) => {
25
+ const { heights, offsets } = useMemo(() => buildMonthLayout(months), [months]);
26
+ const renderItem = useCallback(({ item }) => (<AgendaMonth month={item} items={itemsByMonth[item.monthKey] ?? EMPTY_ITEMS} selectedDate={selectedDate} todayDateString={todayDateString} firstDayOfWeek={firstDayOfWeek} translator={translator} onDayPress={onDayPress}/>), [
27
+ firstDayOfWeek,
28
+ itemsByMonth,
29
+ onDayPress,
30
+ selectedDate,
31
+ todayDateString,
32
+ translator,
33
+ ]);
34
+ const getItemLayout = useCallback((_, index) => ({
35
+ length: heights[index],
36
+ offset: offsets[index],
37
+ index,
38
+ }), [heights, offsets]);
39
+ const keyExtractor = useCallback((item) => item.key, []);
40
+ const emitVisibleMonth = useRef(undefined);
41
+ emitVisibleMonth.current = (viewableItems) => {
42
+ const monthKey = viewableItems[0]?.item?.monthKey;
43
+ if (monthKey != null && monthKey !== visibleMonthKey) {
44
+ onVisibleMonthChange(monthKey);
45
+ }
46
+ };
47
+ const viewabilityConfigCallbackPairs = useRef([
48
+ {
49
+ viewabilityConfig,
50
+ onViewableItemsChanged: ({ viewableItems, }) => emitVisibleMonth.current?.(viewableItems),
51
+ },
52
+ ]);
53
+ return (<View style={styles.container}>
54
+ <FlatList data={months} renderItem={renderItem} keyExtractor={keyExtractor} getItemLayout={getItemLayout} initialScrollIndex={visibleIndex} initialNumToRender={1} maxToRenderPerBatch={2} windowSize={3} removeClippedSubviews showsVerticalScrollIndicator={false} viewabilityConfigCallbackPairs={viewabilityConfigCallbackPairs.current} testID="agendaMonthList"/>
55
+ </View>);
56
+ };
57
+ const styles = StyleSheet.create({
58
+ container: {
59
+ height: getMonthHeight(MAX_WEEKS_IN_MONTH),
60
+ overflow: 'hidden',
61
+ },
62
+ });
63
+ export default MonthList;
64
+ //# sourceMappingURL=MonthList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MonthList.js","sourceRoot":"","sources":["../../../../src/components/organisms/AgendaView/MonthList.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAE,OAAO,EAAE,MAAM,EAAC,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAC,QAAQ,EAAiB,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AACvE,OAAO,EACL,gBAAgB,EAEhB,cAAc,EACd,kBAAkB,GACnB,MAAM,gBAAgB,CAAC;AACxB,OA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AAM,CAAC;IAC/B,SAAS,EAAE;QACT,MAAM,EAAE,cAAc,CAAC,kBAAkB,CAAC;QAC1C,QAAQ,EAAE,QAAQ;KACnB;CACF,CAAC,CAAC;AAEH,eAAe,SAAS,CAAC"}
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { CalendarMonth } from '../../../utils';
3
+ interface MonthPanelProps {
4
+ months: CalendarMonth[];
5
+ itemsByMonth: Record<string, Record<string, any[]>>;
6
+ selectedDate?: string;
7
+ visibleMonthKey: string;
8
+ todayDateString: string;
9
+ firstDayOfWeek: number;
10
+ isExpanded: boolean;
11
+ translator: (key: string) => string;
12
+ onToggle: () => void;
13
+ onDayPress: (dateString: string) => void;
14
+ onVisibleMonthChange: (monthKey: string) => void;
15
+ }
16
+ declare const MonthPanel: ({ months, itemsByMonth, selectedDate, visibleMonthKey, todayDateString, firstDayOfWeek, isExpanded, translator, onToggle, onDayPress, onVisibleMonthChange, }: MonthPanelProps) => React.JSX.Element;
17
+ export default MonthPanel;
@@ -0,0 +1,108 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2026 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import React, { useMemo } from 'react';
19
+ import { Animated, Pressable, StyleSheet, View } from 'react-native';
20
+ import { DAY_ROW_HEIGHT, getWeeksHeight, MAX_WEEKS_IN_MONTH, monthIndexOf, } from '../../../utils';
21
+ import { useThemeColor } from '../../../theme';
22
+ import { CalendarMonthTitle, CalendarWeekDays } from '../../molecules';
23
+ import AgendaMonth from './AgendaMonth';
24
+ import MonthList from './MonthList';
25
+ import { weekIndexOfDate } from './agenda-view.helpers';
26
+ import { useMonthPanelDrag } from './use-month-panel-drag';
27
+ const HANDLE_HIT_SLOP = { top: 8, bottom: 8, left: 24, right: 24 };
28
+ const COLLAPSED_WEEKS_HEIGHT = DAY_ROW_HEIGHT;
29
+ const EXPANDED_WEEKS_HEIGHT = getWeeksHeight(MAX_WEEKS_IN_MONTH);
30
+ const EMPTY_ITEMS = Object.freeze({});
31
+ const MonthPanel = ({ months, itemsByMonth, selectedDate, visibleMonthKey, todayDateString, firstDayOfWeek, isExpanded, translator, onToggle, onDayPress, onVisibleMonthChange, }) => {
32
+ const Colors = useThemeColor();
33
+ const { progress, isDragging, panHandlers } = useMonthPanelDrag({
34
+ isExpanded,
35
+ travel: EXPANDED_WEEKS_HEIGHT - COLLAPSED_WEEKS_HEIGHT,
36
+ onToggle,
37
+ });
38
+ const visibleIndex = useMemo(() => Math.max(monthIndexOf(months, `${visibleMonthKey}-01`), 0), [months, visibleMonthKey]);
39
+ const visibleMonth = months[visibleIndex];
40
+ const visibleWeekIndex = useMemo(() => visibleMonth == null || selectedDate == null
41
+ ? 0
42
+ : weekIndexOfDate(visibleMonth, selectedDate), [selectedDate, visibleMonth]);
43
+ const weeksClipStyle = useMemo(() => [
44
+ styles.weeks,
45
+ {
46
+ height: progress.interpolate({
47
+ inputRange: [0, 1],
48
+ outputRange: [COLLAPSED_WEEKS_HEIGHT, EXPANDED_WEEKS_HEIGHT],
49
+ }),
50
+ },
51
+ ], [progress]);
52
+ const weeksSlideStyle = useMemo(() => ({
53
+ transform: [
54
+ {
55
+ translateY: progress.interpolate({
56
+ inputRange: [0, 1],
57
+ outputRange: [-visibleWeekIndex * DAY_ROW_HEIGHT, 0],
58
+ }),
59
+ },
60
+ ],
61
+ }), [progress, visibleWeekIndex]);
62
+ const cardStyle = useMemo(() => ({
63
+ backgroundColor: Colors.backgroundColor,
64
+ shadowColor: Colors.secondaryColor.background,
65
+ }), [Colors.backgroundColor, Colors.secondaryColor.background]);
66
+ const handleStyle = useMemo(() => ({ backgroundColor: Colors.secondaryColor.background }), [Colors.secondaryColor.background]);
67
+ return (<View style={[styles.card, cardStyle]}>
68
+ {isExpanded && !isDragging ? (<MonthList months={months} itemsByMonth={itemsByMonth} selectedDate={selectedDate} visibleMonthKey={visibleMonthKey} visibleIndex={visibleIndex} todayDateString={todayDateString} firstDayOfWeek={firstDayOfWeek} translator={translator} onDayPress={onDayPress} onVisibleMonthChange={onVisibleMonthChange}/>) : (visibleMonth != null && (<>
69
+ <CalendarMonthTitle monthIndex={visibleMonth.monthIndex} year={visibleMonth.year} translator={translator}/>
70
+ <CalendarWeekDays firstDayOfWeek={firstDayOfWeek} translator={translator}/>
71
+ <Animated.View style={weeksClipStyle} testID="agendaMonthWeeksClip">
72
+ <Animated.View style={weeksSlideStyle} testID="agendaMonthWeeks">
73
+ <AgendaMonth month={visibleMonth} items={itemsByMonth[visibleMonth.monthKey] ?? EMPTY_ITEMS} selectedDate={selectedDate} todayDateString={todayDateString} firstDayOfWeek={firstDayOfWeek} showTitle={false} showWeekDays={false} translator={translator} onDayPress={onDayPress}/>
74
+ </Animated.View>
75
+ </Animated.View>
76
+ </>))}
77
+ <View {...panHandlers}>
78
+ <Pressable style={styles.handleContainer} onPress={onToggle} hitSlop={HANDLE_HIT_SLOP} testID="agendaMonthPanelToggle">
79
+ <View style={[styles.handle, handleStyle]}/>
80
+ </Pressable>
81
+ </View>
82
+ </View>);
83
+ };
84
+ const styles = StyleSheet.create({
85
+ card: {
86
+ marginHorizontal: 10,
87
+ marginBottom: 8,
88
+ paddingTop: 4,
89
+ borderRadius: 24,
90
+ elevation: 3,
91
+ shadowOpacity: 0.5,
92
+ shadowOffset: { width: 0, height: 0 },
93
+ },
94
+ weeks: {
95
+ overflow: 'hidden',
96
+ },
97
+ handleContainer: {
98
+ alignItems: 'center',
99
+ paddingVertical: 8,
100
+ },
101
+ handle: {
102
+ width: 44,
103
+ height: 4,
104
+ borderRadius: 2,
105
+ },
106
+ });
107
+ export default MonthPanel;
108
+ //# sourceMappingURL=MonthPanel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MonthPanel.js","sourceRoot":"","sources":["../../../../src/components/organisms/AgendaView/MonthPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AACnE,OAAO,EAEL,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,YAAY,GACb,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAC,kBAAkB,EAAE,gBAAgB,EAAC,MAAM,iBAAiB,CAAC;AACrE,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,EAAC,eAAe,EAAC,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAC,iBAAiB,EAAC,MAAM,wBAAwB,CAAC;AAgBzD,MAAM,eAAe,GAAG,EAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAC,CAAC;AAEjE,MAAM,sBAAsB,GAAG,cAAc,CAAC;AAC9C,MAAM,qBAAqB,GAAG,cAAc,CAAC,kBAAkB,CAAC,CAAC;AAEjE,MAAM,WAAW,GAA0B,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAE7D,MAAM,UAAU,GAAG,CAAC,EAClB,MAAM,EACN,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,eAAe,EACf,cAAc,EACd,UAAU,EACV,UAAU,EACV,QAAQ,EACR,U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,CACR;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,IAAI,EAAE;QACJ,gBAAgB,EAAE,EAAE;QACpB,YAAY,EAAE,CAAC;QACf,UAAU,EAAE,CAAC;QACb,YAAY,EAAE,EAAE;QAChB,SAAS,EAAE,CAAC;QACZ,aAAa,EAAE,GAAG;QAClB,YAAY,EAAE,EAAC,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAC;KACpC;IACD,KAAK,EAAE;QACL,QAAQ,EAAE,QAAQ;KACnB;IACD,eAAe,EAAE;QACf,UAAU,EAAE,QAAQ;QACpB,eAAe,EAAE,CAAC;KACnB;IACD,MAAM,EAAE;QACN,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,CAAC;QACT,YAAY,EAAE,CAAC;KAChB;CACF,CAAC,CAAC;AAEH,eAAe,UAAU,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { CalendarMonth } from '../../../utils';
2
+ import { AgendaDay } from './types';
3
+ export declare const DEFAULT_DAYS_AHEAD = 31;
4
+ export declare const buildDayWindow: (anchorDate: string | undefined, length: number, lastDate?: string) => AgendaDay[];
5
+ export declare const shiftDate: (dateString: string, days: number) => string;
6
+ export declare const weekIndexOfDate: (month: CalendarMonth, dateString: string) => number;
@@ -0,0 +1,53 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2026 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import { fromDateString, isWeekEnd, toDateString, } from '../../../utils';
19
+ export const DEFAULT_DAYS_AHEAD = 31;
20
+ const toAgendaDay = (date) => {
21
+ const dateString = toDateString(date);
22
+ return {
23
+ dateString,
24
+ dayNumber: date.getDate(),
25
+ dayIndex: date.getDay(),
26
+ monthKey: dateString.slice(0, 7),
27
+ isWeekEnd: isWeekEnd(date),
28
+ isFirstOfMonth: date.getDate() === 1,
29
+ };
30
+ };
31
+ export const buildDayWindow = (anchorDate, length, lastDate) => {
32
+ if (anchorDate == null || length <= 0)
33
+ return [];
34
+ const anchor = fromDateString(anchorDate);
35
+ const days = [];
36
+ for (let index = 0; index < length; index++) {
37
+ const date = new Date(anchor.getFullYear(), anchor.getMonth(), anchor.getDate() + index);
38
+ const day = toAgendaDay(date);
39
+ if (lastDate != null && day.dateString > lastDate)
40
+ break;
41
+ days.push(day);
42
+ }
43
+ return days;
44
+ };
45
+ export const shiftDate = (dateString, days) => {
46
+ const date = fromDateString(dateString);
47
+ return toDateString(new Date(date.getFullYear(), date.getMonth(), date.getDate() + days));
48
+ };
49
+ export const weekIndexOfDate = (month, dateString) => {
50
+ const index = month.weeks.findIndex(week => week.some(day => !day.isOutOfMonth && day.dateString === dateString));
51
+ return index < 0 ? 0 : index;
52
+ };
53
+ //# sourceMappingURL=agenda-view.helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agenda-view.helpers.js","sourceRoot":"","sources":["../../../../src/components/organisms/AgendaView/agenda-view.helpers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAEL,cAAc,EACd,SAAS,EACT,YAAY,GACb,MAAM,gBAAgB,CAAC;AAGxB,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAErC,MAAM,WAAW,GAAG,CAAC,IAAU,EAAa,EAAE;IAC5C,MAAM,UAAU,GAAG,YAAY,CAAC,IAAI,CAAC,CAA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EAAE,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,CACrE,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,KAAoB,EACpB,UAAkB,EACV,EAAE;IACV,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CACzC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,YAAY,IAAI,GAAG,CAAC,UAAU,KAAK,UAAU,CAAC,CACrE,CAAC;IAEF,OAAO,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;AAC/B,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { DEFAULT_DAYS_AHEAD } from './agenda-view.helpers';
2
+ export { AgendaDay, ItemHours } from './types';
3
+ export { default as AgendaView } from './AgendaView';
@@ -0,0 +1,20 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2026 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ export { DEFAULT_DAYS_AHEAD } from './agenda-view.helpers';
19
+ export { default as AgendaView } from './AgendaView';
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/organisms/AgendaView/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,kBAAkB,EAAC,MAAM,uBAAuB,CAAC;AAEzD,OAAO,EAAC,OAAO,IAAI,UAAU,EAAC,MAAM,cAAc,CAAC"}
@@ -0,0 +1,12 @@
1
+ export interface AgendaDay {
2
+ dateString: string;
3
+ dayNumber: number;
4
+ dayIndex: number;
5
+ monthKey: string;
6
+ isWeekEnd: boolean;
7
+ isFirstOfMonth: boolean;
8
+ }
9
+ export interface ItemHours {
10
+ startHour?: string;
11
+ endHour?: string;
12
+ }
@@ -0,0 +1,19 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2026 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ export {};
19
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/components/organisms/AgendaView/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG"}
@@ -0,0 +1,13 @@
1
+ import { Animated, PanResponderInstance } from 'react-native';
2
+ interface MonthPanelDragProps {
3
+ isExpanded: boolean;
4
+ travel: number;
5
+ onToggle: () => void;
6
+ }
7
+ interface MonthPanelDrag {
8
+ progress: Animated.Value;
9
+ isDragging: boolean;
10
+ panHandlers: PanResponderInstance['panHandlers'];
11
+ }
12
+ export declare const useMonthPanelDrag: ({ isExpanded, travel, onToggle, }: MonthPanelDragProps) => MonthPanelDrag;
13
+ export {};
@@ -0,0 +1,77 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2026 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import { useEffect, useRef, useState } from 'react';
19
+ import { Animated, PanResponder } from 'react-native';
20
+ const ANIMATION_DURATION = 250;
21
+ const DRAG_VELOCITY = 0.5;
22
+ const TAP_SLOP = 5;
23
+ export const useMonthPanelDrag = ({ isExpanded, travel, onToggle, }) => {
24
+ const progress = useRef(new Animated.Value(isExpanded ? 1 : 0)).current;
25
+ const [isDragging, setIsDragging] = useState(false);
26
+ const expandedRef = useRef(isExpanded);
27
+ expandedRef.current = isExpanded;
28
+ const travelRef = useRef(travel);
29
+ travelRef.current = travel;
30
+ const onToggleRef = useRef(onToggle);
31
+ onToggleRef.current = onToggle;
32
+ useEffect(() => {
33
+ Animated.timing(progress, {
34
+ toValue: isExpanded ? 1 : 0,
35
+ duration: ANIMATION_DURATION,
36
+ useNativeDriver: false,
37
+ }).start();
38
+ }, [isExpanded, progress]);
39
+ const settle = useRef((toValue) => {
40
+ Animated.timing(progress, {
41
+ toValue,
42
+ duration: ANIMATION_DURATION,
43
+ useNativeDriver: false,
44
+ }).start();
45
+ }).current;
46
+ const progressFrom = useRef((offset) => Math.min(1, Math.max(0, (expandedRef.current ? 1 : 0) + offset / travelRef.current))).current;
47
+ const panResponder = useRef(PanResponder.create({
48
+ onStartShouldSetPanResponder: () => false,
49
+ onStartShouldSetPanResponderCapture: () => false,
50
+ onMoveShouldSetPanResponder: (_, gestureState) => Math.abs(gestureState.dy) > TAP_SLOP,
51
+ onMoveShouldSetPanResponderCapture: (_, gestureState) => Math.abs(gestureState.dy) > TAP_SLOP,
52
+ onPanResponderTerminationRequest: () => false,
53
+ onPanResponderGrant: () => setIsDragging(true),
54
+ onPanResponderMove: (_, gestureState) => progress.setValue(progressFrom(gestureState.dy)),
55
+ onPanResponderRelease: (_, gestureState) => {
56
+ setIsDragging(false);
57
+ const wasExpanded = expandedRef.current;
58
+ const moved = progressFrom(gestureState.dy);
59
+ const shouldExpand = gestureState.vy > DRAG_VELOCITY
60
+ ? true
61
+ : gestureState.vy < -DRAG_VELOCITY
62
+ ? false
63
+ : moved >= 0.5;
64
+ if (shouldExpand === wasExpanded) {
65
+ settle(wasExpanded ? 1 : 0);
66
+ return;
67
+ }
68
+ onToggleRef.current();
69
+ },
70
+ onPanResponderTerminate: () => {
71
+ setIsDragging(false);
72
+ settle(expandedRef.current ? 1 : 0);
73
+ },
74
+ })).current;
75
+ return { progress, isDragging, panHandlers: panResponder.panHandlers };
76
+ };
77
+ //# sourceMappingURL=use-month-panel-drag.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-month-panel-drag.js","sourceRoot":"","sources":["../../../../src/components/organisms/AgendaView/use-month-panel-drag.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAClD,OAAO,EAAC,QAAQ,EAAE,YAAY,EAAuB,MAAM,cAAc,CAAC;AAE1E,MAAM,kBAAkB,GAAG,GAAG,CAAC;AAC/B,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,QAAQ,GAAG,CAAC,CAAC;AAcnB,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAChC,UAAU,EACV,MAAM,EACN,QAAQ,GACY,EAAkB,EAAE;IACxC,MAAM,QAAQ,G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