@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.
- package/dist/app.db.query.js +46 -42
- package/package.json +1 -1
package/dist/app.db.query.js
CHANGED
|
@@ -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
|
-
|
|
139863
|
-
|
|
139864
|
-
|
|
139865
|
-
|
|
139866
|
-
|
|
139867
|
-
|
|
139868
|
-
|
|
139869
|
-
|
|
139870
|
-
|
|
139871
|
-
|
|
139872
|
-
|
|
139873
|
-
|
|
139874
|
-
|
|
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
|
-
[
|
|
139878
|
-
),
|
|
139878
|
+
[u, a]
|
|
139879
|
+
), g = e == null ? void 0 : e.timezone;
|
|
139879
139880
|
Oe(() => {
|
|
139880
|
-
|
|
139881
|
-
|
|
139882
|
-
|
|
139883
|
-
|
|
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 (
|
|
139886
|
-
const
|
|
139887
|
-
|
|
139888
|
+
if (D) {
|
|
139889
|
+
const w = { ...D, deleted: !0 };
|
|
139890
|
+
u("selectedDeletedItems", [
|
|
139888
139891
|
...i || [],
|
|
139889
|
-
|
|
139890
|
-
]),
|
|
139892
|
+
w
|
|
139893
|
+
]), u("selectedTableItemId", -1);
|
|
139891
139894
|
}
|
|
139892
139895
|
}
|
|
139893
139896
|
};
|
|
139894
|
-
return window.addEventListener("keydown",
|
|
139895
|
-
window.removeEventListener("keydown",
|
|
139897
|
+
return window.addEventListener("keydown", x), () => {
|
|
139898
|
+
window.removeEventListener("keydown", x);
|
|
139896
139899
|
};
|
|
139897
|
-
}, [
|
|
139898
|
-
const
|
|
139899
|
-
(
|
|
139900
|
-
(
|
|
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
|
-
), [
|
|
139905
|
+
), [h, i]), { columns: y } = bGe(p), b = en(
|
|
139903
139906
|
() => ({
|
|
139904
|
-
columns:
|
|
139905
|
-
rows:
|
|
139906
|
-
loading:
|
|
139907
|
-
handleCellClick:
|
|
139907
|
+
columns: y,
|
|
139908
|
+
rows: M,
|
|
139909
|
+
loading: l,
|
|
139910
|
+
handleCellClick: f,
|
|
139908
139911
|
selectedRowId: r
|
|
139909
139912
|
}),
|
|
139910
|
-
[
|
|
139911
|
-
),
|
|
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: !!
|
|
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:
|
|
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 }));
|