@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
@@ -0,0 +1,8 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("react/jsx-runtime");function e(){/* @__PURE__ */
2
+ return i.jsx("div",{className:"Landing",children:/* @__PURE__ */i.jsxs("div",{className:"Landing--Home",id:"home",children:[
3
+ /* @__PURE__ */i.jsx("div",{className:"Landing--HomeAnimation",children:/* @__PURE__ */i.jsx("video",{className:"Landing--HomeAnimationVideo",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,children:/* @__PURE__ */i.jsx("source",{src:"https://ak.picdn.net/shutterstock/videos/1063309405/preview/stock-footage-modern-office-portrait-of-beautiful-authentic-specialist-with-short-pink-hair-standing-holding.webm",type:"video/mp4"})})}),
4
+ /* @__PURE__ */i.jsx("div",{className:"Landing--HomeContent",children:/* @__PURE__ */i.jsxs("div",{className:"Landing--HomeContentTop",children:[
5
+ /* @__PURE__ */i.jsxs("h1",{className:"Landing--SubTitle",children:["Introducing Dummy",
6
+ /* @__PURE__ */i.jsx("span",{style:{fontWeight:"700"},children:" Land, "})]}),
7
+ /* @__PURE__ */i.jsx("h1",{className:"Landing--Para",children:"This is the hero section.Lorem ipsum dolor sit amet, consectetur adipisicing elit.Dicta fugiat perspiciatis temporibus ut impedit expedita maiores officiis porro ? At commodi suscipit atque eligendi cumque ? Impedit magnam eligendi fugiat.Non, quam."})]})})]})})},/* empty css */exports.Landing=e,exports.default=e;
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../src/views/beforeAuth/landing/landing.tsx"],"sourcesContent":["import \"./landing.scss\";\r\n// import MetaComponent from '../../../utils/metaComponent';\r\n\r\nexport function Landing() {\r\n return (\r\n <div className=\"Landing\">\r\n {/* <MetaComponent\r\n\t\t\t\ttitle=\"Hi, This is dummy page title\"\r\n\t\t\t\tdescription=\"This is the dummy page description\"\r\n\t\t\t\tkeywords=\"dummy, keywords, dummy keywords, frontend template, frontend template by antino\"\r\n\t\t\t\tlocation={window.location}\r\n\t\t\t\timage=\"og_image.png\"\r\n\t\t\t/> */}\r\n <div className=\"Landing--Home\" id=\"home\">\r\n <div className=\"Landing--HomeAnimation\">\r\n <video\r\n className=\"Landing--HomeAnimationVideo\"\r\n autoPlay={true}\r\n muted\r\n loop={true}\r\n playsInline\r\n >\r\n <source\r\n src=\"https://ak.picdn.net/shutterstock/videos/1063309405/preview/stock-footage-modern-office-portrait-of-beautiful-authentic-specialist-with-short-pink-hair-standing-holding.webm\"\r\n type=\"video/mp4\"\r\n />\r\n </video>\r\n </div>\r\n <div className=\"Landing--HomeContent\">\r\n <div className=\"Landing--HomeContentTop\">\r\n <h1 className=\"Landing--SubTitle\">\r\n Introducing Dummy\r\n <span style={{ fontWeight: \"700\" }}> Land, </span>\r\n </h1>\r\n <h1 className=\"Landing--Para\">\r\n This is the hero section.Lorem ipsum dolor sit amet, consectetur\r\n adipisicing elit.Dicta fugiat perspiciatis temporibus ut impedit\r\n expedita maiores officiis porro ? At commodi suscipit atque\r\n eligendi cumque ? Impedit magnam eligendi fugiat.Non, quam.\r\n </h1>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n );\r\n}\r\n\r\nexport default Landing;\r\n"],"names":["Landing","jsx","className","children","id","autoPlay","muted","loop","playsInline","src","type","jsxs","style","fontWeight"],"mappings":"uGAGO,SAASA;AACd,OACEC,EAAAA,IAAC,OAAIC,UAAU,UAQbC,+BAAC,MAAA,CAAID,UAAU,gBAAgBE,GAAG,OAChCD,SAAA;iBAAAF,IAAC,MAAA,CAAIC,UAAU,yBACbC,wBAAAF,EAAAA,IAAC,QAAA,CACCC,UAAU,8BACVG,UAAU,EACVC,OAAK,EACLC,MAAM,EACNC,aAAW,EAEXL,wBAAAF,EAAAA,IAAC,SAAA,CACCQ,IAAI,gLACJC,KAAK;qBAIV,MAAA,CAAIR,UAAU,uBACbC,wBAAAQ,EAAAA,KAAC,MAAA,CAAIT,UAAU,0BACbC,SAAA;iBAAAQ,KAAC,KAAA,CAAGT,UAAU,oBAAoBC,SAAA,CAAA;qBAE/B,OAAA,CAAKS,MAAO,CAAEC,WAAY,OAASV,SAAA;eAEtCF,EAAAA,IAAC,KAAA,CAAGC,UAAU,gBAAgBC,SAAA,uQAW1C"}
@@ -0,0 +1,209 @@
1
+ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
+ import { useState, useEffect } from "react";
3
+ import { useNavigate } from "react-router-dom";
4
+ import { Pathname } from "../../../../constants/pathnames/pathname/index.esm.js";
5
+ import { images } from "../../../../images/index.esm.js";
6
+ import DynamicInput from "../../../../components/form-control/form-builder/form-builder-element/text/index.esm.js";
7
+ import { useForm } from "react-hook-form";
8
+ import { Typography } from "../../../../components/typography/typography/index.esm.js";
9
+ import Button from "../../../../components/button/button/index.esm.js";
10
+ import DynamicCheckBox from "../../../../components/form-control/form-builder/form-builder-element/checkbox/index.esm.js";
11
+ import { useAuth } from "../../../../hooks/useAuth/index.esm.js";
12
+ import Toast from "../../../../components/toast/toast/index.esm.js";
13
+ import * as Yup from "yup";
14
+ import { yupResolver as o } from "../../../../node_modules/@hookform/resolvers/yup/dist/yup/index.esm.js";
15
+ import Box from "../../../../node_modules/@mui/material/Box/Box/index.esm.js";
16
+ import styled from "../../../../node_modules/@mui/material/styles/styled/index.esm.js";
17
+ import { Eye } from "../../../../components/icons/eye/index.esm.js";
18
+ import { EyeOff } from "../../../../components/icons/eye-off/index.esm.js";
19
+ import Grid from "../../../../node_modules/@mui/material/Grid/Grid/index.esm.js";
20
+ const LoginContainer = styled(Grid)(() => ({
21
+ height: "100vh"
22
+ }));
23
+ const LeftGrid = styled(Grid)(({ theme }) => ({
24
+ [theme.breakpoints.down("sm")]: {
25
+ display: "none"
26
+ },
27
+ backgroundImage: `url(${images.login.LoginLeftBg})`,
28
+ backgroundRepeat: "no-repeat",
29
+ backgroundSize: "cover",
30
+ display: "flex",
31
+ justifyContent: "center",
32
+ alignItems: "center",
33
+ [theme.breakpoints.down("lg")]: {
34
+ "& img": {
35
+ width: 350,
36
+ height: 350
37
+ }
38
+ },
39
+ [theme.breakpoints.down("md")]: {
40
+ "& img": {
41
+ width: 300,
42
+ height: 300
43
+ }
44
+ }
45
+ }));
46
+ const RightGrid = styled(Grid)(() => ({
47
+ display: "flex",
48
+ justifyContent: "center",
49
+ alignItems: "center",
50
+ padding: "1rem"
51
+ }));
52
+ const FlexBox = styled(Box)(() => ({
53
+ display: "flex",
54
+ flexDirection: "column"
55
+ }));
56
+ const validationSchema = Yup.object({
57
+ login: Yup.object({
58
+ email: Yup.string().required("Please enter email").email("Provided email is invalid"),
59
+ password: Yup.string().required("Please enter password")
60
+ })
61
+ });
62
+ const Login = () => {
63
+ const navigate = useNavigate();
64
+ const [_, setToken] = useState("");
65
+ const [showPassword, setShowPassword] = useState(false);
66
+ const [toast, setToast] = useState(null);
67
+ const { user } = useAuth();
68
+ const { login } = useAuth();
69
+ const handleShowPassword = () => setShowPassword(!showPassword);
70
+ const { control, handleSubmit } = useForm({
71
+ resolver: o(validationSchema),
72
+ mode: "all"
73
+ });
74
+ const onSubmit = async (values) => {
75
+ await login(values.login, (err) => {
76
+ setToast({ message: err, type: "alert" });
77
+ });
78
+ };
79
+ const handleForgotPassword = () => {
80
+ navigate(Pathname.FORGOT_PASSWORD);
81
+ };
82
+ useEffect(() => {
83
+ const _tid = localStorage.getItem("_tid");
84
+ if (_tid !== null && user) {
85
+ setToken(_tid);
86
+ navigate(Pathname.DASHBOARD);
87
+ }
88
+ }, [user]);
89
+ return /* @__PURE__ */ jsxs(Box, { children: [
90
+ /* @__PURE__ */ jsxs(LoginContainer, { container: true, children: [
91
+ /* @__PURE__ */ jsx(LeftGrid, { item: true, sm: 6, children: /* @__PURE__ */ jsx("img", { src: images.login.LoginLeftSiteImage }) }),
92
+ /* @__PURE__ */ jsx(RightGrid, { item: true, sm: 6, xs: 12, children: /* @__PURE__ */ jsxs(
93
+ FlexBox,
94
+ {
95
+ display: "flex",
96
+ flexDirection: "column",
97
+ gap: 4,
98
+ sx: (theme) => ({
99
+ minWidth: 400,
100
+ [theme.breakpoints.down("md")]: {
101
+ minWidth: 300
102
+ },
103
+ [theme.breakpoints.down("sm")]: {
104
+ minWidth: 300
105
+ }
106
+ }),
107
+ children: [
108
+ /* @__PURE__ */ jsx(Box, { textAlign: "center", children: /* @__PURE__ */ jsx("img", { src: images.erp_logo, width: 160 }) }),
109
+ /* @__PURE__ */ jsx("form", { onSubmit: handleSubmit(onSubmit), children: /* @__PURE__ */ jsxs(FlexBox, { gap: 4, children: [
110
+ /* @__PURE__ */ jsxs(FlexBox, { gap: 3, children: [
111
+ /* @__PURE__ */ jsxs(Box, { children: [
112
+ /* @__PURE__ */ jsx(
113
+ Typography,
114
+ {
115
+ align: "center",
116
+ type: "h1",
117
+ weight: "medium",
118
+ color: "theme.secondary.1000",
119
+ children: "Welcome!"
120
+ }
121
+ ),
122
+ /* @__PURE__ */ jsx(
123
+ Typography,
124
+ {
125
+ align: "center",
126
+ type: "h5",
127
+ weight: "normal",
128
+ color: "theme.secondary81000",
129
+ children: "Enter your details below"
130
+ }
131
+ )
132
+ ] }),
133
+ /* @__PURE__ */ jsxs(FlexBox, { gap: 2, children: [
134
+ /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(
135
+ DynamicInput,
136
+ {
137
+ formControl: control,
138
+ label: "Email",
139
+ name: "email",
140
+ placeholder: "Enter email",
141
+ fieldArrayName: "login"
142
+ }
143
+ ) }),
144
+ /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(
145
+ DynamicInput,
146
+ {
147
+ formControl: control,
148
+ label: "Password",
149
+ name: "password",
150
+ type: showPassword ? "text" : "password",
151
+ fieldArrayName: "login",
152
+ endIcon: /* @__PURE__ */ jsx(Fragment, { children: showPassword ? /* @__PURE__ */ jsx(Eye, { fontSize: "small", htmlColor: "#292D32" }) : /* @__PURE__ */ jsx(EyeOff, { fontSize: "small", htmlColor: "#292D32" }) }),
153
+ onIconClick: handleShowPassword,
154
+ placeholder: "Enter password"
155
+ }
156
+ ) })
157
+ ] })
158
+ ] }),
159
+ /* @__PURE__ */ jsxs(FlexBox, { gap: 2, children: [
160
+ /* @__PURE__ */ jsx(Button, { type: "submit", size: "large", variant: "contained", children: "Login" }),
161
+ /* @__PURE__ */ jsxs(Box, { display: "flex", justifyContent: "space-between", children: [
162
+ /* @__PURE__ */ jsx(
163
+ DynamicCheckBox,
164
+ {
165
+ formControl: control,
166
+ title: "Remember me",
167
+ fieldArrayName: "login",
168
+ name: "remember_me"
169
+ }
170
+ ),
171
+ /* @__PURE__ */ jsx(
172
+ Button,
173
+ {
174
+ variant: "text",
175
+ sx: (theme) => {
176
+ var _a;
177
+ return {
178
+ color: `${(_a = theme.palette.theme) == null ? void 0 : _a.primary["700"]} !important`
179
+ };
180
+ },
181
+ onClick: handleForgotPassword,
182
+ children: "Forgot Password"
183
+ }
184
+ )
185
+ ] })
186
+ ] })
187
+ ] }) })
188
+ ]
189
+ }
190
+ ) })
191
+ ] }),
192
+ /* @__PURE__ */ jsx(
193
+ Toast,
194
+ {
195
+ open: Boolean(toast),
196
+ message: toast == null ? void 0 : toast.message,
197
+ type: toast == null ? void 0 : toast.type,
198
+ handleClose: () => setToast(null),
199
+ anchorOrigin: { horizontal: "right", vertical: "bottom" },
200
+ autoHideDuration: 3e3
201
+ }
202
+ )
203
+ ] });
204
+ };
205
+ export {
206
+ Login,
207
+ Login as default
208
+ };
209
+ //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":["../../../../../src/views/beforeAuth/login/index.tsx"],"sourcesContent":["import { useEffect, useState } from \"react\";\r\nimport { useNavigate } from \"react-router-dom\";\r\nimport { Pathname } from \"../../../constants/pathnames/pathname\";\r\nimport { Box, Grid } from \"@mui/material\";\r\nimport { styled } from \"@mui/material/styles\";\r\nimport images from \"../../../assets/images\";\r\nimport DynamicInput from \"../../../components/form-control/form-builder/form-builder-element/text\";\r\nimport { useForm } from \"react-hook-form\";\r\nimport Typography from \"../../../components/typography/typography\";\r\nimport Button from \"../../../components/button/button\";\r\nimport DynamicCheckBox from \"../../../components/form-control/form-builder/form-builder-element/checkbox\";\r\nimport { Eye, EyeOff } from \"../../../components/icons\";\r\nimport { LoginFormValues } from \"../../../contexts/AuthContext\";\r\nimport { useAuth } from \"../../../hooks/useAuth\";\r\nimport Toast from \"../../../components/toast/toast\";\r\nimport * as Yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers/yup\";\r\n\r\nconst LoginContainer = styled(Grid)(() => ({\r\n height: \"100vh\",\r\n}));\r\n\r\nconst LeftGrid = styled(Grid)(({ theme }) => ({\r\n [theme.breakpoints.down(\"sm\")]: {\r\n display: \"none\",\r\n },\r\n backgroundImage: `url(${images.login.LoginLeftBg})`,\r\n backgroundRepeat: \"no-repeat\",\r\n backgroundSize: \"cover\",\r\n display: \"flex\",\r\n justifyContent: \"center\",\r\n alignItems: \"center\",\r\n [theme.breakpoints.down(\"lg\")]: {\r\n \"& img\": {\r\n width: 350,\r\n height: 350,\r\n },\r\n },\r\n [theme.breakpoints.down(\"md\")]: {\r\n \"& img\": {\r\n width: 300,\r\n height: 300,\r\n },\r\n },\r\n}));\r\n\r\nconst RightGrid = styled(Grid)(() => ({\r\n display: \"flex\",\r\n justifyContent: \"center\",\r\n alignItems: \"center\",\r\n padding: \"1rem\",\r\n}));\r\n\r\nconst FlexBox = styled(Box)(() => ({\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n}));\r\n\r\ninterface FormValeus {\r\n login: LoginFormValues;\r\n}\r\n\r\ninterface IToast {\r\n message: string;\r\n type: \"normal\" | \"alert\";\r\n}\r\n\r\nconst validationSchema = Yup.object({\r\n login: Yup.object({\r\n email: Yup.string()\r\n .required(\"Please enter email\")\r\n .email(\"Provided email is invalid\"),\r\n password: Yup.string().required(\"Please enter password\"),\r\n }),\r\n});\r\n\r\nexport const Login = () => {\r\n const navigate = useNavigate();\r\n // eslint-disable-next-line\r\n const [_, setToken] = useState(\"\");\r\n const [showPassword, setShowPassword] = useState<boolean>(false);\r\n const [toast, setToast] = useState<IToast | null>(null);\r\n const { user } = useAuth();\r\n\r\n const { login } = useAuth();\r\n\r\n const handleShowPassword = () => setShowPassword(!showPassword);\r\n\r\n const { control, handleSubmit } = useForm<FormValeus>({\r\n resolver: yupResolver(validationSchema),\r\n mode: \"all\",\r\n });\r\n\r\n const onSubmit = async (values: FormValeus) => {\r\n await login(values.login, (err) => {\r\n setToast({ message: err, type: \"alert\" });\r\n });\r\n };\r\n\r\n const handleForgotPassword = () => {\r\n navigate(Pathname.FORGOT_PASSWORD);\r\n }\r\n\r\n useEffect(() => {\r\n const _tid = localStorage.getItem(\"_tid\");\r\n if (_tid !== null && user) {\r\n setToken(_tid);\r\n navigate(Pathname.DASHBOARD);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [user]);\r\n\r\n return (\r\n <Box>\r\n <LoginContainer container>\r\n <LeftGrid item sm={6}>\r\n <img src={images.login.LoginLeftSiteImage} />\r\n </LeftGrid>\r\n <RightGrid item sm={6} xs={12}>\r\n <FlexBox\r\n display=\"flex\"\r\n flexDirection=\"column\"\r\n gap={4}\r\n sx={(theme) => ({\r\n minWidth: 400,\r\n [theme.breakpoints.down(\"md\")]: {\r\n minWidth: 300,\r\n },\r\n [theme.breakpoints.down(\"sm\")]: {\r\n minWidth: 300,\r\n },\r\n })}\r\n >\r\n <Box textAlign=\"center\">\r\n <img src={images.erp_logo} width={160} />\r\n </Box>\r\n <form onSubmit={handleSubmit(onSubmit)}>\r\n <FlexBox gap={4}>\r\n <FlexBox gap={3}>\r\n <Box>\r\n <Typography\r\n align=\"center\"\r\n type=\"h1\"\r\n weight=\"medium\"\r\n color=\"theme.secondary.1000\"\r\n >\r\n Welcome!\r\n </Typography>\r\n <Typography\r\n align=\"center\"\r\n type=\"h5\"\r\n weight=\"normal\"\r\n color=\"theme.secondary81000\"\r\n >\r\n Enter your details below\r\n </Typography>\r\n </Box>\r\n <FlexBox gap={2}>\r\n <Box>\r\n <DynamicInput\r\n formControl={control}\r\n label=\"Email\"\r\n name=\"email\"\r\n placeholder=\"Enter email\"\r\n fieldArrayName=\"login\"\r\n />\r\n </Box>\r\n <Box>\r\n <DynamicInput\r\n formControl={control}\r\n label=\"Password\"\r\n name=\"password\"\r\n type={showPassword ? \"text\" : \"password\"}\r\n fieldArrayName=\"login\"\r\n endIcon={\r\n <>\r\n {showPassword ? (\r\n <Eye fontSize=\"small\" htmlColor=\"#292D32\" />\r\n ) : (\r\n <EyeOff fontSize=\"small\" htmlColor=\"#292D32\" />\r\n )}\r\n </>\r\n }\r\n onIconClick={handleShowPassword}\r\n placeholder=\"Enter password\"\r\n />\r\n </Box>\r\n </FlexBox>\r\n </FlexBox>\r\n <FlexBox gap={2}>\r\n <Button type=\"submit\" size=\"large\" variant=\"contained\">\r\n Login\r\n </Button>\r\n <Box display=\"flex\" justifyContent=\"space-between\">\r\n <DynamicCheckBox\r\n formControl={control}\r\n title=\"Remember me\"\r\n fieldArrayName=\"login\"\r\n name=\"remember_me\"\r\n />\r\n <Button\r\n variant=\"text\"\r\n sx={(theme) => ({\r\n color: `${theme.palette.theme?.primary[\"700\"]} !important`,\r\n })}\r\n onClick = {handleForgotPassword}\r\n >\r\n Forgot Password\r\n </Button>\r\n </Box>\r\n </FlexBox>\r\n </FlexBox>\r\n </form>\r\n </FlexBox>\r\n </RightGrid>\r\n </LoginContainer>\r\n <Toast\r\n open={Boolean(toast)}\r\n message={toast?.message}\r\n type={toast?.type}\r\n handleClose={() => setToast(null)}\r\n anchorOrigin={{ horizontal: \"right\", vertical: \"bottom\" }}\r\n autoHideDuration={3000}\r\n />\r\n </Box>\r\n );\r\n};\r\n\r\nexport default Login;\r\n"],"names":["yupResolver"],"mappings":"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"}
@@ -0,0 +1,20 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),r=require("react-router-dom"),n=require("../../../../constants/pathnames/pathname/index.js"),i=require("../../../../images/index.js"),o=require("../../../../components/form-control/form-builder/form-builder-element/text/index.js"),l=require("react-hook-form"),s=require("../../../../components/typography/typography/index.js"),a=require("../../../../components/button/button/index.js"),d=require("../../../../components/form-control/form-builder/form-builder-element/checkbox/index.js"),u=require("../../../../hooks/useAuth/index.js"),m=require("../../../../components/toast/toast/index.js"),c=require("yup"),f=require("../../../../node_modules/@hookform/resolvers/yup/dist/yup/index.js"),p=require("../../../../node_modules/@mui/material/Box/Box/index.js"),h=require("../../../../node_modules/@mui/material/styles/styled/index.js"),g=require("../../../../components/icons/eye/index.js"),x=require("../../../../components/icons/eye-off/index.js"),j=require("../../../../node_modules/@mui/material/Grid/Grid/index.js");function y(e){if(e&&"object"==typeof e&&"default"in e)return e;var t=/* @__PURE__ */Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,t}var b=/* @__PURE__ */y(c);const q=h.default(j.default)(()=>({height:"100vh"})),w=h.default(j.default)(({theme:e})=>({[e.breakpoints.down("sm")]:{display:"none"},backgroundImage:`url(${i.images.login.LoginLeftBg})`,backgroundRepeat:"no-repeat",backgroundSize:"cover",display:"flex",justifyContent:"center",alignItems:"center",[e.breakpoints.down("lg")]:{"& img":{width:350,height:350}},[e.breakpoints.down("md")]:{"& img":{width:300,height:300}}})),v=h.default(j.default)(()=>({display:"flex",justifyContent:"center",alignItems:"center",padding:"1rem"})),k=h.default(p.default)(()=>({display:"flex",flexDirection:"column"})),S=b.object({login:b.object({email:b.string().required("Please enter email").email("Provided email is invalid"),password:b.string().required("Please enter password")})}),O=()=>{const c=r.useNavigate(),[h,j]=t.useState(""),[y,b]=t.useState(!1),[O,C]=t.useState(null),{user:P}=u.useAuth(),{login:A}=u.useAuth(),{control:_,handleSubmit:D}=l.useForm({resolver:f.yupResolver(S),mode:"all"});return t.useEffect(()=>{const e=localStorage.getItem("_tid");null!==e&&P&&(j(e),c(n.Pathname.DASHBOARD))},[P]),/* @__PURE__ */e.jsxs(p.default,{children:[
2
+ /* @__PURE__ */e.jsxs(q,{container:!0,children:[
3
+ /* @__PURE__ */e.jsx(w,{item:!0,sm:6,children:/* @__PURE__ */e.jsx("img",{src:i.images.login.LoginLeftSiteImage})}),
4
+ /* @__PURE__ */e.jsx(v,{item:!0,sm:6,xs:12,children:/* @__PURE__ */e.jsxs(k,{display:"flex",flexDirection:"column",gap:4,sx:e=>({minWidth:400,[e.breakpoints.down("md")]:{minWidth:300},[e.breakpoints.down("sm")]:{minWidth:300}}),children:[
5
+ /* @__PURE__ */e.jsx(p.default,{textAlign:"center",children:/* @__PURE__ */e.jsx("img",{src:i.images.erp_logo,width:160})}),
6
+ /* @__PURE__ */e.jsx("form",{onSubmit:D(async e=>{await A(e.login,e=>{C({message:e,type:"alert"})})}),children:/* @__PURE__ */e.jsxs(k,{gap:4,children:[
7
+ /* @__PURE__ */e.jsxs(k,{gap:3,children:[
8
+ /* @__PURE__ */e.jsxs(p.default,{children:[
9
+ /* @__PURE__ */e.jsx(s.Typography,{align:"center",type:"h1",weight:"medium",color:"theme.secondary.1000",children:"Welcome!"}),
10
+ /* @__PURE__ */e.jsx(s.Typography,{align:"center",type:"h5",weight:"normal",color:"theme.secondary81000",children:"Enter your details below"})]}),
11
+ /* @__PURE__ */e.jsxs(k,{gap:2,children:[
12
+ /* @__PURE__ */e.jsx(p.default,{children:/* @__PURE__ */e.jsx(o.default,{formControl:_,label:"Email",name:"email",placeholder:"Enter email",fieldArrayName:"login"})}),
13
+ /* @__PURE__ */e.jsx(p.default,{children:/* @__PURE__ */e.jsx(o.default,{formControl:_,label:"Password",name:"password",type:y?"text":"password",fieldArrayName:"login",endIcon:/* @__PURE__ */e.jsx(e.Fragment,{children:y?/* @__PURE__ */e.jsx(g.Eye,{fontSize:"small",htmlColor:"#292D32"}):/* @__PURE__ */e.jsx(x.EyeOff,{fontSize:"small",htmlColor:"#292D32"})}),onIconClick:()=>b(!y),placeholder:"Enter password"})})]})]}),
14
+ /* @__PURE__ */e.jsxs(k,{gap:2,children:[
15
+ /* @__PURE__ */e.jsx(a.default,{type:"submit",size:"large",variant:"contained",children:"Login"}),
16
+ /* @__PURE__ */e.jsxs(p.default,{display:"flex",justifyContent:"space-between",children:[
17
+ /* @__PURE__ */e.jsx(d.default,{formControl:_,title:"Remember me",fieldArrayName:"login",name:"remember_me"}),
18
+ /* @__PURE__ */e.jsx(a.default,{variant:"text",sx:e=>{var t;return{color:`${null==(t=e.palette.theme)?void 0:t.primary[700]} !important`}},onClick:()=>{c(n.Pathname.FORGOT_PASSWORD)},children:"Forgot Password"})]})]})]})})]})})]}),
19
+ /* @__PURE__ */e.jsx(m.default,{open:Boolean(O),message:null==O?void 0:O.message,type:null==O?void 0:O.type,handleClose:()=>C(null),anchorOrigin:{horizontal:"right",vertical:"bottom"},autoHideDuration:3e3})]})};exports.Login=O,exports.default=O;
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../src/views/beforeAuth/login/index.tsx"],"sourcesContent":["import { useEffect, useState } from \"react\";\r\nimport { useNavigate } from \"react-router-dom\";\r\nimport { Pathname } from \"../../../constants/pathnames/pathname\";\r\nimport { Box, Grid } from \"@mui/material\";\r\nimport { styled } from \"@mui/material/styles\";\r\nimport images from \"../../../assets/images\";\r\nimport DynamicInput from \"../../../components/form-control/form-builder/form-builder-element/text\";\r\nimport { useForm } from \"react-hook-form\";\r\nimport Typography from \"../../../components/typography/typography\";\r\nimport Button from \"../../../components/button/button\";\r\nimport DynamicCheckBox from \"../../../components/form-control/form-builder/form-builder-element/checkbox\";\r\nimport { Eye, EyeOff } from \"../../../components/icons\";\r\nimport { LoginFormValues } from \"../../../contexts/AuthContext\";\r\nimport { useAuth } from \"../../../hooks/useAuth\";\r\nimport Toast from \"../../../components/toast/toast\";\r\nimport * as Yup from \"yup\";\r\nimport { yupResolver } from \"@hookform/resolvers/yup\";\r\n\r\nconst LoginContainer = styled(Grid)(() => ({\r\n height: \"100vh\",\r\n}));\r\n\r\nconst LeftGrid = styled(Grid)(({ theme }) => ({\r\n [theme.breakpoints.down(\"sm\")]: {\r\n display: \"none\",\r\n },\r\n backgroundImage: `url(${images.login.LoginLeftBg})`,\r\n backgroundRepeat: \"no-repeat\",\r\n backgroundSize: \"cover\",\r\n display: \"flex\",\r\n justifyContent: \"center\",\r\n alignItems: \"center\",\r\n [theme.breakpoints.down(\"lg\")]: {\r\n \"& img\": {\r\n width: 350,\r\n height: 350,\r\n },\r\n },\r\n [theme.breakpoints.down(\"md\")]: {\r\n \"& img\": {\r\n width: 300,\r\n height: 300,\r\n },\r\n },\r\n}));\r\n\r\nconst RightGrid = styled(Grid)(() => ({\r\n display: \"flex\",\r\n justifyContent: \"center\",\r\n alignItems: \"center\",\r\n padding: \"1rem\",\r\n}));\r\n\r\nconst FlexBox = styled(Box)(() => ({\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n}));\r\n\r\ninterface FormValeus {\r\n login: LoginFormValues;\r\n}\r\n\r\ninterface IToast {\r\n message: string;\r\n type: \"normal\" | \"alert\";\r\n}\r\n\r\nconst validationSchema = Yup.object({\r\n login: Yup.object({\r\n email: Yup.string()\r\n .required(\"Please enter email\")\r\n .email(\"Provided email is invalid\"),\r\n password: Yup.string().required(\"Please enter password\"),\r\n }),\r\n});\r\n\r\nexport const Login = () => {\r\n const navigate = useNavigate();\r\n // eslint-disable-next-line\r\n const [_, setToken] = useState(\"\");\r\n const [showPassword, setShowPassword] = useState<boolean>(false);\r\n const [toast, setToast] = useState<IToast | null>(null);\r\n const { user } = useAuth();\r\n\r\n const { login } = useAuth();\r\n\r\n const handleShowPassword = () => setShowPassword(!showPassword);\r\n\r\n const { control, handleSubmit } = useForm<FormValeus>({\r\n resolver: yupResolver(validationSchema),\r\n mode: \"all\",\r\n });\r\n\r\n const onSubmit = async (values: FormValeus) => {\r\n await login(values.login, (err) => {\r\n setToast({ message: err, type: \"alert\" });\r\n });\r\n };\r\n\r\n const handleForgotPassword = () => {\r\n navigate(Pathname.FORGOT_PASSWORD);\r\n }\r\n\r\n useEffect(() => {\r\n const _tid = localStorage.getItem(\"_tid\");\r\n if (_tid !== null && user) {\r\n setToken(_tid);\r\n navigate(Pathname.DASHBOARD);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [user]);\r\n\r\n return (\r\n <Box>\r\n <LoginContainer container>\r\n <LeftGrid item sm={6}>\r\n <img src={images.login.LoginLeftSiteImage} />\r\n </LeftGrid>\r\n <RightGrid item sm={6} xs={12}>\r\n <FlexBox\r\n display=\"flex\"\r\n flexDirection=\"column\"\r\n gap={4}\r\n sx={(theme) => ({\r\n minWidth: 400,\r\n [theme.breakpoints.down(\"md\")]: {\r\n minWidth: 300,\r\n },\r\n [theme.breakpoints.down(\"sm\")]: {\r\n minWidth: 300,\r\n },\r\n })}\r\n >\r\n <Box textAlign=\"center\">\r\n <img src={images.erp_logo} width={160} />\r\n </Box>\r\n <form onSubmit={handleSubmit(onSubmit)}>\r\n <FlexBox gap={4}>\r\n <FlexBox gap={3}>\r\n <Box>\r\n <Typography\r\n align=\"center\"\r\n type=\"h1\"\r\n weight=\"medium\"\r\n color=\"theme.secondary.1000\"\r\n >\r\n Welcome!\r\n </Typography>\r\n <Typography\r\n align=\"center\"\r\n type=\"h5\"\r\n weight=\"normal\"\r\n color=\"theme.secondary81000\"\r\n >\r\n Enter your details below\r\n </Typography>\r\n </Box>\r\n <FlexBox gap={2}>\r\n <Box>\r\n <DynamicInput\r\n formControl={control}\r\n label=\"Email\"\r\n name=\"email\"\r\n placeholder=\"Enter email\"\r\n fieldArrayName=\"login\"\r\n />\r\n </Box>\r\n <Box>\r\n <DynamicInput\r\n formControl={control}\r\n label=\"Password\"\r\n name=\"password\"\r\n type={showPassword ? \"text\" : \"password\"}\r\n fieldArrayName=\"login\"\r\n endIcon={\r\n <>\r\n {showPassword ? (\r\n <Eye fontSize=\"small\" htmlColor=\"#292D32\" />\r\n ) : (\r\n <EyeOff fontSize=\"small\" htmlColor=\"#292D32\" />\r\n )}\r\n </>\r\n }\r\n onIconClick={handleShowPassword}\r\n placeholder=\"Enter password\"\r\n />\r\n </Box>\r\n </FlexBox>\r\n </FlexBox>\r\n <FlexBox gap={2}>\r\n <Button type=\"submit\" size=\"large\" variant=\"contained\">\r\n Login\r\n </Button>\r\n <Box display=\"flex\" justifyContent=\"space-between\">\r\n <DynamicCheckBox\r\n formControl={control}\r\n title=\"Remember me\"\r\n fieldArrayName=\"login\"\r\n name=\"remember_me\"\r\n />\r\n <Button\r\n variant=\"text\"\r\n sx={(theme) => ({\r\n color: `${theme.palette.theme?.primary[\"700\"]} !important`,\r\n })}\r\n onClick = {handleForgotPassword}\r\n >\r\n Forgot Password\r\n </Button>\r\n </Box>\r\n </FlexBox>\r\n </FlexBox>\r\n </form>\r\n </FlexBox>\r\n </RightGrid>\r\n </LoginContainer>\r\n <Toast\r\n open={Boolean(toast)}\r\n message={toast?.message}\r\n type={toast?.type}\r\n handleClose={() => setToast(null)}\r\n anchorOrigin={{ horizontal: \"right\", vertical: \"bottom\" }}\r\n autoHideDuration={3000}\r\n />\r\n </Box>\r\n );\r\n};\r\n\r\nexport default Login;\r\n"],"names":["LoginContainer","styled","Grid","height","LeftGrid","theme","breakpoints","down","display","backgroundImage","images","login","LoginLeftBg","backgroundRepeat","backgroundSize","justifyContent","alignItems","width","RightGrid","padding","FlexBox","Box","flexDirection","validationSchema","Yup","object","email","string","required","password","Login","navigate","useNavigate","_","setToken","useState","showPassword","setShowPassword","toast","setToast","user","useAuth","control","handleSubmit","useForm","resolver","yupResolver","mode","useEffect","_tid","localStorage","getItem","Pathname","DASHBOARD","children","jsxs","container","jsx","item","sm","src","LoginLeftSiteImage","xs","gap","sx","minWidth","textAlign","erp_logo","onSubmit","async","values","err","message","type","Typography","align","weight","color","DynamicInput","formControl","label","name","placeholder","fieldArrayName","endIcon","Fragment","Eye","fontSize","htmlColor","EyeOff","onIconClick","Button","size","variant","DynamicCheckBox","title","_a","palette","primary","onClick","FORGOT_PASSWORD","Toast","open","Boolean","handleClose","anchorOrigin","horizontal","vertical","autoHideDuration"],"mappings":"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"}
@@ -0,0 +1,34 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { useEffect } from "react";
3
+ import { Pathname } from "../../../../constants/pathnames/pathname/index.esm.js";
4
+ import { useSearchParams, useNavigate } from "react-router-dom";
5
+ import { useAuth } from "../../../../hooks/useAuth/index.esm.js";
6
+ import Box from "../../../../node_modules/@mui/material/Box/Box/index.esm.js";
7
+ const ResetPassword = () => {
8
+ const { resetPassword } = useAuth();
9
+ const [searchParams] = useSearchParams();
10
+ const navigate = useNavigate();
11
+ useEffect(() => {
12
+ const tokenParam = searchParams.get("token");
13
+ if (!tokenParam) {
14
+ navigate(Pathname.LOGIN);
15
+ } else {
16
+ resetPassword({ token: tokenParam }, (response) => {
17
+ var _a;
18
+ console.log("response ", response);
19
+ if (!response) {
20
+ navigate(Pathname.LOGIN);
21
+ } else {
22
+ if (response && (response == null ? void 0 : response.data) && ((_a = response == null ? void 0 : response.data) == null ? void 0 : _a.isValid)) {
23
+ navigate(Pathname.CHANGE_PASSWORD, { state: { token: tokenParam } });
24
+ }
25
+ }
26
+ });
27
+ }
28
+ }, [searchParams, resetPassword, navigate]);
29
+ return /* @__PURE__ */ jsx(Box, { children: "Resetting password, please wait..." });
30
+ };
31
+ export {
32
+ ResetPassword
33
+ };
34
+ //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":["../../../../../src/views/beforeAuth/reset-password/reset-password.tsx"],"sourcesContent":["import { useEffect } from \"react\";\r\n// // import { useNavigate } from \"react-router-dom\";\r\nimport { Pathname } from \"../../../constants/pathnames/pathname\";\r\nimport { Box } from \"@mui/material\";\r\nimport { useSearchParams } from \"react-router-dom\";\r\nimport { useNavigate } from \"react-router-dom\";\r\nimport { useAuth } from \"../../../hooks/useAuth\";\r\n\r\n\r\nexport const ResetPassword = () => {\r\n const { resetPassword } = useAuth();\r\n const [searchParams] = useSearchParams();\r\n const navigate = useNavigate();\r\n\r\n useEffect(() => {\r\n const tokenParam = searchParams.get(\"token\");\r\n\r\n if (!tokenParam) {\r\n navigate(Pathname.LOGIN);\r\n } else {\r\n resetPassword({ token: tokenParam }, (response) => {\r\n console.log(\"response \",response)\r\n if (!response) {\r\n navigate(Pathname.LOGIN);\r\n } else {\r\n if (response && response?.data && response?.data?.isValid) {\r\n navigate(Pathname.CHANGE_PASSWORD, { state: { token: tokenParam } });\r\n }\r\n }\r\n });\r\n }\r\n }, [searchParams, resetPassword, navigate]);\r\n\r\n return <Box>Resetting password, please wait...</Box>;\r\n};"],"names":[],"mappings":";;;;;;AASO,MAAM,gBAAgB,MAAM;AACjC,QAAM,EAAE,cAAA,IAAkB,QAAA;AAC1B,QAAM,CAAC,YAAY,IAAI,gBAAA;AACvB,QAAM,WAAW,YAAA;AAEjB,YAAU,MAAM;AACd,UAAM,aAAa,aAAa,IAAI,OAAO;AAE3C,QAAI,CAAC,YAAY;AACf,eAAS,SAAS,KAAK;AAAA,IACzB,OAAO;AACL,oBAAc,EAAE,OAAO,WAAA,GAAc,CAAC,aAAa;;AACjD,gBAAQ,IAAI,aAAY,QAAQ;AAChC,YAAI,CAAC,UAAU;AACZ,mBAAS,SAAS,KAAK;AAAA,QAC1B,OAAO;AACL,cAAI,aAAY,qCAAU,WAAQ,0CAAU,SAAV,mBAAgB,UAAS;AACxD,qBAAS,SAAS,iBAAiB,EAAE,OAAO,EAAE,OAAO,WAAA,GAAc;AAAA,UACtE;AAAA,QACF;AAAA,MACF,CAAC;AAAA,IACH;AAAA,EACF,GAAG,CAAC,cAAc,eAAe,QAAQ,CAAC;AAE1C,SAAO,oBAAC,OAAI,UAAA,qCAAA,CAAkC;AAChD;"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),a=require("../../../../constants/pathnames/pathname/index.js"),r=require("react-router-dom"),s=require("../../../../hooks/useAuth/index.js"),u=require("../../../../node_modules/@mui/material/Box/Box/index.js");exports.ResetPassword=()=>{const{resetPassword:n}=s.useAuth(),[o]=r.useSearchParams(),i=r.useNavigate();return t.useEffect(()=>{const e=o.get("token");e?n({token:e},t=>{var r;t?t&&(null==t?void 0:t.data)&&(null==(r=null==t?void 0:t.data)?void 0:r.isValid)&&i(a.Pathname.CHANGE_PASSWORD,{state:{token:e}}):i(a.Pathname.LOGIN)}):i(a.Pathname.LOGIN)},[o,n,i]),/* @__PURE__ */e.jsx(u.default,{children:"Resetting password, please wait..."})};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../src/views/beforeAuth/reset-password/reset-password.tsx"],"sourcesContent":["import { useEffect } from \"react\";\r\n// // import { useNavigate } from \"react-router-dom\";\r\nimport { Pathname } from \"../../../constants/pathnames/pathname\";\r\nimport { Box } from \"@mui/material\";\r\nimport { useSearchParams } from \"react-router-dom\";\r\nimport { useNavigate } from \"react-router-dom\";\r\nimport { useAuth } from \"../../../hooks/useAuth\";\r\n\r\n\r\nexport const ResetPassword = () => {\r\n const { resetPassword } = useAuth();\r\n const [searchParams] = useSearchParams();\r\n const navigate = useNavigate();\r\n\r\n useEffect(() => {\r\n const tokenParam = searchParams.get(\"token\");\r\n\r\n if (!tokenParam) {\r\n navigate(Pathname.LOGIN);\r\n } else {\r\n resetPassword({ token: tokenParam }, (response) => {\r\n console.log(\"response \",response)\r\n if (!response) {\r\n navigate(Pathname.LOGIN);\r\n } else {\r\n if (response && response?.data && response?.data?.isValid) {\r\n navigate(Pathname.CHANGE_PASSWORD, { state: { token: tokenParam } });\r\n }\r\n }\r\n });\r\n }\r\n }, [searchParams, resetPassword, navigate]);\r\n\r\n return <Box>Resetting password, please wait...</Box>;\r\n};"],"names":["resetPassword","useAuth","searchParams","useSearchParams","navigate","useNavigate","useEffect","tokenParam","get","token","response","data","_a","isValid","Pathname","CHANGE_PASSWORD","state","LOGIN","jsx","Box","children"],"mappings":"kWAS6B,KAC3B,MAAMA,cAAEA,GAAkBC,aACnBC,GAAgBC,oBACjBC,EAAWC,EAAAA,cAqBjB,OAnBAC,EAAAA,UAAU,KACR,MAAMC,EAAaL,EAAaM,IAAI,SAE/BD,EAGHP,EAAc,CAAES,MAAOF,GAAeG,UAE/BA,EAGCA,IAAY,MAAAA,OAAA,EAAAA,EAAUC,QAAQ,OAAAC,EAAA,MAAAF,OAAA,EAAAA,EAAUC,eAAME,UAC/CT,EAASU,EAAAA,SAASC,gBAAiB,CAAEC,MAAO,CAAEP,MAAOF,KAHvDH,EAASU,EAAAA,SAASG,SALvBb,EAASU,EAAAA,SAASG,QAanB,CAACf,EAAcF,EAAeI,qBAE1Bc,IAACC,EAAAA,SAAIC,SAAA"}
@@ -32,12 +32,12 @@ import FormFields from "../form-fields/index.esm.js";
32
32
  import { generateModulePath, useFormDataEffect } from "../utils/common/index.esm.js";
