@erpsquad/common 1.8.41 → 1.8.42

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 (1064) 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 +4 -2
  4. package/dist/_virtual/index/index.esm2.js.map +1 -1
  5. package/dist/_virtual/index/index.esm3.js +2 -4
  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/components/action-bar/action-bar/index.esm.js +2 -2
  24. package/dist/components/action-bar/action-bar/index.js +11 -11
  25. package/dist/components/approval-wrapper/approval-wrapper/index.esm.js +1 -1
  26. package/dist/components/approval-wrapper/approval-wrapper/index.esm.js.map +1 -1
  27. package/dist/components/approval-wrapper/approval-wrapper/index.js +4 -4
  28. package/dist/components/approval-wrapper/approval-wrapper/index.js.map +1 -1
  29. package/dist/components/change-user-password-modal/change-user-password-modal/index.esm.js +2 -2
  30. package/dist/components/change-user-password-modal/change-user-password-modal/index.js +3 -3
  31. package/dist/components/charts/line-chart/area-lineChart/index.esm.js +2 -2
  32. package/dist/components/charts/line-chart/area-lineChart/index.esm.js.map +1 -1
  33. package/dist/components/charts/line-chart/area-lineChart/index.js.map +1 -1
  34. package/dist/components/dynamic-layout-wrapper/dynamic-layout-wrapper/index.esm.js +107 -1
  35. package/dist/components/dynamic-layout-wrapper/dynamic-layout-wrapper/index.esm.js.map +1 -1
  36. package/dist/components/dynamic-layout-wrapper/dynamic-layout-wrapper/index.js +7 -4
  37. package/dist/components/dynamic-layout-wrapper/dynamic-layout-wrapper/index.js.map +1 -1
  38. package/dist/components/examples/FlexibleReduxExample/index.esm.js +154 -0
  39. package/dist/components/examples/FlexibleReduxExample/index.esm.js.map +1 -0
  40. package/dist/components/examples/FlexibleReduxExample/index.js +19 -0
  41. package/dist/components/examples/FlexibleReduxExample/index.js.map +1 -0
  42. package/dist/components/filter/filter/index.esm.js +2 -2
  43. package/dist/components/filter/filter/index.js +7 -7
  44. package/dist/components/footer/index.esm.js +71 -0
  45. package/dist/components/footer/index.esm.js.map +1 -0
  46. package/dist/components/footer/index.js +7 -0
  47. package/dist/components/footer/index.js.map +1 -0
  48. package/dist/components/form-control/form-builder/element-controller/index.esm.js +96 -0
  49. package/dist/components/form-control/form-builder/element-controller/index.esm.js.map +1 -0
  50. package/dist/components/form-control/form-builder/element-controller/index.js +7 -0
  51. package/dist/components/form-control/form-builder/element-controller/index.js.map +1 -0
  52. package/dist/components/form-control/form-builder/form-builder-element/table/index.esm.js +1 -1
  53. package/dist/components/form-control/form-builder/form-builder-element/table/index.js +4 -4
  54. package/dist/components/form-control/form-builder/form-builder-element/table/index.js.map +1 -1
  55. package/dist/components/form-control/form-parser/data/index.esm.js +80 -0
  56. package/dist/components/form-control/form-parser/data/index.esm.js.map +1 -0
  57. package/dist/components/form-control/form-parser/data/index.js +2 -0
  58. package/dist/components/form-control/form-parser/data/index.js.map +1 -0
  59. package/dist/components/grid/custom-grid-card/custom-grid-card/index.esm.js +1 -1
  60. package/dist/components/grid/custom-grid-card/custom-grid-card/index.js +4 -4
  61. package/dist/components/header/components/notification-menu/notification-menu/index.esm.js +1 -1
  62. package/dist/components/header/components/notification-menu/notification-menu/index.js +28 -28
  63. package/dist/components/header/header/index.esm.js +1 -1
  64. package/dist/components/header/header/index.js +11 -11
  65. package/dist/components/header/header-enhanced/index.esm.js +405 -0
  66. package/dist/components/header/header-enhanced/index.esm.js.map +1 -0
  67. package/dist/components/header/header-enhanced/index.js +33 -0
  68. package/dist/components/header/header-enhanced/index.js.map +1 -0
  69. package/dist/components/header/redux/reducer/index.esm.js +6 -1
  70. package/dist/components/header/redux/reducer/index.esm.js.map +1 -1
  71. package/dist/components/header/redux/reducer/index.js +1 -1
  72. package/dist/components/header/redux/reducer/index.js.map +1 -1
  73. package/dist/components/header copy/index.esm.js +131 -0
  74. package/dist/components/header copy/index.esm.js.map +1 -0
  75. package/dist/components/header copy/index.js +11 -0
  76. package/dist/components/header copy/index.js.map +1 -0
  77. package/dist/components/icons/coupon/index.esm.js +29 -0
  78. package/dist/components/icons/coupon/index.esm.js.map +1 -0
  79. package/dist/components/icons/coupon/index.js +7 -0
  80. package/dist/components/icons/coupon/index.js.map +1 -0
  81. package/dist/components/icons/settings-fallback/index.esm.js +1 -1
  82. package/dist/components/icons/settings-fallback/index.js +2 -2
  83. package/dist/components/icons/settings-fallback/index.js.map +1 -1
  84. package/dist/components/icons/sort-arrow-icon/index.esm.js +4 -4
  85. package/dist/components/icons/sort-arrow-icon/index.esm.js.map +1 -1
  86. package/dist/components/icons/sort-arrow-icon/index.js +1 -1
  87. package/dist/components/icons/sort-arrow-icon/index.js.map +1 -1
  88. package/dist/components/index.d.ts +112 -277
  89. package/dist/components/index.esm.js +444 -603
  90. package/dist/components/index.esm.js.map +1 -1
  91. package/dist/components/index.js +1 -1
  92. package/dist/components/inventory-reports-title-bar/component/reportFilter/index.esm.js +400 -0
  93. package/dist/components/inventory-reports-title-bar/component/reportFilter/index.esm.js.map +1 -0
  94. package/dist/components/inventory-reports-title-bar/component/reportFilter/index.js +41 -0
  95. package/dist/components/inventory-reports-title-bar/component/reportFilter/index.js.map +1 -0
  96. package/dist/components/inventory-reports-title-bar/redux/reducer/index.esm.js +2 -0
  97. package/dist/components/inventory-reports-title-bar/redux/reducer/index.esm.js.map +1 -1
  98. package/dist/components/inventory-reports-title-bar/redux/reducer/index.js +1 -1
  99. package/dist/components/inventory-reports-title-bar/redux/reducer/index.js.map +1 -1
  100. package/dist/components/inventory-reports-title-bar/report-buttons/report-buttons/index.esm.js.map +1 -1
  101. package/dist/components/inventory-reports-title-bar/report-buttons/report-buttons/index.js.map +1 -1
  102. package/dist/components/listing/listing/index.esm.js +5 -5
  103. package/dist/components/listing/listing/index.esm.js.map +1 -1
  104. package/dist/components/listing/listing/index.js +5 -5
  105. package/dist/components/listing/listing/index.js.map +1 -1
  106. package/dist/components/material-editable-table/material-editable-table/index.esm.js +1 -1
  107. package/dist/components/material-editable-table/material-editable-table/index.js +2 -2
  108. package/dist/components/material-table/material-table/index.esm.js +4 -3
  109. package/dist/components/material-table/material-table/index.esm.js.map +1 -1
  110. package/dist/components/material-table/material-table/index.js +5 -5
  111. package/dist/components/material-table/material-table/index.js.map +1 -1
  112. package/dist/components/parties-modal/parties-modal/index.esm.js +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/protected-route/index.esm.js +20 -0
  116. package/dist/components/protected-route/index.esm.js.map +1 -1
  117. package/dist/components/protected-route/index.js +2 -2
  118. package/dist/components/protected-route/index.js.map +1 -1
  119. package/dist/components/reports-title-bar/redux/reducer/index.esm.js +2 -0
  120. package/dist/components/reports-title-bar/redux/reducer/index.esm.js.map +1 -1
  121. package/dist/components/reports-title-bar/redux/reducer/index.js +1 -1
  122. package/dist/components/reports-title-bar/redux/reducer/index.js.map +1 -1
  123. package/dist/components/reports-title-bar/reports-title-bar/index.esm.js +1 -1
  124. package/dist/components/reports-title-bar/reports-title-bar/index.js +8 -8
  125. package/dist/components/rfq-response/item-response-details/index.esm.js +1 -1
  126. package/dist/components/rfq-response/item-response-details/index.js +1 -1
  127. package/dist/components/rfq-response/item-response-details/index.js.map +1 -1
  128. package/dist/components/schedule-report/schedule-report/index.esm.js +2 -2
  129. package/dist/components/schedule-report/schedule-report/index.js +5 -5
  130. package/dist/components/schedule-report/schedule-report/index.js.map +1 -1
  131. package/dist/components/schedule-report/utils/common/index.esm.js +1 -1
  132. package/dist/components/share-modal/redux/reducer/index.esm.js +2 -0
  133. package/dist/components/share-modal/redux/reducer/index.esm.js.map +1 -1
  134. package/dist/components/share-modal/redux/reducer/index.js +1 -1
  135. package/dist/components/share-modal/redux/reducer/index.js.map +1 -1
  136. package/dist/components/share-modal/share-modal-enhanced/index.esm.js +287 -0
  137. package/dist/components/share-modal/share-modal-enhanced/index.esm.js.map +1 -0
  138. package/dist/components/share-modal/share-modal-enhanced/index.js +24 -0
  139. package/dist/components/share-modal/share-modal-enhanced/index.js.map +1 -0
  140. package/dist/components/sidebar/sidebar/index.esm.js +2 -2
  141. package/dist/components/sidebar/sidebar/index.js +9 -9
  142. package/dist/components/upload-excel/upload-excel/index.esm.js +1 -1
  143. package/dist/components/upload-excel/upload-excel/index.js +5 -5
  144. package/dist/constants/index.d.ts +15 -15
  145. package/dist/constants/index.esm.js +104 -10
  146. package/dist/constants/index.esm.js.map +1 -1
  147. package/dist/constants/index.js +1 -1
  148. package/dist/constants/pathnames/pathname.manufacturing/index.esm.js +6 -0
  149. package/dist/constants/pathnames/pathname.manufacturing/index.esm.js.map +1 -1
  150. package/dist/constants/pathnames/pathname.manufacturing/index.js +1 -1
  151. package/dist/constants/pathnames/pathname.manufacturing/index.js.map +1 -1
  152. package/dist/constants/pathnames/pathname.rental/index.esm.js +12 -1
  153. package/dist/constants/pathnames/pathname.rental/index.esm.js.map +1 -1
  154. package/dist/constants/pathnames/pathname.rental/index.js +1 -1
  155. package/dist/constants/pathnames/pathname.rental/index.js.map +1 -1
  156. package/dist/contexts/AuthContext/index.esm.js +1 -1
  157. package/dist/contexts/AuthContext/index.esm.js.map +1 -1
  158. package/dist/contexts/AuthContext/index.js +1 -1
  159. package/dist/contexts/AuthContext/index.js.map +1 -1
  160. package/dist/contexts/index.d.ts +5 -16
  161. package/dist/contexts/index.esm.js +2 -2
  162. package/dist/contexts/index.js +1 -1
  163. package/dist/hooks/apiHelper/index.esm.js +1 -1
  164. package/dist/hooks/apiHelper/index.esm.js.map +1 -1
  165. package/dist/hooks/apiHelper/index.js +1 -1
  166. package/dist/hooks/apiHelper/index.js.map +1 -1
  167. package/dist/hooks/index.d.ts +16 -26
  168. package/dist/hooks/index.esm.js +25 -18
  169. package/dist/hooks/index.esm.js.map +1 -1
  170. package/dist/hooks/index.js +1 -1
  171. package/dist/hooks/use-material-calculations/index.esm.js +0 -8
  172. package/dist/hooks/use-material-calculations/index.esm.js.map +1 -1
  173. package/dist/hooks/use-material-calculations/index.js +1 -1
  174. package/dist/hooks/use-material-calculations/index.js.map +1 -1
  175. package/dist/hooks/useDataFetcher/index.esm.js +3 -2
  176. package/dist/hooks/useDataFetcher/index.esm.js.map +1 -1
  177. package/dist/hooks/useDataFetcher/index.js +1 -1
  178. package/dist/hooks/useDataFetcher/index.js.map +1 -1
  179. package/dist/hooks/useLanguageFallback/index.esm.js +0 -5
  180. package/dist/hooks/useLanguageFallback/index.esm.js.map +1 -1
  181. package/dist/hooks/useLanguageFallback/index.js +1 -1
  182. package/dist/hooks/useLanguageFallback/index.js.map +1 -1
  183. package/dist/hooks/useLocationFilter/index.esm.js +0 -5
  184. package/dist/hooks/useLocationFilter/index.esm.js.map +1 -1
  185. package/dist/hooks/useLocationFilter/index.js +1 -1
  186. package/dist/hooks/useLocationFilter/index.js.map +1 -1
  187. package/dist/hooks/useReduxIntegration/index.esm.js +39 -0
  188. package/dist/hooks/useReduxIntegration/index.esm.js.map +1 -0
  189. package/dist/hooks/useReduxIntegration/index.js +2 -0
  190. package/dist/hooks/useReduxIntegration/index.js.map +1 -0
  191. package/dist/icons/index.d.ts +177 -94
  192. package/dist/icons/index.esm.js +80 -76
  193. package/dist/icons/index.esm.js.map +1 -1
  194. package/dist/icons/index.js +1 -1
  195. package/dist/index.esm.js +640 -747
  196. package/dist/index.esm.js.map +1 -1
  197. package/dist/index.js +1 -1
  198. package/dist/layout/index.d.ts +2 -3
  199. package/dist/layout/index.esm.js +1 -1
  200. package/dist/layout/index.js +1 -1
  201. package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.esm.js +1 -1
  202. package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.js +1 -1
  203. package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.esm.js +1 -1
  204. package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.js +1 -1
  205. package/dist/node_modules/@mui/material/Avatar/avatarClasses/index.esm.js +2 -3
  206. package/dist/node_modules/@mui/material/Avatar/avatarClasses/index.esm.js.map +1 -1
  207. package/dist/node_modules/@mui/material/Avatar/avatarClasses/index.js +1 -1
  208. package/dist/node_modules/@mui/material/Avatar/avatarClasses/index.js.map +1 -1
  209. package/dist/node_modules/@mui/material/NativeSelect/nativeSelectClasses/index.esm.js +1 -1
  210. package/dist/node_modules/@mui/material/NativeSelect/nativeSelectClasses/index.js +1 -1
  211. package/dist/node_modules/@mui/material/NativeSelect/nativeSelectClasses/index.js.map +1 -1
  212. package/dist/node_modules/@mui/material/OutlinedInput/outlinedInputClasses/index.esm.js +1 -1
  213. package/dist/node_modules/@mui/material/OutlinedInput/outlinedInputClasses/index.js +1 -1
  214. package/dist/node_modules/@mui/material/Popover/Popover/index.esm.js +1 -1
  215. package/dist/node_modules/@mui/material/Popover/Popover/index.js +1 -1
  216. package/dist/node_modules/@mui/material/Snackbar/Snackbar/index.esm.js +1 -1
  217. package/dist/node_modules/@mui/material/Snackbar/Snackbar/index.js +1 -1
  218. package/dist/node_modules/@mui/material/Tabs/Tabs/index.esm.js +1 -1
  219. package/dist/node_modules/@mui/material/Tabs/Tabs/index.js +1 -1
  220. package/dist/node_modules/@mui/system/colorManipulator/index.esm.js +2 -2
  221. package/dist/node_modules/@mui/system/colorManipulator/index.js +1 -1
  222. package/dist/node_modules/@mui/system/colorManipulator/index.js.map +1 -1
  223. package/dist/node_modules/@mui/system/createStyled/index.esm.js +6 -6
  224. package/dist/node_modules/@mui/system/createStyled/index.js +1 -1
  225. package/dist/node_modules/@mui/system/createStyled/index.js.map +1 -1
  226. package/dist/node_modules/@mui/system/esm/Container/createContainer/index.esm.js +1 -1
  227. package/dist/node_modules/@mui/system/esm/Container/createContainer/index.js +1 -1
  228. package/dist/node_modules/@mui/system/esm/Stack/createStack/index.esm.js +1 -1
  229. package/dist/node_modules/@mui/system/esm/Stack/createStack/index.js +2 -2
  230. package/dist/node_modules/@mui/system/useThemeWithoutDefault/index.esm.js +1 -1
  231. package/dist/node_modules/@mui/system/useThemeWithoutDefault/index.js +1 -1
  232. package/dist/node_modules/d3-axis/src/axis/index.esm.js +1 -5
  233. package/dist/node_modules/d3-axis/src/axis/index.esm.js.map +1 -1
  234. package/dist/node_modules/d3-axis/src/axis/index.js +1 -1
  235. package/dist/node_modules/d3-axis/src/axis/index.js.map +1 -1
  236. package/dist/node_modules/notistack/notistack.esm/index.esm.js +0 -3
  237. package/dist/node_modules/notistack/notistack.esm/index.esm.js.map +1 -1
  238. package/dist/node_modules/notistack/notistack.esm/index.js +1 -1
  239. package/dist/node_modules/notistack/notistack.esm/index.js.map +1 -1
  240. package/dist/node_modules/prop-types/checkPropTypes/index.esm.js +49 -56
  241. package/dist/node_modules/prop-types/checkPropTypes/index.esm.js.map +1 -1
  242. package/dist/node_modules/prop-types/checkPropTypes/index.js +1 -1
  243. package/dist/node_modules/prop-types/checkPropTypes/index.js.map +1 -1
  244. package/dist/node_modules/prop-types/factoryWithTypeCheckers/index.esm.js +2 -2
  245. package/dist/node_modules/prop-types/factoryWithTypeCheckers/index.esm.js.map +1 -1
  246. package/dist/node_modules/prop-types/factoryWithTypeCheckers/index.js +1 -1
  247. package/dist/node_modules/prop-types/factoryWithTypeCheckers/index.js.map +1 -1
  248. package/dist/redux/hooks/index.esm.js +1 -1
  249. package/dist/redux/index.d.ts +8 -13
  250. package/dist/redux/index.esm.js +14 -30
  251. package/dist/redux/index.esm.js.map +1 -1
  252. package/dist/redux/index.js +1 -1
  253. package/dist/redux/slices/inventoryReportsTitleBarSlice/index.esm.js +0 -6
  254. package/dist/redux/slices/inventoryReportsTitleBarSlice/index.esm.js.map +1 -1
  255. package/dist/redux/slices/inventoryReportsTitleBarSlice/index.js +1 -1
  256. package/dist/redux/slices/inventoryReportsTitleBarSlice/index.js.map +1 -1
  257. package/dist/redux/slices/reportsTitleBarSlice/index.esm.js +1 -7
  258. package/dist/redux/slices/reportsTitleBarSlice/index.esm.js.map +1 -1
  259. package/dist/redux/slices/reportsTitleBarSlice/index.js +1 -1
  260. package/dist/redux/slices/reportsTitleBarSlice/index.js.map +1 -1
  261. package/dist/redux/slices/shareSlice/index.esm.js +1 -3
  262. package/dist/redux/slices/shareSlice/index.esm.js.map +1 -1
  263. package/dist/redux/slices/shareSlice/index.js +1 -1
  264. package/dist/redux/slices/shareSlice/index.js.map +1 -1
  265. package/dist/src/@types/index.d.ts +5 -0
  266. package/dist/src/assets/common-component/index.d.ts +1 -0
  267. package/dist/src/assets/dynamic-svg-icon/index.d.ts +2 -0
  268. package/dist/src/assets/index.d.ts +5 -0
  269. package/dist/src/assets/view-modal/index.d.ts +12 -0
  270. package/dist/src/components/Dashboard/index.d.ts +4 -0
  271. package/dist/src/components/accordion/index.d.ts +2 -0
  272. package/dist/src/components/action-bar/index.d.ts +2 -0
  273. package/dist/src/components/activity-tag/index.d.ts +2 -0
  274. package/dist/src/components/activityArea/index.d.ts +2 -0
  275. package/dist/src/components/activityLog/index.d.ts +2 -0
  276. package/dist/src/components/alert/index.d.ts +2 -0
  277. package/dist/src/components/appbar/index.d.ts +2 -0
  278. package/dist/src/components/approval-wrapper/index.d.ts +2 -0
  279. package/dist/src/components/avatar/index.d.ts +2 -0
  280. package/dist/src/components/board/index.d.ts +4 -0
  281. package/dist/src/components/bread-crumb/index.d.ts +2 -0
  282. package/dist/src/components/button/index.d.ts +2 -0
  283. package/dist/src/components/calculation-summary/components/index.d.ts +10 -0
  284. package/dist/src/components/calculation-summary/index.d.ts +3 -0
  285. package/dist/src/components/calendar/index.d.ts +2 -0
  286. package/dist/src/components/card-wrapper/index.d.ts +2 -0
  287. package/dist/src/components/change-user-password-modal/index.d.ts +2 -0
  288. package/dist/src/components/charts/bar-chart/index.d.ts +2 -0
  289. package/dist/src/components/charts/barChart/index.d.ts +2 -0
  290. package/dist/src/components/charts/barLineChart/index.d.ts +2 -0
  291. package/dist/src/components/charts/donut-chart/index.d.ts +2 -0
  292. package/dist/src/components/charts/donutChart/index.d.ts +2 -0
  293. package/dist/src/components/charts/groupBarChart/index.d.ts +2 -0
  294. package/dist/src/components/charts/index.d.ts +12 -0
  295. package/dist/src/components/charts/line-chart/area-lineChart.d.ts +2 -2
  296. package/dist/src/components/charts/line-chart/index.d.ts +6 -0
  297. package/dist/src/components/charts/multiLineChart/index.d.ts +2 -0
  298. package/dist/src/components/checkbox/index.d.ts +2 -0
  299. package/dist/src/components/chip/index.d.ts +2 -0
  300. package/dist/src/components/chip-generator/index.d.ts +2 -0
  301. package/dist/src/components/color-picker-input/index.d.ts +2 -0
  302. package/dist/src/components/confirm-modal/index.d.ts +3 -0
  303. package/dist/src/components/country-select/index.d.ts +2 -0
  304. package/dist/src/components/custom-snackbar/index.d.ts +2 -0
  305. package/dist/src/components/custom-toggle-switch/index.d.ts +2 -0
  306. package/dist/src/components/date-picker/index.d.ts +2 -0
  307. package/dist/src/components/date-range-picker/index.d.ts +2 -0
  308. package/dist/src/components/date-time-picker/index.d.ts +2 -0
  309. package/dist/src/components/dropdown-button/index.d.ts +2 -0
  310. package/dist/src/components/dynamic-layout-wrapper/index.d.ts +2 -0
  311. package/dist/src/components/editor/index.d.ts +2 -0
  312. package/dist/src/components/entity-view-wrapper/index.d.ts +2 -0
  313. package/dist/src/components/examples/index.d.ts +2 -0
  314. package/dist/src/components/expandable-summary-wrapper/index.d.ts +2 -0
  315. package/dist/src/components/fallback/index.d.ts +2 -0
  316. package/dist/src/components/filter/components/index.d.ts +16 -0
  317. package/dist/src/components/filter/index.d.ts +4 -0
  318. package/dist/src/components/footer/index.d.ts +2 -0
  319. package/dist/src/components/form-control/form-builder/form-builder-element/index.d.ts +25 -5
  320. package/dist/src/components/form-control/form-builder/form-builder-element/location-add-modal/index.d.ts +2 -0
  321. package/dist/src/components/form-control/form-builder/index.d.ts +3 -0
  322. package/dist/src/components/form-control/form-parser/index.d.ts +8 -0
  323. package/dist/src/components/form-control/index.d.ts +2 -2
  324. package/dist/src/components/form-header/index.d.ts +2 -0
  325. package/dist/src/components/gantt/index.d.ts +2 -0
  326. package/dist/src/components/grid/custom-grid-card/index.d.ts +2 -0
  327. package/dist/src/components/grid/grid-card/index.d.ts +2 -0
  328. package/dist/src/components/grid/grid-wrapper/index.d.ts +2 -0
  329. package/dist/src/components/grid/index.d.ts +3 -0
  330. package/dist/src/components/grid-fallback/index.d.ts +2 -0
  331. package/dist/src/components/header/components/index.d.ts +1 -0
  332. package/dist/src/components/header/components/notification-menu/index.d.ts +2 -0
  333. package/dist/src/components/header/index.d.ts +6 -0
  334. package/dist/src/components/header/redux/index.d.ts +5 -0
  335. package/dist/src/components/header-card/index.d.ts +2 -0
  336. package/dist/src/components/hr-line/index.d.ts +2 -0
  337. package/dist/src/components/icons/index.d.ts +163 -80
  338. package/dist/src/components/icons/sort-arrow-icon.d.ts +2 -2
  339. package/dist/src/components/index.d.ts +106 -123
  340. package/dist/src/components/info-card/index.d.ts +2 -0
  341. package/dist/src/components/inventory-reports-title-bar/component/index.d.ts +2 -0
  342. package/dist/src/components/inventory-reports-title-bar/index.d.ts +5 -0
  343. package/dist/src/components/inventory-reports-title-bar/redux/index.d.ts +5 -0
  344. package/dist/src/components/inventory-reports-title-bar/report-buttons/index.d.ts +2 -0
  345. package/dist/src/components/label-value/index.d.ts +2 -0
  346. package/dist/src/components/list/index.d.ts +2 -0
  347. package/dist/src/components/listing/index.d.ts +2 -2
  348. package/dist/src/components/loaders/index.d.ts +5 -1
  349. package/dist/src/components/material-editable-table/components/index.d.ts +8 -0
  350. package/dist/src/components/material-editable-table/index.d.ts +4 -0
  351. package/dist/src/components/material-table/components/index.d.ts +8 -0
  352. package/dist/src/components/material-table/index.d.ts +4 -0
  353. package/dist/src/components/material-table/material-table.d.ts +1 -1
  354. package/dist/src/components/menu/index.d.ts +2 -0
  355. package/dist/src/components/modal/index.d.ts +2 -0
  356. package/dist/src/components/module-button/index.d.ts +2 -0
  357. package/dist/src/components/mulitline/index.d.ts +2 -0
  358. package/dist/src/components/multi-select/index.d.ts +2 -0
  359. package/dist/src/components/page-navigator/components/index.d.ts +10 -0
  360. package/dist/src/components/page-navigator/index.d.ts +3 -0
  361. package/dist/src/components/pagination/index.d.ts +2 -0
  362. package/dist/src/components/parties-modal/index.d.ts +4 -0
  363. package/dist/src/components/parties-modal/utils/index.d.ts +1 -0
  364. package/dist/src/components/phone-input/index.d.ts +2 -0
  365. package/dist/src/components/providers/index.d.ts +2 -1
  366. package/dist/src/components/quick-approval-modal/index.d.ts +2 -0
  367. package/dist/src/components/radio/index.d.ts +2 -0
  368. package/dist/src/components/reports/dynamic-report/index.d.ts +3 -0
  369. package/dist/src/components/reports/index.d.ts +1 -0
  370. package/dist/src/components/reports-title-bar/index.d.ts +4 -0
  371. package/dist/src/components/reports-title-bar/redux/index.d.ts +5 -0
  372. package/dist/src/components/reports-title-bar/report-buttons/index.d.ts +2 -0
  373. package/dist/src/components/reset-password-modal/index.d.ts +2 -0
  374. package/dist/src/components/rfq-response/index.d.ts +2 -0
  375. package/dist/src/components/save-filter-modal/index.d.ts +2 -0
  376. package/dist/src/components/schedule-report/index.d.ts +6 -0
  377. package/dist/src/components/schedule-report/utils/index.d.ts +3 -0
  378. package/dist/src/components/search-bar/index.d.ts +2 -0
  379. package/dist/src/components/select/controller/index.d.ts +4 -0
  380. package/dist/src/components/select/index.d.ts +5 -0
  381. package/dist/src/components/share-modal/index.d.ts +5 -0
  382. package/dist/src/components/share-modal/redux/index.d.ts +5 -0
  383. package/dist/src/components/sidebar/index.d.ts +2 -0
  384. package/dist/src/components/snackbar/index.d.ts +2 -0
  385. package/dist/src/components/sub-header-doc/index.d.ts +2 -0
  386. package/dist/src/components/switches/index.d.ts +2 -0
  387. package/dist/src/components/tab-bar-ui/index.d.ts +2 -0
  388. package/dist/src/components/tabs/index.d.ts +2 -0
  389. package/dist/src/components/text-area/index.d.ts +2 -0
  390. package/dist/src/components/text-field/index.d.ts +2 -0
  391. package/dist/src/components/time-picker/index.d.ts +2 -0
  392. package/dist/src/components/time-range-picker/index.d.ts +2 -0
  393. package/dist/src/components/title-dropdown-button/index.d.ts +2 -0
  394. package/dist/src/components/toast/index.d.ts +2 -0
  395. package/dist/src/components/toggle/index.d.ts +2 -0
  396. package/dist/src/components/toggle-switch/index.d.ts +2 -0
  397. package/dist/src/components/tooltip/index.d.ts +2 -0
  398. package/dist/src/components/typography/index.d.ts +2 -0
  399. package/dist/src/components/upload/index.d.ts +4 -0
  400. package/dist/src/components/upload-excel/index.d.ts +4 -0
  401. package/dist/src/components/upload-media/index.d.ts +2 -0
  402. package/dist/src/components/user-dropdown/index.d.ts +2 -0
  403. package/dist/src/components/value-field/index.d.ts +2 -0
  404. package/dist/src/components/view-modal/index.d.ts +2 -0
  405. package/dist/src/constants/index.d.ts +5 -3
  406. package/dist/src/constants/lang/index.d.ts +6 -0
  407. package/dist/src/constants/pathnames/index.d.ts +13 -554
  408. package/dist/src/contexts/index.d.ts +5 -5
  409. package/dist/src/hooks/apiHelper.d.ts +1 -1
  410. package/dist/src/hooks/index.d.ts +15 -13
  411. package/dist/src/hooks/useDataFetcher.d.ts +2 -2
  412. package/dist/src/layout/fullScreen/index.d.ts +2 -0
  413. package/dist/src/layout/index.d.ts +2 -2
  414. package/dist/src/layout/sidebarScreen/index.d.ts +2 -0
  415. package/dist/src/redux/index.d.ts +5 -6
  416. package/dist/src/redux/slices/index.d.ts +8 -10
  417. package/dist/src/styles/index.d.ts +1 -2
  418. package/dist/src/theme/index.d.ts +7 -3
  419. package/dist/src/theme/types/index.d.ts +1 -0
  420. package/dist/src/utils/index.d.ts +12 -10
  421. package/dist/src/views/afterAuth/dashboard/index.d.ts +3 -0
  422. package/dist/src/views/afterAuth/dashboard/redux/index.d.ts +5 -0
  423. package/dist/src/views/afterAuth/index.d.ts +2 -0
  424. package/dist/src/views/afterAuth/page-view/index.d.ts +4 -0
  425. package/dist/src/views/afterAuth/page-view/redux/index.d.ts +5 -0
  426. package/dist/src/views/afterAuth/page-view/utils/index.d.ts +2 -0
  427. package/dist/src/views/beforeAuth/change-password/index.d.ts +1 -0
  428. package/dist/src/views/beforeAuth/components/activity-tag-data/index.d.ts +1 -0
  429. package/dist/src/views/beforeAuth/components/calendar-data/index.d.ts +1 -0
  430. package/dist/src/views/beforeAuth/components/drive-dashboard-data/index.d.ts +1 -0
  431. package/dist/src/views/beforeAuth/components/gantt-data/index.d.ts +2 -0
  432. package/dist/src/views/beforeAuth/components/grid-data/index.d.ts +2 -0
  433. package/dist/src/views/beforeAuth/components/index.d.ts +13 -2
  434. package/dist/src/views/beforeAuth/components/kanbann-content/index.d.ts +1 -0
  435. package/dist/src/views/beforeAuth/components/list-content/index.d.ts +2 -0
  436. package/dist/src/views/beforeAuth/components/multiline-data/index.d.ts +1 -0
  437. package/dist/src/views/beforeAuth/components/share-modal-data/index.d.ts +1 -0
  438. package/dist/src/views/beforeAuth/components/shared-pages-data/index.d.ts +1 -0
  439. package/dist/src/views/beforeAuth/components/tabs-data/index.d.ts +1 -0
  440. package/dist/src/views/beforeAuth/components/user-dashboard-data/index.d.ts +1 -0
  441. package/dist/src/views/beforeAuth/components/user-dropdown-data/index.d.ts +1 -0
  442. package/dist/src/views/beforeAuth/forgot-password/index.d.ts +1 -0
  443. package/dist/src/views/beforeAuth/index.d.ts +6 -0
  444. package/dist/src/views/beforeAuth/landing/index.d.ts +2 -0
  445. package/dist/src/views/beforeAuth/reset-password/index.d.ts +1 -0
  446. package/dist/src/views/form-builder/element-edit-forms/index.d.ts +7 -0
  447. package/dist/src/views/form-builder/index.d.ts +7 -31
  448. package/dist/src/views/form-builder/redux/index.d.ts +5 -0
  449. package/dist/src/views/form-builder/utils/index.d.ts +1 -2
  450. package/dist/src/views/index.d.ts +7 -2
  451. package/dist/src/views/template-editor/add-template/index.d.ts +1 -0
  452. package/dist/src/views/template-editor/company-selection-modal/index.d.ts +1 -0
  453. package/dist/src/views/template-editor/components/controllers/index.d.ts +18 -0
  454. package/dist/src/views/template-editor/components/index.d.ts +7 -9
  455. package/dist/src/views/template-editor/edit-section-modal/index.d.ts +1 -0
  456. package/dist/src/views/template-editor/index.d.ts +10 -10
  457. package/dist/src/views/template-editor/template-modal/index.d.ts +3 -1
  458. package/dist/src/views/template-editor/template-name-modal/index.d.ts +1 -0
  459. package/dist/src/views/template-editor/types/index.d.ts +1 -1
  460. package/dist/src/views/template-editor/utils/index.d.ts +3 -3
  461. package/dist/style.css +70 -90
  462. package/dist/styles/index.esm.js +4 -89
  463. package/dist/styles/index.esm.js.map +1 -1
  464. package/dist/styles/index.js +1 -1
  465. package/dist/styles/themes/index/index.esm.js +78 -0
  466. package/dist/styles/themes/index/index.esm.js.map +1 -0
  467. package/dist/styles/themes/index/index.js +2 -0
  468. package/dist/styles/themes/index/index.js.map +1 -0
  469. package/dist/theme/index.d.ts +7 -5
  470. package/dist/theme/index.esm.js +12 -5
  471. package/dist/theme/index.esm.js.map +1 -1
  472. package/dist/theme/index.js +1 -1
  473. package/dist/theme/theme-impl/index.esm.js +1 -1
  474. package/dist/theme/typography/index.esm.js +113 -0
  475. package/dist/theme/typography/index.esm.js.map +1 -0
  476. package/dist/theme/typography/index.js +2 -0
  477. package/dist/theme/typography/index.js.map +1 -0
  478. package/dist/utils/dateFormat/index.esm.js +7 -0
  479. package/dist/utils/dateFormat/index.esm.js.map +1 -1
  480. package/dist/utils/dateFormat/index.js +1 -1
  481. package/dist/utils/dateFormat/index.js.map +1 -1
  482. package/dist/utils/i18n/index.esm.js +37 -0
  483. package/dist/utils/i18n/index.esm.js.map +1 -0
  484. package/dist/utils/i18n/index.js +2 -0
  485. package/dist/utils/i18n/index.js.map +1 -0
  486. package/dist/utils/index.d.ts +34 -35
  487. package/dist/utils/index.esm.js +18 -73
  488. package/dist/utils/index.esm.js.map +1 -1
  489. package/dist/utils/index.js +1 -1
  490. package/dist/utils/metaComponent/index.esm.js +27 -0
  491. package/dist/utils/metaComponent/index.esm.js.map +1 -0
  492. package/dist/utils/metaComponent/index.js +6 -0
  493. package/dist/utils/metaComponent/index.js.map +1 -0
  494. package/dist/views/404/index.esm.js +31 -0
  495. package/dist/views/404/index.esm.js.map +1 -0
  496. package/dist/views/404/index.js +6 -0
  497. package/dist/views/404/index.js.map +1 -0
  498. package/dist/views/afterAuth/dashboard/dashboard/index.esm.js +76 -0
  499. package/dist/views/afterAuth/dashboard/dashboard/index.esm.js.map +1 -0
  500. package/dist/views/afterAuth/dashboard/dashboard/index.js +8 -0
  501. package/dist/views/afterAuth/dashboard/dashboard/index.js.map +1 -0
  502. package/dist/views/afterAuth/dashboard/redux/reducer/index.esm.js +0 -6
  503. package/dist/views/afterAuth/dashboard/redux/reducer/index.esm.js.map +1 -1
  504. package/dist/views/afterAuth/dashboard/redux/reducer/index.js +1 -1
  505. package/dist/views/afterAuth/dashboard/redux/reducer/index.js.map +1 -1
  506. package/dist/views/afterAuth/page-view/page-view/index.esm.js +100 -0
  507. package/dist/views/afterAuth/page-view/page-view/index.esm.js.map +1 -0
  508. package/dist/views/afterAuth/page-view/page-view/index.js +6 -0
  509. package/dist/views/afterAuth/page-view/page-view/index.js.map +1 -0
  510. package/dist/views/afterAuth/page-view/redux/actionCreator/index.esm.js +13 -0
  511. package/dist/views/afterAuth/page-view/redux/actionCreator/index.esm.js.map +1 -0
  512. package/dist/views/afterAuth/page-view/redux/actionCreator/index.js +2 -0
  513. package/dist/views/afterAuth/page-view/redux/actionCreator/index.js.map +1 -0
  514. package/dist/views/afterAuth/page-view/redux/reducer/index.esm.js +63 -0
  515. package/dist/views/afterAuth/page-view/redux/reducer/index.esm.js.map +1 -0
  516. package/dist/views/afterAuth/page-view/redux/reducer/index.js +2 -0
  517. package/dist/views/afterAuth/page-view/redux/reducer/index.js.map +1 -0
  518. package/dist/views/afterAuth/page-view/redux/state/index.esm.js +31 -0
  519. package/dist/views/afterAuth/page-view/redux/state/index.esm.js.map +1 -0
  520. package/dist/views/afterAuth/page-view/redux/state/index.js +2 -0
  521. package/dist/views/afterAuth/page-view/redux/state/index.js.map +1 -0
  522. package/dist/views/afterAuth/page-view/utils/default-data/index.esm.js +137 -0
  523. package/dist/views/afterAuth/page-view/utils/default-data/index.esm.js.map +1 -0
  524. package/dist/views/afterAuth/page-view/utils/default-data/index.js +2 -0
  525. package/dist/views/afterAuth/page-view/utils/default-data/index.js.map +1 -0
  526. package/dist/views/afterAuth/page-view/utils/local-data/index.esm.js +137 -0
  527. package/dist/views/afterAuth/page-view/utils/local-data/index.esm.js.map +1 -0
  528. package/dist/views/afterAuth/page-view/utils/local-data/index.js +2 -0
  529. package/dist/views/afterAuth/page-view/utils/local-data/index.js.map +1 -0
  530. package/dist/views/beforeAuth/change-password/change-password/index.esm.js +182 -0
  531. package/dist/views/beforeAuth/change-password/change-password/index.esm.js.map +1 -0
  532. package/dist/views/beforeAuth/change-password/change-password/index.js +17 -0
  533. package/dist/views/beforeAuth/change-password/change-password/index.js.map +1 -0
  534. package/dist/views/beforeAuth/forgot-password/forgot-password/index.esm.js +177 -0
  535. package/dist/views/beforeAuth/forgot-password/forgot-password/index.esm.js.map +1 -0
  536. package/dist/views/beforeAuth/forgot-password/forgot-password/index.js +16 -0
  537. package/dist/views/beforeAuth/forgot-password/forgot-password/index.js.map +1 -0
  538. package/dist/views/beforeAuth/landing/landing/index.esm.js +35 -0
  539. package/dist/views/beforeAuth/landing/landing/index.esm.js.map +1 -0
  540. package/dist/views/beforeAuth/landing/landing/index.js +8 -0
  541. package/dist/views/beforeAuth/landing/landing/index.js.map +1 -0
  542. package/dist/views/beforeAuth/login/index/index.esm.js +209 -0
  543. package/dist/views/beforeAuth/login/index/index.esm.js.map +1 -0
  544. package/dist/views/beforeAuth/login/index/index.js +20 -0
  545. package/dist/views/beforeAuth/login/index/index.js.map +1 -0
  546. package/dist/views/beforeAuth/reset-password/reset-password/index.esm.js +34 -0
  547. package/dist/views/beforeAuth/reset-password/reset-password/index.esm.js.map +1 -0
  548. package/dist/views/beforeAuth/reset-password/reset-password/index.js +2 -0
  549. package/dist/views/beforeAuth/reset-password/reset-password/index.js.map +1 -0
  550. package/dist/views/form-builder/custom-form/index.esm.js +2 -2
  551. package/dist/views/form-builder/custom-form/index.js +10 -10
  552. package/dist/views/form-builder/element-edit-forms/select/index.esm.js +1 -1
  553. package/dist/views/form-builder/element-edit-forms/select/index.js +8 -8
  554. package/dist/views/form-builder/redux/actionCreator/index.esm.js +1 -1
  555. package/dist/views/form-builder/redux/reducer/index.esm.js +6 -1
  556. package/dist/views/form-builder/redux/reducer/index.esm.js.map +1 -1
  557. package/dist/views/form-builder/redux/reducer/index.js +1 -1
  558. package/dist/views/form-builder/redux/reducer/index.js.map +1 -1
  559. package/dist/views/index.esm.js +139 -65
  560. package/dist/views/index.esm.js.map +1 -1
  561. package/dist/views/index.js +1 -1
  562. package/dist/views/privateRoute/index.esm.js +14 -0
  563. package/dist/views/privateRoute/index.esm.js.map +1 -0
  564. package/dist/views/privateRoute/index.js +2 -0
  565. package/dist/views/privateRoute/index.js.map +1 -0
  566. package/dist/views/template-editor/components/EditorHeader/index.esm.js +1 -1
  567. package/dist/views/template-editor/components/EditorHeader/index.js +3 -3
  568. package/dist/views/template-editor/components/EditorSection/index.esm.js +1 -1
  569. package/dist/views/template-editor/components/EditorSection/index.js +3 -3
  570. package/dist/views/template-editor/components/SectionFormatPanel/index.esm.js +1 -1
  571. package/dist/views/template-editor/components/SectionFormatPanel/index.js +3 -3
  572. package/dist/views/template-editor/components/controllers/TableControls/index.esm.js +1 -1
  573. package/dist/views/template-editor/components/controllers/TableControls/index.js +56 -56
  574. package/dist/views/template-editor/templates/index.esm.js +1 -1
  575. package/dist/views/template-editor/templates/index.js +3 -3
  576. package/dist/views/template-editor/templates/index.js.map +1 -1
  577. package/dist/views/template-editor/utils/default-data/index.esm.js +33 -0
  578. package/dist/views/template-editor/utils/default-data/index.esm.js.map +1 -0
  579. package/dist/views/template-editor/utils/default-data/index.js +2 -0
  580. package/dist/views/template-editor/utils/default-data/index.js.map +1 -0
  581. package/package.json +2 -2
  582. package/src/styles/index.ts +1 -146
  583. package/dist/_virtual/ArrowBack/index.esm.js +0 -5
  584. package/dist/_virtual/ArrowBack/index.esm.js.map +0 -1
  585. package/dist/_virtual/ArrowBack/index.js +0 -2
  586. package/dist/_virtual/ArrowBack/index.js.map +0 -1
  587. package/dist/_virtual/ArrowForward/index.esm.js +0 -5
  588. package/dist/_virtual/ArrowForward/index.esm.js.map +0 -1
  589. package/dist/_virtual/ArrowForward/index.js +0 -2
  590. package/dist/_virtual/ArrowForward/index.js.map +0 -1
  591. package/dist/_virtual/IndeterminateCheckBox/index.esm.js +0 -5
  592. package/dist/_virtual/IndeterminateCheckBox/index.esm.js.map +0 -1
  593. package/dist/_virtual/IndeterminateCheckBox/index.js +0 -2
  594. package/dist/_virtual/IndeterminateCheckBox/index.js.map +0 -1
  595. package/dist/_virtual/NorthEast/index.esm.js +0 -5
  596. package/dist/_virtual/NorthEast/index.esm.js.map +0 -1
  597. package/dist/_virtual/NorthEast/index.js +0 -2
  598. package/dist/_virtual/NorthEast/index.js.map +0 -1
  599. package/dist/_virtual/Visibility/index.esm.js +0 -5
  600. package/dist/_virtual/Visibility/index.esm.js.map +0 -1
  601. package/dist/_virtual/Visibility/index.js +0 -2
  602. package/dist/_virtual/Visibility/index.js.map +0 -1
  603. package/dist/components/activity-tag/activity-tag/index.esm.js +0 -154
  604. package/dist/components/activity-tag/activity-tag/index.esm.js.map +0 -1
  605. package/dist/components/activity-tag/activity-tag/index.js +0 -15
  606. package/dist/components/activity-tag/activity-tag/index.js.map +0 -1
  607. package/dist/components/activityLog/activity-log/index.esm.js +0 -104
  608. package/dist/components/activityLog/activity-log/index.esm.js.map +0 -1
  609. package/dist/components/activityLog/activity-log/index.js +0 -14
  610. package/dist/components/activityLog/activity-log/index.js.map +0 -1
  611. package/dist/components/button/button.scss/index.esm.js +0 -2
  612. package/dist/components/button/button.scss/index.esm.js.map +0 -1
  613. package/dist/components/button/button.scss/index.js +0 -2
  614. package/dist/components/button/button.scss/index.js.map +0 -1
  615. package/dist/components/charts/bar-chart/bar-chart/index.esm.js +0 -85
  616. package/dist/components/charts/bar-chart/bar-chart/index.esm.js.map +0 -1
  617. package/dist/components/charts/bar-chart/bar-chart/index.js +0 -2
  618. package/dist/components/charts/bar-chart/bar-chart/index.js.map +0 -1
  619. package/dist/components/charts/barChart/barChart/index.esm.js +0 -147
  620. package/dist/components/charts/barChart/barChart/index.esm.js.map +0 -1
  621. package/dist/components/charts/barChart/barChart/index.js +0 -2
  622. package/dist/components/charts/barChart/barChart/index.js.map +0 -1
  623. package/dist/components/charts/donut-chart/donut-chart/index.esm.js +0 -85
  624. package/dist/components/charts/donut-chart/donut-chart/index.esm.js.map +0 -1
  625. package/dist/components/charts/donut-chart/donut-chart/index.js +0 -6
  626. package/dist/components/charts/donut-chart/donut-chart/index.js.map +0 -1
  627. package/dist/components/charts/donutChart/DonutChart/index.esm.js +0 -96
  628. package/dist/components/charts/donutChart/DonutChart/index.esm.js.map +0 -1
  629. package/dist/components/charts/donutChart/DonutChart/index.js +0 -5
  630. package/dist/components/charts/donutChart/DonutChart/index.js.map +0 -1
  631. package/dist/components/charts/line-chart/area-line-chart/index.esm.js +0 -40
  632. package/dist/components/charts/line-chart/area-line-chart/index.esm.js.map +0 -1
  633. package/dist/components/charts/line-chart/area-line-chart/index.js +0 -2
  634. package/dist/components/charts/line-chart/area-line-chart/index.js.map +0 -1
  635. package/dist/components/grid/grid-card/grid-card.scss/index.esm.js +0 -2
  636. package/dist/components/grid/grid-card/grid-card.scss/index.esm.js.map +0 -1
  637. package/dist/components/grid/grid-card/grid-card.scss/index.js +0 -2
  638. package/dist/components/grid/grid-card/grid-card.scss/index.js.map +0 -1
  639. package/dist/components/list/list.scss/index.esm.js +0 -2
  640. package/dist/components/list/list.scss/index.esm.js.map +0 -1
  641. package/dist/components/list/list.scss/index.js +0 -2
  642. package/dist/components/list/list.scss/index.js.map +0 -1
  643. package/dist/node_modules/@mui/icons-material/ArrowBack/index.esm.js +0 -18
  644. package/dist/node_modules/@mui/icons-material/ArrowBack/index.esm.js.map +0 -1
  645. package/dist/node_modules/@mui/icons-material/ArrowBack/index.js +0 -2
  646. package/dist/node_modules/@mui/icons-material/ArrowBack/index.js.map +0 -1
  647. package/dist/node_modules/@mui/icons-material/ArrowForward/index.esm.js +0 -18
  648. package/dist/node_modules/@mui/icons-material/ArrowForward/index.esm.js.map +0 -1
  649. package/dist/node_modules/@mui/icons-material/ArrowForward/index.js +0 -2
  650. package/dist/node_modules/@mui/icons-material/ArrowForward/index.js.map +0 -1
  651. package/dist/node_modules/@mui/icons-material/IndeterminateCheckBox/index.esm.js +0 -18
  652. package/dist/node_modules/@mui/icons-material/IndeterminateCheckBox/index.esm.js.map +0 -1
  653. package/dist/node_modules/@mui/icons-material/IndeterminateCheckBox/index.js +0 -2
  654. package/dist/node_modules/@mui/icons-material/IndeterminateCheckBox/index.js.map +0 -1
  655. package/dist/node_modules/@mui/icons-material/NorthEast/index.esm.js +0 -18
  656. package/dist/node_modules/@mui/icons-material/NorthEast/index.esm.js.map +0 -1
  657. package/dist/node_modules/@mui/icons-material/NorthEast/index.js +0 -2
  658. package/dist/node_modules/@mui/icons-material/NorthEast/index.js.map +0 -1
  659. package/dist/node_modules/@mui/icons-material/Visibility/index.esm.js +0 -18
  660. package/dist/node_modules/@mui/icons-material/Visibility/index.esm.js.map +0 -1
  661. package/dist/node_modules/@mui/icons-material/Visibility/index.js +0 -2
  662. package/dist/node_modules/@mui/icons-material/Visibility/index.js.map +0 -1
  663. package/dist/node_modules/@mui/lab/Timeline/Timeline/index.esm.js +0 -95
  664. package/dist/node_modules/@mui/lab/Timeline/Timeline/index.esm.js.map +0 -1
  665. package/dist/node_modules/@mui/lab/Timeline/Timeline/index.js +0 -3
  666. package/dist/node_modules/@mui/lab/Timeline/Timeline/index.js.map +0 -1
  667. package/dist/node_modules/@mui/lab/Timeline/TimelineContext/index.esm.js +0 -10
  668. package/dist/node_modules/@mui/lab/Timeline/TimelineContext/index.esm.js.map +0 -1
  669. package/dist/node_modules/@mui/lab/Timeline/TimelineContext/index.js +0 -2
  670. package/dist/node_modules/@mui/lab/Timeline/TimelineContext/index.js.map +0 -1
  671. package/dist/node_modules/@mui/lab/Timeline/timelineClasses/index.esm.js +0 -10
  672. package/dist/node_modules/@mui/lab/Timeline/timelineClasses/index.esm.js.map +0 -1
  673. package/dist/node_modules/@mui/lab/Timeline/timelineClasses/index.js +0 -2
  674. package/dist/node_modules/@mui/lab/Timeline/timelineClasses/index.js.map +0 -1
  675. package/dist/node_modules/@mui/lab/TimelineConnector/TimelineConnector/index.esm.js +0 -76
  676. package/dist/node_modules/@mui/lab/TimelineConnector/TimelineConnector/index.esm.js.map +0 -1
  677. package/dist/node_modules/@mui/lab/TimelineConnector/TimelineConnector/index.js +0 -3
  678. package/dist/node_modules/@mui/lab/TimelineConnector/TimelineConnector/index.js.map +0 -1
  679. package/dist/node_modules/@mui/lab/TimelineConnector/timelineConnectorClasses/index.esm.js +0 -10
  680. package/dist/node_modules/@mui/lab/TimelineConnector/timelineConnectorClasses/index.esm.js.map +0 -1
  681. package/dist/node_modules/@mui/lab/TimelineConnector/timelineConnectorClasses/index.js +0 -2
  682. package/dist/node_modules/@mui/lab/TimelineConnector/timelineConnectorClasses/index.js.map +0 -1
  683. package/dist/node_modules/@mui/lab/TimelineContent/TimelineContent/index.esm.js +0 -91
  684. package/dist/node_modules/@mui/lab/TimelineContent/TimelineContent/index.esm.js.map +0 -1
  685. package/dist/node_modules/@mui/lab/TimelineContent/TimelineContent/index.js +0 -3
  686. package/dist/node_modules/@mui/lab/TimelineContent/TimelineContent/index.js.map +0 -1
  687. package/dist/node_modules/@mui/lab/TimelineContent/timelineContentClasses/index.esm.js +0 -11
  688. package/dist/node_modules/@mui/lab/TimelineContent/timelineContentClasses/index.esm.js.map +0 -1
  689. package/dist/node_modules/@mui/lab/TimelineContent/timelineContentClasses/index.js +0 -2
  690. package/dist/node_modules/@mui/lab/TimelineContent/timelineContentClasses/index.js.map +0 -1
  691. package/dist/node_modules/@mui/lab/TimelineDot/TimelineDot/index.esm.js +0 -118
  692. package/dist/node_modules/@mui/lab/TimelineDot/TimelineDot/index.esm.js.map +0 -1
  693. package/dist/node_modules/@mui/lab/TimelineDot/TimelineDot/index.js +0 -3
  694. package/dist/node_modules/@mui/lab/TimelineDot/TimelineDot/index.js.map +0 -1
  695. package/dist/node_modules/@mui/lab/TimelineDot/timelineDotClasses/index.esm.js +0 -10
  696. package/dist/node_modules/@mui/lab/TimelineDot/timelineDotClasses/index.esm.js.map +0 -1
  697. package/dist/node_modules/@mui/lab/TimelineDot/timelineDotClasses/index.js +0 -2
  698. package/dist/node_modules/@mui/lab/TimelineDot/timelineDotClasses/index.js.map +0 -1
  699. package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.esm.js +0 -128
  700. package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.esm.js.map +0 -1
  701. package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.js +0 -3
  702. package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.js.map +0 -1
  703. package/dist/node_modules/@mui/lab/TimelineItem/timelineItemClasses/index.esm.js +0 -10
  704. package/dist/node_modules/@mui/lab/TimelineItem/timelineItemClasses/index.esm.js.map +0 -1
  705. package/dist/node_modules/@mui/lab/TimelineItem/timelineItemClasses/index.js +0 -2
  706. package/dist/node_modules/@mui/lab/TimelineItem/timelineItemClasses/index.js.map +0 -1
  707. package/dist/node_modules/@mui/lab/TimelineOppositeContent/timelineOppositeContentClasses/index.esm.js +0 -6
  708. package/dist/node_modules/@mui/lab/TimelineOppositeContent/timelineOppositeContentClasses/index.esm.js.map +0 -1
  709. package/dist/node_modules/@mui/lab/TimelineOppositeContent/timelineOppositeContentClasses/index.js +0 -2
  710. package/dist/node_modules/@mui/lab/TimelineOppositeContent/timelineOppositeContentClasses/index.js.map +0 -1
  711. package/dist/node_modules/@mui/lab/TimelineSeparator/TimelineSeparator/index.esm.js +0 -73
  712. package/dist/node_modules/@mui/lab/TimelineSeparator/TimelineSeparator/index.esm.js.map +0 -1
  713. package/dist/node_modules/@mui/lab/TimelineSeparator/TimelineSeparator/index.js +0 -3
  714. package/dist/node_modules/@mui/lab/TimelineSeparator/TimelineSeparator/index.js.map +0 -1
  715. package/dist/node_modules/@mui/lab/TimelineSeparator/timelineSeparatorClasses/index.esm.js +0 -10
  716. package/dist/node_modules/@mui/lab/TimelineSeparator/timelineSeparatorClasses/index.esm.js.map +0 -1
  717. package/dist/node_modules/@mui/lab/TimelineSeparator/timelineSeparatorClasses/index.js +0 -2
  718. package/dist/node_modules/@mui/lab/TimelineSeparator/timelineSeparatorClasses/index.js.map +0 -1
  719. package/dist/node_modules/@mui/lab/internal/convertTimelinePositionToClass/index.esm.js +0 -8
  720. package/dist/node_modules/@mui/lab/internal/convertTimelinePositionToClass/index.esm.js.map +0 -1
  721. package/dist/node_modules/@mui/lab/internal/convertTimelinePositionToClass/index.js +0 -2
  722. package/dist/node_modules/@mui/lab/internal/convertTimelinePositionToClass/index.js.map +0 -1
  723. package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.esm.js +0 -95
  724. package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.esm.js.map +0 -1
  725. package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.js +0 -3
  726. package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.js.map +0 -1
  727. package/dist/node_modules/@mui/material/AccordionActions/accordionActionsClasses/index.esm.js +0 -10
  728. package/dist/node_modules/@mui/material/AccordionActions/accordionActionsClasses/index.esm.js.map +0 -1
  729. package/dist/node_modules/@mui/material/AccordionActions/accordionActionsClasses/index.js +0 -2
  730. package/dist/node_modules/@mui/material/AccordionActions/accordionActionsClasses/index.js.map +0 -1
  731. package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.esm.js +0 -201
  732. package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.esm.js.map +0 -1
  733. package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.js +0 -3
  734. package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.js.map +0 -1
  735. package/dist/node_modules/@mui/material/AvatarGroup/avatarGroupClasses/index.esm.js +0 -11
  736. package/dist/node_modules/@mui/material/AvatarGroup/avatarGroupClasses/index.esm.js.map +0 -1
  737. package/dist/node_modules/@mui/material/AvatarGroup/avatarGroupClasses/index.js +0 -2
  738. package/dist/node_modules/@mui/material/AvatarGroup/avatarGroupClasses/index.js.map +0 -1
  739. package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.esm.js +0 -125
  740. package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.esm.js.map +0 -1
  741. package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.js +0 -4
  742. package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.js.map +0 -1
  743. package/dist/node_modules/@mui/material/BottomNavigation/bottomNavigationClasses/index.esm.js +0 -10
  744. package/dist/node_modules/@mui/material/BottomNavigation/bottomNavigationClasses/index.esm.js.map +0 -1
  745. package/dist/node_modules/@mui/material/BottomNavigation/bottomNavigationClasses/index.js +0 -2
  746. package/dist/node_modules/@mui/material/BottomNavigation/bottomNavigationClasses/index.js.map +0 -1
  747. package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.esm.js +0 -170
  748. package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.esm.js.map +0 -1
  749. package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.js +0 -3
  750. package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.js.map +0 -1
  751. package/dist/node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses/index.esm.js +0 -11
  752. package/dist/node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses/index.esm.js.map +0 -1
  753. package/dist/node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses/index.js +0 -2
  754. package/dist/node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses/index.js.map +0 -1
  755. package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.esm.js +0 -120
  756. package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.esm.js.map +0 -1
  757. package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.js +0 -3
  758. package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.js.map +0 -1
  759. package/dist/node_modules/@mui/material/CardActionArea/cardActionAreaClasses/index.esm.js +0 -11
  760. package/dist/node_modules/@mui/material/CardActionArea/cardActionAreaClasses/index.esm.js.map +0 -1
  761. package/dist/node_modules/@mui/material/CardActionArea/cardActionAreaClasses/index.js +0 -2
  762. package/dist/node_modules/@mui/material/CardActionArea/cardActionAreaClasses/index.js.map +0 -1
  763. package/dist/node_modules/@mui/material/CardActions/CardActions/index.esm.js +0 -92
  764. package/dist/node_modules/@mui/material/CardActions/CardActions/index.esm.js.map +0 -1
  765. package/dist/node_modules/@mui/material/CardActions/CardActions/index.js +0 -3
  766. package/dist/node_modules/@mui/material/CardActions/CardActions/index.js.map +0 -1
  767. package/dist/node_modules/@mui/material/CardActions/cardActionsClasses/index.esm.js +0 -10
  768. package/dist/node_modules/@mui/material/CardActions/cardActionsClasses/index.esm.js.map +0 -1
  769. package/dist/node_modules/@mui/material/CardActions/cardActionsClasses/index.js +0 -2
  770. package/dist/node_modules/@mui/material/CardActions/cardActionsClasses/index.js.map +0 -1
  771. package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.esm.js +0 -196
  772. package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.esm.js.map +0 -1
  773. package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.js +0 -2
  774. package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.js.map +0 -1
  775. package/dist/node_modules/@mui/material/CardHeader/cardHeaderClasses/index.esm.js +0 -11
  776. package/dist/node_modules/@mui/material/CardHeader/cardHeaderClasses/index.esm.js.map +0 -1
  777. package/dist/node_modules/@mui/material/CardHeader/cardHeaderClasses/index.js +0 -2
  778. package/dist/node_modules/@mui/material/CardHeader/cardHeaderClasses/index.js.map +0 -1
  779. package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.esm.js +0 -76
  780. package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.esm.js.map +0 -1
  781. package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.js +0 -3
  782. package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.js.map +0 -1
  783. package/dist/node_modules/@mui/material/DialogContentText/dialogContentTextClasses/index.esm.js +0 -10
  784. package/dist/node_modules/@mui/material/DialogContentText/dialogContentTextClasses/index.esm.js.map +0 -1
  785. package/dist/node_modules/@mui/material/DialogContentText/dialogContentTextClasses/index.js +0 -2
  786. package/dist/node_modules/@mui/material/DialogContentText/dialogContentTextClasses/index.js.map +0 -1
  787. package/dist/node_modules/@mui/material/Fab/Fab/index.esm.js +0 -231
  788. package/dist/node_modules/@mui/material/Fab/Fab/index.esm.js.map +0 -1
  789. package/dist/node_modules/@mui/material/Fab/Fab/index.js +0 -3
  790. package/dist/node_modules/@mui/material/Fab/Fab/index.js.map +0 -1
  791. package/dist/node_modules/@mui/material/Fab/fabClasses/index.esm.js +0 -11
  792. package/dist/node_modules/@mui/material/Fab/fabClasses/index.esm.js.map +0 -1
  793. package/dist/node_modules/@mui/material/Fab/fabClasses/index.js +0 -2
  794. package/dist/node_modules/@mui/material/Fab/fabClasses/index.js.map +0 -1
  795. package/dist/node_modules/@mui/material/Hidden/Hidden/index.esm.js +0 -135
  796. package/dist/node_modules/@mui/material/Hidden/Hidden/index.esm.js.map +0 -1
  797. package/dist/node_modules/@mui/material/Hidden/Hidden/index.js +0 -2
  798. package/dist/node_modules/@mui/material/Hidden/Hidden/index.js.map +0 -1
  799. package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.esm.js +0 -176
  800. package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.esm.js.map +0 -1
  801. package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.js +0 -3
  802. package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.js.map +0 -1
  803. package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.esm.js +0 -119
  804. package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.esm.js.map +0 -1
  805. package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.js +0 -2
  806. package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.js.map +0 -1
  807. package/dist/node_modules/@mui/material/Hidden/hiddenCssClasses/index.esm.js +0 -10
  808. package/dist/node_modules/@mui/material/Hidden/hiddenCssClasses/index.esm.js.map +0 -1
  809. package/dist/node_modules/@mui/material/Hidden/hiddenCssClasses/index.js +0 -2
  810. package/dist/node_modules/@mui/material/Hidden/hiddenCssClasses/index.js.map +0 -1
  811. package/dist/node_modules/@mui/material/Hidden/withWidth/index.esm.js +0 -92
  812. package/dist/node_modules/@mui/material/Hidden/withWidth/index.esm.js.map +0 -1
  813. package/dist/node_modules/@mui/material/Hidden/withWidth/index.js +0 -2
  814. package/dist/node_modules/@mui/material/Hidden/withWidth/index.js.map +0 -1
  815. package/dist/node_modules/@mui/material/ImageList/ImageList/index.esm.js +0 -156
  816. package/dist/node_modules/@mui/material/ImageList/ImageList/index.esm.js.map +0 -1
  817. package/dist/node_modules/@mui/material/ImageList/ImageList/index.js +0 -3
  818. package/dist/node_modules/@mui/material/ImageList/ImageList/index.js.map +0 -1
  819. package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.esm.js +0 -10
  820. package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.esm.js.map +0 -1
  821. package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.js +0 -2
  822. package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.js.map +0 -1
  823. package/dist/node_modules/@mui/material/ImageList/imageListClasses/index.esm.js +0 -10
  824. package/dist/node_modules/@mui/material/ImageList/imageListClasses/index.esm.js.map +0 -1
  825. package/dist/node_modules/@mui/material/ImageList/imageListClasses/index.js +0 -2
  826. package/dist/node_modules/@mui/material/ImageList/imageListClasses/index.js.map +0 -1
  827. package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.esm.js +0 -173
  828. package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.esm.js.map +0 -1
  829. package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.js +0 -3
  830. package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.js.map +0 -1
  831. package/dist/node_modules/@mui/material/ImageListItem/imageListItemClasses/index.esm.js +0 -11
  832. package/dist/node_modules/@mui/material/ImageListItem/imageListItemClasses/index.esm.js.map +0 -1
  833. package/dist/node_modules/@mui/material/ImageListItem/imageListItemClasses/index.js +0 -2
  834. package/dist/node_modules/@mui/material/ImageListItem/imageListItemClasses/index.js.map +0 -1
  835. package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.esm.js +0 -222
  836. package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.esm.js.map +0 -1
  837. package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.js +0 -3
  838. package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.js.map +0 -1
  839. package/dist/node_modules/@mui/material/ImageListItemBar/imageListItemBarClasses/index.esm.js +0 -10
  840. package/dist/node_modules/@mui/material/ImageListItemBar/imageListItemBarClasses/index.esm.js.map +0 -1
  841. package/dist/node_modules/@mui/material/ImageListItemBar/imageListItemBarClasses/index.js +0 -2
  842. package/dist/node_modules/@mui/material/ImageListItemBar/imageListItemBarClasses/index.js.map +0 -1
  843. package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.esm.js +0 -216
  844. package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.esm.js.map +0 -1
  845. package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.js +0 -3
  846. package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.js.map +0 -1
  847. package/dist/node_modules/@mui/material/MobileStepper/mobileStepperClasses/index.esm.js +0 -10
  848. package/dist/node_modules/@mui/material/MobileStepper/mobileStepperClasses/index.esm.js.map +0 -1
  849. package/dist/node_modules/@mui/material/MobileStepper/mobileStepperClasses/index.js +0 -2
  850. package/dist/node_modules/@mui/material/MobileStepper/mobileStepperClasses/index.js.map +0 -1
  851. package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.esm.js +0 -126
  852. package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.esm.js.map +0 -1
  853. package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.js +0 -3
  854. package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.js.map +0 -1
  855. package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.esm.js +0 -55
  856. package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.esm.js.map +0 -1
  857. package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.js +0 -2
  858. package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.js.map +0 -1
  859. package/dist/node_modules/@mui/material/Rating/Rating/index.esm.js +0 -638
  860. package/dist/node_modules/@mui/material/Rating/Rating/index.esm.js.map +0 -1
  861. package/dist/node_modules/@mui/material/Rating/Rating/index.js +0 -7
  862. package/dist/node_modules/@mui/material/Rating/Rating/index.js.map +0 -1
  863. package/dist/node_modules/@mui/material/Rating/ratingClasses/index.esm.js +0 -11
  864. package/dist/node_modules/@mui/material/Rating/ratingClasses/index.esm.js.map +0 -1
  865. package/dist/node_modules/@mui/material/Rating/ratingClasses/index.js +0 -2
  866. package/dist/node_modules/@mui/material/Rating/ratingClasses/index.js.map +0 -1
  867. package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.esm.js +0 -105
  868. package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.esm.js.map +0 -1
  869. package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.js +0 -3
  870. package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.js.map +0 -1
  871. package/dist/node_modules/@mui/material/ScopedCssBaseline/scopedCssBaselineClasses/index.esm.js +0 -10
  872. package/dist/node_modules/@mui/material/ScopedCssBaseline/scopedCssBaselineClasses/index.esm.js.map +0 -1
  873. package/dist/node_modules/@mui/material/ScopedCssBaseline/scopedCssBaselineClasses/index.js +0 -2
  874. package/dist/node_modules/@mui/material/ScopedCssBaseline/scopedCssBaselineClasses/index.js.map +0 -1
  875. package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.esm.js +0 -453
  876. package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.esm.js.map +0 -1
  877. package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.js +0 -4
  878. package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.js.map +0 -1
  879. package/dist/node_modules/@mui/material/SpeedDial/speedDialClasses/index.esm.js +0 -11
  880. package/dist/node_modules/@mui/material/SpeedDial/speedDialClasses/index.esm.js.map +0 -1
  881. package/dist/node_modules/@mui/material/SpeedDial/speedDialClasses/index.js +0 -2
  882. package/dist/node_modules/@mui/material/SpeedDial/speedDialClasses/index.js.map +0 -1
  883. package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.esm.js +0 -245
  884. package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.esm.js.map +0 -1
  885. package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.js +0 -2
  886. package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.js.map +0 -1
  887. package/dist/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses/index.esm.js +0 -11
  888. package/dist/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses/index.esm.js.map +0 -1
  889. package/dist/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses/index.js +0 -2
  890. package/dist/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses/index.js.map +0 -1
  891. package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.esm.js +0 -137
  892. package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.esm.js.map +0 -1
  893. package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.js +0 -4
  894. package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.js.map +0 -1
  895. package/dist/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses/index.esm.js +0 -11
  896. package/dist/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses/index.esm.js.map +0 -1
  897. package/dist/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses/index.js +0 -2
  898. package/dist/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses/index.js.map +0 -1
  899. package/dist/node_modules/@mui/material/Step/Step/index.esm.js +0 -169
  900. package/dist/node_modules/@mui/material/Step/Step/index.esm.js.map +0 -1
  901. package/dist/node_modules/@mui/material/Step/Step/index.js +0 -3
  902. package/dist/node_modules/@mui/material/Step/Step/index.js.map +0 -1
  903. package/dist/node_modules/@mui/material/Step/StepContext/index.esm.js +0 -10
  904. package/dist/node_modules/@mui/material/Step/StepContext/index.esm.js.map +0 -1
  905. package/dist/node_modules/@mui/material/Step/StepContext/index.js +0 -2
  906. package/dist/node_modules/@mui/material/Step/StepContext/index.js.map +0 -1
  907. package/dist/node_modules/@mui/material/Step/stepClasses/index.esm.js +0 -10
  908. package/dist/node_modules/@mui/material/Step/stepClasses/index.esm.js.map +0 -1
  909. package/dist/node_modules/@mui/material/Step/stepClasses/index.js +0 -2
  910. package/dist/node_modules/@mui/material/Step/stepClasses/index.js.map +0 -1
  911. package/dist/node_modules/@mui/material/StepButton/StepButton/index.esm.js +0 -132
  912. package/dist/node_modules/@mui/material/StepButton/StepButton/index.esm.js.map +0 -1
  913. package/dist/node_modules/@mui/material/StepButton/StepButton/index.js +0 -3
  914. package/dist/node_modules/@mui/material/StepButton/StepButton/index.js.map +0 -1
  915. package/dist/node_modules/@mui/material/StepButton/stepButtonClasses/index.esm.js +0 -11
  916. package/dist/node_modules/@mui/material/StepButton/stepButtonClasses/index.esm.js.map +0 -1
  917. package/dist/node_modules/@mui/material/StepButton/stepButtonClasses/index.js +0 -2
  918. package/dist/node_modules/@mui/material/StepButton/stepButtonClasses/index.js.map +0 -1
  919. package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.esm.js +0 -136
  920. package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.esm.js.map +0 -1
  921. package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.js +0 -3
  922. package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.js.map +0 -1
  923. package/dist/node_modules/@mui/material/StepConnector/stepConnectorClasses/index.esm.js +0 -10
  924. package/dist/node_modules/@mui/material/StepConnector/stepConnectorClasses/index.esm.js.map +0 -1
  925. package/dist/node_modules/@mui/material/StepConnector/stepConnectorClasses/index.js +0 -2
  926. package/dist/node_modules/@mui/material/StepConnector/stepConnectorClasses/index.js.map +0 -1
  927. package/dist/node_modules/@mui/material/StepContent/StepContent/index.esm.js +0 -152
  928. package/dist/node_modules/@mui/material/StepContent/StepContent/index.esm.js.map +0 -1
  929. package/dist/node_modules/@mui/material/StepContent/StepContent/index.js +0 -2
  930. package/dist/node_modules/@mui/material/StepContent/StepContent/index.js.map +0 -1
  931. package/dist/node_modules/@mui/material/StepContent/stepContentClasses/index.esm.js +0 -10
  932. package/dist/node_modules/@mui/material/StepContent/stepContentClasses/index.esm.js.map +0 -1
  933. package/dist/node_modules/@mui/material/StepContent/stepContentClasses/index.js +0 -2
  934. package/dist/node_modules/@mui/material/StepContent/stepContentClasses/index.js.map +0 -1
  935. package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.esm.js +0 -161
  936. package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.esm.js.map +0 -1
  937. package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.js +0 -2
  938. package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.js.map +0 -1
  939. package/dist/node_modules/@mui/material/StepIcon/stepIconClasses/index.esm.js +0 -11
  940. package/dist/node_modules/@mui/material/StepIcon/stepIconClasses/index.esm.js.map +0 -1
  941. package/dist/node_modules/@mui/material/StepIcon/stepIconClasses/index.js +0 -2
  942. package/dist/node_modules/@mui/material/StepIcon/stepIconClasses/index.js.map +0 -1
  943. package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.esm.js +0 -239
  944. package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.esm.js.map +0 -1
  945. package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.js +0 -3
  946. package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.js.map +0 -1
  947. package/dist/node_modules/@mui/material/StepLabel/stepLabelClasses/index.esm.js +0 -11
  948. package/dist/node_modules/@mui/material/StepLabel/stepLabelClasses/index.esm.js.map +0 -1
  949. package/dist/node_modules/@mui/material/StepLabel/stepLabelClasses/index.js +0 -2
  950. package/dist/node_modules/@mui/material/StepLabel/stepLabelClasses/index.js.map +0 -1
  951. package/dist/node_modules/@mui/material/Stepper/Stepper/index.esm.js +0 -155
  952. package/dist/node_modules/@mui/material/Stepper/Stepper/index.esm.js.map +0 -1
  953. package/dist/node_modules/@mui/material/Stepper/Stepper/index.js +0 -3
  954. package/dist/node_modules/@mui/material/Stepper/Stepper/index.js.map +0 -1
  955. package/dist/node_modules/@mui/material/Stepper/StepperContext/index.esm.js +0 -10
  956. package/dist/node_modules/@mui/material/Stepper/StepperContext/index.esm.js.map +0 -1
  957. package/dist/node_modules/@mui/material/Stepper/StepperContext/index.js +0 -2
  958. package/dist/node_modules/@mui/material/Stepper/StepperContext/index.js.map +0 -1
  959. package/dist/node_modules/@mui/material/Stepper/stepperClasses/index.esm.js +0 -10
  960. package/dist/node_modules/@mui/material/Stepper/stepperClasses/index.esm.js.map +0 -1
  961. package/dist/node_modules/@mui/material/Stepper/stepperClasses/index.js +0 -2
  962. package/dist/node_modules/@mui/material/Stepper/stepperClasses/index.js.map +0 -1
  963. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.esm.js +0 -82
  964. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.esm.js.map +0 -1
  965. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.js +0 -3
  966. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.js.map +0 -1
  967. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.esm.js +0 -538
  968. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.esm.js.map +0 -1
  969. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.js +0 -2
  970. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.js.map +0 -1
  971. package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.esm.js +0 -443
  972. package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.esm.js.map +0 -1
  973. package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.js +0 -3
  974. package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.js.map +0 -1
  975. package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.esm.js +0 -179
  976. package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.esm.js.map +0 -1
  977. package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.js +0 -3
  978. package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.js.map +0 -1
  979. package/dist/node_modules/@mui/material/TablePagination/tablePaginationClasses/index.esm.js +0 -11
  980. package/dist/node_modules/@mui/material/TablePagination/tablePaginationClasses/index.esm.js.map +0 -1
  981. package/dist/node_modules/@mui/material/TablePagination/tablePaginationClasses/index.js +0 -2
  982. package/dist/node_modules/@mui/material/TablePagination/tablePaginationClasses/index.js.map +0 -1
  983. package/dist/node_modules/@mui/material/Zoom/Zoom/index.esm.js +0 -196
  984. package/dist/node_modules/@mui/material/Zoom/Zoom/index.esm.js.map +0 -1
  985. package/dist/node_modules/@mui/material/Zoom/Zoom/index.js +0 -3
  986. package/dist/node_modules/@mui/material/Zoom/Zoom/index.js.map +0 -1
  987. package/dist/node_modules/@mui/material/internal/svg-icons/Add/index.esm.js +0 -9
  988. package/dist/node_modules/@mui/material/internal/svg-icons/Add/index.esm.js.map +0 -1
  989. package/dist/node_modules/@mui/material/internal/svg-icons/Add/index.js +0 -2
  990. package/dist/node_modules/@mui/material/internal/svg-icons/Add/index.js.map +0 -1
  991. package/dist/node_modules/@mui/material/internal/svg-icons/CheckCircle/index.esm.js +0 -9
  992. package/dist/node_modules/@mui/material/internal/svg-icons/CheckCircle/index.esm.js.map +0 -1
  993. package/dist/node_modules/@mui/material/internal/svg-icons/CheckCircle/index.js +0 -2
  994. package/dist/node_modules/@mui/material/internal/svg-icons/CheckCircle/index.js.map +0 -1
  995. package/dist/node_modules/@mui/material/internal/svg-icons/Star/index.esm.js +0 -9
  996. package/dist/node_modules/@mui/material/internal/svg-icons/Star/index.esm.js.map +0 -1
  997. package/dist/node_modules/@mui/material/internal/svg-icons/Star/index.js +0 -2
  998. package/dist/node_modules/@mui/material/internal/svg-icons/Star/index.js.map +0 -1
  999. package/dist/node_modules/@mui/material/internal/svg-icons/StarBorder/index.esm.js +0 -9
  1000. package/dist/node_modules/@mui/material/internal/svg-icons/StarBorder/index.esm.js.map +0 -1
  1001. package/dist/node_modules/@mui/material/internal/svg-icons/StarBorder/index.js +0 -2
  1002. package/dist/node_modules/@mui/material/internal/svg-icons/StarBorder/index.js.map +0 -1
  1003. package/dist/node_modules/@mui/material/internal/svg-icons/Warning/index.esm.js +0 -9
  1004. package/dist/node_modules/@mui/material/internal/svg-icons/Warning/index.esm.js.map +0 -1
  1005. package/dist/node_modules/@mui/material/internal/svg-icons/Warning/index.js +0 -2
  1006. package/dist/node_modules/@mui/material/internal/svg-icons/Warning/index.js.map +0 -1
  1007. package/dist/node_modules/@mui/material/useScrollTrigger/useScrollTrigger/index.esm.js +0 -51
  1008. package/dist/node_modules/@mui/material/useScrollTrigger/useScrollTrigger/index.esm.js.map +0 -1
  1009. package/dist/node_modules/@mui/material/useScrollTrigger/useScrollTrigger/index.js +0 -2
  1010. package/dist/node_modules/@mui/material/useScrollTrigger/useScrollTrigger/index.js.map +0 -1
  1011. package/dist/node_modules/d3-shape/src/arc/index.esm.js +0 -134
  1012. package/dist/node_modules/d3-shape/src/arc/index.esm.js.map +0 -1
  1013. package/dist/node_modules/d3-shape/src/arc/index.js +0 -2
  1014. package/dist/node_modules/d3-shape/src/arc/index.js.map +0 -1
  1015. package/dist/node_modules/d3-shape/src/descending/index.esm.js +0 -7
  1016. package/dist/node_modules/d3-shape/src/descending/index.esm.js.map +0 -1
  1017. package/dist/node_modules/d3-shape/src/descending/index.js +0 -2
  1018. package/dist/node_modules/d3-shape/src/descending/index.js.map +0 -1
  1019. package/dist/node_modules/d3-shape/src/identity/index.esm.js +0 -7
  1020. package/dist/node_modules/d3-shape/src/identity/index.esm.js.map +0 -1
  1021. package/dist/node_modules/d3-shape/src/identity/index.js +0 -2
  1022. package/dist/node_modules/d3-shape/src/identity/index.js.map +0 -1
  1023. package/dist/node_modules/d3-shape/src/math/index.esm.js +0 -33
  1024. package/dist/node_modules/d3-shape/src/math/index.esm.js.map +0 -1
  1025. package/dist/node_modules/d3-shape/src/math/index.js +0 -2
  1026. package/dist/node_modules/d3-shape/src/math/index.js.map +0 -1
  1027. package/dist/node_modules/d3-shape/src/pie/index.esm.js +0 -56
  1028. package/dist/node_modules/d3-shape/src/pie/index.esm.js.map +0 -1
  1029. package/dist/node_modules/d3-shape/src/pie/index.js +0 -2
  1030. package/dist/node_modules/d3-shape/src/pie/index.js.map +0 -1
  1031. package/dist/src/views/afterAuth/accounting.d.ts +0 -4
  1032. package/dist/src/views/afterAuth/crm.d.ts +0 -4
  1033. package/dist/src/views/afterAuth/document.d.ts +0 -4
  1034. package/dist/src/views/afterAuth/hrms.d.ts +0 -4
  1035. package/dist/src/views/afterAuth/inventory.d.ts +0 -4
  1036. package/dist/src/views/afterAuth/manufacturing.d.ts +0 -4
  1037. package/dist/src/views/afterAuth/office.d.ts +0 -4
  1038. package/dist/src/views/afterAuth/procurement.d.ts +0 -4
  1039. package/dist/src/views/afterAuth/project.d.ts +0 -4
  1040. package/dist/src/views/afterAuth/purchase.d.ts +0 -4
  1041. package/dist/src/views/afterAuth/quotes.d.ts +0 -4
  1042. package/dist/src/views/afterAuth/rental.d.ts +0 -4
  1043. package/dist/src/views/afterAuth/user.d.ts +0 -4
  1044. package/dist/src/views/beforeAuth/components/user-profile-data/user-profile-data.d.ts +0 -9
  1045. package/dist/styles/sass/_mixins.scss/index.esm.js +0 -2
  1046. package/dist/styles/sass/_mixins.scss/index.esm.js.map +0 -1
  1047. package/dist/styles/sass/_mixins.scss/index.js +0 -2
  1048. package/dist/styles/sass/_mixins.scss/index.js.map +0 -1
  1049. package/dist/styles/sass/_variables.scss/index.esm.js +0 -2
  1050. package/dist/styles/sass/_variables.scss/index.esm.js.map +0 -1
  1051. package/dist/styles/sass/_variables.scss/index.js +0 -2
  1052. package/dist/styles/sass/_variables.scss/index.js.map +0 -1
  1053. package/dist/views/beforeAuth/components/index/index.esm.js +0 -1144
  1054. package/dist/views/beforeAuth/components/index/index.esm.js.map +0 -1
  1055. package/dist/views/beforeAuth/components/index/index.js +0 -206
  1056. package/dist/views/beforeAuth/components/index/index.js.map +0 -1
  1057. package/dist/views/beforeAuth/login/index.scss/index.esm.js +0 -2
  1058. package/dist/views/beforeAuth/login/index.scss/index.esm.js.map +0 -1
  1059. package/dist/views/beforeAuth/login/index.scss/index.js +0 -2
  1060. package/dist/views/beforeAuth/login/index.scss/index.js.map +0 -1
  1061. package/dist/views/form-builder/index/index.esm.js +0 -32
  1062. package/dist/views/form-builder/index/index.esm.js.map +0 -1
  1063. package/dist/views/form-builder/index/index.js +0 -2
  1064. package/dist/views/form-builder/index/index.js.map +0 -1
