@arcgis/coding-components 5.0.0-next.140 → 5.0.0-next.141
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 -1
- package/dist/cdn/{ONS4ZING.js → 2KPWNHGP.js} +2 -2
- package/dist/cdn/2Q4RC3I2.js +4 -0
- package/dist/cdn/{ESQGKD4N.js → 2WFPKGNS.js} +2 -2
- package/dist/cdn/{AVDFLRTR.js → 2ZFE7VBS.js} +2 -2
- package/dist/cdn/{3FYTZKBP.js → 5BOQ5CDP.js} +1 -1
- package/dist/cdn/{C4EXEFHY.js → 5WHTC46G.js} +1 -1
- package/dist/cdn/{QEWPVXQ4.js → 62XTF2HV.js} +2 -2
- package/dist/cdn/{YYSVEFB6.js → AW57YOFI.js} +2 -2
- package/dist/cdn/BORLI5BL.js +13 -0
- package/dist/cdn/{G5T4EI7D.js → BSOIYFXU.js} +1 -1
- package/dist/cdn/{MO5R3BGP.js → BZCHBOQW.js} +2 -2
- package/dist/cdn/{ZZLSZBHB.js → CTONLFET.js} +2 -2
- package/dist/cdn/{K72FNTFN.js → DD7E4CTD.js} +2 -2
- package/dist/cdn/{YP3EICK5.js → DP5QMA47.js} +1 -1
- package/dist/cdn/DXKTKMXW.js +4 -0
- package/dist/cdn/FYTHJBIB.js +4 -0
- package/dist/cdn/{2ULX4YEB.js → G4IU5ZYX.js} +2 -2
- package/dist/cdn/{FVV4UAL5.js → GDON7RSD.js} +2 -2
- package/dist/cdn/{JTC4R6ZU.js → GE4G4GOF.js} +1 -1
- package/dist/cdn/{57JMNO5L.js → GRFHHJXW.js} +2 -2
- package/dist/cdn/{36M2T4ND.js → GWVYODXM.js} +2 -2
- package/dist/cdn/{62EN7QRE.js → HML5AZXI.js} +2 -2
- package/dist/cdn/{6HNTPPBF.js → J6YY3ZWZ.js} +1 -1
- package/dist/cdn/{7VAC6CMK.js → JZFVKLPE.js} +3 -3
- package/dist/cdn/LATZL6NN.js +4 -0
- package/dist/cdn/{DYMWCNFZ.js → LQHBSD4W.js} +2 -2
- package/dist/cdn/{6IKRQB72.js → N35JT2LB.js} +2 -2
- package/dist/cdn/{XTDTOBWV.js → NICG7HLY.js} +2 -2
- package/dist/cdn/{C7R3BXTS.js → NL6FLTKV.js} +2 -2
- package/dist/cdn/OO7CPYNX.js +4 -0
- package/dist/cdn/{P7JTV3RL.js → Q6SKY4Y3.js} +2 -2
- package/dist/cdn/{LJIVTQAR.js → RFWHUMFC.js} +2 -2
- package/dist/cdn/{VHZ4ET75.js → RGHWTK7O.js} +2 -2
- package/dist/cdn/{DHKHGAIN.js → RKGCVGAS.js} +1 -1
- package/dist/cdn/{2U5KSGDI.js → RVSQPK6O.js} +2 -2
- package/dist/cdn/{OFEE2U6F.js → SRMRL3U2.js} +2 -2
- package/dist/cdn/{DL4FPVPY.js → UCGGLYRZ.js} +2 -2
- package/dist/cdn/{7ZISFGDD.js → V54XUQYT.js} +2 -2
- package/dist/cdn/{IVLAW36F.js → VWEPFRQO.js} +2 -2
- package/dist/cdn/{2OHDWLLP.js → WUPM5AJR.js} +2 -2
- package/dist/cdn/{FNALAI66.js → WXTQR45B.js} +2 -2
- package/dist/cdn/{GZS2QNLW.js → WZNOW6ED.js} +2 -2
- package/dist/cdn/XEUUGRIV.js +4 -0
- package/dist/cdn/{ZU5A2KCX.js → XLJSTTSB.js} +2 -2
- package/dist/cdn/{QJG5IKIQ.js → Y3Q4THV3.js} +2 -2
- package/dist/cdn/{DWCX7EOA.js → ZGLMCIOB.js} +1 -1
- package/dist/cdn/{HAVQXZ3S.js → ZSD2KBQQ.js} +2 -2
- package/dist/cdn/{4SD3AP46.js → ZVQZ4OSA.js} +2 -2
- package/dist/cdn/index.js +2 -2
- 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/colorize.js +1 -1
- package/dist/chunks/fields.js +1 -1
- package/dist/chunks/language-defaults-base.js +1 -1
- package/dist/chunks/markdown.js +1 -1
- package/dist/chunks/monaco-importer.js +1 -1
- package/dist/chunks/monaco-theme.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/setup-monaco-theme.js +1 -1
- package/dist/chunks/sql-expr-defaults.js +1 -1
- package/dist/chunks/sql-expr-mode.js +1 -1
- package/dist/chunks/sql-expr-service-accessors.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/utilities.js +1 -1
- package/dist/components/arcgis-arcade-coding-assistant/customElement.js +1 -1
- package/dist/components/arcgis-arcade-editor/customElement.js +18 -17
- package/dist/components/arcgis-arcade-results/customElement.js +17 -17
- package/dist/components/arcgis-arcade-suggestions/customElement.js +8 -8
- package/dist/components/arcgis-code-editor/customElement.js +1 -1
- package/dist/components/arcgis-code-editor-shell/customElement.js +1 -1
- package/dist/components/arcgis-code-viewer/customElement.js +1 -1
- package/dist/components/arcgis-editor-variables/customElement.js +4 -4
- package/dist/components/arcgis-language-api-panel/customElement.js +13 -13
- package/dist/components/arcgis-sql-expression-editor/customElement.js +19 -19
- package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
- 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 -1
- package/dist/loader.js +1 -1
- package/package.json +5 -5
- package/dist/cdn/5ARRYYLL.js +0 -13
- package/dist/cdn/5DATPYV6.js +0 -4
- package/dist/cdn/66W55DBK.js +0 -4
- package/dist/cdn/FCJTX2NB.js +0 -4
- package/dist/cdn/MCUF3HVR.js +0 -4
- package/dist/cdn/NJ3F2V6N.js +0 -4
- package/dist/cdn/P37FDVCH.js +0 -4
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { c } from "../../chunks/runtime.js";
|
|
2
|
-
import { css as
|
|
3
|
-
import { LitElement as
|
|
4
|
-
import { generateGuid as
|
|
5
|
-
import { a
|
|
1
|
+
import { c as n } from "../../chunks/runtime.js";
|
|
2
|
+
import { css as c, html as t } from "lit";
|
|
3
|
+
import { LitElement as l, createEvent as o, safeClassMap as r } from "@arcgis/lumina";
|
|
4
|
+
import { generateGuid as d } from "@arcgis/toolkit/string";
|
|
5
|
+
import { a } from "../../chunks/sql-expr-defaults.js";
|
|
6
6
|
import { u as h } from "../../chunks/useT9n.js";
|
|
7
7
|
import { createRef as p, ref as g } from "lit/directives/ref.js";
|
|
8
8
|
import { getSqlExprDiagnosticService as _ } from "../../chunks/sql-expr-mode.js";
|
|
9
|
-
import { rethrowError as
|
|
9
|
+
import { rethrowError as s } from "@arcgis/toolkit/log";
|
|
10
10
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
11
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
12
|
-
v5.0.0-next.
|
|
13
|
-
const f =
|
|
14
|
-
class u extends
|
|
12
|
+
v5.0.0-next.141 */
|
|
13
|
+
const f = c`:host{height:100%}calcite-tooltip:not([calcite-hydrated])>*{display:none}`;
|
|
14
|
+
class u extends l {
|
|
15
15
|
constructor() {
|
|
16
|
-
super(...arguments), this._codeEditorElt = p(), this._disposables = [], this.messages = h(), this._modelId =
|
|
16
|
+
super(...arguments), this._codeEditorElt = p(), this._disposables = [], this.messages = h(), this._modelId = d(), this._preparing = !1, this.sideActionBarExpanded = !1, this.script = "", this.hideSideBar = !1, this.arcgisDiagnosticsChange = o({ bubbles: !1 }), this.arcgisScriptChange = o({ bubbles: !1 });
|
|
17
17
|
}
|
|
18
18
|
static {
|
|
19
19
|
this.properties = { _activeAction: 16, _apiLibrary: 16, _editorProfile: 16, _preparing: 16, sideActionBarExpanded: 16, profile: 0, script: 1, hideSideBar: 5 };
|
|
@@ -25,7 +25,7 @@ class u extends d {
|
|
|
25
25
|
await this._codeEditorElt.value?.setFocus();
|
|
26
26
|
}
|
|
27
27
|
async load() {
|
|
28
|
-
await this._updateEditorProfile().catch(
|
|
28
|
+
await this._updateEditorProfile().catch(s(this));
|
|
29
29
|
}
|
|
30
30
|
willUpdate(i) {
|
|
31
31
|
(i.has("messages") || i.has("profile")) && this._updateDataModelDeps();
|
|
@@ -44,7 +44,7 @@ class u extends d {
|
|
|
44
44
|
async _updateEditorProfile() {
|
|
45
45
|
this._preparing = !0;
|
|
46
46
|
try {
|
|
47
|
-
await
|
|
47
|
+
await a.setProfileForModel(this._modelId, this.profile, { locale: this.messages._t9nLocale }), this._editorProfile = a.getEditorProfileForModel(this._modelId);
|
|
48
48
|
} catch {
|
|
49
49
|
this._editorProfile = void 0;
|
|
50
50
|
} finally {
|
|
@@ -63,31 +63,31 @@ class u extends d {
|
|
|
63
63
|
this._setActiveAction(e.dataset.panelName);
|
|
64
64
|
}
|
|
65
65
|
_insertAsSnippet(i) {
|
|
66
|
-
this._codeEditorElt.value?.insertSnippet(i.detail).catch(
|
|
66
|
+
this._codeEditorElt.value?.insertSnippet(i.detail).catch(s(this));
|
|
67
67
|
}
|
|
68
68
|
_insertAsText(i) {
|
|
69
|
-
this._codeEditorElt.value?.insertText(i.detail.replaceAll('"', "'")).catch(
|
|
69
|
+
this._codeEditorElt.value?.insertText(i.detail.replaceAll('"', "'")).catch(s(this));
|
|
70
70
|
}
|
|
71
71
|
async _updateApiLibrary() {
|
|
72
|
-
this._apiLibrary = await
|
|
72
|
+
this._apiLibrary = await a.getApiLibraryForModel(this._modelId);
|
|
73
73
|
}
|
|
74
74
|
_onCodeEditorValueChange(i) {
|
|
75
75
|
i.stopPropagation(), this.script = i.detail, this.arcgisScriptChange.emit(i.detail);
|
|
76
76
|
}
|
|
77
77
|
_getFeatureSetVariable() {
|
|
78
78
|
let i;
|
|
79
|
-
const e =
|
|
80
|
-
return e?.variables?.length && e?.variables?.[0]?.type !== "featureSet" ?
|
|
79
|
+
const e = a.getEditorProfileForModel(this._modelId);
|
|
80
|
+
return e?.variables?.length && e?.variables?.[0]?.type !== "featureSet" ? s(this)("Encountered unexpected editor profile") : i = e?.variables?.[0], i;
|
|
81
81
|
}
|
|
82
82
|
_toggleSideActionBarExpanded() {
|
|
83
83
|
this.sideActionBarExpanded = !this.sideActionBarExpanded;
|
|
84
84
|
}
|
|
85
85
|
render() {
|
|
86
86
|
const i = this._getFeatureSetVariable();
|
|
87
|
-
return t`<arcgis-code-editor-shell><arcgis-code-editor slot=editor language=arcgis-sql-expression .modelId=${this._modelId} .value=${this.script ?? ""} @arcgisValueChange=${this._onCodeEditorValueChange} ${g(this._codeEditorElt)}></arcgis-code-editor>${!this.hideSideBar && i && t`<arcgis-editor-variables slot=side-panel .variable=${i} .closed=${this._activeAction !== "fields"} class=${r(this._activeAction === "fields" ? "" : "hidden")} .loading=${this._preparing} .modelId=${this._modelId} @
|
|
87
|
+
return t`<arcgis-code-editor-shell><arcgis-code-editor slot=editor language=arcgis-sql-expression .modelId=${this._modelId} .value=${this.script ?? ""} @arcgisValueChange=${this._onCodeEditorValueChange} ${g(this._codeEditorElt)}></arcgis-code-editor>${!this.hideSideBar && i && t`<arcgis-editor-variables slot=side-panel .variable=${i} .closed=${this._activeAction !== "fields"} class=${r(this._activeAction === "fields" ? "" : "hidden")} .loading=${this._preparing} .modelId=${this._modelId} @arcgisInternalItemSelected=${this._insertAsText} @arcgisInternalClosePanel=${() => this._setActiveAction(void 0)} data-panel-name=none></arcgis-editor-variables>` || ""}${!this.hideSideBar && t`<arcgis-language-api-panel slot=side-panel class=${r(this._activeAction === "functions" ? "" : "hidden")} .closed=${this._activeAction !== "functions"} @arcgisInternalItemSelected=${this._insertAsSnippet} @arcgisInternalClosePanel=${() => this._setActiveAction(void 0)} .loading=${this._preparing} .apiLibrary=${this._apiLibrary} data-panel-name=none hide-documentation-actions .languageId=${a.languageId}></arcgis-language-api-panel>` || ""}${!this.hideSideBar && t`<calcite-action-bar slot=side-action-bar .expanded=${this.sideActionBarExpanded} position=end @calciteActionBarToggle=${this._toggleSideActionBarExpanded}>${i && t`<calcite-action id=fields-action .text=${this.messages.fields ?? "Fields"} icon=profile-variables .active=${this._activeAction === "fields"} data-panel-name=fields @click=${this._handleActionClick}></calcite-action>` || ""}${i && !this.sideActionBarExpanded && t`<calcite-tooltip reference-element=fields-action><span>${this.messages.fields ?? "Fields"}</span></calcite-tooltip>` || ""}<calcite-action id=functions-action .text=${this.messages.functions ?? "Functions"} icon=function .active=${this._activeAction === "functions"} data-panel-name=functions @click=${this._handleActionClick}></calcite-action>${!this.sideActionBarExpanded && t`<calcite-tooltip reference-element=functions-action><span>${this.messages.functions ?? "Functions"}</span></calcite-tooltip>` || ""}</calcite-action-bar>` || ""}</arcgis-code-editor-shell>`;
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
|
|
90
|
+
n("arcgis-sql-expression-editor", u);
|
|
91
91
|
export {
|
|
92
92
|
u as ArcgisSqlExpressionEditor
|
|
93
93
|
};
|
|
@@ -6,7 +6,7 @@ import { a as m } from "../../chunks/sql-expr-defaults.js";
|
|
|
6
6
|
import { u as d } from "../../chunks/useT9n.js";
|
|
7
7
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
8
8
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
9
|
-
v5.0.0-next.
|
|
9
|
+
v5.0.0-next.141 */
|
|
10
10
|
const h = r`:host{calcite-flow{height:100%}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`;
|
|
11
11
|
class g extends n {
|
|
12
12
|
constructor() {
|