@arcgis/coding-components 5.1.0-next.55 → 5.1.0-next.56
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/{PKG2K3V2.js → 23B5EVBR.js} +1 -1
- package/dist/cdn/2RXM4OOZ.js +2 -0
- package/dist/cdn/2XTHR2WZ.js +2 -0
- package/dist/cdn/5PWITOEV.js +2 -0
- package/dist/cdn/A53COIII.js +6 -0
- package/dist/cdn/AESP7B22.js +2 -0
- package/dist/cdn/AHN2NEBT.js +2 -0
- package/dist/cdn/{54ZOADNQ.js → BXUVVQLE.js} +1 -1
- package/dist/cdn/BYHBHJML.js +2 -0
- package/dist/cdn/CLBLJN2Z.js +7 -0
- package/dist/cdn/CZ2DJPO4.js +2 -0
- package/dist/cdn/DGFH2WPL.js +2 -0
- package/dist/cdn/{RJRCBNNO.js → DJYSIOXC.js} +1 -1
- package/dist/cdn/FLNLMLTL.js +2 -0
- package/dist/cdn/ITDFOKJG.js +2 -0
- package/dist/cdn/MH4UADDE.js +2 -0
- package/dist/cdn/{UZJHWA6T.js → ODKUCLFB.js} +1 -1
- package/dist/cdn/{PVL67WGX.js → PD5NEK47.js} +1 -1
- package/dist/cdn/PRB6IWVU.js +2 -0
- package/dist/cdn/{4A2CLADY.js → QCARFVF7.js} +1 -1
- package/dist/cdn/{6YD47X7H.js → QF6ON7LK.js} +1 -1
- package/dist/cdn/QRDRCFJZ.js +2 -0
- package/dist/cdn/SV4IPD4A.js +2 -0
- package/dist/cdn/UH44LJA7.js +4 -0
- package/dist/cdn/VF7TALAI.js +12 -0
- package/dist/cdn/VPP77CFW.js +2 -0
- package/dist/cdn/YPMKBMXS.js +2 -0
- package/dist/cdn/ZHZFKZA7.js +2 -0
- package/dist/cdn/assets/arcade-editor/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/code-editor/sql-expr.worker.js +119 -116
- package/dist/cdn/assets/code-editor/sql-layer.worker.js +10087 -0
- package/dist/cdn/assets/editor-variables/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.en.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/arcade-defaults.js +98 -96
- package/dist/chunks/arcade-service-accessors.js +40 -28
- package/dist/chunks/bigquery.js +186 -0
- package/dist/chunks/colorize.js +1 -1
- package/dist/chunks/fields.js +2 -2
- package/dist/chunks/language-defaults-base.js +733 -464
- package/dist/chunks/postgres.js +209 -0
- package/dist/chunks/setup-monaco-theme.js +28 -20
- package/dist/chunks/sql-expr-defaults.js +11 -10
- package/dist/chunks/sql-layer-defaults.js +231 -0
- package/dist/chunks/sql-layer-mode.js +301 -0
- package/dist/chunks/sqlServer.js +288 -0
- package/dist/chunks/utils.js +184 -0
- package/dist/components/arcgis-arcade-coding-assistant/customElement.js +134 -123
- package/dist/components/arcgis-arcade-editor/customElement.d.ts +17 -0
- package/dist/components/arcgis-arcade-editor/customElement.js +22 -22
- package/dist/components/arcgis-code-editor/customElement.d.ts +2 -1
- package/dist/components/arcgis-code-editor/customElement.js +91 -71
- package/dist/components/arcgis-editor-variables/customElement.js +50 -47
- package/dist/components/arcgis-sql-expression-editor/customElement.d.ts +12 -0
- package/dist/components/arcgis-sql-expression-editor/customElement.js +17 -17
- package/dist/components/arcgis-sql-layer-editor/customElement.d.ts +50 -0
- package/dist/components/arcgis-sql-layer-editor/customElement.js +92 -0
- package/dist/components/arcgis-sql-layer-editor/index.d.ts +1 -0
- package/dist/components/arcgis-sql-layer-editor/index.js +7 -0
- package/dist/components/types.d.ts +79 -2
- 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 +10 -0
- package/dist/loader.js +6 -5
- package/dist/types/lumina.d.ts +9 -2
- package/dist/types/preact.d.ts +10 -2
- package/dist/types/react.d.ts +11 -2
- package/dist/types/stencil.d.ts +9 -2
- package/dist/utils/data-catalog-datastore.d.ts +170 -0
- package/package.json +5 -5
- package/dist/cdn/5CO7XWOT.js +0 -2
- package/dist/cdn/5FXY5U3T.js +0 -2
- package/dist/cdn/CYC4AWZE.js +0 -2
- package/dist/cdn/GVO3LEFV.js +0 -2
- package/dist/cdn/J5X2KSYD.js +0 -2
- package/dist/cdn/QHJAF7L3.js +0 -6
- package/dist/cdn/T7GEIGWF.js +0 -2
- package/dist/cdn/TAXRVBJC.js +0 -2
- package/dist/cdn/VR5CATAW.js +0 -2
- package/dist/cdn/WTNM2NCZ.js +0 -2
- package/dist/cdn/XEUG3X2W.js +0 -2
- package/dist/cdn/ZJCI6LP6.js +0 -12
- package/dist/cdn/ZSVJAJND.js +0 -4
|
@@ -67,6 +67,21 @@ export abstract class ArcgisArcadeEditor extends LitElement {
|
|
|
67
67
|
* @default false
|
|
68
68
|
*/
|
|
69
69
|
accessor hideSideBar: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Replace localized message strings with your own strings.
|
|
72
|
+
*
|
|
73
|
+
* **Note**: Individual message keys may change between releases.
|
|
74
|
+
*/
|
|
75
|
+
accessor messageOverrides: {
|
|
76
|
+
help?: string | undefined;
|
|
77
|
+
profilevariables?: string | undefined;
|
|
78
|
+
constantsandfunctions?: string | undefined;
|
|
79
|
+
suggestions?: string | undefined;
|
|
80
|
+
run?: string | undefined;
|
|
81
|
+
lastresults?: string | undefined;
|
|
82
|
+
arcadeassistant?: string | undefined;
|
|
83
|
+
profileempty?: string | undefined;
|
|
84
|
+
};
|
|
70
85
|
/** @internal */
|
|
71
86
|
protected messages: Partial<{
|
|
72
87
|
help: string;
|
|
@@ -76,6 +91,7 @@ export abstract class ArcgisArcadeEditor extends LitElement {
|
|
|
76
91
|
run: string;
|
|
77
92
|
lastresults: string;
|
|
78
93
|
arcadeassistant: string;
|
|
94
|
+
profileempty: string;
|
|
79
95
|
}> & T9nMeta<{
|
|
80
96
|
help: string;
|
|
81
97
|
profilevariables: string;
|
|
@@ -84,6 +100,7 @@ export abstract class ArcgisArcadeEditor extends LitElement {
|
|
|
84
100
|
run: string;
|
|
85
101
|
lastresults: string;
|
|
86
102
|
arcadeassistant: string;
|
|
103
|
+
profileempty: string;
|
|
87
104
|
}>;
|
|
88
105
|
/**
|
|
89
106
|
* The name of the opened side panel. 'none' means 'no panel opened'.
|
|
@@ -15,10 +15,10 @@ import { D as L, e as x } from "../../chunks/arcade-executor.js";
|
|
|
15
15
|
import { s as T, g as U } from "../../chunks/arcade-service-accessors.js";
|
|
16
16
|
import { b as c } from "../../chunks/arcade-defaults.js";
|
|
17
17
|
import { u as F } from "../../chunks/useT9n.js";
|
|
18
|
-
import { createRef as
|
|
18
|
+
import { createRef as O, ref as N } from "lit/directives/ref.js";
|
|
19
19
|
import R from "@arcgis/core/identity/IdentityManager.js";
|
|
20
|
-
import { log as
|
|
21
|
-
const j = C`:host{height:100%}calcite-tooltip:not([calcite-hydrated])>*{display:none}.main-action-bar{calcite-action-group{padding-inline-end:var(--calcite-spacing-sm)}calcite-action-group calcite-action{padding-inline-end:var(--calcite-spacing-sm)}calcite-action-group calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}calcite-action-group:last-child{border-inline-end-width:0px}calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}`, E = "https://services6.arcgis.com/HXHga6CfMLMBOlBX/ArcGIS/rest/services/survey123_6e349a50b4504ca6b6107216d568db5f_form/FeatureServer/0", a = (s, e) =>
|
|
20
|
+
import { log as H, rethrowError as r } from "@arcgis/toolkit/log";
|
|
21
|
+
const j = C`:host{height:100%}calcite-tooltip:not([calcite-hydrated])>*{display:none}.main-action-bar{calcite-action-group{padding-inline-end:var(--calcite-spacing-sm)}calcite-action-group calcite-action{padding-inline-end:var(--calcite-spacing-sm)}calcite-action-group calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}calcite-action-group:last-child{border-inline-end-width:0px}calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}`, E = "https://services6.arcgis.com/HXHga6CfMLMBOlBX/ArcGIS/rest/services/survey123_6e349a50b4504ca6b6107216d568db5f_form/FeatureServer/0", a = (s, e) => H(s, "Arcade Assistant", e), z = (s) => {
|
|
22
22
|
const { aiAssistantsEnabled: e } = s;
|
|
23
23
|
return e === void 0 ? (a("warn", "`areAiAssistantsEnabled` is not defined in the organizations settings."), !1) : e;
|
|
24
24
|
}, V = (s) => !(!s || !("id" in s)), G = async (s) => (await R.getCredential(s, { oAuthPopupConfirmation: !1 })).token, q = async (s) => {
|
|
@@ -38,16 +38,16 @@ async function Q({
|
|
|
38
38
|
if (!await q(t))
|
|
39
39
|
return { shouldRender: !1 };
|
|
40
40
|
const n = await G(s), p = `${t}/sharing/rest/portals/self?f=json&token=${n}`, u = `${t}/sharing/rest/portals/self/settings?f=json&token=${n}`, g = `${t}/sharing/rest/portals/self/signinSettings?f=json&token=${n}`, w = await Promise.allSettled([
|
|
41
|
-
fetch(p, { credentials: "include" }).then((
|
|
42
|
-
fetch(u, { credentials: "include" }).then((
|
|
43
|
-
fetch(g, { credentials: "include" }).then((
|
|
44
|
-
]), [f, _, m] = w, h = f.status === "fulfilled" ? f.value : (a("warn", `Failed to fetch selfUrl. Reason: ${f.reason}.`), {}),
|
|
41
|
+
fetch(p, { credentials: "include" }).then((o) => o.json()),
|
|
42
|
+
fetch(u, { credentials: "include" }).then((o) => o.json()),
|
|
43
|
+
fetch(g, { credentials: "include" }).then((o) => o.json())
|
|
44
|
+
]), [f, _, m] = w, h = f.status === "fulfilled" ? f.value : (a("warn", `Failed to fetch selfUrl. Reason: ${f.reason}.`), {}), $ = _.status === "fulfilled" ? _.value : (a("warn", `Failed to fetch settingsUrl. Reason: ${_.reason}.`), {}), y = m.status === "fulfilled" ? m.value : (a("warn", `Failed to fetch signinSettingsUrl. Reason: ${m.reason}.`), {});
|
|
45
45
|
if (h.isPortal)
|
|
46
46
|
return { shouldRender: !1 };
|
|
47
|
-
const
|
|
48
|
-
if (
|
|
47
|
+
const S = h.helpBase || "";
|
|
48
|
+
if (!$)
|
|
49
49
|
return a("warn", "Settings response is not available."), { shouldRender: !1 };
|
|
50
|
-
let A = z(
|
|
50
|
+
let A = z($);
|
|
51
51
|
y.blockBetaApps === !0 && (a(
|
|
52
52
|
"warn",
|
|
53
53
|
"Arcade Assistant is blocked by the organization settings. To enable it, do not block beta apps in the organization settings."
|
|
@@ -56,27 +56,27 @@ async function Q({
|
|
|
56
56
|
return P ? {
|
|
57
57
|
shouldRender: !0,
|
|
58
58
|
serviceUrl: P,
|
|
59
|
-
helpBase:
|
|
59
|
+
helpBase: S,
|
|
60
60
|
assistantsEnabled: A,
|
|
61
61
|
feedbackServiceUrl: E
|
|
62
62
|
} : {
|
|
63
63
|
shouldRender: !0,
|
|
64
64
|
assistantsEnabled: !1,
|
|
65
|
-
helpBase:
|
|
65
|
+
helpBase: S,
|
|
66
66
|
feedbackServiceUrl: E
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
69
|
class X extends k {
|
|
70
70
|
constructor() {
|
|
71
|
-
super(...arguments), this._codeEditorElt =
|
|
71
|
+
super(...arguments), this._codeEditorElt = O(), this._componentReadyDefer = Promise.withResolvers(), this._disposables = [], this._editorProfilePromise = Promise.resolve(void 0), this.messages = F(), this._modelId = M(), this._openArcadeHelp = () => void window.open(L, "Arcade Help"), this._toggleSidePanel = (e) => {
|
|
72
72
|
if (!e.target)
|
|
73
73
|
return;
|
|
74
74
|
const t = e.target?.dataset.panelName ?? "none";
|
|
75
|
-
this.openedSidePanel = t === this.openedSidePanel ? "none" : t, this.openedSidePanel === "none" && this._codeEditorElt.value?.setFocus().catch(
|
|
75
|
+
this.openedSidePanel = t === this.openedSidePanel ? "none" : t, this.openedSidePanel === "none" && this._codeEditorElt.value?.setFocus().catch(r(this));
|
|
76
76
|
}, this._consoleLogs = [], this._executingScript = !1, this._preparingArcade = !1, this._resultPanel = "output", this._showExecutionPanel = !1, this._arcadeAssistantRemoteState = { shouldRender: !1 }, this.hideDocumentationActions = !1, this.hideSideBar = !1, this.openedSidePanel = "none", this.script = "", this.sideActionBarExpanded = !1, this.arcgisDiagnosticsChange = v({ bubbles: !1 }), this.arcgisScriptChange = v({ bubbles: !1 });
|
|
77
77
|
}
|
|
78
78
|
static {
|
|
79
|
-
this.properties = { _apiLibrary: 16, _consoleLogs: 16, _editorProfile: 16, _executingScript: 16, _executionResult: 16, _preparingArcade: 16, _resultPanel: 16, _showExecutionPanel: 16, _arcadeAssistantRemoteState: 16, editorInstance: 32, editorOptions: 0, hideDocumentationActions: 5, hideSideBar: 5, openedSidePanel: 3, profile: 0, script: 1, sideActionBarExpanded: 7, snippets: 0, suggestions: 0, testData: 0, customPanels: 0, arcadeAssistant: 0 };
|
|
79
|
+
this.properties = { _apiLibrary: 16, _consoleLogs: 16, _editorProfile: 16, _executingScript: 16, _executionResult: 16, _preparingArcade: 16, _resultPanel: 16, _showExecutionPanel: 16, _arcadeAssistantRemoteState: 16, editorInstance: 32, editorOptions: 0, hideDocumentationActions: 5, hideSideBar: 5, messageOverrides: 0, openedSidePanel: 3, profile: 0, script: 1, sideActionBarExpanded: 7, snippets: 0, suggestions: 0, testData: 0, customPanels: 0, arcadeAssistant: 0 };
|
|
80
80
|
}
|
|
81
81
|
static {
|
|
82
82
|
this.styles = [j];
|
|
@@ -119,7 +119,7 @@ class X extends k {
|
|
|
119
119
|
await this._updateEditorProfile(), await this._updateApiLibrary();
|
|
120
120
|
}
|
|
121
121
|
_testDataChanged() {
|
|
122
|
-
!this.testData && this._executeScriptAction && (this._disposeSafely(this._executeScriptAction), this._executeScriptAction = void 0), this.testData && !this._executeScriptAction && this._addExecuteScriptAction(), this._showExecutionPanel && this._executeScript().catch(
|
|
122
|
+
!this.testData && this._executeScriptAction && (this._disposeSafely(this._executeScriptAction), this._executeScriptAction = void 0), this.testData && !this._executeScriptAction && this._addExecuteScriptAction(), this._showExecutionPanel && this._executeScript().catch(r(this));
|
|
123
123
|
}
|
|
124
124
|
async _updateEditorProfile() {
|
|
125
125
|
this._preparingArcade = !0;
|
|
@@ -161,13 +161,13 @@ class X extends k {
|
|
|
161
161
|
e.stopPropagation(), this.script = e.detail, this.arcgisScriptChange.emit(e.detail);
|
|
162
162
|
}
|
|
163
163
|
_insertAsSnippet(e) {
|
|
164
|
-
this._codeEditorElt.value?.insertSnippet(e.detail).catch(
|
|
164
|
+
this._codeEditorElt.value?.insertSnippet(e.detail).catch(r(this));
|
|
165
165
|
}
|
|
166
166
|
_insertAsText(e) {
|
|
167
167
|
this._insertText(e.detail);
|
|
168
168
|
}
|
|
169
169
|
_insertText(e) {
|
|
170
|
-
this._codeEditorElt.value?.insertText(e).catch(
|
|
170
|
+
this._codeEditorElt.value?.insertText(e).catch(r(this));
|
|
171
171
|
}
|
|
172
172
|
_onResultPanelChange(e) {
|
|
173
173
|
const t = e.currentTarget;
|
|
@@ -185,7 +185,7 @@ class X extends k {
|
|
|
185
185
|
contextMenuGroupId: "code",
|
|
186
186
|
contextMenuOrder: 1,
|
|
187
187
|
run: () => {
|
|
188
|
-
this.testData && this._executeScript().catch(
|
|
188
|
+
this.testData && this._executeScript().catch(r(this));
|
|
189
189
|
}
|
|
190
190
|
});
|
|
191
191
|
e && (this._executeScriptAction = e, this._disposables.push(e));
|
|
@@ -201,10 +201,10 @@ class X extends k {
|
|
|
201
201
|
}));
|
|
202
202
|
}
|
|
203
203
|
renderMainActionBar() {
|
|
204
|
-
return this.testData ? i`<calcite-action-bar class="main-action-bar" layout=horizontal scale=s expanded expand-disabled slot=top-action-bar><calcite-action-group scale=s><calcite-action .text=${this.messages.run ?? ""} text-enabled icon=play scale=s .loading=${this._preparingArcade} @click=${() => void this._executeScript().catch(
|
|
204
|
+
return this.testData ? i`<calcite-action-bar class="main-action-bar" layout=horizontal scale=s expanded expand-disabled slot=top-action-bar><calcite-action-group scale=s><calcite-action .text=${this.messages.run ?? ""} text-enabled icon=play scale=s .loading=${this._preparingArcade} @click=${() => void this._executeScript().catch(r(this))}></calcite-action>${this._executionResult ? i`<calcite-action .text=${this.messages.lastresults ?? ""} .active=${this._showExecutionPanel} text-enabled icon=access-string-results icon-flip-rtl scale=s @click=${this._toggleShowExecutionPanel}></calcite-action>` : null}</calcite-action-group></calcite-action-bar>` : null;
|
|
205
205
|
}
|
|
206
206
|
renderMainPanel() {
|
|
207
|
-
return i`<arcgis-code-editor slot=editor .editorOptions=${this.editorOptions} .language=${c.languageId} .value=${this.script ?? ""} .modelId=${this._modelId} @arcgisValueChange=${this._onCodeEditorValueChange} ${
|
|
207
|
+
return i`<arcgis-code-editor slot=editor .editorOptions=${this.editorOptions} .language=${c.languageId} .value=${this.script ?? ""} .modelId=${this._modelId} @arcgisValueChange=${this._onCodeEditorValueChange} ${N(this._codeEditorElt)}></arcgis-code-editor>`;
|
|
208
208
|
}
|
|
209
209
|
renderAction({ id: e, label: t, icon: d, active: n, panelName: p, iconFlipRtl: u = !1, onClick: g = this._toggleSidePanel }) {
|
|
210
210
|
return i`<calcite-action id=${e ?? b} .text=${t} .textEnabled=${this.sideActionBarExpanded} .icon=${d} .active=${n} @click=${g} data-panel-name=${p ?? b} .iconFlipRtl=${u}></calcite-action>${!this.sideActionBarExpanded && i`<calcite-tooltip .referenceElement=${e}><span>${t}</span></calcite-tooltip>` || ""}`;
|
|
@@ -254,7 +254,7 @@ class X extends k {
|
|
|
254
254
|
if (this.hideSideBar)
|
|
255
255
|
return null;
|
|
256
256
|
const { openedSidePanel: e } = this;
|
|
257
|
-
return i`<arcgis-language-api-panel slot=side-panel class=${l(e === "api" ? "" : "hidden")} .loading=${this._preparingArcade} .apiLibrary=${this._apiLibrary} .hideDocumentationActions=${this.hideDocumentationActions} @arcgisInternalItemSelected=${this._insertAsSnippet} @arcgisInternalClosePanel=${this._toggleSidePanel} data-panel-name=none .closed=${e !== "api"}></arcgis-language-api-panel><arcgis-editor-variables slot=side-panel class=${l(e === "variables" ? "" : "hidden")} .loading=${this._preparingArcade} .modelId=${this._modelId} @arcgisInternalItemSelected=${this._insertAsText} @arcgisInternalClosePanel=${this._toggleSidePanel} data-panel-name=none .variable=${this._editorProfile} .closed=${e !== "variables"}></arcgis-editor-variables>${this.suggestions?.length && i`<arcgis-arcade-suggestions slot=side-panel class=${l(e === "suggestions" ? "" : "hidden")} .closed=${e !== "suggestions"} .suggestions=${this.suggestions} @arcgisInternalItemSelected=${this._insertAsText} @arcgisInternalClosePanel=${this._toggleSidePanel} data-panel-name=none></arcgis-arcade-suggestions>` || ""}${this.arcadeAssistant && this._arcadeAssistantRemoteState.shouldRender && i`<arcgis-arcade-coding-assistant slot=side-panel class=${l(e === "arcade-assistant" ? "" : "hidden")} .closed=${e !== "arcade-assistant"} .insertText=${this._insertText.bind(this)} .closePanel=${this._toggleSidePanel} .portalUrl=${this.arcadeAssistant.portalUrl} .serviceUrl=${"serviceUrl" in this._arcadeAssistantRemoteState ? this._arcadeAssistantRemoteState.serviceUrl : void 0} .helpBase=${this._arcadeAssistantRemoteState.helpBase} .assistantsEnabled=${this._arcadeAssistantRemoteState.assistantsEnabled} .feedbackServiceUrl=${this._arcadeAssistantRemoteState.feedbackServiceUrl} .editorRef=${this.el} .appVersion=${this.arcadeAssistant.appVersion} .disableQuestionAnswerLogging=${this.arcadeAssistant.disableQuestionAnswerLogging}></arcgis-arcade-coding-assistant>` || ""}${this.customPanels?.map((t) => i`<calcite-flow slot=side-panel class=${l(e === t.id ? "" : "hidden")}>${t?.useFlows ? t.renderer?.({
|
|
257
|
+
return i`<arcgis-language-api-panel slot=side-panel class=${l(e === "api" ? "" : "hidden")} .loading=${this._preparingArcade} .apiLibrary=${this._apiLibrary} .hideDocumentationActions=${this.hideDocumentationActions} @arcgisInternalItemSelected=${this._insertAsSnippet} @arcgisInternalClosePanel=${this._toggleSidePanel} data-panel-name=none .closed=${e !== "api"}></arcgis-language-api-panel><arcgis-editor-variables slot=side-panel class=${l(e === "variables" ? "" : "hidden")} .loading=${this._preparingArcade} .modelId=${this._modelId} @arcgisInternalItemSelected=${this._insertAsText} @arcgisInternalClosePanel=${this._toggleSidePanel} data-panel-name=none .variable=${this._editorProfile} .closed=${e !== "variables"} .messageOverrides=${{ profileempty: this.messages.profileempty }}></arcgis-editor-variables>${this.suggestions?.length && i`<arcgis-arcade-suggestions slot=side-panel class=${l(e === "suggestions" ? "" : "hidden")} .closed=${e !== "suggestions"} .suggestions=${this.suggestions} @arcgisInternalItemSelected=${this._insertAsText} @arcgisInternalClosePanel=${this._toggleSidePanel} data-panel-name=none></arcgis-arcade-suggestions>` || ""}${this.arcadeAssistant && this._arcadeAssistantRemoteState.shouldRender && i`<arcgis-arcade-coding-assistant slot=side-panel class=${l(e === "arcade-assistant" ? "" : "hidden")} .closed=${e !== "arcade-assistant"} .insertText=${this._insertText.bind(this)} .closePanel=${this._toggleSidePanel} .portalUrl=${this.arcadeAssistant.portalUrl} .serviceUrl=${"serviceUrl" in this._arcadeAssistantRemoteState ? this._arcadeAssistantRemoteState.serviceUrl : void 0} .helpBase=${this._arcadeAssistantRemoteState.helpBase} .assistantsEnabled=${this._arcadeAssistantRemoteState.assistantsEnabled} .feedbackServiceUrl=${this._arcadeAssistantRemoteState.feedbackServiceUrl} .editorRef=${this.el} .appVersion=${this.arcadeAssistant.appVersion} .disableQuestionAnswerLogging=${this.arcadeAssistant.disableQuestionAnswerLogging}></arcgis-arcade-coding-assistant>` || ""}${this.customPanels?.map((t) => i`<calcite-flow slot=side-panel class=${l(e === t.id ? "" : "hidden")}>${t?.useFlows ? t.renderer?.({
|
|
258
258
|
closePanel: this._toggleSidePanel,
|
|
259
259
|
insertText: this._insertText.bind(this),
|
|
260
260
|
closed: e !== t.id,
|
|
@@ -24,7 +24,8 @@ export abstract class ArcgisCodeEditor extends LitElement {
|
|
|
24
24
|
accessor editorOptions: Editor.IEditorOptions & Editor.IGlobalEditorOptions | undefined;
|
|
25
25
|
/**
|
|
26
26
|
* The language for the editor.
|
|
27
|
-
* Currently supported language: arcade, arcgis-sql-expression,
|
|
27
|
+
* Currently supported language: arcade, arcgis-sql-expression, sql-layer-sql-server, sql-layer-postgres,
|
|
28
|
+
* sql-layer-bigquery, json, css, html, javascript, typescript, and text.
|
|
28
29
|
*/
|
|
29
30
|
accessor language: string | undefined;
|
|
30
31
|
/**
|