@arcgis/coding-components 4.31.0-next.76 → 4.31.0-next.78
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/arcgis-coding-components.esm.js +2 -2
- package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +76 -76
- package/dist/arcgis-coding-components/index.esm.js +2 -2
- package/dist/arcgis-coding-components/{p-4a93290a.js → p-39f82bdf.js} +10 -10
- package/dist/arcgis-coding-components/{p-d935b67b.js → p-3e9138d1.js} +2 -2
- package/dist/arcgis-coding-components/{p-a2fbd2d7.js → p-56b9a46b.js} +2 -2
- package/dist/arcgis-coding-components/{p-159d7e28.js → p-65fac2a2.js} +1 -1
- package/dist/arcgis-coding-components/p-6c02d087.js +6 -0
- package/dist/arcgis-coding-components/p-75194595.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-a1648fd9.js → p-768bbd21.js} +1 -1
- package/dist/arcgis-coding-components/{p-53ef9d57.js → p-783b5f57.js} +1 -1
- package/dist/arcgis-coding-components/p-7a683b74.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-aea8a9ae.js → p-856489e5.js} +2 -2
- package/dist/arcgis-coding-components/{p-1c00cf80.js → p-8afa5752.js} +2 -2
- package/dist/arcgis-coding-components/{p-8c475464.js → p-8d86a470.js} +2 -2
- package/dist/arcgis-coding-components/{p-c9b15662.js → p-a0d7e57e.js} +2 -2
- package/dist/arcgis-coding-components/{p-0bd6b819.entry.js → p-c2881d0b.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-1b9499a9.js → p-cae88f7a.js} +2 -2
- package/dist/arcgis-coding-components/{p-0f01b138.js → p-d4a2c779.js} +2 -2
- package/dist/arcgis-coding-components/{p-521f0e06.js → p-df53ceb3.js} +2 -2
- package/dist/arcgis-coding-components/{p-d7e32d38.js → p-f191d5c4.js} +2 -2
- package/dist/cjs/{app-globals-fe7e6b36.js → app-globals-36508d17.js} +1 -1
- package/dist/cjs/{arcade-defaults-085b41a2.js → arcade-defaults-3ba38e64.js} +3 -3
- package/dist/cjs/{arcade-mode-0c677bc5.js → arcade-mode-153379ec.js} +3 -3
- package/dist/cjs/arcgis-arcade-editor_6.cjs.entry.js +207 -157
- package/dist/cjs/arcgis-coding-components.cjs.js +4 -4
- package/dist/cjs/arcgis-sql-expression-editor.cjs.entry.js +26 -7
- package/dist/cjs/arcgis-sql-expression-fields.cjs.entry.js +4 -4
- package/dist/cjs/{css-8bbe3cfe.js → css-6e35ab05.js} +1 -1
- package/dist/cjs/{cssMode-20751da2.js → cssMode-3dc2bccb.js} +3 -3
- package/dist/cjs/{html-a4af845f.js → html-20965b18.js} +3 -3
- package/dist/cjs/{htmlMode-30e86156.js → htmlMode-9324d914.js} +3 -3
- package/dist/cjs/{index-ee1b5dad.js → index-b6860332.js} +1 -1
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/{javascript-7d24a9c3.js → javascript-c62e64af.js} +4 -4
- package/dist/cjs/{jsonMode-aae37f0e.js → jsonMode-5d208206.js} +3 -3
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{sql-expr-defaults-19b16751.js → sql-expr-defaults-e8d6f68b.js} +13 -12
- package/dist/cjs/{sql-expr-mode-5dfbe435.js → sql-expr-mode-08b2ba7b.js} +7 -5
- package/dist/cjs/{tsMode-36dcdc24.js → tsMode-4edda21c.js} +3 -3
- package/dist/cjs/{typescript-bcedd639.js → typescript-fef47aa2.js} +3 -3
- package/dist/cjs/{useT9n-5a58b74b.js → useT9n-5e3f59e6.js} +3 -3
- package/dist/components/arcade-defaults.js +2 -2
- package/dist/components/arcade-mode.js +1 -1
- package/dist/components/arcade-results.js +1 -1
- package/dist/components/arcade-suggestions.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +8 -8
- package/dist/components/arcgis-arcade-results.js +1 -1
- package/dist/components/arcgis-arcade-suggestions.js +1 -1
- package/dist/components/arcgis-assets.d.ts +1 -1
- package/dist/components/arcgis-assets.js +1 -1
- package/dist/components/arcgis-code-editor.js +1 -1
- package/dist/components/{arcgis-arcade-variables.d.ts → arcgis-editor-variables.d.ts} +4 -4
- package/dist/components/arcgis-editor-variables.js +11 -0
- package/dist/components/arcgis-language-api-panel.js +1 -1
- package/dist/components/arcgis-sql-expression-editor.js +29 -10
- package/dist/components/arcgis-sql-expression-fields.js +103 -2
- package/dist/components/chunk-A4MUWALE.js +1 -1
- package/dist/components/code-editor.js +2 -2
- package/dist/components/{arcade-variables.js → editor-variables.js} +65 -16
- package/dist/components/fields.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +1 -1
- package/dist/components/language-api-panel.js +1 -1
- package/dist/components/markdown.js +1 -1
- package/dist/components/sql-expr-defaults.js +1347 -5
- package/dist/components/sql-expr-mode.js +6 -4
- package/dist/components/useT9n.js +1 -1
- package/dist/components/utilities.js +1 -1
- package/dist/esm/{app-globals-60c1d02f.js → app-globals-114942c8.js} +1 -1
- package/dist/esm/{arcade-defaults-ff80717f.js → arcade-defaults-72d79638.js} +3 -3
- package/dist/esm/{arcade-mode-a4ff17cc.js → arcade-mode-33501bbf.js} +3 -3
- package/dist/esm/arcgis-arcade-editor_6.entry.js +207 -157
- package/dist/esm/arcgis-coding-components.js +5 -5
- package/dist/esm/arcgis-sql-expression-editor.entry.js +26 -7
- package/dist/esm/arcgis-sql-expression-fields.entry.js +4 -4
- package/dist/esm/{css-607cace1.js → css-e669c8cc.js} +1 -1
- package/dist/esm/{cssMode-2a8d291e.js → cssMode-a8b477e3.js} +3 -3
- package/dist/esm/{html-35122a30.js → html-fa654ea8.js} +3 -3
- package/dist/esm/{htmlMode-a22e6838.js → htmlMode-252b58ec.js} +3 -3
- package/dist/esm/{index-e129cff7.js → index-515ec576.js} +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/{javascript-61366963.js → javascript-e43d9aad.js} +4 -4
- package/dist/esm/{jsonMode-57111234.js → jsonMode-788ef636.js} +3 -3
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{sql-expr-defaults-8686a08f.js → sql-expr-defaults-eff5fcd0.js} +14 -13
- package/dist/esm/{sql-expr-mode-c7cacc6e.js → sql-expr-mode-f4116ccc.js} +7 -5
- package/dist/esm/{tsMode-75e4ee85.js → tsMode-b6afbaf3.js} +3 -3
- package/dist/esm/{typescript-b43c3180.js → typescript-e6399cf1.js} +3 -3
- package/dist/esm/{useT9n-2b871a88.js → useT9n-1988d923.js} +3 -3
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/types/components/{arcade-variables/arcade-variables.d.ts → editor-variables/editor-variables.d.ts} +25 -2
- package/dist/types/components/sql-expression-editor/sql-expression-editor.d.ts +6 -0
- package/dist/types/components.d.ts +63 -53
- package/dist/types/utils/profile/editor-profile.d.ts +2 -1
- package/dist/types/utils/sql-expr-monaco/sql-expr-completion.d.ts +1 -0
- package/dist/types/utils/sql-expr-monaco/sql-expr-constants.d.ts +1 -1
- package/package.json +11 -11
- package/dist/arcgis-coding-components/p-448e8cc3.entry.js +0 -6
- package/dist/arcgis-coding-components/p-86849297.entry.js +0 -6
- package/dist/arcgis-coding-components/p-d4a498a5.js +0 -6
- package/dist/components/arcgis-arcade-variables.js +0 -11
- package/dist/components/language-defaults-base.js +0 -1352
- package/dist/components/sql-expression-fields.js +0 -109
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.ar.json → editor-variables/t9n/editor-variables.t9n.ar.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.bg.json → editor-variables/t9n/editor-variables.t9n.bg.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.bs.json → editor-variables/t9n/editor-variables.t9n.bs.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.ca.json → editor-variables/t9n/editor-variables.t9n.ca.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.cs.json → editor-variables/t9n/editor-variables.t9n.cs.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.da.json → editor-variables/t9n/editor-variables.t9n.da.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.de.json → editor-variables/t9n/editor-variables.t9n.de.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.el.json → editor-variables/t9n/editor-variables.t9n.el.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.en.json → editor-variables/t9n/editor-variables.t9n.en.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.es.json → editor-variables/t9n/editor-variables.t9n.es.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.et.json → editor-variables/t9n/editor-variables.t9n.et.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.fi.json → editor-variables/t9n/editor-variables.t9n.fi.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.fr.json → editor-variables/t9n/editor-variables.t9n.fr.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.he.json → editor-variables/t9n/editor-variables.t9n.he.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.hr.json → editor-variables/t9n/editor-variables.t9n.hr.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.hu.json → editor-variables/t9n/editor-variables.t9n.hu.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.id.json → editor-variables/t9n/editor-variables.t9n.id.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.it.json → editor-variables/t9n/editor-variables.t9n.it.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.ja.json → editor-variables/t9n/editor-variables.t9n.ja.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.ko.json → editor-variables/t9n/editor-variables.t9n.ko.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.lt.json → editor-variables/t9n/editor-variables.t9n.lt.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.lv.json → editor-variables/t9n/editor-variables.t9n.lv.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.nb.json → editor-variables/t9n/editor-variables.t9n.nb.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.nl.json → editor-variables/t9n/editor-variables.t9n.nl.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.pl.json → editor-variables/t9n/editor-variables.t9n.pl.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.pt-BR.json → editor-variables/t9n/editor-variables.t9n.pt-BR.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.pt-PT.json → editor-variables/t9n/editor-variables.t9n.pt-PT.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.ro.json → editor-variables/t9n/editor-variables.t9n.ro.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.ru.json → editor-variables/t9n/editor-variables.t9n.ru.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.sk.json → editor-variables/t9n/editor-variables.t9n.sk.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.sl.json → editor-variables/t9n/editor-variables.t9n.sl.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.sr.json → editor-variables/t9n/editor-variables.t9n.sr.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.sv.json → editor-variables/t9n/editor-variables.t9n.sv.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.th.json → editor-variables/t9n/editor-variables.t9n.th.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.tr.json → editor-variables/t9n/editor-variables.t9n.tr.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.uk.json → editor-variables/t9n/editor-variables.t9n.uk.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.vi.json → editor-variables/t9n/editor-variables.t9n.vi.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.zh-CN.json → editor-variables/t9n/editor-variables.t9n.zh-CN.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.zh-HK.json → editor-variables/t9n/editor-variables.t9n.zh-HK.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-variables/t9n/arcade-variables.t9n.zh-TW.json → editor-variables/t9n/editor-variables.t9n.zh-TW.json} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.78
|
|
5
5
|
*/
|
|
6
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-
|
|
7
|
-
import { u as useControllerManager, a as useT9n } from './useT9n-
|
|
8
|
-
import { n as generateGuid,
|
|
6
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-515ec576.js';
|
|
7
|
+
import { u as useControllerManager, a as useT9n } from './useT9n-1988d923.js';
|
|
8
|
+
import { n as generateGuid, y as sqlExprDefaults } from './sql-expr-defaults-eff5fcd0.js';
|
|
9
9
|
|
|
10
10
|
const sqlExpressionEditorCss = "arcgis-sql-expression-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:1px solid var(--calcite-color-border-3);box-sizing:border-box;background-color:var(--calcite-color-foreground-1);height:100%}arcgis-sql-expression-editor .flex-adjustable{flex:1 1 auto;overflow:hidden}arcgis-sql-expression-editor .flex-panel{flex:1 0 auto}arcgis-sql-expression-editor .position-relative{position:relative}arcgis-sql-expression-editor .flex-row{display:flex;flex-direction:row;overflow:hidden}arcgis-sql-expression-editor .flex-column{display:flex;flex-direction:column;overflow:hidden}arcgis-sql-expression-editor .border-inline-start{border-inline-start:1px solid var(--calcite-color-border-3);box-sizing:border-box}arcgis-sql-expression-editor .border-inline-end{border-inline-end:1px solid var(--calcite-color-border-3);box-sizing:border-box}arcgis-sql-expression-editor .side-action-bar{max-width:25%}arcgis-sql-expression-editor .side-panel{max-width:45%;width:600px}arcgis-sql-expression-editor .side-panel calcite-flow{height:100%}";
|
|
11
11
|
const ArcgisSqlExpressionEditorStyle0 = sqlExpressionEditorCss;
|
|
@@ -19,6 +19,9 @@ const SqlExpressionEditor = class {
|
|
|
19
19
|
// #region Private properties
|
|
20
20
|
this._modelId = generateGuid();
|
|
21
21
|
this._insertAsSnippet = (e) => void this._codeEditorElt?.insertSnippet(e.detail).catch(console.error);
|
|
22
|
+
this._insertAsText = (e) =>
|
|
23
|
+
// sql expressions use single quotes for strings
|
|
24
|
+
void this._codeEditorElt?.insertText(e.detail.replaceAll('"', "'")).catch(console.error);
|
|
22
25
|
this._updateApiLibrary = async () => {
|
|
23
26
|
this._apiLibrary = await sqlExprDefaults.getApiLibraryForModel(this._modelId);
|
|
24
27
|
};
|
|
@@ -49,12 +52,12 @@ const SqlExpressionEditor = class {
|
|
|
49
52
|
this._preparing = true;
|
|
50
53
|
try {
|
|
51
54
|
await sqlExprDefaults.setProfileForModel(this._modelId, this.profile);
|
|
55
|
+
this._editorProfile = sqlExprDefaults.getEditorProfileForModel(this._modelId);
|
|
52
56
|
}
|
|
53
57
|
catch {
|
|
54
58
|
this._editorProfile = undefined;
|
|
55
59
|
}
|
|
56
60
|
finally {
|
|
57
|
-
// this._editorProfilePromise = Promise.resolve(this._editorProfile);
|
|
58
61
|
this._preparing = false;
|
|
59
62
|
}
|
|
60
63
|
}
|
|
@@ -65,6 +68,21 @@ const SqlExpressionEditor = class {
|
|
|
65
68
|
const action = e.target;
|
|
66
69
|
this._setActiveAction(action.dataset.panelName);
|
|
67
70
|
}
|
|
71
|
+
/***
|
|
72
|
+
* Gets the featureSetVariable from the editor profile- used to populate the variables panel.
|
|
73
|
+
* In current form, there should only be one variable in the profile.
|
|
74
|
+
*/
|
|
75
|
+
_getFeatureSetVariable() {
|
|
76
|
+
let featureSetVar;
|
|
77
|
+
const profile = sqlExprDefaults.getEditorProfileForModel(this._modelId);
|
|
78
|
+
if (profile?.variables?.length && profile?.variables?.[0]?.type !== "featureSet") {
|
|
79
|
+
console.error("encountered unexpected editor profile");
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
featureSetVar = profile?.variables?.[0];
|
|
83
|
+
}
|
|
84
|
+
return featureSetVar;
|
|
85
|
+
}
|
|
68
86
|
// #endregion
|
|
69
87
|
// #region Component lifecycle events
|
|
70
88
|
async componentWillLoad() {
|
|
@@ -79,9 +97,10 @@ const SqlExpressionEditor = class {
|
|
|
79
97
|
}
|
|
80
98
|
// #endregion
|
|
81
99
|
render() {
|
|
82
|
-
|
|
100
|
+
const variable = this._getFeatureSetVariable();
|
|
101
|
+
return (h(Host, { key: '68c73513b93f3509d8113eaa32a08f2fbf647427' }, h("div", { key: '5ca783649ff7d73e170bcc7e066545f876303d78', class: "flex-row flex-adjustable" }, h("div", { key: 'a7d4a39802a0ae38089c0491ae6dbdb462e476c5', class: "flex-column flex-adjustable" }, h("arcgis-code-editor", { key: '8dcae6b4cd56a035beadd32a8d7140bc123424fc', language: "arcgis-sql-expression", modelId: this._modelId, ref: (e) => (this._codeEditorElt = e), value: this.script ?? "", onArcgisValueChange: this._onCodeEditorValueChange })), this._activeAction === "fields" && (h("arcgis-editor-variables", { key: '5b1e2d0afd9c0c63b2135c00a380ae3708fa18f6', variable: variable, class: "side-panel flex-panel border-inline-start", loading: this._preparing, modelId: this._modelId, onArcgisItemSelected: this._insertAsText, onArcgisClose: () => this._setActiveAction(undefined), "data-panel-name": "none" })), this._activeAction === "functions" && (h("arcgis-language-api-panel", { key: '423bbdbe0e8b54c2c630a1f741f3894be22741ab', class: "side-panel flex-panel border-inline-start", onArcgisItemSelected: this._insertAsSnippet, onArcgisClose: () => this._setActiveAction(undefined), loading: this._preparing, apiLibrary: this._apiLibrary, "data-panel-name": "none" })), h("calcite-action-bar", { key: '300f670c25b9eca51fc34c94726d7a43d89dd68d', class: "side-action-bar border-inline-start", expanded: false, position: "end" }, h("calcite-action", { key: '779c32f84f04208feb7675b4b0f23a070b780492', id: "fields-action", text: this.messages.fields ?? "Fields", icon: "profile-variables", active: this._activeAction === "fields", "data-panel-name": "fields",
|
|
83
102
|
// need to use an arrow function to automatically bind 'this'
|
|
84
|
-
onClick: (e) => this._handleActionClick(e) }), h("calcite-action", { key: '
|
|
103
|
+
onClick: (e) => this._handleActionClick(e) }), h("calcite-action", { key: '5e115476df037fb8eace7c02d9a025b800a80ab7', id: "functions-action", text: this.messages.functions ?? "Functions", icon: "function", active: this._activeAction === "functions", "data-panel-name": "functions", onClick: (e) => this._handleActionClick(e) })))));
|
|
85
104
|
}
|
|
86
105
|
static get assetsDirs() { return ["assets"]; }
|
|
87
106
|
get el() { return getElement(this); }
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.78
|
|
5
5
|
*/
|
|
6
|
-
import { r as registerInstance, c as createEvent, h, a as getElement } from './index-
|
|
7
|
-
import { u as useControllerManager, a as useT9n } from './useT9n-
|
|
8
|
-
import {
|
|
6
|
+
import { r as registerInstance, c as createEvent, h, a as getElement } from './index-515ec576.js';
|
|
7
|
+
import { u as useControllerManager, a as useT9n } from './useT9n-1988d923.js';
|
|
8
|
+
import { y as sqlExprDefaults } from './sql-expr-defaults-eff5fcd0.js';
|
|
9
9
|
|
|
10
10
|
const sqlExpressionFieldsCss = ":host calcite-flow{height:100%}:host calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}";
|
|
11
11
|
const ArcgisSqlExpressionFieldsStyle0 = sqlExpressionFieldsCss;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.78
|
|
5
5
|
*/
|
|
6
6
|
/*!-----------------------------------------------------------------------------
|
|
7
7
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.78
|
|
5
5
|
*/
|
|
6
|
-
import { O as monaco_editor_core_star } from './sql-expr-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
import { O as monaco_editor_core_star } from './sql-expr-defaults-eff5fcd0.js';
|
|
7
|
+
import './index-515ec576.js';
|
|
8
8
|
|
|
9
9
|
/*!-----------------------------------------------------------------------------
|
|
10
10
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.78
|
|
5
5
|
*/
|
|
6
|
-
import { O as monaco_editor_core_star } from './sql-expr-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
import { O as monaco_editor_core_star } from './sql-expr-defaults-eff5fcd0.js';
|
|
7
|
+
import './index-515ec576.js';
|
|
8
8
|
|
|
9
9
|
/*!-----------------------------------------------------------------------------
|
|
10
10
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.78
|
|
5
5
|
*/
|
|
6
|
-
import { O as monaco_editor_core_star } from './sql-expr-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
import { O as monaco_editor_core_star } from './sql-expr-defaults-eff5fcd0.js';
|
|
7
|
+
import './index-515ec576.js';
|
|
8
8
|
|
|
9
9
|
/*!-----------------------------------------------------------------------------
|
|
10
10
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.78
|
|
5
5
|
*/
|
|
6
6
|
const NAMESPACE = 'arcgis-coding-components';
|
|
7
7
|
const BUILD = /* arcgis-coding-components */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: true, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: true, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: true, hydratedClass: false, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
|
package/dist/esm/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.78
|
|
5
5
|
*/
|
|
6
|
-
export { a as arcade } from './arcade-defaults-
|
|
7
|
-
export { s as sqlExpression } from './sql-expr-defaults-
|
|
8
|
-
import './index-
|
|
6
|
+
export { a as arcade } from './arcade-defaults-72d79638.js';
|
|
7
|
+
export { s as sqlExpression } from './sql-expr-defaults-eff5fcd0.js';
|
|
8
|
+
import './index-515ec576.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.78
|
|
5
5
|
*/
|
|
6
|
-
import { conf as conf$1, language as language$1 } from './typescript-
|
|
7
|
-
import './sql-expr-defaults-
|
|
8
|
-
import './index-
|
|
6
|
+
import { conf as conf$1, language as language$1 } from './typescript-e6399cf1.js';
|
|
7
|
+
import './sql-expr-defaults-eff5fcd0.js';
|
|
8
|
+
import './index-515ec576.js';
|
|
9
9
|
|
|
10
10
|
/*!-----------------------------------------------------------------------------
|
|
11
11
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.78
|
|
5
5
|
*/
|
|
6
|
-
import { O as monaco_editor_core_star } from './sql-expr-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
import { O as monaco_editor_core_star } from './sql-expr-defaults-eff5fcd0.js';
|
|
7
|
+
import './index-515ec576.js';
|
|
8
8
|
|
|
9
9
|
/*!-----------------------------------------------------------------------------
|
|
10
10
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.78
|
|
5
5
|
*/
|
|
6
|
-
import { b as bootstrapLazy } from './index-
|
|
7
|
-
export { s as setNonce } from './index-
|
|
8
|
-
import { g as globalScripts } from './app-globals-
|
|
6
|
+
import { b as bootstrapLazy } from './index-515ec576.js';
|
|
7
|
+
export { s as setNonce } from './index-515ec576.js';
|
|
8
|
+
import { g as globalScripts } from './app-globals-114942c8.js';
|
|
9
9
|
|
|
10
10
|
const defineCustomElements = async (win, options) => {
|
|
11
11
|
if (typeof window === 'undefined') return undefined;
|
|
12
12
|
await globalScripts();
|
|
13
|
-
return bootstrapLazy([["arcgis-
|
|
13
|
+
return bootstrapLazy([["arcgis-arcade-editor_6",[[0,"arcgis-arcade-editor",{"profile":[16],"script":[1025],"testData":[16],"suggestions":[16],"snippets":[16],"hideDocumentationActions":[4,"hide-documentation-actions"],"hideSideBar":[4,"hide-side-bar"],"sideActionBarExpanded":[1540,"side-action-bar-expanded"],"openedSidePanel":[1537,"opened-side-panel"],"editorOptions":[16],"editorInstance":[16],"_preparingArcade":[32],"_editorProfile":[32],"_apiLibrary":[32],"_showExecutionPanel":[32],"_resultPanel":[32],"_executingScript":[32],"_consoleLogs":[32],"_executionResult":[32],"messages":[32],"getScript":[64],"setFocus":[64],"getEditorInstance":[64],"getTestResult":[64],"updateThemeColors":[64]},null,{"messages":["_messagesChanged"],"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}],[1,"arcgis-arcade-results",{"loading":[4],"openedResultPanel":[1537,"opened-result-panel"],"result":[16],"consoleLogs":[16]}],[1,"arcgis-arcade-suggestions",{"suggestions":[16],"_selectedSuggestion":[32],"_filterValue":[32],"_colorizeStyle":[32]},null,{"suggestions":["suggestionsPropChanged"]}],[0,"arcgis-code-editor",{"value":[1],"language":[1],"modelId":[1,"model-id"],"editorOptions":[16],"editorInstance":[16],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]},null,{"language":["languagePropChange"],"modelId":["modelIdPropChange"],"editorOptions":["editorOptionsPropChange"]}],[1,"arcgis-editor-variables",{"loading":[4],"modelId":[1,"model-id"],"variable":[16],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32],"_mode":[32]},null,{"modelId":["modelIdPropChanged"],"variable":["_variableChanged"]}],[1,"arcgis-language-api-panel",{"hideDocumentationActions":[4,"hide-documentation-actions"],"loading":[4],"apiLibrary":[16],"_selectedApiItem":[32],"_filterValue":[32],"_colorizeStyle":[32]},null,{"apiLibrary":["_apiLibraryChanged"]}]]],["arcgis-sql-expression-editor",[[0,"arcgis-sql-expression-editor",{"profile":[16],"script":[1025],"_preparing":[32],"_editorProfile":[32],"_activeAction":[32],"_apiLibrary":[32],"messages":[32]},null,{"messages":["_messagesChanged"],"profile":["_profileChanged"]}]]],["arcgis-sql-expression-fields",[[1,"arcgis-sql-expression-fields",{"loading":[4],"modelId":[1,"model-id"],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}]]]], options);
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
export { defineCustomElements };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.78
|
|
5
5
|
*/
|
|
6
|
-
import { g as getAssetPath } from './index-
|
|
6
|
+
import { g as getAssetPath } from './index-515ec576.js';
|
|
7
7
|
|
|
8
8
|
// src/index.ts
|
|
9
9
|
var isAMD = typeof window !== "undefined" && "$arcgis" in window && typeof window.$arcgis === "object" && "import" in window.$arcgis && !("forceESM" in window.$arcgis);
|
|
@@ -3310,9 +3310,10 @@ class CollectionBasedVariable extends VariableBase {
|
|
|
3310
3310
|
}
|
|
3311
3311
|
}
|
|
3312
3312
|
class GroupOfVariables extends ProfileItemBase {
|
|
3313
|
-
constructor(profile, label, variables = []) {
|
|
3313
|
+
constructor(profile, label, variables = [], isHeader = false) {
|
|
3314
3314
|
super(profile, label);
|
|
3315
3315
|
this.variables = variables;
|
|
3316
|
+
this.isHeader = isHeader;
|
|
3316
3317
|
this.type = "group";
|
|
3317
3318
|
this.isCollection = true;
|
|
3318
3319
|
}
|
|
@@ -3806,7 +3807,7 @@ class FeatureSetVariable extends SourceBasedVariable {
|
|
|
3806
3807
|
throw new Error("Invalid definition");
|
|
3807
3808
|
}
|
|
3808
3809
|
// The title group and snippet
|
|
3809
|
-
this.variables.push(new GroupOfVariables(this._profile, this.title, this.featureSetSnippets));
|
|
3810
|
+
this.variables.push(new GroupOfVariables(this._profile, this.title, this.featureSetSnippets, true));
|
|
3810
3811
|
// Add the fields
|
|
3811
3812
|
const fieldsGroup = new GroupOfVariables(this._profile, { code: "fields" });
|
|
3812
3813
|
this.variables.push(fieldsGroup);
|
|
@@ -124669,7 +124670,7 @@ registerLanguage({
|
|
|
124669
124670
|
mimetypes: ["text/css"],
|
|
124670
124671
|
loader: () => {
|
|
124671
124672
|
{
|
|
124672
|
-
return import('./css-
|
|
124673
|
+
return import('./css-e669c8cc.js');
|
|
124673
124674
|
}
|
|
124674
124675
|
}
|
|
124675
124676
|
});
|
|
@@ -124687,7 +124688,7 @@ registerLanguage({
|
|
|
124687
124688
|
mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
|
|
124688
124689
|
loader: () => {
|
|
124689
124690
|
{
|
|
124690
|
-
return import('./html-
|
|
124691
|
+
return import('./html-fa654ea8.js');
|
|
124691
124692
|
}
|
|
124692
124693
|
}
|
|
124693
124694
|
});
|
|
@@ -124707,7 +124708,7 @@ registerLanguage({
|
|
|
124707
124708
|
mimetypes: ["text/javascript"],
|
|
124708
124709
|
loader: () => {
|
|
124709
124710
|
{
|
|
124710
|
-
return import('./javascript-
|
|
124711
|
+
return import('./javascript-e43d9aad.js');
|
|
124711
124712
|
}
|
|
124712
124713
|
}
|
|
124713
124714
|
});
|
|
@@ -124725,7 +124726,7 @@ registerLanguage({
|
|
|
124725
124726
|
mimetypes: ["text/typescript"],
|
|
124726
124727
|
loader: () => {
|
|
124727
124728
|
{
|
|
124728
|
-
return import('./typescript-
|
|
124729
|
+
return import('./typescript-e6399cf1.js');
|
|
124729
124730
|
}
|
|
124730
124731
|
}
|
|
124731
124732
|
});
|
|
@@ -124846,7 +124847,7 @@ var lessDefaults = new LanguageServiceDefaultsImpl$3("less", optionsDefault$1, m
|
|
|
124846
124847
|
monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
|
|
124847
124848
|
function getMode$3() {
|
|
124848
124849
|
{
|
|
124849
|
-
return import('./cssMode-
|
|
124850
|
+
return import('./cssMode-a8b477e3.js');
|
|
124850
124851
|
}
|
|
124851
124852
|
}
|
|
124852
124853
|
monaco_editor_core_exports$3.languages.onLanguage("less", () => {
|
|
@@ -124971,7 +124972,7 @@ monaco_editor_core_exports$2.languages.html = {
|
|
|
124971
124972
|
};
|
|
124972
124973
|
function getMode$2() {
|
|
124973
124974
|
{
|
|
124974
|
-
return import('./htmlMode-
|
|
124975
|
+
return import('./htmlMode-252b58ec.js');
|
|
124975
124976
|
}
|
|
124976
124977
|
}
|
|
124977
124978
|
function registerHTMLLanguageService(languageId, options = optionsDefault, modeConfiguration = getConfigurationDefault(languageId)) {
|
|
@@ -125073,7 +125074,7 @@ var jsonDefaults = new LanguageServiceDefaultsImpl$1("json", diagnosticDefault,
|
|
|
125073
125074
|
monaco_editor_core_exports$1.languages.json = { jsonDefaults };
|
|
125074
125075
|
function getMode$1() {
|
|
125075
125076
|
{
|
|
125076
|
-
return import('./jsonMode-
|
|
125077
|
+
return import('./jsonMode-788ef636.js');
|
|
125077
125078
|
}
|
|
125078
125079
|
}
|
|
125079
125080
|
monaco_editor_core_exports$1.languages.register({
|
|
@@ -125342,7 +125343,7 @@ monaco_editor_core_exports.languages.typescript = {
|
|
|
125342
125343
|
};
|
|
125343
125344
|
function getMode() {
|
|
125344
125345
|
{
|
|
125345
|
-
return import('./tsMode-
|
|
125346
|
+
return import('./tsMode-b6afbaf3.js');
|
|
125346
125347
|
}
|
|
125347
125348
|
}
|
|
125348
125349
|
monaco_editor_core_exports.languages.onLanguage("typescript", () => {
|
|
@@ -171067,4 +171068,4 @@ const sqlExpression = {
|
|
|
171067
171068
|
getApiLibraryForModel: sqlExprDefaults.getApiLibraryForModel.bind(sqlExprDefaults),
|
|
171068
171069
|
};
|
|
171069
171070
|
|
|
171070
|
-
export {
|
|
171071
|
+
export { KeyMod as A, createFilterExpression as B, addLTRMark as C, Deferred as D, EditorProfile as E, isNotUndefined as F, safeAsyncCall as G, devToolsAwareTimeout as H, IStandaloneThemeService as I, safeCall as J, KeyCode as K, LanguageDefaultsBase as L, startLocaleObserver as M, getElementLocales as N, monaco_editor_core_star as O, typescriptDefaults as P, MarkerSeverity as Q, Range as R, StandaloneServices as S, debounce as T, Uri as U, Emitter as V, isFeatureSetCollectionDefinition as a, isFeatureSetDefinition as b, isFeatureDefinition as c, supportedLocales as d, fetchT9nStringsBundle as e, fieldsToProfileValues as f, importArcade as g, editor as h, isPredefinedProfile as i, isURL as j, hasSameOrigin as k, importRequest as l, main as m, generateGuid as n, getElementTheme as o, setValuesInString as p, quoteString as q, supportedFields as r, sqlExpression as s, generateTokensCSSForColorMap as t, commonjsGlobal as u, setFocusOnElement as v, filterCollection as w, languages as x, sqlExprDefaults as y, observeAncestorsMutation as z };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.78
|
|
5
5
|
*/
|
|
6
|
-
import { D as Deferred, h as editor, T as debounce,
|
|
7
|
-
import './index-
|
|
6
|
+
import { D as Deferred, h as editor, T as debounce, x as languages, y as sqlExprDefaults, V as Emitter } from './sql-expr-defaults-eff5fcd0.js';
|
|
7
|
+
import './index-515ec576.js';
|
|
8
8
|
|
|
9
9
|
// hold onto a promise that resolves when the worker is ready
|
|
10
10
|
let deferredWorker = new Deferred();
|
|
@@ -136,7 +136,6 @@ const sqlExprKeywords = [
|
|
|
136
136
|
"REAL",
|
|
137
137
|
"SECOND",
|
|
138
138
|
"SMALLINT",
|
|
139
|
-
"SUBSTRING",
|
|
140
139
|
"THEN",
|
|
141
140
|
"TIME",
|
|
142
141
|
"TIMESTAMP",
|
|
@@ -156,7 +155,6 @@ const sqlExprOperators = [
|
|
|
156
155
|
// Logical
|
|
157
156
|
"AND",
|
|
158
157
|
"BETWEEN",
|
|
159
|
-
"IN",
|
|
160
158
|
"LIKE",
|
|
161
159
|
"NOT",
|
|
162
160
|
"OR",
|
|
@@ -182,17 +180,21 @@ const sqlExprFunctions = [
|
|
|
182
180
|
"FLOOR",
|
|
183
181
|
"LOG",
|
|
184
182
|
"LOG10",
|
|
183
|
+
"MOD",
|
|
184
|
+
"NULLIF",
|
|
185
185
|
"POWER",
|
|
186
186
|
"ROUND",
|
|
187
187
|
"SIGN",
|
|
188
188
|
"SIN",
|
|
189
189
|
"TAN",
|
|
190
|
+
"TRUNCATE",
|
|
190
191
|
// String
|
|
191
192
|
"CHAR_LENGTH",
|
|
192
193
|
"COALESCE",
|
|
193
194
|
"CONCAT",
|
|
194
195
|
"LOWER",
|
|
195
196
|
"POSITION",
|
|
197
|
+
"SUBSTRING",
|
|
196
198
|
"TRIM",
|
|
197
199
|
"UPPER",
|
|
198
200
|
];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.78
|
|
5
5
|
*/
|
|
6
|
-
import { P as typescriptDefaults, O as monaco_editor_core_star } from './sql-expr-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
import { P as typescriptDefaults, O as monaco_editor_core_star } from './sql-expr-defaults-eff5fcd0.js';
|
|
7
|
+
import './index-515ec576.js';
|
|
8
8
|
|
|
9
9
|
/*!-----------------------------------------------------------------------------
|
|
10
10
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.78
|
|
5
5
|
*/
|
|
6
|
-
import { O as monaco_editor_core_star } from './sql-expr-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
import { O as monaco_editor_core_star } from './sql-expr-defaults-eff5fcd0.js';
|
|
7
|
+
import './index-515ec576.js';
|
|
8
8
|
|
|
9
9
|
/*!-----------------------------------------------------------------------------
|
|
10
10
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.78
|
|
5
5
|
*/
|
|
6
|
-
import { F as isNotUndefined, D as Deferred, G as safeAsyncCall, H as devToolsAwareTimeout, J as safeCall, M as startLocaleObserver, N as getElementLocales } from './sql-expr-defaults-
|
|
7
|
-
import { g as getAssetPath } from './index-
|
|
6
|
+
import { F as isNotUndefined, D as Deferred, G as safeAsyncCall, H as devToolsAwareTimeout, J as safeCall, M as startLocaleObserver, N as getElementLocales } from './sql-expr-defaults-eff5fcd0.js';
|
|
7
|
+
import { g as getAssetPath } from './index-515ec576.js';
|
|
8
8
|
|
|
9
9
|
// src/framework.ts
|
|
10
10
|
function retrieveComponentMembers(component, isLit) {
|
package/dist/loader/cdn.js
CHANGED
package/dist/loader/index.cjs.js
CHANGED
package/dist/loader/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.78
|
|
5
5
|
*/
|
|
6
6
|
(function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
|
|
7
7
|
export * from '../esm/loader.js';
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import type { VNode, EventEmitter, ComponentInterface } from "../../stencil-public-runtime";
|
|
2
|
+
import type { EditorProfile, FeatureSetVariable } from "../../utils/profile/editor-profile";
|
|
2
3
|
import type { ControllerManager } from "@arcgis/components-controllers";
|
|
4
|
+
/**
|
|
5
|
+
* The mode of the component. Either "featureSet" or "profile"
|
|
6
|
+
*/
|
|
7
|
+
type Mode = "featureSet" | "profile";
|
|
3
8
|
/** @internal */
|
|
4
|
-
export declare class
|
|
9
|
+
export declare class ArcgisEditorVariables implements ComponentInterface {
|
|
5
10
|
manager: ControllerManager<this>;
|
|
6
11
|
private _flowObserver?;
|
|
7
12
|
messages: {
|
|
@@ -32,10 +37,15 @@ export declare class ArcgisArcadeVariables implements ComponentInterface {
|
|
|
32
37
|
noitems: string;
|
|
33
38
|
noprofilevariablesmessage: string;
|
|
34
39
|
}>;
|
|
35
|
-
el:
|
|
40
|
+
el: HTMLArcgisEditorVariablesElement;
|
|
36
41
|
_mutationCounter: number;
|
|
37
42
|
_flowItemRenderers: (() => VNode)[];
|
|
38
43
|
_filterValue: string;
|
|
44
|
+
/**
|
|
45
|
+
* The mode determined by the type of the variable passed in the variable property.
|
|
46
|
+
* see {@link _variableChanged}
|
|
47
|
+
*/
|
|
48
|
+
_mode: Mode;
|
|
39
49
|
/**
|
|
40
50
|
* Loading state
|
|
41
51
|
*/
|
|
@@ -45,6 +55,14 @@ export declare class ArcgisArcadeVariables implements ComponentInterface {
|
|
|
45
55
|
*/
|
|
46
56
|
modelId: string | undefined;
|
|
47
57
|
modelIdPropChanged(): void;
|
|
58
|
+
/**
|
|
59
|
+
* The variable to display.
|
|
60
|
+
* Currently supports EditorProfile and FeatureSetVariable
|
|
61
|
+
* In the case of a FeatureSetVariable, the UX will show that variable exclusively,
|
|
62
|
+
* excluding the initial profile variables selection panel.
|
|
63
|
+
*/
|
|
64
|
+
variable: EditorProfile | FeatureSetVariable | undefined;
|
|
65
|
+
_variableChanged(): void;
|
|
48
66
|
/**
|
|
49
67
|
* Raised when close action has been activated
|
|
50
68
|
*/
|
|
@@ -54,8 +72,10 @@ export declare class ArcgisArcadeVariables implements ComponentInterface {
|
|
|
54
72
|
*/
|
|
55
73
|
arcgisItemSelected: EventEmitter<string>;
|
|
56
74
|
disconnectedCallback(): void;
|
|
75
|
+
componentWillLoad(): Promise<void> | void;
|
|
57
76
|
private addPanelRenderer;
|
|
58
77
|
private removeLastPanelRenderer;
|
|
78
|
+
private _isMode;
|
|
59
79
|
private flowFocusHandler;
|
|
60
80
|
private _updateFilterValue;
|
|
61
81
|
private _beforeBack;
|
|
@@ -63,8 +83,11 @@ export declare class ArcgisArcadeVariables implements ComponentInterface {
|
|
|
63
83
|
private _backToTop;
|
|
64
84
|
private _emitItemSelected;
|
|
65
85
|
private _showCollectionPanel;
|
|
86
|
+
private _getHeadingForCollection;
|
|
87
|
+
private _getDescriptionForCollection;
|
|
66
88
|
private collectionBasedVariableRenderer;
|
|
67
89
|
private renderEditorVariables;
|
|
68
90
|
private renderEditorVariable;
|
|
69
91
|
render(): VNode;
|
|
70
92
|
}
|
|
93
|
+
export {};
|
|
@@ -39,8 +39,14 @@ export declare class SqlExpressionEditor implements ComponentInterface {
|
|
|
39
39
|
private _setActiveAction;
|
|
40
40
|
private _handleActionClick;
|
|
41
41
|
private _insertAsSnippet;
|
|
42
|
+
private _insertAsText;
|
|
42
43
|
private _updateApiLibrary;
|
|
43
44
|
private _onCodeEditorValueChange;
|
|
45
|
+
/***
|
|
46
|
+
* Gets the featureSetVariable from the editor profile- used to populate the variables panel.
|
|
47
|
+
* In current form, there should only be one variable in the profile.
|
|
48
|
+
*/
|
|
49
|
+
private _getFeatureSetVariable;
|
|
44
50
|
componentWillLoad(): Promise<void>;
|
|
45
51
|
componentDidLoad(): Promise<void>;
|
|
46
52
|
/**
|