@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,31 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),l=require("react"),t=,/* empty css */a=,/* empty css */n=,/* empty css */i=,/* empty css */d=,/* empty css */u=,/* empty css */o=,/* empty css */r=;/* empty css */;/* empty css */var s=,/* empty css */c=,/* empty css */m=,/* empty css */h=,/* empty css */x=,/* empty css */f=,/* empty css */j=,/* empty css */p=,/* empty css */b=,/* empty css */g=,/* empty css */v=;/* empty css */const _=[1,2,3,4,5,6],C=[{text:"12 Hour",value:"12hr"},{text:"24 Hour",value:"24hr"}],y=[{text:"INR (India)",value:"inr"},{text:"USD (US)",value:"usd"}],k=/* @__PURE__ */new Set(["time","file","geoLocation","image","info","relation"]),F=/* @__PURE__ */new Set(["text","number"]),w=({option:l,index:t,prefix:a})=>/* @__PURE__ */e.jsx(m.default,{value:l.value,children:l.text||l.label},`${a}-${t}`),S=({option:l,index:t,prefix:a})=>/* @__PURE__ */e.jsx(m.default,{value:l.value,children:/* @__PURE__ */e.jsx(n.Typography,{type:"s3",color:"theme.secondary.1000",children:l.label})},`${a}-${t}`);function q(q){const{handlePropertyValueUpdate:T,handleColumnSelect:W,handleWidthChange:M,fields:V,element:A}=q,[D,N]=l.useState(A),[z,R]=l.useState(!1),[B,I]=l.useState([]),[$,L]=l.useState(""),P=l.useRef(A),U=l.useRef(V),E=l.useMemo(()=>V&&V!==U.current||!U.current||!V?(U.current=V,V?Object.keys(V).map(e=>({label:o.formatText(e),value:e})):[]):U.current,[V]),H=l.useCallback(e=>{if(!V||!e)return void I(e=>e.length>0?[]:e);const l=V[e];if(null==l?void 0:l.length){const e=l.map(e=>({label:e.field,value:e.field}));I(l=>l.length!==e.length||l.some((l,t)=>{var a,n;return l.value!==(null==(a=e[t])?void 0:a.value)||l.label!==(null==(n=e[t])?void 0:n.label)})?e:l)}else I(e=>e.length>0?[]:e)},[V]),O=l.useCallback(e=>{if(D){if(D.default_value!==e){const l={...D,default_value:e};N(l),T(null,null,e)}e&&(L(""),R(!1))}},[D,T]),G=l.useCallback(e=>{if(!D)return;const l=e.target.value;if(D.field_type!==l){const t={...D,field_type:l};N(t),T(null,null,null,e.target.value)}},[D,T]),J=l.useCallback(e=>{if(!D)return;const l=e.target.value;if(D.option!==l){const e={...D,option:l};N(e),T(null,null,l)}},[D,T]),K=l.useCallback(e=>{const l=e.target.value;(null==D?void 0:D.module)!==l&&(H(l),T(e))},[null==D?void 0:D.module,H,T]),Q=l.useCallback((e,l)=>{if(!D)return;const t=Array.isArray(l)?l[0]:l;if(D.custom_width!==t){const e={...D,custom_width:t};N(e),M(t)}},[D,M]),X=l.useCallback(e=>{if(!D)return;const l=e.target.checked;if(D.is_fullwidth!==l){const t={...D,is_fullwidth:l};N(t),T(e)}},[D,T]),Y=l.useCallback(e=>{const l=Number(e.target.value);W(l)},[W]),Z=l.useCallback(e=>{var l;return["number","currency","geoLocation"].includes(e.field_type)?(null==(l=e.default_value)?void 0:l.toString().replace(/[^0-9]/g,""))||"":e.default_value||""},[]),ee=l.useCallback(e=>"text"===e?{min:"Min character count (with spaces)",max:"Max character count (with spaces)"}:{min:"Min number",max:"Max number"},[]),le=l.useCallback(()=>R(!0),[]),te=l.useCallback(()=>{R(!1),L("")},[]),ae=l.useCallback(e=>{L(e.target.value)},[]);l.useEffect(()=>{A!==P.current&&(N(A),P.current=A,(null==A?void 0:A.module)&&H(A.module))},[A,H]);const ne=l.useMemo(()=>"currency"!==(null==D?void 0:D.field_type)?null:/* @__PURE__ */e.jsx(s.default,{children:/* @__PURE__ */e.jsx(c.default,{fullWidth:!0,children:/* @__PURE__ */e.jsx(d.Select,{fullWidth:!0,placeholder:"Select Currency",size:"small",onChange:J,defaultValue:D.option,label:"Currency",name:"option",variant:"outlined",children:y.map((l,t)=>/* @__PURE__ */e.jsx(w,{option:l,index:t,prefix:"currency"},`currency-${t}`))})})}),[null==D?void 0:D.field_type,null==D?void 0:D.option,J]),ie=l.useMemo(()=>"time"!==(null==D?void 0:D.field_type)?null:/* @__PURE__ */e.jsx(s.default,{children:/* @__PURE__ */e.jsx(c.default,{fullWidth:!0,children:/* @__PURE__ */e.jsx(d.Select,{fullWidth:!0,placeholder:"Select Time Format",size:"small",onChange:J,defaultValue:D.option,label:"Time Format",name:"option",variant:"outlined",children:C.map((l,t)=>/* @__PURE__ */e.jsx(w,{option:l,index:t,prefix:"time"},`time-${t}`))})})}),[null==D?void 0:D.field_type,null==D?void 0:D.option,J]),de=l.useMemo(()=>"relation"!==(null==D?void 0:D.field_type)?null:/* @__PURE__ */e.jsxs(e.Fragment,{children:[
|
|
2
|
+
/* @__PURE__ */e.jsx(s.default,{children:/* @__PURE__ */e.jsx(c.default,{fullWidth:!0,children:/* @__PURE__ */e.jsx(d.Select,{fullWidth:!0,placeholder:E.length?"Select Relation Module":"No data available",size:"small",onChange:K,value:D.module||"",label:"Relation Module",name:"module",children:E.length?E.map((l,t)=>/* @__PURE__ */e.jsx(S,{option:l,index:t,prefix:"module"},`module-${t}`)):/* @__PURE__ */e.jsx(m.default,{disabled:!0,children:/* @__PURE__ */e.jsx(n.Typography,{type:"s3",color:"theme.secondary.1000",children:/* @__PURE__ */e.jsx("em",{children:"No data available"})})})})})}),
|
|
3
|
+
/* @__PURE__ */e.jsx(s.default,{children:/* @__PURE__ */e.jsx(c.default,{fullWidth:!0,children:/* @__PURE__ */e.jsx(d.Select,{fullWidth:!0,placeholder:D.module?B.length?"Select Relation Field":"No data available":"Select Module First",size:"small",onChange:T,value:D.field||"",label:"Relation Field",disabled:!D.module,name:"field",children:B.length?B.map((l,t)=>/* @__PURE__ */e.jsx(S,{option:l,index:t,prefix:"field"},`field-${t}`)):/* @__PURE__ */e.jsx(m.default,{disabled:!0,children:/* @__PURE__ */e.jsx(n.Typography,{type:"s3",color:"theme.secondary.1000",children:/* @__PURE__ */e.jsx("em",{children:"No data available"})})})})})})]}),[null==D?void 0:D.field_type,null==D?void 0:D.module,null==D?void 0:D.field,E,B,K,T]);if(!D)return null;const{field_type:ue}=D,oe=ee(ue);/* @__PURE__ */
|
|
4
|
+
return e.jsxs(s.default,{className:"formSection--FieldContainer",children:[
|
|
5
|
+
/* @__PURE__ */e.jsx(s.default,{children:/* @__PURE__ */e.jsx(r.default,{variant:"outlined",onChange:G,defaultValue:ue,label:"Field Type",disabled:"system"===D.type||!D.is_new})}),
|
|
6
|
+
/* @__PURE__ */e.jsx(s.default,{children:/* @__PURE__ */e.jsx(i.TextField,{fullWidth:!0,label:"Label",is_required:!0,name:"label",type:"text",onChange:T,defaultValue:D.label})}),("file"===ue||"image"===ue)&&/* @__PURE__ */e.jsx(s.default,{children:/* @__PURE__ */e.jsx(i.TextField,{fullWidth:!0,label:"Max File Size (in MB)",name:"max_size",type:"number",onChange:T,defaultValue:D.max_size})}),ne,!k.has(ue)&&/* @__PURE__ */e.jsxs(e.Fragment,{children:[
|
|
7
|
+
/* @__PURE__ */e.jsx(s.default,{children:/* @__PURE__ */e.jsx(i.TextField,{fullWidth:!0,label:"Placeholder",name:"placeholder",type:"text",onChange:T,defaultValue:D.placeholder})}),
|
|
8
|
+
/* @__PURE__ */e.jsx(s.default,{children:/* @__PURE__ */e.jsx(i.TextField,{fullWidth:!0,label:"Default Value",placeholder:"Default Value",name:"default_value",type:"phone"===ue?"tel":"number"===ue?"number":"text",onChange:T,defaultValue:Z(D)})})]}),ie,de,F.has(ue)&&/* @__PURE__ */e.jsxs(e.Fragment,{children:[
|
|
9
|
+
/* @__PURE__ */e.jsx(s.default,{children:/* @__PURE__ */e.jsx(i.TextField,{fullWidth:!0,label:oe.min,name:"min_length",type:"number",onChange:e=>T(e,Number(e.target.value)),defaultValue:D.min_length||D.min||1})}),
|
|
10
|
+
/* @__PURE__ */e.jsx(s.default,{children:/* @__PURE__ */e.jsx(i.TextField,{fullWidth:!0,label:oe.max,name:"max_length",type:"number",onChange:e=>T(e,Number(e.target.value)),defaultValue:D.max_length||D.max||("number"===ue?1e4:255)})})]}),
|
|
11
|
+
/* @__PURE__ */e.jsx(s.default,{children:/* @__PURE__ */e.jsx(c.default,{fullWidth:!0,children:/* @__PURE__ */e.jsx(d.Select,{fullWidth:!0,placeholder:"Select Column Per Row",size:"small",onChange:Y,value:D.columns_per_row||1,label:"Select Column Per Row",name:"columns_per_row",variant:"outlined",children:_.map((l,t)=>/* @__PURE__ */e.jsx(m.default,{value:l,children:l},`column-${t}`))})})}),
|
|
12
|
+
/* @__PURE__ */e.jsxs(s.default,{children:[
|
|
13
|
+
/* @__PURE__ */e.jsx(n.Typography,{sx:{color:"black",mb:1},children:"Adjust Width:"}),
|
|
14
|
+
/* @__PURE__ */e.jsx(h.default,{value:D.custom_width||12,name:"custom_width",min:1,max:12,step:1,onChange:Q,"aria-labelledby":"width-slider",sx:{color:"#4AC08C"},disabled:D.is_fullwidth,marks:!0,valueLabelDisplay:"auto"})]}),"number"===ue&&/* @__PURE__ */e.jsxs(e.Fragment,{children:[
|
|
15
|
+
/* @__PURE__ */e.jsx(s.default,{children:/* @__PURE__ */e.jsx(i.TextField,{fullWidth:!0,label:"Float Step",name:"float_step",type:"number",step:"0.01",onChange:T,defaultValue:D.float_step})}),
|
|
16
|
+
/* @__PURE__ */e.jsx(s.default,{children:/* @__PURE__ */e.jsx(x.default,{name:"is_negative",control:/* @__PURE__ */e.jsx(u.Checkbox,{}),onChange:T,checked:D.is_negative||!1,label:"Allow Negative Numbers"})})]}),"date"===ue&&/* @__PURE__ */e.jsxs(e.Fragment,{children:[
|
|
17
|
+
/* @__PURE__ */e.jsx(s.default,{children:/* @__PURE__ */e.jsx(x.default,{name:"is_future_dates_allowed",control:/* @__PURE__ */e.jsx(u.Checkbox,{}),onChange:T,checked:D.is_future_dates_allowed||!1,label:"Allow Future Dates"})}),
|
|
18
|
+
/* @__PURE__ */e.jsx(s.default,{children:/* @__PURE__ */e.jsx(x.default,{name:"is_past_dates_allowed",control:/* @__PURE__ */e.jsx(u.Checkbox,{}),onChange:T,checked:D.is_past_dates_allowed||!1,label:"Allow Past Dates"})})]}),"info"!==ue&&/* @__PURE__ */e.jsx(s.default,{children:/* @__PURE__ */e.jsx(x.default,{name:"is_required",control:/* @__PURE__ */e.jsx(u.Checkbox,{}),onChange:T,checked:D.is_required||!1,label:"This field is required"})}),"email"===ue&&/* @__PURE__ */e.jsx(s.default,{children:/* @__PURE__ */e.jsx(x.default,{name:"is_unique",control:/* @__PURE__ */e.jsx(u.Checkbox,{}),onChange:T,checked:D.is_unique||!1,label:"Is Unique"})}),"text"===ue&&/* @__PURE__ */e.jsx(s.default,{children:/* @__PURE__ */e.jsx(x.default,{name:"is_multiline",control:/* @__PURE__ */e.jsx(u.Checkbox,{}),onChange:T,checked:D.is_multiline||!1,label:"Is Multiline"})}),
|
|
19
|
+
/* @__PURE__ */e.jsx(s.default,{children:/* @__PURE__ */e.jsx(x.default,{name:"is_fullwidth",control:/* @__PURE__ */e.jsx(u.Checkbox,{}),onChange:X,checked:D.is_fullwidth||!1,label:"Full Width"})}),"info"===ue&&/* @__PURE__ */e.jsx(s.default,{children:/* @__PURE__ */e.jsx(t.Button,{variant:"outlined",startIcon:/* @__PURE__ */e.jsx(f.default,{}),onClick:le,className:"formSection--PreviewButton",children:"Add Function"})}),
|
|
20
|
+
/* @__PURE__ */e.jsxs(a.Modal,{fullWidth:!0,onClose:te,open:z,children:[
|
|
21
|
+
/* @__PURE__ */e.jsxs(j.default,{children:[
|
|
22
|
+
/* @__PURE__ */e.jsx(n.Typography,{type:"s3",weight:"medium",color:"theme.secondary.1000",children:"Add Function"}),
|
|
23
|
+
/* @__PURE__ */e.jsx(p.default,{edge:"end",onClick:te,size:"small",children:/* @__PURE__ */e.jsx(b.default,{fontSize:"inherit"})})]}),
|
|
24
|
+
/* @__PURE__ */e.jsxs(g.default,{dividers:!0,children:[
|
|
25
|
+
/* @__PURE__ */e.jsxs(n.Typography,{weight:"medium",type:"s3",color:"theme.secondary.700",sx:{mb:2},children:["Label: ",
|
|
26
|
+
/* @__PURE__ */e.jsx("span",{style:{color:"#1F2125"},children:D.label})]}),
|
|
27
|
+
/* @__PURE__ */e.jsx(i.TextField,{name:"default_value",fullWidth:!0,placeholder:"Add a function",multiline:!0,minRows:4,defaultValue:D.default_value,onChange:ae,value:$})]}),
|
|
28
|
+
/* @__PURE__ */e.jsxs(v.default,{children:[
|
|
29
|
+
/* @__PURE__ */e.jsx(t.Button,{variant:"outlined",onClick:te,style:{color:"black"},children:"Cancel"}),
|
|
30
|
+
/* @__PURE__ */e.jsx(t.Button,{onClick:()=>O($),children:"Save"})]})]})]})}exports.TextEditForm=q,exports.default=q;
|
|
31
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/views/form-builder/element-edit-forms/text.tsx"],"sourcesContent":["// React imports\r\nimport { useCallback, useEffect, useState, useMemo, useRef } from \"react\";\r\n\r\n// Material UI imports\r\nimport {\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n IconButton,\r\n MenuItem,\r\n Box,\r\n FormControlLabel,\r\n FormControl,\r\n Slider,\r\n} from \"@mui/material\";\r\nimport { Add, Close } from \"@mui/icons-material\";\r\n\r\n// ERP Common imports\r\nimport Button from \"@/components/button/button\";\r\nimport Modal from \"@/components/modal/modal\";\r\nimport Typography from \"@/components/typography/typography\";\r\nimport TextField from \"@/components/text-field/text-field\";\r\nimport Select from \"@/components/select/select\";\r\nimport Checkbox from \"@/components/checkbox/checkbox\";\r\nimport formatText from \"@/utils/format-text\";\r\n\r\n// Local imports\r\nimport FieldSelect from \"./field-select\";\r\nimport { IElementJson } from \"../custom-form\";\r\nimport { ApiFormFields } from \"../../Redux/state\";\r\nimport \"../custom-form.scss\";\r\n\r\ninterface Option {\r\n label: string;\r\n value: string;\r\n}\r\n\r\ninterface ITextEditFormProps {\r\n handleWidthChange: (value?: number) => void;\r\n handleColumnSelect: (value?: number) => void;\r\n handlePropertyValueUpdate: (\r\n event?: React.ChangeEvent<HTMLInputElement>,\r\n numberValue?: number,\r\n value?: any,\r\n fieldType?: string,\r\n ) => void;\r\n element: IElementJson | null;\r\n fields: ApiFormFields | null;\r\n}\r\n\r\n// Constants moved outside to prevent re-creation\r\nconst COLUMN_PER_ROW_OPTIONS = [1, 2, 3, 4, 5, 6] as const;\r\nconst SELECT_OPTIONS = [\r\n { text: \"12 Hour\", value: \"12hr\" },\r\n { text: \"24 Hour\", value: \"24hr\" },\r\n] as const;\r\nconst CURRENCY_OPTIONS = [\r\n { text: \"INR (India)\", value: \"inr\" },\r\n { text: \"USD (US)\", value: \"usd\" },\r\n] as const;\r\n\r\nconst FIELDS_WITHOUT_PLACEHOLDER = new Set([\r\n \"time\", \"file\", \"geoLocation\", \"image\", \"info\", \"relation\"\r\n]);\r\nconst FIELDS_WITH_MIN_MAX = new Set([\"text\", \"number\"]);\r\n\r\n// Memoized components to prevent unnecessary re-renders\r\nconst MemoizedMenuItem = ({ option, index, prefix }: { option: any; index: number; prefix: string }) => (\r\n <MenuItem key={`${prefix}-${index}`} value={option.value}>\r\n {option.text || option.label}\r\n </MenuItem>\r\n);\r\n\r\nconst MemoizedRelationMenuItem = ({ option, index, prefix }: { option: Option; index: number; prefix: string }) => (\r\n <MenuItem key={`${prefix}-${index}`} value={option.value}>\r\n <Typography type=\"s3\" color=\"theme.secondary.1000\">\r\n {option.label}\r\n </Typography>\r\n </MenuItem>\r\n);\r\n\r\nexport function TextEditForm(props: ITextEditFormProps) {\r\n const { \r\n handlePropertyValueUpdate, \r\n handleColumnSelect, \r\n handleWidthChange, \r\n fields, \r\n element \r\n } = props;\r\n\r\n // State management - optimized to prevent unnecessary re-renders\r\n const [elementJSON, setElementJSON] = useState<IElementJson | null>(element);\r\n const [openModal, setOpenModal] = useState(false);\r\n const [relationFields, setRelationFields] = useState<Option[]>([]);\r\n const [functionValue, setFunctionValue] = useState(\"\");\r\n \r\n // Use refs to track previous values and prevent unnecessary updates\r\n const prevElementRef = useRef<IElementJson | null>(element);\r\n const prevFieldsRef = useRef<ApiFormFields | null>(fields);\r\n\r\n // Memoized relation modules with deep comparison prevention\r\n const relationModulesOptions = useMemo(() => {\r\n if (!fields || fields === prevFieldsRef.current) {\r\n if (prevFieldsRef.current && fields) return prevFieldsRef.current;\r\n }\r\n \r\n prevFieldsRef.current = fields;\r\n \r\n if (!fields) return [];\r\n return Object.keys(fields).map((key) => ({\r\n label: formatText(key),\r\n value: key,\r\n }));\r\n }, [fields]);\r\n\r\n // Optimized relation fields setter with memoization\r\n const setRelationFieldsOptions = useCallback(\r\n (moduleValue?: string) => {\r\n if (!fields || !moduleValue) {\r\n setRelationFields(prev => prev.length > 0 ? [] : prev);\r\n return;\r\n }\r\n\r\n const fieldsArr = fields[moduleValue];\r\n if (fieldsArr?.length) {\r\n const options = fieldsArr.map((field) => ({\r\n label: field.field,\r\n value: field.field,\r\n }));\r\n \r\n // Only update if options actually changed\r\n setRelationFields(prev => {\r\n if (prev.length !== options.length) return options;\r\n const isDifferent = prev.some((item, idx) => \r\n item.value !== options[idx]?.value || item.label !== options[idx]?.label\r\n );\r\n return isDifferent ? options : prev;\r\n });\r\n } else {\r\n setRelationFields(prev => prev.length > 0 ? [] : prev);\r\n }\r\n },\r\n [fields]\r\n );\r\n\r\n // Memoized event handlers to prevent child re-renders\r\n const handleSave = useCallback((value: string) => {\r\n if (!elementJSON) return;\r\n \r\n // Only update if value actually changed\r\n if (elementJSON.default_value !== value) {\r\n const updatedElement = { ...elementJSON, default_value: value };\r\n setElementJSON(updatedElement);\r\n handlePropertyValueUpdate(null, null, value);\r\n }\r\n \r\n if (value) {\r\n setFunctionValue(\"\");\r\n setOpenModal(false);\r\n }\r\n }, [elementJSON, handlePropertyValueUpdate]);\r\n\r\n const handleFieldUpdate = useCallback((e: React.ChangeEvent<HTMLInputElement>) => {\r\n if (!elementJSON) return;\r\n \r\n const fieldType = e.target.value;\r\n if (elementJSON.field_type !== fieldType) {\r\n const updatedElement = { ...elementJSON, field_type: fieldType };\r\n setElementJSON(updatedElement);\r\n handlePropertyValueUpdate(null, null, null, e.target.value);\r\n }\r\n }, [elementJSON, handlePropertyValueUpdate]);\r\n\r\n const handleSelectUpdate = useCallback((e: React.ChangeEvent<HTMLInputElement>) => {\r\n if (!elementJSON) return;\r\n \r\n const option = e.target.value;\r\n if (elementJSON.option !== option) {\r\n const updatedElement = { ...elementJSON, option };\r\n setElementJSON(updatedElement);\r\n handlePropertyValueUpdate(null, null, option);\r\n }\r\n }, [elementJSON, handlePropertyValueUpdate]);\r\n\r\n const handleModuleSelect = useCallback((e: React.ChangeEvent<HTMLInputElement>) => {\r\n const moduleValue = e.target.value;\r\n if (elementJSON?.module !== moduleValue) {\r\n setRelationFieldsOptions(moduleValue);\r\n handlePropertyValueUpdate(e);\r\n }\r\n }, [elementJSON?.module, setRelationFieldsOptions, handlePropertyValueUpdate]);\r\n\r\n const handleWidthSliderChange = useCallback((_: Event, value: number | number[]) => {\r\n if (!elementJSON) return;\r\n \r\n const widthValue = Array.isArray(value) ? value[0] : value;\r\n if (elementJSON.custom_width !== widthValue) {\r\n const updatedElement = { ...elementJSON, custom_width: widthValue };\r\n setElementJSON(updatedElement);\r\n handleWidthChange(widthValue);\r\n }\r\n }, [elementJSON, handleWidthChange]);\r\n\r\n const handleFullWidthChange = useCallback((e: React.ChangeEvent<HTMLInputElement>) => {\r\n if (!elementJSON) return;\r\n \r\n const isFullWidth = e.target.checked;\r\n if (elementJSON.is_fullwidth !== isFullWidth) {\r\n const updatedElement = { ...elementJSON, is_fullwidth: isFullWidth };\r\n setElementJSON(updatedElement);\r\n handlePropertyValueUpdate(e);\r\n }\r\n }, [elementJSON, handlePropertyValueUpdate]);\r\n\r\n const handleColumnSelectChange = useCallback((e: React.ChangeEvent<HTMLInputElement>) => {\r\n const columnValue = Number(e.target.value);\r\n handleColumnSelect(columnValue);\r\n }, [handleColumnSelect]);\r\n\r\n // Memoized helper functions\r\n const getDefaultValue = useCallback((elementJSON: IElementJson) => {\r\n if ([\"number\", \"currency\", \"geoLocation\"].includes(elementJSON.field_type)) {\r\n return elementJSON.default_value?.toString().replace(/[^0-9]/g, \"\") || \"\";\r\n }\r\n return elementJSON.default_value || \"\";\r\n }, []);\r\n\r\n const getMinMaxLabels = useCallback((fieldType: string) => {\r\n return fieldType === \"text\" \r\n ? { min: \"Min character count (with spaces)\", max: \"Max character count (with spaces)\" }\r\n : { min: \"Min number\", max: \"Max number\" };\r\n }, []);\r\n\r\n // Modal handlers\r\n const handleOpenModal = useCallback(() => setOpenModal(true), []);\r\n const handleCloseModal = useCallback(() => {\r\n setOpenModal(false);\r\n setFunctionValue(\"\");\r\n }, []);\r\n\r\n const handleFunctionValueChange = useCallback((e: React.ChangeEvent<HTMLInputElement>) => {\r\n setFunctionValue(e.target.value);\r\n }, []);\r\n\r\n // Optimized effects with proper dependency arrays\r\n useEffect(() => {\r\n // Only update if element actually changed\r\n if (element !== prevElementRef.current) {\r\n setElementJSON(element);\r\n prevElementRef.current = element;\r\n \r\n if (element?.module) {\r\n setRelationFieldsOptions(element.module);\r\n }\r\n }\r\n }, [element, setRelationFieldsOptions]);\r\n\r\n // Memoized render sections to prevent unnecessary re-computation\r\n const currencySelectSection = useMemo(() => {\r\n if (elementJSON?.field_type !== \"currency\") return null;\r\n \r\n return (\r\n <Box>\r\n <FormControl fullWidth>\r\n <Select\r\n fullWidth\r\n placeholder=\"Select Currency\"\r\n size=\"small\"\r\n onChange={handleSelectUpdate}\r\n defaultValue={elementJSON.option}\r\n label=\"Currency\"\r\n name=\"option\"\r\n variant=\"outlined\"\r\n >\r\n {CURRENCY_OPTIONS.map((option, index) => (\r\n <MemoizedMenuItem \r\n key={`currency-${index}`}\r\n option={option} \r\n index={index} \r\n prefix=\"currency\" \r\n />\r\n ))}\r\n </Select>\r\n </FormControl>\r\n </Box>\r\n );\r\n }, [elementJSON?.field_type, elementJSON?.option, handleSelectUpdate]);\r\n\r\n const timeSelectSection = useMemo(() => {\r\n if (elementJSON?.field_type !== \"time\") return null;\r\n \r\n return (\r\n <Box>\r\n <FormControl fullWidth>\r\n <Select\r\n fullWidth\r\n placeholder=\"Select Time Format\"\r\n size=\"small\"\r\n onChange={handleSelectUpdate}\r\n defaultValue={elementJSON.option}\r\n label=\"Time Format\"\r\n name=\"option\"\r\n variant=\"outlined\"\r\n >\r\n {SELECT_OPTIONS.map((option, index) => (\r\n <MemoizedMenuItem \r\n key={`time-${index}`}\r\n option={option} \r\n index={index} \r\n prefix=\"time\" \r\n />\r\n ))}\r\n </Select>\r\n </FormControl>\r\n </Box>\r\n );\r\n }, [elementJSON?.field_type, elementJSON?.option, handleSelectUpdate]);\r\n\r\n const relationSelectSection = useMemo(() => {\r\n if (elementJSON?.field_type !== \"relation\") return null;\r\n \r\n return (\r\n <>\r\n <Box>\r\n <FormControl fullWidth>\r\n <Select\r\n fullWidth\r\n placeholder={\r\n relationModulesOptions.length\r\n ? \"Select Relation Module\"\r\n : \"No data available\"\r\n }\r\n size=\"small\"\r\n onChange={handleModuleSelect}\r\n value={elementJSON.module || \"\"}\r\n label=\"Relation Module\"\r\n name=\"module\"\r\n >\r\n {relationModulesOptions.length ? (\r\n relationModulesOptions.map((option, index) => (\r\n <MemoizedRelationMenuItem \r\n key={`module-${index}`}\r\n option={option} \r\n index={index} \r\n prefix=\"module\" \r\n />\r\n ))\r\n ) : (\r\n <MenuItem disabled>\r\n <Typography type=\"s3\" color=\"theme.secondary.1000\">\r\n <em>No data available</em>\r\n </Typography>\r\n </MenuItem>\r\n )}\r\n </Select>\r\n </FormControl>\r\n </Box>\r\n\r\n <Box>\r\n <FormControl fullWidth>\r\n <Select\r\n fullWidth\r\n placeholder={\r\n !elementJSON.module\r\n ? \"Select Module First\"\r\n : relationFields.length\r\n ? \"Select Relation Field\"\r\n : \"No data available\"\r\n }\r\n size=\"small\"\r\n onChange={handlePropertyValueUpdate}\r\n value={elementJSON.field || \"\"}\r\n label=\"Relation Field\"\r\n disabled={!elementJSON.module}\r\n name=\"field\"\r\n >\r\n {relationFields.length ? (\r\n relationFields.map((option, index) => (\r\n <MemoizedRelationMenuItem \r\n key={`field-${index}`}\r\n option={option} \r\n index={index} \r\n prefix=\"field\" \r\n />\r\n ))\r\n ) : (\r\n <MenuItem disabled>\r\n <Typography type=\"s3\" color=\"theme.secondary.1000\">\r\n <em>No data available</em>\r\n </Typography>\r\n </MenuItem>\r\n )}\r\n </Select>\r\n </FormControl>\r\n </Box>\r\n </>\r\n );\r\n }, [\r\n elementJSON?.field_type, \r\n elementJSON?.module, \r\n elementJSON?.field,\r\n relationModulesOptions, \r\n relationFields, \r\n handleModuleSelect, \r\n handlePropertyValueUpdate\r\n ]);\r\n\r\n // Early return if no element\r\n if (!elementJSON) {\r\n return null;\r\n }\r\n\r\n const { field_type } = elementJSON;\r\n const minMaxLabels = getMinMaxLabels(field_type);\r\n\r\n return (\r\n <Box className=\"formSection--FieldContainer\">\r\n {/* Field Type Selection */}\r\n <Box>\r\n <FieldSelect\r\n variant=\"outlined\"\r\n onChange={handleFieldUpdate}\r\n defaultValue={field_type}\r\n label=\"Field Type\"\r\n disabled={elementJSON.type === \"system\" || !elementJSON.is_new}\r\n />\r\n </Box>\r\n\r\n {/* Label Field */}\r\n <Box>\r\n <TextField\r\n fullWidth\r\n label=\"Label\"\r\n is_required\r\n name=\"label\"\r\n type=\"text\"\r\n onChange={handlePropertyValueUpdate}\r\n defaultValue={elementJSON.label}\r\n />\r\n </Box>\r\n\r\n {/* File/Image Max Size */}\r\n {(field_type === \"file\" || field_type === \"image\") && (\r\n <Box>\r\n <TextField\r\n fullWidth\r\n label=\"Max File Size (in MB)\"\r\n name=\"max_size\"\r\n type=\"number\"\r\n onChange={handlePropertyValueUpdate}\r\n defaultValue={elementJSON.max_size}\r\n />\r\n </Box>\r\n )}\r\n\r\n {/* Currency Selection - Memoized */}\r\n {currencySelectSection}\r\n\r\n {/* Placeholder and Default Value */}\r\n {!FIELDS_WITHOUT_PLACEHOLDER.has(field_type) && (\r\n <>\r\n <Box>\r\n <TextField\r\n fullWidth\r\n label=\"Placeholder\"\r\n name=\"placeholder\"\r\n type=\"text\"\r\n onChange={handlePropertyValueUpdate}\r\n defaultValue={elementJSON.placeholder}\r\n />\r\n </Box>\r\n <Box>\r\n <TextField\r\n fullWidth\r\n label=\"Default Value\"\r\n placeholder=\"Default Value\"\r\n name=\"default_value\"\r\n type={field_type === \"phone\" ? \"tel\" : field_type === \"number\" ? \"number\" : \"text\"}\r\n onChange={handlePropertyValueUpdate}\r\n defaultValue={getDefaultValue(elementJSON)}\r\n />\r\n </Box>\r\n </>\r\n )}\r\n\r\n {/* Time Format Selection - Memoized */}\r\n {timeSelectSection}\r\n\r\n {/* Relation Module and Field Selection - Memoized */}\r\n {relationSelectSection}\r\n\r\n {/* Min/Max Length for Text and Number Fields */}\r\n {FIELDS_WITH_MIN_MAX.has(field_type) && (\r\n <>\r\n <Box>\r\n <TextField\r\n fullWidth\r\n label={minMaxLabels.min}\r\n name=\"min_length\"\r\n type=\"number\"\r\n onChange={(e) => handlePropertyValueUpdate(e, Number(e.target.value))}\r\n defaultValue={elementJSON.min_length || elementJSON.min || 1}\r\n />\r\n </Box>\r\n <Box>\r\n <TextField\r\n fullWidth\r\n label={minMaxLabels.max}\r\n name=\"max_length\"\r\n type=\"number\"\r\n onChange={(e) => handlePropertyValueUpdate(e, Number(e.target.value))}\r\n defaultValue={\r\n elementJSON.max_length || \r\n elementJSON.max || \r\n (field_type === 'number' ? 10000 : 255)\r\n }\r\n />\r\n </Box>\r\n </>\r\n )}\r\n\r\n {/* Column Per Row Selection */}\r\n <Box>\r\n <FormControl fullWidth>\r\n <Select\r\n fullWidth\r\n placeholder=\"Select Column Per Row\"\r\n size=\"small\"\r\n onChange={handleColumnSelectChange}\r\n value={elementJSON.columns_per_row || 1}\r\n label=\"Select Column Per Row\"\r\n name=\"columns_per_row\"\r\n variant=\"outlined\"\r\n >\r\n {COLUMN_PER_ROW_OPTIONS.map((option, index) => (\r\n <MenuItem key={`column-${index}`} value={option}>\r\n {option}\r\n </MenuItem>\r\n ))}\r\n </Select>\r\n </FormControl>\r\n </Box>\r\n\r\n {/* Width Adjustment Slider */}\r\n <Box>\r\n <Typography sx={{ color: 'black', mb: 1 }}>\r\n Adjust Width:\r\n </Typography>\r\n <Slider\r\n value={elementJSON.custom_width || 12}\r\n name=\"custom_width\"\r\n min={1}\r\n max={12}\r\n step={1}\r\n onChange={handleWidthSliderChange}\r\n aria-labelledby=\"width-slider\"\r\n sx={{ color: \"#4AC08C\" }}\r\n disabled={elementJSON.is_fullwidth}\r\n marks\r\n valueLabelDisplay=\"auto\"\r\n />\r\n </Box>\r\n\r\n {/* Number Field Specific Options */}\r\n {field_type === \"number\" && (\r\n <>\r\n <Box>\r\n <TextField\r\n fullWidth\r\n label=\"Float Step\"\r\n name=\"float_step\"\r\n type=\"number\"\r\n step=\"0.01\"\r\n onChange={handlePropertyValueUpdate}\r\n defaultValue={elementJSON.float_step}\r\n />\r\n </Box>\r\n <Box>\r\n <FormControlLabel\r\n name=\"is_negative\"\r\n control={<Checkbox />}\r\n onChange={handlePropertyValueUpdate}\r\n checked={elementJSON.is_negative || false}\r\n label=\"Allow Negative Numbers\"\r\n />\r\n </Box>\r\n </>\r\n )}\r\n\r\n {/* Date Field Specific Options */}\r\n {field_type === \"date\" && (\r\n <>\r\n <Box>\r\n <FormControlLabel\r\n name=\"is_future_dates_allowed\"\r\n control={<Checkbox />}\r\n onChange={handlePropertyValueUpdate}\r\n checked={elementJSON.is_future_dates_allowed || false}\r\n label=\"Allow Future Dates\"\r\n />\r\n </Box>\r\n <Box>\r\n <FormControlLabel\r\n name=\"is_past_dates_allowed\"\r\n control={<Checkbox />}\r\n onChange={handlePropertyValueUpdate}\r\n checked={elementJSON.is_past_dates_allowed || false}\r\n label=\"Allow Past Dates\"\r\n />\r\n </Box>\r\n </>\r\n )}\r\n\r\n {/* Required Field Checkbox */}\r\n {field_type !== \"info\" && (\r\n <Box>\r\n <FormControlLabel\r\n name=\"is_required\"\r\n control={<Checkbox />}\r\n onChange={handlePropertyValueUpdate}\r\n checked={elementJSON.is_required || false}\r\n label=\"This field is required\"\r\n />\r\n </Box>\r\n )}\r\n\r\n {/* Email Unique Checkbox */}\r\n {field_type === \"email\" && (\r\n <Box>\r\n <FormControlLabel\r\n name=\"is_unique\"\r\n control={<Checkbox />}\r\n onChange={handlePropertyValueUpdate}\r\n checked={elementJSON.is_unique || false}\r\n label=\"Is Unique\"\r\n />\r\n </Box>\r\n )}\r\n\r\n {/* Text Multiline Checkbox */}\r\n {field_type === \"text\" && (\r\n <Box>\r\n <FormControlLabel\r\n name=\"is_multiline\"\r\n control={<Checkbox />}\r\n onChange={handlePropertyValueUpdate}\r\n checked={elementJSON.is_multiline || false}\r\n label=\"Is Multiline\"\r\n />\r\n </Box>\r\n )}\r\n\r\n {/* Full Width Checkbox */}\r\n <Box>\r\n <FormControlLabel\r\n name=\"is_fullwidth\"\r\n control={<Checkbox />}\r\n onChange={handleFullWidthChange}\r\n checked={elementJSON.is_fullwidth || false}\r\n label=\"Full Width\"\r\n />\r\n </Box>\r\n\r\n {/* Info Field Function Button */}\r\n {field_type === \"info\" && (\r\n <Box>\r\n <Button\r\n variant=\"outlined\"\r\n startIcon={<Add />}\r\n onClick={handleOpenModal}\r\n className=\"formSection--PreviewButton\"\r\n >\r\n Add Function\r\n </Button>\r\n </Box>\r\n )}\r\n\r\n {/* Function Modal */}\r\n <Modal fullWidth onClose={handleCloseModal} open={openModal}>\r\n <DialogTitle>\r\n <Typography type=\"s3\" weight=\"medium\" color=\"theme.secondary.1000\">\r\n Add Function\r\n </Typography>\r\n <IconButton\r\n edge=\"end\"\r\n onClick={handleCloseModal}\r\n size=\"small\"\r\n >\r\n <Close fontSize=\"inherit\" />\r\n </IconButton>\r\n </DialogTitle>\r\n <DialogContent dividers>\r\n <Typography weight=\"medium\" type=\"s3\" color=\"theme.secondary.700\" sx={{ mb: 2 }}>\r\n Label: <span style={{ color: \"#1F2125\" }}>{elementJSON.label}</span>\r\n </Typography>\r\n <TextField\r\n name=\"default_value\"\r\n fullWidth\r\n placeholder=\"Add a function\"\r\n multiline\r\n minRows={4}\r\n defaultValue={elementJSON.default_value}\r\n onChange={handleFunctionValueChange}\r\n value={functionValue}\r\n />\r\n </DialogContent>\r\n <DialogActions>\r\n <Button\r\n variant=\"outlined\"\r\n onClick={handleCloseModal}\r\n style={{ color: \"black\" }}\r\n >\r\n Cancel\r\n </Button>\r\n <Button onClick={() => handleSave(functionValue)}>\r\n Save\r\n </Button>\r\n </DialogActions>\r\n </Modal>\r\n </Box>\r\n );\r\n}\r\n\r\nexport default TextEditForm;"],"names":["COLUMN_PER_ROW_OPTIONS","SELECT_OPTIONS","text","value","CURRENCY_OPTIONS","FIELDS_WITHOUT_PLACEHOLDER","Set","FIELDS_WITH_MIN_MAX","MemoizedMenuItem","option","index","prefix","MenuItem","children","label","MemoizedRelationMenuItem","jsx","Typography","type","color","TextEditForm","props","handlePropertyValueUpdate","handleColumnSelect","handleWidthChange","fields","element","elementJSON","setElementJSON","useState","openModal","setOpenModal","relationFields","setRelationFields","functionValue","setFunctionValue","prevElementRef","useRef","prevFieldsRef","relationModulesOptions","useMemo","current","Object","keys","map","key","formatText","setRelationFieldsOptions","useCallback","moduleValue","prev","length","fieldsArr","options","field","some","item","idx","_a","_b","handleSave","default_value","updatedElement","handleFieldUpdate","e","fieldType","target","field_type","handleSelectUpdate","handleModuleSelect","module","handleWidthSliderChange","_","widthValue","Array","isArray","custom_width","handleFullWidthChange","isFullWidth","checked","is_fullwidth","handleColumnSelectChange","columnValue","Number","getDefaultValue","includes","toString","replace","getMinMaxLabels","min","max","handleOpenModal","handleCloseModal","handleFunctionValueChange","useEffect","currencySelectSection","Box","FormControl","fullWidth","Select","placeholder","size","onChange","defaultValue","name","variant","timeSelectSection","relationSelectSection","jsxs","Fragment","disabled","minMaxLabels","className","FieldSelect","is_new","TextField","is_required","max_size","has","min_length","max_length","columns_per_row","sx","mb","Slider","step","marks","valueLabelDisplay","float_step","FormControlLabel","control","Checkbox","is_negative","is_future_dates_allowed","is_past_dates_allowed","is_unique","is_multiline","Button","startIcon","Add","onClick","Modal","onClose","open","DialogTitle","weight","IconButton","edge","Close","fontSize","DialogContent","dividers","style","multiline","minRows","DialogActions"],"mappings":"4/CAmDA,MAAMA,EAAyB,CAAC,EAAG,EAAG,EAAG,EAAG,EAAG,GACzCC,EAAiB,CACrB,CAAEC,KAAM,UAAWC,MAAO,QAC1B,CAAED,KAAM,UAAWC,MAAO,SAEtBC,EAAmB,CACvB,CAAEF,KAAM,cAAeC,MAAO,OAC9B,CAAED,KAAM,WAAYC,MAAO,QAGvBE,qBAAiCC,IAAI,CACzC,OAAQ,OAAQ,cAAe,QAAS,OAAQ,aAE5CC,iBAAsB,IAAID,IAAI,CAAC,OAAQ,WAGvCE,EAAmB,EAAGC,SAAQC,QAAOC,iCACxCC,EAAAA,QAAA,CAAoCT,MAAOM,EAAON,MAChDU,SAAAJ,EAAOP,MAAQO,EAAOK,OADV,GAAGH,KAAUD,KAKxBK,EAA2B,EAAGN,SAAQC,QAAOC,2BACjDK,EAAAA,IAACJ,EAAAA,QAAA,CAAoCT,MAAOM,EAAON,MACjDU,8BAACI,EAAAA,WAAA,CAAWC,KAAK,KAAKC,MAAM,uBACzBN,SAAAJ,EAAOK,SAFG,GAAGH,KAAUD,KAOvB,SAASU,EAAaC,GAC3B,MAAMC,0BACJA,EAAAC,mBACAA,EAAAC,kBACAA,EAAAC,OACAA,EAAAC,QACA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CAAM3C,WAAS,EAAC4C,QAASlD,GAAkBmD,KAAMjH,EAChDjB,SAAA;eAAA+F,OAACoC,EAAAA,QAAA,CACCnI,SAAA;eAAAG,EAAAA,IAACC,EAAAA,YAAWC,KAAK,KAAK+H,OAAO,SAAS9H,MAAM,uBAAuBN,SAAA;eAGnEG,EAAAA,IAACkI,EAAAA,QAAA,CACCC,KAAK,MACLP,QAAShD,GACTS,KAAK,QAELxF,0BAAAG,IAACoI,EAAAA,QAAA,CAAMC,SAAS;iBAGpBzC,KAAC0C,EAAAA,QAAA,CAAcC,UAAQ,EACrB1I,SAAA;iBAAA+F,KAAC3F,EAAAA,WAAA,CAAWgI,OAAO,SAAS/H,KAAK,KAAKC,MAAM,sBAAsBuG,GAAI,CAAEC,GAAI,GAAK9G,SAAA,CAAA;eACxEG,MAAC,QAAKwI,MAAO,CAAErI,MAAO,WAAcN,WAAYC;eAEzDE,EAAAA,IAACmG,EAAAA,UAAA,CACCX,KAAK,gBACLN,WAAS,EACTE,YAAY,iBACZqD,WAAS,EACTC,QAAS,EACTnD,aAAc5E,EAAYkC,cAC1ByC,SAAUT,GACV1F,MAAO+B;sBAGVyH,EAAAA,QAAA,CACC9I,SAAA;eAAAG,EAAAA,IAACyH,EAAAA,OAAA,CACChC,QAAQ,WACRmC,QAAShD,GACT4D,MAAO,CAAErI,MAAO,SACjBN,SAAA;qBAGA4H,EAAAA,OAAA,CAAOG,QAAS,IAAMhF,EAAW1B,GAAgBrB,SAAA,iBAO5D"}
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
const text = {
|
|
2
|
+
field_type: "text",
|
|
3
|
+
label: "label",
|
|
4
|
+
placeholder: "Enter text",
|
|
5
|
+
default_value: "",
|
|
6
|
+
min_length: 2,
|
|
7
|
+
max_length: 30,
|
|
8
|
+
is_multiline: false,
|
|
9
|
+
is_required: true,
|
|
10
|
+
is_unique: false
|
|
11
|
+
};
|
|
12
|
+
const number = {
|
|
13
|
+
field_type: "number",
|
|
14
|
+
label: "label",
|
|
15
|
+
placeholder: "Enter number",
|
|
16
|
+
default_value: "",
|
|
17
|
+
float_step: "0.001",
|
|
18
|
+
// "0.001",
|
|
19
|
+
min_length: 0,
|
|
20
|
+
max_length: 1e3,
|
|
21
|
+
is_negative: false,
|
|
22
|
+
is_required: true,
|
|
23
|
+
is_unique: false
|
|
24
|
+
};
|
|
25
|
+
const email = {
|
|
26
|
+
field_type: "email",
|
|
27
|
+
label: "label",
|
|
28
|
+
placeholder: "Enter email",
|
|
29
|
+
default_value: "",
|
|
30
|
+
is_required: false,
|
|
31
|
+
is_unique: false
|
|
32
|
+
};
|
|
33
|
+
const phone = {
|
|
34
|
+
field_type: "phone",
|
|
35
|
+
label: "label",
|
|
36
|
+
placeholder: "Enter phone",
|
|
37
|
+
default_value: "",
|
|
38
|
+
is_required: false,
|
|
39
|
+
is_unique: false
|
|
40
|
+
};
|
|
41
|
+
const select = {
|
|
42
|
+
field_type: "select",
|
|
43
|
+
label: "Select",
|
|
44
|
+
placeholder: "Choose option",
|
|
45
|
+
default_value: "",
|
|
46
|
+
options: [],
|
|
47
|
+
is_multiselect: false,
|
|
48
|
+
is_required: true,
|
|
49
|
+
is_unique: false
|
|
50
|
+
};
|
|
51
|
+
const date = {
|
|
52
|
+
field_type: "date",
|
|
53
|
+
label: "label",
|
|
54
|
+
placeholder: "Select Date",
|
|
55
|
+
default_value: "",
|
|
56
|
+
is_future_dates_allowed: false,
|
|
57
|
+
is_past_dates_allowed: false,
|
|
58
|
+
is_required: false,
|
|
59
|
+
is_unique: false
|
|
60
|
+
};
|
|
61
|
+
const time = {
|
|
62
|
+
field_type: "time",
|
|
63
|
+
label: "label",
|
|
64
|
+
placeholder: "Select Time",
|
|
65
|
+
default_value: "",
|
|
66
|
+
is_required: false,
|
|
67
|
+
is_unique: false,
|
|
68
|
+
option: "12hr"
|
|
69
|
+
};
|
|
70
|
+
const url = {
|
|
71
|
+
field_type: "url",
|
|
72
|
+
label: "label",
|
|
73
|
+
placeholder: "Enter URL",
|
|
74
|
+
default_value: "",
|
|
75
|
+
is_required: false,
|
|
76
|
+
is_unique: false
|
|
77
|
+
};
|
|
78
|
+
const currency = {
|
|
79
|
+
field_type: "currency",
|
|
80
|
+
label: "label",
|
|
81
|
+
placeholder: "Enter Currency",
|
|
82
|
+
default_value: "",
|
|
83
|
+
is_required: false,
|
|
84
|
+
is_unique: false,
|
|
85
|
+
option: "inr"
|
|
86
|
+
};
|
|
87
|
+
const file = {
|
|
88
|
+
field_type: "file",
|
|
89
|
+
label: "label",
|
|
90
|
+
placeholder: "Upload File or Media",
|
|
91
|
+
is_required: false,
|
|
92
|
+
is_unique: false,
|
|
93
|
+
max_size: 20,
|
|
94
|
+
default_value: ""
|
|
95
|
+
};
|
|
96
|
+
const image = {
|
|
97
|
+
field_type: "image",
|
|
98
|
+
label: "label",
|
|
99
|
+
placeholder: "Upload Image",
|
|
100
|
+
is_required: false,
|
|
101
|
+
is_unique: false,
|
|
102
|
+
max_size: 20,
|
|
103
|
+
default_value: ""
|
|
104
|
+
};
|
|
105
|
+
const geoLocation = {
|
|
106
|
+
field_type: "geoLocation",
|
|
107
|
+
label: "label",
|
|
108
|
+
placeholder: "Enter geo location",
|
|
109
|
+
default_value: "",
|
|
110
|
+
is_required: false,
|
|
111
|
+
is_unique: false
|
|
112
|
+
};
|
|
113
|
+
const section = {
|
|
114
|
+
field_type: "section",
|
|
115
|
+
label: "section",
|
|
116
|
+
section_type: "Default",
|
|
117
|
+
form_switcher_label: "Form section",
|
|
118
|
+
form_switcher_name: "",
|
|
119
|
+
switcher_forms: [{
|
|
120
|
+
value: "",
|
|
121
|
+
name: "Form 1",
|
|
122
|
+
id: null
|
|
123
|
+
}],
|
|
124
|
+
is_accordion: false,
|
|
125
|
+
members: []
|
|
126
|
+
};
|
|
127
|
+
const info = {
|
|
128
|
+
field_type: "info",
|
|
129
|
+
label: "label",
|
|
130
|
+
placeholder: "Add Label Text",
|
|
131
|
+
default_value: ""
|
|
132
|
+
};
|
|
133
|
+
const relation = {
|
|
134
|
+
field_type: "relation",
|
|
135
|
+
label: "label",
|
|
136
|
+
placeholder: "Add Label Text",
|
|
137
|
+
is_required: false,
|
|
138
|
+
is_unique: false,
|
|
139
|
+
module: "",
|
|
140
|
+
field: "",
|
|
141
|
+
default_value: ""
|
|
142
|
+
};
|
|
143
|
+
const checkbox = {
|
|
144
|
+
field_type: "checkbox",
|
|
145
|
+
label: "label",
|
|
146
|
+
placeholder: "Add Label Text",
|
|
147
|
+
is_required: false,
|
|
148
|
+
is_checked: false,
|
|
149
|
+
title_position: "end",
|
|
150
|
+
title: "Checkbox"
|
|
151
|
+
};
|
|
152
|
+
const toggleButton = {
|
|
153
|
+
field_type: "toggleButton",
|
|
154
|
+
label: "label",
|
|
155
|
+
placeholder: "Add Label Text",
|
|
156
|
+
is_required: false,
|
|
157
|
+
is_checked: false,
|
|
158
|
+
title_position: "end",
|
|
159
|
+
title: "Toggle"
|
|
160
|
+
};
|
|
161
|
+
const table = {
|
|
162
|
+
field_type: "table",
|
|
163
|
+
label: "label",
|
|
164
|
+
placeholder: "Add Label Text",
|
|
165
|
+
is_required: false,
|
|
166
|
+
table_columns: [],
|
|
167
|
+
table: "custom"
|
|
168
|
+
};
|
|
169
|
+
const radioButton = {
|
|
170
|
+
field_type: "radioButton",
|
|
171
|
+
placeholder: "",
|
|
172
|
+
label: "label",
|
|
173
|
+
title: "",
|
|
174
|
+
is_required: false,
|
|
175
|
+
title_position: "end",
|
|
176
|
+
options: [],
|
|
177
|
+
display: "row",
|
|
178
|
+
default_value: ""
|
|
179
|
+
};
|
|
180
|
+
const tagsInput = {
|
|
181
|
+
field_type: "tagsInput",
|
|
182
|
+
label: "label",
|
|
183
|
+
placeholder: "Enter tagsInput",
|
|
184
|
+
default_value: "",
|
|
185
|
+
min_length: 2,
|
|
186
|
+
max_length: 30,
|
|
187
|
+
is_multiline: false,
|
|
188
|
+
is_required: true,
|
|
189
|
+
is_unique: false
|
|
190
|
+
};
|
|
191
|
+
const element = {
|
|
192
|
+
text,
|
|
193
|
+
number,
|
|
194
|
+
email,
|
|
195
|
+
phone,
|
|
196
|
+
select,
|
|
197
|
+
date,
|
|
198
|
+
time,
|
|
199
|
+
url,
|
|
200
|
+
currency,
|
|
201
|
+
file,
|
|
202
|
+
geoLocation,
|
|
203
|
+
image,
|
|
204
|
+
section,
|
|
205
|
+
info,
|
|
206
|
+
relation,
|
|
207
|
+
checkbox,
|
|
208
|
+
toggleButton,
|
|
209
|
+
radioButton,
|
|
210
|
+
table,
|
|
211
|
+
tagsInput
|
|
212
|
+
};
|
|
213
|
+
export {
|
|
214
|
+
element
|
|
215
|
+
};
|
|
216
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../../../src/views/form-builder/field_properties.ts"],"sourcesContent":["import { MRT_ColumnDef, MRT_RowData } from \"material-react-table\";\r\n\r\nexport interface IProperty {\r\n field_type: string;\r\n label: string;\r\n placeholder: string;\r\n default_value?: string;\r\n float_step?: string;\r\n min_length?: number;\r\n max_length?: number;\r\n is_multiline?: boolean;\r\n is_required?: boolean;\r\n is_negative?: boolean;\r\n is_unique?: boolean;\r\n is_checked?: boolean;\r\n // options?: Array<{ text: string; value: string }>;\r\n // is_multiselect?: boolean,\r\n id?: string;\r\n is_future_dates_allowed?: boolean;\r\n is_past_dates_allowed?: boolean;\r\n option?: string;\r\n max_size?: number;\r\n section_id?: string;\r\n section_name?: string;\r\n title_position?: \"start\" | \"end\"\r\n title?:string,\r\n table_columns?:MRT_ColumnDef<MRT_RowData>[]\r\n table?:string\r\n module?:string\r\n field?:string\r\n is_country_code_separate?: boolean;\r\n country_code_field_name?: string;\r\n}\r\n\r\ninterface IMultiOption {\r\n value: string;\r\n label: string;\r\n is_checked: boolean;\r\n}\r\n\r\nexport interface IMultiOptionsProperty extends IProperty {\r\n options: IMultiOption[];\r\n display?: \"row\" | \"column\";\r\n}\r\n\r\nexport interface ISelectProperty {\r\n field_type: string;\r\n label: string;\r\n placeholder: string;\r\n default_value: string;\r\n is_required?: boolean;\r\n is_unique?: boolean;\r\n options: ISelectOption[];\r\n is_multiselect?: boolean;\r\n id?: string;\r\n section_id?: string;\r\n section_name?: string;\r\n}\r\n\r\nexport interface ISwitcherForms {\r\n value?: string;\r\n name: string;\r\n id: string | number | null;\r\n}\r\n\r\nexport interface ISectionProperty {\r\n field_type: string;\r\n label: string;\r\n is_accordion: boolean;\r\n id?: string;\r\n section_order?: string;\r\n section_id?: string;\r\n section_name?: string;\r\n section_type: \"Default\" | \"Form switcher section\";\r\n form_switcher_label?: string;\r\n form_switcher_name?: string;\r\n switcher_forms?: ISwitcherForms[];\r\n members: IProperty[] | ISelectProperty[];\r\n}\r\n\r\n\r\ninterface ISelectOption {\r\n text: string;\r\n value: string;\r\n}\r\n\r\nconst text: IProperty = {\r\n field_type: \"text\",\r\n label: \"label\",\r\n placeholder: \"Enter text\",\r\n default_value: \"\",\r\n min_length: 2,\r\n max_length: 30,\r\n is_multiline: false,\r\n is_required: true,\r\n is_unique: false,\r\n};\r\n\r\nconst number: IProperty = {\r\n field_type: \"number\",\r\n label: \"label\",\r\n placeholder: \"Enter number\",\r\n default_value: \"\",\r\n float_step: \"0.001\", // \"0.001\",\r\n min_length: 0,\r\n max_length: 1000,\r\n is_negative: false,\r\n is_required: true,\r\n is_unique: false,\r\n};\r\n\r\nconst email: IProperty = {\r\n field_type: \"email\",\r\n label: \"label\",\r\n placeholder: \"Enter email\",\r\n default_value: \"\",\r\n is_required: false,\r\n is_unique: false,\r\n};\r\n\r\nconst phone: IProperty = {\r\n field_type: \"phone\",\r\n label: \"label\",\r\n placeholder: \"Enter phone\",\r\n default_value: \"\",\r\n is_required: false,\r\n is_unique: false,\r\n};\r\n\r\nconst select: ISelectProperty = {\r\n field_type: \"select\",\r\n label: \"Select\",\r\n placeholder: \"Choose option\",\r\n default_value: \"\",\r\n options: [],\r\n is_multiselect: false,\r\n is_required: true,\r\n is_unique: false,\r\n};\r\n\r\nconst date: IProperty = {\r\n field_type: \"date\",\r\n label: \"label\",\r\n placeholder: \"Select Date\",\r\n default_value: \"\",\r\n is_future_dates_allowed: false,\r\n is_past_dates_allowed: false,\r\n is_required: false,\r\n is_unique: false,\r\n};\r\n\r\nconst time: IProperty = {\r\n field_type: \"time\",\r\n label: \"label\",\r\n placeholder: \"Select Time\",\r\n default_value: \"\",\r\n is_required: false,\r\n is_unique: false,\r\n option: \"12hr\",\r\n};\r\n\r\nconst url: IProperty = {\r\n field_type: \"url\",\r\n label: \"label\",\r\n placeholder: \"Enter URL\",\r\n default_value: \"\",\r\n is_required: false,\r\n is_unique: false,\r\n};\r\n\r\nconst currency: IProperty = {\r\n field_type: \"currency\",\r\n label: \"label\",\r\n placeholder: \"Enter Currency\",\r\n default_value: \"\",\r\n is_required: false,\r\n is_unique: false,\r\n option: \"inr\",\r\n};\r\n\r\nconst file: IProperty = {\r\n field_type: \"file\",\r\n label: \"label\",\r\n placeholder: \"Upload File or Media\",\r\n is_required: false,\r\n is_unique: false,\r\n max_size: 20,\r\n default_value: \"\",\r\n};\r\n\r\nconst image: IProperty = {\r\n field_type: \"image\",\r\n label: \"label\",\r\n placeholder: \"Upload Image\",\r\n is_required: false,\r\n is_unique: false,\r\n max_size: 20,\r\n default_value: \"\",\r\n};\r\n\r\nconst geoLocation: IProperty = {\r\n field_type: \"geoLocation\",\r\n label: \"label\",\r\n placeholder: \"Enter geo location\",\r\n default_value: \"\",\r\n is_required: false,\r\n is_unique: false,\r\n};\r\n\r\nconst section: ISectionProperty = {\r\n field_type: \"section\",\r\n label: \"section\",\r\n section_type: \"Default\",\r\n form_switcher_label: \"Form section\",\r\n form_switcher_name: \"\",\r\n switcher_forms: [{\r\n value: \"\",\r\n name: \"Form 1\",\r\n id: null,\r\n }],\r\n is_accordion: false,\r\n members: [],\r\n};\r\n\r\nconst info: IProperty = {\r\n field_type: \"info\",\r\n label: \"label\",\r\n placeholder: \"Add Label Text\",\r\n default_value: \"\",\r\n};\r\n\r\nconst relation: IProperty = {\r\n field_type: \"relation\",\r\n label: \"label\",\r\n placeholder: \"Add Label Text\",\r\n is_required: false,\r\n is_unique: false,\r\n module: \"\",\r\n field: \"\",\r\n default_value: \"\",\r\n};\r\n\r\nconst checkbox: IProperty = {\r\n field_type: \"checkbox\",\r\n label: \"label\",\r\n placeholder: \"Add Label Text\",\r\n is_required: false,\r\n is_checked: false,\r\n title_position:'end',\r\n title:\"Checkbox\"\r\n};\r\n\r\nconst toggleButton: IProperty = {\r\n field_type: \"toggleButton\",\r\n label: \"label\",\r\n placeholder: \"Add Label Text\",\r\n is_required: false,\r\n is_checked: false,\r\n title_position:'end',\r\n title:\"Toggle\"\r\n};\r\n\r\nconst table: IProperty = {\r\n field_type: \"table\",\r\n label: \"label\",\r\n placeholder: \"Add Label Text\",\r\n is_required: false,\r\n table_columns: [],\r\n table: \"custom\",\r\n};\r\nconst radioButton: IMultiOptionsProperty = {\r\n field_type: \"radioButton\",\r\n placeholder: \"\",\r\n label: \"label\",\r\n title: \"\",\r\n is_required: false,\r\n title_position:'end',\r\n options: [],\r\n display: \"row\",\r\n default_value: \"\",\r\n};\r\nconst tagsInput: IProperty = {\r\n field_type: \"tagsInput\",\r\n label: \"label\",\r\n placeholder: \"Enter tagsInput\",\r\n default_value: \"\",\r\n min_length: 2,\r\n max_length: 30,\r\n is_multiline: false,\r\n is_required: true,\r\n is_unique: false,\r\n};\r\n\r\nexport const element = {\r\n text,\r\n number,\r\n email,\r\n phone,\r\n select,\r\n date,\r\n time,\r\n url,\r\n currency,\r\n file,\r\n geoLocation,\r\n image,\r\n section,\r\n info,\r\n relation,\r\n checkbox,\r\n toggleButton,\r\n radioButton,\r\n table,\r\n tagsInput\r\n};\r\n"],"names":[],"mappings":"AAsFA,MAAM,OAAkB;AAAA,EACtB,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,aAAa;AAAA,EACb,eAAe;AAAA,EACf,YAAY;AAAA,EACZ,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AY;AAAA,EACZ,gBAAe;AAAA,EACf,OAAM;AACR;AAEA,MAAM,QAAmB;AAAA,EACvB,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,aAAa;AAAA,EACb,aAAa;AAAA,EACb,eAAe,CAAA;AAAA,EACf,OAAO;AACT;AACA,MAAM,cAAqC;AAAA,EACzC,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,OAAO;AAAA,EACP,OAAO;AAAA,EACP,aAAa;AAAA,EACb,gBAAe;AAAA,EACf,SAAS,CAAA;AAAA,EACT,SAAS;AAAA,EACT,eAAe;AACjB;AACA,MAAM,YAAuB;AAAA,EAC3B,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,aAAa;AAAA,EACb,eAAe;AAAA,EACf,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,aAAa;AAAA,EACb,WAAW;AACb;AAEO,MAAM,UAAU;AAAA,EACrB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.element={text:{field_type:"text",label:"label",placeholder:"Enter text",default_value:"",min_length:2,max_length:30,is_multiline:!1,is_required:!0,is_unique:!1},number:{field_type:"number",label:"label",placeholder:"Enter number",default_value:"",float_step:"0.001",min_length:0,max_length:1e3,is_negative:!1,is_required:!0,is_unique:!1},email:{field_type:"email",label:"label",placeholder:"Enter email",default_value:"",is_required:!1,is_unique:!1},phone:{field_type:"phone",label:"label",placeholder:"Enter phone",default_value:"",is_required:!1,is_unique:!1},select:{field_type:"select",label:"Select",placeholder:"Choose option",default_value:"",options:[],is_multiselect:!1,is_required:!0,is_unique:!1},date:{field_type:"date",label:"label",placeholder:"Select Date",default_value:"",is_future_dates_allowed:!1,is_past_dates_allowed:!1,is_required:!1,is_unique:!1},time:{field_type:"time",label:"label",placeholder:"Select Time",default_value:"",is_required:!1,is_unique:!1,option:"12hr"},url:{field_type:"url",label:"label",placeholder:"Enter URL",default_value:"",is_required:!1,is_unique:!1},currency:{field_type:"currency",label:"label",placeholder:"Enter Currency",default_value:"",is_required:!1,is_unique:!1,option:"inr"},file:{field_type:"file",label:"label",placeholder:"Upload File or Media",is_required:!1,is_unique:!1,max_size:20,default_value:""},geoLocation:{field_type:"geoLocation",label:"label",placeholder:"Enter geo location",default_value:"",is_required:!1,is_unique:!1},image:{field_type:"image",label:"label",placeholder:"Upload Image",is_required:!1,is_unique:!1,max_size:20,default_value:""},section:{field_type:"section",label:"section",section_type:"Default",form_switcher_label:"Form section",form_switcher_name:"",switcher_forms:[{value:"",name:"Form 1",id:null}],is_accordion:!1,members:[]},info:{field_type:"info",label:"label",placeholder:"Add Label Text",default_value:""},relation:{field_type:"relation",label:"label",placeholder:"Add Label Text",is_required:!1,is_unique:!1,module:"",field:"",default_value:""},checkbox:{field_type:"checkbox",label:"label",placeholder:"Add Label Text",is_required:!1,is_checked:!1,title_position:"end",title:"Checkbox"},toggleButton:{field_type:"toggleButton",label:"label",placeholder:"Add Label Text",is_required:!1,is_checked:!1,title_position:"end",title:"Toggle"},radioButton:{field_type:"radioButton",placeholder:"",label:"label",title:"",is_required:!1,title_position:"end",options:[],display:"row",default_value:""},table:{field_type:"table",label:"label",placeholder:"Add Label Text",is_required:!1,table_columns:[],table:"custom"},tagsInput:{field_type:"tagsInput",label:"label",placeholder:"Enter tagsInput",default_value:"",min_length:2,max_length:30,is_multiline:!1,is_required:!0,is_unique:!1}};
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/views/form-builder/field_properties.ts"],"sourcesContent":["import { MRT_ColumnDef, MRT_RowData } from \"material-react-table\";\r\n\r\nexport interface IProperty {\r\n field_type: string;\r\n label: string;\r\n placeholder: string;\r\n default_value?: string;\r\n float_step?: string;\r\n min_length?: number;\r\n max_length?: number;\r\n is_multiline?: boolean;\r\n is_required?: boolean;\r\n is_negative?: boolean;\r\n is_unique?: boolean;\r\n is_checked?: boolean;\r\n // options?: Array<{ text: string; value: string }>;\r\n // is_multiselect?: boolean,\r\n id?: string;\r\n is_future_dates_allowed?: boolean;\r\n is_past_dates_allowed?: boolean;\r\n option?: string;\r\n max_size?: number;\r\n section_id?: string;\r\n section_name?: string;\r\n title_position?: \"start\" | \"end\"\r\n title?:string,\r\n table_columns?:MRT_ColumnDef<MRT_RowData>[]\r\n table?:string\r\n module?:string\r\n field?:string\r\n is_country_code_separate?: boolean;\r\n country_code_field_name?: string;\r\n}\r\n\r\ninterface IMultiOption {\r\n value: string;\r\n label: string;\r\n is_checked: boolean;\r\n}\r\n\r\nexport interface IMultiOptionsProperty extends IProperty {\r\n options: IMultiOption[];\r\n display?: \"row\" | \"column\";\r\n}\r\n\r\nexport interface ISelectProperty {\r\n field_type: string;\r\n label: string;\r\n placeholder: string;\r\n default_value: string;\r\n is_required?: boolean;\r\n is_unique?: boolean;\r\n options: ISelectOption[];\r\n is_multiselect?: boolean;\r\n id?: string;\r\n section_id?: string;\r\n section_name?: string;\r\n}\r\n\r\nexport interface ISwitcherForms {\r\n value?: string;\r\n name: string;\r\n id: string | number | null;\r\n}\r\n\r\nexport interface ISectionProperty {\r\n field_type: string;\r\n label: string;\r\n is_accordion: boolean;\r\n id?: string;\r\n section_order?: string;\r\n section_id?: string;\r\n section_name?: string;\r\n section_type: \"Default\" | \"Form switcher section\";\r\n form_switcher_label?: string;\r\n form_switcher_name?: string;\r\n switcher_forms?: ISwitcherForms[];\r\n members: IProperty[] | ISelectProperty[];\r\n}\r\n\r\n\r\ninterface ISelectOption {\r\n text: string;\r\n value: string;\r\n}\r\n\r\nconst text: IProperty = {\r\n field_type: \"text\",\r\n label: \"label\",\r\n placeholder: \"Enter text\",\r\n default_value: \"\",\r\n min_length: 2,\r\n max_length: 30,\r\n is_multiline: false,\r\n is_required: true,\r\n is_unique: false,\r\n};\r\n\r\nconst number: IProperty = {\r\n field_type: \"number\",\r\n label: \"label\",\r\n placeholder: \"Enter number\",\r\n default_value: \"\",\r\n float_step: \"0.001\", // \"0.001\",\r\n min_length: 0,\r\n max_length: 1000,\r\n is_negative: false,\r\n is_required: true,\r\n is_unique: false,\r\n};\r\n\r\nconst email: IProperty = {\r\n field_type: \"email\",\r\n label: \"label\",\r\n placeholder: \"Enter email\",\r\n default_value: \"\",\r\n is_required: false,\r\n is_unique: false,\r\n};\r\n\r\nconst phone: IProperty = {\r\n field_type: \"phone\",\r\n label: \"label\",\r\n placeholder: \"Enter phone\",\r\n default_value: \"\",\r\n is_required: false,\r\n is_unique: false,\r\n};\r\n\r\nconst select: ISelectProperty = {\r\n field_type: \"select\",\r\n label: \"Select\",\r\n placeholder: \"Choose option\",\r\n default_value: \"\",\r\n options: [],\r\n is_multiselect: false,\r\n is_required: true,\r\n is_unique: false,\r\n};\r\n\r\nconst date: IProperty = {\r\n field_type: \"date\",\r\n label: \"label\",\r\n placeholder: \"Select Date\",\r\n default_value: \"\",\r\n is_future_dates_allowed: false,\r\n is_past_dates_allowed: false,\r\n is_required: false,\r\n is_unique: false,\r\n};\r\n\r\nconst time: IProperty = {\r\n field_type: \"time\",\r\n label: \"label\",\r\n placeholder: \"Select Time\",\r\n default_value: \"\",\r\n is_required: false,\r\n is_unique: false,\r\n option: \"12hr\",\r\n};\r\n\r\nconst url: IProperty = {\r\n field_type: \"url\",\r\n label: \"label\",\r\n placeholder: \"Enter URL\",\r\n default_value: \"\",\r\n is_required: false,\r\n is_unique: false,\r\n};\r\n\r\nconst currency: IProperty = {\r\n field_type: \"currency\",\r\n label: \"label\",\r\n placeholder: \"Enter Currency\",\r\n default_value: \"\",\r\n is_required: false,\r\n is_unique: false,\r\n option: \"inr\",\r\n};\r\n\r\nconst file: IProperty = {\r\n field_type: \"file\",\r\n label: \"label\",\r\n placeholder: \"Upload File or Media\",\r\n is_required: false,\r\n is_unique: false,\r\n max_size: 20,\r\n default_value: \"\",\r\n};\r\n\r\nconst image: IProperty = {\r\n field_type: \"image\",\r\n label: \"label\",\r\n placeholder: \"Upload Image\",\r\n is_required: false,\r\n is_unique: false,\r\n max_size: 20,\r\n default_value: \"\",\r\n};\r\n\r\nconst geoLocation: IProperty = {\r\n field_type: \"geoLocation\",\r\n label: \"label\",\r\n placeholder: \"Enter geo location\",\r\n default_value: \"\",\r\n is_required: false,\r\n is_unique: false,\r\n};\r\n\r\nconst section: ISectionProperty = {\r\n field_type: \"section\",\r\n label: \"section\",\r\n section_type: \"Default\",\r\n form_switcher_label: \"Form section\",\r\n form_switcher_name: \"\",\r\n switcher_forms: [{\r\n value: \"\",\r\n name: \"Form 1\",\r\n id: null,\r\n }],\r\n is_accordion: false,\r\n members: [],\r\n};\r\n\r\nconst info: IProperty = {\r\n field_type: \"info\",\r\n label: \"label\",\r\n placeholder: \"Add Label Text\",\r\n default_value: \"\",\r\n};\r\n\r\nconst relation: IProperty = {\r\n field_type: \"relation\",\r\n label: \"label\",\r\n placeholder: \"Add Label Text\",\r\n is_required: false,\r\n is_unique: false,\r\n module: \"\",\r\n field: \"\",\r\n default_value: \"\",\r\n};\r\n\r\nconst checkbox: IProperty = {\r\n field_type: \"checkbox\",\r\n label: \"label\",\r\n placeholder: \"Add Label Text\",\r\n is_required: false,\r\n is_checked: false,\r\n title_position:'end',\r\n title:\"Checkbox\"\r\n};\r\n\r\nconst toggleButton: IProperty = {\r\n field_type: \"toggleButton\",\r\n label: \"label\",\r\n placeholder: \"Add Label Text\",\r\n is_required: false,\r\n is_checked: false,\r\n title_position:'end',\r\n title:\"Toggle\"\r\n};\r\n\r\nconst table: IProperty = {\r\n field_type: \"table\",\r\n label: \"label\",\r\n placeholder: \"Add Label Text\",\r\n is_required: false,\r\n table_columns: [],\r\n table: \"custom\",\r\n};\r\nconst radioButton: IMultiOptionsProperty = {\r\n field_type: \"radioButton\",\r\n placeholder: \"\",\r\n label: \"label\",\r\n title: \"\",\r\n is_required: false,\r\n title_position:'end',\r\n options: [],\r\n display: \"row\",\r\n default_value: \"\",\r\n};\r\nconst tagsInput: IProperty = {\r\n field_type: \"tagsInput\",\r\n label: \"label\",\r\n placeholder: \"Enter tagsInput\",\r\n default_value: \"\",\r\n min_length: 2,\r\n max_length: 30,\r\n is_multiline: false,\r\n is_required: true,\r\n is_unique: false,\r\n};\r\n\r\nexport const element = {\r\n text,\r\n number,\r\n email,\r\n phone,\r\n select,\r\n date,\r\n time,\r\n url,\r\n currency,\r\n file,\r\n geoLocation,\r\n image,\r\n section,\r\n info,\r\n relation,\r\n checkbox,\r\n toggleButton,\r\n radioButton,\r\n table,\r\n tagsInput\r\n};\r\n"],"names":["text","field_type","label","placeholder","default_value","min_length","max_length","is_multiline","is_required","is_unique","number","float_step","is_negative","email","phone","select","options","is_multiselect","date","is_future_dates_allowed","is_past_dates_allowed","time","option","url","currency","file","max_size","geoLocation","image","section","section_type","form_switcher_label","form_switcher_name","switcher_forms","value","name","id","is_accordion","members","info","relation","module","field","checkbox","is_checked","title_position","title","toggleButton","radioButton","display","table","table_columns","tagsInput"],"mappings":"oFAqSuB,CACrBA,KAhNsB,CACtBC,WAAY,OACZC,MAAO,QACPC,YAAa,aACbC,cAAe,GACfC,WAAY,EACZC,WAAY,GACZC,cAAc,EACdC,aAAa,EACbC,WAAW,GAwMXC,OArMwB,CACxBT,WAAY,SACZC,MAAO,QACPC,YAAa,eACbC,cAAe,GACfO,WAAY,QACZN,WAAY,EACZC,WAAY,IACZM,aAAa,EACbJ,aAAa,EACbC,WAAW,GA4LXI,MAzLuB,CACvBZ,WAAY,QACZC,MAAO,QACPC,YAAa,cACbC,cAAe,GACfI,aAAa,EACbC,WAAW,GAoLXK,MAjLuB,CACvBb,WAAY,QACZC,MAAO,QACPC,YAAa,cAC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