@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.
Files changed (78) hide show
  1. package/dist/cdn/2TQ4B2LU.js +2 -0
  2. package/dist/cdn/4GRTJ7XT.js +2 -0
  3. package/dist/cdn/{ZAB6B2B6.js → 5EMPEJ65.js} +1 -1
  4. package/dist/cdn/5RYUVYNA.js +2 -0
  5. package/dist/cdn/{6BALICUQ.js → CGB3PBCS.js} +72 -72
  6. package/dist/cdn/DC37QXXI.js +2 -0
  7. package/dist/cdn/{DHWAQSKG.js → F3LFFR3K.js} +1 -1
  8. package/dist/cdn/F3M3R7X2.js +2 -0
  9. package/dist/cdn/{CD2GV5YW.js → F76RXJ66.js} +1 -1
  10. package/dist/cdn/FQTFZLHT.js +2 -0
  11. package/dist/cdn/KYNL256E.js +2 -0
  12. package/dist/cdn/{NASFEWDT.js → LDYOCDG6.js} +1 -1
  13. package/dist/cdn/{LRADZ46B.js → NQQLTGIK.js} +1 -1
  14. package/dist/cdn/{BBVFGC6Y.js → OFAEJ3GS.js} +1 -1
  15. package/dist/cdn/{R5MGNFM2.js → PMQCCLS5.js} +1 -1
  16. package/dist/cdn/QTKBB22S.js +2 -0
  17. package/dist/cdn/{2Q3FIPE2.js → RJPGQVI2.js} +1 -1
  18. package/dist/cdn/{LDIZD36E.js → S47JWYSF.js} +1 -1
  19. package/dist/cdn/SYDYG3CL.js +2 -0
  20. package/dist/cdn/{TUBYAQ6R.js → X5B4PAML.js} +1 -1
  21. package/dist/cdn/{ECA5GSSU.js → X6XTK2TE.js} +1 -1
  22. package/dist/cdn/YBWCEZJP.js +2 -0
  23. package/dist/cdn/assets/portal-account-switcher/t9n/messages.en.json +1 -1
  24. package/dist/cdn/index.js +1 -1
  25. package/dist/chunks/fieldAddDelete.js +1 -1
  26. package/dist/chunks/groups2.js +1 -1
  27. package/dist/chunks/item2.js +1 -1
  28. package/dist/chunks/portal-account-switcher.js +3 -3
  29. package/dist/chunks/portal-browser-filter-date.js +63 -0
  30. package/dist/chunks/portal.js +2 -2
  31. package/dist/chunks/portal2.js +1 -1
  32. package/dist/chunks/request.js +1 -1
  33. package/dist/chunks/services.js +17 -0
  34. package/dist/chunks/user.js +1 -1
  35. package/dist/chunks/utils.js +4 -4
  36. package/dist/components/arcgis-portal-account-switcher/customElement.d.ts +22 -2
  37. package/dist/components/arcgis-portal-account-switcher/customElement.js +211 -207
  38. package/dist/components/arcgis-portal-account-switcher/index.js +1 -3
  39. package/dist/components/arcgis-portal-account-switcher/types.d.ts +6 -0
  40. package/dist/components/arcgis-portal-account-switcher-accounts/customElement.d.ts +20 -2
  41. package/dist/components/arcgis-portal-account-switcher-accounts/customElement.js +5 -5
  42. package/dist/components/arcgis-portal-account-switcher-list/customElement.d.ts +22 -4
  43. package/dist/components/arcgis-portal-account-switcher-list/customElement.js +58 -37
  44. package/dist/components/arcgis-portal-account-switcher-list/index.js +2 -3
  45. package/dist/components/arcgis-portal-ai-assistant/agents/portalRouteKeys.d.ts +25 -16
  46. package/dist/components/arcgis-portal-ai-assistant/agents/types.d.ts +4 -4
  47. package/dist/components/arcgis-portal-ai-assistant/customElement.d.ts +6 -0
  48. package/dist/components/arcgis-portal-ai-assistant/customElement.js +762 -751
  49. package/dist/components/arcgis-portal-field-delete/customElement.js +1 -1
  50. package/dist/components/arcgis-portal-group-browser/customElement.d.ts +3 -1
  51. package/dist/components/arcgis-portal-group-browser/customElement.js +385 -142
  52. package/dist/components/arcgis-portal-group-browser/types.d.ts +5 -0
  53. package/dist/components/arcgis-portal-group-thumbnail/customElement.js +1 -1
  54. package/dist/components/arcgis-portal-navigation/customElement.js +75 -76
  55. package/dist/components/arcgis-portal-user-avatar/customElement.js +25 -36
  56. package/dist/components/arcgis-portal-user-popup/customElement.js +27 -27
  57. package/dist/components/portal-browser/components/portal-browser-filter-date/customElement.js +6 -56
  58. package/dist/components/portal-group-browser-filters/customElement.js +1 -1
  59. package/dist/docs/api.json +1 -1
  60. package/dist/docs/docs.json +1 -1
  61. package/dist/docs/vscode.html-custom-data.json +1 -1
  62. package/dist/docs/web-types.json +1 -1
  63. package/dist/loader.js +6 -6
  64. package/dist/types/lumina.d.ts +4 -4
  65. package/dist/types/preact.d.ts +4 -4
  66. package/dist/types/react.d.ts +4 -4
  67. package/dist/types/stencil.d.ts +4 -4
  68. package/dist/types/user.d.ts +1 -1
  69. package/package.json +7 -7
  70. package/dist/cdn/5MVBQWW3.js +0 -2
  71. package/dist/cdn/76A6NXMY.js +0 -2
  72. package/dist/cdn/E4D3U6ZA.js +0 -2
  73. package/dist/cdn/GADH24KO.js +0 -2
  74. package/dist/cdn/J57ZXL3U.js +0 -2
  75. package/dist/cdn/OAKVCMNN.js +0 -2
  76. package/dist/cdn/QREMLELA.js +0 -2
  77. package/dist/cdn/SOJ5KMMZ.js +0 -2
  78. package/dist/cdn/V6N5BWDA.js +0 -2
