@erpsquad/common 1.8.46 → 1.8.48

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 (648) hide show
  1. package/dist/_virtual/index/index.esm10.js +3 -3
  2. package/dist/_virtual/index/index.esm11.js +3 -3
  3. package/dist/_virtual/index/index.esm2.js +2 -4
  4. package/dist/_virtual/index/index.esm2.js.map +1 -1
  5. package/dist/_virtual/index/index.esm3.js +4 -2
  6. package/dist/_virtual/index/index.esm3.js.map +1 -1
  7. package/dist/_virtual/index/index.esm4.js +1 -1
  8. package/dist/_virtual/index/index.esm5.js +3 -3
  9. package/dist/_virtual/index/index.esm6.js +3 -3
  10. package/dist/_virtual/index/index.esm7.js +3 -3
  11. package/dist/_virtual/index/index.esm8.js +3 -3
  12. package/dist/_virtual/index/index.esm9.js +3 -3
  13. package/dist/_virtual/index/index10.js +1 -1
  14. package/dist/_virtual/index/index11.js +1 -1
  15. package/dist/_virtual/index/index2.js +1 -1
  16. package/dist/_virtual/index/index3.js +1 -1
  17. package/dist/_virtual/index/index4.js +1 -1
  18. package/dist/_virtual/index/index5.js +1 -1
  19. package/dist/_virtual/index/index6.js +1 -1
  20. package/dist/_virtual/index/index7.js +1 -1
  21. package/dist/_virtual/index/index8.js +1 -1
  22. package/dist/_virtual/index/index9.js +1 -1
  23. package/dist/assets/index.d.ts +0 -1
  24. package/dist/components/activityLog/activity-log/index.esm.js +104 -0
  25. package/dist/components/activityLog/activity-log/index.esm.js.map +1 -0
  26. package/dist/components/activityLog/activity-log/index.js +14 -0
  27. package/dist/components/activityLog/activity-log/index.js.map +1 -0
  28. package/dist/components/charts/barChart/barChart/index.esm.js +148 -0
  29. package/dist/components/charts/barChart/barChart/index.esm.js.map +1 -0
  30. package/dist/components/charts/barChart/barChart/index.js +2 -0
  31. package/dist/components/charts/barChart/barChart/index.js.map +1 -0
  32. package/dist/components/charts/donut-chart/donut-chart/index.esm.js.map +1 -1
  33. package/dist/components/charts/donut-chart/donut-chart/index.js.map +1 -1
  34. package/dist/components/charts/donut-chart/donut-chart.d.ts +1 -2
  35. package/dist/components/charts/donutChart/DonutChart/index.esm.js +97 -0
  36. package/dist/components/charts/donutChart/DonutChart/index.esm.js.map +1 -0
  37. package/dist/components/charts/donutChart/DonutChart/index.js +5 -0
  38. package/dist/components/charts/donutChart/DonutChart/index.js.map +1 -0
  39. package/dist/components/charts/index.d.ts +11 -0
  40. package/dist/components/charts/line-chart/area-lineChart/index.esm.js +55 -0
  41. package/dist/components/charts/line-chart/area-lineChart/index.esm.js.map +1 -0
  42. package/dist/components/charts/line-chart/area-lineChart/index.js +2 -0
  43. package/dist/components/charts/line-chart/area-lineChart/index.js.map +1 -0
  44. package/dist/components/charts/line-chart/line-chart/index.esm.js +108 -0
  45. package/dist/components/charts/line-chart/line-chart/index.esm.js.map +1 -0
  46. package/dist/components/charts/line-chart/line-chart/index.js +2 -0
  47. package/dist/components/charts/line-chart/line-chart/index.js.map +1 -0
  48. package/dist/components/confirm-modal/confirm-modal/index.esm.js.map +1 -1
  49. package/dist/components/confirm-modal/confirm-modal/index.js.map +1 -1
  50. package/dist/components/confirm-modal/confirm-modal.d.ts +1 -2
  51. package/dist/components/confirm-modal/index.d.ts +1 -0
  52. package/dist/components/editor/custom-editor/index.esm.js +96 -67
  53. package/dist/components/editor/custom-editor/index.esm.js.map +1 -1
  54. package/dist/components/editor/custom-editor/index.js +3 -3
  55. package/dist/components/editor/custom-editor/index.js.map +1 -1
  56. package/dist/components/editor/custom-editor.d.ts +12 -8
  57. package/dist/components/footer/footer/index.esm.js +1 -1
  58. package/dist/components/footer/footer/index.js +2 -2
  59. package/dist/components/footer/footer/index.js.map +1 -1
  60. package/dist/components/form-control/form-parser/form-parser/index.esm.js +1 -1
  61. package/dist/components/form-control/form-parser/form-parser/index.js +4 -4
  62. package/dist/components/form-control/form-parser/form-parser/index.js.map +1 -1
  63. package/dist/components/grid/grid-card/grid-card/index.esm.js +4 -2
  64. package/dist/components/grid/grid-card/grid-card/index.esm.js.map +1 -1
  65. package/dist/components/grid/grid-card/grid-card/index.js +10 -11
  66. package/dist/components/grid/grid-card/grid-card/index.js.map +1 -1
  67. package/dist/components/grid/grid-card/grid-card.d.ts +10 -1
  68. package/dist/components/index.d.ts +294 -98
  69. package/dist/components/index.esm.js +582 -193
  70. package/dist/components/index.esm.js.map +1 -1
  71. package/dist/components/index.js +1 -1
  72. package/dist/components/inventory-reports-title-bar/component/reportFilter.d.ts +3 -2
  73. package/dist/components/inventory-reports-title-bar/inventory-reports-title-bar/index.esm.js +1 -1
  74. package/dist/components/inventory-reports-title-bar/inventory-reports-title-bar/index.js +1 -1
  75. package/dist/components/inventory-reports-title-bar/inventory-reports-title-bar/index.js.map +1 -1
  76. package/dist/components/inventory-reports-title-bar/redux/reducer/index.esm.js +0 -2
  77. package/dist/components/inventory-reports-title-bar/redux/reducer/index.esm.js.map +1 -1
  78. package/dist/components/inventory-reports-title-bar/redux/reducer/index.js +1 -1
  79. package/dist/components/inventory-reports-title-bar/redux/reducer/index.js.map +1 -1
  80. package/dist/components/list/list/index.esm.js +3 -2
  81. package/dist/components/list/list/index.esm.js.map +1 -1
  82. package/dist/components/list/list/index.js +2 -2
  83. package/dist/components/list/list/index.js.map +1 -1
  84. package/dist/components/list/list.d.ts +2 -1
  85. package/dist/components/listing/listing/index.esm.js +1 -1
  86. package/dist/components/listing/listing/index.js +1 -1
  87. package/dist/components/listing/listing/index.js.map +1 -1
  88. package/dist/components/material-table/aggregation-fns/index/index.esm.js +10 -0
  89. package/dist/components/material-table/aggregation-fns/index/index.esm.js.map +1 -1
  90. package/dist/components/material-table/aggregation-fns/index/index.js +1 -1
  91. package/dist/components/material-table/aggregation-fns/index/index.js.map +1 -1
  92. package/dist/components/material-table/components/number-aggregation/index.esm.js +134 -0
  93. package/dist/components/material-table/components/number-aggregation/index.esm.js.map +1 -0
  94. package/dist/components/material-table/components/number-aggregation/index.js +5 -0
  95. package/dist/components/material-table/components/number-aggregation/index.js.map +1 -0
  96. package/dist/components/module-button/module-button/index.esm.js +3 -2
  97. package/dist/components/module-button/module-button/index.esm.js.map +1 -1
  98. package/dist/components/module-button/module-button/index.js +4 -4
  99. package/dist/components/module-button/module-button/index.js.map +1 -1
  100. package/dist/components/module-button/module-button.d.ts +10 -1
  101. package/dist/components/mulitline/multiline/index.esm.js +3 -2
  102. package/dist/components/mulitline/multiline/index.esm.js.map +1 -1
  103. package/dist/components/mulitline/multiline/index.js +9 -9
  104. package/dist/components/mulitline/multiline/index.js.map +1 -1
  105. package/dist/components/mulitline/multiline.d.ts +2 -2
  106. package/dist/components/page-navigator/page-navigator/index.esm.js +4 -3
  107. package/dist/components/page-navigator/page-navigator/index.esm.js.map +1 -1
  108. package/dist/components/page-navigator/page-navigator/index.js +5 -5
  109. package/dist/components/page-navigator/page-navigator/index.js.map +1 -1
  110. package/dist/components/page-navigator/page-navigator.d.ts +3 -3
  111. package/dist/components/parties-modal/parties-modal/index.esm.js +4 -3
  112. package/dist/components/parties-modal/parties-modal/index.esm.js.map +1 -1
  113. package/dist/components/parties-modal/parties-modal/index.js +13 -13
  114. package/dist/components/parties-modal/parties-modal/index.js.map +1 -1
  115. package/dist/components/parties-modal/parties-modal.d.ts +3 -3
  116. package/dist/components/reports-title-bar/report-buttons/report-buttons/index.esm.js +60 -0
  117. package/dist/components/reports-title-bar/report-buttons/report-buttons/index.esm.js.map +1 -0
  118. package/dist/components/reports-title-bar/report-buttons/report-buttons/index.js +2 -0
  119. package/dist/components/reports-title-bar/report-buttons/report-buttons/index.js.map +1 -0
  120. package/dist/components/reports-title-bar/reports-title-bar/index.esm.js +736 -0
  121. package/dist/components/reports-title-bar/reports-title-bar/index.esm.js.map +1 -0
  122. package/dist/components/reports-title-bar/reports-title-bar/index.js +39 -0
  123. package/dist/components/reports-title-bar/reports-title-bar/index.js.map +1 -0
  124. package/dist/components/rfq-response/item-response-details/index.esm.js +40 -48
  125. package/dist/components/rfq-response/item-response-details/index.esm.js.map +1 -1
  126. package/dist/components/rfq-response/item-response-details/index.js +4 -4
  127. package/dist/components/rfq-response/item-response-details/index.js.map +1 -1
  128. package/dist/components/rfq-response/item-response-details.d.ts +2 -1
  129. package/dist/components/schedule-report/utils/common/index.esm.js +1 -1
  130. package/dist/components/select/controller/chip-or-placeholder/index.esm.js +25 -0
  131. package/dist/components/select/controller/chip-or-placeholder/index.esm.js.map +1 -0
  132. package/dist/components/select/controller/chip-or-placeholder/index.js +2 -0
  133. package/dist/components/select/controller/chip-or-placeholder/index.js.map +1 -0
  134. package/dist/components/select/controller/controller-select/index.esm.js +165 -0
  135. package/dist/components/select/controller/controller-select/index.esm.js.map +1 -0
  136. package/dist/components/select/controller/controller-select/index.js +10 -0
  137. package/dist/components/select/controller/controller-select/index.js.map +1 -0
  138. package/dist/components/tab-bar-ui/tab-bar-ui/index.esm.js +4 -10
  139. package/dist/components/tab-bar-ui/tab-bar-ui/index.esm.js.map +1 -1
  140. package/dist/components/tab-bar-ui/tab-bar-ui/index.js +3 -3
  141. package/dist/components/tab-bar-ui/tab-bar-ui/index.js.map +1 -1
  142. package/dist/components/tab-bar-ui/tab-bar-ui.d.ts +3 -3
  143. package/dist/components/tabs/tabs/index.esm.js +3 -2
  144. package/dist/components/tabs/tabs/index.esm.js.map +1 -1
  145. package/dist/components/tabs/tabs/index.js +3 -3
  146. package/dist/components/tabs/tabs/index.js.map +1 -1
  147. package/dist/components/tabs/tabs.d.ts +2 -2
  148. package/dist/hooks/index.esm.js +4 -4
  149. package/dist/hooks/index.js +1 -1
  150. package/dist/hooks/use-translations/index.esm.js +4 -3
  151. package/dist/hooks/use-translations/index.esm.js.map +1 -1
  152. package/dist/hooks/use-translations/index.js +1 -1
  153. package/dist/hooks/use-translations/index.js.map +1 -1
  154. package/dist/hooks/use-translations.d.ts +2 -1
  155. package/dist/hooks/useCheckSkuAndName/index.esm.js +5 -4
  156. package/dist/hooks/useCheckSkuAndName/index.esm.js.map +1 -1
  157. package/dist/hooks/useCheckSkuAndName/index.js +1 -1
  158. package/dist/hooks/useCheckSkuAndName/index.js.map +1 -1
  159. package/dist/hooks/useCheckSkuAndName.d.ts +4 -2
  160. package/dist/index.esm.js +696 -268
  161. package/dist/index.esm.js.map +1 -1
  162. package/dist/index.js +1 -1
  163. package/dist/layout/fullScreen/fullScreen/index.esm.js +5 -3
  164. package/dist/layout/fullScreen/fullScreen/index.esm.js.map +1 -1
  165. package/dist/layout/fullScreen/fullScreen/index.js +3 -3
  166. package/dist/layout/fullScreen/fullScreen/index.js.map +1 -1
  167. package/dist/layout/fullScreen/fullScreen.d.ts +5 -1
  168. package/dist/layout/index.esm.js +4 -4
  169. package/dist/layout/index.js +1 -1
  170. package/dist/layout/sidebarScreen/sidebarScreen/index.esm.js +72 -50
  171. package/dist/layout/sidebarScreen/sidebarScreen/index.esm.js.map +1 -1
  172. package/dist/layout/sidebarScreen/sidebarScreen/index.js +4 -4
  173. package/dist/layout/sidebarScreen/sidebarScreen/index.js.map +1 -1
  174. package/dist/layout/sidebarScreen/sidebarScreen.d.ts +3 -3
  175. package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.esm.js +1 -1
  176. package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.js +1 -1
  177. package/dist/node_modules/@mui/icons-material/esm/Remove/index.esm.js +9 -0
  178. package/dist/node_modules/@mui/icons-material/esm/Remove/index.esm.js.map +1 -0
  179. package/dist/node_modules/@mui/icons-material/esm/Remove/index.js +2 -0
  180. package/dist/node_modules/@mui/icons-material/esm/Remove/index.js.map +1 -0
  181. package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.esm.js +1 -1
  182. package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.js +1 -1
  183. package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.esm.js +1 -1
  184. package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.js +2 -2
  185. package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.esm.js +95 -0
  186. package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.esm.js.map +1 -0
  187. package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.js +3 -0
  188. package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.js.map +1 -0
  189. package/dist/node_modules/@mui/material/AccordionActions/accordionActionsClasses/index.esm.js +10 -0
  190. package/dist/node_modules/@mui/material/AccordionActions/accordionActionsClasses/index.esm.js.map +1 -0
  191. package/dist/node_modules/@mui/material/AccordionActions/accordionActionsClasses/index.js +2 -0
  192. package/dist/node_modules/@mui/material/AccordionActions/accordionActionsClasses/index.js.map +1 -0
  193. package/dist/node_modules/@mui/material/Avatar/avatarClasses/index.esm.js +3 -2
  194. package/dist/node_modules/@mui/material/Avatar/avatarClasses/index.esm.js.map +1 -1
  195. package/dist/node_modules/@mui/material/Avatar/avatarClasses/index.js +1 -1
  196. package/dist/node_modules/@mui/material/Avatar/avatarClasses/index.js.map +1 -1
  197. package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.esm.js +201 -0
  198. package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.esm.js.map +1 -0
  199. package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.js +3 -0
  200. package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.js.map +1 -0
  201. package/dist/node_modules/@mui/material/AvatarGroup/avatarGroupClasses/index.esm.js +11 -0
  202. package/dist/node_modules/@mui/material/AvatarGroup/avatarGroupClasses/index.esm.js.map +1 -0
  203. package/dist/node_modules/@mui/material/AvatarGroup/avatarGroupClasses/index.js +2 -0
  204. package/dist/node_modules/@mui/material/AvatarGroup/avatarGroupClasses/index.js.map +1 -0
  205. package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.esm.js +125 -0
  206. package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.esm.js.map +1 -0
  207. package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.js +4 -0
  208. package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.js.map +1 -0
  209. package/dist/node_modules/@mui/material/BottomNavigation/bottomNavigationClasses/index.esm.js +10 -0
  210. package/dist/node_modules/@mui/material/BottomNavigation/bottomNavigationClasses/index.esm.js.map +1 -0
  211. package/dist/node_modules/@mui/material/BottomNavigation/bottomNavigationClasses/index.js +2 -0
  212. package/dist/node_modules/@mui/material/BottomNavigation/bottomNavigationClasses/index.js.map +1 -0
  213. package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.esm.js +170 -0
  214. package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.esm.js.map +1 -0
  215. package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.js +3 -0
  216. package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.js.map +1 -0
  217. package/dist/node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses/index.esm.js +11 -0
  218. package/dist/node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses/index.esm.js.map +1 -0
  219. package/dist/node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses/index.js +2 -0
  220. package/dist/node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses/index.js.map +1 -0
  221. package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.esm.js +120 -0
  222. package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.esm.js.map +1 -0
  223. package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.js +3 -0
  224. package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.js.map +1 -0
  225. package/dist/node_modules/@mui/material/CardActionArea/cardActionAreaClasses/index.esm.js +11 -0
  226. package/dist/node_modules/@mui/material/CardActionArea/cardActionAreaClasses/index.esm.js.map +1 -0
  227. package/dist/node_modules/@mui/material/CardActionArea/cardActionAreaClasses/index.js +2 -0
  228. package/dist/node_modules/@mui/material/CardActionArea/cardActionAreaClasses/index.js.map +1 -0
  229. package/dist/node_modules/@mui/material/CardActions/CardActions/index.esm.js +92 -0
  230. package/dist/node_modules/@mui/material/CardActions/CardActions/index.esm.js.map +1 -0
  231. package/dist/node_modules/@mui/material/CardActions/CardActions/index.js +3 -0
  232. package/dist/node_modules/@mui/material/CardActions/CardActions/index.js.map +1 -0
  233. package/dist/node_modules/@mui/material/CardActions/cardActionsClasses/index.esm.js +10 -0
  234. package/dist/node_modules/@mui/material/CardActions/cardActionsClasses/index.esm.js.map +1 -0
  235. package/dist/node_modules/@mui/material/CardActions/cardActionsClasses/index.js +2 -0
  236. package/dist/node_modules/@mui/material/CardActions/cardActionsClasses/index.js.map +1 -0
  237. package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.esm.js +196 -0
  238. package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.esm.js.map +1 -0
  239. package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.js +2 -0
  240. package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.js.map +1 -0
  241. package/dist/node_modules/@mui/material/CardHeader/cardHeaderClasses/index.esm.js +11 -0
  242. package/dist/node_modules/@mui/material/CardHeader/cardHeaderClasses/index.esm.js.map +1 -0
  243. package/dist/node_modules/@mui/material/CardHeader/cardHeaderClasses/index.js +2 -0
  244. package/dist/node_modules/@mui/material/CardHeader/cardHeaderClasses/index.js.map +1 -0
  245. package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.esm.js +76 -0
  246. package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.esm.js.map +1 -0
  247. package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.js +3 -0
  248. package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.js.map +1 -0
  249. package/dist/node_modules/@mui/material/DialogContentText/dialogContentTextClasses/index.esm.js +10 -0
  250. package/dist/node_modules/@mui/material/DialogContentText/dialogContentTextClasses/index.esm.js.map +1 -0
  251. package/dist/node_modules/@mui/material/DialogContentText/dialogContentTextClasses/index.js +2 -0
  252. package/dist/node_modules/@mui/material/DialogContentText/dialogContentTextClasses/index.js.map +1 -0
  253. package/dist/node_modules/@mui/material/Fab/Fab/index.esm.js +231 -0
  254. package/dist/node_modules/@mui/material/Fab/Fab/index.esm.js.map +1 -0
  255. package/dist/node_modules/@mui/material/Fab/Fab/index.js +3 -0
  256. package/dist/node_modules/@mui/material/Fab/Fab/index.js.map +1 -0
  257. package/dist/node_modules/@mui/material/Fab/fabClasses/index.esm.js +11 -0
  258. package/dist/node_modules/@mui/material/Fab/fabClasses/index.esm.js.map +1 -0
  259. package/dist/node_modules/@mui/material/Fab/fabClasses/index.js +2 -0
  260. package/dist/node_modules/@mui/material/Fab/fabClasses/index.js.map +1 -0
  261. package/dist/node_modules/@mui/material/Hidden/Hidden/index.esm.js +135 -0
  262. package/dist/node_modules/@mui/material/Hidden/Hidden/index.esm.js.map +1 -0
  263. package/dist/node_modules/@mui/material/Hidden/Hidden/index.js +2 -0
  264. package/dist/node_modules/@mui/material/Hidden/Hidden/index.js.map +1 -0
  265. package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.esm.js +176 -0
  266. package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.esm.js.map +1 -0
  267. package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.js +3 -0
  268. package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.js.map +1 -0
  269. package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.esm.js +119 -0
  270. package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.esm.js.map +1 -0
  271. package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.js +2 -0
  272. package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.js.map +1 -0
  273. package/dist/node_modules/@mui/material/Hidden/hiddenCssClasses/index.esm.js +10 -0
  274. package/dist/node_modules/@mui/material/Hidden/hiddenCssClasses/index.esm.js.map +1 -0
  275. package/dist/node_modules/@mui/material/Hidden/hiddenCssClasses/index.js +2 -0
  276. package/dist/node_modules/@mui/material/Hidden/hiddenCssClasses/index.js.map +1 -0
  277. package/dist/node_modules/@mui/material/Hidden/withWidth/index.esm.js +92 -0
  278. package/dist/node_modules/@mui/material/Hidden/withWidth/index.esm.js.map +1 -0
  279. package/dist/node_modules/@mui/material/Hidden/withWidth/index.js +2 -0
  280. package/dist/node_modules/@mui/material/Hidden/withWidth/index.js.map +1 -0
  281. package/dist/node_modules/@mui/material/ImageList/ImageList/index.esm.js +156 -0
  282. package/dist/node_modules/@mui/material/ImageList/ImageList/index.esm.js.map +1 -0
  283. package/dist/node_modules/@mui/material/ImageList/ImageList/index.js +3 -0
  284. package/dist/node_modules/@mui/material/ImageList/ImageList/index.js.map +1 -0
  285. package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.esm.js +10 -0
  286. package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.esm.js.map +1 -0
  287. package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.js +2 -0
  288. package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.js.map +1 -0
  289. package/dist/node_modules/@mui/material/ImageList/imageListClasses/index.esm.js +10 -0
  290. package/dist/node_modules/@mui/material/ImageList/imageListClasses/index.esm.js.map +1 -0
  291. package/dist/node_modules/@mui/material/ImageList/imageListClasses/index.js +2 -0
  292. package/dist/node_modules/@mui/material/ImageList/imageListClasses/index.js.map +1 -0
  293. package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.esm.js +173 -0
  294. package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.esm.js.map +1 -0
  295. package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.js +3 -0
  296. package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.js.map +1 -0
  297. package/dist/node_modules/@mui/material/ImageListItem/imageListItemClasses/index.esm.js +11 -0
  298. package/dist/node_modules/@mui/material/ImageListItem/imageListItemClasses/index.esm.js.map +1 -0
  299. package/dist/node_modules/@mui/material/ImageListItem/imageListItemClasses/index.js +2 -0
  300. package/dist/node_modules/@mui/material/ImageListItem/imageListItemClasses/index.js.map +1 -0
  301. package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.esm.js +222 -0
  302. package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.esm.js.map +1 -0
  303. package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.js +3 -0
  304. package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.js.map +1 -0
  305. package/dist/node_modules/@mui/material/ImageListItemBar/imageListItemBarClasses/index.esm.js +10 -0
  306. package/dist/node_modules/@mui/material/ImageListItemBar/imageListItemBarClasses/index.esm.js.map +1 -0
  307. package/dist/node_modules/@mui/material/ImageListItemBar/imageListItemBarClasses/index.js +2 -0
  308. package/dist/node_modules/@mui/material/ImageListItemBar/imageListItemBarClasses/index.js.map +1 -0
  309. package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.esm.js +216 -0
  310. package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.esm.js.map +1 -0
  311. package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.js +3 -0
  312. package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.js.map +1 -0
  313. package/dist/node_modules/@mui/material/MobileStepper/mobileStepperClasses/index.esm.js +10 -0
  314. package/dist/node_modules/@mui/material/MobileStepper/mobileStepperClasses/index.esm.js.map +1 -0
  315. package/dist/node_modules/@mui/material/MobileStepper/mobileStepperClasses/index.js +2 -0
  316. package/dist/node_modules/@mui/material/MobileStepper/mobileStepperClasses/index.js.map +1 -0
  317. package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.esm.js +126 -0
  318. package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.esm.js.map +1 -0
  319. package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.js +3 -0
  320. package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.js.map +1 -0
  321. package/dist/node_modules/@mui/material/NativeSelect/nativeSelectClasses/index.esm.js +1 -1
  322. package/dist/node_modules/@mui/material/NativeSelect/nativeSelectClasses/index.js +1 -1
  323. package/dist/node_modules/@mui/material/NativeSelect/nativeSelectClasses/index.js.map +1 -1
  324. package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.esm.js +55 -0
  325. package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.esm.js.map +1 -0
  326. package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.js +2 -0
  327. package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.js.map +1 -0
  328. package/dist/node_modules/@mui/material/OutlinedInput/outlinedInputClasses/index.esm.js +1 -1
  329. package/dist/node_modules/@mui/material/OutlinedInput/outlinedInputClasses/index.js +1 -1
  330. package/dist/node_modules/@mui/material/Popover/Popover/index.esm.js +1 -1
  331. package/dist/node_modules/@mui/material/Popover/Popover/index.js +1 -1
  332. package/dist/node_modules/@mui/material/Rating/Rating/index.esm.js +638 -0
  333. package/dist/node_modules/@mui/material/Rating/Rating/index.esm.js.map +1 -0
  334. package/dist/node_modules/@mui/material/Rating/Rating/index.js +7 -0
  335. package/dist/node_modules/@mui/material/Rating/Rating/index.js.map +1 -0
  336. package/dist/node_modules/@mui/material/Rating/ratingClasses/index.esm.js +11 -0
  337. package/dist/node_modules/@mui/material/Rating/ratingClasses/index.esm.js.map +1 -0
  338. package/dist/node_modules/@mui/material/Rating/ratingClasses/index.js +2 -0
  339. package/dist/node_modules/@mui/material/Rating/ratingClasses/index.js.map +1 -0
  340. package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.esm.js +105 -0
  341. package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.esm.js.map +1 -0
  342. package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.js +3 -0
  343. package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.js.map +1 -0
  344. package/dist/node_modules/@mui/material/ScopedCssBaseline/scopedCssBaselineClasses/index.esm.js +10 -0
  345. package/dist/node_modules/@mui/material/ScopedCssBaseline/scopedCssBaselineClasses/index.esm.js.map +1 -0
  346. package/dist/node_modules/@mui/material/ScopedCssBaseline/scopedCssBaselineClasses/index.js +2 -0
  347. package/dist/node_modules/@mui/material/ScopedCssBaseline/scopedCssBaselineClasses/index.js.map +1 -0
  348. package/dist/node_modules/@mui/material/Snackbar/Snackbar/index.esm.js +1 -1
  349. package/dist/node_modules/@mui/material/Snackbar/Snackbar/index.js +1 -1
  350. package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.esm.js +453 -0
  351. package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.esm.js.map +1 -0
  352. package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.js +4 -0
  353. package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.js.map +1 -0
  354. package/dist/node_modules/@mui/material/SpeedDial/speedDialClasses/index.esm.js +11 -0
  355. package/dist/node_modules/@mui/material/SpeedDial/speedDialClasses/index.esm.js.map +1 -0
  356. package/dist/node_modules/@mui/material/SpeedDial/speedDialClasses/index.js +2 -0
  357. package/dist/node_modules/@mui/material/SpeedDial/speedDialClasses/index.js.map +1 -0
  358. package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.esm.js +245 -0
  359. package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.esm.js.map +1 -0
  360. package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.js +2 -0
  361. package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.js.map +1 -0
  362. package/dist/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses/index.esm.js +11 -0
  363. package/dist/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses/index.esm.js.map +1 -0
  364. package/dist/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses/index.js +2 -0
  365. package/dist/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses/index.js.map +1 -0
  366. package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.esm.js +137 -0
  367. package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.esm.js.map +1 -0
  368. package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.js +4 -0
  369. package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.js.map +1 -0
  370. package/dist/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses/index.esm.js +11 -0
  371. package/dist/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses/index.esm.js.map +1 -0
  372. package/dist/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses/index.js +2 -0
  373. package/dist/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses/index.js.map +1 -0
  374. package/dist/node_modules/@mui/material/Step/Step/index.esm.js +169 -0
  375. package/dist/node_modules/@mui/material/Step/Step/index.esm.js.map +1 -0
  376. package/dist/node_modules/@mui/material/Step/Step/index.js +3 -0
  377. package/dist/node_modules/@mui/material/Step/Step/index.js.map +1 -0
  378. package/dist/node_modules/@mui/material/Step/StepContext/index.esm.js +10 -0
  379. package/dist/node_modules/@mui/material/Step/StepContext/index.esm.js.map +1 -0
  380. package/dist/node_modules/@mui/material/Step/StepContext/index.js +2 -0
  381. package/dist/node_modules/@mui/material/Step/StepContext/index.js.map +1 -0
  382. package/dist/node_modules/@mui/material/Step/stepClasses/index.esm.js +10 -0
  383. package/dist/node_modules/@mui/material/Step/stepClasses/index.esm.js.map +1 -0
  384. package/dist/node_modules/@mui/material/Step/stepClasses/index.js +2 -0
  385. package/dist/node_modules/@mui/material/Step/stepClasses/index.js.map +1 -0
  386. package/dist/node_modules/@mui/material/StepButton/StepButton/index.esm.js +132 -0
  387. package/dist/node_modules/@mui/material/StepButton/StepButton/index.esm.js.map +1 -0
  388. package/dist/node_modules/@mui/material/StepButton/StepButton/index.js +3 -0
  389. package/dist/node_modules/@mui/material/StepButton/StepButton/index.js.map +1 -0
  390. package/dist/node_modules/@mui/material/StepButton/stepButtonClasses/index.esm.js +11 -0
  391. package/dist/node_modules/@mui/material/StepButton/stepButtonClasses/index.esm.js.map +1 -0
  392. package/dist/node_modules/@mui/material/StepButton/stepButtonClasses/index.js +2 -0
  393. package/dist/node_modules/@mui/material/StepButton/stepButtonClasses/index.js.map +1 -0
  394. package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.esm.js +136 -0
  395. package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.esm.js.map +1 -0
  396. package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.js +3 -0
  397. package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.js.map +1 -0
  398. package/dist/node_modules/@mui/material/StepConnector/stepConnectorClasses/index.esm.js +10 -0
  399. package/dist/node_modules/@mui/material/StepConnector/stepConnectorClasses/index.esm.js.map +1 -0
  400. package/dist/node_modules/@mui/material/StepConnector/stepConnectorClasses/index.js +2 -0
  401. package/dist/node_modules/@mui/material/StepConnector/stepConnectorClasses/index.js.map +1 -0
  402. package/dist/node_modules/@mui/material/StepContent/StepContent/index.esm.js +152 -0
  403. package/dist/node_modules/@mui/material/StepContent/StepContent/index.esm.js.map +1 -0
  404. package/dist/node_modules/@mui/material/StepContent/StepContent/index.js +2 -0
  405. package/dist/node_modules/@mui/material/StepContent/StepContent/index.js.map +1 -0
  406. package/dist/node_modules/@mui/material/StepContent/stepContentClasses/index.esm.js +10 -0
  407. package/dist/node_modules/@mui/material/StepContent/stepContentClasses/index.esm.js.map +1 -0
  408. package/dist/node_modules/@mui/material/StepContent/stepContentClasses/index.js +2 -0
  409. package/dist/node_modules/@mui/material/StepContent/stepContentClasses/index.js.map +1 -0
  410. package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.esm.js +161 -0
  411. package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.esm.js.map +1 -0
  412. package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.js +2 -0
  413. package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.js.map +1 -0
  414. package/dist/node_modules/@mui/material/StepIcon/stepIconClasses/index.esm.js +11 -0
  415. package/dist/node_modules/@mui/material/StepIcon/stepIconClasses/index.esm.js.map +1 -0
  416. package/dist/node_modules/@mui/material/StepIcon/stepIconClasses/index.js +2 -0
  417. package/dist/node_modules/@mui/material/StepIcon/stepIconClasses/index.js.map +1 -0
  418. package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.esm.js +239 -0
  419. package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.esm.js.map +1 -0
  420. package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.js +3 -0
  421. package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.js.map +1 -0
  422. package/dist/node_modules/@mui/material/StepLabel/stepLabelClasses/index.esm.js +11 -0
  423. package/dist/node_modules/@mui/material/StepLabel/stepLabelClasses/index.esm.js.map +1 -0
  424. package/dist/node_modules/@mui/material/StepLabel/stepLabelClasses/index.js +2 -0
  425. package/dist/node_modules/@mui/material/StepLabel/stepLabelClasses/index.js.map +1 -0
  426. package/dist/node_modules/@mui/material/Stepper/Stepper/index.esm.js +155 -0
  427. package/dist/node_modules/@mui/material/Stepper/Stepper/index.esm.js.map +1 -0
  428. package/dist/node_modules/@mui/material/Stepper/Stepper/index.js +3 -0
  429. package/dist/node_modules/@mui/material/Stepper/Stepper/index.js.map +1 -0
  430. package/dist/node_modules/@mui/material/Stepper/StepperContext/index.esm.js +10 -0
  431. package/dist/node_modules/@mui/material/Stepper/StepperContext/index.esm.js.map +1 -0
  432. package/dist/node_modules/@mui/material/Stepper/StepperContext/index.js +2 -0
  433. package/dist/node_modules/@mui/material/Stepper/StepperContext/index.js.map +1 -0
  434. package/dist/node_modules/@mui/material/Stepper/stepperClasses/index.esm.js +10 -0
  435. package/dist/node_modules/@mui/material/Stepper/stepperClasses/index.esm.js.map +1 -0
  436. package/dist/node_modules/@mui/material/Stepper/stepperClasses/index.js +2 -0
  437. package/dist/node_modules/@mui/material/Stepper/stepperClasses/index.js.map +1 -0
  438. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.esm.js +82 -0
  439. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.esm.js.map +1 -0
  440. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.js +3 -0
  441. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.js.map +1 -0
  442. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.esm.js +538 -0
  443. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.esm.js.map +1 -0
  444. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.js +2 -0
  445. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.js.map +1 -0
  446. package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.esm.js +443 -0
  447. package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.esm.js.map +1 -0
  448. package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.js +3 -0
  449. package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.js.map +1 -0
  450. package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.esm.js +179 -0
  451. package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.esm.js.map +1 -0
  452. package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.js +3 -0
  453. package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.js.map +1 -0
  454. package/dist/node_modules/@mui/material/TablePagination/tablePaginationClasses/index.esm.js +11 -0
  455. package/dist/node_modules/@mui/material/TablePagination/tablePaginationClasses/index.esm.js.map +1 -0
  456. package/dist/node_modules/@mui/material/TablePagination/tablePaginationClasses/index.js +2 -0
  457. package/dist/node_modules/@mui/material/TablePagination/tablePaginationClasses/index.js.map +1 -0
  458. package/dist/node_modules/@mui/material/Tabs/Tabs/index.esm.js +1 -1
  459. package/dist/node_modules/@mui/material/Tabs/Tabs/index.js +1 -1
  460. package/dist/node_modules/@mui/material/Zoom/Zoom/index.esm.js +196 -0
  461. package/dist/node_modules/@mui/material/Zoom/Zoom/index.esm.js.map +1 -0
  462. package/dist/node_modules/@mui/material/Zoom/Zoom/index.js +3 -0
  463. package/dist/node_modules/@mui/material/Zoom/Zoom/index.js.map +1 -0
  464. package/dist/node_modules/@mui/material/internal/svg-icons/Add/index.esm.js +9 -0
  465. package/dist/node_modules/@mui/material/internal/svg-icons/Add/index.esm.js.map +1 -0
  466. package/dist/node_modules/@mui/material/internal/svg-icons/Add/index.js +2 -0
  467. package/dist/node_modules/@mui/material/internal/svg-icons/Add/index.js.map +1 -0
  468. package/dist/node_modules/@mui/material/internal/svg-icons/CheckCircle/index.esm.js +9 -0
  469. package/dist/node_modules/@mui/material/internal/svg-icons/CheckCircle/index.esm.js.map +1 -0
  470. package/dist/node_modules/@mui/material/internal/svg-icons/CheckCircle/index.js +2 -0
  471. package/dist/node_modules/@mui/material/internal/svg-icons/CheckCircle/index.js.map +1 -0
  472. package/dist/node_modules/@mui/material/internal/svg-icons/Star/index.esm.js +9 -0
  473. package/dist/node_modules/@mui/material/internal/svg-icons/Star/index.esm.js.map +1 -0
  474. package/dist/node_modules/@mui/material/internal/svg-icons/Star/index.js +2 -0
  475. package/dist/node_modules/@mui/material/internal/svg-icons/Star/index.js.map +1 -0
  476. package/dist/node_modules/@mui/material/internal/svg-icons/StarBorder/index.esm.js +9 -0
  477. package/dist/node_modules/@mui/material/internal/svg-icons/StarBorder/index.esm.js.map +1 -0
  478. package/dist/node_modules/@mui/material/internal/svg-icons/StarBorder/index.js +2 -0
  479. package/dist/node_modules/@mui/material/internal/svg-icons/StarBorder/index.js.map +1 -0
  480. package/dist/node_modules/@mui/material/internal/svg-icons/Warning/index.esm.js +9 -0
  481. package/dist/node_modules/@mui/material/internal/svg-icons/Warning/index.esm.js.map +1 -0
  482. package/dist/node_modules/@mui/material/internal/svg-icons/Warning/index.js +2 -0
  483. package/dist/node_modules/@mui/material/internal/svg-icons/Warning/index.js.map +1 -0
  484. package/dist/node_modules/@mui/material/useScrollTrigger/useScrollTrigger/index.esm.js +51 -0
  485. package/dist/node_modules/@mui/material/useScrollTrigger/useScrollTrigger/index.esm.js.map +1 -0
  486. package/dist/node_modules/@mui/material/useScrollTrigger/useScrollTrigger/index.js +2 -0
  487. package/dist/node_modules/@mui/material/useScrollTrigger/useScrollTrigger/index.js.map +1 -0
  488. package/dist/node_modules/@mui/system/colorManipulator/index.esm.js +2 -2
  489. package/dist/node_modules/@mui/system/colorManipulator/index.js +1 -1
  490. package/dist/node_modules/@mui/system/colorManipulator/index.js.map +1 -1
  491. package/dist/node_modules/@mui/system/createStyled/index.esm.js +6 -6
  492. package/dist/node_modules/@mui/system/createStyled/index.js +1 -1
  493. package/dist/node_modules/@mui/system/createStyled/index.js.map +1 -1
  494. package/dist/node_modules/@mui/system/esm/Stack/createStack/index.esm.js +1 -1
  495. package/dist/node_modules/@mui/system/esm/Stack/createStack/index.js +2 -2
  496. package/dist/node_modules/@mui/system/useThemeWithoutDefault/index.esm.js +1 -1
  497. package/dist/node_modules/@mui/system/useThemeWithoutDefault/index.js +1 -1
  498. package/dist/node_modules/d3-axis/src/axis/index.esm.js +5 -1
  499. package/dist/node_modules/d3-axis/src/axis/index.esm.js.map +1 -1
  500. package/dist/node_modules/d3-axis/src/axis/index.js +1 -1
  501. package/dist/node_modules/d3-axis/src/axis/index.js.map +1 -1
  502. package/dist/redux/hooks/index.esm.js +1 -1
  503. package/dist/src/assets/index.d.ts +0 -1
  504. package/dist/src/components/charts/donut-chart/donut-chart.d.ts +1 -2
  505. package/dist/src/components/charts/index.d.ts +11 -0
  506. package/dist/src/components/confirm-modal/confirm-modal.d.ts +1 -2
  507. package/dist/src/components/confirm-modal/index.d.ts +1 -0
  508. package/dist/src/components/editor/custom-editor.d.ts +12 -8
  509. package/dist/src/components/grid/grid-card/grid-card.d.ts +10 -1
  510. package/dist/src/components/index.d.ts +229 -94
  511. package/dist/src/components/inventory-reports-title-bar/component/reportFilter.d.ts +3 -2
  512. package/dist/src/components/list/list.d.ts +2 -1
  513. package/dist/src/components/module-button/module-button.d.ts +10 -1
  514. package/dist/src/components/mulitline/multiline.d.ts +2 -2
  515. package/dist/src/components/page-navigator/page-navigator.d.ts +3 -3
  516. package/dist/src/components/parties-modal/parties-modal.d.ts +3 -3
  517. package/dist/src/components/rfq-response/item-response-details.d.ts +2 -1
  518. package/dist/src/components/tab-bar-ui/tab-bar-ui.d.ts +3 -3
  519. package/dist/src/components/tabs/tabs.d.ts +2 -2
  520. package/dist/src/hooks/use-translations.d.ts +2 -1
  521. package/dist/src/hooks/useCheckSkuAndName.d.ts +4 -2
  522. package/dist/src/layout/fullScreen/fullScreen.d.ts +5 -1
  523. package/dist/src/layout/sidebarScreen/sidebarScreen.d.ts +3 -3
  524. package/dist/src/views/afterAuth/dashboard/dashboard.d.ts +2 -1
  525. package/dist/src/views/afterAuth/index.d.ts +1 -0
  526. package/dist/src/views/beforeAuth/index.d.ts +0 -1
  527. package/dist/src/views/form-builder/element-edit-forms/column-width.d.ts +5 -3
  528. package/dist/src/views/index.d.ts +1 -0
  529. package/dist/style.css +77 -71
  530. package/dist/utils/common/index.esm.js +1 -1
  531. package/dist/views/afterAuth/dashboard/dashboard/index.esm.js +5 -4
  532. package/dist/views/afterAuth/dashboard/dashboard/index.esm.js.map +1 -1
  533. package/dist/views/afterAuth/dashboard/dashboard/index.js +3 -3
  534. package/dist/views/afterAuth/dashboard/dashboard/index.js.map +1 -1
  535. package/dist/views/afterAuth/dashboard/dashboard.d.ts +2 -1
  536. package/dist/views/afterAuth/dashboard/redux/reducer/index.esm.js +0 -6
  537. package/dist/views/afterAuth/dashboard/redux/reducer/index.esm.js.map +1 -1
  538. package/dist/views/afterAuth/dashboard/redux/reducer/index.js +1 -1
  539. package/dist/views/afterAuth/dashboard/redux/reducer/index.js.map +1 -1
  540. package/dist/views/afterAuth/index.d.ts +1 -0
  541. package/dist/views/afterAuth/page-view/page-view/index.esm.js +101 -0
  542. package/dist/views/afterAuth/page-view/page-view/index.esm.js.map +1 -0
  543. package/dist/views/afterAuth/page-view/page-view/index.js +6 -0
  544. package/dist/views/afterAuth/page-view/page-view/index.js.map +1 -0
  545. package/dist/views/afterAuth/page-view/redux/actionCreator/index.esm.js +13 -0
  546. package/dist/views/afterAuth/page-view/redux/actionCreator/index.esm.js.map +1 -0
  547. package/dist/views/afterAuth/page-view/redux/actionCreator/index.js +2 -0
  548. package/dist/views/afterAuth/page-view/redux/actionCreator/index.js.map +1 -0
  549. package/dist/views/afterAuth/page-view/redux/reducer/index.esm.js +63 -0
  550. package/dist/views/afterAuth/page-view/redux/reducer/index.esm.js.map +1 -0
  551. package/dist/views/afterAuth/page-view/redux/reducer/index.js +2 -0
  552. package/dist/views/afterAuth/page-view/redux/reducer/index.js.map +1 -0
  553. package/dist/views/afterAuth/page-view/redux/state/index.esm.js +31 -0
  554. package/dist/views/afterAuth/page-view/redux/state/index.esm.js.map +1 -0
  555. package/dist/views/afterAuth/page-view/redux/state/index.js +2 -0
  556. package/dist/views/afterAuth/page-view/redux/state/index.js.map +1 -0
  557. package/dist/views/afterAuth/page-view/utils/default-data/index.esm.js +137 -0
  558. package/dist/views/afterAuth/page-view/utils/default-data/index.esm.js.map +1 -0
  559. package/dist/views/afterAuth/page-view/utils/default-data/index.js +2 -0
  560. package/dist/views/afterAuth/page-view/utils/default-data/index.js.map +1 -0
  561. package/dist/views/afterAuth/page-view/utils/local-data/index.esm.js +137 -0
  562. package/dist/views/afterAuth/page-view/utils/local-data/index.esm.js.map +1 -0
  563. package/dist/views/afterAuth/page-view/utils/local-data/index.js +2 -0
  564. package/dist/views/afterAuth/page-view/utils/local-data/index.js.map +1 -0
  565. package/dist/views/beforeAuth/index.d.ts +0 -1
  566. package/dist/views/form-builder/custom-form/index.esm.js +1151 -0
  567. package/dist/views/form-builder/custom-form/index.esm.js.map +1 -0
  568. package/dist/views/form-builder/custom-form/index.js +30 -0
  569. package/dist/views/form-builder/custom-form/index.js.map +1 -0
  570. package/dist/views/form-builder/element-edit-forms/checkbox/index.esm.js +327 -0
  571. package/dist/views/form-builder/element-edit-forms/checkbox/index.esm.js.map +1 -0
  572. package/dist/views/form-builder/element-edit-forms/checkbox/index.js +30 -0
  573. package/dist/views/form-builder/element-edit-forms/checkbox/index.js.map +1 -0
  574. package/dist/views/form-builder/element-edit-forms/column-width/index.esm.js +93 -0
  575. package/dist/views/form-builder/element-edit-forms/column-width/index.esm.js.map +1 -0
  576. package/dist/views/form-builder/element-edit-forms/column-width/index.js +4 -0
  577. package/dist/views/form-builder/element-edit-forms/column-width/index.js.map +1 -0
  578. package/dist/views/form-builder/element-edit-forms/column-width.d.ts +5 -3
  579. package/dist/views/form-builder/element-edit-forms/field-select/index.esm.js +89 -0
  580. package/dist/views/form-builder/element-edit-forms/field-select/index.esm.js.map +1 -0
  581. package/dist/views/form-builder/element-edit-forms/field-select/index.js +3 -0
  582. package/dist/views/form-builder/element-edit-forms/field-select/index.js.map +1 -0
  583. package/dist/views/form-builder/element-edit-forms/section/index.esm.js +222 -0
  584. package/dist/views/form-builder/element-edit-forms/section/index.esm.js.map +1 -0
  585. package/dist/views/form-builder/element-edit-forms/section/index.js +15 -0
  586. package/dist/views/form-builder/element-edit-forms/section/index.js.map +1 -0
  587. package/dist/views/form-builder/element-edit-forms/select/index.esm.js +318 -0
  588. package/dist/views/form-builder/element-edit-forms/select/index.esm.js.map +1 -0
  589. package/dist/views/form-builder/element-edit-forms/select/index.js +25 -0
  590. package/dist/views/form-builder/element-edit-forms/select/index.js.map +1 -0
  591. package/dist/views/form-builder/element-edit-forms/table-form/index.esm.js +111 -0
  592. package/dist/views/form-builder/element-edit-forms/table-form/index.esm.js.map +1 -0
  593. package/dist/views/form-builder/element-edit-forms/table-form/index.js +5 -0
  594. package/dist/views/form-builder/element-edit-forms/table-form/index.js.map +1 -0
  595. package/dist/views/form-builder/element-edit-forms/text/index.esm.js +559 -0
  596. package/dist/views/form-builder/element-edit-forms/text/index.esm.js.map +1 -0
  597. package/dist/views/form-builder/element-edit-forms/text/index.js +31 -0
  598. package/dist/views/form-builder/element-edit-forms/text/index.js.map +1 -0
  599. package/dist/views/form-builder/field_properties/index.esm.js +216 -0
  600. package/dist/views/form-builder/field_properties/index.esm.js.map +1 -0
  601. package/dist/views/form-builder/field_properties/index.js +2 -0
  602. package/dist/views/form-builder/field_properties/index.js.map +1 -0
  603. package/dist/views/form-builder/form-fields/index.esm.js +355 -0
  604. package/dist/views/form-builder/form-fields/index.esm.js.map +1 -0
  605. package/dist/views/form-builder/form-fields/index.js +24 -0
  606. package/dist/views/form-builder/form-fields/index.js.map +1 -0
  607. package/dist/views/form-builder/redux/actionCreator/index.esm.js +1 -1
  608. package/dist/views/form-builder/redux/reducer/index.esm.js +6 -1
  609. package/dist/views/form-builder/redux/reducer/index.esm.js.map +1 -1
  610. package/dist/views/form-builder/redux/reducer/index.js +1 -1
  611. package/dist/views/form-builder/redux/reducer/index.js.map +1 -1
  612. package/dist/views/form-builder/utils/common/index.esm.js +285 -0
  613. package/dist/views/form-builder/utils/common/index.esm.js.map +1 -0
  614. package/dist/views/form-builder/utils/common/index.js +2 -0
  615. package/dist/views/form-builder/utils/common/index.js.map +1 -0
  616. package/dist/views/index.d.ts +1 -0
  617. package/dist/views/index.esm.js +94 -49
  618. package/dist/views/index.esm.js.map +1 -1
  619. package/dist/views/index.js +1 -1
  620. package/package.json +2 -1
  621. package/dist/components/examples/FlexibleReduxExample/index.esm.js +0 -154
  622. package/dist/components/examples/FlexibleReduxExample/index.esm.js.map +0 -1
  623. package/dist/components/examples/FlexibleReduxExample/index.js +0 -19
  624. package/dist/components/examples/FlexibleReduxExample/index.js.map +0 -1
  625. package/dist/components/footer/index.esm.js +0 -71
  626. package/dist/components/footer/index.esm.js.map +0 -1
  627. package/dist/components/footer/index.js +0 -7
  628. package/dist/components/footer/index.js.map +0 -1
  629. package/dist/components/header/header-enhanced/index.esm.js +0 -405
  630. package/dist/components/header/header-enhanced/index.esm.js.map +0 -1
  631. package/dist/components/header/header-enhanced/index.js +0 -33
  632. package/dist/components/header/header-enhanced/index.js.map +0 -1
  633. package/dist/components/header copy/index.esm.js +0 -131
  634. package/dist/components/header copy/index.esm.js.map +0 -1
  635. package/dist/components/header copy/index.js +0 -11
  636. package/dist/components/header copy/index.js.map +0 -1
  637. package/dist/components/inventory-reports-title-bar/component/reportFilter/index.esm.js +0 -400
  638. package/dist/components/inventory-reports-title-bar/component/reportFilter/index.esm.js.map +0 -1
  639. package/dist/components/inventory-reports-title-bar/component/reportFilter/index.js +0 -41
  640. package/dist/components/inventory-reports-title-bar/component/reportFilter/index.js.map +0 -1
  641. package/dist/components/share-modal/share-modal-enhanced/index.esm.js +0 -288
  642. package/dist/components/share-modal/share-modal-enhanced/index.esm.js.map +0 -1
  643. package/dist/components/share-modal/share-modal-enhanced/index.js +0 -24
  644. package/dist/components/share-modal/share-modal-enhanced/index.js.map +0 -1
  645. package/dist/views/beforeAuth/login/index/index.esm.js +0 -209
  646. package/dist/views/beforeAuth/login/index/index.esm.js.map +0 -1
  647. package/dist/views/beforeAuth/login/index/index.js +0 -20
  648. package/dist/views/beforeAuth/login/index/index.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":["../../../../src/components/reports-title-bar/reports-title-bar.tsx"],"sourcesContent":["import Button from \"../button/button\";\nimport Typography from \"../typography/typography\";\nimport \"./reports-title-bar.scss\";\n\nimport TitleDropdownButton from \"../title-dropdown-button/title-dropdown-button\";\nimport { useEffect, useRef, useState } from \"react\";\nimport KeyboardArrowDownIcon from \"@mui/icons-material/KeyboardArrowDown\";\nimport { generateFields } from \"../../utils/common\";\nimport ReportButtons, { IReportButtons } from \"./report-buttons/report-buttons\";\nimport TabBar, { TabProps } from \"../tabs/tabs\";\nimport { Box, ButtonGroup, ClickAwayListener, Grow, Menu, MenuItem, Paper, Popper, Button as MuiButton, Divider } from \"@mui/material\";\nimport images from \"../../assets/images\";\nimport {\n handleCompareDateRange,\n RANGE,\n} from \"../../utils/date-range\";\nimport { DateRange, Calendar } from \"react-date-range\";\nimport \"react-date-range/dist/styles.css\"; // main css file\nimport \"react-date-range/dist/theme/default.css\"; // theme css file\nimport dayjs from \"dayjs\";\nimport { useAppDispatch } from \"../../redux/hooks\";\nimport { fetchCompanies } from \"./redux/actionCreator\";\nimport SearchableSelect from \"../searchable-select\";\nimport Checkbox from \"../checkbox/checkbox\";\nimport { useTranslation } from \"react-i18next\";\nimport React from \"react\";\nimport { Calendar as CalendarIcon, Export as ExportIcon, Filter as FilterIcon } from \"../icons\";\nimport { enUS } from 'date-fns/locale';\n\ninterface IReportFilters {\n company: number;\n start_date: string;\n end_date: string;\n as_of_date: string;\n}\n\ninterface ActionBarPropsType extends Partial<TabProps>, IReportButtons {\n title: string;\n handleAddButton?: (e?: any) => void;\n isTitleMenu?: boolean;\n titleMenus?: any;\n reportFilterFields?: any[];\n isDateFilterEnabled?: boolean;\n onDateFilterChange?: (\n data: Partial<{\n company: string | number;\n start_date: string;\n end_date: string;\n as_of_date: string;\n }>\n ) => void;\n filters?: Partial<IReportFilters>;\n isDateRange?: boolean;\n showDateFilter?: boolean;\n dateFilter?: string;\n showCancelButton?: boolean;\n}\n\ntype TDatePickerVal = {\n startDate?: Date;\n endDate?: Date;\n key?: string;\n};\n\nconst ReportsTitleBar = (props: ActionBarPropsType) => {\n const {\n title,\n handleAddButton,\n buttons = [],\n dropdownMenuButtonData,\n isTitleMenu = false,\n titleMenus = [],\n reportFilterFields = [],\n toggleCallback,\n tabs,\n activeValue,\n setActiveValue,\n isDateFilterEnabled=true,\n onDateFilterChange,\n // showCancelButton,\n filters = {},\n isDateRange = true,\n showDateFilter = false,\n dateFilter = 'TODAY',\n filterDropDown,\n handleRowsCollapse,\n handleRowsExpand,\n showLevelBtn=false,\n dataLength=0,\n filterKeys={},\n } = props;\n // const { companies } = useAppSelector((store) => store.reportsTitleBar);\n\n const dispatch = useAppDispatch();\n const customStyle =\n {\n \n '&.MuiOutlinedInput-root': {\n '& fieldset': {\n border: 'none',\n borderColor: `#ade7cb`,\n borderRadius: `25px`\n },\n '& .MuiSelect-outlined': {\n padding: `4.5px 14px !important`\n },\n // '&:hover fieldset': {\n // border: 'none',\n // },\n\n // '&.Mui-focused fieldset': {\n // border: 'none',\n // },\n display: `flex`,\n gap: `4px`,\n width: `220px`,\n // height: 30px,\n border: `1px solid #ade7cb`,\n borderRadius: `50px`,\n backgroundColor: `#ebf9f2`,\n color: `#289b64`,\n alignItems: `center`,\n cursor: `pointer`,\n // height: `30px`\n \n },\n }\nconst inputStyle=\n {\n border: \"none\",\n \"&.Mui-focused\": {\n borderColor: \"transparent\",\n },\n \"& .MuiOutlinedInput-input\": {\n // padding: \"0px\",\n fontSize: \"14px\",\n color:'#289b64'\n },\n \"& .MuiOutlinedInput-notchedOutline\": {\n border: \"none\", \n },\n '& .MuiSelect-icon': {\n color: 'green',\n },\n}\n\n const defaultSelected=[\n {\n value:'company',\n },\n ]\n const [selectedItems, setSelectedItems] = useState<string[]>(defaultSelected);\n const [level, setLevel] = useState<number>(1)\n\n // const selectedCompany = useMemo(\n // () =>\n // companies?.find((company) => filters?.company === company.id)\n // ?.company_name || \"\",\n // [companies, filters?.company]\n // );\n \n\n // eslint-disable-next-line unused-imports/no-unused-vars, @typescript-eslint/no-unused-vars\n const [actionAnchorEl, setActionAnchorEl] = useState<null | HTMLElement>(\n null\n );\n // eslint-disable-next-line unused-imports/no-unused-vars, @typescript-eslint/no-unused-vars\n const [allFields, setAllFields] = useState<any[]>([]);\n const [dateRange, setDateRange] = useState<keyof typeof RANGE>();\n const [open, setOpen] = useState<boolean>(false);\n const [exportAnchorEl, setExportAnchorEl] = useState<null | HTMLElement>(null);\n const [customDate, setCustomDate] = useState<Date>(\n new Date(dayjs(filters?.as_of_date || \"\").format(\"YYYY-MM-DD\"))\n );\n const {t}=useTranslation();\n const [customDateRange, setCustomDateRange] = useState<TDatePickerVal>({\n startDate: new Date(dayjs(filters?.start_date || \"\").format(\"YYYY-MM-DD\")),\n endDate: new Date(dayjs(filters?.end_date || \"\").format(\"YYYY-MM-DD\")),\n key: \"selection\",\n });\n\n const anchorRef = useRef<HTMLDivElement | null>(null);\n const dateSelectRef = useRef<HTMLDivElement>(null);\n const chipDateSelectRef = useRef<HTMLDivElement>(null);\n\n const handleCloseDatePopper = () => {\n anchorRef.current = null;\n setOpen(false);\n };\n\n const handleDateChange = async (range: keyof typeof RANGE) => {\n setDateRange(range);\n if (range === \"CUSTOM\") {\n anchorRef.current = dateSelectRef.current;\n setOpen(true);\n } else {\n const data = await handleCompareDateRange({\n range: RANGE[range],\n from: \"\",\n to: \"\",\n });\n onDateFilterChange?.({\n start_date: data?.from ? data?.from : \"\",\n end_date: data?.to ? data?.to : \"\",\n });\n handleCloseDatePopper();\n }\n };\n\n const handleClose = (event: Event) => {\n if (\n anchorRef.current &&\n anchorRef.current.contains(event.target as HTMLElement)\n ) {\n return;\n }\n\n handleCloseDatePopper();\n };\n const handleSelectChange = (value: any) => {\n if (selectedItems.some((item) => item.value == value.value)) {\n setSelectedItems(selectedItems.filter((item) => item?.value != value.value));\n return;\n }\n setSelectedItems([...selectedItems, value]);\n };\n // Create filters config from filterDropDown and filterKeys\n // If reportFilters is needed, it should be provided by the consuming application\n const filtersConfig = filterDropDown?.map((filter: any) => ({\n key: filter.value || filter.key,\n label: filter.name || filter.label || `Search ${filter.value || filter.key}`,\n placeholder: filter.placeholder || filter.name || filter.label,\n apiType: filter.apiType || filter.value || filter.key,\n valueKey: filterKeys?.[filter.value || filter.key] || filter.value || filter.key,\n customFilter: filter.customFilter || null,\n multiple: filter.multiple || false,\n })) || []\n\n const options = [\n {\n label: RANGE.TODAY,\n callback: () => {\n handleDateChange(\"TODAY\");\n },\n },\n {\n label: RANGE.THIS_WEEK,\n callback: () => {\n handleDateChange(\"THIS_WEEK\");\n },\n },\n {\n label: RANGE.THIS_MONTH,\n callback: () => {\n handleDateChange(\"THIS_MONTH\");\n },\n },\n {\n label: RANGE.THIS_QUARTER,\n callback: () => {\n handleDateChange(\"THIS_QUARTER\");\n },\n },\n {\n label: RANGE.THIS_YEAR,\n callback: () => {\n handleDateChange(\"THIS_YEAR\");\n },\n },\n {\n label: RANGE.YESTERDAY,\n callback: () => {\n handleDateChange(\"YESTERDAY\");\n },\n },\n {\n label: RANGE.PREVIOUS_WEEK,\n callback: () => {\n handleDateChange(\"PREVIOUS_WEEK\");\n },\n },\n {\n label: RANGE.PREVIOUS_MONTH,\n callback: () => {\n handleDateChange(\"PREVIOUS_MONTH\");\n },\n },\n {\n label: RANGE.PREVIOUS_QUARTER,\n callback: () => {\n handleDateChange(\"PREVIOUS_QUARTER\");\n },\n },\n {\n label: RANGE.PREVIOUS_YEAR,\n callback: () => {\n handleDateChange(\"PREVIOUS_YEAR\");\n },\n },\n {\n label: RANGE.CUSTOM,\n callback: () => {\n handleDateChange(\"CUSTOM\");\n },\n },\n ];\n\n const isChecked =(value: any) => {\n return selectedItems.some(item => item?.value == value?.value)\n }\n \n const handleFilterPopperSubmit = () => {\n const dateRangeFilter = {\n start_date: dayjs(customDateRange.startDate).format(\"YYYY-MM-DD\"),\n end_date: dayjs(customDateRange.endDate).format(\"YYYY-MM-DD\"),\n };\n const dateFilter = {\n as_of_date: dayjs(customDate).format(\"YYYY-MM-DD\"),\n };\n\n onDateFilterChange?.({\n ...(isDateRange ? dateRangeFilter : dateFilter),\n });\n handleCloseDatePopper();\n };\n function showFilter(val) {\n return selectedItems.some(item => item?.value == val)\n }\n\n const getStartAndEndDate = (filters: any) => {\n const startDate = dayjs(filters?.start_date).isValid() ? dayjs(filters.start_date).toDate() : new Date();\n const endDate = dayjs(filters?.end_date).isValid() ? dayjs(filters.end_date).toDate() : new Date();\n return { startDate, endDate };\n};\n\n useEffect(() => {\n setCustomDate(\n new Date(dayjs(filters?.as_of_date || \"\").format(\"YYYY-MM-DD\"))\n );\n }, [filters?.as_of_date]);\n\n useEffect(() => {\n setCustomDateRange({\n ...customDateRange,\n ...getStartAndEndDate(filters)\n });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [filters?.end_date, filters?.start_date]);\n\n useEffect(() => {\n if (open) {\n if (isDateRange) {\n setCustomDateRange({\n ...customDateRange,\n ...getStartAndEndDate(filters)\n });\n } else {\n setCustomDate(\n new Date(dayjs(filters?.as_of_date || \"\").format(\"YYYY-MM-DD\"))\n );\n }\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [open, isDateRange]);\n\n useEffect(() => {\n dispatch(fetchCompanies());\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n useEffect(() => {\n setAllFields(generateFields(reportFilterFields));\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n useEffect(() => {\n handleDateChange(dateFilter)\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [dateFilter]);\n\n const filterDropDownFunc = () => {\n return (\n <Menu\n anchorEl={actionAnchorEl}\n open={Boolean(actionAnchorEl)}\n onClose={handleFilterClose}\n >\n {/* <MenuItem className=\"inventoryReportsTitleBar--report-filter\"> */}\n {/* Add your options here */}\n {filterDropDown?.map((item) => (\n <MenuItem onClick={() => handleSelectChange(item)} key={item} value={item?.value}>\n <Checkbox checked={isChecked(item)} />\n <Typography sx={{marginLeft:'10px'}} color='theme.neutral.800' type='s3'>{item?.name}</Typography>\n </MenuItem>\n ))}\n {/* </MenuItem> */}\n </Menu>\n );\n };\n\n const renderFilter = ({\n key,\n label,\n placeholder,\n apiType,\n valueKey,\n customFilter,\n multiple = false,\n options,\n show=true,\n showCancelButton=true\n }: FilterConfig) => {\n if (!showFilter(key)||!show) return null;\n \n return (\n // <div className=\"search-filter\" key={key}>\n <SearchableSelect\n labelId={`${key}-label`}\n searchPlaceholder={label}\n value={filters?.[valueKey]}\n onChange={(e) => onDateFilterChange({ [valueKey]: e.target.value })}\n showCancelButton={showCancelButton}\n apiType={apiType}\n options={options}\n multiple={multiple}\n placeholder={placeholder}\n customeFilter={customFilter}\n // CustomDropDownIcon={FilterAltIcon}\n customStyle={customStyle}\n inputStyle={inputStyle}\n />\n // </div>\n );\n };\n const FilterContainer = () => (\n <>\n {filtersConfig.map(renderFilter)}\n </>\n );\n const handleFilterClose = () => {\n setActionAnchorEl(null);\n };\n\n const ExportContainer = React.memo(()=>{\n const handleClose = () => setExportAnchorEl(null);\n return(\n <Menu\n open={Boolean(exportAnchorEl)}\n anchorEl={exportAnchorEl}\n onClose={handleClose}\n anchorOrigin={{\n vertical: \"bottom\",\n horizontal: \"right\",\n }}\n transformOrigin={{\n vertical: \"top\",\n horizontal: \"right\",\n }}\n >\n {dropdownMenuButtonData?.options?.map((option, index) => (\n <MenuItem\n key={index}\n onClick={() => {\n option.callback();\n setExportAnchorEl(null);\n }} \n >\n <Typography type=\"s4\" weight=\"medium\" color={'inherit'}> {option.label}</Typography>\n </MenuItem>\n ))}\n </Menu>\n )\n })\n\n return (\n <div>\n <div className=\"reportsTitleBar\">\n <div className=\"reportsTitleBar--LeftContent\">\n {isTitleMenu ? (\n <div style={{ zIndex: 999 }}>\n <TitleDropdownButton\n onClick={handleAddButton}\n options={titleMenus}\n isMenuThirdItemDisabled={true}\n >\n {title}\n </TitleDropdownButton>\n </div>\n ) : (\n <Typography type=\"h3\" weight=\"medium\" color=\"theme.secondary.1000\">\n {title}\n </Typography>\n )}\n </div>\n \n <ReportButtons\n zIndex={999}\n className=\"reportsTitleBar--RightContent\"\n buttons={buttons}\n />\n </div>\n {tabs?.length ? (\n <div>\n <TabBar\n tabs={tabs || []}\n activeValue={activeValue}\n setActiveValue={setActiveValue}\n isTabViewOnly={true}\n />\n </div>\n ) : null}\n <Box sx={{ display: \"flex\", justifyContent: \"space-between\", my: 2.5, mx: 1 }}>\n <div className=\"reportsTitleBar--FilterWrapper\">\n {FilterContainer()}\n { (filters?.end_date && showDateFilter) && (\n <div style={{ display: \"flex\", gap: \"8px\" }}>\n <div\n className=\"reportsTitleBar--FilterWrapper--Chip\"\n ref={chipDateSelectRef}\n onClick={() => {\n if (!open) {\n anchorRef.current = chipDateSelectRef.current;\n setOpen(true);\n } else {\n handleCloseDatePopper();\n }\n }}\n >\n <div\n className=\"reportsTitleBar--FilterWrapper--Chip--Text\"\n title={`${dayjs(filters?.start_date).format(\"DD/MM/YYYY\")} - ${dayjs(filters?.end_date).format(\"DD/MM/YYYY\")}`}\n >\n <Typography type=\"s4\" weight=\"medium\">\n {t(\"common.dateRange\")}:\n </Typography>\n <Typography\n className=\"reportsTitleBar--FilterWrapper--Chip--Text--Value\"\n type=\"s4\"\n >\n {dayjs(filters?.start_date).format(\"DD/MM/YYYY\")} -{\" \"}\n {dayjs(filters?.end_date).format(\"DD/MM/YYYY\")}\n </Typography>\n </div>\n <KeyboardArrowDownIcon />\n </div>\n </div>\n )}\n {(customDateRange?.startDate && customDateRange?.endDate && isDateFilterEnabled && !['TODAY','YESTERDAY'].includes(dateRange)) && (\n \n <>\n {customDateRange?.startDate && (\n <div style={{ display: \"flex\", gap: \"8px\" }}>\n <div\n className=\"reportsTitleBar--FilterWrapper--Chip\"\n style={{padding:' 5px 12px'}}\n ref={chipDateSelectRef}\n \n >\n <div\n className=\"reportsTitleBar--FilterWrapper--Chip--Text\"\n title={`${dayjs(customDateRange?.startDate).format(\"DD/MM/YYYY\")}`}\n >\n <Typography type=\"s4\" weight=\"medium\">\n {t(\"common.startDate\")}:\n </Typography>\n <Typography\n className=\"reportsTitleBar--FilterWrapper--Chip--Text--Value\"\n type=\"s4\"\n >\n {dayjs(customDateRange?.startDate).format(\"DD/MM/YYYY\")}\n </Typography>\n </div>\n {/* <KeyboardArrowDownIcon /> */}\n </div>\n </div>\n )}\n {customDateRange?.endDate && (\n <div style={{ display: \"flex\", gap: \"8px\" }}>\n <div\n className=\"reportsTitleBar--FilterWrapper--Chip\"\n ref={chipDateSelectRef}\n style={{padding:' 5px 12px'}}\n >\n <div\n className=\"reportsTitleBar--FilterWrapper--Chip--Text\"\n title={`${dayjs(customDateRange?.startDate).format(\"DD/MM/YYYY\")}`}\n >\n <Typography type=\"s4\" weight=\"medium\">\n {t(\"common.endDate\")}:\n </Typography>\n <Typography\n className=\"reportsTitleBar--FilterWrapper--Chip--Text--Value\"\n type=\"s4\"\n >\n {dayjs(customDateRange?.endDate).format(\"DD/MM/YYYY\")}\n </Typography>\n </div>\n {/* <KeyboardArrowDownIcon /> */}\n </div>\n </div>\n )}\n </>\n )}\n {filters?.as_of_date && (\n <div style={{ display: \"flex\", gap: \"8px\" }}>\n <div\n className=\"reportsTitleBar--FilterWrapper--Chip\"\n ref={chipDateSelectRef}\n onClick={() => {\n if (!open) {\n anchorRef.current = chipDateSelectRef.current;\n setOpen(true);\n } else {\n handleCloseDatePopper();\n }\n }}\n >\n <div\n className=\"reportsTitleBar--FilterWrapper--Chip--Text\"\n title={`${dayjs(filters?.as_of_date).format(\"DD/MM/YYYY\")}`}\n >\n <Typography type=\"s4\" weight=\"medium\">\n {t(\"common.date\")}:\n </Typography>\n <Typography\n className=\"reportsTitleBar--FilterWrapper--Chip--Text--Value\"\n type=\"s4\"\n >\n {dayjs(filters?.as_of_date).format(\"DD/MM/YYYY\")}\n </Typography>\n </div>\n <KeyboardArrowDownIcon />\n </div>\n </div>\n )}\n {/* {((filters?.company && selectedCompany) ||\n (filters?.start_date && filters?.end_date) ||\n filters?.as_of_date) &&\n reportFilterFields?.length\n ? \"|\"\n : \"\"} */}\n </div>\n <div className=\"report-display\">\n {dropdownMenuButtonData?.options?.length>0 && \n <Box> \n <Button\n sx={({ palette }) => ({\n border: \"1px solid\",\n borderColor: 'grey.200',\n borderRadius: \"50px\",\n color: `${palette.grey[800]} !important`,\n '&:hover': {\n bgcolor: `${palette.grey[200]} !important`,\n }\n })}\n variant=\"text\"\n startIcon={<ExportIcon fontSize=\"small\"/>}\n onClick={(event) => setExportAnchorEl (event.currentTarget)}\n >\n {t(\"common.export\")}\n </Button>\n {exportAnchorEl && (\n <ExportContainer />\n ) }\n </Box>\n }\n \n {filterDropDown?.length && \n <>\n <Box> \n <Button\n sx={({ palette }) => ({\n border: \"1px solid\",\n borderColor: 'grey.200',\n borderRadius: \"50px\",\n color: `${palette.grey[800]} !important`,\n '&:hover': {\n bgcolor: `${palette.grey[200]} !important`,\n }\n })}\n variant=\"text\"\n startIcon={<FilterIcon fontSize=\"small\"/>}\n onClick={(event) => setActionAnchorEl(event.currentTarget)}\n >\n {t(\"common.filter\")}\n </Button>\n </Box>\n {showLevelBtn && <Divider flexItem orientation=\"vertical\" sx= {{ height: '50%', alignSelf: 'auto'}} />}\n </>\n }\n \n {filterDropDownFunc()}\n {showLevelBtn && (\n <>\n <Box className=\"reportsTitleBar--FilterAction--lvWrapper\" >\n <Typography type=\"s3\" weight=\"medium\" color='grey.800'> Level {level} of {dataLength}</Typography>\n <ButtonGroup variant=\"outlined\" disableElevation sx={({ palette }) => ({ \n '& .MuiButton-root' :{\n borderColor: `${palette.grey[200]} !important`,\n '&:hover': {\n bgcolor: `${palette.grey[200]} !important`,\n }\n },\n '& .MuiButtonGroup-firstButton' : {\n borderTopLeftRadius: 20,\n borderBottomLeftRadius: 20\n },\n '& .MuiButtonGroup-lastButton' : {\n borderTopRightRadius: 20,\n borderBottomRightRadius: 20\n }\n })}>\n <MuiButton onClick={() => {\n setLevel(level == dataLength ? level : level + 1)\n handleRowsCollapse?.(level)\n }}>\n <img src={images.common.expand} />\n </MuiButton>\n <MuiButton onClick={() => {\n setLevel(level != 1 ? level - 1 : 1)\n handleRowsExpand?.(level)\n }}>\n <img src={images.common.collapse} />\n </MuiButton>\n </ButtonGroup>\n </Box>\n {isDateFilterEnabled && <Divider flexItem orientation=\"vertical\" sx= {{ height: '50%', alignSelf: 'auto'}} />}\n </>\n )}\n {isDateFilterEnabled && (\n <Box sx={{ display: 'flex', alignItems: 'center', gap: 0.5 }}>\n <Typography type=\"s3\" weight=\"medium\" color='grey.800'>As of: </Typography>\n <ReportButtons\n zIndex={997}\n className=\"reportsTitleBar--RightContent\"\n dropdownMenuButtonData={{\n icon: <CalendarIcon fontSize=\"small\"/>,\n children: (\n <>\n {RANGE[dateRange]}\n <KeyboardArrowDownIcon />\n </>\n ),\n options: options,\n }}\n toggleCallback={toggleCallback}\n />\n <div ref={dateSelectRef}></div>\n </Box>\n )}\n </div>\n </Box>\n {/* <Filter\n open={openFilterPopup}\n onClose={() => setOpenFilterPopup(false)}\n fields={allFields}\n onSelectedFilter={(filterName: string) => console.log(filterName)}\n // getFilterStatesOnApply={() => {}}\n applyFilter={(val: any) => console.log('val', val)}\n /> */}\n <Popper\n sx={{\n zIndex: 9999,\n }}\n open={open}\n anchorEl={anchorRef.current}\n role={undefined}\n transition\n disablePortal\n >\n {({ TransitionProps, placement }) => (\n <Grow\n {...TransitionProps}\n style={{\n margin: \"0 20px 0 20px\",\n transformOrigin:\n placement === \"bottom\" ? \"center top\" : \"center bottom\",\n }}\n >\n <Paper>\n <ClickAwayListener onClickAway={handleClose}>\n <Box\n sx={{\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"flex-end\",\n }}\n >\n <div>\n {isDateRange ? (\n <DateRange\n editableDateInputs={true}\n onChange={(item) => setCustomDateRange(item.selection)}\n moveRangeOnFirstSelection={false}\n ranges={[customDateRange]}\n locale={enUS}\n />\n ) : (\n <Calendar\n onChange={(item) => setCustomDate(item)}\n date={customDate}\n locale={enUS}\n />\n )}\n </div>\n <Box sx={{ padding: \"0 12px 12px 0\" }}>\n <Button\n variant=\"contained\"\n sx={{ width: \"fit-content\" }}\n onClick={handleFilterPopperSubmit}\n >\n {t(\"common.apply\")}\n </Button>\n </Box>\n </Box>\n </ClickAwayListener>\n </Paper>\n </Grow>\n )}\n </Popper>\n </div>\n );\n};\n\nexport { ReportsTitleBar };\nexport default ReportsTitleBar;\n"],"names":["dateFilter","filters","options","React","handleClose","_a","KeyboardArrowDownIcon","ExportIcon","FilterIcon","MuiButton","CalendarIcon","Calendar"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgEA,MAAM,kBAAkB,CAAC,UAA8B;;AACrD,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA,UAAU,CAAA;AA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;AAAA,sBACpB,UAAU,CAAC,SAAS,mBAAmB,KAAK,SAAS;AAAA,sBACrD,2BAA2B;AAAA,sBAC3B,QAAQ,CAAC,eAAe;AAAA,sBACxB,QAAQ;AAAA,oBAAA;AAAA,kBAAA,IAGV;AAAA,oBAACK;AAAAA,oBAAA;AAAA,sBACC,UAAU,CAAC,SAAS,cAAc,IAAI;AAAA,sBACtC,MAAM;AAAA,sBACN,QAAQ;AAAA,oBAAA;AAAA,kBAAA,GAGd;AAAA,sCACC,KAAA,EAAI,IAAI,EAAE,SAAS,mBAClB,UAAA;AAAA,oBAAC;AAAA,oBAAA;AAAA,sBACC,SAAQ;AAAA,sBACR,IAAI,EAAE,OAAO,cAAA;AAAA,sBACb,SAAS;AAAA,sBAEN,YAAE,cAAc;AAAA,oBAAA;AAAA,kBAAA,EACrB,CACF;AAAA,gBAAA;AAAA,cAAA;AAAA,YAAA,GAEJ,EAAA,CACF;AAAA,UAAA;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAEJ,GACF;AAEJ;"}
@@ -0,0 +1,39 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=,/* empty css */l=;/* empty css */;/* empty css */var r=,/* empty css */a=require("react"),i=,/* empty css */n=,/* empty css */o=,/* empty css */s=,/* empty css */d=,/* empty css */u=,/* empty css */c=require("react-date-range"),p=require("dayjs"),x=,/* empty css */m=,/* empty css */h=,/* empty css */f=,/* empty css */v=require("react-i18next"),j=require("date-fns/locale"),g=,/* empty css */y=,/* empty css */b=,/* empty css */Y=,/* empty css */D=,/* empty css */T=,/* empty css */M=,/* empty css */_=,/* empty css */R=,/* empty css */C=,/* empty css */E=,/* empty css */B=,/* empty css */S=;/* empty css */function k(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var w=/* @__PURE__ */k(a),A=/* @__PURE__ */k(p);const N=p=>{var k;const{title:N,handleAddButton:I,buttons:q=[],dropdownMenuButtonData:F,isTitleMenu:O=!1,titleMenus:G=[],reportFilterFields:V=[],toggleCallback:W,tabs:U,activeValue:P,setActiveValue:$,isDateFilterEnabled:H=!0,onDateFilterChange:z,filters:L={},isDateRange:K=!0,showDateFilter:Q=!1,dateFilter:J="TODAY",filterDropDown:X,handleRowsCollapse:Z,handleRowsExpand:ee,showLevelBtn:te=!1,dataLength:le=0,filterKeys:re={}}=p,ae=x.useAppDispatch(),ie={"&.MuiOutlinedInput-root":{"& fieldset":{border:"none",borderColor:"#ade7cb",borderRadius:"25px"},"& .MuiSelect-outlined":{padding:"4.5px 14px !important"},display:"flex",gap:"4px",width:"220px",border:"1px solid #ade7cb",borderRadius:"50px",backgroundColor:"#ebf9f2",color:"#289b64",alignItems:"center",cursor:"pointer"}},ne={border:"none","&.Mui-focused":{borderColor:"transparent"},"& .MuiOutlinedInput-input":{fontSize:"14px",color:"#289b64"},"& .MuiOutlinedInput-notchedOutline":{border:"none"},"& .MuiSelect-icon":{color:"green"}},[oe,se]=a.useState([{value:"company"}]),[de,ue]=a.useState(1),[ce,pe]=a.useState(null),[xe,me]=a.useState([]),[he,fe]=a.useState(),[ve,je]=a.useState(!1),[ge,ye]=a.useState(null),[be,Ye]=a.useState(new Date(A.default((null==L?void 0:L.as_of_date)||"").format("YYYY-MM-DD"))),{t:De}=v.useTranslation(),[Te,Me]=a.useState({startDate:new Date(A.default((null==L?void 0:L.start_date)||"").format("YYYY-MM-DD")),endDate:new Date(A.default((null==L?void 0:L.end_date)||"").format("YYYY-MM-DD")),key:"selection"}),_e=a.useRef(null),Re=a.useRef(null),Ce=a.useRef(null),Ee=()=>{_e.current=null,je(!1)},Be=async e=>{if(fe(e),"CUSTOM"===e)_e.current=Re.current,je(!0);else{const t=await u.handleCompareDateRange({range:u.RANGE[e],from:"",to:""});null==z||z({start_date:(null==t?void 0:t.from)?null==t?void 0:t.from:"",end_date:(null==t?void 0:t.to)?null==t?void 0:t.to:""}),Ee()}},Se=e=>{_e.current&&_e.current.contains(e.target)||Ee()},ke=(null==X?void 0:X.map(e=>({key:e.value||e.key,label:e.name||e.label||`Search ${e.value||e.key}`,placeholder:e.placeholder||e.name||e.label,apiType:e.apiType||e.value||e.key,valueKey:(null==re?void 0:re[e.value||e.key])||e.value||e.key,customFilter:e.customFilter||null,multiple:e.multiple||!1})))||[],we=[{label:u.RANGE.TODAY,callback:()=>{Be("TODAY")}},{label:u.RANGE.THIS_WEEK,callback:()=>{Be("THIS_WEEK")}},{label:u.RANGE.THIS_MONTH,callback:()=>{Be("THIS_MONTH")}},{label:u.RANGE.THIS_QUARTER,callback:()=>{Be("THIS_QUARTER")}},{label:u.RANGE.THIS_YEAR,callback:()=>{Be("THIS_YEAR")}},{label:u.RANGE.YESTERDAY,callback:()=>{Be("YESTERDAY")}},{label:u.RANGE.PREVIOUS_WEEK,callback:()=>{Be("PREVIOUS_WEEK")}},{label:u.RANGE.PREVIOUS_MONTH,callback:()=>{Be("PREVIOUS_MONTH")}},{label:u.RANGE.PREVIOUS_QUARTER,callback:()=>{Be("PREVIOUS_QUARTER")}},{label:u.RANGE.PREVIOUS_YEAR,callback:()=>{Be("PREVIOUS_YEAR")}},{label:u.RANGE.CUSTOM,callback:()=>{Be("CUSTOM")}}],Ae=()=>{const e={start_date:A.default(Te.startDate).format("YYYY-MM-DD"),end_date:A.default(Te.endDate).format("YYYY-MM-DD")},t={as_of_date:A.default(be).format("YYYY-MM-DD")};null==z||z({...K?e:t}),Ee()},Ne=e=>({startDate:A.default(null==e?void 0:e.start_date).isValid()?A.default(e.start_date).toDate():/* @__PURE__ */new Date,endDate:A.default(null==e?void 0:e.end_date).isValid()?A.default(e.end_date).toDate():/* @__PURE__ */new Date});a.useEffect(()=>{Ye(new Date(A.default((null==L?void 0:L.as_of_date)||"").format("YYYY-MM-DD")))},[null==L?void 0:L.as_of_date]),a.useEffect(()=>{Me({...Te,...Ne(L)})},[null==L?void 0:L.end_date,null==L?void 0:L.start_date]),a.useEffect(()=>{ve&&(K?Me({...Te,...Ne(L)}):Ye(new Date(A.default((null==L?void 0:L.as_of_date)||"").format("YYYY-MM-DD"))))},[ve,K]),a.useEffect(()=>{ae(m.fetchCompanies())},[]),a.useEffect(()=>{me(n.generateFields(V))},[]),a.useEffect(()=>{Be(J)},[J]);const Ie=w.default.memo(()=>{var t;/* @__PURE__ */
2
+ return e.jsx(g.default,{open:Boolean(ge),anchorEl:ge,onClose:()=>ye(null),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:null==(t=null==F?void 0:F.options)?void 0:t.map((t,r)=>/* @__PURE__ */e.jsx(y.default,{onClick:()=>{t.callback(),ye(null)},children:/* @__PURE__ */e.jsxs(l.Typography,{type:"s4",weight:"medium",color:"inherit",children:[" ",t.label]})},r))})});/* @__PURE__ */
3
+ return e.jsxs("div",{children:[
4
+ /* @__PURE__ */e.jsxs("div",{className:"reportsTitleBar",children:[
5
+ /* @__PURE__ */e.jsx("div",{className:"reportsTitleBar--LeftContent",children:O?/* @__PURE__ */e.jsx("div",{style:{zIndex:999},children:/* @__PURE__ */e.jsx(r.default,{onClick:I,options:G,isMenuThirdItemDisabled:!0,children:N})}):/* @__PURE__ */e.jsx(l.Typography,{type:"h3",weight:"medium",color:"theme.secondary.1000",children:N})}),
6
+ /* @__PURE__ */e.jsx(o.ReportButtons,{zIndex:999,className:"reportsTitleBar--RightContent",buttons:q})]}),(null==U?void 0:U.length)?/* @__PURE__ */e.jsx("div",{children:/* @__PURE__ */e.jsx(s.TabBar,{tabs:U||[],activeValue:P,setActiveValue:$,isTabViewOnly:!0})}):null,
7
+ /* @__PURE__ */e.jsxs(b.default,{sx:{display:"flex",justifyContent:"space-between",my:2.5,mx:1},children:[
8
+ /* @__PURE__ */e.jsxs("div",{className:"reportsTitleBar--FilterWrapper",children:[/* @__PURE__ */e.jsx(e.Fragment,{children:ke.map(({key:t,label:l,placeholder:r,apiType:a,valueKey:i,customFilter:n,multiple:o=!1,options:s,show:d=!0,showCancelButton:u=!0})=>{return c=t,oe.some(e=>(null==e?void 0:e.value)==c)&&d?
9
+ /* @__PURE__ */e.jsx(h.default,{labelId:`${t}-label`,searchPlaceholder:l,value:null==L?void 0:L[i],onChange:e=>z({[i]:e.target.value}),showCancelButton:u,apiType:a,options:s,multiple:o,placeholder:r,customeFilter:n,customStyle:ie,inputStyle:ne}):null;var c})}),(null==L?void 0:L.end_date)&&Q&&/* @__PURE__ */e.jsx("div",{style:{display:"flex",gap:"8px"},children:/* @__PURE__ */e.jsxs("div",{className:"reportsTitleBar--FilterWrapper--Chip",ref:Ce,onClick:()=>{ve?Ee():(_e.current=Ce.current,je(!0))},children:[
10
+ /* @__PURE__ */e.jsxs("div",{className:"reportsTitleBar--FilterWrapper--Chip--Text",title:`${A.default(null==L?void 0:L.start_date).format("DD/MM/YYYY")} - ${A.default(null==L?void 0:L.end_date).format("DD/MM/YYYY")}`,children:[
11
+ /* @__PURE__ */e.jsxs(l.Typography,{type:"s4",weight:"medium",children:[De("common.dateRange"),":"]}),
12
+ /* @__PURE__ */e.jsxs(l.Typography,{className:"reportsTitleBar--FilterWrapper--Chip--Text--Value",type:"s4",children:[A.default(null==L?void 0:L.start_date).format("DD/MM/YYYY")," -"," ",A.default(null==L?void 0:L.end_date).format("DD/MM/YYYY")]})]}),
13
+ /* @__PURE__ */e.jsx(i.default,{})]})}),(null==Te?void 0:Te.startDate)&&(null==Te?void 0:Te.endDate)&&H&&!["TODAY","YESTERDAY"].includes(he)&&/* @__PURE__ */e.jsxs(e.Fragment,{children:[(null==Te?void 0:Te.startDate)&&/* @__PURE__ */e.jsx("div",{style:{display:"flex",gap:"8px"},children:/* @__PURE__ */e.jsx("div",{className:"reportsTitleBar--FilterWrapper--Chip",style:{padding:" 5px 12px"},ref:Ce,children:/* @__PURE__ */e.jsxs("div",{className:"reportsTitleBar--FilterWrapper--Chip--Text",title:`${A.default(null==Te?void 0:Te.startDate).format("DD/MM/YYYY")}`,children:[
14
+ /* @__PURE__ */e.jsxs(l.Typography,{type:"s4",weight:"medium",children:[De("common.startDate"),":"]}),
15
+ /* @__PURE__ */e.jsx(l.Typography,{className:"reportsTitleBar--FilterWrapper--Chip--Text--Value",type:"s4",children:A.default(null==Te?void 0:Te.startDate).format("DD/MM/YYYY")})]})})}),(null==Te?void 0:Te.endDate)&&/* @__PURE__ */e.jsx("div",{style:{display:"flex",gap:"8px"},children:/* @__PURE__ */e.jsx("div",{className:"reportsTitleBar--FilterWrapper--Chip",ref:Ce,style:{padding:" 5px 12px"},children:/* @__PURE__ */e.jsxs("div",{className:"reportsTitleBar--FilterWrapper--Chip--Text",title:`${A.default(null==Te?void 0:Te.startDate).format("DD/MM/YYYY")}`,children:[
16
+ /* @__PURE__ */e.jsxs(l.Typography,{type:"s4",weight:"medium",children:[De("common.endDate"),":"]}),
17
+ /* @__PURE__ */e.jsx(l.Typography,{className:"reportsTitleBar--FilterWrapper--Chip--Text--Value",type:"s4",children:A.default(null==Te?void 0:Te.endDate).format("DD/MM/YYYY")})]})})})]}),(null==L?void 0:L.as_of_date)&&/* @__PURE__ */e.jsx("div",{style:{display:"flex",gap:"8px"},children:/* @__PURE__ */e.jsxs("div",{className:"reportsTitleBar--FilterWrapper--Chip",ref:Ce,onClick:()=>{ve?Ee():(_e.current=Ce.current,je(!0))},children:[
18
+ /* @__PURE__ */e.jsxs("div",{className:"reportsTitleBar--FilterWrapper--Chip--Text",title:`${A.default(null==L?void 0:L.as_of_date).format("DD/MM/YYYY")}`,children:[
19
+ /* @__PURE__ */e.jsxs(l.Typography,{type:"s4",weight:"medium",children:[De("common.date"),":"]}),
20
+ /* @__PURE__ */e.jsx(l.Typography,{className:"reportsTitleBar--FilterWrapper--Chip--Text--Value",type:"s4",children:A.default(null==L?void 0:L.as_of_date).format("DD/MM/YYYY")})]}),
21
+ /* @__PURE__ */e.jsx(i.default,{})]})})]}),
22
+ /* @__PURE__ */e.jsxs("div",{className:"report-display",children:[(null==(k=null==F?void 0:F.options)?void 0:k.length)>0&&/* @__PURE__ */e.jsxs(b.default,{children:[
23
+ /* @__PURE__ */e.jsx(t.Button,{sx:({palette:e})=>({border:"1px solid",borderColor:"grey.200",borderRadius:"50px",color:`${e.grey[800]} !important`,"&:hover":{bgcolor:`${e.grey[200]} !important`}}),variant:"text",startIcon:/* @__PURE__ */e.jsx(Y.Export,{fontSize:"small"}),onClick:e=>ye(e.currentTarget),children:De("common.export")}),ge&&/* @__PURE__ */e.jsx(Ie,{})]}),(null==X?void 0:X.length)&&/* @__PURE__ */e.jsxs(e.Fragment,{children:[
24
+ /* @__PURE__ */e.jsx(b.default,{children:/* @__PURE__ */e.jsx(t.Button,{sx:({palette:e})=>({border:"1px solid",borderColor:"grey.200",borderRadius:"50px",color:`${e.grey[800]} !important`,"&:hover":{bgcolor:`${e.grey[200]} !important`}}),variant:"text",startIcon:/* @__PURE__ */e.jsx(D.Filter,{fontSize:"small"}),onClick:e=>pe(e.currentTarget),children:De("common.filter")})}),te&&/* @__PURE__ */e.jsx(T.default,{flexItem:!0,orientation:"vertical",sx:{height:"50%",alignSelf:"auto"}})]}),/* @__PURE__ */e.jsx(g.default,{anchorEl:ce,open:Boolean(ce),onClose:()=>{pe(null)},children:null==X?void 0:X.map(t=>{/* @__PURE__ */return e.jsxs(y.default,{onClick:()=>{return e=t,void(oe.some(t=>t.value==e.value)?se(oe.filter(t=>(null==t?void 0:t.value)!=e.value)):se([...oe,e]));var e},value:null==t?void 0:t.value,children:[
25
+ /* @__PURE__ */e.jsx(f.Checkbox,{checked:(r=t,oe.some(e=>(null==e?void 0:e.value)==(null==r?void 0:r.value)))}),
26
+ /* @__PURE__ */e.jsx(l.Typography,{sx:{marginLeft:"10px"},color:"theme.neutral.800",type:"s3",children:null==t?void 0:t.name})]},t);var r})}),te&&/* @__PURE__ */e.jsxs(e.Fragment,{children:[
27
+ /* @__PURE__ */e.jsxs(b.default,{className:"reportsTitleBar--FilterAction--lvWrapper",children:[
28
+ /* @__PURE__ */e.jsxs(l.Typography,{type:"s3",weight:"medium",color:"grey.800",children:[" Level ",de," of ",le]}),
29
+ /* @__PURE__ */e.jsxs(M.default,{variant:"outlined",disableElevation:!0,sx:({palette:e})=>({"& .MuiButton-root":{borderColor:`${e.grey[200]} !important`,"&:hover":{bgcolor:`${e.grey[200]} !important`}},"& .MuiButtonGroup-firstButton":{borderTopLeftRadius:20,borderBottomLeftRadius:20},"& .MuiButtonGroup-lastButton":{borderTopRightRadius:20,borderBottomRightRadius:20}}),children:[
30
+ /* @__PURE__ */e.jsx(_.default,{onClick:()=>{ue(de==le?de:de+1),null==Z||Z(de)},children:/* @__PURE__ */e.jsx("img",{src:d.images.common.expand})}),
31
+ /* @__PURE__ */e.jsx(_.default,{onClick:()=>{ue(1!=de?de-1:1),null==ee||ee(de)},children:/* @__PURE__ */e.jsx("img",{src:d.images.common.collapse})})]})]}),H&&/* @__PURE__ */e.jsx(T.default,{flexItem:!0,orientation:"vertical",sx:{height:"50%",alignSelf:"auto"}})]}),H&&/* @__PURE__ */e.jsxs(b.default,{sx:{display:"flex",alignItems:"center",gap:.5},children:[
32
+ /* @__PURE__ */e.jsx(l.Typography,{type:"s3",weight:"medium",color:"grey.800",children:"As of: "}),
33
+ /* @__PURE__ */e.jsx(o.ReportButtons,{zIndex:997,className:"reportsTitleBar--RightContent",dropdownMenuButtonData:{icon:/* @__PURE__ */e.jsx(R.Calendar,{fontSize:"small"}),children:/* @__PURE__ */e.jsxs(e.Fragment,{children:[u.RANGE[he],
34
+ /* @__PURE__ */e.jsx(i.default,{})]}),options:we},toggleCallback:W}),
35
+ /* @__PURE__ */e.jsx("div",{ref:Re})]})]})]}),
36
+ /* @__PURE__ */e.jsx(C.default,{sx:{zIndex:9999},open:ve,anchorEl:_e.current,role:void 0,transition:!0,disablePortal:!0,children:({TransitionProps:l,placement:r})=>/* @__PURE__ */e.jsx(E.default,{...l,style:{margin:"0 20px 0 20px",transformOrigin:"bottom"===r?"center top":"center bottom"},children:/* @__PURE__ */e.jsx(B.default,{children:/* @__PURE__ */e.jsx(S.ClickAwayListener,{onClickAway:Se,children:/* @__PURE__ */e.jsxs(b.default,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-end"},children:[
37
+ /* @__PURE__ */e.jsx("div",{children:K?/* @__PURE__ */e.jsx(c.DateRange,{editableDateInputs:!0,onChange:e=>Me(e.selection),moveRangeOnFirstSelection:!1,ranges:[Te],locale:j.enUS}):/* @__PURE__ */e.jsx(c.Calendar,{onChange:e=>Ye(e),date:be,locale:j.enUS})}),
38
+ /* @__PURE__ */e.jsx(b.default,{sx:{padding:"0 12px 12px 0"},children:/* @__PURE__ */e.jsx(t.Button,{variant:"contained",sx:{width:"fit-content"},onClick:Ae,children:De("common.apply")})})]})})})})})]})};exports.ReportsTitleBar=N,exports.default=N;
39
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../src/components/reports-title-bar/reports-title-bar.tsx"],"sourcesContent":["import Button from \"../button/button\";\nimport Typography from \"../typography/typography\";\nimport \"./reports-title-bar.scss\";\n\nimport TitleDropdownButton from \"../title-dropdown-button/title-dropdown-button\";\nimport { useEffect, useRef, useState } from \"react\";\nimport KeyboardArrowDownIcon from \"@mui/icons-material/KeyboardArrowDown\";\nimport { generateFields } from \"../../utils/common\";\nimport ReportButtons, { IReportButtons } from \"./report-buttons/report-buttons\";\nimport TabBar, { TabProps } from \"../tabs/tabs\";\nimport { Box, ButtonGroup, ClickAwayListener, Grow, Menu, MenuItem, Paper, Popper, Button as MuiButton, Divider } from \"@mui/material\";\nimport images from \"../../assets/images\";\nimport {\n handleCompareDateRange,\n RANGE,\n} from \"../../utils/date-range\";\nimport { DateRange, Calendar } from \"react-date-range\";\nimport \"react-date-range/dist/styles.css\"; // main css file\nimport \"react-date-range/dist/theme/default.css\"; // theme css file\nimport dayjs from \"dayjs\";\nimport { useAppDispatch } from \"../../redux/hooks\";\nimport { fetchCompanies } from \"./redux/actionCreator\";\nimport SearchableSelect from \"../searchable-select\";\nimport Checkbox from \"../checkbox/checkbox\";\nimport { useTranslation } from \"react-i18next\";\nimport React from \"react\";\nimport { Calendar as CalendarIcon, Export as ExportIcon, Filter as FilterIcon } from \"../icons\";\nimport { enUS } from 'date-fns/locale';\n\ninterface IReportFilters {\n company: number;\n start_date: string;\n end_date: string;\n as_of_date: string;\n}\n\ninterface ActionBarPropsType extends Partial<TabProps>, IReportButtons {\n title: string;\n handleAddButton?: (e?: any) => void;\n isTitleMenu?: boolean;\n titleMenus?: any;\n reportFilterFields?: any[];\n isDateFilterEnabled?: boolean;\n onDateFilterChange?: (\n data: Partial<{\n company: string | number;\n start_date: string;\n end_date: string;\n as_of_date: string;\n }>\n ) => void;\n filters?: Partial<IReportFilters>;\n isDateRange?: boolean;\n showDateFilter?: boolean;\n dateFilter?: string;\n showCancelButton?: boolean;\n}\n\ntype TDatePickerVal = {\n startDate?: Date;\n endDate?: Date;\n key?: string;\n};\n\nconst ReportsTitleBar = (props: ActionBarPropsType) => {\n const {\n title,\n handleAddButton,\n buttons = [],\n dropdownMenuButtonData,\n isTitleMenu = false,\n titleMenus = [],\n reportFilterFields = [],\n toggleCallback,\n tabs,\n activeValue,\n setActiveValue,\n isDateFilterEnabled=true,\n onDateFilterChange,\n // showCancelButton,\n filters = {},\n isDateRange = true,\n showDateFilter = false,\n dateFilter = 'TODAY',\n filterDropDown,\n handleRowsCollapse,\n handleRowsExpand,\n showLevelBtn=false,\n dataLength=0,\n filterKeys={},\n } = props;\n // const { companies } = useAppSelector((store) => store.reportsTitleBar);\n\n const dispatch = useAppDispatch();\n const customStyle =\n {\n \n '&.MuiOutlinedInput-root': {\n '& fieldset': {\n border: 'none',\n borderColor: `#ade7cb`,\n borderRadius: `25px`\n },\n '& .MuiSelect-outlined': {\n padding: `4.5px 14px !important`\n },\n // '&:hover fieldset': {\n // border: 'none',\n // },\n\n // '&.Mui-focused fieldset': {\n // border: 'none',\n // },\n display: `flex`,\n gap: `4px`,\n width: `220px`,\n // height: 30px,\n border: `1px solid #ade7cb`,\n borderRadius: `50px`,\n backgroundColor: `#ebf9f2`,\n color: `#289b64`,\n alignItems: `center`,\n cursor: `pointer`,\n // height: `30px`\n \n },\n }\nconst inputStyle=\n {\n border: \"none\",\n \"&.Mui-focused\": {\n borderColor: \"transparent\",\n },\n \"& .MuiOutlinedInput-input\": {\n // padding: \"0px\",\n fontSize: \"14px\",\n color:'#289b64'\n },\n \"& .MuiOutlinedInput-notchedOutline\": {\n border: \"none\", \n },\n '& .MuiSelect-icon': {\n color: 'green',\n },\n}\n\n const defaultSelected=[\n {\n value:'company',\n },\n ]\n const [selectedItems, setSelectedItems] = useState<string[]>(defaultSelected);\n const [level, setLevel] = useState<number>(1)\n\n // const selectedCompany = useMemo(\n // () =>\n // companies?.find((company) => filters?.company === company.id)\n // ?.company_name || \"\",\n // [companies, filters?.company]\n // );\n \n\n // eslint-disable-next-line unused-imports/no-unused-vars, @typescript-eslint/no-unused-vars\n const [actionAnchorEl, setActionAnchorEl] = useState<null | HTMLElement>(\n null\n );\n // eslint-disable-next-line unused-imports/no-unused-vars, @typescript-eslint/no-unused-vars\n const [allFields, setAllFields] = useState<any[]>([]);\n const [dateRange, setDateRange] = useState<keyof typeof RANGE>();\n const [open, setOpen] = useState<boolean>(false);\n const [exportAnchorEl, setExportAnchorEl] = useState<null | HTMLElement>(null);\n const [customDate, setCustomDate] = useState<Date>(\n new Date(dayjs(filters?.as_of_date || \"\").format(\"YYYY-MM-DD\"))\n );\n const {t}=useTranslation();\n const [customDateRange, setCustomDateRange] = useState<TDatePickerVal>({\n startDate: new Date(dayjs(filters?.start_date || \"\").format(\"YYYY-MM-DD\")),\n endDate: new Date(dayjs(filters?.end_date || \"\").format(\"YYYY-MM-DD\")),\n key: \"selection\",\n });\n\n const anchorRef = useRef<HTMLDivElement | null>(null);\n const dateSelectRef = useRef<HTMLDivElement>(null);\n const chipDateSelectRef = useRef<HTMLDivElement>(null);\n\n const handleCloseDatePopper = () => {\n anchorRef.current = null;\n setOpen(false);\n };\n\n const handleDateChange = async (range: keyof typeof RANGE) => {\n setDateRange(range);\n if (range === \"CUSTOM\") {\n anchorRef.current = dateSelectRef.current;\n setOpen(true);\n } else {\n const data = await handleCompareDateRange({\n range: RANGE[range],\n from: \"\",\n to: \"\",\n });\n onDateFilterChange?.({\n start_date: data?.from ? data?.from : \"\",\n end_date: data?.to ? data?.to : \"\",\n });\n handleCloseDatePopper();\n }\n };\n\n const handleClose = (event: Event) => {\n if (\n anchorRef.current &&\n anchorRef.current.contains(event.target as HTMLElement)\n ) {\n return;\n }\n\n handleCloseDatePopper();\n };\n const handleSelectChange = (value: any) => {\n if (selectedItems.some((item) => item.value == value.value)) {\n setSelectedItems(selectedItems.filter((item) => item?.value != value.value));\n return;\n }\n setSelectedItems([...selectedItems, value]);\n };\n // Create filters config from filterDropDown and filterKeys\n // If reportFilters is needed, it should be provided by the consuming application\n const filtersConfig = filterDropDown?.map((filter: any) => ({\n key: filter.value || filter.key,\n label: filter.name || filter.label || `Search ${filter.value || filter.key}`,\n placeholder: filter.placeholder || filter.name || filter.label,\n apiType: filter.apiType || filter.value || filter.key,\n valueKey: filterKeys?.[filter.value || filter.key] || filter.value || filter.key,\n customFilter: filter.customFilter || null,\n multiple: filter.multiple || false,\n })) || []\n\n const options = [\n {\n label: RANGE.TODAY,\n callback: () => {\n handleDateChange(\"TODAY\");\n },\n },\n {\n label: RANGE.THIS_WEEK,\n callback: () => {\n handleDateChange(\"THIS_WEEK\");\n },\n },\n {\n label: RANGE.THIS_MONTH,\n callback: () => {\n handleDateChange(\"THIS_MONTH\");\n },\n },\n {\n label: RANGE.THIS_QUARTER,\n callback: () => {\n handleDateChange(\"THIS_QUARTER\");\n },\n },\n {\n label: RANGE.THIS_YEAR,\n callback: () => {\n handleDateChange(\"THIS_YEAR\");\n },\n },\n {\n label: RANGE.YESTERDAY,\n callback: () => {\n handleDateChange(\"YESTERDAY\");\n },\n },\n {\n label: RANGE.PREVIOUS_WEEK,\n callback: () => {\n handleDateChange(\"PREVIOUS_WEEK\");\n },\n },\n {\n label: RANGE.PREVIOUS_MONTH,\n callback: () => {\n handleDateChange(\"PREVIOUS_MONTH\");\n },\n },\n {\n label: RANGE.PREVIOUS_QUARTER,\n callback: () => {\n handleDateChange(\"PREVIOUS_QUARTER\");\n },\n },\n {\n label: RANGE.PREVIOUS_YEAR,\n callback: () => {\n handleDateChange(\"PREVIOUS_YEAR\");\n },\n },\n {\n label: RANGE.CUSTOM,\n callback: () => {\n handleDateChange(\"CUSTOM\");\n },\n },\n ];\n\n const isChecked =(value: any) => {\n return selectedItems.some(item => item?.value == value?.value)\n }\n \n const handleFilterPopperSubmit = () => {\n const dateRangeFilter = {\n start_date: dayjs(customDateRange.startDate).format(\"YYYY-MM-DD\"),\n end_date: dayjs(customDateRange.endDate).format(\"YYYY-MM-DD\"),\n };\n const dateFilter = {\n as_of_date: dayjs(customDate).format(\"YYYY-MM-DD\"),\n };\n\n onDateFilterChange?.({\n ...(isDateRange ? dateRangeFilter : dateFilter),\n });\n handleCloseDatePopper();\n };\n function showFilter(val) {\n return selectedItems.some(item => item?.value == val)\n }\n\n const getStartAndEndDate = (filters: any) => {\n const startDate = dayjs(filters?.start_date).isValid() ? dayjs(filters.start_date).toDate() : new Date();\n const endDate = dayjs(filters?.end_date).isValid() ? dayjs(filters.end_date).toDate() : new Date();\n return { startDate, endDate };\n};\n\n useEffect(() => {\n setCustomDate(\n new Date(dayjs(filters?.as_of_date || \"\").format(\"YYYY-MM-DD\"))\n );\n }, [filters?.as_of_date]);\n\n useEffect(() => {\n setCustomDateRange({\n ...customDateRange,\n ...getStartAndEndDate(filters)\n });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [filters?.end_date, filters?.start_date]);\n\n useEffect(() => {\n if (open) {\n if (isDateRange) {\n setCustomDateRange({\n ...customDateRange,\n ...getStartAndEndDate(filters)\n });\n } else {\n setCustomDate(\n new Date(dayjs(filters?.as_of_date || \"\").format(\"YYYY-MM-DD\"))\n );\n }\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [open, isDateRange]);\n\n useEffect(() => {\n dispatch(fetchCompanies());\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n useEffect(() => {\n setAllFields(generateFields(reportFilterFields));\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n useEffect(() => {\n handleDateChange(dateFilter)\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [dateFilter]);\n\n const filterDropDownFunc = () => {\n return (\n <Menu\n anchorEl={actionAnchorEl}\n open={Boolean(actionAnchorEl)}\n onClose={handleFilterClose}\n >\n {/* <MenuItem className=\"inventoryReportsTitleBar--report-filter\"> */}\n {/* Add your options here */}\n {filterDropDown?.map((item) => (\n <MenuItem onClick={() => handleSelectChange(item)} key={item} value={item?.value}>\n <Checkbox checked={isChecked(item)} />\n <Typography sx={{marginLeft:'10px'}} color='theme.neutral.800' type='s3'>{item?.name}</Typography>\n </MenuItem>\n ))}\n {/* </MenuItem> */}\n </Menu>\n );\n };\n\n const renderFilter = ({\n key,\n label,\n placeholder,\n apiType,\n valueKey,\n customFilter,\n multiple = false,\n options,\n show=true,\n showCancelButton=true\n }: FilterConfig) => {\n if (!showFilter(key)||!show) return null;\n \n return (\n // <div className=\"search-filter\" key={key}>\n <SearchableSelect\n labelId={`${key}-label`}\n searchPlaceholder={label}\n value={filters?.[valueKey]}\n onChange={(e) => onDateFilterChange({ [valueKey]: e.target.value })}\n showCancelButton={showCancelButton}\n apiType={apiType}\n options={options}\n multiple={multiple}\n placeholder={placeholder}\n customeFilter={customFilter}\n // CustomDropDownIcon={FilterAltIcon}\n customStyle={customStyle}\n inputStyle={inputStyle}\n />\n // </div>\n );\n };\n const FilterContainer = () => (\n <>\n {filtersConfig.map(renderFilter)}\n </>\n );\n const handleFilterClose = () => {\n setActionAnchorEl(null);\n };\n\n const ExportContainer = React.memo(()=>{\n const handleClose = () => setExportAnchorEl(null);\n return(\n <Menu\n open={Boolean(exportAnchorEl)}\n anchorEl={exportAnchorEl}\n onClose={handleClose}\n anchorOrigin={{\n vertical: \"bottom\",\n horizontal: \"right\",\n }}\n transformOrigin={{\n vertical: \"top\",\n horizontal: \"right\",\n }}\n >\n {dropdownMenuButtonData?.options?.map((option, index) => (\n <MenuItem\n key={index}\n onClick={() => {\n option.callback();\n setExportAnchorEl(null);\n }} \n >\n <Typography type=\"s4\" weight=\"medium\" color={'inherit'}> {option.label}</Typography>\n </MenuItem>\n ))}\n </Menu>\n )\n })\n\n return (\n <div>\n <div className=\"reportsTitleBar\">\n <div className=\"reportsTitleBar--LeftContent\">\n {isTitleMenu ? (\n <div style={{ zIndex: 999 }}>\n <TitleDropdownButton\n onClick={handleAddButton}\n options={titleMenus}\n isMenuThirdItemDisabled={true}\n >\n {title}\n </TitleDropdownButton>\n </div>\n ) : (\n <Typography type=\"h3\" weight=\"medium\" color=\"theme.secondary.1000\">\n {title}\n </Typography>\n )}\n </div>\n \n <ReportButtons\n zIndex={999}\n className=\"reportsTitleBar--RightContent\"\n buttons={buttons}\n />\n </div>\n {tabs?.length ? (\n <div>\n <TabBar\n tabs={tabs || []}\n activeValue={activeValue}\n setActiveValue={setActiveValue}\n isTabViewOnly={true}\n />\n </div>\n ) : null}\n <Box sx={{ display: \"flex\", justifyContent: \"space-between\", my: 2.5, mx: 1 }}>\n <div className=\"reportsTitleBar--FilterWrapper\">\n {FilterContainer()}\n { (filters?.end_date && showDateFilter) && (\n <div style={{ display: \"flex\", gap: \"8px\" }}>\n <div\n className=\"reportsTitleBar--FilterWrapper--Chip\"\n ref={chipDateSelectRef}\n onClick={() => {\n if (!open) {\n anchorRef.current = chipDateSelectRef.current;\n setOpen(true);\n } else {\n handleCloseDatePopper();\n }\n }}\n >\n <div\n className=\"reportsTitleBar--FilterWrapper--Chip--Text\"\n title={`${dayjs(filters?.start_date).format(\"DD/MM/YYYY\")} - ${dayjs(filters?.end_date).format(\"DD/MM/YYYY\")}`}\n >\n <Typography type=\"s4\" weight=\"medium\">\n {t(\"common.dateRange\")}:\n </Typography>\n <Typography\n className=\"reportsTitleBar--FilterWrapper--Chip--Text--Value\"\n type=\"s4\"\n >\n {dayjs(filters?.start_date).format(\"DD/MM/YYYY\")} -{\" \"}\n {dayjs(filters?.end_date).format(\"DD/MM/YYYY\")}\n </Typography>\n </div>\n <KeyboardArrowDownIcon />\n </div>\n </div>\n )}\n {(customDateRange?.startDate && customDateRange?.endDate && isDateFilterEnabled && !['TODAY','YESTERDAY'].includes(dateRange)) && (\n \n <>\n {customDateRange?.startDate && (\n <div style={{ display: \"flex\", gap: \"8px\" }}>\n <div\n className=\"reportsTitleBar--FilterWrapper--Chip\"\n style={{padding:' 5px 12px'}}\n ref={chipDateSelectRef}\n \n >\n <div\n className=\"reportsTitleBar--FilterWrapper--Chip--Text\"\n title={`${dayjs(customDateRange?.startDate).format(\"DD/MM/YYYY\")}`}\n >\n <Typography type=\"s4\" weight=\"medium\">\n {t(\"common.startDate\")}:\n </Typography>\n <Typography\n className=\"reportsTitleBar--FilterWrapper--Chip--Text--Value\"\n type=\"s4\"\n >\n {dayjs(customDateRange?.startDate).format(\"DD/MM/YYYY\")}\n </Typography>\n </div>\n {/* <KeyboardArrowDownIcon /> */}\n </div>\n </div>\n )}\n {customDateRange?.endDate && (\n <div style={{ display: \"flex\", gap: \"8px\" }}>\n <div\n className=\"reportsTitleBar--FilterWrapper--Chip\"\n ref={chipDateSelectRef}\n style={{padding:' 5px 12px'}}\n >\n <div\n className=\"reportsTitleBar--FilterWrapper--Chip--Text\"\n title={`${dayjs(customDateRange?.startDate).format(\"DD/MM/YYYY\")}`}\n >\n <Typography type=\"s4\" weight=\"medium\">\n {t(\"common.endDate\")}:\n </Typography>\n <Typography\n className=\"reportsTitleBar--FilterWrapper--Chip--Text--Value\"\n type=\"s4\"\n >\n {dayjs(customDateRange?.endDate).format(\"DD/MM/YYYY\")}\n </Typography>\n </div>\n {/* <KeyboardArrowDownIcon /> */}\n </div>\n </div>\n )}\n </>\n )}\n {filters?.as_of_date && (\n <div style={{ display: \"flex\", gap: \"8px\" }}>\n <div\n className=\"reportsTitleBar--FilterWrapper--Chip\"\n ref={chipDateSelectRef}\n onClick={() => {\n if (!open) {\n anchorRef.current = chipDateSelectRef.current;\n setOpen(true);\n } else {\n handleCloseDatePopper();\n }\n }}\n >\n <div\n className=\"reportsTitleBar--FilterWrapper--Chip--Text\"\n title={`${dayjs(filters?.as_of_date).format(\"DD/MM/YYYY\")}`}\n >\n <Typography type=\"s4\" weight=\"medium\">\n {t(\"common.date\")}:\n </Typography>\n <Typography\n className=\"reportsTitleBar--FilterWrapper--Chip--Text--Value\"\n type=\"s4\"\n >\n {dayjs(filters?.as_of_date).format(\"DD/MM/YYYY\")}\n </Typography>\n </div>\n <KeyboardArrowDownIcon />\n </div>\n </div>\n )}\n {/* {((filters?.company && selectedCompany) ||\n (filters?.start_date && filters?.end_date) ||\n filters?.as_of_date) &&\n reportFilterFields?.length\n ? \"|\"\n : \"\"} */}\n </div>\n <div className=\"report-display\">\n {dropdownMenuButtonData?.options?.length>0 && \n <Box> \n <Button\n sx={({ palette }) => ({\n border: \"1px solid\",\n borderColor: 'grey.200',\n borderRadius: \"50px\",\n color: `${palette.grey[800]} !important`,\n '&:hover': {\n bgcolor: `${palette.grey[200]} !important`,\n }\n })}\n variant=\"text\"\n startIcon={<ExportIcon fontSize=\"small\"/>}\n onClick={(event) => setExportAnchorEl (event.currentTarget)}\n >\n {t(\"common.export\")}\n </Button>\n {exportAnchorEl && (\n <ExportContainer />\n ) }\n </Box>\n }\n \n {filterDropDown?.length && \n <>\n <Box> \n <Button\n sx={({ palette }) => ({\n border: \"1px solid\",\n borderColor: 'grey.200',\n borderRadius: \"50px\",\n color: `${palette.grey[800]} !important`,\n '&:hover': {\n bgcolor: `${palette.grey[200]} !important`,\n }\n })}\n variant=\"text\"\n startIcon={<FilterIcon fontSize=\"small\"/>}\n onClick={(event) => setActionAnchorEl(event.currentTarget)}\n >\n {t(\"common.filter\")}\n </Button>\n </Box>\n {showLevelBtn && <Divider flexItem orientation=\"vertical\" sx= {{ height: '50%', alignSelf: 'auto'}} />}\n </>\n }\n \n {filterDropDownFunc()}\n {showLevelBtn && (\n <>\n <Box className=\"reportsTitleBar--FilterAction--lvWrapper\" >\n <Typography type=\"s3\" weight=\"medium\" color='grey.800'> Level {level} of {dataLength}</Typography>\n <ButtonGroup variant=\"outlined\" disableElevation sx={({ palette }) => ({ \n '& .MuiButton-root' :{\n borderColor: `${palette.grey[200]} !important`,\n '&:hover': {\n bgcolor: `${palette.grey[200]} !important`,\n }\n },\n '& .MuiButtonGroup-firstButton' : {\n borderTopLeftRadius: 20,\n borderBottomLeftRadius: 20\n },\n '& .MuiButtonGroup-lastButton' : {\n borderTopRightRadius: 20,\n borderBottomRightRadius: 20\n }\n })}>\n <MuiButton onClick={() => {\n setLevel(level == dataLength ? level : level + 1)\n handleRowsCollapse?.(level)\n }}>\n <img src={images.common.expand} />\n </MuiButton>\n <MuiButton onClick={() => {\n setLevel(level != 1 ? level - 1 : 1)\n handleRowsExpand?.(level)\n }}>\n <img src={images.common.collapse} />\n </MuiButton>\n </ButtonGroup>\n </Box>\n {isDateFilterEnabled && <Divider flexItem orientation=\"vertical\" sx= {{ height: '50%', alignSelf: 'auto'}} />}\n </>\n )}\n {isDateFilterEnabled && (\n <Box sx={{ display: 'flex', alignItems: 'center', gap: 0.5 }}>\n <Typography type=\"s3\" weight=\"medium\" color='grey.800'>As of: </Typography>\n <ReportButtons\n zIndex={997}\n className=\"reportsTitleBar--RightContent\"\n dropdownMenuButtonData={{\n icon: <CalendarIcon fontSize=\"small\"/>,\n children: (\n <>\n {RANGE[dateRange]}\n <KeyboardArrowDownIcon />\n </>\n ),\n options: options,\n }}\n toggleCallback={toggleCallback}\n />\n <div ref={dateSelectRef}></div>\n </Box>\n )}\n </div>\n </Box>\n {/* <Filter\n open={openFilterPopup}\n onClose={() => setOpenFilterPopup(false)}\n fields={allFields}\n onSelectedFilter={(filterName: string) => console.log(filterName)}\n // getFilterStatesOnApply={() => {}}\n applyFilter={(val: any) => console.log('val', val)}\n /> */}\n <Popper\n sx={{\n zIndex: 9999,\n }}\n open={open}\n anchorEl={anchorRef.current}\n role={undefined}\n transition\n disablePortal\n >\n {({ TransitionProps, placement }) => (\n <Grow\n {...TransitionProps}\n style={{\n margin: \"0 20px 0 20px\",\n transformOrigin:\n placement === \"bottom\" ? \"center top\" : \"center bottom\",\n }}\n >\n <Paper>\n <ClickAwayListener onClickAway={handleClose}>\n <Box\n sx={{\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"flex-end\",\n }}\n >\n <div>\n {isDateRange ? (\n <DateRange\n editableDateInputs={true}\n onChange={(item) => setCustomDateRange(item.selection)}\n moveRangeOnFirstSelection={false}\n ranges={[customDateRange]}\n locale={enUS}\n />\n ) : (\n <Calendar\n onChange={(item) => setCustomDate(item)}\n date={customDate}\n locale={enUS}\n />\n )}\n </div>\n <Box sx={{ padding: \"0 12px 12px 0\" }}>\n <Button\n variant=\"contained\"\n sx={{ width: \"fit-content\" }}\n onClick={handleFilterPopperSubmit}\n >\n {t(\"common.apply\")}\n </Button>\n </Box>\n </Box>\n </ClickAwayListener>\n </Paper>\n </Grow>\n )}\n </Popper>\n </div>\n );\n};\n\nexport { ReportsTitleBar };\nexport default ReportsTitleBar;\n"],"names":["ReportsTitleBar","props","title","handleAddButton","buttons","dropdownMenuButtonData","isTitleMenu","titleMenus","reportFilterFields","toggleCallback","tabs","activeValue","setActiveValue","isDateFilterEnabled","onDateFilterChange","filters","isDateRange","showDateFilter","dateFilter","filterDropDown","handleRowsCollapse","handleRowsExpand","showLevelBtn","dataLength","filterKeys","dispatch","useAppDispatch","customStyle","border","borderColor","borderRadius","padding","display","gap","width","backgroundColor","color","alignItems","cursor","inputStyle","fontSize","selectedItems","setSelectedItems","useState","value","level","setLevel","actionAnchorEl","setActionAnchorEl","allFields","setAllFields","dateRange","setDateRange","open","setOpen","exportAnchorEl","setExportAnchorEl","customDate","setCustomDate","Date","dayjs","as_of_date","format","t","useTranslation","customDateRange","setCustomDateRange","startDate","start_date","endDate","end_date","key","anchorRef","useRef","dateSelectRef","chipDateSelectRef","handleCloseDatePopper","current","handleDateChange","async","range","data","handleCompareDateRange","RANGE","from","to","handleClose","event","contains","target","filtersConfig","map","filter","label","name","placeholder","apiType","valueKey","customFilter","multiple","options","TODAY","callback","THIS_WEEK","THIS_MONTH","THIS_QUARTER","THIS_YEAR","YESTERDAY","PREVIOUS_WEEK","PREVIOUS_MONTH","PREVIOUS_QUARTER","PREVIOUS_YEAR","CUSTOM","handleFilterPopperSubmit","dateRangeFilter","getStartAndEndDate","isValid","toDate","useEffect","fetchCompanies","generateFields","ExportContainer","React","memo","jsx","Menu","Boolean","anchorEl","onClose","anchorOrigin","vertical","horizontal","transformOrigin","children","_a","option","index","MenuItem","onClick","Typography","type","weight","jsxs","className","style","zIndex","TitleDropdownButton","isMenuThirdItemDisabled","ReportButtons","length","TabBar","isTabViewOnly","Box","sx","justifyContent","my","mx","Fragment","show","showCancelButton","val","some","item","SearchableSelect","labelId","searchPlaceholder","onChange","e","customeFilter","ref","KeyboardArrowDownIcon","includes","Button","palette","grey","bgcolor","variant","startIcon","ExportIcon","currentTarget","FilterIcon","Divider","flexItem","orientation","height","alignSelf","handleSelectChange","Checkbox","checked","marginLeft","ButtonGroup","disableElevation","borderTopLeftRadius","borderBottomLeftRadius","borderTopRightRadius","borderBottomRightRadius","MuiButton","src","images","common","expand","collapse","icon","CalendarIcon","Popper","role","transition","disablePortal","TransitionProps","placement","Grow","margin","Paper","ClickAwayListener","onClickAway","flexDirection","DateRange","editableDateInputs","selection","moveRangeOnFirstSelection","ranges","locale","enUS","Calendar","date"],"mappings":"y3DAgEA,MAAMA,EAAmBC,UACvB,MAAMC,MACJA,EAAAC,gBACAA,EAAAC,QACAA,EAAU,GAAAC,uBACVA,EAAAC,YACAA,GAAc,EAAAC,WACdA,EAAa,GAAAC,mBACbA,EAAqB,GAAAC,eACrBA,EAAAC,KACAA,EAAAA,Y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AAY,YAGdgG,SAAA;iBAAAT,IAAC,OACES,SAAArH,iBACC4G,EAAAA,IAAC4F,EAAAA,UAAA,CACCC,oBAAoB,EACpBnD,SAAWJ,GAAShG,GAAmBgG,EAAKwD,WAC5CC,2BAA2B,EAC3BC,OAAQ,CAAC3J,IACT4J,OAAQC,EAAAA,sBAGVlG,EAAAA,IAACmG,EAAAA,SAAA,CACCzD,SAAWJ,GAASxG,GAAcwG,GAClC8D,KAAMvK,GACNoK,OAAQC,EAAAA;qBAIbtE,EAAAA,QAAA,CAAIC,GAAI,CAAE1H,QAAS,iBAClBsG,wBAAAT,EAAAA,IAACgD,EAAAA,OAAA,CACCI,QAAQ,YACRvB,GAAI,CAAEvH,MAAO,eACbwG,QAASzB,GAENoB,YAAE"}
@@ -14,7 +14,7 @@ import IconButton from "../../../node_modules/@mui/material/IconButton/IconButto
14
14
  import Close from "../../../node_modules/@mui/icons-material/esm/Close/index.esm.js";
