@erpsquad/common 1.10.29 → 1.10.31
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-CLg_Yo12.esm.js → ERPUIProvider-CIzXMsuV.esm.js} +8 -8
- package/dist/chunks/{ERPUIProvider-CLg_Yo12.esm.js.map → ERPUIProvider-CIzXMsuV.esm.js.map} +1 -1
- package/dist/chunks/{actionCreator-C8cLIOap.esm.js → actionCreator-BzPZv2rR.esm.js} +2 -2
- package/dist/chunks/{actionCreator-C8cLIOap.esm.js.map → actionCreator-BzPZv2rR.esm.js.map} +1 -1
- package/dist/chunks/{android-12-switch-DM9s0XTb.js → android-12-switch-BILQvv4G.js} +170 -5
- package/dist/chunks/android-12-switch-BILQvv4G.js.map +1 -0
- package/dist/chunks/{android-12-switch-eTZOAHAa.esm.js → android-12-switch-DpJE56Wi.esm.js} +212 -47
- package/dist/chunks/android-12-switch-DpJE56Wi.esm.js.map +1 -0
- package/dist/chunks/{appbar-DtROOKgm.esm.js → appbar-5rP5iXcS.esm.js} +4 -4
- package/dist/chunks/{appbar-DtROOKgm.esm.js.map → appbar-5rP5iXcS.esm.js.map} +1 -1
- package/dist/chunks/{common-Nn4SUfK7.esm.js → common-D59u5rE6.esm.js} +2 -2
- package/dist/chunks/{common-Nn4SUfK7.esm.js.map → common-D59u5rE6.esm.js.map} +1 -1
- package/dist/chunks/{custom-editor-B-mleFzm.esm.js → custom-editor-UhZu0Svw.esm.js} +2 -2
- package/dist/chunks/{custom-editor-B-mleFzm.esm.js.map → custom-editor-UhZu0Svw.esm.js.map} +1 -1
- package/dist/chunks/{default-data-BjzCfuoR.js → default-data-B2-JPE4u.js} +9 -11
- package/dist/chunks/{default-data-BjzCfuoR.js.map → default-data-B2-JPE4u.js.map} +1 -1
- package/dist/chunks/{default-data-C8B-fYa8.esm.js → default-data-DLCnpyaM.esm.js} +19 -21
- package/dist/chunks/{default-data-C8B-fYa8.esm.js.map → default-data-DLCnpyaM.esm.js.map} +1 -1
- package/dist/chunks/{form-builder-conversion-yi03Elpa.esm.js → form-builder-conversion-gLJCNqSQ.esm.js} +2 -2
- package/dist/chunks/{form-builder-conversion-yi03Elpa.esm.js.map → form-builder-conversion-gLJCNqSQ.esm.js.map} +1 -1
- package/dist/chunks/{form-builder-deconversion-CFtHF1hm.esm.js → form-builder-deconversion-DNGMsAEj.esm.js} +3 -3
- package/dist/chunks/{form-builder-deconversion-CFtHF1hm.esm.js.map → form-builder-deconversion-DNGMsAEj.esm.js.map} +1 -1
- package/dist/chunks/{fullScreen-Xv8AR914.esm.js → fullScreen-C8Qnoyrr.esm.js} +2 -2
- package/dist/chunks/{fullScreen-Xv8AR914.esm.js.map → fullScreen-C8Qnoyrr.esm.js.map} +1 -1
- package/dist/chunks/{languageContext-cweJTzn0.esm.js → languageContext-ffrxXJkr.esm.js} +3 -3
- package/dist/chunks/{languageContext-cweJTzn0.esm.js.map → languageContext-ffrxXJkr.esm.js.map} +1 -1
- package/dist/chunks/{migration-utils-llqrdBh8.esm.js → migration-utils-BJsX1G2n.esm.js} +2 -2
- package/dist/chunks/{migration-utils-llqrdBh8.esm.js.map → migration-utils-BJsX1G2n.esm.js.map} +1 -1
- package/dist/chunks/{page-context-BbQNncGA.esm.js → page-context-BlGcwtdZ.esm.js} +3 -3
- package/dist/chunks/{page-context-BbQNncGA.esm.js.map → page-context-BlGcwtdZ.esm.js.map} +1 -1
- package/dist/chunks/{reducer-DRkUwBHb.esm.js → reducer-D6_f0R4C.esm.js} +2 -2
- package/dist/chunks/{reducer-DRkUwBHb.esm.js.map → reducer-D6_f0R4C.esm.js.map} +1 -1
- package/dist/chunks/{shareSlice-H0nwzQZv.esm.js → shareSlice-Bxrgfv7o.esm.js} +2 -2
- package/dist/chunks/{shareSlice-H0nwzQZv.esm.js.map → shareSlice-Bxrgfv7o.esm.js.map} +1 -1
- package/dist/chunks/{sidebar-CdhW0PKj.esm.js → sidebar-n5_ky6G7.esm.js} +4 -4
- package/dist/chunks/{sidebar-CdhW0PKj.esm.js.map → sidebar-n5_ky6G7.esm.js.map} +1 -1
- package/dist/chunks/{sidebarScreen-DbfP32Xx.esm.js → sidebarScreen-BwkiIBud.esm.js} +5 -6
- package/dist/chunks/sidebarScreen-BwkiIBud.esm.js.map +1 -0
- package/dist/chunks/{sidebarScreen-figZp_Ln.js → sidebarScreen-Cm763s1P.js} +1 -2
- package/dist/chunks/sidebarScreen-Cm763s1P.js.map +1 -0
- package/dist/chunks/{store-C2XaFCA_.esm.js → store-OqHSsVaz.esm.js} +3 -3
- package/dist/chunks/{store-C2XaFCA_.esm.js.map → store-OqHSsVaz.esm.js.map} +1 -1
- package/dist/chunks/{translations-DJZgOpfH.esm.js → translations-GFvlFdi5.esm.js} +2 -2
- package/dist/chunks/{translations-DJZgOpfH.esm.js.map → translations-GFvlFdi5.esm.js.map} +1 -1
- package/dist/chunks/{uom-field-wrapper-DKN31prP.esm.js → uom-field-wrapper-CgYTONsG.esm.js} +33 -158
- package/dist/chunks/uom-field-wrapper-CgYTONsG.esm.js.map +1 -0
- package/dist/chunks/{uom-field-wrapper-NNhtGgqI.js → uom-field-wrapper-DoyshtE9.js} +2 -127
- package/dist/chunks/uom-field-wrapper-DoyshtE9.js.map +1 -0
- package/dist/chunks/{useAccountSetting-CAUDy8rg.esm.js → useAccountSetting-D1Ze8r-T.esm.js} +3 -3
- package/dist/chunks/{useAccountSetting-CAUDy8rg.esm.js.map → useAccountSetting-D1Ze8r-T.esm.js.map} +1 -1
- package/dist/chunks/{useAdditionalDiscountAutoCalc-DbyTG80U.esm.js → useAdditionalDiscountAutoCalc-PhSfzd5X.esm.js} +5 -5
- package/dist/chunks/{useAdditionalDiscountAutoCalc-DbyTG80U.esm.js.map → useAdditionalDiscountAutoCalc-PhSfzd5X.esm.js.map} +1 -1
- package/dist/chunks/{useAuth-BaUSGWbL.esm.js → useAuth-DhzbULWV.esm.js} +2 -2
- package/dist/chunks/{useAuth-BaUSGWbL.esm.js.map → useAuth-DhzbULWV.esm.js.map} +1 -1
- package/dist/chunks/{useLangauge-BUF4epYu.esm.js → useLangauge-CbMaEsdS.esm.js} +2 -2
- package/dist/chunks/{useLangauge-BUF4epYu.esm.js.map → useLangauge-CbMaEsdS.esm.js.map} +1 -1
- package/dist/components/index.esm.js +53 -53
- package/dist/components/index.js +4 -4
- package/dist/contexts/index.esm.js +3 -3
- package/dist/hooks/index.esm.js +5 -5
- package/dist/index.esm.js +90 -90
- package/dist/index.js +6 -6
- package/dist/layout/index.esm.js +2 -2
- package/dist/layout/index.js +1 -1
- package/dist/redux/index.esm.js +4 -4
- package/dist/utils/index.esm.js +7 -7
- package/dist/views/index.esm.js +9 -9
- package/dist/views/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunks/android-12-switch-DM9s0XTb.js.map +0 -1
- package/dist/chunks/android-12-switch-eTZOAHAa.esm.js.map +0 -1
- package/dist/chunks/sidebarScreen-DbfP32Xx.esm.js.map +0 -1
- package/dist/chunks/sidebarScreen-figZp_Ln.js.map +0 -1
- package/dist/chunks/uom-field-wrapper-DKN31prP.esm.js.map +0 -1
- package/dist/chunks/uom-field-wrapper-NNhtGgqI.js.map +0 -1
|
@@ -2,13 +2,13 @@ import { j as jsxRuntimeExports } from "./jsx-runtime-ClFauRgV.esm.js";
|
|
|
2
2
|
import React__default, { useEffect, Component, useMemo, useState, useRef, useCallback, memo, createElement, Suspense, lazy } from "react";
|
|
3
3
|
import { Outlet, Navigate, useLocation, useNavigate, useSearchParams, Link as Link$2, useParams } from "react-router-dom";
|
|
4
4
|
import { P as Pathname, l as PathnameRental, b as PathnameCrm, k as PathnamePurchase, j as PathnameManufacturing, i as PathnameInventory, a as PathnameAccounting } from "./pathname.rental-BKwgwsUV.esm.js";
|
|
5
|
-
import { T as Typography, j as useAuth, e as default_1$d, r as requireCreateSvgIcon } from "./useAuth-
|
|
6
|
-
import { V as Loader, X as MaterialTable, N as Footer,
|
|
5
|
+
import { T as Typography, j as useAuth, e as default_1$d, r as requireCreateSvgIcon } from "./useAuth-DhzbULWV.esm.js";
|
|
6
|
+
import { V as Loader, X as MaterialTable, N as Footer, a9 as Select, C as Checkbox, a4 as Radio, G as DynamicTable, q as DynamicCheckBox, y as DynamicRadioButton, J as DynamicToggleButton, u as DynamicInfo, w as DynamicMedia, I as DynamicTime, s as DynamicDate, F as DynamicSelect, x as DynamicPhone, t as DynamicElementHOC, O as FormHeader, p as DynamicButton, ag as TabBar, E as DynamicSectionHOC, P as FormParser, au as default_1$e, k as ColorPickerInput, g as Android12Switch$2, av as default_1$f, a8 as SearchableSelect, a as ActionBar, K as Fallback, a3 as ProtectedRoute } from "./android-12-switch-DpJE56Wi.esm.js";
|
|
7
7
|
import { u as useAppDispatch, a as useAppSelector } from "./hooks-Cj9Yhy-E.esm.js";
|
|
8
8
|
import { createAsyncThunk, createSlice } from "@reduxjs/toolkit";
|
|
9
|
-
import { M as Menu, a as aggregationFns, D as DefaultAggregation, f as formBuilderDeConversion, C as Chip, t as transformTableColumns } from "./form-builder-deconversion-
|
|
9
|
+
import { M as Menu, a as aggregationFns, D as DefaultAggregation, f as formBuilderDeConversion, C as Chip, t as transformTableColumns } from "./form-builder-deconversion-DNGMsAEj.esm.js";
|
|
10
10
|
import { MenuItem, Box, styled, Grid, Stack, FormControl, Slider, FormControlLabel, DialogTitle, IconButton, DialogContent, DialogActions, Select as Select$1, Button as Button$1, RadioGroup, TextField as TextField$1, InputAdornment, AppBar, Toolbar, Link as Link$1, Divider, Skeleton, Paper, Fade, Tooltip, ToggleButton, ToggleButtonGroup, toggleButtonGroupClasses, Switch, Tabs, Tab, Chip as Chip$1, Alert, AccordionSummary, AccordionDetails, Table, TableHead, TableRow, TableCell, TableBody, Dialog, Accordion as Accordion$1, Typography as Typography$1, CircularProgress, ListItemIcon, ListItemText, ListItem, Container } from "@mui/material";
|
|
11
|
-
import { d as Button, a0 as o, g as DynamicInput, s as Toast, T as TextField, p as Modal, I as default_1$g, S as SearchBar, f as ConfirmPopUp } from "./appbar-
|
|
11
|
+
import { d as Button, a0 as o, g as DynamicInput, s as Toast, T as TextField, p as Modal, I as default_1$g, S as SearchBar, f as ConfirmPopUp } from "./appbar-5rP5iXcS.esm.js";
|
|
12
12
|
import { i as images } from "./images-BY6aQF32.esm.js";
|
|
13
13
|
import { useForm, useFieldArray } from "react-hook-form";
|
|
14
14
|
import { E as Eye, a as EyeOff } from "./tick-DGRjM86F.esm.js";
|
|
@@ -22,10 +22,10 @@ import { DndProvider } from "react-dnd";
|
|
|
22
22
|
import { HTML5Backend } from "react-dnd-html5-backend";
|
|
23
23
|
import { useTranslation } from "react-i18next";
|
|
24
24
|
import { enqueueSnackbar } from "notistack";
|
|
25
|
-
import { f as formBuilderConversion } from "./form-builder-conversion-
|
|
26
|
-
import { $ as formatText$1, S as SECTION_TYPES, a5 as generateRandomId, ab as getErrorMessage, X as formatLabel, a$ as uploadFiles, aw as getToken, j as appendConditionSafely, v as defaultCurrencySymbol, A as fetchApi } from "./common-
|
|
27
|
-
import { E as ErpLoader } from "./page-context-
|
|
28
|
-
import { p as patchFormDataById, e as getFormDataById, b as getFieldsByFormId } from "./reducer-
|
|
25
|
+
import { f as formBuilderConversion } from "./form-builder-conversion-gLJCNqSQ.esm.js";
|
|
26
|
+
import { $ as formatText$1, S as SECTION_TYPES, a5 as generateRandomId, ab as getErrorMessage, X as formatLabel, a$ as uploadFiles, aw as getToken, j as appendConditionSafely, v as defaultCurrencySymbol, A as fetchApi } from "./common-D59u5rE6.esm.js";
|
|
27
|
+
import { E as ErpLoader } from "./page-context-BlGcwtdZ.esm.js";
|
|
28
|
+
import { p as patchFormDataById, e as getFormDataById, b as getFieldsByFormId } from "./reducer-D6_f0R4C.esm.js";
|
|
29
29
|
import { r as Paragraph, H as Hashtag, A as ArrowCircleDown, C as Calendar, P as PaperClip, L as Link, i as Email, s as Phone, h as DollarCircle, f as Clock, G as Grid$1, q as Location, e as CheckboxSquare, I as Image, p as LinkHorizontal, o as InfoCircle, R as RadioButton, T as Trash, E as Edit, S as Save } from "./trash-DDBuxxtn.esm.js";
|
|
30
30
|
import { T as ToggleSwitch } from "./toggle-switch-US4K-v1K.esm.js";
|
|
31
31
|
import { b as PathnameHrms, c as PathnameUsers } from "./pathname.hrms-CWjGHE-w.esm.js";
|
|
@@ -38,7 +38,7 @@ import { FileCode, Heading, Text, Image as Image$1, Table as Table$1, Blocks, Qr
|
|
|
38
38
|
import { ba as postV1Drive, O as getV1Drive, a_ as patchV1TemplatesId, bo as postV1Templates, aZ as patchV1TemplateHeaderFooterId, bn as postV1TemplateHeaderFooter, aG as getV1SubjectsId, Z as getV1FormBuilderRelationalSchemaFieldsName, aM as getV1TemplatesId, aK as getV1TemplateHeaderFooterCompanyIdHeaderFooter, aL as getV1Templates, a$ as patchV1TemplatesIdSetDefault, m as deleteV1TemplatesId, aF as getV1Subjects } from "./api-BF3CyrPB.esm.js";
|
|
39
39
|
import { v4 } from "uuid";
|
|
40
40
|
import { v as viewTypes } from "./action-bar-BsXTcYpL.esm.js";
|
|
41
|
-
import { f as usePages, b as useDeepMemo, g as usePermissions } from "./useAccountSetting-
|
|
41
|
+
import { f as usePages, b as useDeepMemo, g as usePermissions } from "./useAccountSetting-D1Ze8r-T.esm.js";
|
|
42
42
|
const allAggregations = [
|
|
43
43
|
{
|
|
44
44
|
label: "Average",
|
|
@@ -5980,7 +5980,7 @@ var _jsxRuntime$a = jsxRuntimeExports;
|
|
|
5980
5980
|
default_1$a = CallSplit.default = (0, _createSvgIcon$a.default)(/* @__PURE__ */ (0, _jsxRuntime$a.jsx)("path", {
|
|
5981
5981
|
d: "m14 4 2.29 2.29-2.88 2.88 1.42 1.42 2.88-2.88L20 10V4zm-4 0H4v6l2.29-2.29 4.71 4.7V20h2v-8.41l-5.29-5.3z"
|
|
5982
5982
|
}), "CallSplit");
|
|
5983
|
-
const CustomEditor$1 = lazy(() => import("./custom-editor-
|
|
5983
|
+
const CustomEditor$1 = lazy(() => import("./custom-editor-UhZu0Svw.esm.js"));
|
|
5984
5984
|
const EditSectionModal = ({
|
|
5985
5985
|
isOpen,
|
|
5986
5986
|
setIsOpen,
|
|
@@ -6400,7 +6400,7 @@ const useDebouncedUpdate = (callback, delay = 300) => {
|
|
|
6400
6400
|
);
|
|
6401
6401
|
return debouncedCallback;
|
|
6402
6402
|
};
|
|
6403
|
-
const CustomEditor = lazy(() => import("./custom-editor-
|
|
6403
|
+
const CustomEditor = lazy(() => import("./custom-editor-UhZu0Svw.esm.js"));
|
|
6404
6404
|
const editableSections = ["text", "text-block", "heading", "heading-1", "heading-2", "heading-3", "heading-4"];
|
|
6405
6405
|
const EditorSection = ({
|
|
6406
6406
|
section: section2,
|
|
@@ -10820,15 +10820,13 @@ const TemplateNameModal = ({
|
|
|
10820
10820
|
payload.name = name;
|
|
10821
10821
|
const res = await (mode === "edit" ? patchV1TemplatesId(payload) : postV1Templates(payload));
|
|
10822
10822
|
if (res.status_code === 200) {
|
|
10823
|
-
enqueueSnackbar("Template saved successfully", { variant: "success" });
|
|
10824
10823
|
onSaveSuccess == null ? void 0 : onSaveSuccess();
|
|
10825
10824
|
navigate(templateRoutes2.LIST);
|
|
10826
10825
|
}
|
|
10827
10826
|
setIsSubmitting(false);
|
|
10828
10827
|
} catch (error) {
|
|
10829
|
-
|
|
10828
|
+
(error == null ? void 0 : error.message) || "Something went wrong";
|
|
10830
10829
|
setIsSubmitting(false);
|
|
10831
|
-
enqueueSnackbar(m, { variant: "error" });
|
|
10832
10830
|
onSaveError == null ? void 0 : onSaveError();
|
|
10833
10831
|
}
|
|
10834
10832
|
};
|
|
@@ -12777,27 +12775,27 @@ const Templates = ({ type, module, modulePath }) => {
|
|
|
12777
12775
|
const templateEditorRoutes = (modulePath, module) => [
|
|
12778
12776
|
{
|
|
12779
12777
|
path: `${TEMPLATE_EDITOR_PATHS.TEMPLATES_LIST("email")}`,
|
|
12780
|
-
element: /* @__PURE__ */ jsxRuntimeExports.jsx(Templates, { type: "email", module, modulePath })
|
|
12778
|
+
element: /* @__PURE__ */ jsxRuntimeExports.jsx(ProtectedRoute, { module: "Templates", action: "canView", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Templates, { type: "email", module, modulePath }) })
|
|
12781
12779
|
},
|
|
12782
12780
|
{
|
|
12783
12781
|
path: `${TEMPLATE_EDITOR_PATHS.TEMPLATES_ADD("email")}`,
|
|
12784
|
-
element: /* @__PURE__ */ jsxRuntimeExports.jsx(AddTemplate, { modulePath, type: "email", module })
|
|
12782
|
+
element: /* @__PURE__ */ jsxRuntimeExports.jsx(ProtectedRoute, { module: "Templates", action: "canView", children: /* @__PURE__ */ jsxRuntimeExports.jsx(AddTemplate, { modulePath, type: "email", module }) })
|
|
12785
12783
|
},
|
|
12786
12784
|
{
|
|
12787
12785
|
path: `${TEMPLATE_EDITOR_PATHS.TEMPLATES_EDIT("email")}`,
|
|
12788
|
-
element: /* @__PURE__ */ jsxRuntimeExports.jsx(AddTemplate, { modulePath, type: "email", module })
|
|
12786
|
+
element: /* @__PURE__ */ jsxRuntimeExports.jsx(ProtectedRoute, { module: "Templates", action: "canView", children: /* @__PURE__ */ jsxRuntimeExports.jsx(AddTemplate, { modulePath, type: "email", module }) })
|
|
12789
12787
|
},
|
|
12790
12788
|
{
|
|
12791
12789
|
path: `${TEMPLATE_EDITOR_PATHS.TEMPLATES_LIST("pdf")}`,
|
|
12792
|
-
element: /* @__PURE__ */ jsxRuntimeExports.jsx(Templates, { module, type: "pdf", modulePath })
|
|
12790
|
+
element: /* @__PURE__ */ jsxRuntimeExports.jsx(ProtectedRoute, { module: "Templates", action: "canView", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Templates, { module, type: "pdf", modulePath }) })
|
|
12793
12791
|
},
|
|
12794
12792
|
{
|
|
12795
12793
|
path: `${TEMPLATE_EDITOR_PATHS.TEMPLATES_ADD("pdf")}`,
|
|
12796
|
-
element: /* @__PURE__ */ jsxRuntimeExports.jsx(AddTemplate, { modulePath, type: "pdf", module })
|
|
12794
|
+
element: /* @__PURE__ */ jsxRuntimeExports.jsx(ProtectedRoute, { module: "Templates", action: "canView", children: /* @__PURE__ */ jsxRuntimeExports.jsx(AddTemplate, { modulePath, type: "pdf", module }) })
|
|
12797
12795
|
},
|
|
12798
12796
|
{
|
|
12799
12797
|
path: `${TEMPLATE_EDITOR_PATHS.TEMPLATES_EDIT("pdf")}`,
|
|
12800
|
-
element: /* @__PURE__ */ jsxRuntimeExports.jsx(AddTemplate, { modulePath, type: "pdf", module })
|
|
12798
|
+
element: /* @__PURE__ */ jsxRuntimeExports.jsx(ProtectedRoute, { module: "Templates", action: "canView", children: /* @__PURE__ */ jsxRuntimeExports.jsx(AddTemplate, { modulePath, type: "pdf", module }) })
|
|
12801
12799
|
}
|
|
12802
12800
|
];
|
|
12803
12801
|
const textOptions = [
|
|
@@ -12907,4 +12905,4 @@ export {
|
|
|
12907
12905
|
activityTag as y,
|
|
12908
12906
|
board as z
|
|
12909
12907
|
};
|
|
12910
|
-
//# sourceMappingURL=default-data-
|
|
12908
|
+
//# sourceMappingURL=default-data-DLCnpyaM.esm.js.map
|