@arcgis/portal-components 5.2.0-next.77 → 5.2.0-next.79
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.
- package/dist/cdn/{FLXTOBVV.js → BG35I5AA.js} +1 -1
- package/dist/cdn/J35PMSMA.js +2 -0
- package/dist/cdn/{IGF2UOWS.js → JGBFHQ6Q.js} +10 -10
- package/dist/cdn/{NDMJK6MD.js → WDDPDNVX.js} +13 -13
- package/dist/cdn/{2WI5FBDF.js → X7RTUKI5.js} +1 -1
- package/dist/cdn/assets/portal-item-type/icons/knowledgegraphconfiguration16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/knowledgegraphconfiguration32.svg +1 -0
- package/dist/cdn/assets/portal-navigation/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/utils2.js +13 -10
- package/dist/components/arcgis-portal-navigation/customElement.d.ts +2 -0
- package/dist/components/arcgis-portal-navigation/customElement.js +502 -493
- package/dist/components/arcgis-portal-navigation/index.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/types/item.d.ts +1 -1
- package/package.json +6 -6
- package/dist/cdn/YY4236HO.js +0 -2
package/dist/chunks/utils2.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
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 "./item.js";
|
|
3
3
|
const L = (r) => typeof r?.role == "string" && r?.role ? r?.role : r?.roleId ?? r?.sourceJSON?.id;
|
|
4
|
-
function
|
|
4
|
+
function h(r) {
|
|
5
5
|
return r ? ["org_admin", "account_admin"].includes(L(r)) && !r?.roleId : !1;
|
|
6
6
|
}
|
|
7
7
|
function T(r) {
|
|
@@ -11,19 +11,19 @@ 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) &&
|
|
14
|
+
return t ? f(r, t) || r.itemControl === "update" || S([r], t) && h(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) ||
|
|
19
|
+
const a = S([r], t), e = f(r, t) || h(t) && a, i = T(t) && E(t);
|
|
20
20
|
return !!(e || a && i);
|
|
21
21
|
}
|
|
22
22
|
async function K({ item: r, messages: t, user: a, serviceInfo: e, portal: i }) {
|
|
23
23
|
const c = O(r), n = V(r, t, i);
|
|
24
24
|
return {
|
|
25
|
-
displayName:
|
|
26
|
-
displayNameHosted:
|
|
25
|
+
displayName: b(n, { item: r, user: a, messages: t, serviceInfo: e }, !1),
|
|
26
|
+
displayNameHosted: b(n, { item: r, user: a, messages: t, serviceInfo: e }, !0),
|
|
27
27
|
icon: c
|
|
28
28
|
};
|
|
29
29
|
}
|
|
@@ -33,12 +33,12 @@ function $(r) {
|
|
|
33
33
|
const t = r.typeKeywords;
|
|
34
34
|
return t?.includes("IntegratedMesh") ? "mesh" : t?.includes("3DObject") ? "3D object" : t?.includes("Point") ? "3D point" : t?.includes("PointCloud") ? "point cloud" : t?.includes("Building") ? "building" : t?.includes("Voxel") ? "voxel" : null;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
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"),
|
|
41
|
-
if (
|
|
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;
|
|
41
|
+
if (v)
|
|
42
42
|
return `${r} (${e.query})`;
|
|
43
43
|
if (p)
|
|
44
44
|
return `${r} (${y ? e.parcelFabricHosted : e.parcelFabric})`;
|
|
@@ -47,7 +47,7 @@ function k(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" : ""}`,
|
|
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]})` : "";
|
|
51
51
|
return `${r}${D}`;
|
|
52
52
|
}
|
|
53
53
|
if (m) {
|
|
@@ -150,6 +150,7 @@ const B = {
|
|
|
150
150
|
"Kernel Gateway Connection": "Kernel gateway connection",
|
|
151
151
|
"KML Collection": "KML collection",
|
|
152
152
|
"Knowledge Graph": "Knowledge graph",
|
|
153
|
+
"Knowledge Graph Configuration": "Knowledge graph configuration",
|
|
153
154
|
"Knowledge Graph Layer": "Knowledge graph layer",
|
|
154
155
|
"Knowledge Graph Web Investigation": "Knowledge graph web investigation",
|
|
155
156
|
"Knowledge Studio Project": "Knowledge Studio project",
|
|
@@ -594,6 +595,8 @@ function O(r) {
|
|
|
594
595
|
return "storymaptheme";
|
|
595
596
|
case "knowledge graph":
|
|
596
597
|
return "knowledgegraph";
|
|
598
|
+
case "knowledge graph configuration":
|
|
599
|
+
return "knowledgegraphconfiguration";
|
|
597
600
|
case "knowledge studio project":
|
|
598
601
|
return "knowledgestudio";
|
|
599
602
|
case "knowledge graph layer":
|
|
@@ -649,5 +652,5 @@ function O(r) {
|
|
|
649
652
|
export {
|
|
650
653
|
V as a,
|
|
651
654
|
K as g,
|
|
652
|
-
|
|
655
|
+
h as i
|
|
653
656
|
};
|
|
@@ -103,6 +103,7 @@ export abstract class ArcGISPortalNavigation extends LitElement {
|
|
|
103
103
|
hide: string;
|
|
104
104
|
show: string;
|
|
105
105
|
cancel: string;
|
|
106
|
+
delete: string;
|
|
106
107
|
noAppResults: string;
|
|
107
108
|
noAppResultsDescriptionOrg: string;
|
|
108
109
|
noAppsDescriptionPublic: string;
|
|
@@ -302,6 +303,7 @@ export abstract class ArcGISPortalNavigation extends LitElement {
|
|
|
302
303
|
hide: string;
|
|
303
304
|
show: string;
|
|
304
305
|
cancel: string;
|
|
306
|
+
delete: string;
|
|
305
307
|
noAppResults: string;
|
|
306
308
|
noAppResultsDescriptionOrg: string;
|
|
307
309
|
noAppsDescriptionPublic: string;
|