react-semaphor 0.0.422 → 0.0.424

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.
@@ -13513,17 +13513,17 @@ function ZV() {
13513
13513
  };
13514
13514
  }
13515
13515
  function ej(e) {
13516
- const t = se((s) => s.selectedLensId), n = e.queryConfig, { sheetFilterValues: r } = ZV(), o = (e == null ? void 0 : e.sql) || "", i = tj((e == null ? void 0 : e.python) || "");
13516
+ const t = se((l) => l.selectedLensId), { filterColumns: n, ...r } = e.queryConfig || {}, { sheetFilterValues: o } = ZV(), i = (e == null ? void 0 : e.sql) || "", a = tj((e == null ? void 0 : e.python) || "");
13517
13517
  return { queryKey: [
13518
13518
  "query",
13519
13519
  e == null ? void 0 : e.id,
13520
13520
  e == null ? void 0 : e.title,
13521
- o,
13522
13521
  i,
13522
+ a,
13523
13523
  t || "",
13524
- JSON.stringify(r),
13525
- JSON.stringify(n)
13526
- ], sql: o, sheetFilterValues: r };
13524
+ JSON.stringify(o),
13525
+ JSON.stringify(r)
13526
+ ], sql: i, sheetFilterValues: o };
13527
13527
  }
13528
13528
  function tj(e) {
13529
13529
  return e === kD ? "" : e;
@@ -13553,7 +13553,7 @@ function Ps(e, t, n) {
13553
13553
  }
13554
13554
  const fr = tx()(
13555
13555
  CD((e, t) => ({
13556
- isDevMode: !1,
13556
+ isDevMode: !0,
13557
13557
  userInputForAI: "",
13558
13558
  triggerAIRun: !1,
13559
13559
  showAIDialog: !1,
@@ -13587,6 +13587,35 @@ const fr = tx()(
13587
13587
  activeCardId: ""
13588
13588
  },
13589
13589
  actions: {
13590
+ updateEditorCardFilterValue: (n, r) => {
13591
+ e((o) => {
13592
+ var a, s, l;
13593
+ const i = (s = (a = o.card.queryConfig) == null ? void 0 : a.filters) == null ? void 0 : s.find(
13594
+ (c) => c.filterColumnName === n
13595
+ );
13596
+ i ? i.filterValue = r : o.card.queryConfig = {
13597
+ ...o.card.queryConfig,
13598
+ filters: [
13599
+ ...((l = o.card.queryConfig) == null ? void 0 : l.filters) || [],
13600
+ { filterColumnName: n, filterValue: r, exclude: !1 }
13601
+ ]
13602
+ };
13603
+ });
13604
+ },
13605
+ removeEditorCardFilter: (n) => {
13606
+ e((r) => {
13607
+ var o, i, a, s;
13608
+ r.card.queryConfig = {
13609
+ ...r.card.queryConfig,
13610
+ filters: (i = (o = r.card.queryConfig) == null ? void 0 : o.filters) == null ? void 0 : i.filter(
13611
+ (l) => l.filterColumnName !== n.name
13612
+ ),
13613
+ filterColumns: (s = (a = r.card.queryConfig) == null ? void 0 : a.filterColumns) == null ? void 0 : s.filter(
13614
+ (l) => l.id !== n.id
13615
+ )
13616
+ };
13617
+ });
13618
+ },
13590
13619
  setTempQueryData: (n) => {
13591
13620
  e((r) => {
13592
13621
  r.tempQueryData = n;
@@ -63919,32 +63948,35 @@ export {
63919
63948
  _V as bz,
63920
63949
  Ct as c,
63921
63950
  RSe as c0,
63922
- dbe as c1,
63923
- zV as c2,
63924
- Pge as c3,
63925
- kge as c4,
63926
- Mge as c5,
63927
- Ige as c6,
63928
- Tge as c7,
63929
- _ye as c8,
63930
- uM as c9,
63931
- vSe as ca,
63932
- ove as cb,
63933
- Dxe as cc,
63934
- U9 as cd,
63935
- hSe as ce,
63936
- ive as cf,
63937
- Q9 as cg,
63938
- K1e as ch,
63939
- Q1e as ci,
63940
- H9 as cj,
63941
- V1e as ck,
63942
- PSe as cl,
63943
- O1e as cm,
63944
- Du as cn,
63945
- C1e as co,
63946
- _1e as cp,
63947
- sx as cq,
63951
+ h5 as c1,
63952
+ kl as c2,
63953
+ Zse as c3,
63954
+ dbe as c4,
63955
+ zV as c5,
63956
+ Pge as c6,
63957
+ kge as c7,
63958
+ Mge as c8,
63959
+ Ige as c9,
63960
+ Tge as ca,
63961
+ _ye as cb,
63962
+ uM as cc,
63963
+ vSe as cd,
63964
+ ove as ce,
63965
+ Dxe as cf,
63966
+ U9 as cg,
63967
+ hSe as ch,
63968
+ ive as ci,
63969
+ Q9 as cj,
63970
+ K1e as ck,
63971
+ Q1e as cl,
63972
+ H9 as cm,
63973
+ V1e as cn,
63974
+ PSe as co,
63975
+ O1e as cp,
63976
+ Du as cq,
63977
+ C1e as cr,
63978
+ _1e as cs,
63979
+ sx as ct,
63948
63980
  pSe as d,
63949
63981
  gSe as e,
63950
63982
  lve as f,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/index-B83SwU1c.js");exports.Dashboard=e.Dashboard;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/index-D1FTmCdp.js");exports.Dashboard=e.Dashboard;
@@ -1,4 +1,4 @@
1
- import { D as r } from "../chunks/index-CLv0skGQ.js";
1
+ import { D as r } from "../chunks/index-d9uadTQT.js";
2
2
  export {
3
3
  r as Dashboard
4
4
  };