react-semaphor 0.0.293 → 0.0.295

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.
@@ -31312,19 +31312,19 @@ function UC(e) {
31312
31312
  const o = $e((V) => V.filteringCards), i = $e((V) => V.selectedSheetId), s = $e((V) => V.selectedLensId);
31313
31313
  $e((V) => V.selectedCardId), $e((V) => V.dashboard), $e(
31314
31314
  (V) => V.isDashboardEditing
31315
- );
31316
- const a = $e((V) => V.themeStyle), l = $e((V) => V.filterValues), c = fe(l), u = (G = e == null ? void 0 : e.preferences) == null ? void 0 : G.onClickFilter, {
31317
- addFilteringCard: d,
31318
- getCardFrame: h,
31319
- addOrUpdateFilterValues: p,
31320
- removeFilterValue: b,
31321
- removeFilteringCard: m
31322
- } = Nr(), { data: y, isLoading: v, isFetching: w, isError: _ } = hC(e), { data: S } = Fie(e), C = o == null ? void 0 : o.find(
31315
+ ), $e((V) => V.themeStyle);
31316
+ const a = $e((V) => V.filterValues), l = fe(a), c = (G = e == null ? void 0 : e.preferences) == null ? void 0 : G.onClickFilter, {
31317
+ addFilteringCard: u,
31318
+ getCardFrame: d,
31319
+ addOrUpdateFilterValues: h,
31320
+ removeFilterValue: p,
31321
+ removeFilteringCard: b
31322
+ } = Nr(), { data: m, isLoading: y, isFetching: v, isError: w, queryKey: _ } = hC(e), { data: S } = Fie(e), C = o == null ? void 0 : o.find(
31323
31323
  (V) => V.id === e.id
31324
- ), $ = h(e.id), O = ($ == null ? void 0 : $.cards) || [], D = (O == null ? void 0 : O.length) == 1;
31324
+ ), $ = d(e.id), O = ($ == null ? void 0 : $.cards) || [], D = (O == null ? void 0 : O.length) == 1;
31325
31325
  let A;
