@erpsquad/common 1.8.41 → 1.8.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +4 -2
- package/dist/_virtual/index/index.esm2.js.map +1 -1
- package/dist/_virtual/index/index.esm3.js +2 -4
- 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/components/action-bar/action-bar/index.esm.js +2 -2
- package/dist/components/action-bar/action-bar/index.js +11 -11
- package/dist/components/approval-wrapper/approval-wrapper/index.esm.js +1 -1
- package/dist/components/approval-wrapper/approval-wrapper/index.esm.js.map +1 -1
- package/dist/components/approval-wrapper/approval-wrapper/index.js +4 -4
- package/dist/components/approval-wrapper/approval-wrapper/index.js.map +1 -1
- package/dist/components/change-user-password-modal/change-user-password-modal/index.esm.js +2 -2
- package/dist/components/change-user-password-modal/change-user-password-modal/index.js +3 -3
- package/dist/components/charts/line-chart/area-lineChart/index.esm.js +2 -2
- package/dist/components/charts/line-chart/area-lineChart/index.esm.js.map +1 -1
- package/dist/components/charts/line-chart/area-lineChart/index.js.map +1 -1
- package/dist/components/dynamic-layout-wrapper/dynamic-layout-wrapper/index.esm.js +107 -1
- package/dist/components/dynamic-layout-wrapper/dynamic-layout-wrapper/index.esm.js.map +1 -1
- package/dist/components/dynamic-layout-wrapper/dynamic-layout-wrapper/index.js +7 -4
- package/dist/components/dynamic-layout-wrapper/dynamic-layout-wrapper/index.js.map +1 -1
- package/dist/components/examples/FlexibleReduxExample/index.esm.js +154 -0
- package/dist/components/examples/FlexibleReduxExample/index.esm.js.map +1 -0
- package/dist/components/examples/FlexibleReduxExample/index.js +19 -0
- package/dist/components/examples/FlexibleReduxExample/index.js.map +1 -0
- package/dist/components/filter/filter/index.esm.js +2 -2
- package/dist/components/filter/filter/index.js +7 -7
- package/dist/components/footer/index.esm.js +71 -0
- package/dist/components/footer/index.esm.js.map +1 -0
- package/dist/components/footer/index.js +7 -0
- package/dist/components/footer/index.js.map +1 -0
- package/dist/components/form-control/form-builder/element-controller/index.esm.js +96 -0
- package/dist/components/form-control/form-builder/element-controller/index.esm.js.map +1 -0
- package/dist/components/form-control/form-builder/element-controller/index.js +7 -0
- package/dist/components/form-control/form-builder/element-controller/index.js.map +1 -0
- package/dist/components/form-control/form-builder/form-builder-element/table/index.esm.js +1 -1
- package/dist/components/form-control/form-builder/form-builder-element/table/index.js +4 -4
- package/dist/components/form-control/form-builder/form-builder-element/table/index.js.map +1 -1
- package/dist/components/form-control/form-parser/data/index.esm.js +80 -0
- package/dist/components/form-control/form-parser/data/index.esm.js.map +1 -0
- package/dist/components/form-control/form-parser/data/index.js +2 -0
- package/dist/components/form-control/form-parser/data/index.js.map +1 -0
- package/dist/components/grid/custom-grid-card/custom-grid-card/index.esm.js +1 -1
- package/dist/components/grid/custom-grid-card/custom-grid-card/index.js +4 -4
- package/dist/components/header/components/notification-menu/notification-menu/index.esm.js +1 -1
- package/dist/components/header/components/notification-menu/notification-menu/index.js +28 -28
- package/dist/components/header/header/index.esm.js +1 -1
- package/dist/components/header/header/index.js +11 -11
- package/dist/components/header/header-enhanced/index.esm.js +405 -0
- package/dist/components/header/header-enhanced/index.esm.js.map +1 -0
- package/dist/components/header/header-enhanced/index.js +33 -0
- package/dist/components/header/header-enhanced/index.js.map +1 -0
- package/dist/components/header/redux/reducer/index.esm.js +6 -1
- package/dist/components/header/redux/reducer/index.esm.js.map +1 -1
- package/dist/components/header/redux/reducer/index.js +1 -1
- package/dist/components/header/redux/reducer/index.js.map +1 -1
- package/dist/components/header copy/index.esm.js +131 -0
- package/dist/components/header copy/index.esm.js.map +1 -0
- package/dist/components/header copy/index.js +11 -0
- package/dist/components/header copy/index.js.map +1 -0
- package/dist/components/icons/coupon/index.esm.js +29 -0
- package/dist/components/icons/coupon/index.esm.js.map +1 -0
- package/dist/components/icons/coupon/index.js +7 -0
- package/dist/components/icons/coupon/index.js.map +1 -0
- package/dist/components/icons/settings-fallback/index.esm.js +1 -1
- package/dist/components/icons/settings-fallback/index.js +2 -2
- package/dist/components/icons/settings-fallback/index.js.map +1 -1
- package/dist/components/icons/sort-arrow-icon/index.esm.js +4 -4
- package/dist/components/icons/sort-arrow-icon/index.esm.js.map +1 -1
- package/dist/components/icons/sort-arrow-icon/index.js +1 -1
- package/dist/components/icons/sort-arrow-icon/index.js.map +1 -1
- package/dist/components/index.d.ts +112 -277
- package/dist/components/index.esm.js +444 -603
- 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/index.esm.js +400 -0
- package/dist/components/inventory-reports-title-bar/component/reportFilter/index.esm.js.map +1 -0
- package/dist/components/inventory-reports-title-bar/component/reportFilter/index.js +41 -0
- package/dist/components/inventory-reports-title-bar/component/reportFilter/index.js.map +1 -0
- package/dist/components/inventory-reports-title-bar/redux/reducer/index.esm.js +2 -0
- 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/inventory-reports-title-bar/report-buttons/report-buttons/index.esm.js.map +1 -1
- package/dist/components/inventory-reports-title-bar/report-buttons/report-buttons/index.js.map +1 -1
- package/dist/components/listing/listing/index.esm.js +5 -5
- package/dist/components/listing/listing/index.esm.js.map +1 -1
- package/dist/components/listing/listing/index.js +5 -5
- package/dist/components/listing/listing/index.js.map +1 -1
- package/dist/components/material-editable-table/material-editable-table/index.esm.js +1 -1
- package/dist/components/material-editable-table/material-editable-table/index.js +2 -2
- package/dist/components/material-table/material-table/index.esm.js +4 -3
- package/dist/components/material-table/material-table/index.esm.js.map +1 -1
- package/dist/components/material-table/material-table/index.js +5 -5
- package/dist/components/material-table/material-table/index.js.map +1 -1
- package/dist/components/parties-modal/parties-modal/index.esm.js +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/protected-route/index.esm.js +20 -0
- package/dist/components/protected-route/index.esm.js.map +1 -1
- package/dist/components/protected-route/index.js +2 -2
- package/dist/components/protected-route/index.js.map +1 -1
- package/dist/components/reports-title-bar/redux/reducer/index.esm.js +2 -0
- package/dist/components/reports-title-bar/redux/reducer/index.esm.js.map +1 -1
- package/dist/components/reports-title-bar/redux/reducer/index.js +1 -1
- package/dist/components/reports-title-bar/redux/reducer/index.js.map +1 -1
- package/dist/components/reports-title-bar/reports-title-bar/index.esm.js +1 -1
- package/dist/components/reports-title-bar/reports-title-bar/index.js +8 -8
- package/dist/components/rfq-response/item-response-details/index.esm.js +1 -1
- package/dist/components/rfq-response/item-response-details/index.js +1 -1
- package/dist/components/rfq-response/item-response-details/index.js.map +1 -1
- package/dist/components/schedule-report/schedule-report/index.esm.js +2 -2
- package/dist/components/schedule-report/schedule-report/index.js +5 -5
- package/dist/components/schedule-report/schedule-report/index.js.map +1 -1
- package/dist/components/schedule-report/utils/common/index.esm.js +1 -1
- package/dist/components/share-modal/redux/reducer/index.esm.js +2 -0
- package/dist/components/share-modal/redux/reducer/index.esm.js.map +1 -1
- package/dist/components/share-modal/redux/reducer/index.js +1 -1
- package/dist/components/share-modal/redux/reducer/index.js.map +1 -1
- package/dist/components/share-modal/share-modal-enhanced/index.esm.js +287 -0
- package/dist/components/share-modal/share-modal-enhanced/index.esm.js.map +1 -0
- package/dist/components/share-modal/share-modal-enhanced/index.js +24 -0
- package/dist/components/share-modal/share-modal-enhanced/index.js.map +1 -0
- package/dist/components/sidebar/sidebar/index.esm.js +2 -2
- package/dist/components/sidebar/sidebar/index.js +9 -9
- package/dist/components/upload-excel/upload-excel/index.esm.js +1 -1
- package/dist/components/upload-excel/upload-excel/index.js +5 -5
- package/dist/constants/index.d.ts +15 -15
- package/dist/constants/index.esm.js +104 -10
- package/dist/constants/index.esm.js.map +1 -1
- package/dist/constants/index.js +1 -1
- package/dist/constants/pathnames/pathname.manufacturing/index.esm.js +6 -0
- package/dist/constants/pathnames/pathname.manufacturing/index.esm.js.map +1 -1
- package/dist/constants/pathnames/pathname.manufacturing/index.js +1 -1
- package/dist/constants/pathnames/pathname.manufacturing/index.js.map +1 -1
- package/dist/constants/pathnames/pathname.rental/index.esm.js +12 -1
- package/dist/constants/pathnames/pathname.rental/index.esm.js.map +1 -1
- package/dist/constants/pathnames/pathname.rental/index.js +1 -1
- package/dist/constants/pathnames/pathname.rental/index.js.map +1 -1
- package/dist/contexts/AuthContext/index.esm.js +1 -1
- package/dist/contexts/AuthContext/index.esm.js.map +1 -1
- package/dist/contexts/AuthContext/index.js +1 -1
- package/dist/contexts/AuthContext/index.js.map +1 -1
- package/dist/contexts/index.d.ts +5 -16
- package/dist/contexts/index.esm.js +2 -2
- package/dist/contexts/index.js +1 -1
- package/dist/hooks/apiHelper/index.esm.js +1 -1
- package/dist/hooks/apiHelper/index.esm.js.map +1 -1
- package/dist/hooks/apiHelper/index.js +1 -1
- package/dist/hooks/apiHelper/index.js.map +1 -1
- package/dist/hooks/index.d.ts +16 -26
- package/dist/hooks/index.esm.js +25 -18
- package/dist/hooks/index.esm.js.map +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-material-calculations/index.esm.js +0 -8
- package/dist/hooks/use-material-calculations/index.esm.js.map +1 -1
- package/dist/hooks/use-material-calculations/index.js +1 -1
- package/dist/hooks/use-material-calculations/index.js.map +1 -1
- package/dist/hooks/useDataFetcher/index.esm.js +3 -2
- package/dist/hooks/useDataFetcher/index.esm.js.map +1 -1
- package/dist/hooks/useDataFetcher/index.js +1 -1
- package/dist/hooks/useDataFetcher/index.js.map +1 -1
- package/dist/hooks/useLanguageFallback/index.esm.js +0 -5
- package/dist/hooks/useLanguageFallback/index.esm.js.map +1 -1
- package/dist/hooks/useLanguageFallback/index.js +1 -1
- package/dist/hooks/useLanguageFallback/index.js.map +1 -1
- package/dist/hooks/useLocationFilter/index.esm.js +0 -5
- package/dist/hooks/useLocationFilter/index.esm.js.map +1 -1
- package/dist/hooks/useLocationFilter/index.js +1 -1
- package/dist/hooks/useLocationFilter/index.js.map +1 -1
- package/dist/hooks/useReduxIntegration/index.esm.js +39 -0
- package/dist/hooks/useReduxIntegration/index.esm.js.map +1 -0
- package/dist/hooks/useReduxIntegration/index.js +2 -0
- package/dist/hooks/useReduxIntegration/index.js.map +1 -0
- package/dist/icons/index.d.ts +177 -94
- package/dist/icons/index.esm.js +80 -76
- package/dist/icons/index.esm.js.map +1 -1
- package/dist/icons/index.js +1 -1
- package/dist/index.esm.js +640 -747
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/layout/index.d.ts +2 -3
- package/dist/layout/index.esm.js +1 -1
- package/dist/layout/index.js +1 -1
- 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/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/material/Avatar/avatarClasses/index.esm.js +2 -3
- 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/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/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/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/Tabs/Tabs/index.esm.js +1 -1
- package/dist/node_modules/@mui/material/Tabs/Tabs/index.js +1 -1
- 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/Container/createContainer/index.esm.js +1 -1
- package/dist/node_modules/@mui/system/esm/Container/createContainer/index.js +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 +1 -5
- 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/node_modules/notistack/notistack.esm/index.esm.js +0 -3
- package/dist/node_modules/notistack/notistack.esm/index.esm.js.map +1 -1
- package/dist/node_modules/notistack/notistack.esm/index.js +1 -1
- package/dist/node_modules/notistack/notistack.esm/index.js.map +1 -1
- package/dist/node_modules/prop-types/checkPropTypes/index.esm.js +49 -56
- package/dist/node_modules/prop-types/checkPropTypes/index.esm.js.map +1 -1
- package/dist/node_modules/prop-types/checkPropTypes/index.js +1 -1
- package/dist/node_modules/prop-types/checkPropTypes/index.js.map +1 -1
- package/dist/node_modules/prop-types/factoryWithTypeCheckers/index.esm.js +2 -2
- package/dist/node_modules/prop-types/factoryWithTypeCheckers/index.esm.js.map +1 -1
- package/dist/node_modules/prop-types/factoryWithTypeCheckers/index.js +1 -1
- package/dist/node_modules/prop-types/factoryWithTypeCheckers/index.js.map +1 -1
- package/dist/redux/hooks/index.esm.js +1 -1
- package/dist/redux/index.d.ts +8 -13
- package/dist/redux/index.esm.js +14 -30
- package/dist/redux/index.esm.js.map +1 -1
- package/dist/redux/index.js +1 -1
- package/dist/redux/slices/inventoryReportsTitleBarSlice/index.esm.js +0 -6
- package/dist/redux/slices/inventoryReportsTitleBarSlice/index.esm.js.map +1 -1
- package/dist/redux/slices/inventoryReportsTitleBarSlice/index.js +1 -1
- package/dist/redux/slices/inventoryReportsTitleBarSlice/index.js.map +1 -1
- package/dist/redux/slices/reportsTitleBarSlice/index.esm.js +1 -7
- package/dist/redux/slices/reportsTitleBarSlice/index.esm.js.map +1 -1
- package/dist/redux/slices/reportsTitleBarSlice/index.js +1 -1
- package/dist/redux/slices/reportsTitleBarSlice/index.js.map +1 -1
- package/dist/redux/slices/shareSlice/index.esm.js +1 -3
- package/dist/redux/slices/shareSlice/index.esm.js.map +1 -1
- package/dist/redux/slices/shareSlice/index.js +1 -1
- package/dist/redux/slices/shareSlice/index.js.map +1 -1
- package/dist/src/@types/index.d.ts +5 -0
- package/dist/src/assets/common-component/index.d.ts +1 -0
- package/dist/src/assets/dynamic-svg-icon/index.d.ts +2 -0
- package/dist/src/assets/index.d.ts +5 -0
- package/dist/src/assets/view-modal/index.d.ts +12 -0
- package/dist/src/components/Dashboard/index.d.ts +4 -0
- package/dist/src/components/accordion/index.d.ts +2 -0
- package/dist/src/components/action-bar/index.d.ts +2 -0
- package/dist/src/components/activity-tag/index.d.ts +2 -0
- package/dist/src/components/activityArea/index.d.ts +2 -0
- package/dist/src/components/activityLog/index.d.ts +2 -0
- package/dist/src/components/alert/index.d.ts +2 -0
- package/dist/src/components/appbar/index.d.ts +2 -0
- package/dist/src/components/approval-wrapper/index.d.ts +2 -0
- package/dist/src/components/avatar/index.d.ts +2 -0
- package/dist/src/components/board/index.d.ts +4 -0
- package/dist/src/components/bread-crumb/index.d.ts +2 -0
- package/dist/src/components/button/index.d.ts +2 -0
- package/dist/src/components/calculation-summary/components/index.d.ts +10 -0
- package/dist/src/components/calculation-summary/index.d.ts +3 -0
- package/dist/src/components/calendar/index.d.ts +2 -0
- package/dist/src/components/card-wrapper/index.d.ts +2 -0
- package/dist/src/components/change-user-password-modal/index.d.ts +2 -0
- package/dist/src/components/charts/bar-chart/index.d.ts +2 -0
- package/dist/src/components/charts/barChart/index.d.ts +2 -0
- package/dist/src/components/charts/barLineChart/index.d.ts +2 -0
- package/dist/src/components/charts/donut-chart/index.d.ts +2 -0
- package/dist/src/components/charts/donutChart/index.d.ts +2 -0
- package/dist/src/components/charts/groupBarChart/index.d.ts +2 -0
- package/dist/src/components/charts/index.d.ts +12 -0
- package/dist/src/components/charts/line-chart/area-lineChart.d.ts +2 -2
- package/dist/src/components/charts/line-chart/index.d.ts +6 -0
- package/dist/src/components/charts/multiLineChart/index.d.ts +2 -0
- package/dist/src/components/checkbox/index.d.ts +2 -0
- package/dist/src/components/chip/index.d.ts +2 -0
- package/dist/src/components/chip-generator/index.d.ts +2 -0
- package/dist/src/components/color-picker-input/index.d.ts +2 -0
- package/dist/src/components/confirm-modal/index.d.ts +3 -0
- package/dist/src/components/country-select/index.d.ts +2 -0
- package/dist/src/components/custom-snackbar/index.d.ts +2 -0
- package/dist/src/components/custom-toggle-switch/index.d.ts +2 -0
- package/dist/src/components/date-picker/index.d.ts +2 -0
- package/dist/src/components/date-range-picker/index.d.ts +2 -0
- package/dist/src/components/date-time-picker/index.d.ts +2 -0
- package/dist/src/components/dropdown-button/index.d.ts +2 -0
- package/dist/src/components/dynamic-layout-wrapper/index.d.ts +2 -0
- package/dist/src/components/editor/index.d.ts +2 -0
- package/dist/src/components/entity-view-wrapper/index.d.ts +2 -0
- package/dist/src/components/examples/index.d.ts +2 -0
- package/dist/src/components/expandable-summary-wrapper/index.d.ts +2 -0
- package/dist/src/components/fallback/index.d.ts +2 -0
- package/dist/src/components/filter/components/index.d.ts +16 -0
- package/dist/src/components/filter/index.d.ts +4 -0
- package/dist/src/components/footer/index.d.ts +2 -0
- package/dist/src/components/form-control/form-builder/form-builder-element/index.d.ts +25 -5
- package/dist/src/components/form-control/form-builder/form-builder-element/location-add-modal/index.d.ts +2 -0
- package/dist/src/components/form-control/form-builder/index.d.ts +3 -0
- package/dist/src/components/form-control/form-parser/index.d.ts +8 -0
- package/dist/src/components/form-control/index.d.ts +2 -2
- package/dist/src/components/form-header/index.d.ts +2 -0
- package/dist/src/components/gantt/index.d.ts +2 -0
- package/dist/src/components/grid/custom-grid-card/index.d.ts +2 -0
- package/dist/src/components/grid/grid-card/index.d.ts +2 -0
- package/dist/src/components/grid/grid-wrapper/index.d.ts +2 -0
- package/dist/src/components/grid/index.d.ts +3 -0
- package/dist/src/components/grid-fallback/index.d.ts +2 -0
- package/dist/src/components/header/components/index.d.ts +1 -0
- package/dist/src/components/header/components/notification-menu/index.d.ts +2 -0
- package/dist/src/components/header/index.d.ts +6 -0
- package/dist/src/components/header/redux/index.d.ts +5 -0
- package/dist/src/components/header-card/index.d.ts +2 -0
- package/dist/src/components/hr-line/index.d.ts +2 -0
- package/dist/src/components/icons/index.d.ts +163 -80
- package/dist/src/components/icons/sort-arrow-icon.d.ts +2 -2
- package/dist/src/components/index.d.ts +106 -123
- package/dist/src/components/info-card/index.d.ts +2 -0
- package/dist/src/components/inventory-reports-title-bar/component/index.d.ts +2 -0
- package/dist/src/components/inventory-reports-title-bar/index.d.ts +5 -0
- package/dist/src/components/inventory-reports-title-bar/redux/index.d.ts +5 -0
- package/dist/src/components/inventory-reports-title-bar/report-buttons/index.d.ts +2 -0
- package/dist/src/components/label-value/index.d.ts +2 -0
- package/dist/src/components/list/index.d.ts +2 -0
- package/dist/src/components/listing/index.d.ts +2 -2
- package/dist/src/components/loaders/index.d.ts +5 -1
- package/dist/src/components/material-editable-table/components/index.d.ts +8 -0
- package/dist/src/components/material-editable-table/index.d.ts +4 -0
- package/dist/src/components/material-table/components/index.d.ts +8 -0
- package/dist/src/components/material-table/index.d.ts +4 -0
- package/dist/src/components/material-table/material-table.d.ts +1 -1
- package/dist/src/components/menu/index.d.ts +2 -0
- package/dist/src/components/modal/index.d.ts +2 -0
- package/dist/src/components/module-button/index.d.ts +2 -0
- package/dist/src/components/mulitline/index.d.ts +2 -0
- package/dist/src/components/multi-select/index.d.ts +2 -0
- package/dist/src/components/page-navigator/components/index.d.ts +10 -0
- package/dist/src/components/page-navigator/index.d.ts +3 -0
- package/dist/src/components/pagination/index.d.ts +2 -0
- package/dist/src/components/parties-modal/index.d.ts +4 -0
- package/dist/src/components/parties-modal/utils/index.d.ts +1 -0
- package/dist/src/components/phone-input/index.d.ts +2 -0
- package/dist/src/components/providers/index.d.ts +2 -1
- package/dist/src/components/quick-approval-modal/index.d.ts +2 -0
- package/dist/src/components/radio/index.d.ts +2 -0
- package/dist/src/components/reports/dynamic-report/index.d.ts +3 -0
- package/dist/src/components/reports/index.d.ts +1 -0
- package/dist/src/components/reports-title-bar/index.d.ts +4 -0
- package/dist/src/components/reports-title-bar/redux/index.d.ts +5 -0
- package/dist/src/components/reports-title-bar/report-buttons/index.d.ts +2 -0
- package/dist/src/components/reset-password-modal/index.d.ts +2 -0
- package/dist/src/components/rfq-response/index.d.ts +2 -0
- package/dist/src/components/save-filter-modal/index.d.ts +2 -0
- package/dist/src/components/schedule-report/index.d.ts +6 -0
- package/dist/src/components/schedule-report/utils/index.d.ts +3 -0
- package/dist/src/components/search-bar/index.d.ts +2 -0
- package/dist/src/components/select/controller/index.d.ts +4 -0
- package/dist/src/components/select/index.d.ts +5 -0
- package/dist/src/components/share-modal/index.d.ts +5 -0
- package/dist/src/components/share-modal/redux/index.d.ts +5 -0
- package/dist/src/components/sidebar/index.d.ts +2 -0
- package/dist/src/components/snackbar/index.d.ts +2 -0
- package/dist/src/components/sub-header-doc/index.d.ts +2 -0
- package/dist/src/components/switches/index.d.ts +2 -0
- package/dist/src/components/tab-bar-ui/index.d.ts +2 -0
- package/dist/src/components/tabs/index.d.ts +2 -0
- package/dist/src/components/text-area/index.d.ts +2 -0
- package/dist/src/components/text-field/index.d.ts +2 -0
- package/dist/src/components/time-picker/index.d.ts +2 -0
- package/dist/src/components/time-range-picker/index.d.ts +2 -0
- package/dist/src/components/title-dropdown-button/index.d.ts +2 -0
- package/dist/src/components/toast/index.d.ts +2 -0
- package/dist/src/components/toggle/index.d.ts +2 -0
- package/dist/src/components/toggle-switch/index.d.ts +2 -0
- package/dist/src/components/tooltip/index.d.ts +2 -0
- package/dist/src/components/typography/index.d.ts +2 -0
- package/dist/src/components/upload/index.d.ts +4 -0
- package/dist/src/components/upload-excel/index.d.ts +4 -0
- package/dist/src/components/upload-media/index.d.ts +2 -0
- package/dist/src/components/user-dropdown/index.d.ts +2 -0
- package/dist/src/components/value-field/index.d.ts +2 -0
- package/dist/src/components/view-modal/index.d.ts +2 -0
- package/dist/src/constants/index.d.ts +5 -3
- package/dist/src/constants/lang/index.d.ts +6 -0
- package/dist/src/constants/pathnames/index.d.ts +13 -554
- package/dist/src/contexts/index.d.ts +5 -5
- package/dist/src/hooks/apiHelper.d.ts +1 -1
- package/dist/src/hooks/index.d.ts +15 -13
- package/dist/src/hooks/useDataFetcher.d.ts +2 -2
- package/dist/src/layout/fullScreen/index.d.ts +2 -0
- package/dist/src/layout/index.d.ts +2 -2
- package/dist/src/layout/sidebarScreen/index.d.ts +2 -0
- package/dist/src/redux/index.d.ts +5 -6
- package/dist/src/redux/slices/index.d.ts +8 -10
- package/dist/src/styles/index.d.ts +1 -2
- package/dist/src/theme/index.d.ts +7 -3
- package/dist/src/theme/types/index.d.ts +1 -0
- package/dist/src/utils/index.d.ts +12 -10
- package/dist/src/views/afterAuth/dashboard/index.d.ts +3 -0
- package/dist/src/views/afterAuth/dashboard/redux/index.d.ts +5 -0
- package/dist/src/views/afterAuth/index.d.ts +2 -0
- package/dist/src/views/afterAuth/page-view/index.d.ts +4 -0
- package/dist/src/views/afterAuth/page-view/redux/index.d.ts +5 -0
- package/dist/src/views/afterAuth/page-view/utils/index.d.ts +2 -0
- package/dist/src/views/beforeAuth/change-password/index.d.ts +1 -0
- package/dist/src/views/beforeAuth/components/activity-tag-data/index.d.ts +1 -0
- package/dist/src/views/beforeAuth/components/calendar-data/index.d.ts +1 -0
- package/dist/src/views/beforeAuth/components/drive-dashboard-data/index.d.ts +1 -0
- package/dist/src/views/beforeAuth/components/gantt-data/index.d.ts +2 -0
- package/dist/src/views/beforeAuth/components/grid-data/index.d.ts +2 -0
- package/dist/src/views/beforeAuth/components/index.d.ts +13 -2
- package/dist/src/views/beforeAuth/components/kanbann-content/index.d.ts +1 -0
- package/dist/src/views/beforeAuth/components/list-content/index.d.ts +2 -0
- package/dist/src/views/beforeAuth/components/multiline-data/index.d.ts +1 -0
- package/dist/src/views/beforeAuth/components/share-modal-data/index.d.ts +1 -0
- package/dist/src/views/beforeAuth/components/shared-pages-data/index.d.ts +1 -0
- package/dist/src/views/beforeAuth/components/tabs-data/index.d.ts +1 -0
- package/dist/src/views/beforeAuth/components/user-dashboard-data/index.d.ts +1 -0
- package/dist/src/views/beforeAuth/components/user-dropdown-data/index.d.ts +1 -0
- package/dist/src/views/beforeAuth/forgot-password/index.d.ts +1 -0
- package/dist/src/views/beforeAuth/index.d.ts +6 -0
- package/dist/src/views/beforeAuth/landing/index.d.ts +2 -0
- package/dist/src/views/beforeAuth/reset-password/index.d.ts +1 -0
- package/dist/src/views/form-builder/element-edit-forms/index.d.ts +7 -0
- package/dist/src/views/form-builder/index.d.ts +7 -31
- package/dist/src/views/form-builder/redux/index.d.ts +5 -0
- package/dist/src/views/form-builder/utils/index.d.ts +1 -2
- package/dist/src/views/index.d.ts +7 -2
- package/dist/src/views/template-editor/add-template/index.d.ts +1 -0
- package/dist/src/views/template-editor/company-selection-modal/index.d.ts +1 -0
- package/dist/src/views/template-editor/components/controllers/index.d.ts +18 -0
- package/dist/src/views/template-editor/components/index.d.ts +7 -9
- package/dist/src/views/template-editor/edit-section-modal/index.d.ts +1 -0
- package/dist/src/views/template-editor/index.d.ts +10 -10
- package/dist/src/views/template-editor/template-modal/index.d.ts +3 -1
- package/dist/src/views/template-editor/template-name-modal/index.d.ts +1 -0
- package/dist/src/views/template-editor/types/index.d.ts +1 -1
- package/dist/src/views/template-editor/utils/index.d.ts +3 -3
- package/dist/style.css +70 -90
- package/dist/styles/index.esm.js +4 -89
- package/dist/styles/index.esm.js.map +1 -1
- package/dist/styles/index.js +1 -1
- package/dist/styles/themes/index/index.esm.js +78 -0
- package/dist/styles/themes/index/index.esm.js.map +1 -0
- package/dist/styles/themes/index/index.js +2 -0
- package/dist/styles/themes/index/index.js.map +1 -0
- package/dist/theme/index.d.ts +7 -5
- package/dist/theme/index.esm.js +12 -5
- package/dist/theme/index.esm.js.map +1 -1
- package/dist/theme/index.js +1 -1
- package/dist/theme/theme-impl/index.esm.js +1 -1
- package/dist/theme/typography/index.esm.js +113 -0
- package/dist/theme/typography/index.esm.js.map +1 -0
- package/dist/theme/typography/index.js +2 -0
- package/dist/theme/typography/index.js.map +1 -0
- package/dist/utils/dateFormat/index.esm.js +7 -0
- package/dist/utils/dateFormat/index.esm.js.map +1 -1
- package/dist/utils/dateFormat/index.js +1 -1
- package/dist/utils/dateFormat/index.js.map +1 -1
- package/dist/utils/i18n/index.esm.js +37 -0
- package/dist/utils/i18n/index.esm.js.map +1 -0
- package/dist/utils/i18n/index.js +2 -0
- package/dist/utils/i18n/index.js.map +1 -0
- package/dist/utils/index.d.ts +34 -35
- package/dist/utils/index.esm.js +18 -73
- package/dist/utils/index.esm.js.map +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/metaComponent/index.esm.js +27 -0
- package/dist/utils/metaComponent/index.esm.js.map +1 -0
- package/dist/utils/metaComponent/index.js +6 -0
- package/dist/utils/metaComponent/index.js.map +1 -0
- package/dist/views/404/index.esm.js +31 -0
- package/dist/views/404/index.esm.js.map +1 -0
- package/dist/views/404/index.js +6 -0
- package/dist/views/404/index.js.map +1 -0
- package/dist/views/afterAuth/dashboard/dashboard/index.esm.js +76 -0
- package/dist/views/afterAuth/dashboard/dashboard/index.esm.js.map +1 -0
- package/dist/views/afterAuth/dashboard/dashboard/index.js +8 -0
- package/dist/views/afterAuth/dashboard/dashboard/index.js.map +1 -0
- 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/page-view/page-view/index.esm.js +100 -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/change-password/change-password/index.esm.js +182 -0
- package/dist/views/beforeAuth/change-password/change-password/index.esm.js.map +1 -0
- package/dist/views/beforeAuth/change-password/change-password/index.js +17 -0
- package/dist/views/beforeAuth/change-password/change-password/index.js.map +1 -0
- package/dist/views/beforeAuth/forgot-password/forgot-password/index.esm.js +177 -0
- package/dist/views/beforeAuth/forgot-password/forgot-password/index.esm.js.map +1 -0
- package/dist/views/beforeAuth/forgot-password/forgot-password/index.js +16 -0
- package/dist/views/beforeAuth/forgot-password/forgot-password/index.js.map +1 -0
- package/dist/views/beforeAuth/landing/landing/index.esm.js +35 -0
- package/dist/views/beforeAuth/landing/landing/index.esm.js.map +1 -0
- package/dist/views/beforeAuth/landing/landing/index.js +8 -0
- package/dist/views/beforeAuth/landing/landing/index.js.map +1 -0
- package/dist/views/beforeAuth/login/index/index.esm.js +209 -0
- package/dist/views/beforeAuth/login/index/index.esm.js.map +1 -0
- package/dist/views/beforeAuth/login/index/index.js +20 -0
- package/dist/views/beforeAuth/login/index/index.js.map +1 -0
- package/dist/views/beforeAuth/reset-password/reset-password/index.esm.js +34 -0
- package/dist/views/beforeAuth/reset-password/reset-password/index.esm.js.map +1 -0
- package/dist/views/beforeAuth/reset-password/reset-password/index.js +2 -0
- package/dist/views/beforeAuth/reset-password/reset-password/index.js.map +1 -0
- package/dist/views/form-builder/custom-form/index.esm.js +2 -2
- package/dist/views/form-builder/custom-form/index.js +10 -10
- package/dist/views/form-builder/element-edit-forms/select/index.esm.js +1 -1
- package/dist/views/form-builder/element-edit-forms/select/index.js +8 -8
- 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/index.esm.js +139 -65
- package/dist/views/index.esm.js.map +1 -1
- package/dist/views/index.js +1 -1
- package/dist/views/privateRoute/index.esm.js +14 -0
- package/dist/views/privateRoute/index.esm.js.map +1 -0
- package/dist/views/privateRoute/index.js +2 -0
- package/dist/views/privateRoute/index.js.map +1 -0
- package/dist/views/template-editor/components/EditorHeader/index.esm.js +1 -1
- package/dist/views/template-editor/components/EditorHeader/index.js +3 -3
- package/dist/views/template-editor/components/EditorSection/index.esm.js +1 -1
- package/dist/views/template-editor/components/EditorSection/index.js +3 -3
- package/dist/views/template-editor/components/SectionFormatPanel/index.esm.js +1 -1
- package/dist/views/template-editor/components/SectionFormatPanel/index.js +3 -3
- package/dist/views/template-editor/components/controllers/TableControls/index.esm.js +1 -1
- package/dist/views/template-editor/components/controllers/TableControls/index.js +56 -56
- package/dist/views/template-editor/templates/index.esm.js +1 -1
- package/dist/views/template-editor/templates/index.js +3 -3
- package/dist/views/template-editor/templates/index.js.map +1 -1
- package/dist/views/template-editor/utils/default-data/index.esm.js +33 -0
- package/dist/views/template-editor/utils/default-data/index.esm.js.map +1 -0
- package/dist/views/template-editor/utils/default-data/index.js +2 -0
- package/dist/views/template-editor/utils/default-data/index.js.map +1 -0
- package/package.json +2 -2
- package/src/styles/index.ts +1 -146
- package/dist/_virtual/ArrowBack/index.esm.js +0 -5
- package/dist/_virtual/ArrowBack/index.esm.js.map +0 -1
- package/dist/_virtual/ArrowBack/index.js +0 -2
- package/dist/_virtual/ArrowBack/index.js.map +0 -1
- package/dist/_virtual/ArrowForward/index.esm.js +0 -5
- package/dist/_virtual/ArrowForward/index.esm.js.map +0 -1
- package/dist/_virtual/ArrowForward/index.js +0 -2
- package/dist/_virtual/ArrowForward/index.js.map +0 -1
- package/dist/_virtual/IndeterminateCheckBox/index.esm.js +0 -5
- package/dist/_virtual/IndeterminateCheckBox/index.esm.js.map +0 -1
- package/dist/_virtual/IndeterminateCheckBox/index.js +0 -2
- package/dist/_virtual/IndeterminateCheckBox/index.js.map +0 -1
- package/dist/_virtual/NorthEast/index.esm.js +0 -5
- package/dist/_virtual/NorthEast/index.esm.js.map +0 -1
- package/dist/_virtual/NorthEast/index.js +0 -2
- package/dist/_virtual/NorthEast/index.js.map +0 -1
- package/dist/_virtual/Visibility/index.esm.js +0 -5
- package/dist/_virtual/Visibility/index.esm.js.map +0 -1
- package/dist/_virtual/Visibility/index.js +0 -2
- package/dist/_virtual/Visibility/index.js.map +0 -1
- package/dist/components/activity-tag/activity-tag/index.esm.js +0 -154
- package/dist/components/activity-tag/activity-tag/index.esm.js.map +0 -1
- package/dist/components/activity-tag/activity-tag/index.js +0 -15
- package/dist/components/activity-tag/activity-tag/index.js.map +0 -1
- package/dist/components/activityLog/activity-log/index.esm.js +0 -104
- package/dist/components/activityLog/activity-log/index.esm.js.map +0 -1
- package/dist/components/activityLog/activity-log/index.js +0 -14
- package/dist/components/activityLog/activity-log/index.js.map +0 -1
- package/dist/components/button/button.scss/index.esm.js +0 -2
- package/dist/components/button/button.scss/index.esm.js.map +0 -1
- package/dist/components/button/button.scss/index.js +0 -2
- package/dist/components/button/button.scss/index.js.map +0 -1
- package/dist/components/charts/bar-chart/bar-chart/index.esm.js +0 -85
- package/dist/components/charts/bar-chart/bar-chart/index.esm.js.map +0 -1
- package/dist/components/charts/bar-chart/bar-chart/index.js +0 -2
- package/dist/components/charts/bar-chart/bar-chart/index.js.map +0 -1
- package/dist/components/charts/barChart/barChart/index.esm.js +0 -147
- package/dist/components/charts/barChart/barChart/index.esm.js.map +0 -1
- package/dist/components/charts/barChart/barChart/index.js +0 -2
- package/dist/components/charts/barChart/barChart/index.js.map +0 -1
- package/dist/components/charts/donut-chart/donut-chart/index.esm.js +0 -85
- package/dist/components/charts/donut-chart/donut-chart/index.esm.js.map +0 -1
- package/dist/components/charts/donut-chart/donut-chart/index.js +0 -6
- package/dist/components/charts/donut-chart/donut-chart/index.js.map +0 -1
- package/dist/components/charts/donutChart/DonutChart/index.esm.js +0 -96
- package/dist/components/charts/donutChart/DonutChart/index.esm.js.map +0 -1
- package/dist/components/charts/donutChart/DonutChart/index.js +0 -5
- package/dist/components/charts/donutChart/DonutChart/index.js.map +0 -1
- package/dist/components/charts/line-chart/area-line-chart/index.esm.js +0 -40
- package/dist/components/charts/line-chart/area-line-chart/index.esm.js.map +0 -1
- package/dist/components/charts/line-chart/area-line-chart/index.js +0 -2
- package/dist/components/charts/line-chart/area-line-chart/index.js.map +0 -1
- package/dist/components/grid/grid-card/grid-card.scss/index.esm.js +0 -2
- package/dist/components/grid/grid-card/grid-card.scss/index.esm.js.map +0 -1
- package/dist/components/grid/grid-card/grid-card.scss/index.js +0 -2
- package/dist/components/grid/grid-card/grid-card.scss/index.js.map +0 -1
- package/dist/components/list/list.scss/index.esm.js +0 -2
- package/dist/components/list/list.scss/index.esm.js.map +0 -1
- package/dist/components/list/list.scss/index.js +0 -2
- package/dist/components/list/list.scss/index.js.map +0 -1
- package/dist/node_modules/@mui/icons-material/ArrowBack/index.esm.js +0 -18
- package/dist/node_modules/@mui/icons-material/ArrowBack/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/icons-material/ArrowBack/index.js +0 -2
- package/dist/node_modules/@mui/icons-material/ArrowBack/index.js.map +0 -1
- package/dist/node_modules/@mui/icons-material/ArrowForward/index.esm.js +0 -18
- package/dist/node_modules/@mui/icons-material/ArrowForward/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/icons-material/ArrowForward/index.js +0 -2
- package/dist/node_modules/@mui/icons-material/ArrowForward/index.js.map +0 -1
- package/dist/node_modules/@mui/icons-material/IndeterminateCheckBox/index.esm.js +0 -18
- package/dist/node_modules/@mui/icons-material/IndeterminateCheckBox/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/icons-material/IndeterminateCheckBox/index.js +0 -2
- package/dist/node_modules/@mui/icons-material/IndeterminateCheckBox/index.js.map +0 -1
- package/dist/node_modules/@mui/icons-material/NorthEast/index.esm.js +0 -18
- package/dist/node_modules/@mui/icons-material/NorthEast/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/icons-material/NorthEast/index.js +0 -2
- package/dist/node_modules/@mui/icons-material/NorthEast/index.js.map +0 -1
- package/dist/node_modules/@mui/icons-material/Visibility/index.esm.js +0 -18
- package/dist/node_modules/@mui/icons-material/Visibility/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/icons-material/Visibility/index.js +0 -2
- package/dist/node_modules/@mui/icons-material/Visibility/index.js.map +0 -1
- package/dist/node_modules/@mui/lab/Timeline/Timeline/index.esm.js +0 -95
- package/dist/node_modules/@mui/lab/Timeline/Timeline/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/lab/Timeline/Timeline/index.js +0 -3
- package/dist/node_modules/@mui/lab/Timeline/Timeline/index.js.map +0 -1
- package/dist/node_modules/@mui/lab/Timeline/TimelineContext/index.esm.js +0 -10
- package/dist/node_modules/@mui/lab/Timeline/TimelineContext/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/lab/Timeline/TimelineContext/index.js +0 -2
- package/dist/node_modules/@mui/lab/Timeline/TimelineContext/index.js.map +0 -1
- package/dist/node_modules/@mui/lab/Timeline/timelineClasses/index.esm.js +0 -10
- package/dist/node_modules/@mui/lab/Timeline/timelineClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/lab/Timeline/timelineClasses/index.js +0 -2
- package/dist/node_modules/@mui/lab/Timeline/timelineClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineConnector/TimelineConnector/index.esm.js +0 -76
- package/dist/node_modules/@mui/lab/TimelineConnector/TimelineConnector/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineConnector/TimelineConnector/index.js +0 -3
- package/dist/node_modules/@mui/lab/TimelineConnector/TimelineConnector/index.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineConnector/timelineConnectorClasses/index.esm.js +0 -10
- package/dist/node_modules/@mui/lab/TimelineConnector/timelineConnectorClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineConnector/timelineConnectorClasses/index.js +0 -2
- package/dist/node_modules/@mui/lab/TimelineConnector/timelineConnectorClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineContent/TimelineContent/index.esm.js +0 -91
- package/dist/node_modules/@mui/lab/TimelineContent/TimelineContent/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineContent/TimelineContent/index.js +0 -3
- package/dist/node_modules/@mui/lab/TimelineContent/TimelineContent/index.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineContent/timelineContentClasses/index.esm.js +0 -11
- package/dist/node_modules/@mui/lab/TimelineContent/timelineContentClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineContent/timelineContentClasses/index.js +0 -2
- package/dist/node_modules/@mui/lab/TimelineContent/timelineContentClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineDot/TimelineDot/index.esm.js +0 -118
- package/dist/node_modules/@mui/lab/TimelineDot/TimelineDot/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineDot/TimelineDot/index.js +0 -3
- package/dist/node_modules/@mui/lab/TimelineDot/TimelineDot/index.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineDot/timelineDotClasses/index.esm.js +0 -10
- package/dist/node_modules/@mui/lab/TimelineDot/timelineDotClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineDot/timelineDotClasses/index.js +0 -2
- package/dist/node_modules/@mui/lab/TimelineDot/timelineDotClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.esm.js +0 -128
- package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.js +0 -3
- package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineItem/timelineItemClasses/index.esm.js +0 -10
- package/dist/node_modules/@mui/lab/TimelineItem/timelineItemClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineItem/timelineItemClasses/index.js +0 -2
- package/dist/node_modules/@mui/lab/TimelineItem/timelineItemClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineOppositeContent/timelineOppositeContentClasses/index.esm.js +0 -6
- package/dist/node_modules/@mui/lab/TimelineOppositeContent/timelineOppositeContentClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineOppositeContent/timelineOppositeContentClasses/index.js +0 -2
- package/dist/node_modules/@mui/lab/TimelineOppositeContent/timelineOppositeContentClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineSeparator/TimelineSeparator/index.esm.js +0 -73
- package/dist/node_modules/@mui/lab/TimelineSeparator/TimelineSeparator/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineSeparator/TimelineSeparator/index.js +0 -3
- package/dist/node_modules/@mui/lab/TimelineSeparator/TimelineSeparator/index.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineSeparator/timelineSeparatorClasses/index.esm.js +0 -10
- package/dist/node_modules/@mui/lab/TimelineSeparator/timelineSeparatorClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/lab/TimelineSeparator/timelineSeparatorClasses/index.js +0 -2
- package/dist/node_modules/@mui/lab/TimelineSeparator/timelineSeparatorClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/lab/internal/convertTimelinePositionToClass/index.esm.js +0 -8
- package/dist/node_modules/@mui/lab/internal/convertTimelinePositionToClass/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/lab/internal/convertTimelinePositionToClass/index.js +0 -2
- package/dist/node_modules/@mui/lab/internal/convertTimelinePositionToClass/index.js.map +0 -1
- package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.esm.js +0 -95
- package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.js +0 -3
- package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.js.map +0 -1
- package/dist/node_modules/@mui/material/AccordionActions/accordionActionsClasses/index.esm.js +0 -10
- package/dist/node_modules/@mui/material/AccordionActions/accordionActionsClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/AccordionActions/accordionActionsClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/AccordionActions/accordionActionsClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.esm.js +0 -201
- package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.js +0 -3
- package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.js.map +0 -1
- package/dist/node_modules/@mui/material/AvatarGroup/avatarGroupClasses/index.esm.js +0 -11
- package/dist/node_modules/@mui/material/AvatarGroup/avatarGroupClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/AvatarGroup/avatarGroupClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/AvatarGroup/avatarGroupClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.esm.js +0 -125
- package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.js +0 -4
- package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.js.map +0 -1
- package/dist/node_modules/@mui/material/BottomNavigation/bottomNavigationClasses/index.esm.js +0 -10
- package/dist/node_modules/@mui/material/BottomNavigation/bottomNavigationClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/BottomNavigation/bottomNavigationClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/BottomNavigation/bottomNavigationClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.esm.js +0 -170
- package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.js +0 -3
- package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.js.map +0 -1
- package/dist/node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses/index.esm.js +0 -11
- package/dist/node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.esm.js +0 -120
- package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.js +0 -3
- package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.js.map +0 -1
- package/dist/node_modules/@mui/material/CardActionArea/cardActionAreaClasses/index.esm.js +0 -11
- package/dist/node_modules/@mui/material/CardActionArea/cardActionAreaClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/CardActionArea/cardActionAreaClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/CardActionArea/cardActionAreaClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/CardActions/CardActions/index.esm.js +0 -92
- package/dist/node_modules/@mui/material/CardActions/CardActions/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/CardActions/CardActions/index.js +0 -3
- package/dist/node_modules/@mui/material/CardActions/CardActions/index.js.map +0 -1
- package/dist/node_modules/@mui/material/CardActions/cardActionsClasses/index.esm.js +0 -10
- package/dist/node_modules/@mui/material/CardActions/cardActionsClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/CardActions/cardActionsClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/CardActions/cardActionsClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.esm.js +0 -196
- package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.js +0 -2
- package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.js.map +0 -1
- package/dist/node_modules/@mui/material/CardHeader/cardHeaderClasses/index.esm.js +0 -11
- package/dist/node_modules/@mui/material/CardHeader/cardHeaderClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/CardHeader/cardHeaderClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/CardHeader/cardHeaderClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.esm.js +0 -76
- package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.js +0 -3
- package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.js.map +0 -1
- package/dist/node_modules/@mui/material/DialogContentText/dialogContentTextClasses/index.esm.js +0 -10
- package/dist/node_modules/@mui/material/DialogContentText/dialogContentTextClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/DialogContentText/dialogContentTextClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/DialogContentText/dialogContentTextClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/Fab/Fab/index.esm.js +0 -231
- package/dist/node_modules/@mui/material/Fab/Fab/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/Fab/Fab/index.js +0 -3
- package/dist/node_modules/@mui/material/Fab/Fab/index.js.map +0 -1
- package/dist/node_modules/@mui/material/Fab/fabClasses/index.esm.js +0 -11
- package/dist/node_modules/@mui/material/Fab/fabClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/Fab/fabClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/Fab/fabClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/Hidden/Hidden/index.esm.js +0 -135
- package/dist/node_modules/@mui/material/Hidden/Hidden/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/Hidden/Hidden/index.js +0 -2
- package/dist/node_modules/@mui/material/Hidden/Hidden/index.js.map +0 -1
- package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.esm.js +0 -176
- package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.js +0 -3
- package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.js.map +0 -1
- package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.esm.js +0 -119
- package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.js +0 -2
- package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.js.map +0 -1
- package/dist/node_modules/@mui/material/Hidden/hiddenCssClasses/index.esm.js +0 -10
- package/dist/node_modules/@mui/material/Hidden/hiddenCssClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/Hidden/hiddenCssClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/Hidden/hiddenCssClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/Hidden/withWidth/index.esm.js +0 -92
- package/dist/node_modules/@mui/material/Hidden/withWidth/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/Hidden/withWidth/index.js +0 -2
- package/dist/node_modules/@mui/material/Hidden/withWidth/index.js.map +0 -1
- package/dist/node_modules/@mui/material/ImageList/ImageList/index.esm.js +0 -156
- package/dist/node_modules/@mui/material/ImageList/ImageList/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/ImageList/ImageList/index.js +0 -3
- package/dist/node_modules/@mui/material/ImageList/ImageList/index.js.map +0 -1
- package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.esm.js +0 -10
- package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.js +0 -2
- package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.js.map +0 -1
- package/dist/node_modules/@mui/material/ImageList/imageListClasses/index.esm.js +0 -10
- package/dist/node_modules/@mui/material/ImageList/imageListClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/ImageList/imageListClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/ImageList/imageListClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.esm.js +0 -173
- package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.js +0 -3
- package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.js.map +0 -1
- package/dist/node_modules/@mui/material/ImageListItem/imageListItemClasses/index.esm.js +0 -11
- package/dist/node_modules/@mui/material/ImageListItem/imageListItemClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/ImageListItem/imageListItemClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/ImageListItem/imageListItemClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.esm.js +0 -222
- package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.js +0 -3
- package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.js.map +0 -1
- package/dist/node_modules/@mui/material/ImageListItemBar/imageListItemBarClasses/index.esm.js +0 -10
- package/dist/node_modules/@mui/material/ImageListItemBar/imageListItemBarClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/ImageListItemBar/imageListItemBarClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/ImageListItemBar/imageListItemBarClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.esm.js +0 -216
- package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.js +0 -3
- package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.js.map +0 -1
- package/dist/node_modules/@mui/material/MobileStepper/mobileStepperClasses/index.esm.js +0 -10
- package/dist/node_modules/@mui/material/MobileStepper/mobileStepperClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/MobileStepper/mobileStepperClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/MobileStepper/mobileStepperClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.esm.js +0 -126
- package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.js +0 -3
- package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.js.map +0 -1
- package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.esm.js +0 -55
- package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.js +0 -2
- package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.js.map +0 -1
- package/dist/node_modules/@mui/material/Rating/Rating/index.esm.js +0 -638
- package/dist/node_modules/@mui/material/Rating/Rating/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/Rating/Rating/index.js +0 -7
- package/dist/node_modules/@mui/material/Rating/Rating/index.js.map +0 -1
- package/dist/node_modules/@mui/material/Rating/ratingClasses/index.esm.js +0 -11
- package/dist/node_modules/@mui/material/Rating/ratingClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/Rating/ratingClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/Rating/ratingClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.esm.js +0 -105
- package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.js +0 -3
- package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.js.map +0 -1
- package/dist/node_modules/@mui/material/ScopedCssBaseline/scopedCssBaselineClasses/index.esm.js +0 -10
- package/dist/node_modules/@mui/material/ScopedCssBaseline/scopedCssBaselineClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/ScopedCssBaseline/scopedCssBaselineClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/ScopedCssBaseline/scopedCssBaselineClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.esm.js +0 -453
- package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.js +0 -4
- package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.js.map +0 -1
- package/dist/node_modules/@mui/material/SpeedDial/speedDialClasses/index.esm.js +0 -11
- package/dist/node_modules/@mui/material/SpeedDial/speedDialClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/SpeedDial/speedDialClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/SpeedDial/speedDialClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.esm.js +0 -245
- package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.js +0 -2
- package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.js.map +0 -1
- package/dist/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses/index.esm.js +0 -11
- package/dist/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.esm.js +0 -137
- package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.js +0 -4
- package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.js.map +0 -1
- package/dist/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses/index.esm.js +0 -11
- package/dist/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/Step/Step/index.esm.js +0 -169
- package/dist/node_modules/@mui/material/Step/Step/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/Step/Step/index.js +0 -3
- package/dist/node_modules/@mui/material/Step/Step/index.js.map +0 -1
- package/dist/node_modules/@mui/material/Step/StepContext/index.esm.js +0 -10
- package/dist/node_modules/@mui/material/Step/StepContext/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/Step/StepContext/index.js +0 -2
- package/dist/node_modules/@mui/material/Step/StepContext/index.js.map +0 -1
- package/dist/node_modules/@mui/material/Step/stepClasses/index.esm.js +0 -10
- package/dist/node_modules/@mui/material/Step/stepClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/Step/stepClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/Step/stepClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/StepButton/StepButton/index.esm.js +0 -132
- package/dist/node_modules/@mui/material/StepButton/StepButton/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/StepButton/StepButton/index.js +0 -3
- package/dist/node_modules/@mui/material/StepButton/StepButton/index.js.map +0 -1
- package/dist/node_modules/@mui/material/StepButton/stepButtonClasses/index.esm.js +0 -11
- package/dist/node_modules/@mui/material/StepButton/stepButtonClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/StepButton/stepButtonClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/StepButton/stepButtonClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.esm.js +0 -136
- package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.js +0 -3
- package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.js.map +0 -1
- package/dist/node_modules/@mui/material/StepConnector/stepConnectorClasses/index.esm.js +0 -10
- package/dist/node_modules/@mui/material/StepConnector/stepConnectorClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/StepConnector/stepConnectorClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/StepConnector/stepConnectorClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/StepContent/StepContent/index.esm.js +0 -152
- package/dist/node_modules/@mui/material/StepContent/StepContent/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/StepContent/StepContent/index.js +0 -2
- package/dist/node_modules/@mui/material/StepContent/StepContent/index.js.map +0 -1
- package/dist/node_modules/@mui/material/StepContent/stepContentClasses/index.esm.js +0 -10
- package/dist/node_modules/@mui/material/StepContent/stepContentClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/StepContent/stepContentClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/StepContent/stepContentClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.esm.js +0 -161
- package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.js +0 -2
- package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.js.map +0 -1
- package/dist/node_modules/@mui/material/StepIcon/stepIconClasses/index.esm.js +0 -11
- package/dist/node_modules/@mui/material/StepIcon/stepIconClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/StepIcon/stepIconClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/StepIcon/stepIconClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.esm.js +0 -239
- package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.js +0 -3
- package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.js.map +0 -1
- package/dist/node_modules/@mui/material/StepLabel/stepLabelClasses/index.esm.js +0 -11
- package/dist/node_modules/@mui/material/StepLabel/stepLabelClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/StepLabel/stepLabelClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/StepLabel/stepLabelClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/Stepper/Stepper/index.esm.js +0 -155
- package/dist/node_modules/@mui/material/Stepper/Stepper/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/Stepper/Stepper/index.js +0 -3
- package/dist/node_modules/@mui/material/Stepper/Stepper/index.js.map +0 -1
- package/dist/node_modules/@mui/material/Stepper/StepperContext/index.esm.js +0 -10
- package/dist/node_modules/@mui/material/Stepper/StepperContext/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/Stepper/StepperContext/index.js +0 -2
- package/dist/node_modules/@mui/material/Stepper/StepperContext/index.js.map +0 -1
- package/dist/node_modules/@mui/material/Stepper/stepperClasses/index.esm.js +0 -10
- package/dist/node_modules/@mui/material/Stepper/stepperClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/Stepper/stepperClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/Stepper/stepperClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.esm.js +0 -82
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.js +0 -3
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.js.map +0 -1
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.esm.js +0 -538
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.js +0 -2
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.js.map +0 -1
- package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.esm.js +0 -443
- package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.js +0 -3
- package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.js.map +0 -1
- package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.esm.js +0 -179
- package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.js +0 -3
- package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.js.map +0 -1
- package/dist/node_modules/@mui/material/TablePagination/tablePaginationClasses/index.esm.js +0 -11
- package/dist/node_modules/@mui/material/TablePagination/tablePaginationClasses/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/TablePagination/tablePaginationClasses/index.js +0 -2
- package/dist/node_modules/@mui/material/TablePagination/tablePaginationClasses/index.js.map +0 -1
- package/dist/node_modules/@mui/material/Zoom/Zoom/index.esm.js +0 -196
- package/dist/node_modules/@mui/material/Zoom/Zoom/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/Zoom/Zoom/index.js +0 -3
- package/dist/node_modules/@mui/material/Zoom/Zoom/index.js.map +0 -1
- package/dist/node_modules/@mui/material/internal/svg-icons/Add/index.esm.js +0 -9
- package/dist/node_modules/@mui/material/internal/svg-icons/Add/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/internal/svg-icons/Add/index.js +0 -2
- package/dist/node_modules/@mui/material/internal/svg-icons/Add/index.js.map +0 -1
- package/dist/node_modules/@mui/material/internal/svg-icons/CheckCircle/index.esm.js +0 -9
- package/dist/node_modules/@mui/material/internal/svg-icons/CheckCircle/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/internal/svg-icons/CheckCircle/index.js +0 -2
- package/dist/node_modules/@mui/material/internal/svg-icons/CheckCircle/index.js.map +0 -1
- package/dist/node_modules/@mui/material/internal/svg-icons/Star/index.esm.js +0 -9
- package/dist/node_modules/@mui/material/internal/svg-icons/Star/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/internal/svg-icons/Star/index.js +0 -2
- package/dist/node_modules/@mui/material/internal/svg-icons/Star/index.js.map +0 -1
- package/dist/node_modules/@mui/material/internal/svg-icons/StarBorder/index.esm.js +0 -9
- package/dist/node_modules/@mui/material/internal/svg-icons/StarBorder/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/internal/svg-icons/StarBorder/index.js +0 -2
- package/dist/node_modules/@mui/material/internal/svg-icons/StarBorder/index.js.map +0 -1
- package/dist/node_modules/@mui/material/internal/svg-icons/Warning/index.esm.js +0 -9
- package/dist/node_modules/@mui/material/internal/svg-icons/Warning/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/internal/svg-icons/Warning/index.js +0 -2
- package/dist/node_modules/@mui/material/internal/svg-icons/Warning/index.js.map +0 -1
- package/dist/node_modules/@mui/material/useScrollTrigger/useScrollTrigger/index.esm.js +0 -51
- package/dist/node_modules/@mui/material/useScrollTrigger/useScrollTrigger/index.esm.js.map +0 -1
- package/dist/node_modules/@mui/material/useScrollTrigger/useScrollTrigger/index.js +0 -2
- package/dist/node_modules/@mui/material/useScrollTrigger/useScrollTrigger/index.js.map +0 -1
- package/dist/node_modules/d3-shape/src/arc/index.esm.js +0 -134
- package/dist/node_modules/d3-shape/src/arc/index.esm.js.map +0 -1
- package/dist/node_modules/d3-shape/src/arc/index.js +0 -2
- package/dist/node_modules/d3-shape/src/arc/index.js.map +0 -1
- package/dist/node_modules/d3-shape/src/descending/index.esm.js +0 -7
- package/dist/node_modules/d3-shape/src/descending/index.esm.js.map +0 -1
- package/dist/node_modules/d3-shape/src/descending/index.js +0 -2
- package/dist/node_modules/d3-shape/src/descending/index.js.map +0 -1
- package/dist/node_modules/d3-shape/src/identity/index.esm.js +0 -7
- package/dist/node_modules/d3-shape/src/identity/index.esm.js.map +0 -1
- package/dist/node_modules/d3-shape/src/identity/index.js +0 -2
- package/dist/node_modules/d3-shape/src/identity/index.js.map +0 -1
- package/dist/node_modules/d3-shape/src/math/index.esm.js +0 -33
- package/dist/node_modules/d3-shape/src/math/index.esm.js.map +0 -1
- package/dist/node_modules/d3-shape/src/math/index.js +0 -2
- package/dist/node_modules/d3-shape/src/math/index.js.map +0 -1
- package/dist/node_modules/d3-shape/src/pie/index.esm.js +0 -56
- package/dist/node_modules/d3-shape/src/pie/index.esm.js.map +0 -1
- package/dist/node_modules/d3-shape/src/pie/index.js +0 -2
- package/dist/node_modules/d3-shape/src/pie/index.js.map +0 -1
- package/dist/src/views/afterAuth/accounting.d.ts +0 -4
- package/dist/src/views/afterAuth/crm.d.ts +0 -4
- package/dist/src/views/afterAuth/document.d.ts +0 -4
- package/dist/src/views/afterAuth/hrms.d.ts +0 -4
- package/dist/src/views/afterAuth/inventory.d.ts +0 -4
- package/dist/src/views/afterAuth/manufacturing.d.ts +0 -4
- package/dist/src/views/afterAuth/office.d.ts +0 -4
- package/dist/src/views/afterAuth/procurement.d.ts +0 -4
- package/dist/src/views/afterAuth/project.d.ts +0 -4
- package/dist/src/views/afterAuth/purchase.d.ts +0 -4
- package/dist/src/views/afterAuth/quotes.d.ts +0 -4
- package/dist/src/views/afterAuth/rental.d.ts +0 -4
- package/dist/src/views/afterAuth/user.d.ts +0 -4
- package/dist/src/views/beforeAuth/components/user-profile-data/user-profile-data.d.ts +0 -9
- package/dist/styles/sass/_mixins.scss/index.esm.js +0 -2
- package/dist/styles/sass/_mixins.scss/index.esm.js.map +0 -1
- package/dist/styles/sass/_mixins.scss/index.js +0 -2
- package/dist/styles/sass/_mixins.scss/index.js.map +0 -1
- package/dist/styles/sass/_variables.scss/index.esm.js +0 -2
- package/dist/styles/sass/_variables.scss/index.esm.js.map +0 -1
- package/dist/styles/sass/_variables.scss/index.js +0 -2
- package/dist/styles/sass/_variables.scss/index.js.map +0 -1
- package/dist/views/beforeAuth/components/index/index.esm.js +0 -1144
- package/dist/views/beforeAuth/components/index/index.esm.js.map +0 -1
- package/dist/views/beforeAuth/components/index/index.js +0 -206
- package/dist/views/beforeAuth/components/index/index.js.map +0 -1
- package/dist/views/beforeAuth/login/index.scss/index.esm.js +0 -2
- package/dist/views/beforeAuth/login/index.scss/index.esm.js.map +0 -1
- package/dist/views/beforeAuth/login/index.scss/index.js +0 -2
- package/dist/views/beforeAuth/login/index.scss/index.js.map +0 -1
- package/dist/views/form-builder/index/index.esm.js +0 -32
- package/dist/views/form-builder/index/index.esm.js.map +0 -1
- package/dist/views/form-builder/index/index.js +0 -2
- package/dist/views/form-builder/index/index.js.map +0 -1
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),a=require("../../../../../api-client/api.system-feature/api/index.js"),r=require("../../../../../utils/common/index.js"),n=require("../../../../../utils/format-text/index.js"),i=require("../../../../typography/typography/index.js"),o=require("../../../../../images/index.js"),s=require("../../../../../utils/route-utils/index.js"),d=require("../../../../../constants/pathnames/pathname.accounting/index.js"),l=require("../../../../../constants/pathnames/pathname.rental/index.js"),u=require("../../../../../constants/pathnames/pathname.inventory/index.js"),c=require("../../../../../constants/pathnames/pathname.manufacturing/index.js"),m=require("../../../../../constants/pathnames/pathname.procurement/index.js"),h=require("../../../../../constants/pathnames/pathname.crm/index.js"),g=require("react-router-dom"),x=require("../../../../button/button/index.js"),p=require("../../../../../node_modules/notistack/notistack.esm/index.js"),f=require("../../../../../node_modules/@mui/material/Box/Box/index.js"),j=require("../../../../../node_modules/@mui/material/IconButton/IconButton/index.js"),y=require("../../../../../node_modules/@mui/material/Badge/Badge/index.js"),_=require("../../../../../node_modules/@mui/material/Menu/Menu/index.js"),
|
|
2
|
-
return e.jsx(
|
|
3
|
-
return e.jsx(
|
|
4
|
-
return e.jsx(
|
|
5
|
-
return e.jsx(
|
|
6
|
-
return e.jsx(
|
|
7
|
-
/* @__PURE__ */e.jsx(j.default,{"aria-label":"notifications","aria-controls":ae?"notification-menu":void 0,"aria-haspopup":"true","aria-expanded":ae?"true":void 0,onClick:e=>{F(e.currentTarget),0===G.length&&ne()},children:/* @__PURE__ */e.jsx(y.default,{badgeContent:$,color:"error",children:/* @__PURE__ */e.jsx(
|
|
8
|
-
/* @__PURE__ */e.jsxs(
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),a=require("../../../../../api-client/api.system-feature/api/index.js"),r=require("../../../../../utils/common/index.js"),n=require("../../../../../utils/format-text/index.js"),i=require("../../../../typography/typography/index.js"),o=require("../../../../../images/index.js"),s=require("../../../../../utils/route-utils/index.js"),d=require("../../../../../constants/pathnames/pathname.accounting/index.js"),l=require("../../../../../constants/pathnames/pathname.rental/index.js"),u=require("../../../../../constants/pathnames/pathname.inventory/index.js"),c=require("../../../../../constants/pathnames/pathname.manufacturing/index.js"),m=require("../../../../../constants/pathnames/pathname.procurement/index.js"),h=require("../../../../../constants/pathnames/pathname.crm/index.js"),g=require("react-router-dom"),x=require("../../../../button/button/index.js"),p=require("../../../../../node_modules/notistack/notistack.esm/index.js"),f=require("../../../../../node_modules/@mui/material/Box/Box/index.js"),j=require("../../../../../node_modules/@mui/material/IconButton/IconButton/index.js"),y=require("../../../../../node_modules/@mui/material/Badge/Badge/index.js"),_=require("../../../../icons/notification/index.js"),E=require("../../../../../node_modules/@mui/material/Menu/Menu/index.js"),R=require("../../../../../node_modules/@mui/material/CircularProgress/CircularProgress/index.js"),S=require("../../../../icons/tick/index.js"),b=require("../../../../../node_modules/@mui/material/Skeleton/Skeleton/index.js"),I=require("../../../../../node_modules/@mui/material/Alert/Alert/index.js"),P=require("../../../../../node_modules/@mui/material/MenuItem/MenuItem/index.js"),v=require("../../../../../node_modules/@mui/material/ListItemAvatar/ListItemAvatar/index.js"),W=require("../../../../../node_modules/@mui/material/Avatar/Avatar/index.js"),C=require("../../../../../node_modules/@mui/material/ListItemText/ListItemText/index.js"),w=require("../../../../../node_modules/@mui/icons-material/esm/Person/index.js"),T=require("../../../../../node_modules/@mui/icons-material/esm/CheckCircle/index.js"),A=require("../../../../../node_modules/@mui/icons-material/esm/Warning/index.js"),k=require("../../../../../node_modules/@mui/icons-material/esm/Email/index.js"),q=require("../../../../../node_modules/@mui/icons-material/esm/Assignment/index.js"),N=require("../../../../../node_modules/@mui/icons-material/esm/AccountBalance/index.js");const M={rbac:o.images.user,document:o.images.document,"accounts-and-finance":o.images.accounting,inventory:o.images.inventory,manufacturing:o.images.manufacturing,sales:o.images.crm,rental:o.images.rental,user:o.images.user,purchase:o.images.procurement,hrms:o.images.hrms},V={rbac:"#F3E5F5",document:"#FFF8E1","accounts-and-finance":"#E8F5E8",inventory:"#E3F2FD",manufacturing:"#FFF3E0",sales:"#F3E5F5",rental:"#E8F5E8",user:"#F3E5F5",purchase:"#FCE4EC",hrms:"#fcfcfc"};exports.default=()=>{const[o,F]=t.useState(null),[G,D]=t.useState([]),[O,B]=t.useState(!1),[z,L]=t.useState(!1),[H,U]=t.useState(null),[$,Y]=t.useState(0),[X,J]=t.useState(!1),[K,Q]=t.useState({skip:0,limit:10,totalCount:0,hasMore:!0}),Z=g.useNavigate(),ee=t.useRef(null),te=t.useRef(!1),ae=Boolean(o),re=t=>{const a={"accounts-and-finance":/* @__PURE__ */e.jsx(N.default,{color:"primary"}),user:/* @__PURE__ */e.jsx(w.default,{color:"action"}),approval:/* @__PURE__ */e.jsx(q.default,{color:"warning"})};return{id:t.id,type:t.action||t.notification_type||"info",title:n.default(t.title),message:t.message,timestamp:(e=>{const t=new Date(e),a=/* @__PURE__ */new Date-t,r=Math.floor(a/6e4),n=Math.floor(a/36e5),i=Math.floor(a/864e5);return r<1?"Just now":r<60?`${r} minute${r>1?"s":""} ago`:n<24?`${n} hour${n>1?"s":""} ago`:i<7?`${i} day${i>1?"s":""} ago`:t.toLocaleDateString()})(t.created_at),read:"read"===t.status,avatar:(e=>{if(!e)return null;const t=e.first_name||"",a=e.last_name||"";return t||a?(t.charAt(0)+a.charAt(0)).toUpperCase():null})(t.performed_user),performedByName:(r=t.performed_user,r&&`${r.first_name||""} ${r.last_name||""}`.trim()||null),module:t.module,subModule:t.sub_module,subModuleId:t.sub_module_id,status:t.status,icon:a[t.module]||a[t.action]||/* @__PURE__ */e.jsx(w.default,{color:"action"})};var r},ne=t.useCallback(async(e=!1)=>{if(!e||!te.current){e?(te.current=!0,L(!0)):(B(!0),Q(e=>({...e,skip:0,hasMore:!0}))),U(null);try{const t=e?K.skip:0,n=await a.getV1Notification({skip:t,limit:K.limit,...r.getToken()});if(!n.success||!n.data)throw Y(0),new Error(n.message||"Failed to load notifications");{const a=n.data.notifications.map(re);D(e?e=>[...e,...a]:a);const r=t+n.data.notifications.length,i=r<n.data.pagination.totalCount;if(Q(e=>({...e,skip:r,totalCount:n.data.pagination.totalCount,hasMore:i})),!e){const e=n.data.pagination.unreadCount;Y(e)}}}catch(t){U("Failed to load notifications")}finally{B(!1),L(!1),e&&(te.current=!1)}}},[K.limit,K.skip]),ie=t.useCallback(e=>{const{scrollTop:t,scrollHeight:a,clientHeight:r}=e.target;t+r>=a-50&&!te.current&&!O&&K.hasMore&&ne(!0)},[ne,O,K.hasMore]),oe=()=>{F(null)},se=t=>{if(t.icon)return t.icon;switch(t.type){case"approval":/* @__PURE__ */
|
|
2
|
+
return e.jsx(q.default,{color:"warning"});case"user":default:/* @__PURE__ */
|
|
3
|
+
return e.jsx(w.default,{color:"action"});case"message":/* @__PURE__ */
|
|
4
|
+
return e.jsx(k.default,{color:"primary"});case"warning":/* @__PURE__ */
|
|
5
|
+
return e.jsx(A.default,{color:"warning"});case"success":/* @__PURE__ */
|
|
6
|
+
return e.jsx(T.default,{color:"success"})}},de=t.useCallback(async()=>{if(!X){if(J(!0),!$)return p.enqueueSnackbar("No unread notifications!"),void J(!1);try{await a.getV1NotificationMarkAllAsRead({...r.getToken()}),D(e=>e.map(e=>({...e,read:!0,status:"read"}))),Y(0)}catch(e){const t=r.getErrorMessage(e.message);p.enqueueSnackbar(t,{variant:"error"})}finally{J(!1)}}},[X,$]);return t.useEffect(()=>{ae||setTimeout(()=>{D([])},500)},[ae]),/* @__PURE__ */e.jsxs(f.default,{children:[
|
|
7
|
+
/* @__PURE__ */e.jsx(j.default,{"aria-label":"notifications","aria-controls":ae?"notification-menu":void 0,"aria-haspopup":"true","aria-expanded":ae?"true":void 0,onClick:e=>{F(e.currentTarget),0===G.length&&ne()},children:/* @__PURE__ */e.jsx(y.default,{badgeContent:$,color:"error",children:/* @__PURE__ */e.jsx(_.Notification,{fontSize:"medium"})})}),
|
|
8
|
+
/* @__PURE__ */e.jsxs(E.default,{id:"notification-menu",anchorEl:o,open:ae,onClose:oe,ref:ee,slotProps:{paper:{sx:{overflow:"visible",minWidth:400,maxWidth:450,maxHeight:520,"&:before":{content:'""',display:"block",position:"absolute",top:0,right:"50%",width:10,height:10,bgcolor:"background.paper",transform:"translateY(-50%) translateX(50%) rotate(45deg)",zIndex:0,border:"1px solid",borderColor:({palette:e})=>e.grey[300]}}}},sx:{"& .MuiList-root":{borderRadius:"8px",maxHeight:520,overflowY:"auto",padding:0}},transformOrigin:{horizontal:"center",vertical:"top"},anchorOrigin:{horizontal:"center",vertical:"bottom"},onScroll:ie,children:[
|
|
9
9
|
/* @__PURE__ */e.jsxs(f.default,{sx:{px:2,py:1,borderBottom:"1px solid #e0e0e0",backgroundColor:"#fafafa"},children:[
|
|
10
10
|
/* @__PURE__ */e.jsx(i.Typography,{type:"h5",weight:"bold",color:"grey.1000",children:"Notifications"}),$>0&&/* @__PURE__ */e.jsxs(f.default,{sx:{display:"flex",justifyContent:"space-between",width:"100%",alignItems:"center"},children:[
|
|
11
11
|
/* @__PURE__ */e.jsxs(i.Typography,{type:"s4",color:"grey.800",children:["You have ",$," unread notification",$>1?"s":""]}),
|
|
12
|
-
/* @__PURE__ */e.jsx(x.default,{variant:"text",startIcon:X?/* @__PURE__ */e.jsx(
|
|
12
|
+
/* @__PURE__ */e.jsx(x.default,{variant:"text",startIcon:X?/* @__PURE__ */e.jsx(R.default,{size:15,color:"inherit"}):/* @__PURE__ */e.jsx(S.Tick,{sx:{fontSize:"0.75rem !important"},color:"grey.900"}),sx:{p:0},onClick:de,disabled:$<=0||X,children:/* @__PURE__ */e.jsx(i.Typography,{type:"s4",color:"grey.900",children:"Mark all as read"})})]})]}),O&&0===G.length&&/* @__PURE__ */e.jsxs(e.Fragment,{children:[
|
|
13
13
|
/* @__PURE__ */e.jsx(f.default,{sx:{display:"flex",flexDirection:"column",gap:1,justifyContent:"center",minWidth:400,p:1,m:1,backgroundColor:"grey.200",borderRadius:"8px"},children:/* @__PURE__ */e.jsxs(f.default,{sx:{display:"flex",gap:1},children:[
|
|
14
|
-
/* @__PURE__ */e.jsx(
|
|
14
|
+
/* @__PURE__ */e.jsx(b.default,{variant:"rounded",width:40,height:40}),
|
|
15
15
|
/* @__PURE__ */e.jsxs(f.default,{sx:{display:"flex",flexDirection:"column",gap:.5},children:[
|
|
16
|
-
/* @__PURE__ */e.jsx(
|
|
17
|
-
/* @__PURE__ */e.jsx(
|
|
18
|
-
/* @__PURE__ */e.jsx(
|
|
19
|
-
/* @__PURE__ */e.jsx(
|
|
16
|
+
/* @__PURE__ */e.jsx(b.default,{variant:"rounded",width:360,height:25}),
|
|
17
|
+
/* @__PURE__ */e.jsx(b.default,{variant:"rounded",width:150,height:11}),
|
|
18
|
+
/* @__PURE__ */e.jsx(b.default,{variant:"rounded",width:360,height:11}),
|
|
19
|
+
/* @__PURE__ */e.jsx(b.default,{variant:"rounded",width:360,height:11})]})]})}),
|
|
20
20
|
/* @__PURE__ */e.jsx(f.default,{sx:{display:"flex",flexDirection:"column",gap:1,justifyContent:"center",minWidth:400,p:1,m:1,backgroundColor:"grey.200",borderRadius:"8px"},children:/* @__PURE__ */e.jsxs(f.default,{sx:{display:"flex",gap:1},children:[
|
|
21
|
-
/* @__PURE__ */e.jsx(
|
|
21
|
+
/* @__PURE__ */e.jsx(b.default,{variant:"rounded",width:40,height:40}),
|
|
22
22
|
/* @__PURE__ */e.jsxs(f.default,{sx:{display:"flex",flexDirection:"column",gap:.5},children:[
|
|
23
|
-
/* @__PURE__ */e.jsx(
|
|
24
|
-
/* @__PURE__ */e.jsx(
|
|
25
|
-
/* @__PURE__ */e.jsx(
|
|
26
|
-
/* @__PURE__ */e.jsx(
|
|
23
|
+
/* @__PURE__ */e.jsx(b.default,{variant:"rounded",width:360,height:25}),
|
|
24
|
+
/* @__PURE__ */e.jsx(b.default,{variant:"rounded",width:150,height:11}),
|
|
25
|
+
/* @__PURE__ */e.jsx(b.default,{variant:"rounded",width:360,height:11}),
|
|
26
|
+
/* @__PURE__ */e.jsx(b.default,{variant:"rounded",width:360,height:11})]})]})}),
|
|
27
27
|
/* @__PURE__ */e.jsx(f.default,{sx:{display:"flex",flexDirection:"column",gap:1,justifyContent:"center",minWidth:400,p:1,m:1,backgroundColor:"grey.200",borderRadius:"8px"},children:/* @__PURE__ */e.jsxs(f.default,{sx:{display:"flex",gap:1},children:[
|
|
28
|
-
/* @__PURE__ */e.jsx(
|
|
28
|
+
/* @__PURE__ */e.jsx(b.default,{variant:"rounded",width:40,height:40}),
|
|
29
29
|
/* @__PURE__ */e.jsxs(f.default,{sx:{display:"flex",flexDirection:"column",gap:.5},children:[
|
|
30
|
-
/* @__PURE__ */e.jsx(
|
|
31
|
-
/* @__PURE__ */e.jsx(
|
|
32
|
-
/* @__PURE__ */e.jsx(
|
|
33
|
-
/* @__PURE__ */e.jsx(
|
|
34
|
-
/* @__PURE__ */e.jsx(
|
|
35
|
-
/* @__PURE__ */e.jsx(
|
|
30
|
+
/* @__PURE__ */e.jsx(b.default,{variant:"rounded",width:360,height:25}),
|
|
31
|
+
/* @__PURE__ */e.jsx(b.default,{variant:"rounded",width:150,height:11}),
|
|
32
|
+
/* @__PURE__ */e.jsx(b.default,{variant:"rounded",width:360,height:11}),
|
|
33
|
+
/* @__PURE__ */e.jsx(b.default,{variant:"rounded",width:360,height:11})]})]})})]}),H&&/* @__PURE__ */e.jsx(f.default,{sx:{p:2},children:/* @__PURE__ */e.jsx(I.default,{severity:"error",children:H})}),!O&&!H&&G.length>0&&/* @__PURE__ */e.jsxs(f.default,{sx:{maxHeight:420,overflowY:"auto",p:1},onScroll:ie,children:[G.map(t=>/* @__PURE__ */e.jsx("div",{children:/* @__PURE__ */e.jsxs(P.default,{onClick:()=>(async e=>{const t=G.find(t=>t.id===e);if(!t)return;oe(),"pending"===t.status&&await a.patchV1NotificationMarkAsReadId({id:e,...r.getToken()}),D(t=>t.map(t=>t.id===e?{...t,read:!0}:t)),Y(e=>Math.max(0,e-1));const i=(e=>{var t;const{moduleName:a="",moduleId:r="",notificationData:i={}}=e,o={sales_invoice:()=>s.generateRouteWithId(d.PathnameGenerator(d.PathnameAccounting.VIEW_SALES_INVOICES),r.toString()),asset_transfers:()=>s.generateRouteWithId(d.PathnameGenerator(d.PathnameAccounting.VIEW_ASSET_TRANSFER),r.toString()),budgets:()=>s.generateRouteWithId(d.PathnameGenerator(d.PathnameAccounting.VIEW_BUDGET),r.toString()),cash_expense:()=>s.generateRouteWithId(d.PathnameGenerator(d.PathnameAccounting.VIEW_CASH_EXPENSE),r.toString()),credit_notes:()=>s.generateRouteWithId(d.PathnameGenerator(d.PathnameAccounting.VIEW_CREDIT_NOTE),r.toString()),debit_notes:()=>s.generateRouteWithId(d.PathnameGenerator(d.PathnameAccounting.VIEW_DEBIT_NOTE),r.toString()),expense_reimbursement:()=>s.generateRouteWithId(d.PathnameGenerator(d.PathnameAccounting.VIEW_EXPENSE_REIMBURSEMENT),r.toString()),journal_entries:()=>s.generateRouteWithId(d.PathnameGenerator(d.PathnameAccounting.VIEW_JOURNAL_ENTRY),r.toString()),payment_entries:()=>s.generateRouteWithId(d.PathnameGenerator(d.PathnameAccounting.VIEW_PAYMENT_ENTRY),r.toString()),purchase_invoice:()=>s.generateRouteWithId(d.PathnameGenerator(d.PathnameAccounting.VIEW_PURCHASE_INVOICE),r.toString()),stock_transfer:()=>s.generateRouteWithId(u.PathnameGenerator(u.PathnameInventory.VIEW_STOCK_TRANSFER),r.toString()),bills_of_materials:()=>s.generateRouteWithId(c.PathnameGenerator(c.PathnameManufacturing.VIEW_BILL_OF_MATERIAL),r.toString()),purchase_agreement:()=>s.generateRouteWithId(m.PathnameGenerator(m.PathnamePurchase.VIEW_PURCHASE_AGREEMENT),r.toString()),purchase_orders:()=>{var e;return s.generateRouteWithId(1==(null==(e=null==i?void 0:i.data)?void 0:e.is_rental)?l.ROUTES.VIEW:m.PathnameGenerator(m.PathnamePurchase.VIEW_PURCHASE_ORDER),r.toString())},purchase_request:()=>s.generateRouteWithId(m.PathnameGenerator(m.PathnamePurchase.VIEW_PURCHASE_ORDER),r.toString()),vra:()=>s.generateRouteWithId(m.PathnameGenerator(m.PathnamePurchase.VIEW_VENDOR_RETURNS),r.toString()),sales_customer_returns:()=>s.generateRouteWithId(h.PathnameGenerator(h.PathnameCrm.VIEW_CUSTOMER_RETURNS),r.toString()),sales_order:()=>s.generateRouteWithId(h.PathnameGenerator(h.PathnameCrm.VIEW_SALES_ORDER),r.toString()),rental_order:()=>s.generateRouteWithId(l.PathnameGenerator(l.PathnameRental.VIEW_RENTAL_ORDER),r.toString()),replacement_order:()=>s.generateRouteWithId(l.PathnameGenerator(l.PathnameRental.VIEW_RENTAL_ORDER),r.toString()),rental_agreement:()=>s.generateRouteWithId(l.PathnameGenerator(l.PathnameRental.VIEW_AGREEMENT),r.toString()),cross_hire_order:()=>s.generateRouteWithId(l.PathnameGenerator(l.PathnameRental.VIEW_CROSS_HIRE_ORDER),r.toString()),cross_hire_request:()=>s.generateRouteWithId(l.PathnameGenerator(l.PathnameRental.VIEW_CROSS_HIRE_REQUEST),r.toString())};return(null==(t=o[n.convertToUnderscore(a)])?void 0:t.call(o))||"/dashboard"})({moduleName:t.subModule,moduleId:t.subModuleId,notificationData:t});setTimeout(()=>{Z(i)},300)})(t.id),sx:({palette:e})=>({py:1,px:1,backgroundColor:t.read?"transparent":e.theme.grey[200],border:`1px solid ${e.grey[200]}`,marginBottom:"4px !important","&:hover":{backgroundColor:e.theme.grey[200]},alignItems:"flex-start",minHeight:"auto"}),children:[
|
|
34
|
+
/* @__PURE__ */e.jsx(v.default,{sx:{minWidth:48,mt:0},children:(null==M?void 0:M[t.module])?/* @__PURE__ */e.jsx(W.default,{sx:{width:40,height:40,fontSize:"0.875rem",bgcolor:V[t.module]||"primary.main",color:"white",borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.1)","& img":{width:"28px",height:"28px",objectFit:"contain"}},src:null==M?void 0:M[t.module]}):/* @__PURE__ */e.jsx(e.Fragment,{children:t.avatar?/* @__PURE__ */e.jsx(W.default,{sx:{width:40,height:40,fontSize:"0.875rem",bgcolor:"primary.main",color:"white",borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.1)"},children:t.avatar}):/* @__PURE__ */e.jsx(W.default,{sx:{width:36,height:36,bgcolor:"grey.100",color:"grey.600",borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.1)"},children:se(t)})})}),
|
|
35
|
+
/* @__PURE__ */e.jsx(C.default,{sx:{margin:0,pr:1},primary:/* @__PURE__ */e.jsxs(f.default,{sx:{mb:.5},children:[
|
|
36
36
|
/* @__PURE__ */e.jsx(i.Typography,{type:"s3",weight:"bold",color:"grey.1000",children:t.title}),t.performedByName&&/* @__PURE__ */e.jsxs(i.Typography,{type:"s5",color:"grey.500",sx:{fontSize:"0.7rem !important",fontStyle:"italic",display:"block"},children:["by ",t.performedByName]})]}),secondary:/* @__PURE__ */e.jsxs(f.default,{children:[
|
|
37
37
|
/* @__PURE__ */e.jsx(i.Typography,{type:"s4",color:"grey.800",sx:{mb:1,lineHeight:1.4},children:t.message}),
|
|
38
38
|
/* @__PURE__ */e.jsxs(f.default,{sx:{display:"flex",alignItems:"center",gap:.5},children:[t.module&&/* @__PURE__ */e.jsxs(e.Fragment,{children:[
|
|
@@ -41,8 +41,8 @@ return e.jsx(w.default,{color:"success"})}},de=t.useCallback(async()=>{if(!X){if
|
|
|
41
41
|
/* @__PURE__ */e.jsx(i.Typography,{type:"s5",sx:{fontSize:"0.65rem !important",color:"primary",textTransform:"capitalize"},children:n.formatLabel(t.subModule)}),
|
|
42
42
|
/* @__PURE__ */e.jsx(f.default,{sx:{height:5,width:5,borderRadius:"100%",backgroundColor:"primary.main"}})]}),
|
|
43
43
|
/* @__PURE__ */e.jsx(i.Typography,{type:"s5",color:"primary",sx:{fontSize:"0.65rem !important"},children:t.timestamp})]})]})}),!t.read&&/* @__PURE__ */e.jsx(f.default,{sx:{width:10,height:10,borderRadius:"50%",backgroundColor:"primary.main",flexShrink:0,mt:.5}})]})},t.id)),z&&/* @__PURE__ */e.jsxs(f.default,{sx:{display:"flex",justifyContent:"center",py:2.5,px:3},children:[
|
|
44
|
-
/* @__PURE__ */e.jsx(
|
|
44
|
+
/* @__PURE__ */e.jsx(R.default,{size:20}),
|
|
45
45
|
/* @__PURE__ */e.jsx(i.Typography,{variant:"body2",sx:{ml:1.5,color:"text.secondary"},children:"Loading more..."})]}),!K.hasMore&&G.length>0&&/* @__PURE__ */e.jsx(f.default,{sx:{textAlign:"center",py:1.5,px:2},children:/* @__PURE__ */e.jsx(i.Typography,{type:"s3",color:"grey.800",textAlign:"center",children:"No more notifications"})})]}),!O&&!H&&0===G.length&&/* @__PURE__ */e.jsxs(f.default,{sx:{p:4,textAlign:"center"},children:[
|
|
46
|
-
/* @__PURE__ */e.jsx(
|
|
46
|
+
/* @__PURE__ */e.jsx(_.Notification,{sx:{fontSize:56,color:"text.secondary",mb:2}}),
|
|
47
47
|
/* @__PURE__ */e.jsx(i.Typography,{type:"s1",color:"grey.800",sx:{mb:1},textAlign:"center",children:"No notifications yet"})]})]})]})};
|
|
48
48
|
//# sourceMappingURL=index.js.map
|
|
@@ -22,9 +22,9 @@ import MenuItem from "../../../node_modules/@mui/material/MenuItem/MenuItem/inde
|
|
|
22
22
|
import ListItemIcon from "../../../node_modules/@mui/material/ListItemIcon/ListItemIcon/index.esm.js";
|
|
23
23
|
import ListItemText from "../../../node_modules/@mui/material/ListItemText/ListItemText/index.esm.js";
|
|
24
24
|
import Divider from "../../../node_modules/@mui/material/Divider/Divider/index.esm.js";
|
|
25
|
+
import { Eye } from "../../icons/eye/index.esm.js";
|
|
25
26
|
import Box from "../../../node_modules/@mui/material/Box/Box/index.esm.js";
|
|
26
27
|
import IconButton from "../../../node_modules/@mui/material/IconButton/IconButton/index.esm.js";
|
|
27
|
-
import { Eye } from "../../icons/eye/index.esm.js";
|
|
28
28
|
function Header(props) {
|
|
29
29
|
const navigate = useNavigate();
|
|
30
30
|
const { t } = useTranslation();
|
|
@@ -1,4 +1,4 @@
|
|
|
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 */i=,/* empty css */o=,/* empty css */t=,/* empty css */u=,/* empty css */d=,/* empty css */c=,/* empty css */m=,/* empty css */g=,/* empty css */h=;/* empty css */;/* empty css */var x=,/* empty css */j=,/* empty css */f=,/* empty css */p=,/* empty css */v=,/* empty css */y=,/* empty css */_=,/* empty css */b=,/* empty css */q=,/* empty css
|
|
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 */i=,/* empty css */o=,/* empty css */t=,/* empty css */u=,/* empty css */d=,/* empty css */c=,/* empty css */m=,/* empty css */g=,/* empty css */h=;/* empty css */;/* empty css */var x=,/* empty css */j=,/* empty css */f=,/* empty css */p=,/* empty css */v=,/* empty css */y=,/* empty css */_=,/* empty css */b=,/* empty css */q=,/* empty css */N=,/* empty css */w=;/* empty css */function L(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var k=/* @__PURE__ */L(a);function S(L){const S=l.useNavigate(),{t:C}=s.useTranslation(),I=l.useLocation(),{logout:A,user:T}=m.useAuth(),{languages:z,currentLanguage:M,changeLanguage:B,isLoading:D,error:F,isFallbackActive:E,fetchLanguages:O,isRtl:P}=x.useLanguage(),{pathname:R}=I,[W,$]=k.default.useState(null),[G,H]=a.useState(!1),[V,J]=a.useState(null),[K,Q]=a.useState(!1),U=localStorage.getItem("_u_data")||void 0,X=U?JSON.parse(U):"",Y=Boolean(W),Z=()=>H(!G),ee=a.useCallback(e=>{const a=Array.isArray(e)?e.map(e=>({path:e})):[{path:e}];return Boolean(l.matchRoutes(a,I))},[I]),ae=a.useMemo(()=>d.default(C),[C]),le=a.useMemo(()=>ae.find(e=>{var a;return(null==(a=null==e?void 0:e.link)?void 0:a.toLowerCase())===R.toLowerCase()||ee(e.connectedRoutes)})||null,[ae,R,ee]),se=e=>{const a=e.target.value;if(J(null),!z||0===z.length){const e=C("header.language_not_available")||"Languages not available";return void J(e)}if(z.some(e=>e.code===a))try{B(a)}catch(l){const e=l instanceof Error?l.message:"Failed to change language";J(e)}else{const e=C("header.language_not_found",{language:a})||`Selected language "${a}" is not available`;J(e)}},ne=async()=>{J(null);try{await O()}catch(e){J("Failed to reload languages")}},re="primary-search-account-menu",ie=/* @__PURE__ */e.jsxs(p.default,{className:"main-profile-menu",anchorEl:W,id:re,keepMounted:!0,open:Y,onClose:()=>{$(null)},children:[
|
|
2
2
|
/* @__PURE__ */e.jsx(v.default,{className:"user-assigned",children:/* @__PURE__ */e.jsx("span",{children:C("common.assigned_roles")||"Assigned roles"})}),
|
|
3
3
|
/* @__PURE__ */e.jsxs(v.default,{className:"user-data-wrap",value:X.role_id,children:[
|
|
4
4
|
/* @__PURE__ */e.jsx(y.default,{children:/* @__PURE__ */e.jsx(c.Avatar,{size:27,alt:X.role_name})}),
|
|
@@ -6,28 +6,28 @@
|
|
|
6
6
|
/* @__PURE__ */e.jsx(o.Typography,{variant:"body2",color:"text.secondary",children:/* @__PURE__ */e.jsx("img",{src:t.images.tickicon,alt:"Active"})})]}),
|
|
7
7
|
/* @__PURE__ */e.jsx(b.default,{}),
|
|
8
8
|
/* @__PURE__ */e.jsxs(v.default,{className:"user-assigned",onClick:()=>{Q(!0),$(null)},children:[
|
|
9
|
-
/* @__PURE__ */e.jsx(y.default,{children:/* @__PURE__ */e.jsx(
|
|
9
|
+
/* @__PURE__ */e.jsx(y.default,{children:/* @__PURE__ */e.jsx(q.Eye,{fontSize:"medium",width:20,height:20,htmlColor:"#292D32"})}),
|
|
10
10
|
/* @__PURE__ */e.jsx(_.default,{className:"size15",children:C("common.change_password")})]}),
|
|
11
11
|
/* @__PURE__ */e.jsx(b.default,{}),
|
|
12
12
|
/* @__PURE__ */e.jsxs(v.default,{className:"menu-item-color",onClick:()=>{Z(),$(null)},children:[
|
|
13
13
|
/* @__PURE__ */e.jsx(y.default,{children:/* @__PURE__ */e.jsx("img",{src:t.images.logout,alt:"logout"})}),
|
|
14
14
|
/* @__PURE__ */e.jsx(_.default,{className:"size15",children:C("common.logout")})]})]});/* @__PURE__ */
|
|
15
15
|
return e.jsxs(e.Fragment,{children:[
|
|
16
|
-
/* @__PURE__ */e.jsxs(
|
|
17
|
-
/* @__PURE__ */e.jsx(
|
|
18
|
-
/* @__PURE__ */e.jsx(
|
|
19
|
-
/* @__PURE__ */e.jsx(
|
|
16
|
+
/* @__PURE__ */e.jsxs(N.default,{className:"main-box",children:[!L.isDropdownShow&&/* @__PURE__ */e.jsx(l.Link,{to:T?i.Pathname.DASHBOARD:i.Pathname.LOGIN,children:/* @__PURE__ */e.jsx("img",{src:t.images.logo,alt:"logo"})}),
|
|
17
|
+
/* @__PURE__ */e.jsx(N.default,{className:"second-box",children:L.isDropdownShow&&/* @__PURE__ */e.jsxs(e.Fragment,{children:[
|
|
18
|
+
/* @__PURE__ */e.jsx(w.default,{onClick:()=>{window.history.back()},children:/* @__PURE__ */e.jsx(r.default,{className:P?"arrow-pointer_rtl":"arrow-pointer"})}),
|
|
19
|
+
/* @__PURE__ */e.jsx(N.default,{width:250,children:/* @__PURE__ */e.jsx(u.default,{fullWidth:!0,placeholder:"Placeholder",size:"small",value:(null==le?void 0:le.link)||"",onChange:e=>{const a=e.target.value;setTimeout(()=>{S(a)},300)},className:"select-box",variant:"outlined",renderValue:a=>/* @__PURE__ */e.jsx(e.Fragment,{children:le?/* @__PURE__ */e.jsxs(N.default,{className:"selected-menu-box",children:[
|
|
20
20
|
/* @__PURE__ */e.jsx("img",{src:le.icon,alt:le.label}),le.label]}):a}),children:ae.map((a,l)=>/* @__PURE__ */e.jsxs(v.default,{className:"select-box-menu-item",value:a.link,children:[
|
|
21
21
|
/* @__PURE__ */e.jsx("img",{src:a.icon,alt:a.label}),a.label]},l))})})]})}),
|
|
22
|
-
/* @__PURE__ */e.jsxs(
|
|
23
|
-
/* @__PURE__ */e.jsx(
|
|
22
|
+
/* @__PURE__ */e.jsxs(N.default,{className:"header-right-wrap",children:[
|
|
23
|
+
/* @__PURE__ */e.jsx(N.default,{className:"language-selector-wrapper",children:(()=>{const a=z&&0!==z.length?z.some(e=>"en"===e.code)?z:[{code:"en",label:"English",direction:"ltr"},...z]:[{code:"en",label:"English",direction:"ltr"}],l=(null==M?void 0:M.code)||"en";return D?/* @__PURE__ */e.jsx(N.default,{className:"language-loading",children:/* @__PURE__ */e.jsx(o.Typography,{variant:"body2",color:"text.secondary",children:"Loading..."})}):/* @__PURE__ */e.jsxs(u.default,{onChange:se,size:"small",value:l,renderValue:()=>M?E||F?`${M.label}`:M.label:C("header.select_language")||"Select Language",error:!!V,className:E||F?"language-fallback-active":"",children:[a.map(({code:a,label:l})=>/* @__PURE__ */e.jsx(v.default,{value:a,children:/* @__PURE__ */e.jsx(o.Typography,{type:"s4",weight:"medium",color:"theme.secondary.1000",children:l})},a)),F&&/* @__PURE__ */e.jsx(v.default,{onClick:ne,style:{fontStyle:"italic"},children:/* @__PURE__ */e.jsxs(o.Typography,{type:"s4",weight:"medium",color:"theme.secondary.500",children:["🔄 ",C("header.retry_languages")||"Retry loading languages"]})})]})})()}),
|
|
24
24
|
/* @__PURE__ */e.jsx(f.default,{}),
|
|
25
|
-
/* @__PURE__ */e.jsx(
|
|
26
|
-
/* @__PURE__ */e.jsx("img",{src:t.images.vdivider,alt:"divider icon"}),localStorage.getItem("_tid")?/* @__PURE__ */e.jsxs(
|
|
25
|
+
/* @__PURE__ */e.jsx(w.default,{size:"small","aria-label":"help",className:"p-0",children:/* @__PURE__ */e.jsx("img",{src:t.images.question,alt:"question icon"})}),
|
|
26
|
+
/* @__PURE__ */e.jsx("img",{src:t.images.vdivider,alt:"divider icon"}),localStorage.getItem("_tid")?/* @__PURE__ */e.jsxs(N.default,{className:"user-profile-box",onClick:e=>$(e.currentTarget),children:[
|
|
27
27
|
/* @__PURE__ */e.jsx(c.Avatar,{size:32,src:(null==T?void 0:T.profile_image)?`https://erpforce-dev.s3.eu-west-1.amazonaws.com/${null==T?void 0:T.profile_image}`:void 0,alt:h.default(null==T?void 0:T.full_name),className:"avatar-class"}),
|
|
28
28
|
/* @__PURE__ */e.jsxs("div",{children:[
|
|
29
29
|
/* @__PURE__ */e.jsx(o.Typography,{className:"profile-name",children:null==T?void 0:T.full_name}),
|
|
30
|
-
/* @__PURE__ */e.jsx(o.Typography,{className:"user-auth",children:null==T?void 0:T.role_name})]})]}):/* @__PURE__ */e.jsx(
|
|
30
|
+
/* @__PURE__ */e.jsx(o.Typography,{className:"user-auth",children:null==T?void 0:T.role_name})]})]}):/* @__PURE__ */e.jsx(w.default,{size:"large",edge:"end","aria-label":"account of current user","aria-controls":re,"aria-haspopup":"true",component:l.Link,to:i.Pathname.LOGIN,color:"inherit",children:/* @__PURE__ */e.jsx(n.default,{className:"icon-btn"})})]}),ie]}),
|
|
31
31
|
/* @__PURE__ */e.jsx(g.default,{open:G,title:C("common.logout"),description:C("common.logout_confirmation")||"Are you sure, you want to logout?",onConfirm:()=>A(),onClose:Z,fullWidth:!0,maxWidth:"xs",buttonTexts:{confirm:C("common.logout"),cancel:C("common.cancel")}}),
|
|
32
32
|
/* @__PURE__ */e.jsx(j.default,{showModal:K,setShowModal:Q})]})}exports.Header=S,exports.default=S;
|
|
33
33
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,405 @@
|
|
|
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
|