@@ -10,8 +10,10 @@ export abstract class ArcgisPortalAccountSwitcherAccounts extends LitElement {
10
10
  /** @internal */
11
11
  protected messages: {
12
12
  switchAccounts: string;
13
- chooseAccount: string;
13
+ linkedAccounts: string;
14
+ linkedAccountActions: string;
14
15
  currentAccount: string;
16
+ signedInAs: string;
15
17
  currentAccountLabel: string;
16
18
  usersList: string;
17
19
  linkedAccountSignedIn: string;
@@ -20,8 +22,15 @@ export abstract class ArcgisPortalAccountSwitcherAccounts extends LitElement {
20
22
  emptyList: string;
21
23
  maxAccounts: string;
22
24
  unlinkAccount: string;
25
+ unlinkOrgUser: string;
26
+ unlinkPublicUser: string;
23
27
  linkAccount: string;
28
+ addAccount: string;
24
29
  switchTo: string;
30
+ switchToOrgUser: string;
31
+ switchToPublicUser: string;
32
+ userDisabled: string;
33
+ userNotAllowed: string;
25
34
  unlink: string;
26
35
  unlinkTitle: string;
27
36
  unlinkWarning: string;
@@ -49,8 +58,10 @@ export abstract class ArcgisPortalAccountSwitcherAccounts extends LitElement {
49
58
  };
50
59
  } & T9nMeta<{
51
60
  switchAccounts: string;
52
- chooseAccount: string;
61
+ linkedAccounts: string;
62
+ linkedAccountActions: string;
53
63
  currentAccount: string;
64
+ signedInAs: string;
54
65
  currentAccountLabel: string;
55
66
  usersList: string;
56
67
  linkedAccountSignedIn: string;
@@ -59,8 +70,15 @@ export abstract class ArcgisPortalAccountSwitcherAccounts extends LitElement {
59
70
  emptyList: string;
60
71
  maxAccounts: string;
61
72
  unlinkAccount: string;
73
+ unlinkOrgUser: string;
74
+ unlinkPublicUser: string;
62
75
  linkAccount: string;
76
+ addAccount: string;
63
77
  switchTo: string;
78
+ switchToOrgUser: string;
79
+ switchToPublicUser: string;
80
+ userDisabled: string;
81
+ userNotAllowed: string;
64
82
  unlink: string;
65
83
  unlinkTitle: string;
66
84
  unlinkWarning: string;
@@ -1,6 +1,6 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { c as a } from "../../chunks/runtime.js";
3
- import { html as o } from "lit";
2
+ import { c as o } from "../../chunks/runtime.js";
3
+ import { html as a } from "lit";
4
4
  import { LitElement as l, createEvent as e } from "@arcgis/lumina";
5
5
  import { createRef as r, ref as n } from "lit/directives/ref.js";
6
6
  import { u } from "../../chunks/useT9n.js";
@@ -17,15 +17,15 @@ class p extends l {
17
17
  this.styles = g;
18
18
  }
19
19
  render() {
20
- const { messages: t, portal: i, accounts: s, targetUser: c } = this;
21
- return o`<calcite-dialog open modal width=s .heading=${t.linkTitle} outside-close-disabled @calciteDialogClose=${() => this.arcgisCloseDialog.emit()} ${n(this.dialogRef)}><calcite-block .heading=${m(t.linkWarning, { targetUser: c })} expanded class="linked-accounts-block"><arcgis-portal-account-switcher-list .portal=${i} .linkedAccounts=${s} .label=${t.usersList}></arcgis-portal-account-switcher-list></calcite-block><calcite-button slot=footer-end appearance=outline @click=${() => {
20
+ const { messages: t, portal: i, accounts: c, targetUser: s } = this;
21
+ return a`<calcite-dialog open modal width=s .heading=${t.linkTitle} outside-close-disabled @calciteDialogClose=${() => this.arcgisCloseDialog.emit()} ${n(this.dialogRef)}><calcite-block .heading=${m(t.linkWarning, { targetUser: s })} expanded class="linked-accounts-block"><arcgis-portal-account-switcher-list .portal=${i} .linkedAccounts=${c}></arcgis-portal-account-switcher-list></calcite-block><calcite-button slot=footer-end appearance=outline @click=${() => {
22
22
  this.dialogRef.value.open = !1;
23
23
  }}>${t.cancel}</calcite-button><calcite-button slot=footer-end kind=brand @click=${() => {
24
24
  this.arcgisLinkAll.emit(), this.dialogRef.value.open = !1;
25
25
  }}>${t.linkAll}</calcite-button></calcite-dialog>`;
26
26
  }
27
27
  }
28
- a("arcgis-portal-account-switcher-accounts", p);
28
+ o("arcgis-portal-account-switcher-accounts", p);
29
29
  export {
30
30
  p as ArcgisPortalAccountSwitcherAccounts
31
31
  };
@@ -2,20 +2,22 @@
2
2
  import type Portal from "@arcgis/core/portal/Portal.js";
3
3
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
4
4
  import type { LinkedAccount } from "../../types/user.js";
5
+ import type { AccountAccess } from "../arcgis-portal-account-switcher/types.js";
5
6
  import type { T9nMeta } from "@arcgis/lumina/controllers";
6
7
 
7
8
  /** @internal */
8
9
  export abstract class ArcgisPortalAccountSwitcherList extends LitElement {
10
+ accessor accountAccess: AccountAccess;
9
11
  /** @default false */
10
12
  accessor interactive: boolean;
11
- /** @default "" */
12
- accessor label: string;
13
13
  accessor linkedAccounts: LinkedAccount[];
14
14
  /** @internal */
15
15
  protected messages: {
16
16
  switchAccounts: string;
17
- chooseAccount: string;
17
+ linkedAccounts: string;
18
+ linkedAccountActions: string;
18
19
  currentAccount: string;
20
+ signedInAs: string;
19
21
  currentAccountLabel: string;
20
22
  usersList: string;
21
23
  linkedAccountSignedIn: string;
@@ -24,8 +26,15 @@ export abstract class ArcgisPortalAccountSwitcherList extends LitElement {
24
26
  emptyList: string;
25
27
  maxAccounts: string;
26
28
  unlinkAccount: string;
29
+ unlinkOrgUser: string;
30
+ unlinkPublicUser: string;
27
31
  linkAccount: string;
32
+ addAccount: string;
28
33
  switchTo: string;
34
+ switchToOrgUser: string;
35
+ switchToPublicUser: string;
36
+ userDisabled: string;
37
+ userNotAllowed: string;
29
38
  unlink: string;
30
39
  unlinkTitle: string;
31
40
  unlinkWarning: string;
@@ -53,8 +62,10 @@ export abstract class ArcgisPortalAccountSwitcherList extends LitElement {
53
62
  };
54
63
  } & T9nMeta<{
55
64
  switchAccounts: string;
56
- chooseAccount: string;
65
+ linkedAccounts: string;
66
+ linkedAccountActions: string;
57
67
  currentAccount: string;
68
+ signedInAs: string;
58
69
  currentAccountLabel: string;
59
70
  usersList: string;
60
71
  linkedAccountSignedIn: string;
@@ -63,8 +74,15 @@ export abstract class ArcgisPortalAccountSwitcherList extends LitElement {
63
74
  emptyList: string;
64
75
  maxAccounts: string;
65
76
  unlinkAccount: string;
77
+ unlinkOrgUser: string;
78
+ unlinkPublicUser: string;
66
79
  linkAccount: string;
80
+ addAccount: string;
67
81
  switchTo: string;
82
+ switchToOrgUser: string;
83
+ switchToPublicUser: string;
84
+ userDisabled: string;
85
+ userNotAllowed: string;
68
86
  unlink: string;
69
87
  unlinkTitle: string;
70
88
  unlinkWarning: string;
@@ -1,51 +1,72 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { c as h } from "../../chunks/runtime.js";
3
- import { repeat as m } from "lit/directives/repeat.js";
4
- import { html as s } from "lit";
5
- import { LitElement as v, createEvent as n } from "@arcgis/lumina";
6
- import { s as g } from "../../chunks/portal-account-switcher.js";
7
- import { u } from "../../chunks/useT9n.js";
8
- import { substitute as d } from "@arcgis/core/intl.js";
9
- function f({ provider: i }) {
10
- const l = {
11
- facebook: '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 20 20"><path d="M20 10c0-5.52-4.48-10-10-10S0 4.48 0 10c0 4.99 3.66 9.13 8.44 9.88v-6.99H5.9V10h2.54V7.8c0-2.51 1.49-3.89 3.78-3.89 1.09 0 2.24.2 2.24.2v2.46H13.2c-1.24 0-1.63.77-1.63 1.56V10h2.77l-.44 2.89h-2.33v6.99C16.34 19.13 20 14.99 20 10" style="fill:#1977f3"/></svg>',
12
- google: '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 20 20"><path d="M19.8 10.21c0-.68-.06-1.36-.17-2.03H10.2v3.85h5.4a4.6 4.6 0 0 1-2 3.04v2.5h3.22c1.89-1.74 2.98-4.32 2.98-7.36" style="fill:#4285f4"/><path d="M10.2 19.98c2.7 0 4.97-.89 6.63-2.41l-3.22-2.5c-.9.61-2.05.96-3.4.96-2.61 0-4.82-1.76-5.61-4.13H1.26v2.58c1.7 3.37 5.16 5.5 8.94 5.5" style="fill:#34a853"/><path d="M4.58 11.9a5.98 5.98 0 0 1 0-3.83V5.49H1.26a10 10 0 0 0 0 8.98z" style="fill:#fbbc04"/><path d="M10.2 3.94c1.43-.02 2.8.51 3.84 1.5l2.85-2.85a9.6 9.6 0 0 0-6.69-2.6c-3.78 0-7.24 2.13-8.94 5.51l3.32 2.58c.79-2.38 3.01-4.14 5.62-4.14" style="fill:#ea4335"/></svg>',
13
- github: '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 20 20" class="icon-black"><path d="M10 .25c-5.53 0-10 4.47-10 10 0 4.43 2.86 8.16 6.84 9.49.5.09.69-.21.69-.48 0-.24-.01-1.02-.01-1.86-2.52.46-3.17-.62-3.37-1.18-.11-.29-.6-1.18-1.02-1.41-.35-.19-.85-.65-.01-.66.79-.01 1.35.73 1.54 1.02.9 1.51 2.34 1.09 2.91.82.09-.65.35-1.09.64-1.34-2.22-.25-4.55-1.11-4.55-4.94 0-1.09.39-1.99 1.03-2.69-.1-.25-.45-1.28.1-2.65 0 0 .84-.26 2.75 1.03.8-.23 1.65-.34 2.5-.34s1.7.11 2.5.34c1.91-1.3 2.75-1.03 2.75-1.03.55 1.38.2 2.4.1 2.65.64.7 1.02 1.59 1.02 2.69 0 3.84-2.34 4.69-4.56 4.94.36.31.68.91.68 1.85 0 1.34-.01 2.41-.01 2.75 0 .26.19.58.69.48 4.07-1.37 6.81-5.19 6.81-9.49C20 4.72 15.52.25 10 .25" style="fill-rule:evenodd;clip-rule:evenodd"/></svg>',
14
- apple: '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 20 20" class="icon-black"><path d="M13.85 0h.14c.11 1.41-.42 2.46-1.08 3.23-.64.76-1.52 1.49-2.94 1.38-.09-1.39.44-2.37 1.1-3.13.6-.71 1.71-1.34 2.78-1.48M18.15 14.68v.04c-.4 1.21-.97 2.25-1.67 3.21-.63.87-1.41 2.05-2.8 2.05-1.2 0-2-.77-3.23-.79-1.3-.02-2.02.65-3.21.81h-.41c-.87-.13-1.58-.82-2.09-1.44-1.51-1.84-2.69-4.22-2.9-7.27v-.89C1.94 8.21 3 6.44 4.41 5.58c.74-.46 1.76-.85 2.9-.67.49.08.98.24 1.42.41.41.16.93.44 1.42.43.33-.01.66-.18 1-.3.98-.35 1.94-.76 3.21-.57 1.52.23 2.6.91 3.27 1.95-1.29.82-2.31 2.05-2.13 4.16.15 1.91 1.26 3.03 2.65 3.69"/></svg>',
15
- x: '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 20 20" class="icon-black"><path d="M11.68 8.62 18.23 1h-1.55l-5.69 6.62L6.44 1H1.19l6.88 10.01L1.19 19h1.55l6.01-6.99 4.8 6.99h5.24zM9.55 11.1l-.7-1-5.54-7.93H5.7l4.47 6.4.7 1 5.82 8.32H14.3z"/></svg>'
16
- };
17
- let t = "";
18
- if (i && l[i] && (t = l[i]), !!t)
19
- return s`<div .innerHTML=${t ?? ""}></div>`;
20
- }
21
- const w = ["apple", "facebook", "github", "google"];
22
- class $ extends v {
2
+ import { c as u } from "../../chunks/runtime.js";
3
+ import { repeat as h } from "lit/directives/repeat.js";
4
+ import { html as n } from "lit";
5
+ import { LitElement as m, createEvent as o } from "@arcgis/lumina";
6
+ import { s as p } from "../../chunks/portal-account-switcher.js";
7
+ import { u as f } from "../../chunks/useT9n.js";
8
+ import { substitute as a } from "@arcgis/core/intl.js";
9
+ import { g as d } from "../../chunks/services.js";
10
+ class g extends m {
23
11
  constructor() {
24
- super(...arguments), this.messages = u({ blocking: !0, name: "portal-account-switcher" }), this.tipReference = null, this.tooltipText = "", this.linkedAccounts = [], this.interactive = !1, this.signedInUsers = [], this.label = "", this.arcgisAccountSwitch = n(), this.arcgisAccountUnlink = n();
12
+ super(...arguments), this.messages = f({ blocking: !0, name: "portal-account-switcher" }), this.tipReference = null, this.tooltipText = "", this.linkedAccounts = [], this.interactive = !1, this.signedInUsers = [], this.accountAccess = {}, this.arcgisAccountSwitch = o(), this.arcgisAccountUnlink = o();
25
13
  }
26
14
  static {
27
- this.properties = { tipReference: 16, tooltipText: 16, portal: 0, linkedAccounts: 0, interactive: 5, signedInUsers: 0, label: 1 };
15
+ this.properties = { tipReference: 16, tooltipText: 16, portal: 0, linkedAccounts: 0, interactive: 5, signedInUsers: 0, accountAccess: 0 };
28
16
  }
29
17
  static {
30
- this.styles = g;
18
+ this.styles = p;
19
+ }
20
+ formatProvider(i) {
21
+ if (i.startsWith("oidc_"))
22
+ return "OpenID";
23
+ switch (i) {
24
+ case "arcgis":
25
+ return "ArcGIS";
26
+ case "enterprise":
27
+ return "SAML";
28
+ case "apple":
29
+ return "Apple";
30
+ case "facebook":
31
+ return "Facebook";
32
+ case "github":
33
+ return "GitHub";
34
+ case "google":
35
+ return "Google";
36
+ default:
37
+ return "Unknown";
38
+ }
39
+ }
40
+ formatSwitchToLabel(i, s, l = !0) {
41
+ const { messages: r } = this;
42
+ return i.disabled ? r.userDisabled : s[i.username]?.allowed ?? !0 ? l ? i.orgName ? a(r.switchToOrgUser, i) : a(r.switchToPublicUser, i) : r.switchTo : r.userNotAllowed;
31
43
  }
32
44
  render() {
33
- const { linkedAccounts: l, messages: t, signedInUsers: a, label: o, interactive: c, portal: p } = this;
34
- return s`<calcite-list .label=${o} selection-mode=none class="linked-accounts-list" .interactionMode=${c ? "interactive" : "static"}>${m(l, (e) => e.id ?? e.username, (e) => s`<calcite-list-item .label=${e.username} .description=${e.orgName} .value=${e.username} @click=${() => {
35
- c && this.arcgisAccountSwitch.emit({ account: e });
36
- }}><arcgis-portal-user-avatar .user=${e} .portal=${p} slot=content-start></arcgis-portal-user-avatar>${w.includes(e.provider) && s`<div slot=content-start class="social-icon-chip">${f({ provider: e.provider })}</div>` || ""}${a.includes(e.username) && s`<calcite-chip appearance=outline scale=s .label=${d(t.linkedAccountSignedIn, {
37
- username: e.username,
38
- orgName: e.orgName
39
- })} slot=content-end>${t.signedIn}</calcite-chip>` || ""}${c && s`<calcite-button appearance=transparent slot=actions-end kind=danger icon-start=unlink .id=${`unlink-${e.username}`} @mouseenter=${(r) => {
40
- this.tipReference = r.currentTarget, this.tooltipText = t.unlinkAccount;
45
+ const { linkedAccounts: i, messages: s, accountAccess: l, interactive: r, portal: c } = this;
46
+ return n`${h(i, (e) => e.id ?? e.username, (e) => n`<calcite-block .label=${e.orgName ? `${e.username}, ${e.orgName}` : e.username} heading-level=4 .heading=${e.username} .description=${e.orgName ? `${e.fullname}, ${e.orgName}` : e.fullname} class="linked-account"><calcite-avatar slot=content-start inert .fullName=${e.fullname} .username=${e.username} .userId=${e.id} .thumbnail=${d({ fullName: e.fullname, ...e }, c) ?? void 0}></calcite-avatar><calcite-chip slot=content-end kind=neutral scale=s .label=${this.formatProvider(e.provider)} class="provider-chip">${this.formatProvider(e.provider)}</calcite-chip>${r && n`<calcite-button appearance=transparent slot=actions-end kind=danger icon-start=unlink .label=${a(e.orgName ? s.unlinkOrgUser : s.unlinkPublicUser, e)} .id=${`unlink-${e.username}`} @mouseenter=${(t) => {
47
+ this.tipReference = t.currentTarget, this.tooltipText = s.unlinkAccount;
41
48
  }} @mouseleave=${() => {
42
49
  this.tipReference = null, this.tooltipText = "";
43
- }} @click=${(r) => {
44
- r.stopPropagation(), r.preventDefault(), this.arcgisAccountUnlink.emit({ account: e });
45
- }}></calcite-button>` || ""}</calcite-list-item>`)}</calcite-list>${c && s`<calcite-tooltip .open=${!!this.tipReference} .referenceElement=${this.tipReference}>${this.tooltipText}</calcite-tooltip>` || ""}`;
50
+ }} @focusin=${(t) => {
51
+ this.tipReference = t.currentTarget, this.tooltipText = s.unlinkAccount;
52
+ }} @focusout=${() => {
53
+ this.tipReference = null, this.tooltipText = "";
54
+ }} @click=${(t) => {
55
+ t.preventDefault(), this.arcgisAccountUnlink.emit({ account: e });
56
+ }}></calcite-button><calcite-button appearance=transparent slot=actions-end kind=neutral icon-start=sign-in .label=${this.formatSwitchToLabel(e, l)} .disabled=${e.disabled || !(l[e.username]?.allowed ?? !0)} .id=${`switch-${e.username}`} @mouseenter=${(t) => {
57
+ this.tipReference = t.currentTarget, this.tooltipText = this.formatSwitchToLabel(e, l, !1);
58
+ }} @mouseleave=${() => {
59
+ this.tipReference = null, this.tooltipText = "";
60
+ }} @focusin=${(t) => {
61
+ this.tipReference = t.currentTarget, this.tooltipText = this.formatSwitchToLabel(e, l, !1);
62
+ }} @focusout=${() => {
63
+ this.tipReference = null, this.tooltipText = "";
64
+ }} @click=${(t) => {
65
+ t.preventDefault(), this.arcgisAccountSwitch.emit({ account: e });
66
+ }}></calcite-button>` || ""}</calcite-block>`)}${r && n`<calcite-tooltip .open=${!!this.tipReference} .referenceElement=${this.tipReference}>${this.tooltipText}</calcite-tooltip>` || ""}`;
46
67
  }
47
68
  }
48
- h("arcgis-portal-account-switcher-list", $);
69
+ u("arcgis-portal-account-switcher-list", g);
49
70
  export {
50
- $ as ArcgisPortalAccountSwitcherList
71
+ g as ArcgisPortalAccountSwitcherList
51
72
  };
@@ -1,6 +1,5 @@
1
- import "@esri/calcite-components/components/calcite-list";
2
- import "@esri/calcite-components/components/calcite-list-item";
3
- import "../arcgis-portal-user-avatar/index.js";
1
+ import "@esri/calcite-components/components/calcite-block";
2
+ import "@esri/calcite-components/components/calcite-avatar";
4
3
  import "@esri/calcite-components/components/calcite-chip";
5
4
  import "@esri/calcite-components/components/calcite-button";
6
5
  import "@esri/calcite-components/components/calcite-tooltip";
@@ -1,22 +1,31 @@
1
- export type OrgSettingsSecuritySection = (typeof orgSettingsSecuritySections)[number];
2
-
3
- export type OrgSettingsSecurityCard = (typeof orgSettingsSecurityCards)[number];
4
-
5
1
  export type ContentNewItemParamValue = (typeof contentNewItemParamValues)[number];
6
2
 
7
- export const orgSettingsSecuritySections: readonly [
8
- "customSignInSection",
9
- "loginsSection",
10
- "changeLoginProviderSection",
11
- "multiFactorAuthSection",
12
- "multifactorEnforcementSection",
13
- "multifactorDesignatedAdminsSection"
14
- ];
3
+ export type OrgSettingsTab = (typeof orgSettingsTabs)[number];
15
4
 
16
- export const orgSettingsSecurityCards: readonly [
17
- "customSignInCard",
18
- "loginCard",
19
- "multifactorAuthCard"
5
+ export const orgSettingsTabs: readonly [
6
+ "general",
7
+ "about",
8
+ "homePage",
9
+ "gallery",
10
+ "aiAssistants",
11
+ "map",
12
+ "items",
13
+ "groups",
14
+ "webhooks",
15
+ "utilityServices",
16
+ "agol",
17
+ "esriContent",
18
+ "livingAtlas",
19
+ "servers",
20
+ "memberRoles",
21
+ "newMemberDefaults",
22
+ "marketplace",
23
+ "collaborations",
24
+ "credits",
25
+ "security",
26
+ "openData",
27
+ "hub",
28
+ "orgExtensions"
20
29
  ];
21
30
 
22
31
  export const contentNewItemParamValues: readonly [
@@ -1,4 +1,4 @@
1
- import type { ContentNewItemParamValue, OrgSettingsSecurityCard, OrgSettingsSecuritySection } from "./portalRouteKeys.js";
1
+ import type { ContentNewItemParamValue, OrgSettingsTab } from "./portalRouteKeys.js";
2
2
 
3
3
  /** A host-resolved Portal destination with an optional localized action label. */
4
4
  export type PortalNavigationTarget = PortalNavigationDestination
@@ -50,9 +50,9 @@ export type PortalContentQueryParams = {
50
50
  };
51
51
 
52
52
  export type PortalOrgQueryParams = {
53
- tab?: "security";
54
- section?: OrgSettingsSecurityCard;
55
- subsection?: OrgSettingsSecuritySection;
53
+ tab?: OrgSettingsTab;
54
+ section?: string;
55
+ subsection?: string;
56
56
  period?: string;
57
57
  startTime?: string;
58
58
  endTime?: string;
@@ -160,6 +160,12 @@ export abstract class ArcgisPortalAiAssistant extends LitElement {
160
160
  chatHistory: string;
161
161
  };
162
162
  }>;
163
+ /**
164
+ * When true, uses the production documentation assistant endpoint instead of portal helper services.
165
+ *
166
+ * @default false
167
+ */
168
+ accessor useProdDocAssistant: boolean;
163
169
  accessor user: PortalUser;
164
170
  readonly arcgisPortalNavigationRequest: import("@arcgis/lumina").TargetedEvent<this, {
165
171
  href: string;