@erpsquad/common 1.8.41 → 1.8.43

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 (1716) hide show
  1. package/dist/@types/alltypes.d.ts +3 -0
  2. package/dist/@types/common.d.ts +1 -0
  3. package/dist/@types/createPalette.d.ts +47 -0
  4. package/dist/@types/index.d.ts +5 -0
  5. package/dist/@types/page.d.ts +4 -0
  6. package/dist/@types/pagination-model.d.ts +4 -0
  7. package/dist/_virtual/index/index.esm2.js +4 -2
  8. package/dist/_virtual/index/index.esm2.js.map +1 -1
  9. package/dist/_virtual/index/index.esm3.js +2 -4
  10. package/dist/_virtual/index/index.esm3.js.map +1 -1
  11. package/dist/_virtual/index/index2.js +1 -1
  12. package/dist/_virtual/index/index3.js +1 -1
  13. package/dist/api-client/api.accounting/api-types.d.ts +15883 -0
  14. package/dist/api-client/api.drive/api-types.d.ts +696 -0
  15. package/dist/api-client/api.inventory/api-types.d.ts +6110 -0
  16. package/dist/api-client/api.inventory/api.d.ts +2 -5
  17. package/dist/api-client/api.manufacturing/api-types.d.ts +10066 -0
  18. package/dist/api-client/api.manufacturing/api.d.ts +102 -15
  19. package/dist/api-client/api.purchase/api-types.d.ts +6715 -0
  20. package/dist/api-client/api.purchase/api.d.ts +2 -3
  21. package/dist/api-client/api.rbac/api-types.d.ts +1753 -0
  22. package/dist/api-client/api.rental/api-types.d.ts +15666 -0
  23. package/dist/api-client/api.sales/api-types.d.ts +8258 -0
  24. package/dist/api-client/api.system-feature/api-types.d.ts +2875 -0
  25. package/dist/api-client/api.system-feature/api.d.ts +2 -0
  26. package/dist/api-client/api.user/api-types.d.ts +95 -0
  27. package/dist/assets/common-component/index.d.ts +1 -0
  28. package/dist/assets/dynamic-svg-icon/dynamic-svg-icon.d.ts +8 -0
  29. package/dist/assets/dynamic-svg-icon/index.d.ts +2 -0
  30. package/dist/assets/images.d.ts +208 -0
  31. package/dist/assets/index.d.ts +5 -0
  32. package/dist/assets/view-modal/calendar-icon.d.ts +2 -0
  33. package/dist/assets/view-modal/chart-icon.d.ts +2 -0
  34. package/dist/assets/view-modal/gantt-icon.d.ts +2 -0
  35. package/dist/assets/view-modal/grid-icon.d.ts +2 -0
  36. package/dist/assets/view-modal/index.d.ts +12 -0
  37. package/dist/assets/view-modal/kanban-icon.d.ts +2 -0
  38. package/dist/assets/view-modal/table-icon.d.ts +2 -0
  39. package/dist/components/Dashboard/dashboard-card.d.ts +7 -0
  40. package/dist/components/Dashboard/dashboard-header.d.ts +7 -0
  41. package/dist/components/Dashboard/index.d.ts +4 -0
  42. package/dist/components/accordion/accordion.d.ts +9 -0
  43. package/dist/components/accordion/index.d.ts +2 -0
  44. package/dist/components/action-bar/action-bar/index.esm.js +2 -2
  45. package/dist/components/action-bar/action-bar/index.js +11 -11
  46. package/dist/components/action-bar/action-bar.d.ts +48 -0
  47. package/dist/components/action-bar/index.d.ts +2 -0
  48. package/dist/components/activity-tag/activity-tag.d.ts +3 -0
  49. package/dist/components/activity-tag/index.d.ts +2 -0
  50. package/dist/components/activityArea/activityArea.d.ts +3 -0
  51. package/dist/components/activityArea/index.d.ts +2 -0
  52. package/dist/components/activityLog/activity-log.d.ts +3 -0
  53. package/dist/components/activityLog/index.d.ts +2 -0
  54. package/dist/components/alert/alert.d.ts +4 -0
  55. package/dist/components/alert/index.d.ts +2 -0
  56. package/dist/components/appbar/appbar.d.ts +3 -0
  57. package/dist/components/appbar/index.d.ts +2 -0
  58. package/dist/components/approval-wrapper/approval-wrapper/index.esm.js +1 -1
  59. package/dist/components/approval-wrapper/approval-wrapper/index.esm.js.map +1 -1
  60. package/dist/components/approval-wrapper/approval-wrapper/index.js +4 -4
  61. package/dist/components/approval-wrapper/approval-wrapper/index.js.map +1 -1
  62. package/dist/components/approval-wrapper/approval-wrapper.d.ts +2 -0
  63. package/dist/components/approval-wrapper/index.d.ts +2 -0
  64. package/dist/components/avatar/avatar.d.ts +3 -0
  65. package/dist/components/avatar/index.d.ts +2 -0
  66. package/dist/components/board/board.d.ts +19 -0
  67. package/dist/components/board/columnHeader.d.ts +2 -0
  68. package/dist/components/board/index.d.ts +4 -0
  69. package/dist/components/bread-crumb/bread-crumb.d.ts +13 -0
  70. package/dist/components/bread-crumb/index.d.ts +2 -0
  71. package/dist/components/button/button.d.ts +4 -0
  72. package/dist/components/button/index.d.ts +2 -0
  73. package/dist/components/calculation-summary/calculation-summary.d.ts +11 -0
  74. package/dist/components/calculation-summary/components/discount-summary.d.ts +13 -0
  75. package/dist/components/calculation-summary/components/index.d.ts +10 -0
  76. package/dist/components/calculation-summary/components/items-summary.d.ts +10 -0
  77. package/dist/components/calculation-summary/components/subtotal-summary.d.ts +10 -0
  78. package/dist/components/calculation-summary/components/taxes-and-charges-summary.d.ts +14 -0
  79. package/dist/components/calculation-summary/components/total-summary.d.ts +10 -0
  80. package/dist/components/calculation-summary/index.d.ts +3 -0
  81. package/dist/components/calendar/calendar.d.ts +3 -0
  82. package/dist/components/calendar/index.d.ts +2 -0
  83. package/dist/components/card-wrapper/card-wrapper.d.ts +7 -0
  84. package/dist/components/card-wrapper/index.d.ts +2 -0
  85. package/dist/components/change-user-password-modal/change-user-password-modal/index.esm.js +2 -2
  86. package/dist/components/change-user-password-modal/change-user-password-modal/index.js +3 -3
  87. package/dist/components/change-user-password-modal/change-user-password-modal.d.ts +6 -0
  88. package/dist/components/change-user-password-modal/index.d.ts +2 -0
  89. package/dist/components/charts/ChartLegends.d.ts +7 -0
  90. package/dist/components/charts/areaLinerChart.d.ts +18 -0
  91. package/dist/components/charts/bar-chart/bar-chart.d.ts +15 -0
  92. package/dist/components/charts/bar-chart/index.d.ts +2 -0
  93. package/dist/components/charts/barChart/barChart.d.ts +19 -0
  94. package/dist/components/charts/barChart/index.d.ts +2 -0
  95. package/dist/components/charts/barLineChart/barLinechart.d.ts +29 -0
  96. package/dist/components/charts/barLineChart/index.d.ts +2 -0
  97. package/dist/components/charts/donut-chart/donut-chart.d.ts +21 -0
  98. package/dist/components/charts/donut-chart/index.d.ts +2 -0
  99. package/dist/components/charts/donutChart/DonutChart.d.ts +21 -0
  100. package/dist/components/charts/donutChart/index.d.ts +2 -0
  101. package/dist/components/charts/groupBarChart/GroupBarChart.d.ts +9 -0
  102. package/dist/components/charts/groupBarChart/index.d.ts +2 -0
  103. package/dist/components/charts/index.d.ts +12 -0
  104. package/dist/components/charts/line-chart/area-line-chart.d.ts +15 -0
  105. package/dist/components/charts/line-chart/area-lineChart/index.esm.js +2 -2
  106. package/dist/components/charts/line-chart/area-lineChart/index.esm.js.map +1 -1
  107. package/dist/components/charts/line-chart/area-lineChart/index.js.map +1 -1
  108. package/dist/components/charts/line-chart/area-lineChart.d.ts +15 -0
  109. package/dist/components/charts/line-chart/index.d.ts +6 -0
  110. package/dist/components/charts/line-chart/line-chart.d.ts +14 -0
  111. package/dist/components/charts/multiLineChart/index.d.ts +2 -0
  112. package/dist/components/charts/multiLineChart/multi-line-chart.d.ts +20 -0
  113. package/dist/components/checkbox/checkbox.d.ts +4 -0
  114. package/dist/components/checkbox/index.d.ts +2 -0
  115. package/dist/components/chip/chip.d.ts +10 -0
  116. package/dist/components/chip/index.d.ts +2 -0
  117. package/dist/components/chip-generator/chip-generator.d.ts +27 -0
  118. package/dist/components/chip-generator/index.d.ts +2 -0
  119. package/dist/components/color-picker-input/color-picker-input.d.ts +7 -0
  120. package/dist/components/color-picker-input/index.d.ts +2 -0
  121. package/dist/components/confirm-modal/confirm-modal.d.ts +21 -0
  122. package/dist/components/confirm-modal/index.d.ts +3 -0
  123. package/dist/components/country-select/country-select.d.ts +6 -0
  124. package/dist/components/country-select/index.d.ts +2 -0
  125. package/dist/components/custom-snackbar/custom-snackbar.d.ts +10 -0
  126. package/dist/components/custom-snackbar/index.d.ts +2 -0
  127. package/dist/components/custom-toggle-switch/custom-toggle-switch.d.ts +10 -0
  128. package/dist/components/custom-toggle-switch/index.d.ts +2 -0
  129. package/dist/components/date-picker/date-picker.d.ts +20 -0
  130. package/dist/components/date-picker/index.d.ts +2 -0
  131. package/dist/components/date-range-picker/date-range-picker.d.ts +3 -0
  132. package/dist/components/date-range-picker/index.d.ts +2 -0
  133. package/dist/components/date-time-picker/date-time-picker.d.ts +20 -0
  134. package/dist/components/date-time-picker/index.d.ts +2 -0
  135. package/dist/components/dropdown-button/dropdown-button.d.ts +24 -0
  136. package/dist/components/dropdown-button/index.d.ts +2 -0
  137. package/dist/components/dynamic-layout-wrapper/dynamic-layout-wrapper/index.esm.js +107 -1
  138. package/dist/components/dynamic-layout-wrapper/dynamic-layout-wrapper/index.esm.js.map +1 -1
  139. package/dist/components/dynamic-layout-wrapper/dynamic-layout-wrapper/index.js +7 -4
  140. package/dist/components/dynamic-layout-wrapper/dynamic-layout-wrapper/index.js.map +1 -1
  141. package/dist/components/dynamic-layout-wrapper/dynamic-layout-wrapper.d.ts +67 -0
  142. package/dist/components/dynamic-layout-wrapper/index.d.ts +2 -0
  143. package/dist/components/dynamic-modal.d.ts +9 -0
  144. package/dist/components/editor/custom-editor.d.ts +9 -0
  145. package/dist/components/editor/index.d.ts +2 -0
  146. package/dist/components/entity-view-wrapper/entity-view-wrapper.d.ts +26 -0
  147. package/dist/components/entity-view-wrapper/index.d.ts +2 -0
  148. package/dist/components/examples/FlexibleReduxExample/index.esm.js +154 -0
  149. package/dist/components/examples/FlexibleReduxExample/index.esm.js.map +1 -0
  150. package/dist/components/examples/FlexibleReduxExample/index.js +19 -0
  151. package/dist/components/examples/FlexibleReduxExample/index.js.map +1 -0
  152. package/dist/components/examples/FlexibleReduxExample.d.ts +8 -0
  153. package/dist/components/examples/index.d.ts +2 -0
  154. package/dist/components/expandable-summary-wrapper/expandable-summary-wrapper.d.ts +18 -0
  155. package/dist/components/expandable-summary-wrapper/index.d.ts +2 -0
  156. package/dist/components/fallback/fallback.d.ts +9 -0
  157. package/dist/components/fallback/index.d.ts +2 -0
  158. package/dist/components/filter/components/add-filter.d.ts +4 -0
  159. package/dist/components/filter/components/add-group.d.ts +4 -0
  160. package/dist/components/filter/components/combinator-select.d.ts +2 -0
  161. package/dist/components/filter/components/delete-group.d.ts +4 -0
  162. package/dist/components/filter/components/field-select.d.ts +4 -0
  163. package/dist/components/filter/components/index.d.ts +16 -0
  164. package/dist/components/filter/components/operator-select.d.ts +4 -0
  165. package/dist/components/filter/components/remove-action.d.ts +4 -0
  166. package/dist/components/filter/components/value-editor.d.ts +4 -0
  167. package/dist/components/filter/fields.d.ts +5 -0
  168. package/dist/components/filter/filter/index.esm.js +2 -2
  169. package/dist/components/filter/filter/index.js +7 -7
  170. package/dist/components/filter/filter.d.ts +21 -0
  171. package/dist/components/filter/index.d.ts +4 -0
  172. package/dist/components/footer/footer.d.ts +21 -0
  173. package/dist/components/footer/index.d.ts +2 -0
  174. package/dist/components/footer/index.esm.js +71 -0
  175. package/dist/components/footer/index.esm.js.map +1 -0
  176. package/dist/components/footer/index.js +7 -0
  177. package/dist/components/footer/index.js.map +1 -0
  178. package/dist/components/footer.d.ts +4 -0
  179. package/dist/components/form-control/form-builder/element-controller/index.esm.js +96 -0
  180. package/dist/components/form-control/form-builder/element-controller/index.esm.js.map +1 -0
  181. package/dist/components/form-control/form-builder/element-controller/index.js +7 -0
  182. package/dist/components/form-control/form-builder/element-controller/index.js.map +1 -0
  183. package/dist/components/form-control/form-builder/element-controller.d.ts +14 -0
  184. package/dist/components/form-control/form-builder/form-builder-element/button.d.ts +16 -0
  185. package/dist/components/form-control/form-builder/form-builder-element/checkbox.d.ts +20 -0
  186. package/dist/components/form-control/form-builder/form-builder-element/chip-or-placeholder.d.ts +13 -0
  187. package/dist/components/form-control/form-builder/form-builder-element/date-range-picker.d.ts +24 -0
  188. package/dist/components/form-control/form-builder/form-builder-element/date-time.d.ts +26 -0
  189. package/dist/components/form-control/form-builder/form-builder-element/date.d.ts +21 -0
  190. package/dist/components/form-control/form-builder/form-builder-element/dynamic-currency-input.d.ts +30 -0
  191. package/dist/components/form-control/form-builder/form-builder-element/dynamic-element-hoc.d.ts +19 -0
  192. package/dist/components/form-control/form-builder/form-builder-element/dynamic-input-select.d.ts +29 -0
  193. package/dist/components/form-control/form-builder/form-builder-element/dynamic-select.d.ts +50 -0
  194. package/dist/components/form-control/form-builder/form-builder-element/dynamic-tags-input.d.ts +24 -0
  195. package/dist/components/form-control/form-builder/form-builder-element/dynamic-text-editor.d.ts +11 -0
  196. package/dist/components/form-control/form-builder/form-builder-element/index.d.ts +46 -0
  197. package/dist/components/form-control/form-builder/form-builder-element/info.d.ts +20 -0
  198. package/dist/components/form-control/form-builder/form-builder-element/location-add-modal/index.d.ts +2 -0
  199. package/dist/components/form-control/form-builder/form-builder-element/location-add-modal/location-add-modal.d.ts +11 -0
  200. package/dist/components/form-control/form-builder/form-builder-element/media.d.ts +4 -0
  201. package/dist/components/form-control/form-builder/form-builder-element/phone.d.ts +3 -0
  202. package/dist/components/form-control/form-builder/form-builder-element/radio-button.d.ts +23 -0
  203. package/dist/components/form-control/form-builder/form-builder-element/section.d.ts +21 -0
  204. package/dist/components/form-control/form-builder/form-builder-element/select-configuration.d.ts +14 -0
  205. package/dist/components/form-control/form-builder/form-builder-element/select.d.ts +4 -0
  206. package/dist/components/form-control/form-builder/form-builder-element/table/index.esm.js +1 -1
  207. package/dist/components/form-control/form-builder/form-builder-element/table/index.js +4 -4
  208. package/dist/components/form-control/form-builder/form-builder-element/table/index.js.map +1 -1
  209. package/dist/components/form-control/form-builder/form-builder-element/table.d.ts +30 -0
  210. package/dist/components/form-control/form-builder/form-builder-element/text.d.ts +4 -0
  211. package/dist/components/form-control/form-builder/form-builder-element/time.d.ts +4 -0
  212. package/dist/components/form-control/form-builder/form-builder-element/toggle-button.d.ts +17 -0
  213. package/dist/components/form-control/form-builder/index.d.ts +3 -0
  214. package/dist/components/form-control/form-parser/data/index.esm.js +80 -0
  215. package/dist/components/form-control/form-parser/data/index.esm.js.map +1 -0
  216. package/dist/components/form-control/form-parser/data/index.js +2 -0
  217. package/dist/components/form-control/form-parser/data/index.js.map +1 -0
  218. package/dist/components/form-control/form-parser/data.d.ts +44 -0
  219. package/dist/components/form-control/form-parser/form-parser.d.ts +3 -0
  220. package/dist/components/form-control/form-parser/form-section.d.ts +65 -0
  221. package/dist/components/form-control/form-parser/form-switcher.d.ts +2 -0
  222. package/dist/components/form-control/form-parser/index.d.ts +8 -0
  223. package/dist/components/form-control/index.d.ts +2 -0
  224. package/dist/components/form-header/form-header.d.ts +14 -0
  225. package/dist/components/form-header/index.d.ts +2 -0
  226. package/dist/components/gantt/gantt.d.ts +10 -0
  227. package/dist/components/gantt/index.d.ts +2 -0
  228. package/dist/components/grid/custom-grid-card/custom-grid-card/index.esm.js +1 -1
  229. package/dist/components/grid/custom-grid-card/custom-grid-card/index.js +4 -4
  230. package/dist/components/grid/custom-grid-card/custom-grid-card.d.ts +14 -0
  231. package/dist/components/grid/custom-grid-card/index.d.ts +2 -0
  232. package/dist/components/grid/grid-card/grid-card.d.ts +1 -0
  233. package/dist/components/grid/grid-card/index.d.ts +2 -0
  234. package/dist/components/grid/grid-wrapper/grid-wrapper.d.ts +8 -0
  235. package/dist/components/grid/grid-wrapper/index.d.ts +2 -0
  236. package/dist/components/grid/index.d.ts +3 -0
  237. package/dist/components/grid-fallback/grid-fallback.d.ts +9 -0
  238. package/dist/components/grid-fallback/index.d.ts +2 -0
  239. package/dist/components/header/components/index.d.ts +1 -0
  240. package/dist/components/header/components/notification-menu/index.d.ts +2 -0
  241. package/dist/components/header/components/notification-menu/notification-menu/index.esm.js +1 -1
  242. package/dist/components/header/components/notification-menu/notification-menu/index.js +28 -28
  243. package/dist/components/header/components/notification-menu/notification-menu.d.ts +2 -0
  244. package/dist/components/header/header/index.esm.js +1 -1
  245. package/dist/components/header/header/index.js +11 -11
  246. package/dist/components/header/header-enhanced/index.esm.js +405 -0
  247. package/dist/components/header/header-enhanced/index.esm.js.map +1 -0
  248. package/dist/components/header/header-enhanced/index.js +33 -0
  249. package/dist/components/header/header-enhanced/index.js.map +1 -0
  250. package/dist/components/header/header-enhanced.d.ts +19 -0
  251. package/dist/components/header/header.d.ts +4 -0
  252. package/dist/components/header/index.d.ts +6 -0
  253. package/dist/components/header/redux/actionCreator.d.ts +3 -0
  254. package/dist/components/header/redux/index.d.ts +5 -0
  255. package/dist/components/header/redux/reducer/index.esm.js +6 -1
  256. package/dist/components/header/redux/reducer/index.esm.js.map +1 -1
  257. package/dist/components/header/redux/reducer/index.js +1 -1
  258. package/dist/components/header/redux/reducer/index.js.map +1 -1
  259. package/dist/components/header/redux/reducer.d.ts +73 -0
  260. package/dist/components/header/redux/state.d.ts +14 -0
  261. package/dist/components/header copy/index.esm.js +131 -0
  262. package/dist/components/header copy/index.esm.js.map +1 -0
  263. package/dist/components/header copy/index.js +11 -0
  264. package/dist/components/header copy/index.js.map +1 -0
  265. package/dist/components/header copy.d.ts +4 -0
  266. package/dist/components/header-card/header-card.d.ts +9 -0
  267. package/dist/components/header-card/index.d.ts +2 -0
  268. package/dist/components/hr-line/hr-line.d.ts +3 -0
  269. package/dist/components/hr-line/index.d.ts +2 -0
  270. package/dist/components/icons/action-arrow.d.ts +4 -0
  271. package/dist/components/icons/action.d.ts +4 -0
  272. package/dist/components/icons/add-circle.d.ts +4 -0
  273. package/dist/components/icons/arrow-bidirectional.d.ts +4 -0
  274. package/dist/components/icons/arrow-circle-down.d.ts +4 -0
  275. package/dist/components/icons/arrow-down-three.d.ts +4 -0
  276. package/dist/components/icons/arrow-down-two.d.ts +4 -0
  277. package/dist/components/icons/arrow-down.d.ts +4 -0
  278. package/dist/components/icons/arrow-up-down.d.ts +4 -0
  279. package/dist/components/icons/arrow-up-two.d.ts +4 -0
  280. package/dist/components/icons/assignments.d.ts +4 -0
  281. package/dist/components/icons/blank-circle.d.ts +4 -0
  282. package/dist/components/icons/block-filled.d.ts +6 -0
  283. package/dist/components/icons/calendar-add.d.ts +4 -0
  284. package/dist/components/icons/calendar.d.ts +4 -0
  285. package/dist/components/icons/check-box.d.ts +3 -0
  286. package/dist/components/icons/checkbox-square.d.ts +4 -0
  287. package/dist/components/icons/circular-arrow-setting.d.ts +6 -0
  288. package/dist/components/icons/clock.d.ts +4 -0
  289. package/dist/components/icons/close.d.ts +6 -0
  290. package/dist/components/icons/coin-outline.d.ts +4 -0
  291. package/dist/components/icons/copy.d.ts +4 -0
  292. package/dist/components/icons/coupon/index.esm.js +29 -0
  293. package/dist/components/icons/coupon/index.esm.js.map +1 -0
  294. package/dist/components/icons/coupon/index.js +7 -0
  295. package/dist/components/icons/coupon/index.js.map +1 -0
  296. package/dist/components/icons/coupon.d.ts +4 -0
  297. package/dist/components/icons/criteria.d.ts +4 -0
  298. package/dist/components/icons/cross-hire.d.ts +6 -0
  299. package/dist/components/icons/cross.d.ts +4 -0
  300. package/dist/components/icons/custom-styled-icon.d.ts +6 -0
  301. package/dist/components/icons/dashboard.d.ts +4 -0
  302. package/dist/components/icons/document-download.d.ts +4 -0
  303. package/dist/components/icons/document.d.ts +4 -0
  304. package/dist/components/icons/dollar-circle-filled.d.ts +6 -0
  305. package/dist/components/icons/dollar-circle.d.ts +4 -0
  306. package/dist/components/icons/edit.d.ts +4 -0
  307. package/dist/components/icons/email.d.ts +4 -0
  308. package/dist/components/icons/export.d.ts +6 -0
  309. package/dist/components/icons/eye-off.d.ts +4 -0
  310. package/dist/components/icons/eye-plus-circle.d.ts +6 -0
  311. package/dist/components/icons/eye.d.ts +4 -0
  312. package/dist/components/icons/filled-circle.d.ts +4 -0
  313. package/dist/components/icons/filter-remove.d.ts +4 -0
  314. package/dist/components/icons/filter.d.ts +4 -0
  315. package/dist/components/icons/folder-save.d.ts +4 -0
  316. package/dist/components/icons/grid.d.ts +4 -0
  317. package/dist/components/icons/hashtag.d.ts +4 -0
  318. package/dist/components/icons/image.d.ts +4 -0
  319. package/dist/components/icons/import.d.ts +4 -0
  320. package/dist/components/icons/index.d.ts +177 -0
  321. package/dist/components/icons/info-circle.d.ts +4 -0
  322. package/dist/components/icons/info.d.ts +6 -0
  323. package/dist/components/icons/link-horizontal.d.ts +4 -0
  324. package/dist/components/icons/link.d.ts +4 -0
  325. package/dist/components/icons/location.d.ts +4 -0
  326. package/dist/components/icons/lowest-lead-time.d.ts +4 -0
  327. package/dist/components/icons/lowest-min-qty.d.ts +4 -0
  328. package/dist/components/icons/lowest-price.d.ts +4 -0
  329. package/dist/components/icons/more.d.ts +4 -0
  330. package/dist/components/icons/notification.d.ts +4 -0
  331. package/dist/components/icons/paper-clip.d.ts +4 -0
  332. package/dist/components/icons/paragraph.d.ts +4 -0
  333. package/dist/components/icons/payment-request.d.ts +6 -0
  334. package/dist/components/icons/phone.d.ts +4 -0
  335. package/dist/components/icons/printer.d.ts +4 -0
  336. package/dist/components/icons/process-calendar.d.ts +4 -0
  337. package/dist/components/icons/promotion.d.ts +6 -0
  338. package/dist/components/icons/radio-button.d.ts +4 -0
  339. package/dist/components/icons/receipt-filled.d.ts +6 -0
  340. package/dist/components/icons/receipt-outline.d.ts +4 -0
  341. package/dist/components/icons/receipt.d.ts +6 -0
  342. package/dist/components/icons/rectangle-filled.d.ts +4 -0
  343. package/dist/components/icons/rectangle.d.ts +4 -0
  344. package/dist/components/icons/refresh-icon.d.ts +4 -0
  345. package/dist/components/icons/replace.d.ts +4 -0
  346. package/dist/components/icons/save.d.ts +6 -0
  347. package/dist/components/icons/search-status.d.ts +4 -0
  348. package/dist/components/icons/search.d.ts +4 -0
  349. package/dist/components/icons/settings-fallback/index.esm.js +1 -1
  350. package/dist/components/icons/settings-fallback/index.js +2 -2
  351. package/dist/components/icons/settings-fallback/index.js.map +1 -1
  352. package/dist/components/icons/settings-fallback.d.ts +7 -0
  353. package/dist/components/icons/share.d.ts +4 -0
  354. package/dist/components/icons/sort-arrow-icon/index.esm.js +4 -4
  355. package/dist/components/icons/sort-arrow-icon/index.esm.js.map +1 -1
  356. package/dist/components/icons/sort-arrow-icon/index.js +1 -1
  357. package/dist/components/icons/sort-arrow-icon/index.js.map +1 -1
  358. package/dist/components/icons/sort-arrow-icon.d.ts +4 -0
  359. package/dist/components/icons/stacked-layer.d.ts +6 -0
  360. package/dist/components/icons/start-filled.d.ts +6 -0
  361. package/dist/components/icons/three-dot-icon.d.ts +4 -0
  362. package/dist/components/icons/tick-circle-filled.d.ts +6 -0
  363. package/dist/components/icons/tick-circle.d.ts +4 -0
  364. package/dist/components/icons/tick-octagon.d.ts +4 -0
  365. package/dist/components/icons/tick.d.ts +4 -0
  366. package/dist/components/icons/toggle-switch.d.ts +4 -0
  367. package/dist/components/icons/trash.d.ts +4 -0
  368. package/dist/components/icons/wave.d.ts +6 -0
  369. package/dist/components/icons/with-out-tick-octagon.d.ts +4 -0
  370. package/dist/components/icons/work-centre.d.ts +6 -0
  371. package/dist/components/index.d.ts +112 -277
  372. package/dist/components/index.esm.js +444 -603
  373. package/dist/components/index.esm.js.map +1 -1
  374. package/dist/components/index.js +1 -1
  375. package/dist/components/info-card/index.d.ts +2 -0
  376. package/dist/components/info-card/info-card.d.ts +9 -0
  377. package/dist/components/inventory-reports-title-bar/component/index.d.ts +2 -0
  378. package/dist/components/inventory-reports-title-bar/component/reportFilter/index.esm.js +400 -0
  379. package/dist/components/inventory-reports-title-bar/component/reportFilter/index.esm.js.map +1 -0
  380. package/dist/components/inventory-reports-title-bar/component/reportFilter/index.js +41 -0
  381. package/dist/components/inventory-reports-title-bar/component/reportFilter/index.js.map +1 -0
  382. package/dist/components/inventory-reports-title-bar/component/reportFilter.d.ts +10 -0
  383. package/dist/components/inventory-reports-title-bar/index.d.ts +5 -0
  384. package/dist/components/inventory-reports-title-bar/inventory-reports-title-bar.d.ts +43 -0
  385. package/dist/components/inventory-reports-title-bar/redux/actionCreator.d.ts +11 -0
  386. package/dist/components/inventory-reports-title-bar/redux/index.d.ts +5 -0
  387. package/dist/components/inventory-reports-title-bar/redux/reducer/index.esm.js +2 -0
  388. package/dist/components/inventory-reports-title-bar/redux/reducer/index.esm.js.map +1 -1
  389. package/dist/components/inventory-reports-title-bar/redux/reducer/index.js +1 -1
  390. package/dist/components/inventory-reports-title-bar/redux/reducer/index.js.map +1 -1
  391. package/dist/components/inventory-reports-title-bar/redux/reducer.d.ts +3 -0
  392. package/dist/components/inventory-reports-title-bar/redux/state.d.ts +12 -0
  393. package/dist/components/inventory-reports-title-bar/report-buttons/index.d.ts +2 -0
  394. package/dist/components/inventory-reports-title-bar/report-buttons/report-buttons/index.esm.js.map +1 -1
  395. package/dist/components/inventory-reports-title-bar/report-buttons/report-buttons/index.js.map +1 -1
  396. package/dist/components/inventory-reports-title-bar/report-buttons/report-buttons.d.ts +27 -0
  397. package/dist/components/label-value/index.d.ts +2 -0
  398. package/dist/components/label-value/label-value.d.ts +6 -0
  399. package/dist/components/list/index.d.ts +2 -0
  400. package/dist/components/list/list.d.ts +2 -0
  401. package/dist/components/listing/index.d.ts +3 -0
  402. package/dist/components/listing/listing/index.esm.js +5 -5
  403. package/dist/components/listing/listing/index.esm.js.map +1 -1
  404. package/dist/components/listing/listing/index.js +5 -5
  405. package/dist/components/listing/listing/index.js.map +1 -1
  406. package/dist/components/listing/listing.d.ts +5 -0
  407. package/dist/components/listing/types.d.ts +57 -0
  408. package/dist/components/loader.d.ts +2 -0
  409. package/dist/components/loaders/erp-loader.d.ts +4 -0
  410. package/dist/components/loaders/form-loader.d.ts +4 -0
  411. package/dist/components/loaders/index.d.ts +8 -0
  412. package/dist/components/loaders/modal-loader.d.ts +4 -0
  413. package/dist/components/loaders/page-loader.d.ts +4 -0
  414. package/dist/components/location-select.d.ts +19 -0
  415. package/dist/components/material-editable-table/aggregation-fns/index.d.ts +13 -0
  416. package/dist/components/material-editable-table/components/default-aggregation.d.ts +9 -0
  417. package/dist/components/material-editable-table/components/header-cell.d.ts +5 -0
  418. package/dist/components/material-editable-table/components/index.d.ts +8 -0
  419. package/dist/components/material-editable-table/components/inline-edit-fields.d.ts +17 -0
  420. package/dist/components/material-editable-table/components/number-aggregation.d.ts +9 -0
  421. package/dist/components/material-editable-table/index.d.ts +4 -0
  422. package/dist/components/material-editable-table/material-editable-table/index.esm.js +1 -1
  423. package/dist/components/material-editable-table/material-editable-table/index.js +2 -2
  424. package/dist/components/material-editable-table/material-editable-table.d.ts +40 -0
  425. package/dist/components/material-table/aggregation-fns/index.d.ts +13 -0
  426. package/dist/components/material-table/components/default-aggregation.d.ts +9 -0
  427. package/dist/components/material-table/components/header-cell.d.ts +5 -0
  428. package/dist/components/material-table/components/index.d.ts +8 -0
  429. package/dist/components/material-table/components/inline-edit-fields.d.ts +17 -0
  430. package/dist/components/material-table/components/number-aggregation.d.ts +9 -0
  431. package/dist/components/material-table/index.d.ts +4 -0
  432. package/dist/components/material-table/material-table/index.esm.js +4 -3
  433. package/dist/components/material-table/material-table/index.esm.js.map +1 -1
  434. package/dist/components/material-table/material-table/index.js +5 -5
  435. package/dist/components/material-table/material-table/index.js.map +1 -1
  436. package/dist/components/material-table/material-table.d.ts +81 -0
  437. package/dist/components/menu/index.d.ts +2 -0
  438. package/dist/components/menu/menu.d.ts +4 -0
  439. package/dist/components/modal/index.d.ts +2 -0
  440. package/dist/components/modal/modal.d.ts +4 -0
  441. package/dist/components/module-button/index.d.ts +2 -0
  442. package/dist/components/module-button/module-button.d.ts +2 -0
  443. package/dist/components/mulitline/index.d.ts +2 -0
  444. package/dist/components/mulitline/multiline.d.ts +11 -0
  445. package/dist/components/multi-select/index.d.ts +2 -0
  446. package/dist/components/multi-select/multi-select.d.ts +30 -0
  447. package/dist/components/page-navigator/components/add-page-modal.d.ts +11 -0
  448. package/dist/components/page-navigator/components/add-page.d.ts +9 -0
  449. package/dist/components/page-navigator/components/index.d.ts +10 -0
  450. package/dist/components/page-navigator/components/page-action.d.ts +14 -0
  451. package/dist/components/page-navigator/components/shared-page-modal.d.ts +9 -0
  452. package/dist/components/page-navigator/components/shared-page-view.d.ts +2 -0
  453. package/dist/components/page-navigator/index.d.ts +3 -0
  454. package/dist/components/page-navigator/page-navigator.d.ts +15 -0
  455. package/dist/components/pagination/index.d.ts +2 -0
  456. package/dist/components/pagination/pagination.d.ts +9 -0
  457. package/dist/components/parties-modal/index.d.ts +4 -0
  458. package/dist/components/parties-modal/parties-modal/index.esm.js +1 -1
  459. package/dist/components/parties-modal/parties-modal/index.js +13 -13
  460. package/dist/components/parties-modal/parties-modal/index.js.map +1 -1
  461. package/dist/components/parties-modal/parties-modal.d.ts +10 -0
  462. package/dist/components/parties-modal/utils/constant.d.ts +42 -0
  463. package/dist/components/parties-modal/utils/index.d.ts +1 -0
  464. package/dist/components/parties-modal/validator.d.ts +6 -0
  465. package/dist/components/phone-input/index.d.ts +2 -0
  466. package/dist/components/phone-input/phone-input.d.ts +19 -0
  467. package/dist/components/protected-route/index.esm.js +20 -0
  468. package/dist/components/protected-route/index.esm.js.map +1 -1
  469. package/dist/components/protected-route/index.js +2 -2
  470. package/dist/components/protected-route/index.js.map +1 -1
  471. package/dist/components/protected-route.d.ts +56 -0
  472. package/dist/components/providers/ERPUIProvider.d.ts +41 -0
  473. package/dist/components/providers/index.d.ts +2 -0
  474. package/dist/components/quick-approval-modal/index.d.ts +2 -0
  475. package/dist/components/quick-approval-modal/quick-approval-modal.d.ts +13 -0
  476. package/dist/components/radio/index.d.ts +2 -0
  477. package/dist/components/radio/radio.d.ts +4 -0
  478. package/dist/components/reports/dynamic-report/dynamic-report.d.ts +21 -0
  479. package/dist/components/reports/dynamic-report/dynamic-rows.d.ts +20 -0
  480. package/dist/components/reports/dynamic-report/index.d.ts +3 -0
  481. package/dist/components/reports/index.d.ts +1 -0
  482. package/dist/components/reports-title-bar/index.d.ts +4 -0
  483. package/dist/components/reports-title-bar/redux/actionCreator.d.ts +1 -0
  484. package/dist/components/reports-title-bar/redux/index.d.ts +5 -0
  485. package/dist/components/reports-title-bar/redux/reducer/index.esm.js +2 -0
  486. package/dist/components/reports-title-bar/redux/reducer/index.esm.js.map +1 -1
  487. package/dist/components/reports-title-bar/redux/reducer/index.js +1 -1
  488. package/dist/components/reports-title-bar/redux/reducer/index.js.map +1 -1
  489. package/dist/components/reports-title-bar/redux/reducer.d.ts +3 -0
  490. package/dist/components/reports-title-bar/redux/state.d.ts +8 -0
  491. package/dist/components/reports-title-bar/report-buttons/index.d.ts +2 -0
  492. package/dist/components/reports-title-bar/report-buttons/report-buttons.d.ts +26 -0
  493. package/dist/components/reports-title-bar/reports-title-bar/index.esm.js +1 -1
  494. package/dist/components/reports-title-bar/reports-title-bar/index.js +8 -8
  495. package/dist/components/reports-title-bar/reports-title-bar.d.ts +30 -0
  496. package/dist/components/reset-password-modal/index.d.ts +2 -0
  497. package/dist/components/reset-password-modal/reset-password-modal.d.ts +5 -0
  498. package/dist/components/rfq-response/index.d.ts +2 -0
  499. package/dist/components/rfq-response/item-response-details/index.esm.js +1 -1
  500. package/dist/components/rfq-response/item-response-details/index.js +1 -1
  501. package/dist/components/rfq-response/item-response-details/index.js.map +1 -1
  502. package/dist/components/rfq-response/item-response-details.d.ts +1 -0
  503. package/dist/components/save-filter-modal/index.d.ts +2 -0
  504. package/dist/components/save-filter-modal/save-filter-modal.d.ts +8 -0
  505. package/dist/components/schedule-report/index.d.ts +6 -0
  506. package/dist/components/schedule-report/schedule-report/index.esm.js +2 -2
  507. package/dist/components/schedule-report/schedule-report/index.js +5 -5
  508. package/dist/components/schedule-report/schedule-report/index.js.map +1 -1
  509. package/dist/components/schedule-report/schedule-report-modal.d.ts +17 -0
  510. package/dist/components/schedule-report/schedule-report.d.ts +6 -0
  511. package/dist/components/schedule-report/utils/common/index.esm.js +1 -1
  512. package/dist/components/schedule-report/utils/common.d.ts +9 -0
  513. package/dist/components/schedule-report/utils/constant.d.ts +29 -0
  514. package/dist/components/schedule-report/utils/index.d.ts +3 -0
  515. package/dist/components/schedule-report/utils/type.d.ts +31 -0
  516. package/dist/components/schedule-report/validator.d.ts +13 -0
  517. package/dist/components/search-bar/index.d.ts +2 -0
  518. package/dist/components/search-bar/search-bar.d.ts +14 -0
  519. package/dist/components/searchable-select.d.ts +49 -0
  520. package/dist/components/select/controller/chip-or-placeholder.d.ts +10 -0
  521. package/dist/components/select/controller/controller-select.d.ts +33 -0
  522. package/dist/components/select/controller/index.d.ts +4 -0
  523. package/dist/components/select/index.d.ts +5 -0
  524. package/dist/components/select/select-search.d.ts +4 -0
  525. package/dist/components/select/select.d.ts +3 -0
  526. package/dist/components/share-modal/index.d.ts +5 -0
  527. package/dist/components/share-modal/redux/actionCreator.d.ts +2 -0
  528. package/dist/components/share-modal/redux/index.d.ts +5 -0
  529. package/dist/components/share-modal/redux/reducer/index.esm.js +2 -0
  530. package/dist/components/share-modal/redux/reducer/index.esm.js.map +1 -1
  531. package/dist/components/share-modal/redux/reducer/index.js +1 -1
  532. package/dist/components/share-modal/redux/reducer/index.js.map +1 -1
  533. package/dist/components/share-modal/redux/reducer.d.ts +21 -0
  534. package/dist/components/share-modal/redux/state.d.ts +8 -0
  535. package/dist/components/share-modal/share-modal-enhanced/index.esm.js +287 -0
  536. package/dist/components/share-modal/share-modal-enhanced/index.esm.js.map +1 -0
  537. package/dist/components/share-modal/share-modal-enhanced/index.js +24 -0
  538. package/dist/components/share-modal/share-modal-enhanced/index.js.map +1 -0
  539. package/dist/components/share-modal/share-modal-enhanced.d.ts +19 -0
  540. package/dist/components/share-modal/share-modal.d.ts +13 -0
  541. package/dist/components/sidebar/index.d.ts +2 -0
  542. package/dist/components/sidebar/sidebar/index.esm.js +2 -2
  543. package/dist/components/sidebar/sidebar/index.js +9 -9
  544. package/dist/components/sidebar/sidebar.d.ts +23 -0
  545. package/dist/components/snackbar/index.d.ts +2 -0
  546. package/dist/components/snackbar/snackbar.d.ts +4 -0
  547. package/dist/components/sub-header-doc/index.d.ts +2 -0
  548. package/dist/components/sub-header-doc/sub-header-doc.d.ts +3 -0
  549. package/dist/components/switches/android-12-switch.d.ts +2 -0
  550. package/dist/components/switches/index.d.ts +2 -0
  551. package/dist/components/tab-bar-ui/index.d.ts +2 -0
  552. package/dist/components/tab-bar-ui/tab-bar-ui.d.ts +20 -0
  553. package/dist/components/tabs/index.d.ts +2 -0
  554. package/dist/components/tabs/tabs.d.ts +24 -0
  555. package/dist/components/text-area/index.d.ts +2 -0
  556. package/dist/components/text-area/text-area.d.ts +9 -0
  557. package/dist/components/text-field/index.d.ts +2 -0
  558. package/dist/components/text-field/text-field.d.ts +3 -0
  559. package/dist/components/time-picker/index.d.ts +2 -0
  560. package/dist/components/time-picker/time-picker.d.ts +16 -0
  561. package/dist/components/time-range-picker/index.d.ts +2 -0
  562. package/dist/components/time-range-picker/time-range-picker.d.ts +10 -0
  563. package/dist/components/title-dropdown-button/index.d.ts +2 -0
  564. package/dist/components/title-dropdown-button/title-dropdown-button.d.ts +15 -0
  565. package/dist/components/toast/index.d.ts +2 -0
  566. package/dist/components/toast/toast.d.ts +9 -0
  567. package/dist/components/toggle/index.d.ts +2 -0
  568. package/dist/components/toggle/toggle.d.ts +7 -0
  569. package/dist/components/toggle-switch/index.d.ts +2 -0
  570. package/dist/components/toggle-switch/toggle-switch.d.ts +10 -0
  571. package/dist/components/tooltip/Tooltip.d.ts +4 -0
  572. package/dist/components/tooltip/index.d.ts +2 -0
  573. package/dist/components/typography/index.d.ts +2 -0
  574. package/dist/components/typography/typography.d.ts +8 -0
  575. package/dist/components/upload/file-confirmation.d.ts +12 -0
  576. package/dist/components/upload/index.d.ts +4 -0
  577. package/dist/components/upload/upload.d.ts +15 -0
  578. package/dist/components/upload-excel/file-confirmation.d.ts +11 -0
  579. package/dist/components/upload-excel/index.d.ts +4 -0
  580. package/dist/components/upload-excel/upload-excel/index.esm.js +1 -1
  581. package/dist/components/upload-excel/upload-excel/index.js +5 -5
  582. package/dist/components/upload-excel/upload-excel.d.ts +16 -0
  583. package/dist/components/upload-media/index.d.ts +2 -0
  584. package/dist/components/upload-media/upload-media.d.ts +16 -0
  585. package/dist/components/user-dropdown/index.d.ts +2 -0
  586. package/dist/components/user-dropdown/user-dropdown.d.ts +12 -0
  587. package/dist/components/value-field/index.d.ts +2 -0
  588. package/dist/components/value-field/value-field.d.ts +8 -0
  589. package/dist/components/view-modal/index.d.ts +2 -0
  590. package/dist/components/view-modal/view-modal.d.ts +13 -0
  591. package/dist/config/index.d.ts +43 -0
  592. package/dist/constants/action-bar.d.ts +9 -0
  593. package/dist/constants/all-language.d.ts +6 -0
  594. package/dist/constants/auth.d.ts +5 -0
  595. package/dist/constants/common.d.ts +1 -0
  596. package/dist/constants/defaultColumns.d.ts +109 -0
  597. package/dist/constants/index.d.ts +15 -15
  598. package/dist/constants/index.esm.js +104 -10
  599. package/dist/constants/index.esm.js.map +1 -1
  600. package/dist/constants/index.js +1 -1
  601. package/dist/constants/lang/ar.d.ts +1448 -0
  602. package/dist/constants/lang/en.d.ts +10645 -0
  603. package/dist/constants/lang/es.d.ts +142 -0
  604. package/dist/constants/lang/index.d.ts +6 -0
  605. package/dist/constants/modules.d.ts +2 -0
  606. package/dist/constants/mui.constants.d.ts +2 -0
  607. package/dist/constants/pathnames/index.d.ts +13 -0
  608. package/dist/constants/pathnames/pathname.accounting.d.ts +165 -0
  609. package/dist/constants/pathnames/pathname.crm.d.ts +203 -0
  610. package/dist/constants/pathnames/pathname.d.ts +25 -0
  611. package/dist/constants/pathnames/pathname.document.d.ts +10 -0
  612. package/dist/constants/pathnames/pathname.hrms.d.ts +5 -0
  613. package/dist/constants/pathnames/pathname.inventory.d.ts +154 -0
  614. package/dist/constants/pathnames/pathname.manufacturing/index.esm.js +6 -0
  615. package/dist/constants/pathnames/pathname.manufacturing/index.esm.js.map +1 -1
  616. package/dist/constants/pathnames/pathname.manufacturing/index.js +1 -1
  617. package/dist/constants/pathnames/pathname.manufacturing/index.js.map +1 -1
  618. package/dist/constants/pathnames/pathname.manufacturing.d.ts +387 -0
  619. package/dist/constants/pathnames/pathname.office.d.ts +5 -0
  620. package/dist/constants/pathnames/pathname.procurement.d.ts +150 -0
  621. package/dist/constants/pathnames/pathname.project.d.ts +5 -0
  622. package/dist/constants/pathnames/pathname.quotes.d.ts +5 -0
  623. package/dist/constants/pathnames/pathname.rental/index.esm.js +12 -1
  624. package/dist/constants/pathnames/pathname.rental/index.esm.js.map +1 -1
  625. package/dist/constants/pathnames/pathname.rental/index.js +1 -1
  626. package/dist/constants/pathnames/pathname.rental/index.js.map +1 -1
  627. package/dist/constants/pathnames/pathname.rental.d.ts +43 -0
  628. package/dist/constants/pathnames/pathname.user.d.ts +20 -0
  629. package/dist/constants/resource-lang.d.ts +12240 -0
  630. package/dist/constants/route-page-map.d.ts +10 -0
  631. package/dist/constants/status.d.ts +4 -0
  632. package/dist/contexts/AuthContext/index.esm.js +1 -1
  633. package/dist/contexts/AuthContext/index.esm.js.map +1 -1
  634. package/dist/contexts/AuthContext/index.js +1 -1
  635. package/dist/contexts/AuthContext/index.js.map +1 -1
  636. package/dist/contexts/AuthContext.d.ts +69 -0
  637. package/dist/contexts/index.d.ts +5 -16
  638. package/dist/contexts/index.esm.js +2 -2
  639. package/dist/contexts/index.js +1 -1
  640. package/dist/contexts/languageContext.d.ts +24 -0
  641. package/dist/contexts/page-context.d.ts +72 -0
  642. package/dist/contexts/permission-context.d.ts +14 -0
  643. package/dist/hooks/apiHelper/index.esm.js +1 -1
  644. package/dist/hooks/apiHelper/index.esm.js.map +1 -1
  645. package/dist/hooks/apiHelper/index.js +1 -1
  646. package/dist/hooks/apiHelper/index.js.map +1 -1
  647. package/dist/hooks/apiHelper.d.ts +12 -0
  648. package/dist/hooks/common.d.ts +41 -0
  649. package/dist/hooks/index.d.ts +16 -26
  650. package/dist/hooks/index.esm.js +25 -18
  651. package/dist/hooks/index.esm.js.map +1 -1
  652. package/dist/hooks/index.js +1 -1
  653. package/dist/hooks/use-deep-memo.d.ts +2 -0
  654. package/dist/hooks/use-material-calculations/index.esm.js +0 -8
  655. package/dist/hooks/use-material-calculations/index.esm.js.map +1 -1
  656. package/dist/hooks/use-material-calculations/index.js +1 -1
  657. package/dist/hooks/use-material-calculations/index.js.map +1 -1
  658. package/dist/hooks/use-material-calculations.d.ts +81 -0
  659. package/dist/hooks/use-translations.d.ts +3 -0
  660. package/dist/hooks/useCheckSkuAndName.d.ts +7 -0
  661. package/dist/hooks/useDataFetcher/index.esm.js +3 -2
  662. package/dist/hooks/useDataFetcher/index.esm.js.map +1 -1
  663. package/dist/hooks/useDataFetcher/index.js +1 -1
  664. package/dist/hooks/useDataFetcher/index.js.map +1 -1
  665. package/dist/hooks/useDataFetcher.d.ts +25 -0
  666. package/dist/hooks/useLanguageFallback/index.esm.js +0 -5
  667. package/dist/hooks/useLanguageFallback/index.esm.js.map +1 -1
  668. package/dist/hooks/useLanguageFallback/index.js +1 -1
  669. package/dist/hooks/useLanguageFallback/index.js.map +1 -1
  670. package/dist/hooks/useLanguageFallback.d.ts +67 -0
  671. package/dist/hooks/useLocationFilter/index.esm.js +0 -5
  672. package/dist/hooks/useLocationFilter/index.esm.js.map +1 -1
  673. package/dist/hooks/useLocationFilter/index.js +1 -1
  674. package/dist/hooks/useLocationFilter/index.js.map +1 -1
  675. package/dist/hooks/useLocationFilter.d.ts +43 -0
  676. package/dist/hooks/useReduxIntegration/index.esm.js +39 -0
  677. package/dist/hooks/useReduxIntegration/index.esm.js.map +1 -0
  678. package/dist/hooks/useReduxIntegration/index.js +2 -0
  679. package/dist/hooks/useReduxIntegration/index.js.map +1 -0
  680. package/dist/hooks/useReduxIntegration.d.ts +9 -0
  681. package/dist/icons/index.d.ts +177 -94
  682. package/dist/icons/index.esm.js +80 -76
  683. package/dist/icons/index.esm.js.map +1 -1
  684. package/dist/icons/index.js +1 -1
  685. package/dist/index.d.ts +190 -1
  686. package/dist/index.esm.js +640 -747
  687. package/dist/index.esm.js.map +1 -1
  688. package/dist/index.js +1 -1
  689. package/dist/layout/fullScreen/fullScreen.d.ts +1 -0
  690. package/dist/layout/fullScreen/index.d.ts +2 -0
  691. package/dist/layout/index.d.ts +2 -3
  692. package/dist/layout/index.esm.js +1 -1
  693. package/dist/layout/index.js +1 -1
  694. package/dist/layout/sidebarScreen/index.d.ts +2 -0
  695. package/dist/layout/sidebarScreen/sidebarScreen.d.ts +7 -0
  696. package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.esm.js +1 -1
  697. package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.js +1 -1
  698. package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.esm.js +1 -1
  699. package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.js +1 -1
  700. package/dist/node_modules/@mui/material/Avatar/avatarClasses/index.esm.js +2 -3
  701. package/dist/node_modules/@mui/material/Avatar/avatarClasses/index.esm.js.map +1 -1
  702. package/dist/node_modules/@mui/material/Avatar/avatarClasses/index.js +1 -1
  703. package/dist/node_modules/@mui/material/Avatar/avatarClasses/index.js.map +1 -1
  704. package/dist/node_modules/@mui/material/NativeSelect/nativeSelectClasses/index.esm.js +1 -1
  705. package/dist/node_modules/@mui/material/NativeSelect/nativeSelectClasses/index.js +1 -1
  706. package/dist/node_modules/@mui/material/NativeSelect/nativeSelectClasses/index.js.map +1 -1
  707. package/dist/node_modules/@mui/material/OutlinedInput/outlinedInputClasses/index.esm.js +1 -1
  708. package/dist/node_modules/@mui/material/OutlinedInput/outlinedInputClasses/index.js +1 -1
  709. package/dist/node_modules/@mui/material/Popover/Popover/index.esm.js +1 -1
  710. package/dist/node_modules/@mui/material/Popover/Popover/index.js +1 -1
  711. package/dist/node_modules/@mui/material/Snackbar/Snackbar/index.esm.js +1 -1
  712. package/dist/node_modules/@mui/material/Snackbar/Snackbar/index.js +1 -1
  713. package/dist/node_modules/@mui/material/Tabs/Tabs/index.esm.js +1 -1
  714. package/dist/node_modules/@mui/material/Tabs/Tabs/index.js +1 -1
  715. package/dist/node_modules/@mui/system/esm/Container/createContainer/index.esm.js +1 -1
  716. package/dist/node_modules/@mui/system/esm/Container/createContainer/index.js +1 -1
  717. package/dist/node_modules/@mui/system/esm/Stack/createStack/index.esm.js +1 -1
  718. package/dist/node_modules/@mui/system/esm/Stack/createStack/index.js +2 -2
  719. package/dist/node_modules/d3-axis/src/axis/index.esm.js +1 -5
  720. package/dist/node_modules/d3-axis/src/axis/index.esm.js.map +1 -1
  721. package/dist/node_modules/d3-axis/src/axis/index.js +1 -1
  722. package/dist/node_modules/d3-axis/src/axis/index.js.map +1 -1
  723. package/dist/node_modules/notistack/notistack.esm/index.esm.js +0 -3
  724. package/dist/node_modules/notistack/notistack.esm/index.esm.js.map +1 -1
  725. package/dist/node_modules/notistack/notistack.esm/index.js +1 -1
  726. package/dist/node_modules/notistack/notistack.esm/index.js.map +1 -1
  727. package/dist/node_modules/prop-types/checkPropTypes/index.esm.js +49 -56
  728. package/dist/node_modules/prop-types/checkPropTypes/index.esm.js.map +1 -1
  729. package/dist/node_modules/prop-types/checkPropTypes/index.js +1 -1
  730. package/dist/node_modules/prop-types/checkPropTypes/index.js.map +1 -1
  731. package/dist/node_modules/prop-types/factoryWithTypeCheckers/index.esm.js +2 -2
  732. package/dist/node_modules/prop-types/factoryWithTypeCheckers/index.esm.js.map +1 -1
  733. package/dist/node_modules/prop-types/factoryWithTypeCheckers/index.js +1 -1
  734. package/dist/node_modules/prop-types/factoryWithTypeCheckers/index.js.map +1 -1
  735. package/dist/redux/actionCreator.d.ts +7 -0
  736. package/dist/redux/apiConfig.d.ts +18 -0
  737. package/dist/redux/hooks/index.esm.js +1 -1
  738. package/dist/redux/hooks.d.ts +7 -0
  739. package/dist/redux/index.d.ts +8 -13
  740. package/dist/redux/index.esm.js +14 -30
  741. package/dist/redux/index.esm.js.map +1 -1
  742. package/dist/redux/index.js +1 -1
  743. package/dist/redux/module-reducer.d.ts +9 -0
  744. package/dist/redux/slices/headerSlice.d.ts +24 -0
  745. package/dist/redux/slices/index.d.ts +8 -0
  746. package/dist/redux/slices/inventoryReportsTitleBarSlice/index.esm.js +0 -6
  747. package/dist/redux/slices/inventoryReportsTitleBarSlice/index.esm.js.map +1 -1
  748. package/dist/redux/slices/inventoryReportsTitleBarSlice/index.js +1 -1
  749. package/dist/redux/slices/inventoryReportsTitleBarSlice/index.js.map +1 -1
  750. package/dist/redux/slices/inventoryReportsTitleBarSlice.d.ts +45 -0
  751. package/dist/redux/slices/reportsTitleBarSlice/index.esm.js +1 -7
  752. package/dist/redux/slices/reportsTitleBarSlice/index.esm.js.map +1 -1
  753. package/dist/redux/slices/reportsTitleBarSlice/index.js +1 -1
  754. package/dist/redux/slices/reportsTitleBarSlice/index.js.map +1 -1
  755. package/dist/redux/slices/reportsTitleBarSlice.d.ts +21 -0
  756. package/dist/redux/slices/shareSlice/index.esm.js +1 -3
  757. package/dist/redux/slices/shareSlice/index.esm.js.map +1 -1
  758. package/dist/redux/slices/shareSlice/index.js +1 -1
  759. package/dist/redux/slices/shareSlice/index.js.map +1 -1
  760. package/dist/redux/slices/shareSlice.d.ts +26 -0
  761. package/dist/redux/toolkit.d.ts +1 -0
  762. package/dist/redux/types.d.ts +66 -0
  763. package/dist/server.d.ts +8 -0
  764. package/dist/src/@types/index.d.ts +5 -0
  765. package/dist/src/assets/common-component/index.d.ts +1 -0
  766. package/dist/src/assets/dynamic-svg-icon/index.d.ts +2 -0
  767. package/dist/src/assets/index.d.ts +5 -0
  768. package/dist/src/assets/view-modal/index.d.ts +12 -0
  769. package/dist/src/components/Dashboard/index.d.ts +4 -0
  770. package/dist/src/components/accordion/index.d.ts +2 -0
  771. package/dist/src/components/action-bar/index.d.ts +2 -0
  772. package/dist/src/components/activity-tag/index.d.ts +2 -0
  773. package/dist/src/components/activityArea/index.d.ts +2 -0
  774. package/dist/src/components/activityLog/index.d.ts +2 -0
  775. package/dist/src/components/alert/index.d.ts +2 -0
  776. package/dist/src/components/appbar/index.d.ts +2 -0
  777. package/dist/src/components/approval-wrapper/index.d.ts +2 -0
  778. package/dist/src/components/avatar/index.d.ts +2 -0
  779. package/dist/src/components/board/index.d.ts +4 -0
  780. package/dist/src/components/bread-crumb/index.d.ts +2 -0
  781. package/dist/src/components/button/index.d.ts +2 -0
  782. package/dist/src/components/calculation-summary/components/index.d.ts +10 -0
  783. package/dist/src/components/calculation-summary/index.d.ts +3 -0
  784. package/dist/src/components/calendar/index.d.ts +2 -0
  785. package/dist/src/components/card-wrapper/index.d.ts +2 -0
  786. package/dist/src/components/change-user-password-modal/index.d.ts +2 -0
  787. package/dist/src/components/charts/bar-chart/index.d.ts +2 -0
  788. package/dist/src/components/charts/barChart/index.d.ts +2 -0
  789. package/dist/src/components/charts/barLineChart/index.d.ts +2 -0
  790. package/dist/src/components/charts/donut-chart/index.d.ts +2 -0
  791. package/dist/src/components/charts/donutChart/index.d.ts +2 -0
  792. package/dist/src/components/charts/groupBarChart/index.d.ts +2 -0
  793. package/dist/src/components/charts/index.d.ts +12 -0
  794. package/dist/src/components/charts/line-chart/area-lineChart.d.ts +2 -2
  795. package/dist/src/components/charts/line-chart/index.d.ts +6 -0
  796. package/dist/src/components/charts/multiLineChart/index.d.ts +2 -0
  797. package/dist/src/components/checkbox/index.d.ts +2 -0
  798. package/dist/src/components/chip/index.d.ts +2 -0
  799. package/dist/src/components/chip-generator/index.d.ts +2 -0
  800. package/dist/src/components/color-picker-input/index.d.ts +2 -0
  801. package/dist/src/components/confirm-modal/index.d.ts +3 -0
  802. package/dist/src/components/country-select/index.d.ts +2 -0
  803. package/dist/src/components/custom-snackbar/index.d.ts +2 -0
  804. package/dist/src/components/custom-toggle-switch/index.d.ts +2 -0
  805. package/dist/src/components/date-picker/index.d.ts +2 -0
  806. package/dist/src/components/date-range-picker/index.d.ts +2 -0
  807. package/dist/src/components/date-time-picker/index.d.ts +2 -0
  808. package/dist/src/components/dropdown-button/index.d.ts +2 -0
  809. package/dist/src/components/dynamic-layout-wrapper/index.d.ts +2 -0
  810. package/dist/src/components/editor/index.d.ts +2 -0
  811. package/dist/src/components/entity-view-wrapper/index.d.ts +2 -0
  812. package/dist/src/components/examples/index.d.ts +2 -0
  813. package/dist/src/components/expandable-summary-wrapper/index.d.ts +2 -0
  814. package/dist/src/components/fallback/index.d.ts +2 -0
  815. package/dist/src/components/filter/components/index.d.ts +16 -0
  816. package/dist/src/components/filter/index.d.ts +4 -0
  817. package/dist/src/components/footer/index.d.ts +2 -0
  818. package/dist/src/components/form-control/form-builder/form-builder-element/index.d.ts +25 -5
  819. package/dist/src/components/form-control/form-builder/form-builder-element/location-add-modal/index.d.ts +2 -0
  820. package/dist/src/components/form-control/form-builder/index.d.ts +3 -0
  821. package/dist/src/components/form-control/form-parser/index.d.ts +8 -0
  822. package/dist/src/components/form-control/index.d.ts +2 -2
  823. package/dist/src/components/form-header/index.d.ts +2 -0
  824. package/dist/src/components/gantt/index.d.ts +2 -0
  825. package/dist/src/components/grid/custom-grid-card/index.d.ts +2 -0
  826. package/dist/src/components/grid/grid-card/index.d.ts +2 -0
  827. package/dist/src/components/grid/grid-wrapper/index.d.ts +2 -0
  828. package/dist/src/components/grid/index.d.ts +3 -0
  829. package/dist/src/components/grid-fallback/index.d.ts +2 -0
  830. package/dist/src/components/header/components/index.d.ts +1 -0
  831. package/dist/src/components/header/components/notification-menu/index.d.ts +2 -0
  832. package/dist/src/components/header/index.d.ts +6 -0
  833. package/dist/src/components/header/redux/index.d.ts +5 -0
  834. package/dist/src/components/header-card/index.d.ts +2 -0
  835. package/dist/src/components/hr-line/index.d.ts +2 -0
  836. package/dist/src/components/icons/index.d.ts +163 -80
  837. package/dist/src/components/icons/sort-arrow-icon.d.ts +2 -2
  838. package/dist/src/components/index.d.ts +106 -123
  839. package/dist/src/components/info-card/index.d.ts +2 -0
  840. package/dist/src/components/inventory-reports-title-bar/component/index.d.ts +2 -0
  841. package/dist/src/components/inventory-reports-title-bar/index.d.ts +5 -0
  842. package/dist/src/components/inventory-reports-title-bar/redux/index.d.ts +5 -0
  843. package/dist/src/components/inventory-reports-title-bar/report-buttons/index.d.ts +2 -0
  844. package/dist/src/components/label-value/index.d.ts +2 -0
  845. package/dist/src/components/list/index.d.ts +2 -0
  846. package/dist/src/components/listing/index.d.ts +2 -2
  847. package/dist/src/components/loaders/index.d.ts +5 -1
  848. package/dist/src/components/material-editable-table/components/index.d.ts +8 -0
  849. package/dist/src/components/material-editable-table/index.d.ts +4 -0
  850. package/dist/src/components/material-table/components/index.d.ts +8 -0
  851. package/dist/src/components/material-table/index.d.ts +4 -0
  852. package/dist/src/components/material-table/material-table.d.ts +1 -1
  853. package/dist/src/components/menu/index.d.ts +2 -0
  854. package/dist/src/components/modal/index.d.ts +2 -0
  855. package/dist/src/components/module-button/index.d.ts +2 -0
  856. package/dist/src/components/mulitline/index.d.ts +2 -0
  857. package/dist/src/components/multi-select/index.d.ts +2 -0
  858. package/dist/src/components/page-navigator/components/index.d.ts +10 -0
  859. package/dist/src/components/page-navigator/index.d.ts +3 -0
  860. package/dist/src/components/pagination/index.d.ts +2 -0
  861. package/dist/src/components/parties-modal/index.d.ts +4 -0
  862. package/dist/src/components/parties-modal/utils/index.d.ts +1 -0
  863. package/dist/src/components/phone-input/index.d.ts +2 -0
  864. package/dist/src/components/providers/index.d.ts +2 -1
  865. package/dist/src/components/quick-approval-modal/index.d.ts +2 -0
  866. package/dist/src/components/radio/index.d.ts +2 -0
  867. package/dist/src/components/reports/dynamic-report/index.d.ts +3 -0
  868. package/dist/src/components/reports/index.d.ts +1 -0
  869. package/dist/src/components/reports-title-bar/index.d.ts +4 -0
  870. package/dist/src/components/reports-title-bar/redux/index.d.ts +5 -0
  871. package/dist/src/components/reports-title-bar/report-buttons/index.d.ts +2 -0
  872. package/dist/src/components/reset-password-modal/index.d.ts +2 -0
  873. package/dist/src/components/rfq-response/index.d.ts +2 -0
  874. package/dist/src/components/save-filter-modal/index.d.ts +2 -0
  875. package/dist/src/components/schedule-report/index.d.ts +6 -0
  876. package/dist/src/components/schedule-report/utils/index.d.ts +3 -0
  877. package/dist/src/components/search-bar/index.d.ts +2 -0
  878. package/dist/src/components/select/controller/index.d.ts +4 -0
  879. package/dist/src/components/select/index.d.ts +5 -0
  880. package/dist/src/components/share-modal/index.d.ts +5 -0
  881. package/dist/src/components/share-modal/redux/index.d.ts +5 -0
  882. package/dist/src/components/sidebar/index.d.ts +2 -0
  883. package/dist/src/components/snackbar/index.d.ts +2 -0
  884. package/dist/src/components/sub-header-doc/index.d.ts +2 -0
  885. package/dist/src/components/switches/index.d.ts +2 -0
  886. package/dist/src/components/tab-bar-ui/index.d.ts +2 -0
  887. package/dist/src/components/tabs/index.d.ts +2 -0
  888. package/dist/src/components/text-area/index.d.ts +2 -0
  889. package/dist/src/components/text-field/index.d.ts +2 -0
  890. package/dist/src/components/time-picker/index.d.ts +2 -0
  891. package/dist/src/components/time-range-picker/index.d.ts +2 -0
  892. package/dist/src/components/title-dropdown-button/index.d.ts +2 -0
  893. package/dist/src/components/toast/index.d.ts +2 -0
  894. package/dist/src/components/toggle/index.d.ts +2 -0
  895. package/dist/src/components/toggle-switch/index.d.ts +2 -0
  896. package/dist/src/components/tooltip/index.d.ts +2 -0
  897. package/dist/src/components/typography/index.d.ts +2 -0
  898. package/dist/src/components/upload/index.d.ts +4 -0
  899. package/dist/src/components/upload-excel/index.d.ts +4 -0
  900. package/dist/src/components/upload-media/index.d.ts +2 -0
  901. package/dist/src/components/user-dropdown/index.d.ts +2 -0
  902. package/dist/src/components/value-field/index.d.ts +2 -0
  903. package/dist/src/components/view-modal/index.d.ts +2 -0
  904. package/dist/src/constants/index.d.ts +5 -3
  905. package/dist/src/constants/lang/index.d.ts +6 -0
  906. package/dist/src/constants/pathnames/index.d.ts +13 -554
  907. package/dist/src/contexts/index.d.ts +5 -5
  908. package/dist/src/hooks/apiHelper.d.ts +1 -1
  909. package/dist/src/hooks/index.d.ts +15 -13
  910. package/dist/src/hooks/useDataFetcher.d.ts +2 -2
  911. package/dist/src/layout/fullScreen/index.d.ts +2 -0
  912. package/dist/src/layout/index.d.ts +2 -2
  913. package/dist/src/layout/sidebarScreen/index.d.ts +2 -0
  914. package/dist/src/redux/index.d.ts +5 -6
  915. package/dist/src/redux/slices/index.d.ts +8 -10
  916. package/dist/src/styles/index.d.ts +1 -2
  917. package/dist/src/theme/index.d.ts +7 -3
  918. package/dist/src/theme/types/index.d.ts +1 -0
  919. package/dist/src/utils/index.d.ts +12 -10
  920. package/dist/src/views/afterAuth/dashboard/index.d.ts +3 -0
  921. package/dist/src/views/afterAuth/dashboard/redux/index.d.ts +5 -0
  922. package/dist/src/views/afterAuth/index.d.ts +2 -0
  923. package/dist/src/views/afterAuth/page-view/index.d.ts +4 -0
  924. package/dist/src/views/afterAuth/page-view/redux/index.d.ts +5 -0
  925. package/dist/src/views/afterAuth/page-view/utils/index.d.ts +2 -0
  926. package/dist/src/views/beforeAuth/change-password/index.d.ts +1 -0
  927. package/dist/src/views/beforeAuth/components/activity-tag-data/index.d.ts +1 -0
  928. package/dist/src/views/beforeAuth/components/calendar-data/index.d.ts +1 -0
  929. package/dist/src/views/beforeAuth/components/drive-dashboard-data/index.d.ts +1 -0
  930. package/dist/src/views/beforeAuth/components/gantt-data/index.d.ts +2 -0
  931. package/dist/src/views/beforeAuth/components/grid-data/index.d.ts +2 -0
  932. package/dist/src/views/beforeAuth/components/index.d.ts +13 -2
  933. package/dist/src/views/beforeAuth/components/kanbann-content/index.d.ts +1 -0
  934. package/dist/src/views/beforeAuth/components/list-content/index.d.ts +2 -0
  935. package/dist/src/views/beforeAuth/components/multiline-data/index.d.ts +1 -0
  936. package/dist/src/views/beforeAuth/components/share-modal-data/index.d.ts +1 -0
  937. package/dist/src/views/beforeAuth/components/shared-pages-data/index.d.ts +1 -0
  938. package/dist/src/views/beforeAuth/components/tabs-data/index.d.ts +1 -0
  939. package/dist/src/views/beforeAuth/components/user-dashboard-data/index.d.ts +1 -0
  940. package/dist/src/views/beforeAuth/components/user-dropdown-data/index.d.ts +1 -0
  941. package/dist/src/views/beforeAuth/forgot-password/index.d.ts +1 -0
  942. package/dist/src/views/beforeAuth/index.d.ts +6 -0
  943. package/dist/src/views/beforeAuth/landing/index.d.ts +2 -0
  944. package/dist/src/views/beforeAuth/reset-password/index.d.ts +1 -0
  945. package/dist/src/views/form-builder/element-edit-forms/index.d.ts +7 -0
  946. package/dist/src/views/form-builder/index.d.ts +7 -31
  947. package/dist/src/views/form-builder/redux/index.d.ts +5 -0
  948. package/dist/src/views/form-builder/utils/index.d.ts +1 -2
  949. package/dist/src/views/index.d.ts +7 -2
  950. package/dist/src/views/template-editor/add-template/index.d.ts +1 -0
  951. package/dist/src/views/template-editor/company-selection-modal/index.d.ts +1 -0
  952. package/dist/src/views/template-editor/components/controllers/index.d.ts +18 -0
  953. package/dist/src/views/template-editor/components/index.d.ts +7 -9
  954. package/dist/src/views/template-editor/edit-section-modal/index.d.ts +1 -0
  955. package/dist/src/views/template-editor/index.d.ts +10 -10
  956. package/dist/src/views/template-editor/template-modal/index.d.ts +3 -1
  957. package/dist/src/views/template-editor/template-name-modal/index.d.ts +1 -0
  958. package/dist/src/views/template-editor/types/index.d.ts +1 -1
  959. package/dist/src/views/template-editor/utils/index.d.ts +3 -3
  960. package/dist/style.css +67 -87
  961. package/dist/styles/index.d.ts +1 -1
  962. package/dist/styles/index.esm.js +4 -89
  963. package/dist/styles/index.esm.js.map +1 -1
  964. package/dist/styles/index.js +1 -1
  965. package/dist/styles/themes/index/index.esm.js +78 -0
  966. package/dist/styles/themes/index/index.esm.js.map +1 -0
  967. package/dist/styles/themes/index/index.js +2 -0
  968. package/dist/styles/themes/index/index.js.map +1 -0
  969. package/dist/styles/themes/index.d.ts +21 -0
  970. package/dist/theme/color.d.ts +38 -0
  971. package/dist/theme/index.d.ts +7 -5
  972. package/dist/theme/index.esm.js +12 -5
  973. package/dist/theme/index.esm.js.map +1 -1
  974. package/dist/theme/index.js +1 -1
  975. package/dist/theme/theme-impl/index.esm.js +1 -1
  976. package/dist/theme/theme-impl.d.ts +24 -0
  977. package/dist/theme/themeSelector.d.ts +15 -0
  978. package/dist/theme/themeWrapper.d.ts +10 -0
  979. package/dist/theme/types/extendMUIPalette.d.ts +47 -0
  980. package/dist/theme/types/index.d.ts +1 -0
  981. package/dist/theme/typography/index.esm.js +113 -0
  982. package/dist/theme/typography/index.esm.js.map +1 -0
  983. package/dist/theme/typography/index.js +2 -0
  984. package/dist/theme/typography/index.js.map +1 -0
  985. package/dist/theme/typography.d.ts +88 -0
  986. package/dist/types/index.d.ts +1 -21
  987. package/dist/utils/api.d.ts +662 -0
  988. package/dist/utils/calculation.d.ts +13 -0
  989. package/dist/utils/color.d.ts +21 -0
  990. package/dist/utils/common-utility.d.ts +224 -0
  991. package/dist/utils/common.d.ts +237 -0
  992. package/dist/utils/constant.d.ts +18 -0
  993. package/dist/utils/country.d.ts +1 -0
  994. package/dist/utils/date-range.d.ts +31 -0
  995. package/dist/utils/dateFormat/index.esm.js +7 -0
  996. package/dist/utils/dateFormat/index.esm.js.map +1 -1
  997. package/dist/utils/dateFormat/index.js +1 -1
  998. package/dist/utils/dateFormat/index.js.map +1 -1
  999. package/dist/utils/dateFormat.d.ts +11 -0
  1000. package/dist/utils/dateValidation.d.ts +84 -0
  1001. package/dist/utils/deformat-text.d.ts +2 -0
  1002. package/dist/utils/export-filters.d.ts +2 -0
  1003. package/dist/utils/fileSize.d.ts +2 -0
  1004. package/dist/utils/form-builder-conversion.d.ts +2 -0
  1005. package/dist/utils/form-builder-deconversion.d.ts +45 -0
  1006. package/dist/utils/format-text.d.ts +4 -0
  1007. package/dist/utils/i18n/index.esm.js +37 -0
  1008. package/dist/utils/i18n/index.esm.js.map +1 -0
  1009. package/dist/utils/i18n/index.js +2 -0
  1010. package/dist/utils/i18n/index.js.map +1 -0
  1011. package/dist/utils/i18n.d.ts +3 -0
  1012. package/dist/utils/index.d.ts +34 -35
  1013. package/dist/utils/index.esm.js +18 -73
  1014. package/dist/utils/index.esm.js.map +1 -1
  1015. package/dist/utils/index.js +1 -1
  1016. package/dist/utils/language.d.ts +1 -0
  1017. package/dist/utils/menu-filter.d.ts +70 -0
  1018. package/dist/utils/metaComponent/index.esm.js +27 -0
  1019. package/dist/utils/metaComponent/index.esm.js.map +1 -0
  1020. package/dist/utils/metaComponent/index.js +6 -0
  1021. package/dist/utils/metaComponent/index.js.map +1 -0
  1022. package/dist/utils/metaComponent.d.ts +14 -0
  1023. package/dist/utils/migration-utils.d.ts +7 -0
  1024. package/dist/utils/navigation-utils.d.ts +24 -0
  1025. package/dist/utils/route-utils.d.ts +4 -0
  1026. package/dist/utils/server.d.ts +5 -0
  1027. package/dist/utils/setup.d.ts +1 -0
  1028. package/dist/utils/translations.d.ts +1 -0
  1029. package/dist/views/404/index.esm.js +31 -0
  1030. package/dist/views/404/index.esm.js.map +1 -0
  1031. package/dist/views/404/index.js +6 -0
  1032. package/dist/views/404/index.js.map +1 -0
  1033. package/dist/views/404.d.ts +7 -0
  1034. package/dist/views/afterAuth/dashboard/dashboard/index.esm.js +76 -0
  1035. package/dist/views/afterAuth/dashboard/dashboard/index.esm.js.map +1 -0
  1036. package/dist/views/afterAuth/dashboard/dashboard/index.js +8 -0
  1037. package/dist/views/afterAuth/dashboard/dashboard/index.js.map +1 -0
  1038. package/dist/views/afterAuth/dashboard/dashboard.d.ts +2 -0
  1039. package/dist/views/afterAuth/dashboard/index.d.ts +3 -0
  1040. package/dist/views/afterAuth/dashboard/redux/actionCreator.d.ts +6 -0
  1041. package/dist/views/afterAuth/dashboard/redux/index.d.ts +5 -0
  1042. package/dist/views/afterAuth/dashboard/redux/reducer/index.esm.js +0 -6
  1043. package/dist/views/afterAuth/dashboard/redux/reducer/index.esm.js.map +1 -1
  1044. package/dist/views/afterAuth/dashboard/redux/reducer/index.js +1 -1
  1045. package/dist/views/afterAuth/dashboard/redux/reducer/index.js.map +1 -1
  1046. package/dist/views/afterAuth/dashboard/redux/reducer.d.ts +3508 -0
  1047. package/dist/views/afterAuth/dashboard/redux/state.d.ts +499 -0
  1048. package/dist/views/afterAuth/index.d.ts +2 -0
  1049. package/dist/views/afterAuth/page-view/index.d.ts +4 -0
  1050. package/dist/views/afterAuth/page-view/page-view/index.esm.js +100 -0
  1051. package/dist/views/afterAuth/page-view/page-view/index.esm.js.map +1 -0
  1052. package/dist/views/afterAuth/page-view/page-view/index.js +6 -0
  1053. package/dist/views/afterAuth/page-view/page-view/index.js.map +1 -0
  1054. package/dist/views/afterAuth/page-view/page-view.d.ts +2 -0
  1055. package/dist/views/afterAuth/page-view/redux/actionCreator/index.esm.js +13 -0
  1056. package/dist/views/afterAuth/page-view/redux/actionCreator/index.esm.js.map +1 -0
  1057. package/dist/views/afterAuth/page-view/redux/actionCreator/index.js +2 -0
  1058. package/dist/views/afterAuth/page-view/redux/actionCreator/index.js.map +1 -0
  1059. package/dist/views/afterAuth/page-view/redux/actionCreator.d.ts +1 -0
  1060. package/dist/views/afterAuth/page-view/redux/index.d.ts +5 -0
  1061. package/dist/views/afterAuth/page-view/redux/reducer/index.esm.js +63 -0
  1062. package/dist/views/afterAuth/page-view/redux/reducer/index.esm.js.map +1 -0
  1063. package/dist/views/afterAuth/page-view/redux/reducer/index.js +2 -0
  1064. package/dist/views/afterAuth/page-view/redux/reducer/index.js.map +1 -0
  1065. package/dist/views/afterAuth/page-view/redux/reducer.d.ts +273 -0
  1066. package/dist/views/afterAuth/page-view/redux/state/index.esm.js +31 -0
  1067. package/dist/views/afterAuth/page-view/redux/state/index.esm.js.map +1 -0
  1068. package/dist/views/afterAuth/page-view/redux/state/index.js +2 -0
  1069. package/dist/views/afterAuth/page-view/redux/state/index.js.map +1 -0
  1070. package/dist/views/afterAuth/page-view/redux/state.d.ts +33 -0
  1071. package/dist/views/afterAuth/page-view/utils/default-data/index.esm.js +137 -0
  1072. package/dist/views/afterAuth/page-view/utils/default-data/index.esm.js.map +1 -0
  1073. package/dist/views/afterAuth/page-view/utils/default-data/index.js +2 -0
  1074. package/dist/views/afterAuth/page-view/utils/default-data/index.js.map +1 -0
  1075. package/dist/views/afterAuth/page-view/utils/default-data.d.ts +16 -0
  1076. package/dist/views/afterAuth/page-view/utils/index.d.ts +2 -0
  1077. package/dist/views/afterAuth/page-view/utils/local-data/index.esm.js +137 -0
  1078. package/dist/views/afterAuth/page-view/utils/local-data/index.esm.js.map +1 -0
  1079. package/dist/views/afterAuth/page-view/utils/local-data/index.js +2 -0
  1080. package/dist/views/afterAuth/page-view/utils/local-data/index.js.map +1 -0
  1081. package/dist/views/afterAuth/page-view/utils/local-data.d.ts +16 -0
  1082. package/dist/views/beforeAuth/change-password/change-password/index.esm.js +182 -0
  1083. package/dist/views/beforeAuth/change-password/change-password/index.esm.js.map +1 -0
  1084. package/dist/views/beforeAuth/change-password/change-password/index.js +17 -0
  1085. package/dist/views/beforeAuth/change-password/change-password/index.js.map +1 -0
  1086. package/dist/views/beforeAuth/change-password/change-password.d.ts +1 -0
  1087. package/dist/views/beforeAuth/change-password/index.d.ts +1 -0
  1088. package/dist/views/beforeAuth/components/activity-tag-data/activity-tag-data.d.ts +11 -0
  1089. package/dist/views/beforeAuth/components/activity-tag-data/index.d.ts +1 -0
  1090. package/dist/views/beforeAuth/components/calendar-data/calendar-data.d.ts +18 -0
  1091. package/dist/views/beforeAuth/components/calendar-data/index.d.ts +1 -0
  1092. package/dist/views/beforeAuth/components/drive-dashboard-data/drive-dashboard-data.d.ts +147 -0
  1093. package/dist/views/beforeAuth/components/drive-dashboard-data/index.d.ts +1 -0
  1094. package/dist/views/beforeAuth/components/gantt-data/gantt-data.d.ts +4 -0
  1095. package/dist/views/beforeAuth/components/gantt-data/index.d.ts +2 -0
  1096. package/dist/views/beforeAuth/components/grid-data/grid-data.d.ts +8 -0
  1097. package/dist/views/beforeAuth/components/grid-data/index.d.ts +2 -0
  1098. package/dist/views/beforeAuth/components/index.d.ts +13 -0
  1099. package/dist/views/beforeAuth/components/kanbann-content/index.d.ts +1 -0
  1100. package/dist/views/beforeAuth/components/kanbann-content/kanbann-raw.d.ts +11 -0
  1101. package/dist/views/beforeAuth/components/list-content/column-raw.d.ts +38 -0
  1102. package/dist/views/beforeAuth/components/list-content/index.d.ts +2 -0
  1103. package/dist/views/beforeAuth/components/list-content/list-data.d.ts +11 -0
  1104. package/dist/views/beforeAuth/components/multiline-data/index.d.ts +1 -0
  1105. package/dist/views/beforeAuth/components/multiline-data/multiline-data.d.ts +5 -0
  1106. package/dist/views/beforeAuth/components/share-modal-data/index.d.ts +1 -0
  1107. package/dist/views/beforeAuth/components/share-modal-data/share-modal-data.d.ts +6 -0
  1108. package/dist/views/beforeAuth/components/shared-pages-data/index.d.ts +1 -0
  1109. package/dist/views/beforeAuth/components/shared-pages-data/shared-pages-data.d.ts +7 -0
  1110. package/dist/views/beforeAuth/components/tabs-data/index.d.ts +1 -0
  1111. package/dist/views/beforeAuth/components/tabs-data/tabs-data.d.ts +5 -0
  1112. package/dist/views/beforeAuth/components/user-dashboard-data/index.d.ts +1 -0
  1113. package/dist/views/beforeAuth/components/user-dashboard-data/user-dashboard-data.d.ts +157 -0
  1114. package/dist/views/beforeAuth/components/user-dropdown-data/index.d.ts +1 -0
  1115. package/dist/views/beforeAuth/components/user-dropdown-data/user-dropdown-data.d.ts +6 -0
  1116. package/dist/views/beforeAuth/forgot-password/forgot-password/index.esm.js +177 -0
  1117. package/dist/views/beforeAuth/forgot-password/forgot-password/index.esm.js.map +1 -0
  1118. package/dist/views/beforeAuth/forgot-password/forgot-password/index.js +16 -0
  1119. package/dist/views/beforeAuth/forgot-password/forgot-password/index.js.map +1 -0
  1120. package/dist/views/beforeAuth/forgot-password/forgot-password.d.ts +1 -0
  1121. package/dist/views/beforeAuth/forgot-password/index.d.ts +1 -0
  1122. package/dist/views/beforeAuth/index.d.ts +6 -0
  1123. package/dist/views/beforeAuth/landing/index.d.ts +2 -0
  1124. package/dist/views/beforeAuth/landing/landing/index.esm.js +35 -0
  1125. package/dist/views/beforeAuth/landing/landing/index.esm.js.map +1 -0
  1126. package/dist/views/beforeAuth/landing/landing/index.js +8 -0
  1127. package/dist/views/beforeAuth/landing/landing/index.js.map +1 -0
  1128. package/dist/views/beforeAuth/landing/landing.d.ts +3 -0
  1129. package/dist/views/beforeAuth/login/index/index.esm.js +209 -0
  1130. package/dist/views/beforeAuth/login/index/index.esm.js.map +1 -0
  1131. package/dist/views/beforeAuth/login/index/index.js +20 -0
  1132. package/dist/views/beforeAuth/login/index/index.js.map +1 -0
  1133. package/dist/views/beforeAuth/login/index.d.ts +2 -0
  1134. package/dist/views/beforeAuth/reset-password/index.d.ts +1 -0
  1135. package/dist/views/beforeAuth/reset-password/reset-password/index.esm.js +34 -0
  1136. package/dist/views/beforeAuth/reset-password/reset-password/index.esm.js.map +1 -0
  1137. package/dist/views/beforeAuth/reset-password/reset-password/index.js +2 -0
  1138. package/dist/views/beforeAuth/reset-password/reset-password/index.js.map +1 -0
  1139. package/dist/views/beforeAuth/reset-password/reset-password.d.ts +1 -0
  1140. package/dist/views/form-builder/custom-form/index.esm.js +2 -2
  1141. package/dist/views/form-builder/custom-form/index.js +10 -10
  1142. package/dist/views/form-builder/custom-form.d.ts +7 -0
  1143. package/dist/views/form-builder/element-edit-forms/checkbox.d.ts +3 -0
  1144. package/dist/views/form-builder/element-edit-forms/column-width.d.ts +3 -0
  1145. package/dist/views/form-builder/element-edit-forms/field-select.d.ts +4 -0
  1146. package/dist/views/form-builder/element-edit-forms/index.d.ts +14 -0
  1147. package/dist/views/form-builder/element-edit-forms/section.d.ts +3 -0
  1148. package/dist/views/form-builder/element-edit-forms/select/index.esm.js +1 -1
  1149. package/dist/views/form-builder/element-edit-forms/select/index.js +8 -8
  1150. package/dist/views/form-builder/element-edit-forms/select.d.ts +33 -0
  1151. package/dist/views/form-builder/element-edit-forms/table-form.d.ts +13 -0
  1152. package/dist/views/form-builder/element-edit-forms/text.d.ts +12 -0
  1153. package/dist/views/form-builder/field_properties.d.ts +99 -0
  1154. package/dist/views/form-builder/form-fields.d.ts +46 -0
  1155. package/dist/views/form-builder/index.d.ts +9 -0
  1156. package/dist/views/form-builder/redux/actionCreator/index.esm.js +1 -1
  1157. package/dist/views/form-builder/redux/actionCreator.d.ts +5 -0
  1158. package/dist/views/form-builder/redux/index.d.ts +5 -0
  1159. package/dist/views/form-builder/redux/reducer/index.esm.js +6 -1
  1160. package/dist/views/form-builder/redux/reducer/index.esm.js.map +1 -1
  1161. package/dist/views/form-builder/redux/reducer/index.js +1 -1
  1162. package/dist/views/form-builder/redux/reducer/index.js.map +1 -1
  1163. package/dist/views/form-builder/redux/state.d.ts +27 -0
  1164. package/dist/views/form-builder/types.d.ts +2 -0
  1165. package/dist/views/form-builder/utils/common.d.ts +66 -0
  1166. package/dist/views/form-builder/utils/index.d.ts +1 -0
  1167. package/dist/views/index.d.ts +8 -1
  1168. package/dist/views/index.esm.js +139 -65
  1169. package/dist/views/index.esm.js.map +1 -1
  1170. package/dist/views/index.js +1 -1
  1171. package/dist/views/privateRoute/index.esm.js +14 -0
  1172. package/dist/views/privateRoute/index.esm.js.map +1 -0
  1173. package/dist/views/privateRoute/index.js +2 -0
  1174. package/dist/views/privateRoute/index.js.map +1 -0
  1175. package/dist/views/privateRoute.d.ts +2 -0
  1176. package/dist/views/template-editor/add-template/add-template.d.ts +4 -0
  1177. package/dist/views/template-editor/add-template/index.d.ts +2 -0
  1178. package/dist/views/template-editor/company-selection-modal/company-selection-modal.d.ts +14 -0
  1179. package/dist/views/template-editor/company-selection-modal/index.d.ts +2 -0
  1180. package/dist/views/template-editor/components/EditorCanvas.d.ts +22 -0
  1181. package/dist/views/template-editor/components/EditorHeader/index.esm.js +1 -1
  1182. package/dist/views/template-editor/components/EditorHeader/index.js +3 -3
  1183. package/dist/views/template-editor/components/EditorHeader.d.ts +18 -0
  1184. package/dist/views/template-editor/components/EditorSection/index.esm.js +1 -1
  1185. package/dist/views/template-editor/components/EditorSection/index.js +3 -3
  1186. package/dist/views/template-editor/components/EditorSection.d.ts +20 -0
  1187. package/dist/views/template-editor/components/EditorSidebar.d.ts +2 -0
  1188. package/dist/views/template-editor/components/SectionFlowEditor.d.ts +9 -0
  1189. package/dist/views/template-editor/components/SectionFormatPanel/index.esm.js +1 -1
  1190. package/dist/views/template-editor/components/SectionFormatPanel/index.js +3 -3
  1191. package/dist/views/template-editor/components/SectionFormatPanel.d.ts +46 -0
  1192. package/dist/views/template-editor/components/controllers/AlignmentControl.d.ts +7 -0
  1193. package/dist/views/template-editor/components/controllers/ButtonControls.d.ts +8 -0
  1194. package/dist/views/template-editor/components/controllers/CodeControls.d.ts +8 -0
  1195. package/dist/views/template-editor/components/controllers/DividerControls.d.ts +8 -0
  1196. package/dist/views/template-editor/components/controllers/ImageControls.d.ts +8 -0
  1197. package/dist/views/template-editor/components/controllers/SignatureControls.d.ts +8 -0
  1198. package/dist/views/template-editor/components/controllers/TableControls/index.esm.js +1 -1
  1199. package/dist/views/template-editor/components/controllers/TableControls/index.js +56 -56
  1200. package/dist/views/template-editor/components/controllers/TableControls.d.ts +36 -0
  1201. package/dist/views/template-editor/components/controllers/TextControls.d.ts +21 -0
  1202. package/dist/views/template-editor/components/controllers/border-control.d.ts +13 -0
  1203. package/dist/views/template-editor/components/controllers/index.d.ts +18 -0
  1204. package/dist/views/template-editor/components/index.d.ts +13 -0
  1205. package/dist/views/template-editor/edit-section-modal/edit-section-modal.d.ts +16 -0
  1206. package/dist/views/template-editor/edit-section-modal/index.d.ts +2 -0
  1207. package/dist/views/template-editor/index.d.ts +11 -0
  1208. package/dist/views/template-editor/routes.d.ts +4 -0
  1209. package/dist/views/template-editor/template-modal/html-thumbnail-preview.d.ts +17 -0
  1210. package/dist/views/template-editor/template-modal/index.d.ts +4 -0
  1211. package/dist/views/template-editor/template-modal/template-modal.d.ts +8 -0
  1212. package/dist/views/template-editor/template-name-modal/index.d.ts +2 -0
  1213. package/dist/views/template-editor/template-name-modal/template-name-modal.d.ts +15 -0
  1214. package/dist/views/template-editor/templates/index.esm.js +1 -1
  1215. package/dist/views/template-editor/templates/index.js +3 -3
  1216. package/dist/views/template-editor/templates/index.js.map +1 -1
  1217. package/dist/views/template-editor/templates.d.ts +4 -0
  1218. package/dist/views/template-editor/types/editor.d.ts +32 -0
  1219. package/dist/views/template-editor/types/index.d.ts +1 -0
  1220. package/dist/views/template-editor/utils/common.d.ts +17 -0
  1221. package/dist/views/template-editor/utils/constant.d.ts +136 -0
  1222. package/dist/views/template-editor/utils/default-data/index.esm.js +33 -0
  1223. package/dist/views/template-editor/utils/default-data/index.esm.js.map +1 -0
  1224. package/dist/views/template-editor/utils/default-data/index.js +2 -0
  1225. package/dist/views/template-editor/utils/default-data/index.js.map +1 -0
  1226. package/dist/views/template-editor/utils/default-data.d.ts +7 -0
  1227. package/dist/views/template-editor/utils/index.d.ts +5 -0
  1228. package/dist/views/template-editor/utils/style-extractor.d.ts +11 -0
  1229. package/dist/views/template-editor/utils/types.d.ts +33 -0
  1230. package/dist/vite-env.d.ts +24 -0
  1231. package/package.json +2 -2
  1232. package/src/styles/index.d.ts +1 -0
  1233. package/src/styles/index.ts +1 -146
  1234. package/dist/_virtual/ArrowBack/index.esm.js +0 -5
  1235. package/dist/_virtual/ArrowBack/index.esm.js.map +0 -1
  1236. package/dist/_virtual/ArrowBack/index.js +0 -2
  1237. package/dist/_virtual/ArrowBack/index.js.map +0 -1
  1238. package/dist/_virtual/ArrowForward/index.esm.js +0 -5
  1239. package/dist/_virtual/ArrowForward/index.esm.js.map +0 -1
  1240. package/dist/_virtual/ArrowForward/index.js +0 -2
  1241. package/dist/_virtual/ArrowForward/index.js.map +0 -1
  1242. package/dist/_virtual/IndeterminateCheckBox/index.esm.js +0 -5
  1243. package/dist/_virtual/IndeterminateCheckBox/index.esm.js.map +0 -1
  1244. package/dist/_virtual/IndeterminateCheckBox/index.js +0 -2
  1245. package/dist/_virtual/IndeterminateCheckBox/index.js.map +0 -1
  1246. package/dist/_virtual/NorthEast/index.esm.js +0 -5
  1247. package/dist/_virtual/NorthEast/index.esm.js.map +0 -1
  1248. package/dist/_virtual/NorthEast/index.js +0 -2
  1249. package/dist/_virtual/NorthEast/index.js.map +0 -1
  1250. package/dist/_virtual/Visibility/index.esm.js +0 -5
  1251. package/dist/_virtual/Visibility/index.esm.js.map +0 -1
  1252. package/dist/_virtual/Visibility/index.js +0 -2
  1253. package/dist/_virtual/Visibility/index.js.map +0 -1
  1254. package/dist/components/activity-tag/activity-tag/index.esm.js +0 -154
  1255. package/dist/components/activity-tag/activity-tag/index.esm.js.map +0 -1
  1256. package/dist/components/activity-tag/activity-tag/index.js +0 -15
  1257. package/dist/components/activity-tag/activity-tag/index.js.map +0 -1
  1258. package/dist/components/activityLog/activity-log/index.esm.js +0 -104
  1259. package/dist/components/activityLog/activity-log/index.esm.js.map +0 -1
  1260. package/dist/components/activityLog/activity-log/index.js +0 -14
  1261. package/dist/components/activityLog/activity-log/index.js.map +0 -1
  1262. package/dist/components/button/button.scss/index.esm.js +0 -2
  1263. package/dist/components/button/button.scss/index.esm.js.map +0 -1
  1264. package/dist/components/button/button.scss/index.js +0 -2
  1265. package/dist/components/button/button.scss/index.js.map +0 -1
  1266. package/dist/components/charts/bar-chart/bar-chart/index.esm.js +0 -85
  1267. package/dist/components/charts/bar-chart/bar-chart/index.esm.js.map +0 -1
  1268. package/dist/components/charts/bar-chart/bar-chart/index.js +0 -2
  1269. package/dist/components/charts/bar-chart/bar-chart/index.js.map +0 -1
  1270. package/dist/components/charts/barChart/barChart/index.esm.js +0 -147
  1271. package/dist/components/charts/barChart/barChart/index.esm.js.map +0 -1
  1272. package/dist/components/charts/barChart/barChart/index.js +0 -2
  1273. package/dist/components/charts/barChart/barChart/index.js.map +0 -1
  1274. package/dist/components/charts/donut-chart/donut-chart/index.esm.js +0 -85
  1275. package/dist/components/charts/donut-chart/donut-chart/index.esm.js.map +0 -1
  1276. package/dist/components/charts/donut-chart/donut-chart/index.js +0 -6
  1277. package/dist/components/charts/donut-chart/donut-chart/index.js.map +0 -1
  1278. package/dist/components/charts/donutChart/DonutChart/index.esm.js +0 -96
  1279. package/dist/components/charts/donutChart/DonutChart/index.esm.js.map +0 -1
  1280. package/dist/components/charts/donutChart/DonutChart/index.js +0 -5
  1281. package/dist/components/charts/donutChart/DonutChart/index.js.map +0 -1
  1282. package/dist/components/charts/line-chart/area-line-chart/index.esm.js +0 -40
  1283. package/dist/components/charts/line-chart/area-line-chart/index.esm.js.map +0 -1
  1284. package/dist/components/charts/line-chart/area-line-chart/index.js +0 -2
  1285. package/dist/components/charts/line-chart/area-line-chart/index.js.map +0 -1
  1286. package/dist/components/grid/grid-card/grid-card.scss/index.esm.js +0 -2
  1287. package/dist/components/grid/grid-card/grid-card.scss/index.esm.js.map +0 -1
  1288. package/dist/components/grid/grid-card/grid-card.scss/index.js +0 -2
  1289. package/dist/components/grid/grid-card/grid-card.scss/index.js.map +0 -1
  1290. package/dist/components/list/list.scss/index.esm.js +0 -2
  1291. package/dist/components/list/list.scss/index.esm.js.map +0 -1
  1292. package/dist/components/list/list.scss/index.js +0 -2
  1293. package/dist/components/list/list.scss/index.js.map +0 -1
  1294. package/dist/node_modules/@mui/icons-material/ArrowBack/index.esm.js +0 -18
  1295. package/dist/node_modules/@mui/icons-material/ArrowBack/index.esm.js.map +0 -1
  1296. package/dist/node_modules/@mui/icons-material/ArrowBack/index.js +0 -2
  1297. package/dist/node_modules/@mui/icons-material/ArrowBack/index.js.map +0 -1
  1298. package/dist/node_modules/@mui/icons-material/ArrowForward/index.esm.js +0 -18
  1299. package/dist/node_modules/@mui/icons-material/ArrowForward/index.esm.js.map +0 -1
  1300. package/dist/node_modules/@mui/icons-material/ArrowForward/index.js +0 -2
  1301. package/dist/node_modules/@mui/icons-material/ArrowForward/index.js.map +0 -1
  1302. package/dist/node_modules/@mui/icons-material/IndeterminateCheckBox/index.esm.js +0 -18
  1303. package/dist/node_modules/@mui/icons-material/IndeterminateCheckBox/index.esm.js.map +0 -1
  1304. package/dist/node_modules/@mui/icons-material/IndeterminateCheckBox/index.js +0 -2
  1305. package/dist/node_modules/@mui/icons-material/IndeterminateCheckBox/index.js.map +0 -1
  1306. package/dist/node_modules/@mui/icons-material/NorthEast/index.esm.js +0 -18
  1307. package/dist/node_modules/@mui/icons-material/NorthEast/index.esm.js.map +0 -1
  1308. package/dist/node_modules/@mui/icons-material/NorthEast/index.js +0 -2
  1309. package/dist/node_modules/@mui/icons-material/NorthEast/index.js.map +0 -1
  1310. package/dist/node_modules/@mui/icons-material/Visibility/index.esm.js +0 -18
  1311. package/dist/node_modules/@mui/icons-material/Visibility/index.esm.js.map +0 -1
  1312. package/dist/node_modules/@mui/icons-material/Visibility/index.js +0 -2
  1313. package/dist/node_modules/@mui/icons-material/Visibility/index.js.map +0 -1
  1314. package/dist/node_modules/@mui/lab/Timeline/Timeline/index.esm.js +0 -95
  1315. package/dist/node_modules/@mui/lab/Timeline/Timeline/index.esm.js.map +0 -1
  1316. package/dist/node_modules/@mui/lab/Timeline/Timeline/index.js +0 -3
  1317. package/dist/node_modules/@mui/lab/Timeline/Timeline/index.js.map +0 -1
  1318. package/dist/node_modules/@mui/lab/Timeline/TimelineContext/index.esm.js +0 -10
  1319. package/dist/node_modules/@mui/lab/Timeline/TimelineContext/index.esm.js.map +0 -1
  1320. package/dist/node_modules/@mui/lab/Timeline/TimelineContext/index.js +0 -2
  1321. package/dist/node_modules/@mui/lab/Timeline/TimelineContext/index.js.map +0 -1
  1322. package/dist/node_modules/@mui/lab/Timeline/timelineClasses/index.esm.js +0 -10
  1323. package/dist/node_modules/@mui/lab/Timeline/timelineClasses/index.esm.js.map +0 -1
  1324. package/dist/node_modules/@mui/lab/Timeline/timelineClasses/index.js +0 -2
  1325. package/dist/node_modules/@mui/lab/Timeline/timelineClasses/index.js.map +0 -1
  1326. package/dist/node_modules/@mui/lab/TimelineConnector/TimelineConnector/index.esm.js +0 -76
  1327. package/dist/node_modules/@mui/lab/TimelineConnector/TimelineConnector/index.esm.js.map +0 -1
  1328. package/dist/node_modules/@mui/lab/TimelineConnector/TimelineConnector/index.js +0 -3
  1329. package/dist/node_modules/@mui/lab/TimelineConnector/TimelineConnector/index.js.map +0 -1
  1330. package/dist/node_modules/@mui/lab/TimelineConnector/timelineConnectorClasses/index.esm.js +0 -10
  1331. package/dist/node_modules/@mui/lab/TimelineConnector/timelineConnectorClasses/index.esm.js.map +0 -1
  1332. package/dist/node_modules/@mui/lab/TimelineConnector/timelineConnectorClasses/index.js +0 -2
  1333. package/dist/node_modules/@mui/lab/TimelineConnector/timelineConnectorClasses/index.js.map +0 -1
  1334. package/dist/node_modules/@mui/lab/TimelineContent/TimelineContent/index.esm.js +0 -91
  1335. package/dist/node_modules/@mui/lab/TimelineContent/TimelineContent/index.esm.js.map +0 -1
  1336. package/dist/node_modules/@mui/lab/TimelineContent/TimelineContent/index.js +0 -3
  1337. package/dist/node_modules/@mui/lab/TimelineContent/TimelineContent/index.js.map +0 -1
  1338. package/dist/node_modules/@mui/lab/TimelineContent/timelineContentClasses/index.esm.js +0 -11
  1339. package/dist/node_modules/@mui/lab/TimelineContent/timelineContentClasses/index.esm.js.map +0 -1
  1340. package/dist/node_modules/@mui/lab/TimelineContent/timelineContentClasses/index.js +0 -2
  1341. package/dist/node_modules/@mui/lab/TimelineContent/timelineContentClasses/index.js.map +0 -1
  1342. package/dist/node_modules/@mui/lab/TimelineDot/TimelineDot/index.esm.js +0 -118
  1343. package/dist/node_modules/@mui/lab/TimelineDot/TimelineDot/index.esm.js.map +0 -1
  1344. package/dist/node_modules/@mui/lab/TimelineDot/TimelineDot/index.js +0 -3
  1345. package/dist/node_modules/@mui/lab/TimelineDot/TimelineDot/index.js.map +0 -1
  1346. package/dist/node_modules/@mui/lab/TimelineDot/timelineDotClasses/index.esm.js +0 -10
  1347. package/dist/node_modules/@mui/lab/TimelineDot/timelineDotClasses/index.esm.js.map +0 -1
  1348. package/dist/node_modules/@mui/lab/TimelineDot/timelineDotClasses/index.js +0 -2
  1349. package/dist/node_modules/@mui/lab/TimelineDot/timelineDotClasses/index.js.map +0 -1
  1350. package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.esm.js +0 -128
  1351. package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.esm.js.map +0 -1
  1352. package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.js +0 -3
  1353. package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.js.map +0 -1
  1354. package/dist/node_modules/@mui/lab/TimelineItem/timelineItemClasses/index.esm.js +0 -10
  1355. package/dist/node_modules/@mui/lab/TimelineItem/timelineItemClasses/index.esm.js.map +0 -1
  1356. package/dist/node_modules/@mui/lab/TimelineItem/timelineItemClasses/index.js +0 -2
  1357. package/dist/node_modules/@mui/lab/TimelineItem/timelineItemClasses/index.js.map +0 -1
  1358. package/dist/node_modules/@mui/lab/TimelineOppositeContent/timelineOppositeContentClasses/index.esm.js +0 -6
  1359. package/dist/node_modules/@mui/lab/TimelineOppositeContent/timelineOppositeContentClasses/index.esm.js.map +0 -1
  1360. package/dist/node_modules/@mui/lab/TimelineOppositeContent/timelineOppositeContentClasses/index.js +0 -2
  1361. package/dist/node_modules/@mui/lab/TimelineOppositeContent/timelineOppositeContentClasses/index.js.map +0 -1
  1362. package/dist/node_modules/@mui/lab/TimelineSeparator/TimelineSeparator/index.esm.js +0 -73
  1363. package/dist/node_modules/@mui/lab/TimelineSeparator/TimelineSeparator/index.esm.js.map +0 -1
  1364. package/dist/node_modules/@mui/lab/TimelineSeparator/TimelineSeparator/index.js +0 -3
  1365. package/dist/node_modules/@mui/lab/TimelineSeparator/TimelineSeparator/index.js.map +0 -1
  1366. package/dist/node_modules/@mui/lab/TimelineSeparator/timelineSeparatorClasses/index.esm.js +0 -10
  1367. package/dist/node_modules/@mui/lab/TimelineSeparator/timelineSeparatorClasses/index.esm.js.map +0 -1
  1368. package/dist/node_modules/@mui/lab/TimelineSeparator/timelineSeparatorClasses/index.js +0 -2
  1369. package/dist/node_modules/@mui/lab/TimelineSeparator/timelineSeparatorClasses/index.js.map +0 -1
  1370. package/dist/node_modules/@mui/lab/internal/convertTimelinePositionToClass/index.esm.js +0 -8
  1371. package/dist/node_modules/@mui/lab/internal/convertTimelinePositionToClass/index.esm.js.map +0 -1
  1372. package/dist/node_modules/@mui/lab/internal/convertTimelinePositionToClass/index.js +0 -2
  1373. package/dist/node_modules/@mui/lab/internal/convertTimelinePositionToClass/index.js.map +0 -1
  1374. package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.esm.js +0 -95
  1375. package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.esm.js.map +0 -1
  1376. package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.js +0 -3
  1377. package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.js.map +0 -1
  1378. package/dist/node_modules/@mui/material/AccordionActions/accordionActionsClasses/index.esm.js +0 -10
  1379. package/dist/node_modules/@mui/material/AccordionActions/accordionActionsClasses/index.esm.js.map +0 -1
  1380. package/dist/node_modules/@mui/material/AccordionActions/accordionActionsClasses/index.js +0 -2
  1381. package/dist/node_modules/@mui/material/AccordionActions/accordionActionsClasses/index.js.map +0 -1
  1382. package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.esm.js +0 -201
  1383. package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.esm.js.map +0 -1
  1384. package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.js +0 -3
  1385. package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.js.map +0 -1
  1386. package/dist/node_modules/@mui/material/AvatarGroup/avatarGroupClasses/index.esm.js +0 -11
  1387. package/dist/node_modules/@mui/material/AvatarGroup/avatarGroupClasses/index.esm.js.map +0 -1
  1388. package/dist/node_modules/@mui/material/AvatarGroup/avatarGroupClasses/index.js +0 -2
  1389. package/dist/node_modules/@mui/material/AvatarGroup/avatarGroupClasses/index.js.map +0 -1
  1390. package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.esm.js +0 -125
  1391. package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.esm.js.map +0 -1
  1392. package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.js +0 -4
  1393. package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.js.map +0 -1
  1394. package/dist/node_modules/@mui/material/BottomNavigation/bottomNavigationClasses/index.esm.js +0 -10
  1395. package/dist/node_modules/@mui/material/BottomNavigation/bottomNavigationClasses/index.esm.js.map +0 -1
  1396. package/dist/node_modules/@mui/material/BottomNavigation/bottomNavigationClasses/index.js +0 -2
  1397. package/dist/node_modules/@mui/material/BottomNavigation/bottomNavigationClasses/index.js.map +0 -1
  1398. package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.esm.js +0 -170
  1399. package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.esm.js.map +0 -1
  1400. package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.js +0 -3
  1401. package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.js.map +0 -1
  1402. package/dist/node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses/index.esm.js +0 -11
  1403. package/dist/node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses/index.esm.js.map +0 -1
  1404. package/dist/node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses/index.js +0 -2
  1405. package/dist/node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses/index.js.map +0 -1
  1406. package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.esm.js +0 -120
  1407. package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.esm.js.map +0 -1
  1408. package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.js +0 -3
  1409. package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.js.map +0 -1
  1410. package/dist/node_modules/@mui/material/CardActionArea/cardActionAreaClasses/index.esm.js +0 -11
  1411. package/dist/node_modules/@mui/material/CardActionArea/cardActionAreaClasses/index.esm.js.map +0 -1
  1412. package/dist/node_modules/@mui/material/CardActionArea/cardActionAreaClasses/index.js +0 -2
  1413. package/dist/node_modules/@mui/material/CardActionArea/cardActionAreaClasses/index.js.map +0 -1
  1414. package/dist/node_modules/@mui/material/CardActions/CardActions/index.esm.js +0 -92
  1415. package/dist/node_modules/@mui/material/CardActions/CardActions/index.esm.js.map +0 -1
  1416. package/dist/node_modules/@mui/material/CardActions/CardActions/index.js +0 -3
  1417. package/dist/node_modules/@mui/material/CardActions/CardActions/index.js.map +0 -1
  1418. package/dist/node_modules/@mui/material/CardActions/cardActionsClasses/index.esm.js +0 -10
  1419. package/dist/node_modules/@mui/material/CardActions/cardActionsClasses/index.esm.js.map +0 -1
  1420. package/dist/node_modules/@mui/material/CardActions/cardActionsClasses/index.js +0 -2
  1421. package/dist/node_modules/@mui/material/CardActions/cardActionsClasses/index.js.map +0 -1
  1422. package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.esm.js +0 -196
  1423. package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.esm.js.map +0 -1
  1424. package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.js +0 -2
  1425. package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.js.map +0 -1
  1426. package/dist/node_modules/@mui/material/CardHeader/cardHeaderClasses/index.esm.js +0 -11
  1427. package/dist/node_modules/@mui/material/CardHeader/cardHeaderClasses/index.esm.js.map +0 -1
  1428. package/dist/node_modules/@mui/material/CardHeader/cardHeaderClasses/index.js +0 -2
  1429. package/dist/node_modules/@mui/material/CardHeader/cardHeaderClasses/index.js.map +0 -1
  1430. package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.esm.js +0 -76
  1431. package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.esm.js.map +0 -1
  1432. package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.js +0 -3
  1433. package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.js.map +0 -1
  1434. package/dist/node_modules/@mui/material/DialogContentText/dialogContentTextClasses/index.esm.js +0 -10
  1435. package/dist/node_modules/@mui/material/DialogContentText/dialogContentTextClasses/index.esm.js.map +0 -1
  1436. package/dist/node_modules/@mui/material/DialogContentText/dialogContentTextClasses/index.js +0 -2
  1437. package/dist/node_modules/@mui/material/DialogContentText/dialogContentTextClasses/index.js.map +0 -1
  1438. package/dist/node_modules/@mui/material/Fab/Fab/index.esm.js +0 -231
  1439. package/dist/node_modules/@mui/material/Fab/Fab/index.esm.js.map +0 -1
  1440. package/dist/node_modules/@mui/material/Fab/Fab/index.js +0 -3
  1441. package/dist/node_modules/@mui/material/Fab/Fab/index.js.map +0 -1
  1442. package/dist/node_modules/@mui/material/Fab/fabClasses/index.esm.js +0 -11
  1443. package/dist/node_modules/@mui/material/Fab/fabClasses/index.esm.js.map +0 -1
  1444. package/dist/node_modules/@mui/material/Fab/fabClasses/index.js +0 -2
  1445. package/dist/node_modules/@mui/material/Fab/fabClasses/index.js.map +0 -1
  1446. package/dist/node_modules/@mui/material/Hidden/Hidden/index.esm.js +0 -135
  1447. package/dist/node_modules/@mui/material/Hidden/Hidden/index.esm.js.map +0 -1
  1448. package/dist/node_modules/@mui/material/Hidden/Hidden/index.js +0 -2
  1449. package/dist/node_modules/@mui/material/Hidden/Hidden/index.js.map +0 -1
  1450. package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.esm.js +0 -176
  1451. package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.esm.js.map +0 -1
  1452. package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.js +0 -3
  1453. package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.js.map +0 -1
  1454. package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.esm.js +0 -119
  1455. package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.esm.js.map +0 -1
  1456. package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.js +0 -2
  1457. package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.js.map +0 -1
  1458. package/dist/node_modules/@mui/material/Hidden/hiddenCssClasses/index.esm.js +0 -10
  1459. package/dist/node_modules/@mui/material/Hidden/hiddenCssClasses/index.esm.js.map +0 -1
  1460. package/dist/node_modules/@mui/material/Hidden/hiddenCssClasses/index.js +0 -2
  1461. package/dist/node_modules/@mui/material/Hidden/hiddenCssClasses/index.js.map +0 -1
  1462. package/dist/node_modules/@mui/material/Hidden/withWidth/index.esm.js +0 -92
  1463. package/dist/node_modules/@mui/material/Hidden/withWidth/index.esm.js.map +0 -1
  1464. package/dist/node_modules/@mui/material/Hidden/withWidth/index.js +0 -2
  1465. package/dist/node_modules/@mui/material/Hidden/withWidth/index.js.map +0 -1
  1466. package/dist/node_modules/@mui/material/ImageList/ImageList/index.esm.js +0 -156
  1467. package/dist/node_modules/@mui/material/ImageList/ImageList/index.esm.js.map +0 -1
  1468. package/dist/node_modules/@mui/material/ImageList/ImageList/index.js +0 -3
  1469. package/dist/node_modules/@mui/material/ImageList/ImageList/index.js.map +0 -1
  1470. package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.esm.js +0 -10
  1471. package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.esm.js.map +0 -1
  1472. package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.js +0 -2
  1473. package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.js.map +0 -1
  1474. package/dist/node_modules/@mui/material/ImageList/imageListClasses/index.esm.js +0 -10
  1475. package/dist/node_modules/@mui/material/ImageList/imageListClasses/index.esm.js.map +0 -1
  1476. package/dist/node_modules/@mui/material/ImageList/imageListClasses/index.js +0 -2
  1477. package/dist/node_modules/@mui/material/ImageList/imageListClasses/index.js.map +0 -1
  1478. package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.esm.js +0 -173
  1479. package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.esm.js.map +0 -1
  1480. package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.js +0 -3
  1481. package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.js.map +0 -1
  1482. package/dist/node_modules/@mui/material/ImageListItem/imageListItemClasses/index.esm.js +0 -11
  1483. package/dist/node_modules/@mui/material/ImageListItem/imageListItemClasses/index.esm.js.map +0 -1
  1484. package/dist/node_modules/@mui/material/ImageListItem/imageListItemClasses/index.js +0 -2
  1485. package/dist/node_modules/@mui/material/ImageListItem/imageListItemClasses/index.js.map +0 -1
  1486. package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.esm.js +0 -222
  1487. package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.esm.js.map +0 -1
  1488. package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.js +0 -3
  1489. package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.js.map +0 -1
  1490. package/dist/node_modules/@mui/material/ImageListItemBar/imageListItemBarClasses/index.esm.js +0 -10
  1491. package/dist/node_modules/@mui/material/ImageListItemBar/imageListItemBarClasses/index.esm.js.map +0 -1
  1492. package/dist/node_modules/@mui/material/ImageListItemBar/imageListItemBarClasses/index.js +0 -2
  1493. package/dist/node_modules/@mui/material/ImageListItemBar/imageListItemBarClasses/index.js.map +0 -1
  1494. package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.esm.js +0 -216
  1495. package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.esm.js.map +0 -1
  1496. package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.js +0 -3
  1497. package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.js.map +0 -1
  1498. package/dist/node_modules/@mui/material/MobileStepper/mobileStepperClasses/index.esm.js +0 -10
  1499. package/dist/node_modules/@mui/material/MobileStepper/mobileStepperClasses/index.esm.js.map +0 -1
  1500. package/dist/node_modules/@mui/material/MobileStepper/mobileStepperClasses/index.js +0 -2
  1501. package/dist/node_modules/@mui/material/MobileStepper/mobileStepperClasses/index.js.map +0 -1
  1502. package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.esm.js +0 -126
  1503. package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.esm.js.map +0 -1
  1504. package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.js +0 -3
  1505. package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.js.map +0 -1
  1506. package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.esm.js +0 -55
  1507. package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.esm.js.map +0 -1
  1508. package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.js +0 -2
  1509. package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.js.map +0 -1
  1510. package/dist/node_modules/@mui/material/Rating/Rating/index.esm.js +0 -638
  1511. package/dist/node_modules/@mui/material/Rating/Rating/index.esm.js.map +0 -1
  1512. package/dist/node_modules/@mui/material/Rating/Rating/index.js +0 -7
  1513. package/dist/node_modules/@mui/material/Rating/Rating/index.js.map +0 -1
  1514. package/dist/node_modules/@mui/material/Rating/ratingClasses/index.esm.js +0 -11
  1515. package/dist/node_modules/@mui/material/Rating/ratingClasses/index.esm.js.map +0 -1
  1516. package/dist/node_modules/@mui/material/Rating/ratingClasses/index.js +0 -2
  1517. package/dist/node_modules/@mui/material/Rating/ratingClasses/index.js.map +0 -1
  1518. package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.esm.js +0 -105
  1519. package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.esm.js.map +0 -1
  1520. package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.js +0 -3
  1521. package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.js.map +0 -1
  1522. package/dist/node_modules/@mui/material/ScopedCssBaseline/scopedCssBaselineClasses/index.esm.js +0 -10
  1523. package/dist/node_modules/@mui/material/ScopedCssBaseline/scopedCssBaselineClasses/index.esm.js.map +0 -1
  1524. package/dist/node_modules/@mui/material/ScopedCssBaseline/scopedCssBaselineClasses/index.js +0 -2
  1525. package/dist/node_modules/@mui/material/ScopedCssBaseline/scopedCssBaselineClasses/index.js.map +0 -1
  1526. package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.esm.js +0 -453
  1527. package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.esm.js.map +0 -1
  1528. package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.js +0 -4
  1529. package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.js.map +0 -1
  1530. package/dist/node_modules/@mui/material/SpeedDial/speedDialClasses/index.esm.js +0 -11
  1531. package/dist/node_modules/@mui/material/SpeedDial/speedDialClasses/index.esm.js.map +0 -1
  1532. package/dist/node_modules/@mui/material/SpeedDial/speedDialClasses/index.js +0 -2
  1533. package/dist/node_modules/@mui/material/SpeedDial/speedDialClasses/index.js.map +0 -1
  1534. package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.esm.js +0 -245
  1535. package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.esm.js.map +0 -1
  1536. package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.js +0 -2
  1537. package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.js.map +0 -1
  1538. package/dist/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses/index.esm.js +0 -11
  1539. package/dist/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses/index.esm.js.map +0 -1
  1540. package/dist/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses/index.js +0 -2
  1541. package/dist/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses/index.js.map +0 -1
  1542. package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.esm.js +0 -137
  1543. package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.esm.js.map +0 -1
  1544. package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.js +0 -4
  1545. package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.js.map +0 -1
  1546. package/dist/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses/index.esm.js +0 -11
  1547. package/dist/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses/index.esm.js.map +0 -1
  1548. package/dist/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses/index.js +0 -2
  1549. package/dist/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses/index.js.map +0 -1
  1550. package/dist/node_modules/@mui/material/Step/Step/index.esm.js +0 -169
  1551. package/dist/node_modules/@mui/material/Step/Step/index.esm.js.map +0 -1
  1552. package/dist/node_modules/@mui/material/Step/Step/index.js +0 -3
  1553. package/dist/node_modules/@mui/material/Step/Step/index.js.map +0 -1
  1554. package/dist/node_modules/@mui/material/Step/StepContext/index.esm.js +0 -10
  1555. package/dist/node_modules/@mui/material/Step/StepContext/index.esm.js.map +0 -1
  1556. package/dist/node_modules/@mui/material/Step/StepContext/index.js +0 -2
  1557. package/dist/node_modules/@mui/material/Step/StepContext/index.js.map +0 -1
  1558. package/dist/node_modules/@mui/material/Step/stepClasses/index.esm.js +0 -10
  1559. package/dist/node_modules/@mui/material/Step/stepClasses/index.esm.js.map +0 -1
  1560. package/dist/node_modules/@mui/material/Step/stepClasses/index.js +0 -2
  1561. package/dist/node_modules/@mui/material/Step/stepClasses/index.js.map +0 -1
  1562. package/dist/node_modules/@mui/material/StepButton/StepButton/index.esm.js +0 -132
  1563. package/dist/node_modules/@mui/material/StepButton/StepButton/index.esm.js.map +0 -1
  1564. package/dist/node_modules/@mui/material/StepButton/StepButton/index.js +0 -3
  1565. package/dist/node_modules/@mui/material/StepButton/StepButton/index.js.map +0 -1
  1566. package/dist/node_modules/@mui/material/StepButton/stepButtonClasses/index.esm.js +0 -11
  1567. package/dist/node_modules/@mui/material/StepButton/stepButtonClasses/index.esm.js.map +0 -1
  1568. package/dist/node_modules/@mui/material/StepButton/stepButtonClasses/index.js +0 -2
  1569. package/dist/node_modules/@mui/material/StepButton/stepButtonClasses/index.js.map +0 -1
  1570. package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.esm.js +0 -136
  1571. package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.esm.js.map +0 -1
  1572. package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.js +0 -3
  1573. package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.js.map +0 -1
  1574. package/dist/node_modules/@mui/material/StepConnector/stepConnectorClasses/index.esm.js +0 -10
  1575. package/dist/node_modules/@mui/material/StepConnector/stepConnectorClasses/index.esm.js.map +0 -1
  1576. package/dist/node_modules/@mui/material/StepConnector/stepConnectorClasses/index.js +0 -2
  1577. package/dist/node_modules/@mui/material/StepConnector/stepConnectorClasses/index.js.map +0 -1
  1578. package/dist/node_modules/@mui/material/StepContent/StepContent/index.esm.js +0 -152
  1579. package/dist/node_modules/@mui/material/StepContent/StepContent/index.esm.js.map +0 -1
  1580. package/dist/node_modules/@mui/material/StepContent/StepContent/index.js +0 -2
  1581. package/dist/node_modules/@mui/material/StepContent/StepContent/index.js.map +0 -1
  1582. package/dist/node_modules/@mui/material/StepContent/stepContentClasses/index.esm.js +0 -10
  1583. package/dist/node_modules/@mui/material/StepContent/stepContentClasses/index.esm.js.map +0 -1
  1584. package/dist/node_modules/@mui/material/StepContent/stepContentClasses/index.js +0 -2
  1585. package/dist/node_modules/@mui/material/StepContent/stepContentClasses/index.js.map +0 -1
  1586. package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.esm.js +0 -161
  1587. package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.esm.js.map +0 -1
  1588. package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.js +0 -2
  1589. package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.js.map +0 -1
  1590. package/dist/node_modules/@mui/material/StepIcon/stepIconClasses/index.esm.js +0 -11
  1591. package/dist/node_modules/@mui/material/StepIcon/stepIconClasses/index.esm.js.map +0 -1
  1592. package/dist/node_modules/@mui/material/StepIcon/stepIconClasses/index.js +0 -2
  1593. package/dist/node_modules/@mui/material/StepIcon/stepIconClasses/index.js.map +0 -1
  1594. package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.esm.js +0 -239
  1595. package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.esm.js.map +0 -1
  1596. package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.js +0 -3
  1597. package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.js.map +0 -1
  1598. package/dist/node_modules/@mui/material/StepLabel/stepLabelClasses/index.esm.js +0 -11
  1599. package/dist/node_modules/@mui/material/StepLabel/stepLabelClasses/index.esm.js.map +0 -1
  1600. package/dist/node_modules/@mui/material/StepLabel/stepLabelClasses/index.js +0 -2
  1601. package/dist/node_modules/@mui/material/StepLabel/stepLabelClasses/index.js.map +0 -1
  1602. package/dist/node_modules/@mui/material/Stepper/Stepper/index.esm.js +0 -155
  1603. package/dist/node_modules/@mui/material/Stepper/Stepper/index.esm.js.map +0 -1
  1604. package/dist/node_modules/@mui/material/Stepper/Stepper/index.js +0 -3
  1605. package/dist/node_modules/@mui/material/Stepper/Stepper/index.js.map +0 -1
  1606. package/dist/node_modules/@mui/material/Stepper/StepperContext/index.esm.js +0 -10
  1607. package/dist/node_modules/@mui/material/Stepper/StepperContext/index.esm.js.map +0 -1
  1608. package/dist/node_modules/@mui/material/Stepper/StepperContext/index.js +0 -2
  1609. package/dist/node_modules/@mui/material/Stepper/StepperContext/index.js.map +0 -1
  1610. package/dist/node_modules/@mui/material/Stepper/stepperClasses/index.esm.js +0 -10
  1611. package/dist/node_modules/@mui/material/Stepper/stepperClasses/index.esm.js.map +0 -1
  1612. package/dist/node_modules/@mui/material/Stepper/stepperClasses/index.js +0 -2
  1613. package/dist/node_modules/@mui/material/Stepper/stepperClasses/index.js.map +0 -1
  1614. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.esm.js +0 -82
  1615. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.esm.js.map +0 -1
  1616. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.js +0 -3
  1617. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.js.map +0 -1
  1618. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.esm.js +0 -538
  1619. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.esm.js.map +0 -1
  1620. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.js +0 -2
  1621. package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.js.map +0 -1
  1622. package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.esm.js +0 -443
  1623. package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.esm.js.map +0 -1
  1624. package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.js +0 -3
  1625. package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.js.map +0 -1
  1626. package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.esm.js +0 -179
  1627. package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.esm.js.map +0 -1
  1628. package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.js +0 -3
  1629. package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.js.map +0 -1
  1630. package/dist/node_modules/@mui/material/TablePagination/tablePaginationClasses/index.esm.js +0 -11
  1631. package/dist/node_modules/@mui/material/TablePagination/tablePaginationClasses/index.esm.js.map +0 -1
  1632. package/dist/node_modules/@mui/material/TablePagination/tablePaginationClasses/index.js +0 -2
  1633. package/dist/node_modules/@mui/material/TablePagination/tablePaginationClasses/index.js.map +0 -1
  1634. package/dist/node_modules/@mui/material/Zoom/Zoom/index.esm.js +0 -196
  1635. package/dist/node_modules/@mui/material/Zoom/Zoom/index.esm.js.map +0 -1
  1636. package/dist/node_modules/@mui/material/Zoom/Zoom/index.js +0 -3
  1637. package/dist/node_modules/@mui/material/Zoom/Zoom/index.js.map +0 -1
  1638. package/dist/node_modules/@mui/material/internal/svg-icons/Add/index.esm.js +0 -9
  1639. package/dist/node_modules/@mui/material/internal/svg-icons/Add/index.esm.js.map +0 -1
  1640. package/dist/node_modules/@mui/material/internal/svg-icons/Add/index.js +0 -2
  1641. package/dist/node_modules/@mui/material/internal/svg-icons/Add/index.js.map +0 -1
  1642. package/dist/node_modules/@mui/material/internal/svg-icons/CheckCircle/index.esm.js +0 -9
  1643. package/dist/node_modules/@mui/material/internal/svg-icons/CheckCircle/index.esm.js.map +0 -1
  1644. package/dist/node_modules/@mui/material/internal/svg-icons/CheckCircle/index.js +0 -2
  1645. package/dist/node_modules/@mui/material/internal/svg-icons/CheckCircle/index.js.map +0 -1
  1646. package/dist/node_modules/@mui/material/internal/svg-icons/Star/index.esm.js +0 -9
  1647. package/dist/node_modules/@mui/material/internal/svg-icons/Star/index.esm.js.map +0 -1
  1648. package/dist/node_modules/@mui/material/internal/svg-icons/Star/index.js +0 -2
  1649. package/dist/node_modules/@mui/material/internal/svg-icons/Star/index.js.map +0 -1
  1650. package/dist/node_modules/@mui/material/internal/svg-icons/StarBorder/index.esm.js +0 -9
  1651. package/dist/node_modules/@mui/material/internal/svg-icons/StarBorder/index.esm.js.map +0 -1
  1652. package/dist/node_modules/@mui/material/internal/svg-icons/StarBorder/index.js +0 -2
  1653. package/dist/node_modules/@mui/material/internal/svg-icons/StarBorder/index.js.map +0 -1
  1654. package/dist/node_modules/@mui/material/internal/svg-icons/Warning/index.esm.js +0 -9
  1655. package/dist/node_modules/@mui/material/internal/svg-icons/Warning/index.esm.js.map +0 -1
  1656. package/dist/node_modules/@mui/material/internal/svg-icons/Warning/index.js +0 -2
  1657. package/dist/node_modules/@mui/material/internal/svg-icons/Warning/index.js.map +0 -1
  1658. package/dist/node_modules/@mui/material/useScrollTrigger/useScrollTrigger/index.esm.js +0 -51
  1659. package/dist/node_modules/@mui/material/useScrollTrigger/useScrollTrigger/index.esm.js.map +0 -1
  1660. package/dist/node_modules/@mui/material/useScrollTrigger/useScrollTrigger/index.js +0 -2
  1661. package/dist/node_modules/@mui/material/useScrollTrigger/useScrollTrigger/index.js.map +0 -1
  1662. package/dist/node_modules/d3-shape/src/arc/index.esm.js +0 -134
  1663. package/dist/node_modules/d3-shape/src/arc/index.esm.js.map +0 -1
  1664. package/dist/node_modules/d3-shape/src/arc/index.js +0 -2
  1665. package/dist/node_modules/d3-shape/src/arc/index.js.map +0 -1
  1666. package/dist/node_modules/d3-shape/src/descending/index.esm.js +0 -7
  1667. package/dist/node_modules/d3-shape/src/descending/index.esm.js.map +0 -1
  1668. package/dist/node_modules/d3-shape/src/descending/index.js +0 -2
  1669. package/dist/node_modules/d3-shape/src/descending/index.js.map +0 -1
  1670. package/dist/node_modules/d3-shape/src/identity/index.esm.js +0 -7
  1671. package/dist/node_modules/d3-shape/src/identity/index.esm.js.map +0 -1
  1672. package/dist/node_modules/d3-shape/src/identity/index.js +0 -2
  1673. package/dist/node_modules/d3-shape/src/identity/index.js.map +0 -1
  1674. package/dist/node_modules/d3-shape/src/math/index.esm.js +0 -33
  1675. package/dist/node_modules/d3-shape/src/math/index.esm.js.map +0 -1
  1676. package/dist/node_modules/d3-shape/src/math/index.js +0 -2
  1677. package/dist/node_modules/d3-shape/src/math/index.js.map +0 -1
  1678. package/dist/node_modules/d3-shape/src/pie/index.esm.js +0 -56
  1679. package/dist/node_modules/d3-shape/src/pie/index.esm.js.map +0 -1
  1680. package/dist/node_modules/d3-shape/src/pie/index.js +0 -2
  1681. package/dist/node_modules/d3-shape/src/pie/index.js.map +0 -1
  1682. package/dist/src/components/form-control/form-builder/form-builder-element/number-input.d.ts +0 -0
  1683. package/dist/src/views/afterAuth/accounting.d.ts +0 -4
  1684. package/dist/src/views/afterAuth/crm.d.ts +0 -4
  1685. package/dist/src/views/afterAuth/document.d.ts +0 -4
  1686. package/dist/src/views/afterAuth/hrms.d.ts +0 -4
  1687. package/dist/src/views/afterAuth/inventory.d.ts +0 -4
  1688. package/dist/src/views/afterAuth/manufacturing.d.ts +0 -4
  1689. package/dist/src/views/afterAuth/office.d.ts +0 -4
  1690. package/dist/src/views/afterAuth/procurement.d.ts +0 -4
  1691. package/dist/src/views/afterAuth/project.d.ts +0 -4
  1692. package/dist/src/views/afterAuth/purchase.d.ts +0 -4
  1693. package/dist/src/views/afterAuth/quotes.d.ts +0 -4
  1694. package/dist/src/views/afterAuth/rental.d.ts +0 -4
  1695. package/dist/src/views/afterAuth/user.d.ts +0 -4
  1696. package/dist/src/views/beforeAuth/components/user-profile-data/user-profile-data.d.ts +0 -9
  1697. package/dist/styles/sass/_mixins.scss/index.esm.js +0 -2
  1698. package/dist/styles/sass/_mixins.scss/index.esm.js.map +0 -1
  1699. package/dist/styles/sass/_mixins.scss/index.js +0 -2
  1700. package/dist/styles/sass/_mixins.scss/index.js.map +0 -1
  1701. package/dist/styles/sass/_variables.scss/index.esm.js +0 -2
  1702. package/dist/styles/sass/_variables.scss/index.esm.js.map +0 -1
  1703. package/dist/styles/sass/_variables.scss/index.js +0 -2
  1704. package/dist/styles/sass/_variables.scss/index.js.map +0 -1
  1705. package/dist/views/beforeAuth/components/index/index.esm.js +0 -1144
  1706. package/dist/views/beforeAuth/components/index/index.esm.js.map +0 -1
  1707. package/dist/views/beforeAuth/components/index/index.js +0 -206
  1708. package/dist/views/beforeAuth/components/index/index.js.map +0 -1
  1709. package/dist/views/beforeAuth/login/index.scss/index.esm.js +0 -2
  1710. package/dist/views/beforeAuth/login/index.scss/index.esm.js.map +0 -1
  1711. package/dist/views/beforeAuth/login/index.scss/index.js +0 -2
  1712. package/dist/views/beforeAuth/login/index.scss/index.js.map +0 -1
  1713. package/dist/views/form-builder/index/index.esm.js +0 -32
  1714. package/dist/views/form-builder/index/index.esm.js.map +0 -1
  1715. package/dist/views/form-builder/index/index.js +0 -2
  1716. package/dist/views/form-builder/index/index.js.map +0 -1
