@arcgis/coding-components 5.0.0-next.142 → 5.0.0-next.144
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/addons.js +1 -3
- package/dist/cdn/2LQCIFST.js +2 -0
- package/dist/cdn/{GG5DIEEC.js → 3BK7TSYF.js} +1 -3
- package/dist/cdn/{YFNKRMO7.js → 4HCNI2HA.js} +1 -3
- package/dist/cdn/{E2OQPCQI.js → 5ARCBH5B.js} +3 -5
- package/dist/cdn/5NACAWOT.js +2 -0
- package/dist/cdn/{TAJCHYW7.js → 72CKSOAE.js} +1 -3
- package/dist/cdn/72K7GT6K.js +2 -0
- package/dist/cdn/{3KVXW2EI.js → 73BSQB2T.js} +2 -4
- package/dist/cdn/{LSJNBWVQ.js → A4GVNJO4.js} +1 -3
- package/dist/cdn/{CMY3S5UD.js → ANX2VUY4.js} +3 -5
- package/dist/cdn/{GFJO556R.js → BSHFJRH6.js} +2 -4
- package/dist/cdn/{SYPOLYJK.js → BXFAQ2LH.js} +2 -4
- package/dist/cdn/{TOYKPPM4.js → CYQJ2PAR.js} +2 -4
- package/dist/cdn/{U3YJQ6AC.js → F7HGGVHB.js} +2 -4
- package/dist/cdn/{W3JHR5YS.js → GNPPU4DH.js} +2 -4
- package/dist/cdn/{TUXALT2R.js → HZLFZ53H.js} +2 -4
- package/dist/cdn/{FFGLKNOP.js → I55NW6QO.js} +2 -4
- package/dist/cdn/{UZMUT6ZA.js → IOCFKMGE.js} +2 -4
- package/dist/cdn/{XLSEV65P.js → JUSMJGLC.js} +1 -3
- package/dist/cdn/KIKBT6P5.js +2 -0
- package/dist/cdn/{BXLM56GH.js → KZLSXGLW.js} +1 -3
- package/dist/cdn/{PPNSYENX.js → MHBC34JD.js} +2 -4
- package/dist/cdn/{OSQBJZL5.js → MYUSNH6P.js} +2 -4
- package/dist/cdn/{7FNUPGNP.js → NWEC6DFJ.js} +2 -4
- package/dist/cdn/{7GNLKA22.js → NY2Z4TF5.js} +2 -4
- package/dist/cdn/O2XPXSWL.js +4 -0
- package/dist/cdn/{FQMNRU6R.js → PHR5AUHJ.js} +2 -4
- package/dist/cdn/{3Y2VEOXX.js → QFTRLR5V.js} +2 -4
- package/dist/cdn/{IFL4TP23.js → R4TWGWBP.js} +2 -4
- package/dist/cdn/RXFSEQOU.js +2 -0
- package/dist/cdn/{3NQ7XDHR.js → SI4QRWY3.js} +2 -4
- package/dist/cdn/{HJLUJIY5.js → SKYRSHU7.js} +1 -3
- package/dist/cdn/{7UYDOD4C.js → SXESJK5F.js} +2 -4
- package/dist/cdn/TSBKTUFT.js +2 -0
- package/dist/cdn/{2Y6SEB6R.js → UCF7VGST.js} +2 -4
- package/dist/cdn/{5ATYUOVJ.js → UGD6BZLQ.js} +2 -4
- package/dist/cdn/{Q4RKNOYO.js → UJSXQWX6.js} +2 -4
- package/dist/cdn/{I5PGI5MK.js → UUX6URP4.js} +2 -4
- package/dist/cdn/VJ22ZSEC.js +2 -0
- package/dist/cdn/{ODIC4APG.js → VMVN52W5.js} +2 -4
- package/dist/cdn/{JIQ2DVWZ.js → WALA7ULV.js} +2 -4
- package/dist/cdn/{ZTJNMD67.js → WJOOQW3T.js} +2 -4
- package/dist/cdn/{B55YKSDO.js → XNSYRILM.js} +2 -4
- package/dist/cdn/{5CCHMDST.js → YEIFICU7.js} +2 -4
- package/dist/cdn/{7EG6W4RN.js → YOETCOVT.js} +2 -4
- package/dist/cdn/{JCSQEFFH.js → YVNVGH2P.js} +2 -4
- package/dist/cdn/Z5HI36Y6.js +2 -0
- package/dist/cdn/{VDY55TYN.js → ZPLHNFBD.js} +2 -4
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/code-editor/css.worker.js +0 -6
- package/dist/cdn/assets/code-editor/html.worker.js +0 -6
- package/dist/cdn/assets/code-editor/json.worker.js +0 -6
- package/dist/cdn/assets/code-editor/sql-expr.worker.js +1 -1
- package/dist/cdn/assets/code-editor/ts.worker.js +0 -20
- package/dist/cdn/index.js +2 -4
- package/dist/chunks/arcade-defaults.js +1 -3
- package/dist/chunks/arcade-executor.js +1 -3
- package/dist/chunks/arcade-mode.js +1 -3
- package/dist/chunks/arcade-service-accessors.js +1 -3
- package/dist/chunks/colorize.js +1 -3
- package/dist/chunks/fields.js +1 -3
- package/dist/chunks/language-defaults-base.js +3 -4
- package/dist/chunks/markdown.js +1 -3
- package/dist/chunks/monaco-importer.js +1 -3
- package/dist/chunks/monaco-theme.js +1 -3
- package/dist/chunks/runtime.js +1 -3
- package/dist/chunks/setup-monaco-theme.js +1 -3
- package/dist/chunks/sql-expr-defaults.js +1 -3
- package/dist/chunks/sql-expr-mode.js +1 -3
- package/dist/chunks/sql-expr-service-accessors.js +1 -3
- package/dist/chunks/useT9n.js +1 -3
- package/dist/chunks/utilities.js +1 -3
- package/dist/components/arcgis-arcade-coding-assistant/customElement.js +440 -260
- package/dist/components/arcgis-arcade-coding-assistant/index.js +3 -2
- package/dist/components/arcgis-arcade-editor/customElement.d.ts +1 -1
- package/dist/components/arcgis-arcade-editor/customElement.js +23 -26
- package/dist/components/arcgis-arcade-results/customElement.js +1 -3
- package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -3
- package/dist/components/arcgis-code-editor/customElement.d.ts +1 -1
- package/dist/components/arcgis-code-editor/customElement.js +2 -9
- package/dist/components/arcgis-code-editor-shell/customElement.d.ts +1 -1
- package/dist/components/arcgis-code-editor-shell/customElement.js +1 -3
- package/dist/components/arcgis-code-viewer/customElement.d.ts +1 -1
- package/dist/components/arcgis-code-viewer/customElement.js +1 -3
- package/dist/components/arcgis-editor-variables/customElement.js +1 -3
- package/dist/components/arcgis-language-api-panel/customElement.js +1 -3
- package/dist/components/arcgis-sql-expression-editor/customElement.d.ts +1 -1
- package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -3
- package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -3
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -3
- package/dist/loader.js +4 -6
- package/package.json +5 -5
- package/dist/cdn/AB4DPBZV.js +0 -4
- package/dist/cdn/AV277PEB.js +0 -9
- package/dist/cdn/F2RPOFWN.js +0 -6
- package/dist/cdn/IQS2QWSZ.js +0 -4
- package/dist/cdn/QQFWYRXA.js +0 -4
- package/dist/cdn/ST5UVCT3.js +0 -4
- package/dist/cdn/TMCR2XBT.js +0 -4
- package/dist/cdn/WUVUFQVS.js +0 -4
- package/dist/cdn/Z7WFO7LG.js +0 -4
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import "@esri/calcite-components/components/calcite-notice";
|
|
2
|
+
import "@esri/calcite-components/components/calcite-link";
|
|
1
3
|
import "@esri/calcite-components/components/calcite-chip";
|
|
2
4
|
import "@esri/calcite-components/components/calcite-action";
|
|
3
5
|
import "@esri/calcite-components/components/calcite-popover";
|
|
@@ -13,11 +15,10 @@ import "@esri/calcite-components/components/calcite-segmented-control";
|
|
|
13
15
|
import "@esri/calcite-components/components/calcite-segmented-control-item";
|
|
14
16
|
import "@esri/calcite-components/components/calcite-checkbox";
|
|
15
17
|
import "@esri/calcite-components/components/calcite-block";
|
|
16
|
-
import "@esri/calcite-components/components/calcite-link";
|
|
17
18
|
import "@esri/calcite-components/components/calcite-dialog";
|
|
18
|
-
import "@esri/calcite-components/components/calcite-chip-group";
|
|
19
19
|
import "@esri/calcite-components/components/calcite-card-group";
|
|
20
20
|
import "@esri/calcite-components/components/calcite-card";
|
|
21
|
+
import "@esri/calcite-components/components/calcite-chip-group";
|
|
21
22
|
import "../arcgis-code-viewer/index.js";
|
|
22
23
|
import "@esri/calcite-components/components/calcite-flow";
|
|
23
24
|
import "@esri/calcite-components/components/calcite-flow-item";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import type { editor as Editor } from "monaco-editor";
|
|
3
3
|
import type { Diagnostic } from "@arcgis/arcade-languageservice";
|
|
4
4
|
import type { ApiSnippet } from "@arcgis/languages-api-utils";
|
|
5
|
-
import type { PublicLitElement as LitElement } from "@arcgis/lumina
|
|
5
|
+
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
6
6
|
import type { IEditorCodeSuggestion, IEditorCodeSuggestionGroup } from "../../utils/editor-suggestions.js";
|
|
7
7
|
import type { IEditorProfileDefinition, IPredefinedProfile } from "../../utils/profile/types.js";
|
|
8
8
|
import type { ArcadeResult, IEditorTestContext } from "../../utils/arcade-executor.js";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
1
2
|
import { g as R, c as w } from "../../chunks/runtime.js";
|
|
2
3
|
import { css as y, html as i, nothing as P } from "lit";
|
|
3
4
|
import { KeyCode as D } from "monaco-editor";
|
|
@@ -10,28 +11,24 @@ import "monaco-editor/esm/vs/editor/browser/editorDom.js";
|
|
|
10
11
|
import "monaco-editor/esm/vs/editor/browser/controller/mouseTarget.js";
|
|
11
12
|
import { LitElement as C, createEvent as b, safeClassMap as c } from "@arcgis/lumina";
|
|
12
13
|
import { generateGuid as I } from "@arcgis/toolkit/string";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { s as k, g as T } from "../../chunks/arcade-service-accessors.js";
|
|
14
|
+
import { D as B, e as v } from "../../chunks/arcade-executor.js";
|
|
15
|
+
import { s as M, g as k } from "../../chunks/arcade-service-accessors.js";
|
|
16
16
|
import { b as d } from "../../chunks/arcade-defaults.js";
|
|
17
|
-
import { u as
|
|
18
|
-
import { createRef as
|
|
19
|
-
import
|
|
20
|
-
import { log as
|
|
21
|
-
|
|
22
|
-
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
23
|
-
v5.0.0-next.142 */
|
|
24
|
-
const j = y`: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)}}`, z = "https://services6.arcgis.com/HXHga6CfMLMBOlBX/ArcGIS/rest/services/survey123_6e349a50b4504ca6b6107216d568db5f_form/FeatureServer/0", a = (s, e) => O(s, "Arcade Assistant", e), H = (s) => {
|
|
17
|
+
import { u as T } from "../../chunks/useT9n.js";
|
|
18
|
+
import { createRef as L, ref as F } from "lit/directives/ref.js";
|
|
19
|
+
import U from "@arcgis/core/identity/IdentityManager.js";
|
|
20
|
+
import { log as N, rethrowError as o } from "@arcgis/toolkit/log";
|
|
21
|
+
const O = y`: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)}}`, j = "https://services6.arcgis.com/HXHga6CfMLMBOlBX/ArcGIS/rest/services/survey123_6e349a50b4504ca6b6107216d568db5f_form/FeatureServer/0", a = (s, e) => N(s, "Arcade Assistant", e), z = (s) => {
|
|
25
22
|
const { aiAssistantsEnabled: e } = s;
|
|
26
23
|
return e === void 0 ? (a("warn", "`areAiAssistantsEnabled` is not defined in the organizations settings."), !1) : e;
|
|
27
|
-
},
|
|
28
|
-
async function
|
|
24
|
+
}, H = (s) => !(!s || !("id" in s)), V = async (s) => (await U.getCredential(s)).token;
|
|
25
|
+
async function G({
|
|
29
26
|
portalUrl: s,
|
|
30
27
|
profile: e
|
|
31
28
|
}) {
|
|
32
|
-
if (!
|
|
29
|
+
if (!H(e))
|
|
33
30
|
return a("warn", "Addon initialization failed. Reason: unsupported profile."), { shouldRender: !1 };
|
|
34
|
-
const t = s.replace(/\/sharing\/rest(\/.*)?$/iu, "").replace(/\/$/u, ""), n = await
|
|
31
|
+
const t = s.replace(/\/sharing\/rest(\/.*)?$/iu, "").replace(/\/$/u, ""), n = await V(s), r = `${t}/sharing/rest/portals/self?f=json&token=${n}`, h = `${t}/sharing/rest/portals/self/settings?f=json&token=${n}`, p = `${t}/sharing/rest/portals/self/signinSettings?f=json&token=${n}`, u = await Promise.allSettled([
|
|
35
32
|
fetch(r, { credentials: "include" }).then((l) => l.json()),
|
|
36
33
|
fetch(h, { credentials: "include" }).then((l) => l.json()),
|
|
37
34
|
fetch(p, { credentials: "include" }).then((l) => l.json())
|
|
@@ -41,7 +38,7 @@ async function X({
|
|
|
41
38
|
const E = m.helpBase || "";
|
|
42
39
|
if (!A)
|
|
43
40
|
return a("warn", "Settings response is not available."), { shouldRender: !1 };
|
|
44
|
-
let S =
|
|
41
|
+
let S = z(A);
|
|
45
42
|
return x.blockBetaApps === !0 && (a(
|
|
46
43
|
"warn",
|
|
47
44
|
"Arcade Assistant is blocked by the organization settings. To enable it, do not block beta apps in the organization settings."
|
|
@@ -50,12 +47,12 @@ async function X({
|
|
|
50
47
|
serviceUrl: $,
|
|
51
48
|
helpBase: E,
|
|
52
49
|
assistantsEnabled: S,
|
|
53
|
-
feedbackServiceUrl:
|
|
50
|
+
feedbackServiceUrl: j
|
|
54
51
|
};
|
|
55
52
|
}
|
|
56
|
-
class
|
|
53
|
+
class X extends C {
|
|
57
54
|
constructor() {
|
|
58
|
-
super(...arguments), this._codeEditorElt =
|
|
55
|
+
super(...arguments), this._codeEditorElt = L(), this._componentReadyDefer = Promise.withResolvers(), this._disposables = [], this._editorProfilePromise = Promise.resolve(void 0), this.messages = T(), this._modelId = I(), this._openArcadeHelp = () => void window.open(B, "Arcade Help"), this._toggleSidePanel = (e) => {
|
|
59
56
|
if (!e.target)
|
|
60
57
|
return;
|
|
61
58
|
const t = e.target?.dataset.panelName ?? "none";
|
|
@@ -66,7 +63,7 @@ class q extends C {
|
|
|
66
63
|
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 };
|
|
67
64
|
}
|
|
68
65
|
static {
|
|
69
|
-
this.styles = [
|
|
66
|
+
this.styles = [O];
|
|
70
67
|
}
|
|
71
68
|
get editorInstance() {
|
|
72
69
|
return this._codeEditorElt.value?.editorInstance;
|
|
@@ -92,7 +89,7 @@ class q extends C {
|
|
|
92
89
|
}
|
|
93
90
|
async load() {
|
|
94
91
|
const e = R("./assets");
|
|
95
|
-
|
|
92
|
+
M(e), await this._updateDataModelDeps(), await this._updateArcadeAssistantRemoteState();
|
|
96
93
|
}
|
|
97
94
|
willUpdate(e) {
|
|
98
95
|
(e.has("messages") || e.has("profile")) && this.hasUpdated && this._updateDataModelDeps(), e.has("testData") && this._testDataChanged(), e.has("snippets") && d.updateApiContextForModel(this._modelId, {
|
|
@@ -101,7 +98,7 @@ class q extends C {
|
|
|
101
98
|
}
|
|
102
99
|
async loaded() {
|
|
103
100
|
this._componentReadyDefer.resolve(), await this._updateApiLibrary();
|
|
104
|
-
const e = await
|
|
101
|
+
const e = await k();
|
|
105
102
|
this._disposables.push(e.onDiagnosticsChange((t) => !this._preparingArcade && this.arcgisDiagnosticsChange.emit(t.diagnostics))), this.testData && this._addExecuteScriptAction();
|
|
106
103
|
}
|
|
107
104
|
disconnectedCallback() {
|
|
@@ -188,7 +185,7 @@ class q extends C {
|
|
|
188
185
|
t !== -1 && this._disposables.splice(t, 1), e.dispose();
|
|
189
186
|
}
|
|
190
187
|
async _updateArcadeAssistantRemoteState() {
|
|
191
|
-
this.arcadeAssistant && (this._arcadeAssistantRemoteState = await
|
|
188
|
+
this.arcadeAssistant && (this._arcadeAssistantRemoteState = await G({
|
|
192
189
|
...this.arcadeAssistant,
|
|
193
190
|
profile: this.profile
|
|
194
191
|
}));
|
|
@@ -197,7 +194,7 @@ class q extends C {
|
|
|
197
194
|
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(o(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;
|
|
198
195
|
}
|
|
199
196
|
renderMainPanel() {
|
|
200
|
-
return i`<arcgis-code-editor slot=editor .editorOptions=${this.editorOptions} .language=${d.languageId} .value=${this.script ?? ""} .modelId=${this._modelId} @arcgisValueChange=${this._onCodeEditorValueChange} ${
|
|
197
|
+
return i`<arcgis-code-editor slot=editor .editorOptions=${this.editorOptions} .language=${d.languageId} .value=${this.script ?? ""} .modelId=${this._modelId} @arcgisValueChange=${this._onCodeEditorValueChange} ${F(this._codeEditorElt)}></arcgis-code-editor>`;
|
|
201
198
|
}
|
|
202
199
|
renderAction({ id: e, label: t, icon: n, active: r, panelName: h, iconFlipRtl: p = !1, onClick: u = this._toggleSidePanel }) {
|
|
203
200
|
return i`<calcite-action id=${e ?? P} .text=${t} .textEnabled=${this.sideActionBarExpanded} .icon=${n} .active=${r} @click=${u} data-panel-name=${h ?? P} .iconFlipRtl=${p}></calcite-action>${!this.sideActionBarExpanded && i`<calcite-tooltip .referenceElement=${e}><span>${t}</span></calcite-tooltip>` || ""}`;
|
|
@@ -268,7 +265,7 @@ class q extends C {
|
|
|
268
265
|
return i`<arcgis-code-editor-shell>${this.renderMainActionBar()}${this.renderMainPanel()}${this.renderResultsPanel()}${this.renderSidePanel()}${this.renderSideActionBar()}</arcgis-code-editor-shell>`;
|
|
269
266
|
}
|
|
270
267
|
}
|
|
271
|
-
w("arcgis-arcade-editor",
|
|
268
|
+
w("arcgis-arcade-editor", X);
|
|
272
269
|
export {
|
|
273
|
-
|
|
270
|
+
X as ArcgisArcadeEditor
|
|
274
271
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
1
2
|
import { c as I } from "../../chunks/runtime.js";
|
|
2
3
|
import { css as T, html as t, unsafeCSS as D } from "lit";
|
|
3
4
|
import { nothing as w, LitElement as O, createEvent as y, safeClassMap as h } from "@arcgis/lumina";
|
|
@@ -9,9 +10,6 @@ import "@arcgis/toolkit/function";
|
|
|
9
10
|
import { createRef as g, ref as f } from "lit/directives/ref.js";
|
|
10
11
|
import { t as k } from "../../chunks/monaco-theme.js";
|
|
11
12
|
import { observeAncestorsMutation as z, unsafeGetCalciteModeName as N } from "@arcgis/toolkit/dom";
|
|
12
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
13
|
-
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
14
|
-
v5.0.0-next.142 */
|
|
15
13
|
const E = T`:host{display:flex;flex-direction:column;width:100%;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);.flex-adjustable{flex:1 1 auto;overflow:hidden}.flex-row{display:flex;flex-direction:row;overflow:hidden}.flex-column{display:flex;flex-direction:column;overflow:hidden}.y-scrollable-container{overflow-y:auto;block-size:100%;background-color:var(--calcite-color-foreground-1)}header{border-bottom:1px solid var(--calcite-color-border-3);flex:0 0 auto}.ltr-container{direction:ltr}calcite-action-bar{calcite-action-group{padding-inline-end:var(--calcite-spacing-sm);calcite-action{padding-inline-end:var(--calcite-spacing-sm)}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)}}.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.color-info{color:var(--calcite-color-status-info)}.color-error{color:var(--calcite-color-status-danger)}.color-success{color:var(--calcite-color-status-success)}[class*=result-value-]{font-size:var(--calcite-font-size--2);line-height:1.25rem;background-color:var(--calcite-color-foreground-1);margin:var(--calcite-spacing-md)}.console-logs-container{background-color:var(--calcite-color-foreground-1);padding:0 var(--calcite-spacing-md);font-family:var(--calcite-code-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal)}.result-value-table{table{display:block;max-width:fit-content;overflow-x:auto;border-spacing:0;border-collapse:collapse;text-align:start;white-space:nowrap;thead{background-color:var(--calcite-color-foreground-2)}tr{border-top:1px solid var(--calcite-color-border-3);border-bottom:1px solid var(--calcite-color-border-3)}th,td{border-inline-start:1px solid var(--calcite-color-border-3);border-inline-end:1px solid var(--calcite-color-border-3);text-align:start;padding:var(--calcite-spacing-xxs);.string-value{white-space:pre}}th{font-weight:var(--calcite-font-weight-medium)}}}.tree-item-label,.number-value,.string-value,.boolean-value{font-family:var(--calcite-code-family)}.tree-item-label,.value-type{color:var(--calcite-color-text-2);font-weight:var(--calcite-font-weight-normal)}.dictionary-property{color:var(--arcgis-editor-identifier)}.number-value{color:var(--arcgis-editor-number)}.string-value{color:var(--arcgis-editor-string);white-space:pre-wrap}.constant-value{color:var(--arcgis-editor-constant)}.date-value{color:var(--arcgis-editor-date)}}`, l = {
|
|
16
14
|
lines: !0,
|
|
17
15
|
selectionMode: "none",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
1
2
|
import { c as n } from "../../chunks/runtime.js";
|
|
2
3
|
import { ref as l } from "lit/directives/ref.js";
|
|
3
4
|
import { css as d, html as s, nothing as r } from "lit";
|
|
@@ -7,9 +8,6 @@ import { g as a, o as m, a as f } from "../../chunks/colorize.js";
|
|
|
7
8
|
import { f as p } from "../../chunks/utilities.js";
|
|
8
9
|
import { c as b } from "../../chunks/markdown.js";
|
|
9
10
|
import { u as _ } from "../../chunks/useT9n.js";
|
|
10
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
|
-
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
12
|
-
v5.0.0-next.142 */
|
|
13
11
|
function v(o) {
|
|
14
12
|
return !Array.isArray(o) || !o.length ? !1 : Array.isArray(o[0].suggestions);
|
|
15
13
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
2
|
import type { Selection, editor as Editor } from "monaco-editor";
|
|
3
|
-
import type { PublicLitElement as LitElement } from "@arcgis/lumina
|
|
3
|
+
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
4
4
|
|
|
5
5
|
/** @internal */
|
|
6
6
|
export abstract class ArcgisCodeEditor extends LitElement {
|