@erpsquad/common 1.10.62 → 1.10.64
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/{ERPUIProvider-B65sZuMF.js → ERPUIProvider-B_cYjAdF.js} +5 -5
- package/dist/chunks/{ERPUIProvider-B65sZuMF.js.map → ERPUIProvider-B_cYjAdF.js.map} +1 -1
- package/dist/chunks/{ERPUIProvider-BH-tnUqi.esm.js → ERPUIProvider-DtSGxSro.esm.js} +5 -5
- package/dist/chunks/{ERPUIProvider-BH-tnUqi.esm.js.map → ERPUIProvider-DtSGxSro.esm.js.map} +1 -1
- package/dist/chunks/{android-12-switch-CQYha0mS.js → android-12-switch-CQqq1bod.js} +20 -13
- package/dist/chunks/{android-12-switch-CQYha0mS.js.map → android-12-switch-CQqq1bod.js.map} +1 -1
- package/dist/chunks/{android-12-switch-DRyqP4uj.esm.js → android-12-switch-DMpKRS49.esm.js} +20 -13
- package/dist/chunks/{android-12-switch-DRyqP4uj.esm.js.map → android-12-switch-DMpKRS49.esm.js.map} +1 -1
- package/dist/chunks/{appbar-0cYh_6R9.esm.js → appbar-BPTUcuZH.esm.js} +3 -3
- package/dist/chunks/appbar-BPTUcuZH.esm.js.map +1 -0
- package/dist/chunks/{appbar-C1Pi13kq.js → appbar-GvhMl2LR.js} +3 -3
- package/dist/chunks/appbar-GvhMl2LR.js.map +1 -0
- package/dist/chunks/{checkbox-zzOg8Dgo.esm.js → checkbox-BG9DbVQ5.esm.js} +2 -2
- package/dist/chunks/{checkbox-zzOg8Dgo.esm.js.map → checkbox-BG9DbVQ5.esm.js.map} +1 -1
- package/dist/chunks/{checkbox-BDWa2DMV.js → checkbox-CS7OvJZk.js} +2 -2
- package/dist/chunks/{checkbox-BDWa2DMV.js.map → checkbox-CS7OvJZk.js.map} +1 -1
- package/dist/chunks/{default-data-BLCvLPNA.js → default-data-C3gd1olF.js} +11 -11
- package/dist/chunks/{default-data-BLCvLPNA.js.map → default-data-C3gd1olF.js.map} +1 -1
- package/dist/chunks/{default-data-DLgo7sgM.esm.js → default-data-c7qJW0S-.esm.js} +11 -11
- package/dist/chunks/{default-data-DLgo7sgM.esm.js.map → default-data-c7qJW0S-.esm.js.map} +1 -1
- package/dist/chunks/{form-builder-deconversion-B7Ico4Wt.js → form-builder-deconversion-CtfddwVS.js} +2 -2
- package/dist/chunks/form-builder-deconversion-CtfddwVS.js.map +1 -0
- package/dist/chunks/{form-builder-deconversion-CUr6uDVY.esm.js → form-builder-deconversion-DNCtkxQC.esm.js} +2 -2
- package/dist/chunks/form-builder-deconversion-DNCtkxQC.esm.js.map +1 -0
- package/dist/chunks/{fullScreen-DU59FZfe.js → fullScreen-BvWfY0hb.js} +2 -2
- package/dist/chunks/{fullScreen-DU59FZfe.js.map → fullScreen-BvWfY0hb.js.map} +1 -1
- package/dist/chunks/{fullScreen-BpbK_CR1.esm.js → fullScreen-CEK_HZnP.esm.js} +2 -2
- package/dist/chunks/{fullScreen-BpbK_CR1.esm.js.map → fullScreen-CEK_HZnP.esm.js.map} +1 -1
- package/dist/chunks/{page-context-CTlzsb94.esm.js → page-context-BR0JEfCp.esm.js} +2 -2
- package/dist/chunks/{page-context-CTlzsb94.esm.js.map → page-context-BR0JEfCp.esm.js.map} +1 -1
- package/dist/chunks/{page-context-Bnkk7gz-.js → page-context-D32zeXhS.js} +2 -2
- package/dist/chunks/{page-context-Bnkk7gz-.js.map → page-context-D32zeXhS.js.map} +1 -1
- package/dist/chunks/{reducer-CEIlU0Ko.esm.js → reducer-BTCTEHl_.esm.js} +2 -2
- package/dist/chunks/{reducer-CEIlU0Ko.esm.js.map → reducer-BTCTEHl_.esm.js.map} +1 -1
- package/dist/chunks/{reducer-DDNHc1q8.js → reducer-DznW4Uhk.js} +2 -2
- package/dist/chunks/{reducer-DDNHc1q8.js.map → reducer-DznW4Uhk.js.map} +1 -1
- package/dist/chunks/{sidebar-yJv2LAZU.js → sidebar-C3G058lH.js} +2 -2
- package/dist/chunks/{sidebar-yJv2LAZU.js.map → sidebar-C3G058lH.js.map} +1 -1
- package/dist/chunks/{sidebar-D3AUBRmN.esm.js → sidebar-PQ4JubXM.esm.js} +2 -2
- package/dist/chunks/{sidebar-D3AUBRmN.esm.js.map → sidebar-PQ4JubXM.esm.js.map} +1 -1
- package/dist/chunks/{sidebarScreen-Dh-VP79s.esm.js → sidebarScreen-DC7R30eg.esm.js} +3 -3
- package/dist/chunks/{sidebarScreen-Dh-VP79s.esm.js.map → sidebarScreen-DC7R30eg.esm.js.map} +1 -1
- package/dist/chunks/{sidebarScreen-DiP3hqYZ.js → sidebarScreen-fIj--OhC.js} +3 -3
- package/dist/chunks/{sidebarScreen-DiP3hqYZ.js.map → sidebarScreen-fIj--OhC.js.map} +1 -1
- package/dist/chunks/{store-4PjkVqCL.js → store-BlcYtLUe.js} +2 -2
- package/dist/chunks/{store-4PjkVqCL.js.map → store-BlcYtLUe.js.map} +1 -1
- package/dist/chunks/{store-0dCHFFVS.esm.js → store-Djcai2P1.esm.js} +2 -2
- package/dist/chunks/{store-0dCHFFVS.esm.js.map → store-Djcai2P1.esm.js.map} +1 -1
- package/dist/chunks/{translations-Bizr6l39.esm.js → translations-Df5Mt7kz.esm.js} +4 -4
- package/dist/chunks/{translations-Bizr6l39.esm.js.map → translations-Df5Mt7kz.esm.js.map} +1 -1
- package/dist/chunks/{translations-BaWBvdnE.js → translations-DoAAs3Sh.js} +4 -4
- package/dist/chunks/{translations-BaWBvdnE.js.map → translations-DoAAs3Sh.js.map} +1 -1
- package/dist/chunks/{uom-field-wrapper-BUSdiyqz.js → uom-field-wrapper-BMejbao3.js} +18 -18
- package/dist/chunks/uom-field-wrapper-BMejbao3.js.map +1 -0
- package/dist/chunks/{uom-field-wrapper-CPF4H-zp.esm.js → uom-field-wrapper-BlJaV_Jd.esm.js} +18 -18
- package/dist/chunks/uom-field-wrapper-BlJaV_Jd.esm.js.map +1 -0
- package/dist/chunks/{useAddressContact-s74WyzbC.esm.js → useAddressContact-Dm7nV19E.esm.js} +4 -4
- package/dist/chunks/{useAddressContact-s74WyzbC.esm.js.map → useAddressContact-Dm7nV19E.esm.js.map} +1 -1
- package/dist/chunks/{useAddressContact-Bvtr3Tqr.js → useAddressContact-omyt5axK.js} +4 -4
- package/dist/chunks/{useAddressContact-Bvtr3Tqr.js.map → useAddressContact-omyt5axK.js.map} +1 -1
- package/dist/components/index.esm.js +8 -8
- package/dist/components/index.js +8 -8
- package/dist/contexts/index.esm.js +1 -1
- package/dist/contexts/index.js +1 -1
- package/dist/hooks/index.esm.js +3 -3
- package/dist/hooks/index.js +3 -3
- package/dist/index.esm.js +15 -15
- package/dist/index.js +15 -15
- package/dist/layout/index.esm.js +2 -2
- package/dist/layout/index.js +2 -2
- package/dist/redux/index.esm.js +2 -2
- package/dist/redux/index.js +2 -2
- package/dist/utils/index.esm.js +2 -2
- package/dist/utils/index.js +2 -2
- package/dist/views/index.esm.js +6 -6
- package/dist/views/index.js +5 -5
- package/package.json +1 -1
- package/dist/chunks/appbar-0cYh_6R9.esm.js.map +0 -1
- package/dist/chunks/appbar-C1Pi13kq.js.map +0 -1
- package/dist/chunks/form-builder-deconversion-B7Ico4Wt.js.map +0 -1
- package/dist/chunks/form-builder-deconversion-CUr6uDVY.esm.js.map +0 -1
- package/dist/chunks/uom-field-wrapper-BUSdiyqz.js.map +0 -1
- package/dist/chunks/uom-field-wrapper-CPF4H-zp.esm.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as jsxRuntimeExports } from "./jsx-runtime-ClFauRgV.esm.js";
|
|
2
2
|
import { A as internal_processStyles, e as _objectWithoutPropertiesLoose, x as styled$1, _ as _extends, j as capitalize, b as createTheme, o as isPlainObject, i as internal_serializeStyles, v as styleFunctionSx, B as resolveProps, D as formatMuiErrorMessage, E as clamp, P as PropTypes, F as handleBreakpoints, H as resolveBreakpointValues, I as createUnarySpacing, n as deepmerge, J as mergeBreakpointsInOrder, g as generateUtilityClass, K as getValue, d as defaultTheme$1, T as THEME_ID, k as interopRequireDefaultExports, l as getDefaultExportFromCjs, L as commonjsGlobal, u as useDefaultProps, f as alpha_1, y as lighten_1, z as darken_1 } from "./identifier-0SZUhw_A.esm.js";
|
|
3
|
-
import { y as default_1$a, B as Button$1, M as Modal, S as SearchBar, E as Typography$1, _ as _inheritsLoose, V as forceReflow, i as Transition, W as classNamesShape, h as ButtonBase, o as chainPropTypes, u as useTheme$4, X as useSlotProps, P as Paper, Y as Fade, s as Modal$1, Z as Backdrop, $ as Portal, U as refType, p as HTMLElementType, a0 as Grow, a1 as FocusTrap, z as List, v as ListItem, a2 as TransitionGroup, a3 as isHostComponent, k as elementTypeAcceptingRef, N as Menu$1, m as getReactElementRef, I as resolveComponentProps, G as o, q as useRtl, O as MenuItem$1, a4 as MenuList, a5 as Divider$1, T as TextField$2, e as Tooltip$1, F as default_1$c, x as default_1$d, c as ConfirmPopUp, D as DynamicInput, d as Toast, n as elementAcceptingRef, a6 as exactProp, f as Box$1, b as Avatar } from "./appbar-
|
|
3
|
+
import { y as default_1$a, B as Button$1, M as Modal, S as SearchBar, E as Typography$1, _ as _inheritsLoose, V as forceReflow, i as Transition, W as classNamesShape, h as ButtonBase, o as chainPropTypes, u as useTheme$4, X as useSlotProps, P as Paper, Y as Fade, s as Modal$1, Z as Backdrop, $ as Portal, U as refType, p as HTMLElementType, a0 as Grow, a1 as FocusTrap, z as List, v as ListItem, a2 as TransitionGroup, a3 as isHostComponent, k as elementTypeAcceptingRef, N as Menu$1, m as getReactElementRef, I as resolveComponentProps, G as o, q as useRtl, O as MenuItem$1, a4 as MenuList, a5 as Divider$1, T as TextField$2, e as Tooltip$1, F as default_1$c, x as default_1$d, c as ConfirmPopUp, D as DynamicInput, d as Toast, n as elementAcceptingRef, a6 as exactProp, f as Box$1, b as Avatar } from "./appbar-BPTUcuZH.esm.js";
|
|
4
4
|
import { d as useEnhancedEffect, r as requireCreateSvgIcon, T as Typography, i as default_1$b, t as useId, l as ownerDocument, e as useForkRef, k as useEventCallback, q as useControlled, v as unsupportedProp, o as ownerWindow, h as debounce$1, p as isMuiElement, u as useAuth } from "./useAuth-BVQ2r4xx.esm.js";
|
|
5
5
|
import { AccordionSummary, AccordionDetails, styled as styled$2, Accordion as Accordion$1, InputAdornment as InputAdornment$1, TextField as TextField$1, Box, CircularProgress, FormHelperText as FormHelperText$1, Select as Select$2, useTheme as useTheme$3, useMediaQuery as useMediaQuery$1, DialogTitle, IconButton as IconButton$1, Tabs as Tabs$1, Tab as Tab$1, MenuItem, DialogActions as DialogActions$1, Radio as Radio$1, RadioGroup, FormControlLabel, Tooltip, Divider, OutlinedInput as OutlinedInput$1, ListItemIcon, ListItemText, Grid, DialogContent as DialogContent$1, Stack as Stack$1, Autocomplete, Menu as Menu$3, Alert as Alert$1, FormControl as FormControl$1, Chip as Chip$2, Dialog as Dialog$1, Grow as Grow$1, Breadcrumbs, List as List$1, ListItem as ListItem$1, ListItemAvatar, Switch as Switch$1 } from "@mui/material";
|
|
6
6
|
import { useDrag, useDrop } from "react-dnd";
|
|
@@ -12,14 +12,14 @@ import { Controller, useWatch, useFormContext, useForm, FormProvider } from "rea
|
|
|
12
12
|
/* empty css */
|
|
13
13
|
import { useTranslation } from "react-i18next";
|
|
14
14
|
import { h as getDisplayName, e as extendSxProp, a as clsx, b as composeClasses, s as styled$3, g as generateUtilityClasses, c as createSvgIcon, i as require$$1, r as rootShouldForwardProp, f as reactIsExports, j as slotShouldForwardProp } from "./notification-_WEc_EZI.esm.js";
|
|
15
|
-
import { C as Chip$1, M as Menu$2, t as transformTableColumns, f as formBuilderDeConversion } from "./form-builder-deconversion-
|
|
15
|
+
import { C as Chip$1, M as Menu$2, t as transformTableColumns, f as formBuilderDeConversion } from "./form-builder-deconversion-DNCtkxQC.esm.js";
|
|
16
16
|
import * as Yup from "yup";
|
|
17
17
|
import dayjs from "dayjs";
|
|
18
18
|
import { aX as formatText, A as fetchApi, p as checkUniqueFields, aa as getErrorMessage, ae as getFileName, M as formatAmount, Q as formatDate, W as formatLabel, aR as toFixedWithNumbers, S as SECTION_TYPES, aO as skuGenerator, aW as fetchOptions, at as getToken, b1 as postV1Designation, b2 as postV1DepartmentsTeams, b3 as postV1Departments, a1 as generateFields, a2 as generateQueryString, aG as postImportSheet, ak as getOperatorLabel, ab as getExcelExportTemplate, ao as getPdfExportTemplate, ac as getExcelTemplateGenerateTemplate, a3 as generateRandomId } from "./common-BrAjOeOq.esm.js";
|
|
19
19
|
import _, { sortBy, debounce as debounce$2, flatMap } from "lodash";
|
|
20
20
|
import { a as auth, b as getApiConfigSafe } from "./api-config-GOys-syK.esm.js";
|
|
21
21
|
import { Add as Add$1, Close, Upload, KeyboardArrowUp, KeyboardArrowDown as KeyboardArrowDown$1, Cancel, Share, Save as Save$1 } from "@mui/icons-material";
|
|
22
|
-
import { a as useApi, C as Checkbox, f as usePages, b as useDeepMemo, u as useAccountingSetting, d as useLocationFilter, g as usePermissions } from "./checkbox-
|
|
22
|
+
import { a as useApi, C as Checkbox, f as usePages, b as useDeepMemo, u as useAccountingSetting, d as useLocationFilter, g as usePermissions } from "./checkbox-BG9DbVQ5.esm.js";
|
|
23
23
|
import { v as viewTypes } from "./action-bar-BsXTcYpL.esm.js";
|
|
24
24
|
import { QueryBuilder } from "react-querybuilder";
|
|
25
25
|
import { QueryBuilderMaterial } from "@react-querybuilder/material";
|
|
@@ -32,10 +32,10 @@ import { P as PathnameHrms, a as PathnameUsers, b1 as routeToResourceMap } from
|
|
|
32
32
|
import { useNavigate, useLocation, Link, Navigate } from "react-router-dom";
|
|
33
33
|
import { u as useAppDispatch, a as useAppSelector } from "./hooks-Cj9Yhy-E.esm.js";
|
|
34
34
|
import { useDropzone } from "react-dropzone";
|
|
35
|
-
import { i as initialFilter, d as defaultPageState } from "./page-context-
|
|
35
|
+
import { i as initialFilter, d as defaultPageState } from "./page-context-BR0JEfCp.esm.js";
|
|
36
36
|
import { S as Save, b as Search$1 } from "./tick-BKOomNx0.esm.js";
|
|
37
37
|
import { useDispatch, useSelector } from "react-redux";
|
|
38
|
-
import { b as setSharedPage, w as getAllUserAndDepartmentDropdown, p as pinToDashboardList, z as sharePage } from "./reducer-
|
|
38
|
+
import { b as setSharedPage, w as getAllUserAndDepartmentDropdown, p as pinToDashboardList, z as sharePage } from "./reducer-BTCTEHl_.esm.js";
|
|
39
39
|
import ReactPhoneInput from "react-phone-input-2";
|
|
40
40
|
import { useMaterialReactTable, MaterialReactTable } from "material-react-table";
|
|
41
41
|
import { u as useTheme$1, a as useTheme$2, G as GlobalStyles } from "./CssBaseline-DD305XvW.esm.js";
|
|
@@ -29567,7 +29567,7 @@ ${val}`;
|
|
|
29567
29567
|
{
|
|
29568
29568
|
rows: [...addressRows],
|
|
29569
29569
|
columns: tableColumns(addressColumns(isKSA)),
|
|
29570
|
-
paginationModel: { pageNo: 1, limit:
|
|
29570
|
+
paginationModel: { pageNo: 1, limit: 20 },
|
|
29571
29571
|
totalPages: 20,
|
|
29572
29572
|
enableColumnDragging: false,
|
|
29573
29573
|
isResetRow: false,
|
|
@@ -29605,7 +29605,7 @@ ${val}`;
|
|
|
29605
29605
|
{
|
|
29606
29606
|
rows: [...contactRows],
|
|
29607
29607
|
columns: tableColumns(contactColumns),
|
|
29608
|
-
paginationModel: { pageNo: 1, limit:
|
|
29608
|
+
paginationModel: { pageNo: 1, limit: 20 },
|
|
29609
29609
|
totalPages: 20,
|
|
29610
29610
|
enableColumnDragging: false,
|
|
29611
29611
|
isResetRow: false,
|
|
@@ -30861,12 +30861,19 @@ const DynamicTable = React__default.memo(({
|
|
|
30861
30861
|
...column,
|
|
30862
30862
|
header: t(column.header),
|
|
30863
30863
|
Cell: (cellProps) => {
|
|
30864
|
-
var _a2, _b2, _c2, _d2;
|
|
30864
|
+
var _a2, _b2, _c2, _d2, _e;
|
|
30865
30865
|
if (originalCell) {
|
|
30866
30866
|
return originalCell(cellProps);
|
|
30867
30867
|
}
|
|
30868
30868
|
let v = cellProps.renderedCellValue;
|
|
30869
|
-
if (
|
|
30869
|
+
if ((_a2 = column.accessorKey) == null ? void 0 : _a2.endsWith(".items.name")) {
|
|
30870
|
+
const prefix = column.accessorKey.replace(/\.name$/, "");
|
|
30871
|
+
const item = _.get(cellProps.row.original, prefix);
|
|
30872
|
+
if (item == null ? void 0 : item.sku) {
|
|
30873
|
+
v = `${item.sku} - ${item.name}`;
|
|
30874
|
+
}
|
|
30875
|
+
}
|
|
30876
|
+
if (isSpar && column.type !== "currency" && typeof v === "number" && v && ((_b2 = String(v)) == null ? void 0 : _b2.includes("."))) {
|
|
30870
30877
|
return v = toFixedWithNumbers(v, 4);
|
|
30871
30878
|
}
|
|
30872
30879
|
switch (column.type) {
|
|
@@ -30876,14 +30883,14 @@ const DynamicTable = React__default.memo(({
|
|
|
30876
30883
|
case "date":
|
|
30877
30884
|
v = formatDate(
|
|
30878
30885
|
cellProps.renderedCellValue,
|
|
30879
|
-
((
|
|
30886
|
+
((_c2 = column.editProperties) == null ? void 0 : _c2.dateFormat) || "DD-MM-YYYY"
|
|
30880
30887
|
) || "-";
|
|
30881
30888
|
break;
|
|
30882
30889
|
case "currency":
|
|
30883
30890
|
v = cellProps.renderedCellValue ? `${formatAmount(cellProps.renderedCellValue, currencyFormat, symbolPosition, cs, isSpar ? 4 : void 0)}` : "-";
|
|
30884
30891
|
break;
|
|
30885
30892
|
case "stringOrArray": {
|
|
30886
|
-
const type = (
|
|
30893
|
+
const type = (_e = (_d2 = cellProps.row.original) == null ? void 0 : _d2.promotion_map_data) == null ? void 0 : _e.type;
|
|
30887
30894
|
v = Array.isArray(cellProps.renderedCellValue) ? cellProps.renderedCellValue.map((rcv) => rcv ? /* @__PURE__ */ jsxRuntimeExports.jsx(Chip$1, { label: takeCurencyOrPercentage(type, rcv) }) : null) : takeCurencyOrPercentage(type, cellProps.renderedCellValue);
|
|
30888
30895
|
break;
|
|
30889
30896
|
}
|
|
@@ -30941,7 +30948,7 @@ const DynamicTable = React__default.memo(({
|
|
|
30941
30948
|
rows,
|
|
30942
30949
|
columns: tableColumns(columns ? columns.map((col) => ({ ...col })) : []),
|
|
30943
30950
|
totalPages: 20,
|
|
30944
|
-
paginationModel: { pageNo: 1, limit:
|
|
30951
|
+
paginationModel: { pageNo: 1, limit: 20 },
|
|
30945
30952
|
enableEditing: false,
|
|
30946
30953
|
enableColumnDragging: false,
|
|
30947
30954
|
enableBottomToolbar: false,
|
|
@@ -41779,4 +41786,4 @@ export {
|
|
|
41779
41786
|
DynamicTagsInput as y,
|
|
41780
41787
|
DynamicTime as z
|
|
41781
41788
|
};
|
|
41782
|
-
//# sourceMappingURL=android-12-switch-
|
|
41789
|
+
//# sourceMappingURL=android-12-switch-DMpKRS49.esm.js.map
|