@arcgis/portal-components 5.2.0-next.86 → 5.2.0-next.88
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/2TQ4B2LU.js +2 -0
- package/dist/cdn/4GRTJ7XT.js +2 -0
- package/dist/cdn/{ZAB6B2B6.js → 5EMPEJ65.js} +1 -1
- package/dist/cdn/5RYUVYNA.js +2 -0
- package/dist/cdn/{6BALICUQ.js → CGB3PBCS.js} +72 -72
- package/dist/cdn/DC37QXXI.js +2 -0
- package/dist/cdn/{DHWAQSKG.js → F3LFFR3K.js} +1 -1
- package/dist/cdn/F3M3R7X2.js +2 -0
- package/dist/cdn/{CD2GV5YW.js → F76RXJ66.js} +1 -1
- package/dist/cdn/FQTFZLHT.js +2 -0
- package/dist/cdn/KYNL256E.js +2 -0
- package/dist/cdn/{NASFEWDT.js → LDYOCDG6.js} +1 -1
- package/dist/cdn/{LRADZ46B.js → NQQLTGIK.js} +1 -1
- package/dist/cdn/{BBVFGC6Y.js → OFAEJ3GS.js} +1 -1
- package/dist/cdn/{R5MGNFM2.js → PMQCCLS5.js} +1 -1
- package/dist/cdn/QTKBB22S.js +2 -0
- package/dist/cdn/{2Q3FIPE2.js → RJPGQVI2.js} +1 -1
- package/dist/cdn/{LDIZD36E.js → S47JWYSF.js} +1 -1
- package/dist/cdn/SYDYG3CL.js +2 -0
- package/dist/cdn/{TUBYAQ6R.js → X5B4PAML.js} +1 -1
- package/dist/cdn/{ECA5GSSU.js → X6XTK2TE.js} +1 -1
- package/dist/cdn/YBWCEZJP.js +2 -0
- package/dist/cdn/assets/portal-account-switcher/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/fieldAddDelete.js +1 -1
- package/dist/chunks/groups2.js +1 -1
- package/dist/chunks/item2.js +1 -1
- package/dist/chunks/portal-account-switcher.js +3 -3
- package/dist/chunks/portal-browser-filter-date.js +63 -0
- package/dist/chunks/portal.js +2 -2
- package/dist/chunks/portal2.js +1 -1
- package/dist/chunks/request.js +1 -1
- package/dist/chunks/services.js +17 -0
- package/dist/chunks/user.js +1 -1
- package/dist/chunks/utils.js +4 -4
- package/dist/components/arcgis-portal-account-switcher/customElement.d.ts +22 -2
- package/dist/components/arcgis-portal-account-switcher/customElement.js +211 -207
- package/dist/components/arcgis-portal-account-switcher/index.js +1 -3
- package/dist/components/arcgis-portal-account-switcher/types.d.ts +6 -0
- package/dist/components/arcgis-portal-account-switcher-accounts/customElement.d.ts +20 -2
- package/dist/components/arcgis-portal-account-switcher-accounts/customElement.js +5 -5
- package/dist/components/arcgis-portal-account-switcher-list/customElement.d.ts +22 -4
- package/dist/components/arcgis-portal-account-switcher-list/customElement.js +58 -37
- package/dist/components/arcgis-portal-account-switcher-list/index.js +2 -3
- package/dist/components/arcgis-portal-ai-assistant/agents/portalRouteKeys.d.ts +25 -16
- package/dist/components/arcgis-portal-ai-assistant/agents/types.d.ts +4 -4
- package/dist/components/arcgis-portal-ai-assistant/customElement.d.ts +6 -0
- package/dist/components/arcgis-portal-ai-assistant/customElement.js +762 -751
- package/dist/components/arcgis-portal-field-delete/customElement.js +1 -1
- package/dist/components/arcgis-portal-group-browser/customElement.d.ts +3 -1
- package/dist/components/arcgis-portal-group-browser/customElement.js +385 -142
- package/dist/components/arcgis-portal-group-browser/types.d.ts +5 -0
- package/dist/components/arcgis-portal-group-thumbnail/customElement.js +1 -1
- package/dist/components/arcgis-portal-navigation/customElement.js +75 -76
- package/dist/components/arcgis-portal-user-avatar/customElement.js +25 -36
- package/dist/components/arcgis-portal-user-popup/customElement.js +27 -27
- package/dist/components/portal-browser/components/portal-browser-filter-date/customElement.js +6 -56
- package/dist/components/portal-group-browser-filters/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +6 -6
- package/dist/types/lumina.d.ts +4 -4
- package/dist/types/preact.d.ts +4 -4
- package/dist/types/react.d.ts +4 -4
- package/dist/types/stencil.d.ts +4 -4
- package/dist/types/user.d.ts +1 -1
- package/package.json +7 -7
- package/dist/cdn/5MVBQWW3.js +0 -2
- package/dist/cdn/76A6NXMY.js +0 -2
- package/dist/cdn/E4D3U6ZA.js +0 -2
- package/dist/cdn/GADH24KO.js +0 -2
- package/dist/cdn/J57ZXL3U.js +0 -2
- package/dist/cdn/OAKVCMNN.js +0 -2
- package/dist/cdn/QREMLELA.js +0 -2
- package/dist/cdn/SOJ5KMMZ.js +0 -2
- package/dist/cdn/V6N5BWDA.js +0 -2
|
@@ -7,7 +7,7 @@ import R from "@arcgis/core/request.js";
|
|
|
7
7
|
import * as L from "@arcgis/core/core/sql.js";
|
|
8
8
|
import * as H from "@arcgis/core/applications/PortalApp/layerUtils.js";
|
|
9
9
|
import { h as J, j as N, l as T, k as P, m as z, u as G, n as E, o as D, p as V, g as k } from "./item2.js";
|
|
10
|
-
import {
|
|
10
|
+
import { a as K } from "./portal.js";
|
|
11
11
|
var O = /* @__PURE__ */ ((r) => (r.expression = "expression/", r))(O || {});
|
|
12
12
|
function b(r) {
|
|
13
13
|
return r != null;
|
package/dist/chunks/groups2.js
CHANGED
package/dist/chunks/item2.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import i from "@arcgis/core/request.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a } from "./portal.js";
|
|
4
4
|
function f(e) {
|
|
5
5
|
return e.typeKeywords?.includes("Hosted Service") && e.type !== "Insights Workbook" && e.type !== "Insights Data Engineering Workbook" && e.type !== "Insights Page";
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { css as
|
|
3
|
-
const
|
|
2
|
+
import { css as t } from "lit";
|
|
3
|
+
const c = t`:host{--calcite-dialog-max-size-y: 75vh;--calcite-dialog-background-color: var(--calcite-color-surface-1);display:block;font-family:var(--calcite-font-family)}.provider-chip{margin-inline-start:.5rem}.current-account-block{margin-bottom:var(--calcite-space-lg)}.current-account,.linked-account{--calcite-block-border-color: transparent;border:1px solid var(--calcite-color-border-3)}.linked-account:not(:last-of-type){border-bottom-width:0}.linked-accounts-block{margin-bottom:var(--calcite-space-sm)}.current-account-list,.linked-accounts-list{border:1px solid var(--calcite-color-border-2)}.account-title{font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-relative-base)}.account-description{font-weight:var(--calcite-font-weight-regular);font-size:var(--calcite-font-size-relative-sm);color:var(--calcite-color-text-2);overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}.separator{opacity:.85}.link-account-button{margin-block:var(--calcite-space-md)}.alert-title,.alert-message{margin:0}.alert-message{margin-top:var(--calcite-space-2xs)}.empty-accounts-info{display:flex;flex-direction:column;align-items:center;gap:var(--calcite-space-md);h4,p{margin:0}h4{font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-relative-snug);font-weight:var(--calcite-font-weight-medium)}}`;
|
|
4
4
|
export {
|
|
5
|
-
|
|
5
|
+
c as s
|
|
6
6
|
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import { html as f } from "lit";
|
|
3
|
+
import { substitute as A } from "@arcgis/core/intl.js";
|
|
4
|
+
import { nothing as B } from "@arcgis/lumina";
|
|
5
|
+
import { PortalBrowserFilterItem as F } from "../components/portal-browser/components/portal-browser-filter/customElement.js";
|
|
6
|
+
const y = 1440 * 60 * 1e3;
|
|
7
|
+
function u(t) {
|
|
8
|
+
const i = typeof t == "string" ? Number.parseInt(t, 10) : typeof t == "number" ? t : (t ?? /* @__PURE__ */ new Date()).valueOf(), r = new Date(i);
|
|
9
|
+
return r.setHours(0, 0, 0, 0), r.valueOf();
|
|
10
|
+
}
|
|
11
|
+
function g(t) {
|
|
12
|
+
return u(t) + y - 1;
|
|
13
|
+
}
|
|
14
|
+
const E = 7 * y, w = ["today", "yesterday", "last7", "last30", "never", "custom"], M = (t, i, r) => {
|
|
15
|
+
const s = u(), a = g();
|
|
16
|
+
switch (t) {
|
|
17
|
+
case "yesterday":
|
|
18
|
+
return [s - y, s - 1];
|
|
19
|
+
case "today":
|
|
20
|
+
return [s, a];
|
|
21
|
+
case "last7":
|
|
22
|
+
return [s - E, a];
|
|
23
|
+
case "last30":
|
|
24
|
+
return [s - y * 30, a];
|
|
25
|
+
case "never":
|
|
26
|
+
return [-1, -1];
|
|
27
|
+
case "custom":
|
|
28
|
+
return i && r ? [u(i), g(r)] : null;
|
|
29
|
+
default:
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
function H(t) {
|
|
34
|
+
const { clearLabel: i, end: r, expanded: s, filterDateMessages: a, includeNever: $, onFilter: b, onRemove: v, property: d, range: l, serverProperty: h, setExpanded: O, start: m } = t, I = a.title[d], P = $ ? w : w.filter((e) => e !== "never"), S = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10), k = !!(l && (l !== "custom" || m && r)), D = (e, n, c) => {
|
|
35
|
+
const p = h ?? (d === "modified" ? "modified" : "uploaded"), o = M(e, n, c), x = e ? a[e] : "";
|
|
36
|
+
b?.({
|
|
37
|
+
id: d,
|
|
38
|
+
label: e ? A(a[d], { date: x }) : "",
|
|
39
|
+
value: o ? `(${p}:[${o[0]} TO ${o[1]}])` : "",
|
|
40
|
+
range: e,
|
|
41
|
+
start: o ? new Date(o[0]) : void 0,
|
|
42
|
+
end: o ? new Date(o[1]) : void 0
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
return F({ heading: I, expanded: s, setExpanded: O, active: k, clearLabel: i, onRemove: v, children: f`<div><calcite-tree selection-mode=children scale=m @calciteTreeSelect=${(e) => {
|
|
46
|
+
const n = e.target.selectedItems?.[0]?.dataset.range, c = l === n ? null : n;
|
|
47
|
+
if (!c) {
|
|
48
|
+
v?.();
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
D(c, m, r);
|
|
52
|
+
}}>${P.map((e) => f`<calcite-tree-item data-range=${e ?? B} .selected=${e === l}>${a[e]}</calcite-tree-item>`)}</calcite-tree>${l === "custom" && f`<calcite-input-date-picker class="custom-date-picker" @calciteInputDatePickerChange=${(e) => {
|
|
53
|
+
const n = e.target.valueAsDate, [c, p] = Array.isArray(n) ? n : [];
|
|
54
|
+
c && p && D("custom", c, p);
|
|
55
|
+
}} scale=s .max=${S} calendars=1 layout=vertical month-style=abbreviated proximity-selection-disabled range .valueAsDate=${m && r ? [new Date(u(m)), new Date(u(r))] : []}></calcite-input-date-picker>` || ""}</div>` });
|
|
56
|
+
}
|
|
57
|
+
export {
|
|
58
|
+
H as P,
|
|
59
|
+
g as a,
|
|
60
|
+
y as d,
|
|
61
|
+
u as g,
|
|
62
|
+
E as w
|
|
63
|
+
};
|
package/dist/chunks/portal.js
CHANGED
|
@@ -86,13 +86,13 @@ function k(e) {
|
|
|
86
86
|
return e?.isPortal ? t.supportsHostedNotebooks : !(i(["Trial Developer", "Trial", "Trial Press"], t.subscriptionInfo?.type) || t.subscriptionInfo?.options?.includes("Developer"));
|
|
87
87
|
}
|
|
88
88
|
export {
|
|
89
|
-
|
|
89
|
+
y as a,
|
|
90
90
|
m as b,
|
|
91
91
|
s as c,
|
|
92
92
|
H as d,
|
|
93
93
|
P as e,
|
|
94
94
|
u as f,
|
|
95
|
-
|
|
95
|
+
S as g,
|
|
96
96
|
w as h,
|
|
97
97
|
T as i,
|
|
98
98
|
k as n
|
package/dist/chunks/portal2.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import o from "@arcgis/core/request.js";
|
|
3
3
|
import { f as n, r as i } from "./request.js";
|
|
4
|
-
import {
|
|
4
|
+
import { a } from "./portal.js";
|
|
5
5
|
import { a as r } from "./requests.js";
|
|
6
6
|
async function p(e) {
|
|
7
7
|
const s = `${e.restUrl}/portals/${e.id}/approvedApps`;
|
package/dist/chunks/request.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import P from "@arcgis/core/identity/IdentityManager.js";
|
|
3
3
|
import w from "@arcgis/core/request.js";
|
|
4
|
-
import { i as E,
|
|
4
|
+
import { i as E, g as R, a as g } from "./portal.js";
|
|
5
5
|
const c = {}, u = {}, f = {};
|
|
6
6
|
async function A({ requester: t, key: e, id: n, cacheOption: i }) {
|
|
7
7
|
const s = f[e]?.[n]?.expireAt, a = !!s && (/* @__PURE__ */ new Date()).getTime() > s;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import { g as a, a as i } from "./portal.js";
|
|
3
|
+
const o = (t) => t.thumbnailUrl !== void 0;
|
|
4
|
+
function u(t, r, n = !1) {
|
|
5
|
+
if (o(t))
|
|
6
|
+
return t.thumbnailUrl;
|
|
7
|
+
const s = t.thumbnail;
|
|
8
|
+
if (!s)
|
|
9
|
+
return null;
|
|
10
|
+
if (s.startsWith("http"))
|
|
11
|
+
return s;
|
|
12
|
+
const e = a(r);
|
|
13
|
+
return `${n ? "https://www.arcgis.com/sharing/rest/" : i(r)}community/users/${t.username}/info/${s}${e && !n ? `?token=${e}` : ""}`;
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
u as g
|
|
17
|
+
};
|
package/dist/chunks/user.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { f, r as a } from "./request.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a as u, g as y } from "./portal.js";
|
|
4
4
|
import { f as c, r as l, a as d } from "./requests.js";
|
|
5
5
|
async function U(s, r, e) {
|
|
6
6
|
const t = `${e ? "https://www.arcgis.com/sharing/rest/" : u(r)}community/users/${s}`, o = t?.includes("www.arcgis.com") && r.isPortal, m = t?.includes(".arcgis.com") && !r.isPortal && !r.user, p = o || m ? { disableIdentityLookup: !0, addTokenManually: !1 } : {};
|
package/dist/chunks/utils.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import l from "@arcgis/core/request.js";
|
|
3
3
|
import { debounce as v } from "@arcgis/toolkit/function";
|
|
4
|
-
import {
|
|
4
|
+
import { a as h } from "./portal.js";
|
|
5
5
|
let n = [], c = [];
|
|
6
6
|
const m = v(async (t, r) => {
|
|
7
7
|
const e = [...n], s = [...c];
|
|
@@ -31,10 +31,10 @@ async function q(t, r, e) {
|
|
|
31
31
|
});
|
|
32
32
|
return n.includes(t) || n.push(t), m(r, e), await s;
|
|
33
33
|
}
|
|
34
|
-
async function
|
|
34
|
+
async function y(t) {
|
|
35
35
|
return await f(t, !0);
|
|
36
36
|
}
|
|
37
|
-
async function
|
|
37
|
+
async function g(t) {
|
|
38
38
|
return await f(t, !1);
|
|
39
39
|
}
|
|
40
40
|
async function G({
|
|
@@ -43,7 +43,7 @@ async function G({
|
|
|
43
43
|
portal: e,
|
|
44
44
|
user: s
|
|
45
45
|
}) {
|
|
46
|
-
const o = !t, a = o ? await
|
|
46
|
+
const o = !t, a = o ? await y({ item: r, portal: e, user: s }) : await g({ item: r, portal: e, user: s });
|
|
47
47
|
return {
|
|
48
48
|
nextFavorite: o,
|
|
49
49
|
updated: a
|
|
@@ -6,11 +6,15 @@ import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
|
6
6
|
|
|
7
7
|
/** Renders an account selection dialog and emits an account switching event. */
|
|
8
8
|
export abstract class ArcgisPortalAccountSwitcher extends LitElement {
|
|
9
|
+
/** @default "arcgisonline" */
|
|
10
|
+
accessor clientId: string;
|
|
9
11
|
/** @internal */
|
|
10
12
|
protected messages: {
|
|
11
13
|
switchAccounts: string;
|
|
12
|
-
|
|
14
|
+
linkedAccounts: string;
|
|
15
|
+
linkedAccountActions: string;
|
|
13
16
|
currentAccount: string;
|
|
17
|
+
signedInAs: string;
|
|
14
18
|
currentAccountLabel: string;
|
|
15
19
|
usersList: string;
|
|
16
20
|
linkedAccountSignedIn: string;
|
|
@@ -19,8 +23,15 @@ export abstract class ArcgisPortalAccountSwitcher extends LitElement {
|
|
|
19
23
|
emptyList: string;
|
|
20
24
|
maxAccounts: string;
|
|
21
25
|
unlinkAccount: string;
|
|
26
|
+
unlinkOrgUser: string;
|
|
27
|
+
unlinkPublicUser: string;
|
|
22
28
|
linkAccount: string;
|
|
29
|
+
addAccount: string;
|
|
23
30
|
switchTo: string;
|
|
31
|
+
switchToOrgUser: string;
|
|
32
|
+
switchToPublicUser: string;
|
|
33
|
+
userDisabled: string;
|
|
34
|
+
userNotAllowed: string;
|
|
24
35
|
unlink: string;
|
|
25
36
|
unlinkTitle: string;
|
|
26
37
|
unlinkWarning: string;
|
|
@@ -48,8 +59,10 @@ export abstract class ArcgisPortalAccountSwitcher extends LitElement {
|
|
|
48
59
|
};
|
|
49
60
|
} & T9nMeta<{
|
|
50
61
|
switchAccounts: string;
|
|
51
|
-
|
|
62
|
+
linkedAccounts: string;
|
|
63
|
+
linkedAccountActions: string;
|
|
52
64
|
currentAccount: string;
|
|
65
|
+
signedInAs: string;
|
|
53
66
|
currentAccountLabel: string;
|
|
54
67
|
usersList: string;
|
|
55
68
|
linkedAccountSignedIn: string;
|
|
@@ -58,8 +71,15 @@ export abstract class ArcgisPortalAccountSwitcher extends LitElement {
|
|
|
58
71
|
emptyList: string;
|
|
59
72
|
maxAccounts: string;
|
|
60
73
|
unlinkAccount: string;
|
|
74
|
+
unlinkOrgUser: string;
|
|
75
|
+
unlinkPublicUser: string;
|
|
61
76
|
linkAccount: string;
|
|
77
|
+
addAccount: string;
|
|
62
78
|
switchTo: string;
|
|
79
|
+
switchToOrgUser: string;
|
|
80
|
+
switchToPublicUser: string;
|
|
81
|
+
userDisabled: string;
|
|
82
|
+
userNotAllowed: string;
|
|
63
83
|
unlink: string;
|
|
64
84
|
unlinkTitle: string;
|
|
65
85
|
unlinkWarning: string;
|