@conboai/app.db.query 0.9.52 → 0.9.53

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.
@@ -143226,11 +143226,9 @@ const dZe = (e = [], t) => {
143226
143226
  innerLoading: l = !1,
143227
143227
  isError: c,
143228
143228
  unit: d,
143229
- runId: h,
143230
- loadError: f,
143231
- setLoadError: m
143229
+ runId: h
143232
143230
  }) => {
143233
- const { timezone: g } = Ke($t), y = !!(c || f), b = () => {
143231
+ const { timezone: f } = Ke($t), [m, g] = Pe(!1), y = !!(c || m), b = () => {
143234
143232
  !y && !l && s && s(r);
143235
143233
  };
143236
143234
  return /* @__PURE__ */ te.jsxs(Ve, { sx: zZe, children: [
@@ -143246,7 +143244,7 @@ const dZe = (e = [], t) => {
143246
143244
  imageUrl: e,
143247
143245
  shapeCoordinates: a,
143248
143246
  isError: y,
143249
- onImageError: () => m && m(!0)
143247
+ onImageError: () => g == null ? void 0 : g(!0)
143250
143248
  }
143251
143249
  )
143252
143250
  ] }),
@@ -143312,7 +143310,7 @@ const dZe = (e = [], t) => {
143312
143310
  sx: Ji,
143313
143311
  width: 80
143314
143312
  }
143315
- ) : !y && /* @__PURE__ */ te.jsx(la, { title: "Time", placement: Wi.TOP, arrow: !0, children: /* @__PURE__ */ te.jsx(Ve, { sx: Il, children: /* @__PURE__ */ te.jsx(At, { sx: Ji, children: X3(o, g) }) }) }),
143313
+ ) : !y && /* @__PURE__ */ te.jsx(la, { title: "Time", placement: Wi.TOP, arrow: !0, children: /* @__PURE__ */ te.jsx(Ve, { sx: Il, children: /* @__PURE__ */ te.jsx(At, { sx: Ji, children: X3(o, f) }) }) }),
143316
143314
  l ? /* @__PURE__ */ te.jsx(
143317
143315
  dm,
143318
143316
  {
@@ -143605,33 +143603,31 @@ const dZe = (e = [], t) => {
143605
143603
  isFovShown: t = !1,
143606
143604
  isRegionsShown: n = !1,
143607
143605
  isCrossesChecked: r = !1,
143608
- loadError: o = !1,
143609
- setLoadError: i
143606
+ loadError: o = !1
143610
143607
  }) => {
143611
- const [s, a] = Pe(!1), [l, c] = Pe(null), d = e == null ? void 0 : e.find(
143612
- (m) => m.feedId === l
143613
- ), h = () => a(!1), f = (m) => {
143614
- a(!0), c(m);
143608
+ const [i, s] = Pe(!1), [a, l] = Pe(null), c = e == null ? void 0 : e.find(
143609
+ (f) => f.feedId === a
143610
+ ), d = () => s(!1), h = (f) => {
143611
+ s(!0), l(f);
143615
143612
  };
143616
143613
  return /* @__PURE__ */ te.jsxs(XJ, { sx: OZe(!e.length), children: [
143617
143614
  e.length ? e == null ? void 0 : e.map(
143618
- ({ fov: m, regions: g, crosses: y, ...b }) => {
143619
- const C = KZe({
143620
- fov: m,
143621
- regions: g,
143622
- crosses: y,
143623
- fovCondition: !!(t && m && Object.keys(m).length),
143624
- regionsCondition: !!(n && g && Object.keys(g).length),
143625
- crossesCondition: !!(r && y && Object.keys(y).length)
143615
+ ({ fov: f, regions: m, crosses: g, ...y }) => {
143616
+ const b = KZe({
143617
+ fov: f,
143618
+ regions: m,
143619
+ crosses: g,
143620
+ fovCondition: !!(t && f && Object.keys(f).length),
143621
+ regionsCondition: !!(n && m && Object.keys(m).length),
143622
+ crossesCondition: !!(r && g && Object.keys(g).length)
143626
143623
  });
143627
143624
  return /* @__PURE__ */ te.jsx(
143628
143625
  UZe,
143629
143626
  {
143630
- ...b,
143631
- onClick: f,
143632
- shapeCoordinates: C,
143633
- loadError: o,
143634
- setLoadError: i
143627
+ ...y,
143628
+ onClick: h,
143629
+ shapeCoordinates: b,
143630
+ loadError: o
143635
143631
  }
143636
143632
  );
143637
143633
  }
@@ -143639,9 +143635,9 @@ const dZe = (e = [], t) => {
143639
143635
  /* @__PURE__ */ te.jsx(
143640
143636
  QZe,
143641
143637
  {
143642
- open: s,
143643
- onClose: h,
143644
- imageData: d
143638
+ open: i,
143639
+ onClose: d,
143640
+ imageData: c
143645
143641
  }
143646
143642
  )
143647
143643
  ] });
@@ -143877,28 +143873,31 @@ const dZe = (e = [], t) => {
143877
143873
  clearClosestSnapshots: r,
143878
143874
  latestSnapshots: o,
143879
143875
  resetInnerError: i
143880
- } = Zl(), { fovInfos: s, clearFovInfos: a, regions: l } = Mo(), [c] = Ke((x) => [x.newFeeds]), [d, h] = Pe(!1), { checkboxes: f, isFovChecked: m, isRegionsChecked: g, isCrossesChecked: y } = XZe(), b = Yt(
143881
- () => qZe({
143882
- latestSnapshots: n.length ? n : o,
143883
- fovInfos: s,
143884
- baseUrl: e,
143885
- feeds: c,
143886
- regions: l
143887
- }).filter((x) => x.unit),
143876
+ } = Zl(), { fovInfos: s, clearFovInfos: a, regions: l } = Mo(), [c] = Ke((C) => [C.newFeeds]), { checkboxes: d, isFovChecked: h, isRegionsChecked: f, isCrossesChecked: m } = XZe(), g = Yt(
143877
+ () => {
143878
+ const C = n.length ? n : o;
143879
+ return qZe({
143880
+ latestSnapshots: C,
143881
+ fovInfos: s,
143882
+ baseUrl: e,
143883
+ feeds: c,
143884
+ regions: l
143885
+ }).filter((v) => v.unit);
143886
+ },
143888
143887
  [n, o, s, e, c, l]
143889
- ), C = Yt(
143890
- () => jee(b.length),
143891
- [b.length]
143892
- ), v = lt(() => {
143893
- r(), a(), i(), h(!1), t();
143888
+ ), y = Yt(
143889
+ () => jee(g.length),
143890
+ [g.length]
143891
+ ), b = lt(() => {
143892
+ r(), a(), i(), t();
143894
143893
  }, [r, a, t, i]);
143895
143894
  return /* @__PURE__ */ te.jsxs(Ve, { sx: DZe, children: [
143896
143895
  /* @__PURE__ */ te.jsx(
143897
143896
  Bte,
143898
143897
  {
143899
- checkboxes: f,
143900
- infoText: C,
143901
- onClick: v,
143898
+ checkboxes: d,
143899
+ infoText: y,
143900
+ onClick: b,
143902
143901
  btnTitle: "Now",
143903
143902
  icon: "refresh",
143904
143903
  isRefreshShown: !0
@@ -143907,12 +143906,10 @@ const dZe = (e = [], t) => {
143907
143906
  /* @__PURE__ */ te.jsx(
143908
143907
  ZZe,
143909
143908
  {
143910
- imagesData: b,
143911
- isFovShown: m,
143912
- isRegionsShown: g,
143913
- isCrossesChecked: y,
143914
- loadError: d,
143915
- setLoadError: h
143909
+ imagesData: g,
143910
+ isFovShown: h,
143911
+ isRegionsShown: f,
143912
+ isCrossesChecked: m
143916
143913
  }
143917
143914
  )
143918
143915
  ] });
@@ -6,7 +6,6 @@ type ImageGridProps = {
6
6
  isRegionsShown?: boolean;
7
7
  isCrossesChecked?: boolean;
8
8
  loadError?: boolean;
9
- setLoadError: (value: boolean) => void;
10
9
  };
11
- declare const ImageGrid: ({ imagesData, isFovShown, isRegionsShown, isCrossesChecked, loadError, setLoadError }: ImageGridProps) => import("react/jsx-runtime").JSX.Element;
10
+ declare const ImageGrid: ({ imagesData, isFovShown, isRegionsShown, isCrossesChecked, loadError }: ImageGridProps) => import("react/jsx-runtime").JSX.Element;
12
11
  export default ImageGrid;
@@ -14,7 +14,6 @@ export type ImageItemType = {
14
14
  unit: string;
15
15
  runId: number;
16
16
  loadError?: boolean;
17
- setLoadError?: (value: boolean) => void;
18
17
  };
19
- declare const ImageItem: ({ url, displayName, name, feedId, captureTime, delay, onClick, shapeCoordinates, innerLoading, isError, unit, runId, loadError, setLoadError }: ImageItemType) => import("react/jsx-runtime").JSX.Element;
18
+ declare const ImageItem: ({ url, displayName, name, feedId, captureTime, delay, onClick, shapeCoordinates, innerLoading, isError, unit, runId, }: ImageItemType) => import("react/jsx-runtime").JSX.Element;
20
19
  export default ImageItem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conboai/app.db.query",
3
- "version": "0.9.52",
3
+ "version": "0.9.53",
4
4
  "type": "module",
5
5
  "main": "dist/app.db.query.js",
6
6
  "types": "dist/build/index.d.ts",