@@ -81,8 +81,114 @@ const DynamicLayoutWrapper = ({
81
81
  /* @__PURE__ */ jsx(ExpandableSummaryWrapper, { ...mergedSummaryProps })
82
82
  ] });
83
83
  };
84
+ const AdvancedDynamicLayoutWrapper = ({
85
+ multipleSummaries = [],
86
+ layoutMode = "horizontal",
87
+ minMainContentSize = 4,
88
+ minSummarySize = 2,
89
+ responsiveConfig,
90
+ ...baseProps
91
+ }) => {
92
+ var _a;
93
+ const [summaryStates, setSummaryStates] = useState({});
94
+ const totalSummarySize = useMemo(() => {
95
+ return Object.values(summaryStates).reduce((total, state) => total + state.size, 0);
96
+ }, [summaryStates]);
97
+ const handleMultipleSummaryToggle = useCallback((summaryId, isExpanded, summaryGridSize) => {
98
+ setSummaryStates((prev) => {
99
+ var _a2;
100
+ const newStates = {
101
+ ...prev,
102
+ [summaryId]: { size: summaryGridSize, expanded: isExpanded }
103
+ };
104
+ const newTotalSize = Object.values(newStates).reduce((total, state) => total + state.size, 0);
105
+ const newMainSize = Math.max(
106
+ minMainContentSize,
107
+ Math.min(baseProps.maxGridSize - newTotalSize, baseProps.maxGridSize)
108
+ );
109
+ (_a2 = baseProps.onLayoutChange) == null ? void 0 : _a2.call(baseProps, newMainSize, newTotalSize, isExpanded);
110
+ return newStates;
111
+ });
112
+ }, [baseProps, minMainContentSize]);
113
+ if (multipleSummaries.length > 0) {
114
+ const mainSize = Math.max(
115
+ minMainContentSize,
116
+ (baseProps.maxGridSize || 12) - totalSummarySize
117
+ );
118
+ return /* @__PURE__ */ jsxs(Grid, { container: true, ...baseProps.containerProps, children: [
119
+ /* @__PURE__ */ jsx(
120
+ Grid,
121
+ {
122
+ item: true,
123
+ xs: mainSize,
124
+ sx: {
125
+ transition: baseProps.enableTransitions ? `all ${baseProps.transitionDuration || 300}ms ${baseProps.transitionEasing || "ease-in-out"}` : void 0,
126
+ ...(_a = baseProps.mainContentProps) == null ? void 0 : _a.sx
127
+ },
128
+ ...baseProps.mainContentProps,
129
+ children: baseProps.children
130
+ }
131
+ ),
132
+ multipleSummaries.map((summary) => /* @__PURE__ */ jsx(
133
+ ExpandableSummaryWrapper,
134
+ {
135
+ ...summary.props,
136
+ onToggle: (isExpanded, size) => handleMultipleSummaryToggle(summary.id, isExpanded, size),
137
+ children: summary.content
138
+ },
139
+ summary.id
140
+ ))
141
+ ] });
142
+ }
143
+ return /* @__PURE__ */ jsx(DynamicLayoutWrapper, { ...baseProps });
144
+ };
145
+ const useDynamicLayout = (maxGridSize = 12, defaultSummaryExpanded = true, expandedSize = 3, collapsedSize = 0) => {
146
+ const [isExpanded, setIsExpanded] = useState(defaultSummaryExpanded);
147
+ const [summarySize, setSummarySize] = useState(
148
+ defaultSummaryExpanded ? expandedSize : collapsedSize
149
+ );
150
+ const [mainSize, setMainSize] = useState(
151
+ maxGridSize - (defaultSummaryExpanded ? expandedSize : collapsedSize)
152
+ );
153
+ const toggleSummary = useCallback(() => {
154
+ const newExpanded = !isExpanded;
155
+ const newSummarySize = newExpanded ? expandedSize : collapsedSize;
156
+ const newMainSize = maxGridSize - newSummarySize;
157
+ setIsExpanded(newExpanded);
158
+ setSummarySize(newSummarySize);
159
+ setMainSize(newMainSize);
160
+ }, [isExpanded, expandedSize, collapsedSize, maxGridSize]);
161
+ const setSummaryState = useCallback((expanded) => {
162
+ const newSummarySize = expanded ? expandedSize : collapsedSize;
163
+ const newMainSize = maxGridSize - newSummarySize;
164
+ setIsExpanded(expanded);
165
+ setSummarySize(newSummarySize);
166
+ setMainSize(newMainSize);
167
+ }, [expandedSize, collapsedSize, maxGridSize]);
168
+ return {
169
+ isExpanded,
170
+ summarySize,
171
+ mainSize,
172
+ toggleSummary,
173
+ setSummaryState
174
+ };
175
+ };
176
+ const calculateOptimalSizes = (totalSize, contentRatio = 0.75, minContentSize = 4, minSummarySize = 2) => {
177
+ const idealContentSize = Math.floor(totalSize * contentRatio);
178
+ const idealSummarySize = totalSize - idealContentSize;
179
+ const contentSize = Math.max(minContentSize, idealContentSize);
180
+ const summarySize = Math.max(minSummarySize, Math.min(idealSummarySize, totalSize - contentSize));
181
+ return {
182
+ contentSize: Math.min(contentSize, totalSize - summarySize),
183
+ summarySize,
184
+ totalUsed: contentSize + summarySize
185
+ };
186
+ };
84
187
  export {
188
+ AdvancedDynamicLayoutWrapper,
85
189
  DynamicLayoutWrapper,
86
- DynamicLayoutWrapper as default
190
+ calculateOptimalSizes,
191
+ DynamicLayoutWrapper as default,
192
+ useDynamicLayout
87
193
  };
