@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
|
@@ -6640,7 +6640,7 @@ const DynamicInput = React.memo((props) => {
|
|
|
6640
6640
|
value: props.type === "number" && typeof field.value === "number" ? (props == null ? void 0 : props.shouldApplyPrecission) === false || ["exchange_rate"].includes(props.name) ? field.value : (() => {
|
|
6641
6641
|
var _a2, _b2;
|
|
6642
6642
|
const step = props == null ? void 0 : props.float_step;
|
|
6643
|
-
const decimalPlaces = step && step !== "any" ? ((_a2 = String(step).split(".")[1]) == null ? void 0 : _a2.length) ?? 2 : ((_b2 = apiConfig.getApiConfigSafe()) == null ? void 0 : _b2.countryEnv) === "
|
|
6643
|
+
const decimalPlaces = step && step !== "any" ? ((_a2 = String(step).split(".")[1]) == null ? void 0 : _a2.length) ?? 2 : ((_b2 = apiConfig.getApiConfigSafe()) == null ? void 0 : _b2.countryEnv) === "ksa" ? 4 : 2;
|
|
6644
6644
|
console.log("+++++++", field.value, decimalPlaces);
|
|
6645
6645
|
return Number(field.value.toFixed(decimalPlaces)).toString();
|
|
6646
6646
|
})() : field.value || "",
|
|
@@ -8377,6 +8377,7 @@ function AppSwitcher({ erp_modules, selectedModule }) {
|
|
|
8377
8377
|
}
|
|
8378
8378
|
function Breadcrumb({ selectedModule, segments }) {
|
|
8379
8379
|
const navigate = reactRouterDom.useNavigate();
|
|
8380
|
+
const validSegments = segments;
|
|
8380
8381
|
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(jsxRuntime.jsxRuntimeExports.Fragment, { children: [
|
|
8381
8382
|
selectedModule && /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("button", { className: "back-btn", type: "button", "aria-label": "Go back", onClick: () => window.history.back(), children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(IconBack, {}) }),
|
|
8382
8383
|
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs("nav", { className: "crumb-path", children: [
|
|
@@ -8384,9 +8385,9 @@ function Breadcrumb({ selectedModule, segments }) {
|
|
|
8384
8385
|
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("span", { className: "mp-icon", children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("img", { src: selectedModule.icon, alt: "", width: 12, height: 12, className: "mp-icon-img" }) }),
|
|
8385
8386
|
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("span", { className: "mp-name", children: selectedModule.label })
|
|
8386
8387
|
] }),
|
|
8387
|
-
selectedModule &&
|
|
8388
|
-
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(IconChevron, {}),
|
|
8389
|
-
i ===
|
|
8388
|
+
selectedModule && validSegments.map((seg, i) => /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(React.Fragment, { children: [
|
|
8389
|
+
(i > 0 || selectedModule) && /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(IconChevron, {}),
|
|
8390
|
+
i === validSegments.length - 1 ? /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("span", { className: "cp-current", children: seg.label }) : seg.navigable === false ? /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("span", { className: "cp-text", children: seg.label }) : /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("button", { className: "cp-link", type: "button", onClick: () => navigate(seg.path), children: seg.label })
|
|
8390
8391
|
] }, i))
|
|
8391
8392
|
] })
|
|
8392
8393
|
] });
|
|
@@ -9372,13 +9373,12 @@ function Header(props) {
|
|
|
9372
9373
|
for (let i = 0; i < rawSegments.length; i++) {
|
|
9373
9374
|
const seg = rawSegments[i];
|
|
9374
9375
|
if (/^\d+$/.test(seg)) continue;
|
|
9375
|
-
if (rawSegments.length === 1) continue;
|
|
9376
9376
|
const path = base + "/" + rawSegments.slice(0, i + 1).join("/");
|
|
9377
9377
|
const label = routePageMap.breadcrumbSegmentLabelMap[seg] || seg.split("-").map((w) => w.charAt(0).toUpperCase() + w.slice(1)).join(" ");
|
|
9378
9378
|
const navigable = Boolean(reactRouterDom.matchRoutes(routeObjects, { pathname: path }));
|
|
9379
9379
|
result.push({ label, path, navigable });
|
|
9380
9380
|
}
|
|
9381
|
-
return result;
|
|
9381
|
+
return result.filter((s) => Boolean(s && s.label));
|
|
9382
9382
|
}, [pathname, selectedModule]);
|
|
9383
9383
|
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs("div", { className: "app-bar", children: [
|
|
9384
9384
|
pathname === pathname_rental.Pathname.DASHBOARD && /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(reactRouterDom.Link, { style: { marginTop: "0.25rem" }, to: user ? pathname_rental.Pathname.DASHBOARD : pathname_rental.Pathname.LOGIN, children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("img", { src: appLogo, alt: "logo", height: 55 }) }),
|
|
@@ -9501,4 +9501,4 @@ exports.resolveComponentProps = resolveComponentProps;
|
|
|
9501
9501
|
exports.useRtl = useRtl;
|
|
9502
9502
|
exports.useSlotProps = useSlotProps;
|
|
9503
9503
|
exports.useTheme = useTheme;
|
|
9504
|
-
//# sourceMappingURL=appbar-
|
|
9504
|
+
//# sourceMappingURL=appbar-Bb4MdbyO.js.map
|