@devtable/dashboard 12.2.0 → 12.3.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.
@@ -1724,7 +1724,7 @@ class Si {
1724
1724
  }), this.instanceRegistry.clear(), this.factoryRegistry.clear();
1725
1725
  }
1726
1726
  }
1727
- const Kl = "12.2.0", Vm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1727
+ const Kl = "12.3.0", Vm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1728
1728
  __proto__: null,
1729
1729
  version: Kl
1730
1730
  }, Symbol.toStringTag, { value: "Module" }));
@@ -24435,10 +24435,9 @@ const XI = m.model("FilterDateRangeConfigMeta", {
24435
24435
  return e.static_options;
24436
24436
  const {
24437
24437
  data: t,
24438
- state: n,
24439
- error: s
24438
+ state: n
24440
24439
  } = e.contentModel.getDataStuffByID(e.options_query_id);
24441
- return n === "idle" ? Array.isArray(t) ? t : [] : [];
24440
+ return n === "error" ? [] : Array.isArray(t) ? t : [];
24442
24441
  }
24443
24442
  })).actions((e) => ({
24444
24443
  setRequired(t) {
@@ -24495,8 +24494,8 @@ const XI = m.model("FilterDateRangeConfigMeta", {
24495
24494
  e.min_width = t;
24496
24495
  },
24497
24496
  setDefaultSelection() {
24498
- const t = qe(e).content.filters, n = Ae(e).key;
24499
- t.setValueByKey(n, e.default_selection);
24497
+ const t = qe(e).content.filters, n = Ae(e).key, s = new Set(e.options.map((o) => o.value)), i = (t.values[n] ?? []).filter((o) => s.has(o));
24498
+ i.length > 0 ? t.setValueByKey(n, i) : t.setValueByKey(n, e.default_selection);
24500
24499
  }
24501
24500
  })).actions((e) => ({
24502
24501
  afterCreate() {
@@ -24553,8 +24552,9 @@ const XI = m.model("FilterDateRangeConfigMeta", {
24553
24552
  e.width = t;
24554
24553
  },
24555
24554
  setDefaultSelection() {
24556
- const t = qe(e).content.filters, n = Ae(e).key;
24557
- t.setValueByKey(n, e.default_selection);
24555
+ var o;
24556
+ const t = qe(e).content.filters, n = Ae(e).key, s = t.values[n], i = (o = e.options.find((a) => a.value === s)) == null ? void 0 : o.value;
24557
+ i ? t.setValueByKey(n, i) : t.setValueByKey(n, e.default_selection);
24558
24558
  }
24559
24559
  })).actions((e) => ({
24560
24560
  afterCreate() {
@@ -25806,7 +25806,7 @@ const bD = QI.views((e) => ({
25806
25806
  const n = e.contentModel.queries.findByIDSet(new Set(e.dep_query_ids)).map((a) => ({
25807
25807
  id: a.id,
25808
25808
  name: a.name,
25809
- data: a.data
25809
+ data: w.cloneDeep(a.data)
25810
25810
  })), s = e.contentModel.dashboardState, i = e.pre_process, o = new Function(`return ${i}`)()(n, s, Ut);
25811
25811
  e.data = o, e.state = "idle", e.error = null;
25812
25812
  } catch (t) {