@erpsquad/common 1.8.46 → 1.8.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/index/index.esm10.js +3 -3
- package/dist/_virtual/index/index.esm11.js +3 -3
- package/dist/_virtual/index/index.esm2.js +2 -4
- package/dist/_virtual/index/index.esm2.js.map +1 -1
- package/dist/_virtual/index/index.esm3.js +4 -2
- package/dist/_virtual/index/index.esm3.js.map +1 -1
- package/dist/_virtual/index/index.esm4.js +1 -1
- package/dist/_virtual/index/index.esm5.js +3 -3
- package/dist/_virtual/index/index.esm6.js +3 -3
- package/dist/_virtual/index/index.esm7.js +3 -3
- package/dist/_virtual/index/index.esm8.js +3 -3
- package/dist/_virtual/index/index.esm9.js +3 -3
- package/dist/_virtual/index/index10.js +1 -1
- package/dist/_virtual/index/index11.js +1 -1
- package/dist/_virtual/index/index2.js +1 -1
- package/dist/_virtual/index/index3.js +1 -1
- package/dist/_virtual/index/index4.js +1 -1
- package/dist/_virtual/index/index5.js +1 -1
- package/dist/_virtual/index/index6.js +1 -1
- package/dist/_virtual/index/index7.js +1 -1
- package/dist/_virtual/index/index8.js +1 -1
- package/dist/_virtual/index/index9.js +1 -1
- package/dist/assets/index.d.ts +0 -1
- package/dist/components/activityLog/activity-log/index.esm.js +104 -0
- package/dist/components/activityLog/activity-log/index.esm.js.map +1 -0
- package/dist/components/activityLog/activity-log/index.js +14 -0
- package/dist/components/activityLog/activity-log/index.js.map +1 -0
- package/dist/components/charts/barChart/barChart/index.esm.js +148 -0
- package/dist/components/charts/barChart/barChart/index.esm.js.map +1 -0
- package/dist/components/charts/barChart/barChart/index.js +2 -0
- package/dist/components/charts/barChart/barChart/index.js.map +1 -0
- package/dist/components/charts/donut-chart/donut-chart/index.esm.js.map +1 -1
- package/dist/components/charts/donut-chart/donut-chart/index.js.map +1 -1
- package/dist/components/charts/donut-chart/donut-chart.d.ts +1 -2
- package/dist/components/charts/donutChart/DonutChart/index.esm.js +97 -0
- package/dist/components/charts/donutChart/DonutChart/index.esm.js.map +1 -0
- package/dist/components/charts/donutChart/DonutChart/index.js +5 -0
- package/dist/components/charts/donutChart/DonutChart/index.js.map +1 -0
- package/dist/components/charts/index.d.ts +11 -0
- package/dist/components/charts/line-chart/area-lineChart/index.esm.js +55 -0
- package/dist/components/charts/line-chart/area-lineChart/index.esm.js.map +1 -0
- package/dist/components/charts/line-chart/area-lineChart/index.js +2 -0
- package/dist/components/charts/line-chart/area-lineChart/index.js.map +1 -0
- package/dist/components/charts/line-chart/line-chart/index.esm.js +108 -0
- package/dist/components/charts/line-chart/line-chart/index.esm.js.map +1 -0
- package/dist/components/charts/line-chart/line-chart/index.js +2 -0
- package/dist/components/charts/line-chart/line-chart/index.js.map +1 -0
- package/dist/components/confirm-modal/confirm-modal/index.esm.js.map +1 -1
- package/dist/components/confirm-modal/confirm-modal/index.js.map +1 -1
- package/dist/components/confirm-modal/confirm-modal.d.ts +1 -2
- package/dist/components/confirm-modal/index.d.ts +1 -0
- package/dist/components/editor/custom-editor/index.esm.js +96 -67
- package/dist/components/editor/custom-editor/index.esm.js.map +1 -1
- package/dist/components/editor/custom-editor/index.js +3 -3
- package/dist/components/editor/custom-editor/index.js.map +1 -1
- package/dist/components/editor/custom-editor.d.ts +12 -8
- package/dist/components/footer/footer/index.esm.js +1 -1
- package/dist/components/footer/footer/index.js +2 -2
- package/dist/components/footer/footer/index.js.map +1 -1
- package/dist/components/form-control/form-parser/form-parser/index.esm.js +1 -1
- package/dist/components/form-control/form-parser/form-parser/index.js +4 -4
- package/dist/components/form-control/form-parser/form-parser/index.js.map +1 -1
- package/dist/components/grid/grid-card/grid-card/index.esm.js +4 -2
- package/dist/components/grid/grid-card/grid-card/index.esm.js.map +1 -1
- package/dist/components/grid/grid-card/grid-card/index.js +10 -11
- package/dist/components/grid/grid-card/grid-card/index.js.map +1 -1
- package/dist/components/grid/grid-card/grid-card.d.ts +10 -1
- package/dist/components/index.d.ts +294 -98
- package/dist/components/index.esm.js +582 -193
- package/dist/components/index.esm.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/inventory-reports-title-bar/component/reportFilter.d.ts +3 -2
- package/dist/components/inventory-reports-title-bar/inventory-reports-title-bar/index.esm.js +1 -1
- package/dist/components/inventory-reports-title-bar/inventory-reports-title-bar/index.js +1 -1
- package/dist/components/inventory-reports-title-bar/inventory-reports-title-bar/index.js.map +1 -1
- package/dist/components/inventory-reports-title-bar/redux/reducer/index.esm.js +0 -2
- package/dist/components/inventory-reports-title-bar/redux/reducer/index.esm.js.map +1 -1
- package/dist/components/inventory-reports-title-bar/redux/reducer/index.js +1 -1
- package/dist/components/inventory-reports-title-bar/redux/reducer/index.js.map +1 -1
- package/dist/components/list/list/index.esm.js +3 -2
- package/dist/components/list/list/index.esm.js.map +1 -1
- package/dist/components/list/list/index.js +2 -2
- package/dist/components/list/list/index.js.map +1 -1
- package/dist/components/list/list.d.ts +2 -1
- package/dist/components/listing/listing/index.esm.js +1 -1
- package/dist/components/listing/listing/index.js +1 -1
- package/dist/components/listing/listing/index.js.map +1 -1
- package/dist/components/material-table/aggregation-fns/index/index.esm.js +10 -0
- package/dist/components/material-table/aggregation-fns/index/index.esm.js.map +1 -1
- package/dist/components/material-table/aggregation-fns/index/index.js +1 -1
- package/dist/components/material-table/aggregation-fns/index/index.js.map +1 -1
- package/dist/components/material-table/components/number-aggregation/index.esm.js +134 -0
- package/dist/components/material-table/components/number-aggregation/index.esm.js.map +1 -0
- package/dist/components/material-table/components/number-aggregation/index.js +5 -0
- package/dist/components/material-table/components/number-aggregation/index.js.map +1 -0
- package/dist/components/module-button/module-button/index.esm.js +3 -2
- package/dist/components/module-button/module-button/index.esm.js.map +1 -1
- package/dist/components/module-button/module-button/index.js +4 -4
- package/dist/components/module-button/module-button/index.js.map +1 -1
- package/dist/components/module-button/module-button.d.ts +10 -1
- package/dist/components/mulitline/multiline/index.esm.js +3 -2
- package/dist/components/mulitline/multiline/index.esm.js.map +1 -1
- package/dist/components/mulitline/multiline/index.js +9 -9
- package/dist/components/mulitline/multiline/index.js.map +1 -1
- package/dist/components/mulitline/multiline.d.ts +2 -2
- package/dist/components/page-navigator/page-navigator/index.esm.js +4 -3
- package/dist/components/page-navigator/page-navigator/index.esm.js.map +1 -1
- package/dist/components/page-navigator/page-navigator/index.js +5 -5
- package/dist/components/page-navigator/page-navigator/index.js.map +1 -1
- package/dist/components/page-navigator/page-navigator.d.ts +3 -3
- package/dist/components/parties-modal/parties-modal/index.esm.js +4 -3
- package/dist/components/parties-modal/parties-modal/index.esm.js.map +1 -1
- package/dist/components/parties-modal/parties-modal/index.js +13 -13
- package/dist/components/parties-modal/parties-modal/index.js.map +1 -1
- package/dist/components/parties-modal/parties-modal.d.ts +3 -3
- package/dist/components/reports-title-bar/report-buttons/report-buttons/index.esm.js +60 -0
- package/dist/components/reports-title-bar/report-buttons/report-buttons/index.esm.js.map +1 -0
- package/dist/components/reports-title-bar/report-buttons/report-buttons/index.js +2 -0
- package/dist/components/reports-title-bar/report-buttons/report-buttons/index.js.map +1 -0
- package/dist/components/reports-title-bar/reports-title-bar/index.esm.js +736 -0
- package/dist/components/reports-title-bar/reports-title-bar/index.esm.js.map +1 -0
- package/dist/components/reports-title-bar/reports-title-bar/index.js +39 -0
- package/dist/components/reports-title-bar/reports-title-bar/index.js.map +1 -0
- package/dist/components/rfq-response/item-response-details/index.esm.js +40 -48
- package/dist/components/rfq-response/item-response-details/index.esm.js.map +1 -1
- package/dist/components/rfq-response/item-response-details/index.js +4 -4
- package/dist/components/rfq-response/item-response-details/index.js.map +1 -1
- package/dist/components/rfq-response/item-response-details.d.ts +2 -1
- package/dist/components/schedule-report/utils/common/index.esm.js +1 -1
- package/dist/components/select/controller/chip-or-placeholder/index.esm.js +25 -0
- package/dist/components/select/controller/chip-or-placeholder/index.esm.js.map +1 -0
- package/dist/components/select/controller/chip-or-placeholder/index.js +2 -0
- package/dist/components/select/controller/chip-or-placeholder/index.js.map +1 -0
- package/dist/components/select/controller/controller-select/index.esm.js +165 -0
- package/dist/components/select/controller/controller-select/index.esm.js.map +1 -0
- package/dist/components/select/controller/controller-select/index.js +10 -0
- package/dist/components/select/controller/controller-select/index.js.map +1 -0
- package/dist/components/tab-bar-ui/tab-bar-ui/index.esm.js +4 -10
- package/dist/components/tab-bar-ui/tab-bar-ui/index.esm.js.map +1 -1
- package/dist/components/tab-bar-ui/tab-bar-ui/index.js +3 -3
- package/dist/components/tab-bar-ui/tab-bar-ui/index.js.map +1 -1
- package/dist/components/tab-bar-ui/tab-bar-ui.d.ts +3 -3
- package/dist/components/tabs/tabs/index.esm.js +3 -2
- package/dist/components/tabs/tabs/index.esm.js.map +1 -1
- package/dist/components/tabs/tabs/index.js +3 -3
- package/dist/components/tabs/tabs/index.js.map +1 -1
- package/dist/components/tabs/tabs.d.ts +2 -2
- package/dist/hooks/index.esm.js +4 -4
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-translations/index.esm.js +4 -3
- package/dist/hooks/use-translations/index.esm.js.map +1 -1
- package/dist/hooks/use-translations/index.js +1 -1
- package/dist/hooks/use-translations/index.js.map +1 -1
- package/dist/hooks/use-translations.d.ts +2 -1
- package/dist/hooks/useCheckSkuAndName/index.esm.js +5 -4
- package/dist/hooks/useCheckSkuAndName/index.esm.js.map +1 -1
- package/dist/hooks/useCheckSkuAndName/index.js +1 -1
- package/dist/hooks/useCheckSkuAndName/index.js.map +1 -1
- package/dist/hooks/useCheckSkuAndName.d.ts +4 -2
- package/dist/index.esm.js +696 -268
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/layout/fullScreen/fullScreen/index.esm.js +5 -3
- package/dist/layout/fullScreen/fullScreen/index.esm.js.map +1 -1
- package/dist/layout/fullScreen/fullScreen/index.js +3 -3
- package/dist/layout/fullScreen/fullScreen/index.js.map +1 -1
- package/dist/layout/fullScreen/fullScreen.d.ts +5 -1
- package/dist/layout/index.esm.js +4 -4
- package/dist/layout/index.js +1 -1
- package/dist/layout/sidebarScreen/sidebarScreen/index.esm.js +72 -50
- package/dist/layout/sidebarScreen/sidebarScreen/index.esm.js.map +1 -1
- package/dist/layout/sidebarScreen/sidebarScreen/index.js +4 -4
- package/dist/layout/sidebarScreen/sidebarScreen/index.js.map +1 -1
- package/dist/layout/sidebarScreen/sidebarScreen.d.ts +3 -3
- package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.esm.js +1 -1
- package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.js +1 -1
- package/dist/node_modules/@mui/icons-material/esm/Remove/index.esm.js +9 -0
- package/dist/node_modules/@mui/icons-material/esm/Remove/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/icons-material/esm/Remove/index.js +2 -0
- package/dist/node_modules/@mui/icons-material/esm/Remove/index.js.map +1 -0
- package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.esm.js +1 -1
- package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.js +1 -1
- package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.esm.js +1 -1
- package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.js +2 -2
- package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.esm.js +95 -0
- package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.js +3 -0
- package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.js.map +1 -0
- package/dist/node_modules/@mui/material/AccordionActions/accordionActionsClasses/index.esm.js +10 -0
- package/dist/node_modules/@mui/material/AccordionActions/accordionActionsClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/AccordionActions/accordionActionsClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/AccordionActions/accordionActionsClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/Avatar/avatarClasses/index.esm.js +3 -2
- package/dist/node_modules/@mui/material/Avatar/avatarClasses/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Avatar/avatarClasses/index.js +1 -1
- package/dist/node_modules/@mui/material/Avatar/avatarClasses/index.js.map +1 -1
- package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.esm.js +201 -0
- package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.js +3 -0
- package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.js.map +1 -0
- package/dist/node_modules/@mui/material/AvatarGroup/avatarGroupClasses/index.esm.js +11 -0
- package/dist/node_modules/@mui/material/AvatarGroup/avatarGroupClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/AvatarGroup/avatarGroupClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/AvatarGroup/avatarGroupClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.esm.js +125 -0
- package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.js +4 -0
- package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.js.map +1 -0
- package/dist/node_modules/@mui/material/BottomNavigation/bottomNavigationClasses/index.esm.js +10 -0
- package/dist/node_modules/@mui/material/BottomNavigation/bottomNavigationClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/BottomNavigation/bottomNavigationClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/BottomNavigation/bottomNavigationClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.esm.js +170 -0
- package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.js +3 -0
- package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.js.map +1 -0
- package/dist/node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses/index.esm.js +11 -0
- package/dist/node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.esm.js +120 -0
- package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.js +3 -0
- package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.js.map +1 -0
- package/dist/node_modules/@mui/material/CardActionArea/cardActionAreaClasses/index.esm.js +11 -0
- package/dist/node_modules/@mui/material/CardActionArea/cardActionAreaClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/CardActionArea/cardActionAreaClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/CardActionArea/cardActionAreaClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/CardActions/CardActions/index.esm.js +92 -0
- package/dist/node_modules/@mui/material/CardActions/CardActions/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/CardActions/CardActions/index.js +3 -0
- package/dist/node_modules/@mui/material/CardActions/CardActions/index.js.map +1 -0
- package/dist/node_modules/@mui/material/CardActions/cardActionsClasses/index.esm.js +10 -0
- package/dist/node_modules/@mui/material/CardActions/cardActionsClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/CardActions/cardActionsClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/CardActions/cardActionsClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.esm.js +196 -0
- package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.js +2 -0
- package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.js.map +1 -0
- package/dist/node_modules/@mui/material/CardHeader/cardHeaderClasses/index.esm.js +11 -0
- package/dist/node_modules/@mui/material/CardHeader/cardHeaderClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/CardHeader/cardHeaderClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/CardHeader/cardHeaderClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.esm.js +76 -0
- package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.js +3 -0
- package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.js.map +1 -0
- package/dist/node_modules/@mui/material/DialogContentText/dialogContentTextClasses/index.esm.js +10 -0
- package/dist/node_modules/@mui/material/DialogContentText/dialogContentTextClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/DialogContentText/dialogContentTextClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/DialogContentText/dialogContentTextClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/Fab/Fab/index.esm.js +231 -0
- package/dist/node_modules/@mui/material/Fab/Fab/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/Fab/Fab/index.js +3 -0
- package/dist/node_modules/@mui/material/Fab/Fab/index.js.map +1 -0
- package/dist/node_modules/@mui/material/Fab/fabClasses/index.esm.js +11 -0
- package/dist/node_modules/@mui/material/Fab/fabClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/Fab/fabClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/Fab/fabClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/Hidden/Hidden/index.esm.js +135 -0
- package/dist/node_modules/@mui/material/Hidden/Hidden/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/Hidden/Hidden/index.js +2 -0
- package/dist/node_modules/@mui/material/Hidden/Hidden/index.js.map +1 -0
- package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.esm.js +176 -0
- package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.js +3 -0
- package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.js.map +1 -0
- package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.esm.js +119 -0
- package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.js +2 -0
- package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.js.map +1 -0
- package/dist/node_modules/@mui/material/Hidden/hiddenCssClasses/index.esm.js +10 -0
- package/dist/node_modules/@mui/material/Hidden/hiddenCssClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/Hidden/hiddenCssClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/Hidden/hiddenCssClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/Hidden/withWidth/index.esm.js +92 -0
- package/dist/node_modules/@mui/material/Hidden/withWidth/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/Hidden/withWidth/index.js +2 -0
- package/dist/node_modules/@mui/material/Hidden/withWidth/index.js.map +1 -0
- package/dist/node_modules/@mui/material/ImageList/ImageList/index.esm.js +156 -0
- package/dist/node_modules/@mui/material/ImageList/ImageList/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/ImageList/ImageList/index.js +3 -0
- package/dist/node_modules/@mui/material/ImageList/ImageList/index.js.map +1 -0
- package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.esm.js +10 -0
- package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.js +2 -0
- package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.js.map +1 -0
- package/dist/node_modules/@mui/material/ImageList/imageListClasses/index.esm.js +10 -0
- package/dist/node_modules/@mui/material/ImageList/imageListClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/ImageList/imageListClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/ImageList/imageListClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.esm.js +173 -0
- package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.js +3 -0
- package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.js.map +1 -0
- package/dist/node_modules/@mui/material/ImageListItem/imageListItemClasses/index.esm.js +11 -0
- package/dist/node_modules/@mui/material/ImageListItem/imageListItemClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/ImageListItem/imageListItemClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/ImageListItem/imageListItemClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.esm.js +222 -0
- package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.js +3 -0
- package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.js.map +1 -0
- package/dist/node_modules/@mui/material/ImageListItemBar/imageListItemBarClasses/index.esm.js +10 -0
- package/dist/node_modules/@mui/material/ImageListItemBar/imageListItemBarClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/ImageListItemBar/imageListItemBarClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/ImageListItemBar/imageListItemBarClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.esm.js +216 -0
- package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.js +3 -0
- package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.js.map +1 -0
- package/dist/node_modules/@mui/material/MobileStepper/mobileStepperClasses/index.esm.js +10 -0
- package/dist/node_modules/@mui/material/MobileStepper/mobileStepperClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/MobileStepper/mobileStepperClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/MobileStepper/mobileStepperClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.esm.js +126 -0
- package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.js +3 -0
- package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.js.map +1 -0
- package/dist/node_modules/@mui/material/NativeSelect/nativeSelectClasses/index.esm.js +1 -1
- package/dist/node_modules/@mui/material/NativeSelect/nativeSelectClasses/index.js +1 -1
- package/dist/node_modules/@mui/material/NativeSelect/nativeSelectClasses/index.js.map +1 -1
- package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.esm.js +55 -0
- package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.js +2 -0
- package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.js.map +1 -0
- package/dist/node_modules/@mui/material/OutlinedInput/outlinedInputClasses/index.esm.js +1 -1
- package/dist/node_modules/@mui/material/OutlinedInput/outlinedInputClasses/index.js +1 -1
- package/dist/node_modules/@mui/material/Popover/Popover/index.esm.js +1 -1
- package/dist/node_modules/@mui/material/Popover/Popover/index.js +1 -1
- package/dist/node_modules/@mui/material/Rating/Rating/index.esm.js +638 -0
- package/dist/node_modules/@mui/material/Rating/Rating/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/Rating/Rating/index.js +7 -0
- package/dist/node_modules/@mui/material/Rating/Rating/index.js.map +1 -0
- package/dist/node_modules/@mui/material/Rating/ratingClasses/index.esm.js +11 -0
- package/dist/node_modules/@mui/material/Rating/ratingClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/Rating/ratingClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/Rating/ratingClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.esm.js +105 -0
- package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.js +3 -0
- package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.js.map +1 -0
- package/dist/node_modules/@mui/material/ScopedCssBaseline/scopedCssBaselineClasses/index.esm.js +10 -0
- package/dist/node_modules/@mui/material/ScopedCssBaseline/scopedCssBaselineClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/ScopedCssBaseline/scopedCssBaselineClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/ScopedCssBaseline/scopedCssBaselineClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/Snackbar/Snackbar/index.esm.js +1 -1
- package/dist/node_modules/@mui/material/Snackbar/Snackbar/index.js +1 -1
- package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.esm.js +453 -0
- package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.js +4 -0
- package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.js.map +1 -0
- package/dist/node_modules/@mui/material/SpeedDial/speedDialClasses/index.esm.js +11 -0
- package/dist/node_modules/@mui/material/SpeedDial/speedDialClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/SpeedDial/speedDialClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/SpeedDial/speedDialClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.esm.js +245 -0
- package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.js +2 -0
- package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.js.map +1 -0
- package/dist/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses/index.esm.js +11 -0
- package/dist/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.esm.js +137 -0
- package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.js +4 -0
- package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.js.map +1 -0
- package/dist/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses/index.esm.js +11 -0
- package/dist/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/Step/Step/index.esm.js +169 -0
- package/dist/node_modules/@mui/material/Step/Step/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/Step/Step/index.js +3 -0
- package/dist/node_modules/@mui/material/Step/Step/index.js.map +1 -0
- package/dist/node_modules/@mui/material/Step/StepContext/index.esm.js +10 -0
- package/dist/node_modules/@mui/material/Step/StepContext/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/Step/StepContext/index.js +2 -0
- package/dist/node_modules/@mui/material/Step/StepContext/index.js.map +1 -0
- package/dist/node_modules/@mui/material/Step/stepClasses/index.esm.js +10 -0
- package/dist/node_modules/@mui/material/Step/stepClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/Step/stepClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/Step/stepClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/StepButton/StepButton/index.esm.js +132 -0
- package/dist/node_modules/@mui/material/StepButton/StepButton/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/StepButton/StepButton/index.js +3 -0
- package/dist/node_modules/@mui/material/StepButton/StepButton/index.js.map +1 -0
- package/dist/node_modules/@mui/material/StepButton/stepButtonClasses/index.esm.js +11 -0
- package/dist/node_modules/@mui/material/StepButton/stepButtonClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/StepButton/stepButtonClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/StepButton/stepButtonClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.esm.js +136 -0
- package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.js +3 -0
- package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.js.map +1 -0
- package/dist/node_modules/@mui/material/StepConnector/stepConnectorClasses/index.esm.js +10 -0
- package/dist/node_modules/@mui/material/StepConnector/stepConnectorClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/StepConnector/stepConnectorClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/StepConnector/stepConnectorClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/StepContent/StepContent/index.esm.js +152 -0
- package/dist/node_modules/@mui/material/StepContent/StepContent/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/StepContent/StepContent/index.js +2 -0
- package/dist/node_modules/@mui/material/StepContent/StepContent/index.js.map +1 -0
- package/dist/node_modules/@mui/material/StepContent/stepContentClasses/index.esm.js +10 -0
- package/dist/node_modules/@mui/material/StepContent/stepContentClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/StepContent/stepContentClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/StepContent/stepContentClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.esm.js +161 -0
- package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.js +2 -0
- package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.js.map +1 -0
- package/dist/node_modules/@mui/material/StepIcon/stepIconClasses/index.esm.js +11 -0
- package/dist/node_modules/@mui/material/StepIcon/stepIconClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/StepIcon/stepIconClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/StepIcon/stepIconClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.esm.js +239 -0
- package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.js +3 -0
- package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.js.map +1 -0
- package/dist/node_modules/@mui/material/StepLabel/stepLabelClasses/index.esm.js +11 -0
- package/dist/node_modules/@mui/material/StepLabel/stepLabelClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/StepLabel/stepLabelClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/StepLabel/stepLabelClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/Stepper/Stepper/index.esm.js +155 -0
- package/dist/node_modules/@mui/material/Stepper/Stepper/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/Stepper/Stepper/index.js +3 -0
- package/dist/node_modules/@mui/material/Stepper/Stepper/index.js.map +1 -0
- package/dist/node_modules/@mui/material/Stepper/StepperContext/index.esm.js +10 -0
- package/dist/node_modules/@mui/material/Stepper/StepperContext/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/Stepper/StepperContext/index.js +2 -0
- package/dist/node_modules/@mui/material/Stepper/StepperContext/index.js.map +1 -0
- package/dist/node_modules/@mui/material/Stepper/stepperClasses/index.esm.js +10 -0
- package/dist/node_modules/@mui/material/Stepper/stepperClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/Stepper/stepperClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/Stepper/stepperClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.esm.js +82 -0
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.js +3 -0
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.js.map +1 -0
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.esm.js +538 -0
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.js +2 -0
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.js.map +1 -0
- package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.esm.js +443 -0
- package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.js +3 -0
- package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.js.map +1 -0
- package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.esm.js +179 -0
- package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.js +3 -0
- package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.js.map +1 -0
- package/dist/node_modules/@mui/material/TablePagination/tablePaginationClasses/index.esm.js +11 -0
- package/dist/node_modules/@mui/material/TablePagination/tablePaginationClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/TablePagination/tablePaginationClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/TablePagination/tablePaginationClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/Tabs/Tabs/index.esm.js +1 -1
- package/dist/node_modules/@mui/material/Tabs/Tabs/index.js +1 -1
- package/dist/node_modules/@mui/material/Zoom/Zoom/index.esm.js +196 -0
- package/dist/node_modules/@mui/material/Zoom/Zoom/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/Zoom/Zoom/index.js +3 -0
- package/dist/node_modules/@mui/material/Zoom/Zoom/index.js.map +1 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/Add/index.esm.js +9 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/Add/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/Add/index.js +2 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/Add/index.js.map +1 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/CheckCircle/index.esm.js +9 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/CheckCircle/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/CheckCircle/index.js +2 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/CheckCircle/index.js.map +1 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/Star/index.esm.js +9 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/Star/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/Star/index.js +2 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/Star/index.js.map +1 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/StarBorder/index.esm.js +9 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/StarBorder/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/StarBorder/index.js +2 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/StarBorder/index.js.map +1 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/Warning/index.esm.js +9 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/Warning/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/Warning/index.js +2 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/Warning/index.js.map +1 -0
- package/dist/node_modules/@mui/material/useScrollTrigger/useScrollTrigger/index.esm.js +51 -0
- package/dist/node_modules/@mui/material/useScrollTrigger/useScrollTrigger/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/useScrollTrigger/useScrollTrigger/index.js +2 -0
- package/dist/node_modules/@mui/material/useScrollTrigger/useScrollTrigger/index.js.map +1 -0
- package/dist/node_modules/@mui/system/colorManipulator/index.esm.js +2 -2
- package/dist/node_modules/@mui/system/colorManipulator/index.js +1 -1
- package/dist/node_modules/@mui/system/colorManipulator/index.js.map +1 -1
- package/dist/node_modules/@mui/system/createStyled/index.esm.js +6 -6
- package/dist/node_modules/@mui/system/createStyled/index.js +1 -1
- package/dist/node_modules/@mui/system/createStyled/index.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/Stack/createStack/index.esm.js +1 -1
- package/dist/node_modules/@mui/system/esm/Stack/createStack/index.js +2 -2
- package/dist/node_modules/@mui/system/useThemeWithoutDefault/index.esm.js +1 -1
- package/dist/node_modules/@mui/system/useThemeWithoutDefault/index.js +1 -1
- package/dist/node_modules/d3-axis/src/axis/index.esm.js +5 -1
- package/dist/node_modules/d3-axis/src/axis/index.esm.js.map +1 -1
- package/dist/node_modules/d3-axis/src/axis/index.js +1 -1
- package/dist/node_modules/d3-axis/src/axis/index.js.map +1 -1
- package/dist/redux/hooks/index.esm.js +1 -1
- package/dist/src/assets/index.d.ts +0 -1
- package/dist/src/components/charts/donut-chart/donut-chart.d.ts +1 -2
- package/dist/src/components/charts/index.d.ts +11 -0
- package/dist/src/components/confirm-modal/confirm-modal.d.ts +1 -2
- package/dist/src/components/confirm-modal/index.d.ts +1 -0
- package/dist/src/components/editor/custom-editor.d.ts +12 -8
- package/dist/src/components/grid/grid-card/grid-card.d.ts +10 -1
- package/dist/src/components/index.d.ts +229 -94
- package/dist/src/components/inventory-reports-title-bar/component/reportFilter.d.ts +3 -2
- package/dist/src/components/list/list.d.ts +2 -1
- package/dist/src/components/module-button/module-button.d.ts +10 -1
- package/dist/src/components/mulitline/multiline.d.ts +2 -2
- package/dist/src/components/page-navigator/page-navigator.d.ts +3 -3
- package/dist/src/components/parties-modal/parties-modal.d.ts +3 -3
- package/dist/src/components/rfq-response/item-response-details.d.ts +2 -1
- package/dist/src/components/tab-bar-ui/tab-bar-ui.d.ts +3 -3
- package/dist/src/components/tabs/tabs.d.ts +2 -2
- package/dist/src/hooks/use-translations.d.ts +2 -1
- package/dist/src/hooks/useCheckSkuAndName.d.ts +4 -2
- package/dist/src/layout/fullScreen/fullScreen.d.ts +5 -1
- package/dist/src/layout/sidebarScreen/sidebarScreen.d.ts +3 -3
- package/dist/src/views/afterAuth/dashboard/dashboard.d.ts +2 -1
- package/dist/src/views/afterAuth/index.d.ts +1 -0
- package/dist/src/views/beforeAuth/index.d.ts +0 -1
- package/dist/src/views/form-builder/element-edit-forms/column-width.d.ts +5 -3
- package/dist/src/views/index.d.ts +1 -0
- package/dist/style.css +77 -71
- package/dist/utils/common/index.esm.js +1 -1
- package/dist/views/afterAuth/dashboard/dashboard/index.esm.js +5 -4
- package/dist/views/afterAuth/dashboard/dashboard/index.esm.js.map +1 -1
- package/dist/views/afterAuth/dashboard/dashboard/index.js +3 -3
- package/dist/views/afterAuth/dashboard/dashboard/index.js.map +1 -1
- package/dist/views/afterAuth/dashboard/dashboard.d.ts +2 -1
- package/dist/views/afterAuth/dashboard/redux/reducer/index.esm.js +0 -6
- package/dist/views/afterAuth/dashboard/redux/reducer/index.esm.js.map +1 -1
- package/dist/views/afterAuth/dashboard/redux/reducer/index.js +1 -1
- package/dist/views/afterAuth/dashboard/redux/reducer/index.js.map +1 -1
- package/dist/views/afterAuth/index.d.ts +1 -0
- package/dist/views/afterAuth/page-view/page-view/index.esm.js +101 -0
- package/dist/views/afterAuth/page-view/page-view/index.esm.js.map +1 -0
- package/dist/views/afterAuth/page-view/page-view/index.js +6 -0
- package/dist/views/afterAuth/page-view/page-view/index.js.map +1 -0
- package/dist/views/afterAuth/page-view/redux/actionCreator/index.esm.js +13 -0
- package/dist/views/afterAuth/page-view/redux/actionCreator/index.esm.js.map +1 -0
- package/dist/views/afterAuth/page-view/redux/actionCreator/index.js +2 -0
- package/dist/views/afterAuth/page-view/redux/actionCreator/index.js.map +1 -0
- package/dist/views/afterAuth/page-view/redux/reducer/index.esm.js +63 -0
- package/dist/views/afterAuth/page-view/redux/reducer/index.esm.js.map +1 -0
- package/dist/views/afterAuth/page-view/redux/reducer/index.js +2 -0
- package/dist/views/afterAuth/page-view/redux/reducer/index.js.map +1 -0
- package/dist/views/afterAuth/page-view/redux/state/index.esm.js +31 -0
- package/dist/views/afterAuth/page-view/redux/state/index.esm.js.map +1 -0
- package/dist/views/afterAuth/page-view/redux/state/index.js +2 -0
- package/dist/views/afterAuth/page-view/redux/state/index.js.map +1 -0
- package/dist/views/afterAuth/page-view/utils/default-data/index.esm.js +137 -0
- package/dist/views/afterAuth/page-view/utils/default-data/index.esm.js.map +1 -0
- package/dist/views/afterAuth/page-view/utils/default-data/index.js +2 -0
- package/dist/views/afterAuth/page-view/utils/default-data/index.js.map +1 -0
- package/dist/views/afterAuth/page-view/utils/local-data/index.esm.js +137 -0
- package/dist/views/afterAuth/page-view/utils/local-data/index.esm.js.map +1 -0
- package/dist/views/afterAuth/page-view/utils/local-data/index.js +2 -0
- package/dist/views/afterAuth/page-view/utils/local-data/index.js.map +1 -0
- package/dist/views/beforeAuth/index.d.ts +0 -1
- package/dist/views/form-builder/custom-form/index.esm.js +1151 -0
- package/dist/views/form-builder/custom-form/index.esm.js.map +1 -0
- package/dist/views/form-builder/custom-form/index.js +30 -0
- package/dist/views/form-builder/custom-form/index.js.map +1 -0
- package/dist/views/form-builder/element-edit-forms/checkbox/index.esm.js +327 -0
- package/dist/views/form-builder/element-edit-forms/checkbox/index.esm.js.map +1 -0
- package/dist/views/form-builder/element-edit-forms/checkbox/index.js +30 -0
- package/dist/views/form-builder/element-edit-forms/checkbox/index.js.map +1 -0
- package/dist/views/form-builder/element-edit-forms/column-width/index.esm.js +93 -0
- package/dist/views/form-builder/element-edit-forms/column-width/index.esm.js.map +1 -0
- package/dist/views/form-builder/element-edit-forms/column-width/index.js +4 -0
- package/dist/views/form-builder/element-edit-forms/column-width/index.js.map +1 -0
- package/dist/views/form-builder/element-edit-forms/column-width.d.ts +5 -3
- package/dist/views/form-builder/element-edit-forms/field-select/index.esm.js +89 -0
- package/dist/views/form-builder/element-edit-forms/field-select/index.esm.js.map +1 -0
- package/dist/views/form-builder/element-edit-forms/field-select/index.js +3 -0
- package/dist/views/form-builder/element-edit-forms/field-select/index.js.map +1 -0
- package/dist/views/form-builder/element-edit-forms/section/index.esm.js +222 -0
- package/dist/views/form-builder/element-edit-forms/section/index.esm.js.map +1 -0
- package/dist/views/form-builder/element-edit-forms/section/index.js +15 -0
- package/dist/views/form-builder/element-edit-forms/section/index.js.map +1 -0
- package/dist/views/form-builder/element-edit-forms/select/index.esm.js +318 -0
- package/dist/views/form-builder/element-edit-forms/select/index.esm.js.map +1 -0
- package/dist/views/form-builder/element-edit-forms/select/index.js +25 -0
- package/dist/views/form-builder/element-edit-forms/select/index.js.map +1 -0
- package/dist/views/form-builder/element-edit-forms/table-form/index.esm.js +111 -0
- package/dist/views/form-builder/element-edit-forms/table-form/index.esm.js.map +1 -0
- package/dist/views/form-builder/element-edit-forms/table-form/index.js +5 -0
- package/dist/views/form-builder/element-edit-forms/table-form/index.js.map +1 -0
- package/dist/views/form-builder/element-edit-forms/text/index.esm.js +559 -0
- package/dist/views/form-builder/element-edit-forms/text/index.esm.js.map +1 -0
- package/dist/views/form-builder/element-edit-forms/text/index.js +31 -0
- package/dist/views/form-builder/element-edit-forms/text/index.js.map +1 -0
- package/dist/views/form-builder/field_properties/index.esm.js +216 -0
- package/dist/views/form-builder/field_properties/index.esm.js.map +1 -0
- package/dist/views/form-builder/field_properties/index.js +2 -0
- package/dist/views/form-builder/field_properties/index.js.map +1 -0
- package/dist/views/form-builder/form-fields/index.esm.js +355 -0
- package/dist/views/form-builder/form-fields/index.esm.js.map +1 -0
- package/dist/views/form-builder/form-fields/index.js +24 -0
- package/dist/views/form-builder/form-fields/index.js.map +1 -0
- package/dist/views/form-builder/redux/actionCreator/index.esm.js +1 -1
- package/dist/views/form-builder/redux/reducer/index.esm.js +6 -1
- package/dist/views/form-builder/redux/reducer/index.esm.js.map +1 -1
- package/dist/views/form-builder/redux/reducer/index.js +1 -1
- package/dist/views/form-builder/redux/reducer/index.js.map +1 -1
- package/dist/views/form-builder/utils/common/index.esm.js +285 -0
- package/dist/views/form-builder/utils/common/index.esm.js.map +1 -0
- package/dist/views/form-builder/utils/common/index.js +2 -0
- package/dist/views/form-builder/utils/common/index.js.map +1 -0
- package/dist/views/index.d.ts +1 -0
- package/dist/views/index.esm.js +94 -49
- package/dist/views/index.esm.js.map +1 -1
- package/dist/views/index.js +1 -1
- package/package.json +2 -1
- package/dist/components/examples/FlexibleReduxExample/index.esm.js +0 -154
- package/dist/components/examples/FlexibleReduxExample/index.esm.js.map +0 -1
- package/dist/components/examples/FlexibleReduxExample/index.js +0 -19
- package/dist/components/examples/FlexibleReduxExample/index.js.map +0 -1
- package/dist/components/footer/index.esm.js +0 -71
- package/dist/components/footer/index.esm.js.map +0 -1
- package/dist/components/footer/index.js +0 -7
- package/dist/components/footer/index.js.map +0 -1
- package/dist/components/header/header-enhanced/index.esm.js +0 -405
- package/dist/components/header/header-enhanced/index.esm.js.map +0 -1
- package/dist/components/header/header-enhanced/index.js +0 -33
- package/dist/components/header/header-enhanced/index.js.map +0 -1
- package/dist/components/header copy/index.esm.js +0 -131
- package/dist/components/header copy/index.esm.js.map +0 -1
- package/dist/components/header copy/index.js +0 -11
- package/dist/components/header copy/index.js.map +0 -1
- package/dist/components/inventory-reports-title-bar/component/reportFilter/index.esm.js +0 -400
- package/dist/components/inventory-reports-title-bar/component/reportFilter/index.esm.js.map +0 -1
- package/dist/components/inventory-reports-title-bar/component/reportFilter/index.js +0 -41
- package/dist/components/inventory-reports-title-bar/component/reportFilter/index.js.map +0 -1
- package/dist/components/share-modal/share-modal-enhanced/index.esm.js +0 -288
- package/dist/components/share-modal/share-modal-enhanced/index.esm.js.map +0 -1
- package/dist/components/share-modal/share-modal-enhanced/index.js +0 -24
- package/dist/components/share-modal/share-modal-enhanced/index.js.map +0 -1
- package/dist/views/beforeAuth/login/index/index.esm.js +0 -209
- package/dist/views/beforeAuth/login/index/index.esm.js.map +0 -1
- package/dist/views/beforeAuth/login/index/index.js +0 -20
- package/dist/views/beforeAuth/login/index/index.js.map +0 -1
|
@@ -1,405 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import React__default, { useState, useCallback, useEffect } from "react";
|
|
3
|
-
import { useNavigate, useLocation, matchRoutes, Link } from "react-router-dom";
|
|
4
|
-
import { useTranslation } from "react-i18next";
|
|
5
|
-
import default_1$1 from "../../../node_modules/@mui/icons-material/Lock/index.esm.js";
|
|
6
|
-
import default_1 from "../../../node_modules/@mui/icons-material/KeyboardBackspace/index.esm.js";
|
|
7
|
-
import { Typography } from "../../typography/typography/index.esm.js";
|
|
8
|
-
import { images } from "../../../images/index.esm.js";
|
|
9
|
-
import { Select } from "../../select/select/index.esm.js";
|
|
10
|
-
import modules from "../../../constants/modules/index.esm.js";
|
|
11
|
-
import { Avatar } from "../../avatar/avatar/index.esm.js";
|
|
12
|
-
import { useAuth } from "../../../hooks/useAuth/index.esm.js";
|
|
13
|
-
import { ConfirmPopUp } from "../../confirm-modal/confirm-modal/index.esm.js";
|
|
14
|
-
import { formatText } from "../../../utils/format-text/index.esm.js";
|
|
15
|
-
import { useLanguage } from "../../../hooks/useLangauge/index.esm.js";
|
|
16
|
-
import { ResetPasswordModal } from "../../reset-password-modal/reset-password-modal/index.esm.js";
|
|
17
|
-
import { NotificationMenu } from "../components/notification-menu/notification-menu/index.esm.js";
|
|
18
|
-
/* empty css */
|
|
19
|
-
import Menu from "../../../node_modules/@mui/material/Menu/Menu/index.esm.js";
|
|
20
|
-
import MenuItem from "../../../node_modules/@mui/material/MenuItem/MenuItem/index.esm.js";
|
|
21
|
-
import ListItemIcon from "../../../node_modules/@mui/material/ListItemIcon/ListItemIcon/index.esm.js";
|
|
22
|
-
import ListItemText from "../../../node_modules/@mui/material/ListItemText/ListItemText/index.esm.js";
|
|
23
|
-
import Divider from "../../../node_modules/@mui/material/Divider/Divider/index.esm.js";
|
|
24
|
-
import { Eye } from "../../icons/eye/index.esm.js";
|
|
25
|
-
import Box from "../../../node_modules/@mui/material/Box/Box/index.esm.js";
|
|
26
|
-
import IconButton from "../../../node_modules/@mui/material/IconButton/IconButton/index.esm.js";
|
|
27
|
-
function HeaderEnhanced(props) {
|
|
28
|
-
var _a, _b, _c, _d;
|
|
29
|
-
const {
|
|
30
|
-
isDropdownShow,
|
|
31
|
-
// Non-Redux props
|
|
32
|
-
languages: propLanguages = [],
|
|
33
|
-
currentLanguage: propCurrentLanguage,
|
|
34
|
-
languagesLoading: propLanguagesLoading = false,
|
|
35
|
-
languageError: propLanguageError = "",
|
|
36
|
-
onLanguageChange,
|
|
37
|
-
onFetchLanguages,
|
|
38
|
-
// Redux integration
|
|
39
|
-
useRedux = false
|
|
40
|
-
} = props;
|
|
41
|
-
const navigate = useNavigate();
|
|
42
|
-
const { t } = useTranslation();
|
|
43
|
-
const location = useLocation();
|
|
44
|
-
const { logout, user } = useAuth();
|
|
45
|
-
let reduxLanguageState = {
|
|
46
|
-
languages: [],
|
|
47
|
-
currentLanguage: { label: "English", code: "en", direction: "ltr" },
|
|
48
|
-
isLoading: false,
|
|
49
|
-
error: "",
|
|
50
|
-
isFallbackActive: false,
|
|
51
|
-
isRtl: false
|
|
52
|
-
};
|
|
53
|
-
let dispatch = null;
|
|
54
|
-
let reduxActions = {};
|
|
55
|
-
if (useRedux) {
|
|
56
|
-
try {
|
|
57
|
-
const { useAppSelector, useAppDispatch } = require("../../redux/hooks");
|
|
58
|
-
const { fetchLanguages } = require("../../redux/slices");
|
|
59
|
-
const headerState = useAppSelector((store) => store.header || {});
|
|
60
|
-
dispatch = useAppDispatch();
|
|
61
|
-
reduxActions = { fetchLanguages };
|
|
62
|
-
reduxLanguageState = {
|
|
63
|
-
languages: ((_a = headerState.languagesData) == null ? void 0 : _a.data) || [],
|
|
64
|
-
currentLanguage: headerState.currentLanguage || reduxLanguageState.currentLanguage,
|
|
65
|
-
isLoading: ((_b = headerState.languagesData) == null ? void 0 : _b.isLoading) || false,
|
|
66
|
-
error: ((_c = headerState.languagesData) == null ? void 0 : _c.error) || "",
|
|
67
|
-
isFallbackActive: false,
|
|
68
|
-
// This would need to be computed
|
|
69
|
-
isRtl: ((_d = headerState.currentLanguage) == null ? void 0 : _d.direction) === "rtl"
|
|
70
|
-
};
|
|
71
|
-
} catch (error) {
|
|
72
|
-
console.warn("Redux not available for Header, falling back to prop-based data");
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
const {
|
|
76
|
-
languages: hookLanguages,
|
|
77
|
-
currentLanguage: hookCurrentLanguage,
|
|
78
|
-
changeLanguage: hookChangeLanguage,
|
|
79
|
-
isLoading: hookLanguagesLoading,
|
|
80
|
-
error: hookLanguageError,
|
|
81
|
-
isFallbackActive: hookIsFallbackActive,
|
|
82
|
-
fetchLanguages: hookFetchLanguages,
|
|
83
|
-
isRtl: hookIsRtl
|
|
84
|
-
} = useLanguage();
|
|
85
|
-
const languages = useRedux ? reduxLanguageState.languages : propLanguages.length > 0 ? propLanguages : hookLanguages;
|
|
86
|
-
const currentLanguage = useRedux ? reduxLanguageState.currentLanguage : propCurrentLanguage || hookCurrentLanguage;
|
|
87
|
-
const languagesLoading = useRedux ? reduxLanguageState.isLoading : propLanguagesLoading || hookLanguagesLoading;
|
|
88
|
-
const languageContextError = useRedux ? reduxLanguageState.error : propLanguageError || hookLanguageError;
|
|
89
|
-
const isFallbackActive = useRedux ? reduxLanguageState.isFallbackActive : hookIsFallbackActive;
|
|
90
|
-
const isRtl = useRedux ? reduxLanguageState.isRtl : hookIsRtl;
|
|
91
|
-
const { pathname } = location;
|
|
92
|
-
const [anchorEl, setAnchorEl] = React__default.useState(null);
|
|
93
|
-
const [logoutConfirmation, setLogoutConfirmation] = useState(false);
|
|
94
|
-
const [selectedModule, setSelectedModule] = useState(null);
|
|
95
|
-
const [erp_modules, setModules] = useState([]);
|
|
96
|
-
const [localLanguageError, setLocalLanguageError] = useState(null);
|
|
97
|
-
const [showModal, setShowModal] = useState(false);
|
|
98
|
-
const u_data = localStorage.getItem("_u_data") || void 0;
|
|
99
|
-
const userData = u_data ? JSON.parse(u_data) : "";
|
|
100
|
-
const isMenuOpen = Boolean(anchorEl);
|
|
101
|
-
const handleLogoutConfirmation = () => setLogoutConfirmation(!logoutConfirmation);
|
|
102
|
-
const checkMatchedRoutes = useCallback(
|
|
103
|
-
(paths) => {
|
|
104
|
-
const shouldMatch = Array.isArray(paths) ? paths.map((path) => ({ path })) : [{ path: paths }];
|
|
105
|
-
return Boolean(matchRoutes(shouldMatch, location));
|
|
106
|
-
},
|
|
107
|
-
[location]
|
|
108
|
-
);
|
|
109
|
-
const handleChangePasswordView = () => {
|
|
110
|
-
setShowModal(true);
|
|
111
|
-
};
|
|
112
|
-
useEffect(() => {
|
|
113
|
-
const moduleName = erp_modules.find(
|
|
114
|
-
(module) => {
|
|
115
|
-
var _a2;
|
|
116
|
-
return ((_a2 = module == null ? void 0 : module.link) == null ? void 0 : _a2.toLowerCase()) === pathname.toLowerCase() || checkMatchedRoutes(module.connectedRoutes);
|
|
117
|
-
}
|
|
118
|
-
);
|
|
119
|
-
if (moduleName) {
|
|
120
|
-
setSelectedModule(moduleName);
|
|
121
|
-
}
|
|
122
|
-
}, [pathname, erp_modules, checkMatchedRoutes]);
|
|
123
|
-
useEffect(() => {
|
|
124
|
-
setModules(modules(t));
|
|
125
|
-
}, [t]);
|
|
126
|
-
const onChangeLang = (e) => {
|
|
127
|
-
const lang_code = e.target.value;
|
|
128
|
-
setLocalLanguageError(null);
|
|
129
|
-
if (!languages || languages.length === 0) {
|
|
130
|
-
const errorMsg = t("header.language_not_available") || "Languages not available";
|
|
131
|
-
setLocalLanguageError(errorMsg);
|
|
132
|
-
return;
|
|
133
|
-
}
|
|
134
|
-
const languageExists = languages.some((lang) => lang.code === lang_code);
|
|
135
|
-
if (languageExists) {
|
|
136
|
-
try {
|
|
137
|
-
if (useRedux) ;
|
|
138
|
-
else if (onLanguageChange) {
|
|
139
|
-
onLanguageChange(lang_code);
|
|
140
|
-
} else {
|
|
141
|
-
hookChangeLanguage(lang_code);
|
|
142
|
-
}
|
|
143
|
-
} catch (error) {
|
|
144
|
-
const errorMsg = error instanceof Error ? error.message : "Failed to change language";
|
|
145
|
-
setLocalLanguageError(errorMsg);
|
|
146
|
-
}
|
|
147
|
-
} else {
|
|
148
|
-
const errorMsg = t("header.language_not_found", { language: lang_code }) || `Selected language "${lang_code}" is not available`;
|
|
149
|
-
setLocalLanguageError(errorMsg);
|
|
150
|
-
}
|
|
151
|
-
};
|
|
152
|
-
const handleRetryLanguages = async () => {
|
|
153
|
-
setLocalLanguageError(null);
|
|
154
|
-
try {
|
|
155
|
-
if (useRedux && dispatch && reduxActions.fetchLanguages) {
|
|
156
|
-
await dispatch(reduxActions.fetchLanguages());
|
|
157
|
-
} else if (onFetchLanguages) {
|
|
158
|
-
await onFetchLanguages();
|
|
159
|
-
} else {
|
|
160
|
-
await hookFetchLanguages();
|
|
161
|
-
}
|
|
162
|
-
} catch (error) {
|
|
163
|
-
const errorMsg = "Failed to reload languages";
|
|
164
|
-
setLocalLanguageError(errorMsg);
|
|
165
|
-
}
|
|
166
|
-
};
|
|
167
|
-
const handleProfileMenuOpen = (event) => setAnchorEl(event.currentTarget);
|
|
168
|
-
const handleMenuClose = () => {
|
|
169
|
-
setAnchorEl(null);
|
|
170
|
-
};
|
|
171
|
-
const handleChange = (event) => {
|
|
172
|
-
const selectedLink = event.target.value;
|
|
173
|
-
setTimeout(() => {
|
|
174
|
-
navigate(selectedLink);
|
|
175
|
-
}, 300);
|
|
176
|
-
};
|
|
177
|
-
const handleBackButton = () => {
|
|
178
|
-
window.history.back();
|
|
179
|
-
};
|
|
180
|
-
const getCurrentLanguageDisplay = () => {
|
|
181
|
-
if (!currentLanguage) return t("header.select_language") || "Select Language";
|
|
182
|
-
if (isFallbackActive || languageContextError) {
|
|
183
|
-
return `${currentLanguage.label}`;
|
|
184
|
-
}
|
|
185
|
-
return currentLanguage.label;
|
|
186
|
-
};
|
|
187
|
-
const createEnglishFallback = () => ({
|
|
188
|
-
code: "en",
|
|
189
|
-
label: "English",
|
|
190
|
-
direction: "ltr"
|
|
191
|
-
});
|
|
192
|
-
const getLanguagesForDropdown = () => {
|
|
193
|
-
if (!languages || languages.length === 0) {
|
|
194
|
-
return [createEnglishFallback()];
|
|
195
|
-
}
|
|
196
|
-
const hasEnglish = languages.some((lang) => lang.code === "en");
|
|
197
|
-
if (!hasEnglish) {
|
|
198
|
-
return [createEnglishFallback(), ...languages];
|
|
199
|
-
}
|
|
200
|
-
return languages;
|
|
201
|
-
};
|
|
202
|
-
const renderLanguageSelector = () => {
|
|
203
|
-
const availableLanguages = getLanguagesForDropdown();
|
|
204
|
-
const displayValue = (currentLanguage == null ? void 0 : currentLanguage.code) || "en";
|
|
205
|
-
if (languagesLoading) {
|
|
206
|
-
return /* @__PURE__ */ jsx(Box, { className: "language-loading", children: /* @__PURE__ */ jsx(Typography, { variant: "body2", color: "text.secondary", children: "Loading..." }) });
|
|
207
|
-
}
|
|
208
|
-
return /* @__PURE__ */ jsxs(
|
|
209
|
-
Select,
|
|
210
|
-
{
|
|
211
|
-
onChange: onChangeLang,
|
|
212
|
-
size: "small",
|
|
213
|
-
value: displayValue,
|
|
214
|
-
renderValue: () => getCurrentLanguageDisplay(),
|
|
215
|
-
error: !!localLanguageError,
|
|
216
|
-
className: isFallbackActive || languageContextError ? "language-fallback-active" : "",
|
|
217
|
-
children: [
|
|
218
|
-
availableLanguages.map(({ code, label }) => /* @__PURE__ */ jsx(MenuItem, { value: code, children: /* @__PURE__ */ jsx(
|
|
219
|
-
Typography,
|
|
220
|
-
{
|
|
221
|
-
type: "s4",
|
|
222
|
-
weight: "medium",
|
|
223
|
-
color: "theme.secondary.1000",
|
|
224
|
-
children: label
|
|
225
|
-
}
|
|
226
|
-
) }, code)),
|
|
227
|
-
languageContextError && /* @__PURE__ */ jsx(MenuItem, { onClick: handleRetryLanguages, style: { fontStyle: "italic" }, children: /* @__PURE__ */ jsxs(
|
|
228
|
-
Typography,
|
|
229
|
-
{
|
|
230
|
-
type: "s4",
|
|
231
|
-
weight: "medium",
|
|
232
|
-
color: "theme.secondary.500",
|
|
233
|
-
children: [
|
|
234
|
-
"🔄 ",
|
|
235
|
-
t("header.retry_languages") || "Retry loading languages"
|
|
236
|
-
]
|
|
237
|
-
}
|
|
238
|
-
) })
|
|
239
|
-
]
|
|
240
|
-
}
|
|
241
|
-
);
|
|
242
|
-
};
|
|
243
|
-
const menuId = "primary-search-account-menu";
|
|
244
|
-
const renderMenu = /* @__PURE__ */ jsxs(
|
|
245
|
-
Menu,
|
|
246
|
-
{
|
|
247
|
-
className: "main-profile-menu",
|
|
248
|
-
anchorEl,
|
|
249
|
-
id: menuId,
|
|
250
|
-
keepMounted: true,
|
|
251
|
-
open: isMenuOpen,
|
|
252
|
-
onClose: handleMenuClose,
|
|
253
|
-
children: [
|
|
254
|
-
/* @__PURE__ */ jsx(MenuItem, { className: "user-assigned", children: /* @__PURE__ */ jsx("span", { children: t("common.assigned_roles") || "Assigned roles" }) }),
|
|
255
|
-
/* @__PURE__ */ jsxs(MenuItem, { className: "user-data-wrap", value: userData.role_id, children: [
|
|
256
|
-
/* @__PURE__ */ jsx(ListItemIcon, { children: /* @__PURE__ */ jsx(Avatar, { size: 27, alt: userData.role_name }) }),
|
|
257
|
-
/* @__PURE__ */ jsx(ListItemText, { className: "size15", children: userData.role_name }),
|
|
258
|
-
/* @__PURE__ */ jsx(Typography, { variant: "body2", color: "text.secondary", children: /* @__PURE__ */ jsx("img", { src: images.tickicon, alt: "Active" }) })
|
|
259
|
-
] }),
|
|
260
|
-
/* @__PURE__ */ jsx(Divider, {}),
|
|
261
|
-
/* @__PURE__ */ jsxs(
|
|
262
|
-
MenuItem,
|
|
263
|
-
{
|
|
264
|
-
className: "user-assigned",
|
|
265
|
-
onClick: () => {
|
|
266
|
-
handleChangePasswordView();
|
|
267
|
-
setAnchorEl(null);
|
|
268
|
-
},
|
|
269
|
-
children: [
|
|
270
|
-
/* @__PURE__ */ jsx(ListItemIcon, { children: /* @__PURE__ */ jsx(Eye, { fontSize: "medium", width: 20, height: 20, htmlColor: "#292D32" }) }),
|
|
271
|
-
/* @__PURE__ */ jsx(ListItemText, { className: "size15", children: t("common.change_password") })
|
|
272
|
-
]
|
|
273
|
-
}
|
|
274
|
-
),
|
|
275
|
-
/* @__PURE__ */ jsx(Divider, {}),
|
|
276
|
-
/* @__PURE__ */ jsxs(
|
|
277
|
-
MenuItem,
|
|
278
|
-
{
|
|
279
|
-
className: "menu-item-color",
|
|
280
|
-
onClick: () => {
|
|
281
|
-
handleLogoutConfirmation();
|
|
282
|
-
setAnchorEl(null);
|
|
283
|
-
},
|
|
284
|
-
children: [
|
|
285
|
-
/* @__PURE__ */ jsx(ListItemIcon, { children: /* @__PURE__ */ jsx("img", { src: images.logout, alt: "logout" }) }),
|
|
286
|
-
/* @__PURE__ */ jsx(ListItemText, { className: "size15", children: t("common.logout") })
|
|
287
|
-
]
|
|
288
|
-
}
|
|
289
|
-
)
|
|
290
|
-
]
|
|
291
|
-
}
|
|
292
|
-
);
|
|
293
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
294
|
-
/* @__PURE__ */ jsxs(Box, { className: "main-box", children: [
|
|
295
|
-
!isDropdownShow && /* @__PURE__ */ jsx(Link, { to: user ? Pathname.DASHBOARD : Pathname.LOGIN, children: /* @__PURE__ */ jsx("img", { src: images.logo, alt: "logo" }) }),
|
|
296
|
-
/* @__PURE__ */ jsx(Box, { className: "second-box", children: isDropdownShow && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
297
|
-
/* @__PURE__ */ jsx(IconButton, { onClick: handleBackButton, children: /* @__PURE__ */ jsx(
|
|
298
|
-
default_1,
|
|
299
|
-
{
|
|
300
|
-
className: isRtl ? "arrow-pointer_rtl" : "arrow-pointer"
|
|
301
|
-
}
|
|
302
|
-
) }),
|
|
303
|
-
/* @__PURE__ */ jsx(Box, { width: 250, children: /* @__PURE__ */ jsx(
|
|
304
|
-
Select,
|
|
305
|
-
{
|
|
306
|
-
fullWidth: true,
|
|
307
|
-
placeholder: "Placeholder",
|
|
308
|
-
size: "small",
|
|
309
|
-
value: (selectedModule == null ? void 0 : selectedModule.link) || "",
|
|
310
|
-
onChange: handleChange,
|
|
311
|
-
className: "select-box",
|
|
312
|
-
variant: "outlined",
|
|
313
|
-
renderValue: (value) => /* @__PURE__ */ jsx(Fragment, { children: selectedModule ? /* @__PURE__ */ jsxs(Box, { className: "selected-menu-box", children: [
|
|
314
|
-
/* @__PURE__ */ jsx(
|
|
315
|
-
"img",
|
|
316
|
-
{
|
|
317
|
-
src: selectedModule.icon,
|
|
318
|
-
alt: selectedModule.label
|
|
319
|
-
}
|
|
320
|
-
),
|
|
321
|
-
selectedModule.label
|
|
322
|
-
] }) : value }),
|
|
323
|
-
children: erp_modules.map((module, index) => /* @__PURE__ */ jsxs(
|
|
324
|
-
MenuItem,
|
|
325
|
-
{
|
|
326
|
-
className: "select-box-menu-item",
|
|
327
|
-
value: module.link,
|
|
328
|
-
children: [
|
|
329
|
-
/* @__PURE__ */ jsx("img", { src: module.icon, alt: module.label }),
|
|
330
|
-
module.label
|
|
331
|
-
]
|
|
332
|
-
},
|
|
333
|
-
index
|
|
334
|
-
))
|
|
335
|
-
}
|
|
336
|
-
) })
|
|
337
|
-
] }) }),
|
|
338
|
-
/* @__PURE__ */ jsxs(Box, { className: "header-right-wrap", children: [
|
|
339
|
-
/* @__PURE__ */ jsx(Box, { className: "language-selector-wrapper", children: renderLanguageSelector() }),
|
|
340
|
-
/* @__PURE__ */ jsx(NotificationMenu, {}),
|
|
341
|
-
/* @__PURE__ */ jsx(
|
|
342
|
-
IconButton,
|
|
343
|
-
{
|
|
344
|
-
size: "small",
|
|
345
|
-
"aria-label": "help",
|
|
346
|
-
className: "p-0",
|
|
347
|
-
children: /* @__PURE__ */ jsx("img", { src: images.question, alt: "question icon" })
|
|
348
|
-
}
|
|
349
|
-
),
|
|
350
|
-
/* @__PURE__ */ jsx("img", { src: images.vdivider, alt: "divider icon" }),
|
|
351
|
-
localStorage.getItem("_tid") ? /* @__PURE__ */ jsxs(Box, { className: "user-profile-box", onClick: handleProfileMenuOpen, children: [
|
|
352
|
-
/* @__PURE__ */ jsx(
|
|
353
|
-
Avatar,
|
|
354
|
-
{
|
|
355
|
-
size: 32,
|
|
356
|
-
src: (user == null ? void 0 : user.profile_image) ? `${"https://erpforce-dev.s3.eu-west-1.amazonaws.com/"}${user == null ? void 0 : user.profile_image}` : void 0,
|
|
357
|
-
alt: formatText(user == null ? void 0 : user.full_name),
|
|
358
|
-
className: "avatar-class"
|
|
359
|
-
}
|
|
360
|
-
),
|
|
361
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
362
|
-
/* @__PURE__ */ jsx(Typography, { className: "profile-name", children: user == null ? void 0 : user.full_name }),
|
|
363
|
-
/* @__PURE__ */ jsx(Typography, { className: "user-auth", children: user == null ? void 0 : user.role_name })
|
|
364
|
-
] })
|
|
365
|
-
] }) : /* @__PURE__ */ jsx(
|
|
366
|
-
IconButton,
|
|
367
|
-
{
|
|
368
|
-
size: "large",
|
|
369
|
-
edge: "end",
|
|
370
|
-
"aria-label": "account of current user",
|
|
371
|
-
"aria-controls": menuId,
|
|
372
|
-
"aria-haspopup": "true",
|
|
373
|
-
component: Link,
|
|
374
|
-
to: Pathname.LOGIN,
|
|
375
|
-
color: "inherit",
|
|
376
|
-
children: /* @__PURE__ */ jsx(default_1$1, { className: "icon-btn" })
|
|
377
|
-
}
|
|
378
|
-
)
|
|
379
|
-
] }),
|
|
380
|
-
renderMenu
|
|
381
|
-
] }),
|
|
382
|
-
/* @__PURE__ */ jsx(
|
|
383
|
-
ConfirmPopUp,
|
|
384
|
-
{
|
|
385
|
-
open: logoutConfirmation,
|
|
386
|
-
title: t("common.logout"),
|
|
387
|
-
description: t("common.logout_confirmation") || "Are you sure, you want to logout?",
|
|
388
|
-
onConfirm: () => logout(),
|
|
389
|
-
onClose: handleLogoutConfirmation,
|
|
390
|
-
fullWidth: true,
|
|
391
|
-
maxWidth: "xs",
|
|
392
|
-
buttonTexts: {
|
|
393
|
-
confirm: t("common.logout"),
|
|
394
|
-
cancel: t("common.cancel")
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
),
|
|
398
|
-
/* @__PURE__ */ jsx(ResetPasswordModal, { showModal, setShowModal })
|
|
399
|
-
] });
|
|
400
|
-
}
|
|
401
|
-
export {
|
|
402
|
-
HeaderEnhanced,
|
|
403
|
-
HeaderEnhanced as default
|
|
404
|
-
};
|
|
405
|
-
//# sourceMappingURL=index.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../../../../src/components/header/header-enhanced.tsx"],"sourcesContent":["// components/header/Header.tsx - Enhanced version with optional Redux support\nimport React, { useState, useEffect, useCallback } from \"react\";\nimport { Link, matchRoutes, useLocation, useNavigate } from \"react-router-dom\";\nimport Box from \"@mui/material/Box\";\nimport { useTranslation } from \"react-i18next\";\nimport LockIcon from \"@mui/icons-material/Lock\";\nimport IconButton from \"@mui/material/IconButton\";\nimport MenuItem from \"@mui/material/MenuItem\";\nimport Menu from \"@mui/material/Menu\";\nimport KeyboardBackspaceIcon from \"@mui/icons-material/KeyboardBackspace\";\nimport ListItemText from \"@mui/material/ListItemText\";\nimport Divider from \"@mui/material/Divider\";\nimport ListItemIcon from \"@mui/material/ListItemIcon\";\n\n// import { Pathname } from \"../../pathname\"; // Removed - should be passed as props\nimport Typography from \"../typography/typography\";\nimport logo, { images } from \"../../assets/images\";\nimport Select from \"../select/select\";\nimport modules from \"../../constants/modules\"; // Removed - should be passed as props\nimport Avatar from \"../avatar/avatar\";\nimport { useAuth } from \"../../hooks/useAuth\";\nimport ConfirmPopUp from \"../confirm-modal/confirm-modal\";\nimport formatText from \"../../utils/format-text\";\nimport { useLanguage } from \"../../hooks/useLangauge\";\nimport { Eye } from \"../icons\";\nimport ResetPasswordModal from \"../reset-password-modal/reset-password-modal\";\nimport NotificationMenu from \"./components/notification-menu/notification-menu\";\nimport \"./header.scss\";\n\ninterface ILanguage {\n label: string;\n code: string;\n direction: string;\n}\n\ninterface IModule {\n label: any;\n link: string;\n sidebar: string;\n icon: string;\n permission: string;\n bg: string;\n connectedRoutes: string[];\n translationModule: string;\n}\n\n// Enhanced props interface\ninterface HeaderEnhancedProps {\n isDropdownShow?: boolean;\n \n // Language props (alternative to Redux)\n languages?: ILanguage[];\n currentLanguage?: ILanguage;\n languagesLoading?: boolean;\n languageError?: string;\n onLanguageChange?: (languageCode: string) => void;\n onFetchLanguages?: () => Promise<void>;\n \n // Redux integration (optional)\n useRedux?: boolean;\n}\n\nexport function HeaderEnhanced(props: HeaderEnhancedProps): React.ReactElement {\n const {\n isDropdownShow,\n \n // Non-Redux props\n languages: propLanguages = [],\n currentLanguage: propCurrentLanguage,\n languagesLoading: propLanguagesLoading = false,\n languageError: propLanguageError = \"\",\n onLanguageChange,\n onFetchLanguages,\n \n // Redux integration\n useRedux = false,\n } = props;\n\n const navigate = useNavigate();\n const { t } = useTranslation();\n const location = useLocation();\n const { logout, user } = useAuth();\n \n // Conditional Redux usage\n let reduxLanguageState = {\n languages: [],\n currentLanguage: { label: 'English', code: 'en', direction: 'ltr' },\n isLoading: false,\n error: '',\n isFallbackActive: false,\n isRtl: false\n };\n let dispatch: any = null;\n let reduxActions: any = {};\n \n if (useRedux) {\n try {\n // Dynamic import of Redux hooks and actions\n const { useAppSelector, useAppDispatch } = require(\"../../redux/hooks\");\n const { fetchLanguages } = require(\"../../redux/slices\");\n \n const headerState = useAppSelector((store: any) => store.header || {});\n dispatch = useAppDispatch();\n reduxActions = { fetchLanguages };\n \n reduxLanguageState = {\n languages: headerState.languagesData?.data || [],\n currentLanguage: headerState.currentLanguage || reduxLanguageState.currentLanguage,\n isLoading: headerState.languagesData?.isLoading || false,\n error: headerState.languagesData?.error || '',\n isFallbackActive: false, // This would need to be computed\n isRtl: headerState.currentLanguage?.direction === 'rtl'\n };\n } catch (error) {\n console.warn(\"Redux not available for Header, falling back to prop-based data\");\n }\n }\n\n // Use Redux data if available, otherwise use props or useLanguage hook\n const { \n languages: hookLanguages, \n currentLanguage: hookCurrentLanguage, \n changeLanguage: hookChangeLanguage, \n isLoading: hookLanguagesLoading,\n error: hookLanguageError,\n isFallbackActive: hookIsFallbackActive,\n fetchLanguages: hookFetchLanguages,\n isRtl: hookIsRtl\n } = useLanguage();\n\n // Determine which data source to use\n const languages = useRedux ? reduxLanguageState.languages : (propLanguages.length > 0 ? propLanguages : hookLanguages);\n const currentLanguage = useRedux ? reduxLanguageState.currentLanguage : (propCurrentLanguage || hookCurrentLanguage);\n const languagesLoading = useRedux ? reduxLanguageState.isLoading : (propLanguagesLoading || hookLanguagesLoading);\n const languageContextError = useRedux ? reduxLanguageState.error : (propLanguageError || hookLanguageError);\n const isFallbackActive = useRedux ? reduxLanguageState.isFallbackActive : hookIsFallbackActive;\n const isRtl = useRedux ? reduxLanguageState.isRtl : hookIsRtl;\n\n const { pathname } = location;\n const [anchorEl, setAnchorEl] = React.useState<null | HTMLElement>(null);\n const [logoutConfirmation, setLogoutConfirmation] = useState<boolean>(false);\n const [selectedModule, setSelectedModule] = useState<IModule | null>(null);\n const [erp_modules, setModules] = useState<IModule[]>([]);\n const [localLanguageError, setLocalLanguageError] = useState<string | null>(null);\n const [showModal, setShowModal] = useState(false);\n\n const u_data = localStorage.getItem(\"_u_data\") || undefined;\n const userData = u_data ? JSON.parse(u_data) : \"\";\n const isMenuOpen = Boolean(anchorEl);\n\n const handleLogoutConfirmation = () =>\n setLogoutConfirmation(!logoutConfirmation);\n\n const checkMatchedRoutes = useCallback(\n (paths: string[] | string) => {\n const shouldMatch: { path: string }[] = Array.isArray(paths)\n ? paths.map((path: string) => ({ path }))\n : [{ path: paths }];\n\n return Boolean(matchRoutes(shouldMatch, location));\n },\n [location],\n );\n\n const handleChangePasswordView = () => {\n setShowModal(true);\n }\n\n useEffect(() => {\n const moduleName = erp_modules.find(\n (module: IModule) =>\n module?.link?.toLowerCase() === pathname.toLowerCase() || \n checkMatchedRoutes(module.connectedRoutes),\n );\n\n if (moduleName) {\n setSelectedModule(moduleName);\n }\n }, [pathname, erp_modules, checkMatchedRoutes]);\n\n useEffect(() => {\n setModules(modules(t));\n }, [t]);\n\n // Enhanced language change handler\n const onChangeLang = (e: React.ChangeEvent<HTMLSelectElement>) => {\n const lang_code = e.target.value;\n \n // Clear any previous errors\n setLocalLanguageError(null);\n \n // Validate the language exists before changing\n if (!languages || languages.length === 0) {\n const errorMsg = t('header.language_not_available') || 'Languages not available';\n setLocalLanguageError(errorMsg);\n return;\n }\n \n const languageExists = languages.some((lang: ILanguage) => lang.code === lang_code);\n \n if (languageExists) {\n try {\n if (useRedux) {\n // Use Redux action (would need to be implemented in the slice)\n // dispatch(setCurrentLanguage({ code: lang_code, ... }));\n } else if (onLanguageChange) {\n onLanguageChange(lang_code);\n } else {\n hookChangeLanguage(lang_code);\n }\n } catch (error) {\n const errorMsg = error instanceof Error ? error.message : 'Failed to change language';\n setLocalLanguageError(errorMsg);\n }\n } else {\n const errorMsg = t('header.language_not_found', { language: lang_code }) || \n `Selected language \"${lang_code}\" is not available`;\n setLocalLanguageError(errorMsg);\n }\n };\n\n // Retry language loading\n const handleRetryLanguages = async () => {\n setLocalLanguageError(null);\n try {\n if (useRedux && dispatch && reduxActions.fetchLanguages) {\n await dispatch(reduxActions.fetchLanguages());\n } else if (onFetchLanguages) {\n await onFetchLanguages();\n } else {\n await hookFetchLanguages();\n }\n } catch (error) {\n const errorMsg = 'Failed to reload languages';\n setLocalLanguageError(errorMsg);\n }\n };\n\n const handleProfileMenuOpen = (event: React.MouseEvent<HTMLElement>) =>\n setAnchorEl(event.currentTarget);\n\n const handleMenuClose = () => {\n setAnchorEl(null);\n };\n\n const handleChange = (event: any) => {\n const selectedLink = event.target.value;\n setTimeout(() => {\n navigate(selectedLink);\n }, 300);\n };\n\n const handleBackButton = () => {\n window.history.back();\n };\n\n // Get current language display value with fallback indication\n const getCurrentLanguageDisplay = (): string => {\n if (!currentLanguage) return t('header.select_language') || 'Select Language';\n \n // Show fallback indicator for better UX\n if (isFallbackActive || languageContextError) {\n return `${currentLanguage.label}`;\n }\n \n return currentLanguage.label;\n };\n\n // Create English fallback for consistent display\n const createEnglishFallback = (): ILanguage => ({\n code: 'en',\n label: 'English',\n direction: 'ltr'\n });\n\n // Get languages for dropdown - ensure English is always available\n const getLanguagesForDropdown = (): ILanguage[] => {\n if (!languages || languages.length === 0) {\n // If no languages available, show only English\n return [createEnglishFallback()];\n }\n \n // Ensure English is in the list\n const hasEnglish = languages.some(lang => lang.code === 'en');\n if (!hasEnglish) {\n return [createEnglishFallback(), ...languages];\n }\n \n return languages;\n };\n\n // Render language selector based on different states\n const renderLanguageSelector = () => {\n const availableLanguages = getLanguagesForDropdown();\n const displayValue = currentLanguage?.code || 'en'; // Default to English\n\n // Loading state\n if (languagesLoading) {\n return (\n <Box className=\"language-loading\">\n <Typography variant=\"body2\" color=\"text.secondary\">\n {'Loading...'}\n </Typography>\n </Box>\n );\n }\n\n // Always show dropdown with at least English available\n return (\n <Select\n onChange={onChangeLang}\n size=\"small\"\n value={displayValue}\n renderValue={() => getCurrentLanguageDisplay()}\n error={!!localLanguageError}\n className={isFallbackActive || languageContextError ? 'language-fallback-active' : ''}\n >\n {availableLanguages.map(({ code, label }: ILanguage) => (\n <MenuItem key={code} value={code}>\n <Typography\n type=\"s4\"\n weight=\"medium\"\n color=\"theme.secondary.1000\"\n >\n {label}\n </Typography>\n </MenuItem>\n ))}\n \n {/* Show retry option if there's an error */}\n {languageContextError && (\n <MenuItem onClick={handleRetryLanguages} style={{ fontStyle: 'italic' }}>\n <Typography\n type=\"s4\"\n weight=\"medium\"\n color=\"theme.secondary.500\"\n >\n 🔄 {t('header.retry_languages') || 'Retry loading languages'}\n </Typography>\n </MenuItem>\n )}\n </Select>\n );\n };\n\n const menuId = \"primary-search-account-menu\";\n const renderMenu = (\n <Menu\n className=\"main-profile-menu\"\n anchorEl={anchorEl}\n id={menuId}\n keepMounted\n open={isMenuOpen}\n onClose={handleMenuClose}\n >\n <MenuItem className=\"user-assigned\">\n <span>{t('common.assigned_roles') || 'Assigned roles'}</span>\n </MenuItem>\n <MenuItem className=\"user-data-wrap\" value={userData.role_id}>\n <ListItemIcon>\n <Avatar size={27} alt={userData.role_name} />\n </ListItemIcon>\n <ListItemText className=\"size15\">\n {userData.role_name}\n </ListItemText>\n <Typography variant=\"body2\" color=\"text.secondary\">\n <img src={images.tickicon} alt=\"Active\" />\n </Typography>\n </MenuItem>\n <Divider />\n <MenuItem\n className=\"user-assigned\"\n onClick={() => {\n handleChangePasswordView();\n setAnchorEl(null);\n }}\n >\n <ListItemIcon>\n <Eye fontSize=\"medium\" width={20} height={20} htmlColor=\"#292D32\" />\n </ListItemIcon>\n <ListItemText className=\"size15\">{t(\"common.change_password\")}</ListItemText>\n </MenuItem>\n <Divider />\n <MenuItem\n className=\"menu-item-color\"\n onClick={() => {\n handleLogoutConfirmation();\n setAnchorEl(null);\n }}\n >\n <ListItemIcon>\n <img src={images.logout} alt=\"logout\" />\n </ListItemIcon>\n <ListItemText className=\"size15\">{t(\"common.logout\")}</ListItemText>\n </MenuItem>\n </Menu>\n );\n\n return (\n <>\n <Box className=\"main-box\">\n {!isDropdownShow && (\n <Link to={user ? Pathname.DASHBOARD : Pathname.LOGIN}>\n <img src={images.logo} alt=\"logo\" />\n </Link>\n )}\n <Box className=\"second-box\">\n {isDropdownShow && (\n <>\n <IconButton onClick={handleBackButton}>\n <KeyboardBackspaceIcon\n className={isRtl?\"arrow-pointer_rtl\":\"arrow-pointer\"}\n />\n </IconButton>\n <Box width={250}>\n <Select\n fullWidth\n placeholder=\"Placeholder\"\n size={\"small\"}\n value={selectedModule?.link || \"\"}\n onChange={handleChange}\n className=\"select-box\"\n variant=\"outlined\"\n renderValue={(value: string) => (\n <>\n {selectedModule ? (\n <Box className=\"selected-menu-box\">\n <img\n src={selectedModule.icon}\n alt={selectedModule.label}\n />\n {selectedModule.label}\n </Box>\n ) : (\n value\n )}\n </>\n )}\n >\n {erp_modules.map((module: any, index: number) => (\n <MenuItem\n className=\"select-box-menu-item\"\n value={module.link}\n key={index}\n >\n <img src={module.icon} alt={module.label} />\n {module.label}\n </MenuItem>\n ))}\n </Select>\n </Box>\n </>\n )}\n </Box>\n <Box className=\"header-right-wrap\">\n {/* Language Selector with Enhanced Fallback Support */}\n <Box className=\"language-selector-wrapper\">\n {renderLanguageSelector()}\n </Box>\n\n <NotificationMenu/>\n <IconButton\n size=\"small\"\n aria-label=\"help\"\n className=\"p-0\"\n >\n <img src={logo.question} alt=\"question icon\" />\n </IconButton>\n <img src={logo.vdivider} alt=\"divider icon\" />\n {localStorage.getItem(\"_tid\") ? (\n <Box className=\"user-profile-box\" onClick={handleProfileMenuOpen}>\n <Avatar\n size={32}\n src={user?.profile_image ? `${import.meta.env.VITE_S3_BUCKET_URL}${user?.profile_image}` : undefined}\n alt={formatText(user?.full_name)}\n className=\"avatar-class\"\n />\n <div>\n <Typography className=\"profile-name\">\n {user?.full_name}\n </Typography>\n <Typography className=\"user-auth\">\n {user?.role_name}\n </Typography>\n </div>\n </Box>\n ) : (\n <IconButton\n size=\"large\"\n edge=\"end\"\n aria-label=\"account of current user\"\n aria-controls={menuId}\n aria-haspopup=\"true\"\n component={Link}\n to={Pathname.LOGIN}\n color=\"inherit\"\n >\n <LockIcon className=\"icon-btn\" />\n </IconButton>\n )}\n </Box>\n {renderMenu}\n </Box>\n\n {/* Logout Confirmation Dialog */}\n <ConfirmPopUp\n open={logoutConfirmation}\n title={t(\"common.logout\")}\n description={t('common.logout_confirmation') || \"Are you sure, you want to logout?\"}\n onConfirm={() => logout()}\n onClose={handleLogoutConfirmation}\n fullWidth\n maxWidth=\"xs\"\n buttonTexts={{\n confirm: t(\"common.logout\"),\n cancel: t(\"common.cancel\"),\n }}\n />\n\n <ResetPasswordModal showModal={showModal} setShowModal={setShowModal} />\n </>\n );\n}\n\nexport default HeaderEnhanced;"],"names":["React","_a","KeyboardBackspaceIcon","logo","LockIcon"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA8DO,SAAS,eAAe,OAAgD;;AAC7E,QAAM;AAAA,IACJ;AAAA;AAAA,IAGA,WAAW,gBAAgB,CAAA;AAAA,IAC3B,iBAAiB;AAAA,IACjB,kBAAkB,uBAAuB;AAAA,IACzC,eAAe,oBAAoB;AAAA,IACnC;AAAA,IACA;AAAA;AAAA,IAGA,WAAW;AAAA,EAAA,IACT;AAEJ,QAAM,WAAW,YAAA;AACjB,QAAM,EAAE,EAAA,IAAM,eAAA;AACd,QAAM,WAAW,YAAA;AACjB,QAAM,EAAE,QAAQ,KAAA,IAAS,QAAA;AAGzB,MAAI,qBAAqB;AAAA,IACvB,WAAW,CAAA;AAAA,IACX,iBAAiB,EAAE,OAAO,WAAW,MAAM,MAAM,WAAW,MAAA;AAAA,IAC5D,WAAW;AAAA,IACX,OAAO;AAAA,IACP,kBAAkB;AAAA,IAClB,OAAO;AAAA,EAAA;AAET,MAAI,WAAgB;AACpB,MAAI,eAAoB,CAAA;AAExB,MAAI,UAAU;AACZ,QAAI;AAEF,YAAM,EAAE,gBAAgB,mBAAmB,QAAQ,mBAAmB;AACtE,YAAM,EAAE,eAAA,IAAmB,QAAQ,oBAAoB;AAEvD,YAAM,cAAc,eAAe,CAAC,UAAe,MAAM,UAAU,EAAE;AACrE,iBAAW,eAAA;AACX,qBAAe,EAAE,eAAA;AAEjB,2BAAqB;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AAA,MACC;AAAA,IAAA,GACH;AAAA,IAGA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,MAAM;AAAA,QACN,OAAO,EAAE,eAAe;AAAA,QACxB,aAAa,EAAE,4BAA4B,KAAK;AAAA,QAChD,WAAW,MAAM,OAAA;AAAA,QACjB,SAAS;AAAA,QACT,WAAS;AAAA,QACT,UAAS;AAAA,QACT,aAAa;AAAA,UACX,SAAS,EAAE,eAAe;AAAA,UAC1B,QAAQ,EAAE,eAAe;AAAA,QAAA;AAAA,MAC3B;AAAA,IAAA;AAAA,IAGF,oBAAC,oBAAA,EAAmB,WAAsB,cAA4B;AAAA,EAAA,GACxE;AAEJ;"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),a=require("react"),l=require("react-router-dom"),s=require("react-i18next"),n=,/* empty css */r=,/* empty css */t=,/* empty css */i=,/* empty css */o=,/* empty css */u=,/* empty css */c=,/* empty css */d=,/* empty css */g=,/* empty css */m=,/* empty css */h=,/* empty css */x=,/* empty css */j=;/* empty css */;/* empty css */var f=,/* empty css */p=,/* empty css */v=,/* empty css */y=,/* empty css */L=,/* empty css */b=,/* empty css */_=,/* empty css */q=;/* empty css */function N(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var w=/* @__PURE__ */N(a);function k(N){var k,S,A,C;const{isDropdownShow:I,languages:T=[],currentLanguage:z,languagesLoading:D=!1,languageError:E="",onLanguageChange:F,onFetchLanguages:M,useRedux:R=!1}=N,B=l.useNavigate(),{t:P}=s.useTranslation(),O=l.useLocation(),{logout:W,user:$}=d.useAuth();let G={languages:[],currentLanguage:{label:"English",code:"en",direction:"ltr"},isLoading:!1,error:"",isFallbackActive:!1,isRtl:!1},H=null,V={};if(R)try{const{useAppSelector:e,useAppDispatch:a}=require("../../redux/hooks"),{fetchLanguages:l}=require("../../redux/slices"),s=e(e=>e.header||{});H=a(),V={fetchLanguages:l},G={languages:(null==(k=s.languagesData)?void 0:k.data)||[],currentLanguage:s.currentLanguage||G.currentLanguage,isLoading:(null==(S=s.languagesData)?void 0:S.isLoading)||!1,error:(null==(A=s.languagesData)?void 0:A.error)||"",isFallbackActive:!1,isRtl:"rtl"===(null==(C=s.currentLanguage)?void 0:C.direction)}}catch(Ae){}const{languages:J,currentLanguage:K,changeLanguage:U,isLoading:Q,error:X,isFallbackActive:Y,fetchLanguages:Z,isRtl:ee}=h.useLanguage(),ae=R?G.languages:T.length>0?T:J,le=R?G.currentLanguage:z||K,se=R?G.isLoading:D||Q,ne=R?G.error:E||X,re=R?G.isFallbackActive:Y,te=R?G.isRtl:ee,{pathname:ie}=O,[oe,ue]=w.default.useState(null),[ce,de]=a.useState(!1),[ge,me]=a.useState(null),[he,xe]=a.useState([]),[je,fe]=a.useState(null),[pe,ve]=a.useState(!1),ye=localStorage.getItem("_u_data")||void 0,Le=ye?JSON.parse(ye):"",be=Boolean(oe),_e=()=>de(!ce),qe=a.useCallback(e=>{const a=Array.isArray(e)?e.map(e=>({path:e})):[{path:e}];return Boolean(l.matchRoutes(a,O))},[O]);a.useEffect(()=>{const e=he.find(e=>{var a;return(null==(a=null==e?void 0:e.link)?void 0:a.toLowerCase())===ie.toLowerCase()||qe(e.connectedRoutes)});e&&me(e)},[ie,he,qe]),a.useEffect(()=>{xe(u.default(P))},[P]);const Ne=e=>{const a=e.target.value;if(fe(null),!ae||0===ae.length){const e=P("header.language_not_available")||"Languages not available";return void fe(e)}if(ae.some(e=>e.code===a))try{R||(F?F(a):U(a))}catch(Ae){const a=Ae instanceof Error?Ae.message:"Failed to change language";fe(a)}else{const e=P("header.language_not_found",{language:a})||`Selected language "${a}" is not available`;fe(e)}},we=async()=>{fe(null);try{R&&H&&V.fetchLanguages?await H(V.fetchLanguages()):M?await M():await Z()}catch(Ae){fe("Failed to reload languages")}},ke="primary-search-account-menu",Se=/* @__PURE__ */e.jsxs(f.default,{className:"main-profile-menu",anchorEl:oe,id:ke,keepMounted:!0,open:be,onClose:()=>{ue(null)},children:[
|
|
2
|
-
/* @__PURE__ */e.jsx(p.default,{className:"user-assigned",children:/* @__PURE__ */e.jsx("span",{children:P("common.assigned_roles")||"Assigned roles"})}),
|
|
3
|
-
/* @__PURE__ */e.jsxs(p.default,{className:"user-data-wrap",value:Le.role_id,children:[
|
|
4
|
-
/* @__PURE__ */e.jsx(v.default,{children:/* @__PURE__ */e.jsx(c.Avatar,{size:27,alt:Le.role_name})}),
|
|
5
|
-
/* @__PURE__ */e.jsx(y.default,{className:"size15",children:Le.role_name}),
|
|
6
|
-
/* @__PURE__ */e.jsx(t.Typography,{variant:"body2",color:"text.secondary",children:/* @__PURE__ */e.jsx("img",{src:i.images.tickicon,alt:"Active"})})]}),
|
|
7
|
-
/* @__PURE__ */e.jsx(L.default,{}),
|
|
8
|
-
/* @__PURE__ */e.jsxs(p.default,{className:"user-assigned",onClick:()=>{ve(!0),ue(null)},children:[
|
|
9
|
-
/* @__PURE__ */e.jsx(v.default,{children:/* @__PURE__ */e.jsx(b.Eye,{fontSize:"medium",width:20,height:20,htmlColor:"#292D32"})}),
|
|
10
|
-
/* @__PURE__ */e.jsx(y.default,{className:"size15",children:P("common.change_password")})]}),
|
|
11
|
-
/* @__PURE__ */e.jsx(L.default,{}),
|
|
12
|
-
/* @__PURE__ */e.jsxs(p.default,{className:"menu-item-color",onClick:()=>{_e(),ue(null)},children:[
|
|
13
|
-
/* @__PURE__ */e.jsx(v.default,{children:/* @__PURE__ */e.jsx("img",{src:i.images.logout,alt:"logout"})}),
|
|
14
|
-
/* @__PURE__ */e.jsx(y.default,{className:"size15",children:P("common.logout")})]})]});/* @__PURE__ */
|
|
15
|
-
return e.jsxs(e.Fragment,{children:[
|
|
16
|
-
/* @__PURE__ */e.jsxs(_.default,{className:"main-box",children:[!I&&/* @__PURE__ */e.jsx(l.Link,{to:$?Pathname.DASHBOARD:Pathname.LOGIN,children:/* @__PURE__ */e.jsx("img",{src:i.images.logo,alt:"logo"})}),
|
|
17
|
-
/* @__PURE__ */e.jsx(_.default,{className:"second-box",children:I&&/* @__PURE__ */e.jsxs(e.Fragment,{children:[
|
|
18
|
-
/* @__PURE__ */e.jsx(q.default,{onClick:()=>{window.history.back()},children:/* @__PURE__ */e.jsx(r.default,{className:te?"arrow-pointer_rtl":"arrow-pointer"})}),
|
|
19
|
-
/* @__PURE__ */e.jsx(_.default,{width:250,children:/* @__PURE__ */e.jsx(o.Select,{fullWidth:!0,placeholder:"Placeholder",size:"small",value:(null==ge?void 0:ge.link)||"",onChange:e=>{const a=e.target.value;setTimeout(()=>{B(a)},300)},className:"select-box",variant:"outlined",renderValue:a=>/* @__PURE__ */e.jsx(e.Fragment,{children:ge?/* @__PURE__ */e.jsxs(_.default,{className:"selected-menu-box",children:[
|
|
20
|
-
/* @__PURE__ */e.jsx("img",{src:ge.icon,alt:ge.label}),ge.label]}):a}),children:he.map((a,l)=>/* @__PURE__ */e.jsxs(p.default,{className:"select-box-menu-item",value:a.link,children:[
|
|
21
|
-
/* @__PURE__ */e.jsx("img",{src:a.icon,alt:a.label}),a.label]},l))})})]})}),
|
|
22
|
-
/* @__PURE__ */e.jsxs(_.default,{className:"header-right-wrap",children:[
|
|
23
|
-
/* @__PURE__ */e.jsx(_.default,{className:"language-selector-wrapper",children:(()=>{const a=ae&&0!==ae.length?ae.some(e=>"en"===e.code)?ae:[{code:"en",label:"English",direction:"ltr"},...ae]:[{code:"en",label:"English",direction:"ltr"}],l=(null==le?void 0:le.code)||"en";return se?/* @__PURE__ */e.jsx(_.default,{className:"language-loading",children:/* @__PURE__ */e.jsx(t.Typography,{variant:"body2",color:"text.secondary",children:"Loading..."})}):/* @__PURE__ */e.jsxs(o.Select,{onChange:Ne,size:"small",value:l,renderValue:()=>le?re||ne?`${le.label}`:le.label:P("header.select_language")||"Select Language",error:!!je,className:re||ne?"language-fallback-active":"",children:[a.map(({code:a,label:l})=>/* @__PURE__ */e.jsx(p.default,{value:a,children:/* @__PURE__ */e.jsx(t.Typography,{type:"s4",weight:"medium",color:"theme.secondary.1000",children:l})},a)),ne&&/* @__PURE__ */e.jsx(p.default,{onClick:we,style:{fontStyle:"italic"},children:/* @__PURE__ */e.jsxs(t.Typography,{type:"s4",weight:"medium",color:"theme.secondary.500",children:["🔄 ",P("header.retry_languages")||"Retry loading languages"]})})]})})()}),
|
|
24
|
-
/* @__PURE__ */e.jsx(j.NotificationMenu,{}),
|
|
25
|
-
/* @__PURE__ */e.jsx(q.default,{size:"small","aria-label":"help",className:"p-0",children:/* @__PURE__ */e.jsx("img",{src:i.images.question,alt:"question icon"})}),
|
|
26
|
-
/* @__PURE__ */e.jsx("img",{src:i.images.vdivider,alt:"divider icon"}),localStorage.getItem("_tid")?/* @__PURE__ */e.jsxs(_.default,{className:"user-profile-box",onClick:e=>ue(e.currentTarget),children:[
|
|
27
|
-
/* @__PURE__ */e.jsx(c.Avatar,{size:32,src:(null==$?void 0:$.profile_image)?`https://erpforce-dev.s3.eu-west-1.amazonaws.com/${null==$?void 0:$.profile_image}`:void 0,alt:m.formatText(null==$?void 0:$.full_name),className:"avatar-class"}),
|
|
28
|
-
/* @__PURE__ */e.jsxs("div",{children:[
|
|
29
|
-
/* @__PURE__ */e.jsx(t.Typography,{className:"profile-name",children:null==$?void 0:$.full_name}),
|
|
30
|
-
/* @__PURE__ */e.jsx(t.Typography,{className:"user-auth",children:null==$?void 0:$.role_name})]})]}):/* @__PURE__ */e.jsx(q.default,{size:"large",edge:"end","aria-label":"account of current user","aria-controls":ke,"aria-haspopup":"true",component:l.Link,to:Pathname.LOGIN,color:"inherit",children:/* @__PURE__ */e.jsx(n.default,{className:"icon-btn"})})]}),Se]}),
|
|
31
|
-
/* @__PURE__ */e.jsx(g.ConfirmPopUp,{open:ce,title:P("common.logout"),description:P("common.logout_confirmation")||"Are you sure, you want to logout?",onConfirm:()=>W(),onClose:_e,fullWidth:!0,maxWidth:"xs",buttonTexts:{confirm:P("common.logout"),cancel:P("common.cancel")}}),
|
|
32
|
-
/* @__PURE__ */e.jsx(x.ResetPasswordModal,{showModal:pe,setShowModal:ve})]})}exports.HeaderEnhanced=k,exports.default=k;
|
|
33
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/header/header-enhanced.tsx"],"sourcesContent":["// components/header/Header.tsx - Enhanced version with optional Redux support\nimport React, { useState, useEffect, useCallback } from \"react\";\nimport { Link, matchRoutes, useLocation, useNavigate } from \"react-router-dom\";\nimport Box from \"@mui/material/Box\";\nimport { useTranslation } from \"react-i18next\";\nimport LockIcon from \"@mui/icons-material/Lock\";\nimport IconButton from \"@mui/material/IconButton\";\nimport MenuItem from \"@mui/material/MenuItem\";\nimport Menu from \"@mui/material/Menu\";\nimport KeyboardBackspaceIcon from \"@mui/icons-material/KeyboardBackspace\";\nimport ListItemText from \"@mui/material/ListItemText\";\nimport Divider from \"@mui/material/Divider\";\nimport ListItemIcon from \"@mui/material/ListItemIcon\";\n\n// import { Pathname } from \"../../pathname\"; // Removed - should be passed as props\nimport Typography from \"../typography/typography\";\nimport logo, { images } from \"../../assets/images\";\nimport Select from \"../select/select\";\nimport modules from \"../../constants/modules\"; // Removed - should be passed as props\nimport Avatar from \"../avatar/avatar\";\nimport { useAuth } from \"../../hooks/useAuth\";\nimport ConfirmPopUp from \"../confirm-modal/confirm-modal\";\nimport formatText from \"../../utils/format-text\";\nimport { useLanguage } from \"../../hooks/useLangauge\";\nimport { Eye } from \"../icons\";\nimport ResetPasswordModal from \"../reset-password-modal/reset-password-modal\";\nimport NotificationMenu from \"./components/notification-menu/notification-menu\";\nimport \"./header.scss\";\n\ninterface ILanguage {\n label: string;\n code: string;\n direction: string;\n}\n\ninterface IModule {\n label: any;\n link: string;\n sidebar: string;\n icon: string;\n permission: string;\n bg: string;\n connectedRoutes: string[];\n translationModule: string;\n}\n\n// Enhanced props interface\ninterface HeaderEnhancedProps {\n isDropdownShow?: boolean;\n \n // Language props (alternative to Redux)\n languages?: ILanguage[];\n currentLanguage?: ILanguage;\n languagesLoading?: boolean;\n languageError?: string;\n onLanguageChange?: (languageCode: string) => void;\n onFetchLanguages?: () => Promise<void>;\n \n // Redux integration (optional)\n useRedux?: boolean;\n}\n\nexport function HeaderEnhanced(props: HeaderEnhancedProps): React.ReactElement {\n const {\n isDropdownShow,\n \n // Non-Redux props\n languages: propLanguages = [],\n currentLanguage: propCurrentLanguage,\n languagesLoading: propLanguagesLoading = false,\n languageError: propLanguageError = \"\",\n onLanguageChange,\n onFetchLanguages,\n \n // Redux integration\n useRedux = false,\n } = props;\n\n const navigate = useNavigate();\n const { t } = useTranslation();\n const location = useLocation();\n const { logout, user } = useAuth();\n \n // Conditional Redux usage\n let reduxLanguageState = {\n languages: [],\n currentLanguage: { label: 'English', code: 'en', direction: 'ltr' },\n isLoading: false,\n error: '',\n isFallbackActive: false,\n isRtl: false\n };\n let dispatch: any = null;\n let reduxActions: any = {};\n \n if (useRedux) {\n try {\n // Dynamic import of Redux hooks and actions\n const { useAppSelector, useAppDispatch } = require(\"../../redux/hooks\");\n const { fetchLanguages } = require(\"../../redux/slices\");\n \n const headerState = useAppSelector((store: any) => store.header || {});\n dispatch = useAppDispatch();\n reduxActions = { fetchLanguages };\n \n reduxLanguageState = {\n languages: headerState.languagesData?.data || [],\n currentLanguage: headerState.currentLanguage || reduxLanguageState.currentLanguage,\n isLoading: headerState.languagesData?.isLoading || false,\n error: headerState.languagesData?.error || '',\n isFallbackActive: false, // This would need to be computed\n isRtl: headerState.currentLanguage?.direction === 'rtl'\n };\n } catch (error) {\n console.warn(\"Redux not available for Header, falling back to prop-based data\");\n }\n }\n\n // Use Redux data if available, otherwise use props or useLanguage hook\n const { \n languages: hookLanguages, \n currentLanguage: hookCurrentLanguage, \n changeLanguage: hookChangeLanguage, \n isLoading: hookLanguagesLoading,\n error: hookLanguageError,\n isFallbackActive: hookIsFallbackActive,\n fetchLanguages: hookFetchLanguages,\n isRtl: hookIsRtl\n } = useLanguage();\n\n // Determine which data source to use\n const languages = useRedux ? reduxLanguageState.languages : (propLanguages.length > 0 ? propLanguages : hookLanguages);\n const currentLanguage = useRedux ? reduxLanguageState.currentLanguage : (propCurrentLanguage || hookCurrentLanguage);\n const languagesLoading = useRedux ? reduxLanguageState.isLoading : (propLanguagesLoading || hookLanguagesLoading);\n const languageContextError = useRedux ? reduxLanguageState.error : (propLanguageError || hookLanguageError);\n const isFallbackActive = useRedux ? reduxLanguageState.isFallbackActive : hookIsFallbackActive;\n const isRtl = useRedux ? reduxLanguageState.isRtl : hookIsRtl;\n\n const { pathname } = location;\n const [anchorEl, setAnchorEl] = React.useState<null | HTMLElement>(null);\n const [logoutConfirmation, setLogoutConfirmation] = useState<boolean>(false);\n const [selectedModule, setSelectedModule] = useState<IModule | null>(null);\n const [erp_modules, setModules] = useState<IModule[]>([]);\n const [localLanguageError, setLocalLanguageError] = useState<string | null>(null);\n const [showModal, setShowModal] = useState(false);\n\n const u_data = localStorage.getItem(\"_u_data\") || undefined;\n const userData = u_data ? JSON.parse(u_data) : \"\";\n const isMenuOpen = Boolean(anchorEl);\n\n const handleLogoutConfirmation = () =>\n setLogoutConfirmation(!logoutConfirmation);\n\n const checkMatchedRoutes = useCallback(\n (paths: string[] | string) => {\n const shouldMatch: { path: string }[] = Array.isArray(paths)\n ? paths.map((path: string) => ({ path }))\n : [{ path: paths }];\n\n return Boolean(matchRoutes(shouldMatch, location));\n },\n [location],\n );\n\n const handleChangePasswordView = () => {\n setShowModal(true);\n }\n\n useEffect(() => {\n const moduleName = erp_modules.find(\n (module: IModule) =>\n module?.link?.toLowerCase() === pathname.toLowerCase() || \n checkMatchedRoutes(module.connectedRoutes),\n );\n\n if (moduleName) {\n setSelectedModule(moduleName);\n }\n }, [pathname, erp_modules, checkMatchedRoutes]);\n\n useEffect(() => {\n setModules(modules(t));\n }, [t]);\n\n // Enhanced language change handler\n const onChangeLang = (e: React.ChangeEvent<HTMLSelectElement>) => {\n const lang_code = e.target.value;\n \n // Clear any previous errors\n setLocalLanguageError(null);\n \n // Validate the language exists before changing\n if (!languages || languages.length === 0) {\n const errorMsg = t('header.language_not_available') || 'Languages not available';\n setLocalLanguageError(errorMsg);\n return;\n }\n \n const languageExists = languages.some((lang: ILanguage) => lang.code === lang_code);\n \n if (languageExists) {\n try {\n if (useRedux) {\n // Use Redux action (would need to be implemented in the slice)\n // dispatch(setCurrentLanguage({ code: lang_code, ... }));\n } else if (onLanguageChange) {\n onLanguageChange(lang_code);\n } else {\n hookChangeLanguage(lang_code);\n }\n } catch (error) {\n const errorMsg = error instanceof Error ? error.message : 'Failed to change language';\n setLocalLanguageError(errorMsg);\n }\n } else {\n const errorMsg = t('header.language_not_found', { language: lang_code }) || \n `Selected language \"${lang_code}\" is not available`;\n setLocalLanguageError(errorMsg);\n }\n };\n\n // Retry language loading\n const handleRetryLanguages = async () => {\n setLocalLanguageError(null);\n try {\n if (useRedux && dispatch && reduxActions.fetchLanguages) {\n await dispatch(reduxActions.fetchLanguages());\n } else if (onFetchLanguages) {\n await onFetchLanguages();\n } else {\n await hookFetchLanguages();\n }\n } catch (error) {\n const errorMsg = 'Failed to reload languages';\n setLocalLanguageError(errorMsg);\n }\n };\n\n const handleProfileMenuOpen = (event: React.MouseEvent<HTMLElement>) =>\n setAnchorEl(event.currentTarget);\n\n const handleMenuClose = () => {\n setAnchorEl(null);\n };\n\n const handleChange = (event: any) => {\n const selectedLink = event.target.value;\n setTimeout(() => {\n navigate(selectedLink);\n }, 300);\n };\n\n const handleBackButton = () => {\n window.history.back();\n };\n\n // Get current language display value with fallback indication\n const getCurrentLanguageDisplay = (): string => {\n if (!currentLanguage) return t('header.select_language') || 'Select Language';\n \n // Show fallback indicator for better UX\n if (isFallbackActive || languageContextError) {\n return `${currentLanguage.label}`;\n }\n \n return currentLanguage.label;\n };\n\n // Create English fallback for consistent display\n const createEnglishFallback = (): ILanguage => ({\n code: 'en',\n label: 'English',\n direction: 'ltr'\n });\n\n // Get languages for dropdown - ensure English is always available\n const getLanguagesForDropdown = (): ILanguage[] => {\n if (!languages || languages.length === 0) {\n // If no languages available, show only English\n return [createEnglishFallback()];\n }\n \n // Ensure English is in the list\n const hasEnglish = languages.some(lang => lang.code === 'en');\n if (!hasEnglish) {\n return [createEnglishFallback(), ...languages];\n }\n \n return languages;\n };\n\n // Render language selector based on different states\n const renderLanguageSelector = () => {\n const availableLanguages = getLanguagesForDropdown();\n const displayValue = currentLanguage?.code || 'en'; // Default to English\n\n // Loading state\n if (languagesLoading) {\n return (\n <Box className=\"language-loading\">\n <Typography variant=\"body2\" color=\"text.secondary\">\n {'Loading...'}\n </Typography>\n </Box>\n );\n }\n\n // Always show dropdown with at least English available\n return (\n <Select\n onChange={onChangeLang}\n size=\"small\"\n value={displayValue}\n renderValue={() => getCurrentLanguageDisplay()}\n error={!!localLanguageError}\n className={isFallbackActive || languageContextError ? 'language-fallback-active' : ''}\n >\n {availableLanguages.map(({ code, label }: ILanguage) => (\n <MenuItem key={code} value={code}>\n <Typography\n type=\"s4\"\n weight=\"medium\"\n color=\"theme.secondary.1000\"\n >\n {label}\n </Typography>\n </MenuItem>\n ))}\n \n {/* Show retry option if there's an error */}\n {languageContextError && (\n <MenuItem onClick={handleRetryLanguages} style={{ fontStyle: 'italic' }}>\n <Typography\n type=\"s4\"\n weight=\"medium\"\n color=\"theme.secondary.500\"\n >\n 🔄 {t('header.retry_languages') || 'Retry loading languages'}\n </Typography>\n </MenuItem>\n )}\n </Select>\n );\n };\n\n const menuId = \"primary-search-account-menu\";\n const renderMenu = (\n <Menu\n className=\"main-profile-menu\"\n anchorEl={anchorEl}\n id={menuId}\n keepMounted\n open={isMenuOpen}\n onClose={handleMenuClose}\n >\n <MenuItem className=\"user-assigned\">\n <span>{t('common.assigned_roles') || 'Assigned roles'}</span>\n </MenuItem>\n <MenuItem className=\"user-data-wrap\" value={userData.role_id}>\n <ListItemIcon>\n <Avatar size={27} alt={userData.role_name} />\n </ListItemIcon>\n <ListItemText className=\"size15\">\n {userData.role_name}\n </ListItemText>\n <Typography variant=\"body2\" color=\"text.secondary\">\n <img src={images.tickicon} alt=\"Active\" />\n </Typography>\n </MenuItem>\n <Divider />\n <MenuItem\n className=\"user-assigned\"\n onClick={() => {\n handleChangePasswordView();\n setAnchorEl(null);\n }}\n >\n <ListItemIcon>\n <Eye fontSize=\"medium\" width={20} height={20} htmlColor=\"#292D32\" />\n </ListItemIcon>\n <ListItemText className=\"size15\">{t(\"common.change_password\")}</ListItemText>\n </MenuItem>\n <Divider />\n <MenuItem\n className=\"menu-item-color\"\n onClick={() => {\n handleLogoutConfirmation();\n setAnchorEl(null);\n }}\n >\n <ListItemIcon>\n <img src={images.logout} alt=\"logout\" />\n </ListItemIcon>\n <ListItemText className=\"size15\">{t(\"common.logout\")}</ListItemText>\n </MenuItem>\n </Menu>\n );\n\n return (\n <>\n <Box className=\"main-box\">\n {!isDropdownShow && (\n <Link to={user ? Pathname.DASHBOARD : Pathname.LOGIN}>\n <img src={images.logo} alt=\"logo\" />\n </Link>\n )}\n <Box className=\"second-box\">\n {isDropdownShow && (\n <>\n <IconButton onClick={handleBackButton}>\n <KeyboardBackspaceIcon\n className={isRtl?\"arrow-pointer_rtl\":\"arrow-pointer\"}\n />\n </IconButton>\n <Box width={250}>\n <Select\n fullWidth\n placeholder=\"Placeholder\"\n size={\"small\"}\n value={selectedModule?.link || \"\"}\n onChange={handleChange}\n className=\"select-box\"\n variant=\"outlined\"\n renderValue={(value: string) => (\n <>\n {selectedModule ? (\n <Box className=\"selected-menu-box\">\n <img\n src={selectedModule.icon}\n alt={selectedModule.label}\n />\n {selectedModule.label}\n </Box>\n ) : (\n value\n )}\n </>\n )}\n >\n {erp_modules.map((module: any, index: number) => (\n <MenuItem\n className=\"select-box-menu-item\"\n value={module.link}\n key={index}\n >\n <img src={module.icon} alt={module.label} />\n {module.label}\n </MenuItem>\n ))}\n </Select>\n </Box>\n </>\n )}\n </Box>\n <Box className=\"header-right-wrap\">\n {/* Language Selector with Enhanced Fallback Support */}\n <Box className=\"language-selector-wrapper\">\n {renderLanguageSelector()}\n </Box>\n\n <NotificationMenu/>\n <IconButton\n size=\"small\"\n aria-label=\"help\"\n className=\"p-0\"\n >\n <img src={logo.question} alt=\"question icon\" />\n </IconButton>\n <img src={logo.vdivider} alt=\"divider icon\" />\n {localStorage.getItem(\"_tid\") ? (\n <Box className=\"user-profile-box\" onClick={handleProfileMenuOpen}>\n <Avatar\n size={32}\n src={user?.profile_image ? `${import.meta.env.VITE_S3_BUCKET_URL}${user?.profile_image}` : undefined}\n alt={formatText(user?.full_name)}\n className=\"avatar-class\"\n />\n <div>\n <Typography className=\"profile-name\">\n {user?.full_name}\n </Typography>\n <Typography className=\"user-auth\">\n {user?.role_name}\n </Typography>\n </div>\n </Box>\n ) : (\n <IconButton\n size=\"large\"\n edge=\"end\"\n aria-label=\"account of current user\"\n aria-controls={menuId}\n aria-haspopup=\"true\"\n component={Link}\n to={Pathname.LOGIN}\n color=\"inherit\"\n >\n <LockIcon className=\"icon-btn\" />\n </IconButton>\n )}\n </Box>\n {renderMenu}\n </Box>\n\n {/* Logout Confirmation Dialog */}\n <ConfirmPopUp\n open={logoutConfirmation}\n title={t(\"common.logout\")}\n description={t('common.logout_confirmation') || \"Are you sure, you want to logout?\"}\n onConfirm={() => logout()}\n onClose={handleLogoutConfirmation}\n fullWidth\n maxWidth=\"xs\"\n buttonTexts={{\n confirm: t(\"common.logout\"),\n cancel: t(\"common.cancel\"),\n }}\n />\n\n <ResetPasswordModal showModal={showModal} setShowModal={setShowModal} />\n </>\n );\n}\n\nexport default HeaderEnhanced;"],"names":["HeaderEnhanced","props","isDropdownShow","languages","propLanguages","currentLanguage","propCurrentLanguage","languagesLoading","propLanguagesLoading","languageError","propLanguageError","onLanguageChange","onFetchLanguages","useRedux","navigate","useNavigate","t","useTranslation","location","useLocation","logout","user","useAuth","reduxLanguageState","label","code","direction","isLoading","error","isFallbackActive","isRtl","dispatch","reduxActions","useAppSelector","useAppDispatch","require","fetchLanguages","headerState","store","header","_a","languagesData","data","_b","_c","_d","hookLanguages","hookCurrentLanguage","changeLanguage","hookChangeLanguage","hookLanguagesLoading","hookLanguageError","hookIsFallbackActive","hookFetchLanguages","hookIsRtl","useLanguage","length","languageContextError","pathname","anchorEl","setAnchorEl","React","useState","logoutConfirmation","setLogoutConfirmation","selectedModule","setSelectedModule","erp_modules","setModules","localLanguageError","setLocalLanguageError","showModal","setShowModal","u_data","localStorage","getItem","userData","JSON","parse","isMenuOpen","Boolean","handleLogoutConfirmation","checkMatchedRoutes","useCallback","paths","shouldMatch","Array","isArray","map","path","matchRoutes","useEffect","moduleName","find","module","link","toLowerCase","connectedRoutes","modules","onChangeLang","e","lang_code","target","value","errorMsg","some","lang","Error","message","language","handleRetryLanguages","async","menuId","renderMenu","jsxs","Menu","className","id","keepMounted","open","onClose","children","MenuItem","jsx","role_id","ListItemIcon","Avatar","size","alt","role_name","ListItemText","Typography","variant","color","src","images","tickicon","Divider","onClick","Eye","fontSize","width","height","htmlColor","Fragment","Box","Link","to","Pathname","DASHBOARD","LOGIN","logo","IconButton","window","history","back","KeyboardBackspaceIcon","Select","fullWidth","placeholder","onChange","event","selectedLink","setTimeout","renderValue","icon","index","availableLanguages","displayValue","type","weight","style","fontStyle","renderLanguageSelector","NotificationMenu","question","vdivider","currentTarget","profile_image","formatText","full_name","edge","component","LockIcon","ConfirmPopUp","title","description","onConfirm","maxWidth","buttonTexts","confirm","cancel","ResetPasswordModal"],"mappings":"+jDA8DO,SAASA,EAAeC,eAC7B,MAAMC,eACJA,EAGAC,UAAWC,EAAgB,GAC3BC,gBAAiBC,EACjBC,iBAAkBC,GAAuB,EACzCC,cAAeC,EAAoB,GAAAC,iBACnCA,EAAAC,iBACAA,EAAAC,SAGAA,GAAW,GACTZ,EAEEa,EAAWC,EAAAA,eACXC,EAAEA,GAAMC,mBACRC,EAAWC,EAAAA,eACXC,OAAEA,EAAAC,KAAQA,GAASC,YAGzB,IAAIC,EAAqB,CACvBpB,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