@@ -0,0 +1,41 @@
1
+ import { getCountries } from 'libphonenumber-js';
2
+
3
+ export declare const formatNumber: (num: number, defaultCurrencySymbol?: string) => string;
4
+ export declare function formateDate(date: any, format?: string): string;
5
+ export declare function capitalizeWords(str: any): any;
6
+ export declare const defaultUserCurrency: () => string;
7
+ export declare const valueWithCurrency: (value: any) => string;
8
+ export declare const sortData: (data: any[], key: string, direction: string) => any[];
9
+ export declare function recursiveSort(data: any[], nestedKeys: any[], header: string, direction: string): any;
10
+ export declare function formatTime(isoString: string, format?: string): string;
11
+ type Nullable<T> = {
12
+ [P in keyof T]: T[P] extends object ? Nullable<T[P]> : T[P] | null;
13
+ };
14
+ export declare function convertEmptyToNull<T extends Record<string, any>>(obj: T): Nullable<T>;
15
+ export declare function removeExtraKeys(data: any, extraKeys?: any[]): any;
16
+ export declare const apiType: {
17
+ company: () => Promise<any[]>;
18
+ items: () => Promise<any[]>;
19
+ currency: () => Promise<any[]>;
20
+ salesperson: () => Promise<any[]>;
21
+ party: () => Promise<any[]>;
22
+ department: () => Promise<any[]>;
23
+ location: () => Promise<any[]>;
24
+ uom: () => Promise<any[]>;
25
+ discountedItems: () => Promise<any[]>;
26
+ taxTemplate: () => Promise<any[]>;
27
+ paymentTerm: () => Promise<any[]>;
28
+ incoTerms: () => Promise<any[]>;
29
+ shippingRules: () => Promise<any[]>;
30
+ bins: () => Promise<any[]>;
31
+ agreement: () => Promise<any[]>;
32
+ accounts: () => Promise<any[]>;
33
+ invoices: () => Promise<any[]>;
34
+ purchaseOrderReceipts: () => Promise<any[]>;
35
+ representatives: () => Promise<any[]>;
36
+ industry: () => Promise<any[]>;
37
+ categoryItems: () => Promise<any[]>;
38
+ customerSegment: () => Promise<any[]>;
39
+ countries: typeof getCountries;
40
+ };
41
+ export {};
@@ -1,28 +1,18 @@
1
- // Hook exports - named exports
2
- export { useLanguage } from './useLangauge';
3
- export { useAuth } from './useAuth';
4
- export { usePages } from './use-pages';
5
- export { usePermissions } from './use-permissions';
6
-
7
- // Hook exports - default exports
1
+ export * from './apiHelper';
2
+ export * from './common';
8
3
  export { default as useDeepMemo } from './use-deep-memo';