15
15
  import Grid from "../../../node_modules/@mui/material/Grid/Grid/index.esm.js";
16
16
  import Box from "../../../node_modules/@mui/material/Box/Box/index.esm.js";
17
- function ItemResponseDetails(props) {
17
+ const ItemResponseDetails = (props) => {
18
18
  var _a;
19
19
  const { isOpen, onClose, data, isRental = false } = props;
20
20
  const [responseItems, setResponseItems] = useState([]);
@@ -37,55 +37,47 @@ function ItemResponseDetails(props) {
37
37
  useEffect(() => {
38
38
  getResponseItems();
39
39
  }, [getResponseItems]);
40
- return /* @__PURE__ */ jsxs(
41
- Modal,
42
- {
43
- open: isOpen,
44
- onClose,
45
- maxWidth: "md",
46
- fullWidth: true,
47
- children: [
48
- isLoading && /* @__PURE__ */ jsx(ModalLoader, {}),
49
- /* @__PURE__ */ jsxs(DialogTitle, { className: "itemEntryModal--DialogTitle", children: [
50
- /* @__PURE__ */ jsx(Typography, { type: "s3", color: "inherit", weight: "medium", children: "Response Details" }),
51
- /* @__PURE__ */ jsx(IconButton, { onClick: onClose, children: /* @__PURE__ */ jsx(Close, { fontSize: "small" }) })
52
- ] }),
53
- /* @__PURE__ */ jsx(Grid, { container: true, children: /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", padding: 2, flexDirection: "column" }, children: [
54
- /* @__PURE__ */ jsx(Typography, { type: "s5", weight: "medium", color: "theme.secondary.800", children: "Item" }),
55
- /* @__PURE__ */ jsx(Typography, { type: "s3", weight: "medium", color: "theme.neutral.1000", children: (_a = data == null ? void 0 : data.item_data) == null ? void 0 : _a.name })
56
- ] }) }) }),
57
- /* @__PURE__ */ jsx(Grid, { container: true, p: 2, spacing: 3, children: /* @__PURE__ */ jsx(Grid, { item: true, xs: 12, children: /* @__PURE__ */ jsx(Box, { sx: { paddingTop: "1.2rem" }, children: /* @__PURE__ */ jsx(
58
- MaterialTable,
59
- {
60
- rows: responseItems || [],
61
- columns: transformTableColumns({
62
- columns: responseItemDetailsColumns,
63
- currencySymbol: void 0,
64
- translationFn: t,
65
- customizeValue: (row, columnAccessorKey, value) => {
66
- var _a2, _b;
67
- switch (columnAccessorKey) {
68
- case "item_data.vendor_info.vendor_name":
69
- return value || ((_b = (_a2 = row == null ? void 0 : row.original) == null ? void 0 : _a2.item_data) == null ? void 0 : _b.name);
70
- }
71
- }
72
- }),
73
- paginationModel: { pageNo: 1, limit: 10 },
74
- totalPages: 20,
75
- enableColumnDragging: true,
76
- isResetRow: false,
77
- enableEditing: false,
78
- columnOrder: ["mrt-row-select"],
79
- enableRowSelection: false,
80
- disabledDefaultActionColumnIcon: true,
81
- enableBottomToolbar: false
40
+ return /* @__PURE__ */ jsxs(Modal, { open: isOpen, onClose, maxWidth: "md", fullWidth: true, children: [
41
+ isLoading && /* @__PURE__ */ jsx(ModalLoader, {}),
42
+ /* @__PURE__ */ jsxs(DialogTitle, { className: "itemEntryModal--DialogTitle", children: [
43
+ /* @__PURE__ */ jsx(Typography, { type: "s3", color: "inherit", weight: "medium", children: "Response Details" }),
44
+ /* @__PURE__ */ jsx(IconButton, { onClick: onClose, children: /* @__PURE__ */ jsx(Close, { fontSize: "small" }) })
45
+ ] }),
46
+ /* @__PURE__ */ jsx(Grid, { container: true, children: /* @__PURE__ */ jsx(Grid, { item: true, xs: 4, children: /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", padding: 2, flexDirection: "column" }, children: [
47
+ /* @__PURE__ */ jsx(Typography, { type: "s5", weight: "medium", color: "theme.secondary.800", children: "Item" }),
48
+ /* @__PURE__ */ jsx(Typography, { type: "s3", weight: "medium", color: "theme.neutral.1000", children: (_a = data == null ? void 0 : data.item_data) == null ? void 0 : _a.name })
49
+ ] }) }) }),
50
+ /* @__PURE__ */ jsx(Grid, { container: true, p: 2, spacing: 3, children: /* @__PURE__ */ jsx(Grid, { item: true, xs: 12, children: /* @__PURE__ */ jsx(Box, { sx: { paddingTop: "1.2rem" }, children: /* @__PURE__ */ jsx(
51
+ MaterialTable,
52
+ {
53
+ rows: responseItems || [],
54
+ columns: transformTableColumns({
55
+ columns: responseItemDetailsColumns,
56
+ currencySymbol: void 0,
57
+ translationFn: t,
58
+ customizeValue: (row, columnAccessorKey, value) => {
59
+ var _a2, _b;
60
+ switch (columnAccessorKey) {
61
+ case "item_data.vendor_info.vendor_name":
62
+ return value || ((_b = (_a2 = row == null ? void 0 : row.original) == null ? void 0 : _a2.item_data) == null ? void 0 : _b.name);
63
+ }
82
64
  }
83
- ) }) }) })
84
- ]
85
- }
86
- );
87
- }
65
+ }),
66
+ paginationModel: { pageNo: 1, limit: 10 },
67
+ totalPages: 20,
68
+ enableColumnDragging: true,
69
+ isResetRow: false,
70
+ enableEditing: false,
71
+ columnOrder: ["mrt-row-select"],
72
+ enableRowSelection: false,
73
+ disabledDefaultActionColumnIcon: true,
74
+ enableBottomToolbar: false
75
+ }
76
+ ) }) }) })
77
+ ] });
78
+ };
88
79
  export {
80
+ ItemResponseDetails,
89
81
  ItemResponseDetails as default
90
82
  };
