@gisce/react-ooui 2.0.7 → 2.0.8-rc.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"ChangeViewButton.d.ts","sourceRoot":"","sources":["../../src/actionbar/ChangeViewButton.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAa,IAAI,EAAE,MAAM,SAAS,CAAC;AAE1C,KAAK,KAAK,GAAG;IACX,YAAY,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IACnC,WAAW,EAAE,IAAI,CAAC;IAClB,cAAc,EAAE,IAAI,EAAE,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,IAAI,CAAC;CACrB,CAAC;AAiBF,iBAAS,gBAAgB,CAAC,KAAK,EAAE,KAAK,2CA+FrC;AAED,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"ChangeViewButton.d.ts","sourceRoot":"","sources":["../../src/actionbar/ChangeViewButton.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,KAAK,KAAK,GAAG;IACX,YAAY,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IACnC,WAAW,EAAE,IAAI,CAAC;IAClB,cAAc,EAAE,IAAI,EAAE,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,IAAI,CAAC;CACrB,CAAC;AAiBF,iBAAS,gBAAgB,CAAC,KAAK,EAAE,KAAK,2CAiGrC;AAED,eAAe,gBAAgB,CAAC"}
@@ -6731,18 +6731,21 @@ function or(e) {
6731
6731
  previousView: a
6732
6732
  } = e, { t: l, lang: c } = H(he);
6733
6733
  function d() {
6734
- const m = r.map((g, h) => /* @__PURE__ */ n(He.Item, { children: /* @__PURE__ */ V(Te, { wrap: !1, children: [
6735
- /* @__PURE__ */ n(ce, { flex: "none", style: { paddingRight: 20 }, children: Ar(g) }),
6736
- /* @__PURE__ */ n(ce, { flex: "auto", style: { paddingRight: 20 }, children: g.type.charAt(0).toUpperCase() + g.type.slice(1) }),
6737
- /* @__PURE__ */ n(ce, { flex: "none", children: /* @__PURE__ */ n(
6738
- Mt,
6739
- {
6740
- style: {
6741
- opacity: t.view_id === g.view_id ? 1 : 0
6734
+ const m = r.map((g, h) => {
6735
+ const p = g.type.charAt(0).toUpperCase() + g.type.slice(1);
6736
+ return /* @__PURE__ */ n(He.Item, { children: /* @__PURE__ */ V(Te, { wrap: !1, children: [
6737
+ /* @__PURE__ */ n(ce, { flex: "none", style: { paddingRight: 20 }, children: Ar(g) }),
6738
+ /* @__PURE__ */ n(ce, { flex: "auto", style: { paddingRight: 20 }, children: g.title || p }),
6739
+ /* @__PURE__ */ n(ce, { flex: "none", children: /* @__PURE__ */ n(
6740
+ Mt,
6741
+ {
6742
+ style: {
6743
+ opacity: t.view_id === g.view_id ? 1 : 0
6744
+ }
6742
6745
  }
6743
- }
6744
- ) })
6745
- ] }) }, g.view_id || h));
6746
+ ) })
6747
+ ] }) }, g.view_id || h);
6748
+ });
6746
6749
  return /* @__PURE__ */ n(He, { onClick: f, children: /* @__PURE__ */ n(He.ItemGroup, { title: l("viewAs"), children: m }) });
6747
6750
  }
6748
6751
  function u(m) {
@@ -7872,7 +7875,7 @@ const Kc = (e) => {
7872
7875
  setLimit: C
7873
7876
  });
7874
7877
  return !r || !t ? null : /* @__PURE__ */ V(X, { children: [
7875
- /* @__PURE__ */ n(bn, { title: t.name, children: /* @__PURE__ */ n(
7878
+ /* @__PURE__ */ n(bn, { title: t.title || t.name, children: /* @__PURE__ */ n(
7876
7879
  $c,
7877
7880
  {
7878
7881
  refreshGraph: () => {