@erpsquad/common 1.9.100 → 1.9.102
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/chunks/{actionCreator-C-u8gtV-.esm.js → actionCreator-CjSsYwQm.esm.js} +2 -2
- package/dist/chunks/{actionCreator-C-u8gtV-.esm.js.map → actionCreator-CjSsYwQm.esm.js.map} +1 -1
- package/dist/chunks/{actionCreator-DSrKE0hh.js → actionCreator-novDiRrd.js} +2 -2
- package/dist/chunks/{actionCreator-DSrKE0hh.js.map → actionCreator-novDiRrd.js.map} +1 -1
- package/dist/chunks/{android-12-switch-DvCF0gyx.js → android-12-switch-Bcf-RzRm.js} +19 -22
- package/dist/chunks/android-12-switch-Bcf-RzRm.js.map +1 -0
- package/dist/chunks/{android-12-switch-DSBIf4t0.esm.js → android-12-switch-Dbzvu641.esm.js} +19 -22
- package/dist/chunks/android-12-switch-Dbzvu641.esm.js.map +1 -0
- package/dist/chunks/{apiHelper-5tNsUtSY.js → apiHelper-CIXEuf0s.js} +8 -8
- package/dist/chunks/{apiHelper-5tNsUtSY.js.map → apiHelper-CIXEuf0s.js.map} +1 -1
- package/dist/chunks/{apiHelper-Cv_qWaYo.esm.js → apiHelper-CY2mZrgY.esm.js} +8 -8
- package/dist/chunks/{apiHelper-Cv_qWaYo.esm.js.map → apiHelper-CY2mZrgY.esm.js.map} +1 -1
- package/dist/chunks/{appbar-DM2iBqb4.esm.js → appbar-CaFbUa6l.esm.js} +4 -4
- package/dist/chunks/{appbar-DM2iBqb4.esm.js.map → appbar-CaFbUa6l.esm.js.map} +1 -1
- package/dist/chunks/{appbar-rfkAYQdQ.js → appbar-WHQ1KtaM.js} +4 -4
- package/dist/chunks/{appbar-rfkAYQdQ.js.map → appbar-WHQ1KtaM.js.map} +1 -1
- package/dist/chunks/{common-6VUrYJDq.js → common-B44ia3Yi.js} +8 -6
- package/dist/chunks/{common-6VUrYJDq.js.map → common-B44ia3Yi.js.map} +1 -1
- package/dist/chunks/{common-B6euWODJ.esm.js → common-DnqH0Hj9.esm.js} +8 -6
- package/dist/chunks/{common-B6euWODJ.esm.js.map → common-DnqH0Hj9.esm.js.map} +1 -1
- package/dist/chunks/{custom-editor-DIQqk_yI.js → custom-editor-B5GYMsNI.js} +2 -2
- package/dist/chunks/{custom-editor-DIQqk_yI.js.map → custom-editor-B5GYMsNI.js.map} +1 -1
- package/dist/chunks/{custom-editor-DnfTs5-j.esm.js → custom-editor-BvJ4V5NX.esm.js} +2 -2
- package/dist/chunks/{custom-editor-DnfTs5-j.esm.js.map → custom-editor-BvJ4V5NX.esm.js.map} +1 -1
- package/dist/chunks/{default-data-BV_r59U9.esm.js → default-data-DHzJYxJd.esm.js} +12 -12
- package/dist/chunks/{default-data-BV_r59U9.esm.js.map → default-data-DHzJYxJd.esm.js.map} +1 -1
- package/dist/chunks/{default-data-DQ7VPUoj.js → default-data-D_9bBs73.js} +12 -12
- package/dist/chunks/{default-data-DQ7VPUoj.js.map → default-data-D_9bBs73.js.map} +1 -1
- package/dist/chunks/{form-builder-conversion-D69EGO5g.js → form-builder-conversion-Bleq3jEU.js} +2 -2
- package/dist/chunks/{form-builder-conversion-D69EGO5g.js.map → form-builder-conversion-Bleq3jEU.js.map} +1 -1
- package/dist/chunks/{form-builder-conversion-BdWASNEo.esm.js → form-builder-conversion-CrIe3_br.esm.js} +2 -2
- package/dist/chunks/{form-builder-conversion-BdWASNEo.esm.js.map → form-builder-conversion-CrIe3_br.esm.js.map} +1 -1
- package/dist/chunks/{form-builder-deconversion-v5GvXDZ9.js → form-builder-deconversion-BI1F8ORy.js} +3 -3
- package/dist/chunks/{form-builder-deconversion-v5GvXDZ9.js.map → form-builder-deconversion-BI1F8ORy.js.map} +1 -1
- package/dist/chunks/{form-builder-deconversion-CUwBfP4C.esm.js → form-builder-deconversion-Bh2deF3f.esm.js} +3 -3
- package/dist/chunks/{form-builder-deconversion-CUwBfP4C.esm.js.map → form-builder-deconversion-Bh2deF3f.esm.js.map} +1 -1
- package/dist/chunks/{fullScreen-BO0UA3Zr.esm.js → fullScreen-BK_UUDX6.esm.js} +2 -2
- package/dist/chunks/{fullScreen-BO0UA3Zr.esm.js.map → fullScreen-BK_UUDX6.esm.js.map} +1 -1
- package/dist/chunks/{fullScreen-Bfrr-bT2.js → fullScreen-C8REfkA9.js} +2 -2
- package/dist/chunks/{fullScreen-Bfrr-bT2.js.map → fullScreen-C8REfkA9.js.map} +1 -1
- package/dist/chunks/{languageContext-DM_LTp53.esm.js → languageContext-D0Ap0DbZ.esm.js} +3 -3
- package/dist/chunks/{languageContext-DM_LTp53.esm.js.map → languageContext-D0Ap0DbZ.esm.js.map} +1 -1
- package/dist/chunks/{languageContext-BP7EvzMv.js → languageContext-Dg8g0Pq7.js} +3 -3
- package/dist/chunks/{languageContext-BP7EvzMv.js.map → languageContext-Dg8g0Pq7.js.map} +1 -1
- package/dist/chunks/{migration-utils-DwLXzWtr.js → migration-utils-5Q0pQbgD.js} +96 -15
- package/dist/chunks/migration-utils-5Q0pQbgD.js.map +1 -0
- package/dist/chunks/{migration-utils-D9TSOBR0.esm.js → migration-utils-CMshhRf4.esm.js} +96 -15
- package/dist/chunks/migration-utils-CMshhRf4.esm.js.map +1 -0
- package/dist/chunks/{page-context-B_wK6kLR.esm.js → page-context-Drfep0Fh.esm.js} +154 -57
- package/dist/chunks/page-context-Drfep0Fh.esm.js.map +1 -0
- package/dist/chunks/{page-context-h7LEMAG0.js → page-context-K2vcMqkj.js} +153 -56
- package/dist/chunks/page-context-K2vcMqkj.js.map +1 -0
- package/dist/chunks/{pathname.quotes-B-KBD2nK.js → pathname.quotes-B3uFEZQS.js} +8 -2
- package/dist/chunks/{pathname.quotes-B-KBD2nK.js.map → pathname.quotes-B3uFEZQS.js.map} +1 -1
- package/dist/chunks/{pathname.quotes-BJy0IzWu.esm.js → pathname.quotes-Y66LAPf2.esm.js} +8 -2
- package/dist/chunks/{pathname.quotes-BJy0IzWu.esm.js.map → pathname.quotes-Y66LAPf2.esm.js.map} +1 -1
- package/dist/chunks/{reducer-t-U331ho.js → reducer-BTy_jdMb.js} +2 -2
- package/dist/chunks/{reducer-t-U331ho.js.map → reducer-BTy_jdMb.js.map} +1 -1
- package/dist/chunks/{reducer-Bpuo5eq1.esm.js → reducer-DarukYh0.esm.js} +2 -2
- package/dist/chunks/{reducer-Bpuo5eq1.esm.js.map → reducer-DarukYh0.esm.js.map} +1 -1
- package/dist/chunks/{shareSlice-CbG_VJcW.esm.js → shareSlice-CCGKa88q.esm.js} +2 -2
- package/dist/chunks/{shareSlice-CbG_VJcW.esm.js.map → shareSlice-CCGKa88q.esm.js.map} +1 -1
- package/dist/chunks/{shareSlice-Br9IsR9k.js → shareSlice-CaBRyfAi.js} +2 -2
- package/dist/chunks/{shareSlice-Br9IsR9k.js.map → shareSlice-CaBRyfAi.js.map} +1 -1
- package/dist/chunks/{sidebar-C2zkLZyA.js → sidebar-DboEpz4W.js} +4 -4
- package/dist/chunks/{sidebar-C2zkLZyA.js.map → sidebar-DboEpz4W.js.map} +1 -1
- package/dist/chunks/{sidebar-l49eLo8p.esm.js → sidebar-DtJgFRug.esm.js} +4 -4
- package/dist/chunks/{sidebar-l49eLo8p.esm.js.map → sidebar-DtJgFRug.esm.js.map} +1 -1
- package/dist/chunks/{sidebarScreen-BQN2N8jx.esm.js → sidebarScreen-BCYK5xyQ.esm.js} +5 -5
- package/dist/chunks/{sidebarScreen-BQN2N8jx.esm.js.map → sidebarScreen-BCYK5xyQ.esm.js.map} +1 -1
- package/dist/chunks/{sidebarScreen-PoYXto7E.js → sidebarScreen-tp8cPTwO.js} +5 -5
- package/dist/chunks/{sidebarScreen-PoYXto7E.js.map → sidebarScreen-tp8cPTwO.js.map} +1 -1
- package/dist/chunks/{store-ksRZPIIc.esm.js → store-DRZ-wbSt.esm.js} +3 -3
- package/dist/chunks/{store-ksRZPIIc.esm.js.map → store-DRZ-wbSt.esm.js.map} +1 -1
- package/dist/chunks/{store-BdrUnJ3G.js → store-Q6kFhziM.js} +3 -3
- package/dist/chunks/{store-BdrUnJ3G.js.map → store-Q6kFhziM.js.map} +1 -1
- package/dist/chunks/{translations-1vp9srMj.js → translations-BCz80Y-9.js} +2 -2
- package/dist/chunks/{translations-1vp9srMj.js.map → translations-BCz80Y-9.js.map} +1 -1
- package/dist/chunks/{translations-B5t-KZNN.esm.js → translations-ssmbyeHN.esm.js} +2 -2
- package/dist/chunks/{translations-B5t-KZNN.esm.js.map → translations-ssmbyeHN.esm.js.map} +1 -1
- package/dist/chunks/{uom-field-wrapper-DT4aQVEz.esm.js → uom-field-wrapper-BAeN4mTi.esm.js} +60 -26
- package/dist/chunks/uom-field-wrapper-BAeN4mTi.esm.js.map +1 -0
- package/dist/chunks/{uom-field-wrapper-w7UsTsC3.js → uom-field-wrapper-punCkkwE.js} +60 -26
- package/dist/chunks/uom-field-wrapper-punCkkwE.js.map +1 -0
- package/dist/chunks/{useAccountSetting-D6Hhq1Pz.esm.js → useAccountSetting-4g8X18uo.esm.js} +3 -3
- package/dist/chunks/{useAccountSetting-D6Hhq1Pz.esm.js.map → useAccountSetting-4g8X18uo.esm.js.map} +1 -1
- package/dist/chunks/{useAccountSetting-ngzko7sX.js → useAccountSetting-BduCjYur.js} +3 -3
- package/dist/chunks/{useAccountSetting-ngzko7sX.js.map → useAccountSetting-BduCjYur.js.map} +1 -1
- package/dist/chunks/{useAuth-HvZ6U960.js → useAuth-2TSbZfmp.js} +4 -2
- package/dist/chunks/{useAuth-HvZ6U960.js.map → useAuth-2TSbZfmp.js.map} +1 -1
- package/dist/chunks/{useAuth-Tfx2guEJ.esm.js → useAuth-CcMMv5NJ.esm.js} +4 -2
- package/dist/chunks/{useAuth-Tfx2guEJ.esm.js.map → useAuth-CcMMv5NJ.esm.js.map} +1 -1
- package/dist/chunks/{useLangauge-BU_fP3ZM.esm.js → useLangauge-Dnbeinzg.esm.js} +2 -2
- package/dist/chunks/{useLangauge-BU_fP3ZM.esm.js.map → useLangauge-Dnbeinzg.esm.js.map} +1 -1
- package/dist/chunks/{useLangauge-DwsR1jcv.js → useLangauge-Sunn2sKU.js} +2 -2
- package/dist/chunks/{useLangauge-DwsR1jcv.js.map → useLangauge-Sunn2sKU.js.map} +1 -1
- package/dist/chunks/{useReduxIntegration-VgWJGErE.esm.js → useReduxIntegration-B4hfREdC.esm.js} +4 -4
- package/dist/chunks/{useReduxIntegration-VgWJGErE.esm.js.map → useReduxIntegration-B4hfREdC.esm.js.map} +1 -1
- package/dist/chunks/{useReduxIntegration-JMVTp0lq.js → useReduxIntegration-BWKTTD1b.js} +4 -4
- package/dist/chunks/{useReduxIntegration-JMVTp0lq.js.map → useReduxIntegration-BWKTTD1b.js.map} +1 -1
- package/dist/components/index.esm.js +9 -9
- package/dist/components/index.js +9 -9
- package/dist/components/protected-route.d.ts +1 -1
- package/dist/constants/index.esm.js +1 -1
- package/dist/constants/index.js +1 -1
- package/dist/constants/lang/en.d.ts +6 -0
- package/dist/constants/resource-lang.d.ts +6 -0
- package/dist/contexts/index.esm.js +3 -3
- package/dist/contexts/index.js +3 -3
- package/dist/hooks/index.esm.js +5 -5
- package/dist/hooks/index.js +5 -5
- package/dist/index.esm.js +25 -25
- package/dist/index.js +25 -25
- package/dist/layout/index.esm.js +2 -2
- package/dist/layout/index.js +2 -2
- package/dist/redux/index.esm.js +4 -4
- package/dist/redux/index.js +4 -4
- package/dist/src/components/protected-route.d.ts +1 -1
- package/dist/src/constants/lang/en.d.ts +6 -0
- package/dist/src/constants/resource-lang.d.ts +6 -0
- package/dist/src/utils/format-permissions.d.ts +23 -0
- package/dist/src/utils/format-permissions_old.d.ts +11 -0
- package/dist/src/utils/menu-filter.d.ts +4 -2
- package/dist/utils/format-permissions.d.ts +23 -0
- package/dist/utils/format-permissions_old.d.ts +11 -0
- package/dist/utils/index.esm.js +7 -7
- package/dist/utils/index.js +6 -6
- package/dist/utils/menu-filter.d.ts +4 -2
- package/dist/views/index.esm.js +8 -8
- package/dist/views/index.js +7 -7
- package/package.json +1 -1
- package/dist/chunks/android-12-switch-DSBIf4t0.esm.js.map +0 -1
- package/dist/chunks/android-12-switch-DvCF0gyx.js.map +0 -1
- package/dist/chunks/migration-utils-D9TSOBR0.esm.js.map +0 -1
- package/dist/chunks/migration-utils-DwLXzWtr.js.map +0 -1
- package/dist/chunks/page-context-B_wK6kLR.esm.js.map +0 -1
- package/dist/chunks/page-context-h7LEMAG0.js.map +0 -1
- package/dist/chunks/uom-field-wrapper-DT4aQVEz.esm.js.map +0 -1
- package/dist/chunks/uom-field-wrapper-w7UsTsC3.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as jsxRuntimeExports } from "./jsx-runtime-ClFauRgV.esm.js";
|
|
2
2
|
import { useFieldArray, Controller, useForm, useFormContext } from "react-hook-form";
|
|
3
3
|
import { P as PropTypes, e as _objectWithoutPropertiesLoose, _ as _extends$1, g as generateUtilityClass, j as capitalize, u as useDefaultProps, k as interopRequireDefaultExports, w as lighten_1, x as darken_1, f as alpha_1 } from "./identifier-u4E_J1of.esm.js";
|
|
4
|
-
import { i as default_1$3, T as Typography, e as useForkRef, o as ownerWindow, d as useEnhancedEffect, h as debounce, p as isMuiElement, u as useAuth, q as useControlled, r as requireCreateSvgIcon } from "./useAuth-
|
|
5
|
-
import { an as default_1$4, w as DynamicSelect, i as DateTimePicker, D as DatePicker$1, ao as useThemeProps, A as Accordion$1, C as Checkbox$1, g as ChipOrPlaceholder$1, j as DropdownButton, ad as TitleDropdownButton, T as HeaderCard, ab as TabBar, ap as default_1$5, a6 as SearchableSelect, aq as Chip$1, ac as TimePicker, ah as UploadMedia, a3 as PhoneInput, Z as ModalLoader, Y as MaterialTable, u as DynamicSearchSelect, n as DynamicDate, z as DynamicTime, f as ChipGenerator, l as DynamicCheckBox, M as Footer, F as Fallback, ar as TabContext, as as TabList, at as Tab, au as TabPanel, av as default_1$9, a as ActionBar, aw as SwitchBase } from "./android-12-switch-
|
|
6
|
-
import { D as DynamicInput, E as Typography$1, b as Avatar, G as o, M as Modal, c as Select, B as Button, C as ConfirmPopUp, f as Box$1, d as Toast, u as useTheme$1, S as SearchBar, I as resolveComponentProps, J as mergeSlotProps, K as appendOwnerState, P as Paper$1, o as chainPropTypes, h as ButtonBase$1, y as default_1$6, T as TextField$1, e as Tooltip$1, F as default_1$7, x as default_1$8, N as Menu$2, O as MenuItem$1, Q as IconButton$1, q as useRtl, z as List$1, v as ListItem, U as ListItemText$1, V as refType } from "./appbar-
|
|
4
|
+
import { i as default_1$3, T as Typography, e as useForkRef, o as ownerWindow, d as useEnhancedEffect, h as debounce, p as isMuiElement, u as useAuth, q as useControlled, r as requireCreateSvgIcon } from "./useAuth-CcMMv5NJ.esm.js";
|
|
5
|
+
import { an as default_1$4, w as DynamicSelect, i as DateTimePicker, D as DatePicker$1, ao as useThemeProps, A as Accordion$1, C as Checkbox$1, g as ChipOrPlaceholder$1, j as DropdownButton, ad as TitleDropdownButton, T as HeaderCard, ab as TabBar, ap as default_1$5, a6 as SearchableSelect, aq as Chip$1, ac as TimePicker, ah as UploadMedia, a3 as PhoneInput, Z as ModalLoader, Y as MaterialTable, u as DynamicSearchSelect, n as DynamicDate, z as DynamicTime, f as ChipGenerator, l as DynamicCheckBox, M as Footer, F as Fallback, ar as TabContext, as as TabList, at as Tab, au as TabPanel, av as default_1$9, a as ActionBar, aw as SwitchBase } from "./android-12-switch-Dbzvu641.esm.js";
|
|
6
|
+
import { D as DynamicInput, E as Typography$1, b as Avatar, G as o, M as Modal, c as Select, B as Button, C as ConfirmPopUp, f as Box$1, d as Toast, u as useTheme$1, S as SearchBar, I as resolveComponentProps, J as mergeSlotProps, K as appendOwnerState, P as Paper$1, o as chainPropTypes, h as ButtonBase$1, y as default_1$6, T as TextField$1, e as Tooltip$1, F as default_1$7, x as default_1$8, N as Menu$2, O as MenuItem$1, Q as IconButton$1, q as useRtl, z as List$1, v as ListItem, U as ListItemText$1, V as refType } from "./appbar-CaFbUa6l.esm.js";
|
|
7
7
|
import * as React from "react";
|
|
8
8
|
import React__default, { useState, lazy, useMemo, useRef, useEffect, useCallback, useContext, createElement, useLayoutEffect, createContext, cloneElement } from "react";
|
|
9
9
|
import DatePicker from "react-datepicker";
|
|
@@ -11,21 +11,21 @@ import DatePicker from "react-datepicker";
|
|
|
11
11
|
import { C as CalenderIcon, i as images } from "./images-BY6aQF32.esm.js";
|
|
12
12
|
import { KeyboardArrowLeft, KeyboardArrowRight, Close, ChevronLeft, ChevronRight, Add, AccessTimeRounded, KeyboardArrowUp, KeyboardArrowDown, Clear } from "@mui/icons-material";
|
|
13
13
|
import { Box, styled as styled$1, TextField, DialogTitle, IconButton, DialogContent, MenuItem, DialogActions, CircularProgress, FormControlLabel, Checkbox as Checkbox$2, ButtonBase, useTheme, useMediaQuery, Drawer, Grid, Tooltip, Collapse, Divider, ButtonGroup, Button as Button$1, Popper, Grow, Paper, ClickAwayListener, Menu as Menu$1, ListItemIcon, ListItemText, OutlinedInput, InputAdornment, Dialog, FormHelperText, Card as Card$1, CardContent as CardContent$1, TableRow, TableCell, TableContainer, Table, TableHead, TableBody } from "@mui/material";
|
|
14
|
-
import { u as useLanguage } from "./useLangauge-
|
|
14
|
+
import { u as useLanguage } from "./useLangauge-Dnbeinzg.esm.js";
|
|
15
15
|
import dayjs from "dayjs";
|
|
16
16
|
/* empty css */
|
|
17
|
-
import { aU as formatText, ar as getToken, W as formatLabel, a1 as generateFields, G as fetchRentalResponseItems, H as fetchRfqItemsByIdForResponse, a8 as getErrorMessage, aI as responseItemDetailsColumns, _ as formatTimeForPayload, R as formatDateForPayload, ay as mapApiPayload, Q as formatDate, r as createdOnAndBy, aO as toFixedWithNumbers } from "./common-
|
|
17
|
+
import { aU as formatText, ar as getToken, W as formatLabel, a1 as generateFields, G as fetchRentalResponseItems, H as fetchRfqItemsByIdForResponse, a8 as getErrorMessage, aI as responseItemDetailsColumns, _ as formatTimeForPayload, R as formatDateForPayload, ay as mapApiPayload, Q as formatDate, r as createdOnAndBy, aO as toFixedWithNumbers } from "./common-DnqH0Hj9.esm.js";
|
|
18
18
|
import { useTranslation } from "react-i18next";
|
|
19
19
|
import { g as generateUtilityClasses, a as clsx, b as composeClasses, s as styled, f as reactIsExports, c as createSvgIcon, r as rootShouldForwardProp } from "./notification-Dr_nE2Dc.esm.js";
|
|
20
20
|
import { AlertTriangle, Clock, TrendingUp, Sparkles, ChevronDown, Check, Copy, ChevronUp } from "lucide-react";
|
|
21
21
|
import * as d3 from "d3";
|
|
22
22
|
import * as Yup from "yup";
|
|
23
|
-
import { C as Chip, M as Menu, t as transformTableColumns, b as formateValueByType, r as renderEmptyRowsFallback } from "./form-builder-deconversion-
|
|
23
|
+
import { C as Chip, M as Menu, t as transformTableColumns, b as formateValueByType, r as renderEmptyRowsFallback } from "./form-builder-deconversion-Bh2deF3f.esm.js";
|
|
24
24
|
import { M as MoreIcon, s as Filter, e as Close$1, b as ArrowUpDown, q as RecgtangleIcon, C as CheckBoxIcon$1, T as Trash, h as Export, r as Calendar$1, E as Edit } from "./trash-jodcm4T5.esm.js";
|
|
25
25
|
import { bc as getV1User, bd as getV1ReportsScheduleReport, M as getV1ReportsReportList, be as deleteV1ReportsScheduleReportId, bf as putV1ReportsUpdateScheduleReportId, bg as postV1ReportsScheduleReport, x as getV1FormBuilder } from "./api-BAbF3OU7.esm.js";
|
|
26
26
|
import { enqueueSnackbar, SnackbarProvider, useSnackbar } from "notistack";
|
|
27
27
|
import { useDispatch } from "react-redux";
|
|
28
|
-
import { a as apiHelper, c as useGenericDataFetcher, b as useAppTranslations } from "./apiHelper-
|
|
28
|
+
import { a as apiHelper, c as useGenericDataFetcher, b as useAppTranslations } from "./apiHelper-CY2mZrgY.esm.js";
|
|
29
29
|
import Board from "@asseinfo/react-kanban";
|
|
30
30
|
import { c as calculateEntries, g as getEntityId, R as RANGE, a as handleCompareDateRangeSync, h as handleCompareDateRange } from "./navigation-utils-DvSBvB6q.esm.js";
|
|
31
31
|
import FullCalendar from "@fullcalendar/react";
|
|
@@ -39,22 +39,22 @@ import resourceTimelinePlugin from "@fullcalendar/resource-timeline";
|
|
|
39
39
|
import { E as Eye, a as EyeOff, A as ArrowDown } from "./tick-CRp4S9uN.esm.js";
|
|
40
40
|
import ReactFlagsSelect from "react-flags-select";
|
|
41
41
|
import { useParams, useLocation, useNavigate, Navigate } from "react-router-dom";
|
|
42
|
-
import { E as ErpLoader } from "./page-context-
|
|
42
|
+
import { E as ErpLoader } from "./page-context-Drfep0Fh.esm.js";
|
|
43
43
|
import { Gantt, ViewMode } from "gantt-task-react";
|
|
44
44
|
import { DateRange, Calendar } from "react-date-range";
|
|
45
45
|
import { v as viewTypes } from "./action-bar-BsXTcYpL.esm.js";
|
|
46
46
|
import DataEditor, { GridCellKind } from "@glideapps/glide-data-grid";
|
|
47
47
|
import { useExtraCells } from "@glideapps/glide-data-grid-cells";
|
|
48
48
|
import { createPortal } from "react-dom";
|
|
49
|
-
import { C as Collapse$1 } from "./sidebar-
|
|
49
|
+
import { C as Collapse$1 } from "./sidebar-DtJgFRug.esm.js";
|
|
50
50
|
import { useMaterialReactTable, MaterialReactTable } from "material-react-table";
|
|
51
51
|
import _$1 from "lodash";
|
|
52
|
-
import { f as usePages, b as useDeepMemo, g as usePermissions, a as useApi } from "./useAccountSetting-
|
|
52
|
+
import { f as usePages, b as useDeepMemo, g as usePermissions, a as useApi } from "./useAccountSetting-4g8X18uo.esm.js";
|
|
53
53
|
import { P as PathnameDocument } from "./modules-D5_hDIg9.esm.js";
|
|
54
54
|
import { f as PathnameRental, b as PathnameCrm, e as PathnamePurchase, d as PathnameManufacturing, c as PathnameInventory, a as PathnameAccounting } from "./pathname.rental-VYOFVGX6.esm.js";
|
|
55
55
|
import { a as PathnameUsers } from "./pathname.hrms-C5ojsho0.esm.js";
|
|
56
56
|
import { u as useAppDispatch, a as useAppSelector } from "./hooks-Cj9Yhy-E.esm.js";
|
|
57
|
-
import { f as fetchCompanies } from "./store-
|
|
57
|
+
import { f as fetchCompanies } from "./store-DRZ-wbSt.esm.js";
|
|
58
58
|
import { useDropzone } from "react-dropzone";
|
|
59
59
|
import { a as auth, g as getApiConfig } from "./api-config-GOys-syK.esm.js";
|
|
60
60
|
/* empty css */
|
|
@@ -910,7 +910,7 @@ DynamicDateTime.propTypes = {
|
|
|
910
910
|
min_date: PropTypes.any,
|
|
911
911
|
max_date: PropTypes.any
|
|
912
912
|
};
|
|
913
|
-
const CustomEditor = lazy(() => import("./custom-editor-
|
|
913
|
+
const CustomEditor = lazy(() => import("./custom-editor-BvJ4V5NX.esm.js"));
|
|
914
914
|
const DyanmicTextEditor = ({
|
|
915
915
|
formControl,
|
|
916
916
|
name,
|
|
@@ -7289,6 +7289,8 @@ const InlineEditFields = ({
|
|
|
7289
7289
|
syncFieldValue
|
|
7290
7290
|
}) => {
|
|
7291
7291
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
7292
|
+
console.log("🚀 ~ InlineEditFields ~ row:", row);
|
|
7293
|
+
console.log("🚀 ~ InlineEditFields ~ col:", col);
|
|
7292
7294
|
const [inputValue, setInputValue] = useState();
|
|
7293
7295
|
const [isInitialSet, setIsInitialSet] = useState(false);
|
|
7294
7296
|
const customFilter = useRef(null);
|
|
@@ -7410,14 +7412,15 @@ const InlineEditFields = ({
|
|
|
7410
7412
|
const editFields = Object.keys(row._valuesCache || {});
|
|
7411
7413
|
const dValues = {};
|
|
7412
7414
|
row.getAllCells().forEach((cell) => {
|
|
7413
|
-
var _a2, _b2, _c2;
|
|
7415
|
+
var _a2, _b2, _c2, _d2;
|
|
7414
7416
|
if (((_a2 = cell.column.columnDef) == null ? void 0 : _a2.enableEditing) === void 0 || ((_b2 = cell.column.columnDef) == null ? void 0 : _b2.enableEditing) === true) {
|
|
7415
7417
|
const { is_multiple, valueKey: valueKey2 } = ((_c2 = cell.column.columnDef) == null ? void 0 : _c2.editProperties) || {};
|
|
7418
|
+
const cellEditVariant = (_d2 = cell.column.columnDef) == null ? void 0 : _d2.editVariant;
|
|
7416
7419
|
if (editFields.includes(cell.column.id)) {
|
|
7417
7420
|
const vl = _$1.get(row.original, valueKey2);
|
|
7418
|
-
if (
|
|
7421
|
+
if (cellEditVariant === "select" && is_multiple) {
|
|
7419
7422
|
dValues[cell.column.id] = vl ? Array.isArray(vl) ? vl : [vl] : [];
|
|
7420
|
-
} else if (
|
|
7423
|
+
} else if (cellEditVariant === "date" || cellEditVariant === "date_time" || cellEditVariant === "time") {
|
|
7421
7424
|
dValues[cell.column.id] = vl ? dayjs(vl).isValid() ? dayjs(vl) : void 0 : dayjs(row.original[cell.column.id]).isValid() ? dayjs(row.original[cell.column.id]) : void 0;
|
|
7422
7425
|
} else {
|
|
7423
7426
|
dValues[cell.column.id] = _$1.get(
|
|
@@ -7672,6 +7675,7 @@ const MaterialEditableTable = React__default.memo(({
|
|
|
7672
7675
|
// onUpdate,
|
|
7673
7676
|
...rest
|
|
7674
7677
|
}) => {
|
|
7678
|
+
console.log("rest..................", rest);
|
|
7675
7679
|
const { t } = useTranslation();
|
|
7676
7680
|
const { formData = null, updatePageInfo, activePage: aPage } = usePages();
|
|
7677
7681
|
const activePage = useDeepMemo(aPage);
|
|
@@ -8069,17 +8073,18 @@ const MaterialEditableTable = React__default.memo(({
|
|
|
8069
8073
|
if (!ctx) return 50;
|
|
8070
8074
|
return ctx.measureText(text).width + 5;
|
|
8071
8075
|
};
|
|
8072
|
-
const extractValidationErrors = (err) => err.inner.reduce((acc, { path: path2, message }) => {
|
|
8073
|
-
if (path2) acc[path2] = message;
|
|
8074
|
-
return acc;
|
|
8075
|
-
}, {});
|
|
8076
8076
|
const handleSaveRow = useCallback(
|
|
8077
8077
|
async ({ row: row2, values, table: table2 }, mode) => {
|
|
8078
8078
|
const isEditMode = mode === "edit";
|
|
8079
8079
|
const setLoadingState = isEditMode ? setIsEditingRow : setIsCreatingRow;
|
|
8080
|
+
const rowId = row2.id;
|
|
8080
8081
|
try {
|
|
8081
8082
|
await validationSchema2.validate(values, { abortEarly: false });
|
|
8082
|
-
setValidationErrors({
|
|
8083
|
+
setValidationErrors((prev) => {
|
|
8084
|
+
const next = { ...prev };
|
|
8085
|
+
delete next[rowId];
|
|
8086
|
+
return next;
|
|
8087
|
+
});
|
|
8083
8088
|
setLoadingState(true);
|
|
8084
8089
|
setDisableNextEdit(false);
|
|
8085
8090
|
const cells = row2.getAllCells().map((c) => c.column.columnDef);
|
|
@@ -8094,7 +8099,11 @@ const MaterialEditableTable = React__default.memo(({
|
|
|
8094
8099
|
}
|
|
8095
8100
|
} catch (err) {
|
|
8096
8101
|
if (err instanceof Yup.ValidationError) {
|
|
8097
|
-
|
|
8102
|
+
const fieldErrors = err.inner.reduce((acc, { path: path2, message }) => {
|
|
8103
|
+
if (path2) acc[path2] = message;
|
|
8104
|
+
return acc;
|
|
8105
|
+
}, {});
|
|
8106
|
+
setValidationErrors((prev) => ({ ...prev, [rowId]: fieldErrors }));
|
|
8098
8107
|
} else {
|
|
8099
8108
|
enqueueSnackbar(
|
|
8100
8109
|
err instanceof Error ? err.message : "Something went wrong",
|
|
@@ -8212,9 +8221,9 @@ const MaterialEditableTable = React__default.memo(({
|
|
|
8212
8221
|
row: row2,
|
|
8213
8222
|
table: table2,
|
|
8214
8223
|
callback: (s) => console.log("Save", s),
|
|
8215
|
-
errors: validationErrors,
|
|
8224
|
+
errors: validationErrors[row2.id] ?? {},
|
|
8216
8225
|
validationSchema: validationSchema2,
|
|
8217
|
-
setValidationErrors,
|
|
8226
|
+
setValidationErrors: (errors) => setValidationErrors((prev) => ({ ...prev, [row2.id]: errors })),
|
|
8218
8227
|
onChangeRowField,
|
|
8219
8228
|
getSelectedData: (name, row3) => getSelectedData == null ? void 0 : getSelectedData(name, row3),
|
|
8220
8229
|
syncFieldValue
|
|
@@ -8530,9 +8539,33 @@ const MaterialEditableTable = React__default.memo(({
|
|
|
8530
8539
|
const editingRowId = ((_b = (_a = table2.getState()) == null ? void 0 : _a.editingRow) == null ? void 0 : _b.id) || ((_d = (_c = table2.getState()) == null ? void 0 : _c.creatingRow) == null ? void 0 : _d.id) || null;
|
|
8531
8540
|
const isCurrentlyEditing = editingRowId === row2.id;
|
|
8532
8541
|
if (editingRowId && editingRowId !== row2.id) {
|
|
8542
|
+
const currentEditingRow = table2.getState().editingRow;
|
|
8543
|
+
const currentCreatingRow = table2.getState().creatingRow;
|
|
8544
|
+
(async () => {
|
|
8545
|
+
let saveSucceeded = false;
|
|
8546
|
+
if (currentCreatingRow) {
|
|
8547
|
+
const values = getRowValues(currentCreatingRow);
|
|
8548
|
+
const isValid = await validate(values);
|
|
8549
|
+
if (!isValid) return;
|
|
8550
|
+
await handleSaveRow({ row: currentCreatingRow, values, table: table2 }, "create");
|
|
8551
|
+
clearRow("mrt-row-create");
|
|
8552
|
+
saveSucceeded = true;
|
|
8553
|
+
} else if (currentEditingRow) {
|
|
8554
|
+
const values = getRowValues(currentEditingRow);
|
|
8555
|
+
const isValid = await validate(values);
|
|
8556
|
+
if (!isValid) return;
|
|
8557
|
+
await handleSaveRow({ row: currentEditingRow, values, table: table2 }, "edit");
|
|
8558
|
+
clearRow(currentEditingRow.id);
|
|
8559
|
+
saveSucceeded = true;
|
|
8560
|
+
}
|
|
8561
|
+
if (saveSucceeded) {
|
|
8562
|
+
table2.setEditingRow(row2);
|
|
8563
|
+
setDisableNextEdit(true);
|
|
8564
|
+
}
|
|
8565
|
+
})();
|
|
8533
8566
|
return;
|
|
8534
8567
|
}
|
|
8535
|
-
if (!
|
|
8568
|
+
if (!isCurrentlyEditing && !editingRowId) {
|
|
8536
8569
|
table2.setEditingRow(row2);
|
|
8537
8570
|
setDisableNextEdit(true);
|
|
8538
8571
|
}
|
|
@@ -15804,7 +15837,8 @@ const useUomFieldUpdater = ({
|
|
|
15804
15837
|
if (location_quantity) {
|
|
15805
15838
|
switch (sourceKey) {
|
|
15806
15839
|
case "total_on_hand_quantity":
|
|
15807
|
-
|
|
15840
|
+
const totalOnHand = location_quantity.total_available_quantity - location_quantity.total_reserved_quantity;
|
|
15841
|
+
convertedValue = totalOnHand > 0 ? totalOnHand / factor : 0;
|
|
15808
15842
|
break;
|
|
15809
15843
|
case "total_available_quantity":
|
|
15810
15844
|
convertedValue = location_quantity.total_available_quantity / factor;
|
|
@@ -15975,4 +16009,4 @@ export {
|
|
|
15975
16009
|
DynamicDateTime as y,
|
|
15976
16010
|
DynamicLayoutWrapper as z
|
|
15977
16011
|
};
|
|
15978
|
-
//# sourceMappingURL=uom-field-wrapper-
|
|
16012
|
+
//# sourceMappingURL=uom-field-wrapper-BAeN4mTi.esm.js.map
|