33
33
  /* empty css */
34
34
  import Box from "../../../node_modules/@mui/material/Box/Box/index.esm.js";
35
+ import { EyeOff } from "../../../components/icons/eye-off/index.esm.js";
36
+ import { Eye } from "../../../components/icons/eye/index.esm.js";
35
37
  import Grid from "../../../node_modules/@mui/material/Grid/Grid/index.esm.js";
36
38
  import RadioGroup from "../../../node_modules/@mui/material/RadioGroup/RadioGroup/index.esm.js";
37
39
  import FormControlLabel from "../../../node_modules/@mui/material/FormControlLabel/FormControlLabel/index.esm.js";
38
40
  import Add from "../../../node_modules/@mui/icons-material/esm/Add/index.esm.js";
39
- import { EyeOff } from "../../../components/icons/eye-off/index.esm.js";
40
- import { Eye } from "../../../components/icons/eye/index.esm.js";
41
41
  const DEFAULT_GRID_COLUMNS = 12;
42
42
  const DEFAULT_COLUMN_WIDTH = 2;
43
43
  const DEFAULT_TAB_TITLE = "data";
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),r=require("react-router-dom"),i=require("react-hook-form"),n=require("react-dnd"),o=require("react-dnd-html5-backend"),s=require("react-i18next"),l=,/* empty css */a=,/* empty css */d=,/* empty css */c=,/* empty css */u=,/* empty css */m=,/* empty css */f=,/* empty css */h=,/* empty css */p=,/* empty css */b=,/* empty css */v=,/* empty css */y=,/* empty css */_=,/* empty css */x=,/* empty css */g=,/* empty css */S=,/* empty css */j=,/* empty css */N=,/* empty css */k=,/* empty css */q=,/* empty css */C=,/* empty css */w=,/* empty css */E=,/* empty css */O=,/* empty css */J=;/* empty css */;/* empty css */var F=,/* empty css */A=,/* empty css */M=,/* empty css */B=,/* empty css */T=,/* empty css */I=,/* empty css */P=;/* empty css */const D=e=>!isNaN(Number(e))&&isFinite(Number(e)),G=e=>JSON.parse(JSON.stringify(e)),U=(e="")=>({uniqueStringId:`${Date.now()}${e}${Math.random().toString(36).substr(2,9)}`});function V(){const{t:V}=s.useTranslation(),$=p.useAppDispatch(),L=r.useNavigate(),R=r.useLocation(),H=R.state??[],W=p.useAppSelector(e=>e.formBuilder),{control:z}=i.useForm({reValidateMode:"onBlur"}),{fields:Y,append:K,remove:Q,update:X,move:Z,insert:ee}=i.useFieldArray({control:z,name:"members"}),{fields:te,append:re,remove:ie,update:ne}=i.useFieldArray({control:z,name:"section"}),[oe,se]=t.useState(""),[le,ae]=t.useState(),[de,ce]=t.useState(),[ue,me]=t.useState([]),[fe,he]=t.useState(null),[pe,be]=t.useState(),[ve,ye]=t.useState([]),[_e,xe]=t.useState({}),[ge,Se]=t.useState(),[je,Ne]=t.useState(!1),[ke,qe]=t.useState(!1),[Ce,we]=t.useState(),[Ee,Oe]=t.useState(!0),[Je,Fe]=t.useState([]),[Ae,Me]=t.useState(0),[Be,Te]=t.useState(!1),[Ie,Pe]=t.useState(!1),[De,Ge]=t.useState(null),[Ue,Ve]=t.useState(null),[$e,Le]=t.useState(),Re=R.pathname.split("/")[2],He=J.generateModulePath(Re);J.useFormDataEffect(W,Je,Ae,{removeSection:ie,remove:Q,setTabsData:Fe,append:K,appendSection:re});const We=t.useCallback(r=>{try{if(!r||"string"!=typeof r)/* @__PURE__ */
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),r=require("react-router-dom"),i=require("react-hook-form"),n=require("react-dnd"),o=require("react-dnd-html5-backend"),s=require("react-i18next"),l=,/* empty css */a=,/* empty css */d=,/* empty css */c=,/* empty css */u=,/* empty css */m=,/* empty css */f=,/* empty css */h=,/* empty css */p=,/* empty css */b=,/* empty css */v=,/* empty css */y=,/* empty css */_=,/* empty css */x=,/* empty css */g=,/* empty css */S=,/* empty css */j=,/* empty css */N=,/* empty css */k=,/* empty css */q=,/* empty css */C=,/* empty css */w=,/* empty css */E=,/* empty css */O=,/* empty css */J=;/* empty css */;/* empty css */var F=,/* empty css */A=,/* empty css */M=,/* empty css */B=,/* empty css */T=,/* empty css */I=,/* empty css */P=;/* empty css */const D=e=>!isNaN(Number(e))&&isFinite(Number(e)),G=e=>JSON.parse(JSON.stringify(e)),U=(e="")=>({uniqueStringId:`${Date.now()}${e}${Math.random().toString(36).substr(2,9)}`});function V(){const{t:V}=s.useTranslation(),$=p.useAppDispatch(),L=r.useNavigate(),R=r.useLocation(),H=R.state??[],W=p.useAppSelector(e=>e.formBuilder),{control:z}=i.useForm({reValidateMode:"onBlur"}),{fields:Y,append:K,remove:Q,update:X,move:Z,insert:ee}=i.useFieldArray({control:z,name:"members"}),{fields:te,append:re,remove:ie,update:ne}=i.useFieldArray({control:z,name:"section"}),[oe,se]=t.useState(""),[le,ae]=t.useState(),[de,ce]=t.useState(),[ue,me]=t.useState([]),[fe,he]=t.useState(null),[pe,be]=t.useState(),[ve,ye]=t.useState([]),[_e,xe]=t.useState({}),[ge,Se]=t.useState(),[je,Ne]=t.useState(!1),[ke,qe]=t.useState(!1),[Ce,we]=t.useState(),[Ee,Oe]=t.useState(!0),[Je,Fe]=t.useState([]),[Ae,Me]=t.useState(0),[Be,Te]=t.useState(!1),[Ie,Pe]=t.useState(!1),[De,Ge]=t.useState(null),[Ue,Ve]=t.useState(null),[$e,Le]=t.useState(),Re=R.pathname.split("/")[2],He=J.generateModulePath(Re);J.useFormDataEffect(W,Je,Ae,{removeSection:ie,remove:Q,setTabsData:Fe,append:K,appendSection:re});const We=t.useCallback(r=>{try{if(!r||"string"!=typeof r)/* @__PURE__ */
2
2
  return e.jsx("div",{className:"text-gray-500 p-4",children:"Select a field to edit"});const i=r.toLowerCase().trim(),n={text:["text","number","email","phone","date","time","url","currency","file","geolocation","image","relation","info","tagsinput"],select:["select"],section:["section"],checkbox:["checkbox","togglebutton","radiobutton"],table:["table"]},o={element:fe,handlePropertyValueUpdate:nt,handleWidthChange:rt,handleColumnSelect:it,fields:(null==W?void 0:W.fields)||[]},s={element:fe,handlePropertyValueUpdate:nt,handleSelectOptionValueUpdate:ot,handleWidthChange:rt,handleColumnSelect:it};return n.text.includes(i)?/* @__PURE__ */t.createElement(k.TextEditForm,{...o,key:`text-form-${(null==fe?void 0:fe.id)||"default"}`}):n.select.includes(i)?/* @__PURE__ */t.createElement(q.SelectEditForm,{...s,key:`select-form-${(null==fe?void 0:fe.id)||"default"}`}):n.section.includes(i)?/* @__PURE__ */e.jsx(C.default,{element:_e,handlePropertyValueUpdate:tt},`section-form-${(null==_e?void 0:_e.id)||"default"}`):n.checkbox.includes(i)?/* @__PURE__ */t.createElement(w.CheckboxEditForm,{...s,key:`checkbox-form-${(null==fe?void 0:fe.id)||"default"}`}):n.table.includes(i)?/* @__PURE__ */e.jsx(E.default,{element:fe,handlePropertyValueUpdate:nt,handleColumnsUpdate:st,fields:(null==W?void 0:W.fields)||[]},`table-form-${(null==fe?void 0:fe.id)||"default"}`):/* @__PURE__ */e.jsxs("div",{className:"text-gray-500 p-4 border border-gray-200 rounded",children:[
3
3
  /* @__PURE__ */e.jsx("p",{className:"font-medium",children:"Unknown Field Type"}),
4
4
  /* @__PURE__ */e.jsxs("p",{className:"text-sm mt-1",children:['Field type "',r,'" is not supported. Please select a valid field to edit.']})]})}catch(i){/* @__PURE__ */
@@ -12,19 +12,19 @@ return e.jsx(xt,{})},[oe,Object.keys(Y).length,Object.keys(te).length,null==fe?v
12
12
  /* @__PURE__ */
13
13
  return e.jsx(F.default,{position:"relative",children:Ee?/* @__PURE__ */e.jsx(x.default,{}):/* @__PURE__ */e.jsxs(n.DndProvider,{backend:o.HTML5Backend,children:[
14
14
  /* @__PURE__ */e.jsx(m.default,{breadCrumbPath:vt,children:/* @__PURE__ */e.jsxs("div",{className:"formSection--Buttons",children:[
15
- /* @__PURE__ */e.jsx(d.default,{variant:"outlined",className:"formSection--PreviewButton",text:"Preview",onClick:()=>{Ue?ht():ft()},disable:!(null==Y?void 0:Y.length),startIcon:Ue?/* @__PURE__ */e.jsx(I.EyeOff,{}):/* @__PURE__ */e.jsx(P.Eye,{})}),
16
- /* @__PURE__ */e.jsx(d.default,{variant:"contained",type:"submit",text:"Update",onClick:pt,disable:Ue})]})}),Ue?/* @__PURE__ */e.jsx(S.default,{data:Ue||[],handleFormSubmit:e=>{},className:"form-container",fieldArrayName:"form-builder-preview",getFormMethods:e=>Le({...e})}):/* @__PURE__ */e.jsxs(A.default,{className:"formSection--Grid",container:!0,children:[
17
- /* @__PURE__ */e.jsx(A.default,{item:!0,xs:9,component:"form",sx:{position:"relative",background:"#F5F6F5",padding:"0.75rem"},children:/* @__PURE__ */e.jsxs(A.default,{className:"formSection--GridContainer",children:[
15
+ /* @__PURE__ */e.jsx(d.default,{variant:"outlined",className:"formSection--PreviewButton",text:"Preview",onClick:()=>{Ue?ht():ft()},disable:!(null==Y?void 0:Y.length),startIcon:Ue?/* @__PURE__ */e.jsx(A.EyeOff,{}):/* @__PURE__ */e.jsx(M.Eye,{})}),
16
+ /* @__PURE__ */e.jsx(d.default,{variant:"contained",type:"submit",text:"Update",onClick:pt,disable:Ue})]})}),Ue?/* @__PURE__ */e.jsx(S.default,{data:Ue||[],handleFormSubmit:e=>{},className:"form-container",fieldArrayName:"form-builder-preview",getFormMethods:e=>Le({...e})}):/* @__PURE__ */e.jsxs(B.default,{className:"formSection--Grid",container:!0,children:[
17
+ /* @__PURE__ */e.jsx(B.default,{item:!0,xs:9,component:"form",sx:{position:"relative",background:"#F5F6F5",padding:"0.75rem"},children:/* @__PURE__ */e.jsxs(B.default,{className:"formSection--GridContainer",children:[
18
18
  /* @__PURE__ */e.jsxs(F.default,{className:"formSection--Tab",children:[Je&&/* @__PURE__ */e.jsx(c.default,{tabs:Je,onEditTabTitle:Ke,activeValue:Ae,setActiveValue:Me,handleTabChange:()=>{dt()},handleRemoveTab:Qe,containerProps:{mb:0}}),
19
19
  /* @__PURE__ */e.jsx(d.default,{variant:"outlined",text:"Add Tab",onClick:Ye,style:{color:"#292D32",margin:"0.5rem"}})]}),
20
20
  /* @__PURE__ */e.jsxs("div",{className:"formSection--Form",children:[null==te?void 0:te.map((t,r)=>{var i;const n=Y.filter(e=>e.section_order===r),o=t.section_type===_.SECTION_TYPES.FORM_SWITCH_SECTION,s=null==(i=null==t?void 0:t.switcher_forms)?void 0:i.map(e=>({...e,formMembers:Y.filter(t=>t.section_form_id===e.id)}));/* @__PURE__ */
21
21
  return e.jsxs(a.default,{index:r,label:V(t.label),onClick:Ze,position:r,fieldArrayName:"section",isFormSwitcher:o,activeIndex:le===r,removeSection:()=>lt(r),handleAccordion:()=>at(r),handleAddButton:e=>et(e),remove_section:t.remove_section,children:[o?/* @__PURE__ */e.jsxs("div",{style:{width:"100%"},children:[
22
22
  /* @__PURE__ */e.jsx(f.Typography,{type:"s5",style:{fontWeight:500},color:"theme.secondary.800",children:t.form_switcher_label}),
23
- /* @__PURE__ */e.jsx(M.default,{"aria-labelledby":"theme-radio-buttons-group-label",name:t.form_switcher_name||t.form_switcher_label,children:null==s?void 0:s.map(({name:t,id:i,formMembers:n})=>/* @__PURE__ */e.jsxs(e.Fragment,{children:[
24
- /* @__PURE__ */e.jsx("div",{children:/* @__PURE__ */e.jsx(B.default,{value:t,control:/* @__PURE__ */e.jsx(y.default,{}),label:V(t),disabled:!0},i)}),
25
- /* @__PURE__ */e.jsx(A.default,{container:!0,sx:{mb:3},children:/* @__PURE__ */e.jsx(O.default,{sectionMembers:n||[],members:Y,activeMember:de,control:z,t:V,element:N.element,images:u.images,elementJSON:fe,remove:Q,move:Z,handleElementSelection:Xe,setElementSwap:Te,handleDuplicateElement:bt,setSelectedHoc:se,setActiveMember:ce})}),
26
- /* @__PURE__ */e.jsx(d.default,{text:"Add",variant:"outlined",className:"formSection--PreviewButton","data-position":r,onClick:e=>et(e,{section_form_id:i,is_form_switcher_section:!0}),startIcon:/* @__PURE__ */e.jsx(T.default,{})})]}))})]}):null,!o&&/* @__PURE__ */e.jsx(O.default,{sectionMembers:n||[],members:Y,activeMember:de,control:z,t:V,element:N.element,images:u.images,elementJSON:fe,remove:Q,move:Z,handleElementSelection:Xe,setElementSwap:Te,handleDuplicateElement:bt,setSelectedHoc:se,setActiveMember:ce})]})}),
27
- /* @__PURE__ */e.jsx("div",{className:"formSection--Section",children:/* @__PURE__ */e.jsx(d.default,{text:"Add a section",variant:"outlined",className:"formSection--PreviewButton",onClick:ze,startIcon:/* @__PURE__ */e.jsx(T.default,{})})})]})]})}),
28
- /* @__PURE__ */e.jsx(A.default,{item:!0,xs:3,className:Boolean(oe)&&((null==Y?void 0:Y.length)||te.length)?"formSection--RightGrid":"formSection--RightGrid formSection--Text",children:St})]}),
23
+ /* @__PURE__ */e.jsx(T.default,{"aria-labelledby":"theme-radio-buttons-group-label",name:t.form_switcher_name||t.form_switcher_label,children:null==s?void 0:s.map(({name:t,id:i,formMembers:n})=>/* @__PURE__ */e.jsxs(e.Fragment,{children:[
24
+ /* @__PURE__ */e.jsx("div",{children:/* @__PURE__ */e.jsx(I.default,{value:t,control:/* @__PURE__ */e.jsx(y.default,{}),label:V(t),disabled:!0},i)}),
25
+ /* @__PURE__ */e.jsx(B.default,{container:!0,sx:{mb:3},children:/* @__PURE__ */e.jsx(O.default,{sectionMembers:n||[],members:Y,activeMember:de,control:z,t:V,element:N.element,images:u.images,elementJSON:fe,remove:Q,move:Z,handleElementSelection:Xe,setElementSwap:Te,handleDuplicateElement:bt,setSelectedHoc:se,setActiveMember:ce})}),
26
+ /* @__PURE__ */e.jsx(d.default,{text:"Add",variant:"outlined",className:"formSection--PreviewButton","data-position":r,onClick:e=>et(e,{section_form_id:i,is_form_switcher_section:!0}),startIcon:/* @__PURE__ */e.jsx(P.default,{})})]}))})]}):null,!o&&/* @__PURE__ */e.jsx(O.default,{sectionMembers:n||[],members:Y,activeMember:de,control:z,t:V,element:N.element,images:u.images,elementJSON:fe,remove:Q,move:Z,handleElementSelection:Xe,setElementSwap:Te,handleDuplicateElement:bt,setSelectedHoc:se,setActiveMember:ce})]})}),
27
+ /* @__PURE__ */e.jsx("div",{className:"formSection--Section",children:/* @__PURE__ */e.jsx(d.default,{text:"Add a section",variant:"outlined",className:"formSection--PreviewButton",onClick:ze,startIcon:/* @__PURE__ */e.jsx(P.default,{})})})]})]})}),
28
+ /* @__PURE__ */e.jsx(B.default,{item:!0,xs:3,className:Boolean(oe)&&((null==Y?void 0:Y.length)||te.length)?"formSection--RightGrid":"formSection--RightGrid formSection--Text",children:St})]}),
29
29
  /* @__PURE__ */e.jsx(v.default,{open:Boolean(De),type:null==De?void 0:De.type,message:null==De?void 0:De.message,handleClose:()=>Ge(null),anchorOrigin:{horizontal:"right",vertical:"bottom"}})]})})}exports.CustomForm=V,exports.default=V;