9
- export { default as useMaterialCalculations } from './use-material-calculations';
10
- export type {
11
- BaseFormValues,
12
- MaterialCalculations,
13
- SteelType,
14
- TubeType,
15
- CalculationResult,
16
- } from './use-material-calculations';
17
- export { default as useLanguageFallback } from './useLanguageFallback';
18
- export type { ILanguage, FallbackConfig } from './useLanguageFallback';
19
-
20
- export { default as useLocationFilter } from './useLocationFilter';
21
- export { default as useCheckSkuAndName } from './useCheckSkuAndName';
22
- export { default as useDataFetcher } from './useDataFetcher';
4
+ export * from './use-deep-memo';
5
+ export * from './use-material-calculations';
6
+ export * from './use-pages';
7
+ export * from './use-permissions';
23
8
  export { default as useAppTranslations } from './use-translations';
24
-
25
- // Common hook utilities
26
- export * from './common';
27
- export { default as apiHelper } from './apiHelper';
28
- export * from './useDataFetcher';
9
+ export * from './use-translations';
10
+ export * from './useAuth';
11
+ export { default as useNameSkuUniquenessCheck } from './useCheckSkuAndName';
12
+ export * from './useCheckSkuAndName';
13
+ export { default as useDataFetcher } from './useDataFetcher';
14
+ export * from './useDataFetcher';
15
+ export * from './useLangauge';
16
+ export * from './useLanguageFallback';
17
+ export * from './useLocationFilter';
18
+ export * from './useReduxIntegration';
@@ -1,18 +1,19 @@
1
- import { useLanguage } from "./useLangauge/index.esm.js";
2
- import { useAuth } from "./useAuth/index.esm.js";
1
+ import { apiHelper } from "./apiHelper/index.esm.js";
2
+ import { apiType, capitalizeWords, convertEmptyToNull, defaultUserCurrency, formatNumber, formatTime, formateDate, recursiveSort, removeExtraKeys, sortData, valueWithCurrency } from "./common/index.esm.js";
3
+ import { default as default2 } from "./use-deep-memo/index.esm.js";
4
+ import { getAvailableSteelTypes, getAvailableTubeTypes, useMaterialCalculations, validateFormValues } from "./use-material-calculations/index.esm.js";
3
5
  import { usePages } from "./use-pages/index.esm.js";
