@arcgis/coding-components 4.30.0 → 4.30.1
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/index.esm.js +2 -2
- package/dist/arcgis-coding-components/{p-69ef969a.js → p-0232b2fb.js} +10 -10
- package/dist/arcgis-coding-components/{p-ae0db715.js → p-27ea7da2.js} +2 -2
- package/dist/arcgis-coding-components/{p-f602fc86.js → p-2cfc4d18.js} +1 -1
- package/dist/arcgis-coding-components/{p-9770fb37.js → p-46dc99da.js} +2 -2
- package/dist/arcgis-coding-components/{p-98cf909d.js → p-4cb610e2.js} +2 -2
- package/dist/arcgis-coding-components/{p-ca3f5530.js → p-5c3e678f.js} +2 -2
- package/dist/arcgis-coding-components/{p-ed5c78ce.js → p-9922089e.js} +1 -1
- package/dist/arcgis-coding-components/{p-24fb1d11.js → p-bc2c953c.js} +2 -2
- package/dist/arcgis-coding-components/p-c25ef396.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-b7981062.js → p-cd85885f.js} +2 -2
- package/dist/arcgis-coding-components/{p-e9510c84.js → p-d9d0b022.js} +2 -2
- package/dist/arcgis-coding-components/{p-f40fe9c5.js → p-db7dbb19.js} +1 -1
- package/dist/arcgis-coding-components/{p-e37595ba.js → p-fab76ffc.js} +2 -2
- package/dist/cjs/{app-globals-18ba6880.js → app-globals-c2e3e121.js} +1 -1
- package/dist/cjs/{arcade-defaults-d0931224.js → arcade-defaults-17049bb9.js} +10 -10
- package/dist/cjs/{arcade-mode-8424eafa.js → arcade-mode-fe361808.js} +3 -3
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +16 -15
- package/dist/cjs/arcgis-coding-components.cjs.js +4 -4
- package/dist/cjs/{css-d8a65bb9.js → css-ca3b1176.js} +1 -1
- package/dist/cjs/{cssMode-07dbb853.js → cssMode-fc6f8598.js} +3 -3
- package/dist/cjs/{html-bb10cced.js → html-d2744099.js} +3 -3
- package/dist/cjs/{htmlMode-7df0a09d.js → htmlMode-79660b84.js} +3 -3
- package/dist/cjs/{index-15bcce7e.js → index-8e9b325f.js} +1 -1
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{javascript-f0dbed11.js → javascript-0a101984.js} +4 -4
- package/dist/cjs/{jsonMode-9e54e9b7.js → jsonMode-a4ba65e4.js} +3 -3
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{tsMode-ca28bc5f.js → tsMode-70689995.js} +3 -3
- package/dist/cjs/{typescript-39540ed7.js → typescript-dd03f9a8.js} +3 -3
- package/dist/components/arcade-api.js +1 -1
- package/dist/components/arcade-contribution.js +1 -1
- package/dist/components/arcade-defaults.js +1 -1
- 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/arcade-variables.js +1 -1
- package/dist/components/arcgis-arcade-api.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +6 -5
- package/dist/components/arcgis-arcade-results.js +1 -1
- package/dist/components/arcgis-arcade-suggestions.js +1 -1
- package/dist/components/arcgis-arcade-variables.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/chunk-2CDDVOQU.js +1 -1
- package/dist/components/code-editor.js +9 -9
- package/dist/components/fields.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +1 -1
- package/dist/components/markdown.js +1 -1
- package/dist/components/useT9n.js +1 -1
- package/dist/components/utilities.js +1 -1
- package/dist/esm/{app-globals-2a0e9afb.js → app-globals-2bae24b0.js} +1 -1
- package/dist/esm/{arcade-defaults-811bdd4d.js → arcade-defaults-fbcce3a0.js} +10 -10
- package/dist/esm/{arcade-mode-e9728a63.js → arcade-mode-3c56bd03.js} +3 -3
- package/dist/esm/arcgis-arcade-api_6.entry.js +16 -15
- package/dist/esm/arcgis-coding-components.js +5 -5
- package/dist/esm/{css-61c794c2.js → css-5142d172.js} +1 -1
- package/dist/esm/{cssMode-6e0ccd51.js → cssMode-977f92d4.js} +3 -3
- package/dist/esm/{html-44ad432e.js → html-1090fa08.js} +3 -3
- package/dist/esm/{htmlMode-fd336434.js → htmlMode-73a1ec87.js} +3 -3
- package/dist/esm/{index-0d124a57.js → index-8c96bbd6.js} +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/{javascript-ac057954.js → javascript-ce61083f.js} +4 -4
- package/dist/esm/{jsonMode-ea8fa529.js → jsonMode-41a7cf3a.js} +3 -3
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{tsMode-af9c3001.js → tsMode-91fccac8.js} +3 -3
- package/dist/esm/{typescript-baec45d6.js → typescript-8ccfe1ce.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-editor/arcade-editor.d.ts +12 -2
- package/dist/types/components/code-editor/code-editor.d.ts +14 -4
- package/dist/types/components.d.ts +13 -13
- package/package.json +11 -11
- package/dist/arcgis-coding-components/p-bf047552.entry.js +0 -6
|
@@ -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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.
|
|
4
|
+
* v4.30.1
|
|
5
5
|
*/
|
|
6
6
|
import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Fragment, Host } from '@stencil/core/internal/client';
|
|
7
7
|
import { KeyCode } from 'monaco-editor';
|
|
@@ -263,12 +263,12 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
|
|
|
263
263
|
//#endregion
|
|
264
264
|
//#region Render Main Panel
|
|
265
265
|
renderMainPanel() {
|
|
266
|
-
return (h("arcgis-code-editor", { class: "flex-adjustable", language: arcadeDefaults.languageId, value: this.script ?? "", modelId: this._modelId,
|
|
266
|
+
return (h("arcgis-code-editor", { class: "flex-adjustable", editorOptions: this.editorOptions, language: arcadeDefaults.languageId, value: this.script ?? "", modelId: this._modelId, onArcgisValueChange: this._onCodeEditorValueChange, ref: (e) => (this._codeEditorElt = e) }));
|
|
267
267
|
}
|
|
268
268
|
//#endregion
|
|
269
269
|
//#region Rendering the Action Bar
|
|
270
|
-
renderAction({ id, label, icon, active, panelName, onClick = this._toggleSidePanel, }) {
|
|
271
|
-
return (h(Fragment, null, h("calcite-action", { id: id, text: label, icon: icon, active: active, onClick: onClick, "data-panel-name": panelName }), !this.sideActionBarExpanded && (h("calcite-tooltip", {
|
|
270
|
+
renderAction({ id, label, icon, active, panelName, iconFlipRtl = false, onClick = this._toggleSidePanel, }) {
|
|
271
|
+
return (h(Fragment, null, h("calcite-action", { id: id, text: label, icon: icon, active: active, onClick: onClick, "data-panel-name": panelName, iconFlipRtl: iconFlipRtl }), !this.sideActionBarExpanded && (h("calcite-tooltip", { "reference-element": id }, h("span", null, label)))));
|
|
272
272
|
}
|
|
273
273
|
renderSideActionBar() {
|
|
274
274
|
if (this.hideSideBar) {
|
|
@@ -302,6 +302,7 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
|
|
|
302
302
|
icon: "question",
|
|
303
303
|
active: false,
|
|
304
304
|
panelName: "none",
|
|
305
|
+
iconFlipRtl: true,
|
|
305
306
|
onClick: this._openArcadeHelp,
|
|
306
307
|
}))));
|
|
307
308
|
}
|
|
@@ -333,7 +334,7 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
|
|
|
333
334
|
//#endregion
|
|
334
335
|
//#region Render
|
|
335
336
|
render() {
|
|
336
|
-
return (h(Host, { key: '
|
|
337
|
+
return (h(Host, { key: '38773dce787d400e8a372160ebec4b402dfda7d0' }, this.renderMainActionBar(), h("div", { key: '25e5f1d113a9d1c120d19681b8bd8f85d1969c39', class: "flex-row flex-adjustable" }, h("div", { key: 'cf964eea0d97debe0e9c09afa4bf782a6bb02931', class: "flex-column flex-adjustable" }, this.renderMainPanel(), this.renderResultsPanel()), this.renderSidePanel(), this.renderSideActionBar())));
|
|
337
338
|
}
|
|
338
339
|
static get assetsDirs() { return ["assets"]; }
|
|
339
340
|
get el() { return this; }
|
|
@@ -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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.
|
|
4
|
+
* v4.30.1
|
|
5
5
|
*/
|
|
6
6
|
import { A as ArcgisArcadeResults$1, d as defineCustomElement$1 } from './arcade-results.js';
|
|
7
7
|
|
|
@@ -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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.
|
|
4
|
+
* v4.30.1
|
|
5
5
|
*/
|
|
6
6
|
import { A as ArcgisArcadeSuggestions$1, d as defineCustomElement$1 } from './arcade-suggestions.js';
|
|
7
7
|
|
|
@@ -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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.
|
|
4
|
+
* v4.30.1
|
|
5
5
|
*/
|
|
6
6
|
import { A as ArcgisArcadeVariables$1, d as defineCustomElement$1 } from './arcade-variables.js';
|
|
7
7
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/*!
|
|
3
3
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
5
|
-
* v4.30.
|
|
5
|
+
* v4.30.1
|
|
6
6
|
*/
|
|
7
7
|
let resourceUrl = "https://js.arcgis.com/coding-components/4.30/";
|
|
8
8
|
export const getArcgisAssetPath = (path) => {
|
|
@@ -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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.
|
|
4
|
+
* v4.30.1
|
|
5
5
|
*/
|
|
6
6
|
import { A as ArcgisCodeEditor$1, d as defineCustomElement$1 } from './code-editor.js';
|
|
7
7
|
|
|
@@ -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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.
|
|
4
|
+
* v4.30.1
|
|
5
5
|
*/
|
|
6
6
|
import { D as Deferred, g as camelToKebab, h as safeCall, j as safeAsyncCall, k as devToolsAwareTimeout } from './index2.js';
|
|
7
7
|
|
|
@@ -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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.
|
|
4
|
+
* v4.30.1
|
|
5
5
|
*/
|
|
6
6
|
import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
|
|
7
7
|
import { Range, editor, Uri, KeyMod, KeyCode } from 'monaco-editor';
|
|
@@ -20,6 +20,7 @@ const EditorOptionsDefaults = {
|
|
|
20
20
|
bracketPairColorization: { enabled: true },
|
|
21
21
|
minimap: { enabled: false },
|
|
22
22
|
renderLineHighlight: "none",
|
|
23
|
+
scrollBeyondLastLine: false,
|
|
23
24
|
suggest: {
|
|
24
25
|
snippetsPreventQuickSuggestions: false,
|
|
25
26
|
showWords: false,
|
|
@@ -27,7 +28,7 @@ const EditorOptionsDefaults = {
|
|
|
27
28
|
tabSize: 2,
|
|
28
29
|
useShadowDOM: true,
|
|
29
30
|
};
|
|
30
|
-
const __cmpMeta = [0,"arcgis-code-editor",{"value":[1025],"language":[1025],"modelId":[1025,"model-id"],"
|
|
31
|
+
const __cmpMeta = [0,"arcgis-code-editor",{"value":[1025],"language":[1025],"modelId":[1025,"model-id"],"editorOptions":[1040],"editorInstance":[1040],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]},undefined,{"language":["languagePropChange"],"modelId":["modelIdPropChange"],"editorOptions":["editorOptionsPropChange"]}];
|
|
31
32
|
const ArcgisCodeEditor = /*@__PURE__*/ proxyCustomElement(class ArcgisCodeEditor extends HTMLElement {
|
|
32
33
|
connectedCallback() { this.manager._connectedCallback(); }
|
|
33
34
|
constructor() {
|
|
@@ -61,7 +62,7 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
|
|
|
61
62
|
});
|
|
62
63
|
this.language = undefined;
|
|
63
64
|
this.modelId = generateGuid();
|
|
64
|
-
this.
|
|
65
|
+
this.editorOptions = undefined;
|
|
65
66
|
this.editorInstance = this.manager.getSet(undefined, {
|
|
66
67
|
get: () => this._editorInstance,
|
|
67
68
|
set: (_value, prevValue) => prevValue,
|
|
@@ -73,7 +74,7 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
|
|
|
73
74
|
modelIdPropChange() {
|
|
74
75
|
this.updateModel();
|
|
75
76
|
}
|
|
76
|
-
|
|
77
|
+
editorOptionsPropChange(newValue) {
|
|
77
78
|
if (!newValue) {
|
|
78
79
|
return;
|
|
79
80
|
}
|
|
@@ -163,15 +164,14 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
|
|
|
163
164
|
// Create the editor for the host element.
|
|
164
165
|
// This will not trigger a diagnostic.
|
|
165
166
|
this._editorInstance = editor.create(this.el, {
|
|
166
|
-
...
|
|
167
|
+
...EditorOptionsDefaults,
|
|
168
|
+
...(this.editorOptions ?? {}),
|
|
167
169
|
model,
|
|
168
170
|
fixedOverflowWidgets: true,
|
|
169
|
-
scrollBeyondLastLine: false,
|
|
170
171
|
});
|
|
171
172
|
this._disposables.push(this._editorInstance);
|
|
172
173
|
// Now we indicate that the component is ready
|
|
173
174
|
this._componentReadyDefer.resolve();
|
|
174
|
-
this._editorInstance.updateOptions(EditorOptionsDefaults);
|
|
175
175
|
this._editorInstance.onDidChangeModelContent(() => {
|
|
176
176
|
this.value = this._editorInstance?.getValue() ?? "";
|
|
177
177
|
this.arcgisValueChange.emit(this.value);
|
|
@@ -258,14 +258,14 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
|
|
|
258
258
|
//#endregion
|
|
259
259
|
// #region Rendering
|
|
260
260
|
render() {
|
|
261
|
-
return h(Host, { key: '
|
|
261
|
+
return h(Host, { key: '19c630f3237b1fad9761790671d6ed4f651ef5f4' });
|
|
262
262
|
}
|
|
263
263
|
static get assetsDirs() { return ["assets"]; }
|
|
264
264
|
get el() { return this; }
|
|
265
265
|
static get watchers() { return {
|
|
266
266
|
"language": ["languagePropChange"],
|
|
267
267
|
"modelId": ["modelIdPropChange"],
|
|
268
|
-
"
|
|
268
|
+
"editorOptions": ["editorOptionsPropChange"]
|
|
269
269
|
}; }
|
|
270
270
|
static get style() { return ArcgisCodeEditorStyle0; }
|
|
271
271
|
}, __cmpMeta);
|
|
@@ -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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.
|
|
4
|
+
* v4.30.1
|
|
5
5
|
*/
|
|
6
6
|
// src/index.ts
|
|
7
7
|
var isAMD = typeof window !== "undefined" && "$arcgis" in window && typeof window.$arcgis === "object" && "import" in window.$arcgis;
|
package/dist/components/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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.
|
|
4
|
+
* v4.30.1
|
|
5
5
|
*/
|
|
6
6
|
export { setNonce, setPlatformOptions } from '@stencil/core/internal/client';
|
|
7
7
|
export { a as arcade } from './arcade-defaults.js';
|
|
@@ -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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.
|
|
4
|
+
* v4.30.1
|
|
5
5
|
*/
|
|
6
6
|
import { editor } from 'monaco-editor';
|
|
7
7
|
import { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
@@ -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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.
|
|
4
|
+
* v4.30.1
|
|
5
5
|
*/
|
|
6
6
|
import { m as makeController } from './chunk-2CDDVOQU.js';
|
|
7
7
|
import { n as startLocaleObserver, o as getElementLocales } from './index2.js';
|
|
@@ -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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.
|
|
4
|
+
* v4.30.1
|
|
5
5
|
*/
|
|
6
|
-
import { g as getAssetPath } from './index-
|
|
6
|
+
import { g as getAssetPath } from './index-8c96bbd6.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Returns the last element of an array.
|
|
@@ -120594,7 +120594,7 @@ registerLanguage({
|
|
|
120594
120594
|
mimetypes: ["text/css"],
|
|
120595
120595
|
loader: () => {
|
|
120596
120596
|
{
|
|
120597
|
-
return import('./css-
|
|
120597
|
+
return import('./css-5142d172.js');
|
|
120598
120598
|
}
|
|
120599
120599
|
}
|
|
120600
120600
|
});
|
|
@@ -120612,7 +120612,7 @@ registerLanguage({
|
|
|
120612
120612
|
mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
|
|
120613
120613
|
loader: () => {
|
|
120614
120614
|
{
|
|
120615
|
-
return import('./html-
|
|
120615
|
+
return import('./html-1090fa08.js');
|
|
120616
120616
|
}
|
|
120617
120617
|
}
|
|
120618
120618
|
});
|
|
@@ -120632,7 +120632,7 @@ registerLanguage({
|
|
|
120632
120632
|
mimetypes: ["text/javascript"],
|
|
120633
120633
|
loader: () => {
|
|
120634
120634
|
{
|
|
120635
|
-
return import('./javascript-
|
|
120635
|
+
return import('./javascript-ce61083f.js');
|
|
120636
120636
|
}
|
|
120637
120637
|
}
|
|
120638
120638
|
});
|
|
@@ -120650,7 +120650,7 @@ registerLanguage({
|
|
|
120650
120650
|
mimetypes: ["text/typescript"],
|
|
120651
120651
|
loader: () => {
|
|
120652
120652
|
{
|
|
120653
|
-
return import('./typescript-
|
|
120653
|
+
return import('./typescript-8ccfe1ce.js');
|
|
120654
120654
|
}
|
|
120655
120655
|
}
|
|
120656
120656
|
});
|
|
@@ -120771,7 +120771,7 @@ var lessDefaults = new LanguageServiceDefaultsImpl$3("less", optionsDefault$1, m
|
|
|
120771
120771
|
monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
|
|
120772
120772
|
function getMode$3() {
|
|
120773
120773
|
{
|
|
120774
|
-
return import('./cssMode-
|
|
120774
|
+
return import('./cssMode-977f92d4.js');
|
|
120775
120775
|
}
|
|
120776
120776
|
}
|
|
120777
120777
|
monaco_editor_core_exports$3.languages.onLanguage("less", () => {
|
|
@@ -120896,7 +120896,7 @@ monaco_editor_core_exports$2.languages.html = {
|
|
|
120896
120896
|
};
|
|
120897
120897
|
function getMode$2() {
|
|
120898
120898
|
{
|
|
120899
|
-
return import('./htmlMode-
|
|
120899
|
+
return import('./htmlMode-73a1ec87.js');
|
|
120900
120900
|
}
|
|
120901
120901
|
}
|
|
120902
120902
|
function registerHTMLLanguageService(languageId, options = optionsDefault, modeConfiguration = getConfigurationDefault(languageId)) {
|
|
@@ -120998,7 +120998,7 @@ var jsonDefaults = new LanguageServiceDefaultsImpl$1("json", diagnosticDefault,
|
|
|
120998
120998
|
monaco_editor_core_exports$1.languages.json = { jsonDefaults };
|
|
120999
120999
|
function getMode$1() {
|
|
121000
121000
|
{
|
|
121001
|
-
return import('./jsonMode-
|
|
121001
|
+
return import('./jsonMode-41a7cf3a.js');
|
|
121002
121002
|
}
|
|
121003
121003
|
}
|
|
121004
121004
|
monaco_editor_core_exports$1.languages.register({
|
|
@@ -121267,7 +121267,7 @@ monaco_editor_core_exports.languages.typescript = {
|
|
|
121267
121267
|
};
|
|
121268
121268
|
function getMode() {
|
|
121269
121269
|
{
|
|
121270
|
-
return import('./tsMode-
|
|
121270
|
+
return import('./tsMode-91fccac8.js');
|
|
121271
121271
|
}
|
|
121272
121272
|
}
|
|
121273
121273
|
monaco_editor_core_exports.languages.onLanguage("typescript", () => {
|
|
@@ -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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.
|
|
4
|
+
* v4.30.1
|
|
5
5
|
*/
|
|
6
|
-
import { E as main, e as editor, M as MarkerSeverity, R as Range, m as languages, F as debounce, G as Emitter } from './arcade-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
import { E as main, e as editor, M as MarkerSeverity, R as Range, m as languages, F as debounce, G as Emitter } from './arcade-defaults-fbcce3a0.js';
|
|
7
|
+
import './index-8c96bbd6.js';
|
|
8
8
|
|
|
9
9
|
var j={False:"false",Null:"null",True:"true"},f={Break:"break",Continue:"continue",Else:"else",For:"for",From:"from",Function:"function",If:"if",Import:"import",Export:"export",In:"in",Return:"return",Var:"var",While:"while"},Fe=["++","--"],Qe=["-","+","!","~"],Ze=["=","/=","*=","%=","+=","-="],Xe=["||","&&"],Lt=["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"];var U=[[],[],[]];Fe.forEach(t=>U[t.length-1]?.push(t));Qe.forEach(t=>U[t.length-1]?.push(t));Xe.forEach(t=>U[t.length-1]?.push(t));Ze.forEach(t=>U[t.length-1]?.push(t));Lt.forEach(t=>U[t.length-1]?.push(t));var ht=Object.values(f),dt=Object.values(j);dt.map(t=>({label:t,kind:main.exports.CompletionItemKind.Constant}));ht.map(t=>({label:t,kind:main.exports.CompletionItemKind.Keyword}));
|
|
10
10
|
|
|
@@ -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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.
|
|
4
|
+
* v4.30.1
|
|
5
5
|
*/
|
|
6
|
-
import { g as getAssetPath, r as registerInstance, c as createEvent, h, H as Host, a as getElement, F as Fragment } from './index-
|
|
7
|
-
import { g as generateTokensCSSForColorMap, S as StandaloneServices, I as IStandaloneThemeService, e as editor, c as commonjsGlobal, D as Deferred, b as camelToKebab, s as safeCall, d as safeAsyncCall, f as devToolsAwareTimeout, h as startLocaleObserver, i as getElementLocales, j as isURL, k as hasSameOrigin, l as importRequest, m as languages, n as arcadeDefaults, U as Uri, o as setFocusOnElement, p as filterCollection, q as addLTRMark, r as importArcade, t as generateGuid, u as getElementTheme, K as KeyCode, v as setValuesInString, w as quoteString, x as supportedFields, y as createFilterExpression, R as Range, z as observeAncestorsMutation, A as KeyMod } from './arcade-defaults-
|
|
6
|
+
import { g as getAssetPath, r as registerInstance, c as createEvent, h, H as Host, a as getElement, F as Fragment } from './index-8c96bbd6.js';
|
|
7
|
+
import { g as generateTokensCSSForColorMap, S as StandaloneServices, I as IStandaloneThemeService, e as editor, c as commonjsGlobal, D as Deferred, b as camelToKebab, s as safeCall, d as safeAsyncCall, f as devToolsAwareTimeout, h as startLocaleObserver, i as getElementLocales, j as isURL, k as hasSameOrigin, l as importRequest, m as languages, n as arcadeDefaults, U as Uri, o as setFocusOnElement, p as filterCollection, q as addLTRMark, r as importArcade, t as generateGuid, u as getElementTheme, K as KeyCode, v as setValuesInString, w as quoteString, x as supportedFields, y as createFilterExpression, R as Range, z as observeAncestorsMutation, A as KeyMod } from './arcade-defaults-fbcce3a0.js';
|
|
8
8
|
|
|
9
9
|
async function colorizeCode(code) {
|
|
10
10
|
return await editor.colorize(code, "arcade", { tabSize: 2 });
|
|
@@ -4465,7 +4465,7 @@ async function getArcadeWorker(uri) {
|
|
|
4465
4465
|
* @returns arcade mode module
|
|
4466
4466
|
*/
|
|
4467
4467
|
async function getMode() {
|
|
4468
|
-
return await import('./arcade-mode-
|
|
4468
|
+
return await import('./arcade-mode-3c56bd03.js');
|
|
4469
4469
|
}
|
|
4470
4470
|
// Register the language in Monaco
|
|
4471
4471
|
languages.register({
|
|
@@ -5101,12 +5101,12 @@ const ArcgisArcadeEditor = class {
|
|
|
5101
5101
|
//#endregion
|
|
5102
5102
|
//#region Render Main Panel
|
|
5103
5103
|
renderMainPanel() {
|
|
5104
|
-
return (h("arcgis-code-editor", { class: "flex-adjustable", language: arcadeDefaults.languageId, value: this.script ?? "", modelId: this._modelId,
|
|
5104
|
+
return (h("arcgis-code-editor", { class: "flex-adjustable", editorOptions: this.editorOptions, language: arcadeDefaults.languageId, value: this.script ?? "", modelId: this._modelId, onArcgisValueChange: this._onCodeEditorValueChange, ref: (e) => (this._codeEditorElt = e) }));
|
|
5105
5105
|
}
|
|
5106
5106
|
//#endregion
|
|
5107
5107
|
//#region Rendering the Action Bar
|
|
5108
|
-
renderAction({ id, label, icon, active, panelName, onClick = this._toggleSidePanel, }) {
|
|
5109
|
-
return (h(Fragment, null, h("calcite-action", { id: id, text: label, icon: icon, active: active, onClick: onClick, "data-panel-name": panelName }), !this.sideActionBarExpanded && (h("calcite-tooltip", {
|
|
5108
|
+
renderAction({ id, label, icon, active, panelName, iconFlipRtl = false, onClick = this._toggleSidePanel, }) {
|
|
5109
|
+
return (h(Fragment, null, h("calcite-action", { id: id, text: label, icon: icon, active: active, onClick: onClick, "data-panel-name": panelName, iconFlipRtl: iconFlipRtl }), !this.sideActionBarExpanded && (h("calcite-tooltip", { "reference-element": id }, h("span", null, label)))));
|
|
5110
5110
|
}
|
|
5111
5111
|
renderSideActionBar() {
|
|
5112
5112
|
if (this.hideSideBar) {
|
|
@@ -5140,6 +5140,7 @@ const ArcgisArcadeEditor = class {
|
|
|
5140
5140
|
icon: "question",
|
|
5141
5141
|
active: false,
|
|
5142
5142
|
panelName: "none",
|
|
5143
|
+
iconFlipRtl: true,
|
|
5143
5144
|
onClick: this._openArcadeHelp,
|
|
5144
5145
|
}))));
|
|
5145
5146
|
}
|
|
@@ -5171,7 +5172,7 @@ const ArcgisArcadeEditor = class {
|
|
|
5171
5172
|
//#endregion
|
|
5172
5173
|
//#region Render
|
|
5173
5174
|
render() {
|
|
5174
|
-
return (h(Host, { key: '
|
|
5175
|
+
return (h(Host, { key: '38773dce787d400e8a372160ebec4b402dfda7d0' }, this.renderMainActionBar(), h("div", { key: '25e5f1d113a9d1c120d19681b8bd8f85d1969c39', class: "flex-row flex-adjustable" }, h("div", { key: 'cf964eea0d97debe0e9c09afa4bf782a6bb02931', class: "flex-column flex-adjustable" }, this.renderMainPanel(), this.renderResultsPanel()), this.renderSidePanel(), this.renderSideActionBar())));
|
|
5175
5176
|
}
|
|
5176
5177
|
static get assetsDirs() { return ["assets"]; }
|
|
5177
5178
|
get el() { return getElement(this); }
|
|
@@ -5694,6 +5695,7 @@ const EditorOptionsDefaults = {
|
|
|
5694
5695
|
bracketPairColorization: { enabled: true },
|
|
5695
5696
|
minimap: { enabled: false },
|
|
5696
5697
|
renderLineHighlight: "none",
|
|
5698
|
+
scrollBeyondLastLine: false,
|
|
5697
5699
|
suggest: {
|
|
5698
5700
|
snippetsPreventQuickSuggestions: false,
|
|
5699
5701
|
showWords: false,
|
|
@@ -5731,7 +5733,7 @@ const ArcgisCodeEditor = class {
|
|
|
5731
5733
|
});
|
|
5732
5734
|
this.language = undefined;
|
|
5733
5735
|
this.modelId = generateGuid();
|
|
5734
|
-
this.
|
|
5736
|
+
this.editorOptions = undefined;
|
|
5735
5737
|
this.editorInstance = this.manager.getSet(undefined, {
|
|
5736
5738
|
get: () => this._editorInstance,
|
|
5737
5739
|
set: (_value, prevValue) => prevValue,
|
|
@@ -5743,7 +5745,7 @@ const ArcgisCodeEditor = class {
|
|
|
5743
5745
|
modelIdPropChange() {
|
|
5744
5746
|
this.updateModel();
|
|
5745
5747
|
}
|
|
5746
|
-
|
|
5748
|
+
editorOptionsPropChange(newValue) {
|
|
5747
5749
|
if (!newValue) {
|
|
5748
5750
|
return;
|
|
5749
5751
|
}
|
|
@@ -5833,15 +5835,14 @@ const ArcgisCodeEditor = class {
|
|
|
5833
5835
|
// Create the editor for the host element.
|
|
5834
5836
|
// This will not trigger a diagnostic.
|
|
5835
5837
|
this._editorInstance = editor.create(this.el, {
|
|
5836
|
-
...
|
|
5838
|
+
...EditorOptionsDefaults,
|
|
5839
|
+
...(this.editorOptions ?? {}),
|
|
5837
5840
|
model,
|
|
5838
5841
|
fixedOverflowWidgets: true,
|
|
5839
|
-
scrollBeyondLastLine: false,
|
|
5840
5842
|
});
|
|
5841
5843
|
this._disposables.push(this._editorInstance);
|
|
5842
5844
|
// Now we indicate that the component is ready
|
|
5843
5845
|
this._componentReadyDefer.resolve();
|
|
5844
|
-
this._editorInstance.updateOptions(EditorOptionsDefaults);
|
|
5845
5846
|
this._editorInstance.onDidChangeModelContent(() => {
|
|
5846
5847
|
this.value = this._editorInstance?.getValue() ?? "";
|
|
5847
5848
|
this.arcgisValueChange.emit(this.value);
|
|
@@ -5927,14 +5928,14 @@ const ArcgisCodeEditor = class {
|
|
|
5927
5928
|
//#endregion
|
|
5928
5929
|
// #region Rendering
|
|
5929
5930
|
render() {
|
|
5930
|
-
return h(Host, { key: '
|
|
5931
|
+
return h(Host, { key: '19c630f3237b1fad9761790671d6ed4f651ef5f4' });
|
|
5931
5932
|
}
|
|
5932
5933
|
static get assetsDirs() { return ["assets"]; }
|
|
5933
5934
|
get el() { return getElement(this); }
|
|
5934
5935
|
static get watchers() { return {
|
|
5935
5936
|
"language": ["languagePropChange"],
|
|
5936
5937
|
"modelId": ["modelIdPropChange"],
|
|
5937
|
-
"
|
|
5938
|
+
"editorOptions": ["editorOptionsPropChange"]
|
|
5938
5939
|
}; }
|
|
5939
5940
|
};
|
|
5940
5941
|
ArcgisCodeEditor.style = ArcgisCodeEditorStyle0;
|
|
@@ -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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.
|
|
4
|
+
* v4.30.1
|
|
5
5
|
*/
|
|
6
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
7
|
-
export { s as setNonce } from './index-
|
|
8
|
-
import { g as globalScripts } from './app-globals-
|
|
6
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-8c96bbd6.js';
|
|
7
|
+
export { s as setNonce } from './index-8c96bbd6.js';
|
|
8
|
+
import { g as globalScripts } from './app-globals-2bae24b0.js';
|
|
9
9
|
|
|
10
10
|
/*
|
|
11
11
|
Stencil Client Patch Browser v4.17.1 | MIT Licensed | https://stenciljs.com
|
|
@@ -21,5 +21,5 @@ var patchBrowser = () => {
|
|
|
21
21
|
|
|
22
22
|
patchBrowser().then(async (options) => {
|
|
23
23
|
await globalScripts();
|
|
24
|
-
return bootstrapLazy([["arcgis-arcade-api_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],"messages":[32],"_preparingProfile":[32],"_editorProfile":[32],"_showExecutionPanel":[32],"_resultPanel":[32],"_executingScript":[32],"_consoleLogs":[32],"_executionResult":[32],"getScript":[64],"setFocus":[64],"getEditorInstance":[64],"getTestResult":[64],"updateThemeColors":[64]},null,{"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}],[1,"arcgis-arcade-api",{"hideDocumentationActions":[4,"hide-documentation-actions"],"modelId":[1,"model-id"],"_selectedApiItem":[32],"_filterValue":[32],"_colorizeStyle":[32],"_preparingApi":[32],"_apiLibrary":[32]}],[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"]}],[1,"arcgis-arcade-variables",{"loading":[4],"modelId":[1,"model-id"],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}],[0,"arcgis-code-editor",{"value":[1],"language":[1],"modelId":[1,"model-id"],"
|
|
24
|
+
return bootstrapLazy([["arcgis-arcade-api_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],"messages":[32],"_preparingProfile":[32],"_editorProfile":[32],"_showExecutionPanel":[32],"_resultPanel":[32],"_executingScript":[32],"_consoleLogs":[32],"_executionResult":[32],"getScript":[64],"setFocus":[64],"getEditorInstance":[64],"getTestResult":[64],"updateThemeColors":[64]},null,{"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}],[1,"arcgis-arcade-api",{"hideDocumentationActions":[4,"hide-documentation-actions"],"modelId":[1,"model-id"],"_selectedApiItem":[32],"_filterValue":[32],"_colorizeStyle":[32],"_preparingApi":[32],"_apiLibrary":[32]}],[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"]}],[1,"arcgis-arcade-variables",{"loading":[4],"modelId":[1,"model-id"],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}],[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"]}]]]], options);
|
|
25
25
|
});
|
|
@@ -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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.
|
|
4
|
+
* v4.30.1
|
|
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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.
|
|
4
|
+
* v4.30.1
|
|
5
5
|
*/
|
|
6
|
-
import { B as monaco_editor_core_star } from './arcade-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
import { B as monaco_editor_core_star } from './arcade-defaults-fbcce3a0.js';
|
|
7
|
+
import './index-8c96bbd6.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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.
|
|
4
|
+
* v4.30.1
|
|
5
5
|
*/
|
|
6
|
-
import { B as monaco_editor_core_star } from './arcade-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
import { B as monaco_editor_core_star } from './arcade-defaults-fbcce3a0.js';
|
|
7
|
+
import './index-8c96bbd6.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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.
|
|
4
|
+
* v4.30.1
|
|
5
5
|
*/
|
|
6
|
-
import { B as monaco_editor_core_star } from './arcade-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
import { B as monaco_editor_core_star } from './arcade-defaults-fbcce3a0.js';
|
|
7
|
+
import './index-8c96bbd6.js';
|
|
8
8
|
|
|
9
9
|
/*!-----------------------------------------------------------------------------
|
|
10
10
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
package/dist/esm/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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.
|
|
4
|
+
* v4.30.1
|
|
5
5
|
*/
|
|
6
|
-
export { a as arcade } from './arcade-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
export { a as arcade } from './arcade-defaults-fbcce3a0.js';
|
|
7
|
+
import './index-8c96bbd6.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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.
|
|
4
|
+
* v4.30.1
|
|
5
5
|
*/
|
|
6
|
-
import { conf as conf$1, language as language$1 } from './typescript-
|
|
7
|
-
import './arcade-defaults-
|
|
8
|
-
import './index-
|
|
6
|
+
import { conf as conf$1, language as language$1 } from './typescript-8ccfe1ce.js';
|
|
7
|
+
import './arcade-defaults-fbcce3a0.js';
|
|
8
|
+
import './index-8c96bbd6.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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.
|
|
4
|
+
* v4.30.1
|
|
5
5
|
*/
|
|
6
|
-
import { B as monaco_editor_core_star } from './arcade-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
import { B as monaco_editor_core_star } from './arcade-defaults-fbcce3a0.js';
|
|
7
|
+
import './index-8c96bbd6.js';
|
|
8
8
|
|
|
9
9
|
/*!-----------------------------------------------------------------------------
|
|
10
10
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|