@conboai/app.db.query 0.8.69 → 0.8.71

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.
@@ -131012,9 +131012,12 @@ const Ii = Wl((e) => ({
131012
131012
  getTopOne: async ({ requestBody: t }) => {
131013
131013
  e({ detailsLoading: "pending", error: null });
131014
131014
  try {
131015
- const n = await Bk.top1ControllerGetTop1Batch(t), r = ut.getState().editTabData;
131016
- r("topOne", n.items), e(() => ({
131017
- topOne: n.items,
131015
+ const n = await Bk.top1ControllerGetTop1Batch(t), r = ut.getState().editTabData, o = n.items.map((i) => ({
131016
+ ...i,
131017
+ element_serial_number: i.elementSerialNumber
131018
+ }));
131019
+ r("topOne", o), e(() => ({
131020
+ topOne: o,
131018
131021
  detailsLoading: "done"
131019
131022
  }));
131020
131023
  } catch (n) {
@@ -131239,7 +131242,7 @@ const Ii = Wl((e) => ({
131239
131242
  label: ys(s),
131240
131243
  subLabel: ys(i)
131241
131244
  };
131242
- }), GQe = (e) => ({
131245
+ }), GQe = (e, t) => ({
131243
131246
  position: "relative",
131244
131247
  top: 0,
131245
131248
  right: 0,
@@ -131256,6 +131259,7 @@ const Ii = Wl((e) => ({
131256
131259
  width: "100%",
131257
131260
  marginBottom: e ? "16px" : "5px",
131258
131261
  alignItems: "center",
131262
+ cursor: t ? "pointer" : "default",
131259
131263
  ".MuiTypography-root": {
131260
131264
  fontSize: "14px"
131261
131265
  }
@@ -131286,14 +131290,25 @@ const Ii = Wl((e) => ({
131286
131290
  isExpandedAllowed: o = !1
131287
131291
  }) => {
131288
131292
  const [i, s] = Ue(!1), a = () => {
131289
- s((l) => !l);
131293
+ o && s((l) => !l);
131290
131294
  };
131291
131295
  return /* @__PURE__ */ se.jsxs(Xe, { mb: i ? "24px" : "5px", children: [
131292
- /* @__PURE__ */ se.jsxs(Xe, { sx: GQe(i), children: [
131293
- /* @__PURE__ */ se.jsx(Wt, { sx: XQe, children: n }),
131294
- /* @__PURE__ */ se.jsx(Wt, { sx: JQe, children: t }),
131295
- o && /* @__PURE__ */ se.jsx(Xe, { sx: KQe, children: /* @__PURE__ */ se.jsx(ug, { onClick: a, sx: ZQe, children: i ? /* @__PURE__ */ se.jsx(tHe, {}) : /* @__PURE__ */ se.jsx(eHe, {}) }) })
131296
- ] }),
131296
+ /* @__PURE__ */ se.jsxs(
131297
+ Xe,
131298
+ {
131299
+ sx: GQe(i, o),
131300
+ onClick: a,
131301
+ children: [
131302
+ /* @__PURE__ */ se.jsxs(Wt, { sx: XQe, children: [
131303
+ n,
131304
+ "/",
131305
+ e == null ? void 0 : e.element_serial_number
131306
+ ] }),
131307
+ /* @__PURE__ */ se.jsx(Wt, { sx: JQe, children: t }),
131308
+ o && /* @__PURE__ */ se.jsx(Xe, { sx: KQe, children: /* @__PURE__ */ se.jsx(ug, { sx: ZQe, children: i ? /* @__PURE__ */ se.jsx(tHe, {}) : /* @__PURE__ */ se.jsx(eHe, {}) }) })
131309
+ ]
131310
+ }
131311
+ ),
131297
131312
  /* @__PURE__ */ se.jsx(bse, { in: i, children: /* @__PURE__ */ se.jsx(
131298
131313
  fZ,
131299
131314
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conboai/app.db.query",
3
- "version": "0.8.69",
3
+ "version": "0.8.71",
4
4
  "type": "module",
5
5
  "main": "dist/app.db.query.js",
6
6
  "types": "dist/build/index.d.ts",