30
30
  //# sourceMappingURL=index.js.map
@@ -13,9 +13,9 @@ import MenuItem from "../../../../node_modules/@mui/material/MenuItem/MenuItem/i
13
13
  import FormControl from "../../../../node_modules/@mui/material/FormControl/FormControl/index.esm.js";
14
14
  import Slider from "../../../../node_modules/@mui/material/Slider/Slider/index.esm.js";
15
15
  import IconButton from "../../../../node_modules/@mui/material/IconButton/IconButton/index.esm.js";
16
+ import { Trash } from "../../../../components/icons/trash/index.esm.js";
16
17
  import Add from "../../../../node_modules/@mui/icons-material/esm/Add/index.esm.js";
17
18
  import FormControlLabel from "../../../../node_modules/@mui/material/FormControlLabel/FormControlLabel/index.esm.js";
18
- import { Trash } from "../../../../components/icons/trash/index.esm.js";
19
19
  const COLUMN_PER_ROW_OPTIONS = [1, 2, 3, 4, 5, 6];
20
20
  const SelectEditForm = React__default.memo(({
21
21
  element,
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),l=require("react"),a=,/* empty css */t=,/* empty css */u=,/* empty css */n=,/* empty css */i=,/* empty css */d=,/* empty css */s=;/* empty css */;/* empty css */var r=,/* empty css */o=,/* empty css */c=,/* empty css */m=,/* empty css */f=,/* empty css */x=,/* empty css */h=,/* empty css */p=;/* empty css */function j(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const b=[1,2,3,4,5,6],v=/* @__PURE__ */j(l).default.memo(({element:j,handlePropertyValueUpdate:v,handleSelectOptionValueUpdate:_,handleColumnSelect:C,handleWidthChange:y})=>{const[q,g]=l.useState(j.options||[]),[k,S]=l.useState({label:"",value:""}),[O,w]=l.useState(!1);l.useEffect(()=>{JSON.stringify(q)!==JSON.stringify(j.options||[])&&g(j.options||[])},[j.options,q]);const W=l.useMemo(()=>"system"===j.type||!j.is_new,[j.type,j.is_new]),F=l.useMemo(()=>{const e=q.find(e=>e.value===j.default_value);return(null==e?void 0:e.label)||"Select Default"},[q,j.default_value]),I=l.useCallback(e=>{v(null,null,null,e.target.value)},[v]),N=l.useCallback(e=>{v(null,null,e.target.value)},[v]),P=l.useCallback(e=>{const l=e.target.checked;v({target:{name:"is_multiselect",checked:l,value:l}}),l&&j.default_value&&v(null,"default_value",null)},[v,j.default_value]),V=l.useCallback(e=>{const{name:l,value:a}=e.target;S(e=>({...e,[l]:a}))},[]),E=l.useCallback(()=>{if(!k.label.trim()||!k.value.trim())return;if(q.some(e=>e.value===k.value||e.label===k.label))return void a.enqueueSnackbar("Option with this value or label already exists.",{variant:"error"});const e=[...q,{...k}];g(e),_(e),S({label:"",value:""}),w(!1)},[k,q,_]),M=l.useCallback(e=>{const l=q.filter((l,a)=>a!==e);g(l),_(l);const a=q[e];j.default_value===(null==a?void 0:a.value)&&v(null,"default_value",null)},[q,_,j.default_value,v]),A=l.useCallback((e,l)=>{y(l)},[y]);/* @__PURE__ */
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),l=require("react"),a=,/* empty css */t=,/* empty css */u=,/* empty css */n=,/* empty css */i=,/* empty css */d=,/* empty css */s=;/* empty css */;/* empty css */var r=,/* empty css */o=,/* empty css */c=,/* empty css */m=,/* empty css */f=,/* empty css */x=,/* empty css */h=,/* empty css */p=;/* empty css */function j(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const b=[1,2,3,4,5,6],v=/* @__PURE__ */j(l).default.memo(({element:j,handlePropertyValueUpdate:v,handleSelectOptionValueUpdate:_,handleColumnSelect:C,handleWidthChange:y})=>{const[q,g]=l.useState(j.options||[]),[k,S]=l.useState({label:"",value:""}),[O,w]=l.useState(!1);l.useEffect(()=>{JSON.stringify(q)!==JSON.stringify(j.options||[])&&g(j.options||[])},[j.options,q]);const W=l.useMemo(()=>"system"===j.type||!j.is_new,[j.type,j.is_new]),F=l.useMemo(()=>{const e=q.find(e=>e.value===j.default_value);return(null==e?void 0:e.label)||"Select Default"},[q,j.default_value]),I=l.useCallback(e=>{v(null,null,null,e.target.value)},[v]),N=l.useCallback(e=>{v(null,null,e.target.value)},[v]),P=l.useCallback(e=>{const l=e.target.checked;v({target:{name:"is_multiselect",checked:l,value:l}}),l&&j.default_value&&v(null,"default_value",null)},[v,j.default_value]),V=l.useCallback(e=>{const{name:l,value:a}=e.target;S(e=>({...e,[l]:a}))},[]),E=l.useCallback(()=>{if(!k.label.trim()||!k.value.trim())return;if(q.some(e=>e.value===k.value||e.label===k.label))return void a.enqueueSnackbar("Option with this value or label already exists.",{variant:"error"});const e=[...q,{...k}];g(e),_(e),S({label:"",value:""}),w(!1)},[k,q,_]),M=l.useCallback(e=>{const l=q.filter((l,a)=>a!==e);g(l),_(l);const a=q[e];j.default_value===(null==a?void 0:a.value)&&v(null,"default_value",null)},[q,_,j.default_value,v]),A=l.useCallback((e,l)=>{y(l)},[y]);/* @__PURE__ */
2
2
  return e.jsxs(r.default,{className:"formSection--FieldContainer",children:[
3
3
  /* @__PURE__ */e.jsx(r.default,{children:/* @__PURE__ */e.jsx(s.default,{variant:"outlined",onChange:I,defaultValue:j.field_type,label:"Field Type",disabled:W})}),
4
4
  /* @__PURE__ */e.jsx(r.default,{children:/* @__PURE__ */e.jsx(n.default,{fullWidth:!0,label:"Label",is_required:!0,name:"label",type:"text",onChange:v,defaultValue:j.label})}),
@@ -11,15 +11,15 @@ return e.jsxs(r.default,{className:"formSection--FieldContainer",children:[
11
11
  /* @__PURE__ */e.jsxs(r.default,{className:"formSection--SelectOption",children:[
12
12
  /* @__PURE__ */e.jsx(i.Typography,{type:"s5",weight:"medium",color:"theme.secondary.800",sx:{mb:.5},children:"Options"}),q.map((l,a)=>/* @__PURE__ */e.jsxs(r.default,{sx:{mb:1,display:"flex",gap:1},children:[
13
13
  /* @__PURE__ */e.jsx(n.default,{fullWidth:!0,value:`${l.label} (${l.value})`,InputProps:{readOnly:!0}}),
14
- /* @__PURE__ */e.jsx(f.default,{color:"error",size:"small",onClick:()=>M(a),children:/* @__PURE__ */e.jsx(p.Trash,{})})]},`option-${a}`)),O&&/* @__PURE__ */e.jsxs(r.default,{className:"formSection--SelectOption",sx:{mt:.5,p:2,border:"1px solid #ddd",borderRadius:1},children:[
14
+ /* @__PURE__ */e.jsx(f.default,{color:"error",size:"small",onClick:()=>M(a),children:/* @__PURE__ */e.jsx(x.Trash,{})})]},`option-${a}`)),O&&/* @__PURE__ */e.jsxs(r.default,{className:"formSection--SelectOption",sx:{mt:.5,p:2,border:"1px solid #ddd",borderRadius:1},children:[
15
15
  /* @__PURE__ */e.jsx(r.default,{sx:{mb:2},children:/* @__PURE__ */e.jsx(n.default,{fullWidth:!0,label:"Option Label",is_required:!0,name:"label",type:"text",placeholder:"Enter option label",value:k.label,onChange:V})}),
16
16
  /* @__PURE__ */e.jsx(r.default,{sx:{mb:2},children:/* @__PURE__ */e.jsx(n.default,{fullWidth:!0,label:"Option Value",placeholder:"Enter option value",is_required:!0,name:"value",type:"text",value:k.value,onChange:V})}),
17
17
  /* @__PURE__ */e.jsxs(r.default,{sx:{display:"flex",gap:1},children:[
18
- /* @__PURE__ */e.jsx(d.default,{onClick:E,startIcon:/* @__PURE__ */e.jsx(x.default,{}),disabled:!k.label.trim()||!k.value.trim(),children:"Add Option"}),
19
- /* @__PURE__ */e.jsx(d.default,{onClick:()=>{w(!1),S({label:"",value:""})},variant:"outlined",children:"Cancel"})]})]}),!O&&/* @__PURE__ */e.jsx(d.default,{onClick:()=>w(!0),variant:"outlined",className:"formSection--Button",startIcon:/* @__PURE__ */e.jsx(x.default,{}),sx:{mt:1},children:"Add Option"})]}),
18
+ /* @__PURE__ */e.jsx(d.default,{onClick:E,startIcon:/* @__PURE__ */e.jsx(h.default,{}),disabled:!k.label.trim()||!k.value.trim(),children:"Add Option"}),
19
+ /* @__PURE__ */e.jsx(d.default,{onClick:()=>{w(!1),S({label:"",value:""})},variant:"outlined",children:"Cancel"})]})]}),!O&&/* @__PURE__ */e.jsx(d.default,{onClick:()=>w(!0),variant:"outlined",className:"formSection--Button",startIcon:/* @__PURE__ */e.jsx(h.default,{}),sx:{mt:1},children:"Add Option"})]}),
20
20
  /* @__PURE__ */e.jsxs(r.default,{sx:{display:"flex",flexDirection:"column",gap:1},children:[
21
- /* @__PURE__ */e.jsx(h.default,{name:"is_multiselect",control:/* @__PURE__ */e.jsx(t.default,{}),onChange:P,checked:j.is_multiselect,label:"Enable Multi Select"}),
22
- /* @__PURE__ */e.jsx(h.default,{name:"is_required",control:/* @__PURE__ */e.jsx(t.default,{}),onChange:v,checked:j.is_required,label:"This field is required"}),
23
- /* @__PURE__ */e.jsx(h.default,{name:"is_unique",control:/* @__PURE__ */e.jsx(t.default,{}),onChange:v,checked:j.is_unique,label:"Is Unique"}),
24
- /* @__PURE__ */e.jsx(h.default,{name:"is_fullwidth",control:/* @__PURE__ */e.jsx(t.default,{}),onChange:v,checked:j.is_fullwidth,label:"Full Width"})]})]})});v.displayName="SelectEditForm",exports.SelectEditForm=v,exports.default=v;
21
+ /* @__PURE__ */e.jsx(p.default,{name:"is_multiselect",control:/* @__PURE__ */e.jsx(t.default,{}),onChange:P,checked:j.is_multiselect,label:"Enable Multi Select"}),
22
+ /* @__PURE__ */e.jsx(p.default,{name:"is_required",control:/* @__PURE__ */e.jsx(t.default,{}),onChange:v,checked:j.is_required,label:"This field is required"}),
23
+ /* @__PURE__ */e.jsx(p.default,{name:"is_unique",control:/* @__PURE__ */e.jsx(t.default,{}),onChange:v,checked:j.is_unique,label:"Is Unique"}),
24
+ /* @__PURE__ */e.jsx(p.default,{name:"is_fullwidth",control:/* @__PURE__ */e.jsx(t.default,{}),onChange:v,checked:j.is_fullwidth,label:"Full Width"})]})]})});v.displayName="SelectEditForm",exports.SelectEditForm=v,exports.default=v;
25
25
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import { getV1FormBuilderId, patchV1FormBuilderId, getV1FormBuilderFieldsId, setBaseUrl } from "../../../../api-client/api.system-feature/api/index.esm.js";
1
+ import { patchV1FormBuilderId, getV1FormBuilderId, getV1FormBuilderFieldsId, setBaseUrl } from "../../../../api-client/api.system-feature/api/index.esm.js";
2
2
  import { createAsyncThunk } from "@reduxjs/toolkit";