91
83
  //# sourceMappingURL=index.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":["../../../../src/components/rfq-response/item-response-details.tsx"],"sourcesContent":["import { Close } from \"@mui/icons-material\";\nimport { Box, DialogTitle, Grid, IconButton } from \"@mui/material\";\nimport MaterialTable from \"../material-table/material-table\";\nimport Modal from \"../modal/modal\";\nimport Typography from \"../typography/typography\";\nimport { useCallback, useEffect, useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { enqueueSnackbar } from \"notistack\";\nimport ModalLoader from \"../loaders/modal-loader\";\nimport {responseItemDetailsColumns} from '../../utils/constant'\nimport { fetchRentalResponseItems, fetchRfqItemsByIdForResponse, getErrorMessage } from \"../../utils/common\";\nimport { transformTableColumns } from \"../../utils/common-utility\";\nexport default function ItemResponseDetails(props:any){\n const {isOpen, onClose,data,isRental=false} = props\n const [responseItems, setResponseItems] = useState<any[]>([])\n const [isLoading, setIsLoading] = useState<boolean>(false)\n const {t} = useTranslation()\n\n const getResponseItems=useCallback(async()=>{\n if(!isOpen) return\n try {\n setIsLoading(true)\n const filters=`(rfq_line_item_id.in=${[data?.id]})`\n const rfqResponseItems =isRental?await fetchRentalResponseItems(filters): await fetchRfqItemsByIdForResponse(filters)\n setResponseItems(rfqResponseItems)\n } catch (error) {\n const errorMsg=getErrorMessage(error?.message)\n enqueueSnackbar(errorMsg,{variant:'error'})\n }finally{\n setTimeout(()=>setIsLoading(false),300)\n }\n },[isOpen,data?.id,isRental])\n useEffect(()=>{\n getResponseItems()\n },[getResponseItems])\n return(\n <Modal open={isOpen}\n onClose={onClose}\n maxWidth='md'\n fullWidth\n >\n {isLoading&&<ModalLoader />}\n <DialogTitle className='itemEntryModal--DialogTitle'>\n <Typography type='s3' color='inherit' weight='medium'>\n Response Details\n </Typography>\n <IconButton onClick={onClose}>\n <Close fontSize='small' />\n </IconButton>\n </DialogTitle>\n <Grid container>\n <Grid item xs={4}>\n <Box sx={{ display: 'flex',padding:2, flexDirection: 'column' }}>\n <Typography type='s5' weight=\"medium\" color='theme.secondary.800'>Item</Typography>\n <Typography type='s3' weight=\"medium\" color='theme.neutral.1000'>{data?.item_data?.name}</Typography>\n </Box>\n </Grid>\n </Grid>\n \n <Grid container p={2} spacing={3}>\n <Grid item xs={12}>\n <Box sx={{ paddingTop: '1.2rem' }}>\n <MaterialTable\n rows={responseItems || []}\n columns={transformTableColumns({\n columns: responseItemDetailsColumns,\n currencySymbol: undefined,\n translationFn: t,\n customizeValue: (row, columnAccessorKey, value) => {\n switch (columnAccessorKey) {\n case 'item_data.vendor_info.vendor_name':\n return value||row?.original?.item_data?.name\n }\n }\n \n \n })}\n paginationModel={{ pageNo: 1, limit: 10 }}\n totalPages={20}\n enableColumnDragging={true}\n isResetRow={false}\n enableEditing={false}\n columnOrder={['mrt-row-select']}\n enableRowSelection={false}\n disabledDefaultActionColumnIcon\n enableBottomToolbar={false}\n />\n </Box>\n </Grid>\n </Grid>\n \n </Modal>\n )\n}"],"names":["_a"],"mappings":";;;;;;;;;;;;;;;;AAYA,SAAwB,oBAAoB,OAAU;;AAClD,QAAM,EAAC,QAAQ,SAAQ,MAAK,WAAS,UAAS;AAC9C,QAAM,CAAC,eAAe,gBAAgB,IAAI,SAAgB,CAAA,CAAE;AAC5D,QAAM,CAAC,WAAW,YAAY,IAAI,SAAkB,KAAK;AACzD,QAAM,EAAC,EAAA,IAAK,eAAA;AAEZ,QAAM,mBAAiB,YAAY,YAAS;AACxC,QAAG,CAAC,OAAQ;AAChB,QAAI;AACA,mBAAa,IAAI;AACjB,YAAM,UAAQ,wBAAwB,CAAC,6BAAM,EAAE,CAAC;AACjD,YAAM,mBAAkB,WAAS,MAAM,yBAAyB,OAAO,IAAG,MAAM,6BAA6B,OAAO;AACpH,uBAAiB,gBAAgB;AAAA,IACpC,SAAS,OAAO;AACZ,YAAM,WAAS,gBAAgB,+BAAO,OAAO;AAC7C,sBAAgB,UAAS,EAAC,SAAQ,QAAA,CAAQ;AAAA,IAC9C,UAAA;AACI,iBAAW,MAAI,aAAa,KAAK,GAAE,GAA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K,mBAAmB,UAAU;;AAC/C,wBAAQ,mBAAA;AAAA,kBACJ,KAAK;AACD,2BAAO,WAAO,MAAAA,MAAA,2BAAK,aAAL,gBAAAA,IAAe,cAAf,mBAA0B;AAAA,gBAAA;AAAA,cAEpD;AAAA,YAAA,CAGJ;AAAA,YACD,iBAAiB,EAAE,QAAQ,GAAG,OAAO,GAAA;AAAA,YACrC,YAAY;AAAA,YACZ,sBAAsB;AAAA,YACtB,YAAY;AAAA,YACZ,eAAe;AAAA,YACf,aAAa,CAAC,gBAAgB;AAAA,YAC9B,oBAAoB;AAAA,YACpB,iCAA+B;AAAA,YAC/B,qBAAqB;AAAA,UAAA;AAAA,QAAA,EACzB,CACJ,GACJ,EAAA,CACJ;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAInC;"}
