@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
|
@@ -177,13 +177,10 @@ const inventoryReportsTitleBarSlice = createSlice({
|
|
|
177
177
|
}
|
|
178
178
|
});
|
|
179
179
|
const {
|
|
180
|
-
setCompanies,
|
|
181
180
|
setItems,
|
|
182
181
|
setWarehouseLocations,
|
|
183
182
|
setAssemblyItems,
|
|
184
183
|
setBomData,
|
|
185
|
-
setLoading,
|
|
186
|
-
setError,
|
|
187
184
|
resetInventoryReportsTitleBarState
|
|
188
185
|
} = inventoryReportsTitleBarSlice.actions;
|
|
189
186
|
var inventoryReportsTitleBarSlice$1 = inventoryReportsTitleBarSlice.reducer;
|
|
@@ -195,10 +192,7 @@ export {
|
|
|
195
192
|
resetInventoryReportsTitleBarState,
|
|
196
193
|
setAssemblyItems,
|
|
197
194
|
setBomData,
|
|
198
|
-
setCompanies,
|
|
199
|
-
setError,
|
|
200
195
|
setItems,
|
|
201
|
-
setLoading,
|
|
202
196
|
setWarehouseLocations
|
|
203
197
|
};
|
|
204
198
|
//# sourceMappingURL=index.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../../../../src/redux/slices/inventoryReportsTitleBarSlice.ts"],"sourcesContent":["import { createSlice, createAsyncThunk } from \"@reduxjs/toolkit\";\nimport { InventoryReportsTitleBarState } from \"../types\";\n\n// Initial state\nconst initialState: InventoryReportsTitleBarState = {\n companies: [],\n items: [],\n warehouseLocations: [],\n isLoading: true,\n assemblyItems: [],\n bomData: [],\n error: \"\",\n isError: false,\n};\n\n// Async thunk for fetching all options\nexport const fetchOptions = createAsyncThunk(\n \"inventoryReportsTitleBar/fetchOptions\",\n async (_, { extra }: any) => {\n if (!extra?.apiClient) {\n throw new Error(\"API client not configured for inventory reports title bar slice\");\n }\n \n const { apiClient } = extra;\n \n // Fetch all data in parallel\n const [i, c, wl, ai] = await Promise.all([\n handleFetchItem(apiClient),\n handleFetchCompanies(apiClient),\n handleFetchWarehouseLocations(apiClient),\n fetchAssemblyItems(apiClient),\n ]);\n \n return { i, c, wl, ai };\n }\n);\n\nexport const fetchBom = createAsyncThunk(\n \"inventoryReportsTitleBar/fetchBom\",\n async (_, { extra }: any) => {\n if (!extra?.apiClient?.getV1BillsOfMaterials) {\n throw new Error(\"API client not configured for BOM fetch\");\n }\n const bom = await fetchBomData(extra.apiClient);\n return { bom };\n }\n);\n\n// Helper functions\nconst handleFetchCompanies = async (apiClient: any) => {\n try {\n if (!apiClient.getV1Company) {\n throw new Error(\"getV1Company not available in API client\");\n }\n const response = await apiClient.getV1Company();\n return response?.data?.company || [];\n } catch (error) {\n console.error(\"Error fetching companies:\", error);\n return [];\n }\n};\n\nconst handleFetchItem = async (apiClient: any) => {\n try {\n if (!apiClient.getV1InventoryItems) {\n throw new Error(\"getV1InventoryItems not available in API client\");\n }\n const response = await apiClient.getV1InventoryItems({\n skip: 0,\n limit: 999,\n filters: `(type.eq=inventory|type.eq=assembly&is_variant.eq=false|self_variant.eq=true)`,\n });\n return response?.data?.inventoryItemsList || [];\n } catch (error) {\n console.error(\"Error fetching items:\", error);\n return [];\n }\n};\n\nconst handleFetchWarehouseLocations = async (apiClient: any) => {\n try {\n if (!apiClient.getV1WarehouseLocation) {\n throw new Error(\"getV1WarehouseLocation not available in API client\");\n }\n const response = await apiClient.getV1WarehouseLocation({\n skip: 0,\n limit: 999,\n });\n return response?.data?.warehouseLocationList || [];\n } catch (error) {\n console.error(\"Error fetching warehouse locations:\", error);\n return [];\n }\n};\n\nconst fetchAssemblyItems = async (apiClient: any) => {\n try {\n if (!apiClient.getV1AssemblyItems) {\n throw new Error(\"getV1AssemblyItems not available in API client\");\n }\n const response = await apiClient.getV1AssemblyItems({\n skip: 0,\n limit: 999,\n });\n return response?.data?.assemblyItemsList || [];\n } catch (error) {\n console.error(\"Error fetching assembly items:\", error);\n return [];\n }\n};\n\nconst fetchBomData = async (apiClient: any) => {\n try {\n const response = await apiClient.getV1BillsOfMaterials({\n skip: 0,\n limit: 99999,\n });\n return response?.data?.bom_list || [];\n } catch (error) {\n console.error(\"Error fetching BOM data:\", error);\n return [];\n }\n};\n\nexport const inventoryReportsTitleBarSlice = createSlice({\n name: \"inventoryReportsTitleBar\",\n initialState,\n reducers: {\n setCompanies: (state, action) => {\n state.companies = action.payload;\n },\n setItems: (state, action) => {\n state.items = action.payload;\n },\n setWarehouseLocations: (state, action) => {\n state.warehouseLocations = action.payload;\n },\n setAssemblyItems: (state, action) => {\n state.assemblyItems = action.payload;\n },\n setBomData: (state, action) => {\n state.bomData = action.payload;\n },\n setLoading: (state, action) => {\n state.isLoading = action.payload;\n },\n setError: (state, action) => {\n state.error = action.payload;\n state.isError = !!action.payload;\n },\n resetInventoryReportsTitleBarState: (state) => {\n Object.assign(state, initialState);\n },\n },\n extraReducers: (builder) => {\n /*-------------------------------- fetch options Pending State ---------------------------------*/\n builder.addCase(fetchOptions.pending, (state) => {\n state.companies = [];\n state.items = [];\n state.warehouseLocations = [];\n state.assemblyItems = [];\n state.isLoading = true;\n state.error = \"\";\n state.isError = false;\n });\n \n builder.addCase(fetchOptions.fulfilled, (state, action) => {\n state.companies = action.payload?.c || [];\n state.items = action.payload?.i || [];\n state.warehouseLocations = action.payload?.wl || [];\n state.assemblyItems = action.payload?.ai || [];\n state.isLoading = false;\n state.isError = false;\n state.error = \"\";\n });\n \n builder.addCase(fetchOptions.rejected, (state, action) => {\n state.isLoading = false;\n state.error = action.error.message || \"Failed to fetch options\";\n state.isError = true;\n });\n \n builder.addCase(fetchBom.fulfilled, (state, action) => {\n state.bomData = action.payload?.bom || [];\n });\n \n builder.addCase(fetchBom.rejected, (state, action) => {\n state.error = action.error.message || \"Failed to fetch BOM data\";\n state.isError = true;\n });\n },\n});\n\nexport const { \n setCompanies, \n setItems, \n setWarehouseLocations, \n setAssemblyItems, \n setBomData, \n setLoading, \n setError, \n resetInventoryReportsTitleBarState \n} = inventoryReportsTitleBarSlice.actions;\n\nexport default inventoryReportsTitleBarSlice.reducer;"],"names":[],"mappings":";AAIA,MAAM,eAA8C;AAAA,EAClD,WAAW,CAAA;AAAA,EACX,OAAO,CAAA;AAAA,EACP,oBAAoB,CAAA;AAAA,EACpB,WAAW;AAAA,EACX,eAAe,CAAA;AAAA,EACf,SAAS,CAAA;AAAA,EACT,OAAO;AAAA,EACP,SAAS;AACX;AAGO,MAAM,eAAe;AAAA,EAC1B;AAAA,EACA,OAAO,GAAG,EAAE,YAAiB;AAC3B,QAAI,EAAC,+BAAO,YAAW;AACrB,YAAM,IAAI,MAAM,iEAAiE;AAAA,IACnF;AAEA,UAAM,EAAE,cAAc;AAGtB,UAAM,CAAC,GAAG,GAAG,IAAI,EAAE,IAAI,MAAM,QAAQ,IAAI;AAAA,MACvC,gBAAgB,SAAS;AAAA,MACzB,qBAAqB,SAAS;AAAA,MAC9B,8BAA8B,SAAS;AAAA,MACvC,mBAAmB,SAAS;AAAA,IAAA,CAC7B;AAED,WAAO,EAAE,GAAG,GAAG,IAAI,GAAA;AAAA,EACrB;AACF;AAEO,MAAM,WAAW;AAAA,EACtB;AAAA,EACA,OAAO,GAAG,EAAE,YAAiB;;AAC3B,QAAI,GAAC,oCAAO,cAAP,mBAAkB,wBAAuB;AAC5C,YAAM,IAAI,MAAM,yCAAyC;AAAA,IAC3D;AACA,UAAM,MAAM,MAAM,aAAa,MAAM,SAAS;AAC9C,WAAO,EAAE,IAAA;AAAA,EACX;AACF;AAGA,MAAM,uBAAuB,OAAO,cAAmB;;AACrD,MAAI;AACF,QAAI,CAAC,UAAU,cAAc;AAC3B,YAAM,IAAI,MAAM,0CAA0C;AAAA,IAC5D;AACA,UAAM,WAAW,MAAM,UAAU,aAAA;AACjC,aAAO,0CAAU,SAAV,mBAAgB,YAAW,CAAA;AAAA,EACp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AP,mBAAgB,MAAK,CAAA;AACvC,YAAM,UAAQ,YAAO,YAAP,mBAAgB,MAAK,CAAA;AACnC,YAAM,uBAAqB,YAAO,YAAP,mBAAgB,OAAM,CAAA;AACjD,YAAM,kBAAgB,YAAO,YAAP,mBAAgB,OAAM,CAAA;AAC5C,YAAM,YAAY;AAClB,YAAM,UAAU;AAChB,YAAM,QAAQ;AAAA,IAChB,CAAC;AAED,YAAQ,QAAQ,aAAa,UAAU,CAAC,OAAO,WAAW;AACxD,YAAM,YAAY;AAClB,YAAM,QAAQ,OAAO,MAAM,WAAW;AACtC,YAAM,UAAU;AAAA,IAClB,CAAC;AAED,YAAQ,QAAQ,SAAS,WAAW,CAAC,OAAO,WAAW;;AACrD,YAAM,YAAU,YAAO,YAAP,mBAAgB,QAAO,CAAA;AAAA,IACzC,CAAC;AAED,YAAQ,QAAQ,SAAS,UAAU,CAAC,OAAO,WAAW;AACpD,YAAM,QAAQ,OAAO,MAAM,WAAW;AACtC,YAAM,UAAU;AAAA,IAClB,CAAC;AAAA,EACH;AACF,CAAC;AAEM,MAAM;AAAA,
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../../../src/redux/slices/inventoryReportsTitleBarSlice.ts"],"sourcesContent":["import { createSlice, createAsyncThunk } from \"@reduxjs/toolkit\";\nimport { InventoryReportsTitleBarState } from \"../types\";\n\n// Initial state\nconst initialState: InventoryReportsTitleBarState = {\n companies: [],\n items: [],\n warehouseLocations: [],\n isLoading: true,\n assemblyItems: [],\n bomData: [],\n error: \"\",\n isError: false,\n};\n\n// Async thunk for fetching all options\nexport const fetchOptions = createAsyncThunk(\n \"inventoryReportsTitleBar/fetchOptions\",\n async (_, { extra }: any) => {\n if (!extra?.apiClient) {\n throw new Error(\"API client not configured for inventory reports title bar slice\");\n }\n \n const { apiClient } = extra;\n \n // Fetch all data in parallel\n const [i, c, wl, ai] = await Promise.all([\n handleFetchItem(apiClient),\n handleFetchCompanies(apiClient),\n handleFetchWarehouseLocations(apiClient),\n fetchAssemblyItems(apiClient),\n ]);\n \n return { i, c, wl, ai };\n }\n);\n\nexport const fetchBom = createAsyncThunk(\n \"inventoryReportsTitleBar/fetchBom\",\n async (_, { extra }: any) => {\n if (!extra?.apiClient?.getV1BillsOfMaterials) {\n throw new Error(\"API client not configured for BOM fetch\");\n }\n const bom = await fetchBomData(extra.apiClient);\n return { bom };\n }\n);\n\n// Helper functions\nconst handleFetchCompanies = async (apiClient: any) => {\n try {\n if (!apiClient.getV1Company) {\n throw new Error(\"getV1Company not available in API client\");\n }\n const response = await apiClient.getV1Company();\n return response?.data?.company || [];\n } catch (error) {\n console.error(\"Error fetching companies:\", error);\n return [];\n }\n};\n\nconst handleFetchItem = async (apiClient: any) => {\n try {\n if (!apiClient.getV1InventoryItems) {\n throw new Error(\"getV1InventoryItems not available in API client\");\n }\n const response = await apiClient.getV1InventoryItems({\n skip: 0,\n limit: 999,\n filters: `(type.eq=inventory|type.eq=assembly&is_variant.eq=false|self_variant.eq=true)`,\n });\n return response?.data?.inventoryItemsList || [];\n } catch (error) {\n console.error(\"Error fetching items:\", error);\n return [];\n }\n};\n\nconst handleFetchWarehouseLocations = async (apiClient: any) => {\n try {\n if (!apiClient.getV1WarehouseLocation) {\n throw new Error(\"getV1WarehouseLocation not available in API client\");\n }\n const response = await apiClient.getV1WarehouseLocation({\n skip: 0,\n limit: 999,\n });\n return response?.data?.warehouseLocationList || [];\n } catch (error) {\n console.error(\"Error fetching warehouse locations:\", error);\n return [];\n }\n};\n\nconst fetchAssemblyItems = async (apiClient: any) => {\n try {\n if (!apiClient.getV1AssemblyItems) {\n throw new Error(\"getV1AssemblyItems not available in API client\");\n }\n const response = await apiClient.getV1AssemblyItems({\n skip: 0,\n limit: 999,\n });\n return response?.data?.assemblyItemsList || [];\n } catch (error) {\n console.error(\"Error fetching assembly items:\", error);\n return [];\n }\n};\n\nconst fetchBomData = async (apiClient: any) => {\n try {\n const response = await apiClient.getV1BillsOfMaterials({\n skip: 0,\n limit: 99999,\n });\n return response?.data?.bom_list || [];\n } catch (error) {\n console.error(\"Error fetching BOM data:\", error);\n return [];\n }\n};\n\nexport const inventoryReportsTitleBarSlice = createSlice({\n name: \"inventoryReportsTitleBar\",\n initialState,\n reducers: {\n setCompanies: (state, action) => {\n state.companies = action.payload;\n },\n setItems: (state, action) => {\n state.items = action.payload;\n },\n setWarehouseLocations: (state, action) => {\n state.warehouseLocations = action.payload;\n },\n setAssemblyItems: (state, action) => {\n state.assemblyItems = action.payload;\n },\n setBomData: (state, action) => {\n state.bomData = action.payload;\n },\n setLoading: (state, action) => {\n state.isLoading = action.payload;\n },\n setError: (state, action) => {\n state.error = action.payload;\n state.isError = !!action.payload;\n },\n resetInventoryReportsTitleBarState: (state) => {\n Object.assign(state, initialState);\n },\n },\n extraReducers: (builder) => {\n /*-------------------------------- fetch options Pending State ---------------------------------*/\n builder.addCase(fetchOptions.pending, (state) => {\n state.companies = [];\n state.items = [];\n state.warehouseLocations = [];\n state.assemblyItems = [];\n state.isLoading = true;\n state.error = \"\";\n state.isError = false;\n });\n \n builder.addCase(fetchOptions.fulfilled, (state, action) => {\n state.companies = action.payload?.c || [];\n state.items = action.payload?.i || [];\n state.warehouseLocations = action.payload?.wl || [];\n state.assemblyItems = action.payload?.ai || [];\n state.isLoading = false;\n state.isError = false;\n state.error = \"\";\n });\n \n builder.addCase(fetchOptions.rejected, (state, action) => {\n state.isLoading = false;\n state.error = action.error.message || \"Failed to fetch options\";\n state.isError = true;\n });\n \n builder.addCase(fetchBom.fulfilled, (state, action) => {\n state.bomData = action.payload?.bom || [];\n });\n \n builder.addCase(fetchBom.rejected, (state, action) => {\n state.error = action.error.message || \"Failed to fetch BOM data\";\n state.isError = true;\n });\n },\n});\n\nexport const { \n setCompanies, \n setItems, \n setWarehouseLocations, \n setAssemblyItems, \n setBomData, \n setLoading, \n setError, \n resetInventoryReportsTitleBarState \n} = inventoryReportsTitleBarSlice.actions;\n\nexport default inventoryReportsTitleBarSlice.reducer;"],"names":[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AAO,YAAP,mBAAgB,OAAM,CAAA;AAC5C,YAAM,YAAY;AAClB,YAAM,UAAU;AAChB,YAAM,QAAQ;AAAA,IAChB,CAAC;AAED,YAAQ,QAAQ,aAAa,UAAU,CAAC,OAAO,WAAW;AACxD,YAAM,YAAY;AAClB,YAAM,QAAQ,OAAO,MAAM,WAAW;AACtC,YAAM,UAAU;AAAA,IAClB,CAAC;AAED,YAAQ,QAAQ,SAAS,WAAW,CAAC,OAAO,WAAW;;AACrD,YAAM,YAAU,YAAO,YAAP,mBAAgB,QAAO,CAAA;AAAA,IACzC,CAAC;AAED,YAAQ,QAAQ,SAAS,UAAU,CAAC,OAAO,WAAW;AACpD,YAAM,QAAQ,OAAO,MAAM,WAAW;AACtC,YAAM,UAAU;AAAA,IAClB,CAAC;AAAA,EACH;AACF,CAAC;AAEM,MAAM;AAAA,EAEX;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAGA;AACF,IAAI,8BAA8B;AAElC,IAAA,kCAAe,8BAA8B;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@reduxjs/toolkit");const t={companies:[],items:[],warehouseLocations:[],isLoading:!0,assemblyItems:[],bomData:[],error:"",isError:!1},
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@reduxjs/toolkit");const t={companies:[],items:[],warehouseLocations:[],isLoading:!0,assemblyItems:[],bomData:[],error:"",isError:!1},a=e.createAsyncThunk("inventoryReportsTitleBar/fetchOptions",async(e,{extra:t})=>{if(!(null==t?void 0:t.apiClient))throw new Error("API client not configured for inventory reports title bar slice");const{apiClient:a}=t,[r,l,c,d]=await Promise.all([s(a),o(a),i(a),n(a)]);return{i:r,c:l,wl:c,ai:d}}),r=e.createAsyncThunk("inventoryReportsTitleBar/fetchBom",async(e,{extra:t})=>{var a;if(!(null==(a=null==t?void 0:t.apiClient)?void 0:a.getV1BillsOfMaterials))throw new Error("API client not configured for BOM fetch");return{bom:await l(t.apiClient)}}),o=async e=>{var t;try{if(!e.getV1Company)throw new Error("getV1Company not available in API client");const a=await e.getV1Company();return(null==(t=null==a?void 0:a.data)?void 0:t.company)||[]}catch(a){return[]}},s=async e=>{var t;try{if(!e.getV1InventoryItems)throw new Error("getV1InventoryItems not available in API client");const a=await e.getV1InventoryItems({skip:0,limit:999,filters:"(type.eq=inventory|type.eq=assembly&is_variant.eq=false|self_variant.eq=true)"});return(null==(t=null==a?void 0:a.data)?void 0:t.inventoryItemsList)||[]}catch(a){return[]}},i=async e=>{var t;try{if(!e.getV1WarehouseLocation)throw new Error("getV1WarehouseLocation not available in API client");const a=await e.getV1WarehouseLocation({skip:0,limit:999});return(null==(t=null==a?void 0:a.data)?void 0:t.warehouseLocationList)||[]}catch(a){return[]}},n=async e=>{var t;try{if(!e.getV1AssemblyItems)throw new Error("getV1AssemblyItems not available in API client");const a=await e.getV1AssemblyItems({skip:0,limit:999});return(null==(t=null==a?void 0:a.data)?void 0:t.assemblyItemsList)||[]}catch(a){return[]}},l=async e=>{var t;try{const a=await e.getV1BillsOfMaterials({skip:0,limit:99999});return(null==(t=null==a?void 0:a.data)?void 0:t.bom_list)||[]}catch(a){return[]}},c=e.createSlice({name:"inventoryReportsTitleBar",initialState:t,reducers:{setCompanies:(e,t)=>{e.companies=t.payload},setItems:(e,t)=>{e.items=t.payload},setWarehouseLocations:(e,t)=>{e.warehouseLocations=t.payload},setAssemblyItems:(e,t)=>{e.assemblyItems=t.payload},setBomData:(e,t)=>{e.bomData=t.payload},setLoading:(e,t)=>{e.isLoading=t.payload},setError:(e,t)=>{e.error=t.payload,e.isError=!!t.payload},resetInventoryReportsTitleBarState:e=>{Object.assign(e,t)}},extraReducers:e=>{e.addCase(a.pending,e=>{e.companies=[],e.items=[],e.warehouseLocations=[],e.assemblyItems=[],e.isLoading=!0,e.error="",e.isError=!1}),e.addCase(a.fulfilled,(e,t)=>{var a,r,o,s;e.companies=(null==(a=t.payload)?void 0:a.c)||[],e.items=(null==(r=t.payload)?void 0:r.i)||[],e.warehouseLocations=(null==(o=t.payload)?void 0:o.wl)||[],e.assemblyItems=(null==(s=t.payload)?void 0:s.ai)||[],e.isLoading=!1,e.isError=!1,e.error=""}),e.addCase(a.rejected,(e,t)=>{e.isLoading=!1,e.error=t.error.message||"Failed to fetch options",e.isError=!0}),e.addCase(r.fulfilled,(e,t)=>{var a;e.bomData=(null==(a=t.payload)?void 0:a.bom)||[]}),e.addCase(r.rejected,(e,t)=>{e.error=t.error.message||"Failed to fetch BOM data",e.isError=!0})}}),{setItems:d,setWarehouseLocations:m,setAssemblyItems:y,setBomData:u,resetInventoryReportsTitleBarState:p}=c.actions;var v=c.reducer;exports.default=v,exports.fetchBom=r,exports.fetchOptions=a,exports.inventoryReportsTitleBarSlice=c,exports.resetInventoryReportsTitleBarState=p,exports.setAssemblyItems=y,exports.setBomData=u,exports.setItems=d,exports.setWarehouseLocations=m;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/redux/slices/inventoryReportsTitleBarSlice.ts"],"sourcesContent":["import { createSlice, createAsyncThunk } from \"@reduxjs/toolkit\";\nimport { InventoryReportsTitleBarState } from \"../types\";\n\n// Initial state\nconst initialState: InventoryReportsTitleBarState = {\n companies: [],\n items: [],\n warehouseLocations: [],\n isLoading: true,\n assemblyItems: [],\n bomData: [],\n error: \"\",\n isError: false,\n};\n\n// Async thunk for fetching all options\nexport const fetchOptions = createAsyncThunk(\n \"inventoryReportsTitleBar/fetchOptions\",\n async (_, { extra }: any) => {\n if (!extra?.apiClient) {\n throw new Error(\"API client not configured for inventory reports title bar slice\");\n }\n \n const { apiClient } = extra;\n \n // Fetch all data in parallel\n const [i, c, wl, ai] = await Promise.all([\n handleFetchItem(apiClient),\n handleFetchCompanies(apiClient),\n handleFetchWarehouseLocations(apiClient),\n fetchAssemblyItems(apiClient),\n ]);\n \n return { i, c, wl, ai };\n }\n);\n\nexport const fetchBom = createAsyncThunk(\n \"inventoryReportsTitleBar/fetchBom\",\n async (_, { extra }: any) => {\n if (!extra?.apiClient?.getV1BillsOfMaterials) {\n throw new Error(\"API client not configured for BOM fetch\");\n }\n const bom = await fetchBomData(extra.apiClient);\n return { bom };\n }\n);\n\n// Helper functions\nconst handleFetchCompanies = async (apiClient: any) => {\n try {\n if (!apiClient.getV1Company) {\n throw new Error(\"getV1Company not available in API client\");\n }\n const response = await apiClient.getV1Company();\n return response?.data?.company || [];\n } catch (error) {\n console.error(\"Error fetching companies:\", error);\n return [];\n }\n};\n\nconst handleFetchItem = async (apiClient: any) => {\n try {\n if (!apiClient.getV1InventoryItems) {\n throw new Error(\"getV1InventoryItems not available in API client\");\n }\n const response = await apiClient.getV1InventoryItems({\n skip: 0,\n limit: 999,\n filters: `(type.eq=inventory|type.eq=assembly&is_variant.eq=false|self_variant.eq=true)`,\n });\n return response?.data?.inventoryItemsList || [];\n } catch (error) {\n console.error(\"Error fetching items:\", error);\n return [];\n }\n};\n\nconst handleFetchWarehouseLocations = async (apiClient: any) => {\n try {\n if (!apiClient.getV1WarehouseLocation) {\n throw new Error(\"getV1WarehouseLocation not available in API client\");\n }\n const response = await apiClient.getV1WarehouseLocation({\n skip: 0,\n limit: 999,\n });\n return response?.data?.warehouseLocationList || [];\n } catch (error) {\n console.error(\"Error fetching warehouse locations:\", error);\n return [];\n }\n};\n\nconst fetchAssemblyItems = async (apiClient: any) => {\n try {\n if (!apiClient.getV1AssemblyItems) {\n throw new Error(\"getV1AssemblyItems not available in API client\");\n }\n const response = await apiClient.getV1AssemblyItems({\n skip: 0,\n limit: 999,\n });\n return response?.data?.assemblyItemsList || [];\n } catch (error) {\n console.error(\"Error fetching assembly items:\", error);\n return [];\n }\n};\n\nconst fetchBomData = async (apiClient: any) => {\n try {\n const response = await apiClient.getV1BillsOfMaterials({\n skip: 0,\n limit: 99999,\n });\n return response?.data?.bom_list || [];\n } catch (error) {\n console.error(\"Error fetching BOM data:\", error);\n return [];\n }\n};\n\nexport const inventoryReportsTitleBarSlice = createSlice({\n name: \"inventoryReportsTitleBar\",\n initialState,\n reducers: {\n setCompanies: (state, action) => {\n state.companies = action.payload;\n },\n setItems: (state, action) => {\n state.items = action.payload;\n },\n setWarehouseLocations: (state, action) => {\n state.warehouseLocations = action.payload;\n },\n setAssemblyItems: (state, action) => {\n state.assemblyItems = action.payload;\n },\n setBomData: (state, action) => {\n state.bomData = action.payload;\n },\n setLoading: (state, action) => {\n state.isLoading = action.payload;\n },\n setError: (state, action) => {\n state.error = action.payload;\n state.isError = !!action.payload;\n },\n resetInventoryReportsTitleBarState: (state) => {\n Object.assign(state, initialState);\n },\n },\n extraReducers: (builder) => {\n /*-------------------------------- fetch options Pending State ---------------------------------*/\n builder.addCase(fetchOptions.pending, (state) => {\n state.companies = [];\n state.items = [];\n state.warehouseLocations = [];\n state.assemblyItems = [];\n state.isLoading = true;\n state.error = \"\";\n state.isError = false;\n });\n \n builder.addCase(fetchOptions.fulfilled, (state, action) => {\n state.companies = action.payload?.c || [];\n state.items = action.payload?.i || [];\n state.warehouseLocations = action.payload?.wl || [];\n state.assemblyItems = action.payload?.ai || [];\n state.isLoading = false;\n state.isError = false;\n state.error = \"\";\n });\n \n builder.addCase(fetchOptions.rejected, (state, action) => {\n state.isLoading = false;\n state.error = action.error.message || \"Failed to fetch options\";\n state.isError = true;\n });\n \n builder.addCase(fetchBom.fulfilled, (state, action) => {\n state.bomData = action.payload?.bom || [];\n });\n \n builder.addCase(fetchBom.rejected, (state, action) => {\n state.error = action.error.message || \"Failed to fetch BOM data\";\n state.isError = true;\n });\n },\n});\n\nexport const { \n setCompanies, \n setItems, \n setWarehouseLocations, \n setAssemblyItems, \n setBomData, \n setLoading, \n setError, \n resetInventoryReportsTitleBarState \n} = inventoryReportsTitleBarSlice.actions;\n\nexport default inventoryReportsTitleBarSlice.reducer;"],"names":["initialState","companies","items","warehouseLocations","isLoading","assemblyItems","bomData","error","isError","fetchOptions","createAsyncThunk","async","_","extra","apiClient","Error","i","c","wl","ai","Promise","all","handleFetchItem","handleFetchCompanies","handleFetchWarehouseLocations","fetchAssemblyItems","fetchBom","_a","getV1BillsOfMaterials","bom","fetchBomData","getV1Company","response","data","company","getV1InventoryItems","skip","limit","filters","inventoryItemsList","getV1WarehouseLocation","warehouseLocationList","getV1AssemblyItems","assemblyItemsList","bom_list","inventoryReportsTitleBarSlice","createSlice","name","reducers","setCompanies","state","action","payload","setItems","setWarehouseLocations","setAssemblyItems","setBomData","setLoading","setError","resetInventoryReportsTitleBarState","Object","assign","extraReducers","builder","addCase","pending","fulfilled","_b","_c","_d","rejected","message","actions","inventoryReportsTitleBarSlice$1","reducer"],"mappings":"sGAIA,MAAMA,EAA8C,CAClDC,UAAW,GACXC,MAAO,GACPC,mBAAoB,GACpBC,WAAW,EACXC,cAAe,GACfC,QAAS,GACTC,MAAO,GACPC,SAAS,GAIEC,EAAeC,EAAAA,iBAC1B,wCACAC,MAAOC,GAAKC,YACV,WAAKA,WAAOC,WACV,MAAM,IAAIC,MAAM,mEAGlB,MAAMD,UAAEA,GAAcD,GAGfG,EAAGC,EAAGC,EAAIC,SAAYC,QAAQC,IAAI,CACvCC,EAAgBR,GAChBS,EAAqBT,GACrBU,EAA8BV,GAC9BW,EAAmBX,KAGrB,MAAO,CAAEE,IAAGC,IAAGC,KAAIC,QAIVO,EAAWhB,EAAAA,iBACtB,oCACAC,MAAOC,GAAKC,kBACV,KAAK,OAAAc,EAAA,MAAAd,OAAA,EAAAA,EAAOC,gBAAP,EAAAa,EAAkBC,uBACrB,MAAM,IAAIb,MAAM,2CAGlB,MAAO,CAAEc,UADSC,EAAajB,EAAMC,cAMnCS,EAAuBZ,MAAOG,UAClC,IACE,IAAKA,EAAUiB,aACb,MAAM,IAAIhB,MAAM,4CAElB,MAAMiB,QAAiBlB,EAAUiB,eACjC,OAAO,OAAAJ,EAAA,MAAAK,OAAA,EAAAA,EAAUC,WAAV,EA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AAOC,WAC1CD,EAAM5C,SAAU,OAAAqB,EAAAwB,EAAOC,cAAP,EAAAzB,EAAgBE,MAAO,KAGzCkC,EAAQC,QAAQtC,EAAS4C,SAAU,CAACpB,EAAOC,KACzCD,EAAM3C,MAAQ4C,EAAO5C,MAAMgE,SAAW,2BACtCrB,EAAM1C,SAAU,QAKTyC,aACXA,EAAAI,SACAA,EAAAC,sBACAA,EAAAC,iBACAA,EAAAC,WACAA,EAAAC,WACAA,EAAAC,SACAA,EAAAC,mCACAA,GACEd,EAA8B2B,QAElC,IAAAC,EAAe5B,EAA8B6B"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/redux/slices/inventoryReportsTitleBarSlice.ts"],"sourcesContent":["import { createSlice, createAsyncThunk } from \"@reduxjs/toolkit\";\nimport { InventoryReportsTitleBarState } from \"../types\";\n\n// Initial state\nconst initialState: InventoryReportsTitleBarState = {\n companies: [],\n items: [],\n warehouseLocations: [],\n isLoading: true,\n assemblyItems: [],\n bomData: [],\n error: \"\",\n isError: false,\n};\n\n// Async thunk for fetching all options\nexport const fetchOptions = createAsyncThunk(\n \"inventoryReportsTitleBar/fetchOptions\",\n async (_, { extra }: any) => {\n if (!extra?.apiClient) {\n throw new Error(\"API client not configured for inventory reports title bar slice\");\n }\n \n const { apiClient } = extra;\n \n // Fetch all data in parallel\n const [i, c, wl, ai] = await Promise.all([\n handleFetchItem(apiClient),\n handleFetchCompanies(apiClient),\n handleFetchWarehouseLocations(apiClient),\n fetchAssemblyItems(apiClient),\n ]);\n \n return { i, c, wl, ai };\n }\n);\n\nexport const fetchBom = createAsyncThunk(\n \"inventoryReportsTitleBar/fetchBom\",\n async (_, { extra }: any) => {\n if (!extra?.apiClient?.getV1BillsOfMaterials) {\n throw new Error(\"API client not configured for BOM fetch\");\n }\n const bom = await fetchBomData(extra.apiClient);\n return { bom };\n }\n);\n\n// Helper functions\nconst handleFetchCompanies = async (apiClient: any) => {\n try {\n if (!apiClient.getV1Company) {\n throw new Error(\"getV1Company not available in API client\");\n }\n const response = await apiClient.getV1Company();\n return response?.data?.company || [];\n } catch (error) {\n console.error(\"Error fetching companies:\", error);\n return [];\n }\n};\n\nconst handleFetchItem = async (apiClient: any) => {\n try {\n if (!apiClient.getV1InventoryItems) {\n throw new Error(\"getV1InventoryItems not available in API client\");\n }\n const response = await apiClient.getV1InventoryItems({\n skip: 0,\n limit: 999,\n filters: `(type.eq=inventory|type.eq=assembly&is_variant.eq=false|self_variant.eq=true)`,\n });\n return response?.data?.inventoryItemsList || [];\n } catch (error) {\n console.error(\"Error fetching items:\", error);\n return [];\n }\n};\n\nconst handleFetchWarehouseLocations = async (apiClient: any) => {\n try {\n if (!apiClient.getV1WarehouseLocation) {\n throw new Error(\"getV1WarehouseLocation not available in API client\");\n }\n const response = await apiClient.getV1WarehouseLocation({\n skip: 0,\n limit: 999,\n });\n return response?.data?.warehouseLocationList || [];\n } catch (error) {\n console.error(\"Error fetching warehouse locations:\", error);\n return [];\n }\n};\n\nconst fetchAssemblyItems = async (apiClient: any) => {\n try {\n if (!apiClient.getV1AssemblyItems) {\n throw new Error(\"getV1AssemblyItems not available in API client\");\n }\n const response = await apiClient.getV1AssemblyItems({\n skip: 0,\n limit: 999,\n });\n return response?.data?.assemblyItemsList || [];\n } catch (error) {\n console.error(\"Error fetching assembly items:\", error);\n return [];\n }\n};\n\nconst fetchBomData = async (apiClient: any) => {\n try {\n const response = await apiClient.getV1BillsOfMaterials({\n skip: 0,\n limit: 99999,\n });\n return response?.data?.bom_list || [];\n } catch (error) {\n console.error(\"Error fetching BOM data:\", error);\n return [];\n }\n};\n\nexport const inventoryReportsTitleBarSlice = createSlice({\n name: \"inventoryReportsTitleBar\",\n initialState,\n reducers: {\n setCompanies: (state, action) => {\n state.companies = action.payload;\n },\n setItems: (state, action) => {\n state.items = action.payload;\n },\n setWarehouseLocations: (state, action) => {\n state.warehouseLocations = action.payload;\n },\n setAssemblyItems: (state, action) => {\n state.assemblyItems = action.payload;\n },\n setBomData: (state, action) => {\n state.bomData = action.payload;\n },\n setLoading: (state, action) => {\n state.isLoading = action.payload;\n },\n setError: (state, action) => {\n state.error = action.payload;\n state.isError = !!action.payload;\n },\n resetInventoryReportsTitleBarState: (state) => {\n Object.assign(state, initialState);\n },\n },\n extraReducers: (builder) => {\n /*-------------------------------- fetch options Pending State ---------------------------------*/\n builder.addCase(fetchOptions.pending, (state) => {\n state.companies = [];\n state.items = [];\n state.warehouseLocations = [];\n state.assemblyItems = [];\n state.isLoading = true;\n state.error = \"\";\n state.isError = false;\n });\n \n builder.addCase(fetchOptions.fulfilled, (state, action) => {\n state.companies = action.payload?.c || [];\n state.items = action.payload?.i || [];\n state.warehouseLocations = action.payload?.wl || [];\n state.assemblyItems = action.payload?.ai || [];\n state.isLoading = false;\n state.isError = false;\n state.error = \"\";\n });\n \n builder.addCase(fetchOptions.rejected, (state, action) => {\n state.isLoading = false;\n state.error = action.error.message || \"Failed to fetch options\";\n state.isError = true;\n });\n \n builder.addCase(fetchBom.fulfilled, (state, action) => {\n state.bomData = action.payload?.bom || [];\n });\n \n builder.addCase(fetchBom.rejected, (state, action) => {\n state.error = action.error.message || \"Failed to fetch BOM data\";\n state.isError = true;\n });\n },\n});\n\nexport const { \n setCompanies, \n setItems, \n setWarehouseLocations, \n setAssemblyItems, \n setBomData, \n setLoading, \n setError, \n resetInventoryReportsTitleBarState \n} = inventoryReportsTitleBarSlice.actions;\n\nexport default inventoryReportsTitleBarSlice.reducer;"],"names":["initialState","companies","items","warehouseLocations","isLoading","assemblyItems","bomData","error","isError","fetchOptions","createAsyncThunk","async","_","extra","apiClient","Error","i","c","wl","ai","Promise","all","handleFetchItem","handleFetchCompanies","handleFetchWarehouseLocations","fetchAssemblyItems","fetchBom","_a","getV1BillsOfMaterials","bom","fetchBomData","getV1Company","response","data","company","getV1InventoryItems","skip","limit","filters","inventoryItemsList","getV1WarehouseLocation","warehouseLocationList","getV1AssemblyItems","assemblyItemsList","bom_list","inventoryReportsTitleBarSlice","createSlice","name","reducers","setCompanies","state","action","payload","setItems","setWarehouseLocations","setAssemblyItems","setBomData","setLoading","setError","resetInventoryReportsTitleBarState","Object","assign","extraReducers","builder","addCase","pending","fulfilled","_b","_c","_d","rejected","message","actions","inventoryReportsTitleBarSlice$1","reducer"],"mappings":"sGAIA,MAAMA,EAA8C,CAClDC,UAAW,GACXC,MAAO,GACPC,mBAAoB,GACpBC,WAAW,EACXC,cAAe,GACfC,QAAS,GACTC,MAAO,GACPC,SAAS,GAIEC,EAAeC,EAAAA,iBAC1B,wCACAC,MAAOC,GAAKC,YACV,WAAKA,WAAOC,WACV,MAAM,IAAIC,MAAM,mEAGlB,MAAMD,UAAEA,GAAcD,GAGfG,EAAGC,EAAGC,EAAIC,SAAYC,QAAQC,IAAI,CACvCC,EAAgBR,GAChBS,EAAqBT,GACrBU,EAA8BV,GAC9BW,EAAmBX,KAGrB,MAAO,CAAEE,IAAGC,IAAGC,KAAIC,QAIVO,EAAWhB,EAAAA,iBACtB,oCACAC,MAAOC,GAAKC,kBACV,KAAK,OAAAc,EAAA,MAAAd,OAAA,EAAAA,EAAOC,gBAAP,EAAAa,EAAkBC,uBACrB,MAAM,IAAIb,MAAM,2CAGlB,MAAO,CAAEc,UADSC,EAAajB,EAAMC,cAMnCS,EAAuBZ,MAAOG,UAClC,IACE,IAAKA,EAAUiB,aACb,MAAM,IAAIhB,MAAM,4CAElB,MAAMiB,QAAiBlB,EAAUiB,eACjC,OAAO,OAAAJ,EAAA,MAAAK,OAAA,EAAAA,EAAUC,WAAV,EAAAN,EAAgBO,UAAW,EACpC,OAAS3B,GAEP,MAAO,EACT,GAGIe,EAAkBX,MAAOG,UAC7B,IACE,IAAKA,EAAUqB,oBACb,MAAM,IAAIpB,MAAM,mDAElB,MAAMiB,QAAiBlB,EAAUqB,oBAAoB,CACnDC,KAAM,EACNC,MAAO,IACPC,QAAS,kFAEX,OAAO,OAAAX,EAAA,MAAAK,OAAA,EAAAA,EAAUC,WAAV,EAAAN,EAA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AA,GACEd,EAA8B2B,QAElC,IAAAC,EAAe5B,EAA8B6B"}
|
|
@@ -56,9 +56,6 @@ const reportsTitleBarSlice = createSlice({
|
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
58
|
const {
|
|
59
|
-
setCompanies,
|
|
60
|
-
setLoading,
|
|
61
|
-
setError,
|
|
62
59
|
resetReportsTitleBarState
|
|
63
60
|
} = reportsTitleBarSlice.actions;
|
|
64
61
|
var reportsTitleBarSlice$1 = reportsTitleBarSlice.reducer;
|
|
@@ -66,9 +63,6 @@ export {
|
|
|
66
63
|
reportsTitleBarSlice$1 as default,
|
|
67
64
|
fetchCompanies,
|
|
68
65
|
reportsTitleBarSlice,
|
|
69
|
-
resetReportsTitleBarState
|
|
70
|
-
setCompanies,
|
|
71
|
-
setError,
|
|
72
|
-
setLoading
|
|
66
|
+
resetReportsTitleBarState
|
|
73
67
|
};
|
|
74
68
|
//# sourceMappingURL=index.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../../../../src/redux/slices/reportsTitleBarSlice.ts"],"sourcesContent":["import { createSlice, createAsyncThunk } from \"@reduxjs/toolkit\";\nimport { ReportsTitleBarState } from \"../types\";\n\n// Initial state\nconst initialState: ReportsTitleBarState = {\n companies: [],\n isLoading: true,\n error: \"\",\n isError: false,\n};\n\n// Async thunk for fetching companies\nexport const fetchCompanies = createAsyncThunk(\n \"reportsTitleBar/fetchCompanies\",\n async (_, { extra }: any) => {\n if (!extra?.apiClient?.getV1Company) {\n throw new Error(\"API client not configured for reports title bar slice\");\n }\n const response = await extra.apiClient.getV1Company();\n return response;\n }\n);\n\nexport const reportsTitleBarSlice = createSlice({\n name: \"reportsTitleBar\",\n initialState,\n reducers: {\n setCompanies: (state, action) => {\n state.companies = action.payload;\n },\n setLoading: (state, action) => {\n state.isLoading = action.payload;\n },\n setError: (state, action) => {\n state.error = action.payload;\n state.isError = !!action.payload;\n },\n resetReportsTitleBarState: (state) => {\n Object.assign(state, initialState);\n },\n },\n extraReducers: (builder) => {\n /*-------------------------------- fetch companies Pending State ---------------------------------*/\n builder.addCase(fetchCompanies.pending, (state) => {\n state.isLoading = true;\n state.error = \"\";\n state.companies = [];\n state.isError = false;\n });\n \n builder.addCase(fetchCompanies.fulfilled, (state, action) => {\n state.companies = action.payload?.data?.company || [];\n state.isLoading = false;\n state.isError = false;\n state.error = \"\";\n });\n \n builder.addCase(fetchCompanies.rejected, (state, action) => {\n state.isLoading = false;\n state.error = action.error.message || \"Failed to fetch companies\";\n state.isError = true;\n });\n },\n});\n\nexport const { \n setCompanies, \n setLoading, \n setError, \n resetReportsTitleBarState \n} = reportsTitleBarSlice.actions;\n\nexport default reportsTitleBarSlice.reducer;"],"names":[],"mappings":";AAIA,MAAM,eAAqC;AAAA,EACzC,WAAW,CAAA;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AAAA,EACP,SAAS;AACX;AAGO,MAAM,iBAAiB;AAAA,EAC5B;AAAA,EACA,OAAO,GAAG,EAAE,YAAiB;;AAC3B,QAAI,GAAC,oCAAO,cAAP,mBAAkB,eAAc;AACnC,YAAM,IAAI,MAAM,uDAAuD;AAAA,IACzE;AACA,UAAM,WAAW,MAAM,MAAM,UAAU,aAAA;AACvC,WAAO;AAAA,EACT;AACF;AAEO,MAAM,uBAAuB,YAAY;AAAA,EAC9C,MAAM;AAAA,EACN;AAAA,EACA,UAAU;AAAA,IACR,cAAc,CAAC,OAAO,WAAW;AAC/B,YAAM,YAAY,OAAO;AAAA,IAC3B;AAAA,IACA,YAAY,CAAC,OAAO,WAAW;AAC7B,YAAM,YAAY,OAAO;AAAA,IAC3B;AAAA,IACA,UAAU,CAAC,OAAO,WAAW;AAC3B,YAAM,QAAQ,OAAO;AACrB,YAAM,UAAU,CAAC,CAAC,OAAO;AAAA,IAC3B;AAAA,IACA,2BAA2B,CAAC,UAAU;AACpC,aAAO,OAAO,OAAO,YAAY;AAAA,IACnC;AAAA,EAAA;AAAA,EAEF,eAAe,CAAC,YAAY;AAE1B,YAAQ,QAAQ,eAAe,SAAS,CAAC,UAAU;AACjD,YAAM,YAAY;AAClB,YAAM,QAAQ;AACd,YAAM,YAAY,CAAA;AAClB,YAAM,UAAU;AAAA,IAClB,CAAC;AAED,YAAQ,QAAQ,eAAe,WAAW,CAAC,OAAO,WAAW;;AAC3D,YAAM,cAAY,kBAAO,YAAP,mBAAgB,SAAhB,mBAAsB,YAAW,CAAA;AACnD,YAAM,YAAY;AAClB,YAAM,UAAU;AAChB,YAAM,QAAQ;AAAA,IAChB,CAAC;AAED,YAAQ,QAAQ,eAAe,UAAU,CAAC,OAAO,WAAW;AAC1D,YAAM,YAAY;AAClB,YAAM,QAAQ,OAAO,MAAM,WAAW;AACtC,YAAM,UAAU;AAAA,IAClB,CAAC;AAAA,EACH;AACF,CAAC;AAEM,MAAM;AAAA,
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../../../src/redux/slices/reportsTitleBarSlice.ts"],"sourcesContent":["import { createSlice, createAsyncThunk } from \"@reduxjs/toolkit\";\nimport { ReportsTitleBarState } from \"../types\";\n\n// Initial state\nconst initialState: ReportsTitleBarState = {\n companies: [],\n isLoading: true,\n error: \"\",\n isError: false,\n};\n\n// Async thunk for fetching companies\nexport const fetchCompanies = createAsyncThunk(\n \"reportsTitleBar/fetchCompanies\",\n async (_, { extra }: any) => {\n if (!extra?.apiClient?.getV1Company) {\n throw new Error(\"API client not configured for reports title bar slice\");\n }\n const response = await extra.apiClient.getV1Company();\n return response;\n }\n);\n\nexport const reportsTitleBarSlice = createSlice({\n name: \"reportsTitleBar\",\n initialState,\n reducers: {\n setCompanies: (state, action) => {\n state.companies = action.payload;\n },\n setLoading: (state, action) => {\n state.isLoading = action.payload;\n },\n setError: (state, action) => {\n state.error = action.payload;\n state.isError = !!action.payload;\n },\n resetReportsTitleBarState: (state) => {\n Object.assign(state, initialState);\n },\n },\n extraReducers: (builder) => {\n /*-------------------------------- fetch companies Pending State ---------------------------------*/\n builder.addCase(fetchCompanies.pending, (state) => {\n state.isLoading = true;\n state.error = \"\";\n state.companies = [];\n state.isError = false;\n });\n \n builder.addCase(fetchCompanies.fulfilled, (state, action) => {\n state.companies = action.payload?.data?.company || [];\n state.isLoading = false;\n state.isError = false;\n state.error = \"\";\n });\n \n builder.addCase(fetchCompanies.rejected, (state, action) => {\n state.isLoading = false;\n state.error = action.error.message || \"Failed to fetch companies\";\n state.isError = true;\n });\n },\n});\n\nexport const { \n setCompanies, \n setLoading, \n setError, \n resetReportsTitleBarState \n} = reportsTitleBarSlice.actions;\n\nexport default reportsTitleBarSlice.reducer;"],"names":[],"mappings":";AAIA,MAAM,eAAqC;AAAA,EACzC,WAAW,CAAA;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AAAA,EACP,SAAS;AACX;AAGO,MAAM,iBAAiB;AAAA,EAC5B;AAAA,EACA,OAAO,GAAG,EAAE,YAAiB;;AAC3B,QAAI,GAAC,oCAAO,cAAP,mBAAkB,eAAc;AACnC,YAAM,IAAI,MAAM,uDAAuD;AAAA,IACzE;AACA,UAAM,WAAW,MAAM,MAAM,UAAU,aAAA;AACvC,WAAO;AAAA,EACT;AACF;AAEO,MAAM,uBAAuB,YAAY;AAAA,EAC9C,MAAM;AAAA,EACN;AAAA,EACA,UAAU;AAAA,IACR,cAAc,CAAC,OAAO,WAAW;AAC/B,YAAM,YAAY,OAAO;AAAA,IAC3B;AAAA,IACA,YAAY,CAAC,OAAO,WAAW;AAC7B,YAAM,YAAY,OAAO;AAAA,IAC3B;AAAA,IACA,UAAU,CAAC,OAAO,WAAW;AAC3B,YAAM,QAAQ,OAAO;AACrB,YAAM,UAAU,CAAC,CAAC,OAAO;AAAA,IAC3B;AAAA,IACA,2BAA2B,CAAC,UAAU;AACpC,aAAO,OAAO,OAAO,YAAY;AAAA,IACnC;AAAA,EAAA;AAAA,EAEF,eAAe,CAAC,YAAY;AAE1B,YAAQ,QAAQ,eAAe,SAAS,CAAC,UAAU;AACjD,YAAM,YAAY;AAClB,YAAM,QAAQ;AACd,YAAM,YAAY,CAAA;AAClB,YAAM,UAAU;AAAA,IAClB,CAAC;AAED,YAAQ,QAAQ,eAAe,WAAW,CAAC,OAAO,WAAW;;AAC3D,YAAM,cAAY,kBAAO,YAAP,mBAAgB,SAAhB,mBAAsB,YAAW,CAAA;AACnD,YAAM,YAAY;AAClB,YAAM,UAAU;AAChB,YAAM,QAAQ;AAAA,IAChB,CAAC;AAED,YAAQ,QAAQ,eAAe,UAAU,CAAC,OAAO,WAAW;AAC1D,YAAM,YAAY;AAClB,YAAM,QAAQ,OAAO,MAAM,WAAW;AACtC,YAAM,UAAU;AAAA,IAClB,CAAC;AAAA,EACH;AACF,CAAC;AAEM,MAAM;AAAA,EAIX;AACF,IAAI,qBAAqB;AAEzB,IAAA,yBAAe,qBAAqB;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@reduxjs/toolkit");const r={companies:[],isLoading:!0,error:"",isError:!1},
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@reduxjs/toolkit");const r={companies:[],isLoading:!0,error:"",isError:!1},a=e.createAsyncThunk("reportsTitleBar/fetchCompanies",async(e,{extra:r})=>{var a;if(!(null==(a=null==r?void 0:r.apiClient)?void 0:a.getV1Company))throw new Error("API client not configured for reports title bar slice");return await r.apiClient.getV1Company()}),t=e.createSlice({name:"reportsTitleBar",initialState:r,reducers:{setCompanies:(e,r)=>{e.companies=r.payload},setLoading:(e,r)=>{e.isLoading=r.payload},setError:(e,r)=>{e.error=r.payload,e.isError=!!r.payload},resetReportsTitleBarState:e=>{Object.assign(e,r)}},extraReducers:e=>{e.addCase(a.pending,e=>{e.isLoading=!0,e.error="",e.companies=[],e.isError=!1}),e.addCase(a.fulfilled,(e,r)=>{var a,t;e.companies=(null==(t=null==(a=r.payload)?void 0:a.data)?void 0:t.company)||[],e.isLoading=!1,e.isError=!1,e.error=""}),e.addCase(a.rejected,(e,r)=>{e.isLoading=!1,e.error=r.error.message||"Failed to fetch companies",e.isError=!0})}}),{resetReportsTitleBarState:o}=t.actions;var i=t.reducer;exports.default=i,exports.fetchCompanies=a,exports.reportsTitleBarSlice=t,exports.resetReportsTitleBarState=o;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/redux/slices/reportsTitleBarSlice.ts"],"sourcesContent":["import { createSlice, createAsyncThunk } from \"@reduxjs/toolkit\";\nimport { ReportsTitleBarState } from \"../types\";\n\n// Initial state\nconst initialState: ReportsTitleBarState = {\n companies: [],\n isLoading: true,\n error: \"\",\n isError: false,\n};\n\n// Async thunk for fetching companies\nexport const fetchCompanies = createAsyncThunk(\n \"reportsTitleBar/fetchCompanies\",\n async (_, { extra }: any) => {\n if (!extra?.apiClient?.getV1Company) {\n throw new Error(\"API client not configured for reports title bar slice\");\n }\n const response = await extra.apiClient.getV1Company();\n return response;\n }\n);\n\nexport const reportsTitleBarSlice = createSlice({\n name: \"reportsTitleBar\",\n initialState,\n reducers: {\n setCompanies: (state, action) => {\n state.companies = action.payload;\n },\n setLoading: (state, action) => {\n state.isLoading = action.payload;\n },\n setError: (state, action) => {\n state.error = action.payload;\n state.isError = !!action.payload;\n },\n resetReportsTitleBarState: (state) => {\n Object.assign(state, initialState);\n },\n },\n extraReducers: (builder) => {\n /*-------------------------------- fetch companies Pending State ---------------------------------*/\n builder.addCase(fetchCompanies.pending, (state) => {\n state.isLoading = true;\n state.error = \"\";\n state.companies = [];\n state.isError = false;\n });\n \n builder.addCase(fetchCompanies.fulfilled, (state, action) => {\n state.companies = action.payload?.data?.company || [];\n state.isLoading = false;\n state.isError = false;\n state.error = \"\";\n });\n \n builder.addCase(fetchCompanies.rejected, (state, action) => {\n state.isLoading = false;\n state.error = action.error.message || \"Failed to fetch companies\";\n state.isError = true;\n });\n },\n});\n\nexport const { \n setCompanies, \n setLoading, \n setError, \n resetReportsTitleBarState \n} = reportsTitleBarSlice.actions;\n\nexport default reportsTitleBarSlice.reducer;"],"names":["initialState","companies","isLoading","error","isError","fetchCompanies","createAsyncThunk","async","_","extra","_a","apiClient","getV1Company","Error","reportsTitleBarSlice","createSlice","name","reducers","setCompanies","state","action","payload","setLoading","setError","resetReportsTitleBarState","Object","assign","extraReducers","builder","addCase","pending","fulfilled","_b","data","company","rejected","message","actions","reportsTitleBarSlice$1","reducer"],"mappings":"sGAIA,MAAMA,EAAqC,CACzCC,UAAW,GACXC,WAAW,EACXC,MAAO,GACPC,SAAS,GAIEC,EAAiBC,EAAAA,iBAC5B,iCACAC,MAAOC,GAAKC,kBACV,KAAK,OAAAC,EAAA,MAAAD,OAAA,EAAAA,EAAOE,gBAAP,EAAAD,EAAkBE,cACrB,MAAM,IAAIC,MAAM,yDAGlB,aADuBJ,EAAME,UAAUC,iBAK9BE,EAAuBC,EAAAA,YAAY,CAC9CC,KAAM,kBACNhB,eACAiB,SAAU,CACRC,aAAc,CAACC,EAAOC,KACpBD,EAAMlB,UAAYmB,EAAOC,SAE3BC,WAAY,CAACH,EAAOC,KAClBD,EAAMjB,UAAYkB,EAAOC,SAE3BE,SAAU,CAACJ,EAAOC,KAChBD,EAAMhB,MAAQiB,EAAOC,QACrBF,EAAMf,UAAYgB,EAAOC,SAE3BG,0BAA4BL,IAC1BM,OAAOC,OAAOP,EAAOnB,KAGzB2B,cAAgBC,IAEdA,EAAQC,QAAQxB,EAAeyB,QAAUX,IACvCA,EAAMjB,WAAY,EAClBiB,EAAMhB,MAAQ,GACdgB,EAAMlB,UAAY,GAClBkB,EAAMf,SAAU,IAGlBwB,EAAQC,QAAQxB,EAAe0B,UAAW,CAACZ,EAAOC,aAChDD,EAAMlB,WAAY,OAAA+B,EAAA,OAAAtB,EAAAU,EAAOC,kBAASY,WAAhB,EAAAD,EAAsBE,UAAW,GACnDf,EAAMjB,WAAY,EAClBiB,EAAMf,SAAU,EAChBe,EAAMhB,MAAQ,KAGhByB,EAAQC,QAAQxB,EAAe8B,SAAU,CAAChB,EAAOC,KAC/CD,EAAMjB,WAAY,EAClBiB,EAAMhB,MAAQiB,EAAOjB,MAAMiC,SAAW,4BACtCjB,EAAMf,SAAU,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/redux/slices/reportsTitleBarSlice.ts"],"sourcesContent":["import { createSlice, createAsyncThunk } from \"@reduxjs/toolkit\";\nimport { ReportsTitleBarState } from \"../types\";\n\n// Initial state\nconst initialState: ReportsTitleBarState = {\n companies: [],\n isLoading: true,\n error: \"\",\n isError: false,\n};\n\n// Async thunk for fetching companies\nexport const fetchCompanies = createAsyncThunk(\n \"reportsTitleBar/fetchCompanies\",\n async (_, { extra }: any) => {\n if (!extra?.apiClient?.getV1Company) {\n throw new Error(\"API client not configured for reports title bar slice\");\n }\n const response = await extra.apiClient.getV1Company();\n return response;\n }\n);\n\nexport const reportsTitleBarSlice = createSlice({\n name: \"reportsTitleBar\",\n initialState,\n reducers: {\n setCompanies: (state, action) => {\n state.companies = action.payload;\n },\n setLoading: (state, action) => {\n state.isLoading = action.payload;\n },\n setError: (state, action) => {\n state.error = action.payload;\n state.isError = !!action.payload;\n },\n resetReportsTitleBarState: (state) => {\n Object.assign(state, initialState);\n },\n },\n extraReducers: (builder) => {\n /*-------------------------------- fetch companies Pending State ---------------------------------*/\n builder.addCase(fetchCompanies.pending, (state) => {\n state.isLoading = true;\n state.error = \"\";\n state.companies = [];\n state.isError = false;\n });\n \n builder.addCase(fetchCompanies.fulfilled, (state, action) => {\n state.companies = action.payload?.data?.company || [];\n state.isLoading = false;\n state.isError = false;\n state.error = \"\";\n });\n \n builder.addCase(fetchCompanies.rejected, (state, action) => {\n state.isLoading = false;\n state.error = action.error.message || \"Failed to fetch companies\";\n state.isError = true;\n });\n },\n});\n\nexport const { \n setCompanies, \n setLoading, \n setError, \n resetReportsTitleBarState \n} = reportsTitleBarSlice.actions;\n\nexport default reportsTitleBarSlice.reducer;"],"names":["initialState","companies","isLoading","error","isError","fetchCompanies","createAsyncThunk","async","_","extra","_a","apiClient","getV1Company","Error","reportsTitleBarSlice","createSlice","name","reducers","setCompanies","state","action","payload","setLoading","setError","resetReportsTitleBarState","Object","assign","extraReducers","builder","addCase","pending","fulfilled","_b","data","company","rejected","message","actions","reportsTitleBarSlice$1","reducer"],"mappings":"sGAIA,MAAMA,EAAqC,CACzCC,UAAW,GACXC,WAAW,EACXC,MAAO,GACPC,SAAS,GAIEC,EAAiBC,EAAAA,iBAC5B,iCACAC,MAAOC,GAAKC,kBACV,KAAK,OAAAC,EAAA,MAAAD,OAAA,EAAAA,EAAOE,gBAAP,EAAAD,EAAkBE,cACrB,MAAM,IAAIC,MAAM,yDAGlB,aADuBJ,EAAME,UAAUC,iBAK9BE,EAAuBC,EAAAA,YAAY,CAC9CC,KAAM,kBACNhB,eACAiB,SAAU,CACRC,aAAc,CAACC,EAAOC,KACpBD,EAAMlB,UAAYmB,EAAOC,SAE3BC,WAAY,CAACH,EAAOC,KAClBD,EAAMjB,UAAYkB,EAAOC,SAE3BE,SAAU,CAACJ,EAAOC,KAChBD,EAAMhB,MAAQiB,EAAOC,QACrBF,EAAMf,UAAYgB,EAAOC,SAE3BG,0BAA4BL,IAC1BM,OAAOC,OAAOP,EAAOnB,KAGzB2B,cAAgBC,IAEdA,EAAQC,QAAQxB,EAAeyB,QAAUX,IACvCA,EAAMjB,WAAY,EAClBiB,EAAMhB,MAAQ,GACdgB,EAAMlB,UAAY,GAClBkB,EAAMf,SAAU,IAGlBwB,EAAQC,QAAQxB,EAAe0B,UAAW,CAACZ,EAAOC,aAChDD,EAAMlB,WAAY,OAAA+B,EAAA,OAAAtB,EAAAU,EAAOC,kBAASY,WAAhB,EAAAD,EAAsBE,UAAW,GACnDf,EAAMjB,WAAY,EAClBiB,EAAMf,SAAU,EAChBe,EAAMhB,MAAQ,KAGhByB,EAAQC,QAAQxB,EAAe8B,SAAU,CAAChB,EAAOC,KAC/CD,EAAMjB,WAAY,EAClBiB,EAAMhB,MAAQiB,EAAOjB,MAAMiC,SAAW,4BACtCjB,EAAMf,SAAU,QAKToB,0BAIXA,GACEV,EAAqBuB,QAEzB,IAAAC,EAAexB,EAAqByB"}
|
|
@@ -102,15 +102,13 @@ const shareSlice = createSlice({
|
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
104
|
});
|
|
105
|
-
const { setUsers, setDepartments,
|
|
105
|
+
const { setUsers, setDepartments, resetState } = shareSlice.actions;
|
|
106
106
|
var shareSlice$1 = shareSlice.reducer;
|
|
107
107
|
export {
|
|
108
108
|
shareSlice$1 as default,
|
|
109
109
|
getAllUserAndDepartmentDropdown,
|
|
110
110
|
resetState,
|
|
111
111
|
setDepartments,
|
|
112
|
-
setError,
|
|
113
|
-
setLoading,
|
|
114
112
|
setUsers,
|
|
115
113
|
sharePage,
|
|
116
114
|
shareSlice
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../../../../src/redux/slices/shareSlice.ts"],"sourcesContent":["import { createSlice, createAsyncThunk } from \"@reduxjs/toolkit\";\nimport { ShareState } from \"../types\";\n\n// Initial state\nconst initialState: ShareState = {\n users: [],\n departments: [],\n loading: true,\n error: \"\",\n isError: false,\n};\n\n// Async thunk for getting user and department dropdown\n// Note: This will need to be configured by the consuming application\nexport const getAllUserAndDepartmentDropdown = createAsyncThunk(\n \"share/getUser\",\n async (_, { extra }: any) => {\n // The consuming application should provide the API client in the extra field\n if (!extra?.apiClient?.getV1PagesUserList) {\n throw new Error(\"API client not configured for share slice\");\n }\n const response = await extra.apiClient.getV1PagesUserList();\n return response;\n },\n);\n\nexport const sharePage = createAsyncThunk(\n \"share/sharePage\",\n async (data: any, { extra }: any) => {\n if (!extra?.apiClient?.postV1PagesShare) {\n throw new Error(\"API client not configured for share slice\");\n }\n const response = await extra.apiClient.postV1PagesShare(data);\n return response;\n },\n);\n\nexport const shareSlice = createSlice({\n name: \"share\",\n initialState,\n reducers: {\n // Synchronous actions for direct state updates\n setUsers: (state, action) => {\n state.users = action.payload;\n },\n setDepartments: (state, action) => {\n state.departments = action.payload;\n },\n setLoading: (state, action) => {\n state.loading = action.payload;\n },\n setError: (state, action) => {\n state.error = action.payload;\n state.isError = !!action.payload;\n },\n resetState: (state) => {\n Object.assign(state, initialState);\n },\n },\n extraReducers: (builder) => {\n /*-------------------------------- get share drive Pending State ---------------------------------*/\n builder.addCase(getAllUserAndDepartmentDropdown.pending, (state) => {\n state.loading = true;\n state.error = \"\";\n state.users = [];\n state.departments = [];\n state.isError = false;\n });\n\n /*-------------------------------- get share drive fulfilled State ---------------------------------*/\n builder.addCase(\n getAllUserAndDepartmentDropdown.fulfilled,\n (state, action) => {\n state.loading = false;\n state.users = action.payload?.data?.users?.map((user: any) => ({\n ...user,\n label: `${user.first_name} ${user.last_name}`,\n value: user.id,\n })) || [];\n state.departments = action.payload?.data?.roles?.map((role: any) => ({\n ...role,\n label: role.name,\n value: role.id,\n })) || [];\n state.error = \"\";\n state.isError = false;\n },\n );\n\n /*-------------------------------- get share drive Rejected State ---------------------------------*/\n builder.addCase(\n getAllUserAndDepartmentDropdown.rejected,\n (state, action) => {\n state.loading = false;\n state.error = action.error.message || \"Failed to fetch users and departments\";\n state.isError = true;\n },\n );\n\n /*-------------------------------- share page actions ---------------------------------*/\n builder.addCase(sharePage.pending, (state) => {\n state.loading = true;\n state.error = \"\";\n state.isError = false;\n });\n\n builder.addCase(sharePage.fulfilled, (state) => {\n state.loading = false;\n state.error = \"\";\n state.isError = false;\n });\n\n builder.addCase(sharePage.rejected, (state, action) => {\n state.loading = false;\n state.error = action.error.message || \"Failed to share page\";\n state.isError = true;\n });\n },\n});\n\nexport const { setUsers, setDepartments, setLoading, setError, resetState } = shareSlice.actions;\n\nexport default shareSlice.reducer;"],"names":[],"mappings":";AAIA,MAAM,eAA2B;AAAA,EAC/B,OAAO,CAAA;AAAA,EACP,aAAa,CAAA;AAAA,EACb,SAAS;AAAA,EACT,OAA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CAAC,OAAO,WAAW;;AACjB,cAAM,UAAU;AAChB,cAAM,UAAQ,wBAAO,YAAP,mBAAgB,SAAhB,mBAAsB,UAAtB,mBAA6B,IAAI,CAAC,UAAe;AAAA,UAC7D,GAAG;AAAA,UACH,OAAO,GAAG,KAAK,UAAU,IAAI,KAAK,SAAS;AAAA,UAC3C,OAAO,KAAK;AAAA,QAAA,QACP,CAAA;AACP,cAAM,gBAAc,wBAAO,YAAP,mBAAgB,SAAhB,mBAAsB,UAAtB,mBAA6B,IAAI,CAAC,UAAe;AAAA,UACnE,GAAG;AAAA,UACH,OAAO,KAAK;AAAA,UACZ,OAAO,KAAK;AAAA,QAAA,QACP,CAAA;AACP,cAAM,QAAQ;AACd,cAAM,UAAU;AAAA,MAClB;AAAA,IAAA;AAIF,YAAQ;AAAA,MACN,gCAAgC;AAAA,MAChC,CAAC,OAAO,WAAW;AACjB,cAAM,UAAU;AAChB,cAAM,QAAQ,OAAO,MAAM,WAAW;AACtC,cAAM,UAAU;AAAA,MAClB;AAAA,IAAA;AAIF,YAAQ,QAAQ,UAAU,SAAS,CAAC,UAAU;AAC5C,YAAM,UAAU;AAChB,YAAM,QAAQ;AACd,YAAM,UAAU;AAAA,IAClB,CAAC;AAED,YAAQ,QAAQ,UAAU,WAAW,CAAC,UAAU;AAC9C,YAAM,UAAU;AAChB,YAAM,QAAQ;AACd,YAAM,UAAU;AAAA,IAClB,CAAC;AAED,YAAQ,QAAQ,UAAU,UAAU,CAAC,OAAO,WAAW;AACrD,YAAM,UAAU;AAChB,YAAM,QAAQ,OAAO,MAAM,WAAW;AACtC,YAAM,UAAU;AAAA,IAClB,CAAC;AAAA,EACH;AACF,CAAC;AAEM,MAAM,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../../../src/redux/slices/shareSlice.ts"],"sourcesContent":["import { createSlice, createAsyncThunk } from \"@reduxjs/toolkit\";\nimport { ShareState } from \"../types\";\n\n// Initial state\nconst initialState: ShareState = {\n users: [],\n departments: [],\n loading: true,\n error: \"\",\n isError: false,\n};\n\n// Async thunk for getting user and department dropdown\n// Note: This will need to be configured by the consuming application\nexport const getAllUserAndDepartmentDropdown = createAsyncThunk(\n \"share/getUser\",\n async (_, { extra }: any) => {\n // The consuming application should provide the API client in the extra field\n if (!extra?.apiClient?.getV1PagesUserList) {\n throw new Error(\"API client not configured for share slice\");\n }\n const response = await extra.apiClient.getV1PagesUserList();\n return response;\n },\n);\n\nexport const sharePage = createAsyncThunk(\n \"share/sharePage\",\n async (data: any, { extra }: any) => {\n if (!extra?.apiClient?.postV1PagesShare) {\n throw new Error(\"API client not configured for share slice\");\n }\n const response = await extra.apiClient.postV1PagesShare(data);\n return response;\n },\n);\n\nexport const shareSlice = createSlice({\n name: \"share\",\n initialState,\n reducers: {\n // Synchronous actions for direct state updates\n setUsers: (state, action) => {\n state.users = action.payload;\n },\n setDepartments: (state, action) => {\n state.departments = action.payload;\n },\n setLoading: (state, action) => {\n state.loading = action.payload;\n },\n setError: (state, action) => {\n state.error = action.payload;\n state.isError = !!action.payload;\n },\n resetState: (state) => {\n Object.assign(state, initialState);\n },\n },\n extraReducers: (builder) => {\n /*-------------------------------- get share drive Pending State ---------------------------------*/\n builder.addCase(getAllUserAndDepartmentDropdown.pending, (state) => {\n state.loading = true;\n state.error = \"\";\n state.users = [];\n state.departments = [];\n state.isError = false;\n });\n\n /*-------------------------------- get share drive fulfilled State ---------------------------------*/\n builder.addCase(\n getAllUserAndDepartmentDropdown.fulfilled,\n (state, action) => {\n state.loading = false;\n state.users = action.payload?.data?.users?.map((user: any) => ({\n ...user,\n label: `${user.first_name} ${user.last_name}`,\n value: user.id,\n })) || [];\n state.departments = action.payload?.data?.roles?.map((role: any) => ({\n ...role,\n label: role.name,\n value: role.id,\n })) || [];\n state.error = \"\";\n state.isError = false;\n },\n );\n\n /*-------------------------------- get share drive Rejected State ---------------------------------*/\n builder.addCase(\n getAllUserAndDepartmentDropdown.rejected,\n (state, action) => {\n state.loading = false;\n state.error = action.error.message || \"Failed to fetch users and departments\";\n state.isError = true;\n },\n );\n\n /*-------------------------------- share page actions ---------------------------------*/\n builder.addCase(sharePage.pending, (state) => {\n state.loading = true;\n state.error = \"\";\n state.isError = false;\n });\n\n builder.addCase(sharePage.fulfilled, (state) => {\n state.loading = false;\n state.error = \"\";\n state.isError = false;\n });\n\n builder.addCase(sharePage.rejected, (state, action) => {\n state.loading = false;\n state.error = action.error.message || \"Failed to share page\";\n state.isError = true;\n });\n },\n});\n\nexport const { setUsers, setDepartments, setLoading, setError, resetState } = shareSlice.actions;\n\nexport default shareSlice.reducer;"],"names":[],"mappings":";AAIA,MAAM,eAA2B;AAAA,EAC/B,OAAO,CAAA;AAAA,EACP,aAAa,CAAA;AAAA,EACb,SAAS;AAAA,EACT,OAAO;AAAA,EACP,SAAS;AACX;AAIO,MAAM,kCAAkC;AAAA,EAC7C;AAAA,EACA,OAAO,GAAG,EAAE,YAAiB;;AAE3B,QAAI,GAAC,oCAAO,cAAP,mBAAkB,qBAAoB;AACzC,YAAM,IAAI,MAAM,2CAA2C;AAAA,IAC7D;AACA,UAAM,WAAW,MAAM,MAAM,UAAU,mBAAA;AACvC,WAAO;AAAA,EACT;AACF;AAEO,MAAM,YAAY;AAAA,EACvB;AAAA,EACA,OAAO,MAAW,EAAE,YAAiB;;AACnC,QAAI,GAAC,oCAAO,cAAP,mBAAkB,mBAAkB;AACvC,YAAM,IAAI,MAAM,2CAA2C;AAAA,IAC7D;AACA,UAAM,WAAW,MAAM,MAAM,UAAU,iBAAiB,IAAI;AAC5D,WAAO;AAAA,EACT;AACF;AAEO,MAAM,aAAa,YAAY;AAAA,EACpC,MAAM;AAAA,EACN;AAAA,EACA,UAAU;AAAA;AAAA,IAER,UAAU,CAAC,OAAO,WAAW;AAC3B,YAAM,QAAQ,OAAO;AAAA,IACvB;AAAA,IACA,gBAAgB,CAAC,OAAO,WAAW;AACjC,YAAM,cAAc,OAAO;AAAA,IAC7B;AAAA,IACA,YAAY,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AU;AAAA,IAClB,CAAC;AAED,YAAQ,QAAQ,UAAU,WAAW,CAAC,UAAU;AAC9C,YAAM,UAAU;AAChB,YAAM,QAAQ;AACd,YAAM,UAAU;AAAA,IAClB,CAAC;AAED,YAAQ,QAAQ,UAAU,UAAU,CAAC,OAAO,WAAW;AACrD,YAAM,UAAU;AAChB,YAAM,QAAQ,OAAO,MAAM,WAAW;AACtC,YAAM,UAAU;AAAA,IAClB,CAAC;AAAA,EACH;AACF,CAAC;AAEM,MAAM,EAAE,UAAU,gBAAsC,WAAA,IAAe,WAAW;AAEzF,IAAA,eAAe,WAAW;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@reduxjs/toolkit");const r={users:[],departments:[],loading:!0,error:"",isError:!1},a=e.createAsyncThunk("share/getUser",async(e,{extra:r})=>{var a;if(!(null==(a=null==r?void 0:r.apiClient)?void 0:a.getV1PagesUserList))throw new Error("API client not configured for share slice");return await r.apiClient.getV1PagesUserList()}),s=e.createAsyncThunk("share/sharePage",async(e,{extra:r})=>{var a;if(!(null==(a=null==r?void 0:r.apiClient)?void 0:a.postV1PagesShare))throw new Error("API client not configured for share slice");return await r.apiClient.postV1PagesShare(e)}),t=e.createSlice({name:"share",initialState:r,reducers:{setUsers:(e,r)=>{e.users=r.payload},setDepartments:(e,r)=>{e.departments=r.payload},setLoading:(e,r)=>{e.loading=r.payload},setError:(e,r)=>{e.error=r.payload,e.isError=!!r.payload},resetState:e=>{Object.assign(e,r)}},extraReducers:e=>{e.addCase(a.pending,e=>{e.loading=!0,e.error="",e.users=[],e.departments=[],e.isError=!1}),e.addCase(a.fulfilled,(e,r)=>{var a,s,t,o,d
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@reduxjs/toolkit");const r={users:[],departments:[],loading:!0,error:"",isError:!1},a=e.createAsyncThunk("share/getUser",async(e,{extra:r})=>{var a;if(!(null==(a=null==r?void 0:r.apiClient)?void 0:a.getV1PagesUserList))throw new Error("API client not configured for share slice");return await r.apiClient.getV1PagesUserList()}),s=e.createAsyncThunk("share/sharePage",async(e,{extra:r})=>{var a;if(!(null==(a=null==r?void 0:r.apiClient)?void 0:a.postV1PagesShare))throw new Error("API client not configured for share slice");return await r.apiClient.postV1PagesShare(e)}),t=e.createSlice({name:"share",initialState:r,reducers:{setUsers:(e,r)=>{e.users=r.payload},setDepartments:(e,r)=>{e.departments=r.payload},setLoading:(e,r)=>{e.loading=r.payload},setError:(e,r)=>{e.error=r.payload,e.isError=!!r.payload},resetState:e=>{Object.assign(e,r)}},extraReducers:e=>{e.addCase(a.pending,e=>{e.loading=!0,e.error="",e.users=[],e.departments=[],e.isError=!1}),e.addCase(a.fulfilled,(e,r)=>{var a,s,t,o,l,d;e.loading=!1,e.users=(null==(t=null==(s=null==(a=r.payload)?void 0:a.data)?void 0:s.users)?void 0:t.map(e=>({...e,label:`${e.first_name} ${e.last_name}`,value:e.id})))||[],e.departments=(null==(d=null==(l=null==(o=r.payload)?void 0:o.data)?void 0:l.roles)?void 0:d.map(e=>({...e,label:e.name,value:e.id})))||[],e.error="",e.isError=!1}),e.addCase(a.rejected,(e,r)=>{e.loading=!1,e.error=r.error.message||"Failed to fetch users and departments",e.isError=!0}),e.addCase(s.pending,e=>{e.loading=!0,e.error="",e.isError=!1}),e.addCase(s.fulfilled,e=>{e.loading=!1,e.error="",e.isError=!1}),e.addCase(s.rejected,(e,r)=>{e.loading=!1,e.error=r.error.message||"Failed to share page",e.isError=!0})}}),{setUsers:o,setDepartments:l,resetState:d}=t.actions;var i=t.reducer;exports.default=i,exports.getAllUserAndDepartmentDropdown=a,exports.resetState=d,exports.setDepartments=l,exports.setUsers=o,exports.sharePage=s,exports.shareSlice=t;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/redux/slices/shareSlice.ts"],"sourcesContent":["import { createSlice, createAsyncThunk } from \"@reduxjs/toolkit\";\nimport { ShareState } from \"../types\";\n\n// Initial state\nconst initialState: ShareState = {\n users: [],\n departments: [],\n loading: true,\n error: \"\",\n isError: false,\n};\n\n// Async thunk for getting user and department dropdown\n// Note: This will need to be configured by the consuming application\nexport const getAllUserAndDepartmentDropdown = createAsyncThunk(\n \"share/getUser\",\n async (_, { extra }: any) => {\n // The consuming application should provide the API client in the extra field\n if (!extra?.apiClient?.getV1PagesUserList) {\n throw new Error(\"API client not configured for share slice\");\n }\n const response = await extra.apiClient.getV1PagesUserList();\n return response;\n },\n);\n\nexport const sharePage = createAsyncThunk(\n \"share/sharePage\",\n async (data: any, { extra }: any) => {\n if (!extra?.apiClient?.postV1PagesShare) {\n throw new Error(\"API client not configured for share slice\");\n }\n const response = await extra.apiClient.postV1PagesShare(data);\n return response;\n },\n);\n\nexport const shareSlice = createSlice({\n name: \"share\",\n initialState,\n reducers: {\n // Synchronous actions for direct state updates\n setUsers: (state, action) => {\n state.users = action.payload;\n },\n setDepartments: (state, action) => {\n state.departments = action.payload;\n },\n setLoading: (state, action) => {\n state.loading = action.payload;\n },\n setError: (state, action) => {\n state.error = action.payload;\n state.isError = !!action.payload;\n },\n resetState: (state) => {\n Object.assign(state, initialState);\n },\n },\n extraReducers: (builder) => {\n /*-------------------------------- get share drive Pending State ---------------------------------*/\n builder.addCase(getAllUserAndDepartmentDropdown.pending, (state) => {\n state.loading = true;\n state.error = \"\";\n state.users = [];\n state.departments = [];\n state.isError = false;\n });\n\n /*-------------------------------- get share drive fulfilled State ---------------------------------*/\n builder.addCase(\n getAllUserAndDepartmentDropdown.fulfilled,\n (state, action) => {\n state.loading = false;\n state.users = action.payload?.data?.users?.map((user: any) => ({\n ...user,\n label: `${user.first_name} ${user.last_name}`,\n value: user.id,\n })) || [];\n state.departments = action.payload?.data?.roles?.map((role: any) => ({\n ...role,\n label: role.name,\n value: role.id,\n })) || [];\n state.error = \"\";\n state.isError = false;\n },\n );\n\n /*-------------------------------- get share drive Rejected State ---------------------------------*/\n builder.addCase(\n getAllUserAndDepartmentDropdown.rejected,\n (state, action) => {\n state.loading = false;\n state.error = action.error.message || \"Failed to fetch users and departments\";\n state.isError = true;\n },\n );\n\n /*-------------------------------- share page actions ---------------------------------*/\n builder.addCase(sharePage.pending, (state) => {\n state.loading = true;\n state.error = \"\";\n state.isError = false;\n });\n\n builder.addCase(sharePage.fulfilled, (state) => {\n state.loading = false;\n state.error = \"\";\n state.isError = false;\n });\n\n builder.addCase(sharePage.rejected, (state, action) => {\n state.loading = false;\n state.error = action.error.message || \"Failed to share page\";\n state.isError = true;\n });\n },\n});\n\nexport const { setUsers, setDepartments, setLoading, setError, resetState } = shareSlice.actions;\n\nexport default shareSlice.reducer;"],"names":["initialState","users","departments","loading","error","isError","getAllUserAndDepartmentDropdown","createAsyncThunk","async","_","extra","_a","apiClient","getV1PagesUserList","Error","sharePage","data","postV1PagesShare","shareSlice","createSlice","name","reducers","setUsers","state","action","payload","setDepartments","setLoading","setError","resetState","Object","assign","extraReducers","builder","addCase","pending","fulfilled","_c","_b","map","user","label","first_name","last_name","value","id","_f","_e","_d","roles","role","rejected","message","actions","shareSlice$1","reducer"],"mappings":"sGAIA,MAAMA,EAA2B,CAC/BC,MAAO,GACPC,YAAa,GACbC,SAAS,EACTC,MAAO,GACPC,SAAS,GAKEC,EAAkCC,EAAAA,iBAC7C,gBACAC,MAAOC,GAAKC,kBAEV,KAAK,OAAAC,EAAA,MAAAD,OAAA,EAAAA,EAAOE,gBAAP,EAAAD,EAAkBE,oBACrB,MAAM,IAAIC,MAAM,6CAGlB,aADuBJ,EAAME,UAAUC,uBAK9BE,EAAYR,EAAAA,iBACvB,kBACAC,MAAOQ,GAAaN,kBAClB,KAAK,OAAAC,EAAA,MAAAD,OAAA,EAAAA,EAAOE,gBAAP,EAAAD,EAAkBM,kBACrB,MAAM,IAAIH,MAAM,6CAGlB,aADuBJ,EAAME,UAAUK,iBAAiBD,KAK/CE,EAAaC,EA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,EAAUoB,QAAUZ,IAClCA,EAAMpB,SAAU,EAChBoB,EAAMnB,MAAQ,GACdmB,EAAMlB,SAAU,IAGlB4B,EAAQC,QAAQnB,EAAUqB,UAAYb,IACpCA,EAAMpB,SAAU,EAChBoB,EAAMnB,MAAQ,GACdmB,EAAMlB,SAAU,IAGlB4B,EAAQC,QAAQnB,EAAUoC,SAAU,CAAC5B,EAAOC,KAC1CD,EAAMpB,SAAU,EAChBoB,EAAMnB,MAAQoB,EAAOpB,MAAMgD,SAAW,uBACtC7B,EAAMlB,SAAU,QAKTiB,SAAEA,EAAAI,eAAUA,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/redux/slices/shareSlice.ts"],"sourcesContent":["import { createSlice, createAsyncThunk } from \"@reduxjs/toolkit\";\nimport { ShareState } from \"../types\";\n\n// Initial state\nconst initialState: ShareState = {\n users: [],\n departments: [],\n loading: true,\n error: \"\",\n isError: false,\n};\n\n// Async thunk for getting user and department dropdown\n// Note: This will need to be configured by the consuming application\nexport const getAllUserAndDepartmentDropdown = createAsyncThunk(\n \"share/getUser\",\n async (_, { extra }: any) => {\n // The consuming application should provide the API client in the extra field\n if (!extra?.apiClient?.getV1PagesUserList) {\n throw new Error(\"API client not configured for share slice\");\n }\n const response = await extra.apiClient.getV1PagesUserList();\n return response;\n },\n);\n\nexport const sharePage = createAsyncThunk(\n \"share/sharePage\",\n async (data: any, { extra }: any) => {\n if (!extra?.apiClient?.postV1PagesShare) {\n throw new Error(\"API client not configured for share slice\");\n }\n const response = await extra.apiClient.postV1PagesShare(data);\n return response;\n },\n);\n\nexport const shareSlice = createSlice({\n name: \"share\",\n initialState,\n reducers: {\n // Synchronous actions for direct state updates\n setUsers: (state, action) => {\n state.users = action.payload;\n },\n setDepartments: (state, action) => {\n state.departments = action.payload;\n },\n setLoading: (state, action) => {\n state.loading = action.payload;\n },\n setError: (state, action) => {\n state.error = action.payload;\n state.isError = !!action.payload;\n },\n resetState: (state) => {\n Object.assign(state, initialState);\n },\n },\n extraReducers: (builder) => {\n /*-------------------------------- get share drive Pending State ---------------------------------*/\n builder.addCase(getAllUserAndDepartmentDropdown.pending, (state) => {\n state.loading = true;\n state.error = \"\";\n state.users = [];\n state.departments = [];\n state.isError = false;\n });\n\n /*-------------------------------- get share drive fulfilled State ---------------------------------*/\n builder.addCase(\n getAllUserAndDepartmentDropdown.fulfilled,\n (state, action) => {\n state.loading = false;\n state.users = action.payload?.data?.users?.map((user: any) => ({\n ...user,\n label: `${user.first_name} ${user.last_name}`,\n value: user.id,\n })) || [];\n state.departments = action.payload?.data?.roles?.map((role: any) => ({\n ...role,\n label: role.name,\n value: role.id,\n })) || [];\n state.error = \"\";\n state.isError = false;\n },\n );\n\n /*-------------------------------- get share drive Rejected State ---------------------------------*/\n builder.addCase(\n getAllUserAndDepartmentDropdown.rejected,\n (state, action) => {\n state.loading = false;\n state.error = action.error.message || \"Failed to fetch users and departments\";\n state.isError = true;\n },\n );\n\n /*-------------------------------- share page actions ---------------------------------*/\n builder.addCase(sharePage.pending, (state) => {\n state.loading = true;\n state.error = \"\";\n state.isError = false;\n });\n\n builder.addCase(sharePage.fulfilled, (state) => {\n state.loading = false;\n state.error = \"\";\n state.isError = false;\n });\n\n builder.addCase(sharePage.rejected, (state, action) => {\n state.loading = false;\n state.error = action.error.message || \"Failed to share page\";\n state.isError = true;\n });\n },\n});\n\nexport const { setUsers, setDepartments, setLoading, setError, resetState } = shareSlice.actions;\n\nexport default shareSlice.reducer;"],"names":["initialState","users","departments","loading","error","isError","getAllUserAndDepartmentDropdown","createAsyncThunk","async","_","extra","_a","apiClient","getV1PagesUserList","Error","sharePage","data","postV1PagesShare","shareSlice","createSlice","name","reducers","setUsers","state","action","payload","setDepartments","setLoading","setError","resetState","Object","assign","extraReducers","builder","addCase","pending","fulfilled","_c","_b","map","user","label","first_name","last_name","value","id","_f","_e","_d","roles","role","rejected","message","actions","shareSlice$1","reducer"],"mappings":"sGAIA,MAAMA,EAA2B,CAC/BC,MAAO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AcF,EAAKG,YAClCC,MAAOJ,EAAKK,QACP,GACPtB,EAAMrB,aAAc,OAAA4C,EAAA,OAAAC,EAAA,OAAAC,EAAAxB,EAAOC,cAAP,EAAAuB,EAAgBhC,eAAMiC,YAAtB,EAAAH,EAA6BP,IAAKW,IAAA,IACjDA,EACHT,MAAOS,EAAK9B,KACZwB,MAAOM,EAAKL,QACP,GACPtB,EAAMnB,MAAQ,GACdmB,EAAMlB,SAAU,IAKpB4B,EAAQC,QACN5B,EAAgC6C,SAChC,CAAC5B,EAAOC,KACND,EAAMpB,SAAU,EAChBoB,EAAMnB,MAAQoB,EAAOpB,MAAMgD,SAAW,wCACtC7B,EAAMlB,SAAU,IAKpB4B,EAAQC,QAAQnB,EAAUoB,QAAUZ,IAClCA,EAAMpB,SAAU,EAChBoB,EAAMnB,MAAQ,GACdmB,EAAMlB,SAAU,IAGlB4B,EAAQC,QAAQnB,EAAUqB,UAAYb,IACpCA,EAAMpB,SAAU,EAChBoB,EAAMnB,MAAQ,GACdmB,EAAMlB,SAAU,IAGlB4B,EAAQC,QAAQnB,EAAUoC,SAAU,CAAC5B,EAAOC,KAC1CD,EAAMpB,SAAU,EAChBoB,EAAMnB,MAAQoB,EAAOpB,MAAMgD,SAAW,uBACtC7B,EAAMlB,SAAU,QAKTiB,SAAEA,EAAAI,eAAUA,EAAAG,WAAsCA,GAAeX,EAAWmC,QAEzF,IAAAC,EAAepC,EAAWqC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './upload';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { default as CalenderIcon } from './calendar-icon';
|
|
2
|
+
export * from './calendar-icon';
|
|
3
|
+
export { default as ChartIcon } from './chart-icon';
|
|
4
|
+
export * from './chart-icon';
|
|
5
|
+
export { default as GanttIcon } from './gantt-icon';
|
|
6
|
+
export * from './gantt-icon';
|
|
7
|
+
export { default as GridIcon } from './grid-icon';
|
|
8
|
+
export * from './grid-icon';
|
|
9
|
+
export { default as KanbanIcon } from './kanban-icon';
|
|
10
|
+
export * from './kanban-icon';
|
|
11
|
+
export { default as TableIcon } from './table-icon';
|
|
12
|
+
export * from './table-icon';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { default as DiscountSummary } from './discount-summary';
|
|
2
|
+
export * from './discount-summary';
|
|
3
|
+
export { default as ItemsSummary } from './items-summary';
|
|
4
|
+
export * from './items-summary';
|
|
5
|
+
export { default as SubtotalSummary } from './subtotal-summary';
|
|
6
|
+
export * from './subtotal-summary';
|
|
7
|
+
export { default as TaxesAndChargesSummary } from './taxes-and-charges-summary';
|
|
8
|
+
export * from './taxes-and-charges-summary';
|
|
9
|
+
export { default as TotalSummary } from './total-summary';
|
|
10
|
+
export * from './total-summary';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { default as AreaLineChart } from './areaLinerChart';
|
|
2
|
+
export * from './areaLinerChart';
|
|
3
|
+
export { default as ChartLegends } from './ChartLegends';
|
|
4
|
+
export * from './ChartLegends';
|
|
5
|
+
export * from './bar-chart';
|
|
6
|
+
export * from './barChart';
|
|
7
|
+
export * from './barLineChart';
|
|
8
|
+
export * from './donut-chart';
|
|
9
|
+
export * from './donutChart';
|
|
10
|
+
export * from './groupBarChart';
|
|
11
|
+
export * from './line-chart';
|
|
12
|
+
export * from './multiLineChart';
|
|
@@ -11,5 +11,5 @@ interface LineChartProps {
|
|
|
11
11
|
lineColor?: string;
|
|
12
12
|
lineFillColor?: string;
|
|
13
13
|
}
|
|
14
|
-
declare const
|
|
15
|
-
export default
|
|
14
|
+
declare const AreaLineChartTwo: React.FC<LineChartProps>;
|
|
15
|
+
export default AreaLineChartTwo;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as AreaLineChart } from './area-line-chart';
|
|
2
|
+
export * from './area-line-chart';
|
|
3
|
+
export { default as AreaLineChartTwo } from './area-lineChart';
|
|
4
|
+
export * from './area-lineChart';
|
|
5
|
+
export { default as LineChart } from './line-chart';
|
|
6
|
+
export * from './line-chart';
|