@conboai/app.db.query 0.8.60 → 0.8.61

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.
@@ -139449,7 +139449,7 @@ const uGe = async ({
139449
139449
  const t = GN(), { findAllReids: n } = WN(), { getDetectionsInfo: r, abortDetectionsRequests: o } = Z0(), { isRequestAborted: i, shouldFetchData: s, conboMatchInputValue: a } = ut(yn), [l] = ut((f) => [f.editTabData]), u = vt(
139450
139450
  async (f) => {
139451
139451
  try {
139452
- l("title", f.conboKey), l("color", "yellow"), await n(f), l("color", "green"), l("shouldFetchData", !0), i && l("isRequestAborted", !1);
139452
+ l("title", f.conboKey), l("color", "yellow"), await n(f), l("color", "green"), l("shouldFetchData", !0), l("isNewSearch", !0), i && l("isRequestAborted", !1);
139453
139453
  } catch {
139454
139454
  l("color", "red");
139455
139455
  }
@@ -139858,57 +139858,60 @@ const uGe = async ({
139858
139858
  detectionsInfo: n,
139859
139859
  selectedTableItemId: r,
139860
139860
  title: o,
139861
- selectedDeletedItems: i
139862
- } = ut(yn), { fetchRightPanelData: s } = VN(), { loading: a } = WN(), [l, u] = ut((v) => [
139863
- v.editTabData,
139864
- v.newFeeds
139865
- ]), p = cGe(t, n), h = vt(
139866
- (v) => {
139867
- var x;
139868
- l("selectedTableItemId", (x = v == null ? void 0 : v.row) == null ? void 0 : x.conbo_key), s({
139869
- requestBody: { conbo_keys: [v.row.conbo_key] },
139870
- conboKey: v.row.conbo_key,
139871
- startTime: v.row.startTime,
139872
- endTime: v.row.endTime,
139873
- assignedFeedId: v.row.assigned_feed_id,
139874
- timeInfo: v.row.startTime
139861
+ selectedDeletedItems: i,
139862
+ isNewSearch: s
139863
+ } = ut(yn), { fetchRightPanelData: a } = VN(), { loading: l } = WN(), [u, p] = ut((x) => [
139864
+ x.editTabData,
139865
+ x.newFeeds
139866
+ ]), h = cGe(t, n), f = vt(
139867
+ (x) => {
139868
+ var T;
139869
+ u("selectedTableItemId", (T = x == null ? void 0 : x.row) == null ? void 0 : T.conbo_key), a({
139870
+ requestBody: { conbo_keys: [x.row.conbo_key] },
139871
+ conboKey: x.row.conbo_key,
139872
+ startTime: x.row.startTime,
139873
+ endTime: x.row.endTime,
139874
+ assignedFeedId: x.row.assigned_feed_id,
139875
+ timeInfo: x.row.startTime
139875
139876
  });
139876
139877
  },
139877
- [l, s]
139878
- ), f = e == null ? void 0 : e.timezone;
139878
+ [u, a]
139879
+ ), g = e == null ? void 0 : e.timezone;
139879
139880
  Oe(() => {
139880
- const v = (x) => {
139881
- if (x.ctrlKey && x.shiftKey && x.key === "4") {
139882
- const T = p.find(
139883
- (D) => D.conbo_key === r
139881
+ s && (u("selectedDeletedItems", []), u("isNewSearch", !1));
139882
+ }, [u, s]), Oe(() => {
139883
+ const x = (T) => {
139884
+ if (T.ctrlKey && T.shiftKey && T.key === "4") {
139885
+ const D = h.find(
139886
+ (w) => w.conbo_key === r
139884
139887
  );
139885
- if (T) {
139886
- const D = { ...T, deleted: !0 };
139887
- l("selectedDeletedItems", [
139888
+ if (D) {
139889
+ const w = { ...D, deleted: !0 };
139890
+ u("selectedDeletedItems", [
139888
139891
  ...i || [],
139889
- D
139890
- ]), l("selectedTableItemId", -1);
139892
+ w
139893
+ ]), u("selectedTableItemId", -1);
139891
139894
  }
139892
139895
  }
139893
139896
  };
139894
- return window.addEventListener("keydown", v), () => {
139895
- window.removeEventListener("keydown", v);
139897
+ return window.addEventListener("keydown", x), () => {
139898
+ window.removeEventListener("keydown", x);
139896
139899
  };
139897
- }, [p, r, l, i]);
139898
- const g = en(() => p.filter(
139899
- (v) => !(i != null && i.some(
139900
- (x) => x.conbo_key === v.conbo_key
139900
+ }, [h, r, u, i]);
139901
+ const M = en(() => h.filter(
139902
+ (x) => !(i != null && i.some(
139903
+ (T) => T.conbo_key === x.conbo_key
139901
139904
  ))
139902
- ), [p, i]), { columns: M } = bGe(u), y = en(
139905
+ ), [h, i]), { columns: y } = bGe(p), b = en(
139903
139906
  () => ({
139904
- columns: M,
139905
- rows: g,
139906
- loading: a,
139907
- handleCellClick: h,
139907
+ columns: y,
139908
+ rows: M,
139909
+ loading: l,
139910
+ handleCellClick: f,
139908
139911
  selectedRowId: r
139909
139912
  }),
139910
- [M, g, a, h, r]
139911
- ), b = en(() => vGe(y), [y]), N = en(() => xGe(), []);
139913
+ [y, M, l, f, r]
139914
+ ), N = en(() => vGe(b), [b]), v = en(() => xGe(), []);
139912
139915
  return /* @__PURE__ */ ae.jsxs(ae.Fragment, { children: [
139913
139916
  /* @__PURE__ */ ae.jsxs(
139914
139917
  Xe,
@@ -139919,11 +139922,11 @@ const uGe = async ({
139919
139922
  justifyContent: "space-between",
139920
139923
  children: [
139921
139924
  o && /* @__PURE__ */ ae.jsx(Wt, { fontWeight: 500, fontSize: 20, children: o }),
139922
- /* @__PURE__ */ ae.jsx(Wt, { fontSize: 16, children: !!p.length && CGe(/* @__PURE__ */ new Date(), f) })
139925
+ /* @__PURE__ */ ae.jsx(Wt, { fontSize: 16, children: !!h.length && CGe(/* @__PURE__ */ new Date(), g) })
139923
139926
  ]
139924
139927
  }
139925
139928
  ),
139926
- /* @__PURE__ */ ae.jsx(Xe, { children: /* @__PURE__ */ ae.jsx(_c, { tabsContent: b, tabs: N, tabsWidth: "40%" }) })
139929
+ /* @__PURE__ */ ae.jsx(Xe, { children: /* @__PURE__ */ ae.jsx(_c, { tabsContent: N, tabs: v, tabsWidth: "40%" }) })
139927
139930
  ] });
139928
139931
  }, DGe = (e) => {
139929
139932
  const {
@@ -139999,12 +140002,13 @@ const uGe = async ({
139999
140002
  z.editTabData
140000
140003
  ]), { handleTabActions: T } = DGe(n);
140001
140004
  if (Tp(r), wp(t), Oe(() => (document.title = vs.CONBO_MATCH, p(), () => {
140002
- f(), y(), g(), v();
140005
+ f(), y(), g(), v(), x("selectedDeletedItems", []);
140003
140006
  }), [
140004
140007
  y,
140005
140008
  g,
140006
140009
  f,
140007
140010
  v,
140011
+ x,
140008
140012
  p
140009
140013
  ]), Oe(() => {
140010
140014
  M || (u({ siteId: t }), h({ deploymentId: t }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conboai/app.db.query",
3
- "version": "0.8.60",
3
+ "version": "0.8.61",
4
4
  "type": "module",
5
5
  "main": "dist/app.db.query.js",
6
6
  "types": "dist/build/index.d.ts",