3
3
  import { getToken } from "../../../../utils/common/index.esm.js";
4
4
  setBaseUrl(`${"https://apidev.erpforce.co"}/system-feature`);
@@ -82,7 +82,12 @@ const formBuilderListSlice = createSlice({
82
82
  });
83
83
  }
84
84
  });
85
+ const { setFormData, setPaginationModel } = formBuilderListSlice.actions;
86
+ var reducer = formBuilderListSlice.reducer;
85
87
  export {
86
- formBuilderListSlice
88
+ reducer as default,
89
+ formBuilderListSlice,
90
+ setFormData,
91
+ setPaginationModel
87
92
  };
88
93
  //# sourceMappingURL=index.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":["../../../../../src/views/form-builder/redux/reducer.ts"],"sourcesContent":["import { createSlice } from '@reduxjs/toolkit';\r\nimport {\r\n getFieldsByFormId,\r\n getFormDataById,\r\n patchFormDataById,\r\n\r\n} from \"./actionCreator\";\r\nimport initialState from \"./state\";\r\n\r\nconst isJsonParse = (json: string) => {\r\n try {\r\n return JSON.parse(json);\r\n } catch (error) {\r\n return false;\r\n }\r\n};\r\n\r\nexport const formBuilderListSlice = createSlice({\r\n name: \"formBuilder/getAllFormData\",\r\n initialState,\r\n reducers: {\r\n setFormData: (state, action) => {\r\n state.formData = action.payload\r\n },\r\n setPaginationModel(state, action) {\r\n state.paginationModel = { ...state.paginationModel, ...action.payload };\r\n },\r\n },\r\n extraReducers: (builder) => {\r\n /*--------------------------------GET Handle Pending State ---------------------------------*/\r\n\r\n\r\n\r\n /*--------------------------------GET BY ID Handle Pending State ---------------------------------*/\r\n\r\n builder.addCase(getFormDataById.pending, (state) => {\r\n state.isLoading = true;\r\n state.isError = false;\r\n state.error = '';\r\n state.formData = [];\r\n });\r\n\r\n /*--------------------------------GET BY ID Handle fullfiled State ---------------------------------*/\r\n builder.addCase(getFormDataById.fulfilled, (state, action: any) => {\r\n state.isLoading = false;\r\n state.isError = false;\r\n state.formData = action?.payload?.data?.form?.fields;\r\n state.error = \"\";\r\n });\r\n\r\n /*--------------------------------GET BY ID Handle Rejected State ---------------------------------*/\r\n builder.addCase(getFormDataById.rejected, (state, action) => {\r\n state.isLoading = false;\r\n state.isError = true;\r\n state.error = action.error.message || \"\";\r\n });\r\n /*--------------------------------Patch Handle Pending State ---------------------------------*/\r\n\r\n builder.addCase(patchFormDataById.pending, (state) => {\r\n // state.isLoading = true;\r\n // state.isError = false;\r\n // state.isSuccess = false;\r\n // state.error = \"\";\r\n });\r\n\r\n /*--------------------------------Patch Handle fullfiled State ---------------------------------*/\r\n builder.addCase(patchFormDataById.fulfilled, (state) => {\r\n state.isLoading = false;\r\n state.isError = false;\r\n // state.formData = [];\r\n state.error = \"\";\r\n state.isSuccess = true;\r\n });\r\n\r\n /*--------------------------------Patch Handle Rejected State ---------------------------------*/\r\n builder.addCase(patchFormDataById.rejected, (state, action) => {\r\n const error: string = isJsonParse(action.error?.message)?.message || action.error.message || \"Something went wrong\";\r\n state.isLoading = false;\r\n state.isError = true;\r\n state.error = error;\r\n state.isSuccess = false;\r\n });\r\n\r\n\r\n\r\n\r\n /*--------------------------------Get Fields By Form ID handle pending state ---------------------------------*/\r\n builder.addCase(getFieldsByFormId.pending, (state) => {\r\n state.isLoading = true;\r\n });\r\n /*--------------------------------Get Fields By Form ID handle fullfilled state ---------------------------------*/\r\n builder.addCase(getFieldsByFormId.fulfilled, (state, action) => {\r\n const incomingFields = action.payload;\r\n if (incomingFields.length) {\r\n let fields = {};\r\n incomingFields.forEach((field: any) => {\r\n for (const key in field) {\r\n fields = {\r\n ...fields,\r\n [key]: field[key],\r\n };\r\n }\r\n });\r\n state.fields = fields;\r\n state.isLoading = false;\r\n }\r\n });\r\n /*--------------------------------Get Fields By Form ID handle rejected state ---------------------------------*/\r\n builder.addCase(getFieldsByFormId.rejected, (state, action) => {\r\n const message = `Fields API: ${isJsonParse(action.error.message as string)?.message ||\r\n action.error.message\r\n }`;\r\n state.isLoading = false;\r\n state.isError = true;\r\n state.error = message;\r\n });\r\n /*--------------------------------Patch Handle Pending State ---------------------------------*/\r\n },\r\n});\r\n\r\nexport const { setFormData, setPaginationModel } = formBuilderListSlice.actions;\r\n\r\nexport default formBuilderListSlice.reducer;\r\n"],"names":["initialState","state"],"mappings":";;;AASA,MAAM,cAAc,CAAC,SAAiB;AACpC,MAAI;AACF,WAAO,KAAK,MAAM,IAAI;AAAA,EACxB,SAAS,OAAO;AACd,WAAO;AAAA,EACT;AACF;AAEO,MAAM,uBAAuB,YAAY;AAAA,EAC9C,MAAM;AAAA,EAAA,cACNA;AAAAA,EACA,UAAU;AAAA,IACR,aAAa,CAACC,QAAO,WAAW;AAC9B,MAAAA,OAAM,WAAW,OAAO;AAAA,IAC1B;AAAA,IACA,mBAAmBA,QAAO,QAAQ;AAChC,MAAAA,OAAM,kBAAkB,EAAE,GAAGA,OAAM,iBAAiB,GAAG,OAAO,QAAA;AAAA,IAChE;AAAA,EAAA;AAAA,EAEF,eAAe,CAAC,YAAY;AAO1B,YAAQ,QAAQ,gBAAgB,SAAS,CAACA,WAAU;AAClD,MAAAA,OAAM,YAAY;AAClB,MAAAA,OAAM,UAAU;AAChB,MAAAA,OAAM,QAAQ;AACd,MAAAA,OAAM,WAAW,CAAA;AAAA,IACnB,CAAC;AAGD,YAAQ,QAAQ,gBAAgB,WAAW,CAACA,QAAO,WAAgB;;AACjE,MAAAA,OAAM,YAAY;AAClB,MAAAA,OAAM,UAAU;AAChB,MAAAA,OAAM,YAAW,kDAAQ,YAAR,mBAAiB,SAAjB,mBAAuB,SAAvB,mBAA6B;AAC9C,MAAAA,OAAM,QAAQ;AAAA,IAChB,CAAC;AAGD,YAAQ,QAAQ,gBAAgB,UAAU,CAACA,QAAO,WAAW;AAC3D,MAAAA,OAAM,YAAY;AAClB,MAAAA,OAAM,UAAU;AAChB,MAAAA,OAAM,QAAQ,OAAO,MAAM,WAAW;AAAA,IACxC,CAAC;AAGD,YAAQ,QAAQ,kBAAkB,SAAS,CAACA,WAAU;AAAA,IAKtD,CAAC;AAGD,YAAQ,QAAQ,kBAAkB,WAAW,CAACA,WAAU;AACtD,MAAAA,OAAM,YAAY;AAClB,MAAAA,OAAM,UAAU;AAEhB,MAAAA,OAAM,QAAQ;AACd,MAAAA,OAAM,YAAY;AAAA,IACpB,CAAC;AAGD,YAAQ,QAAQ,kBAAkB,UAAU,CAACA,QAAO,WAAW;;AAC7D,YAAM,UAAgB,kBAAY,YAAO,UAAP,mBAAc,OAAO,MAAjC,mBAAoC,YAAW,OAAO,MAAM,WAAW;AAC7F,MAAAA,OAAM,YAAY;AAClB,MAAAA,OAAM,UAAU;AAChB,MAAAA,OAAM,QAAQ;AACd,MAAAA,OAAM,YAAY;AAAA,IACpB,CAAC;AAMD,YAAQ,QAAQ,kBAAkB,SAAS,CAACA,WAAU;AACpD,MAAAA,OAAM,YAAY;AAAA,IACpB,CAAC;AAED,YAAQ,QAAQ,kBAAkB,WAAW,CAACA,QAAO,WAAW;AAC9D,YAAM,iBAAiB,OAAO;AAC9B,UAAI,eAAe,QAAQ;AACzB,YAAI,SAAS,CAAA;AACb,uBAAe,QAAQ,CAAC,UAAe;AACrC,qBAAW,OAAO,OAAO;AACvB,qBAAS;AAAA,cACP,GAAG;AAAA,cACH,CAAC,GAAG,GAAG,MAAM,GAAG;AAAA,YAAA;AAAA,UAEpB;AAAA,QACF,CAAC;AACD,QAAAA,OAAM,SAAS;AACf,QAAAA,OAAM,YAAY;AAAA,MACpB;AAAA,IACF,CAAC;AAED,YAAQ,QAAQ,kBAAkB,UAAU,CAACA,QAAO,WAAW;;AAC7D,YAAM,UAAU,iBAAe,iBAAY,OAAO,MAAM,OAAiB,MAA1C,mBAA6C,YAC1E,OAAO,MAAM,OACb;AACF,MAAAA,OAAM,YAAY;AAClB,MAAAA,OAAM,UAAU;AAChB,MAAAA,OAAM,QAAQ;AAAA,IAChB,CAAC;AAAA,EAEH;AACF,CAAC;"}
