@devtable/dashboard 14.40.0 → 14.41.0

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.
@@ -11,7 +11,7 @@ type Props = {
11
11
  queryModel: QueryModelInstance;
12
12
  value: string | null;
13
13
  onChange: (value: string | null, option: CustomOption) => void;
14
- usedKeys: Set<string>;
14
+ usedKeys?: Set<string>;
15
15
  };
16
16
  export declare const VariableSelector: (({ queryModel, value, onChange, usedKeys }: Props) => import('./react/jsx-runtime').JSX.Element) & {
17
17
  displayName: string;
@@ -2474,7 +2474,7 @@ function zm() {
2474
2474
  } = R.useContext(cs);
2475
2475
  return e ? document.getElementById(e) : null;
2476
2476
  }
2477
- const us = "14.40.0", Tm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2477
+ const us = "14.41.0", Tm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2478
2478
  __proto__: null,
2479
2479
  version: us
2480
2480
  }, Symbol.toStringTag, { value: "Module" }));
@@ -24342,7 +24342,7 @@ const Gc = m.model("DBQueryMeta", {
24342
24342
  t !== "derived" && t !== "combined" || (e.type = t);
24343
24343
  },
24344
24344
  addFilter(t, n) {
24345
- t && e.usedFilterDimensionKeys.has(t) || n && e.usedFilterVariableSet.has(n) || e.filters.push(Ao.create({
24345
+ t && e.usedFilterDimensionKeys.has(t) || e.filters.push(Ao.create({
24346
24346
  dimension: t,
24347
24347
  variable: n
24348
24348
  }));
@@ -27892,7 +27892,7 @@ const mz = w5.views((e) => ({
27892
27892
  const i = e.config;
27893
27893
  return [e.inUse, e.id, e.key, e.reQueryKey, i.dep_query_ids.toString(), e.pre_process, e.depQueryModelStatesString].join("--");
27894
27894
  }
27895
- return e.typedAsHTTP ? `${e.inUse}--${e.id}--${e.key}--${e.reQueryKey}--${(n = e.datasource) == null ? void 0 : n.id}` : e.isMericoMetricQuery ? `${e.inUse}--${e.id}--${e.key}--${e.reQueryKey}--${(a = e.datasource) == null ? void 0 : a.id}` : [e.inUse, e.id, e.key, e.formattedSQL, e.pre_process, e.post_process].join("--");
27895
+ return e.typedAsHTTP ? `${e.inUse}--${e.id}--${e.key}--${e.reQueryKey}--${(n = e.datasource) == null ? void 0 : n.id}` : e.isMericoMetricQuery ? `${e.inUse}--${e.id}--${e.key}--${e.reQueryKey}--${e.metricQueryPayloadString}--${(a = e.datasource) == null ? void 0 : a.id}` : [e.inUse, e.id, e.key, e.formattedSQL, e.pre_process, e.post_process].join("--");
27896
27896
  }, () => e.fetchData(!1), {
27897
27897
  fireImmediately: !0,
27898
27898
  delay: 0
@@ -36153,7 +36153,7 @@ const nI = [{
36153
36153
  ...p,
36154
36154
  label: p.value,
36155
36155
  widget_label: p.label,
36156
- disabled: a.has(p.value)
36156
+ disabled: a == null ? void 0 : a.has(p.value)
36157
36157
  }))
36158
36158
  };
36159
36159
  }), [e.getConditionOptionsWithInvalidValue, i, t, a]), l = ae((s, c) => {
@@ -36221,13 +36221,13 @@ const nI = [{
36221
36221
  /* @__PURE__ */ r(w.Td, { pr: 0, children: /* @__PURE__ */ r(ll, { mmInfo: a, value: i.dimension, onChange: i.setDimension, usedKeys: t.usedFilterDimensionKeys }) }),
36222
36222
  /* @__PURE__ */ r(w.Td, { colSpan: 2, pr: 0, children: /* @__PURE__ */ u(y, { justify: "flex-start", grow: !0, gap: 0, w: "100%", children: [
36223
36223
  /* @__PURE__ */ r(Ta, { variable: i.variable }),
36224
- /* @__PURE__ */ r(Tr, { queryModel: e, value: i.variable, onChange: i.setVariable, usedKeys: t.usedFilterVariableSet })
36224
+ /* @__PURE__ */ r(Tr, { queryModel: e, value: i.variable, onChange: i.setVariable })
36225
36225
  ] }) }),
36226
36226
  /* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(J, { size: "xs", checked: e.keyInRunBy(i.variable), onChange: (o) => e.changeRunByRecord(i.variable, o.currentTarget.checked), color: "red" }) })
36227
36227
  ] }, i.dimension)),
36228
36228
  /* @__PURE__ */ u(w.Tr, { className: "add-a-row", children: [
36229
36229
  /* @__PURE__ */ r(w.Td, { pr: 0, children: /* @__PURE__ */ r(ll, { mmInfo: a, value: null, onChange: (i) => i && t.addFilter(i, ""), usedKeys: t.usedFilterDimensionKeys }) }),
36230
- /* @__PURE__ */ r(w.Td, { colSpan: 2, pr: 0, children: /* @__PURE__ */ r(Tr, { queryModel: e, value: null, onChange: (i) => i && t.addFilter("", i), usedKeys: t.usedFilterVariableSet }) }),
36230
+ /* @__PURE__ */ r(w.Td, { colSpan: 2, pr: 0, children: /* @__PURE__ */ r(Tr, { queryModel: e, value: null, onChange: (i) => i && t.addFilter("", i) }) }),
36231
36231
  /* @__PURE__ */ r(w.Td, {})
36232
36232
  ] })
36233
36233
  ] })