4
6
  import { usePermissions } from "./use-permissions/index.esm.js";
5
- import { default as default2 } from "./use-deep-memo/index.esm.js";
6
- import { default as default3 } from "./use-material-calculations/index.esm.js";
7
- import { default as default4 } from "./useLanguageFallback/index.esm.js";
8
- import { default as default5 } from "./useLocationFilter/index.esm.js";
9
- import { default as default6 } from "./useCheckSkuAndName/index.esm.js";
10
- import { default as default7 } from "./useDataFetcher/index.esm.js";
11
- import { default as default8 } from "./use-translations/index.esm.js";
12
- import { apiType, capitalizeWords, convertEmptyToNull, defaultUserCurrency, formatNumber, formatTime, formateDate, recursiveSort, removeExtraKeys, sortData, valueWithCurrency } from "./common/index.esm.js";
13
- import { default as default9 } from "./apiHelper/index.esm.js";
7
+ import { default as default3 } from "./use-translations/index.esm.js";
8
+ import { useAuth } from "./useAuth/index.esm.js";
9
+ import { default as default4 } from "./useCheckSkuAndName/index.esm.js";
10
+ import { useDataFetcher } from "./useDataFetcher/index.esm.js";
11
+ import { useLanguage } from "./useLangauge/index.esm.js";
12
+ import { useLanguageFallback, useLanguageState } from "./useLanguageFallback/index.esm.js";
13
+ import { useLocationFilter, useMultipleLocationFilters } from "./useLocationFilter/index.esm.js";
14
+ import { useReduxIntegration } from "./useReduxIntegration/index.esm.js";
14
15
  export {
15
- default9 as apiHelper,
16
+ apiHelper,
16
17
  apiType,
17
18
  capitalizeWords,
18
19
  convertEmptyToNull,
@@ -20,20 +21,26 @@ export {
20
21
  formatNumber,
21
22
  formatTime,
22
23
  formateDate,
24
+ getAvailableSteelTypes,
25
+ getAvailableTubeTypes,
23
26
  recursiveSort,
24
27
  removeExtraKeys,
25
28
  sortData,
26
- default8 as useAppTranslations,
29
+ default3 as useAppTranslations,
27
30
  useAuth,
28
- default6 as useCheckSkuAndName,
29
- default7 as useDataFetcher,
31
+ useDataFetcher,
30
32
  default2 as useDeepMemo,
31
33
  useLanguage,
32
- default4 as useLanguageFallback,
33
- default5 as useLocationFilter,
34
- default3 as useMaterialCalculations,
34
+ useLanguageFallback,
35
+ useLanguageState,
36
+ useLocationFilter,
37
+ useMaterialCalculations,
38
+ useMultipleLocationFilters,
39
+ default4 as useNameSkuUniquenessCheck,
35
40
  usePages,
36
41
  usePermissions,
42
+ useReduxIntegration,
43
+ validateFormValues,
37
44
  valueWithCurrency
38
45
  };
39
46
  //# sourceMappingURL=index.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./useLangauge/index.js"),r=require("./useAuth/index.js"),s=require("./use-pages/index.js"),t=require("./use-permissions/index.js"),u=require("./use-deep-memo/index.js"),a=require("./use-material-calculations/index.js"),o=require("./useLanguageFallback/index.js"),i=require("./useLocationFilter/index.js"),p=require("./useCheckSkuAndName/index.js"),n=require("./useDataFetcher/index.js"),x=require("./use-translations/index.js"),l=require("./common/index.js"),d=require("./apiHelper/index.js");exports.useLanguage=e.useLanguage,exports.useAuth=r.useAuth,exports.usePages=s.usePages,exports.usePermissions=t.usePermissions,exports.useDeepMemo=u.default,exports.useMaterialCalculations=a.default,exports.useLanguageFallback=o.default,exports.useLocationFilter=i.default,exports.useCheckSkuAndName=p.default,exports.useDataFetcher=n.default,exports.useAppTranslations=x.default,exports.apiType=l.apiType,exports.capitalizeWords=l.capitalizeWords,exports.convertEmptyToNull=l.convertEmptyToNull,exports.defaultUserCurrency=l.defaultUserCurrency,exports.formatNumber=l.formatNumber,exports.formatTime=l.formatTime,exports.formateDate=l.formateDate,exports.recursiveSort=l.recursiveSort,exports.removeExtraKeys=l.removeExtraKeys,exports.sortData=l.sortData,exports.valueWithCurrency=l.valueWithCurrency,exports.apiHelper=d.default;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./apiHelper/index.js"),s=require("./common/index.js"),r=require("./use-deep-memo/index.js"),t=require("./use-material-calculations/index.js"),a=require("./use-pages/index.js"),u=require("./use-permissions/index.js"),i=require("./use-translations/index.js"),o=require("./useAuth/index.js"),l=require("./useCheckSkuAndName/index.js"),p=require("./useDataFetcher/index.js"),n=require("./useLangauge/index.js"),x=require("./useLanguageFallback/index.js"),c=require("./useLocationFilter/index.js"),d=require("./useReduxIntegration/index.js");exports.apiHelper=e.apiHelper,exports.apiType=s.apiType,exports.capitalizeWords=s.capitalizeWords,exports.convertEmptyToNull=s.convertEmptyToNull,exports.defaultUserCurrency=s.defaultUserCurrency,exports.formatNumber=s.formatNumber,exports.formatTime=s.formatTime,exports.formateDate=s.formateDate,exports.recursiveSort=s.recursiveSort,exports.removeExtraKeys=s.removeExtraKeys,exports.sortData=s.sortData,exports.valueWithCurrency=s.valueWithCurrency,exports.useDeepMemo=r.default,exports.getAvailableSteelTypes=t.getAvailableSteelTypes,exports.getAvailableTubeTypes=t.getAvailableTubeTypes,exports.useMaterialCalculations=t.useMaterialCalculations,exports.validateFormValues=t.validateFormValues,exports.usePages=a.usePages,exports.usePermissions=u.usePermissions,exports.useAppTranslations=i.default,exports.useAuth=o.useAuth,exports.useNameSkuUniquenessCheck=l.default,exports.useDataFetcher=p.useDataFetcher,exports.useLanguage=n.useLanguage,exports.useLanguageFallback=x.useLanguageFallback,exports.useLanguageState=x.useLanguageState,exports.useLocationFilter=c.useLocationFilter,exports.useMultipleLocationFilters=c.useMultipleLocationFilters,exports.useReduxIntegration=d.useReduxIntegration;
2
2
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,2 @@
1
+ declare function useDeepMemo<T>(value: T): T;
2
+ export default useDeepMemo;
@@ -185,15 +185,7 @@ const getAvailableSteelTypes = () => {
185
185
  const getAvailableTubeTypes = () => {
186
186
  return ["Round", "Square", "Rectangle"];
187
187
  };
188
- var useMaterialCalculations$1 = {
189
- useMaterialCalculations,
190
- validateFormValues,
191
- getAvailableSteelTypes,
192
- getAvailableTubeTypes,
193
- MATERIAL_CONSTANTS
194
- };
195
188
  export {
196
- useMaterialCalculations$1 as default,
197
189
  getAvailableSteelTypes,
198
190
  getAvailableTubeTypes,
199
191
  useMaterialCalculations,
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":["../../../src/hooks/use-material-calculations.ts"],"sourcesContent":["/* eslint-disable react-hooks/exhaustive-deps */\nimport { useMemo } from 'react';\n\n// ==================== CONSTANTS ====================\nconst MATERIAL_CONSTANTS = {\n STEEL_DENSITY: 7.85,\n LENGTH_CONVERSION_FACTOR: 1000,\n TUBE_CALCULATION_FACTOR: 0.024662,\n COIL_WEIGHTS: {\n GI: 2879.95,\n HR: 2356.59,\n },\n} as const;\n\n// ==================== TYPES ====================\ntype SteelType = keyof typeof MATERIAL_CONSTANTS.COIL_WEIGHTS;\ntype TubeType = 'Round' | 'Square' | 'Rectangle';\n\ninterface BaseFormValues {\n // Board calculation fields\n face_width?: string | number;\n bending?: string | number;\n height?: string | number;\n total_width?: string | number;\n boards_thickness?: string | number;\n boards_length?: string | number;\n \n // Steel calculation fields\n steel_length?: string | number;\n steel_width?: string | number;\n steel_thickness?: string | number;\n steel_type?: SteelType;\n \n // Tube calculation fields\n tube_type?: TubeType;\n tube_od?: string | number;\n shape_width?: string | number;\n shape_height?: string | number;\n material_thickness?: string | number;\n material_length?: string | number;\n}\n\ninterface MaterialCalculations {\n totalWidth: number;\n materialUnit: number;\n boardsWeight: number;\n steelWeight: number;\n materialWeight: number;\n}\n\ninterface CalculationResult<T = number> {\n value: T;\n isValid: boolean;\n error?: string;\n}\n\n// ==================== UTILITY FUNCTIONS ====================\n/**\n * Safely parses a value to number with comprehensive validation\n */\nconst safeParseNumber = (value: string | number | undefined | null): CalculationResult<number> => {\n if (value === undefined || value === null || value === '') {\n return { value: 0, isValid: false, error: 'Empty value' };\n }\n \n const parsed = typeof value === 'string' ? parseFloat(value.trim()) : Number(value);\n \n if (isNaN(parsed)) {\n return { value: 0, isValid: false, error: 'Invalid number format' };\n }\n \n if (!isFinite(parsed)) {\n return { value: 0, isValid: false, error: 'Number is not finite' };\n }\n \n return { value: parsed, isValid: true };\n};\n\n/**\n * Validates that all provided values are positive numbers\n */\nconst validatePositiveNumbers = (...values: (string | number | undefined)[]): boolean => {\n return values.every(value => {\n const result = safeParseNumber(value);\n return result.isValid && result.value > 0;\n });\n};\n\n/**\n * Creates a memoization key from form values to optimize re-calculations\n */\nconst createMemoKey = (formValues: BaseFormValues | undefined): string => {\n if (!formValues) return 'empty';\n \n // Only include relevant fields to avoid unnecessary recalculations\n const relevantFields = [\n 'face_width', 'bending', 'height', 'total_width', 'boards_thickness', 'boards_length',\n 'steel_length', 'steel_width', 'steel_thickness', 'steel_type',\n 'tube_type', 'tube_od', 'shape_width', 'shape_height', 'material_thickness', 'material_length'\n ];\n \n return relevantFields\n .map(field => `${field}:${formValues[field as keyof BaseFormValues] ?? ''}`)\n .join('|');\n};\n\n// ==================== CALCULATION FUNCTIONS ====================\n/**\n * Calculates the total width for boards costing\n * Formula: ((height + bending) * 2) + face_width\n */\nconst calculateBoardsTotalWidth = (formValues: BaseFormValues): CalculationResult<number> => {\n const { face_width, bending, height } = formValues;\n \n if (!validatePositiveNumbers(face_width, bending, height)) {\n return { value: 0, isValid: false, error: 'Invalid input values for boards total width calculation' };\n }\n \n const faceWidthResult = safeParseNumber(face_width);\n const bendingResult = safeParseNumber(bending);\n const heightResult = safeParseNumber(height);\n \n if (![faceWidthResult, bendingResult, heightResult].every(r => r.isValid)) {\n return { value: 0, isValid: false, error: 'Failed to parse input values' };\n }\n \n const totalWidth = ((heightResult.value + bendingResult.value) * 2) + faceWidthResult.value;\n \n return { value: totalWidth, isValid: true };\n};\n\n/**\n * Calculates the weight of boards\n * Formula: (total_width * thickness * (length / 1000)) * 7.85\n */\nconst calculateBoardsWeight = (formValues: BaseFormValues): CalculationResult<number> => {\n const { total_width, boards_thickness, boards_length } = formValues;\n \n if (!validatePositiveNumbers(total_width, boards_thickness, boards_length)) {\n return { value: 0, isValid: false, error: 'Invalid input values for boards weight calculation' };\n }\n \n const totalWidthResult = safeParseNumber(total_width);\n const thicknessResult = safeParseNumber(boards_thickness);\n const lengthResult = safeParseNumber(boards_length);\n \n if (![totalWidthResult, thicknessResult, lengthResult].every(r => r.isValid)) {\n return { value: 0, isValid: false, error: 'Failed to parse input values' };\n }\n \n const weight = (totalWidthResult.value * thicknessResult.value * \n (lengthResult.value / MATERIAL_CONSTANTS.LENGTH_CONVERSION_FACTOR)) * \n MATERIAL_CONSTANTS.STEEL_DENSITY;\n \n return { value: weight, isValid: true };\n};\n\n/**\n * Calculates the weight of steel\n * Formula: (length * width * thickness * 7.85) / 1000\n */\nconst calculateSteelWeight = (formValues: BaseFormValues): CalculationResult<number> => {\n const { steel_length, steel_width, steel_thickness } = formValues;\n \n if (!validatePositiveNumbers(steel_length, steel_width, steel_thickness)) {\n return { value: 0, isValid: false, error: 'Invalid input values for steel weight calculation' };\n }\n \n const lengthResult = safeParseNumber(steel_length);\n const widthResult = safeParseNumber(steel_width);\n const thicknessResult = safeParseNumber(steel_thickness);\n \n if (![lengthResult, widthResult, thicknessResult].every(r => r.isValid)) {\n return { value: 0, isValid: false, error: 'Failed to parse input values' };\n }\n \n const weight = (lengthResult.value * widthResult.value * thicknessResult.value * \n MATERIAL_CONSTANTS.STEEL_DENSITY) / MATERIAL_CONSTANTS.LENGTH_CONVERSION_FACTOR;\n \n return { value: weight, isValid: true };\n};\n\n/**\n * Gets the material unit weight based on steel type\n */\nconst calculateMaterialUnit = (formValues: BaseFormValues): CalculationResult<number> => {\n const { steel_type } = formValues;\n \n if (!steel_type) {\n return { value: 0, isValid: false, error: 'Steel type not specified' };\n }\n \n if (!(steel_type in MATERIAL_CONSTANTS.COIL_WEIGHTS)) {\n return { value: 0, isValid: false, error: `Unsupported steel type: ${steel_type}` };\n }\n \n const weight = MATERIAL_CONSTANTS.COIL_WEIGHTS[steel_type];\n return { value: weight, isValid: true };\n};\n\n/**\n * Calculates material weight based on tube type and dimensions\n * Supports Round, Square, and Rectangle tube types\n */\nconst calculateTubeMaterialWeight = (formValues: BaseFormValues): CalculationResult<number> => {\n const { tube_type, tube_od, shape_width, shape_height, material_thickness, material_length } = formValues;\n \n if (!tube_type) {\n return { value: 0, isValid: false, error: 'Tube type not specified' };\n }\n \n const thicknessResult = safeParseNumber(material_thickness);\n const lengthResult = safeParseNumber(material_length);\n \n if (!thicknessResult.isValid || !lengthResult.isValid) {\n return { value: 0, isValid: false, error: 'Invalid thickness or length values' };\n }\n \n let weight = 0;\n \n switch (tube_type) {\n case 'Round': {\n const odResult = safeParseNumber(tube_od);\n if (!odResult.isValid || odResult.value <= thicknessResult.value) {\n return { value: 0, isValid: false, error: 'Invalid outer diameter for round tube' };\n }\n \n weight = (odResult.value - thicknessResult.value) * thicknessResult.value * \n MATERIAL_CONSTANTS.TUBE_CALCULATION_FACTOR * lengthResult.value;\n break;\n }\n \n case 'Square':\n case 'Rectangle': {\n const widthResult = safeParseNumber(shape_width);\n const heightResult = safeParseNumber(shape_height);\n \n if (!widthResult.isValid || !heightResult.isValid) {\n return { value: 0, isValid: false, error: 'Invalid width or height for rectangular tube' };\n }\n \n const perimeter = 2 * (widthResult.value + heightResult.value);\n weight = (((perimeter / Math.PI) - thicknessResult.value) * thicknessResult.value * \n MATERIAL_CONSTANTS.TUBE_CALCULATION_FACTOR) * lengthResult.value;\n break;\n }\n \n default:\n return { value: 0, isValid: false, error: `Unsupported tube type: ${tube_type}` };\n }\n \n return { value: Math.max(0, weight), isValid: true };\n};\n\n// ==================== MAIN HOOK ====================\n/**\n * Custom hook for optimized material calculations with comprehensive error handling\n * and performance optimization through memoization\n */\nexport const useMaterialCalculations = (formValues?: BaseFormValues): MaterialCalculations => {\n const calculations = useMemo(() => {\n if (!formValues) {\n return {\n totalWidth: 0,\n materialUnit: 0,\n boardsWeight: 0,\n steelWeight: 0,\n materialWeight: 0,\n };\n }\n \n // Calculate all values with error handling\n const totalWidthResult = calculateBoardsTotalWidth(formValues);\n const materialUnitResult = calculateMaterialUnit(formValues);\n const boardsWeightResult = calculateBoardsWeight(formValues);\n const steelWeightResult = calculateSteelWeight(formValues);\n const materialWeightResult = calculateTubeMaterialWeight(formValues);\n \n // Optional: Log errors in development\n if (process.env.NODE_ENV === 'development') {\n [totalWidthResult, materialUnitResult, boardsWeightResult, steelWeightResult, materialWeightResult]\n .filter(result => !result.isValid && result.error)\n .forEach(result => console.warn('Calculation warning:', result.error));\n }\n \n return {\n totalWidth: totalWidthResult.value,\n materialUnit: materialUnitResult.value,\n boardsWeight: boardsWeightResult.value,\n steelWeight: steelWeightResult.value,\n materialWeight: materialWeightResult.value,\n };\n }, [createMemoKey(formValues)]); // Optimized dependency to prevent unnecessary recalculations\n \n return calculations;\n};\n\n// ==================== ADDITIONAL UTILITIES ====================\n/**\n * Utility function to validate form values before calculations\n */\nexport const validateFormValues = (formValues: BaseFormValues): { isValid: boolean; errors: string[] } => {\n const errors: string[] = [];\n const { tube_type, steel_type } = formValues;\n \n // Validate steel type if provided\n if (steel_type && !(steel_type in MATERIAL_CONSTANTS.COIL_WEIGHTS)) {\n errors.push(`Invalid steel type: ${steel_type}`);\n }\n \n // Validate tube type if provided\n if (tube_type && !['Round', 'Square', 'Rectangle'].includes(tube_type)) {\n errors.push(`Invalid tube type: ${tube_type}`);\n }\n \n return { isValid: errors.length === 0, errors };\n};\n\n/**\n * Get available steel types for form validation\n */\nexport const getAvailableSteelTypes = (): SteelType[] => {\n return Object.keys(MATERIAL_CONSTANTS.COIL_WEIGHTS) as SteelType[];\n};\n\n/**\n * Get available tube types for form validation\n */\nexport const getAvailableTubeTypes = (): TubeType[] => {\n return ['Round', 'Square', 'Rectangle'];\n};\n\nexport default {\n useMaterialCalculations,\n validateFormValues,\n getAvailableSteelTypes,\n getAvailableTubeTypes,\n MATERIAL_CONSTANTS,\n};\nexport type {\n BaseFormValues,\n MaterialCalculations,\n SteelType,\n TubeType,\n CalculationResult,\n};"],"names":[],"mappings":";;AAIA,MAAM,qBAAqB;AAAA,EACzB,eAAe;AAAA,EACf,0BAA0B;AAAA,EAC1B,yBAAyB;AAAA,EACzB,cAAc;AAAA,IACZ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA;AAER;AAgDA,MAAM,kBAAkB,CAAC,UAAyE;AAChG,MAAI,UAAU,UAAa,UAAU,QAAQ,UAAU,IAAI;AACzD,WAAO,EAAE,OAAO,GAAG,SAAS,OAAO,OAAO,cAAA;AAAA,EAC5C;AAEA,QAAM,SAAS,OAAO,UAAU,WAAW,WAAW,MAAM,KAAA,CAAM,IAAI,OAAO,KAAK;AAElF,MAAI,MAAM,MAAM,GAAG;AACjB,WAAO,EAAE,OAAO,GAAG,SAAS,OAA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MO,MAAM,qBAAqB,CAAC,eAAuE;AACxG,QAAM,SAAmB,CAAA;AACzB,QAAM,EAAE,WAAW,WAAA,IAAe;AAGlC,MAAI,cAAc,EAAE,cAAc,mBAAmB,eAAe;AAClE,WAAO,KAAK,uBAAuB,UAAU,EAAE;AAAA,EACjD;AAGA,MAAI,aAAa,CAAC,CAAC,SAAS,UAAU,WAAW,EAAE,SAAS,SAAS,GAAG;AACtE,WAAO,KAAK,sBAAsB,SAAS,EAAE;AAAA,EAC/C;AAEA,SAAO,EAAE,SAAS,OAAO,WAAW,GAAG,OAAA;AACzC;AAKO,MAAM,yBAAyB,MAAmB;AACvD,SAAO,OAAO,KAAK,mBAAmB,YAAY;AACpD;AAKO,MAAM,wBAAwB,MAAkB;AACrD,SAAO,CAAC,SAAS,UAAU,WAAW;AACxC;AAEA,IAAA,4BAAe;AAAA,EACb;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;"}
1
+ {"version":3,"file":"index.esm.js","sources":["../../../src/hooks/use-material-calculations.ts"],"sourcesContent":["/* eslint-disable react-hooks/exhaustive-deps */\nimport { useMemo } from 'react';\n\n// ==================== CONSTANTS ====================\nconst MATERIAL_CONSTANTS = {\n STEEL_DENSITY: 7.85,\n LENGTH_CONVERSION_FACTOR: 1000,\n TUBE_CALCULATION_FACTOR: 0.024662,\n COIL_WEIGHTS: {\n GI: 2879.95,\n HR: 2356.59,\n },\n} as const;\n\n// ==================== TYPES ====================\ntype SteelType = keyof typeof MATERIAL_CONSTANTS.COIL_WEIGHTS;\ntype TubeType = 'Round' | 'Square' | 'Rectangle';\n\ninterface BaseFormValues {\n // Board calculation fields\n face_width?: string | number;\n bending?: string | number;\n height?: string | number;\n total_width?: string | number;\n boards_thickness?: string | number;\n boards_length?: string | number;\n \n // Steel calculation fields\n steel_length?: string | number;\n steel_width?: string | number;\n steel_thickness?: string | number;\n steel_type?: SteelType;\n \n // Tube calculation fields\n tube_type?: TubeType;\n tube_od?: string | number;\n shape_width?: string | number;\n shape_height?: string | number;\n material_thickness?: string | number;\n material_length?: string | number;\n}\n\ninterface MaterialCalculations {\n totalWidth: number;\n materialUnit: number;\n boardsWeight: number;\n steelWeight: number;\n materialWeight: number;\n}\n\ninterface CalculationResult<T = number> {\n value: T;\n isValid: boolean;\n error?: string;\n}\n\n// ==================== UTILITY FUNCTIONS ====================\n/**\n * Safely parses a value to number with comprehensive validation\n */\nconst safeParseNumber = (value: string | number | undefined | null): CalculationResult<number> => {\n if (value === undefined || value === null || value === '') {\n return { value: 0, isValid: false, error: 'Empty value' };\n }\n \n const parsed = typeof value === 'string' ? parseFloat(value.trim()) : Number(value);\n \n if (isNaN(parsed)) {\n return { value: 0, isValid: false, error: 'Invalid number format' };\n }\n \n if (!isFinite(parsed)) {\n return { value: 0, isValid: false, error: 'Number is not finite' };\n }\n \n return { value: parsed, isValid: true };\n};\n\n/**\n * Validates that all provided values are positive numbers\n */\nconst validatePositiveNumbers = (...values: (string | number | undefined)[]): boolean => {\n return values.every(value => {\n const result = safeParseNumber(value);\n return result.isValid && result.value > 0;\n });\n};\n\n/**\n * Creates a memoization key from form values to optimize re-calculations\n */\nconst createMemoKey = (formValues: BaseFormValues | undefined): string => {\n if (!formValues) return 'empty';\n \n // Only include relevant fields to avoid unnecessary recalculations\n const relevantFields = [\n 'face_width', 'bending', 'height', 'total_width', 'boards_thickness', 'boards_length',\n 'steel_length', 'steel_width', 'steel_thickness', 'steel_type',\n 'tube_type', 'tube_od', 'shape_width', 'shape_height', 'material_thickness', 'material_length'\n ];\n \n return relevantFields\n .map(field => `${field}:${formValues[field as keyof BaseFormValues] ?? ''}`)\n .join('|');\n};\n\n// ==================== CALCULATION FUNCTIONS ====================\n/**\n * Calculates the total width for boards costing\n * Formula: ((height + bending) * 2) + face_width\n */\nconst calculateBoardsTotalWidth = (formValues: BaseFormValues): CalculationResult<number> => {\n const { face_width, bending, height } = formValues;\n \n if (!validatePositiveNumbers(face_width, bending, height)) {\n return { value: 0, isValid: false, error: 'Invalid input values for boards total width calculation' };\n }\n \n const faceWidthResult = safeParseNumber(face_width);\n const bendingResult = safeParseNumber(bending);\n const heightResult = safeParseNumber(height);\n \n if (![faceWidthResult, bendingResult, heightResult].every(r => r.isValid)) {\n return { value: 0, isValid: false, error: 'Failed to parse input values' };\n }\n \n const totalWidth = ((heightResult.value + bendingResult.value) * 2) + faceWidthResult.value;\n \n return { value: totalWidth, isValid: true };\n};\n\n/**\n * Calculates the weight of boards\n * Formula: (total_width * thickness * (length / 1000)) * 7.85\n */\nconst calculateBoardsWeight = (formValues: BaseFormValues): CalculationResult<number> => {\n const { total_width, boards_thickness, boards_length } = formValues;\n \n if (!validatePositiveNumbers(total_width, boards_thickness, boards_length)) {\n return { value: 0, isValid: false, error: 'Invalid input values for boards weight calculation' };\n }\n \n const totalWidthResult = safeParseNumber(total_width);\n const thicknessResult = safeParseNumber(boards_thickness);\n const lengthResult = safeParseNumber(boards_length);\n \n if (![totalWidthResult, thicknessResult, lengthResult].every(r => r.isValid)) {\n return { value: 0, isValid: false, error: 'Failed to parse input values' };\n }\n \n const weight = (totalWidthResult.value * thicknessResult.value * \n (lengthResult.value / MATERIAL_CONSTANTS.LENGTH_CONVERSION_FACTOR)) * \n MATERIAL_CONSTANTS.STEEL_DENSITY;\n \n return { value: weight, isValid: true };\n};\n\n/**\n * Calculates the weight of steel\n * Formula: (length * width * thickness * 7.85) / 1000\n */\nconst calculateSteelWeight = (formValues: BaseFormValues): CalculationResult<number> => {\n const { steel_length, steel_width, steel_thickness } = formValues;\n \n if (!validatePositiveNumbers(steel_length, steel_width, steel_thickness)) {\n return { value: 0, isValid: false, error: 'Invalid input values for steel weight calculation' };\n }\n \n const lengthResult = safeParseNumber(steel_length);\n const widthResult = safeParseNumber(steel_width);\n const thicknessResult = safeParseNumber(steel_thickness);\n \n if (![lengthResult, widthResult, thicknessResult].every(r => r.isValid)) {\n return { value: 0, isValid: false, error: 'Failed to parse input values' };\n }\n \n const weight = (lengthResult.value * widthResult.value * thicknessResult.value * \n MATERIAL_CONSTANTS.STEEL_DENSITY) / MATERIAL_CONSTANTS.LENGTH_CONVERSION_FACTOR;\n \n return { value: weight, isValid: true };\n};\n\n/**\n * Gets the material unit weight based on steel type\n */\nconst calculateMaterialUnit = (formValues: BaseFormValues): CalculationResult<number> => {\n const { steel_type } = formValues;\n \n if (!steel_type) {\n return { value: 0, isValid: false, error: 'Steel type not specified' };\n }\n \n if (!(steel_type in MATERIAL_CONSTANTS.COIL_WEIGHTS)) {\n return { value: 0, isValid: false, error: `Unsupported steel type: ${steel_type}` };\n }\n \n const weight = MATERIAL_CONSTANTS.COIL_WEIGHTS[steel_type];\n return { value: weight, isValid: true };\n};\n\n/**\n * Calculates material weight based on tube type and dimensions\n * Supports Round, Square, and Rectangle tube types\n */\nconst calculateTubeMaterialWeight = (formValues: BaseFormValues): CalculationResult<number> => {\n const { tube_type, tube_od, shape_width, shape_height, material_thickness, material_length } = formValues;\n \n if (!tube_type) {\n return { value: 0, isValid: false, error: 'Tube type not specified' };\n }\n \n const thicknessResult = safeParseNumber(material_thickness);\n const lengthResult = safeParseNumber(material_length);\n \n if (!thicknessResult.isValid || !lengthResult.isValid) {\n return { value: 0, isValid: false, error: 'Invalid thickness or length values' };\n }\n \n let weight = 0;\n \n switch (tube_type) {\n case 'Round': {\n const odResult = safeParseNumber(tube_od);\n if (!odResult.isValid || odResult.value <= thicknessResult.value) {\n return { value: 0, isValid: false, error: 'Invalid outer diameter for round tube' };\n }\n \n weight = (odResult.value - thicknessResult.value) * thicknessResult.value * \n MATERIAL_CONSTANTS.TUBE_CALCULATION_FACTOR * lengthResult.value;\n break;\n }\n \n case 'Square':\n case 'Rectangle': {\n const widthResult = safeParseNumber(shape_width);\n const heightResult = safeParseNumber(shape_height);\n \n if (!widthResult.isValid || !heightResult.isValid) {\n return { value: 0, isValid: false, error: 'Invalid width or height for rectangular tube' };\n }\n \n const perimeter = 2 * (widthResult.value + heightResult.value);\n weight = (((perimeter / Math.PI) - thicknessResult.value) * thicknessResult.value * \n MATERIAL_CONSTANTS.TUBE_CALCULATION_FACTOR) * lengthResult.value;\n break;\n }\n \n default:\n return { value: 0, isValid: false, error: `Unsupported tube type: ${tube_type}` };\n }\n \n return { value: Math.max(0, weight), isValid: true };\n};\n\n// ==================== MAIN HOOK ====================\n/**\n * Custom hook for optimized material calculations with comprehensive error handling\n * and performance optimization through memoization\n */\nexport const useMaterialCalculations = (formValues?: BaseFormValues): MaterialCalculations => {\n const calculations = useMemo(() => {\n if (!formValues) {\n return {\n totalWidth: 0,\n materialUnit: 0,\n boardsWeight: 0,\n steelWeight: 0,\n materialWeight: 0,\n };\n }\n \n // Calculate all values with error handling\n const totalWidthResult = calculateBoardsTotalWidth(formValues);\n const materialUnitResult = calculateMaterialUnit(formValues);\n const boardsWeightResult = calculateBoardsWeight(formValues);\n const steelWeightResult = calculateSteelWeight(formValues);\n const materialWeightResult = calculateTubeMaterialWeight(formValues);\n \n // Optional: Log errors in development\n if (process.env.NODE_ENV === 'development') {\n [totalWidthResult, materialUnitResult, boardsWeightResult, steelWeightResult, materialWeightResult]\n .filter(result => !result.isValid && result.error)\n .forEach(result => console.warn('Calculation warning:', result.error));\n }\n \n return {\n totalWidth: totalWidthResult.value,\n materialUnit: materialUnitResult.value,\n boardsWeight: boardsWeightResult.value,\n steelWeight: steelWeightResult.value,\n materialWeight: materialWeightResult.value,\n };\n }, [createMemoKey(formValues)]); // Optimized dependency to prevent unnecessary recalculations\n \n return calculations;\n};\n\n// ==================== ADDITIONAL UTILITIES ====================\n/**\n * Utility function to validate form values before calculations\n */\nexport const validateFormValues = (formValues: BaseFormValues): { isValid: boolean; errors: string[] } => {\n const errors: string[] = [];\n const { tube_type, steel_type } = formValues;\n \n // Validate steel type if provided\n if (steel_type && !(steel_type in MATERIAL_CONSTANTS.COIL_WEIGHTS)) {\n errors.push(`Invalid steel type: ${steel_type}`);\n }\n \n // Validate tube type if provided\n if (tube_type && !['Round', 'Square', 'Rectangle'].includes(tube_type)) {\n errors.push(`Invalid tube type: ${tube_type}`);\n }\n \n return { isValid: errors.length === 0, errors };\n};\n\n/**\n * Get available steel types for form validation\n */\nexport const getAvailableSteelTypes = (): SteelType[] => {\n return Object.keys(MATERIAL_CONSTANTS.COIL_WEIGHTS) as SteelType[];\n};\n\n/**\n * Get available tube types for form validation\n */\nexport const getAvailableTubeTypes = (): TubeType[] => {\n return ['Round', 'Square', 'Rectangle'];\n};\n\nexport default {\n useMaterialCalculations,\n validateFormValues,\n getAvailableSteelTypes,\n getAvailableTubeTypes,\n MATERIAL_CONSTANTS,\n};\nexport type {\n BaseFormValues,\n MaterialCalculations,\n SteelType,\n TubeType,\n CalculationResult,\n};"],"names":[],"mappings":";;AAIA,MAAM,qBAAqB;AAAA,EACzB,eAAe;AAAA,EACf,0BAA0B;AAAA,EAC1B,yBAAyB;AAAA,EACzB,cAAc;AAAA,IACZ,IAAI;AAAA,IACJ,IAAI;AAAA,EAAA;AAER;AAgDA,MAAM,kBAAkB,CAAC,UAAyE;AAChG,MAAI,UAAU,UAAa,UAAU,QAAQ,UAAU,IAAI;AACzD,WAAO,EAAE,OAAO,GAAG,SAAS,OAAO,OAAO,cAAA;AAAA,EAC5C;AAEA,QAAM,SAAS,OAAO,UAAU,WAAW,WAAW,MAAM,KAAA,CAAM,IAAI,OAAO,KAAK;AAElF,MAAI,MAAM,MAAM,GAAG;AACjB,WAAO,EAAE,OAAO,GAAG,SAAS,OAAO,OAAO,wBAAA;AAAA,EAC5C;AAEA,MAAI,CAAC,SAAS,MAAM,GAAG;AACrB,WAAO,EAAE,OAAO,GAAG,SAAS,OAAO,OAAO,uBAAA;AAAA,EAC5C;AAEA,SAAO,EAAE,OAAO,QAAQ,SAAS,KAAA;AACnC;AAKA,MAAM,0BAA0B,IAAI,WAAqD;AACvF,SAAO,OAAO,MAAM,CAAA,UAAS;AAC3B,UAAM,SAAS,gBAAgB,KAAK;AACpC,WAAO,OAAO,WAAW,OAAO,QAAQ;AAAA,EAC1C,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OAAO,WAAW,GAAG,OAAA;AACzC;AAKO,MAAM,yBAAyB,MAAmB;AACvD,SAAO,OAAO,KAAK,mBAAmB,YAAY;AACpD;AAKO,MAAM,wBAAwB,MAAkB;AACrD,SAAO,CAAC,SAAS,UAAU,WAAW;AACxC;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),a={};const t={STEEL_DENSITY:7.85,LENGTH_CONVERSION_FACTOR:1e3,TUBE_CALCULATION_FACTOR:.024662,COIL_WEIGHTS:{GI:2879.95,HR:2356.59}},l=e=>{if(null==e||""===e)return{value:0,isValid:!1,error:"Empty value"};const a="string"==typeof e?parseFloat(e.trim()):Number(e);return isNaN(a)?{value:0,isValid:!1,error:"Invalid number format"}:isFinite(a)?{value:a,isValid:!0}:{value:0,isValid:!1,error:"Number is not finite"}},i=(...e)=>e.every(e=>{const a=l(e);return a.isValid&&a.value>0}),r=e=>e?["face_width","bending","height","total_width","boards_thickness","boards_length","steel_length","steel_width","steel_thickness","steel_type","tube_type","tube_od","shape_width","shape_height","material_thickness","material_length"].map(a=>`${a}:${e[a]??""}`).join("|"):"empty",s=s=>e.useMemo(()=>{if(!s)return{totalWidth:0,materialUnit:0,boardsWeight:0,steelWeight:0,materialWeight:0};const e=(e=>{const{face_width:a,bending:t,height:r}=e;if(!i(a,t,r))return{value:0,isValid:!1,error:"Invalid input values for boards total width calculation"};const s=l(a),u=l(t),n=l(r);return[s,u,n].every(e=>e.isValid)?{value:2*(n.value+u.value)+s.value,isValid:!0}:{value:0,isValid:!1,error:"Failed to parse input values"}})(s),r=(e=>{const{steel_type:a}=e;return a?a in t.COIL_WEIGHTS?{value:t.COIL_WEIGHTS[a],isValid:!0}:{value:0,isValid:!1,error:`Unsupported steel type: ${a}`}:{value:0,isValid:!1,error:"Steel type not specified"}})(s),u=(e=>{const{total_width:a,boards_thickness:r,boards_length:s}=e;if(!i(a,r,s))return{value:0,isValid:!1,error:"Invalid input values for boards weight calculation"};const u=l(a),n=l(r),o=l(s);return[u,n,o].every(e=>e.isValid)?{value:u.value*n.value*(o.value/t.LENGTH_CONVERSION_FACTOR)*t.STEEL_DENSITY,isValid:!0}:{value:0,isValid:!1,error:"Failed to parse input values"}})(s),n=(e=>{const{steel_length:a,steel_width:r,steel_thickness:s}=e;if(!i(a,r,s))return{value:0,isValid:!1,error:"Invalid input values for steel weight calculation"};const u=l(a),n=l(r),o=l(s);return[u,n,o].every(e=>e.isValid)?{value:u.value*n.value*o.value*t.STEEL_DENSITY/t.LENGTH_CONVERSION_FACTOR,isValid:!0}:{value:0,isValid:!1,error:"Failed to parse input values"}})(s),o=(e=>{const{tube_type:a,tube_od:i,shape_width:r,shape_height:s,material_thickness:u,material_length:n}=e;if(!a)return{value:0,isValid:!1,error:"Tube type not specified"};const o=l(u),d=l(n);if(!o.isValid||!d.isValid)return{value:0,isValid:!1,error:"Invalid thickness or length values"};let v=0;switch(a){case"Round":{const e=l(i);if(!e.isValid||e.value<=o.value)return{value:0,isValid:!1,error:"Invalid outer diameter for round tube"};v=(e.value-o.value)*o.value*t.TUBE_CALCULATION_FACTOR*d.value;break}case"Square":case"Rectangle":{const e=l(r),a=l(s);if(!e.isValid||!a.isValid)return{value:0,isValid:!1,error:"Invalid width or height for rectangular tube"};v=(2*(e.value+a.value)/Math.PI-o.value)*o.value*t.TUBE_CALCULATION_FACTOR*d.value;break}default:return{value:0,isValid:!1,error:`Unsupported tube type: ${a}`}}return{value:Math.max(0,v),isValid:!0}})(s);return"development"===a.NODE_ENV&&[e,r,u,n,o].filter(e=>!e.isValid&&e.error).forEach(e=>{}),{totalWidth:e.value,materialUnit:r.value,boardsWeight:u.value,steelWeight:n.value,materialWeight:o.value}},[r(s)]),u=e=>{const a=[],{tube_type:l,steel_type:i}=e;return i&&!(i in t.COIL_WEIGHTS)&&a.push(`Invalid steel type: ${i}`),l&&!["Round","Square","Rectangle"].includes(l)&&a.push(`Invalid tube type: ${l}`),{isValid:0===a.length,errors:a}},n=()=>Object.keys(t.COIL_WEIGHTS),o=()=>["Round","Square","Rectangle"];var d={useMaterialCalculations:s,validateFormValues:u,getAvailableSteelTypes:n,getAvailableTubeTypes:o,MATERIAL_CONSTANTS:t};exports.default=d,exports.getAvailableSteelTypes=n,exports.getAvailableTubeTypes=o,exports.useMaterialCalculations=s,exports.validateFormValues=u;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t={};const a={STEEL_DENSITY:7.85,LENGTH_CONVERSION_FACTOR:1e3,TUBE_CALCULATION_FACTOR:.024662,COIL_WEIGHTS:{GI:2879.95,HR:2356.59}},i=e=>{if(null==e||""===e)return{value:0,isValid:!1,error:"Empty value"};const t="string"==typeof e?parseFloat(e.trim()):Number(e);return isNaN(t)?{value:0,isValid:!1,error:"Invalid number format"}:isFinite(t)?{value:t,isValid:!0}:{value:0,isValid:!1,error:"Number is not finite"}},l=(...e)=>e.every(e=>{const t=i(e);return t.isValid&&t.value>0}),r=e=>e?["face_width","bending","height","total_width","boards_thickness","boards_length","steel_length","steel_width","steel_thickness","steel_type","tube_type","tube_od","shape_width","shape_height","material_thickness","material_length"].map(t=>`${t}:${e[t]??""}`).join("|"):"empty";exports.getAvailableSteelTypes=()=>Object.keys(a.COIL_WEIGHTS),exports.getAvailableTubeTypes=()=>["Round","Square","Rectangle"],exports.useMaterialCalculations=s=>e.useMemo(()=>{if(!s)return{totalWidth:0,materialUnit:0,boardsWeight:0,steelWeight:0,materialWeight:0};const e=(e=>{const{face_width:t,bending:a,height:r}=e;if(!l(t,a,r))return{value:0,isValid:!1,error:"Invalid input values for boards total width calculation"};const s=i(t),u=i(a),n=i(r);return[s,u,n].every(e=>e.isValid)?{value:2*(n.value+u.value)+s.value,isValid:!0}:{value:0,isValid:!1,error:"Failed to parse input values"}})(s),r=(e=>{const{steel_type:t}=e;return t?t in a.COIL_WEIGHTS?{value:a.COIL_WEIGHTS[t],isValid:!0}:{value:0,isValid:!1,error:`Unsupported steel type: ${t}`}:{value:0,isValid:!1,error:"Steel type not specified"}})(s),u=(e=>{const{total_width:t,boards_thickness:r,boards_length:s}=e;if(!l(t,r,s))return{value:0,isValid:!1,error:"Invalid input values for boards weight calculation"};const u=i(t),n=i(r),o=i(s);return[u,n,o].every(e=>e.isValid)?{value:u.value*n.value*(o.value/a.LENGTH_CONVERSION_FACTOR)*a.STEEL_DENSITY,isValid:!0}:{value:0,isValid:!1,error:"Failed to parse input values"}})(s),n=(e=>{const{steel_length:t,steel_width:r,steel_thickness:s}=e;if(!l(t,r,s))return{value:0,isValid:!1,error:"Invalid input values for steel weight calculation"};const u=i(t),n=i(r),o=i(s);return[u,n,o].every(e=>e.isValid)?{value:u.value*n.value*o.value*a.STEEL_DENSITY/a.LENGTH_CONVERSION_FACTOR,isValid:!0}:{value:0,isValid:!1,error:"Failed to parse input values"}})(s),o=(e=>{const{tube_type:t,tube_od:l,shape_width:r,shape_height:s,material_thickness:u,material_length:n}=e;if(!t)return{value:0,isValid:!1,error:"Tube type not specified"};const o=i(u),d=i(n);if(!o.isValid||!d.isValid)return{value:0,isValid:!1,error:"Invalid thickness or length values"};let v=0;switch(t){case"Round":{const e=i(l);if(!e.isValid||e.value<=o.value)return{value:0,isValid:!1,error:"Invalid outer diameter for round tube"};v=(e.value-o.value)*o.value*a.TUBE_CALCULATION_FACTOR*d.value;break}case"Square":case"Rectangle":{const e=i(r),t=i(s);if(!e.isValid||!t.isValid)return{value:0,isValid:!1,error:"Invalid width or height for rectangular tube"};v=(2*(e.value+t.value)/Math.PI-o.value)*o.value*a.TUBE_CALCULATION_FACTOR*d.value;break}default:return{value:0,isValid:!1,error:`Unsupported tube type: ${t}`}}return{value:Math.max(0,v),isValid:!0}})(s);return"development"===t.NODE_ENV&&[e,r,u,n,o].filter(e=>!e.isValid&&e.error).forEach(e=>{}),{totalWidth:e.value,materialUnit:r.value,boardsWeight:u.value,steelWeight:n.value,materialWeight:o.value}},[r(s)]),exports.validateFormValues=e=>{const t=[],{tube_type:i,steel_type:l}=e;return l&&!(l in a.COIL_WEIGHTS)&&t.push(`Invalid steel type: ${l}`),i&&!["Round","Square","Rectangle"].includes(i)&&t.push(`Invalid tube type: ${i}`),{isValid:0===t.length,errors:t}};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/hooks/use-material-calculations.ts"],"sourcesContent":["/* eslint-disable react-hooks/exhaustive-deps */\nimport { useMemo } from 'react';\n\n// ==================== CONSTANTS ====================\nconst MATERIAL_CONSTANTS = {\n STEEL_DENSITY: 7.85,\n LENGTH_CONVERSION_FACTOR: 1000,\n TUBE_CALCULATION_FACTOR: 0.024662,\n COIL_WEIGHTS: {\n GI: 2879.95,\n HR: 2356.59,\n },\n} as const;\n\n// ==================== TYPES ====================\ntype SteelType = keyof typeof MATERIAL_CONSTANTS.COIL_WEIGHTS;\ntype TubeType = 'Round' | 'Square' | 'Rectangle';\n\ninterface BaseFormValues {\n // Board calculation fields\n face_width?: string | number;\n bending?: string | number;\n height?: string | number;\n total_width?: string | number;\n boards_thickness?: string | number;\n boards_length?: string | number;\n \n // Steel calculation fields\n steel_length?: string | number;\n steel_width?: string | number;\n steel_thickness?: string | number;\n steel_type?: SteelType;\n \n // Tube calculation fields\n tube_type?: TubeType;\n tube_od?: string | number;\n shape_width?: string | number;\n shape_height?: string | number;\n material_thickness?: string | number;\n material_length?: string | number;\n}\n\ninterface MaterialCalculations {\n totalWidth: number;\n materialUnit: number;\n boardsWeight: number;\n steelWeight: number;\n materialWeight: number;\n}\n\ninterface CalculationResult<T = number> {\n value: T;\n isValid: boolean;\n error?: string;\n}\n\n// ==================== UTILITY FUNCTIONS ====================\n/**\n * Safely parses a value to number with comprehensive validation\n */\nconst safeParseNumber = (value: string | number | undefined | null): CalculationResult<number> => {\n if (value === undefined || value === null || value === '') {\n return { value: 0, isValid: false, error: 'Empty value' };\n }\n \n const parsed = typeof value === 'string' ? parseFloat(value.trim()) : Number(value);\n \n if (isNaN(parsed)) {\n return { value: 0, isValid: false, error: 'Invalid number format' };\n }\n \n if (!isFinite(parsed)) {\n return { value: 0, isValid: false, error: 'Number is not finite' };\n }\n \n return { value: parsed, isValid: true };\n};\n\n/**\n * Validates that all provided values are positive numbers\n */\nconst validatePositiveNumbers = (...values: (string | number | undefined)[]): boolean => {\n return values.every(value => {\n const result = safeParseNumber(value);\n return result.isValid && result.value > 0;\n });\n};\n\n/**\n * Creates a memoization key from form values to optimize re-calculations\n */\nconst createMemoKey = (formValues: BaseFormValues | undefined): string => {\n if (!formValues) return 'empty';\n \n // Only include relevant fields to avoid unnecessary recalculations\n const relevantFields = [\n 'face_width', 'bending', 'height', 'total_width', 'boards_thickness', 'boards_length',\n 'steel_length', 'steel_width', 'steel_thickness', 'steel_type',\n 'tube_type', 'tube_od', 'shape_width', 'shape_height', 'material_thickness', 'material_length'\n ];\n \n return relevantFields\n .map(field => `${field}:${formValues[field as keyof BaseFormValues] ?? ''}`)\n .join('|');\n};\n\n// ==================== CALCULATION FUNCTIONS ====================\n/**\n * Calculates the total width for boards costing\n * Formula: ((height + bending) * 2) + face_width\n */\nconst calculateBoardsTotalWidth = (formValues: BaseFormValues): CalculationResult<number> => {\n const { face_width, bending, height } = formValues;\n \n if (!validatePositiveNumbers(face_width, bending, height)) {\n return { value: 0, isValid: false, error: 'Invalid input values for boards total width calculation' };\n }\n \n const faceWidthResult = safeParseNumber(face_width);\n const bendingResult = safeParseNumber(bending);\n const heightResult = safeParseNumber(height);\n \n if (![faceWidthResult, bendingResult, heightResult].every(r => r.isValid)) {\n return { value: 0, isValid: false, error: 'Failed to parse input values' };\n }\n \n const totalWidth = ((heightResult.value + bendingResult.value) * 2) + faceWidthResult.value;\n \n return { value: totalWidth, isValid: true };\n};\n\n/**\n * Calculates the weight of boards\n * Formula: (total_width * thickness * (length / 1000)) * 7.85\n */\nconst calculateBoardsWeight = (formValues: BaseFormValues): CalculationResult<number> => {\n const { total_width, boards_thickness, boards_length } = formValues;\n \n if (!validatePositiveNumbers(total_width, boards_thickness, boards_length)) {\n return { value: 0, isValid: false, error: 'Invalid input values for boards weight calculation' };\n }\n \n const totalWidthResult = safeParseNumber(total_width);\n const thicknessResult = safeParseNumber(boards_thickness);\n const lengthResult = safeParseNumber(boards_length);\n \n if (![totalWidthResult, thicknessResult, lengthResult].every(r => r.isValid)) {\n return { value: 0, isValid: false, error: 'Failed to parse input values' };\n }\n \n const weight = (totalWidthResult.value * thicknessResult.value * \n (lengthResult.value / MATERIAL_CONSTANTS.LENGTH_CONVERSION_FACTOR)) * \n MATERIAL_CONSTANTS.STEEL_DENSITY;\n \n return { value: weight, isValid: true };\n};\n\n/**\n * Calculates the weight of steel\n * Formula: (length * width * thickness * 7.85) / 1000\n */\nconst calculateSteelWeight = (formValues: BaseFormValues): CalculationResult<number> => {\n const { steel_length, steel_width, steel_thickness } = formValues;\n \n if (!validatePositiveNumbers(steel_length, steel_width, steel_thickness)) {\n return { value: 0, isValid: false, error: 'Invalid input values for steel weight calculation' };\n }\n \n const lengthResult = safeParseNumber(steel_length);\n const widthResult = safeParseNumber(steel_width);\n const thicknessResult = safeParseNumber(steel_thickness);\n \n if (![lengthResult, widthResult, thicknessResult].every(r => r.isValid)) {\n return { value: 0, isValid: false, error: 'Failed to parse input values' };\n }\n \n const weight = (lengthResult.value * widthResult.value * thicknessResult.value * \n MATERIAL_CONSTANTS.STEEL_DENSITY) / MATERIAL_CONSTANTS.LENGTH_CONVERSION_FACTOR;\n \n return { value: weight, isValid: true };\n};\n\n/**\n * Gets the material unit weight based on steel type\n */\nconst calculateMaterialUnit = (formValues: BaseFormValues): CalculationResult<number> => {\n const { steel_type } = formValues;\n \n if (!steel_type) {\n return { value: 0, isValid: false, error: 'Steel type not specified' };\n }\n \n if (!(steel_type in MATERIAL_CONSTANTS.COIL_WEIGHTS)) {\n return { value: 0, isValid: false, error: `Unsupported steel type: ${steel_type}` };\n }\n \n const weight = MATERIAL_CONSTANTS.COIL_WEIGHTS[steel_type];\n return { value: weight, isValid: true };\n};\n\n/**\n * Calculates material weight based on tube type and dimensions\n * Supports Round, Square, and Rectangle tube types\n */\nconst calculateTubeMaterialWeight = (formValues: BaseFormValues): CalculationResult<number> => {\n const { tube_type, tube_od, shape_width, shape_height, material_thickness, material_length } = formValues;\n \n if (!tube_type) {\n return { value: 0, isValid: false, error: 'Tube type not specified' };\n }\n \n const thicknessResult = safeParseNumber(material_thickness);\n const lengthResult = safeParseNumber(material_length);\n \n if (!thicknessResult.isValid || !lengthResult.isValid) {\n return { value: 0, isValid: false, error: 'Invalid thickness or length values' };\n }\n \n let weight = 0;\n \n switch (tube_type) {\n case 'Round': {\n const odResult = safeParseNumber(tube_od);\n if (!odResult.isValid || odResult.value <= thicknessResult.value) {\n return { value: 0, isValid: false, error: 'Invalid outer diameter for round tube' };\n }\n \n weight = (odResult.value - thicknessResult.value) * thicknessResult.value * \n MATERIAL_CONSTANTS.TUBE_CALCULATION_FACTOR * lengthResult.value;\n break;\n }\n \n case 'Square':\n case 'Rectangle': {\n const widthResult = safeParseNumber(shape_width);\n const heightResult = safeParseNumber(shape_height);\n \n if (!widthResult.isValid || !heightResult.isValid) {\n return { value: 0, isValid: false, error: 'Invalid width or height for rectangular tube' };\n }\n \n const perimeter = 2 * (widthResult.value + heightResult.value);\n weight = (((perimeter / Math.PI) - thicknessResult.value) * thicknessResult.value * \n MATERIAL_CONSTANTS.TUBE_CALCULATION_FACTOR) * lengthResult.value;\n break;\n }\n \n default:\n return { value: 0, isValid: false, error: `Unsupported tube type: ${tube_type}` };\n }\n \n return { value: Math.max(0, weight), isValid: true };\n};\n\n// ==================== MAIN HOOK ====================\n/**\n * Custom hook for optimized material calculations with comprehensive error handling\n * and performance optimization through memoization\n */\nexport const useMaterialCalculations = (formValues?: BaseFormValues): MaterialCalculations => {\n const calculations = useMemo(() => {\n if (!formValues) {\n return {\n totalWidth: 0,\n materialUnit: 0,\n boardsWeight: 0,\n steelWeight: 0,\n materialWeight: 0,\n };\n }\n \n // Calculate all values with error handling\n const totalWidthResult = calculateBoardsTotalWidth(formValues);\n const materialUnitResult = calculateMaterialUnit(formValues);\n const boardsWeightResult = calculateBoardsWeight(formValues);\n const steelWeightResult = calculateSteelWeight(formValues);\n const materialWeightResult = calculateTubeMaterialWeight(formValues);\n \n // Optional: Log errors in development\n if (process.env.NODE_ENV === 'development') {\n [totalWidthResult, materialUnitResult, boardsWeightResult, steelWeightResult, materialWeightResult]\n .filter(result => !result.isValid && result.error)\n .forEach(result => console.warn('Calculation warning:', result.error));\n }\n \n return {\n totalWidth: totalWidthResult.value,\n materialUnit: materialUnitResult.value,\n boardsWeight: boardsWeightResult.value,\n steelWeight: steelWeightResult.value,\n materialWeight: materialWeightResult.value,\n };\n }, [createMemoKey(formValues)]); // Optimized dependency to prevent unnecessary recalculations\n \n return calculations;\n};\n\n// ==================== ADDITIONAL UTILITIES ====================\n/**\n * Utility function to validate form values before calculations\n */\nexport const validateFormValues = (formValues: BaseFormValues): { isValid: boolean; errors: string[] } => {\n const errors: string[] = [];\n const { tube_type, steel_type } = formValues;\n \n // Validate steel type if provided\n if (steel_type && !(steel_type in MATERIAL_CONSTANTS.COIL_WEIGHTS)) {\n errors.push(`Invalid steel type: ${steel_type}`);\n }\n \n // Validate tube type if provided\n if (tube_type && !['Round', 'Square', 'Rectangle'].includes(tube_type)) {\n errors.push(`Invalid tube type: ${tube_type}`);\n }\n \n return { isValid: errors.length === 0, errors };\n};\n\n/**\n * Get available steel types for form validation\n */\nexport const getAvailableSteelTypes = (): SteelType[] => {\n return Object.keys(MATERIAL_CONSTANTS.COIL_WEIGHTS) as SteelType[];\n};\n\n/**\n * Get available tube types for form validation\n */\nexport const getAvailableTubeTypes = (): TubeType[] => {\n return ['Round', 'Square', 'Rectangle'];\n};\n\nexport default {\n useMaterialCalculations,\n validateFormValues,\n getAvailableSteelTypes,\n getAvailableTubeTypes,\n MATERIAL_CONSTANTS,\n};\nexport type {\n BaseFormValues,\n MaterialCalculations,\n SteelType,\n TubeType,\n CalculationResult,\n};"],"names":["MATERIAL_CONSTANTS","STEEL_DENSITY","LENGTH_CONVERSION_FACTOR","TUBE_CALCULATION_FACTOR","COIL_WEIGHTS","GI","HR","safeParseNumber","value","isValid","error","parsed","parseFloat","trim","Number","isNaN","isFinite","validatePositiveNumbers","values","every","result","createMemoKey","formValues","map","field","join","useMaterialCalculations","useMemo","totalWidth","materialUnit","boardsWeight","steelWeight","materialWeight","totalWidthResult","face_width","bending","height","faceWidthResult","bendingResult","heightResult","r","calculateBoardsTotalWidth","materialUnitResult","steel_type","calculateMaterialUnit","boardsWeightResult","total_width","boards_thickness","boards_length","thicknessResult","lengthResult","calculateBoardsWeight","steelWeightResult","steel_length","steel_width","steel_thickness","widthResult","calculateSteelWeight","materialWeightResult","tube_type","tube_od","shape_width","shape_height","material_thickness","material_length","weight","odResult","Math","PI","max","calculateTubeMaterialWeight","define_process_env_default","NODE_ENV","filter","forEach","validateFormValues","errors","push","includes","length","getAvailableSteelTypes","Object","keys","getAvailableTubeTypes","useMaterialCalculations$1"],"mappings":"gGAIA,MAAMA,EAAqB,CACzBC,cAAe,KACfC,yBAA0B,IAC1BC,wBAAyB,QACzBC,aAAc,CACZC,GAAI,QACJC,GAAI,UAkDFC,EAAmBC,IACvB,GAAIA,SAAmD,KAAVA,EAC3C,MAAO,CAAEA,MAAO,EAAGC,SAAS,EAAOC,MAAO,eAG5C,MAAMC,EAA0B,iBAAVH,EAAqBI,WAAWJ,EAAMK,QAAUC,OAAON,GAE7E,OAAIO,MAAMJ,GACD,CAAEH,MAAO,EAAGC,SAAS,EAAOC,MAAO,yBAGvCM,SAASL,GAIP,CAAEH,MAAOG,EAAQF,SAAS,GAHxB,CAAED,MAAO,EAAGC,SAAS,EAAOC,MAAO,yBASxCO,EAA0B,IAAIC,IAC3BA,EAAOC,MAAMX,IAClB,MAAMY,EAASb,EAAgBC,GAC/B,OAAOY,EAAOX,SAAWW,EAAOZ,MAAQ,IAOtCa,EAAiBC,GAChBA,EAGkB,CACrB,a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AAOC,KAAK,sBAAsBlB,KAG7B,CAAElD,QAA2B,IAAlBmE,EAAOG,OAAcH,WAM5BI,EAAyB,IAC7BC,OAAOC,KAAKlF,EAAmBI,cAM3B+E,EAAwB,IAC5B,CAAC,QAAS,SAAU,aAG7B,IAAAC,EAAe,CACb1D,0BACAiD,qBACAK,yBACAG,wBACAnF"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/hooks/use-material-calculations.ts"],"sourcesContent":["/* eslint-disable react-hooks/exhaustive-deps */\nimport { useMemo } from 'react';\n\n// ==================== CONSTANTS ====================\nconst MATERIAL_CONSTANTS = {\n STEEL_DENSITY: 7.85,\n LENGTH_CONVERSION_FACTOR: 1000,\n TUBE_CALCULATION_FACTOR: 0.024662,\n COIL_WEIGHTS: {\n GI: 2879.95,\n HR: 2356.59,\n },\n} as const;\n\n// ==================== TYPES ====================\ntype SteelType = keyof typeof MATERIAL_CONSTANTS.COIL_WEIGHTS;\ntype TubeType = 'Round' | 'Square' | 'Rectangle';\n\ninterface BaseFormValues {\n // Board calculation fields\n face_width?: string | number;\n bending?: string | number;\n height?: string | number;\n total_width?: string | number;\n boards_thickness?: string | number;\n boards_length?: string | number;\n \n // Steel calculation fields\n steel_length?: string | number;\n steel_width?: string | number;\n steel_thickness?: string | number;\n steel_type?: SteelType;\n \n // Tube calculation fields\n tube_type?: TubeType;\n tube_od?: string | number;\n shape_width?: string | number;\n shape_height?: string | number;\n material_thickness?: string | number;\n material_length?: string | number;\n}\n\ninterface MaterialCalculations {\n totalWidth: number;\n materialUnit: number;\n boardsWeight: number;\n steelWeight: number;\n materialWeight: number;\n}\n\ninterface CalculationResult<T = number> {\n value: T;\n isValid: boolean;\n error?: string;\n}\n\n// ==================== UTILITY FUNCTIONS ====================\n/**\n * Safely parses a value to number with comprehensive validation\n */\nconst safeParseNumber = (value: string | number | undefined | null): CalculationResult<number> => {\n if (value === undefined || value === null || value === '') {\n return { value: 0, isValid: false, error: 'Empty value' };\n }\n \n const parsed = typeof value === 'string' ? parseFloat(value.trim()) : Number(value);\n \n if (isNaN(parsed)) {\n return { value: 0, isValid: false, error: 'Invalid number format' };\n }\n \n if (!isFinite(parsed)) {\n return { value: 0, isValid: false, error: 'Number is not finite' };\n }\n \n return { value: parsed, isValid: true };\n};\n\n/**\n * Validates that all provided values are positive numbers\n */\nconst validatePositiveNumbers = (...values: (string | number | undefined)[]): boolean => {\n return values.every(value => {\n const result = safeParseNumber(value);\n return result.isValid && result.value > 0;\n });\n};\n\n/**\n * Creates a memoization key from form values to optimize re-calculations\n */\nconst createMemoKey = (formValues: BaseFormValues | undefined): string => {\n if (!formValues) return 'empty';\n \n // Only include relevant fields to avoid unnecessary recalculations\n const relevantFields = [\n 'face_width', 'bending', 'height', 'total_width', 'boards_thickness', 'boards_length',\n 'steel_length', 'steel_width', 'steel_thickness', 'steel_type',\n 'tube_type', 'tube_od', 'shape_width', 'shape_height', 'material_thickness', 'material_length'\n ];\n \n return relevantFields\n .map(field => `${field}:${formValues[field as keyof BaseFormValues] ?? ''}`)\n .join('|');\n};\n\n// ==================== CALCULATION FUNCTIONS ====================\n/**\n * Calculates the total width for boards costing\n * Formula: ((height + bending) * 2) + face_width\n */\nconst calculateBoardsTotalWidth = (formValues: BaseFormValues): CalculationResult<number> => {\n const { face_width, bending, height } = formValues;\n \n if (!validatePositiveNumbers(face_width, bending, height)) {\n return { value: 0, isValid: false, error: 'Invalid input values for boards total width calculation' };\n }\n \n const faceWidthResult = safeParseNumber(face_width);\n const bendingResult = safeParseNumber(bending);\n const heightResult = safeParseNumber(height);\n \n if (![faceWidthResult, bendingResult, heightResult].every(r => r.isValid)) {\n return { value: 0, isValid: false, error: 'Failed to parse input values' };\n }\n \n const totalWidth = ((heightResult.value + bendingResult.value) * 2) + faceWidthResult.value;\n \n return { value: totalWidth, isValid: true };\n};\n\n/**\n * Calculates the weight of boards\n * Formula: (total_width * thickness * (length / 1000)) * 7.85\n */\nconst calculateBoardsWeight = (formValues: BaseFormValues): CalculationResult<number> => {\n const { total_width, boards_thickness, boards_length } = formValues;\n \n if (!validatePositiveNumbers(total_width, boards_thickness, boards_length)) {\n return { value: 0, isValid: false, error: 'Invalid input values for boards weight calculation' };\n }\n \n const totalWidthResult = safeParseNumber(total_width);\n const thicknessResult = safeParseNumber(boards_thickness);\n const lengthResult = safeParseNumber(boards_length);\n \n if (![totalWidthResult, thicknessResult, lengthResult].every(r => r.isValid)) {\n return { value: 0, isValid: false, error: 'Failed to parse input values' };\n }\n \n const weight = (totalWidthResult.value * thicknessResult.value * \n (lengthResult.value / MATERIAL_CONSTANTS.LENGTH_CONVERSION_FACTOR)) * \n MATERIAL_CONSTANTS.STEEL_DENSITY;\n \n return { value: weight, isValid: true };\n};\n\n/**\n * Calculates the weight of steel\n * Formula: (length * width * thickness * 7.85) / 1000\n */\nconst calculateSteelWeight = (formValues: BaseFormValues): CalculationResult<number> => {\n const { steel_length, steel_width, steel_thickness } = formValues;\n \n if (!validatePositiveNumbers(steel_length, steel_width, steel_thickness)) {\n return { value: 0, isValid: false, error: 'Invalid input values for steel weight calculation' };\n }\n \n const lengthResult = safeParseNumber(steel_length);\n const widthResult = safeParseNumber(steel_width);\n const thicknessResult = safeParseNumber(steel_thickness);\n \n if (![lengthResult, widthResult, thicknessResult].every(r => r.isValid)) {\n return { value: 0, isValid: false, error: 'Failed to parse input values' };\n }\n \n const weight = (lengthResult.value * widthResult.value * thicknessResult.value * \n MATERIAL_CONSTANTS.STEEL_DENSITY) / MATERIAL_CONSTANTS.LENGTH_CONVERSION_FACTOR;\n \n return { value: weight, isValid: true };\n};\n\n/**\n * Gets the material unit weight based on steel type\n */\nconst calculateMaterialUnit = (formValues: BaseFormValues): CalculationResult<number> => {\n const { steel_type } = formValues;\n \n if (!steel_type) {\n return { value: 0, isValid: false, error: 'Steel type not specified' };\n }\n \n if (!(steel_type in MATERIAL_CONSTANTS.COIL_WEIGHTS)) {\n return { value: 0, isValid: false, error: `Unsupported steel type: ${steel_type}` };\n }\n \n const weight = MATERIAL_CONSTANTS.COIL_WEIGHTS[steel_type];\n return { value: weight, isValid: true };\n};\n\n/**\n * Calculates material weight based on tube type and dimensions\n * Supports Round, Square, and Rectangle tube types\n */\nconst calculateTubeMaterialWeight = (formValues: BaseFormValues): CalculationResult<number> => {\n const { tube_type, tube_od, shape_width, shape_height, material_thickness, material_length } = formValues;\n \n if (!tube_type) {\n return { value: 0, isValid: false, error: 'Tube type not specified' };\n }\n \n const thicknessResult = safeParseNumber(material_thickness);\n const lengthResult = safeParseNumber(material_length);\n \n if (!thicknessResult.isValid || !lengthResult.isValid) {\n return { value: 0, isValid: false, error: 'Invalid thickness or length values' };\n }\n \n let weight = 0;\n \n switch (tube_type) {\n case 'Round': {\n const odResult = safeParseNumber(tube_od);\n if (!odResult.isValid || odResult.value <= thicknessResult.value) {\n return { value: 0, isValid: false, error: 'Invalid outer diameter for round tube' };\n }\n \n weight = (odResult.value - thicknessResult.value) * thicknessResult.value * \n MATERIAL_CONSTANTS.TUBE_CALCULATION_FACTOR * lengthResult.value;\n break;\n }\n \n case 'Square':\n case 'Rectangle': {\n const widthResult = safeParseNumber(shape_width);\n const heightResult = safeParseNumber(shape_height);\n \n if (!widthResult.isValid || !heightResult.isValid) {\n return { value: 0, isValid: false, error: 'Invalid width or height for rectangular tube' };\n }\n \n const perimeter = 2 * (widthResult.value + heightResult.value);\n weight = (((perimeter / Math.PI) - thicknessResult.value) * thicknessResult.value * \n MATERIAL_CONSTANTS.TUBE_CALCULATION_FACTOR) * lengthResult.value;\n break;\n }\n \n default:\n return { value: 0, isValid: false, error: `Unsupported tube type: ${tube_type}` };\n }\n \n return { value: Math.max(0, weight), isValid: true };\n};\n\n// ==================== MAIN HOOK ====================\n/**\n * Custom hook for optimized material calculations with comprehensive error handling\n * and performance optimization through memoization\n */\nexport const useMaterialCalculations = (formValues?: BaseFormValues): MaterialCalculations => {\n const calculations = useMemo(() => {\n if (!formValues) {\n return {\n totalWidth: 0,\n materialUnit: 0,\n boardsWeight: 0,\n steelWeight: 0,\n materialWeight: 0,\n };\n }\n \n // Calculate all values with error handling\n const totalWidthResult = calculateBoardsTotalWidth(formValues);\n const materialUnitResult = calculateMaterialUnit(formValues);\n const boardsWeightResult = calculateBoardsWeight(formValues);\n const steelWeightResult = calculateSteelWeight(formValues);\n const materialWeightResult = calculateTubeMaterialWeight(formValues);\n \n // Optional: Log errors in development\n if (process.env.NODE_ENV === 'development') {\n [totalWidthResult, materialUnitResult, boardsWeightResult, steelWeightResult, materialWeightResult]\n .filter(result => !result.isValid && result.error)\n .forEach(result => console.warn('Calculation warning:', result.error));\n }\n \n return {\n totalWidth: totalWidthResult.value,\n materialUnit: materialUnitResult.value,\n boardsWeight: boardsWeightResult.value,\n steelWeight: steelWeightResult.value,\n materialWeight: materialWeightResult.value,\n };\n }, [createMemoKey(formValues)]); // Optimized dependency to prevent unnecessary recalculations\n \n return calculations;\n};\n\n// ==================== ADDITIONAL UTILITIES ====================\n/**\n * Utility function to validate form values before calculations\n */\nexport const validateFormValues = (formValues: BaseFormValues): { isValid: boolean; errors: string[] } => {\n const errors: string[] = [];\n const { tube_type, steel_type } = formValues;\n \n // Validate steel type if provided\n if (steel_type && !(steel_type in MATERIAL_CONSTANTS.COIL_WEIGHTS)) {\n errors.push(`Invalid steel type: ${steel_type}`);\n }\n \n // Validate tube type if provided\n if (tube_type && !['Round', 'Square', 'Rectangle'].includes(tube_type)) {\n errors.push(`Invalid tube type: ${tube_type}`);\n }\n \n return { isValid: errors.length === 0, errors };\n};\n\n/**\n * Get available steel types for form validation\n */\nexport const getAvailableSteelTypes = (): SteelType[] => {\n return Object.keys(MATERIAL_CONSTANTS.COIL_WEIGHTS) as SteelType[];\n};\n\n/**\n * Get available tube types for form validation\n */\nexport const getAvailableTubeTypes = (): TubeType[] => {\n return ['Round', 'Square', 'Rectangle'];\n};\n\nexport default {\n useMaterialCalculations,\n validateFormValues,\n getAvailableSteelTypes,\n getAvailableTubeTypes,\n MATERIAL_CONSTANTS,\n};\nexport type {\n BaseFormValues,\n MaterialCalculations,\n SteelType,\n TubeType,\n CalculationResult,\n};"],"names":["MATERIAL_CONSTANTS","STEEL_DENSITY","LENGTH_CONVERSION_FACTOR","TUBE_CALCULATION_FACTOR","COIL_WEIGHTS","GI","HR","safeParseNumber","value","isValid","error","parsed","parseFloat","trim","Number","isNaN","isFinite","validatePositiveNumbers","values","every","result","createMemoKey","formValues","map","field","join","Object","keys","useMemo","totalWidth","materialUnit","boardsWeight","steelWeight","materialWeight","totalWidthResult","face_width","bending","height","faceWidthResult","bendingResult","heightResult","r","calculateBoardsTotalWidth","materialUnitResult","steel_type","calculateMaterialUnit","boardsWeightResult","total_width","boards_thickness","boards_length","thicknessResult","lengthResult","calculateBoardsWeight","steelWeightResult","steel_length","steel_width","steel_thickness","widthResult","calculateSteelWeight","materialWeightResult","tube_type","tube_od","shape_width","shape_height","material_thickness","material_length","weight","odResult","Math","PI","max","calculateTubeMaterialWeight","define_process_env_default","NODE_ENV","filter","forEach","errors","push","includes","length"],"mappings":"gGAIA,MAAMA,EAAqB,CACzBC,cAAe,KACfC,yBAA0B,IAC1BC,wBAAyB,QACzBC,aAAc,CACZC,GAAI,QACJC,GAAI,UAkDFC,EAAmBC,IACvB,GAAIA,SAAmD,KAAVA,EAC3C,MAAO,CAAEA,MAAO,EAAGC,SAAS,EAAOC,MAAO,eAG5C,MAAMC,EAA0B,iBAAVH,EAAqBI,WAAWJ,EAAMK,QAAUC,OAAON,GAE7E,OAAIO,MAAMJ,GACD,CAAEH,MAAO,EAAGC,SAAS,EAAOC,MAAO,yBAGvCM,SAASL,GAIP,CAAEH,MAAOG,EAAQF,SAAS,GAHxB,CAAED,MAAO,EAAGC,SAAS,EAAOC,MAAO,yBASxCO,EAA0B,IAAIC,IAC3BA,EAAOC,MAAMX,IAClB,MAAMY,EAASb,EAAgBC,GAC/B,OAAOY,EAAOX,SAAWW,EAAOZ,MAAQ,IAOtCa,EAAiBC,GAChBA,EAGkB,CACrB,aAAc,UAAW,SAAU,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,CAAC,QAAS,SAAU,aAAakB,SAASlB,IAC1DgB,EAAOC,KAAK,sBAAsBjB,KAG7B,CAAEnD,QAA2B,IAAlBmE,EAAOG,OAAcH"}
@@ -0,0 +1,81 @@
1
+ declare const MATERIAL_CONSTANTS: {
2
+ readonly STEEL_DENSITY: 7.85;
3
+ readonly LENGTH_CONVERSION_FACTOR: 1000;
4
+ readonly TUBE_CALCULATION_FACTOR: 0.024662;
5
+ readonly COIL_WEIGHTS: {
6
+ readonly GI: 2879.95;
7
+ readonly HR: 2356.59;
8
+ };
9
+ };
10
+ type SteelType = keyof typeof MATERIAL_CONSTANTS.COIL_WEIGHTS;
11
+ type TubeType = 'Round' | 'Square' | 'Rectangle';
12
+ interface BaseFormValues {
13
+ face_width?: string | number;
14
+ bending?: string | number;
15
+ height?: string | number;
16
+ total_width?: string | number;
17
+ boards_thickness?: string | number;
18
+ boards_length?: string | number;
19
+ steel_length?: string | number;
20
+ steel_width?: string | number;
21
+ steel_thickness?: string | number;
22
+ steel_type?: SteelType;
23
+ tube_type?: TubeType;
24
+ tube_od?: string | number;
25
+ shape_width?: string | number;
26
+ shape_height?: string | number;
27
+ material_thickness?: string | number;
28
+ material_length?: string | number;
29
+ }
30
+ interface MaterialCalculations {
31
+ totalWidth: number;
32
+ materialUnit: number;
33
+ boardsWeight: number;
34
+ steelWeight: number;
35
+ materialWeight: number;
36
+ }
37
+ interface CalculationResult<T = number> {
38
+ value: T;
39
+ isValid: boolean;
40
+ error?: string;
41
+ }
42
+ /**
43
+ * Custom hook for optimized material calculations with comprehensive error handling
44
+ * and performance optimization through memoization
45
+ */
46
+ export declare const useMaterialCalculations: (formValues?: BaseFormValues) => MaterialCalculations;
47
+ /**
48
+ * Utility function to validate form values before calculations
49
+ */
50
+ export declare const validateFormValues: (formValues: BaseFormValues) => {
51
+ isValid: boolean;
52
+ errors: string[];
53
+ };
54
+ /**
55
+ * Get available steel types for form validation
56
+ */
57
+ export declare const getAvailableSteelTypes: () => SteelType[];
58
+ /**
59
+ * Get available tube types for form validation
60
+ */
61
+ export declare const getAvailableTubeTypes: () => TubeType[];
62
+ declare const _default: {
63
+ useMaterialCalculations: (formValues?: BaseFormValues) => MaterialCalculations;
64
+ validateFormValues: (formValues: BaseFormValues) => {
65
+ isValid: boolean;
66
+ errors: string[];
67
+ };
68
+ getAvailableSteelTypes: () => SteelType[];
69
+ getAvailableTubeTypes: () => TubeType[];
70
+ MATERIAL_CONSTANTS: {
71
+ readonly STEEL_DENSITY: 7.85;
72
+ readonly LENGTH_CONVERSION_FACTOR: 1000;
73
+ readonly TUBE_CALCULATION_FACTOR: 0.024662;
74
+ readonly COIL_WEIGHTS: {
75
+ readonly GI: 2879.95;
76
+ readonly HR: 2356.59;
77
+ };
78
+ };
79
+ };
80
+ export default _default;
81
+ export type { BaseFormValues, MaterialCalculations, SteelType, TubeType, CalculationResult, };
@@ -0,0 +1,3 @@
1
+ export default function useAppTranslations(): {
2
+ isLoading: boolean;
3
+ };
@@ -0,0 +1,7 @@
1
+ export default function useNameSkuUniquenessCheck({ fieldPrefix, formMethods, data }: {
2
+ fieldPrefix: string;
3
+ formMethods: any;
4
+ data?: any;
5
+ }): {
6
+ checkNameAndSkuUniqueness: () => Promise<boolean>;
7
+ };
@@ -1,7 +1,7 @@
1
1
  import { useCallback } from "react";
2
2
  import { useDispatch } from "react-redux";
3
3
  import { usePages } from "../use-pages/index.esm.js";
4
- const useGenericDataFetcher = (cols, pagination, fetchAction, customeFilter = "", customDeps, showCreatedBy = true, customFields = []) => {
4
+ const useDataFetcher = (cols, pagination, fetchAction, customeFilter = "", customDeps, showCreatedBy = true, customFields = []) => {
5
5
  const { activePage } = usePages();
6
6
  const dispatch = useDispatch();
7
7
  const columns = Array.isArray(cols) ? cols : activePage == null ? void 0 : activePage.visible_columns;
@@ -54,6 +54,7 @@ const useGenericDataFetcher = (cols, pagination, fetchAction, customeFilter = ""
54
54
  return fetchData;
55
55
  };
56
56
  export {
57
- useGenericDataFetcher as default
57
+ useDataFetcher as default,
58
+ useDataFetcher
58
59
  };
59
60
  //# sourceMappingURL=index.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":["../../../src/hooks/useDataFetcher.tsx"],"sourcesContent":["import { useCallback } from 'react';\nimport { useDispatch } from 'react-redux';\nimport { usePages } from './use-pages';\n\ninterface FilterParams {\n\tskip: number;\n\tlimit: number;\n\tsearch?: string;\n\tselect?: string;\n\torder?: string;\n\tfilters?: string;\n}\n\ninterface ActivePage {\n\tsort?: { id: string; desc: boolean };\n\tfilterQueryString?: string;\n\tsearch?: string;\n\tvisible_columns?: { visible: boolean; accessorKey: string }[];\n}\n\nconst useGenericDataFetcher = (\n\tcols?: ActivePage,\n\tpagination: { skip: number; limit: number },\n\tfetchAction: (filters: FilterParams) => void,\n\tcustomeFilter: any = '',\n\tcustomDeps?: any[],\n\tshowCreatedBy: boolean = true,\n\tcustomFields?: any = []\n) => {\n\tconst { activePage } = usePages();\n\tconst dispatch = useDispatch();\n\tconst columns = Array.isArray(cols) ? cols : activePage?.visible_columns;\n\n\tconst getProcessedFilters = useCallback(() => {\n\t\tconst { filterQueryString } = activePage || {};\n\t\tconst queryString = filterQueryString?.replaceAll(/[()]/g, '') || '';\n\t\tconst extraQueryString = queryString.length ? `&${queryString}` : '';\n\t\tlet filters = customeFilter;\n\n\t\tif (extraQueryString) {\n\t\t\tfilters = filters\n\t\t\t\t? `(${filters}${extraQueryString})`\n\t\t\t\t: `(${extraQueryString})`;\n\t\t} else if (filters) {\n\t\t\tfilters = `(${filters})`;\n\t\t}\n\n\t\treturn filters || undefined;\n\t\t//eslint-disable-next-line\n\t}, [activePage.filterQueryString, customeFilter]);\n\n\tconst fetchData = useCallback(() => {\n\t\tconst { sort = null, search } = activePage;\n\t\tif (!Array.isArray(cols) && activePage?.visible_columns?.length == 0)\n\t\t\treturn;\n\t\tconst filters = getProcessedFilters();\n\t\tconst visibleColumns = columns?.filter((vc) => vc.visible);\n\n\t\tconst selectPayload =\n\t\t\tvisibleColumns?.length > 0\n\t\t\t\t? `[${visibleColumns?.map((item) =>\n\t\t\t\t\t\titem.accessorKey?.includes('.')\n\t\t\t\t\t\t\t? item.accessorKey.split('.')[0]\n\t\t\t\t\t\t\t: item.accessorKey\n\t\t\t\t\t)}${showCreatedBy ? ',created_at,created_by_data' : ''}${customFields?.length ? `,${customFields?.join(',')}` : ''}]`\n\t\t\t\t: undefined;\n\t\tconst payload: FilterParams = {\n\t\t\tskip: pagination.skip,\n\t\t\tlimit: pagination.limit,\n\t\t\tsearch,\n\t\t\tselect: selectPayload,\n\t\t\t...(sort && { order: `${sort.id}:${sort.desc ? -1 : 1}` }),\n\t\t\t...(filters && { filters })\n\t\t};\n\n\t\tdispatch(fetchAction(payload));\n\t\t//eslint-disable-next-line\n\t}, [\n\t\tcolumns,\n\t\tactivePage.sort,\n\t\tactivePage.filterQueryString,\n\t\tactivePage.search,\n\t\tpagination.skip,\n\t\t// activePage?.skip,\n\t\tpagination.limit,\n\t\tdispatch,\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t\t...(customDeps || [])\n\t]);\n\n\treturn fetchData;\n};\n\nexport default useGenericDataFetcher;\n"],"names":["_a"],"mappings":";;;AAoBA,MAAM,wBAAwB,CAC7B,MACA,YACA,aACA,gBAAqB,IACrB,YACA,gBAAyB,MACzB,eAAqB,CAAA,MACjB;AACJ,QAAM,EAAE,WAAA,IAAe,SAAA;AACvB,QAAM,WAAW,YAAA;AACjB,QAAM,UAAU,MAAM,QAAQ,IAAI,IAAI,OAAO,yCAAY;AAEzD,QAAM,sBAAsB,YAAY,MAAM;AAC7C,UAAM,EAAE,sBAAsB,cAAc,CAAA;AAC5C,UAAM,eAAc,uDAAmB,WAAW,SAAS,QAAO;AAClE,UAAM,mBAAmB,YAAY,SAAS,IAAI,WAAW,KAAK;AAClE,QAAI,UAAU;AAEd,QAAI,kBAAkB;AACrB,gBAAU,UACP,IAAI,OAAO,GAAG,gBAAgB,MAC9B,IAAI,gBAAgB;AAAA,IACxB,WAAW,SAAS;AACnB,gBAAU,IAAI,OAAO;AAAA,IACtB;AAEA,WAAO,WAAW;AAAA,EAEnB,GAAG,CAAC,WAAW,mBAAmB,aAAa,CAAC;AAEhD,QAAM,YAAY,YAAY,MAAM;;AACnC,UAAM,EAAE,OAAO,MAAM,OAAA,IAAW;AAChC,QAAI,CAAC,MAAM,QAAQ,IAAI,OAAK,8CAAY,oBAAZ,mBAA6B,WAAU;AAClE;AACD,UAAM,UAAU,oBAAA;AAChB,UAAM,iBAAiB,mCAAS,OAAO,CAAC,OAAO,GAAG;AAElD,UAAM,iBACL,iDAAgB,UAAS,IACtB,IAAI,iDAAgB;AAAA,MAAI,CAAC,SAAA;;AACzB,iBAAAA,MAAA,KAAK,gBAAL,gBAAAA,IAAkB,SAAS,QACxB,KAAK,YAAY,MAAM,GAAG,EAAE,CAAC,IAC7B,KAAK;AAAA;AAAA,KACR,GAAG,gBAAgB,gCAAgC,EAAE,IAAG,6CAAc,UAAS,IAAI,6CAAc,KAAK,IAAI,KAAK,EAAE,MACjH;AACJ,UAAM,UAAwB;AAAA,MAC7B,MAAM,WAAW;AAAA,MACjB,OAAO,WAAW;AAAA,MAClB;AAAA,MACA,QAAQ;AAAA,MACR,GAAI,QAAQ,EAAE,OAAO,GAAG,KAAK,EAAE,IAAI,KAAK,OAAO,KAAK,CAAC,GAAA;AAAA,MACrD,GAAI,WAAW,EAAE,QAAA;AAAA,IAAQ;AAG1B,aAAS,YAAY,OAAO,CAAC;AAAA,EAE9B,GAAG;AAAA,IACF;AAAA,IACA,WAAW;AAAA,IACX,WAAW;AAAA,IACX,WAAW;AAAA,IACX,WAAW;AAAA;AAAA,IAEX,WAAW;AAAA,IACX;AAAA;AAAA,IAEA,GAAI,cAAc,CAAA;AAAA,EAAC,CACnB;AAED,SAAO;AACR;"}
1
+ {"version":3,"file":"index.esm.js","sources":["../../../src/hooks/useDataFetcher.tsx"],"sourcesContent":["import { useCallback } from 'react';\nimport { useDispatch } from 'react-redux';\nimport { usePages } from './use-pages';\n\ninterface FilterParams {\n\tskip: number;\n\tlimit: number;\n\tsearch?: string;\n\tselect?: string;\n\torder?: string;\n\tfilters?: string;\n}\n\ninterface ActivePage {\n\tsort?: { id: string; desc: boolean };\n\tfilterQueryString?: string;\n\tsearch?: string;\n\tvisible_columns?: { visible: boolean; accessorKey: string }[];\n}\n\nexport const useDataFetcher = (\n\tcols?: ActivePage,\n\tpagination: { skip: number; limit: number },\n\tfetchAction: (filters: FilterParams) => void,\n\tcustomeFilter: any = '',\n\tcustomDeps?: any[],\n\tshowCreatedBy: boolean = true,\n\tcustomFields?: any = []\n) => {\n\tconst { activePage } = usePages();\n\tconst dispatch = useDispatch();\n\tconst columns = Array.isArray(cols) ? cols : activePage?.visible_columns;\n\n\tconst getProcessedFilters = useCallback(() => {\n\t\tconst { filterQueryString } = activePage || {};\n\t\tconst queryString = filterQueryString?.replaceAll(/[()]/g, '') || '';\n\t\tconst extraQueryString = queryString.length ? `&${queryString}` : '';\n\t\tlet filters = customeFilter;\n\n\t\tif (extraQueryString) {\n\t\t\tfilters = filters\n\t\t\t\t? `(${filters}${extraQueryString})`\n\t\t\t\t: `(${extraQueryString})`;\n\t\t} else if (filters) {\n\t\t\tfilters = `(${filters})`;\n\t\t}\n\n\t\treturn filters || undefined;\n\t\t//eslint-disable-next-line\n\t}, [activePage.filterQueryString, customeFilter]);\n\n\tconst fetchData = useCallback(() => {\n\t\tconst { sort = null, search } = activePage;\n\t\tif (!Array.isArray(cols) && activePage?.visible_columns?.length == 0)\n\t\t\treturn;\n\t\tconst filters = getProcessedFilters();\n\t\tconst visibleColumns = columns?.filter((vc) => vc.visible);\n\n\t\tconst selectPayload =\n\t\t\tvisibleColumns?.length > 0\n\t\t\t\t? `[${visibleColumns?.map((item) =>\n\t\t\t\t\t\titem.accessorKey?.includes('.')\n\t\t\t\t\t\t\t? item.accessorKey.split('.')[0]\n\t\t\t\t\t\t\t: item.accessorKey\n\t\t\t\t\t)}${showCreatedBy ? ',created_at,created_by_data' : ''}${customFields?.length ? `,${customFields?.join(',')}` : ''}]`\n\t\t\t\t: undefined;\n\t\tconst payload: FilterParams = {\n\t\t\tskip: pagination.skip,\n\t\t\tlimit: pagination.limit,\n\t\t\tsearch,\n\t\t\tselect: selectPayload,\n\t\t\t...(sort && { order: `${sort.id}:${sort.desc ? -1 : 1}` }),\n\t\t\t...(filters && { filters })\n\t\t};\n\n\t\tdispatch(fetchAction(payload));\n\t\t//eslint-disable-next-line\n\t}, [\n\t\tcolumns,\n\t\tactivePage.sort,\n\t\tactivePage.filterQueryString,\n\t\tactivePage.search,\n\t\tpagination.skip,\n\t\t// activePage?.skip,\n\t\tpagination.limit,\n\t\tdispatch,\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t\t...(customDeps || [])\n\t]);\n\n\treturn fetchData;\n};\n\nexport default useDataFetcher;\n"],"names":["_a"],"mappings":";;;AAoBO,MAAM,iBAAiB,CAC7B,MACA,YACA,aACA,gBAAqB,IACrB,YACA,gBAAyB,MACzB,eAAqB,CAAA,MACjB;AACJ,QAAM,EAAE,WAAA,IAAe,SAAA;AACvB,QAAM,WAAW,YAAA;AACjB,QAAM,UAAU,MAAM,QAAQ,IAAI,IAAI,OAAO,yCAAY;AAEzD,QAAM,sBAAsB,YAAY,MAAM;AAC7C,UAAM,EAAE,sBAAsB,cAAc,CAAA;AAC5C,UAAM,eAAc,uDAAmB,WAAW,SAAS,QAAO;AAClE,UAAM,mBAAmB,YAAY,SAAS,IAAI,WAAW,KAAK;AAClE,QAAI,UAAU;AAEd,QAAI,kBAAkB;AACrB,gBAAU,UACP,IAAI,OAAO,GAAG,gBAAgB,MAC9B,IAAI,gBAAgB;AAAA,IACxB,WAAW,SAAS;AACnB,gBAAU,IAAI,OAAO;AAAA,IACtB;AAEA,WAAO,WAAW;AAAA,EAEnB,GAAG,CAAC,WAAW,mBAAmB,aAAa,CAAC;AAEhD,QAAM,YAAY,YAAY,MAAM;;AACnC,UAAM,EAAE,OAAO,MAAM,OAAA,IAAW;AAChC,QAAI,CAAC,MAAM,QAAQ,IAAI,OAAK,8CAAY,oBAAZ,mBAA6B,WAAU;AAClE;AACD,UAAM,UAAU,oBAAA;AAChB,UAAM,iBAAiB,mCAAS,OAAO,CAAC,OAAO,GAAG;AAElD,UAAM,iBACL,iDAAgB,UAAS,IACtB,IAAI,iDAAgB;AAAA,MAAI,CAAC,SAAA;;AACzB,iBAAAA,MAAA,KAAK,gBAAL,gBAAAA,IAAkB,SAAS,QACxB,KAAK,YAAY,MAAM,GAAG,EAAE,CAAC,IAC7B,KAAK;AAAA;AAAA,KACR,GAAG,gBAAgB,gCAAgC,EAAE,IAAG,6CAAc,UAAS,IAAI,6CAAc,KAAK,IAAI,KAAK,EAAE,MACjH;AACJ,UAAM,UAAwB;AAAA,MAC7B,MAAM,WAAW;AAAA,MACjB,OAAO,WAAW;AAAA,MAClB;AAAA,MACA,QAAQ;AAAA,MACR,GAAI,QAAQ,EAAE,OAAO,GAAG,KAAK,EAAE,IAAI,KAAK,OAAO,KAAK,CAAC,GAAA;AAAA,MACrD,GAAI,WAAW,EAAE,QAAA;AAAA,IAAQ;AAG1B,aAAS,YAAY,OAAO,CAAC;AAAA,EAE9B,GAAG;AAAA,IACF;AAAA,IACA,WAAW;AAAA,IACX,WAAW;AAAA,IACX,WAAW;AAAA,IACX,WAAW;AAAA;AAAA,IAEX,WAAW;AAAA,IACX;AAAA;AAAA,IAEA,GAAI,cAAc,CAAA;AAAA,EAAC,CACnB;AAED,SAAO;AACR;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("react-redux"),l=require("../use-pages/index.js");exports.default=(i,s,t,u="",a,n=!0,c=[])=>{const{activePage:o}=l.usePages(),d=r.useDispatch(),v=Array.isArray(i)?i:null==o?void 0:o.visible_columns,y=e.useCallback(()=>{const{filterQueryString:e}=o||{},r=(null==e?void 0:e.replaceAll(/[()]/g,""))||"",l=r.length?`&${r}`:"";let i=u;return l?i=i?`(${i}${l})`:`(${l})`:i&&(i=`(${i})`),i||void 0},[o.filterQueryString,u]);return e.useCallback(()=>{var e;const{sort:r=null,search:l}=o;if(!Array.isArray(i)&&0==(null==(e=null==o?void 0:o.visible_columns)?void 0:e.length))return;const u=y(),a=null==v?void 0:v.filter(e=>e.visible),g=(null==a?void 0:a.length)>0?`[${null==a?void 0:a.map(e=>{var r;return(null==(r=e.accessorKey)?void 0:r.includes("."))?e.accessorKey.split(".")[0]:e.accessorKey})}${n?",created_at,created_by_data":""}${(null==c?void 0:c.length)?`,${null==c?void 0:c.join(",")}`:""}]`:void 0,p={skip:s.skip,limit:s.limit,search:l,select:g,...r&&{order:`${r.id}:${r.desc?-1:1}`},...u&&{filters:u}};d(t(p))},[v,o.sort,o.filterQueryString,o.search,s.skip,s.limit,d,...a||[]])};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("react-redux"),l=require("../use-pages/index.js");const i=(i,s,t,a="",u,n=!0,c=[])=>{const{activePage:o}=l.usePages(),d=r.useDispatch(),v=Array.isArray(i)?i:null==o?void 0:o.visible_columns,p=e.useCallback(()=>{const{filterQueryString:e}=o||{},r=(null==e?void 0:e.replaceAll(/[()]/g,""))||"",l=r.length?`&${r}`:"";let i=a;return l?i=i?`(${i}${l})`:`(${l})`:i&&(i=`(${i})`),i||void 0},[o.filterQueryString,a]);return e.useCallback(()=>{var e;const{sort:r=null,search:l}=o;if(!Array.isArray(i)&&0==(null==(e=null==o?void 0:o.visible_columns)?void 0:e.length))return;const a=p(),u=null==v?void 0:v.filter(e=>e.visible),y=(null==u?void 0:u.length)>0?`[${null==u?void 0:u.map(e=>{var r;return(null==(r=e.accessorKey)?void 0:r.includes("."))?e.accessorKey.split(".")[0]:e.accessorKey})}${n?",created_at,created_by_data":""}${(null==c?void 0:c.length)?`,${null==c?void 0:c.join(",")}`:""}]`:void 0,g={skip:s.skip,limit:s.limit,search:l,select:y,...r&&{order:`${r.id}:${r.desc?-1:1}`},...a&&{filters:a}};d(t(g))},[v,o.sort,o.filterQueryString,o.search,s.skip,s.limit,d,...u||[]])};exports.default=i,exports.useDataFetcher=i;
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/hooks/useDataFetcher.tsx"],"sourcesContent":["import { useCallback } from 'react';\nimport { useDispatch } from 'react-redux';\nimport { usePages } from './use-pages';\n\ninterface FilterParams {\n\tskip: number;\n\tlimit: number;\n\tsearch?: string;\n\tselect?: string;\n\torder?: string;\n\tfilters?: string;\n}\n\ninterface ActivePage {\n\tsort?: { id: string; desc: boolean };\n\tfilterQueryString?: string;\n\tsearch?: string;\n\tvisible_columns?: { visible: boolean; accessorKey: string }[];\n}\n\nconst useGenericDataFetcher = (\n\tcols?: ActivePage,\n\tpagination: { skip: number; limit: number },\n\tfetchAction: (filters: FilterParams) => void,\n\tcustomeFilter: any = '',\n\tcustomDeps?: any[],\n\tshowCreatedBy: boolean = true,\n\tcustomFields?: any = []\n) => {\n\tconst { activePage } = usePages();\n\tconst dispatch = useDispatch();\n\tconst columns = Array.isArray(cols) ? cols : activePage?.visible_columns;\n\n\tconst getProcessedFilters = useCallback(() => {\n\t\tconst { filterQueryString } = activePage || {};\n\t\tconst queryString = filterQueryString?.replaceAll(/[()]/g, '') || '';\n\t\tconst extraQueryString = queryString.length ? `&${queryString}` : '';\n\t\tlet filters = customeFilter;\n\n\t\tif (extraQueryString) {\n\t\t\tfilters = filters\n\t\t\t\t? `(${filters}${extraQueryString})`\n\t\t\t\t: `(${extraQueryString})`;\n\t\t} else if (filters) {\n\t\t\tfilters = `(${filters})`;\n\t\t}\n\n\t\treturn filters || undefined;\n\t\t//eslint-disable-next-line\n\t}, [activePage.filterQueryString, customeFilter]);\n\n\tconst fetchData = useCallback(() => {\n\t\tconst { sort = null, search } = activePage;\n\t\tif (!Array.isArray(cols) && activePage?.visible_columns?.length == 0)\n\t\t\treturn;\n\t\tconst filters = getProcessedFilters();\n\t\tconst visibleColumns = columns?.filter((vc) => vc.visible);\n\n\t\tconst selectPayload =\n\t\t\tvisibleColumns?.length > 0\n\t\t\t\t? `[${visibleColumns?.map((item) =>\n\t\t\t\t\t\titem.accessorKey?.includes('.')\n\t\t\t\t\t\t\t? item.accessorKey.split('.')[0]\n\t\t\t\t\t\t\t: item.accessorKey\n\t\t\t\t\t)}${showCreatedBy ? ',created_at,created_by_data' : ''}${customFields?.length ? `,${customFields?.join(',')}` : ''}]`\n\t\t\t\t: undefined;\n\t\tconst payload: FilterParams = {\n\t\t\tskip: pagination.skip,\n\t\t\tlimit: pagination.limit,\n\t\t\tsearch,\n\t\t\tselect: selectPayload,\n\t\t\t...(sort && { order: `${sort.id}:${sort.desc ? -1 : 1}` }),\n\t\t\t...(filters && { filters })\n\t\t};\n\n\t\tdispatch(fetchAction(payload));\n\t\t//eslint-disable-next-line\n\t}, [\n\t\tcolumns,\n\t\tactivePage.sort,\n\t\tactivePage.filterQueryString,\n\t\tactivePage.search,\n\t\tpagination.skip,\n\t\t// activePage?.skip,\n\t\tpagination.limit,\n\t\tdispatch,\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t\t...(customDeps || [])\n\t]);\n\n\treturn fetchData;\n};\n\nexport default useGenericDataFetcher;\n"],"names":["cols","pagination","fetchAction","customeFilter","customDeps","showCreatedBy","customFields","activePage","usePages","dispatch","useDispatch","columns","Array","isArray","visible_columns","getProcessedFilters","useCallback","filterQueryString","queryString","replaceAll","extraQueryString","length","filters","sort","search","_a","visibleColumns","filter","vc","visible","selectPayload","map","item","accessorKey","includes","split","join","payload","skip","limit","select","order","id","desc"],"mappings":"uKAoB8B,CAC7BA,EACAC,EACAC,EACAC,EAAqB,GACrBC,EACAC,GAAyB,EACzBC,EAAqB,MAErB,MAAMC,WAAEA,GAAeC,aACjBC,EAAWC,EAAAA,cACXC,EAAUC,MAAMC,QAAQb,GAAQA,EAAO,MAAAO,OAAA,E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EIL,GAAc"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/hooks/useDataFetcher.tsx"],"sourcesContent":["import { useCallback } from 'react';\nimport { useDispatch } from 'react-redux';\nimport { usePages } from './use-pages';\n\ninterface FilterParams {\n\tskip: number;\n\tlimit: number;\n\tsearch?: string;\n\tselect?: string;\n\torder?: string;\n\tfilters?: string;\n}\n\ninterface ActivePage {\n\tsort?: { id: string; desc: boolean };\n\tfilterQueryString?: string;\n\tsearch?: string;\n\tvisible_columns?: { visible: boolean; accessorKey: string }[];\n}\n\nexport const useDataFetcher = (\n\tcols?: ActivePage,\n\tpagination: { skip: number; limit: number },\n\tfetchAction: (filters: FilterParams) => void,\n\tcustomeFilter: any = '',\n\tcustomDeps?: any[],\n\tshowCreatedBy: boolean = true,\n\tcustomFields?: any = []\n) => {\n\tconst { activePage } = usePages();\n\tconst dispatch = useDispatch();\n\tconst columns = Array.isArray(cols) ? cols : activePage?.visible_columns;\n\n\tconst getProcessedFilters = useCallback(() => {\n\t\tconst { filterQueryString } = activePage || {};\n\t\tconst queryString = filterQueryString?.replaceAll(/[()]/g, '') || '';\n\t\tconst extraQueryString = queryString.length ? `&${queryString}` : '';\n\t\tlet filters = customeFilter;\n\n\t\tif (extraQueryString) {\n\t\t\tfilters = filters\n\t\t\t\t? `(${filters}${extraQueryString})`\n\t\t\t\t: `(${extraQueryString})`;\n\t\t} else if (filters) {\n\t\t\tfilters = `(${filters})`;\n\t\t}\n\n\t\treturn filters || undefined;\n\t\t//eslint-disable-next-line\n\t}, [activePage.filterQueryString, customeFilter]);\n\n\tconst fetchData = useCallback(() => {\n\t\tconst { sort = null, search } = activePage;\n\t\tif (!Array.isArray(cols) && activePage?.visible_columns?.length == 0)\n\t\t\treturn;\n\t\tconst filters = getProcessedFilters();\n\t\tconst visibleColumns = columns?.filter((vc) => vc.visible);\n\n\t\tconst selectPayload =\n\t\t\tvisibleColumns?.length > 0\n\t\t\t\t? `[${visibleColumns?.map((item) =>\n\t\t\t\t\t\titem.accessorKey?.includes('.')\n\t\t\t\t\t\t\t? item.accessorKey.split('.')[0]\n\t\t\t\t\t\t\t: item.accessorKey\n\t\t\t\t\t)}${showCreatedBy ? ',created_at,created_by_data' : ''}${customFields?.length ? `,${customFields?.join(',')}` : ''}]`\n\t\t\t\t: undefined;\n\t\tconst payload: FilterParams = {\n\t\t\tskip: pagination.skip,\n\t\t\tlimit: pagination.limit,\n\t\t\tsearch,\n\t\t\tselect: selectPayload,\n\t\t\t...(sort && { order: `${sort.id}:${sort.desc ? -1 : 1}` }),\n\t\t\t...(filters && { filters })\n\t\t};\n\n\t\tdispatch(fetchAction(payload));\n\t\t//eslint-disable-next-line\n\t}, [\n\t\tcolumns,\n\t\tactivePage.sort,\n\t\tactivePage.filterQueryString,\n\t\tactivePage.search,\n\t\tpagination.skip,\n\t\t// activePage?.skip,\n\t\tpagination.limit,\n\t\tdispatch,\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t\t...(customDeps || [])\n\t]);\n\n\treturn fetchData;\n};\n\nexport default useDataFetcher;\n"],"names":["useDataFetcher","cols","pagination","fetchAction","customeFilter","customDeps","showCreatedBy","customFields","activePage","usePages","dispatch","useDispatch","columns","Array","isArray","visible_columns","getProcessedFilters","useCallback","filterQueryString","queryString","replaceAll","extraQueryString","length","filters","sort","search","_a","visibleColumns","filter","vc","visible","selectPayload","map","item","accessorKey","includes","split","join","payload","skip","limit","select","order","id","desc"],"mappings":"uJAoBO,MAAMA,EAAiB,CAC7BC,EACAC,EACAC,EACAC,EAAqB,GACrBC,EACAC,GAAyB,EACzBC,EAAqB,MAErB,MAAMC,WAAEA,GAAeC,aACjBC,EAAWC,EAAAA,cACXC,EAAUC,MAAMC,QAAQb,GAAQA,EAAO,MAAAO,OAAA,EAAAA,EAAYO,gBAEnDC,EAAsBC,EAAAA,YAAY,KACvC,MAAMC,kBAAEA,GAAsBV,GAAc,CAAA,EACtCW,GAAc,MAAAD,OAAA,EAAAA,EAAmBE,WAAW,QAAS,MAAO,GAC5DC,EAAmBF,EAAYG,OAAS,IAAIH,IAAgB,GAClE,IAAII,EAAUnB,EAUd,OARIiB,EACHE,EAAUA,EACP,IAAIA,IAAUF,KACd,IAAIA,KACGE,IACVA,EAAU,IAAIA,MAGRA,QAAW,GAEhB,CAACf,EAAWU,kBAAmBd,IAyClC,OAvCkBa,EAAAA,YAAY,WAC7B,MAAMO,KAAEA,EAAO,KAAAC,OAAMA,GAAWjB,EAChC,IAAKK,MAAMC,QAAQb,IAAgD,IAAvC,OAAAyB,EAAA,MAAAlB,OAAA,EAAAA,EAAYO,0BAAiBO,QACxD,OACD,MAAMC,EAAUP,IACVW,EAAiB,MAAAf,OAAA,EAAAA,EAASgB,OAAQC,GAAOA,EAAGC,SAE5CC,GACL,MAAAJ,OAAA,EAAAA,EAAgBL,QAAS,EACtB,IAAI,MAAAK,OAAA,EAAAA,EAAgBK,IAAKC,UACzB,OAAA,OAAAP,EAAAO,EAAKC,kBAAL,EAAAR,EAAkBS,SAAS,MACxBF,EAAKC,YAAYE,MAAM,KAAK,GAC5BH,EAAKC,gBACL5B,EAAgB,8BAAgC,MAAK,MAAAC,OAAA,EAAAA,EAAce,QAAS,IAAI,MAAAf,OAAA,EAAAA,EAAc8B,KAAK,OAAS,WAC/G,EACEC,EAAwB,CAC7BC,KAAMrC,EAAWqC,KACjBC,MAAOtC,EAAWsC,MAClBf,SACAgB,OAAQV,KACJP,GAAQ,CAAEkB,MAAO,GAAGlB,EAAKmB,MAAMnB,EAAKoB,MAAO,EAAK,QAChDrB,GAAW,CAAEA,YAGlBb,EAASP,EAAYmC,KAEnB,CACF1B,EACAJ,EAAWgB,KACXhB,EAAWU,kBACXV,EAAWiB,OACXvB,EAAWqC,KAEXrC,EAAWsC,MACX9B,KAEIL,GAAc"}
@@ -0,0 +1,25 @@
1
+ interface FilterParams {
2
+ skip: number;
3
+ limit: number;
4
+ search?: string;
5
+ select?: string;
6
+ order?: string;
7
+ filters?: string;
8
+ }
9
+ interface ActivePage {
10
+ sort?: {
11
+ id: string;
12
+ desc: boolean;
13
+ };
14
+ filterQueryString?: string;
15
+ search?: string;
16
+ visible_columns?: {
17
+ visible: boolean;
18
+ accessorKey: string;
19
+ }[];
20
+ }
21
+ export declare const useDataFetcher: (cols?: ActivePage, pagination: {
22
+ skip: number;
23
+ limit: number;
24
+ }, fetchAction: (filters: FilterParams) => void, customeFilter?: any, customDeps?: any[], showCreatedBy?: boolean, customFields?: any) => () => void;
25
+ export default useDataFetcher;
@@ -119,12 +119,7 @@ const useLanguageState = () => {
119
119
  clearError
120
120
  };
121
121
  };
122
- var useLanguageFallback$1 = {
123
- useLanguageFallback,
124
- useLanguageState
125
- };
126
122
  export {
127
- useLanguageFallback$1 as default,
128
123
  useLanguageFallback,
129
124
  useLanguageState
130
125
  };