1
+ {"version":3,"file":"index.esm.js","sources":["../../../../../src/views/form-builder/redux/reducer.ts"],"sourcesContent":["import { createSlice } from '@reduxjs/toolkit';\r\nimport {\r\n getFieldsByFormId,\r\n getFormDataById,\r\n patchFormDataById,\r\n\r\n} from \"./actionCreator\";\r\nimport initialState from \"./state\";\r\n\r\nconst isJsonParse = (json: string) => {\r\n try {\r\n return JSON.parse(json);\r\n } catch (error) {\r\n return false;\r\n }\r\n};\r\n\r\nexport const formBuilderListSlice = createSlice({\r\n name: \"formBuilder/getAllFormData\",\r\n initialState,\r\n reducers: {\r\n setFormData: (state, action) => {\r\n state.formData = action.payload\r\n },\r\n setPaginationModel(state, action) {\r\n state.paginationModel = { ...state.paginationModel, ...action.payload };\r\n },\r\n },\r\n extraReducers: (builder) => {\r\n /*--------------------------------GET Handle Pending State ---------------------------------*/\r\n\r\n\r\n\r\n /*--------------------------------GET BY ID Handle Pending State ---------------------------------*/\r\n\r\n builder.addCase(getFormDataById.pending, (state) => {\r\n state.isLoading = true;\r\n state.isError = false;\r\n state.error = '';\r\n state.formData = [];\r\n });\r\n\r\n /*--------------------------------GET BY ID Handle fullfiled State ---------------------------------*/\r\n builder.addCase(getFormDataById.fulfilled, (state, action: any) => {\r\n state.isLoading = false;\r\n state.isError = false;\r\n state.formData = action?.payload?.data?.form?.fields;\r\n state.error = \"\";\r\n });\r\n\r\n /*--------------------------------GET BY ID Handle Rejected State ---------------------------------*/\r\n builder.addCase(getFormDataById.rejected, (state, action) => {\r\n state.isLoading = false;\r\n state.isError = true;\r\n state.error = action.error.message || \"\";\r\n });\r\n /*--------------------------------Patch Handle Pending State ---------------------------------*/\r\n\r\n builder.addCase(patchFormDataById.pending, (state) => {\r\n // state.isLoading = true;\r\n // state.isError = false;\r\n // state.isSuccess = false;\r\n // state.error = \"\";\r\n });\r\n\r\n /*--------------------------------Patch Handle fullfiled State ---------------------------------*/\r\n builder.addCase(patchFormDataById.fulfilled, (state) => {\r\n state.isLoading = false;\r\n state.isError = false;\r\n // state.formData = [];\r\n state.error = \"\";\r\n state.isSuccess = true;\r\n });\r\n\r\n /*--------------------------------Patch Handle Rejected State ---------------------------------*/\r\n builder.addCase(patchFormDataById.rejected, (state, action) => {\r\n const error: string = isJsonParse(action.error?.message)?.message || action.error.message || \"Something went wrong\";\r\n state.isLoading = false;\r\n state.isError = true;\r\n state.error = error;\r\n state.isSuccess = false;\r\n });\r\n\r\n\r\n\r\n\r\n /*--------------------------------Get Fields By Form ID handle pending state ---------------------------------*/\r\n builder.addCase(getFieldsByFormId.pending, (state) => {\r\n state.isLoading = true;\r\n });\r\n /*--------------------------------Get Fields By Form ID handle fullfilled state ---------------------------------*/\r\n builder.addCase(getFieldsByFormId.fulfilled, (state, action) => {\r\n const incomingFields = action.payload;\r\n if (incomingFields.length) {\r\n let fields = {};\r\n incomingFields.forEach((field: any) => {\r\n for (const key in field) {\r\n fields = {\r\n ...fields,\r\n [key]: field[key],\r\n };\r\n }\r\n });\r\n state.fields = fields;\r\n state.isLoading = false;\r\n }\r\n });\r\n /*--------------------------------Get Fields By Form ID handle rejected state ---------------------------------*/\r\n builder.addCase(getFieldsByFormId.rejected, (state, action) => {\r\n const message = `Fields API: ${isJsonParse(action.error.message as string)?.message ||\r\n action.error.message\r\n }`;\r\n state.isLoading = false;\r\n state.isError = true;\r\n state.error = message;\r\n });\r\n /*--------------------------------Patch Handle Pending State ---------------------------------*/\r\n },\r\n});\r\n\r\nexport const { setFormData, setPaginationModel } = formBuilderListSlice.actions;\r\n\r\nexport default formBuilderListSlice.reducer;\r\n"],"names":["initialState","state"],"mappings":";;;AASA,MAAM,cAAc,CAAC,SAAiB;AACpC,MAAI;AACF,WAAO,KAAK,MAAM,IAAI;AAAA,EACxB,SAAS,OAAO;AACd,WAAO;AAAA,EACT;AACF;AAEO,MAAM,uBAAuB,YAAY;AAAA,EAC9C,MAAM;AAAA,EAAA,cACNA;AAAAA,EACA,UAAU;AAAA,IACR,aAAa,CAACC,QAAO,WAAW;AAC9B,MAAAA,OAAM,WAAW,OAAO;AAAA,IAC1B;AAAA,IACA,mBAAmBA,QAAO,QAAQ;AAChC,MAAAA,OAAM,kBAAkB,EAAE,GAAGA,OAAM,iBAAiB,GAAG,OAAO,QAAA;AAAA,IAChE;AAAA,EAAA;AAAA,EAEF,eAAe,CAAC,YAAY;AAO1B,YAAQ,QAAQ,gBAAgB,SAAS,CAACA,WAAU;AAClD,MAAAA,OAAM,YAAY;AAClB,MAAAA,OAAM,UAAU;AAChB,MAAAA,OAAM,QAAQ;AACd,MAAAA,OAAM,WAAW,CAAA;AAAA,IACnB,CAAC;AAGD,YAAQ,QAAQ,gBAAgB,WAAW,CAACA,QAAO,WAAgB;;AACjE,MAAAA,OAAM,YAAY;AAClB,MAAAA,OAAM,UAAU;AAChB,MAAAA,OAAM,YAAW,kDAAQ,YAAR,mBAAiB,SAAjB,mBAAuB,SAAvB,mBAA6B;AAC9C,MAAAA,OAAM,QAAQ;AAAA,IAChB,CAAC;AAGD,YAAQ,QAAQ,gBAAgB,UAAU,CAACA,QAAO,WAAW;AAC3D,MAAAA,OAAM,YAAY;AAClB,MAAAA,OAAM,UAAU;AAChB,MAAAA,OAAM,QAAQ,OAAO,MAAM,WAAW;AAAA,IACxC,CAAC;AAGD,YAAQ,QAAQ,kBAAkB,SAAS,CAACA,WAAU;AAAA,IAKtD,CAAC;AAGD,YAAQ,QAAQ,kBAAkB,WAAW,CAACA,WAAU;AACtD,MAAAA,OAAM,YAAY;AAClB,MAAAA,OAAM,UAAU;AAEhB,MAAAA,OAAM,QAAQ;AACd,MAAAA,OAAM,YAAY;AAAA,IACpB,CAAC;AAGD,YAAQ,QAAQ,kBAAkB,UAAU,CAACA,QAAO,WAAW;;AAC7D,YAAM,UAAgB,kBAAY,YAAO,UAAP,mBAAc,OAAO,MAAjC,mBAAoC,YAAW,OAAO,MAAM,WAAW;AAC7F,MAAAA,OAAM,YAAY;AAClB,MAAAA,OAAM,UAAU;AAChB,MAAAA,OAAM,QAAQ;AACd,MAAAA,OAAM,YAAY;AAAA,IACpB,CAAC;AAMD,YAAQ,QAAQ,kBAAkB,SAAS,CAACA,WAAU;AACpD,MAAAA,OAAM,YAAY;AAAA,IACpB,CAAC;AAED,YAAQ,QAAQ,kBAAkB,WAAW,CAACA,QAAO,WAAW;AAC9D,YAAM,iBAAiB,OAAO;AAC9B,UAAI,eAAe,QAAQ;AACzB,YAAI,SAAS,CAAA;AACb,uBAAe,QAAQ,CAAC,UAAe;AACrC,qBAAW,OAAO,OAAO;AACvB,qBAAS;AAAA,cACP,GAAG;AAAA,cACH,CAAC,GAAG,GAAG,MAAM,GAAG;AAAA,YAAA;AAAA,UAEpB;AAAA,QACF,CAAC;AACD,QAAAA,OAAM,SAAS;AACf,QAAAA,OAAM,YAAY;AAAA,MACpB;AAAA,IACF,CAAC;AAED,YAAQ,QAAQ,kBAAkB,UAAU,CAACA,QAAO,WAAW;;AAC7D,YAAM,UAAU,iBAAe,iBAAY,OAAO,MAAM,OAAiB,MAA1C,mBAA6C,YAC1E,OAAO,MAAM,OACb;AACF,MAAAA,OAAM,YAAY;AAClB,MAAAA,OAAM,UAAU;AAChB,MAAAA,OAAM,QAAQ;AAAA,IAChB,CAAC;AAAA,EAEH;AACF,CAAC;AAEM,MAAM,EAAE,aAAa,mBAAA,IAAuB,qBAAqB;AAExE,IAAA,UAAe,qBAAqB;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@reduxjs/toolkit"),r=require("../actionCreator/index.js"),a=require("../state/index.js");const o=e=>{try{return JSON.parse(e)}catch(r){return!1}},d=e.createSlice({name:"formBuilder/getAllFormData",initialState:a.state,reducers:{setFormData:(e,r)=>{e.formData=r.payload},setPaginationModel(e,r){e.paginationModel={...e.paginationModel,...r.payload}}},extraReducers:e=>{e.addCase(r.getFormDataById.pending,e=>{e.isLoading=!0,e.isError=!1,e.error="",e.formData=[]}),e.addCase(r.getFormDataById.fulfilled,(e,r)=>{var a,o,d;e.isLoading=!1,e.isError=!1,e.formData=null==(d=null==(o=null==(a=null==r?void 0:r.payload)?void 0:a.data)?void 0:o.form)?void 0:d.fields,e.error=""}),e.addCase(r.getFormDataById.rejected,(e,r)=>{e.isLoading=!1,e.isError=!0,e.error=r.error.message||""}),e.addCase(r.patchFormDataById.pending,e=>{}),e.addCase(r.patchFormDataById.fulfilled,e=>{e.isLoading=!1,e.isError=!1,e.error="",e.isSuccess=!0}),e.addCase(r.patchFormDataById.rejected,(e,r)=>{var a,d;const s=(null==(d=o(null==(a=r.error)?void 0:a.message))?void 0:d.message)||r.error.message||"Something went wrong";e.isLoading=!1,e.isError=!0,e.error=s,e.isSuccess=!1}),e.addCase(r.getFieldsByFormId.pending,e=>{e.isLoading=!0}),e.addCase(r.getFieldsByFormId.fulfilled,(e,r)=>{const a=r.payload;if(a.length){let r={};a.forEach(e=>{for(const a in e)r={...r,[a]:e[a]}}),e.fields=r,e.isLoading=!1}}),e.addCase(r.getFieldsByFormId.rejected,(e,r)=>{var a;const d=`Fields API: ${(null==(a=o(r.error.message))?void 0:a.message)||r.error.message}`;e.isLoading=!1,e.isError=!0,e.error=d})}});exports.formBuilderListSlice=d;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@reduxjs/toolkit"),r=require("../actionCreator/index.js"),a=require("../state/index.js");const o=e=>{try{return JSON.parse(e)}catch(r){return!1}},d=e.createSlice({name:"formBuilder/getAllFormData",initialState:a.state,reducers:{setFormData:(e,r)=>{e.formData=r.payload},setPaginationModel(e,r){e.paginationModel={...e.paginationModel,...r.payload}}},extraReducers:e=>{e.addCase(r.getFormDataById.pending,e=>{e.isLoading=!0,e.isError=!1,e.error="",e.formData=[]}),e.addCase(r.getFormDataById.fulfilled,(e,r)=>{var a,o,d;e.isLoading=!1,e.isError=!1,e.formData=null==(d=null==(o=null==(a=null==r?void 0:r.payload)?void 0:a.data)?void 0:o.form)?void 0:d.fields,e.error=""}),e.addCase(r.getFormDataById.rejected,(e,r)=>{e.isLoading=!1,e.isError=!0,e.error=r.error.message||""}),e.addCase(r.patchFormDataById.pending,e=>{}),e.addCase(r.patchFormDataById.fulfilled,e=>{e.isLoading=!1,e.isError=!1,e.error="",e.isSuccess=!0}),e.addCase(r.patchFormDataById.rejected,(e,r)=>{var a,d;const s=(null==(d=o(null==(a=r.error)?void 0:a.message))?void 0:d.message)||r.error.message||"Something went wrong";e.isLoading=!1,e.isError=!0,e.error=s,e.isSuccess=!1}),e.addCase(r.getFieldsByFormId.pending,e=>{e.isLoading=!0}),e.addCase(r.getFieldsByFormId.fulfilled,(e,r)=>{const a=r.payload;if(a.length){let r={};a.forEach(e=>{for(const a in e)r={...r,[a]:e[a]}}),e.fields=r,e.isLoading=!1}}),e.addCase(r.getFieldsByFormId.rejected,(e,r)=>{var a;const d=`Fields API: ${(null==(a=o(r.error.message))?void 0:a.message)||r.error.message}`;e.isLoading=!1,e.isError=!0,e.error=d})}}),{setFormData:s,setPaginationModel:t}=d.actions;var i=d.reducer;exports.default=i,exports.formBuilderListSlice=d,exports.setFormData=s,exports.setPaginationModel=t;
2
2
  //# sourceMappingURL=index.js.map