@gisce/react-ooui 2.58.0-alpha.12 → 2.58.0-alpha.13

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":"shareUrlHelper.d.ts","sourceRoot":"","sources":["../../src/helpers/shareUrlHelper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAiB,MAAM,SAAS,CAAC;AAkBpD,eAAO,MAAM,kBAAkB,WAAY,UAAU,WAmBpD,CAAC;AAyDF,eAAO,MAAM,uBAAuB,eAAgB,GAAG;;CAStD,CAAC;AAEF,eAAO,MAAM,mBAAmB,WAAY,GAAG;;CAO9C,CAAC"}
1
+ {"version":3,"file":"shareUrlHelper.d.ts","sourceRoot":"","sources":["../../src/helpers/shareUrlHelper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAiB,MAAM,SAAS,CAAC;AAkBpD,eAAO,MAAM,kBAAkB,WAAY,UAAU,WAsBpD,CAAC;AAyDF,eAAO,MAAM,uBAAuB,eAAgB,GAAG;;CAStD,CAAC;AAEF,eAAO,MAAM,mBAAmB,WAAY,GAAG;;CAO9C,CAAC"}
@@ -11649,7 +11649,7 @@ const _g = "action", Fg = ["active_id", "active_ids", "id", "parent_id"], Rg = [
11649
11649
  "model",
11650
11650
  "views",
11651
11651
  "title",
11652
- "initialView",
11652
+ "initialViewId",
11653
11653
  "action_id",
11654
11654
  "action_type",
11655
11655
  "res_id",
@@ -11657,15 +11657,16 @@ const _g = "action", Fg = ["active_id", "active_ids", "id", "parent_id"], Rg = [
11657
11657
  "actionRawData",
11658
11658
  "searchParams"
11659
11659
  ], Za = (e) => {
11660
+ var o, a;
11660
11661
  const t = new URL(window.location.origin);
11661
11662
  t.pathname = _g;
11662
11663
  const n = {
11663
11664
  ...e,
11664
11665
  actionRawData: (e == null ? void 0 : e.actionRawData) && Eg(e.actionRawData)
11665
11666
  }, r = Vg(n);
11666
- return Object.entries(r).forEach(([o, a]) => {
11667
- a && (!Array.isArray(a) || a.length > 0) && t.searchParams.set(o, Dg(a));
11668
- }), t.toString();
11667
+ return Object.entries(r).forEach(([s, l]) => {
11668
+ l && (!Array.isArray(l) || l.length > 0) && t.searchParams.set(s, Dg(l));
11669
+ }), (o = e.initialView) != null && o.id && t.searchParams.set("initialViewId", (a = e.initialView) == null ? void 0 : a.id.toString()), t.toString();
11669
11670
  }, Dg = (e) => typeof e == "object" ? JSON.stringify(e) : e.toString(), Eg = (e) => {
11670
11671
  const { context: t, domain: n, values: r } = e, o = {};
11671
11672
  if (t && (typeof t == "string" ? t !== "{}" && (o.context = t) : typeof t == "object" && Object.keys(t).length > 0 && (o.context = t)), n && (Array.isArray(n) ? n.length > 0 && (o.domain = n) : n !== "false" && (o.domain = n)), (o.domain || o.context) && r && typeof r == "object" && Object.keys(r).length > 0) {