@arcgis/coding-components 4.33.0-next.93 → 4.33.0-next.94
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/arcgis-coding-components/{D4PRZOMJ.js → 2UOMUDCU.js} +1 -1
- package/dist/arcgis-coding-components/{W2UV67BM.js → 4L75MIPA.js} +2 -2
- package/dist/arcgis-coding-components/{XNLLK7Q5.js → 5BIHMNUZ.js} +1 -1
- package/dist/arcgis-coding-components/{DHQWCJLS.js → 6Q43GJXJ.js} +2 -2
- package/dist/arcgis-coding-components/{6ZUXEKRL.js.LEGAL.txt → 6Q43GJXJ.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{NWRW3XA6.js → 6W27X4A5.js} +2 -2
- package/dist/arcgis-coding-components/{4I2R52ZY.js → A7MICUG4.js} +2 -2
- package/dist/arcgis-coding-components/{LZ2WITG3.js → ARKJVFIT.js} +2 -2
- package/dist/arcgis-coding-components/{72GELSFB.js.LEGAL.txt → ARKJVFIT.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{YS6SPZCV.js → B45X2RCU.js} +1 -1
- package/dist/arcgis-coding-components/{7CFL4L7Q.js → C6GPTPY4.js} +1 -1
- package/dist/arcgis-coding-components/{7CFL4L7Q.js.LEGAL.txt → C6GPTPY4.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{7V2YZUR4.js → CFP7ORLC.js} +2 -2
- package/dist/arcgis-coding-components/{7V2YZUR4.js.LEGAL.txt → CFP7ORLC.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{EE722JCJ.js → CZ76XOMS.js} +2 -2
- package/dist/arcgis-coding-components/{HSDQQ4HG.js → D7BXQG4L.js} +2 -2
- package/dist/arcgis-coding-components/D7BXQG4L.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{DU6CV6OG.js → EP2YUSNH.js} +2 -2
- package/dist/arcgis-coding-components/{XALU3KET.js → EURLPKDS.js} +2 -2
- package/dist/arcgis-coding-components/EURLPKDS.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{MTGB7QMO.js → FUIHPHGW.js} +2 -2
- package/dist/arcgis-coding-components/FUIHPHGW.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{R3ECUN4Z.js → HDCM3LC5.js} +2 -2
- package/dist/arcgis-coding-components/HDCM3LC5.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{FB2Z3L5Y.js → I65OQ4H6.js} +2 -2
- package/dist/arcgis-coding-components/I65OQ4H6.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{PD4IUEVP.js → IDCJQ76C.js} +2 -2
- package/dist/arcgis-coding-components/{5VJ5A7X3.js → IZR6CPOM.js} +2 -2
- package/dist/arcgis-coding-components/{J562J2TW.js → JWU3LRFA.js} +2 -2
- package/dist/arcgis-coding-components/JWU3LRFA.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{7NLEGNAE.js → KW7UAGYK.js} +3 -3
- package/dist/arcgis-coding-components/{7NLEGNAE.js.LEGAL.txt → KW7UAGYK.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{OJ54I7IU.js → KYFKKTKR.js} +2 -2
- package/dist/arcgis-coding-components/KYFKKTKR.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{U6EAFNWW.js → LBDYBLQS.js} +2 -2
- package/dist/arcgis-coding-components/{U6EAFNWW.js.LEGAL.txt → LBDYBLQS.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{IAB42QJD.js → N3T3NW5N.js} +2 -2
- package/dist/arcgis-coding-components/N3T3NW5N.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{IH7XAKOJ.js → NRPCKA2V.js} +2 -2
- package/dist/arcgis-coding-components/{AETZHUSK.js → OXUVXK47.js} +2 -2
- package/dist/arcgis-coding-components/P2YKRZDD.js +4 -0
- package/dist/arcgis-coding-components/{72GELSFB.js → PATWPXZE.js} +2 -2
- package/dist/arcgis-coding-components/PATWPXZE.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{JQ7YABP7.js → PY4OG5MY.js} +2 -2
- package/dist/arcgis-coding-components/PY4OG5MY.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{6ZUXEKRL.js → QY7PG52Y.js} +2 -2
- package/dist/arcgis-coding-components/QY7PG52Y.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{ULPC3UGJ.js → SYOOXRWH.js} +4 -4
- package/dist/arcgis-coding-components/SYOOXRWH.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{LIG6J2IU.js → T63CAV7V.js} +2 -2
- package/dist/arcgis-coding-components/{LIG6J2IU.js.LEGAL.txt → T63CAV7V.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{CJIX3PR3.js → TBUHAI37.js} +2 -2
- package/dist/arcgis-coding-components/{RSD7JMA7.js → ZBFJT24O.js} +2 -2
- package/dist/arcgis-coding-components/{JSMSBKGK.js → ZUZCOEYS.js} +2 -2
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js.LEGAL.txt +1 -1
- package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +1 -1
- package/dist/chunks/arcade-defaults.js +1 -1
- package/dist/chunks/arcade-executor.js +1 -1
- package/dist/chunks/arcade-mode.js +1 -1
- package/dist/chunks/arcade-service-accessors.js +1 -1
- package/dist/chunks/fields.js +1 -1
- package/dist/chunks/language-defaults-base.js +46 -46
- package/dist/chunks/markdown.js +1 -1
- package/dist/chunks/monaco-importer.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/sql-expr-defaults.js +1 -1
- package/dist/chunks/sql-expr-mode.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
- package/dist/components/arcgis-arcade-results/customElement.js +72 -72
- package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
- package/dist/components/arcgis-code-editor/customElement.js +1 -1
- package/dist/components/arcgis-editor-variables/customElement.js +1 -1
- package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
- package/dist/docs/api.json +2 -2
- package/dist/docs/docs.json +2 -2
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/package.json +7 -7
- package/dist/arcgis-coding-components/DHQWCJLS.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/FB2Z3L5Y.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/HSDQQ4HG.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/IAB42QJD.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/J562J2TW.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/JQ7YABP7.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/LZ2WITG3.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/MTGB7QMO.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/OJ54I7IU.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/R3ECUN4Z.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/SN2J6ITC.js +0 -4
- package/dist/arcgis-coding-components/ULPC3UGJ.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/XALU3KET.js.LEGAL.txt +0 -3
- /package/dist/arcgis-coding-components/{D4PRZOMJ.js.LEGAL.txt → 2UOMUDCU.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{W2UV67BM.js.LEGAL.txt → 4L75MIPA.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{NWRW3XA6.js.LEGAL.txt → 5BIHMNUZ.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{SN2J6ITC.js.LEGAL.txt → 6W27X4A5.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{4I2R52ZY.js.LEGAL.txt → A7MICUG4.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{XNLLK7Q5.js.LEGAL.txt → B45X2RCU.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{EE722JCJ.js.LEGAL.txt → CZ76XOMS.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{DU6CV6OG.js.LEGAL.txt → EP2YUSNH.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{PD4IUEVP.js.LEGAL.txt → IDCJQ76C.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{5VJ5A7X3.js.LEGAL.txt → IZR6CPOM.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{IH7XAKOJ.js.LEGAL.txt → NRPCKA2V.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{AETZHUSK.js.LEGAL.txt → OXUVXK47.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{YS6SPZCV.js.LEGAL.txt → P2YKRZDD.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{CJIX3PR3.js.LEGAL.txt → TBUHAI37.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{RSD7JMA7.js.LEGAL.txt → ZBFJT24O.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{JSMSBKGK.js.LEGAL.txt → ZUZCOEYS.js.LEGAL.txt} +0 -0
|
@@ -1,69 +1,69 @@
|
|
|
1
1
|
import { c as x } from "../../chunks/runtime.js";
|
|
2
|
-
import { html as
|
|
2
|
+
import { html as t } from "lit-html";
|
|
3
3
|
import { LitElement as w, createEvent as $, safeClassMap as v, nothing as p } from "@arcgis/lumina";
|
|
4
|
-
import { setValuesInString as
|
|
4
|
+
import { setValuesInString as d, quoteString as h } from "@arcgis/components-utils";
|
|
5
5
|
import { M as u, v as g, B as f, f as T, a as S, b as k } from "../../chunks/arcade-executor.js";
|
|
6
6
|
import { s as P } from "../../chunks/fields.js";
|
|
7
|
-
import { u as
|
|
8
|
-
import { css as
|
|
7
|
+
import { u as C } from "../../chunks/useT9n.js";
|
|
8
|
+
import { css as M } from "@lit/reactive-element/css-tag.js";
|
|
9
9
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
11
|
-
v4.33.0-next.
|
|
12
|
-
const A =
|
|
11
|
+
v4.33.0-next.94 */
|
|
12
|
+
const A = M`: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)}}`, a = {
|
|
13
13
|
lines: !0,
|
|
14
14
|
selectionMode: "none",
|
|
15
15
|
scale: "s",
|
|
16
|
-
oncalciteTreeSelect: (l) => l.currentTarget.selectedItems.forEach((
|
|
16
|
+
oncalciteTreeSelect: (l) => l.currentTarget.selectedItems.forEach((e) => e.selected = !1)
|
|
17
17
|
}, c = {
|
|
18
18
|
onClick: (l) => {
|
|
19
|
-
const
|
|
20
|
-
|
|
19
|
+
const e = l.currentTarget;
|
|
20
|
+
e.expanded = !e.expanded;
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
function n(l) {
|
|
24
|
-
return
|
|
24
|
+
return t`<span class="dictionary-property">${l}</span><span>: </span>`;
|
|
25
25
|
}
|
|
26
|
-
function b(l,
|
|
27
|
-
return
|
|
26
|
+
function b(l, e = !1) {
|
|
27
|
+
return t`<calcite-tree slot=${(e ? "children" : void 0) ?? p} .lines=${a.lines} .selectionMode=${a.selectionMode} .scale=${a.scale} @calciteTreeSelect=${a.oncalciteTreeSelect}><calcite-tree-item class="string-value">${JSON.stringify(l.castAsJson(), void 0, 2)}</calcite-tree-item></calcite-tree>`;
|
|
28
28
|
}
|
|
29
|
-
function y(l,
|
|
30
|
-
return
|
|
29
|
+
function y(l, e = !1) {
|
|
30
|
+
return t`<calcite-tree slot=${(e ? "children" : void 0) ?? p} .lines=${a.lines} .selectionMode=${a.selectionMode} .scale=${a.scale} @calciteTreeSelect=${a.oncalciteTreeSelect}><calcite-tree-item><div class="tree-item-label">${n("type")}${l.type}</div></calcite-tree-item><calcite-tree-item><div class="tree-item-label">${n("value")}<span class="string-value">${JSON.stringify(l, void 0, 2)}</span></div></calcite-tree-item></calcite-tree>`;
|
|
31
31
|
}
|
|
32
32
|
function m(l) {
|
|
33
33
|
switch (l.type) {
|
|
34
34
|
case "unknown":
|
|
35
35
|
case "null":
|
|
36
|
-
return
|
|
36
|
+
return t`<span class="constant-value">${l.type}</span>`;
|
|
37
37
|
case "text":
|
|
38
|
-
return
|
|
38
|
+
return t`<span class="string-value">${h(l.value)}</span>`;
|
|
39
39
|
case "number":
|
|
40
|
-
return
|
|
40
|
+
return t`<span class="number-value">${l.value.toString()}</span>`;
|
|
41
41
|
case "boolean":
|
|
42
|
-
return
|
|
42
|
+
return t`<span class="constant-value">${l.value.toString()}</span>`;
|
|
43
43
|
case "date":
|
|
44
|
-
return
|
|
44
|
+
return t`<span class="date-value">${k(l)}</span>`;
|
|
45
45
|
case "dateOnly":
|
|
46
|
-
return
|
|
46
|
+
return t`<span class="string-value">${h(S(l))}</span>`;
|
|
47
47
|
case "time":
|
|
48
|
-
return
|
|
48
|
+
return t`<span class="string-value">${h(T(l))}</span>`;
|
|
49
49
|
default:
|
|
50
50
|
return null;
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
function I(l) {
|
|
54
|
-
const
|
|
55
|
-
return
|
|
54
|
+
const e = P(l.value.fields);
|
|
55
|
+
return t`<table><thead><tr>${e.map((i) => t`<th>${i.name}</th>`)}</tr></thead><tbody>${l.features.map((i) => t`<tr>${e.map((s) => {
|
|
56
56
|
try {
|
|
57
57
|
const r = g(i.field(s.name));
|
|
58
|
-
return
|
|
58
|
+
return t`<td>${m(r)}</td>`;
|
|
59
59
|
} catch {
|
|
60
|
-
return
|
|
60
|
+
return t`<td></td>`;
|
|
61
61
|
}
|
|
62
62
|
})}</tr>`)}</tbody></table>`;
|
|
63
63
|
}
|
|
64
64
|
class L extends w {
|
|
65
65
|
constructor() {
|
|
66
|
-
super(...arguments), this.messages =
|
|
66
|
+
super(...arguments), this.messages = C(), this.openedResultPanel = "output", this.arcgisClose = $({ bubbles: !1 }), this.arcgisOpenedResultPanelChange = $({ bubbles: !1 });
|
|
67
67
|
}
|
|
68
68
|
static {
|
|
69
69
|
this.properties = { consoleLogs: 0, loading: 5, openedResultPanel: 3, result: 0 };
|
|
@@ -73,13 +73,13 @@ class L extends w {
|
|
|
73
73
|
}
|
|
74
74
|
//#endregion
|
|
75
75
|
//#region Private Methods
|
|
76
|
-
updateResultPanel(
|
|
77
|
-
this.openedResultPanel =
|
|
76
|
+
updateResultPanel(e) {
|
|
77
|
+
this.openedResultPanel = e, this.arcgisOpenedResultPanelChange.emit(e);
|
|
78
78
|
}
|
|
79
|
-
_switchResultPanel(
|
|
80
|
-
if (!
|
|
79
|
+
_switchResultPanel(e) {
|
|
80
|
+
if (!e.target)
|
|
81
81
|
return;
|
|
82
|
-
const i =
|
|
82
|
+
const i = e.target?.dataset.panelName;
|
|
83
83
|
i && this.updateResultPanel(i);
|
|
84
84
|
}
|
|
85
85
|
_emitClose() {
|
|
@@ -88,94 +88,94 @@ class L extends w {
|
|
|
88
88
|
//#endregion
|
|
89
89
|
//#region Rendering
|
|
90
90
|
renderConsolePanel() {
|
|
91
|
-
return this.openedResultPanel !== "console" ? null : this.loading && !this.consoleLogs?.length ?
|
|
91
|
+
return this.openedResultPanel !== "console" ? null : this.loading && !this.consoleLogs?.length ? t`<calcite-loader scale=s type=indeterminate label></calcite-loader>` : t`<div class="console-logs-container ltr-container">${this.consoleLogs?.length ? this.consoleLogs.map((e) => t`<p>${e}</p>`) : t`<p>${this.messages.consolemessage}</p>`}</div>`;
|
|
92
92
|
}
|
|
93
93
|
renderLogPanel() {
|
|
94
94
|
if (this.openedResultPanel !== "log")
|
|
95
95
|
return null;
|
|
96
96
|
if (this.loading)
|
|
97
|
-
return
|
|
98
|
-
const
|
|
99
|
-
return
|
|
97
|
+
return t`<calcite-loader scale=s type=indeterminate label></calcite-loader>`;
|
|
98
|
+
const e = this.result?.type === "error" ? "color-error" : "color-success";
|
|
99
|
+
return t`<calcite-list label=results>${this.result ? t`<calcite-list-item .label=${d(this.messages.lastexecutionformat, {
|
|
100
100
|
timeStamp: new Intl.DateTimeFormat(this.messages._t9nLocale, {
|
|
101
101
|
dateStyle: "medium",
|
|
102
102
|
timeStyle: "medium"
|
|
103
103
|
}).format(this.result.timeStamp)
|
|
104
|
-
})}><calcite-icon slot=content-start icon=information scale=s class=${v(
|
|
104
|
+
})}><calcite-icon slot=content-start icon=information scale=s class=${v(e)}></calcite-icon></calcite-list-item><calcite-list-item .label=${d(this.messages.compilationtimeformat, {
|
|
105
105
|
time: new Intl.NumberFormat(this.messages._t9nLocale, {
|
|
106
106
|
style: "unit",
|
|
107
107
|
unit: "millisecond",
|
|
108
108
|
maximumFractionDigits: 2
|
|
109
109
|
}).format(this.result.compilationTime ?? 0)
|
|
110
|
-
})}><calcite-icon slot=content-start icon=information scale=s class=${v(
|
|
110
|
+
})}><calcite-icon slot=content-start icon=information scale=s class=${v(e)}></calcite-icon></calcite-list-item><calcite-list-item .label=${d(this.messages.executiontimeformat, {
|
|
111
111
|
time: new Intl.NumberFormat(this.messages._t9nLocale, {
|
|
112
112
|
style: "unit",
|
|
113
113
|
unit: "millisecond",
|
|
114
114
|
maximumFractionDigits: 2
|
|
115
115
|
}).format(this.result.executionTime ?? 0)
|
|
116
|
-
})}><calcite-icon slot=content-start icon=information scale=s class=${v(
|
|
116
|
+
})}><calcite-icon slot=content-start icon=information scale=s class=${v(e)}></calcite-icon></calcite-list-item>` : t`<calcite-list-item .label=${this.messages.runscriptmessage}><calcite-icon slot=content-start icon=information scale=s class="color-info"></calcite-icon></calcite-list-item>`}</calcite-list>`;
|
|
117
117
|
}
|
|
118
118
|
renderOutputPanel() {
|
|
119
119
|
if (this.openedResultPanel !== "output")
|
|
120
120
|
return null;
|
|
121
121
|
if (this.loading)
|
|
122
|
-
return
|
|
122
|
+
return t`<calcite-loader scale=s type=indeterminate label></calcite-loader>`;
|
|
123
123
|
switch (this.result?.type) {
|
|
124
124
|
case "error":
|
|
125
|
-
return
|
|
125
|
+
return t`<div class="result-value-simple flex-adjustable">${d(this.messages.executionerrorformat, {
|
|
126
126
|
message: this.result.value
|
|
127
127
|
})}</div>`;
|
|
128
128
|
case "null":
|
|
129
129
|
case "unknown":
|
|
130
|
-
return
|
|
130
|
+
return t`<div class="result-value-simple ltr-container">${m(this.result)}</div>`;
|
|
131
131
|
case "text":
|
|
132
132
|
case "number":
|
|
133
133
|
case "date":
|
|
134
134
|
case "dateOnly":
|
|
135
135
|
case "time":
|
|
136
136
|
case "boolean":
|
|
137
|
-
return
|
|
137
|
+
return t`<div class="result-value-simple ltr-container"><span class="value-type">${this.result.type}: </span>${m(this.result)}</div>`;
|
|
138
138
|
case "array": {
|
|
139
139
|
const i = (this.result.value ?? []).slice(0, u);
|
|
140
|
-
return
|
|
140
|
+
return t`<div class="result-value-simple ltr-container"><calcite-tree .lines=${a.lines} .selectionMode=${a.selectionMode} .scale=${a.scale} @calciteTreeSelect=${a.oncalciteTreeSelect}><calcite-tree-item expanded @click=${c.onClick}><div class="tree-item-label">${this.renderArrayHeader(this.result)}</div>${this.renderArrayTree(i, !0)}</calcite-tree-item></calcite-tree></div>`;
|
|
141
141
|
}
|
|
142
142
|
case "geometry":
|
|
143
|
-
return
|
|
143
|
+
return t`<div class="result-value-simple ltr-container"><calcite-tree .lines=${a.lines} .selectionMode=${a.selectionMode} .scale=${a.scale} @calciteTreeSelect=${a.oncalciteTreeSelect}><calcite-tree-item expanded @click=${c.onClick}><div class="tree-item-label">${this.result.type}</div>${y(this.result.value, !0)}</calcite-tree-item></calcite-tree></div>`;
|
|
144
144
|
case "attachment":
|
|
145
|
-
return
|
|
145
|
+
return t`<div class="result-value-simple ltr-container"><calcite-tree .lines=${a.lines} .selectionMode=${a.selectionMode} .scale=${a.scale} @calciteTreeSelect=${a.oncalciteTreeSelect}><calcite-tree-item expanded @click=${c.onClick}><div class="tree-item-label">${this.result.type}</div>${b(this.result.value, !0)}</calcite-tree-item></calcite-tree></div>`;
|
|
146
146
|
case "feature":
|
|
147
147
|
case "dictionary":
|
|
148
148
|
case "portal":
|
|
149
|
-
return
|
|
149
|
+
return t`<div class="result-value-simple ltr-container"><calcite-tree .lines=${a.lines} .selectionMode=${a.selectionMode} .scale=${a.scale} @calciteTreeSelect=${a.oncalciteTreeSelect}><calcite-tree-item expanded @click=${c.onClick}><div class="tree-item-label">${this.result.type}</div>${this.renderDictionaryTree(this.result.value, !0)}</calcite-tree-item></calcite-tree></div>`;
|
|
150
150
|
case "featureSet":
|
|
151
|
-
return
|
|
151
|
+
return t`<div class="result-value-table ltr-container">${this.renderFeatureSetLabel(this.result)}${I(this.result)}</div>`;
|
|
152
152
|
case "knowledgeGraph":
|
|
153
|
-
return
|
|
153
|
+
return t`<div class="result-value-simple ltr-container"><span class="value-type">${this.result.type}: </span><span class="string-value">${this.result.value.url}</span></div>`;
|
|
154
154
|
default:
|
|
155
|
-
return
|
|
155
|
+
return t`<div class="result-value-simple flex-adjustable ltr-container">${this.messages.runscriptmessage}</div>`;
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
-
renderArrayHeader(
|
|
159
|
-
const i =
|
|
160
|
-
return
|
|
158
|
+
renderArrayHeader(e) {
|
|
159
|
+
const i = e.value ?? [], s = Math.max(i.length - u, 0);
|
|
160
|
+
return t`<span>${`${e.type}(${i.length ?? 0})`}</span>${s > 0 ? t`<span> ${d(this.messages.showingfirstitemsformat, {
|
|
161
161
|
count: u.toString()
|
|
162
162
|
})}</span>` : null}`;
|
|
163
163
|
}
|
|
164
|
-
renderArrayTree(
|
|
165
|
-
return
|
|
166
|
-
const
|
|
167
|
-
return this.renderTreeItem(
|
|
164
|
+
renderArrayTree(e, i = !1) {
|
|
165
|
+
return t`<calcite-tree slot=${(i ? "children" : void 0) ?? p} .lines=${a.lines} .selectionMode=${a.selectionMode} .scale=${a.scale} @calciteTreeSelect=${a.oncalciteTreeSelect}>${e.map((s, r) => {
|
|
166
|
+
const o = g(s);
|
|
167
|
+
return this.renderTreeItem(o, r, !i);
|
|
168
168
|
})}</calcite-tree>`;
|
|
169
169
|
}
|
|
170
|
-
renderDictionaryTree(
|
|
171
|
-
const s =
|
|
172
|
-
return
|
|
173
|
-
const
|
|
174
|
-
return this.renderTreeItem(
|
|
170
|
+
renderDictionaryTree(e, i = !1) {
|
|
171
|
+
const s = e.geometry?.();
|
|
172
|
+
return t`<calcite-tree slot=${(i ? "children" : void 0) ?? p} .lines=${a.lines} .selectionMode=${a.selectionMode} .scale=${a.scale} @calciteTreeSelect=${a.oncalciteTreeSelect}>${e.keys().map((r) => {
|
|
173
|
+
const o = g(e.field(r));
|
|
174
|
+
return e.arcadeDeclaredClass === "esri.arcade.Feature" && o.type === "geometry" ? null : this.renderTreeItem(o, r);
|
|
175
175
|
})}${s ? this.renderTreeItem({ type: "geometry", value: s }, "geometry") : null}</calcite-tree>`;
|
|
176
176
|
}
|
|
177
|
-
renderTreeItem(
|
|
178
|
-
switch (
|
|
177
|
+
renderTreeItem(e, i, s = !1) {
|
|
178
|
+
switch (e.type) {
|
|
179
179
|
case "null":
|
|
180
180
|
case "unknown":
|
|
181
181
|
case "text":
|
|
@@ -184,30 +184,30 @@ class L extends w {
|
|
|
184
184
|
case "dateOnly":
|
|
185
185
|
case "time":
|
|
186
186
|
case "boolean":
|
|
187
|
-
return
|
|
187
|
+
return t`<calcite-tree-item><div class="tree-item-label">${n(i)}${m(e)}</div></calcite-tree-item>`;
|
|
188
188
|
case "array": {
|
|
189
|
-
const
|
|
190
|
-
return
|
|
189
|
+
const o = (e.value ?? []).slice(0, u);
|
|
190
|
+
return t`<calcite-tree-item .expanded=${s} @click=${c.onClick}><div class="tree-item-label">${n(i)}${this.renderArrayHeader(e)}</div>${this.renderArrayTree(o, !0)}</calcite-tree-item>`;
|
|
191
191
|
}
|
|
192
192
|
case "geometry":
|
|
193
|
-
return
|
|
193
|
+
return t`<calcite-tree-item .expanded=${s} @click=${c.onClick}><div class="tree-item-label">${n(i)}<span>${e.type}</span></div>${y(e.value, !0)}</calcite-tree-item>`;
|
|
194
194
|
case "attachment":
|
|
195
|
-
return
|
|
195
|
+
return t`<calcite-tree-item .expanded=${s} @click=${c.onClick}><div class="tree-item-label">${n(i)}<span>${e.type}</span></div>${b(e.value, !0)}</calcite-tree-item>`;
|
|
196
196
|
case "feature":
|
|
197
197
|
case "dictionary":
|
|
198
198
|
case "portal":
|
|
199
|
-
return
|
|
199
|
+
return t`<calcite-tree-item .expanded=${s} @click=${c.onClick}><div class="tree-item-label">${n(i)}<span>${e.type}</span></div>${this.renderDictionaryTree(e.value, !0)}</calcite-tree-item>`;
|
|
200
200
|
default:
|
|
201
201
|
return null;
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
renderFeatureSetLabel(
|
|
205
|
-
return
|
|
204
|
+
renderFeatureSetLabel(e) {
|
|
205
|
+
return t`<div class="value-type"><span>${e.type}:</span>${e.features.length >= f ? t`<span> ${d(this.messages.showingfirstitemsformat, {
|
|
206
206
|
count: f.toString()
|
|
207
207
|
})}</span>` : null}</div>`;
|
|
208
208
|
}
|
|
209
209
|
render() {
|
|
210
|
-
return
|
|
210
|
+
return t`<header class="flex-row"><calcite-action-bar class="flex-adjustable" layout=horizontal scale=s expanded expand-disabled><calcite-action-group scale=s><calcite-action .active=${this.openedResultPanel === "output"} .text=${this.messages.output ?? ""} text-enabled scale=s icon=list-show-all icon-flip-rtl @click=${this._switchResultPanel} data-panel-name=output></calcite-action><calcite-action .active=${this.openedResultPanel === "console"} .text=${this.messages.console ?? ""} text-enabled scale=s icon=console icon-flip-rtl @click=${this._switchResultPanel} data-panel-name=console></calcite-action><calcite-action .active=${this.openedResultPanel === "log"} .text=${this.messages.log ?? ""} text-enabled scale=s icon=list icon-flip-rtl @click=${this._switchResultPanel} data-panel-name=log></calcite-action></calcite-action-group></calcite-action-bar><calcite-action scale=s icon=x .text=${this.messages.close ?? ""} @click=${this._emitClose}></calcite-action></header><article class="flex-adjustable">${this.loading ? t`<calcite-loader scale=s type=indeterminate label></calcite-loader>` : t`<div class="flex-column y-scrollable-container">${this.renderOutputPanel()}${this.renderConsolePanel()}${this.renderLogPanel()}</div>`}</article>`;
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
x("arcgis-arcade-results", L);
|
|
@@ -9,7 +9,7 @@ import { u as b } from "../../chunks/useT9n.js";
|
|
|
9
9
|
import { css as _ } from "@lit/reactive-element/css-tag.js";
|
|
10
10
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
11
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
12
|
-
v4.33.0-next.
|
|
12
|
+
v4.33.0-next.94 */
|
|
13
13
|
function v(o) {
|
|
14
14
|
return !Array.isArray(o) || !o.length ? !1 : Array.isArray(o[0].suggestions);
|
|
15
15
|
}
|
|
@@ -13,7 +13,7 @@ import { css as C } from "@lit/reactive-element/css-tag.js";
|
|
|
13
13
|
import { load as b } from "@arcgis/components-controllers";
|
|
14
14
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
15
15
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
16
|
-
v4.33.0-next.
|
|
16
|
+
v4.33.0-next.94 */
|
|
17
17
|
c.register({
|
|
18
18
|
id: n.languageId,
|
|
19
19
|
aliases: ["Arcade", "arcade"],
|
|
@@ -7,7 +7,7 @@ import { u as f } from "../../chunks/useT9n.js";
|
|
|
7
7
|
import { css as m } from "@lit/reactive-element/css-tag.js";
|
|
8
8
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
9
9
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
10
|
-
v4.33.0-next.
|
|
10
|
+
v4.33.0-next.94 */
|
|
11
11
|
const u = m`:host{background-color:var(--calcite-color-foreground-1);.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.sticky{position:sticky;top:0;z-index:10}calcite-flow{height:100%}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`;
|
|
12
12
|
function g(l) {
|
|
13
13
|
l.key === "Enter" && l.stopPropagation();
|
|
@@ -9,7 +9,7 @@ import { u as _ } from "../../chunks/useT9n.js";
|
|
|
9
9
|
import { css as b } from "@lit/reactive-element/css-tag.js";
|
|
10
10
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
11
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
12
|
-
v4.33.0-next.
|
|
12
|
+
v4.33.0-next.94 */
|
|
13
13
|
const v = b`:host{background-color:var(--calcite-color-foreground-1);.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.sticky{position:sticky;top:0;z-index:10}calcite-flow{height:100%}calcite-block{p:first-of-type{margin-top:0}code{font-family:var(--calcite-code-family)}pre{direction:ltr;overflow-x:auto;background-color:var(--calcite-color-foreground-2);padding:var(--calcite-spacing-sm);code{font-size:var(--calcite-font-size--2)}}}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`;
|
|
14
14
|
class y extends u {
|
|
15
15
|
constructor() {
|
|
@@ -8,7 +8,7 @@ import { createRef as d, ref as p } from "lit-html/directives/ref.js";
|
|
|
8
8
|
import { css as h } from "@lit/reactive-element/css-tag.js";
|
|
9
9
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
11
|
-
v4.33.0-next.
|
|
11
|
+
v4.33.0-next.94 */
|
|
12
12
|
const g = h`@layer{arcgis-sql-expression-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-border);box-sizing:border-box;background-color:var(--arcgis-coding-components-background-color);height:100%;.flex-adjustable{flex:1 1 auto;overflow:hidden}.flex-panel{flex:1 0 auto}.position-relative{position:relative}.flex-row{display:flex;flex-direction:row;overflow:hidden}.flex-column{display:flex;flex-direction:column;overflow:hidden}.border-inline-start{border-inline-start:var(--arcgis-coding-components-border);box-sizing:border-box}.border-inline-end{border-inline-end:var(--arcgis-coding-components-border);box-sizing:border-box}.side-action-bar{max-width:var(--arcgis-coding-components-side-action-bar-max-w)}.side-panel{max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w);calcite-flow{height:100%}}}}`;
|
|
13
13
|
class f extends s {
|
|
14
14
|
constructor() {
|
|
@@ -7,7 +7,7 @@ import { u as m } from "../../chunks/useT9n.js";
|
|
|
7
7
|
import { css as d } from "@lit/reactive-element/css-tag.js";
|
|
8
8
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
9
9
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
10
|
-
v4.33.0-next.
|
|
10
|
+
v4.33.0-next.94 */
|
|
11
11
|
const h = d`:host{calcite-flow{height:100%}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`;
|
|
12
12
|
class f extends r {
|
|
13
13
|
constructor() {
|
package/dist/docs/api.json
CHANGED
package/dist/docs/docs.json
CHANGED
package/dist/docs/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@arcgis/coding-components",
|
|
4
|
-
"version": "4.33.0-next.
|
|
4
|
+
"version": "4.33.0-next.94",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { a as c } from "./chunks/arcade-defaults.js";
|
|
|
3
3
|
import { s as p } from "./chunks/sql-expr-defaults.js";
|
|
4
4
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
5
5
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
6
|
-
v4.33.0-next.
|
|
6
|
+
v4.33.0-next.94 */
|
|
7
7
|
const a = s, r = t;
|
|
8
8
|
export {
|
|
9
9
|
c as arcade,
|
package/dist/loader.js
CHANGED
|
@@ -2,7 +2,7 @@ import { r as e } from "./chunks/runtime.js";
|
|
|
2
2
|
import { makeDefineCustomElements as i } from "@arcgis/lumina";
|
|
3
3
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
5
|
-
v4.33.0-next.
|
|
5
|
+
v4.33.0-next.94 */
|
|
6
6
|
const o = i(e, {
|
|
7
7
|
"arcgis-arcade-editor": [() => import("./components/arcgis-arcade-editor/customElement.js"), "customPanels:,editorInstance:,editorOptions:,hideDocumentationActions,hideSideBar,openedSidePanel:,profile:,script,sideActionBarExpanded,snippets:,suggestions:,testData:;getEditorInstance,getScript,getTestResult,setFocus"],
|
|
8
8
|
"arcgis-arcade-results": [() => import("./components/arcgis-arcade-results/customElement.js"), "consoleLogs:,loading,openedResultPanel,result:"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/coding-components",
|
|
3
|
-
"version": "4.33.0-next.
|
|
3
|
+
"version": "4.33.0-next.94",
|
|
4
4
|
"description": "Contains components for editing code in different languages. The currently supported languages are html, css, json, TypeScript, JavaScript, and Arcade.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ArcGIS",
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
],
|
|
38
38
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@arcgis/arcade-languageservice": "4.33.0-next.
|
|
41
|
-
"@arcgis/components-controllers": "4.33.0-next.
|
|
42
|
-
"@arcgis/components-utils": "4.33.0-next.
|
|
43
|
-
"@arcgis/core-adapter": "4.33.0-next.
|
|
44
|
-
"@arcgis/languages-api-utils": "4.33.0-next.
|
|
45
|
-
"@arcgis/lumina": "4.33.0-next.
|
|
40
|
+
"@arcgis/arcade-languageservice": "4.33.0-next.94",
|
|
41
|
+
"@arcgis/components-controllers": "4.33.0-next.94",
|
|
42
|
+
"@arcgis/components-utils": "4.33.0-next.94",
|
|
43
|
+
"@arcgis/core-adapter": "4.33.0-next.94",
|
|
44
|
+
"@arcgis/languages-api-utils": "4.33.0-next.94",
|
|
45
|
+
"@arcgis/lumina": "4.33.0-next.94",
|
|
46
46
|
"monaco-editor": "^0.52.0",
|
|
47
47
|
"tslib": "^2.7.0",
|
|
48
48
|
"vscode-languageserver-types": "^3.17.5"
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
3
|
-
v4.33.0-next.93 */
|
|
4
|
-
import{a,b}from"./RSD7JMA7.js";import"./CJIX3PR3.js";import"./YS6SPZCV.js";export{a as conf,b as language};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|