@erpsquad/common 1.10.63 → 1.10.65
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-PAl_tpW_.js → ERPUIProvider-B_cYjAdF.js} +2 -2
- package/dist/chunks/{ERPUIProvider-PAl_tpW_.js.map → ERPUIProvider-B_cYjAdF.js.map} +1 -1
- package/dist/chunks/{ERPUIProvider-BBpkVsj9.esm.js → ERPUIProvider-DtSGxSro.esm.js} +2 -2
- package/dist/chunks/{ERPUIProvider-BBpkVsj9.esm.js.map → ERPUIProvider-DtSGxSro.esm.js.map} +1 -1
- package/dist/chunks/{android-12-switch-WBRkjBCP.js → android-12-switch-BP2CP-ah.js} +43 -7
- package/dist/chunks/android-12-switch-BP2CP-ah.js.map +1 -0
- package/dist/chunks/{android-12-switch-XAicROeO.esm.js → android-12-switch-CrpXnQsd.esm.js} +43 -7
- package/dist/chunks/android-12-switch-CrpXnQsd.esm.js.map +1 -0
- package/dist/chunks/{appbar-17zpqli4.js → appbar-Bb4MdbyO.js} +7 -7
- package/dist/chunks/appbar-Bb4MdbyO.js.map +1 -0
- package/dist/chunks/{appbar-BBLrVA6U.esm.js → appbar-CHxm7L_f.esm.js} +7 -7
- package/dist/chunks/appbar-CHxm7L_f.esm.js.map +1 -0
- package/dist/chunks/{default-data-CK-90IND.esm.js → default-data-7fDwUquk.esm.js} +3 -3
- package/dist/chunks/{default-data-CK-90IND.esm.js.map → default-data-7fDwUquk.esm.js.map} +1 -1
- package/dist/chunks/{default-data-Do_oTvMU.js → default-data-WODnnwD5.js} +3 -3
- package/dist/chunks/{default-data-Do_oTvMU.js.map → default-data-WODnnwD5.js.map} +1 -1
- package/dist/chunks/{fullScreen-CzRFGTzg.js → fullScreen-BJR97bsP.js} +2 -2
- package/dist/chunks/{fullScreen-CzRFGTzg.js.map → fullScreen-BJR97bsP.js.map} +1 -1
- package/dist/chunks/{fullScreen-B5e0kvj4.esm.js → fullScreen-uN74Cs7z.esm.js} +2 -2
- package/dist/chunks/{fullScreen-B5e0kvj4.esm.js.map → fullScreen-uN74Cs7z.esm.js.map} +1 -1
- package/dist/chunks/{sidebar-CaMjOaT0.esm.js → sidebar-C_fhINvI.esm.js} +2 -2
- package/dist/chunks/{sidebar-CaMjOaT0.esm.js.map → sidebar-C_fhINvI.esm.js.map} +1 -1
- package/dist/chunks/{sidebar-CGHpNE59.js → sidebar-Df3O8Xw6.js} +2 -2
- package/dist/chunks/{sidebar-CGHpNE59.js.map → sidebar-Df3O8Xw6.js.map} +1 -1
- package/dist/chunks/{sidebarScreen-BMRTGPNT.js → sidebarScreen-BbczvGnM.js} +3 -3
- package/dist/chunks/{sidebarScreen-BMRTGPNT.js.map → sidebarScreen-BbczvGnM.js.map} +1 -1
- package/dist/chunks/{sidebarScreen-vQN2vT2D.esm.js → sidebarScreen-Df0FcbCe.esm.js} +3 -3
- package/dist/chunks/{sidebarScreen-vQN2vT2D.esm.js.map → sidebarScreen-Df0FcbCe.esm.js.map} +1 -1
- package/dist/chunks/{translations-D-6zNK2j.esm.js → translations-Df5Mt7kz.esm.js} +3 -3
- package/dist/chunks/translations-Df5Mt7kz.esm.js.map +1 -0
- package/dist/chunks/{translations-BUtRMBGm.js → translations-DoAAs3Sh.js} +3 -3
- package/dist/chunks/translations-DoAAs3Sh.js.map +1 -0
- package/dist/chunks/{uom-field-wrapper-DtW2ZDgN.esm.js → uom-field-wrapper-BN-gHLZh.esm.js} +46 -10
- package/dist/chunks/uom-field-wrapper-BN-gHLZh.esm.js.map +1 -0
- package/dist/chunks/{uom-field-wrapper-xtQt1ONl.js → uom-field-wrapper-DQKUL4a5.js} +46 -10
- package/dist/chunks/uom-field-wrapper-DQKUL4a5.js.map +1 -0
- package/dist/chunks/{useAddressContact-Cz2yg1H9.esm.js → useAddressContact-Dm7nV19E.esm.js} +3 -3
- package/dist/chunks/{useAddressContact-Cz2yg1H9.esm.js.map → useAddressContact-Dm7nV19E.esm.js.map} +1 -1
- package/dist/chunks/{useAddressContact-CpNYDTXT.js → useAddressContact-omyt5axK.js} +3 -3
- package/dist/chunks/{useAddressContact-CpNYDTXT.js.map → useAddressContact-omyt5axK.js.map} +1 -1
- package/dist/components/index.esm.js +5 -5
- package/dist/components/index.js +5 -5
- package/dist/components/parties-modal/utils/constant.d.ts +7 -4
- package/dist/hooks/index.esm.js +2 -2
- package/dist/hooks/index.js +2 -2
- package/dist/index.esm.js +10 -10
- package/dist/index.js +10 -10
- package/dist/layout/index.esm.js +2 -2
- package/dist/layout/index.js +2 -2
- package/dist/src/components/parties-modal/utils/constant.d.ts +7 -4
- package/dist/style.css +11 -1
- package/dist/utils/index.esm.js +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/views/index.esm.js +5 -5
- package/dist/views/index.js +4 -4
- package/package.json +1 -1
- package/dist/chunks/android-12-switch-WBRkjBCP.js.map +0 -1
- package/dist/chunks/android-12-switch-XAicROeO.esm.js.map +0 -1
- package/dist/chunks/appbar-17zpqli4.js.map +0 -1
- package/dist/chunks/appbar-BBLrVA6U.esm.js.map +0 -1
- package/dist/chunks/translations-BUtRMBGm.js.map +0 -1
- package/dist/chunks/translations-D-6zNK2j.esm.js.map +0 -1
- package/dist/chunks/uom-field-wrapper-DtW2ZDgN.esm.js.map +0 -1
- package/dist/chunks/uom-field-wrapper-xtQt1ONl.js.map +0 -1
|
@@ -6622,7 +6622,7 @@ const DynamicInput = React__default.memo((props) => {
|
|
|
6622
6622
|
value: props.type === "number" && typeof field.value === "number" ? (props == null ? void 0 : props.shouldApplyPrecission) === false || ["exchange_rate"].includes(props.name) ? field.value : (() => {
|
|
6623
6623
|
var _a2, _b2;
|
|
6624
6624
|
const step = props == null ? void 0 : props.float_step;
|
|
6625
|
-
const decimalPlaces = step && step !== "any" ? ((_a2 = String(step).split(".")[1]) == null ? void 0 : _a2.length) ?? 2 : ((_b2 = getApiConfigSafe()) == null ? void 0 : _b2.countryEnv) === "
|
|
6625
|
+
const decimalPlaces = step && step !== "any" ? ((_a2 = String(step).split(".")[1]) == null ? void 0 : _a2.length) ?? 2 : ((_b2 = getApiConfigSafe()) == null ? void 0 : _b2.countryEnv) === "ksa" ? 4 : 2;
|
|
6626
6626
|
console.log("+++++++", field.value, decimalPlaces);
|
|
6627
6627
|
return Number(field.value.toFixed(decimalPlaces)).toString();
|
|
6628
6628
|
})() : field.value || "",
|
|
@@ -8359,6 +8359,7 @@ function AppSwitcher({ erp_modules, selectedModule }) {
|
|
|
8359
8359
|
}
|
|
8360
8360
|
function Breadcrumb({ selectedModule, segments }) {
|
|
8361
8361
|
const navigate = useNavigate();
|
|
8362
|
+
const validSegments = segments;
|
|
8362
8363
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
8363
8364
|
selectedModule && /* @__PURE__ */ jsxRuntimeExports.jsx("button", { className: "back-btn", type: "button", "aria-label": "Go back", onClick: () => window.history.back(), children: /* @__PURE__ */ jsxRuntimeExports.jsx(IconBack, {}) }),
|
|
8364
8365
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("nav", { className: "crumb-path", children: [
|
|
@@ -8366,9 +8367,9 @@ function Breadcrumb({ selectedModule, segments }) {
|
|
|
8366
8367
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "mp-icon", children: /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: selectedModule.icon, alt: "", width: 12, height: 12, className: "mp-icon-img" }) }),
|
|
8367
8368
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "mp-name", children: selectedModule.label })
|
|
8368
8369
|
] }),
|
|
8369
|
-
selectedModule &&
|
|
8370
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(IconChevron, {}),
|
|
8371
|
-
i ===
|
|
8370
|
+
selectedModule && validSegments.map((seg, i) => /* @__PURE__ */ jsxRuntimeExports.jsxs(React__default.Fragment, { children: [
|
|
8371
|
+
(i > 0 || selectedModule) && /* @__PURE__ */ jsxRuntimeExports.jsx(IconChevron, {}),
|
|
8372
|
+
i === validSegments.length - 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "cp-current", children: seg.label }) : seg.navigable === false ? /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "cp-text", children: seg.label }) : /* @__PURE__ */ jsxRuntimeExports.jsx("button", { className: "cp-link", type: "button", onClick: () => navigate(seg.path), children: seg.label })
|
|
8372
8373
|
] }, i))
|
|
8373
8374
|
] })
|
|
8374
8375
|
] });
|
|
@@ -9354,13 +9355,12 @@ function Header(props) {
|
|
|
9354
9355
|
for (let i = 0; i < rawSegments.length; i++) {
|
|
9355
9356
|
const seg = rawSegments[i];
|
|
9356
9357
|
if (/^\d+$/.test(seg)) continue;
|
|
9357
|
-
if (rawSegments.length === 1) continue;
|
|
9358
9358
|
const path = base + "/" + rawSegments.slice(0, i + 1).join("/");
|
|
9359
9359
|
const label = breadcrumbSegmentLabelMap[seg] || seg.split("-").map((w) => w.charAt(0).toUpperCase() + w.slice(1)).join(" ");
|
|
9360
9360
|
const navigable = Boolean(matchRoutes(routeObjects, { pathname: path }));
|
|
9361
9361
|
result.push({ label, path, navigable });
|
|
9362
9362
|
}
|
|
9363
|
-
return result;
|
|
9363
|
+
return result.filter((s) => Boolean(s && s.label));
|
|
9364
9364
|
}, [pathname, selectedModule]);
|
|
9365
9365
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "app-bar", children: [
|
|
9366
9366
|
pathname === Pathname.DASHBOARD && /* @__PURE__ */ jsxRuntimeExports.jsx(Link, { style: { marginTop: "0.25rem" }, to: user ? Pathname.DASHBOARD : Pathname.LOGIN, children: /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: appLogo, alt: "logo", height: 55 }) }),
|
|
@@ -9488,4 +9488,4 @@ export {
|
|
|
9488
9488
|
default_1$5 as y,
|
|
9489
9489
|
List as z
|
|
9490
9490
|
};
|
|
9491
|
-
//# sourceMappingURL=appbar-
|
|
9491
|
+
//# sourceMappingURL=appbar-CHxm7L_f.esm.js.map
|