@3sc/common-component 0.0.504 → 0.0.505
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/index.es.js +6 -9
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -44016,7 +44016,6 @@ const nC = {
|
|
|
44016
44016
|
TENANT_IDS: id == null ? void 0 : id.tenant_id,
|
|
44017
44017
|
SNOP_IDS: od == null ? void 0 : od.snop_id
|
|
44018
44018
|
}, { TENANT_ID: dz, BU_ID: fz } = tC, { TENANT_IDS: pz, BU_IDS: hz } = nC, ru = async ({ baseUrl: e, payload: t }) => {
|
|
44019
|
-
console.log({ api: e, payload: t });
|
|
44020
44019
|
try {
|
|
44021
44020
|
const n = `${e}${nu.SETTING}/v1?${dz}=${pz}&${fz}=${hz}`;
|
|
44022
44021
|
return await kt.post(n, t, La);
|
|
@@ -44062,7 +44061,6 @@ const nC = {
|
|
|
44062
44061
|
}
|
|
44063
44062
|
(async () => {
|
|
44064
44063
|
try {
|
|
44065
|
-
console.log({ definitions: c, defaultUserSettings: u, labels: d, data: a, missing: E, gridSettingsMap: h, _userSettings: k, _localSetting: y, grid_settings: m, gridPath: t, objectPaths: p });
|
|
44066
44064
|
const D = { ...y || {
|
|
44067
44065
|
platform: { theme: "light" }
|
|
44068
44066
|
} }, N = (m == null ? void 0 : m.pageSize) ?? o;
|
|
@@ -44074,7 +44072,7 @@ const nC = {
|
|
|
44074
44072
|
pageSize: N
|
|
44075
44073
|
} : (P[A] = { ...P[A] || {} }, P = P[A]);
|
|
44076
44074
|
}
|
|
44077
|
-
localStorage.setItem(Nr.SETTINGS, JSON.stringify(D)),
|
|
44075
|
+
localStorage.setItem(Nr.SETTINGS, JSON.stringify(D)), await ru({ baseUrl: n, payload: D });
|
|
44078
44076
|
} catch (M) {
|
|
44079
44077
|
console.error(M);
|
|
44080
44078
|
}
|
|
@@ -44626,7 +44624,7 @@ const Oz = we.memo(
|
|
|
44626
44624
|
pageSize: O
|
|
44627
44625
|
} : (v[E] = { ...v[E] || {} }, v = v[E]);
|
|
44628
44626
|
}
|
|
44629
|
-
localStorage.setItem(Nr.SETTINGS, JSON.stringify(x)),
|
|
44627
|
+
localStorage.setItem(Nr.SETTINGS, JSON.stringify(x)), await ru({ baseUrl: n, payload: x });
|
|
44630
44628
|
};
|
|
44631
44629
|
return { selectedColumn: a, handleMenuClick: c, handleClose: u, handleHideClick: d, columnUpdaterFunction: f };
|
|
44632
44630
|
}, Rz = (e) => {
|
|
@@ -44696,7 +44694,7 @@ const Oz = we.memo(
|
|
|
44696
44694
|
}, Pz = async ({ baseUrl: e, gridSetting: t, childUniqueKey: n, gridPath: r }) => {
|
|
44697
44695
|
try {
|
|
44698
44696
|
const o = JSON.parse(localStorage.getItem("settings")), { settingObject: i, defaultUserSettings: a } = Mz({ presentSetting: o, gridSetting: t, gridPath: r, childUniqueKey: n });
|
|
44699
|
-
return localStorage.setItem("settings", JSON.stringify(i)),
|
|
44697
|
+
return localStorage.setItem("settings", JSON.stringify(i)), await ru({ baseUrl: e, payload: i }), a;
|
|
44700
44698
|
} catch (o) {
|
|
44701
44699
|
console.error(o);
|
|
44702
44700
|
}
|
|
@@ -44739,7 +44737,7 @@ const Oz = we.memo(
|
|
|
44739
44737
|
pageSize: f
|
|
44740
44738
|
} : (w[x] = { ...w[x] || {} }, w = w[x]);
|
|
44741
44739
|
}
|
|
44742
|
-
localStorage.setItem(m, JSON.stringify(b)),
|
|
44740
|
+
localStorage.setItem(m, JSON.stringify(b)), await ru({ baseUrl: n, payload: b });
|
|
44743
44741
|
};
|
|
44744
44742
|
return /* @__PURE__ */ g.jsxs(
|
|
44745
44743
|
Te,
|
|
@@ -45886,10 +45884,9 @@ fC.propTypes = {
|
|
|
45886
45884
|
isDefaultConfig: s.bool
|
|
45887
45885
|
};
|
|
45888
45886
|
const pC = ({ list: e, handleLinkClick: t }) => {
|
|
45889
|
-
console.log({ list: e });
|
|
45890
45887
|
const n = It(), { t: r } = lt(Na), o = ({ list: i }) => {
|
|
45891
45888
|
var a;
|
|
45892
|
-
return (a = i == null ? void 0 : i.sort((l, c) => l.order - c.order)) == null ? void 0 : a.map((l, c) =>
|
|
45889
|
+
return (a = i == null ? void 0 : i.sort((l, c) => l.order - c.order)) == null ? void 0 : a.map((l, c) => l != null && l.link ? /* @__PURE__ */ g.jsx(
|
|
45893
45890
|
Xr,
|
|
45894
45891
|
{
|
|
45895
45892
|
component: "h3",
|
|
@@ -45915,7 +45912,7 @@ const pC = ({ list: e, handleLinkClick: t }) => {
|
|
|
45915
45912
|
children: r(l == null ? void 0 : l.title)
|
|
45916
45913
|
},
|
|
45917
45914
|
c
|
|
45918
|
-
))
|
|
45915
|
+
));
|
|
45919
45916
|
};
|
|
45920
45917
|
return /* @__PURE__ */ g.jsx(Qv, { separator: /* @__PURE__ */ g.jsx(hn, { url: rt.ArrowRight }), children: o({ list: e }) });
|
|
45921
45918
|
};
|