@arcgis/portal-components 5.2.0-next.91 → 5.2.0-next.94

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,7 +1,7 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { u as f, i as S, a as M, b as A, c as x, d as C, e as j, f as G } from "./item2.js";
2
+ import { u as f, i as h, a as A, b as M, c as x, d as C, e as G, f as j } from "./item2.js";
3
3
  const L = (r) => typeof r?.role == "string" && r?.role ? r?.role : r?.roleId ?? r?.sourceJSON?.id;
4
- function h(r) {
4
+ function S(r) {
5
5
  return r ? ["org_admin", "account_admin"].includes(L(r)) && !r?.roleId : !1;
6
6
  }
7
7
  function T(r) {
@@ -11,23 +11,23 @@ function E(r) {
11
11
  return !!r?.privileges?.includes("portal:admin:deleteItems");
12
12
  }
13
13
  function W(r, t) {
14
- return t ? f(r, t) || r.itemControl === "update" || S([r], t) && h(t) : !1;
14
+ return t ? f(r, t) || r.itemControl === "update" || h([r], t) && S(t) : !1;
15
15
  }
16
16
  function R(r, t) {
17
17
  if (!t)
18
18
  return !1;
19
- const a = S([r], t), e = f(r, t) || h(t) && a, i = T(t) && E(t);
19
+ const a = h([r], t), e = f(r, t) || S(t) && a, i = T(t) && E(t);
20
20
  return !!(e || a && i);
21
21
  }
22
- async function K({ item: r, messages: t, user: a, serviceInfo: e, portal: i }) {
23
- const c = O(r), n = V(r, t, i);
22
+ async function F({ item: r, messages: t, user: a, serviceInfo: e, portal: i }) {
23
+ const c = V(r), n = B(r, t, i);
24
24
  return {
25
25
  displayName: b(n, { item: r, user: a, messages: t, serviceInfo: e }, !1),
26
26
  displayNameHosted: b(n, { item: r, user: a, messages: t, serviceInfo: e }, !0),
27
27
  icon: c
28
28
  };
29
29
  }
30
- function $(r) {
30
+ function K(r) {
31
31
  if (r.type !== "Scene Service" && r.type !== "3DTiles Service")
32
32
  return null;
33
33
  const t = r.typeKeywords;
@@ -37,7 +37,7 @@ function b(r, { item: t, user: a, messages: e, serviceInfo: i }, c = !0) {
37
37
  const n = t.type === "Image Service";
38
38
  if (!t || !e || !(c && a) && t.type !== "Image Service")
39
39
  return r;
40
- const s = t.type === "Feature Service" && t.typeKeywords?.includes("UtilityNetwork"), p = t.type === "Feature Service" && t.typeKeywords?.includes("ParcelFabric"), v = t.type === "Feature Service" && t.typeKeywords?.includes("Query Layer"), d = a && W(t, a), g = a && R(t, a), u = M(t), y = (d || g) && u, m = (d || g) && c;
40
+ const s = t.type === "Feature Service" && t.typeKeywords?.includes("UtilityNetwork"), p = t.type === "Feature Service" && t.typeKeywords?.includes("ParcelFabric"), v = t.type === "Feature Service" && t.typeKeywords?.includes("Query Layer"), d = a && W(t, a), g = a && R(t, a), u = A(t), y = (d || g) && u, m = (d || g) && c;
41
41
  if (v)
42
42
  return `${r} (${e.query})`;
43
43
  if (p)
@@ -47,23 +47,23 @@ function b(r, { item: t, user: a, messages: e, serviceInfo: i }, c = !0) {
47
47
  return `${r} (${e.utilityNetwork}${o})`;
48
48
  }
49
49
  if (n) {
50
- const o = t.typeKeywords?.includes("Elevation 3D Layer"), w = m && u, P = A(t, i) && !o, I = x(t, i) && !o, l = `${w ? "Hosted" : ""}${I ? "Collection" : ""}${P ? "Multidimensional" : ""}`, k = l && `${l[0].toLowerCase()}${l.slice(1)}`, D = k ? ` (${e[k]})` : "";
50
+ const o = t.typeKeywords?.includes("Elevation 3D Layer"), w = m && u, P = M(t, i) && !o, I = x(t, i) && !o, l = `${w ? "Hosted" : ""}${I ? "Collection" : ""}${P ? "Multidimensional" : ""}`, k = l && `${l[0].toLowerCase()}${l.slice(1)}`, D = k ? ` (${e[k]})` : "";
51
51
  return `${r}${D}`;
52
52
  }
53
53
  if (m) {
54
54
  if (t.type === "Scene Service" || t.type === "3DTiles Service") {
55
- const o = $(t);
55
+ const o = K(t);
56
56
  o && (r = `${r} - ${e[o] || o}`);
57
57
  }
58
58
  if (u) {
59
59
  const o = ` (${C(t) ? e.hostedView : e.hosted})`;
60
60
  return `${r}${o}`;
61
61
  }
62
- return j(t) ? `${r} (${e.locatorView})` : G(t) ? `${r} (${e.photoLocations})` : r;
62
+ return G(t) ? `${r} (${e.locatorView})` : j(t) ? `${r} (${e.photoLocations})` : r;
63
63
  }
64
64
  return r;
65
65
  }
66
- const B = {
66
+ const $ = {
67
67
  "360 VR Experience": "360 VR experience",
68
68
  "3DTiles Package": "3D tiles package",
69
69
  "3DTiles Service": "3D tiles layer",
@@ -234,7 +234,7 @@ const B = {
234
234
  "Viewer Configuration": "Viewer configuration",
235
235
  "XR Experience": "XR experience"
236
236
  };
237
- function V(r, t, a) {
237
+ function B(r, t, a) {
238
238
  const e = r.typeKeywords || [];
239
239
  switch (r.type) {
240
240
  case "Stream Service":
@@ -309,6 +309,10 @@ function V(r, t, a) {
309
309
  return "3D tiles package";
310
310
  case "API Key":
311
311
  return "API key (legacy)";
312
+ case "Knowledge Graph Configuration":
313
+ if (e.includes("Data Loading"))
314
+ return "Knowledge Graph Data Loading Configuration";
315
+ break;
312
316
  case "Web Mapping Application":
313
317
  if (e.includes("configurableApp"))
314
318
  return "Instant App";
@@ -318,6 +322,8 @@ function V(r, t, a) {
318
322
  return "Indoors Space Planner";
319
323
  if (e.includes("IndoorsFloorPlanEditorApp"))
320
324
  return "Indoors Floor Plan Editor";
325
+ if (e.includes("IndoorsKiosk2App"))
326
+ return "Indoors Kiosk";
321
327
  break;
322
328
  case "Application":
323
329
  case "Mobile Application":
@@ -327,10 +333,10 @@ function V(r, t, a) {
327
333
  return "Instant App";
328
334
  break;
329
335
  }
330
- const i = B[r.type] || r.type;
336
+ const i = $[r.type] || r.type;
331
337
  return i?.toLowerCase().includes("add in") ? i.replace(/(add in)/giu, "add-in") : i;
332
338
  }
333
- function O(r) {
339
+ function V(r) {
334
340
  const t = r.type?.toLowerCase() || "", a = r.typeKeywords || [], e = a.includes("Hosted Service");
335
341
  switch (t.trim()) {
336
342
  case "360 vr experience":
@@ -389,7 +395,7 @@ function O(r) {
389
395
  case "operation view":
390
396
  case "desktop application":
391
397
  return a?.some(
392
- (c) => ["IndoorsApp", "IndoorsSpaceplannerApp", "IndoorsFloorPlanEditorApp"].includes(c)
398
+ (c) => ["IndoorsApp", "IndoorsSpaceplannerApp", "IndoorsFloorPlanEditorApp", "IndoorsKiosk2App"].includes(c)
393
399
  ) ? "indoors" : a.includes("configurableApp") ? "instantapps" : "apps";
394
400
  case "map document":
395
401
  case "map package":
@@ -596,7 +602,9 @@ function O(r) {
596
602
  case "knowledge graph":
597
603
  return "knowledgegraph";
598
604
  case "knowledge graph configuration":
599
- return "knowledgegraphconfiguration";
605
+ if (a.includes("Data Loading"))
606
+ return "knowledgegraphconfiguration";
607
+ break;
600
608
  case "knowledge studio project":
601
609
  return "knowledgestudio";
602
610
  case "knowledge graph layer":
@@ -650,7 +658,7 @@ function O(r) {
650
658
  return a.includes("Document") ? "datafilesgray" : t.includes("service") ? "layers" : "maps";
651
659
  }
652
660
  export {
653
- V as a,
654
- K as g,
655
- h as i
661
+ B as a,
662
+ F as g,
663
+ S as i
656
664
  };