@arcgis/portal-components 5.2.0-next.2 → 5.2.0-next.21
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/25UUUQAQ.js +71 -0
- package/dist/cdn/{OQDPULPD.js → 2RGMWFHB.js} +1 -1
- package/dist/cdn/3KS5IDT2.js +2 -0
- package/dist/cdn/{AQWTJKUH.js → 3MQIRMUM.js} +9 -7
- package/dist/cdn/{JNRN6DTV.js → 47NPIL2S.js} +1 -1
- package/dist/cdn/{LQ3DMZ3K.js → 5VHBNEN3.js} +1 -1
- package/dist/cdn/6AGZRMJC.js +2 -0
- package/dist/cdn/6W2IHKCA.js +2 -0
- package/dist/cdn/{WOZDQW3S.js → DBKSQGEI.js} +1 -1
- package/dist/cdn/DFTUMKSN.js +3 -0
- package/dist/cdn/{YMPTDKT6.js → EETBNQU2.js} +1 -1
- package/dist/cdn/EHRAFAEA.js +65 -0
- package/dist/cdn/EKO6SVAF.js +2 -0
- package/dist/cdn/{GHQ3ZW4U.js → FI45QCN2.js} +1 -1
- package/dist/cdn/GEIZTD7F.js +2 -0
- package/dist/cdn/{ZTHTFEYA.js → HGSK6OFA.js} +1 -1
- package/dist/cdn/{LAFNDBTQ.js → HIRM34QB.js} +1 -1
- package/dist/cdn/HMBSJR37.js +2 -0
- package/dist/cdn/KT7PE6UE.js +2 -0
- package/dist/cdn/{BEHLBKKM.js → KY7Q7DH3.js} +1 -1
- package/dist/cdn/{5DPWJ7DI.js → KZWW4BWJ.js} +1 -1
- package/dist/cdn/{N6G6Z7BF.js → MH7KZ5G3.js} +256 -154
- package/dist/cdn/MLTQECPL.js +2 -0
- package/dist/cdn/{G47ZZQYL.js → OKRYML2G.js} +1 -1
- package/dist/cdn/PDL3DPMG.js +2 -0
- package/dist/cdn/{QNUYUNEY.js → QJ2UHWPU.js} +1 -1
- package/dist/cdn/{GT26WGJS.js → SXZRHHXC.js} +1 -1
- package/dist/cdn/TSLW4FSA.js +2 -0
- package/dist/cdn/{72N3KAXN.js → TW4LFQA5.js} +1 -1
- package/dist/cdn/{7WZHZP6U.js → UR7W4CEV.js} +8 -2
- package/dist/cdn/{W6PSG4GX.js → VRXKORTR.js} +9 -4
- package/dist/cdn/VXCB2YBR.js +3 -0
- package/dist/cdn/{DHHSKOUY.js → WJ2NMHDE.js} +1 -1
- package/dist/cdn/{2UUZHENH.js → WSNLUGEP.js} +1 -1
- package/dist/cdn/{53MSUMA3.js → XCZSPNKS.js} +16 -0
- package/dist/cdn/{K3HS2LQ7.js → YECI7XG3.js} +1 -1
- package/dist/cdn/ZDLFZJBT.js +2 -0
- package/dist/cdn/assets/portal-group-badges/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-group-card/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-item-type/icons/parquetfeaturelayer16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/parquetfeaturelayer32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/storymapframe16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/storymapframe32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/portal-user-popup/t9n/messages.en.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/groups.js +7 -83
- package/dist/chunks/item2.js +86 -0
- package/dist/chunks/portal.js +48 -8
- package/dist/chunks/user2.js +26 -25
- package/dist/components/arcgis-portal-ai-assistant/agents/types.d.ts +11 -2
- package/dist/components/arcgis-portal-ai-assistant/customElement.d.ts +4 -2
- package/dist/components/arcgis-portal-ai-assistant/customElement.js +797 -488
- package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.js +10 -10
- package/dist/components/arcgis-portal-group-badges/customElement.d.ts +102 -0
- package/dist/components/arcgis-portal-group-badges/customElement.js +50 -0
- package/dist/components/arcgis-portal-group-badges/index.d.ts +1 -0
- package/dist/components/arcgis-portal-group-badges/index.js +3 -0
- package/dist/components/arcgis-portal-group-badges/types.d.ts +3 -0
- package/dist/components/arcgis-portal-group-card/customElement.d.ts +167 -0
- package/dist/components/arcgis-portal-group-card/customElement.js +187 -0
- package/dist/components/arcgis-portal-group-card/index.d.ts +1 -0
- package/dist/components/arcgis-portal-group-card/index.js +8 -0
- package/dist/components/arcgis-portal-group-thumbnail/customElement.d.ts +32 -0
- package/dist/components/arcgis-portal-group-thumbnail/customElement.js +153 -0
- package/dist/components/arcgis-portal-group-thumbnail/index.d.ts +1 -0
- package/dist/components/arcgis-portal-group-thumbnail/index.js +3 -0
- package/dist/components/arcgis-portal-item-type/customElement.d.ts +2 -0
- package/dist/components/arcgis-portal-item-type/customElement.js +45 -37
- package/dist/components/arcgis-portal-mentionable-text-area/customElement.js +1 -1
- package/dist/components/arcgis-portal-replacement-item-redirect/customElement.js +53 -42
- package/dist/components/arcgis-portal-user-popup/customElement.d.ts +111 -0
- package/dist/components/arcgis-portal-user-popup/customElement.js +231 -0
- package/dist/components/arcgis-portal-user-popup/index.d.ts +1 -0
- package/dist/components/arcgis-portal-user-popup/index.js +5 -0
- package/dist/components/arcgis-portal-voice-input/customElement.d.ts +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/index.d.ts +30 -2
- package/dist/loader.js +8 -4
- package/dist/types/lumina.d.ts +26 -1
- package/dist/types/preact.d.ts +30 -1
- package/dist/types/react.d.ts +34 -1
- package/dist/types/stencil.d.ts +26 -1
- package/dist/types/tracking.d.ts +10 -0
- package/dist/types/user.d.ts +2 -2
- package/package.json +7 -7
- package/dist/cdn/5VSDGPHH.js +0 -2
- package/dist/cdn/CI5ENGVT.js +0 -2
- package/dist/cdn/EVDOPN3G.js +0 -54
- package/dist/cdn/GNOZCQ34.js +0 -2
- package/dist/cdn/KEKBRUUC.js +0 -2
- package/dist/cdn/RNLVNDGG.js +0 -2
- package/dist/cdn/SM4GWLRA.js +0 -66
- package/dist/cdn/TMYTUOSS.js +0 -2
- package/dist/cdn/YG5YYL6X.js +0 -2
- /package/dist/cdn/{B7633S2A.js → 5NIJVBS7.js} +0 -0
package/dist/types/react.d.ts
CHANGED
|
@@ -7,15 +7,19 @@ import type { ArcgisPortalClassificationFavorite } from "../components/arcgis-po
|
|
|
7
7
|
import type { ArcgisPortalClassificationFormElement } from "../components/arcgis-portal-classification-form-element/customElement.js";
|
|
8
8
|
import type { ArcgisPortalExtentPicker } from "../components/arcgis-portal-extent-picker/customElement.js";
|
|
9
9
|
import type { ArcgisPortalFieldDelete } from "../components/arcgis-portal-field-delete/customElement.js";
|
|
10
|
+
import type { ArcgisPortalGroupBadges } from "../components/arcgis-portal-group-badges/customElement.js";
|
|
11
|
+
import type { ArcgisPortalGroupCard } from "../components/arcgis-portal-group-card/customElement.js";
|
|
12
|
+
import type { ArcgisPortalGroupThumbnail } from "../components/arcgis-portal-group-thumbnail/customElement.js";
|
|
10
13
|
import type { ArcgisPortalItemType } from "../components/arcgis-portal-item-type/customElement.js";
|
|
11
14
|
import type { ArcgisPortalMentionableTextArea } from "../components/arcgis-portal-mentionable-text-area/customElement.js";
|
|
12
15
|
import type { ArcgisPortalReplacementItemRedirect } from "../components/arcgis-portal-replacement-item-redirect/customElement.js";
|
|
13
16
|
import type { ArcgisPortalUserAvatar } from "../components/arcgis-portal-user-avatar/customElement.js";
|
|
17
|
+
import type { ArcgisPortalUserPopup } from "../components/arcgis-portal-user-popup/customElement.js";
|
|
14
18
|
import type { ArcgisPortalVoiceInput } from "../components/arcgis-portal-voice-input/customElement.js";
|
|
15
19
|
import type { HTMLProps } from 'react';
|
|
16
20
|
import type { EventHandler } from "@arcgis/lumina";
|
|
17
21
|
|
|
18
|
-
interface ReactArcgisPortalAiAssistant extends Partial<Pick<ArcgisPortalAiAssistant, "autoDestroyDisabled" | "config" | "defaultClosed" | "portal" | "user">>, HTMLProps<ArcgisPortalAiAssistant> {
|
|
22
|
+
interface ReactArcgisPortalAiAssistant extends Partial<Pick<ArcgisPortalAiAssistant, "autoDestroyDisabled" | "config" | "defaultClosed" | "navigationTargetMap" | "portal" | "user">>, HTMLProps<ArcgisPortalAiAssistant> {
|
|
19
23
|
onarcgisPortalNavigationRequest?: EventHandler<ArcgisPortalAiAssistant["arcgisPortalNavigationRequest"]>;
|
|
20
24
|
}
|
|
21
25
|
|
|
@@ -51,6 +55,18 @@ interface ReactArcgisPortalFieldDelete extends Partial<Pick<ArcgisPortalFieldDel
|
|
|
51
55
|
onarcgisFieldsDeleted?: EventHandler<ArcgisPortalFieldDelete["arcgisFieldsDeleted"]>;
|
|
52
56
|
}
|
|
53
57
|
|
|
58
|
+
interface ReactArcgisPortalGroupBadges extends Partial<Pick<ArcgisPortalGroupBadges, "appearance" | "empty" | "group" | "portal" | "scale" | "showTooltips" | "width">>, HTMLProps<ArcgisPortalGroupBadges> {
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
interface ReactArcgisPortalGroupCard extends Partial<Pick<ArcgisPortalGroupCard, "disabled" | "group" | "indeterminate" | "link" | "linkHandler" | "name" | "newTab" | "portal" | "preview" | "previewed" | "selected" | "selection" | "showBadges" | "showDateCreated" | "showDateUpdated" | "showOwner" | "showSummary" | "showViewableBy" | "user" | "view">>, HTMLProps<ArcgisPortalGroupCard> {
|
|
62
|
+
onarcgisGroupBrowserCardPreview?: EventHandler<ArcgisPortalGroupCard["arcgisGroupBrowserCardPreview"]>;
|
|
63
|
+
onarcgisGroupBrowserInternalUIAction?: EventHandler<ArcgisPortalGroupCard["arcgisGroupBrowserInternalUIAction"]>;
|
|
64
|
+
onarcgisGroupCardSelect?: EventHandler<ArcgisPortalGroupCard["arcgisGroupCardSelect"]>;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
interface ReactArcgisPortalGroupThumbnail extends Partial<Pick<ArcgisPortalGroupThumbnail, "group" | "portal" | "scale" | "tooltip">>, HTMLProps<ArcgisPortalGroupThumbnail> {
|
|
68
|
+
}
|
|
69
|
+
|
|
54
70
|
interface ReactArcgisPortalItemType extends Partial<Pick<ArcgisPortalItemType, "ellipsis" | "hideIcon" | "hideText" | "item" | "portal" | "scale" | "serviceInfo" | "showHosted" | "user">>, HTMLProps<ArcgisPortalItemType> {
|
|
55
71
|
}
|
|
56
72
|
|
|
@@ -69,6 +85,11 @@ interface ReactArcgisPortalReplacementItemRedirect extends Partial<Pick<ArcgisPo
|
|
|
69
85
|
interface ReactArcgisPortalUserAvatar extends Partial<Pick<ArcgisPortalUserAvatar, "checkOnline" | "description" | "heading" | "hideAvatar" | "portal" | "scale" | "showName" | "underline" | "user" | "username" | "wrap">>, HTMLProps<ArcgisPortalUserAvatar> {
|
|
70
86
|
}
|
|
71
87
|
|
|
88
|
+
interface ReactArcgisPortalUserPopup extends Partial<Pick<ArcgisPortalUserPopup, "appearance" | "avatarAriaHidden" | "baseUrl" | "checkOnline" | "fullName" | "item" | "portal" | "scale" | "showAvatar" | "showName" | "showUsername" | "underline" | "user" | "username" | "wrap" | "zIndex">>, HTMLProps<ArcgisPortalUserPopup> {
|
|
89
|
+
onarcgisUserPopupClose?: EventHandler<ArcgisPortalUserPopup["arcgisUserPopupClose"]>;
|
|
90
|
+
onarcgisUserPopupInternalUIAction?: EventHandler<ArcgisPortalUserPopup["arcgisUserPopupInternalUIAction"]>;
|
|
91
|
+
}
|
|
92
|
+
|
|
72
93
|
interface ReactArcgisPortalVoiceInput extends Partial<Pick<ArcgisPortalVoiceInput, "language">>, HTMLProps<ArcgisPortalVoiceInput> {
|
|
73
94
|
onarcgisVoiceInputError?: EventHandler<ArcgisPortalVoiceInput["arcgisVoiceInputError"]>;
|
|
74
95
|
onarcgisVoiceInputInterimTranscription?: EventHandler<ArcgisPortalVoiceInput["arcgisVoiceInputInterimTranscription"]>;
|
|
@@ -88,10 +109,14 @@ declare module "react" {
|
|
|
88
109
|
"arcgis-portal-classification-form-element": ReactArcgisPortalClassificationFormElement;
|
|
89
110
|
"arcgis-portal-extent-picker": ReactArcgisPortalExtentPicker;
|
|
90
111
|
"arcgis-portal-field-delete": ReactArcgisPortalFieldDelete;
|
|
112
|
+
"arcgis-portal-group-badges": ReactArcgisPortalGroupBadges;
|
|
113
|
+
"arcgis-portal-group-card": ReactArcgisPortalGroupCard;
|
|
114
|
+
"arcgis-portal-group-thumbnail": ReactArcgisPortalGroupThumbnail;
|
|
91
115
|
"arcgis-portal-item-type": ReactArcgisPortalItemType;
|
|
92
116
|
"arcgis-portal-mentionable-text-area": ReactArcgisPortalMentionableTextArea;
|
|
93
117
|
"arcgis-portal-replacement-item-redirect": ReactArcgisPortalReplacementItemRedirect;
|
|
94
118
|
"arcgis-portal-user-avatar": ReactArcgisPortalUserAvatar;
|
|
119
|
+
"arcgis-portal-user-popup": ReactArcgisPortalUserPopup;
|
|
95
120
|
"arcgis-portal-voice-input": ReactArcgisPortalVoiceInput;
|
|
96
121
|
}
|
|
97
122
|
}
|
|
@@ -107,10 +132,14 @@ declare module "react/jsx-runtime" {
|
|
|
107
132
|
"arcgis-portal-classification-form-element": ReactArcgisPortalClassificationFormElement;
|
|
108
133
|
"arcgis-portal-extent-picker": ReactArcgisPortalExtentPicker;
|
|
109
134
|
"arcgis-portal-field-delete": ReactArcgisPortalFieldDelete;
|
|
135
|
+
"arcgis-portal-group-badges": ReactArcgisPortalGroupBadges;
|
|
136
|
+
"arcgis-portal-group-card": ReactArcgisPortalGroupCard;
|
|
137
|
+
"arcgis-portal-group-thumbnail": ReactArcgisPortalGroupThumbnail;
|
|
110
138
|
"arcgis-portal-item-type": ReactArcgisPortalItemType;
|
|
111
139
|
"arcgis-portal-mentionable-text-area": ReactArcgisPortalMentionableTextArea;
|
|
112
140
|
"arcgis-portal-replacement-item-redirect": ReactArcgisPortalReplacementItemRedirect;
|
|
113
141
|
"arcgis-portal-user-avatar": ReactArcgisPortalUserAvatar;
|
|
142
|
+
"arcgis-portal-user-popup": ReactArcgisPortalUserPopup;
|
|
114
143
|
"arcgis-portal-voice-input": ReactArcgisPortalVoiceInput;
|
|
115
144
|
}
|
|
116
145
|
}
|
|
@@ -126,10 +155,14 @@ declare module "react/jsx-dev-runtime" {
|
|
|
126
155
|
"arcgis-portal-classification-form-element": ReactArcgisPortalClassificationFormElement;
|
|
127
156
|
"arcgis-portal-extent-picker": ReactArcgisPortalExtentPicker;
|
|
128
157
|
"arcgis-portal-field-delete": ReactArcgisPortalFieldDelete;
|
|
158
|
+
"arcgis-portal-group-badges": ReactArcgisPortalGroupBadges;
|
|
159
|
+
"arcgis-portal-group-card": ReactArcgisPortalGroupCard;
|
|
160
|
+
"arcgis-portal-group-thumbnail": ReactArcgisPortalGroupThumbnail;
|
|
129
161
|
"arcgis-portal-item-type": ReactArcgisPortalItemType;
|
|
130
162
|
"arcgis-portal-mentionable-text-area": ReactArcgisPortalMentionableTextArea;
|
|
131
163
|
"arcgis-portal-replacement-item-redirect": ReactArcgisPortalReplacementItemRedirect;
|
|
132
164
|
"arcgis-portal-user-avatar": ReactArcgisPortalUserAvatar;
|
|
165
|
+
"arcgis-portal-user-popup": ReactArcgisPortalUserPopup;
|
|
133
166
|
"arcgis-portal-voice-input": ReactArcgisPortalVoiceInput;
|
|
134
167
|
}
|
|
135
168
|
}
|
package/dist/types/stencil.d.ts
CHANGED
|
@@ -7,15 +7,19 @@ import type { ArcgisPortalClassificationFavorite } from "../components/arcgis-po
|
|
|
7
7
|
import type { ArcgisPortalClassificationFormElement } from "../components/arcgis-portal-classification-form-element/customElement.js";
|
|
8
8
|
import type { ArcgisPortalExtentPicker } from "../components/arcgis-portal-extent-picker/customElement.js";
|
|
9
9
|
import type { ArcgisPortalFieldDelete } from "../components/arcgis-portal-field-delete/customElement.js";
|
|
10
|
+
import type { ArcgisPortalGroupBadges } from "../components/arcgis-portal-group-badges/customElement.js";
|
|
11
|
+
import type { ArcgisPortalGroupCard } from "../components/arcgis-portal-group-card/customElement.js";
|
|
12
|
+
import type { ArcgisPortalGroupThumbnail } from "../components/arcgis-portal-group-thumbnail/customElement.js";
|
|
10
13
|
import type { ArcgisPortalItemType } from "../components/arcgis-portal-item-type/customElement.js";
|
|
11
14
|
import type { ArcgisPortalMentionableTextArea } from "../components/arcgis-portal-mentionable-text-area/customElement.js";
|
|
12
15
|
import type { ArcgisPortalReplacementItemRedirect } from "../components/arcgis-portal-replacement-item-redirect/customElement.js";
|
|
13
16
|
import type { ArcgisPortalUserAvatar } from "../components/arcgis-portal-user-avatar/customElement.js";
|
|
17
|
+
import type { ArcgisPortalUserPopup } from "../components/arcgis-portal-user-popup/customElement.js";
|
|
14
18
|
import type { ArcgisPortalVoiceInput } from "../components/arcgis-portal-voice-input/customElement.js";
|
|
15
19
|
import { JSXBase as StencilJsx } from "@stencil/core/internal";
|
|
16
20
|
import type { EventHandler } from "@arcgis/lumina";
|
|
17
21
|
|
|
18
|
-
interface StencilArcgisPortalAiAssistant extends Partial<Pick<ArcgisPortalAiAssistant, "autoDestroyDisabled" | "config" | "defaultClosed" | "portal" | "user">>, StencilJsx.HTMLAttributes<ArcgisPortalAiAssistant> {
|
|
22
|
+
interface StencilArcgisPortalAiAssistant extends Partial<Pick<ArcgisPortalAiAssistant, "autoDestroyDisabled" | "config" | "defaultClosed" | "navigationTargetMap" | "portal" | "user">>, StencilJsx.HTMLAttributes<ArcgisPortalAiAssistant> {
|
|
19
23
|
onArcgisPortalNavigationRequest?: EventHandler<ArcgisPortalAiAssistant["arcgisPortalNavigationRequest"]>;
|
|
20
24
|
}
|
|
21
25
|
|
|
@@ -51,6 +55,18 @@ interface StencilArcgisPortalFieldDelete extends Partial<Pick<ArcgisPortalFieldD
|
|
|
51
55
|
onArcgisFieldsDeleted?: EventHandler<ArcgisPortalFieldDelete["arcgisFieldsDeleted"]>;
|
|
52
56
|
}
|
|
53
57
|
|
|
58
|
+
interface StencilArcgisPortalGroupBadges extends Partial<Pick<ArcgisPortalGroupBadges, "appearance" | "empty" | "group" | "portal" | "scale" | "showTooltips" | "width">>, StencilJsx.HTMLAttributes<ArcgisPortalGroupBadges> {
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
interface StencilArcgisPortalGroupCard extends Partial<Pick<ArcgisPortalGroupCard, "disabled" | "group" | "indeterminate" | "link" | "linkHandler" | "name" | "newTab" | "portal" | "preview" | "previewed" | "selected" | "selection" | "showBadges" | "showDateCreated" | "showDateUpdated" | "showOwner" | "showSummary" | "showViewableBy" | "user" | "view">>, StencilJsx.HTMLAttributes<ArcgisPortalGroupCard> {
|
|
62
|
+
onArcgisGroupBrowserCardPreview?: EventHandler<ArcgisPortalGroupCard["arcgisGroupBrowserCardPreview"]>;
|
|
63
|
+
onArcgisGroupBrowserInternalUIAction?: EventHandler<ArcgisPortalGroupCard["arcgisGroupBrowserInternalUIAction"]>;
|
|
64
|
+
onArcgisGroupCardSelect?: EventHandler<ArcgisPortalGroupCard["arcgisGroupCardSelect"]>;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
interface StencilArcgisPortalGroupThumbnail extends Partial<Pick<ArcgisPortalGroupThumbnail, "group" | "portal" | "scale" | "tooltip">>, StencilJsx.HTMLAttributes<ArcgisPortalGroupThumbnail> {
|
|
68
|
+
}
|
|
69
|
+
|
|
54
70
|
interface StencilArcgisPortalItemType extends Partial<Pick<ArcgisPortalItemType, "ellipsis" | "hideIcon" | "hideText" | "item" | "portal" | "scale" | "serviceInfo" | "showHosted" | "user">>, StencilJsx.HTMLAttributes<ArcgisPortalItemType> {
|
|
55
71
|
}
|
|
56
72
|
|
|
@@ -69,6 +85,11 @@ interface StencilArcgisPortalReplacementItemRedirect extends Partial<Pick<Arcgis
|
|
|
69
85
|
interface StencilArcgisPortalUserAvatar extends Partial<Pick<ArcgisPortalUserAvatar, "checkOnline" | "description" | "heading" | "hideAvatar" | "portal" | "scale" | "showName" | "underline" | "user" | "username" | "wrap">>, StencilJsx.HTMLAttributes<ArcgisPortalUserAvatar> {
|
|
70
86
|
}
|
|
71
87
|
|
|
88
|
+
interface StencilArcgisPortalUserPopup extends Partial<Pick<ArcgisPortalUserPopup, "appearance" | "avatarAriaHidden" | "baseUrl" | "checkOnline" | "fullName" | "item" | "portal" | "scale" | "showAvatar" | "showName" | "showUsername" | "underline" | "user" | "username" | "wrap" | "zIndex">>, StencilJsx.HTMLAttributes<ArcgisPortalUserPopup> {
|
|
89
|
+
onArcgisUserPopupClose?: EventHandler<ArcgisPortalUserPopup["arcgisUserPopupClose"]>;
|
|
90
|
+
onArcgisUserPopupInternalUIAction?: EventHandler<ArcgisPortalUserPopup["arcgisUserPopupInternalUIAction"]>;
|
|
91
|
+
}
|
|
92
|
+
|
|
72
93
|
interface StencilArcgisPortalVoiceInput extends Partial<Pick<ArcgisPortalVoiceInput, "language">>, StencilJsx.HTMLAttributes<ArcgisPortalVoiceInput> {
|
|
73
94
|
onArcgisVoiceInputError?: EventHandler<ArcgisPortalVoiceInput["arcgisVoiceInputError"]>;
|
|
74
95
|
onArcgisVoiceInputInterimTranscription?: EventHandler<ArcgisPortalVoiceInput["arcgisVoiceInputInterimTranscription"]>;
|
|
@@ -86,10 +107,14 @@ interface ExposedElements {
|
|
|
86
107
|
"arcgis-portal-classification-form-element": StencilArcgisPortalClassificationFormElement;
|
|
87
108
|
"arcgis-portal-extent-picker": StencilArcgisPortalExtentPicker;
|
|
88
109
|
"arcgis-portal-field-delete": StencilArcgisPortalFieldDelete;
|
|
110
|
+
"arcgis-portal-group-badges": StencilArcgisPortalGroupBadges;
|
|
111
|
+
"arcgis-portal-group-card": StencilArcgisPortalGroupCard;
|
|
112
|
+
"arcgis-portal-group-thumbnail": StencilArcgisPortalGroupThumbnail;
|
|
89
113
|
"arcgis-portal-item-type": StencilArcgisPortalItemType;
|
|
90
114
|
"arcgis-portal-mentionable-text-area": StencilArcgisPortalMentionableTextArea;
|
|
91
115
|
"arcgis-portal-replacement-item-redirect": StencilArcgisPortalReplacementItemRedirect;
|
|
92
116
|
"arcgis-portal-user-avatar": StencilArcgisPortalUserAvatar;
|
|
117
|
+
"arcgis-portal-user-popup": StencilArcgisPortalUserPopup;
|
|
93
118
|
"arcgis-portal-voice-input": StencilArcgisPortalVoiceInput;
|
|
94
119
|
}
|
|
95
120
|
|
package/dist/types/user.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ export interface SearchResultUser {
|
|
|
60
60
|
username: string;
|
|
61
61
|
joined?: number;
|
|
62
62
|
memberType?: MemberType;
|
|
63
|
-
thumbnail?: string;
|
|
63
|
+
thumbnail?: string | null;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
/** Short user info made specifically for the UI */
|
|
@@ -68,7 +68,7 @@ export interface ItemUserInfo {
|
|
|
68
68
|
description: string;
|
|
69
69
|
fullName: string;
|
|
70
70
|
username: string;
|
|
71
|
-
thumbnail: string;
|
|
71
|
+
thumbnail: string | null;
|
|
72
72
|
id: string;
|
|
73
73
|
url: string;
|
|
74
74
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/portal-components",
|
|
3
|
-
"version": "5.2.0-next.
|
|
3
|
+
"version": "5.2.0-next.21",
|
|
4
4
|
"description": "ArcGIS Portal Components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ArcGIS",
|
|
@@ -44,16 +44,16 @@
|
|
|
44
44
|
"@lit/task": "^1.0.3",
|
|
45
45
|
"langchain": "^1.3.1",
|
|
46
46
|
"lit": "^3.3.0",
|
|
47
|
-
"marked": "~18.0.
|
|
47
|
+
"marked": "~18.0.5",
|
|
48
48
|
"tslib": "^2.8.1",
|
|
49
49
|
"zod": "^4.3.6",
|
|
50
|
-
"@arcgis/lumina": "5.2.0-next.
|
|
51
|
-
"@arcgis/
|
|
52
|
-
"@arcgis/
|
|
50
|
+
"@arcgis/lumina": "5.2.0-next.21",
|
|
51
|
+
"@arcgis/ai-components": "5.2.0-next.21",
|
|
52
|
+
"@arcgis/toolkit": "5.2.0-next.21"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@arcgis/core": "^5.
|
|
56
|
-
"@esri/calcite-components": "^5.1.
|
|
55
|
+
"@arcgis/core": "^5.2.0-next",
|
|
56
|
+
"@esri/calcite-components": "^5.1.1"
|
|
57
57
|
},
|
|
58
58
|
"css.customData": [
|
|
59
59
|
"dist/docs/vscode.css-custom-data.json"
|
package/dist/cdn/5VSDGPHH.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
var n=t=>t&&!t.endsWith("/")?`${t}/`:t;function r(t){return n(t.restUrl)}function e(t){return t.credential?.token||t.token||t.user?.credential?.token||t.portalUser?.token||""}function o(t){return t.sourceJSON?.isWebTierAuth}export{r as a,e as b,o as c};
|
package/dist/cdn/CI5ENGVT.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import b from"./2UUZHENH.js";import a from"./RNLVNDGG.js";import"./5VSDGPHH.js";import{c as R}from"./KEKBRUUC.js";import{A as M,B as S,E,H as P,I as g,J as D,K as v,P as L,h as k,j as d,l as A,v as u}from"./DHHSKOUY.js";import"./YIMNOUTF.js";export default $arcgis.t(([{a:O,c:U},{a:x,c:_}])=>{var F=(a,e=100)=>{let s;return(...n)=>{let i=()=>{clearTimeout(s),a(...n)};clearTimeout(s),s=setTimeout(i,e)}};var q=M(class extends S{constructor(){super(...arguments),this.key=A}render(a,e){return this.key=a,e}update(a,[e,s]){return e!==this.key&&(E(a),this.key=e),s}});var y=["@","#","$"],V=400;function Q(a,e){let s=null;for(let n of e){let i=n.replace(/[.*+?^${}()|[\]\\]/gu,"\\$&"),r=new RegExp(`${i}"([^"\\n]*)"?$`,"u"),t=a.match(r);if(t){let c=t[0],l=a.length-c.length,h=t[1]??"";(!s||l>s.startIndex)&&(s={starter:n,mentionText:c,query:h,startIndex:l})}let o=new RegExp(`${i}[\\p{L}\\p{N}_-]+$`,"u"),m=a.match(o);if(m){let c=m[0],l=a.length-c.length,h=c.slice(n.length);(!s||l>s.startIndex)&&(s={starter:n,mentionText:c,query:h,startIndex:l})}}return s}var N=a=>y.includes(a)?a:"@",G=R(a=>{let e=[],s=async r=>await x({requester:async()=>await O(a.portal,r,{num:3}),key:"items",id:r}),n=async r=>await x({requester:async()=>await U(a.portal,{query:`title:${r}`,num:3}),key:"groups",id:r}),i=F(async(r,t)=>{a.isFetchingEntities=!0;let o=r.toLowerCase();switch(N(t)){case"@":let m=10;a.filteredItemsInfo={type:"user",items:e.filter(h=>h.username?.toLowerCase().includes(o)||h.fullName?.toLowerCase().includes(o)).slice(0,m)};break;case"#":let{result:c}=await s(o);a.filteredItemsInfo={type:"item",items:c?.results??[]};break;case"$":let{results:l}=await n(o);a.filteredItemsInfo={type:"group",items:l};break}(a.filteredItemsInfo?.items?.length??0)===0&&await a.closePopover(),a.isFetchingEntities=!1},V);return{fetchUsers:async()=>{try{let{users:r}=await _(a.portal);e=r??[]}catch(r){e=[],console.error("error fetching org users:",r)}},filterItems:i,getItemText:(r,t)=>{let o="";switch(N(t)){case"@":o=r.username;break;case"#":o=r.title??"";break;case"$":o=r.title??"";break}return o.trim()}}}),$=({id:a,label:e,selected:s,description:n,contentStart:i,onSelect:r})=>q(a,d`<calcite-list-item class=${v({selected:s})} .label=${e} .description=${n} .selected=${s} @pointerdown=${async t=>{t.preventDefault(),t.stopPropagation(),await r()}} ${g(t=>{s&&t&&t.scrollIntoView({block:"nearest",behavior:"smooth"})})}>${i}</calcite-list-item>`),j=k`.selected{--calcite-list-background-color: var(--calcite-color-foreground-2)}.mentionable-list{max-height:13rem;overflow-y:auto;padding:.25rem;width:min(100vw,24rem)}.mentionable-list--loading{min-height:10rem}`,w=class extends D{constructor(){super(...arguments),this.calciteTextAreaRef=P(),this.mentionableEntityController=G(this),this.handleInput=e=>{let{bubbleNewValueChange:s,checkForMention:n}=this,i=e.target.value;this._value=i,s(this._value);let r=this.nativeTextAreaRef?.selectionStart??0;n(i,r)},this.handleKeyDown=e=>{if(!this.popoverOpen){this.arcgisUserMentionableTextAreaKeyDown.emit(e),this.arcgisMentionableTextAreaKeyDown.emit(e);return}switch(e.key){case"ArrowDown":e.preventDefault(),this.selectedItemIndex=Math.min(this.selectedItemIndex+1,this.filteredItems.length-1);break;case"ArrowUp":e.preventDefault(),this.selectedItemIndex=Math.max(this.selectedItemIndex-1,0);break;case"Enter":e.preventDefault(),this.selectItem(this.filteredItems[this.selectedItemIndex]);break;case"Escape":e.preventDefault(),this.closePopover.bind(this)();break}},this.handleClosePopover=()=>{this.popoverOpen=!1,this.currentMentionQuery="",this.selectedItemIndex=0,this.currentStarter=null},this.bubbleNewValueChange=e=>{this.arcgisUserMentionableTextAreaChange.emit(e),this.arcgisMentionableTextAreaChange.emit(e)},this.checkForMention=(e,s)=>{let n=e.substring(0,s),i=Q(n,this.starters??y);if(i){let{starter:r}=i;this.currentStarter=r,this.filterMentionItems(i),this.popoverOpen=!0;return}this.handleClosePopover()},this.filterMentionItems=e=>{let{mentionText:s,query:n,starter:i,startIndex:r}=e;this.currentMentionQuery=s,this.mentionStartPosition=r;let t=n.toLowerCase();this.mentionableEntityController.filterItems(t,i),this.selectedItemIndex=0},this.popoverOpen=!1,this.currentMentionQuery="",this.mentionStartPosition=0,this.selectedItemIndex=0,this.currentStarter=null,this._value="",this.filteredItemsInfo=null,this.isFetchingEntities=!1,this.popoverPlacement="bottom-start",this.disabled=!1,this.scale="m",this.rows=3,this.starters=y,this.readOnly=!1,this.arcgisMentionableSelectedIndexChange=u(),this.arcgisMentionableTextAreaChange=u(),this.arcgisMentionableTextAreaKeyDown=u(),this.arcgisUserMentionableTextAreaChange=u(),this.arcgisUserMentionableTextAreaKeyDown=u(),this.renderItemInfo=()=>{let{filteredItemsInfo:e,selectedItemIndex:s,portal:n}=this;if(!e)return null;let{items:i,type:r}=e;switch(r){case"user":return i.map((t,o)=>$({id:t.id,label:`@${t.username}`,description:t.fullName,selected:o===s,contentStart:d`<arcgis-portal-user-avatar slot=content-start .user=${t} .portal=${n} scale=m></arcgis-portal-user-avatar>`,onSelect:async()=>await this.selectItem(t)}));case"item":return i.map((t,o)=>$({id:t.id??`item-${o}`,label:`#${t.title}`,description:t.id??void 0,selected:o===s,onSelect:async()=>await this.selectItem(t),contentStart:d`<calcite-avatar slot=content-start .fullName=${t.title??void 0} .thumbnail=${t.thumbnailUrl??void 0} scale=m></calcite-avatar>`}));case"group":return i.map((t,o)=>$({id:t.id??`group-${o}`,label:`${t.title}`,description:t.id??void 0,selected:o===s,onSelect:async()=>await this.selectItem(t),contentStart:d`<calcite-avatar slot=content-start .fullName=${t.title??void 0} .thumbnail=${t.thumbnailUrl??void 0} scale=m></calcite-avatar>`}))}}}static{this.properties={popoverOpen:16,currentMentionQuery:16,mentionStartPosition:16,selectedItemIndex:16,currentStarter:16,_value:16,filteredItemsInfo:16,isFetchingEntities:16,popoverListLabel:1,popoverPlacement:1,disabled:5,portal:0,user:0,scale:1,value:1,maxLength:9,rows:9,starters:0,placeholder:1,readOnly:5}}static{this.styles=j}get filteredItems(){return this.filteredItemsInfo?.items??[]}async closePopover(){this.handleClosePopover()}async focusTextArea(){await this.calciteTextAreaRef.value?.setFocus()}async selectItem(e){let{currentStarter:s,_value:n,mentionStartPosition:i,currentMentionQuery:r,handleClosePopover:t,calciteTextAreaRef:o,nativeTextAreaRef:m,bubbleNewValueChange:c}=this;if(!e||!s)return;let l=this.mentionableEntityController.getItemText(e,s).replaceAll('"',"").trim(),h=/\s/u.test(l)?`${s}"${l}"`:`${s}${l}`,f=(n??"").substring(0,i),p=(n??"").substring(i+r.length),I=`${f}${h} ${p}`;this._value=I,c(this._value);let b=i+h.length+1;t(),await this.updateComplete,o.value?.setFocus(),m&&(m.selectionEnd=b)}willUpdate(e){e.has("value")&&(this._value=this.value??""),e.has("selectedItemIndex")&&this.arcgisMentionableSelectedIndexChange.emit(this.selectedItemIndex)}loaded(){this.updateComplete.then(()=>{let e=this.calciteTextAreaRef.value?.shadowRoot?.querySelector("textarea");e&&(this.nativeTextAreaRef=e)}),this.mentionableEntityController.fetchUsers()}render(){let{popoverPlacement:e,scale:s,_value:n,maxLength:i,rows:r,placeholder:t,readOnly:o,popoverOpen:m,closePopover:c,handleInput:l,handleKeyDown:h,disabled:f,isFetchingEntities:p,filteredItemsInfo:I,renderItemInfo:b,popoverListLabel:T}=this,C=this.calciteTextAreaRef.value,K=I?.items??[];return d`<calcite-text-area .placeholder=${t} .value=${n} .maxLength=${i} .rows=${r} .scale=${s} .readOnly=${o} .disabled=${f} @blur=${c} @calciteTextAreaInput=${l} @keydown=${h} ${g(this.calciteTextAreaRef)}></calcite-text-area>${C&&d`<calcite-popover .open=${m} .placement=${e} class="mention-popover" .label=${T} .referenceElement=${C} trigger-disabled pointer-disabled focus-trap-disabled><div class=${v({"mentionable-list":!0,"mentionable-list--loading":p})}>${p&&d`<calcite-scrim .loading=${p}></calcite-scrim>`||""}${K.length>0&&d`<calcite-list .label=${T}>${b()}</calcite-list>`||""}</div></calcite-popover>`||""}`}};L("arcgis-portal-mentionable-text-area",w);return w},a,b)
|
package/dist/cdn/EVDOPN3G.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import"./YIMNOUTF.js";var e=`## Map Query Gate
|
|
3
|
-
|
|
4
|
-
### Input
|
|
5
|
-
|
|
6
|
-
Assigned task:
|
|
7
|
-
{assignedTask}
|
|
8
|
-
|
|
9
|
-
Latest user request:
|
|
10
|
-
{userRequest}
|
|
11
|
-
|
|
12
|
-
Prior steps:
|
|
13
|
-
{priorSteps}
|
|
14
|
-
|
|
15
|
-
Use the assigned task as the primary instruction for the current query. The question will **not** be restated again here.
|
|
16
|
-
Use the latest user request as supporting context when needed.
|
|
17
|
-
Use prior steps only when needed to explain a previous result, failure, or likely next action.
|
|
18
|
-
|
|
19
|
-
### Map Context
|
|
20
|
-
|
|
21
|
-
{layerSummary}
|
|
22
|
-
|
|
23
|
-
## Available agents (capabilities)
|
|
24
|
-
|
|
25
|
-
{agents}
|
|
26
|
-
|
|
27
|
-
### Rules
|
|
28
|
-
|
|
29
|
-
- "What layers are in this map?" \u2192 List the layer names
|
|
30
|
-
- "What fields are in this layer?" \u2192 Call the tool to list the field names for that layer
|
|
31
|
-
- "What can you do?" / "What can I ask?" \u2192 Suggest specific queries using EXACT layer and field names from the context above
|
|
32
|
-
- "Tell me about this map" \u2192 Summarize layers and capabilities
|
|
33
|
-
- "Create a chart of all wells ans their depth" \u2192 If a question is map related but not supported by available capabilities, say so. Add that support for this might be added in the future.
|
|
34
|
-
- Questions completely unrelated to maps/GIS \u2192 Politely explain you only help with the map |
|
|
35
|
-
|
|
36
|
-
### Response Guidelines
|
|
37
|
-
|
|
38
|
-
When suggesting what users can ask, be SPECIFIC using actual layer names:
|
|
39
|
-
|
|
40
|
-
- "Show me water sources with elevation above 500"
|
|
41
|
-
- "Filter Protected Areas in Panama by protection level"
|
|
42
|
-
- "Zoom to Watershed Boundaries"
|
|
43
|
-
|
|
44
|
-
For "what can I ask" responses, provide 3-5 specific example queries using fields from the context.
|
|
45
|
-
|
|
46
|
-
For off-topic questions:
|
|
47
|
-
"I can only help with this map. Try asking me to filter [LayerName] by [FieldName], or zoom to a location."
|
|
48
|
-
|
|
49
|
-
Rules:
|
|
50
|
-
|
|
51
|
-
- Keep responses concise
|
|
52
|
-
- Use bullet points for lists
|
|
53
|
-
- Use new lines (\\n) and appropriate formatting in your response
|
|
54
|
-
`;export{e as default};
|
package/dist/cdn/GNOZCQ34.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import c from"./GT26WGJS.js";import{a as S}from"./35SKVD6F.js";import a from"./2UUZHENH.js";import"./5VSDGPHH.js";import{a as w}from"./WOZDQW3S.js";import{a as I}from"./LQ3DMZ3K.js";import"./KEKBRUUC.js";import{H as h,I as f,J as g,M as v,P as b,Q as y,h as u,j as l,v as d}from"./DHHSKOUY.js";import"./YIMNOUTF.js";export default $arcgis.t(([M,{b:k},{p:R}])=>{var T=u`.thumbnail-container{width:100%}.replacement-container{margin:.5rem}.replacement-message{margin-bottom:.5rem}.replacement-card__title{margin-bottom:.25rem}`,P=["360 VR Experience","Big Data Analytic","Dashboard","Data Pipeline","Deep Learning Studio Project","Discussion","Document Link","Excalibur Imagery Project","Feature Collection","Feature Service","Feed","Form","GeoBIM Application","GeoBIM Project","Hub Event","Hub Initiative","Hub Initiative Template","Hub Page","Hub Project","Image Service","Knowledge Graph","Knowledge Studio Project","Map Service","Map Showcase","Mission Report","Mission Template","Notebook","OGCFeatureServer","Ortho Mapping Project","Parquet Layer","PDF","Real Time Analytic","Route Layer","Scene Service","Solution","StoryMap","StoryMap Theme","Tile Layer","Urban Model","Urban Project","Vector Tile Service","Video Service","Web Experience","Web Experience Template","Web Map","Web Mapping Application","Web Scene","WFS","Workflow"],A=["3DInsetMap","3DScene","3DViz","AttachmentViewer","CapacityAnalysis","Cascade","Compare","Compare/Configure","Compare/Multiviewer","Compare/Search","Compare/SideBySideViewer_Configure","Compare/storytelling_compare","Compare/storytelling_sidepanel","Compare/storytelling_tabbed","Compare3d","CompareAnalysis","CompareMaps","CrowdsourceManager","CrowdsourcePolling","CrowdsourceReporter","Directions","Edit","Editor","Elevations","ElevationsProfile","Embed","Filter","FilterGallery","GeoForm","GeoList","GeoTour","HeaderFooter","Identify","ImageInterpretation","ImageMask","ImageVisit","ImageryViewer","ImpactSummary","InformationLookup","InteractiveFilter","InteractiveLegend","LayerShowcase","Legend","LiveMaps","LocalPerspective","MapAndAppGallery","MapCarousel","MapJournal","MapSeries","Shortlist","MapTools","MapTour","Media","MinimalGallery","Minimalist","MobileViewer","Nearby","OnePane","Panels","PanelsLegend","Profile","PublicGallery","PublicInformation","ServiceLookup","SimpleMapViewer","SimpleViewer","SocialMedia","Solutions/s2.html?app=apps2/FindEditFilter","Solutions/s2.html?app=apps2/Finder","Solutions/s2.html","StoryMapBasic","StorytellingSwipe","StorytellingTextLegend","Styler","SummaryViewer","Time","TimeAware","TwoPane","View","Viewer","ZoneLookup"],j=i=>{if(!i)return!1;let e=A.some(t=>{let a=t.includes(".html"),r=`/apps/${t}${a?"":"/"}`;return decodeURIComponent(i.url)?.includes(r)});return i.type==="Web Mapping Application"&&!!i.url&&e};function D(i){let e=["Cascade","MapTour","MapJournal","MapSeries","Shortlist","StoryMapCrowdsource","SwipeSpyglass","Story Map"];return i.type==="Web Mapping Application"&&(L(e,i)||x(i))}function x(i){return["Cascade","MapTour","MapJournal","MapSeries","Shortlist","StoryMapCrowdsource","StorytellingSwipe"].some(e=>{let t=`/apps/${e}/index.html`;return decodeURIComponent(i.url)?.includes(t)})}function L(i,e){return i?.some(t=>e?.typeKeywords?.includes(t))}function U(i){return!!i&&P.some(e=>i.type===e)}function C(i){let e=F(i);return y(`assets/portal-item-thumbnail/${e}`)}function F(i){let e=i.type?.toLowerCase(),t=i.typeKeywords||[];switch(e){case"web mapping application":return"webapp.avif";case"mobile application":return"mobileapp.avif";case"notebook code snippets":case"notebook code snippet library":return"notebookcodesnippets.avif";case"notebook":return"notebook.avif";case"style":return t.includes("Dictionary")?"dictionarystyle.avif":"style.avif";case"feature service":return t.includes("Location Tracking View")?"locationtrackingservice.avif":t.includes("IndoorPositioningDataService")?"indoor-positioning-data-service.avif":"default.avif";case"pro presentation":return"pro-presentation.avif";case"reality mapping project":return"realitymappingproject.avif";case"raster function template":return"rasterfunctiontemplate.avif";case"workforce project":return"workforceproject.avif";case"hub initiative":return"hubinitiative.avif";case"hub page":return"hubpage.avif";case"hub site application":case"site application":return"hubsite.avif";case"hub event":return"hubevent.avif";case"hub project":return"hubproject.avif";case"dashboard":return t.includes("ArcGIS Dashboards")?"dashboards.avif":"opsdashboard.avif";case"geoprocessing service":return t.includes("Notebook Web Tool")?"notebookwebtool.avif":"webtool.avif";case"web scene":case"scene service":return"scene.avif";case"ortho mapping project":return"orthomappingproject.avif";case"ortho mapping template":return"orthomappingtemplate.avif";case"insights theme":return"insightstheme.avif";case"insights workbook package":return"insightsworkbookpackage.avif";case"solution":return"solution.avif";case"mobile scene package":return"mobilescenepackage.avif";case"deep learning package":return"deeplearningpackage.avif";case"big data analytic":return"bigdataanalytic.avif";case"real time analytic":return"realtimeanalytic.avif";case"feed":return"feed.avif";case"excalibur imagery project":return"excaliburimageryproject.avif";case"storymap":return t?.includes("storymapcollection")?"storymapcollection.avif":"storymap.avif";case"survey123 add in":return"survey123addin.avif";case"mission":return"mission.avif";case"mission template":return"missiontemplate.avif";case"quickcapture project":return"quickcaptureproject.avif";case"pro report":return"proreport.avif";case"pro package":return"propackage.avif";case"pro report template":return"proreporttemplate.avif";case"urban model":return"urbanmodel.avif";case"urban project":return"urbanproject.avif";case"web experience":return"webexperience.avif";case"web experience template":return"webexperiencetemplate.avif";case"experience builder widget":return"experiencebuilderwidget.avif";case"experience builder widget package":return"experiencebuilderwidgetpackage.avif";case"workflow":return"workflow.avif";case"insights script":return"insightsscript.avif";case"kernel gateway connection":return"kernelgatewayconnection.avif";case"hub initiative template":return"hubinitiativetemplate.avif";case"image service":return t?.includes("Tile Imagery")?"tiledimagerylayer.avif":"imagerylayer.avif";case"mission report":return"missionreport.avif";case"administrative report":return"administrativereport.avif";case"storymap theme":return"storymaptheme.avif";case"knowledge graph":return"knowledgegraph.avif";case"knowledge graph layer":return"knowledgegraphlayer.avif";case"knowledge studio project":return"knowledgestudio.avif";case"earth configuration":return"earthconfiguration.avif";case"link chart":return"linkchart.avif";case"investigation":return"investigation.avif";case"apache parquet":return"apacheparquet.avif";case"curated collection":return"curatedcollection.avif";case"video service":return"mediaservice.avif";case"geodata service":return"geodataservice.avif";case"suitability model":return"suitabilitymodel.avif";case"esri classifier definition":return"classifierdefinition.avif";case"esri spectral library":return"spectrallibrary.avif";case"deep learning studio project":return"deeplearningstudioproject.avif";case"esri classification schema":return"classificationschema.avif";case"insights data engineering workbook":return"dataengineeringworkbook.avif";case"insights data engineering model":return"dataengineeringmodel.avif";case"discussion":return"discussion.avif";case"api key":return"apikey.avif";case"data pipeline":return"datapipeline.avif";case"analysis model":return"analysismodel.avif";case"service connection":return"serviceconnection.avif";case"xr experience":return"xrexperience.avif";case"3dtiles service":return t?.includes("GaussianSplat")?"gaussiansplatlayer.avif":"default.avif";default:return"default.avif"}}function V(i,e,t){let{restUrl:a}=i,r=E(i),c=r?`token=${r}`:"",s=`${a}/content/items/${e.id}`;if(e.thumbnail){let o=e.thumbnailUrl;if(o){let n=new URL(o);return n.searchParams.append("w","400"),n.href}return`${s}/info/${e.thumbnail}?w=400${r?"&":""}${c}`}else if(e.type==="Image")return`${s}/data?${c}`;return C(e)}function E(i){return i?.credential?.token||i?.token||i?.user?.credential?.token||i?.portalUser?.token||""}function G({portal:i,usePortalHostname:e}){let{customBaseUrl:t,portalHostname:a,urlKey:r}=i,{protocol:c}=window.location,s=!e&&r?`${r}.${t}`:a;return`${c}//${s}`}var $=5e3,p=class extends g{constructor(){super(...arguments),this.replacementId=null,this.itemOwnerName="",this.replacementItemInRecycleBin=!1,this.hasInaccessibleReplacementItem=!1,this.replacementItemSupportsOpenActions=!1,this.thumbnailUrl=null,this.timer=void 0,this.messages=I({blocking:!0}),this.primaryActionRef=h(),this.getItemDetailsUrl=({portal:e,itemId:t,redirect:a})=>{let r=G({portal:e,usePortalHostname:!this.user});return r?`${`${r}/home`}/item.html?id=${t}${a?"&performRedirectAction=true":""}`:""},this.performRedirectAction=()=>{window.open(this.getItemDetailsUrl({portal:this.portal,itemId:this.replacementId,redirect:!0}),"_self")},this.viewItemDetailsPage=()=>{window.open(this.getItemDetailsUrl({portal:this.portal,itemId:this.replacementId??this.itemId}),this.supportsReplacement?"_self":"_blank")},this.canRedirect=!1,this.item=null,this.replacementItem=null,this.redirectAction=null,this.supportsReplacement=!1,this.redirectCancelled=!1,this.open=!1,this.redirectTimeRemaining=$/1e3,this.arcgisPortalReplacementItemFetch=d()}static{this.properties={item:16,replacementItem:16,redirectAction:16,supportsReplacement:16,redirectCancelled:16,open:16,redirectTimeRemaining:16,itemId:1,portal:0,user:0}}static{this.styles=T}async setFocus(){this.primaryActionRef.value?.setFocus()}willUpdate(e){(e.has("itemId")||e.has("portal")||e.has("user"))&&(this.user??=this.portal?.user??null,this.initItem())}setupTimer({onComplete:e}){typeof this.timer=="number"&&clearInterval(this.timer),this.redirectTimeRemaining=$/1e3,this.timer=setInterval(()=>{if(this.redirectTimeRemaining<=0){clearInterval(this.timer),this.timer=void 0,e();return}this.redirectTimeRemaining-=1},1e3)}cancelTimer({onCancel:e}={}){e?.(),clearInterval(this.timer)}handleClose(){this.cancelTimer(),this.itemId="",this.item=null,this.open=!1}cancelRedirect(){this.cancelTimer(),this.redirectCancelled=!0}isItemRetired(e){return j(e)||D(e)}async initItem(){if(!this.itemId)return;let{itemId:e,portal:t,performRedirectAction:a}=this,r=new M({id:e,portal:t});this.item=await r?.load();let c=await R(e,t,{relationshipType:"ReplacementItem2Item",direction:"reverse"},!0),s=c.data?.relatedItems?.[0];this.replacementItemInRecycleBin=s?.inRecycleBin;let o=s?.id,n=!this.replacementItemInRecycleBin&&o?new M({id:o,portal:t}):null;await n?.load(),this.replacementItem=n,this.hasInaccessibleReplacementItem=this.replacementItemInRecycleBin||!n&&c.data?.aggregations?.total?.count>0&&c.data?.relatedItems?.length===0,this.arcgisPortalReplacementItemFetch.emit({replacementItem:this.hasInaccessibleReplacementItem?{}:n||null}),this.replacementItem=n;let m=!!r.owner&&await k(r.owner,t);this.itemOwnerName=m?S(m,this.messages?._t9nLocale||"en"):r.owner||"",this.replacementItemSupportsOpenActions=U(n),this.thumbnailUrl=V(t,n??this.item),this.supportsReplacement=!!n&&this.isItemRetired(r),this.canRedirect=this.supportsReplacement&&this.replacementItemSupportsOpenActions,this.replacementId=n?.id||null,this.canRedirect&&this.setupTimer({onComplete:()=>a()}),this.open=!0}getReplacementHeading(){let{messages:e,hasInaccessibleReplacementItem:t,canRedirect:a}=this;return t?e.replacementUnavailable:a?e.redirectToReplacement:this.isItemRetired(this.item)&&!this.replacementItem?e.replacementUnavailable:e.replacementAvailable}getReplacementMessage(){let{messages:e,hasInaccessibleReplacementItem:t,supportsReplacement:a}=this;return t?e.retiredReplacementUnavailable:a?e.deprecatedHasReplacement:this.isItemRetired(this.item)&&!this.replacementItem?e.retired:e.deprecatedHasReplacement}getRedirectActionMessage(){let{messages:e,canRedirect:t,redirectTimeRemaining:a,redirectCancelled:r}=this;return r?e.redirectToReplacement:t?e.redirect.replace("${seconds}",`${a}`):e.moreDetails}renderCard(e){let{canRedirect:t,messages:a}=this;return l`<calcite-card thumbnail-position=inline-start><img slot=thumbnail class="thumbnail" src=${(this.thumbnailUrl||void 0)??v} @error=${async()=>this.thumbnailUrl=C(e)}><span slot=heading class="replacement-card__title">${e.title}</span><span slot=description>${a.ownedBy?.replace("${owner}",this.itemOwnerName)}</span>${t&&l`<calcite-link slot=footer-start icon-end=launch .href=${this.getItemDetailsUrl({portal:this.portal,itemId:this.replacementId})} target=_blank>${a.moreDetails}</calcite-link>`||""}</calcite-card>`}render(){let{open:e,messages:t,item:a,replacementItem:r,supportsReplacement:c,canRedirect:s,redirectCancelled:o}=this;if(!(!a||!this.isItemRetired(a)))return l`<calcite-dialog modal .open=${e} width=s kind=info outside-close-disabled escape-disabled close-disabled .heading=${this.getReplacementHeading()} @calciteDialogClose=${()=>this.handleClose()}><div class="replacement-container"><div class="replacement-message">${w(this.getReplacementMessage()?.replace("${itemTitle}",this.item?.title||""))}</div>${this.renderCard(c?r:a)}</div>${s&&!o&&l`<calcite-button slot=footer-end appearance=outline-fill kind=neutral @click=${()=>{this.cancelRedirect()}}>${t.cancelRedirection}</calcite-button>`||""}<calcite-button slot=footer-end @click=${()=>{this.cancelTimer(),s?this.performRedirectAction():this.viewItemDetailsPage()}} .iconEnd=${s?void 0:"launch"} icon-flip-rtl=end ${f(this.primaryActionRef)}>${this.getRedirectActionMessage()}</calcite-button></calcite-dialog>`}};b("arcgis-portal-replacement-item-redirect",p);return p},"portal/PortalItem",a,c)
|
package/dist/cdn/KEKBRUUC.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as N,b as O,c as P,d as g,e as v,f as A,g as T,o as b,t as E,u as $,w as k}from"./DHHSKOUY.js";var z=(t,r)=>{let e=t;for(;e;){if(e===r)return!0;if(!e.parentNode)return!1;e.parentNode instanceof ShadowRoot?e=e.parentNode.host:e=e.parentNode}return!1},f=(t,r,e)=>{let o=U(r).subscribe;return o(n=>{n.some(i=>z(t,i.target))&&e()})},y={},U=t=>{let r=t.join(","),e=y[r];if(e!==void 0)return e;let o=new Set,n=new MutationObserver(i=>o.forEach(a=>a(i)));globalThis.document&&n.observe(document.documentElement,{attributes:!0,attributeFilter:t,subtree:!0});let s={subscribe:i=>(o.add(i),()=>{o.delete(i),o.size===0&&(n.disconnect(),y[r]=void 0)})};return y[r]=s,s},W=(t,r)=>{let e=t;for(;e;){let o=e.closest?.(r);if(o)return o;let n=e.getRootNode?.();if(n===globalThis.document)return;e=n?.host}};var h=(t,r,e)=>W(t,`[${r}]`)?.getAttribute(r)??e;var j=t=>(...r)=>{let e=v(),o=new t(...r),n=o.exports;g(e.at(-1));let s=o.component.manager;s.W(o,n),o.watchExports(s.W.bind(s,o)),A(o);let i=[o.component,...e].reverse();return E(i,a=>a===void 0?void 0:q(o,a,n),n)},q=(t,{host:r,key:e,isReactive:o},n)=>{let s=r,i=s[e]!==t.exports,a=s[e]!==n,c=n!==t.exports;if(i&&!a&&c&&(s[e]=t.exports),r===t.component){if(o){let l=t.component.manager;a&&l.W(t,s[e]),t.onUpdate(p=>{if(p.has(e)){let L=s[e];L!==t.exports&&l.W(t,L)}})}t.O=o?void 0:e}let d=t.component.constructor.elementProperties.get(e)?.readOnly;t.watchExports(()=>{s[e]!==t.exports&&(d?T(()=>{s[e]=t.exports}):s[e]=t.exports)})};var G="ar,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,he,hr,hu,id,it,ja,ko,lt,lv,nl,nb,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,th,tr,uk,vi,zh-CN,zh-HK,zh-TW".split(","),H=new Set(G),m="en",K={pt:"pt-BR",nb:"no",nn:"no",zh:"zh-CN"},I=async(t,r,e="")=>{let o=`${r}/${e}`,n=`${o}${t}.json`;return C[n]??(C[n]=S(t,o)),await C[n]},C={},S=async(t,r)=>{let e=`${r}${t}.json`;try{let o=await fetch(e);if(o.ok)return await o.json()}catch(o){return b("error","intl",`An unknown error occurred while fetching localization strings at ${e}`,{detail:{error:o}}),{}}return t===m?{}:await S(m,r)},x=t=>{let r=h(t,"lang",globalThis.navigator?.language||m);return{lang:r,t9nLocale:_(r)}},_=t=>{let[r,e]=t.split("-"),o=r.toLowerCase(),n=o;return e&&(n=`${o}-${e.toUpperCase()}`),n=K[n]??n,H.has(n)?n:e?_(o):m},D=(t,r,e,o)=>{let n,s=()=>B(t,r(),o).then(i=>{(n?.lang!==i.lang||n.t9nLocale!==i.t9nLocale||n.t9nStrings!==i.t9nStrings)&&e(i),n=i}).catch(i=>{b("error","intl","Error updating component locale state",{detail:{error:i}})});return queueMicrotask(s),f(t,["lang"],s)},B=async(t,r,e=t.localName.split("-").slice(1).join("-"))=>{let{lang:o,t9nLocale:n}=x(t),s=`${r}/${e}/t9n`,a=e===null?{}:await I(n,s,"messages.");return{lang:o,t9nLocale:n,t9nStrings:a}};var R=t=>F(void 0,t),fe=t=>r=>F(r,t),w=class extends k{constructor(r,e){super(r);let o=this.exports;try{O(this.component);let n=e(this.component,this),s=this.exports!==o;if(N(n)){s||this.setProvisionalExports(n);let i=n.then(a=>{this.exports=a,super.catchUpLifecycle()}).catch(a=>{this.P.reject(a)});this.onLoad(async()=>await i)}else(!s||n!==void 0)&&(this.exports=n),queueMicrotask(()=>super.catchUpLifecycle())}catch(n){this.P.reject(n)}}catchUpLifecycle(){}},F=j(w);var M="ltr",he=()=>R((t,r)=>{r.exports=M,r.onLifecycle(()=>{let e=()=>{let o=h(t.el,"dir",M);r.exports=o==="rtl"?"rtl":"ltr"};return e(),f(t.el,["dir"],e)})}),me=t=>(r={})=>R((e,o)=>{let n=x(e.el),s={_lang:n.lang,_t9nLocale:n.t9nLocale,_loading:!0},i=e;o.onLifecycle(()=>D(e.el,()=>t("./assets"),({t9nLocale:c,t9nStrings:u,lang:d})=>{let l={...u,_lang:d,_t9nLocale:c,_loading:!1};o.exports=l;let p=u.componentLabel;typeof p=="string"&&"label"in e&&e.label==null&&(e.label??=p),a(i.messageOverrides)},r.name));let a=c=>{let u=o.exports,d=u._original??u,l=V(d,c);c&&(l._original=d),o.exports=l};return"messageOverrides"in i&&o.onUpdate(c=>{c.has("messageOverrides")&&a(i.messageOverrides)}),r.blocking?(o.setProvisionalExports(s,!1),o.ready):s}),V=(t,r)=>{if(!r)return t;let e={...t};return Object.entries(r).forEach(([o,n])=>{t[o]!==void 0&&(typeof n=="object"?e[o]=V(t[o],n):e[o]=n??t[o])}),e},ge=t=>X,J="arcgisPropertyChange",X=(...t)=>{let r=P(),e=$(J,void 0,r),o=!0;return r.manager.onUpdated(n=>{if(o||!r.el.isConnected){o=!1;return}for(let s of t)n.has(s)&&e.emit({name:s})}),e};export{j as a,W as b,fe as c,he as d,me as e,ge as f};
|
package/dist/cdn/RNLVNDGG.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as n}from"./5VSDGPHH.js";export default $arcgis.t(([a])=>{var i=async(o,t,e)=>{try{return{result:await o.queryItems({...e,query:`title:${t}`})}}catch(r){return console.error(r),{error:{code:"unhandledError"}}}},l=async(o,t,e)=>{let r=`${t.restUrl}/content/users/${o.id}/items/${e}/generateContext`;try{return{result:(await a(r,{method:"post",responseType:"json",query:{f:"json"}})).data}}catch(s){return console.error("Error fetching item context:",s),{error:{code:"unhandledError"}}}};async function p(o,t={}){return await o.queryGroups(t)}async function m(o,t){let e=t.title.trim();if(!e)return{error:{code:"unhandledError",message:"Group title is required."}};try{let{data:r}=await a(`${n(o)}community/createGroup`,{method:"post",responseType:"json",query:{f:"json",...t,title:e}});return!r.success||!r.group?.id?{error:{code:"unhandledError",message:"Unable to create a group with the provided title."}}:{result:{id:r.group.id,title:r.group.title||e}}}catch(r){return console.error("Error creating portal group:",r),{error:{code:"unhandledError",message:r.details.messages.join(",")}}}}async function g(o,t,e){if(!e.length)return{error:{code:"unhandledError",message:"At least one username is required."}};try{let{data:r}=await a(`${n(o)}community/groups/${t}/addUsers`,{method:"post",responseType:"json",query:{f:"json",users:e.join(",")}}),s=r.notAdded;return{result:{addedUsernames:s?.length?e.filter(d=>!s.includes(d)):e,notAddedUsers:r.notAddedDetails}}}catch(r){return console.error("Error adding users to portal group:",r),{error:{code:"unhandledError"}}}}return{a:i,b:l,c:p,d:m,e:g}},"request")
|