88
194
  //# sourceMappingURL=index.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":["../../../../src/components/dynamic-layout-wrapper/dynamic-layout-wrapper.tsx"],"sourcesContent":["/* eslint-disable react-refresh/only-export-components */\n/* eslint-disable unused-imports/no-unused-vars */\n/* eslint-disable @typescript-eslint/no-unused-vars */\nimport React, { useState, useCallback, useMemo } from 'react';\nimport { Grid, GridProps, useMediaQuery, useTheme } from '@mui/material';\nimport ExpandableSummaryWrapper, { ExpandableSummaryWrapperProps } from '../expandable-summary-wrapper/expandable-summary-wrapper';\n// import { ExpandableSummaryWrapper, ExpandableSummaryWrapperProps } from './ExpandableSummaryWrapper';\n\ninterface DynamicLayoutWrapperProps {\n // Main content props\n children: React.ReactNode;\n mainContentProps?: Omit<GridProps, 'item' | 'xs'>;\n \n // Summary wrapper props\n summaryContent: React.ReactNode;\n summaryProps?: Omit<ExpandableSummaryWrapperProps, 'children' | 'onToggle'>;\n \n // Layout configuration\n maxGridSize?: number;\n defaultSummaryExpanded?: boolean;\n expandedSummarySize?: number;\n collapsedSummarySize?: number;\n \n // Container props\n containerProps?: Omit<GridProps, 'container'>;\n \n // Callbacks\n onLayoutChange?: (mainSize: number, summarySize: number, isExpanded: boolean) => void;\n \n // Animation configuration\n enableTransitions?: boolean;\n transitionDuration?: number | string;\n transitionEasing?: string;\n\n storageKey?: string\n}\n\nexport const DynamicLayoutWrapper: React.FC<DynamicLayoutWrapperProps> = ({\n children,\n mainContentProps = {},\n summaryContent,\n summaryProps = {},\n maxGridSize = 12,\n defaultSummaryExpanded = true,\n expandedSummarySize = 3,\n collapsedSummarySize = 0,\n containerProps = {},\n onLayoutChange,\n enableTransitions = true,\n transitionDuration,\n transitionEasing,\n storageKey = 'grid-summary-panel-state',\n}) => {\n const theme = useTheme();\n const isMobile = useMediaQuery(theme.breakpoints.down('md'));\n\n const getInitialState = useCallback(() => {\n if (typeof window !== 'undefined') {\n const stored = localStorage.getItem(storageKey);\n return stored ? JSON.parse(stored) : defaultSummaryExpanded;\n }\n return defaultSummaryExpanded;\n }, [defaultSummaryExpanded, storageKey]);\n \n // Calculate initial main content size\n const initialMainSize = useMemo(() => {\n return (isMobile || !getInitialState()) ? maxGridSize :(defaultSummaryExpanded \n ? maxGridSize - expandedSummarySize \n : maxGridSize - collapsedSummarySize);\n }, [isMobile, getInitialState, maxGridSize, defaultSummaryExpanded, expandedSummarySize, collapsedSummarySize]);\n \n const [mainContentSize, setMainContentSize] = useState<number>(initialMainSize);\n \n // Handle summary toggle with enhanced logic\n const handleSummaryToggle = useCallback((isExpanded: boolean, summaryGridSize: number) => {\n if(isMobile) {\n setMainContentSize(maxGridSize);\n return \n }\n const newMainContentSize = Math.max(1, Math.min(maxGridSize - summaryGridSize, maxGridSize));\n \n setMainContentSize(newMainContentSize);\n \n // Notify parent component of layout changes\n onLayoutChange?.(newMainContentSize, summaryGridSize, isExpanded);\n }, [isMobile, maxGridSize, onLayoutChange]);\n \n // Create transition styles\n const transitionStyles = useMemo(() => {\n if (!enableTransitions) return {};\n \n const duration = transitionDuration || theme.transitions.duration.enteringScreen;\n const easing = transitionEasing || theme.transitions.easing.sharp;\n \n return {\n transition: theme.transitions.create(['flex-basis', 'max-width'], {\n easing,\n duration,\n }),\n };\n }, [enableTransitions, theme, transitionDuration, transitionEasing]);\n \n // Merge summary props with defaults\n const mergedSummaryProps: ExpandableSummaryWrapperProps = {\n defaultExpanded: defaultSummaryExpanded,\n expandedGridSize: expandedSummarySize,\n collapsedGridSize: collapsedSummarySize,\n persistState: true,\n ariaLabel: 'Toggle summary panel',\n ...summaryProps,\n onToggle: handleSummaryToggle,\n children: summaryContent,\n storageKey: storageKey\n };\n \n return (\n <Grid container {...containerProps}>\n <Grid\n item\n xs={mainContentSize}\n sx={{\n ...transitionStyles,\n ...mainContentProps.sx,\n }}\n {...mainContentProps}\n >\n {children}\n </Grid>\n \n <ExpandableSummaryWrapper {...mergedSummaryProps} />\n </Grid>\n );\n};\n\n// Enhanced version with additional features\ninterface AdvancedDynamicLayoutWrapperProps extends DynamicLayoutWrapperProps {\n // Responsive breakpoints\n responsiveConfig?: {\n xs?: { expandedSize: number; collapsedSize: number };\n sm?: { expandedSize: number; collapsedSize: number };\n md?: { expandedSize: number; collapsedSize: number };\n lg?: { expandedSize: number; collapsedSize: number };\n xl?: { expandedSize: number; collapsedSize: number };\n };\n \n // Multiple summary panels support\n multipleSummaries?: Array<{\n content: React.ReactNode;\n props?: Omit<ExpandableSummaryWrapperProps, 'children' | 'onToggle'>;\n id: string;\n }>;\n \n // Layout modes\n layoutMode?: 'horizontal' | 'vertical' | 'adaptive';\n \n // Minimum sizes\n minMainContentSize?: number;\n minSummarySize?: number;\n}\n\nexport const AdvancedDynamicLayoutWrapper: React.FC<AdvancedDynamicLayoutWrapperProps> = ({\n multipleSummaries = [],\n layoutMode = 'horizontal',\n minMainContentSize = 4,\n minSummarySize = 2,\n responsiveConfig,\n ...baseProps\n}) => {\n const [summaryStates, setSummaryStates] = useState<Record<string, { size: number; expanded: boolean }>>({});\n \n // Calculate total summary size\n const totalSummarySize = useMemo(() => {\n return Object.values(summaryStates).reduce((total, state) => total + state.size, 0);\n }, [summaryStates]);\n \n // Enhanced toggle handler for multiple summaries\n const handleMultipleSummaryToggle = useCallback((\n summaryId: string,\n isExpanded: boolean,\n summaryGridSize: number\n ) => {\n setSummaryStates(prev => {\n const newStates = {\n ...prev,\n [summaryId]: { size: summaryGridSize, expanded: isExpanded }\n };\n \n const newTotalSize = Object.values(newStates).reduce((total, state) => total + state.size, 0);\n const newMainSize = Math.max(\n minMainContentSize,\n Math.min(baseProps.maxGridSize! - newTotalSize, baseProps.maxGridSize!)\n );\n \n baseProps.onLayoutChange?.(newMainSize, newTotalSize, isExpanded);\n \n return newStates;\n });\n }, [baseProps, minMainContentSize]);\n \n // If multiple summaries are provided, render advanced layout\n if (multipleSummaries.length > 0) {\n const mainSize = Math.max(\n minMainContentSize,\n (baseProps.maxGridSize || 12) - totalSummarySize\n );\n \n return (\n <Grid container {...baseProps.containerProps}>\n <Grid\n item\n xs={mainSize}\n sx={{\n transition: baseProps.enableTransitions ? \n `all ${baseProps.transitionDuration || 300}ms ${baseProps.transitionEasing || 'ease-in-out'}` : \n undefined,\n ...baseProps.mainContentProps?.sx,\n }}\n {...baseProps.mainContentProps}\n >\n {baseProps.children}\n </Grid>\n \n {multipleSummaries.map((summary) => (\n <ExpandableSummaryWrapper\n key={summary.id}\n {...summary.props}\n onToggle={(isExpanded, size) => \n handleMultipleSummaryToggle(summary.id, isExpanded, size)\n }\n >\n {summary.content}\n </ExpandableSummaryWrapper>\n ))}\n </Grid>\n );\n }\n \n // Fallback to basic layout\n return <DynamicLayoutWrapper {...baseProps} />;\n};\n\n// Hook for managing layout state externally\nexport const useDynamicLayout = (\n maxGridSize: number = 12,\n defaultSummaryExpanded: boolean = true,\n expandedSize: number = 3,\n collapsedSize: number = 0\n) => {\n const [isExpanded, setIsExpanded] = useState(defaultSummaryExpanded);\n const [summarySize, setSummarySize] = useState(\n defaultSummaryExpanded ? expandedSize : collapsedSize\n );\n const [mainSize, setMainSize] = useState(\n maxGridSize - (defaultSummaryExpanded ? expandedSize : collapsedSize)\n );\n \n const toggleSummary = useCallback(() => {\n const newExpanded = !isExpanded;\n const newSummarySize = newExpanded ? expandedSize : collapsedSize;\n const newMainSize = maxGridSize - newSummarySize;\n \n setIsExpanded(newExpanded);\n setSummarySize(newSummarySize);\n setMainSize(newMainSize);\n }, [isExpanded, expandedSize, collapsedSize, maxGridSize]);\n \n const setSummaryState = useCallback((expanded: boolean) => {\n const newSummarySize = expanded ? expandedSize : collapsedSize;\n const newMainSize = maxGridSize - newSummarySize;\n \n setIsExpanded(expanded);\n setSummarySize(newSummarySize);\n setMainSize(newMainSize);\n }, [expandedSize, collapsedSize, maxGridSize]);\n \n return {\n isExpanded,\n summarySize,\n mainSize,\n toggleSummary,\n setSummaryState,\n };\n};\n\n// Utility function for calculating optimal sizes\nexport const calculateOptimalSizes = (\n totalSize: number,\n contentRatio: number = 0.75,\n minContentSize: number = 4,\n minSummarySize: number = 2\n) => {\n const idealContentSize = Math.floor(totalSize * contentRatio);\n const idealSummarySize = totalSize - idealContentSize;\n \n const contentSize = Math.max(minContentSize, idealContentSize);\n const summarySize = Math.max(minSummarySize, Math.min(idealSummarySize, totalSize - contentSize));\n \n return {\n contentSize: Math.min(contentSize, totalSize - summarySize),\n summarySize,\n totalUsed: contentSize + summarySize,\n };\n};\n\nexport default DynamicLayoutWrapper;"],"names":[],"mappings":";;;;;;AAqCO,MAAM,uBAA4D,CAAC;AAAA,EACxE;AAAA,EACA,mBAAmB,CAAA;AAAA,EACnB;AAAA,EACA,eAAe,CAAA;AAAA,EACf,cAAc;AAAA,EACd,yBAAyB;AAAA,EACzB,sBAAsB;AAAA,EACtB,uBAAuB;AAAA,EACvB,iBAAiB,CAAA;AAAA,EACjB;AAAA,EACA,oBAAoB;AAAA,EACp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AiB;AAAA,IACjB,kBAAkB;AAAA,IAClB,mBAAmB;AAAA,IACnB,cAAc;AAAA,IACd,WAAW;AAAA,IACX,GAAG;AAAA,IACH,UAAU;AAAA,IACV,UAAU;AAAA,IACV;AAAA,EAAA;AAGF,SACE,qBAAC,MAAA,EAAK,WAAS,MAAE,GAAG,gBAClB,UAAA;AAAA,IAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,MAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,UACF,GAAG;AAAA,UACH,GAAG,iBAAiB;AAAA,QAAA;AAAA,QAErB,GAAG;AAAA,QAEH;AAAA,MAAA;AAAA,IAAA;AAAA,IAGH,oBAAC,0BAAA,EAA2B,GAAG,mBAAA,CAAoB;AAAA,EAAA,GACrD;AAEJ;"}