31326
- y && y.records && ((T = y.records) == null ? void 0 : T.length) > 0 && e.type !== "custom" && (A = lk({
31327
- data: y == null ? void 0 : y.records,
31326
+ m && m.records && ((T = m.records) == null ? void 0 : T.length) > 0 && e.type !== "custom" && (A = lk({
31327
+ data: m == null ? void 0 : m.records,
31328
31328
  cardType: e.type,
31329
31329
  cfg: e.cfg,
31330
31330
  customCfg: e.customCfg,
@@ -31335,30 +31335,30 @@ function UC(e) {
31335
31335
  filteringCards: o
31336
31336
  });
31337
31337
  xe(() => {
31338
- y != null && y.records && (C && D || r((V) => V + 1));
31338
+ !(m != null && m.records) || y || v || C && D || r((V) => V + 1);
31339
31339
  }, [
31340
- y == null ? void 0 : y.records,
31341
- // isFilteringCard, // don't uncommnt this this will cause the multi-card frame adhoc filter to not work as expected.
31340
+ m == null ? void 0 : m.records,
31341
+ y,
31342
+ v,
31343
+ C,
31342
31344
  D,
31343
- e.type,
31344
- e.cfg,
31345
+ ///// this is to update the dashboard card when chart properties are changed. For example vertical bar chart to horizontal bar chart.
31345
31346
  e.customCfg,
31346
- e.preferences,
31347
- a
31347
+ e.preferences
31348
31348
  ]), xe(() => {
31349
- e.connectionId && !C && (c.current = l);
31350
- }, [l, s, e.connectionId]), xe(() => {
31349
+ e.connectionId && !C && (l.current = a);
31350
+ }, [a, s, e.connectionId, C]), xe(() => {
31351
31351
  var H;
31352
31352
  C && (N.current.filteringCards = [...o || []]), !C && ((H = N.current.filteringCards) == null ? void 0 : H.find((K) => K.id === e.id)) && D && r((K) => K + 1);
31353
- }, [C]);
31353
+ }, [C, D, e.id, o]);
31354
31354
  function L(V, H, K, q) {
31355
31355
  var Y;
31356
31356
  let P = !1;
31357
- if (!(y != null && y.records))
31357
+ if (!(m != null && m.records))
31358
31358
  return;
31359
31359
  const B = Lie({
31360
31360
  card: e,
31361
- data: y == null ? void 0 : y.records,
31361
+ data: m == null ? void 0 : m.records,
31362
31362
  datasetIndex: H,
31363
31363
  clickIndex: K,
31364
31364
  value: q
@@ -31366,13 +31366,13 @@ function UC(e) {
31366
31366
  if (console.log("fieldValues", B), t == null || t(e, B), !!(((Y = e == null ? void 0 : e.preferences) == null ? void 0 : Y.onClickFilter) ?? []).length) {
31367
31367
  if (C) {
31368
31368
  const k = e.id;
31369
- b(k), m(e);
31369
+ p(k), b(e);
31370
31370
  } else {
31371
31371
  if (P = !0, !B)
31372
31372
  return;
31373
31373
  const k = [];
31374
31374
  B.forEach((te, ue) => {
31375
- const de = u == null ? void 0 : u.find((ie) => ie.columnIndex === ue);
31375
+ const de = c == null ? void 0 : c.find((ie) => ie.columnIndex === ue);
31376
31376
  if (!de)
31377
31377
  return;
31378
31378
  const me = {
@@ -31390,7 +31390,7 @@ function UC(e) {
31390
31390
  values: [B[de.columnIndex].columnValue]
31391
31391
  };
31392
31392
  k.push(me);
31393
- }), p(k), d(e);
31393
+ }), h(k), u(e);
31394
31394
  }
31395
31395
  Mie({
31396
31396
  chart: V,
@@ -31403,10 +31403,10 @@ function UC(e) {
31403
31403
  }
31404
31404
  }
31405
31405
  return {
31406
- isError: _,
31407
- isLoading: v,
31408
- isFetching: w,
31409
- data: y,
31406
+ isError: w,
31407
+ isLoading: y,
31408
+ isFetching: v,
31409
+ data: m,
31410
31410
  visualKey: n,
31411
31411
  handleDatapointClick: L,
31412
31412
  cfg: A
@@ -1,4 +1,4 @@
1
- import { c as q, p as hs, u as k, n as Fs, o as Oe, q as e, r as Ts, s as Is, t as O, j as Ds, v as Ms, w as Ls, x as Es, y as As, L as H, z as re, A as oa, E as ca, H as da, J as ua, K as rt, M as it, N as ot, O as Ys, Q as W, R as Je, V as ct, F as ha, W as We, Y as Ye, Z as Vs, _ as ma, $ as qs, a0 as fe, a1 as ge, a2 as je, a3 as be, a4 as ke, a5 as ye, a6 as J, T as Rs, a7 as d, a8 as _s, a9 as Hs, aa as $s, ab as xa, ac as pa, ad as xe, ae as dt, af as ut, ag as fa, ah as ht, C as mt, ai as xt, aj as ga, B as pt, ak as Ps, al as ft, am as Xs, an as ja, ao as Ns, ap as me, aq as we, ar as de, as as ms, at as ba, au as gt, av as jt, aw as ya, ax as bt, ay as yt, az as vt, aA as Ct, aB as Nt, aC as qe, aD as Ss, aE as St, a as wt, aF as Ke, aG as ws, aH as Ve, aI as ks, aJ as kt, aK as zt, aL as Ot, aM as Ft, aN as Tt, aO as It, aP as Cs, aQ as Dt, aR as Zs, aS as Mt, aT as ea, aU as Lt, aV as Et, aW as At, aX as va, aY as ce, aZ as Bs, a_ as Ca, a$ as Vt, b0 as qt, b1 as rs, b2 as Rt, b3 as _t, b4 as Ht, b5 as $t, b6 as Pt, b7 as Bt, b8 as Ut, l as Gt, b9 as xs, ba as Na, bb as Sa, bc as wa, bd as is, be as ka, bf as os, bg as sa, bh as Kt, bi as Qt, bj as ps, bk as fs, bl as gs, bm as Jt, bn as Wt, X as za, bo as Yt, bp as Xt, bq as Zt, br as js, bs as Ie, f as en, bt as Ge, bu as Oa, bv as sn, bw as an, bx as cs, by as tn, bz as nn, bA as ln, bB as aa, bC as rn, bD as on, bE as cn, bF as dn, bG as un, bH as hn, bI as mn, bJ as xn, bK as De, bL as U, bM as G, bN as Us, bO as K, bP as pn, bQ as Fa, bR as fn, bS as gn, bT as jn, bU as bn, bV as yn, bW as vn, bX as Cn, bY as Nn, bZ as Sn } from "./index-4ghd54jS.js";
1
+ import { c as q, p as hs, u as k, n as Fs, o as Oe, q as e, r as Ts, s as Is, t as O, j as Ds, v as Ms, w as Ls, x as Es, y as As, L as H, z as re, A as oa, E as ca, H as da, J as ua, K as rt, M as it, N as ot, O as Ys, Q as W, R as Je, V as ct, F as ha, W as We, Y as Ye, Z as Vs, _ as ma, $ as qs, a0 as fe, a1 as ge, a2 as je, a3 as be, a4 as ke, a5 as ye, a6 as J, T as Rs, a7 as d, a8 as _s, a9 as Hs, aa as $s, ab as xa, ac as pa, ad as xe, ae as dt, af as ut, ag as fa, ah as ht, C as mt, ai as xt, aj as ga, B as pt, ak as Ps, al as ft, am as Xs, an as ja, ao as Ns, ap as me, aq as we, ar as de, as as ms, at as ba, au as gt, av as jt, aw as ya, ax as bt, ay as yt, az as vt, aA as Ct, aB as Nt, aC as qe, aD as Ss, aE as St, a as wt, aF as Ke, aG as ws, aH as Ve, aI as ks, aJ as kt, aK as zt, aL as Ot, aM as Ft, aN as Tt, aO as It, aP as Cs, aQ as Dt, aR as Zs, aS as Mt, aT as ea, aU as Lt, aV as Et, aW as At, aX as va, aY as ce, aZ as Bs, a_ as Ca, a$ as Vt, b0 as qt, b1 as rs, b2 as Rt, b3 as _t, b4 as Ht, b5 as $t, b6 as Pt, b7 as Bt, b8 as Ut, l as Gt, b9 as xs, ba as Na, bb as Sa, bc as wa, bd as is, be as ka, bf as os, bg as sa, bh as Kt, bi as Qt, bj as ps, bk as fs, bl as gs, bm as Jt, bn as Wt, X as za, bo as Yt, bp as Xt, bq as Zt, br as js, bs as Ie, f as en, bt as Ge, bu as Oa, bv as sn, bw as an, bx as cs, by as tn, bz as nn, bA as ln, bB as aa, bC as rn, bD as on, bE as cn, bF as dn, bG as un, bH as hn, bI as mn, bJ as xn, bK as De, bL as U, bM as G, bN as Us, bO as K, bP as pn, bQ as Fa, bR as fn, bS as gn, bT as jn, bU as bn, bV as yn, bW as vn, bX as Cn, bY as Nn, bZ as Sn } from "./index-Ax3VyGG8.js";
2
2
  import * as ta from "react";
3
3
  import ze, { useState as R, useMemo as zs, useEffect as Z, useRef as Xe, Suspense as wn } from "react";
4
4
  import "react-dom";
@@ -2959,7 +2959,7 @@ function Xa(s) {
2959
2959
  const [t, a] = R(null);
2960
2960
  return Z(() => {
2961
2961
  s && (async () => {
2962
- const i = (await import("./lucide-react-3E-f4CQ5.js"))[s];
2962
+ const i = (await import("./lucide-react-lLTbaV0Q.js"))[s];
2963
2963
  a(i);
2964
2964
  })();
2965
2965
  }, [s]), t;