1
+ {"version":3,"file":"index.esm.js","sources":["../../../../src/components/rfq-response/item-response-details.tsx"],"sourcesContent":["import { Close } from '@mui/icons-material';\nimport { Box, DialogTitle, Grid, IconButton } from '@mui/material';\nimport MaterialTable from '../material-table/material-table';\nimport Modal from '../modal/modal';\nimport Typography from '../typography/typography';\nimport { useCallback, useEffect, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { enqueueSnackbar } from 'notistack';\nimport ModalLoader from '../loaders/modal-loader';\nimport { responseItemDetailsColumns } from '../../utils/constant';\nimport {\n\tfetchRentalResponseItems,\n\tfetchRfqItemsByIdForResponse,\n\tgetErrorMessage\n} from '../../utils/common';\nimport { transformTableColumns } from '../../utils/common-utility';\nexport const ItemResponseDetails = (props: any) => {\n\tconst { isOpen, onClose, data, isRental = false } = props;\n\tconst [responseItems, setResponseItems] = useState<any[]>([]);\n\tconst [isLoading, setIsLoading] = useState<boolean>(false);\n\tconst { t } = useTranslation();\n\n\tconst getResponseItems = useCallback(async () => {\n\t\tif (!isOpen) return;\n\t\ttry {\n\t\t\tsetIsLoading(true);\n\t\t\tconst filters = `(rfq_line_item_id.in=${[data?.id]})`;\n\t\t\tconst rfqResponseItems = isRental\n\t\t\t\t? await fetchRentalResponseItems(filters)\n\t\t\t\t: await fetchRfqItemsByIdForResponse(filters);\n\t\t\tsetResponseItems(rfqResponseItems);\n\t\t} catch (error) {\n\t\t\tconst errorMsg = getErrorMessage(error?.message);\n\t\t\tenqueueSnackbar(errorMsg, { variant: 'error' });\n\t\t} finally {\n\t\t\tsetTimeout(() => setIsLoading(false), 300);\n\t\t}\n\t}, [isOpen, data?.id, isRental]);\n\tuseEffect(() => {\n\t\tgetResponseItems();\n\t}, [getResponseItems]);\n\treturn (\n\t\t<Modal open={isOpen} onClose={onClose} maxWidth='md' fullWidth>\n\t\t\t{isLoading && <ModalLoader />}\n\t\t\t<DialogTitle className='itemEntryModal--DialogTitle'>\n\t\t\t\t<Typography type='s3' color='inherit' weight='medium'>\n\t\t\t\t\tResponse Details\n\t\t\t\t</Typography>\n\t\t\t\t<IconButton onClick={onClose}>\n\t\t\t\t\t<Close fontSize='small' />\n\t\t\t\t</IconButton>\n\t\t\t</DialogTitle>\n\t\t\t<Grid container>\n\t\t\t\t<Grid item xs={4}>\n\t\t\t\t\t<Box sx={{ display: 'flex', padding: 2, flexDirection: 'column' }}>\n\t\t\t\t\t\t<Typography type='s5' weight='medium' color='theme.secondary.800'>\n\t\t\t\t\t\t\tItem\n\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t<Typography type='s3' weight='medium' color='theme.neutral.1000'>\n\t\t\t\t\t\t\t{data?.item_data?.name}\n\t\t\t\t\t\t</Typography>\n\t\t\t\t\t</Box>\n\t\t\t\t</Grid>\n\t\t\t</Grid>\n\n\t\t\t<Grid container p={2} spacing={3}>\n\t\t\t\t<Grid item xs={12}>\n\t\t\t\t\t<Box sx={{ paddingTop: '1.2rem' }}>\n\t\t\t\t\t\t<MaterialTable\n\t\t\t\t\t\t\trows={responseItems || []}\n\t\t\t\t\t\t\tcolumns={transformTableColumns({\n\t\t\t\t\t\t\t\tcolumns: responseItemDetailsColumns,\n\t\t\t\t\t\t\t\tcurrencySymbol: undefined,\n\t\t\t\t\t\t\t\ttranslationFn: t,\n\t\t\t\t\t\t\t\tcustomizeValue: (row, columnAccessorKey, value) => {\n\t\t\t\t\t\t\t\t\tswitch (columnAccessorKey) {\n\t\t\t\t\t\t\t\t\t\tcase 'item_data.vendor_info.vendor_name':\n\t\t\t\t\t\t\t\t\t\t\treturn value || row?.original?.item_data?.name;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\tpaginationModel={{ pageNo: 1, limit: 10 }}\n\t\t\t\t\t\t\ttotalPages={20}\n\t\t\t\t\t\t\tenableColumnDragging={true}\n\t\t\t\t\t\t\tisResetRow={false}\n\t\t\t\t\t\t\tenableEditing={false}\n\t\t\t\t\t\t\tcolumnOrder={['mrt-row-select']}\n\t\t\t\t\t\t\tenableRowSelection={false}\n\t\t\t\t\t\t\tdisabledDefaultActionColumnIcon\n\t\t\t\t\t\t\tenableBottomToolbar={false}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</Box>\n\t\t\t\t</Grid>\n\t\t\t</Grid>\n\t\t</Modal>\n\t);\n};\n\nexport default ItemResponseDetails;\n"],"names":["_a"],"mappings":";;;;;;;;;;;;;;;;AAgBO,MAAM,sBAAsB,CAAC,UAAe;;AAClD,QAAM,EAAE,QAAQ,SAAS,MAAM,WAAW,UAAU;AACpD,QAAM,CAAC,eAAe,gBAAgB,IAAI,SAAgB,CAAA,CAAE;AAC5D,QAAM,CAAC,WAAW,YAAY,IAAI,SAAkB,KAAK;AACzD,QAAM,EAAE,EAAA,IAAM,eAAA;AAEd,QAAM,mBAAmB,YAAY,YAAY;AAChD,QAAI,CAAC,OAAQ;AACb,QAAI;AACH,mBAAa,IAAI;AACjB,YAAM,UAAU,wBAAwB,CAAC,6BAAM,EAAE,CAAC;AAClD,YAAM,mBAAmB,WACtB,MAAM,yBAAyB,OAAO,IACtC,MAAM,6BAA6B,OAAO;AAC7C,uBAAiB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AAM,iBAAiB,CAAA;AAAA,QACvB,SAAS,sBAAsB;AAAA,UAC9B,SAAS;AAAA,UACT,gBAAgB;AAAA,UAChB,eAAe;AAAA,UACf,gBAAgB,CAAC,KAAK,mBAAmB,UAAU;;AAClD,oBAAQ,mBAAA;AAAA,cACP,KAAK;AACJ,uBAAO,WAAS,MAAAA,MAAA,2BAAK,aAAL,gBAAAA,IAAe,cAAf,mBAA0B;AAAA,YAAA;AAAA,UAE7C;AAAA,QAAA,CACA;AAAA,QACD,iBAAiB,EAAE,QAAQ,GAAG,OAAO,GAAA;AAAA,QACrC,YAAY;AAAA,QACZ,sBAAsB;AAAA,QACtB,YAAY;AAAA,QACZ,eAAe;AAAA,QACf,aAAa,CAAC,gBAAgB;AAAA,QAC9B,oBAAoB;AAAA,QACpB,iCAA+B;AAAA,QAC/B,qBAAqB;AAAA,MAAA;AAAA,IAAA,EACtB,CACD,GACD,EAAA,CACD;AAAA,EAAA,GACD;AAEF;"}
@@ -1,9 +1,9 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),i=require("../../material-table/material-table/index.js"),t=require("../../modal/modal/index.js"),l=require("../../typography/typography/index.js"),n=require("react"),a=require("react-i18next"),o=require("../../../node_modules/notistack/notistack.esm/index.js"),r=require("../../loaders/modal-loader/index.js"),s=require("../../../utils/constant/index.js"),d=require("../../../utils/common/index.js"),u=require("../../../utils/common-utility/index.js"),m=require("../../../node_modules/@mui/material/DialogTitle/DialogTitle/index.js"),c=require("../../../node_modules/@mui/material/IconButton/IconButton/index.js"),x=require("../../../node_modules/@mui/icons-material/esm/Close/index.js"),j=require("../../../node_modules/@mui/material/Grid/Grid/index.js"),p=require("../../../node_modules/@mui/material/Box/Box/index.js");exports.default=function(f){var h;const{isOpen:g,onClose:y,data:q,isRental:v=!1}=f,[_,b]=n.useState([]),[T,w]=n.useState(!1),{t:C}=a.useTranslation(),R=n.useCallback(async()=>{if(g)try{w(!0);const e=`(rfq_line_item_id.in=${[null==q?void 0:q.id]})`,i=v?await d.fetchRentalResponseItems(e):await d.fetchRfqItemsByIdForResponse(e);b(i)}catch(e){const i=d.getErrorMessage(null==e?void 0:e.message);o.enqueueSnackbar(i,{variant:"error"})}finally{setTimeout(()=>w(!1),300)}},[g,null==q?void 0:q.id,v]);return n.useEffect(()=>{R()},[R]),/* @__PURE__ */e.jsxs(t.Modal,{open:g,onClose:y,maxWidth:"md",fullWidth:!0,children:[T&&/* @__PURE__ */e.jsx(r.ModalLoader,{}),
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),i=require("../../material-table/material-table/index.js"),t=require("../../modal/modal/index.js"),l=require("../../typography/typography/index.js"),n=require("react"),a=require("react-i18next"),o=require("../../../node_modules/notistack/notistack.esm/index.js"),r=require("../../loaders/modal-loader/index.js"),s=require("../../../utils/constant/index.js"),d=require("../../../utils/common/index.js"),u=require("../../../utils/common-utility/index.js"),m=require("../../../node_modules/@mui/material/DialogTitle/DialogTitle/index.js"),c=require("../../../node_modules/@mui/material/IconButton/IconButton/index.js"),x=require("../../../node_modules/@mui/icons-material/esm/Close/index.js"),p=require("../../../node_modules/@mui/material/Grid/Grid/index.js"),j=require("../../../node_modules/@mui/material/Box/Box/index.js");const h=h=>{var f;const{isOpen:g,onClose:y,data:q,isRental:v=!1}=h,[_,b]=n.useState([]),[T,R]=n.useState(!1),{t:w}=a.useTranslation(),C=n.useCallback(async()=>{if(g)try{R(!0);const e=`(rfq_line_item_id.in=${[null==q?void 0:q.id]})`,i=v?await d.fetchRentalResponseItems(e):await d.fetchRfqItemsByIdForResponse(e);b(i)}catch(e){const i=d.getErrorMessage(null==e?void 0:e.message);o.enqueueSnackbar(i,{variant:"error"})}finally{setTimeout(()=>R(!1),300)}},[g,null==q?void 0:q.id,v]);return n.useEffect(()=>{C()},[C]),/* @__PURE__ */e.jsxs(t.Modal,{open:g,onClose:y,maxWidth:"md",fullWidth:!0,children:[T&&/* @__PURE__ */e.jsx(r.ModalLoader,{}),
2
2
  /* @__PURE__ */e.jsxs(m.default,{className:"itemEntryModal--DialogTitle",children:[
3
3
  /* @__PURE__ */e.jsx(l.Typography,{type:"s3",color:"inherit",weight:"medium",children:"Response Details"}),
4
4
  /* @__PURE__ */e.jsx(c.default,{onClick:y,children:/* @__PURE__ */e.jsx(x.default,{fontSize:"small"})})]}),
5
- /* @__PURE__ */e.jsx(j.default,{container:!0,children:/* @__PURE__ */e.jsx(j.default,{item:!0,xs:4,children:/* @__PURE__ */e.jsxs(p.default,{sx:{display:"flex",padding:2,flexDirection:"column"},children:[
5
+ /* @__PURE__ */e.jsx(p.default,{container:!0,children:/* @__PURE__ */e.jsx(p.default,{item:!0,xs:4,children:/* @__PURE__ */e.jsxs(j.default,{sx:{display:"flex",padding:2,flexDirection:"column"},children:[
6
6
  /* @__PURE__ */e.jsx(l.Typography,{type:"s5",weight:"medium",color:"theme.secondary.800",children:"Item"}),
7
- /* @__PURE__ */e.jsx(l.Typography,{type:"s3",weight:"medium",color:"theme.neutral.1000",children:null==(h=null==q?void 0:q.item_data)?void 0:h.name})]})})}),
8
- /* @__PURE__ */e.jsx(j.default,{container:!0,p:2,spacing:3,children:/* @__PURE__ */e.jsx(j.default,{item:!0,xs:12,children:/* @__PURE__ */e.jsx(p.default,{sx:{paddingTop:"1.2rem"},children:/* @__PURE__ */e.jsx(i.MaterialTable,{rows:_||[],columns:u.transformTableColumns({columns:s.responseItemDetailsColumns,currencySymbol:void 0,translationFn:C,customizeValue:(e,i,t)=>{var l,n;if("item_data.vendor_info.vendor_name"===i)return t||(null==(n=null==(l=null==e?void 0:e.original)?void 0:l.item_data)?void 0:n.name)}}),paginationModel:{pageNo:1,limit:10},totalPages:20,enableColumnDragging:!0,isResetRow:!1,enableEditing:!1,columnOrder:["mrt-row-select"],enableRowSelection:!1,disabledDefaultActionColumnIcon:!0,enableBottomToolbar:!1})})})})]})};
7
+ /* @__PURE__ */e.jsx(l.Typography,{type:"s3",weight:"medium",color:"theme.neutral.1000",children:null==(f=null==q?void 0:q.item_data)?void 0:f.name})]})})}),
8
+ /* @__PURE__ */e.jsx(p.default,{container:!0,p:2,spacing:3,children:/* @__PURE__ */e.jsx(p.default,{item:!0,xs:12,children:/* @__PURE__ */e.jsx(j.default,{sx:{paddingTop:"1.2rem"},children:/* @__PURE__ */e.jsx(i.MaterialTable,{rows:_||[],columns:u.transformTableColumns({columns:s.responseItemDetailsColumns,currencySymbol:void 0,translationFn:w,customizeValue:(e,i,t)=>{var l,n;if("item_data.vendor_info.vendor_name"===i)return t||(null==(n=null==(l=null==e?void 0:e.original)?void 0:l.item_data)?void 0:n.name)}}),paginationModel:{pageNo:1,limit:10},totalPages:20,enableColumnDragging:!0,isResetRow:!1,enableEditing:!1,columnOrder:["mrt-row-select"],enableRowSelection:!1,disabledDefaultActionColumnIcon:!0,enableBottomToolbar:!1})})})})]})};exports.ItemResponseDetails=h,exports.default=h;
9
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/components/rfq-response/item-response-details.tsx"],"sourcesContent":["import { Close } from \"@mui/icons-material\";\nimport { Box, DialogTitle, Grid, IconButton } from \"@mui/material\";\nimport MaterialTable from \"../material-table/material-table\";\nimport Modal from \"../modal/modal\";\nimport Typography from \"../typography/typography\";\nimport { useCallback, useEffect, useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { enqueueSnackbar } from \"notistack\";\nimport ModalLoader from \"../loaders/modal-loader\";\nimport {responseItemDetailsColumns} from '../../utils/constant'\nimport { fetchRentalResponseItems, fetchRfqItemsByIdForResponse, getErrorMessage } from \"../../utils/common\";\nimport { transformTableColumns } from \"../../utils/common-utility\";\nexport default function ItemResponseDetails(props:any){\n const {isOpen, onClose,data,isRental=false} = props\n const [responseItems, setResponseItems] = useState<any[]>([])\n const [isLoading, setIsLoading] = useState<boolean>(false)\n const {t} = useTranslation()\n\n const getResponseItems=useCallback(async()=>{\n if(!isOpen) return\n try {\n setIsLoading(true)\n const filters=`(rfq_line_item_id.in=${[data?.id]})`\n const rfqResponseItems =isRental?await fetchRentalResponseItems(filters): await fetchRfqItemsByIdForResponse(filters)\n setResponseItems(rfqResponseItems)\n } catch (error) {\n const errorMsg=getErrorMessage(error?.message)\n enqueueSnackbar(errorMsg,{variant:'error'})\n }finally{\n setTimeout(()=>setIsLoading(false),300)\n }\n },[isOpen,data?.id,isRental])\n useEffect(()=>{\n getResponseItems()\n },[getResponseItems])\n return(\n <Modal open={isOpen}\n onClose={onClose}\n maxWidth='md'\n fullWidth\n >\n {isLoading&&<ModalLoader />}\n <DialogTitle className='itemEntryModal--DialogTitle'>\n <Typography type='s3' color='inherit' weight='medium'>\n Response Details\n </Typography>\n <IconButton onClick={onClose}>\n <Close fontSize='small' />\n </IconButton>\n </DialogTitle>\n <Grid container>\n <Grid item xs={4}>\n <Box sx={{ display: 'flex',padding:2, flexDirection: 'column' }}>\n <Typography type='s5' weight=\"medium\" color='theme.secondary.800'>Item</Typography>\n <Typography type='s3' weight=\"medium\" color='theme.neutral.1000'>{data?.item_data?.name}</Typography>\n </Box>\n </Grid>\n </Grid>\n \n <Grid container p={2} spacing={3}>\n <Grid item xs={12}>\n <Box sx={{ paddingTop: '1.2rem' }}>\n <MaterialTable\n rows={responseItems || []}\n columns={transformTableColumns({\n columns: responseItemDetailsColumns,\n currencySymbol: undefined,\n translationFn: t,\n customizeValue: (row, columnAccessorKey, value) => {\n switch (columnAccessorKey) {\n case 'item_data.vendor_info.vendor_name':\n return value||row?.original?.item_data?.name\n }\n }\n \n \n })}\n paginationModel={{ pageNo: 1, limit: 10 }}\n totalPages={20}\n enableColumnDragging={true}\n isResetRow={false}\n enableEditing={false}\n columnOrder={['mrt-row-select']}\n enableRowSelection={false}\n disabledDefaultActionColumnIcon\n enableBottomToolbar={false}\n />\n </Box>\n </Grid>\n </Grid>\n \n </Modal>\n )\n}"],"names":["props","isOpen","onClose","data","isRental","responseItems","setResponseItems","useState","isLoading","setIsLoading","t","useTranslation","getResponseItems","useCallback","async","filters","id","rfqResponseItems","fetchRentalResponseItems","fetchRfqItemsByIdForResponse","error","errorMsg","getErrorMessage","message","enqueueSnackbar","variant","setTimeout","useEffect","jsxs","Modal","open","maxWidth","fullWidth","children","ModalLoader","DialogTitle","className","jsx","Typography","type","color","weight","IconButton","onClick","Close","fontSize","Grid","container","item","xs","Box","sx","display","padding","flexDirection","_a","item_data","name","p","spacing","paddingTop","MaterialTable","rows","columns","transformTableColumns","responseItemDetailsColumns","currencySymbol","translationFn","customizeValue","row","columnAccessorKey","value","_b","original","paginationModel","pageNo","limit","totalPages","enableColumnDragging","isResetRow","enableEditing","columnOrder","enableRowSelection","disabledDefaultActionColumnIcon","enableBottomToolbar"],"mappings":"86BAYA,SAA4CA,SACxC,MAAMC,OAACA,EAAAC,QAAQA,EAAAC,KAAQA,EAAAC,SAAKA,GAAS,GAASJ,GACvCK,EAAeC,GAAoBC,EAAAA,SAAgB,KACnDC,EAAWC,GAAgBF,EAAAA,UAAkB,IAC9CG,EAACA,GAAKC,mBAENC,EAAiBC,EAAAA,YAAYC,UAC/B,GAAIb,EACR,IACIQ,GAAa,GACb,MAAMM,EAAQ,wBAAwB,CAAC,MAAAZ,OAAA,EAAAA,EAAMa,OACxCC,EAAkBb,QAAec,EAAAA,yBAAyBH,SAAgBI,EAAAA,6BAA6BJ,GAC7GT,EAAiBW,EACpB,OAASG,GACL,MAAMC,EAASC,EAAAA,gBAAgB,MAAAF,OAAA,EAAAA,EAAOG,SACtCC,EAAAA,gBAAgBH,EAAS,CAACI,QAAQ,SACtC,CAAA,QACIC,WAAW,IAAIjB,GAAa,GAAO,IACvC,GACE,CAACR,EAAO,MAAAE,OAAA,EAAAA,EAAMa,GAAGZ,IAInB,OAHAuB,EAAAA,UAAU,KACNf,KACF,CAACA,mBAECgB,EAAAA,KAACC,EAAAA,MAAA,CAAMC,KAAM7B,EACZC,UACA6B,SAAS,KACTC,WAAS,EAELC,SAAA,CAAAzB,w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,sBAAsB,EACtBC,YAAY,EACZC,eAAe,EACfC,YAAa,CAAC,kBACdC,oBAAoB,EACpBC,iCAA+B,EAC/BC,qBAAqB,YAQxE"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/components/rfq-response/item-response-details.tsx"],"sourcesContent":["import { Close } from '@mui/icons-material';\nimport { Box, DialogTitle, Grid, IconButton } from '@mui/material';\nimport MaterialTable from '../material-table/material-table';\nimport Modal from '../modal/modal';\nimport Typography from '../typography/typography';\nimport { useCallback, useEffect, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { enqueueSnackbar } from 'notistack';\nimport ModalLoader from '../loaders/modal-loader';\nimport { responseItemDetailsColumns } from '../../utils/constant';\nimport {\n\tfetchRentalResponseItems,\n\tfetchRfqItemsByIdForResponse,\n\tgetErrorMessage\n} from '../../utils/common';\nimport { transformTableColumns } from '../../utils/common-utility';\nexport const ItemResponseDetails = (props: any) => {\n\tconst { isOpen, onClose, data, isRental = false } = props;\n\tconst [responseItems, setResponseItems] = useState<any[]>([]);\n\tconst [isLoading, setIsLoading] = useState<boolean>(false);\n\tconst { t } = useTranslation();\n\n\tconst getResponseItems = useCallback(async () => {\n\t\tif (!isOpen) return;\n\t\ttry {\n\t\t\tsetIsLoading(true);\n\t\t\tconst filters = `(rfq_line_item_id.in=${[data?.id]})`;\n\t\t\tconst rfqResponseItems = isRental\n\t\t\t\t? await fetchRentalResponseItems(filters)\n\t\t\t\t: await fetchRfqItemsByIdForResponse(filters);\n\t\t\tsetResponseItems(rfqResponseItems);\n\t\t} catch (error) {\n\t\t\tconst errorMsg = getErrorMessage(error?.message);\n\t\t\tenqueueSnackbar(errorMsg, { variant: 'error' });\n\t\t} finally {\n\t\t\tsetTimeout(() => setIsLoading(false), 300);\n\t\t}\n\t}, [isOpen, data?.id, isRental]);\n\tuseEffect(() => {\n\t\tgetResponseItems();\n\t}, [getResponseItems]);\n\treturn (\n\t\t<Modal open={isOpen} onClose={onClose} maxWidth='md' fullWidth>\n\t\t\t{isLoading && <ModalLoader />}\n\t\t\t<DialogTitle className='itemEntryModal--DialogTitle'>\n\t\t\t\t<Typography type='s3' color='inherit' weight='medium'>\n\t\t\t\t\tResponse Details\n\t\t\t\t</Typography>\n\t\t\t\t<IconButton onClick={onClose}>\n\t\t\t\t\t<Close fontSize='small' />\n\t\t\t\t</IconButton>\n\t\t\t</DialogTitle>\n\t\t\t<Grid container>\n\t\t\t\t<Grid item xs={4}>\n\t\t\t\t\t<Box sx={{ display: 'flex', padding: 2, flexDirection: 'column' }}>\n\t\t\t\t\t\t<Typography type='s5' weight='medium' color='theme.secondary.800'>\n\t\t\t\t\t\t\tItem\n\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t<Typography type='s3' weight='medium' color='theme.neutral.1000'>\n\t\t\t\t\t\t\t{data?.item_data?.name}\n\t\t\t\t\t\t</Typography>\n\t\t\t\t\t</Box>\n\t\t\t\t</Grid>\n\t\t\t</Grid>\n\n\t\t\t<Grid container p={2} spacing={3}>\n\t\t\t\t<Grid item xs={12}>\n\t\t\t\t\t<Box sx={{ paddingTop: '1.2rem' }}>\n\t\t\t\t\t\t<MaterialTable\n\t\t\t\t\t\t\trows={responseItems || []}\n\t\t\t\t\t\t\tcolumns={transformTableColumns({\n\t\t\t\t\t\t\t\tcolumns: responseItemDetailsColumns,\n\t\t\t\t\t\t\t\tcurrencySymbol: undefined,\n\t\t\t\t\t\t\t\ttranslationFn: t,\n\t\t\t\t\t\t\t\tcustomizeValue: (row, columnAccessorKey, value) => {\n\t\t\t\t\t\t\t\t\tswitch (columnAccessorKey) {\n\t\t\t\t\t\t\t\t\t\tcase 'item_data.vendor_info.vendor_name':\n\t\t\t\t\t\t\t\t\t\t\treturn value || row?.original?.item_data?.name;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\tpaginationModel={{ pageNo: 1, limit: 10 }}\n\t\t\t\t\t\t\ttotalPages={20}\n\t\t\t\t\t\t\tenableColumnDragging={true}\n\t\t\t\t\t\t\tisResetRow={false}\n\t\t\t\t\t\t\tenableEditing={false}\n\t\t\t\t\t\t\tcolumnOrder={['mrt-row-select']}\n\t\t\t\t\t\t\tenableRowSelection={false}\n\t\t\t\t\t\t\tdisabledDefaultActionColumnIcon\n\t\t\t\t\t\t\tenableBottomToolbar={false}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</Box>\n\t\t\t\t</Grid>\n\t\t\t</Grid>\n\t\t</Modal>\n\t);\n};\n\nexport default ItemResponseDetails;\n"],"names":["ItemResponseDetails","props","isOpen","onClose","data","isRental","responseItems","setResponseItems","useState","isLoading","setIsLoading","t","useTranslation","getResponseItems","useCallback","async","filters","id","rfqResponseItems","fetchRentalResponseItems","fetchRfqItemsByIdForResponse","error","errorMsg","getErrorMessage","message","enqueueSnackbar","variant","setTimeout","useEffect","jsxs","Modal","open","maxWidth","fullWidth","children","ModalLoader","DialogTitle","className","jsx","Typography","type","color","weight","IconButton","onClick","Close","fontSize","Grid","container","item","xs","Box","sx","display","padding","flexDirection","_a","item_data","name","p","spacing","paddingTop","MaterialTable","rows","columns","transformTableColumns","responseItemDetailsColumns","currencySymbol","translationFn","customizeValue","row","columnAccessorKey","value","_b","original","paginationModel","pageNo","limit","totalPages","enableColumnDragging","isResetRow","enableEditing","columnOrder","enableRowSelection","disabledDefaultActionColumnIcon","enableBottomToolbar"],"mappings":"85BAgBO,MAAMA,EAAuBC,UACnC,MAAMC,OAAEA,EAAAC,QAAQA,EAAAC,KAASA,EAAAC,SAAMA,GAAW,GAAUJ,GAC7CK,EAAeC,GAAoBC,EAAAA,SAAgB,KACnDC,EAAWC,GAAgBF,EAAAA,UAAkB,IAC9CG,EAAEA,GAAMC,mBAERC,EAAmBC,EAAAA,YAAYC,UACpC,GAAKb,EACL,IACCQ,GAAa,GACb,MAAMM,EAAU,wBAAwB,CAAC,MAAAZ,OAAA,EAAAA,EAAMa,OACzCC,EAAmBb,QAChBc,EAA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AAA,QAAA,CAAIC,GAAI,CAAES,WAAY,UACtB3B,wBAAAI,EAAAA,IAACwB,EAAAA,cAAA,CACAC,KAAMzD,GAAiB,GACvB0D,QAASC,EAAAA,sBAAsB,CAC9BD,QAASE,EAAAA,2BACTC,oBAAgB,EAChBC,cAAezD,EACf0D,eAAgB,CAACC,EAAKC,EAAmBC,aACxC,GACM,sCADED,EAEN,OAAOC,IAAS,OAAAC,EAAA,OAAAjB,EAAA,MAAAc,OAAA,EAAAA,EAAKI,eAAL,EAAAlB,EAAeC,gBAAf,EAAAgB,EAA0Bf,SAI9CiB,gBAAiB,CAAEC,OAAQ,EAAGC,MAAO,IACrCC,WAAY,GACZC,sBAAsB,EACtBC,YAAY,EACZC,eAAe,EACfC,YAAa,CAAC,kBACdC,oBAAoB,EACpBC,iCAA+B,EAC/BC,qBAAqB"}
@@ -1 +1,2 @@
1
- export default function ItemResponseDetails(props: any): import("react/jsx-runtime").JSX.Element;
1
+ export declare const ItemResponseDetails: (props: any) => import("react/jsx-runtime").JSX.Element;
2
+ export default ItemResponseDetails;
@@ -1,4 +1,4 @@
1
- import { putV1ReportsUpdateScheduleReportId, postV1ReportsScheduleReport, getV1ReportsScheduleReport, getV1ReportsReportList, deleteV1ReportsScheduleReportId } from "../../../../api-client/api.system-feature/api/index.esm.js";
1
+ import { getV1ReportsScheduleReport, getV1ReportsReportList, putV1ReportsUpdateScheduleReportId, postV1ReportsScheduleReport, deleteV1ReportsScheduleReportId } from "../../../../api-client/api.system-feature/api/index.esm.js";
2
2
  const AUTO_POST_OPTIONS = [
3
3
  {
4
4
  label: "Day",
@@ -0,0 +1,25 @@
1
+ import { jsx, Fragment } from "react/jsx-runtime";
2
+ import { Chip } from "../../../chip/chip/index.esm.js";
3
+ import { Typography } from "../../../typography/typography/index.esm.js";
4
+ import Close from "../../../../node_modules/@mui/icons-material/esm/Close/index.esm.js";
5
+ const ChipOrPlaceholder = ({
6
+ data,
7
+ placeholder,
8
+ onDelete,
9
+ chipProps
10
+ }) => /* @__PURE__ */ jsx(Fragment, { children: data.length ? /* @__PURE__ */ jsx(
11
+ Chip,
12
+ {
13
+ variant: "outlined",
14
+ type: "normal",
15
+ label: `${data.length} Selected`,
16
+ deleteIcon: /* @__PURE__ */ jsx(Close, { fontSize: "large" }),
17
+ onDelete,
18
+ onMouseDown: (event) => event.stopPropagation(),
19
+ ...chipProps
20
+ }
21
+ ) : /* @__PURE__ */ jsx(Typography, { color: "inherit", type: "s3", children: placeholder }) });
22
+ export {
23
+ ChipOrPlaceholder as default
24
+ };
25
+ //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":["../../../../../src/components/select/controller/chip-or-placeholder.tsx"],"sourcesContent":["import { Close } from \"@mui/icons-material\";\r\nimport { ChipProps } from \"@mui/material\";\r\nimport Chip from \"../../chip/chip\";\r\nimport Typography from \"../../typography/typography\";\r\n\r\ninterface ChipOrPlaceholderProps {\r\n data: string[];\r\n placeholder: string;\r\n onDelete?: () => void;\r\n chipProps?: Omit<ChipProps, \"label\">;\r\n}\r\n\r\nconst ChipOrPlaceholder: React.FC<ChipOrPlaceholderProps> = ({\r\n data,\r\n placeholder,\r\n onDelete,\r\n chipProps,\r\n}) => (\r\n <>\r\n {data.length ? (\r\n <Chip\r\n variant=\"outlined\"\r\n type=\"normal\"\r\n label={`${data.length} Selected`}\r\n deleteIcon={<Close fontSize=\"large\" />}\r\n onDelete={onDelete}\r\n onMouseDown={(event) => event.stopPropagation()}\r\n {...chipProps}\r\n />\r\n ) : (\r\n <Typography color=\"inherit\" type=\"s3\">\r\n {placeholder}\r\n </Typography>\r\n )}\r\n </>\r\n);\r\n\r\nexport default ChipOrPlaceholder;\r\n"],"names":[],"mappings":";;;;AAYA,MAAM,oBAAsD,CAAC;AAAA,EAC3D;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MACE,oBAAA,UAAA,EACG,eAAK,SACJ;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,SAAQ;AAAA,IACR,MAAK;AAAA,IACL,OAAO,GAAG,KAAK,MAAM;AAAA,IACrB,YAAY,oBAAC,OAAA,EAAM,UAAS,QAAA,CAAQ;AAAA,IACpC;AAAA,IACA,aAAa,CAAC,UAAU,MAAM,gBAAA;AAAA,IAC7B,GAAG;AAAA,EAAA;AACN,wBAEC,YAAA,EAAW,OAAM,WAAU,MAAK,MAC9B,uBACH,EAAA,CAEJ;"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("../../../chip/chip/index.js"),t=require("../../../typography/typography/index.js"),o=require("../../../../node_modules/@mui/icons-material/esm/Close/index.js");exports.default=({data:i,placeholder:l,onDelete:n,chipProps:a})=>/* @__PURE__ */e.jsx(e.Fragment,{children:i.length?/* @__PURE__ */e.jsx(r.Chip,{variant:"outlined",type:"normal",label:`${i.length} Selected`,deleteIcon:/* @__PURE__ */e.jsx(o.default,{fontSize:"large"}),onDelete:n,onMouseDown:e=>e.stopPropagation(),...a}):/* @__PURE__ */e.jsx(t.Typography,{color:"inherit",type:"s3",children:l})});
2
+ //# sourceMappingURL=index.js.map