@3sc/common-component 0.0.504 → 0.0.506

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 CHANGED
@@ -41684,17 +41684,17 @@ Y(vh)(({ theme: e }) => ({
41684
41684
  padding: "0!important"
41685
41685
  }
41686
41686
  }));
41687
- const Qz = (e) => /* @__PURE__ */ g.jsx(Dn, { children: /* @__PURE__ */ g.jsx(l7, { ...e }) }), c7 = ({ iconUrl: e, ...t }) => {
41688
- const [n, r] = De(!1), [o, i] = De(!1), a = It(), { t: l } = lt(Na);
41687
+ const Qz = (e) => /* @__PURE__ */ g.jsx(Dn, { children: /* @__PURE__ */ g.jsx(l7, { ...e }) }), c7 = ({ iconUrl: e, placeholder: t, ...n }) => {
41688
+ const [r, o] = De(!1), [i, a] = De(!1), l = It(), { t: c } = lt(Na);
41689
41689
  return /* @__PURE__ */ g.jsxs(
41690
41690
  Te,
41691
41691
  {
41692
41692
  sx: {
41693
41693
  display: "flex",
41694
41694
  alignItems: "center",
41695
- border: `0.1rem solid ${o ? a.palette.brandColor.orange : a.palette.primary.notifyBorderColor}`,
41695
+ border: `0.1rem solid ${i ? l.palette.brandColor.orange : l.palette.primary.notifyBorderColor}`,
41696
41696
  borderRadius: "0.7rem",
41697
- backgroundColor: a.palette.primary.notifyBackground,
41697
+ backgroundColor: l.palette.primary.notifyBackground,
41698
41698
  height: "3.2rem",
41699
41699
  paddingLeft: "0.5rem",
41700
41700
  overflow: "hidden",
@@ -41722,13 +41722,13 @@ const Qz = (e) => /* @__PURE__ */ g.jsx(Dn, { children: /* @__PURE__ */ g.jsx(l7
41722
41722
  {
41723
41723
  type: "text",
41724
41724
  onFocus: () => {
41725
- i(!0), r(!0);
41725
+ a(!0), o(!0);
41726
41726
  },
41727
41727
  onBlur: () => {
41728
- i(!1), r(!1);
41728
+ a(!1), o(!1);
41729
41729
  },
41730
41730
  initial: { width: "10rem" },
41731
- animate: { width: n ? "13rem" : "10rem" },
41731
+ animate: { width: r ? "13rem" : "10rem" },
41732
41732
  transition: { duration: 0.3, ease: "easeInOut" },
41733
41733
  style: {
41734
41734
  height: "3.007rem",
@@ -41738,12 +41738,12 @@ const Qz = (e) => /* @__PURE__ */ g.jsx(Dn, { children: /* @__PURE__ */ g.jsx(l7
41738
41738
  border: "none",
41739
41739
  backgroundColor: "transparent",
41740
41740
  padding: 0,
41741
- color: a.palette.primary.notifyTextColor,
41741
+ color: l.palette.primary.notifyTextColor,
41742
41742
  flex: 1,
41743
41743
  transition: "height 0.1s ease"
41744
41744
  },
41745
- placeholder: l(t.placeholder),
41746
- ...t
41745
+ placeholder: c(t),
41746
+ ...n
41747
41747
  }
41748
41748
  )
41749
41749
  ]
@@ -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)), console.log({ "table-helper": n, payload: D, gridPath: t }), await ru({ baseUrl: n, payload: 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)), console.log({ hide: n, payload: x, gridPath: r }), await ru({ baseUrl: n, payload: 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)), console.log({ "update-setting": e, payload: i, gridPath: r }), await ru({ baseUrl: e, payload: i }), a;
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)), console.log({ pagination: n, payload, gridPath: p }), await ru({ baseUrl: n, payload: 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) => (console.log(r(l == null ? void 0 : l.title), l == null ? void 0 : l.title, r), l != null && l.link ? /* @__PURE__ */ g.jsx(
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
  };