1
+ {"version":3,"file":"index.esm.js","sources":["../../../../src/components/dynamic-layout-wrapper/dynamic-layout-wrapper.tsx"],"sourcesContent":["/* eslint-disable react-refresh/only-export-components */\n/* eslint-disable unused-imports/no-unused-vars */\n/* eslint-disable @typescript-eslint/no-unused-vars */\nimport React, { useState, useCallback, useMemo } from 'react';\nimport { Grid, GridProps, useMediaQuery, useTheme } from '@mui/material';\nimport ExpandableSummaryWrapper, { ExpandableSummaryWrapperProps } from '../expandable-summary-wrapper/expandable-summary-wrapper';\n// import { ExpandableSummaryWrapper, ExpandableSummaryWrapperProps } from './ExpandableSummaryWrapper';\n\ninterface DynamicLayoutWrapperProps {\n // Main content props\n children: React.ReactNode;\n mainContentProps?: Omit<GridProps, 'item' | 'xs'>;\n \n // Summary wrapper props\n summaryContent: React.ReactNode;\n summaryProps?: Omit<ExpandableSummaryWrapperProps, 'children' | 'onToggle'>;\n \n // Layout configuration\n maxGridSize?: number;\n defaultSummaryExpanded?: boolean;\n expandedSummarySize?: number;\n collapsedSummarySize?: number;\n \n // Container props\n containerProps?: Omit<GridProps, 'container'>;\n \n // Callbacks\n onLayoutChange?: (mainSize: number, summarySize: number, isExpanded: boolean) => void;\n \n // Animation configuration\n enableTransitions?: boolean;\n transitionDuration?: number | string;\n transitionEasing?: string;\n\n storageKey?: string\n}\n\nexport const DynamicLayoutWrapper: React.FC<DynamicLayoutWrapperProps> = ({\n children,\n mainContentProps = {},\n summaryContent,\n summaryProps = {},\n maxGridSize = 12,\n defaultSummaryExpanded = true,\n expandedSummarySize = 3,\n collapsedSummarySize = 0,\n containerProps = {},\n onLayoutChange,\n enableTransitions = true,\n transitionDuration,\n transitionEasing,\n storageKey = 'grid-summary-panel-state',\n}) => {\n const theme = useTheme();\n const isMobile = useMediaQuery(theme.breakpoints.down('md'));\n\n const getInitialState = useCallback(() => {\n if (typeof window !== 'undefined') {\n const stored = localStorage.getItem(storageKey);\n return stored ? JSON.parse(stored) : defaultSummaryExpanded;\n }\n return defaultSummaryExpanded;\n }, [defaultSummaryExpanded, storageKey]);\n \n // Calculate initial main content size\n const initialMainSize = useMemo(() => {\n return (isMobile || !getInitialState()) ? maxGridSize :(defaultSummaryExpanded \n ? maxGridSize - expandedSummarySize \n : maxGridSize - collapsedSummarySize);\n }, [isMobile, getInitialState, maxGridSize, defaultSummaryExpanded, expandedSummarySize, collapsedSummarySize]);\n \n const [mainContentSize, setMainContentSize] = useState<number>(initialMainSize);\n \n // Handle summary toggle with enhanced logic\n const handleSummaryToggle = useCallback((isExpanded: boolean, summaryGridSize: number) => {\n if(isMobile) {\n setMainContentSize(maxGridSize);\n return \n }\n const newMainContentSize = Math.max(1, Math.min(maxGridSize - summaryGridSize, maxGridSize));\n \n setMainContentSize(newMainContentSize);\n \n // Notify parent component of layout changes\n onLayoutChange?.(newMainContentSize, summaryGridSize, isExpanded);\n }, [isMobile, maxGridSize, onLayoutChange]);\n \n // Create transition styles\n const transitionStyles = useMemo(() => {\n if (!enableTransitions) return {};\n \n const duration = transitionDuration || theme.transitions.duration.enteringScreen;\n const easing = transitionEasing || theme.transitions.easing.sharp;\n \n return {\n transition: theme.transitions.create(['flex-basis', 'max-width'], {\n easing,\n duration,\n }),\n };\n }, [enableTransitions, theme, transitionDuration, transitionEasing]);\n \n // Merge summary props with defaults\n const mergedSummaryProps: ExpandableSummaryWrapperProps = {\n defaultExpanded: defaultSummaryExpanded,\n expandedGridSize: expandedSummarySize,\n collapsedGridSize: collapsedSummarySize,\n persistState: true,\n ariaLabel: 'Toggle summary panel',\n ...summaryProps,\n onToggle: handleSummaryToggle,\n children: summaryContent,\n storageKey: storageKey\n };\n \n return (\n <Grid container {...containerProps}>\n <Grid\n item\n xs={mainContentSize}\n sx={{\n ...transitionStyles,\n ...mainContentProps.sx,\n }}\n {...mainContentProps}\n >\n {children}\n </Grid>\n \n <ExpandableSummaryWrapper {...mergedSummaryProps} />\n </Grid>\n );\n};\n\n// Enhanced version with additional features\ninterface AdvancedDynamicLayoutWrapperProps extends DynamicLayoutWrapperProps {\n // Responsive breakpoints\n responsiveConfig?: {\n xs?: { expandedSize: number; collapsedSize: number };\n sm?: { expandedSize: number; collapsedSize: number };\n md?: { expandedSize: number; collapsedSize: number };\n lg?: { expandedSize: number; collapsedSize: number };\n xl?: { expandedSize: number; collapsedSize: number };\n };\n \n // Multiple summary panels support\n multipleSummaries?: Array<{\n content: React.ReactNode;\n props?: Omit<ExpandableSummaryWrapperProps, 'children' | 'onToggle'>;\n id: string;\n }>;\n \n // Layout modes\n layoutMode?: 'horizontal' | 'vertical' | 'adaptive';\n \n // Minimum sizes\n minMainContentSize?: number;\n minSummarySize?: number;\n}\n\nexport const AdvancedDynamicLayoutWrapper: React.FC<AdvancedDynamicLayoutWrapperProps> = ({\n multipleSummaries = [],\n layoutMode = 'horizontal',\n minMainContentSize = 4,\n minSummarySize = 2,\n responsiveConfig,\n ...baseProps\n}) => {\n const [summaryStates, setSummaryStates] = useState<Record<string, { size: number; expanded: boolean }>>({});\n \n // Calculate total summary size\n const totalSummarySize = useMemo(() => {\n return Object.values(summaryStates).reduce((total, state) => total + state.size, 0);\n }, [summaryStates]);\n \n // Enhanced toggle handler for multiple summaries\n const handleMultipleSummaryToggle = useCallback((\n summaryId: string,\n isExpanded: boolean,\n summaryGridSize: number\n ) => {\n setSummaryStates(prev => {\n const newStates = {\n ...prev,\n [summaryId]: { size: summaryGridSize, expanded: isExpanded }\n };\n \n const newTotalSize = Object.values(newStates).reduce((total, state) => total + state.size, 0);\n const newMainSize = Math.max(\n minMainContentSize,\n Math.min(baseProps.maxGridSize! - newTotalSize, baseProps.maxGridSize!)\n );\n \n baseProps.onLayoutChange?.(newMainSize, newTotalSize, isExpanded);\n \n return newStates;\n });\n }, [baseProps, minMainContentSize]);\n \n // If multiple summaries are provided, render advanced layout\n if (multipleSummaries.length > 0) {\n const mainSize = Math.max(\n minMainContentSize,\n (baseProps.maxGridSize || 12) - totalSummarySize\n );\n \n return (\n <Grid container {...baseProps.containerProps}>\n <Grid\n item\n xs={mainSize}\n sx={{\n transition: baseProps.enableTransitions ? \n `all ${baseProps.transitionDuration || 300}ms ${baseProps.transitionEasing || 'ease-in-out'}` : \n undefined,\n ...baseProps.mainContentProps?.sx,\n }}\n {...baseProps.mainContentProps}\n >\n {baseProps.children}\n </Grid>\n \n {multipleSummaries.map((summary) => (\n <ExpandableSummaryWrapper\n key={summary.id}\n {...summary.props}\n onToggle={(isExpanded, size) => \n handleMultipleSummaryToggle(summary.id, isExpanded, size)\n }\n >\n {summary.content}\n </ExpandableSummaryWrapper>\n ))}\n </Grid>\n );\n }\n \n // Fallback to basic layout\n return <DynamicLayoutWrapper {...baseProps} />;\n};\n\n// Hook for managing layout state externally\nexport const useDynamicLayout = (\n maxGridSize: number = 12,\n defaultSummaryExpanded: boolean = true,\n expandedSize: number = 3,\n collapsedSize: number = 0\n) => {\n const [isExpanded, setIsExpanded] = useState(defaultSummaryExpanded);\n const [summarySize, setSummarySize] = useState(\n defaultSummaryExpanded ? expandedSize : collapsedSize\n );\n const [mainSize, setMainSize] = useState(\n maxGridSize - (defaultSummaryExpanded ? expandedSize : collapsedSize)\n );\n \n const toggleSummary = useCallback(() => {\n const newExpanded = !isExpanded;\n const newSummarySize = newExpanded ? expandedSize : collapsedSize;\n const newMainSize = maxGridSize - newSummarySize;\n \n setIsExpanded(newExpanded);\n setSummarySize(newSummarySize);\n setMainSize(newMainSize);\n }, [isExpanded, expandedSize, collapsedSize, maxGridSize]);\n \n const setSummaryState = useCallback((expanded: boolean) => {\n const newSummarySize = expanded ? expandedSize : collapsedSize;\n const newMainSize = maxGridSize - newSummarySize;\n \n setIsExpanded(expanded);\n setSummarySize(newSummarySize);\n setMainSize(newMainSize);\n }, [expandedSize, collapsedSize, maxGridSize]);\n \n return {\n isExpanded,\n summarySize,\n mainSize,\n toggleSummary,\n setSummaryState,\n };\n};\n\n// Utility function for calculating optimal sizes\nexport const calculateOptimalSizes = (\n totalSize: number,\n contentRatio: number = 0.75,\n minContentSize: number = 4,\n minSummarySize: number = 2\n) => {\n const idealContentSize = Math.floor(totalSize * contentRatio);\n const idealSummarySize = totalSize - idealContentSize;\n \n const contentSize = Math.max(minContentSize, idealContentSize);\n const summarySize = Math.max(minSummarySize, Math.min(idealSummarySize, totalSize - contentSize));\n \n return {\n contentSize: Math.min(contentSize, totalSize - summarySize),\n summarySize,\n totalUsed: contentSize + summarySize,\n };\n};\n\nexport default DynamicLayoutWrapper;"],"names":["_a"],"mappings":";;;;;;AAqCO,MAAM,uBAA4D,CAAC;AAAA,EACxE;AAAA,EACA,mBAAmB,CAAA;AAAA,EACnB;AAAA,EACA,eAAe,CAAA;AAAA,EACf,cAAc;AAAA,EACd,yBAAyB;AAAA,EACzB,sBAAsB;AAAA,EACtB,uBAAuB;AAAA,EACvB,iBAAiB,CAAA;AAAA,EACjB;AAAA,EACA,oBAAoB;AAAA,EACpB;AAAA,EACA;AAAA,EACA,aAAa;AACf,MAAM;AACJ,QAAM,QAAQ,SAAA;AACd,QAAM,WAAW,cAAc,MAAM,YAAY,KAAK,IAAI,CAAC;AAE3D,QAAM,kBAAkB,YAAY,MAAM;AACxC,QAAI,OAAO,WAAW,aAAa;AACjC,YAAM,SAAS,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G,CAAC,YAAY,cAAc,eAAe,WAAW,CAAC;AAEzD,QAAM,kBAAkB,YAAY,CAAC,aAAsB;AACzD,UAAM,iBAAiB,WAAW,eAAe;AACjD,UAAM,cAAc,cAAc;AAElC,kBAAc,QAAQ;AACtB,mBAAe,cAAc;AAC7B,gBAAY,WAAW;AAAA,EACzB,GAAG,CAAC,cAAc,eAAe,WAAW,CAAC;AAE7C,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAEJ;AAGO,MAAM,wBAAwB,CACnC,WACA,eAAuB,MACvB,iBAAyB,GACzB,iBAAyB,MACtB;AACH,QAAM,mBAAmB,KAAK,MAAM,YAAY,YAAY;AAC5D,QAAM,mBAAmB,YAAY;AAErC,QAAM,cAAc,KAAK,IAAI,gBAAgB,gBAAgB;AAC7D,QAAM,cAAc,KAAK,IAAI,gBAAgB,KAAK,IAAI,kBAAkB,YAAY,WAAW,CAAC;AAEhG,SAAO;AAAA,IACL,aAAa,KAAK,IAAI,aAAa,YAAY,WAAW;AAAA,IAC1D;AAAA,IACA,WAAW,cAAc;AAAA,EAAA;AAE7B;"}
@@ -1,5 +1,8 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react"),a=require("../../expandable-summary-wrapper/expandable-summary-wrapper/index.js"),t=require("../../../node_modules/@mui/material/styles/useTheme/index.js"),n=require("../../../node_modules/@mui/system/esm/useMediaQuery/useMediaQuery/index.js"),s=require("../../../node_modules/@mui/material/Grid/Grid/index.js");const i=({children:i,mainContentProps:u={},summaryContent:d,summaryProps:o={},maxGridSize:l=12,defaultSummaryExpanded:m=!0,expandedSummarySize:p=3,collapsedSummarySize:x=0,containerProps:c={},onLayoutChange:y,enableTransitions:f=!0,transitionDuration:g,transitionEasing:S,storageKey:h="grid-summary-panel-state"})=>{const b=t.default(),j=n.default(b.breakpoints.down("md")),M=r.useCallback(()=>{if("undefined"!=typeof window){const e=localStorage.getItem(h);return e?JSON.parse(e):m}return m},[m,h]),q=r.useMemo(()=>j||!M()?l:m?l-p:l-x,[j,M,l,m,p,x]),[w,z]=r.useState(q),C=r.useCallback((e,r)=>{if(j)return void z(l);const a=Math.max(1,Math.min(l-r,l));z(a),null==y||y(a,r,e)},[j,l,y]),G=r.useMemo(()=>{if(!f)return{};const e=g||b.transitions.duration.enteringScreen,r=S||b.transitions.easing.sharp;return{transition:b.transitions.create(["flex-basis","max-width"],{easing:r,duration:e})}},[f,b,g,S]),_={defaultExpanded:m,expandedGridSize:p,collapsedGridSize:x,persistState:!0,ariaLabel:"Toggle summary panel",...o,onToggle:C,children:d,storageKey:h};/* @__PURE__ */
2
- return e.jsxs(s.default,{container:!0,...c,children:[
3
- /* @__PURE__ */e.jsx(s.default,{item:!0,xs:w,sx:{...G,...u.sx},...u,children:i}),
4
- /* @__PURE__ */e.jsx(a.default,{..._})]})};exports.DynamicLayoutWrapper=i,exports.default=i;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),a=require("react"),t=require("../../expandable-summary-wrapper/expandable-summary-wrapper/index.js"),n=require("../../../node_modules/@mui/material/styles/useTheme/index.js"),r=require("../../../node_modules/@mui/system/esm/useMediaQuery/useMediaQuery/index.js"),i=require("../../../node_modules/@mui/material/Grid/Grid/index.js");const s=({children:s,mainContentProps:o={},summaryContent:u,summaryProps:d={},maxGridSize:l=12,defaultSummaryExpanded:m=!0,expandedSummarySize:c=3,collapsedSummarySize:p=0,containerProps:x={},onLayoutChange:S,enableTransitions:y=!0,transitionDuration:h,transitionEasing:g,storageKey:f="grid-summary-panel-state"})=>{const z=n.default(),M=r.default(z.breakpoints.down("md")),b=a.useCallback(()=>{if("undefined"!=typeof window){const e=localStorage.getItem(f);return e?JSON.parse(e):m}return m},[m,f]),j=a.useMemo(()=>M||!b()?l:m?l-c:l-p,[M,b,l,m,c,p]),[C,v]=a.useState(j),G=a.useCallback((e,a)=>{if(M)return void v(l);const t=Math.max(1,Math.min(l-a,l));v(t),null==S||S(t,a,e)},[M,l,S]),P=a.useMemo(()=>{if(!y)return{};const e=h||z.transitions.duration.enteringScreen,a=g||z.transitions.easing.sharp;return{transition:z.transitions.create(["flex-basis","max-width"],{easing:a,duration:e})}},[y,z,h,g]),k={defaultExpanded:m,expandedGridSize:c,collapsedGridSize:p,persistState:!0,ariaLabel:"Toggle summary panel",...d,onToggle:G,children:u,storageKey:f};/* @__PURE__ */
2
+ return e.jsxs(i.default,{container:!0,...x,children:[
3
+ /* @__PURE__ */e.jsx(i.default,{item:!0,xs:C,sx:{...P,...o.sx},...o,children:s}),
4
+ /* @__PURE__ */e.jsx(t.default,{...k})]})};exports.AdvancedDynamicLayoutWrapper=({multipleSummaries:n=[],layoutMode:r="horizontal",minMainContentSize:o=4,minSummarySize:u=2,responsiveConfig:d,...l})=>{var m;const[c,p]=a.useState({}),x=a.useMemo(()=>Object.values(c).reduce((e,a)=>e+a.size,0),[c]),S=a.useCallback((e,a,t)=>{p(n=>{var r;const i={...n,[e]:{size:t,expanded:a}},s=Object.values(i).reduce((e,a)=>e+a.size,0),u=Math.max(o,Math.min(l.maxGridSize-s,l.maxGridSize));return null==(r=l.onLayoutChange)||r.call(l,u,s,a),i})},[l,o]);if(n.length>0){const a=Math.max(o,(l.maxGridSize||12)-x);/* @__PURE__ */
5
+ return e.jsxs(i.default,{container:!0,...l.containerProps,children:[
6
+ /* @__PURE__ */e.jsx(i.default,{item:!0,xs:a,sx:{transition:l.enableTransitions?`all ${l.transitionDuration||300}ms ${l.transitionEasing||"ease-in-out"}`:void 0,...null==(m=l.mainContentProps)?void 0:m.sx},...l.mainContentProps,children:l.children}),n.map(a=>/* @__PURE__ */e.jsx(t.default,{...a.props,onToggle:(e,t)=>S(a.id,e,t),children:a.content},a.id))]})}/* @__PURE__ */
7
+ return e.jsx(s,{...l})},exports.DynamicLayoutWrapper=s,exports.calculateOptimalSizes=(e,a=.75,t=4,n=2)=>{const r=Math.floor(e*a),i=e-r,s=Math.max(t,r),o=Math.max(n,Math.min(i,e-s));return{contentSize:Math.min(s,e-o),summarySize:o,totalUsed:s+o}},exports.default=s,exports.useDynamicLayout=(e=12,t=!0,n=3,r=0)=>{const[i,s]=a.useState(t),[o,u]=a.useState(t?n:r),[d,l]=a.useState(e-(t?n:r)),m=a.useCallback(()=>{const a=!i,t=a?n:r,o=e-t;s(a),u(t),l(o)},[i,n,r,e]),c=a.useCallback(a=>{const t=a?n:r,i=e-t;s(a),u(t),l(i)},[n,r,e]);return{isExpanded:i,summarySize:o,mainSize:d,toggleSummary:m,setSummaryState:c}};
5
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/components/dynamic-layout-wrapper/dynamic-layout-wrapper.tsx"],"sourcesContent":["/* eslint-disable react-refresh/only-export-components */\n/* eslint-disable unused-imports/no-unused-vars */\n/* eslint-disable @typescript-eslint/no-unused-vars */\nimport React, { useState, useCallback, useMemo } from 'react';\nimport { Grid, GridProps, useMediaQuery, useTheme } from '@mui/material';\nimport ExpandableSummaryWrapper, { ExpandableSummaryWrapperProps } from '../expandable-summary-wrapper/expandable-summary-wrapper';\n// import { ExpandableSummaryWrapper, ExpandableSummaryWrapperProps } from './ExpandableSummaryWrapper';\n\ninterface DynamicLayoutWrapperProps {\n // Main content props\n children: React.ReactNode;\n mainContentProps?: Omit<GridProps, 'item' | 'xs'>;\n \n // Summary wrapper props\n summaryContent: React.ReactNode;\n summaryProps?: Omit<ExpandableSummaryWrapperProps, 'children' | 'onToggle'>;\n \n // Layout configuration\n maxGridSize?: number;\n defaultSummaryExpanded?: boolean;\n expandedSummarySize?: number;\n collapsedSummarySize?: number;\n \n // Container props\n containerProps?: Omit<GridProps, 'container'>;\n \n // Callbacks\n onLayoutChange?: (mainSize: number, summarySize: number, isExpanded: boolean) => void;\n \n // Animation configuration\n enableTransitions?: boolean;\n transitionDuration?: number | string;\n transitionEasing?: string;\n\n storageKey?: string\n}\n\nexport const DynamicLayoutWrapper: React.FC<DynamicLayoutWrapperProps> = ({\n children,\n mainContentProps = {},\n summaryContent,\n summaryProps = {},\n maxGridSize = 12,\n defaultSummaryExpanded = true,\n expandedSummarySize = 3,\n collapsedSummarySize = 0,\n containerProps = {},\n onLayoutChange,\n enableTransitions = true,\n transitionDuration,\n transitionEasing,\n storageKey = 'grid-summary-panel-state',\n}) => {\n const theme = useTheme();\n const isMobile = useMediaQuery(theme.breakpoints.down('md'));\n\n const getInitialState = useCallback(() => {\n if (typeof window !== 'undefined') {\n const stored = localStorage.getItem(storageKey);\n return stored ? JSON.parse(stored) : defaultSummaryExpanded;\n }\n return defaultSummaryExpanded;\n }, [defaultSummaryExpanded, storageKey]);\n \n // Calculate initial main content size\n const initialMainSize = useMemo(() => {\n return (isMobile || !getInitialState()) ? maxGridSize :(defaultSummaryExpanded \n ? maxGridSize - expandedSummarySize \n : maxGridSize - collapsedSummarySize);\n }, [isMobile, getInitialState, maxGridSize, defaultSummaryExpanded, expandedSummarySize, collapsedSummarySize]);\n \n const [mainContentSize, setMainContentSize] = useState<number>(initialMainSize);\n \n // Handle summary toggle with enhanced logic\n const handleSummaryToggle = useCallback((isExpanded: boolean, summaryGridSize: number) => {\n if(isMobile) {\n setMainContentSize(maxGridSize);\n return \n }\n const newMainContentSize = Math.max(1, Math.min(maxGridSize - summaryGridSize, maxGridSize));\n \n setMainContentSize(newMainContentSize);\n \n // Notify parent component of layout changes\n onLayoutChange?.(newMainContentSize, summaryGridSize, isExpanded);\n }, [isMobile, maxGridSize, onLayoutChange]);\n \n // Create transition styles\n const transitionStyles = useMemo(() => {\n if (!enableTransitions) return {};\n \n const duration = transitionDuration || theme.transitions.duration.enteringScreen;\n const easing = transitionEasing || theme.transitions.easing.sharp;\n \n return {\n transition: theme.transitions.create(['flex-basis', 'max-width'], {\n easing,\n duration,\n }),\n };\n }, [enableTransitions, theme, transitionDuration, transitionEasing]);\n \n // Merge summary props with defaults\n const mergedSummaryProps: ExpandableSummaryWrapperProps = {\n defaultExpanded: defaultSummaryExpanded,\n expandedGridSize: expandedSummarySize,\n collapsedGridSize: collapsedSummarySize,\n persistState: true,\n ariaLabel: 'Toggle summary panel',\n ...summaryProps,\n onToggle: handleSummaryToggle,\n children: summaryContent,\n storageKey: storageKey\n };\n \n return (\n <Grid container {...containerProps}>\n <Grid\n item\n xs={mainContentSize}\n sx={{\n ...transitionStyles,\n ...mainContentProps.sx,\n }}\n {...mainContentProps}\n >\n {children}\n </Grid>\n \n <ExpandableSummaryWrapper {...mergedSummaryProps} />\n </Grid>\n );\n};\n\n// Enhanced version with additional features\ninterface AdvancedDynamicLayoutWrapperProps extends DynamicLayoutWrapperProps {\n // Responsive breakpoints\n responsiveConfig?: {\n xs?: { expandedSize: number; collapsedSize: number };\n sm?: { expandedSize: number; collapsedSize: number };\n md?: { expandedSize: number; collapsedSize: number };\n lg?: { expandedSize: number; collapsedSize: number };\n xl?: { expandedSize: number; collapsedSize: number };\n };\n \n // Multiple summary panels support\n multipleSummaries?: Array<{\n content: React.ReactNode;\n props?: Omit<ExpandableSummaryWrapperProps, 'children' | 'onToggle'>;\n id: string;\n }>;\n \n // Layout modes\n layoutMode?: 'horizontal' | 'vertical' | 'adaptive';\n \n // Minimum sizes\n minMainContentSize?: number;\n minSummarySize?: number;\n}\n\nexport const AdvancedDynamicLayoutWrapper: React.FC<AdvancedDynamicLayoutWrapperProps> = ({\n multipleSummaries = [],\n layoutMode = 'horizontal',\n minMainContentSize = 4,\n minSummarySize = 2,\n responsiveConfig,\n ...baseProps\n}) => {\n const [summaryStates, setSummaryStates] = useState<Record<string, { size: number; expanded: boolean }>>({});\n \n // Calculate total summary size\n const totalSummarySize = useMemo(() => {\n return Object.values(summaryStates).reduce((total, state) => total + state.size, 0);\n }, [summaryStates]);\n \n // Enhanced toggle handler for multiple summaries\n const handleMultipleSummaryToggle = useCallback((\n summaryId: string,\n isExpanded: boolean,\n summaryGridSize: number\n ) => {\n setSummaryStates(prev => {\n const newStates = {\n ...prev,\n [summaryId]: { size: summaryGridSize, expanded: isExpanded }\n };\n \n const newTotalSize = Object.values(newStates).reduce((total, state) => total + state.size, 0);\n const newMainSize = Math.max(\n minMainContentSize,\n Math.min(baseProps.maxGridSize! - newTotalSize, baseProps.maxGridSize!)\n );\n \n baseProps.onLayoutChange?.(newMainSize, newTotalSize, isExpanded);\n \n return newStates;\n });\n }, [baseProps, minMainContentSize]);\n \n // If multiple summaries are provided, render advanced layout\n if (multipleSummaries.length > 0) {\n const mainSize = Math.max(\n minMainContentSize,\n (baseProps.maxGridSize || 12) - totalSummarySize\n );\n \n return (\n <Grid container {...baseProps.containerProps}>\n <Grid\n item\n xs={mainSize}\n sx={{\n transition: baseProps.enableTransitions ? \n `all ${baseProps.transitionDuration || 300}ms ${baseProps.transitionEasing || 'ease-in-out'}` : \n undefined,\n ...baseProps.mainContentProps?.sx,\n }}\n {...baseProps.mainContentProps}\n >\n {baseProps.children}\n </Grid>\n \n {multipleSummaries.map((summary) => (\n <ExpandableSummaryWrapper\n key={summary.id}\n {...summary.props}\n onToggle={(isExpanded, size) => \n handleMultipleSummaryToggle(summary.id, isExpanded, size)\n }\n >\n {summary.content}\n </ExpandableSummaryWrapper>\n ))}\n </Grid>\n );\n }\n \n // Fallback to basic layout\n return <DynamicLayoutWrapper {...baseProps} />;\n};\n\n// Hook for managing layout state externally\nexport const useDynamicLayout = (\n maxGridSize: number = 12,\n defaultSummaryExpanded: boolean = true,\n expandedSize: number = 3,\n collapsedSize: number = 0\n) => {\n const [isExpanded, setIsExpanded] = useState(defaultSummaryExpanded);\n const [summarySize, setSummarySize] = useState(\n defaultSummaryExpanded ? expandedSize : collapsedSize\n );\n const [mainSize, setMainSize] = useState(\n maxGridSize - (defaultSummaryExpanded ? expandedSize : collapsedSize)\n );\n \n const toggleSummary = useCallback(() => {\n const newExpanded = !isExpanded;\n const newSummarySize = newExpanded ? expandedSize : collapsedSize;\n const newMainSize = maxGridSize - newSummarySize;\n \n setIsExpanded(newExpanded);\n setSummarySize(newSummarySize);\n setMainSize(newMainSize);\n }, [isExpanded, expandedSize, collapsedSize, maxGridSize]);\n \n const setSummaryState = useCallback((expanded: boolean) => {\n const newSummarySize = expanded ? expandedSize : collapsedSize;\n const newMainSize = maxGridSize - newSummarySize;\n \n setIsExpanded(expanded);\n setSummarySize(newSummarySize);\n setMainSize(newMainSize);\n }, [expandedSize, collapsedSize, maxGridSize]);\n \n return {\n isExpanded,\n summarySize,\n mainSize,\n toggleSummary,\n setSummaryState,\n };\n};\n\n// Utility function for calculating optimal sizes\nexport const calculateOptimalSizes = (\n totalSize: number,\n contentRatio: number = 0.75,\n minContentSize: number = 4,\n minSummarySize: number = 2\n) => {\n const idealContentSize = Math.floor(totalSize * contentRatio);\n const idealSummarySize = totalSize - idealContentSize;\n \n const contentSize = Math.max(minContentSize, idealContentSize);\n const summarySize = Math.max(minSummarySize, Math.min(idealSummarySize, totalSize - contentSize));\n \n return {\n contentSize: Math.min(contentSize, totalSize - summarySize),\n summarySize,\n totalUsed: contentSize + summarySize,\n };\n};\n\nexport default DynamicLayoutWrapper;"],"names":["DynamicLayoutWrapper","children","mainContentProps","summaryContent","summaryProps","maxGridSize","defaultSummaryExpanded","expandedSummarySize","collapsedSummarySize","containerProps","onLayoutChange","enableTransitions","transitionDuration","transitionEasing","storageKey","theme","useTheme","isMobile","useMediaQuery","breakpoints","down","getInitialState","useCallback","window","stored","localStorage","getItem","JSON","parse","initialMainSize","useMemo","mainContentSize","setMainContentSize","useState","handleSummaryToggle","isExpanded","summaryGridSize","newMainContentSize","Math","max","min","transitionStyles","duration","transitions","enteringScreen","easing","sharp","transition","create","mergedSummaryProps","defaultExpanded","expandedGridSize","collapsedGridSize","persistState","ariaLabel","onToggle","jsxs","Grid","container","jsx","item","xs","sx","ExpandableSummaryWrapper"],"mappings":"kbAqCO,MAAMA,EAA4D,EACvEC,WACAC,mBAAmB,CAAA,EACnBC,iBACAC,eAAe,CAAA,EACfC,cAAc,GACdC,0B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W;AAGF,OACE0C,EAAAA,KAACC,EAAAA,QAAA,CAAKC,WAAS,KAAKjD,EAClBR,SAAA;eAAA0D,EAAAA,IAACF,EAAAA,QAAA,CACCG,MAAI,EACJC,GAAI9B,EACJ+B,GAAI,IACCrB,KACAvC,EAAiB4D,OAElB5D,EAEHD;qBAGF8D,EAAAA,QAAA,IAA8Bd"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/components/dynamic-layout-wrapper/dynamic-layout-wrapper.tsx"],"sourcesContent":["/* eslint-disable react-refresh/only-export-components */\n/* eslint-disable unused-imports/no-unused-vars */\n/* eslint-disable @typescript-eslint/no-unused-vars */\nimport React, { useState, useCallback, useMemo } from 'react';\nimport { Grid, GridProps, useMediaQuery, useTheme } from '@mui/material';\nimport ExpandableSummaryWrapper, { ExpandableSummaryWrapperProps } from '../expandable-summary-wrapper/expandable-summary-wrapper';\n// import { ExpandableSummaryWrapper, ExpandableSummaryWrapperProps } from './ExpandableSummaryWrapper';\n\ninterface DynamicLayoutWrapperProps {\n // Main content props\n children: React.ReactNode;\n mainContentProps?: Omit<GridProps, 'item' | 'xs'>;\n \n // Summary wrapper props\n summaryContent: React.ReactNode;\n summaryProps?: Omit<ExpandableSummaryWrapperProps, 'children' | 'onToggle'>;\n \n // Layout configuration\n maxGridSize?: number;\n defaultSummaryExpanded?: boolean;\n expandedSummarySize?: number;\n collapsedSummarySize?: number;\n \n // Container props\n containerProps?: Omit<GridProps, 'container'>;\n \n // Callbacks\n onLayoutChange?: (mainSize: number, summarySize: number, isExpanded: boolean) => void;\n \n // Animation configuration\n enableTransitions?: boolean;\n transitionDuration?: number | string;\n transitionEasing?: string;\n\n storageKey?: string\n}\n\nexport const DynamicLayoutWrapper: React.FC<DynamicLayoutWrapperProps> = ({\n children,\n mainContentProps = {},\n summaryContent,\n summaryProps = {},\n maxGridSize = 12,\n defaultSummaryExpanded = true,\n expandedSummarySize = 3,\n collapsedSummarySize = 0,\n containerProps = {},\n onLayoutChange,\n enableTransitions = true,\n transitionDuration,\n transitionEasing,\n storageKey = 'grid-summary-panel-state',\n}) => {\n const theme = useTheme();\n const isMobile = useMediaQuery(theme.breakpoints.down('md'));\n\n const getInitialState = useCallback(() => {\n if (typeof window !== 'undefined') {\n const stored = localStorage.getItem(storageKey);\n return stored ? JSON.parse(stored) : defaultSummaryExpanded;\n }\n return defaultSummaryExpanded;\n }, [defaultSummaryExpanded, storageKey]);\n \n // Calculate initial main content size\n const initialMainSize = useMemo(() => {\n return (isMobile || !getInitialState()) ? maxGridSize :(defaultSummaryExpanded \n ? maxGridSize - expandedSummarySize \n : maxGridSize - collapsedSummarySize);\n }, [isMobile, getInitialState, maxGridSize, defaultSummaryExpanded, expandedSummarySize, collapsedSummarySize]);\n \n const [mainContentSize, setMainContentSize] = useState<number>(initialMainSize);\n \n // Handle summary toggle with enhanced logic\n const handleSummaryToggle = useCallback((isExpanded: boolean, summaryGridSize: number) => {\n if(isMobile) {\n setMainContentSize(maxGridSize);\n return \n }\n const newMainContentSize = Math.max(1, Math.min(maxGridSize - summaryGridSize, maxGridSize));\n \n setMainContentSize(newMainContentSize);\n \n // Notify parent component of layout changes\n onLayoutChange?.(newMainContentSize, summaryGridSize, isExpanded);\n }, [isMobile, maxGridSize, onLayoutChange]);\n \n // Create transition styles\n const transitionStyles = useMemo(() => {\n if (!enableTransitions) return {};\n \n const duration = transitionDuration || theme.transitions.duration.enteringScreen;\n const easing = transitionEasing || theme.transitions.easing.sharp;\n \n return {\n transition: theme.transitions.create(['flex-basis', 'max-width'], {\n easing,\n duration,\n }),\n };\n }, [enableTransitions, theme, transitionDuration, transitionEasing]);\n \n // Merge summary props with defaults\n const mergedSummaryProps: ExpandableSummaryWrapperProps = {\n defaultExpanded: defaultSummaryExpanded,\n expandedGridSize: expandedSummarySize,\n collapsedGridSize: collapsedSummarySize,\n persistState: true,\n ariaLabel: 'Toggle summary panel',\n ...summaryProps,\n onToggle: handleSummaryToggle,\n children: summaryContent,\n storageKey: storageKey\n };\n \n return (\n <Grid container {...containerProps}>\n <Grid\n item\n xs={mainContentSize}\n sx={{\n ...transitionStyles,\n ...mainContentProps.sx,\n }}\n {...mainContentProps}\n >\n {children}\n </Grid>\n \n <ExpandableSummaryWrapper {...mergedSummaryProps} />\n </Grid>\n );\n};\n\n// Enhanced version with additional features\ninterface AdvancedDynamicLayoutWrapperProps extends DynamicLayoutWrapperProps {\n // Responsive breakpoints\n responsiveConfig?: {\n xs?: { expandedSize: number; collapsedSize: number };\n sm?: { expandedSize: number; collapsedSize: number };\n md?: { expandedSize: number; collapsedSize: number };\n lg?: { expandedSize: number; collapsedSize: number };\n xl?: { expandedSize: number; collapsedSize: number };\n };\n \n // Multiple summary panels support\n multipleSummaries?: Array<{\n content: React.ReactNode;\n props?: Omit<ExpandableSummaryWrapperProps, 'children' | 'onToggle'>;\n id: string;\n }>;\n \n // Layout modes\n layoutMode?: 'horizontal' | 'vertical' | 'adaptive';\n \n // Minimum sizes\n minMainContentSize?: number;\n minSummarySize?: number;\n}\n\nexport const AdvancedDynamicLayoutWrapper: React.FC<AdvancedDynamicLayoutWrapperProps> = ({\n multipleSummaries = [],\n layoutMode = 'horizontal',\n minMainContentSize = 4,\n minSummarySize = 2,\n responsiveConfig,\n ...baseProps\n}) => {\n const [summaryStates, setSummaryStates] = useState<Record<string, { size: number; expanded: boolean }>>({});\n \n // Calculate total summary size\n const totalSummarySize = useMemo(() => {\n return Object.values(summaryStates).reduce((total, state) => total + state.size, 0);\n }, [summaryStates]);\n \n // Enhanced toggle handler for multiple summaries\n const handleMultipleSummaryToggle = useCallback((\n summaryId: string,\n isExpanded: boolean,\n summaryGridSize: number\n ) => {\n setSummaryStates(prev => {\n const newStates = {\n ...prev,\n [summaryId]: { size: summaryGridSize, expanded: isExpanded }\n };\n \n const newTotalSize = Object.values(newStates).reduce((total, state) => total + state.size, 0);\n const newMainSize = Math.max(\n minMainContentSize,\n Math.min(baseProps.maxGridSize! - newTotalSize, baseProps.maxGridSize!)\n );\n \n baseProps.onLayoutChange?.(newMainSize, newTotalSize, isExpanded);\n \n return newStates;\n });\n }, [baseProps, minMainContentSize]);\n \n // If multiple summaries are provided, render advanced layout\n if (multipleSummaries.length > 0) {\n const mainSize = Math.max(\n minMainContentSize,\n (baseProps.maxGridSize || 12) - totalSummarySize\n );\n \n return (\n <Grid container {...baseProps.containerProps}>\n <Grid\n item\n xs={mainSize}\n sx={{\n transition: baseProps.enableTransitions ? \n `all ${baseProps.transitionDuration || 300}ms ${baseProps.transitionEasing || 'ease-in-out'}` : \n undefined,\n ...baseProps.mainContentProps?.sx,\n }}\n {...baseProps.mainContentProps}\n >\n {baseProps.children}\n </Grid>\n \n {multipleSummaries.map((summary) => (\n <ExpandableSummaryWrapper\n key={summary.id}\n {...summary.props}\n onToggle={(isExpanded, size) => \n handleMultipleSummaryToggle(summary.id, isExpanded, size)\n }\n >\n {summary.content}\n </ExpandableSummaryWrapper>\n ))}\n </Grid>\n );\n }\n \n // Fallback to basic layout\n return <DynamicLayoutWrapper {...baseProps} />;\n};\n\n// Hook for managing layout state externally\nexport const useDynamicLayout = (\n maxGridSize: number = 12,\n defaultSummaryExpanded: boolean = true,\n expandedSize: number = 3,\n collapsedSize: number = 0\n) => {\n const [isExpanded, setIsExpanded] = useState(defaultSummaryExpanded);\n const [summarySize, setSummarySize] = useState(\n defaultSummaryExpanded ? expandedSize : collapsedSize\n );\n const [mainSize, setMainSize] = useState(\n maxGridSize - (defaultSummaryExpanded ? expandedSize : collapsedSize)\n );\n \n const toggleSummary = useCallback(() => {\n const newExpanded = !isExpanded;\n const newSummarySize = newExpanded ? expandedSize : collapsedSize;\n const newMainSize = maxGridSize - newSummarySize;\n \n setIsExpanded(newExpanded);\n setSummarySize(newSummarySize);\n setMainSize(newMainSize);\n }, [isExpanded, expandedSize, collapsedSize, maxGridSize]);\n \n const setSummaryState = useCallback((expanded: boolean) => {\n const newSummarySize = expanded ? expandedSize : collapsedSize;\n const newMainSize = maxGridSize - newSummarySize;\n \n setIsExpanded(expanded);\n setSummarySize(newSummarySize);\n setMainSize(newMainSize);\n }, [expandedSize, collapsedSize, maxGridSize]);\n \n return {\n isExpanded,\n summarySize,\n mainSize,\n toggleSummary,\n setSummaryState,\n };\n};\n\n// Utility function for calculating optimal sizes\nexport const calculateOptimalSizes = (\n totalSize: number,\n contentRatio: number = 0.75,\n minContentSize: number = 4,\n minSummarySize: number = 2\n) => {\n const idealContentSize = Math.floor(totalSize * contentRatio);\n const idealSummarySize = totalSize - idealContentSize;\n \n const contentSize = Math.max(minContentSize, idealContentSize);\n const summarySize = Math.max(minSummarySize, Math.min(idealSummarySize, totalSize - contentSize));\n \n return {\n contentSize: Math.min(contentSize, totalSize - summarySize),\n summarySize,\n totalUsed: contentSize + summarySize,\n };\n};\n\nexport default DynamicLayoutWrapper;"],"names":["DynamicLayoutWrapper","children","mainContentProps","summaryContent","summaryProps","maxGridSize","defaultSummaryExpanded","expandedSummarySize","collapsedSummarySize","containerProps","onLayoutChange","enableTransitions","transitionDuration","transitionEasing","storageKey","theme","useTheme","isMobile","useMediaQuery","breakpoints","down","getInitialState","useCallback","window","stored","localStorage","getItem","JSON","parse","initialMainSize","useMemo","mainContentSize","setMainContentSize","useState","handleSummaryToggle","isExpanded","summaryGridSize","newMainContentSize","Math","max","min","transitionStyles","duration","transitions","enteringScreen","easing","sharp","transition","create","mergedSummaryProps","defaultExpanded","expandedGridSize","collapsedGridSize","persistState","ariaLabel","onToggle","jsxs","Grid","container","jsx","item","xs","sx","ExpandableSummaryWrapper","multipleSummaries","layoutMode","minMainContentSize","minSummarySize","responsiveConfig","baseProps","summaryStates","setSummaryStates","totalSummarySize","Object","values","reduce","total","state","size","handleMultipleSummaryToggle","summaryId","prev","newStates","expanded","newTotalSize","newMainSize","_a","call","length","mainSize","map","summary","props","id","content","totalSize","contentRatio","minContentSize","idealContentSize","floor","idealSummarySize","contentSize","summarySize","totalUsed","expandedSize","collapsedSize","setIsExpanded","setSummarySize","setMainSize","toggleSummary","newExpanded","newSummarySize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1F,cAAa6D,IACnC,MAAM4B,EAAiB5B,EAAWqB,EAAeC,EAC3CpB,EAAchF,EAAc0G,EAElCL,EAAcvB,GACdwB,EAAeI,GACfH,EAAYvB,IACX,CAACmB,EAAcC,EAAepG,IAEjC,MAAO,CACL8B,aACAmE,cACAb,WACAoB,gBACAG"}
@@ -0,0 +1,154 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { useState } from "react";
3
+ import { ERPUIProvider } from "../../providers/ERPUIProvider/index.esm.js";
4
+ import SharePopUpEnhanced from "../../share-modal/share-modal-enhanced/index.esm.js";
5
+ import { HeaderEnhanced } from "../../header/header-enhanced/index.esm.js";
6
+ import Box from "../../../node_modules/@mui/material/Box/Box/index.esm.js";
7
+ import Typography from "../../../node_modules/@mui/material/Typography/Typography/index.esm.js";
8
+ import FormControlLabel from "../../../node_modules/@mui/material/FormControlLabel/FormControlLabel/index.esm.js";
9
+ import Switch from "../../../node_modules/@mui/material/Switch/Switch/index.esm.js";
10
+ import Button from "../../../node_modules/@mui/material/Button/Button/index.esm.js";
11
+ const FlexibleReduxExample = () => {
12
+ const [useRedux, setUseRedux] = useState(false);
13
+ const [showShareModal, setShowShareModal] = useState(false);
14
+ const [users] = useState([
15
+ { id: 1, first_name: "John", last_name: "Doe", label: "John Doe", value: 1 },
16
+ { id: 2, first_name: "Jane", last_name: "Smith", label: "Jane Smith", value: 2 }
17
+ ]);
18
+ const [departments] = useState([
19
+ { id: 1, name: "Engineering", label: "Engineering", value: 1 },
20
+ { id: 2, name: "Marketing", label: "Marketing", value: 2 }
21
+ ]);
22
+ const [languages] = useState([
23
+ { code: "en", label: "English", direction: "ltr" },
24
+ { code: "es", label: "Spanish", direction: "ltr" },
25
+ { code: "ar", label: "Arabic", direction: "rtl" }
26
+ ]);
27
+ const [currentLanguage, setCurrentLanguage] = useState(languages[0]);
28
+ const [loading, setLoading] = useState(false);
29
+ const fetchUsersAndDepartments = async () => {
30
+ setLoading(true);
31
+ await new Promise((resolve) => setTimeout(resolve, 1e3));
32
+ setLoading(false);
33
+ };
34
+ const handleLanguageChange = (languageCode) => {
35
+ const language = languages.find((lang) => lang.code === languageCode);
36
+ if (language) {
37
+ setCurrentLanguage(language);
38
+ }
39
+ };
40
+ const handleShareSubmit = (data) => {
41
+ console.log("Share data:", data);
42
+ setShowShareModal(false);
43
+ };
44
+ return /* @__PURE__ */ jsx(ERPUIProvider, { useRedux, children: /* @__PURE__ */ jsxs(Box, { sx: { p: 3 }, children: [
45
+ /* @__PURE__ */ jsx(Typography, { variant: "h4", gutterBottom: true, children: "Flexible Redux Integration Example" }),
46
+ /* @__PURE__ */ jsx(Typography, { variant: "body1", sx: { mb: 2 }, children: "This example demonstrates how ERP UI Library components can work with or without Redux. Toggle the switch below to see the difference." }),
47
+ /* @__PURE__ */ jsx(
48
+ FormControlLabel,
49
+ {
50
+ control: /* @__PURE__ */ jsx(
51
+ Switch,
52
+ {
53
+ checked: useRedux,
54
+ onChange: (e) => setUseRedux(e.target.checked)
55
+ }
56
+ ),
57
+ label: `Use Redux: ${useRedux ? "Enabled" : "Disabled"}`,
58
+ sx: { mb: 3 }
59
+ }
60
+ ),
61
+ /* @__PURE__ */ jsxs(Box, { sx: { mb: 3 }, children: [
62
+ /* @__PURE__ */ jsxs(Typography, { variant: "h6", gutterBottom: true, children: [
63
+ "Current Mode: ",
64
+ useRedux ? "Redux-based" : "Prop-based"
65
+ ] }),
66
+ /* @__PURE__ */ jsx(Typography, { variant: "body2", color: "text.secondary", children: useRedux ? "Components are using Redux for state management" : "Components are using props and local state for data" })
67
+ ] }),
68
+ /* @__PURE__ */ jsxs(Box, { sx: { border: 1, borderColor: "grey.300", borderRadius: 1, p: 2, mb: 3 }, children: [
69
+ /* @__PURE__ */ jsx(Typography, { variant: "h6", gutterBottom: true, children: "Header Component" }),
70
+ /* @__PURE__ */ jsx(
71
+ HeaderEnhanced,
72
+ {
73
+ useRedux,
74
+ languages: useRedux ? void 0 : languages,
75
+ currentLanguage: useRedux ? void 0 : currentLanguage,
76
+ languagesLoading: useRedux ? void 0 : loading,
77
+ onLanguageChange: useRedux ? void 0 : handleLanguageChange,
78
+ onFetchLanguages: useRedux ? void 0 : fetchUsersAndDepartments
79
+ }
80
+ )
81
+ ] }),
82
+ /* @__PURE__ */ jsxs(Box, { sx: { border: 1, borderColor: "grey.300", borderRadius: 1, p: 2, mb: 3 }, children: [
83
+ /* @__PURE__ */ jsx(Typography, { variant: "h6", gutterBottom: true, children: "Share Modal Component" }),
84
+ /* @__PURE__ */ jsx(
85
+ Button,
86
+ {
87
+ variant: "contained",
88
+ onClick: () => setShowShareModal(true),
89
+ sx: { mb: 2 },
90
+ children: "Open Share Modal"
91
+ }
92
+ ),
93
+ /* @__PURE__ */ jsx(
94
+ SharePopUpEnhanced,
95
+ {
96
+ open: showShareModal,
97
+ onClose: () => setShowShareModal(false),
98
+ title: "Share Document",
99
+ toggleSwitch: true,
100
+ onSubmit: handleShareSubmit,
101
+ useRedux,
102
+ users: useRedux ? void 0 : users,
103
+ departments: useRedux ? void 0 : departments,
104
+ loading: useRedux ? void 0 : loading,
105
+ onFetchUsersAndDepartments: useRedux ? void 0 : fetchUsersAndDepartments
106
+ }
107
+ )
108
+ ] }),
109
+ /* @__PURE__ */ jsxs(Box, { sx: { border: 1, borderColor: "grey.300", borderRadius: 1, p: 2 }, children: [
110
+ /* @__PURE__ */ jsx(Typography, { variant: "h6", gutterBottom: true, children: "Code Example" }),
111
+ /* @__PURE__ */ jsx(
112
+ Box,
113
+ {
114
+ component: "pre",
115
+ sx: {
116
+ backgroundColor: "grey.100",
117
+ p: 2,
118
+ borderRadius: 1,
119
+ overflow: "auto",
120
+ fontSize: "0.875rem"
121
+ },
122
+ children: useRedux ? `
123
+ // Redux-based usage
124
+ <ERPUIProvider useRedux={true} reduxStore={store} apiClient={apiClient}>
125
+ <HeaderEnhanced useRedux={true} />
126
+ <ShareModalEnhanced useRedux={true} />
127
+ </ERPUIProvider>
128
+ ` : `
129
+ // Prop-based usage
130
+ <ERPUIProvider useRedux={false}>
131
+ <HeaderEnhanced
132
+ useRedux={false}
133
+ languages={languages}
134
+ currentLanguage={currentLanguage}
135
+ onLanguageChange={handleLanguageChange}
136
+ />
137
+ <ShareModalEnhanced
138
+ useRedux={false}
139
+ users={users}
140
+ departments={departments}
141
+ loading={loading}
142
+ onFetchUsersAndDepartments={fetchUsersAndDepartments}
143
+ />
144
+ </ERPUIProvider>
145
+ `
146
+ }
147
+ )
148
+ ] })
149
+ ] }) });
150
+ };
151
+ export {
152
+ FlexibleReduxExample as default
153
+ };
154
+ //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":["../../../../src/components/examples/FlexibleReduxExample.tsx"],"sourcesContent":["import React, { useState } from 'react';\nimport { Box, Button, Typography, Switch, FormControlLabel } from '@mui/material';\nimport { ERPUIProvider } from '../providers/ERPUIProvider';\nimport ShareModalEnhanced from '../share-modal/share-modal-enhanced';\nimport HeaderEnhanced from '../header/header-enhanced';\n\n/**\n * Example component demonstrating flexible Redux usage\n * This shows how components can work with or without Redux\n */\nconst FlexibleReduxExample: React.FC = () => {\n const [useRedux, setUseRedux] = useState(false);\n const [showShareModal, setShowShareModal] = useState(false);\n \n // Mock data for non-Redux usage\n const [users] = useState([\n { id: 1, first_name: 'John', last_name: 'Doe', label: 'John Doe', value: 1 },\n { id: 2, first_name: 'Jane', last_name: 'Smith', label: 'Jane Smith', value: 2 },\n ]);\n \n const [departments] = useState([\n { id: 1, name: 'Engineering', label: 'Engineering', value: 1 },\n { id: 2, name: 'Marketing', label: 'Marketing', value: 2 },\n ]);\n \n const [languages] = useState([\n { code: 'en', label: 'English', direction: 'ltr' },\n { code: 'es', label: 'Spanish', direction: 'ltr' },\n { code: 'ar', label: 'Arabic', direction: 'rtl' },\n ]);\n \n const [currentLanguage, setCurrentLanguage] = useState(languages[0]);\n const [loading, setLoading] = useState(false);\n\n // Mock API functions\n const fetchUsersAndDepartments = async () => {\n setLoading(true);\n // Simulate API call\n await new Promise(resolve => setTimeout(resolve, 1000));\n setLoading(false);\n };\n\n const handleLanguageChange = (languageCode: string) => {\n const language = languages.find(lang => lang.code === languageCode);\n if (language) {\n setCurrentLanguage(language);\n }\n };\n\n const handleShareSubmit = (data: any) => {\n console.log('Share data:', data);\n setShowShareModal(false);\n };\n\n return (\n <ERPUIProvider useRedux={useRedux}>\n <Box sx={{ p: 3 }}>\n <Typography variant=\"h4\" gutterBottom>\n Flexible Redux Integration Example\n </Typography>\n \n <Typography variant=\"body1\" sx={{ mb: 2 }}>\n This example demonstrates how ERP UI Library components can work with or without Redux.\n Toggle the switch below to see the difference.\n </Typography>\n\n <FormControlLabel\n control={\n <Switch\n checked={useRedux}\n onChange={(e) => setUseRedux(e.target.checked)}\n />\n }\n label={`Use Redux: ${useRedux ? 'Enabled' : 'Disabled'}`}\n sx={{ mb: 3 }}\n />\n\n <Box sx={{ mb: 3 }}>\n <Typography variant=\"h6\" gutterBottom>\n Current Mode: {useRedux ? 'Redux-based' : 'Prop-based'}\n </Typography>\n <Typography variant=\"body2\" color=\"text.secondary\">\n {useRedux \n ? 'Components are using Redux for state management'\n : 'Components are using props and local state for data'\n }\n </Typography>\n </Box>\n\n {/* Header Example */}\n <Box sx={{ border: 1, borderColor: 'grey.300', borderRadius: 1, p: 2, mb: 3 }}>\n <Typography variant=\"h6\" gutterBottom>\n Header Component\n </Typography>\n <HeaderEnhanced\n useRedux={useRedux}\n languages={useRedux ? undefined : languages}\n currentLanguage={useRedux ? undefined : currentLanguage}\n languagesLoading={useRedux ? undefined : loading}\n onLanguageChange={useRedux ? undefined : handleLanguageChange}\n onFetchLanguages={useRedux ? undefined : fetchUsersAndDepartments}\n />\n </Box>\n\n {/* Share Modal Example */}\n <Box sx={{ border: 1, borderColor: 'grey.300', borderRadius: 1, p: 2, mb: 3 }}>\n <Typography variant=\"h6\" gutterBottom>\n Share Modal Component\n </Typography>\n <Button\n variant=\"contained\"\n onClick={() => setShowShareModal(true)}\n sx={{ mb: 2 }}\n >\n Open Share Modal\n </Button>\n \n <ShareModalEnhanced\n open={showShareModal}\n onClose={() => setShowShareModal(false)}\n title=\"Share Document\"\n toggleSwitch={true}\n onSubmit={handleShareSubmit}\n useRedux={useRedux}\n users={useRedux ? undefined : users}\n departments={useRedux ? undefined : departments}\n loading={useRedux ? undefined : loading}\n onFetchUsersAndDepartments={useRedux ? undefined : fetchUsersAndDepartments}\n />\n </Box>\n\n {/* Code Example */}\n <Box sx={{ border: 1, borderColor: 'grey.300', borderRadius: 1, p: 2 }}>\n <Typography variant=\"h6\" gutterBottom>\n Code Example\n </Typography>\n <Box\n component=\"pre\"\n sx={{\n backgroundColor: 'grey.100',\n p: 2,\n borderRadius: 1,\n overflow: 'auto',\n fontSize: '0.875rem',\n }}\n >\n {useRedux ? `\n// Redux-based usage\n<ERPUIProvider useRedux={true} reduxStore={store} apiClient={apiClient}>\n <HeaderEnhanced useRedux={true} />\n <ShareModalEnhanced useRedux={true} />\n</ERPUIProvider>\n ` : `\n// Prop-based usage\n<ERPUIProvider useRedux={false}>\n <HeaderEnhanced\n useRedux={false}\n languages={languages}\n currentLanguage={currentLanguage}\n onLanguageChange={handleLanguageChange}\n />\n <ShareModalEnhanced\n useRedux={false}\n users={users}\n departments={departments}\n loading={loading}\n onFetchUsersAndDepartments={fetchUsersAndDepartments}\n />\n</ERPUIProvider>\n `}\n </Box>\n </Box>\n </Box>\n </ERPUIProvider>\n );\n};\n\nexport default FlexibleReduxExample;"],"names":["ShareModalEnhanced"],"mappings":";;;;;;;;;;AAUA,MAAM,uBAAiC,MAAM;AAC3C,QAAM,CAAC,UAAU,WAAW,IAAI,SAAS,KAAK;AAC9C,QAAM,CAAC,gBAAgB,iBAAiB,IAAI,SAAS,KAAK;AAG1D,QAAM,CAAC,KAAK,IAAI,SAAS;AAAA,IACvB,EAAE,IAAI,GAAG,YAAY,QAAQ,WAAW,OAAO,OAAO,YAAY,OAAO,EAAA;AAAA,IACzE,EAAE,I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AS,MAAM,kBAAkB,IAAI;AAAA,UACrC,IAAI,EAAE,IAAI,EAAA;AAAA,UACX,UAAA;AAAA,QAAA;AAAA,MAAA;AAAA,MAID;AAAA,QAACA;AAAAA,QAAA;AAAA,UACC,MAAM;AAAA,UACN,SAAS,MAAM,kBAAkB,KAAK;AAAA,UACtC,OAAM;AAAA,UACN,cAAc;AAAA,UACd,UAAU;AAAA,UACV;AAAA,UACA,OAAO,WAAW,SAAY;AAAA,UAC9B,aAAa,WAAW,SAAY;AAAA,UACpC,SAAS,WAAW,SAAY;AAAA,UAChC,4BAA4B,WAAW,SAAY;AAAA,QAAA;AAAA,MAAA;AAAA,IACrD,GACF;AAAA,IAGA,qBAAC,KAAA,EAAI,IAAI,EAAE,QAAQ,GAAG,aAAa,YAAY,cAAc,GAAG,GAAG,EAAA,GACjE,UAAA;AAAA,MAAA,oBAAC,YAAA,EAAW,SAAQ,MAAK,cAAY,MAAC,UAAA,gBAEtC;AAAA,MACA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,WAAU;AAAA,UACV,IAAI;AAAA,YACF,iBAAiB;AAAA,YACjB,GAAG;AAAA,YACH,cAAc;AAAA,YACd,UAAU;AAAA,YACV,UAAU;AAAA,UAAA;AAAA,UAGX,UAAA,WAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAMR;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IAkBN,EAAA,CACF;AAAA,EAAA,EAAA,CACF,EAAA,CACF;AAEJ;"}
@@ -0,0 +1,19 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),a=require("react"),r=require("../../providers/ERPUIProvider/index.js"),n=require("../../share-modal/share-modal-enhanced/index.js"),t=require("../../header/header-enhanced/index.js"),d=require("../../../node_modules/@mui/material/Box/Box/index.js"),o=require("../../../node_modules/@mui/material/Typography/Typography/index.js"),s=require("../../../node_modules/@mui/material/FormControlLabel/FormControlLabel/index.js"),i=require("../../../node_modules/@mui/material/Switch/Switch/index.js"),u=require("../../../node_modules/@mui/material/Button/Button/index.js");exports.default=()=>{const[l,h]=a.useState(!1),[c,m]=a.useState(!1),[x]=a.useState([{id:1,first_name:"John",last_name:"Doe",label:"John Doe",value:1},{id:2,first_name:"Jane",last_name:"Smith",label:"Jane Smith",value:2}]),[g]=a.useState([{id:1,name:"Engineering",label:"Engineering",value:1},{id:2,name:"Marketing",label:"Marketing",value:2}]),[b]=a.useState([{code:"en",label:"English",direction:"ltr"},{code:"es",label:"Spanish",direction:"ltr"},{code:"ar",label:"Arabic",direction:"rtl"}]),[p,f]=a.useState(b[0]),[v,j]=a.useState(!1),R=async()=>{j(!0),await new Promise(e=>setTimeout(e,1e3)),j(!1)};/* @__PURE__ */
2
+ return e.jsx(r.ERPUIProvider,{useRedux:l,children:/* @__PURE__ */e.jsxs(d.default,{sx:{p:3},children:[
3
+ /* @__PURE__ */e.jsx(o.default,{variant:"h4",gutterBottom:!0,children:"Flexible Redux Integration Example"}),
4
+ /* @__PURE__ */e.jsx(o.default,{variant:"body1",sx:{mb:2},children:"This example demonstrates how ERP UI Library components can work with or without Redux. Toggle the switch below to see the difference."}),
5
+ /* @__PURE__ */e.jsx(s.default,{control:/* @__PURE__ */e.jsx(i.default,{checked:l,onChange:e=>h(e.target.checked)}),label:"Use Redux: "+(l?"Enabled":"Disabled"),sx:{mb:3}}),
6
+ /* @__PURE__ */e.jsxs(d.default,{sx:{mb:3},children:[
7
+ /* @__PURE__ */e.jsxs(o.default,{variant:"h6",gutterBottom:!0,children:["Current Mode: ",l?"Redux-based":"Prop-based"]}),
8
+ /* @__PURE__ */e.jsx(o.default,{variant:"body2",color:"text.secondary",children:l?"Components are using Redux for state management":"Components are using props and local state for data"})]}),
9
+ /* @__PURE__ */e.jsxs(d.default,{sx:{border:1,borderColor:"grey.300",borderRadius:1,p:2,mb:3},children:[
10
+ /* @__PURE__ */e.jsx(o.default,{variant:"h6",gutterBottom:!0,children:"Header Component"}),
11
+ /* @__PURE__ */e.jsx(t.HeaderEnhanced,{useRedux:l,languages:l?void 0:b,currentLanguage:l?void 0:p,languagesLoading:l?void 0:v,onLanguageChange:l?void 0:e=>{const a=b.find(a=>a.code===e);a&&f(a)},onFetchLanguages:l?void 0:R})]}),
12
+ /* @__PURE__ */e.jsxs(d.default,{sx:{border:1,borderColor:"grey.300",borderRadius:1,p:2,mb:3},children:[
13
+ /* @__PURE__ */e.jsx(o.default,{variant:"h6",gutterBottom:!0,children:"Share Modal Component"}),
14
+ /* @__PURE__ */e.jsx(u.default,{variant:"contained",onClick:()=>m(!0),sx:{mb:2},children:"Open Share Modal"}),
15
+ /* @__PURE__ */e.jsx(n.default,{open:c,onClose:()=>m(!1),title:"Share Document",toggleSwitch:!0,onSubmit:e=>{m(!1)},useRedux:l,users:l?void 0:x,departments:l?void 0:g,loading:l?void 0:v,onFetchUsersAndDepartments:l?void 0:R})]}),
16
+ /* @__PURE__ */e.jsxs(d.default,{sx:{border:1,borderColor:"grey.300",borderRadius:1,p:2},children:[
17
+ /* @__PURE__ */e.jsx(o.default,{variant:"h6",gutterBottom:!0,children:"Code Example"}),
18
+ /* @__PURE__ */e.jsx(d.default,{component:"pre",sx:{backgroundColor:"grey.100",p:2,borderRadius:1,overflow:"auto",fontSize:"0.875rem"},children:l?"\n// Redux-based usage\n<ERPUIProvider useRedux={true} reduxStore={store} apiClient={apiClient}>\n <HeaderEnhanced useRedux={true} />\n <ShareModalEnhanced useRedux={true} />\n</ERPUIProvider>\n ":"\n// Prop-based usage\n<ERPUIProvider useRedux={false}>\n <HeaderEnhanced\n useRedux={false}\n languages={languages}\n currentLanguage={currentLanguage}\n onLanguageChange={handleLanguageChange}\n />\n <ShareModalEnhanced\n useRedux={false}\n users={users}\n departments={departments}\n loading={loading}\n onFetchUsersAndDepartments={fetchUsersAndDepartments}\n />\n</ERPUIProvider>\n "})]})]})})};
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../src/components/examples/FlexibleReduxExample.tsx"],"sourcesContent":["import React, { useState } from 'react';\nimport { Box, Button, Typography, Switch, FormControlLabel } from '@mui/material';\nimport { ERPUIProvider } from '../providers/ERPUIProvider';\nimport ShareModalEnhanced from '../share-modal/share-modal-enhanced';\nimport HeaderEnhanced from '../header/header-enhanced';\n\n/**\n * Example component demonstrating flexible Redux usage\n * This shows how components can work with or without Redux\n */\nconst FlexibleReduxExample: React.FC = () => {\n const [useRedux, setUseRedux] = useState(false);\n const [showShareModal, setShowShareModal] = useState(false);\n \n // Mock data for non-Redux usage\n const [users] = useState([\n { id: 1, first_name: 'John', last_name: 'Doe', label: 'John Doe', value: 1 },\n { id: 2, first_name: 'Jane', last_name: 'Smith', label: 'Jane Smith', value: 2 },\n ]);\n \n const [departments] = useState([\n { id: 1, name: 'Engineering', label: 'Engineering', value: 1 },\n { id: 2, name: 'Marketing', label: 'Marketing', value: 2 },\n ]);\n \n const [languages] = useState([\n { code: 'en', label: 'English', direction: 'ltr' },\n { code: 'es', label: 'Spanish', direction: 'ltr' },\n { code: 'ar', label: 'Arabic', direction: 'rtl' },\n ]);\n \n const [currentLanguage, setCurrentLanguage] = useState(languages[0]);\n const [loading, setLoading] = useState(false);\n\n // Mock API functions\n const fetchUsersAndDepartments = async () => {\n setLoading(true);\n // Simulate API call\n await new Promise(resolve => setTimeout(resolve, 1000));\n setLoading(false);\n };\n\n const handleLanguageChange = (languageCode: string) => {\n const language = languages.find(lang => lang.code === languageCode);\n if (language) {\n setCurrentLanguage(language);\n }\n };\n\n const handleShareSubmit = (data: any) => {\n console.log('Share data:', data);\n setShowShareModal(false);\n };\n\n return (\n <ERPUIProvider useRedux={useRedux}>\n <Box sx={{ p: 3 }}>\n <Typography variant=\"h4\" gutterBottom>\n Flexible Redux Integration Example\n </Typography>\n \n <Typography variant=\"body1\" sx={{ mb: 2 }}>\n This example demonstrates how ERP UI Library components can work with or without Redux.\n Toggle the switch below to see the difference.\n </Typography>\n\n <FormControlLabel\n control={\n <Switch\n checked={useRedux}\n onChange={(e) => setUseRedux(e.target.checked)}\n />\n }\n label={`Use Redux: ${useRedux ? 'Enabled' : 'Disabled'}`}\n sx={{ mb: 3 }}\n />\n\n <Box sx={{ mb: 3 }}>\n <Typography variant=\"h6\" gutterBottom>\n Current Mode: {useRedux ? 'Redux-based' : 'Prop-based'}\n </Typography>\n <Typography variant=\"body2\" color=\"text.secondary\">\n {useRedux \n ? 'Components are using Redux for state management'\n : 'Components are using props and local state for data'\n }\n </Typography>\n </Box>\n\n {/* Header Example */}\n <Box sx={{ border: 1, borderColor: 'grey.300', borderRadius: 1, p: 2, mb: 3 }}>\n <Typography variant=\"h6\" gutterBottom>\n Header Component\n </Typography>\n <HeaderEnhanced\n useRedux={useRedux}\n languages={useRedux ? undefined : languages}\n currentLanguage={useRedux ? undefined : currentLanguage}\n languagesLoading={useRedux ? undefined : loading}\n onLanguageChange={useRedux ? undefined : handleLanguageChange}\n onFetchLanguages={useRedux ? undefined : fetchUsersAndDepartments}\n />\n </Box>\n\n {/* Share Modal Example */}\n <Box sx={{ border: 1, borderColor: 'grey.300', borderRadius: 1, p: 2, mb: 3 }}>\n <Typography variant=\"h6\" gutterBottom>\n Share Modal Component\n </Typography>\n <Button\n variant=\"contained\"\n onClick={() => setShowShareModal(true)}\n sx={{ mb: 2 }}\n >\n Open Share Modal\n </Button>\n \n <ShareModalEnhanced\n open={showShareModal}\n onClose={() => setShowShareModal(false)}\n title=\"Share Document\"\n toggleSwitch={true}\n onSubmit={handleShareSubmit}\n useRedux={useRedux}\n users={useRedux ? undefined : users}\n departments={useRedux ? undefined : departments}\n loading={useRedux ? undefined : loading}\n onFetchUsersAndDepartments={useRedux ? undefined : fetchUsersAndDepartments}\n />\n </Box>\n\n {/* Code Example */}\n <Box sx={{ border: 1, borderColor: 'grey.300', borderRadius: 1, p: 2 }}>\n <Typography variant=\"h6\" gutterBottom>\n Code Example\n </Typography>\n <Box\n component=\"pre\"\n sx={{\n backgroundColor: 'grey.100',\n p: 2,\n borderRadius: 1,\n overflow: 'auto',\n fontSize: '0.875rem',\n }}\n >\n {useRedux ? `\n// Redux-based usage\n<ERPUIProvider useRedux={true} reduxStore={store} apiClient={apiClient}>\n <HeaderEnhanced useRedux={true} />\n <ShareModalEnhanced useRedux={true} />\n</ERPUIProvider>\n ` : `\n// Prop-based usage\n<ERPUIProvider useRedux={false}>\n <HeaderEnhanced\n useRedux={false}\n languages={languages}\n currentLanguage={currentLanguage}\n onLanguageChange={handleLanguageChange}\n />\n <ShareModalEnhanced\n useRedux={false}\n users={users}\n departments={departments}\n loading={loading}\n onFetchUsersAndDepartments={fetchUsersAndDepartments}\n />\n</ERPUIProvider>\n `}\n </Box>\n </Box>\n </Box>\n </ERPUIProvider>\n );\n};\n\nexport default FlexibleReduxExample;"],"names":["useRedux","setUseRedux","useState","showShareModal","setShowShareModal","users","id","first_name","last_name","label","value","departments","name","languages","code","direction","currentLanguage","setCurrentLanguage","loading","setLoading","fetchUsersAndDepartments","async","Promise","resolve","setTimeout","jsx","ERPUIProvider","children","jsxs","Box","sx","p","Typography","variant","gutterBottom","mb","FormControlLabel","control","Switch","checked","onChange","e","target","color","border","borderColor","borderRadius","HeaderEnhanced","languagesLoading","onLanguageChange","languageCode","language","find","lang","onFetchLanguages","Button","onClick","ShareModalEnhanced","open","onClose","title","toggleSwitch","onSubmit","data","onFetchUsersAndDepartments","component","backgroundColor","overflow","fontSize"],"mappings":"4qBAUuC,KACrC,MAAOA,EAAUC,GAAeC,EAAAA,UAAS,IAClCC,EAAgBC,GAAqBF,EAAAA,UAAS,IAG9CG,GAASH,WAAS,CACvB,CAAEI,GAAI,EAAGC,WAAY,OAAQC,UAAW,MAAOC,MAAO,WAAYC,MAAO,GACzE,CAAEJ,GAAI,EAAGC,WAAY,OAAQC,UAAW,QAASC,MAAO,aAAc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AI,CACFoC,gBAAiB,WACjBnC,EAAG,EACHe,aAAc,EACdqB,SAAU,OACVC,SAAU,YAGXzC,SAAA3B,EAAW,mNAMR"}
@@ -30,14 +30,14 @@ import DialogTitle from "../../../node_modules/@mui/material/DialogTitle/DialogT
30
30
  import Box from "../../../node_modules/@mui/material/Box/Box/index.esm.js";
31
31
  import MenuItem from "../../../node_modules/@mui/material/MenuItem/MenuItem/index.esm.js";
32
32
  import IconButton from "../../../node_modules/@mui/material/IconButton/IconButton/index.esm.js";
33
+ import { Edit } from "../../icons/edit/index.esm.js";
34
+ import { Trash } from "../../icons/trash/index.esm.js";
33
35
  import OutlinedInput from "../../../node_modules/@mui/material/OutlinedInput/OutlinedInput/index.esm.js";
34
36
  import InputAdornment from "../../../node_modules/@mui/material/InputAdornment/InputAdornment/index.esm.js";
35
37
  import Close from "../../../node_modules/@mui/icons-material/esm/Close/index.esm.js";
36
38
  import DialogContent from "../../../node_modules/@mui/material/DialogContent/DialogContent/index.esm.js";
37
39
  import Alert from "../../../node_modules/@mui/material/Alert/Alert/index.esm.js";
38
40
  import DialogActions from "../../../node_modules/@mui/material/DialogActions/DialogActions/index.esm.js";
39
- import { Edit } from "../../icons/edit/index.esm.js";
40
- import { Trash } from "../../icons/trash/index.esm.js";
41
41
  setBaseUrl(`${"https://apidev.erpforce.co"}/system-feature`);
42
42
  const initialQuery = { combinator: "and", rules: [] };
43
43
  const Filter = ({
@@ -1,21 +1,21 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),l=require("react"),r=require("react-querybuilder"),t=;/* empty css */;/* empty css */var i=,/* empty css */n=,/* empty css */s=,/* empty css */a=,/* empty css */o=,/* empty css */u=,/* empty css */d=,/* empty css */c=,/* empty css */m=,/* empty css */f=,/* empty css */x=,/* empty css */p=,/* empty css */h=,/* empty css */j=,/* empty css */v=,/* empty css */g=,/* empty css */q=,/* empty css */y=require("lodash"),b=,/* empty css */S=,/* empty css */C=require("react-router-dom"),k=,/* empty css */_=,/* empty css */A=,/* empty css */I=,/* empty css */F=,/* empty css */N=,/* empty css */w=,/* empty css */E=,/* empty css */D=,/* empty css */z=,/* empty css */P=,/* empty css */T=,/* empty css */B=,/* empty css */M=;/* empty css */function R(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var L=/* @__PURE__ */R(y);j.setBaseUrl("https://apidev.erpforce.co/system-feature");const Q={combinator:"and",rules:[]};exports.default=({open:y,onClose:R,savedFilters:O,fetchSavedFilters:V,onSaveFilter:W,onSelectedFilter:G,applyFilter:U,fields:K=[]})=>{const H=C.useLocation(),J=localStorage.getItem(v.auth.storageTokenKeyName),{updatePageInfo:X,activePage:Y,schemaFields:Z,setActivePage:$}=q.usePages();K=Z.length?g.generateFields(Z):K;const[ee,le]=l.useState(Q),[re,te]=l.useState(O??[]),[ie,ne]=l.useState(null),[se,ae]=l.useState(null),[oe,ue]=l.useState(null),{isRtl:de}=k.useLanguage(),ce=l.useMemo(()=>S.routeToResourceMap[H.pathname]||null,[H.pathname]);l.useEffect(()=>{O&&te(O)},[O]);const me=l.useCallback((e=!1)=>{let l=ee;if(pe(l))ue("Invalid filter");else if(e)l=Q,le(l);else{const e=l?g.generateQueryString(l):l;X({filters:l,filterQueryString:e}),R()}},[ee,U,R]),fe=e=>{e?(ne(e),le(e.query),G&&G(e)):(ne(null),le(Q),G&&G(null))},xe=e=>{const l=null==O?void 0:O.filter(l=>l.name.toLowerCase().includes(e.toLowerCase()));l&&te(l)};l.useEffect(()=>{let e=Q;L.default.isEmpty(Y.filters)||(e=Y.filters),le(e);const l=null==O?void 0:O.find(e=>{var l;return e.name===(null==(l=null==Y?void 0:Y.filters)?void 0:l.name)});ne(l||null)},[null==Y?void 0:Y.filters,O]);const pe=e=>{var l,r;let t=[];return null==(l=null==e?void 0:e.rules)||l.forEach(l=>{if(t.includes(l.field)&&"and"==e.combinator)return!0;t.push(l.field)}),t.length!==(null==(r=null==e?void 0:e.rules)?void 0:r.length)},he=e=>Array.isArray(e.rules)?e.rules.length?e.rules.some(he):!e.rules.length:!e.field||L.default.isEmpty(e.value)&&!["null","notNull"].includes(e.operator),je=l.useMemo(()=>he(ee)||oe,[ee,oe]);/* @__PURE__ */
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),l=require("react"),r=require("react-querybuilder"),t=;/* empty css */;/* empty css */var i=,/* empty css */n=,/* empty css */s=,/* empty css */a=,/* empty css */o=,/* empty css */u=,/* empty css */d=,/* empty css */c=,/* empty css */m=,/* empty css */f=,/* empty css */x=,/* empty css */p=,/* empty css */h=,/* empty css */j=,/* empty css */v=,/* empty css */g=,/* empty css */q=,/* empty css */y=require("lodash"),b=,/* empty css */S=,/* empty css */C=require("react-router-dom"),k=,/* empty css */_=,/* empty css */A=,/* empty css */I=,/* empty css */F=,/* empty css */N=,/* empty css */w=,/* empty css */E=,/* empty css */D=,/* empty css */z=,/* empty css */P=,/* empty css */T=,/* empty css */B=,/* empty css */M=;/* empty css */function R(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var L=/* @__PURE__ */R(y);j.setBaseUrl("https://apidev.erpforce.co/system-feature");const Q={combinator:"and",rules:[]};exports.default=({open:y,onClose:R,savedFilters:O,fetchSavedFilters:V,onSaveFilter:W,onSelectedFilter:G,applyFilter:U,fields:K=[]})=>{const H=C.useLocation(),J=localStorage.getItem(v.auth.storageTokenKeyName),{updatePageInfo:X,activePage:Y,schemaFields:Z,setActivePage:$}=q.usePages();K=Z.length?g.generateFields(Z):K;const[ee,le]=l.useState(Q),[re,te]=l.useState(O??[]),[ie,ne]=l.useState(null),[se,ae]=l.useState(null),[oe,ue]=l.useState(null),{isRtl:de}=k.useLanguage(),ce=l.useMemo(()=>S.routeToResourceMap[H.pathname]||null,[H.pathname]);l.useEffect(()=>{O&&te(O)},[O]);const me=l.useCallback((e=!1)=>{let l=ee;if(pe(l))ue("Invalid filter");else if(e)l=Q,le(l);else{const e=l?g.generateQueryString(l):l;X({filters:l,filterQueryString:e}),R()}},[ee,U,R]),fe=e=>{e?(ne(e),le(e.query),G&&G(e)):(ne(null),le(Q),G&&G(null))},xe=e=>{const l=null==O?void 0:O.filter(l=>l.name.toLowerCase().includes(e.toLowerCase()));l&&te(l)};l.useEffect(()=>{let e=Q;L.default.isEmpty(Y.filters)||(e=Y.filters),le(e);const l=null==O?void 0:O.find(e=>{var l;return e.name===(null==(l=null==Y?void 0:Y.filters)?void 0:l.name)});ne(l||null)},[null==Y?void 0:Y.filters,O]);const pe=e=>{var l,r;let t=[];return null==(l=null==e?void 0:e.rules)||l.forEach(l=>{if(t.includes(l.field)&&"and"==e.combinator)return!0;t.push(l.field)}),t.length!==(null==(r=null==e?void 0:e.rules)?void 0:r.length)},he=e=>Array.isArray(e.rules)?e.rules.length?e.rules.some(he):!e.rules.length:!e.field||L.default.isEmpty(e.value)&&!["null","notNull"].includes(e.operator),je=l.useMemo(()=>he(ee)||oe,[ee,oe]);/* @__PURE__ */
2
2
  return e.jsx("div",{children:/* @__PURE__ */e.jsxs(_.default,{open:y,onClose:R,maxWidth:"md",fullWidth:!0,PaperProps:{sx:{borderRadius:2}},children:[
3
3
  /* @__PURE__ */e.jsxs(A.default,{className:"filter-header",children:[
4
4
  /* @__PURE__ */e.jsx(n.Typography,{type:"s3",weight:"medium",color:"theme.secondary.1000",children:"Filters"}),
5
5
  /* @__PURE__ */e.jsxs(I.default,{gap:1,display:"flex",children:[
6
- /* @__PURE__ */e.jsxs(i.default,{fullWidth:!0,size:"small",className:"filter-dropdown",value:ie?ie.name:"Saved Filters",onChange:e=>{const l=null==O?void 0:O.find(l=>l.name==e.target.value);fe(l)},variant:"outlined",onClose:()=>{setTimeout(()=>{xe("")},500)},input:ie?/* @__PURE__ */e.jsx(w.default,{label:"",endAdornment:/* @__PURE__ */e.jsx(E.default,{position:"end",children:/* @__PURE__ */e.jsx(N.default,{"aria-label":"clear selection",onClick:()=>{fe()},edge:"end",sx:{mr:1.5},size:"small",children:/* @__PURE__ */e.jsx(D.default,{sx:{fontSize:"1rem"}})})})}):void 0,children:[
6
+ /* @__PURE__ */e.jsxs(i.default,{fullWidth:!0,size:"small",className:"filter-dropdown",value:ie?ie.name:"Saved Filters",onChange:e=>{const l=null==O?void 0:O.find(l=>l.name==e.target.value);fe(l)},variant:"outlined",onClose:()=>{setTimeout(()=>{xe("")},500)},input:ie?/* @__PURE__ */e.jsx(D.default,{label:"",endAdornment:/* @__PURE__ */e.jsx(z.default,{position:"end",children:/* @__PURE__ */e.jsx(N.default,{"aria-label":"clear selection",onClick:()=>{fe()},edge:"end",sx:{mr:1.5},size:"small",children:/* @__PURE__ */e.jsx(P.default,{sx:{fontSize:"1rem"}})})})}):void 0,children:[
7
7
  /* @__PURE__ */e.jsx("div",{className:"searchbar-box-list",children:/* @__PURE__ */e.jsx(p.default,{placeholder:"Search Filters",handleSearch:e=>xe(e)})}),null==re?void 0:re.map(l=>/* @__PURE__ */e.jsxs(F.default,{value:null==l?void 0:l.name,className:"menu-list",selected:(null==ie?void 0:ie.name)==(null==l?void 0:l.name),children:[
8
8
  /* @__PURE__ */e.jsx(n.Typography,{color:"theme.secondary.1000",type:"s3",children:null==l?void 0:l.name}),
9
9
  /* @__PURE__ */e.jsxs("div",{className:"icon-list",children:[
10
- /* @__PURE__ */e.jsx(N.default,{size:"small",onClick:e=>{e.preventDefault(),e.stopPropagation(),ae(l)},children:/* @__PURE__ */e.jsx(B.Edit,{fontSize:"small",color:(null==ie?void 0:ie.name)==(null==l?void 0:l.name)?"theme.primary.800":"inherit"})}),
11
- /* @__PURE__ */e.jsx(N.default,{size:"small",onClick:e=>{e.preventDefault(),e.stopPropagation(),(async e=>{const l={"x-token":J,id:e};j.deleteV1FilterId(l).then(e=>{ne(null),le(Q),V&&V()}).catch(e=>{})})(l.id)},color:"error",children:/* @__PURE__ */e.jsx(M.Trash,{fontSize:"small",color:"theme.error.600"})})]})]},l.id))]}),
10
+ /* @__PURE__ */e.jsx(N.default,{size:"small",onClick:e=>{e.preventDefault(),e.stopPropagation(),ae(l)},children:/* @__PURE__ */e.jsx(w.Edit,{fontSize:"small",color:(null==ie?void 0:ie.name)==(null==l?void 0:l.name)?"theme.primary.800":"inherit"})}),
11
+ /* @__PURE__ */e.jsx(N.default,{size:"small",onClick:e=>{e.preventDefault(),e.stopPropagation(),(async e=>{const l={"x-token":J,id:e};j.deleteV1FilterId(l).then(e=>{ne(null),le(Q),V&&V()}).catch(e=>{})})(l.id)},color:"error",children:/* @__PURE__ */e.jsx(E.Trash,{fontSize:"small",color:"theme.error.600"})})]})]},l.id))]}),
12
12
  /* @__PURE__ */e.jsx(h.default,{open:null!==se,onClose:()=>ae(null),handleSubmit:e=>(e=>{if(se)return(async(e,l)=>{const r={"x-token":J,id:e,name:l,module:(null==ce?void 0:ce.fieldResource)||(null==ce?void 0:ce.pageResource)};try{await j.putV1FilterId(r),V&&V(),b.enqueueSnackbar("Filters renamed successfully.")}catch(t){let e="Something went wrong on saving filters";return t instanceof Error&&(e=g.getErrorMessage(t.message)),b.enqueueSnackbar(e,{variant:"error"}),!1}return!0})(se.id,e)})(e),oldName:null==se?void 0:se.name}),
13
- /* @__PURE__ */e.jsx(I.default,{children:/* @__PURE__ */e.jsx(N.default,{size:"small",onClick:R,children:/* @__PURE__ */e.jsx(D.default,{fontSize:"small"})})})]})]}),
14
- /* @__PURE__ */e.jsxs(z.default,{className:"content",children:[oe&&/* @__PURE__ */e.jsx(P.default,{severity:"error",sx:{px:1,pt:.5,mb:1},children:/* @__PURE__ */e.jsx(n.Typography,{color:"error",type:"s4",children:oe})}),
13
+ /* @__PURE__ */e.jsx(I.default,{children:/* @__PURE__ */e.jsx(N.default,{size:"small",onClick:R,children:/* @__PURE__ */e.jsx(P.default,{fontSize:"small"})})})]})]}),
14
+ /* @__PURE__ */e.jsxs(T.default,{className:"content",children:[oe&&/* @__PURE__ */e.jsx(B.default,{severity:"error",sx:{px:1,pt:.5,mb:1},children:/* @__PURE__ */e.jsx(n.Typography,{color:"error",type:"s4",children:oe})}),
15
15
  /* @__PURE__ */e.jsxs(t.QueryBuilderMaterial,{children:[
16
16
  /* @__PURE__ */e.jsx(r.QueryBuilder,{fields:K||[],query:ee,onQueryChange:e=>{const l=e.rules.map((e,l)=>{var r,t;return{...e,value:e.field!==(null==(t=null==(r=ee.rules)?void 0:r[l])?void 0:t.field)||["null","notNull"].includes(e.operator)?"":e.value}});le({...e,rules:l}),ue(null),W&&W(e)},showCombinatorsBetweenRules:!0,controlClassnames:{header:"actions"},controlElements:{addRuleAction:u.default,addGroupAction:d.default,combinatorSelector:s.default,fieldSelector:o.default,operatorSelector:m.default,removeRuleAction:a.default,valueEditor:c.default,removeGroupAction:x.default}}),
17
17
  /* @__PURE__ */e.jsx(f.default,{variant:"text",className:de?"remove-filters_rtl":"remove-filters",onClick:()=>{me(!0)},disabled:je,children:"Clear all filters"})]})]}),
