@erpsquad/common 1.8.46 → 1.8.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/index/index.esm10.js +3 -3
- package/dist/_virtual/index/index.esm11.js +3 -3
- package/dist/_virtual/index/index.esm2.js +2 -4
- package/dist/_virtual/index/index.esm2.js.map +1 -1
- package/dist/_virtual/index/index.esm3.js +4 -2
- package/dist/_virtual/index/index.esm3.js.map +1 -1
- package/dist/_virtual/index/index.esm4.js +1 -1
- package/dist/_virtual/index/index.esm5.js +3 -3
- package/dist/_virtual/index/index.esm6.js +3 -3
- package/dist/_virtual/index/index.esm7.js +3 -3
- package/dist/_virtual/index/index.esm8.js +3 -3
- package/dist/_virtual/index/index.esm9.js +3 -3
- package/dist/_virtual/index/index10.js +1 -1
- package/dist/_virtual/index/index11.js +1 -1
- package/dist/_virtual/index/index2.js +1 -1
- package/dist/_virtual/index/index3.js +1 -1
- package/dist/_virtual/index/index4.js +1 -1
- package/dist/_virtual/index/index5.js +1 -1
- package/dist/_virtual/index/index6.js +1 -1
- package/dist/_virtual/index/index7.js +1 -1
- package/dist/_virtual/index/index8.js +1 -1
- package/dist/_virtual/index/index9.js +1 -1
- package/dist/assets/index.d.ts +0 -1
- package/dist/components/activityLog/activity-log/index.esm.js +104 -0
- package/dist/components/activityLog/activity-log/index.esm.js.map +1 -0
- package/dist/components/activityLog/activity-log/index.js +14 -0
- package/dist/components/activityLog/activity-log/index.js.map +1 -0
- package/dist/components/charts/barChart/barChart/index.esm.js +148 -0
- package/dist/components/charts/barChart/barChart/index.esm.js.map +1 -0
- package/dist/components/charts/barChart/barChart/index.js +2 -0
- package/dist/components/charts/barChart/barChart/index.js.map +1 -0
- package/dist/components/charts/donut-chart/donut-chart/index.esm.js.map +1 -1
- package/dist/components/charts/donut-chart/donut-chart/index.js.map +1 -1
- package/dist/components/charts/donut-chart/donut-chart.d.ts +1 -2
- package/dist/components/charts/donutChart/DonutChart/index.esm.js +97 -0
- package/dist/components/charts/donutChart/DonutChart/index.esm.js.map +1 -0
- package/dist/components/charts/donutChart/DonutChart/index.js +5 -0
- package/dist/components/charts/donutChart/DonutChart/index.js.map +1 -0
- package/dist/components/charts/index.d.ts +11 -0
- package/dist/components/charts/line-chart/area-lineChart/index.esm.js +55 -0
- package/dist/components/charts/line-chart/area-lineChart/index.esm.js.map +1 -0
- package/dist/components/charts/line-chart/area-lineChart/index.js +2 -0
- package/dist/components/charts/line-chart/area-lineChart/index.js.map +1 -0
- package/dist/components/charts/line-chart/line-chart/index.esm.js +108 -0
- package/dist/components/charts/line-chart/line-chart/index.esm.js.map +1 -0
- package/dist/components/charts/line-chart/line-chart/index.js +2 -0
- package/dist/components/charts/line-chart/line-chart/index.js.map +1 -0
- package/dist/components/confirm-modal/confirm-modal/index.esm.js.map +1 -1
- package/dist/components/confirm-modal/confirm-modal/index.js.map +1 -1
- package/dist/components/confirm-modal/confirm-modal.d.ts +1 -2
- package/dist/components/confirm-modal/index.d.ts +1 -0
- package/dist/components/editor/custom-editor/index.esm.js +96 -67
- package/dist/components/editor/custom-editor/index.esm.js.map +1 -1
- package/dist/components/editor/custom-editor/index.js +3 -3
- package/dist/components/editor/custom-editor/index.js.map +1 -1
- package/dist/components/editor/custom-editor.d.ts +12 -8
- package/dist/components/footer/footer/index.esm.js +1 -1
- package/dist/components/footer/footer/index.js +2 -2
- package/dist/components/footer/footer/index.js.map +1 -1
- package/dist/components/form-control/form-parser/form-parser/index.esm.js +1 -1
- package/dist/components/form-control/form-parser/form-parser/index.js +4 -4
- package/dist/components/form-control/form-parser/form-parser/index.js.map +1 -1
- package/dist/components/grid/grid-card/grid-card/index.esm.js +4 -2
- package/dist/components/grid/grid-card/grid-card/index.esm.js.map +1 -1
- package/dist/components/grid/grid-card/grid-card/index.js +10 -11
- package/dist/components/grid/grid-card/grid-card/index.js.map +1 -1
- package/dist/components/grid/grid-card/grid-card.d.ts +10 -1
- package/dist/components/index.d.ts +294 -98
- package/dist/components/index.esm.js +582 -193
- package/dist/components/index.esm.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/inventory-reports-title-bar/component/reportFilter.d.ts +3 -2
- package/dist/components/inventory-reports-title-bar/inventory-reports-title-bar/index.esm.js +1 -1
- package/dist/components/inventory-reports-title-bar/inventory-reports-title-bar/index.js +1 -1
- package/dist/components/inventory-reports-title-bar/inventory-reports-title-bar/index.js.map +1 -1
- package/dist/components/inventory-reports-title-bar/redux/reducer/index.esm.js +0 -2
- package/dist/components/inventory-reports-title-bar/redux/reducer/index.esm.js.map +1 -1
- package/dist/components/inventory-reports-title-bar/redux/reducer/index.js +1 -1
- package/dist/components/inventory-reports-title-bar/redux/reducer/index.js.map +1 -1
- package/dist/components/list/list/index.esm.js +3 -2
- package/dist/components/list/list/index.esm.js.map +1 -1
- package/dist/components/list/list/index.js +2 -2
- package/dist/components/list/list/index.js.map +1 -1
- package/dist/components/list/list.d.ts +2 -1
- package/dist/components/listing/listing/index.esm.js +1 -1
- package/dist/components/listing/listing/index.js +1 -1
- package/dist/components/listing/listing/index.js.map +1 -1
- package/dist/components/material-table/aggregation-fns/index/index.esm.js +10 -0
- package/dist/components/material-table/aggregation-fns/index/index.esm.js.map +1 -1
- package/dist/components/material-table/aggregation-fns/index/index.js +1 -1
- package/dist/components/material-table/aggregation-fns/index/index.js.map +1 -1
- package/dist/components/material-table/components/number-aggregation/index.esm.js +134 -0
- package/dist/components/material-table/components/number-aggregation/index.esm.js.map +1 -0
- package/dist/components/material-table/components/number-aggregation/index.js +5 -0
- package/dist/components/material-table/components/number-aggregation/index.js.map +1 -0
- package/dist/components/module-button/module-button/index.esm.js +3 -2
- package/dist/components/module-button/module-button/index.esm.js.map +1 -1
- package/dist/components/module-button/module-button/index.js +4 -4
- package/dist/components/module-button/module-button/index.js.map +1 -1
- package/dist/components/module-button/module-button.d.ts +10 -1
- package/dist/components/mulitline/multiline/index.esm.js +3 -2
- package/dist/components/mulitline/multiline/index.esm.js.map +1 -1
- package/dist/components/mulitline/multiline/index.js +9 -9
- package/dist/components/mulitline/multiline/index.js.map +1 -1
- package/dist/components/mulitline/multiline.d.ts +2 -2
- package/dist/components/page-navigator/page-navigator/index.esm.js +4 -3
- package/dist/components/page-navigator/page-navigator/index.esm.js.map +1 -1
- package/dist/components/page-navigator/page-navigator/index.js +5 -5
- package/dist/components/page-navigator/page-navigator/index.js.map +1 -1
- package/dist/components/page-navigator/page-navigator.d.ts +3 -3
- package/dist/components/parties-modal/parties-modal/index.esm.js +4 -3
- package/dist/components/parties-modal/parties-modal/index.esm.js.map +1 -1
- package/dist/components/parties-modal/parties-modal/index.js +13 -13
- package/dist/components/parties-modal/parties-modal/index.js.map +1 -1
- package/dist/components/parties-modal/parties-modal.d.ts +3 -3
- package/dist/components/reports-title-bar/report-buttons/report-buttons/index.esm.js +60 -0
- package/dist/components/reports-title-bar/report-buttons/report-buttons/index.esm.js.map +1 -0
- package/dist/components/reports-title-bar/report-buttons/report-buttons/index.js +2 -0
- package/dist/components/reports-title-bar/report-buttons/report-buttons/index.js.map +1 -0
- package/dist/components/reports-title-bar/reports-title-bar/index.esm.js +736 -0
- package/dist/components/reports-title-bar/reports-title-bar/index.esm.js.map +1 -0
- package/dist/components/reports-title-bar/reports-title-bar/index.js +39 -0
- package/dist/components/reports-title-bar/reports-title-bar/index.js.map +1 -0
- package/dist/components/rfq-response/item-response-details/index.esm.js +40 -48
- package/dist/components/rfq-response/item-response-details/index.esm.js.map +1 -1
- package/dist/components/rfq-response/item-response-details/index.js +4 -4
- package/dist/components/rfq-response/item-response-details/index.js.map +1 -1
- package/dist/components/rfq-response/item-response-details.d.ts +2 -1
- package/dist/components/schedule-report/utils/common/index.esm.js +1 -1
- package/dist/components/select/controller/chip-or-placeholder/index.esm.js +25 -0
- package/dist/components/select/controller/chip-or-placeholder/index.esm.js.map +1 -0
- package/dist/components/select/controller/chip-or-placeholder/index.js +2 -0
- package/dist/components/select/controller/chip-or-placeholder/index.js.map +1 -0
- package/dist/components/select/controller/controller-select/index.esm.js +165 -0
- package/dist/components/select/controller/controller-select/index.esm.js.map +1 -0
- package/dist/components/select/controller/controller-select/index.js +10 -0
- package/dist/components/select/controller/controller-select/index.js.map +1 -0
- package/dist/components/tab-bar-ui/tab-bar-ui/index.esm.js +4 -10
- package/dist/components/tab-bar-ui/tab-bar-ui/index.esm.js.map +1 -1
- package/dist/components/tab-bar-ui/tab-bar-ui/index.js +3 -3
- package/dist/components/tab-bar-ui/tab-bar-ui/index.js.map +1 -1
- package/dist/components/tab-bar-ui/tab-bar-ui.d.ts +3 -3
- package/dist/components/tabs/tabs/index.esm.js +3 -2
- package/dist/components/tabs/tabs/index.esm.js.map +1 -1
- package/dist/components/tabs/tabs/index.js +3 -3
- package/dist/components/tabs/tabs/index.js.map +1 -1
- package/dist/components/tabs/tabs.d.ts +2 -2
- package/dist/hooks/index.esm.js +4 -4
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-translations/index.esm.js +4 -3
- package/dist/hooks/use-translations/index.esm.js.map +1 -1
- package/dist/hooks/use-translations/index.js +1 -1
- package/dist/hooks/use-translations/index.js.map +1 -1
- package/dist/hooks/use-translations.d.ts +2 -1
- package/dist/hooks/useCheckSkuAndName/index.esm.js +5 -4
- package/dist/hooks/useCheckSkuAndName/index.esm.js.map +1 -1
- package/dist/hooks/useCheckSkuAndName/index.js +1 -1
- package/dist/hooks/useCheckSkuAndName/index.js.map +1 -1
- package/dist/hooks/useCheckSkuAndName.d.ts +4 -2
- package/dist/index.esm.js +696 -268
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/layout/fullScreen/fullScreen/index.esm.js +5 -3
- package/dist/layout/fullScreen/fullScreen/index.esm.js.map +1 -1
- package/dist/layout/fullScreen/fullScreen/index.js +3 -3
- package/dist/layout/fullScreen/fullScreen/index.js.map +1 -1
- package/dist/layout/fullScreen/fullScreen.d.ts +5 -1
- package/dist/layout/index.esm.js +4 -4
- package/dist/layout/index.js +1 -1
- package/dist/layout/sidebarScreen/sidebarScreen/index.esm.js +72 -50
- package/dist/layout/sidebarScreen/sidebarScreen/index.esm.js.map +1 -1
- package/dist/layout/sidebarScreen/sidebarScreen/index.js +4 -4
- package/dist/layout/sidebarScreen/sidebarScreen/index.js.map +1 -1
- package/dist/layout/sidebarScreen/sidebarScreen.d.ts +3 -3
- package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.esm.js +1 -1
- package/dist/node_modules/@asseinfo/react-kanban/dist/index/index.js +1 -1
- package/dist/node_modules/@mui/icons-material/esm/Remove/index.esm.js +9 -0
- package/dist/node_modules/@mui/icons-material/esm/Remove/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/icons-material/esm/Remove/index.js +2 -0
- package/dist/node_modules/@mui/icons-material/esm/Remove/index.js.map +1 -0
- package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.esm.js +1 -1
- package/dist/node_modules/@mui/icons-material/utils/createSvgIcon/index.js +1 -1
- package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.esm.js +1 -1
- package/dist/node_modules/@mui/lab/TimelineItem/TimelineItem/index.js +2 -2
- package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.esm.js +95 -0
- package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.js +3 -0
- package/dist/node_modules/@mui/material/AccordionActions/AccordionActions/index.js.map +1 -0
- package/dist/node_modules/@mui/material/AccordionActions/accordionActionsClasses/index.esm.js +10 -0
- package/dist/node_modules/@mui/material/AccordionActions/accordionActionsClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/AccordionActions/accordionActionsClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/AccordionActions/accordionActionsClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/Avatar/avatarClasses/index.esm.js +3 -2
- package/dist/node_modules/@mui/material/Avatar/avatarClasses/index.esm.js.map +1 -1
- package/dist/node_modules/@mui/material/Avatar/avatarClasses/index.js +1 -1
- package/dist/node_modules/@mui/material/Avatar/avatarClasses/index.js.map +1 -1
- package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.esm.js +201 -0
- package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.js +3 -0
- package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup/index.js.map +1 -0
- package/dist/node_modules/@mui/material/AvatarGroup/avatarGroupClasses/index.esm.js +11 -0
- package/dist/node_modules/@mui/material/AvatarGroup/avatarGroupClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/AvatarGroup/avatarGroupClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/AvatarGroup/avatarGroupClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.esm.js +125 -0
- package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.js +4 -0
- package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation/index.js.map +1 -0
- package/dist/node_modules/@mui/material/BottomNavigation/bottomNavigationClasses/index.esm.js +10 -0
- package/dist/node_modules/@mui/material/BottomNavigation/bottomNavigationClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/BottomNavigation/bottomNavigationClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/BottomNavigation/bottomNavigationClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.esm.js +170 -0
- package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.js +3 -0
- package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction/index.js.map +1 -0
- package/dist/node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses/index.esm.js +11 -0
- package/dist/node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.esm.js +120 -0
- package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.js +3 -0
- package/dist/node_modules/@mui/material/CardActionArea/CardActionArea/index.js.map +1 -0
- package/dist/node_modules/@mui/material/CardActionArea/cardActionAreaClasses/index.esm.js +11 -0
- package/dist/node_modules/@mui/material/CardActionArea/cardActionAreaClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/CardActionArea/cardActionAreaClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/CardActionArea/cardActionAreaClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/CardActions/CardActions/index.esm.js +92 -0
- package/dist/node_modules/@mui/material/CardActions/CardActions/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/CardActions/CardActions/index.js +3 -0
- package/dist/node_modules/@mui/material/CardActions/CardActions/index.js.map +1 -0
- package/dist/node_modules/@mui/material/CardActions/cardActionsClasses/index.esm.js +10 -0
- package/dist/node_modules/@mui/material/CardActions/cardActionsClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/CardActions/cardActionsClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/CardActions/cardActionsClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.esm.js +196 -0
- package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.js +2 -0
- package/dist/node_modules/@mui/material/CardHeader/CardHeader/index.js.map +1 -0
- package/dist/node_modules/@mui/material/CardHeader/cardHeaderClasses/index.esm.js +11 -0
- package/dist/node_modules/@mui/material/CardHeader/cardHeaderClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/CardHeader/cardHeaderClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/CardHeader/cardHeaderClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.esm.js +76 -0
- package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.js +3 -0
- package/dist/node_modules/@mui/material/DialogContentText/DialogContentText/index.js.map +1 -0
- package/dist/node_modules/@mui/material/DialogContentText/dialogContentTextClasses/index.esm.js +10 -0
- package/dist/node_modules/@mui/material/DialogContentText/dialogContentTextClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/DialogContentText/dialogContentTextClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/DialogContentText/dialogContentTextClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/Fab/Fab/index.esm.js +231 -0
- package/dist/node_modules/@mui/material/Fab/Fab/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/Fab/Fab/index.js +3 -0
- package/dist/node_modules/@mui/material/Fab/Fab/index.js.map +1 -0
- package/dist/node_modules/@mui/material/Fab/fabClasses/index.esm.js +11 -0
- package/dist/node_modules/@mui/material/Fab/fabClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/Fab/fabClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/Fab/fabClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/Hidden/Hidden/index.esm.js +135 -0
- package/dist/node_modules/@mui/material/Hidden/Hidden/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/Hidden/Hidden/index.js +2 -0
- package/dist/node_modules/@mui/material/Hidden/Hidden/index.js.map +1 -0
- package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.esm.js +176 -0
- package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.js +3 -0
- package/dist/node_modules/@mui/material/Hidden/HiddenCss/index.js.map +1 -0
- package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.esm.js +119 -0
- package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.js +2 -0
- package/dist/node_modules/@mui/material/Hidden/HiddenJs/index.js.map +1 -0
- package/dist/node_modules/@mui/material/Hidden/hiddenCssClasses/index.esm.js +10 -0
- package/dist/node_modules/@mui/material/Hidden/hiddenCssClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/Hidden/hiddenCssClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/Hidden/hiddenCssClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/Hidden/withWidth/index.esm.js +92 -0
- package/dist/node_modules/@mui/material/Hidden/withWidth/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/Hidden/withWidth/index.js +2 -0
- package/dist/node_modules/@mui/material/Hidden/withWidth/index.js.map +1 -0
- package/dist/node_modules/@mui/material/ImageList/ImageList/index.esm.js +156 -0
- package/dist/node_modules/@mui/material/ImageList/ImageList/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/ImageList/ImageList/index.js +3 -0
- package/dist/node_modules/@mui/material/ImageList/ImageList/index.js.map +1 -0
- package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.esm.js +10 -0
- package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.js +2 -0
- package/dist/node_modules/@mui/material/ImageList/ImageListContext/index.js.map +1 -0
- package/dist/node_modules/@mui/material/ImageList/imageListClasses/index.esm.js +10 -0
- package/dist/node_modules/@mui/material/ImageList/imageListClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/ImageList/imageListClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/ImageList/imageListClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.esm.js +173 -0
- package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.js +3 -0
- package/dist/node_modules/@mui/material/ImageListItem/ImageListItem/index.js.map +1 -0
- package/dist/node_modules/@mui/material/ImageListItem/imageListItemClasses/index.esm.js +11 -0
- package/dist/node_modules/@mui/material/ImageListItem/imageListItemClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/ImageListItem/imageListItemClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/ImageListItem/imageListItemClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.esm.js +222 -0
- package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.js +3 -0
- package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar/index.js.map +1 -0
- package/dist/node_modules/@mui/material/ImageListItemBar/imageListItemBarClasses/index.esm.js +10 -0
- package/dist/node_modules/@mui/material/ImageListItemBar/imageListItemBarClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/ImageListItemBar/imageListItemBarClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/ImageListItemBar/imageListItemBarClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.esm.js +216 -0
- package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.js +3 -0
- package/dist/node_modules/@mui/material/MobileStepper/MobileStepper/index.js.map +1 -0
- package/dist/node_modules/@mui/material/MobileStepper/mobileStepperClasses/index.esm.js +10 -0
- package/dist/node_modules/@mui/material/MobileStepper/mobileStepperClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/MobileStepper/mobileStepperClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/MobileStepper/mobileStepperClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.esm.js +126 -0
- package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.js +3 -0
- package/dist/node_modules/@mui/material/NativeSelect/NativeSelect/index.js.map +1 -0
- package/dist/node_modules/@mui/material/NativeSelect/nativeSelectClasses/index.esm.js +1 -1
- package/dist/node_modules/@mui/material/NativeSelect/nativeSelectClasses/index.js +1 -1
- package/dist/node_modules/@mui/material/NativeSelect/nativeSelectClasses/index.js.map +1 -1
- package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.esm.js +55 -0
- package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.js +2 -0
- package/dist/node_modules/@mui/material/NoSsr/NoSsr/index.js.map +1 -0
- package/dist/node_modules/@mui/material/OutlinedInput/outlinedInputClasses/index.esm.js +1 -1
- package/dist/node_modules/@mui/material/OutlinedInput/outlinedInputClasses/index.js +1 -1
- package/dist/node_modules/@mui/material/Popover/Popover/index.esm.js +1 -1
- package/dist/node_modules/@mui/material/Popover/Popover/index.js +1 -1
- package/dist/node_modules/@mui/material/Rating/Rating/index.esm.js +638 -0
- package/dist/node_modules/@mui/material/Rating/Rating/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/Rating/Rating/index.js +7 -0
- package/dist/node_modules/@mui/material/Rating/Rating/index.js.map +1 -0
- package/dist/node_modules/@mui/material/Rating/ratingClasses/index.esm.js +11 -0
- package/dist/node_modules/@mui/material/Rating/ratingClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/Rating/ratingClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/Rating/ratingClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.esm.js +105 -0
- package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.js +3 -0
- package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline/index.js.map +1 -0
- package/dist/node_modules/@mui/material/ScopedCssBaseline/scopedCssBaselineClasses/index.esm.js +10 -0
- package/dist/node_modules/@mui/material/ScopedCssBaseline/scopedCssBaselineClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/ScopedCssBaseline/scopedCssBaselineClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/ScopedCssBaseline/scopedCssBaselineClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/Snackbar/Snackbar/index.esm.js +1 -1
- package/dist/node_modules/@mui/material/Snackbar/Snackbar/index.js +1 -1
- package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.esm.js +453 -0
- package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.js +4 -0
- package/dist/node_modules/@mui/material/SpeedDial/SpeedDial/index.js.map +1 -0
- package/dist/node_modules/@mui/material/SpeedDial/speedDialClasses/index.esm.js +11 -0
- package/dist/node_modules/@mui/material/SpeedDial/speedDialClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/SpeedDial/speedDialClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/SpeedDial/speedDialClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.esm.js +245 -0
- package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.js +2 -0
- package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction/index.js.map +1 -0
- package/dist/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses/index.esm.js +11 -0
- package/dist/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.esm.js +137 -0
- package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.js +4 -0
- package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon/index.js.map +1 -0
- package/dist/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses/index.esm.js +11 -0
- package/dist/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/Step/Step/index.esm.js +169 -0
- package/dist/node_modules/@mui/material/Step/Step/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/Step/Step/index.js +3 -0
- package/dist/node_modules/@mui/material/Step/Step/index.js.map +1 -0
- package/dist/node_modules/@mui/material/Step/StepContext/index.esm.js +10 -0
- package/dist/node_modules/@mui/material/Step/StepContext/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/Step/StepContext/index.js +2 -0
- package/dist/node_modules/@mui/material/Step/StepContext/index.js.map +1 -0
- package/dist/node_modules/@mui/material/Step/stepClasses/index.esm.js +10 -0
- package/dist/node_modules/@mui/material/Step/stepClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/Step/stepClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/Step/stepClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/StepButton/StepButton/index.esm.js +132 -0
- package/dist/node_modules/@mui/material/StepButton/StepButton/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/StepButton/StepButton/index.js +3 -0
- package/dist/node_modules/@mui/material/StepButton/StepButton/index.js.map +1 -0
- package/dist/node_modules/@mui/material/StepButton/stepButtonClasses/index.esm.js +11 -0
- package/dist/node_modules/@mui/material/StepButton/stepButtonClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/StepButton/stepButtonClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/StepButton/stepButtonClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.esm.js +136 -0
- package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.js +3 -0
- package/dist/node_modules/@mui/material/StepConnector/StepConnector/index.js.map +1 -0
- package/dist/node_modules/@mui/material/StepConnector/stepConnectorClasses/index.esm.js +10 -0
- package/dist/node_modules/@mui/material/StepConnector/stepConnectorClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/StepConnector/stepConnectorClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/StepConnector/stepConnectorClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/StepContent/StepContent/index.esm.js +152 -0
- package/dist/node_modules/@mui/material/StepContent/StepContent/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/StepContent/StepContent/index.js +2 -0
- package/dist/node_modules/@mui/material/StepContent/StepContent/index.js.map +1 -0
- package/dist/node_modules/@mui/material/StepContent/stepContentClasses/index.esm.js +10 -0
- package/dist/node_modules/@mui/material/StepContent/stepContentClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/StepContent/stepContentClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/StepContent/stepContentClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.esm.js +161 -0
- package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.js +2 -0
- package/dist/node_modules/@mui/material/StepIcon/StepIcon/index.js.map +1 -0
- package/dist/node_modules/@mui/material/StepIcon/stepIconClasses/index.esm.js +11 -0
- package/dist/node_modules/@mui/material/StepIcon/stepIconClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/StepIcon/stepIconClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/StepIcon/stepIconClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.esm.js +239 -0
- package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.js +3 -0
- package/dist/node_modules/@mui/material/StepLabel/StepLabel/index.js.map +1 -0
- package/dist/node_modules/@mui/material/StepLabel/stepLabelClasses/index.esm.js +11 -0
- package/dist/node_modules/@mui/material/StepLabel/stepLabelClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/StepLabel/stepLabelClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/StepLabel/stepLabelClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/Stepper/Stepper/index.esm.js +155 -0
- package/dist/node_modules/@mui/material/Stepper/Stepper/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/Stepper/Stepper/index.js +3 -0
- package/dist/node_modules/@mui/material/Stepper/Stepper/index.js.map +1 -0
- package/dist/node_modules/@mui/material/Stepper/StepperContext/index.esm.js +10 -0
- package/dist/node_modules/@mui/material/Stepper/StepperContext/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/Stepper/StepperContext/index.js +2 -0
- package/dist/node_modules/@mui/material/Stepper/StepperContext/index.js.map +1 -0
- package/dist/node_modules/@mui/material/Stepper/stepperClasses/index.esm.js +10 -0
- package/dist/node_modules/@mui/material/Stepper/stepperClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/Stepper/stepperClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/Stepper/stepperClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.esm.js +82 -0
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.js +3 -0
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea/index.js.map +1 -0
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.esm.js +538 -0
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.js +2 -0
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer/index.js.map +1 -0
- package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.esm.js +443 -0
- package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.js +3 -0
- package/dist/node_modules/@mui/material/TablePagination/TablePagination/index.js.map +1 -0
- package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.esm.js +179 -0
- package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.js +3 -0
- package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions/index.js.map +1 -0
- package/dist/node_modules/@mui/material/TablePagination/tablePaginationClasses/index.esm.js +11 -0
- package/dist/node_modules/@mui/material/TablePagination/tablePaginationClasses/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/TablePagination/tablePaginationClasses/index.js +2 -0
- package/dist/node_modules/@mui/material/TablePagination/tablePaginationClasses/index.js.map +1 -0
- package/dist/node_modules/@mui/material/Tabs/Tabs/index.esm.js +1 -1
- package/dist/node_modules/@mui/material/Tabs/Tabs/index.js +1 -1
- package/dist/node_modules/@mui/material/Zoom/Zoom/index.esm.js +196 -0
- package/dist/node_modules/@mui/material/Zoom/Zoom/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/Zoom/Zoom/index.js +3 -0
- package/dist/node_modules/@mui/material/Zoom/Zoom/index.js.map +1 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/Add/index.esm.js +9 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/Add/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/Add/index.js +2 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/Add/index.js.map +1 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/CheckCircle/index.esm.js +9 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/CheckCircle/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/CheckCircle/index.js +2 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/CheckCircle/index.js.map +1 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/Star/index.esm.js +9 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/Star/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/Star/index.js +2 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/Star/index.js.map +1 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/StarBorder/index.esm.js +9 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/StarBorder/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/StarBorder/index.js +2 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/StarBorder/index.js.map +1 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/Warning/index.esm.js +9 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/Warning/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/Warning/index.js +2 -0
- package/dist/node_modules/@mui/material/internal/svg-icons/Warning/index.js.map +1 -0
- package/dist/node_modules/@mui/material/useScrollTrigger/useScrollTrigger/index.esm.js +51 -0
- package/dist/node_modules/@mui/material/useScrollTrigger/useScrollTrigger/index.esm.js.map +1 -0
- package/dist/node_modules/@mui/material/useScrollTrigger/useScrollTrigger/index.js +2 -0
- package/dist/node_modules/@mui/material/useScrollTrigger/useScrollTrigger/index.js.map +1 -0
- package/dist/node_modules/@mui/system/colorManipulator/index.esm.js +2 -2
- package/dist/node_modules/@mui/system/colorManipulator/index.js +1 -1
- package/dist/node_modules/@mui/system/colorManipulator/index.js.map +1 -1
- package/dist/node_modules/@mui/system/createStyled/index.esm.js +6 -6
- package/dist/node_modules/@mui/system/createStyled/index.js +1 -1
- package/dist/node_modules/@mui/system/createStyled/index.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/Stack/createStack/index.esm.js +1 -1
- package/dist/node_modules/@mui/system/esm/Stack/createStack/index.js +2 -2
- package/dist/node_modules/@mui/system/useThemeWithoutDefault/index.esm.js +1 -1
- package/dist/node_modules/@mui/system/useThemeWithoutDefault/index.js +1 -1
- package/dist/node_modules/d3-axis/src/axis/index.esm.js +5 -1
- package/dist/node_modules/d3-axis/src/axis/index.esm.js.map +1 -1
- package/dist/node_modules/d3-axis/src/axis/index.js +1 -1
- package/dist/node_modules/d3-axis/src/axis/index.js.map +1 -1
- package/dist/redux/hooks/index.esm.js +1 -1
- package/dist/src/assets/index.d.ts +0 -1
- package/dist/src/components/charts/donut-chart/donut-chart.d.ts +1 -2
- package/dist/src/components/charts/index.d.ts +11 -0
- package/dist/src/components/confirm-modal/confirm-modal.d.ts +1 -2
- package/dist/src/components/confirm-modal/index.d.ts +1 -0
- package/dist/src/components/editor/custom-editor.d.ts +12 -8
- package/dist/src/components/grid/grid-card/grid-card.d.ts +10 -1
- package/dist/src/components/index.d.ts +229 -94
- package/dist/src/components/inventory-reports-title-bar/component/reportFilter.d.ts +3 -2
- package/dist/src/components/list/list.d.ts +2 -1
- package/dist/src/components/module-button/module-button.d.ts +10 -1
- package/dist/src/components/mulitline/multiline.d.ts +2 -2
- package/dist/src/components/page-navigator/page-navigator.d.ts +3 -3
- package/dist/src/components/parties-modal/parties-modal.d.ts +3 -3
- package/dist/src/components/rfq-response/item-response-details.d.ts +2 -1
- package/dist/src/components/tab-bar-ui/tab-bar-ui.d.ts +3 -3
- package/dist/src/components/tabs/tabs.d.ts +2 -2
- package/dist/src/hooks/use-translations.d.ts +2 -1
- package/dist/src/hooks/useCheckSkuAndName.d.ts +4 -2
- package/dist/src/layout/fullScreen/fullScreen.d.ts +5 -1
- package/dist/src/layout/sidebarScreen/sidebarScreen.d.ts +3 -3
- package/dist/src/views/afterAuth/dashboard/dashboard.d.ts +2 -1
- package/dist/src/views/afterAuth/index.d.ts +1 -0
- package/dist/src/views/beforeAuth/index.d.ts +0 -1
- package/dist/src/views/form-builder/element-edit-forms/column-width.d.ts +5 -3
- package/dist/src/views/index.d.ts +1 -0
- package/dist/style.css +77 -71
- package/dist/utils/common/index.esm.js +1 -1
- package/dist/views/afterAuth/dashboard/dashboard/index.esm.js +5 -4
- package/dist/views/afterAuth/dashboard/dashboard/index.esm.js.map +1 -1
- package/dist/views/afterAuth/dashboard/dashboard/index.js +3 -3
- package/dist/views/afterAuth/dashboard/dashboard/index.js.map +1 -1
- package/dist/views/afterAuth/dashboard/dashboard.d.ts +2 -1
- package/dist/views/afterAuth/dashboard/redux/reducer/index.esm.js +0 -6
- package/dist/views/afterAuth/dashboard/redux/reducer/index.esm.js.map +1 -1
- package/dist/views/afterAuth/dashboard/redux/reducer/index.js +1 -1
- package/dist/views/afterAuth/dashboard/redux/reducer/index.js.map +1 -1
- package/dist/views/afterAuth/index.d.ts +1 -0
- package/dist/views/afterAuth/page-view/page-view/index.esm.js +101 -0
- package/dist/views/afterAuth/page-view/page-view/index.esm.js.map +1 -0
- package/dist/views/afterAuth/page-view/page-view/index.js +6 -0
- package/dist/views/afterAuth/page-view/page-view/index.js.map +1 -0
- package/dist/views/afterAuth/page-view/redux/actionCreator/index.esm.js +13 -0
- package/dist/views/afterAuth/page-view/redux/actionCreator/index.esm.js.map +1 -0
- package/dist/views/afterAuth/page-view/redux/actionCreator/index.js +2 -0
- package/dist/views/afterAuth/page-view/redux/actionCreator/index.js.map +1 -0
- package/dist/views/afterAuth/page-view/redux/reducer/index.esm.js +63 -0
- package/dist/views/afterAuth/page-view/redux/reducer/index.esm.js.map +1 -0
- package/dist/views/afterAuth/page-view/redux/reducer/index.js +2 -0
- package/dist/views/afterAuth/page-view/redux/reducer/index.js.map +1 -0
- package/dist/views/afterAuth/page-view/redux/state/index.esm.js +31 -0
- package/dist/views/afterAuth/page-view/redux/state/index.esm.js.map +1 -0
- package/dist/views/afterAuth/page-view/redux/state/index.js +2 -0
- package/dist/views/afterAuth/page-view/redux/state/index.js.map +1 -0
- package/dist/views/afterAuth/page-view/utils/default-data/index.esm.js +137 -0
- package/dist/views/afterAuth/page-view/utils/default-data/index.esm.js.map +1 -0
- package/dist/views/afterAuth/page-view/utils/default-data/index.js +2 -0
- package/dist/views/afterAuth/page-view/utils/default-data/index.js.map +1 -0
- package/dist/views/afterAuth/page-view/utils/local-data/index.esm.js +137 -0
- package/dist/views/afterAuth/page-view/utils/local-data/index.esm.js.map +1 -0
- package/dist/views/afterAuth/page-view/utils/local-data/index.js +2 -0
- package/dist/views/afterAuth/page-view/utils/local-data/index.js.map +1 -0
- package/dist/views/beforeAuth/index.d.ts +0 -1
- package/dist/views/form-builder/custom-form/index.esm.js +1151 -0
- package/dist/views/form-builder/custom-form/index.esm.js.map +1 -0
- package/dist/views/form-builder/custom-form/index.js +30 -0
- package/dist/views/form-builder/custom-form/index.js.map +1 -0
- package/dist/views/form-builder/element-edit-forms/checkbox/index.esm.js +327 -0
- package/dist/views/form-builder/element-edit-forms/checkbox/index.esm.js.map +1 -0
- package/dist/views/form-builder/element-edit-forms/checkbox/index.js +30 -0
- package/dist/views/form-builder/element-edit-forms/checkbox/index.js.map +1 -0
- package/dist/views/form-builder/element-edit-forms/column-width/index.esm.js +93 -0
- package/dist/views/form-builder/element-edit-forms/column-width/index.esm.js.map +1 -0
- package/dist/views/form-builder/element-edit-forms/column-width/index.js +4 -0
- package/dist/views/form-builder/element-edit-forms/column-width/index.js.map +1 -0
- package/dist/views/form-builder/element-edit-forms/column-width.d.ts +5 -3
- package/dist/views/form-builder/element-edit-forms/field-select/index.esm.js +89 -0
- package/dist/views/form-builder/element-edit-forms/field-select/index.esm.js.map +1 -0
- package/dist/views/form-builder/element-edit-forms/field-select/index.js +3 -0
- package/dist/views/form-builder/element-edit-forms/field-select/index.js.map +1 -0
- package/dist/views/form-builder/element-edit-forms/section/index.esm.js +222 -0
- package/dist/views/form-builder/element-edit-forms/section/index.esm.js.map +1 -0
- package/dist/views/form-builder/element-edit-forms/section/index.js +15 -0
- package/dist/views/form-builder/element-edit-forms/section/index.js.map +1 -0
- package/dist/views/form-builder/element-edit-forms/select/index.esm.js +318 -0
- package/dist/views/form-builder/element-edit-forms/select/index.esm.js.map +1 -0
- package/dist/views/form-builder/element-edit-forms/select/index.js +25 -0
- package/dist/views/form-builder/element-edit-forms/select/index.js.map +1 -0
- package/dist/views/form-builder/element-edit-forms/table-form/index.esm.js +111 -0
- package/dist/views/form-builder/element-edit-forms/table-form/index.esm.js.map +1 -0
- package/dist/views/form-builder/element-edit-forms/table-form/index.js +5 -0
- package/dist/views/form-builder/element-edit-forms/table-form/index.js.map +1 -0
- package/dist/views/form-builder/element-edit-forms/text/index.esm.js +559 -0
- package/dist/views/form-builder/element-edit-forms/text/index.esm.js.map +1 -0
- package/dist/views/form-builder/element-edit-forms/text/index.js +31 -0
- package/dist/views/form-builder/element-edit-forms/text/index.js.map +1 -0
- package/dist/views/form-builder/field_properties/index.esm.js +216 -0
- package/dist/views/form-builder/field_properties/index.esm.js.map +1 -0
- package/dist/views/form-builder/field_properties/index.js +2 -0
- package/dist/views/form-builder/field_properties/index.js.map +1 -0
- package/dist/views/form-builder/form-fields/index.esm.js +355 -0
- package/dist/views/form-builder/form-fields/index.esm.js.map +1 -0
- package/dist/views/form-builder/form-fields/index.js +24 -0
- package/dist/views/form-builder/form-fields/index.js.map +1 -0
- package/dist/views/form-builder/redux/actionCreator/index.esm.js +1 -1
- package/dist/views/form-builder/redux/reducer/index.esm.js +6 -1
- package/dist/views/form-builder/redux/reducer/index.esm.js.map +1 -1
- package/dist/views/form-builder/redux/reducer/index.js +1 -1
- package/dist/views/form-builder/redux/reducer/index.js.map +1 -1
- package/dist/views/form-builder/utils/common/index.esm.js +285 -0
- package/dist/views/form-builder/utils/common/index.esm.js.map +1 -0
- package/dist/views/form-builder/utils/common/index.js +2 -0
- package/dist/views/form-builder/utils/common/index.js.map +1 -0
- package/dist/views/index.d.ts +1 -0
- package/dist/views/index.esm.js +94 -49
- package/dist/views/index.esm.js.map +1 -1
- package/dist/views/index.js +1 -1
- package/package.json +2 -1
- package/dist/components/examples/FlexibleReduxExample/index.esm.js +0 -154
- package/dist/components/examples/FlexibleReduxExample/index.esm.js.map +0 -1
- package/dist/components/examples/FlexibleReduxExample/index.js +0 -19
- package/dist/components/examples/FlexibleReduxExample/index.js.map +0 -1
- package/dist/components/footer/index.esm.js +0 -71
- package/dist/components/footer/index.esm.js.map +0 -1
- package/dist/components/footer/index.js +0 -7
- package/dist/components/footer/index.js.map +0 -1
- package/dist/components/header/header-enhanced/index.esm.js +0 -405
- package/dist/components/header/header-enhanced/index.esm.js.map +0 -1
- package/dist/components/header/header-enhanced/index.js +0 -33
- package/dist/components/header/header-enhanced/index.js.map +0 -1
- package/dist/components/header copy/index.esm.js +0 -131
- package/dist/components/header copy/index.esm.js.map +0 -1
- package/dist/components/header copy/index.js +0 -11
- package/dist/components/header copy/index.js.map +0 -1
- package/dist/components/inventory-reports-title-bar/component/reportFilter/index.esm.js +0 -400
- package/dist/components/inventory-reports-title-bar/component/reportFilter/index.esm.js.map +0 -1
- package/dist/components/inventory-reports-title-bar/component/reportFilter/index.js +0 -41
- package/dist/components/inventory-reports-title-bar/component/reportFilter/index.js.map +0 -1
- package/dist/components/share-modal/share-modal-enhanced/index.esm.js +0 -288
- package/dist/components/share-modal/share-modal-enhanced/index.esm.js.map +0 -1
- package/dist/components/share-modal/share-modal-enhanced/index.js +0 -24
- package/dist/components/share-modal/share-modal-enhanced/index.js.map +0 -1
- package/dist/views/beforeAuth/login/index/index.esm.js +0 -209
- package/dist/views/beforeAuth/login/index/index.esm.js.map +0 -1
- package/dist/views/beforeAuth/login/index/index.js +0 -20
- package/dist/views/beforeAuth/login/index/index.js.map +0 -1
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
import { useEffect } from "react";
|
|
2
|
+
import { formBuilderDeConversion } from "../../../../utils/form-builder-deconversion/index.esm.js";
|
|
3
|
+
import { PathnameAccounting } from "../../../../constants/pathnames/pathname.accounting/index.esm.js";
|
|
4
|
+
import { PathnameCrm } from "../../../../constants/pathnames/pathname.crm/index.esm.js";
|
|
5
|
+
import { PathnameInventory } from "../../../../constants/pathnames/pathname.inventory/index.esm.js";
|
|
6
|
+
import { PathnameManufacturing } from "../../../../constants/pathnames/pathname.manufacturing/index.esm.js";
|
|
7
|
+
import { PathnamePurchase } from "../../../../constants/pathnames/pathname.procurement/index.esm.js";
|
|
8
|
+
import { PathnameRental } from "../../../../constants/pathnames/pathname.rental/index.esm.js";
|
|
9
|
+
import { PathnameUsers } from "../../../../constants/pathnames/pathname.user/index.esm.js";
|
|
10
|
+
const MODULE_PATHS = {
|
|
11
|
+
accounting: PathnameAccounting.FORMS,
|
|
12
|
+
inventory: PathnameInventory.FORMS,
|
|
13
|
+
manufacturing: PathnameManufacturing.FORMS,
|
|
14
|
+
procurement: PathnamePurchase.FORMS,
|
|
15
|
+
crm: PathnameCrm.FORMS,
|
|
16
|
+
rental: PathnameRental.FORMS,
|
|
17
|
+
user: PathnameUsers.FORMS
|
|
18
|
+
};
|
|
19
|
+
const formatText = (text) => {
|
|
20
|
+
return text.split("_").map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()).join(" ");
|
|
21
|
+
};
|
|
22
|
+
const getRedirectionPath = (currentModule) => {
|
|
23
|
+
if (!isValidModule(currentModule)) {
|
|
24
|
+
throw new Error(`Invalid module: ${currentModule}`);
|
|
25
|
+
}
|
|
26
|
+
return MODULE_PATHS[currentModule];
|
|
27
|
+
};
|
|
28
|
+
const isValidModule = (module) => {
|
|
29
|
+
return module in MODULE_PATHS;
|
|
30
|
+
};
|
|
31
|
+
const createDefaultTableColumns = () => [
|
|
32
|
+
{ header: "Column 1", accessorKey: "column_1", visible: true },
|
|
33
|
+
{ header: "Column 2", accessorKey: "column_2", visible: true }
|
|
34
|
+
];
|
|
35
|
+
const processTableColumns = (member, formBuilder) => {
|
|
36
|
+
var _a, _b;
|
|
37
|
+
if ((_a = member.table_columns) == null ? void 0 : _a.length) {
|
|
38
|
+
return member.table_columns;
|
|
39
|
+
}
|
|
40
|
+
if (!member.table || !((_b = formBuilder.fields) == null ? void 0 : _b[member.table])) {
|
|
41
|
+
return createDefaultTableColumns();
|
|
42
|
+
}
|
|
43
|
+
const fields = formBuilder.fields[member.table];
|
|
44
|
+
if (!Array.isArray(fields) || fields.length === 0) {
|
|
45
|
+
return createDefaultTableColumns();
|
|
46
|
+
}
|
|
47
|
+
return fields.map((field, index) => ({
|
|
48
|
+
header: formatText(field.field),
|
|
49
|
+
accessorKey: field.field,
|
|
50
|
+
visible: index <= 3
|
|
51
|
+
// Show first 4 columns by default
|
|
52
|
+
}));
|
|
53
|
+
};
|
|
54
|
+
const processMembers = (sections, formBuilder) => {
|
|
55
|
+
return sections.flatMap(
|
|
56
|
+
(section) => section.members.map((member) => {
|
|
57
|
+
if (member.field_type === "table") {
|
|
58
|
+
return {
|
|
59
|
+
...member,
|
|
60
|
+
table_columns: processTableColumns(member, formBuilder)
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
return { ...member };
|
|
64
|
+
})
|
|
65
|
+
);
|
|
66
|
+
};
|
|
67
|
+
const extractSections = (sections) => {
|
|
68
|
+
return sections.map(({
|
|
69
|
+
field_type,
|
|
70
|
+
label,
|
|
71
|
+
is_accordion,
|
|
72
|
+
id,
|
|
73
|
+
remove_section,
|
|
74
|
+
form_switcher_label,
|
|
75
|
+
form_switcher_name,
|
|
76
|
+
is_section_field,
|
|
77
|
+
section_type,
|
|
78
|
+
switcher_forms
|
|
79
|
+
}) => ({
|
|
80
|
+
field_type,
|
|
81
|
+
label,
|
|
82
|
+
is_accordion,
|
|
83
|
+
id,
|
|
84
|
+
remove_section,
|
|
85
|
+
form_switcher_label,
|
|
86
|
+
form_switcher_name,
|
|
87
|
+
is_section_field,
|
|
88
|
+
section_type,
|
|
89
|
+
switcher_forms
|
|
90
|
+
}));
|
|
91
|
+
};
|
|
92
|
+
const processData = (data, activeTabId = 0, formBuilder, tabsData, callbacks) => {
|
|
93
|
+
const { removeSection, remove } = callbacks;
|
|
94
|
+
try {
|
|
95
|
+
removeSection();
|
|
96
|
+
remove();
|
|
97
|
+
if (data.tab) {
|
|
98
|
+
processTabData(data.tab, activeTabId, formBuilder, callbacks);
|
|
99
|
+
} else if (data.section) {
|
|
100
|
+
processSectionData(data.section, formBuilder, callbacks);
|
|
101
|
+
} else if (data.tabsData && tabsData) {
|
|
102
|
+
processExistingTabsData(tabsData, activeTabId, callbacks);
|
|
103
|
+
} else {
|
|
104
|
+
throw new Error("Invalid data format: Missing required properties (tab, section, or tabsData)");
|
|
105
|
+
}
|
|
106
|
+
} catch (error) {
|
|
107
|
+
console.error("Error processing data:", error);
|
|
108
|
+
alert(error instanceof Error ? error.message : "An error occurred while processing data");
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
const processTabData = (tabs, activeTabId, formBuilder, callbacks) => {
|
|
112
|
+
const { setTabsData, append, appendSection } = callbacks;
|
|
113
|
+
setTabsData(tabs);
|
|
114
|
+
const activeTab = tabs.find((tab) => tab.tab_order === activeTabId + 1);
|
|
115
|
+
if (!(activeTab == null ? void 0 : activeTab.data)) {
|
|
116
|
+
console.warn(`No active tab found for tab order: ${activeTabId + 1}`);
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
const sections = extractSections(activeTab.data);
|
|
120
|
+
const members = processMembers(activeTab.data, formBuilder);
|
|
121
|
+
append(members);
|
|
122
|
+
appendSection(sections);
|
|
123
|
+
};
|
|
124
|
+
const processSectionData = (sections, formBuilder, callbacks) => {
|
|
125
|
+
const { append, appendSection } = callbacks;
|
|
126
|
+
const extractedSections = extractSections(sections);
|
|
127
|
+
const members = processMembers(sections, formBuilder);
|
|
128
|
+
append(members);
|
|
129
|
+
appendSection(extractedSections);
|
|
130
|
+
};
|
|
131
|
+
const processExistingTabsData = (tabsData, activeTabId, callbacks) => {
|
|
132
|
+
const { append, appendSection } = callbacks;
|
|
133
|
+
const activeTab = tabsData.find((tab) => tab.tab_order === activeTabId + 1);
|
|
134
|
+
if (!(activeTab == null ? void 0 : activeTab.data)) {
|
|
135
|
+
console.warn(`No active tab found for tab order: ${activeTabId + 1}`);
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
const sections = extractSections(activeTab.data);
|
|
139
|
+
const members = activeTab.data.flatMap(
|
|
140
|
+
(section) => section.members.map((member) => ({ ...member }))
|
|
141
|
+
);
|
|
142
|
+
if (members.length > 0) append(members);
|
|
143
|
+
if (sections.length > 0) appendSection(sections);
|
|
144
|
+
};
|
|
145
|
+
const useFormDataProcessor = (formBuilder, tabsData, activeTabValue, callbacks) => {
|
|
146
|
+
const { removeSection, remove, append } = callbacks;
|
|
147
|
+
const serializedFormData = useMemo(
|
|
148
|
+
() => JSON.stringify(formBuilder == null ? void 0 : formBuilder.formData),
|
|
149
|
+
[formBuilder == null ? void 0 : formBuilder.formData]
|
|
150
|
+
);
|
|
151
|
+
const initialData = useMemo(() => {
|
|
152
|
+
var _a;
|
|
153
|
+
if (!((_a = formBuilder == null ? void 0 : formBuilder.formData) == null ? void 0 : _a.length)) return null;
|
|
154
|
+
try {
|
|
155
|
+
return formBuilderDeConversion(formBuilder.formData);
|
|
156
|
+
} catch (error) {
|
|
157
|
+
console.error("Error processing form data:", error);
|
|
158
|
+
return null;
|
|
159
|
+
}
|
|
160
|
+
}, [serializedFormData]);
|
|
161
|
+
useEffect(() => {
|
|
162
|
+
if (!initialData) {
|
|
163
|
+
removeSection();
|
|
164
|
+
remove();
|
|
165
|
+
append([]);
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
try {
|
|
169
|
+
if (tabsData.length > 0) {
|
|
170
|
+
processData(
|
|
171
|
+
{ tabsData },
|
|
172
|
+
activeTabValue,
|
|
173
|
+
formBuilder,
|
|
174
|
+
tabsData,
|
|
175
|
+
callbacks
|
|
176
|
+
);
|
|
177
|
+
} else if (initialData.tab) {
|
|
178
|
+
processData(
|
|
179
|
+
initialData,
|
|
180
|
+
activeTabValue,
|
|
181
|
+
formBuilder,
|
|
182
|
+
tabsData,
|
|
183
|
+
callbacks
|
|
184
|
+
);
|
|
185
|
+
} else if (initialData.section) {
|
|
186
|
+
processData(
|
|
187
|
+
initialData,
|
|
188
|
+
0,
|
|
189
|
+
// No active tab for section-only data
|
|
190
|
+
formBuilder,
|
|
191
|
+
tabsData,
|
|
192
|
+
callbacks
|
|
193
|
+
);
|
|
194
|
+
} else {
|
|
195
|
+
console.warn("No valid data structure found in initialData");
|
|
196
|
+
removeSection();
|
|
197
|
+
remove();
|
|
198
|
+
append([]);
|
|
199
|
+
}
|
|
200
|
+
} catch (error) {
|
|
201
|
+
console.error("Error in form data processing:", error);
|
|
202
|
+
removeSection();
|
|
203
|
+
remove();
|
|
204
|
+
append([]);
|
|
205
|
+
}
|
|
206
|
+
}, [activeTabValue, serializedFormData, tabsData.length, initialData, callbacks, formBuilder]);
|
|
207
|
+
return { initialData };
|
|
208
|
+
};
|
|
209
|
+
const useFormDataEffect = (formBuilder, tabsData, activeTabValue = 0, callbacks) => {
|
|
210
|
+
const { removeSection, remove, append } = callbacks;
|
|
211
|
+
useEffect(() => {
|
|
212
|
+
var _a;
|
|
213
|
+
let initialData = null;
|
|
214
|
+
if ((_a = formBuilder == null ? void 0 : formBuilder.formData) == null ? void 0 : _a.length) {
|
|
215
|
+
try {
|
|
216
|
+
initialData = formBuilderDeConversion(formBuilder.formData);
|
|
217
|
+
} catch (error) {
|
|
218
|
+
console.error("Error converting form data:", error);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
if (!initialData) {
|
|
222
|
+
removeSection();
|
|
223
|
+
remove();
|
|
224
|
+
append([]);
|
|
225
|
+
return;
|
|
226
|
+
}
|
|
227
|
+
try {
|
|
228
|
+
if (tabsData.length > 0) {
|
|
229
|
+
processData(
|
|
230
|
+
{ tabsData },
|
|
231
|
+
activeTabValue,
|
|
232
|
+
formBuilder,
|
|
233
|
+
tabsData,
|
|
234
|
+
callbacks
|
|
235
|
+
);
|
|
236
|
+
} else if (initialData.tab) {
|
|
237
|
+
processData(
|
|
238
|
+
initialData,
|
|
239
|
+
activeTabValue,
|
|
240
|
+
formBuilder,
|
|
241
|
+
tabsData,
|
|
242
|
+
callbacks
|
|
243
|
+
);
|
|
244
|
+
} else if (initialData.section) {
|
|
245
|
+
processData(
|
|
246
|
+
initialData,
|
|
247
|
+
0,
|
|
248
|
+
formBuilder,
|
|
249
|
+
tabsData,
|
|
250
|
+
callbacks
|
|
251
|
+
);
|
|
252
|
+
} else {
|
|
253
|
+
console.warn("Invalid data structure in initialData");
|
|
254
|
+
removeSection();
|
|
255
|
+
remove();
|
|
256
|
+
append([]);
|
|
257
|
+
}
|
|
258
|
+
} catch (error) {
|
|
259
|
+
console.error("Error processing form data:", error);
|
|
260
|
+
removeSection();
|
|
261
|
+
remove();
|
|
262
|
+
append([]);
|
|
263
|
+
}
|
|
264
|
+
}, [activeTabValue, JSON.stringify(formBuilder == null ? void 0 : formBuilder.formData), tabsData.length]);
|
|
265
|
+
};
|
|
266
|
+
const generateModulePath = (currentModule) => {
|
|
267
|
+
try {
|
|
268
|
+
const redirectionPath = getRedirectionPath(currentModule);
|
|
269
|
+
return `/dashboard/${currentModule}${redirectionPath}`;
|
|
270
|
+
} catch (error) {
|
|
271
|
+
console.error("Error generating module path:", error);
|
|
272
|
+
throw error;
|
|
273
|
+
}
|
|
274
|
+
};
|
|
275
|
+
export {
|
|
276
|
+
createDefaultTableColumns,
|
|
277
|
+
extractSections,
|
|
278
|
+
formatText,
|
|
279
|
+
generateModulePath,
|
|
280
|
+
processMembers,
|
|
281
|
+
processTableColumns,
|
|
282
|
+
useFormDataEffect,
|
|
283
|
+
useFormDataProcessor
|
|
284
|
+
};
|
|
285
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../../../../src/views/form-builder/utils/common.ts"],"sourcesContent":["// React imports\r\nimport { useEffect } from \"react\";\r\n\r\n// ERP Common imports\r\nimport formBuilderDeConversion from \"@/utils/form-builder-deconversion\";\r\n\r\n// Module pathname imports\r\nimport { PathnameAccounting } from \"../../../constants/pathnames/pathname.accounting\";\r\nimport { PathnameCrm } from \"../../../constants/pathnames/pathname.crm\";\r\nimport { PathnameInventory } from \"../../../constants/pathnames/pathname.inventory\";\r\nimport { PathnameManufacturing } from \"../../../constants/pathnames/pathname.manufacturing\";\r\nimport { PathnamePurchase } from \"../../../constants/pathnames/pathname.procurement\";\r\nimport { PathnameRental } from \"../../../constants/pathnames/pathname.rental\";\r\nimport { PathnameUsers } from \"../../../constants/pathnames/pathname.user\";\r\n\r\n// Types for better type safety\r\nexport interface TableColumn {\r\n header: string;\r\n accessorKey: string;\r\n visible: boolean;\r\n}\r\n\r\nexport interface FormMember {\r\n field_type: string;\r\n table?: string;\r\n table_columns?: TableColumn[];\r\n [key: string]: any;\r\n}\r\n\r\nexport interface FormSection {\r\n field_type: string;\r\n label: string;\r\n is_accordion: boolean;\r\n id: string;\r\n remove_section: boolean;\r\n form_switcher_label?: string;\r\n form_switcher_name?: string;\r\n is_section_field?: boolean;\r\n section_type?: string;\r\n switcher_forms?: any;\r\n members: FormMember[];\r\n}\r\n\r\nexport interface TabData {\r\n tab_order: number;\r\n data: FormSection[];\r\n}\r\n\r\nexport interface ProcessedData {\r\n tab?: TabData[];\r\n section?: FormSection[];\r\n tabsData?: TabData[];\r\n}\r\n\r\n// Constants for module paths\r\nconst MODULE_PATHS = {\r\n accounting: PathnameAccounting.FORMS,\r\n inventory: PathnameInventory.FORMS,\r\n manufacturing: PathnameManufacturing.FORMS,\r\n procurement: PathnamePurchase.FORMS,\r\n crm: PathnameCrm.FORMS,\r\n rental: PathnameRental.FORMS,\r\n user: PathnameUsers.FORMS,\r\n} as const;\r\n\r\nexport type ModuleType = keyof typeof MODULE_PATHS;\r\n\r\n// Helper function to format text (converts snake_case to Title Case)\r\nexport const formatText = (text: string): string => {\r\n return text\r\n .split('_')\r\n .map(word => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())\r\n .join(' ');\r\n};\r\n\r\n// Helper function to get redirection path\r\nconst getRedirectionPath = (currentModule: string): string => {\r\n if (!isValidModule(currentModule)) {\r\n throw new Error(`Invalid module: ${currentModule}`);\r\n }\r\n return MODULE_PATHS[currentModule as ModuleType];\r\n};\r\n\r\n// Type guard for module validation\r\nconst isValidModule = (module: string): module is ModuleType => {\r\n return module in MODULE_PATHS;\r\n};\r\n\r\n// Helper function to create default table columns\r\nexport const createDefaultTableColumns = (): TableColumn[] => [\r\n { header: \"Column 1\", accessorKey: \"column_1\", visible: true },\r\n { header: \"Column 2\", accessorKey: \"column_2\", visible: true },\r\n];\r\n\r\n// Helper function to process table columns\r\nexport const processTableColumns = (\r\n member: FormMember,\r\n formBuilder: any\r\n): TableColumn[] => {\r\n // Return existing columns if they exist\r\n if (member.table_columns?.length) {\r\n return member.table_columns;\r\n }\r\n\r\n // Check if table exists and has fields\r\n if (!member.table || !formBuilder.fields?.[member.table]) {\r\n return createDefaultTableColumns();\r\n }\r\n\r\n const fields = formBuilder.fields[member.table];\r\n if (!Array.isArray(fields) || fields.length === 0) {\r\n return createDefaultTableColumns();\r\n }\r\n\r\n return fields.map((field: any, index: number) => ({\r\n header: formatText(field.field),\r\n accessorKey: field.field,\r\n visible: index <= 3, // Show first 4 columns by default\r\n }));\r\n};\r\n\r\n// Helper function to process members\r\nexport const processMembers = (\r\n sections: FormSection[],\r\n formBuilder: any\r\n): FormMember[] => {\r\n return sections.flatMap((section) =>\r\n section.members.map((member) => {\r\n if (member.field_type === \"table\") {\r\n return {\r\n ...member,\r\n table_columns: processTableColumns(member, formBuilder),\r\n };\r\n }\r\n return { ...member };\r\n })\r\n );\r\n};\r\n\r\n// Helper function to extract sections data\r\nexport const extractSections = (sections: FormSection[]): Omit<FormSection, 'members'>[] => {\r\n return sections.map(({\r\n field_type,\r\n label,\r\n is_accordion,\r\n id,\r\n remove_section,\r\n form_switcher_label,\r\n form_switcher_name,\r\n is_section_field,\r\n section_type,\r\n switcher_forms,\r\n }) => ({\r\n field_type,\r\n label,\r\n is_accordion,\r\n id,\r\n remove_section,\r\n form_switcher_label,\r\n form_switcher_name,\r\n is_section_field,\r\n section_type,\r\n switcher_forms,\r\n }));\r\n};\r\n\r\n// Main processing function\r\nconst processData = (\r\n data: ProcessedData,\r\n activeTabId: number = 0,\r\n formBuilder: any,\r\n tabsData: TabData[] | null,\r\n // Callback functions\r\n callbacks: {\r\n removeSection: () => void;\r\n remove: () => void;\r\n setTabsData: (data: TabData[]) => void;\r\n append: (members: FormMember[]) => void;\r\n appendSection: (sections: Omit<FormSection, 'members'>[]) => void;\r\n }\r\n): void => {\r\n const { removeSection, remove, setTabsData, append, appendSection } = callbacks;\r\n\r\n try {\r\n // Clear existing data\r\n removeSection();\r\n remove();\r\n\r\n if (data.tab) {\r\n processTabData(data.tab, activeTabId, formBuilder, callbacks);\r\n } else if (data.section) {\r\n processSectionData(data.section, formBuilder, callbacks);\r\n } else if (data.tabsData && tabsData) {\r\n processExistingTabsData(tabsData, activeTabId, callbacks);\r\n } else {\r\n throw new Error(\"Invalid data format: Missing required properties (tab, section, or tabsData)\");\r\n }\r\n } catch (error) {\r\n console.error(\"Error processing data:\", error);\r\n // You might want to show a user-friendly error message instead of alert\r\n alert(error instanceof Error ? error.message : \"An error occurred while processing data\");\r\n }\r\n};\r\n\r\n// Process tab data\r\nconst processTabData = (\r\n tabs: TabData[],\r\n activeTabId: number,\r\n formBuilder: any,\r\n callbacks: {\r\n setTabsData: (data: TabData[]) => void;\r\n append: (members: FormMember[]) => void;\r\n appendSection: (sections: Omit<FormSection, 'members'>[]) => void;\r\n }\r\n): void => {\r\n const { setTabsData, append, appendSection } = callbacks;\r\n\r\n setTabsData(tabs);\r\n\r\n const activeTab = tabs.find(tab => tab.tab_order === activeTabId + 1);\r\n if (!activeTab?.data) {\r\n console.warn(`No active tab found for tab order: ${activeTabId + 1}`);\r\n return;\r\n }\r\n\r\n const sections = extractSections(activeTab.data);\r\n const members = processMembers(activeTab.data, formBuilder);\r\n\r\n append(members);\r\n appendSection(sections);\r\n};\r\n\r\n// Process section data\r\nconst processSectionData = (\r\n sections: FormSection[],\r\n formBuilder: any,\r\n callbacks: {\r\n append: (members: FormMember[]) => void;\r\n appendSection: (sections: Omit<FormSection, 'members'>[]) => void;\r\n }\r\n): void => {\r\n const { append, appendSection } = callbacks;\r\n\r\n const extractedSections = extractSections(sections);\r\n const members = processMembers(sections, formBuilder);\r\n\r\n append(members);\r\n appendSection(extractedSections);\r\n};\r\n\r\n// Process existing tabs data\r\nconst processExistingTabsData = (\r\n tabsData: TabData[],\r\n activeTabId: number,\r\n callbacks: {\r\n append: (members: FormMember[]) => void;\r\n appendSection: (sections: Omit<FormSection, 'members'>[]) => void;\r\n }\r\n): void => {\r\n const { append, appendSection } = callbacks;\r\n\r\n const activeTab = tabsData.find(tab => tab.tab_order === activeTabId + 1);\r\n if (!activeTab?.data) {\r\n console.warn(`No active tab found for tab order: ${activeTabId + 1}`);\r\n return;\r\n }\r\n\r\n const sections = extractSections(activeTab.data);\r\n const members = activeTab.data.flatMap(section =>\r\n section.members.map(member => ({ ...member }))\r\n );\r\n\r\n if (members.length > 0) append(members);\r\n if (sections.length > 0) appendSection(sections);\r\n};\r\n\r\n// Custom hook for form data processing\r\nexport const useFormDataProcessor = (\r\n formBuilder: any,\r\n tabsData: TabData[],\r\n activeTabValue: number,\r\n callbacks: {\r\n removeSection: () => void;\r\n remove: () => void;\r\n setTabsData: (data: TabData[]) => void;\r\n append: (members: FormMember[]) => void;\r\n appendSection: (sections: Omit<FormSection, 'members'>[]) => void;\r\n }\r\n) => {\r\n const { removeSection, remove, append } = callbacks;\r\n\r\n // Memoize the serialized form data to avoid unnecessary re-renders\r\n const serializedFormData = useMemo(() =>\r\n JSON.stringify(formBuilder?.formData),\r\n [formBuilder?.formData]\r\n );\r\n\r\n // Memoize the initial data processing\r\n const initialData = useMemo(() => {\r\n if (!formBuilder?.formData?.length) return null;\r\n\r\n try {\r\n return formBuilderDeConversion(formBuilder.formData);\r\n } catch (error) {\r\n console.error('Error processing form data:', error);\r\n return null;\r\n }\r\n }, [serializedFormData]);\r\n\r\n useEffect(() => {\r\n // Handle case when there's no initial data\r\n if (!initialData) {\r\n removeSection();\r\n remove();\r\n append([]);\r\n return;\r\n }\r\n\r\n // Determine processing strategy based on available data\r\n try {\r\n if (tabsData.length > 0) {\r\n // Process existing tabs data\r\n processData(\r\n { tabsData: tabsData },\r\n activeTabValue,\r\n formBuilder,\r\n tabsData,\r\n callbacks\r\n );\r\n } else if (initialData.tab) {\r\n // Process new tab data\r\n processData(\r\n initialData,\r\n activeTabValue,\r\n formBuilder,\r\n tabsData,\r\n callbacks\r\n );\r\n } else if (initialData.section) {\r\n // Process section data\r\n processData(\r\n initialData,\r\n 0, // No active tab for section-only data\r\n formBuilder,\r\n tabsData,\r\n callbacks\r\n );\r\n } else {\r\n console.warn('No valid data structure found in initialData');\r\n removeSection();\r\n remove();\r\n append([]);\r\n }\r\n } catch (error) {\r\n console.error('Error in form data processing:', error);\r\n // Reset to clean state on error\r\n removeSection();\r\n remove();\r\n append([]);\r\n }\r\n }, [activeTabValue, serializedFormData, tabsData.length, initialData, callbacks, formBuilder]);\r\n\r\n return { initialData };\r\n};\r\n\r\n// Alternative: Direct useEffect implementation (if you prefer not to use custom hook)\r\nexport const useFormDataEffect = (\r\n formBuilder: any,\r\n tabsData: TabData[],\r\n activeTabValue: number = 0,\r\n callbacks: {\r\n removeSection: () => void;\r\n remove: () => void;\r\n setTabsData: (data: TabData[]) => void;\r\n append: (members: FormMember[]) => void;\r\n appendSection: (sections: Omit<FormSection, 'members'>[]) => void;\r\n }\r\n) => {\r\n const { removeSection, remove, append } = callbacks;\r\n\r\n useEffect(() => {\r\n let initialData: ProcessedData | null = null;\r\n\r\n // Process initial data\r\n if (formBuilder?.formData?.length) {\r\n try {\r\n initialData = formBuilderDeConversion(formBuilder.formData);\r\n } catch (error) {\r\n console.error('Error converting form data:', error);\r\n }\r\n }\r\n\r\n // Handle empty initial data\r\n if (!initialData) {\r\n removeSection();\r\n remove();\r\n append([]);\r\n return;\r\n }\r\n\r\n // Process data based on available structure\r\n try {\r\n if (tabsData.length > 0) {\r\n processData(\r\n { tabsData: tabsData },\r\n activeTabValue,\r\n formBuilder,\r\n tabsData,\r\n callbacks\r\n );\r\n } else if (initialData.tab) {\r\n processData(\r\n initialData,\r\n activeTabValue,\r\n formBuilder,\r\n tabsData,\r\n callbacks\r\n );\r\n } else if (initialData.section) {\r\n processData(\r\n initialData,\r\n 0,\r\n formBuilder,\r\n tabsData,\r\n callbacks\r\n );\r\n } else {\r\n console.warn('Invalid data structure in initialData');\r\n removeSection();\r\n remove();\r\n append([]);\r\n }\r\n } catch (error) {\r\n console.error('Error processing form data:', error);\r\n // Reset to clean state on error\r\n removeSection();\r\n remove();\r\n append([]);\r\n }\r\n }, [activeTabValue, JSON.stringify(formBuilder?.formData), tabsData.length]);\r\n};\r\n\r\n// Usage example:\r\n/*\r\n// Option 1: Using custom hook\r\nconst { initialData } = useFormDataProcessor(\r\n formBuilder,\r\n tabsData,\r\n activeTabValue,\r\n {\r\n removeSection,\r\n remove,\r\n setTabsData,\r\n append,\r\n appendSection\r\n }\r\n);\r\n\r\n// Option 2: Using direct useEffect\r\nuseFormDataEffect(\r\n formBuilder,\r\n tabsData,\r\n activeTabValue,\r\n {\r\n removeSection,\r\n remove,\r\n setTabsData,\r\n append,\r\n appendSection\r\n }\r\n);\r\n*/\r\n\r\n// Path generation utility (separate from the effect)\r\nexport const generateModulePath = (currentModule: string): string => {\r\n try {\r\n const redirectionPath = getRedirectionPath(currentModule);\r\n return `/dashboard/${currentModule}${redirectionPath}`;\r\n } catch (error) {\r\n console.error('Error generating module path:', error);\r\n throw error;\r\n }\r\n};"],"names":[],"mappings":";;;;;;;;;AAuDA,MAAM,eAAe;AAAA,EACnB,YAAY,mBAAmB;AAAA,EAC/B,WAAW,kBAAkB;AAAA,EAC7B,eAAe,sBAAsB;AAAA,EACrC,aAAa,iBAAiB;AAAA,EAC9B,KAAK,YAAY;AAAA,EACjB,QAAQ,eAAe;AAAA,EACvB,MAAM,cAAc;AACtB;AAKO,MAAM,aAAa,CAAC,SAAyB;AAClD,SAAO,KACJ,MAAM,GAAG,EACT,IAAI,CAAA,SAAQ,KAAK,OAAO,CAAC,EAAE,gBAAgB,KAAK,MAAM,CAAC,EAAE,aAAa,EACtE,KAAK,GAAG;AACb;AAGA,MAAM,qBAAqB,CAAC,kBAAkC;AAC5D,MAAI,CAAC,cAAc,aAAa,GAAG;AACjC,UAAM,IAAI,MAAM,mBAAmB,aAAa,EAAE;AAAA,EACpD;AACA,SAAO,aAAa,aAA2B;AACjD;AAGA,MAAM,gBAAgB,CAAC,WAAyC;AAC9D,SAAO,UAAU;AACnB;AAGO,MAAM,4BAA4B,MAAqB;AAAA,EAC5D,EAAE,QAAQ,YAAY,aAAa,YAAY,SAAS,KAAA;AAAA,EACxD,EAAE,QAAQ,YAAY,aAAa,YAAY,SAAS,KAAA;AAC1D;AAGO,MAAM,sBAAsB,CACjC,QACA,gBACkB;;AAElB,OAAI,YAAO,kB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kCO,MAAM,qBAAqB,CAAC,kBAAkC;AACnE,MAAI;AACF,UAAM,kBAAkB,mBAAmB,aAAa;AACxD,WAAO,cAAc,aAAa,GAAG,eAAe;AAAA,EACtD,SAAS,OAAO;AACd,YAAQ,MAAM,iCAAiC,KAAK;AACpD,UAAM;AAAA,EACR;AACF;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("../../../../utils/form-builder-deconversion/index.js"),a=require("../../../../constants/pathnames/pathname.accounting/index.js"),r=require("../../../../constants/pathnames/pathname.crm/index.js"),n=require("../../../../constants/pathnames/pathname.inventory/index.js"),o=require("../../../../constants/pathnames/pathname.manufacturing/index.js"),s=require("../../../../constants/pathnames/pathname.procurement/index.js"),i=require("../../../../constants/pathnames/pathname.rental/index.js"),c=require("../../../../constants/pathnames/pathname.user/index.js");const l={accounting:a.PathnameAccounting.FORMS,inventory:n.PathnameInventory.FORMS,manufacturing:o.PathnameManufacturing.FORMS,procurement:s.PathnamePurchase.FORMS,crm:r.PathnameCrm.FORMS,rental:i.PathnameRental.FORMS,user:c.PathnameUsers.FORMS},m=e=>e.split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" "),u=(e,t)=>{var a,r;if(null==(a=e.table_columns)?void 0:a.length)return e.table_columns;if(!e.table||!(null==(r=t.fields)?void 0:r[e.table]))return[{header:"Column 1",accessorKey:"column_1",visible:!0},{header:"Column 2",accessorKey:"column_2",visible:!0}];const n=t.fields[e.table];return Array.isArray(n)&&0!==n.length?n.map((e,t)=>({header:m(e.field),accessorKey:e.field,visible:t<=3})):[{header:"Column 1",accessorKey:"column_1",visible:!0},{header:"Column 2",accessorKey:"column_2",visible:!0}]},d=(e,t)=>e.flatMap(e=>e.members.map(e=>"table"===e.field_type?{...e,table_columns:u(e,t)}:{...e})),p=e=>e.map(({field_type:e,label:t,is_accordion:a,id:r,remove_section:n,form_switcher_label:o,form_switcher_name:s,is_section_field:i,section_type:c,switcher_forms:l})=>({field_type:e,label:t,is_accordion:a,id:r,remove_section:n,form_switcher_label:o,form_switcher_name:s,is_section_field:i,section_type:c,switcher_forms:l})),h=(e,t=0,a,r,n)=>{const{removeSection:o,remove:s}=n;try{if(o(),s(),e.tab)f(e.tab,t,a,n);else if(e.section)v(e.section,a,n);else{if(!e.tabsData||!r)throw new Error("Invalid data format: Missing required properties (tab, section, or tabsData)");b(r,t,n)}}catch(i){alert(i instanceof Error?i.message:"An error occurred while processing data")}},f=(e,t,a,r)=>{const{setTabsData:n,append:o,appendSection:s}=r;n(e);const i=e.find(e=>e.tab_order===t+1);if(!(null==i?void 0:i.data))return;const c=p(i.data);o(d(i.data,a)),s(c)},v=(e,t,a)=>{const{append:r,appendSection:n}=a,o=p(e);r(d(e,t)),n(o)},b=(e,t,a)=>{const{append:r,appendSection:n}=a,o=e.find(e=>e.tab_order===t+1);if(!(null==o?void 0:o.data))return;const s=p(o.data),i=o.data.flatMap(e=>e.members.map(e=>({...e})));i.length>0&&r(i),s.length>0&&n(s)};exports.createDefaultTableColumns=()=>[{header:"Column 1",accessorKey:"column_1",visible:!0},{header:"Column 2",accessorKey:"column_2",visible:!0}],exports.extractSections=p,exports.formatText=m,exports.generateModulePath=e=>{try{const t=(e=>{if(!(e in l))throw new Error(`Invalid module: ${e}`);return l[e]})(e);return`/dashboard/${e}${t}`}catch(t){throw t}},exports.processMembers=d,exports.processTableColumns=u,exports.useFormDataEffect=(a,r,n=0,o)=>{const{removeSection:s,remove:i,append:c}=o;e.useEffect(()=>{var e;let l=null;if(null==(e=null==a?void 0:a.formData)?void 0:e.length)try{l=t.formBuilderDeConversion(a.formData)}catch(m){}if(!l)return s(),i(),void c([]);try{r.length>0?h({tabsData:r},n,a,r,o):l.tab?h(l,n,a,r,o):l.section?h(l,0,a,r,o):(s(),i(),c([]))}catch(m){s(),i(),c([])}},[n,JSON.stringify(null==a?void 0:a.formData),r.length])},exports.useFormDataProcessor=(a,r,n,o)=>{const{removeSection:s,remove:i,append:c}=o,l=useMemo(()=>JSON.stringify(null==a?void 0:a.formData),[null==a?void 0:a.formData]),m=useMemo(()=>{var e;if(!(null==(e=null==a?void 0:a.formData)?void 0:e.length))return null;try{return t.formBuilderDeConversion(a.formData)}catch(r){return null}},[l]);return e.useEffect(()=>{if(!m)return s(),i(),void c([]);try{r.length>0?h({tabsData:r},n,a,r,o):m.tab?h(m,n,a,r,o):m.section?h(m,0,a,r,o):(s(),i(),c([]))}catch(e){s(),i(),c([])}},[n,l,r.length,m,o,a]),{initialData:m}};
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/views/form-builder/utils/common.ts"],"sourcesContent":["// React imports\r\nimport { useEffect } from \"react\";\r\n\r\n// ERP Common imports\r\nimport formBuilderDeConversion from \"@/utils/form-builder-deconversion\";\r\n\r\n// Module pathname imports\r\nimport { PathnameAccounting } from \"../../../constants/pathnames/pathname.accounting\";\r\nimport { PathnameCrm } from \"../../../constants/pathnames/pathname.crm\";\r\nimport { PathnameInventory } from \"../../../constants/pathnames/pathname.inventory\";\r\nimport { PathnameManufacturing } from \"../../../constants/pathnames/pathname.manufacturing\";\r\nimport { PathnamePurchase } from \"../../../constants/pathnames/pathname.procurement\";\r\nimport { PathnameRental } from \"../../../constants/pathnames/pathname.rental\";\r\nimport { PathnameUsers } from \"../../../constants/pathnames/pathname.user\";\r\n\r\n// Types for better type safety\r\nexport interface TableColumn {\r\n header: string;\r\n accessorKey: string;\r\n visible: boolean;\r\n}\r\n\r\nexport interface FormMember {\r\n field_type: string;\r\n table?: string;\r\n table_columns?: TableColumn[];\r\n [key: string]: any;\r\n}\r\n\r\nexport interface FormSection {\r\n field_type: string;\r\n label: string;\r\n is_accordion: boolean;\r\n id: string;\r\n remove_section: boolean;\r\n form_switcher_label?: string;\r\n form_switcher_name?: string;\r\n is_section_field?: boolean;\r\n section_type?: string;\r\n switcher_forms?: any;\r\n members: FormMember[];\r\n}\r\n\r\nexport interface TabData {\r\n tab_order: number;\r\n data: FormSection[];\r\n}\r\n\r\nexport interface ProcessedData {\r\n tab?: TabData[];\r\n section?: FormSection[];\r\n tabsData?: TabData[];\r\n}\r\n\r\n// Constants for module paths\r\nconst MODULE_PATHS = {\r\n accounting: PathnameAccounting.FORMS,\r\n inventory: PathnameInventory.FORMS,\r\n manufacturing: PathnameManufacturing.FORMS,\r\n procurement: PathnamePurchase.FORMS,\r\n crm: PathnameCrm.FORMS,\r\n rental: PathnameRental.FORMS,\r\n user: PathnameUsers.FORMS,\r\n} as const;\r\n\r\nexport type ModuleType = keyof typeof MODULE_PATHS;\r\n\r\n// Helper function to format text (converts snake_case to Title Case)\r\nexport const formatText = (text: string): string => {\r\n return text\r\n .split('_')\r\n .map(word => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())\r\n .join(' ');\r\n};\r\n\r\n// Helper function to get redirection path\r\nconst getRedirectionPath = (currentModule: string): string => {\r\n if (!isValidModule(currentModule)) {\r\n throw new Error(`Invalid module: ${currentModule}`);\r\n }\r\n return MODULE_PATHS[currentModule as ModuleType];\r\n};\r\n\r\n// Type guard for module validation\r\nconst isValidModule = (module: string): module is ModuleType => {\r\n return module in MODULE_PATHS;\r\n};\r\n\r\n// Helper function to create default table columns\r\nexport const createDefaultTableColumns = (): TableColumn[] => [\r\n { header: \"Column 1\", accessorKey: \"column_1\", visible: true },\r\n { header: \"Column 2\", accessorKey: \"column_2\", visible: true },\r\n];\r\n\r\n// Helper function to process table columns\r\nexport const processTableColumns = (\r\n member: FormMember,\r\n formBuilder: any\r\n): TableColumn[] => {\r\n // Return existing columns if they exist\r\n if (member.table_columns?.length) {\r\n return member.table_columns;\r\n }\r\n\r\n // Check if table exists and has fields\r\n if (!member.table || !formBuilder.fields?.[member.table]) {\r\n return createDefaultTableColumns();\r\n }\r\n\r\n const fields = formBuilder.fields[member.table];\r\n if (!Array.isArray(fields) || fields.length === 0) {\r\n return createDefaultTableColumns();\r\n }\r\n\r\n return fields.map((field: any, index: number) => ({\r\n header: formatText(field.field),\r\n accessorKey: field.field,\r\n visible: index <= 3, // Show first 4 columns by default\r\n }));\r\n};\r\n\r\n// Helper function to process members\r\nexport const processMembers = (\r\n sections: FormSection[],\r\n formBuilder: any\r\n): FormMember[] => {\r\n return sections.flatMap((section) =>\r\n section.members.map((member) => {\r\n if (member.field_type === \"table\") {\r\n return {\r\n ...member,\r\n table_columns: processTableColumns(member, formBuilder),\r\n };\r\n }\r\n return { ...member };\r\n })\r\n );\r\n};\r\n\r\n// Helper function to extract sections data\r\nexport const extractSections = (sections: FormSection[]): Omit<FormSection, 'members'>[] => {\r\n return sections.map(({\r\n field_type,\r\n label,\r\n is_accordion,\r\n id,\r\n remove_section,\r\n form_switcher_label,\r\n form_switcher_name,\r\n is_section_field,\r\n section_type,\r\n switcher_forms,\r\n }) => ({\r\n field_type,\r\n label,\r\n is_accordion,\r\n id,\r\n remove_section,\r\n form_switcher_label,\r\n form_switcher_name,\r\n is_section_field,\r\n section_type,\r\n switcher_forms,\r\n }));\r\n};\r\n\r\n// Main processing function\r\nconst processData = (\r\n data: ProcessedData,\r\n activeTabId: number = 0,\r\n formBuilder: any,\r\n tabsData: TabData[] | null,\r\n // Callback functions\r\n callbacks: {\r\n removeSection: () => void;\r\n remove: () => void;\r\n setTabsData: (data: TabData[]) => void;\r\n append: (members: FormMember[]) => void;\r\n appendSection: (sections: Omit<FormSection, 'members'>[]) => void;\r\n }\r\n): void => {\r\n const { removeSection, remove, setTabsData, append, appendSection } = callbacks;\r\n\r\n try {\r\n // Clear existing data\r\n removeSection();\r\n remove();\r\n\r\n if (data.tab) {\r\n processTabData(data.tab, activeTabId, formBuilder, callbacks);\r\n } else if (data.section) {\r\n processSectionData(data.section, formBuilder, callbacks);\r\n } else if (data.tabsData && tabsData) {\r\n processExistingTabsData(tabsData, activeTabId, callbacks);\r\n } else {\r\n throw new Error(\"Invalid data format: Missing required properties (tab, section, or tabsData)\");\r\n }\r\n } catch (error) {\r\n console.error(\"Error processing data:\", error);\r\n // You might want to show a user-friendly error message instead of alert\r\n alert(error instanceof Error ? error.message : \"An error occurred while processing data\");\r\n }\r\n};\r\n\r\n// Process tab data\r\nconst processTabData = (\r\n tabs: TabData[],\r\n activeTabId: number,\r\n formBuilder: any,\r\n callbacks: {\r\n setTabsData: (data: TabData[]) => void;\r\n append: (members: FormMember[]) => void;\r\n appendSection: (sections: Omit<FormSection, 'members'>[]) => void;\r\n }\r\n): void => {\r\n const { setTabsData, append, appendSection } = callbacks;\r\n\r\n setTabsData(tabs);\r\n\r\n const activeTab = tabs.find(tab => tab.tab_order === activeTabId + 1);\r\n if (!activeTab?.data) {\r\n console.warn(`No active tab found for tab order: ${activeTabId + 1}`);\r\n return;\r\n }\r\n\r\n const sections = extractSections(activeTab.data);\r\n const members = processMembers(activeTab.data, formBuilder);\r\n\r\n append(members);\r\n appendSection(sections);\r\n};\r\n\r\n// Process section data\r\nconst processSectionData = (\r\n sections: FormSection[],\r\n formBuilder: any,\r\n callbacks: {\r\n append: (members: FormMember[]) => void;\r\n appendSection: (sections: Omit<FormSection, 'members'>[]) => void;\r\n }\r\n): void => {\r\n const { append, appendSection } = callbacks;\r\n\r\n const extractedSections = extractSections(sections);\r\n const members = processMembers(sections, formBuilder);\r\n\r\n append(members);\r\n appendSection(extractedSections);\r\n};\r\n\r\n// Process existing tabs data\r\nconst processExistingTabsData = (\r\n tabsData: TabData[],\r\n activeTabId: number,\r\n callbacks: {\r\n append: (members: FormMember[]) => void;\r\n appendSection: (sections: Omit<FormSection, 'members'>[]) => void;\r\n }\r\n): void => {\r\n const { append, appendSection } = callbacks;\r\n\r\n const activeTab = tabsData.find(tab => tab.tab_order === activeTabId + 1);\r\n if (!activeTab?.data) {\r\n console.warn(`No active tab found for tab order: ${activeTabId + 1}`);\r\n return;\r\n }\r\n\r\n const sections = extractSections(activeTab.data);\r\n const members = activeTab.data.flatMap(section =>\r\n section.members.map(member => ({ ...member }))\r\n );\r\n\r\n if (members.length > 0) append(members);\r\n if (sections.length > 0) appendSection(sections);\r\n};\r\n\r\n// Custom hook for form data processing\r\nexport const useFormDataProcessor = (\r\n formBuilder: any,\r\n tabsData: TabData[],\r\n activeTabValue: number,\r\n callbacks: {\r\n removeSection: () => void;\r\n remove: () => void;\r\n setTabsData: (data: TabData[]) => void;\r\n append: (members: FormMember[]) => void;\r\n appendSection: (sections: Omit<FormSection, 'members'>[]) => void;\r\n }\r\n) => {\r\n const { removeSection, remove, append } = callbacks;\r\n\r\n // Memoize the serialized form data to avoid unnecessary re-renders\r\n const serializedFormData = useMemo(() =>\r\n JSON.stringify(formBuilder?.formData),\r\n [formBuilder?.formData]\r\n );\r\n\r\n // Memoize the initial data processing\r\n const initialData = useMemo(() => {\r\n if (!formBuilder?.formData?.length) return null;\r\n\r\n try {\r\n return formBuilderDeConversion(formBuilder.formData);\r\n } catch (error) {\r\n console.error('Error processing form data:', error);\r\n return null;\r\n }\r\n }, [serializedFormData]);\r\n\r\n useEffect(() => {\r\n // Handle case when there's no initial data\r\n if (!initialData) {\r\n removeSection();\r\n remove();\r\n append([]);\r\n return;\r\n }\r\n\r\n // Determine processing strategy based on available data\r\n try {\r\n if (tabsData.length > 0) {\r\n // Process existing tabs data\r\n processData(\r\n { tabsData: tabsData },\r\n activeTabValue,\r\n formBuilder,\r\n tabsData,\r\n callbacks\r\n );\r\n } else if (initialData.tab) {\r\n // Process new tab data\r\n processData(\r\n initialData,\r\n activeTabValue,\r\n formBuilder,\r\n tabsData,\r\n callbacks\r\n );\r\n } else if (initialData.section) {\r\n // Process section data\r\n processData(\r\n initialData,\r\n 0, // No active tab for section-only data\r\n formBuilder,\r\n tabsData,\r\n callbacks\r\n );\r\n } else {\r\n console.warn('No valid data structure found in initialData');\r\n removeSection();\r\n remove();\r\n append([]);\r\n }\r\n } catch (error) {\r\n console.error('Error in form data processing:', error);\r\n // Reset to clean state on error\r\n removeSection();\r\n remove();\r\n append([]);\r\n }\r\n }, [activeTabValue, serializedFormData, tabsData.length, initialData, callbacks, formBuilder]);\r\n\r\n return { initialData };\r\n};\r\n\r\n// Alternative: Direct useEffect implementation (if you prefer not to use custom hook)\r\nexport const useFormDataEffect = (\r\n formBuilder: any,\r\n tabsData: TabData[],\r\n activeTabValue: number = 0,\r\n callbacks: {\r\n removeSection: () => void;\r\n remove: () => void;\r\n setTabsData: (data: TabData[]) => void;\r\n append: (members: FormMember[]) => void;\r\n appendSection: (sections: Omit<FormSection, 'members'>[]) => void;\r\n }\r\n) => {\r\n const { removeSection, remove, append } = callbacks;\r\n\r\n useEffect(() => {\r\n let initialData: ProcessedData | null = null;\r\n\r\n // Process initial data\r\n if (formBuilder?.formData?.length) {\r\n try {\r\n initialData = formBuilderDeConversion(formBuilder.formData);\r\n } catch (error) {\r\n console.error('Error converting form data:', error);\r\n }\r\n }\r\n\r\n // Handle empty initial data\r\n if (!initialData) {\r\n removeSection();\r\n remove();\r\n append([]);\r\n return;\r\n }\r\n\r\n // Process data based on available structure\r\n try {\r\n if (tabsData.length > 0) {\r\n processData(\r\n { tabsData: tabsData },\r\n activeTabValue,\r\n formBuilder,\r\n tabsData,\r\n callbacks\r\n );\r\n } else if (initialData.tab) {\r\n processData(\r\n initialData,\r\n activeTabValue,\r\n formBuilder,\r\n tabsData,\r\n callbacks\r\n );\r\n } else if (initialData.section) {\r\n processData(\r\n initialData,\r\n 0,\r\n formBuilder,\r\n tabsData,\r\n callbacks\r\n );\r\n } else {\r\n console.warn('Invalid data structure in initialData');\r\n removeSection();\r\n remove();\r\n append([]);\r\n }\r\n } catch (error) {\r\n console.error('Error processing form data:', error);\r\n // Reset to clean state on error\r\n removeSection();\r\n remove();\r\n append([]);\r\n }\r\n }, [activeTabValue, JSON.stringify(formBuilder?.formData), tabsData.length]);\r\n};\r\n\r\n// Usage example:\r\n/*\r\n// Option 1: Using custom hook\r\nconst { initialData } = useFormDataProcessor(\r\n formBuilder,\r\n tabsData,\r\n activeTabValue,\r\n {\r\n removeSection,\r\n remove,\r\n setTabsData,\r\n append,\r\n appendSection\r\n }\r\n);\r\n\r\n// Option 2: Using direct useEffect\r\nuseFormDataEffect(\r\n formBuilder,\r\n tabsData,\r\n activeTabValue,\r\n {\r\n removeSection,\r\n remove,\r\n setTabsData,\r\n append,\r\n appendSection\r\n }\r\n);\r\n*/\r\n\r\n// Path generation utility (separate from the effect)\r\nexport const generateModulePath = (currentModule: string): string => {\r\n try {\r\n const redirectionPath = getRedirectionPath(currentModule);\r\n return `/dashboard/${currentModule}${redirectionPath}`;\r\n } catch (error) {\r\n console.error('Error generating module path:', error);\r\n throw error;\r\n }\r\n};"],"names":["MODULE_PATHS","accounting","PathnameAccounting","FORMS","inventory","PathnameInventory","manufacturing","PathnameManufacturing","procurement","PathnamePurchase","crm","PathnameCrm","rental","PathnameRental","user","PathnameUsers","formatText","text","split","map","word","charAt","toUpperCase","slice","toLowerCase","join","processTableColumns","member","formBuilder","_a","table_columns","length","table","_b","fields","header","accessorKey","visible","Array","isArray","field","index","processMembers","sections","flatMap","section","members","field_type","extractSections","label","is_accordion","id","remove_section","form_switcher_label","form_switcher_name","is_section_field","section_type","switcher_forms","processData","data","activeTabId","tabsData","callbacks","removeSection","remove","tab","processTabData","processSectionData","Error","processExistingTabsData","error","alert","message","tabs","setTabsData","append","appendSection","activeTab","find","tab_order","extractedSections","currentModule","redirectionPath","getRedirectionPath","activeTabValue","useEffect","initialData","formData","formBuilderDeConversion","JSON","stringify","serializedFormData","useMemo"],"mappings":"qpBAuDA,MAAMA,EAAe,CACnBC,WAAYC,EAAAA,mBAAmBC,MAC/BC,UAAWC,EAAAA,kBAAkBF,MAC7BG,cAAeC,EAAAA,sBAAsBJ,MACrCK,YAAaC,EAAAA,iBAAiBN,MAC9BO,IAAKC,EAAAA,YAAYR,MACjBS,OAAQC,EAAAA,eAAeV,MACvBW,KAAMC,EAAAA,cAAcZ,OAMTa,EAAcC,GAClBA,EACJC,MAAM,KACNC,IAAI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EpB2B,EACE,CAAEG,YACFuB,EACAxD,EACAiC,EACAC,GAEOwB,EAAYrB,IAErBP,EACE4B,EACAF,EACAxD,EACAiC,EACAC,GAEOwB,EAAYzC,QAErBa,EACE4B,EACA,EACA1D,EACAiC,EACAC,IAIFC,IACAC,IACAW,EAAO,IAEX,OAASL,GAGPP,IACAC,IACAW,EAAO,GACT,GACC,CAACS,EAAgBO,EAAoB9B,EAAS9B,OAAQuD,EAAaxB,EAAWlC,IAE1E,CAAE0D"}
|
package/dist/views/index.d.ts
CHANGED
package/dist/views/index.esm.js
CHANGED
|
@@ -1,33 +1,48 @@
|
|
|
1
1
|
import { default as default2 } from "./404/index.esm.js";
|
|
2
2
|
import { PrivateRoute } from "./privateRoute/index.esm.js";
|
|
3
|
-
import {
|
|
4
|
-
import { state } from "./
|
|
5
|
-
import {
|
|
3
|
+
import { Dashboard } from "./afterAuth/dashboard/dashboard/index.esm.js";
|
|
4
|
+
import { state } from "./form-builder/redux/state/index.esm.js";
|
|
5
|
+
import { PageView } from "./afterAuth/page-view/page-view/index.esm.js";
|
|
6
|
+
import { default as default3 } from "./beforeAuth/components/gantt-data/gantt-data/index.esm.js";
|
|
6
7
|
import { data } from "./beforeAuth/components/grid-data/grid-data/index.esm.js";
|
|
7
8
|
import { Landing } from "./beforeAuth/landing/landing/index.esm.js";
|
|
8
|
-
import {
|
|
9
|
-
import { default as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { default as
|
|
13
|
-
import {
|
|
9
|
+
import { CustomForm } from "./form-builder/custom-form/index.esm.js";
|
|
10
|
+
import { FormField, default as default4 } from "./form-builder/form-fields/index.esm.js";
|
|
11
|
+
import { CheckboxEditForm } from "./form-builder/element-edit-forms/checkbox/index.esm.js";
|
|
12
|
+
import { ColumnWidth } from "./form-builder/element-edit-forms/column-width/index.esm.js";
|
|
13
|
+
import { default as default5 } from "./form-builder/element-edit-forms/field-select/index.esm.js";
|
|
14
|
+
import { SectionEditForm } from "./form-builder/element-edit-forms/section/index.esm.js";
|
|
15
|
+
import { SelectEditForm } from "./form-builder/element-edit-forms/select/index.esm.js";
|
|
16
|
+
import { default as default6 } from "./form-builder/element-edit-forms/table-form/index.esm.js";
|
|
17
|
+
import { TextEditForm } from "./form-builder/element-edit-forms/text/index.esm.js";
|
|
18
|
+
import { default as default7 } from "./template-editor/templates/index.esm.js";
|
|
19
|
+
import { default as default8 } from "./template-editor/add-template/add-template/index.esm.js";
|
|
20
|
+
import { default as default9 } from "./template-editor/company-selection-modal/company-selection-modal/index.esm.js";
|
|
21
|
+
import { default as default10 } from "./template-editor/components/EditorCanvas/index.esm.js";
|
|
22
|
+
import { default as default11 } from "./template-editor/components/EditorHeader/index.esm.js";
|
|
23
|
+
import { default as default12 } from "./template-editor/components/EditorSection/index.esm.js";
|
|
14
24
|
import { EditorSidebar } from "./template-editor/components/EditorSidebar/index.esm.js";
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
23
|
-
import { default as
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
25
|
+
import { default as default13 } from "./template-editor/components/SectionFlowEditor/index.esm.js";
|
|
26
|
+
import { default as default14 } from "./template-editor/components/SectionFormatPanel/index.esm.js";
|
|
27
|
+
import { default as default15 } from "./template-editor/components/controllers/AlignmentControl/index.esm.js";
|
|
28
|
+
import { default as default16 } from "./template-editor/components/controllers/border-control/index.esm.js";
|
|
29
|
+
import { default as default17 } from "./template-editor/components/controllers/ButtonControls/index.esm.js";
|
|
30
|
+
import { default as default18 } from "./template-editor/components/controllers/CodeControls/index.esm.js";
|
|
31
|
+
import { default as default19 } from "./template-editor/components/controllers/DividerControls/index.esm.js";
|
|
32
|
+
import { default as default20 } from "./template-editor/components/controllers/ImageControls/index.esm.js";
|
|
33
|
+
import { default as default21 } from "./template-editor/components/controllers/SignatureControls/index.esm.js";
|
|
34
|
+
import { default as default22 } from "./template-editor/components/controllers/TableControls/index.esm.js";
|
|
35
|
+
import { default as default23 } from "./template-editor/edit-section-modal/edit-section-modal/index.esm.js";
|
|
26
36
|
import { HtmlThumbnailPreview } from "./template-editor/template-modal/html-thumbnail-preview/index.esm.js";
|
|
27
37
|
import { TemplateModal } from "./template-editor/template-modal/template-modal/index.esm.js";
|
|
28
|
-
import { default as
|
|
29
|
-
import {
|
|
38
|
+
import { default as default24 } from "./template-editor/template-name-modal/template-name-modal/index.esm.js";
|
|
39
|
+
import { dashBoardDrive, default as default25, pinToDashboardList, setGrid, setSharedPage, setUserName } from "./afterAuth/dashboard/redux/reducer/index.esm.js";
|
|
30
40
|
import { UsersFetchAction, pinToDashboardAction, setPagesAction, setSharedPageAction, setUserNameAction, setdashboardDriveData } from "./afterAuth/dashboard/redux/actionCreator/index.esm.js";
|
|
41
|
+
import { default as default26, setFormData, setPaginationModel } from "./form-builder/redux/reducer/index.esm.js";
|
|
42
|
+
import { default as default27, setColumnOrder, setRowData } from "./afterAuth/page-view/redux/reducer/index.esm.js";
|
|
43
|
+
import { fetchPage } from "./afterAuth/page-view/redux/actionCreator/index.esm.js";
|
|
44
|
+
import { defaultData } from "./afterAuth/page-view/utils/default-data/index.esm.js";
|
|
45
|
+
import { local } from "./afterAuth/page-view/utils/local-data/index.esm.js";
|
|
31
46
|
import { ChangePassword } from "./beforeAuth/change-password/change-password/index.esm.js";
|
|
32
47
|
import { activityTag } from "./beforeAuth/components/activity-tag-data/activity-tag-data/index.esm.js";
|
|
33
48
|
import { calendarData } from "./beforeAuth/components/calendar-data/calendar-data/index.esm.js";
|
|
@@ -40,70 +55,98 @@ import { sharedPagesData } from "./beforeAuth/components/shared-pages-data/share
|
|
|
40
55
|
import { tabsData } from "./beforeAuth/components/tabs-data/tabs-data/index.esm.js";
|
|
41
56
|
import { userData } from "./beforeAuth/components/user-dropdown-data/user-dropdown-data/index.esm.js";
|
|
42
57
|
import { ForgotPassword } from "./beforeAuth/forgot-password/forgot-password/index.esm.js";
|
|
43
|
-
import { Login } from "./beforeAuth/login/index/index.esm.js";
|
|
44
58
|
import { ResetPassword } from "./beforeAuth/reset-password/reset-password/index.esm.js";
|
|
59
|
+
import { element } from "./form-builder/field_properties/index.esm.js";
|
|
60
|
+
import { getFieldsByFormId, getFormDataById, patchFormDataById } from "./form-builder/redux/actionCreator/index.esm.js";
|
|
61
|
+
import { createDefaultTableColumns, extractSections, formatText, generateModulePath, processMembers, processTableColumns, useFormDataEffect, useFormDataProcessor } from "./form-builder/utils/common/index.esm.js";
|
|
45
62
|
import { templateEditorRoutes } from "./template-editor/routes/index.esm.js";
|
|
46
|
-
import { default as
|
|
63
|
+
import { default as default28 } from "./template-editor/components/controllers/TextControls/index.esm.js";
|
|
47
64
|
import { extractStyles, generateEmailPreview, generateHeaderFooterPreview, generateInlineStyles, getInitialSectionData, templateRoutes } from "./template-editor/utils/common/index.esm.js";
|
|
48
65
|
import { TEMPLATE_EDITOR_PATHS, initialStyles } from "./template-editor/utils/constant/index.esm.js";
|
|
49
66
|
import { emailColumns, textOptions } from "./template-editor/utils/default-data/index.esm.js";
|
|
50
67
|
import { useCKEditorStyleExtractor } from "./template-editor/utils/style-extractor/index.esm.js";
|
|
51
68
|
export {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
69
|
+
default8 as AddTemplate,
|
|
70
|
+
default15 as AlignmentControl,
|
|
71
|
+
default16 as BorderControl,
|
|
72
|
+
default17 as ButtonControls,
|
|
56
73
|
ChangePassword,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
74
|
+
CheckboxEditForm,
|
|
75
|
+
default18 as CodeControls,
|
|
76
|
+
ColumnWidth,
|
|
77
|
+
default9 as CompanySelectionModal,
|
|
78
|
+
CustomForm,
|
|
79
|
+
Dashboard,
|
|
80
|
+
default19 as DividerControls,
|
|
81
|
+
default23 as EditSectionModal,
|
|
82
|
+
default10 as EditorCanvas,
|
|
83
|
+
default11 as EditorHeader,
|
|
84
|
+
default12 as EditorSection,
|
|
65
85
|
EditorSidebar,
|
|
86
|
+
default5 as FieldSelect,
|
|
66
87
|
ForgotPassword,
|
|
88
|
+
FormField,
|
|
89
|
+
default4 as FormFields,
|
|
67
90
|
HtmlThumbnailPreview,
|
|
68
|
-
|
|
91
|
+
default20 as ImageControls,
|
|
69
92
|
Landing,
|
|
70
|
-
Login,
|
|
71
93
|
default2 as NotFound,
|
|
94
|
+
PageView,
|
|
72
95
|
PrivateRoute,
|
|
73
|
-
|
|
96
|
+
default28 as React,
|
|
74
97
|
ResetPassword,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
98
|
+
SectionEditForm,
|
|
99
|
+
default13 as SectionFlowEditor,
|
|
100
|
+
default14 as SectionFormatPanel,
|
|
101
|
+
SelectEditForm,
|
|
102
|
+
default21 as SignatureControls,
|
|
78
103
|
TEMPLATE_EDITOR_PATHS,
|
|
79
|
-
|
|
104
|
+
default22 as TableControls,
|
|
105
|
+
default6 as TableEditForm,
|
|
80
106
|
TemplateModal,
|
|
81
|
-
|
|
82
|
-
|
|
107
|
+
default24 as TemplateNameModal,
|
|
108
|
+
default7 as Templates,
|
|
109
|
+
TextEditForm,
|
|
83
110
|
UsersFetchAction,
|
|
84
111
|
activityTag,
|
|
85
112
|
board,
|
|
86
113
|
calendarData,
|
|
87
|
-
changeCurrentPage,
|
|
88
114
|
column,
|
|
115
|
+
createDefaultTableColumns,
|
|
89
116
|
dashBoardDrive,
|
|
90
|
-
|
|
117
|
+
default25 as dashboardSlice,
|
|
91
118
|
data,
|
|
119
|
+
defaultData,
|
|
120
|
+
element,
|
|
92
121
|
emailColumns,
|
|
122
|
+
extractSections,
|
|
93
123
|
extractStyles,
|
|
94
|
-
|
|
124
|
+
fetchPage,
|
|
125
|
+
default26 as formBuilderListSlice,
|
|
126
|
+
formatText,
|
|
127
|
+
default3 as ganttData,
|
|
95
128
|
generateEmailPreview,
|
|
96
129
|
generateHeaderFooterPreview,
|
|
97
130
|
generateInlineStyles,
|
|
131
|
+
generateModulePath,
|
|
132
|
+
getFieldsByFormId,
|
|
133
|
+
getFormDataById,
|
|
98
134
|
getInitialSectionData,
|
|
99
135
|
initialStyles,
|
|
136
|
+
local,
|
|
100
137
|
multilineData,
|
|
138
|
+
default27 as pageViewSlice,
|
|
139
|
+
patchFormDataById,
|
|
101
140
|
pinToDashboardAction,
|
|
102
141
|
pinToDashboardList,
|
|
142
|
+
processMembers,
|
|
143
|
+
processTableColumns,
|
|
144
|
+
setColumnOrder,
|
|
145
|
+
setFormData,
|
|
103
146
|
setGrid,
|
|
104
|
-
setPages,
|
|
105
147
|
setPagesAction,
|
|
106
148
|
setPaginationModel,
|
|
149
|
+
setRowData,
|
|
107
150
|
setSharedPage,
|
|
108
151
|
setSharedPageAction,
|
|
109
152
|
setUserName,
|
|
@@ -117,6 +160,8 @@ export {
|
|
|
117
160
|
templateRoutes,
|
|
118
161
|
textOptions,
|
|
119
162
|
useCKEditorStyleExtractor,
|
|
163
|
+
useFormDataEffect,
|
|
164
|
+
useFormDataProcessor,
|
|
120
165
|
userData,
|
|
121
166
|
userRoles
|
|
122
167
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|