@devtable/dashboard 14.3.4 → 14.3.5

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.
@@ -6545,7 +6545,7 @@ class Sl {
6545
6545
  }), this.instanceRegistry.clear(), this.factoryRegistry.clear();
6546
6546
  }
6547
6547
  }
6548
- const pm = "14.3.4", k0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6548
+ const pm = "14.3.5", k0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6549
6549
  __proto__: null,
6550
6550
  version: pm
6551
6551
  }, Symbol.toStringTag, { value: "Module" }));
@@ -27652,7 +27652,7 @@ const $x = p.model("PanelsRenderModel", {
27652
27652
  }
27653
27653
  }));
27654
27654
  function Rx(e) {
27655
- const t = e.config, r = t.default_value;
27655
+ const t = e.config, r = t == null ? void 0 : t.default_value;
27656
27656
  return r === void 0 ? r : t._name === "date-range" ? gI(t) : r;
27657
27657
  }
27658
27658
  function YI(e, t) {
@@ -35361,7 +35361,7 @@ const GL = D(() => {
35361
35361
  label: "",
35362
35362
  value: ""
35363
35363
  });
35364
- }, s = i.static_options, o = [...s];
35364
+ }, s = i.static_options, o = s.filter((l) => l.value !== "" && l.label !== "");
35365
35365
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
35366
35366
  /* @__PURE__ */ n.jsxs(b, { justify: "space-between", children: [
35367
35367
  /* @__PURE__ */ n.jsx(de, { checked: i.required, onChange: (l) => i.setRequired(l.currentTarget.checked), label: r("filter.widget.select.required") }),
@@ -35389,7 +35389,7 @@ const GL = D(() => {
35389
35389
  width: "100%"
35390
35390
  }, children: /* @__PURE__ */ n.jsx(S, { c: "white", size: "16px", children: r("filter.widget.common.using_query") }) })
35391
35391
  ] }),
35392
- s.length > 0 && /* @__PURE__ */ n.jsx(_r, { label: r("filter.widget.select.default_selection"), data: o, value: [...i.default_value], onChange: i.setDefaultValue }),
35392
+ o.length > 0 && /* @__PURE__ */ n.jsx(_r, { label: r("filter.widget.select.default_selection"), placeholder: r("filter.widget.select.no_default_selection"), data: o, value: [...i.default_value], onChange: i.setDefaultValue }),
35393
35393
  s.map((l, c) => /* @__PURE__ */ n.jsxs(Nt, { gap: 10, sx: {
35394
35394
  position: "relative"
35395
35395
  }, pr: "40px", children: [
@@ -35492,7 +35492,7 @@ const GL = D(() => {
35492
35492
  } = y(), i = [...e.static_options], a = z(() => [{
35493
35493
  label: t("filter.widget.select.no_default_selection"),
35494
35494
  value: ""
35495
- }, ...i], [r.language, i]);
35495
+ }, ...i.filter((s) => s.value !== "")], [r.language, i]);
35496
35496
  return i.length === 0 ? /* @__PURE__ */ n.jsx(Qd, { config: e }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
35497
35497
  /* @__PURE__ */ n.jsx(N, { label: t("filter.widget.select.default_selection"), data: a, value: e.default_value, onChange: e.setDefaultValue }),
35498
35498
  i.map((s, o) => /* @__PURE__ */ n.jsxs(Nt, { gap: 10, sx: {