@arcgis/ai-components 5.0.0-next.133
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/LICENSE.md +17 -0
- package/README.md +11 -0
- package/dist/cdn/2KGO3SIH.js +4 -0
- package/dist/cdn/2OKOKVH3.js +4 -0
- package/dist/cdn/46CNQJRX.js +4 -0
- package/dist/cdn/7QPPUNQ3.js +4 -0
- package/dist/cdn/A3UHOE4Q.js +30 -0
- package/dist/cdn/A7BGJLHS.js +204 -0
- package/dist/cdn/AB32PU6M.js +4 -0
- package/dist/cdn/AD7WB3RO.js +4 -0
- package/dist/cdn/ASKBAWPQ.js +27 -0
- package/dist/cdn/BCCDWQP4.js +4 -0
- package/dist/cdn/CF42OIDB.js +4 -0
- package/dist/cdn/CGGGHCIN.js +4 -0
- package/dist/cdn/EJW7PCMD.js +4 -0
- package/dist/cdn/FORRN75L.js +4 -0
- package/dist/cdn/FYKWTA6C.js +58 -0
- package/dist/cdn/G7XEFTIR.js +4 -0
- package/dist/cdn/GRXZ64LO.js +20 -0
- package/dist/cdn/GZUY3255.js +61 -0
- package/dist/cdn/HPGCDT6I.js +4 -0
- package/dist/cdn/ID5STKZH.js +90 -0
- package/dist/cdn/J62NTCLN.js +4 -0
- package/dist/cdn/KMV7W5OL.js +4 -0
- package/dist/cdn/LILVLE37.js +87 -0
- package/dist/cdn/MXHQFIP3.js +19 -0
- package/dist/cdn/N4CYINOF.js +6 -0
- package/dist/cdn/NR6PK4OK.js +4 -0
- package/dist/cdn/PA2KCYKL.js +71 -0
- package/dist/cdn/PEFKT7JJ.js +4 -0
- package/dist/cdn/Q34AELDL.js +4 -0
- package/dist/cdn/Q3MKHRXI.js +4 -0
- package/dist/cdn/QIU4T2DV.js +4 -0
- package/dist/cdn/TCNLHL43.js +79 -0
- package/dist/cdn/UC4HPCM3.js +19 -0
- package/dist/cdn/UIUJKONY.js +4 -0
- package/dist/cdn/USJ5YVZN.js +16 -0
- package/dist/cdn/W4LEGPD2.js +111 -0
- package/dist/cdn/WOP5ENGJ.js +134 -0
- package/dist/cdn/YXLN5DSL.js +6 -0
- package/dist/cdn/ZQEX3TGK.js +17 -0
- package/dist/cdn/assets/assistant/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/assistant-chat-card/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/assistant-chat-entry/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/assistant-shell/t9n/messages.en.json +1 -0
- package/dist/cdn/index.js +4 -0
- package/dist/cdn/main.css +1 -0
- package/dist/chunks/runtime.js +17 -0
- package/dist/chunks/useT9n.js +9 -0
- package/dist/chunks/utils.js +35 -0
- package/dist/chunks/utils2.js +9 -0
- package/dist/components/arcgis-assistant/customElement.d.ts +14 -0
- package/dist/components/arcgis-assistant/customElement.js +250 -0
- package/dist/components/arcgis-assistant/index.d.ts +5 -0
- package/dist/components/arcgis-assistant/index.js +5 -0
- package/dist/components/arcgis-assistant/support/OrchestratorController.d.ts +33 -0
- package/dist/components/arcgis-assistant/support/utils.d.ts +1 -0
- package/dist/components/arcgis-assistant-agent/customElement.d.ts +10 -0
- package/dist/components/arcgis-assistant-agent/customElement.js +21 -0
- package/dist/components/arcgis-assistant-agent/index.d.ts +1 -0
- package/dist/components/arcgis-assistant-agent/index.js +1 -0
- package/dist/components/arcgis-assistant-chat/customElement.d.ts +17 -0
- package/dist/components/arcgis-assistant-chat/customElement.js +47 -0
- package/dist/components/arcgis-assistant-chat/index.d.ts +2 -0
- package/dist/components/arcgis-assistant-chat/index.js +2 -0
- package/dist/components/arcgis-assistant-chat-card/customElement.d.ts +18 -0
- package/dist/components/arcgis-assistant-chat-card/customElement.js +55 -0
- package/dist/components/arcgis-assistant-chat-card/index.d.ts +6 -0
- package/dist/components/arcgis-assistant-chat-card/index.js +6 -0
- package/dist/components/arcgis-assistant-chat-card-content/customElement.d.ts +11 -0
- package/dist/components/arcgis-assistant-chat-card-content/customElement.js +42 -0
- package/dist/components/arcgis-assistant-chat-card-content/index.d.ts +2 -0
- package/dist/components/arcgis-assistant-chat-card-content/index.js +2 -0
- package/dist/components/arcgis-assistant-chat-entry/customElement.d.ts +19 -0
- package/dist/components/arcgis-assistant-chat-entry/customElement.js +46 -0
- package/dist/components/arcgis-assistant-chat-entry/index.d.ts +4 -0
- package/dist/components/arcgis-assistant-chat-entry/index.js +4 -0
- package/dist/components/arcgis-assistant-data-exploration-agent/customElement.d.ts +7 -0
- package/dist/components/arcgis-assistant-data-exploration-agent/customElement.js +28 -0
- package/dist/components/arcgis-assistant-data-exploration-agent/index.d.ts +1 -0
- package/dist/components/arcgis-assistant-data-exploration-agent/index.js +1 -0
- package/dist/components/arcgis-assistant-interrupt/customElement.d.ts +14 -0
- package/dist/components/arcgis-assistant-interrupt/customElement.js +39 -0
- package/dist/components/arcgis-assistant-interrupt/index.d.ts +6 -0
- package/dist/components/arcgis-assistant-interrupt/index.js +6 -0
- package/dist/components/arcgis-assistant-layer-filter-agent/customElement.d.ts +7 -0
- package/dist/components/arcgis-assistant-layer-filter-agent/customElement.js +28 -0
- package/dist/components/arcgis-assistant-layer-filter-agent/index.d.ts +1 -0
- package/dist/components/arcgis-assistant-layer-filter-agent/index.js +1 -0
- package/dist/components/arcgis-assistant-layer-query-agent/customElement.d.ts +7 -0
- package/dist/components/arcgis-assistant-layer-query-agent/customElement.js +28 -0
- package/dist/components/arcgis-assistant-layer-query-agent/index.d.ts +1 -0
- package/dist/components/arcgis-assistant-layer-query-agent/index.js +1 -0
- package/dist/components/arcgis-assistant-layer-styling-agent/customElement.d.ts +7 -0
- package/dist/components/arcgis-assistant-layer-styling-agent/customElement.js +28 -0
- package/dist/components/arcgis-assistant-layer-styling-agent/index.d.ts +1 -0
- package/dist/components/arcgis-assistant-layer-styling-agent/index.js +1 -0
- package/dist/components/arcgis-assistant-navigation-agent/customElement.d.ts +7 -0
- package/dist/components/arcgis-assistant-navigation-agent/customElement.js +28 -0
- package/dist/components/arcgis-assistant-navigation-agent/index.d.ts +1 -0
- package/dist/components/arcgis-assistant-navigation-agent/index.js +1 -0
- package/dist/components/arcgis-assistant-shell/customElement.d.ts +25 -0
- package/dist/components/arcgis-assistant-shell/customElement.js +29 -0
- package/dist/components/arcgis-assistant-shell/index.d.ts +6 -0
- package/dist/components/arcgis-assistant-shell/index.js +6 -0
- package/dist/components/assistant/assistant-agents/support/utils.d.ts +14 -0
- package/dist/controllers/useT9n.d.ts +1 -0
- package/dist/customAgents/AddAgent/AddAgent.d.ts +2 -0
- package/dist/docs/api.json +2239 -0
- package/dist/docs/docs.json +2011 -0
- package/dist/docs/vscode.css-custom-data.json +6 -0
- package/dist/docs/vscode.html-custom-data.json +306 -0
- package/dist/docs/web-types.json +693 -0
- package/dist/index.d.ts +99 -0
- package/dist/index.js +8 -0
- package/dist/loader.d.ts +2 -0
- package/dist/loader.js +23 -0
- package/dist/oauth-callback.html +31 -0
- package/dist/runtime.d.ts +6 -0
- package/dist/types/components.d.ts +2 -0
- package/dist/types/lumina.d.ts +80 -0
- package/dist/types/preact.d.ts +98 -0
- package/dist/types/react.d.ts +119 -0
- package/dist/types/stencil.d.ts +87 -0
- package/package.json +47 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference path="../../index.d.ts" />
|
|
2
|
+
import { PublicLitElement as LitElement, JsxNode, TargetedEvent } from '@arcgis/lumina';
|
|
3
|
+
import { default as Collection } from '@arcgis/core/core/Collection.js';
|
|
4
|
+
|
|
5
|
+
export declare class ArcgisAssistantChat extends LitElement {
|
|
6
|
+
/** @default false */
|
|
7
|
+
loading: boolean;
|
|
8
|
+
/** @default "" */
|
|
9
|
+
loadingMessage: string;
|
|
10
|
+
user?: string;
|
|
11
|
+
messages: Collection<{
|
|
12
|
+
type: "prompt" | "response";
|
|
13
|
+
content?: string;
|
|
14
|
+
log?: string;
|
|
15
|
+
error?: string;
|
|
16
|
+
}>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { c as a } from "../../chunks/runtime.js";
|
|
2
|
+
import { css as e, html as t } from "lit";
|
|
3
|
+
import { LitElement as i } from "@arcgis/lumina";
|
|
4
|
+
import { createRef as o, ref as n } from "lit/directives/ref.js";
|
|
5
|
+
import r from "@arcgis/core/core/Collection.js";
|
|
6
|
+
import { watch as l } from "@arcgis/core/core/reactiveUtils.js";
|
|
7
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
8
|
+
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
9
|
+
v5.0.0-next.133 */
|
|
10
|
+
const c = e`.assistant-chat__messages-container{display:flex;flex:1;flex-direction:column}.assistant-chat__messages-list{padding:var(--calcite-spacing-lg);display:flex;flex-direction:column;gap:var(--calcite-spacing-md);flex:1 1 auto;min-height:0;justify-content:flex-end;overflow:auto}`;
|
|
11
|
+
class d extends i {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments), this.#s = o(), this.loading = !1, this.loadingMessage = "", this.messages = new r([]);
|
|
14
|
+
}
|
|
15
|
+
static {
|
|
16
|
+
this.properties = { loading: 5, loadingMessage: 1, user: 1, messages: 0 };
|
|
17
|
+
}
|
|
18
|
+
static {
|
|
19
|
+
this.styles = c;
|
|
20
|
+
}
|
|
21
|
+
#s;
|
|
22
|
+
firstUpdated() {
|
|
23
|
+
this._scrollToEnd();
|
|
24
|
+
}
|
|
25
|
+
loaded() {
|
|
26
|
+
this.manager.onLifecycle(() => [
|
|
27
|
+
this.messages.on("change", () => {
|
|
28
|
+
this.requestUpdate(), this._scrollToEnd();
|
|
29
|
+
}),
|
|
30
|
+
l(() => this.loading, () => {
|
|
31
|
+
this._scrollToEnd();
|
|
32
|
+
})
|
|
33
|
+
]);
|
|
34
|
+
}
|
|
35
|
+
_scrollToEnd() {
|
|
36
|
+
requestAnimationFrame(() => {
|
|
37
|
+
this.#s.value?.scrollIntoView({ behavior: "smooth" });
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
render() {
|
|
41
|
+
return t`<div class="assistant-chat__messages-container"><div class="assistant-chat__messages-list"><slot></slot>${this.messages.map((s) => t`<arcgis-assistant-chat-card .type=${s.type} .content=${s.content} .log=${s.log} .error=${s.error} .user=${this.user}></arcgis-assistant-chat-card>`)}${this.loading ? t`<arcgis-assistant-chat-card .loading=${this.loading} .loadingMessage=${this.loadingMessage} type=response></arcgis-assistant-chat-card>` : null}</div><div ${n(this.#s)}></div></div>`;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
a("arcgis-assistant-chat", d);
|
|
45
|
+
export {
|
|
46
|
+
d as ArcgisAssistantChat
|
|
47
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference path="../../index.d.ts" />
|
|
2
|
+
import { PublicLitElement as LitElement, JsxNode, TargetedEvent } from '@arcgis/lumina';
|
|
3
|
+
|
|
4
|
+
export declare class ArcgisAssistantChatCard extends LitElement {
|
|
5
|
+
/** @default false */
|
|
6
|
+
loading: boolean;
|
|
7
|
+
/** @default "prompt" */
|
|
8
|
+
type: "prompt" | "response";
|
|
9
|
+
/** @default false */
|
|
10
|
+
feedbackDisabled: boolean;
|
|
11
|
+
/** @default false */
|
|
12
|
+
timestampDisabled: boolean;
|
|
13
|
+
content?: string;
|
|
14
|
+
loadingMessage?: string;
|
|
15
|
+
log?: string;
|
|
16
|
+
error?: string;
|
|
17
|
+
user?: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { c as e } from "../../chunks/runtime.js";
|
|
2
|
+
import { css as s, html as t } from "lit";
|
|
3
|
+
import { LitElement as i } from "@arcgis/lumina";
|
|
4
|
+
import { u as c } from "../../chunks/useT9n.js";
|
|
5
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
6
|
+
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
7
|
+
v5.0.0-next.133 */
|
|
8
|
+
const n = s`.assistant-chat-card__prompt-container{display:flex;align-items:center;gap:var(--calcite-spacing-md);background:color-mix(in srgb,var(--calcite-color-brand) 25%,transparent);padding:var(--calcite-spacing-md);border-radius:var(--calcite-border-radius);width:fit-content;margin-left:auto;justify-content:flex-end}.assistant-chat-card__prompt-avatar{display:flex;align-items:center;justify-content:center}.assistant-chat-card__content-container{display:flex;flex:1;flex-direction:column;width:100%}.assistant-chat-card__response-container{display:flex;flex-direction:column;align-items:flex-start;gap:var(--calcite-spacing-sm);width:100%;text-align:left}.assistant-chat-card__response-icon{padding:var(--calcite-spacing-sm);border-radius:var(--calcite-spacing-xl);background:var(--calcite-color-brand);color:var(--calcite-color-foreground-1)}.assistant-chat-card__footer{display:flex;width:100%;justify-content:space-between;padding:0 var(--calcite-spacing-xxs)}.assistant-chat-card__feedback-actions{display:flex;flex-direction:row;gap:var(--calcite-spacing-xxs)}.assistant-chat-card__log-container{padding:0 var(--calcite-spacing-sm);border-radius:var(--calcite-border-radius);margin-bottom:var(--calcite-spacing-sm)}.assistant-chat-card__log{margin:0;font-size:var(--calcite-font-size-sm);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1);width:100%;overflow:auto}.assistant-chat-card__footer-start{display:flex;gap:var(--calcite-spacing-xxs)}@media(min-width:1280px){.assistant-chat-card__prompt-container,.assistant-chat-card__response-container{max-width:80%}}`;
|
|
9
|
+
class r extends i {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments), this._messages = c({ blocking: !0 }), this._showLog = !1, this.loading = !1, this.type = "prompt", this.feedbackDisabled = !1, this.timestampDisabled = !1;
|
|
12
|
+
}
|
|
13
|
+
static {
|
|
14
|
+
this.properties = { _showLog: 16, loading: 5, type: 1, feedbackDisabled: 5, timestampDisabled: 5, content: 1, loadingMessage: 1, log: 1, error: 1, user: 1 };
|
|
15
|
+
}
|
|
16
|
+
static {
|
|
17
|
+
this.styles = n;
|
|
18
|
+
}
|
|
19
|
+
_renderLog() {
|
|
20
|
+
return this.log && this._showLog ? t`<div class="assistant-chat-card__log-container"><pre class="assistant-chat-card__log">${this.log}</pre></div>` : null;
|
|
21
|
+
}
|
|
22
|
+
_renderThumbsUpButton() {
|
|
23
|
+
return t`<calcite-action id=action-thumbs-up icon=thumbs-up scale=s appearance=transparent @click=${() => {
|
|
24
|
+
}} text></calcite-action><calcite-tooltip reference-element=action-thumbs-up overlay-positioning=fixed placement=bottom><span>${this._messages.thumbsUpLabel}</span></calcite-tooltip>`;
|
|
25
|
+
}
|
|
26
|
+
_renderThumbsDownButton() {
|
|
27
|
+
return t`<calcite-action id=action-thumbs-down icon=thumbs-down scale=s appearance=transparent @click=${() => {
|
|
28
|
+
}} text></calcite-action><calcite-tooltip reference-element=action-thumbs-down overlay-positioning=fixed placement=bottom><span>${this._messages.thumbsDownLabel}</span></calcite-tooltip>`;
|
|
29
|
+
}
|
|
30
|
+
_renderFeedback() {
|
|
31
|
+
return !this.feedbackDisabled && !this.error ? t`<div class="assistant-chat-card__feedback-actions">${this._renderThumbsUpButton()}${this._renderThumbsDownButton()}</div>` : null;
|
|
32
|
+
}
|
|
33
|
+
_renderCopyButton() {
|
|
34
|
+
return this.error ? null : t`<calcite-action id=action-copy icon=copy-to-clipboard scale=s appearance=transparent @click=${async () => {
|
|
35
|
+
try {
|
|
36
|
+
this.content && await navigator.clipboard.writeText(this.content);
|
|
37
|
+
} catch (a) {
|
|
38
|
+
console.error("Failed to copy text to clipboard:", a);
|
|
39
|
+
}
|
|
40
|
+
}} text></calcite-action><calcite-tooltip reference-element=action-copy overlay-positioning=fixed placement=bottom><span>${this._messages.copyButtonLabel}</span></calcite-tooltip>`;
|
|
41
|
+
}
|
|
42
|
+
_renderLogButton() {
|
|
43
|
+
return this.log ? t`<calcite-action id=action-log icon=access-string-results scale=s appearance=transparent @click=${() => this._showLog = !this._showLog} .text=${this._messages.logButtonLabel} .active=${this._showLog}></calcite-action><calcite-tooltip reference-element=action-log overlay-positioning=fixed placement=bottom><span>${this._messages.logButtonLabel}</span></calcite-tooltip>` : null;
|
|
44
|
+
}
|
|
45
|
+
_renderFooter() {
|
|
46
|
+
return this.loading ? null : t`<div class="assistant-chat-card__footer"><slot name=footer-start class="assistant-chat-card__footer-start">${this._renderCopyButton()}${this._renderLogButton()}</slot>${this._renderFeedback()}</div>`;
|
|
47
|
+
}
|
|
48
|
+
render() {
|
|
49
|
+
return this.type === "prompt" ? t`<div class="assistant-chat-card__prompt-container"><div>${this.content}</div><div class="assistant-chat-card__prompt-avatar"><calcite-avatar .fullName=${this.user} scale=s></calcite-avatar></div></div>` : t`<div class="assistant-chat-card__response-container"><calcite-icon icon=effects class="assistant-chat-card__response-icon"></calcite-icon><div class="assistant-chat-card__content-container"><arcgis-assistant-chat-card-content .loading=${this.loading} .loadingMessage=${this.loadingMessage} .type=${this.error ? "error" : "text"} .content=${this.error ?? this.content}></arcgis-assistant-chat-card-content>${this._renderLog()}${this._renderFooter()}</div></div>`;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
e("arcgis-assistant-chat-card", r);
|
|
53
|
+
export {
|
|
54
|
+
r as ArcgisAssistantChatCard
|
|
55
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import "@esri/calcite-components/components/calcite-action";
|
|
2
|
+
import "@esri/calcite-components/components/calcite-tooltip";
|
|
3
|
+
import "@esri/calcite-components/components/calcite-avatar";
|
|
4
|
+
import "@esri/calcite-components/components/calcite-icon";
|
|
5
|
+
import "../arcgis-assistant-chat-card-content/index.js";
|
|
6
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import "@esri/calcite-components/components/calcite-action";
|
|
2
|
+
import "@esri/calcite-components/components/calcite-tooltip";
|
|
3
|
+
import "@esri/calcite-components/components/calcite-avatar";
|
|
4
|
+
import "@esri/calcite-components/components/calcite-icon";
|
|
5
|
+
import "../arcgis-assistant-chat-card-content/index.js";
|
|
6
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference path="../../index.d.ts" />
|
|
2
|
+
import { PublicLitElement as LitElement, JsxNode, TargetedEvent } from '@arcgis/lumina';
|
|
3
|
+
|
|
4
|
+
export declare class ArcgisAssistantChatCardContent extends LitElement {
|
|
5
|
+
/** @default false */
|
|
6
|
+
loading: boolean;
|
|
7
|
+
/** @default "text" */
|
|
8
|
+
type: "chart" | "error" | "text";
|
|
9
|
+
content?: string;
|
|
10
|
+
loadingMessage?: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { c as n } from "../../chunks/runtime.js";
|
|
2
|
+
import { css as i, html as t } from "lit";
|
|
3
|
+
import { LitElement as o, safeClassMap as e } from "@arcgis/lumina";
|
|
4
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
5
|
+
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
6
|
+
v5.0.0-next.133 */
|
|
7
|
+
const r = i`.assistant-chat-card-content__skeleton-block{display:flex;flex-direction:column;gap:var(--calcite-spacing-sm);width:100%}.assistant-chat-card-content__skeleton-text{display:block;height:.95em;border-radius:6px;background:linear-gradient(90deg,color-mix(in srgb,var(--calcite-color-foreground-2) 65%,transparent),color-mix(in srgb,var(--calcite-color-foreground-3) 85%,transparent),color-mix(in srgb,var(--calcite-color-foreground-2) 65%,transparent));background-size:200% 100%;animation:assistant-chat-card-content-shimmer 1.2s ease-in-out infinite;width:85%}.assistant-chat-card-content__skeleton-text:last-child{width:70%}@keyframes assistant-chat-card-content-shimmer{0%{background-position:-150% 0}to{background-position:150% 0}}@media(prefers-reduced-motion){.assistant-chat-card-content__skeleton-text{animation:none}}.assistant-chat-card-content__text-container{padding:var(--calcite-spacing-sm);display:flex;flex-direction:column;gap:var(--calcite-spacing-sm);color:var(--calcite-color-text-1)}.assistant-chat-card-content__text-loading{font-style:italic;word-wrap:break-word;word-break:break-all;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical}.assistant-chat-card-content__error-notice{padding:var(--calcite-spacing-sm)}`, s = "assistant-chat-card-content", a = {
|
|
8
|
+
textLoading: `${s}__text-loading`,
|
|
9
|
+
skeletonBlock: `${s}__skeleton-block`,
|
|
10
|
+
skeletonText: `${s}__skeleton-text`
|
|
11
|
+
};
|
|
12
|
+
class c extends o {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments), this.loading = !1, this.type = "text";
|
|
15
|
+
}
|
|
16
|
+
static {
|
|
17
|
+
this.properties = { loading: 5, type: 1, content: 1, loadingMessage: 1 };
|
|
18
|
+
}
|
|
19
|
+
static {
|
|
20
|
+
this.styles = r;
|
|
21
|
+
}
|
|
22
|
+
_renderText() {
|
|
23
|
+
return t`<div class="assistant-chat-card-content__text-container"><div><span class=${e(this.loading ? a.textLoading : void 0)}>${this.loading ? this.loadingMessage : this.content}</span></div>${this.loading ? t`<div class=${e(a.skeletonBlock)}><span class=${e(a.skeletonText)}></span><span class=${e(a.skeletonText)}></span></div>` : null}</div>`;
|
|
24
|
+
}
|
|
25
|
+
_renderError() {
|
|
26
|
+
return t`<calcite-notice class="assistant-chat-card-content__error-notice" open icon kind=warning width=auto><div slot=message>${this.content}</div></calcite-notice>`;
|
|
27
|
+
}
|
|
28
|
+
render() {
|
|
29
|
+
switch (this.type) {
|
|
30
|
+
case "text":
|
|
31
|
+
return this._renderText();
|
|
32
|
+
case "error":
|
|
33
|
+
return this._renderError();
|
|
34
|
+
default:
|
|
35
|
+
return t`<p>Unsupported content type</p>`;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
n("arcgis-assistant-chat-card-content", c);
|
|
40
|
+
export {
|
|
41
|
+
c as ArcgisAssistantChatCardContent
|
|
42
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference path="../../index.d.ts" />
|
|
2
|
+
import { PublicLitElement as LitElement, JsxNode, TargetedEvent } from '@arcgis/lumina';
|
|
3
|
+
|
|
4
|
+
export declare class ArcgisAssistantChatEntry extends LitElement {
|
|
5
|
+
/** @default true */
|
|
6
|
+
enterKeySubmits: boolean;
|
|
7
|
+
entryPlaceholder?: string;
|
|
8
|
+
/** @default false */
|
|
9
|
+
awaitingResponse: boolean;
|
|
10
|
+
/** @default "" */
|
|
11
|
+
inputValue: string;
|
|
12
|
+
status?: "error" | "ready" | "working";
|
|
13
|
+
readonly arcgisCancel: TargetedEvent<this, void>;
|
|
14
|
+
readonly arcgisSubmit: TargetedEvent<this, string>;
|
|
15
|
+
"@eventTypes": {
|
|
16
|
+
"arcgisCancel": ArcgisAssistantChatEntry["arcgisCancel"]["detail"];
|
|
17
|
+
"arcgisSubmit": ArcgisAssistantChatEntry["arcgisSubmit"]["detail"];
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { c as e } from "../../chunks/runtime.js";
|
|
2
|
+
import { css as i, html as s } from "lit";
|
|
3
|
+
import { LitElement as r, createEvent as a, nothing as n } from "@arcgis/lumina";
|
|
4
|
+
import { createRef as c, ref as o } from "lit/directives/ref.js";
|
|
5
|
+
import { watch as l } from "@arcgis/core/core/reactiveUtils.js";
|
|
6
|
+
import { u } from "../../chunks/useT9n.js";
|
|
7
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
8
|
+
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
9
|
+
v5.0.0-next.133 */
|
|
10
|
+
const h = i`.assistant-chat-entry__input-container{display:flex;flex-direction:column}.assistant-chat-entry__footer-start{display:flex;gap:var(--calcite-spacing-md);flex-wrap:wrap;align-items:center}.assistant-chat-entry__footer-end{display:flex;gap:var(--calcite-spacing-md);align-items:center}.assistant-chat-entry__status-indicator{width:9px;height:9px;border-radius:100%;background-color:var(--calcite-color-status-success)}.assistant-chat-entry__status-indicator[data-status=working]{background-color:var(--calcite-color-status-warning)}.assistant-chat-entry__status-indicator[data-status=error]{background-color:var(--calcite-color-status-danger)}.assistant-chat-entry__status-text{text-transform:capitalize}`;
|
|
11
|
+
class d extends r {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments), this.#t = c(), this._messages = u({ blocking: !0 }), this.enterKeySubmits = !0, this.awaitingResponse = !1, this.inputValue = "", this.arcgisCancel = a(), this.arcgisSubmit = a();
|
|
14
|
+
}
|
|
15
|
+
static {
|
|
16
|
+
this.properties = { enterKeySubmits: 5, entryPlaceholder: 1, awaitingResponse: 5, inputValue: 1, status: 1 };
|
|
17
|
+
}
|
|
18
|
+
static {
|
|
19
|
+
this.styles = h;
|
|
20
|
+
}
|
|
21
|
+
#t;
|
|
22
|
+
loaded() {
|
|
23
|
+
this.manager.onLifecycle(() => [
|
|
24
|
+
l(() => this.inputValue, (t) => {
|
|
25
|
+
this.#t.value && (this.#t.value.value = t);
|
|
26
|
+
}, { initial: !0 })
|
|
27
|
+
]);
|
|
28
|
+
}
|
|
29
|
+
async _submitMessage() {
|
|
30
|
+
if (this.awaitingResponse) {
|
|
31
|
+
this.arcgisCancel.emit();
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
const t = this.#t.value?.value.trim();
|
|
35
|
+
t && (this.arcgisSubmit.emit(t), this.#t.value && (this.#t.value.value = "", await this.#t.value.setFocus()));
|
|
36
|
+
}
|
|
37
|
+
render() {
|
|
38
|
+
return s`<div class="assistant-chat-entry__input-container"><calcite-text-area .value=${this.#t.value?.value} .placeholder=${this.entryPlaceholder ?? this._messages.entryPlaceholder} @keydown=${async (t) => {
|
|
39
|
+
t.key === "Enter" && !t.shiftKey && this.enterKeySubmits && (t.preventDefault(), await this._submitMessage());
|
|
40
|
+
}} ${o(this.#t)}><div slot=footer-start class="assistant-chat-entry__footer-start"><slot name=entry-actions-start></slot></div><div slot=footer-end class="assistant-chat-entry__footer-end">${this.status ? s`<div id=tooltip-status class="assistant-chat-entry__status-indicator" data-status=${this.status ?? n}></div><calcite-tooltip reference-element=tooltip-status offset-distance=12><span class="assistant-chat-entry__status-text">${this.status}</span></calcite-tooltip>` : null}<calcite-button .iconStart=${this.awaitingResponse ? "circle-stop" : "send"} slot=footer-end round @click=${() => void this._submitMessage()}>${this.awaitingResponse ? this._messages.stopButtonLabel : this._messages.askButtonLabel}</calcite-button></div></calcite-text-area></div>`;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
e("arcgis-assistant-chat-entry", d);
|
|
44
|
+
export {
|
|
45
|
+
d as ArcgisAssistantChatEntry
|
|
46
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference path="../../index.d.ts" />
|
|
2
|
+
import { PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
|
|
3
|
+
import { AssistantAgentHost } from '../assistant/assistant-agents/support/utils';
|
|
4
|
+
|
|
5
|
+
export declare class ArcgisAssistantDataExplorationAgent extends LitElement {
|
|
6
|
+
referenceElement?: HTMLArcgisMapElement | string;
|
|
7
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { c as t } from "../../chunks/runtime.js";
|
|
2
|
+
import { LitElement as a } from "@arcgis/lumina";
|
|
3
|
+
import { DataExplorationAgent as s } from "@arcgis/ai-agents";
|
|
4
|
+
import { r as e, i } from "../../chunks/utils.js";
|
|
5
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
6
|
+
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
7
|
+
v5.0.0-next.133 */
|
|
8
|
+
class r extends a {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments), this.agent = s;
|
|
11
|
+
}
|
|
12
|
+
static {
|
|
13
|
+
this.properties = { referenceElement: 1 };
|
|
14
|
+
}
|
|
15
|
+
#t;
|
|
16
|
+
getContext() {
|
|
17
|
+
if (!this.#t)
|
|
18
|
+
throw new Error("arcgis-assistant-data-exploration-agent requires a mapView");
|
|
19
|
+
return { mapView: this.#t };
|
|
20
|
+
}
|
|
21
|
+
async load() {
|
|
22
|
+
this.#t = await e(this, "arcgis-assistant-data-exploration-agent"), i(this);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
t("arcgis-assistant-data-exploration-agent", r);
|
|
26
|
+
export {
|
|
27
|
+
r as ArcgisAssistantDataExplorationAgent
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference path="../../index.d.ts" />
|
|
2
|
+
import { PublicLitElement as LitElement, JsxNode, TargetedEvent } from '@arcgis/lumina';
|
|
3
|
+
|
|
4
|
+
export declare class ArcgisAssistantInterrupt extends LitElement {
|
|
5
|
+
type: "boolean-choice" | "multi-select" | "single-select" | "text-input";
|
|
6
|
+
message?: string;
|
|
7
|
+
options?: string[];
|
|
8
|
+
readonly arcgisCancel: TargetedEvent<this, void>;
|
|
9
|
+
readonly arcgisSubmit: TargetedEvent<this, string | string[]>;
|
|
10
|
+
"@eventTypes": {
|
|
11
|
+
"arcgisCancel": ArcgisAssistantInterrupt["arcgisCancel"]["detail"];
|
|
12
|
+
"arcgisSubmit": ArcgisAssistantInterrupt["arcgisSubmit"]["detail"];
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { c as l } from "../../chunks/runtime.js";
|
|
2
|
+
import { css as a, html as e } from "lit";
|
|
3
|
+
import { LitElement as c, createEvent as s } from "@arcgis/lumina";
|
|
4
|
+
import { u as n } from "../../chunks/useT9n.js";
|
|
5
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
6
|
+
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
7
|
+
v5.0.0-next.133 */
|
|
8
|
+
const r = a``;
|
|
9
|
+
class o extends c {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments), this.#t = [], this._messages = n({ blocking: !0 }), this.arcgisCancel = s(), this.arcgisSubmit = s();
|
|
12
|
+
}
|
|
13
|
+
static {
|
|
14
|
+
this.properties = { type: 1, message: 1, options: 0 };
|
|
15
|
+
}
|
|
16
|
+
static {
|
|
17
|
+
this.styles = r;
|
|
18
|
+
}
|
|
19
|
+
#t;
|
|
20
|
+
_renderInterruptOptions() {
|
|
21
|
+
switch (this.type) {
|
|
22
|
+
case "single-select":
|
|
23
|
+
return e`<calcite-list selection-mode=single-persist .label=${this._messages.optionsLabel} @calciteListChange=${(t) => this.#t = t.target.selectedItems[0]?.value}>${this.options?.map((t) => e`<calcite-list-item .label=${t} .value=${t}></calcite-list-item>`)}</calcite-list>`;
|
|
24
|
+
case "multi-select":
|
|
25
|
+
return e`<calcite-list selection-mode=multiple .label=${this._messages.optionsLabel} @calciteListChange=${(t) => this.#t = t.target.selectedItems.map((i) => i.value)}>${this.options?.map((t) => e`<calcite-list-item .label=${t} .value=${t}></calcite-list-item>`)}</calcite-list>`;
|
|
26
|
+
case "boolean-choice":
|
|
27
|
+
return e`<calcite-list selection-mode=single-persist .label=${this._messages.optionsLabel} @calciteListChange=${(t) => this.#t = t.target.selectedItems[0]?.value}>${this.options?.map((t) => e`<calcite-list-item .label=${t} .value=${t}></calcite-list-item>`)}</calcite-list>`;
|
|
28
|
+
case "text-input":
|
|
29
|
+
return e`<calcite-input .label=${this._messages.enterTextLabel} @calciteInputInput=${(t) => this.#t = t.target.value}></calcite-input>`;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
render() {
|
|
33
|
+
return e`<calcite-panel .description=${this.message}>${this._renderInterruptOptions()}<calcite-button slot=footer-end appearance=outline @click=${() => this.arcgisCancel.emit()}>${this._messages.cancelButtonLabel}</calcite-button><calcite-button slot=footer-end appearance=solid @click=${() => this.arcgisSubmit.emit(this.#t)}>${this._messages.submitButtonLabel}</calcite-button></calcite-panel>`;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
l("arcgis-assistant-interrupt", o);
|
|
37
|
+
export {
|
|
38
|
+
o as ArcgisAssistantInterrupt
|
|
39
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import "@esri/calcite-components/components/calcite-list";
|
|
2
|
+
import "@esri/calcite-components/components/calcite-list-item";
|
|
3
|
+
import "@esri/calcite-components/components/calcite-input";
|
|
4
|
+
import "@esri/calcite-components/components/calcite-panel";
|
|
5
|
+
import "@esri/calcite-components/components/calcite-button";
|
|
6
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import "@esri/calcite-components/components/calcite-list";
|
|
2
|
+
import "@esri/calcite-components/components/calcite-list-item";
|
|
3
|
+
import "@esri/calcite-components/components/calcite-input";
|
|
4
|
+
import "@esri/calcite-components/components/calcite-panel";
|
|
5
|
+
import "@esri/calcite-components/components/calcite-button";
|
|
6
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference path="../../index.d.ts" />
|
|
2
|
+
import { PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
|
|
3
|
+
import { AssistantAgentHost } from '../assistant/assistant-agents/support/utils';
|
|
4
|
+
|
|
5
|
+
export declare class ArcgisAssistantLayerFilterAgent extends LitElement {
|
|
6
|
+
referenceElement?: HTMLArcgisMapElement | string;
|
|
7
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { c as t } from "../../chunks/runtime.js";
|
|
2
|
+
import { LitElement as e } from "@arcgis/lumina";
|
|
3
|
+
import { LayerFilterAgent as r } from "@arcgis/ai-agents";
|
|
4
|
+
import { r as s, i } from "../../chunks/utils.js";
|
|
5
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
6
|
+
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
7
|
+
v5.0.0-next.133 */
|
|
8
|
+
class a extends e {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments), this.agent = r;
|
|
11
|
+
}
|
|
12
|
+
static {
|
|
13
|
+
this.properties = { referenceElement: 1 };
|
|
14
|
+
}
|
|
15
|
+
#t;
|
|
16
|
+
getContext() {
|
|
17
|
+
if (!this.#t)
|
|
18
|
+
throw new Error("arcgis-assistant-layer-filter-agent requires a mapView");
|
|
19
|
+
return { mapView: this.#t };
|
|
20
|
+
}
|
|
21
|
+
async load() {
|
|
22
|
+
this.#t = await s(this, "arcgis-assistant-layer-filter-agent"), i(this);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
t("arcgis-assistant-layer-filter-agent", a);
|
|
26
|
+
export {
|
|
27
|
+
a as ArcgisAssistantLayerFilterAgent
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference path="../../index.d.ts" />
|
|
2
|
+
import { PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
|
|
3
|
+
import { AssistantAgentHost } from '../assistant/assistant-agents/support/utils';
|
|
4
|
+
|
|
5
|
+
export declare class ArcgisAssistantLayerQueryAgent extends LitElement {
|
|
6
|
+
referenceElement?: HTMLArcgisMapElement | string;
|
|
7
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { c as t } from "../../chunks/runtime.js";
|
|
2
|
+
import { LitElement as e } from "@arcgis/lumina";
|
|
3
|
+
import { LayerQueryAgent as r } from "@arcgis/ai-agents";
|
|
4
|
+
import { r as s, i as a } from "../../chunks/utils.js";
|
|
5
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
6
|
+
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
7
|
+
v5.0.0-next.133 */
|
|
8
|
+
class i extends e {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments), this.agent = r;
|
|
11
|
+
}
|
|
12
|
+
static {
|
|
13
|
+
this.properties = { referenceElement: 1 };
|
|
14
|
+
}
|
|
15
|
+
#t;
|
|
16
|
+
getContext() {
|
|
17
|
+
if (!this.#t)
|
|
18
|
+
throw new Error("arcgis-assistant-layer-query-agent requires a mapView");
|
|
19
|
+
return { mapView: this.#t };
|
|
20
|
+
}
|
|
21
|
+
async load() {
|
|
22
|
+
this.#t = await s(this, "arcgis-assistant-layer-query-agent"), a(this);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
t("arcgis-assistant-layer-query-agent", i);
|
|
26
|
+
export {
|
|
27
|
+
i as ArcgisAssistantLayerQueryAgent
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference path="../../index.d.ts" />
|
|
2
|
+
import { PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
|
|
3
|
+
import { AssistantAgentHost } from '../assistant/assistant-agents/support/utils';
|
|
4
|
+
|
|
5
|
+
export declare class ArcgisAssistantLayerStylingAgent extends LitElement {
|
|
6
|
+
referenceElement?: HTMLArcgisMapElement | string;
|
|
7
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { c as t } from "../../chunks/runtime.js";
|
|
2
|
+
import { LitElement as s } from "@arcgis/lumina";
|
|
3
|
+
import { LayerStylingAgent as e } from "@arcgis/ai-agents";
|
|
4
|
+
import { r as i, i as a } from "../../chunks/utils.js";
|
|
5
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
6
|
+
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
7
|
+
v5.0.0-next.133 */
|
|
8
|
+
class r extends s {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments), this.agent = e;
|
|
11
|
+
}
|
|
12
|
+
static {
|
|
13
|
+
this.properties = { referenceElement: 1 };
|
|
14
|
+
}
|
|
15
|
+
#t;
|
|
16
|
+
getContext() {
|
|
17
|
+
if (!this.#t)
|
|
18
|
+
throw new Error("arcgis-assistant-layer-styling-agent requires a mapView");
|
|
19
|
+
return { mapView: this.#t };
|
|
20
|
+
}
|
|
21
|
+
async load() {
|
|
22
|
+
this.#t = await i(this, "arcgis-assistant-layer-styling-agent"), a(this);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
t("arcgis-assistant-layer-styling-agent", r);
|
|
26
|
+
export {
|
|
27
|
+
r as ArcgisAssistantLayerStylingAgent
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference path="../../index.d.ts" />
|
|
2
|
+
import { PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
|
|
3
|
+
import { AssistantAgentHost } from '../assistant/assistant-agents/support/utils';
|
|
4
|
+
|
|
5
|
+
export declare class ArcgisAssistantNavigationAgent extends LitElement {
|
|
6
|
+
referenceElement?: HTMLArcgisMapElement | string;
|
|
7
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { c as t } from "../../chunks/runtime.js";
|
|
2
|
+
import { LitElement as i } from "@arcgis/lumina";
|
|
3
|
+
import { NavigationAgent as a } from "@arcgis/ai-agents";
|
|
4
|
+
import { r as s, i as e } from "../../chunks/utils.js";
|
|
5
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
6
|
+
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
7
|
+
v5.0.0-next.133 */
|
|
8
|
+
class n extends i {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments), this.agent = a;
|
|
11
|
+
}
|
|
12
|
+
static {
|
|
13
|
+
this.properties = { referenceElement: 1 };
|
|
14
|
+
}
|
|
15
|
+
#t;
|
|
16
|
+
getContext() {
|
|
17
|
+
if (!this.#t)
|
|
18
|
+
throw new Error("arcgis-assistant-navigation-agent requires a mapView");
|
|
19
|
+
return { mapView: this.#t };
|
|
20
|
+
}
|
|
21
|
+
async load() {
|
|
22
|
+
this.#t = await s(this, "arcgis-assistant-navigation-agent"), e(this);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
t("arcgis-assistant-navigation-agent", n);
|
|
26
|
+
export {
|
|
27
|
+
n as ArcgisAssistantNavigationAgent
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|