18
- /* @__PURE__ */e.jsx(T.default,{className:"filter-footer",children:/* @__PURE__ */e.jsxs(I.default,{sx:{display:"flex",alignItems:"center",justifyContent:ie?"space-between":"flex-end",width:"100%"},children:[ie&&/* @__PURE__ */e.jsx(I.default,{children:/* @__PURE__ */e.jsx(f.default,{onClick:async()=>{if(ie){const e={"x-token":J,id:ie.id,data:ee};j.putV1FilterId(e).then(e=>{V&&V(),$(e=>({...e,filters:{...e.filters,rules:ee.rules,combinator:ee.combinator,name:ie.name}}))}).catch(e=>b.enqueueSnackbar("Error renaming saved filters:",{variant:"error"}))}},children:"Update Seleted filter"})}),
18
+ /* @__PURE__ */e.jsx(M.default,{className:"filter-footer",children:/* @__PURE__ */e.jsxs(I.default,{sx:{display:"flex",alignItems:"center",justifyContent:ie?"space-between":"flex-end",width:"100%"},children:[ie&&/* @__PURE__ */e.jsx(I.default,{children:/* @__PURE__ */e.jsx(f.default,{onClick:async()=>{if(ie){const e={"x-token":J,id:ie.id,data:ee};j.putV1FilterId(e).then(e=>{V&&V(),$(e=>({...e,filters:{...e.filters,rules:ee.rules,combinator:ee.combinator,name:ie.name}}))}).catch(e=>b.enqueueSnackbar("Error renaming saved filters:",{variant:"error"}))}},children:"Update Seleted filter"})}),
19
19
  /* @__PURE__ */e.jsxs(I.default,{sx:{display:"flex",gap:1},children:[
20
20
  /* @__PURE__ */e.jsx(f.default,{className:"cancel-filter-btn",onClick:R,children:"Cancel"}),
21
21
  /* @__PURE__ */e.jsx(f.default,{disabled:je,onClick:()=>me(),children:"Apply"})]})]})})]})})};