@arcgis/coding-components 4.30.0-next.38 → 4.30.0-next.40
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-bd825e2c.js → p-1653b162.js} +2 -2
- package/dist/arcgis-coding-components/{p-eaa95929.js → p-23558e30.js} +2 -2
- package/dist/arcgis-coding-components/{p-8b8cc66f.js → p-5d7eed5c.js} +2 -2
- package/dist/arcgis-coding-components/{p-e7b170f5.js → p-65b666c8.js} +1 -1
- package/dist/arcgis-coding-components/{p-48adf93c.js → p-749ed871.js} +2 -2
- package/dist/arcgis-coding-components/{p-91027792.js → p-8eaff8ec.js} +2 -2
- package/dist/arcgis-coding-components/p-8ff03bd1.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-497b0b45.js → p-922df385.js} +2 -2
- package/dist/arcgis-coding-components/{p-a6c46be9.js → p-9735b66c.js} +2 -2
- package/dist/arcgis-coding-components/{p-516b837c.js → p-bf1ba8d4.js} +2 -2
- package/dist/arcgis-coding-components/{p-da54d967.js → p-c49852a4.js} +1 -1
- package/dist/arcgis-coding-components/{p-783a69fc.js → p-ef6760f3.js} +10 -10
- package/dist/cjs/{arcade-defaults-d0c08e71.js → arcade-defaults-11bd4fd0.js} +12 -11
- package/dist/cjs/{arcade-mode-1723f2ae.js → arcade-mode-88678d5f.js} +3 -3
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +37 -36
- package/dist/cjs/arcgis-coding-components.cjs.js +2 -2
- package/dist/cjs/{css-54a3999b.js → css-e76d50a6.js} +1 -1
- package/dist/cjs/{cssMode-86a64941.js → cssMode-c03af136.js} +3 -3
- package/dist/cjs/{html-6e57fd9f.js → html-4f60da43.js} +3 -3
- package/dist/cjs/{htmlMode-883d737c.js → htmlMode-92c12a89.js} +3 -3
- package/dist/cjs/{index-4bfda3ea.js → index-ddb7b8ae.js} +1 -1
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{javascript-14fa6252.js → javascript-81f722d2.js} +4 -4
- package/dist/cjs/{jsonMode-9b918edc.js → jsonMode-fc58459d.js} +3 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{tsMode-f8ea5e90.js → tsMode-9cfa1c84.js} +3 -3
- package/dist/cjs/{typescript-1ea5e4ca.js → typescript-96de25d8.js} +3 -3
- package/dist/components/arcade-api.js +7 -7
- 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 +6 -6
- package/dist/components/arcade-suggestions.js +6 -6
- package/dist/components/arcade-variables.js +6 -6
- package/dist/components/arcgis-arcade-api.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +11 -11
- 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-WQTCUXBS.js → chunk-HXHHCYA6.js} +6 -5
- package/dist/components/code-editor.js +3 -3
- package/dist/components/fields.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +3 -2
- package/dist/components/markdown.js +1 -1
- package/dist/components/utilities.js +1 -1
- package/dist/esm/{arcade-defaults-c76c3ea7.js → arcade-defaults-690c65b0.js} +12 -11
- package/dist/esm/{arcade-mode-ffcdeb44.js → arcade-mode-88a880fd.js} +3 -3
- package/dist/esm/arcgis-arcade-api_6.entry.js +37 -36
- package/dist/esm/arcgis-coding-components.js +3 -3
- package/dist/esm/{css-af16dc75.js → css-ba86d792.js} +1 -1
- package/dist/esm/{cssMode-4fc1a860.js → cssMode-cc7d2728.js} +3 -3
- package/dist/esm/{html-57fa0004.js → html-664c0f74.js} +3 -3
- package/dist/esm/{htmlMode-4cd5b8b2.js → htmlMode-34f81854.js} +3 -3
- package/dist/esm/{index-06e2f55f.js → index-33ae02ee.js} +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/{javascript-57e48078.js → javascript-1e3278d9.js} +4 -4
- package/dist/esm/{jsonMode-2b1de2ab.js → jsonMode-aa8a70d8.js} +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{tsMode-cf32f40f.js → tsMode-3100d961.js} +3 -3
- package/dist/esm/{typescript-76fd2b3c.js → typescript-d8d38af2.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-api/arcade-api.d.ts +2 -2
- package/dist/types/components/arcade-editor/arcade-editor.d.ts +2 -2
- package/dist/types/components/arcade-results/arcade-results.d.ts +2 -2
- package/dist/types/components/arcade-suggestions/arcade-suggestions.d.ts +2 -2
- package/dist/types/components/arcade-variables/arcade-variables.d.ts +2 -2
- package/dist/types/components/code-editor/code-editor.d.ts +1 -1
- package/dist/types/components.d.ts +22 -22
- package/package.json +9 -9
- package/dist/arcgis-coding-components/p-af1c4736.entry.js +0 -6
|
@@ -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.0-next.
|
|
4
|
+
* v4.30.0-next.40
|
|
5
5
|
*/
|
|
6
|
-
import { f as forceUpdate, 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, e as editor, S as StandaloneServices, I as IStandaloneThemeService, c as createCommonjsModule, b as commonjsGlobal, i as importCoreAccessor, d as importCoreAccessorSupportDecorators, f as isURL, h as hasSameOrigin, j as importRequest, l as languages, k as arcadeDefaults, U as Uri, s as setFocusOnElement, m as filterCollection, n as addLTRMark, o as importArcade, D as Deferred$1, p as generateGuid, q as getElementTheme, K as KeyCode, r as setValuesInString, t as quoteString, u as supportedFields, v as createFilterExpression, R as Range, w as observeAncestorsMutation$1, x as KeyMod } from './arcade-defaults-
|
|
6
|
+
import { f as forceUpdate, g as getAssetPath, r as registerInstance, c as createEvent, h, H as Host, a as getElement, F as Fragment } from './index-33ae02ee.js';
|
|
7
|
+
import { g as generateTokensCSSForColorMap, e as editor, S as StandaloneServices, I as IStandaloneThemeService, c as createCommonjsModule, b as commonjsGlobal, i as importCoreAccessor, d as importCoreAccessorSupportDecorators, f as isURL, h as hasSameOrigin, j as importRequest, l as languages, k as arcadeDefaults, U as Uri, s as setFocusOnElement, m as filterCollection, n as addLTRMark, o as importArcade, D as Deferred$1, p as generateGuid, q as getElementTheme, K as KeyCode, r as setValuesInString, t as quoteString, u as supportedFields, v as createFilterExpression, R as Range, w as observeAncestorsMutation$1, x as KeyMod } from './arcade-defaults-690c65b0.js';
|
|
8
8
|
|
|
9
9
|
async function colorizeCode(code) {
|
|
10
10
|
return await editor.colorize(code, "arcade", { tabSize: 2 });
|
|
@@ -3079,8 +3079,9 @@ async function safeAsyncCall(callback) {
|
|
|
3079
3079
|
}
|
|
3080
3080
|
return void 0;
|
|
3081
3081
|
}
|
|
3082
|
+
var upperBeforeLower = /[A-Z]+(?![a-z])|[A-Z]/gu;
|
|
3082
3083
|
var capitalize = (string) => string.charAt(0).toUpperCase() + string.slice(1);
|
|
3083
|
-
var camelToHuman = (
|
|
3084
|
+
var camelToHuman = (string) => capitalize(string.replace(upperBeforeLower, (upper, remainder) => `${remainder === 0 ? "" : " "}${upper}`));
|
|
3084
3085
|
var supportedLocales = /* @__PURE__ */ new Set([
|
|
3085
3086
|
"ar",
|
|
3086
3087
|
"bg",
|
|
@@ -3202,7 +3203,7 @@ var ControllerInternals = class {
|
|
|
3202
3203
|
* error
|
|
3203
3204
|
*/
|
|
3204
3205
|
this.use = async (value, watchExports) => {
|
|
3205
|
-
const controller = this.
|
|
3206
|
+
const controller = this.useRefSync(value);
|
|
3206
3207
|
if (controller === void 0) {
|
|
3207
3208
|
if (typeof watchExports === "function") {
|
|
3208
3209
|
const error = new Error(
|
|
@@ -3223,7 +3224,7 @@ var ControllerInternals = class {
|
|
|
3223
3224
|
return controller.exports;
|
|
3224
3225
|
};
|
|
3225
3226
|
this.useRef = async (value) => {
|
|
3226
|
-
const controller = this.
|
|
3227
|
+
const controller = this.useRefSync(value);
|
|
3227
3228
|
if (controller === void 0)
|
|
3228
3229
|
throw new Error(`Unable to resolve a controller from the provided value. ${unresolvableExports}`);
|
|
3229
3230
|
await controller.ready;
|
|
@@ -3309,7 +3310,7 @@ var ControllerInternals = class {
|
|
|
3309
3310
|
/**
|
|
3310
3311
|
* Try to resolve a controller, without awaiting it's load
|
|
3311
3312
|
*/
|
|
3312
|
-
|
|
3313
|
+
useRefSync(value) {
|
|
3313
3314
|
const ambientChildController = this.retrieveAmbientChildController();
|
|
3314
3315
|
if (ambientChildController !== void 0)
|
|
3315
3316
|
return ambientChildController;
|
|
@@ -4531,7 +4532,7 @@ async function getArcadeWorker(uri) {
|
|
|
4531
4532
|
* @returns arcade mode module
|
|
4532
4533
|
*/
|
|
4533
4534
|
async function getMode() {
|
|
4534
|
-
return await import('./arcade-mode-
|
|
4535
|
+
return await import('./arcade-mode-88a880fd.js');
|
|
4535
4536
|
}
|
|
4536
4537
|
// Register the language in Monaco
|
|
4537
4538
|
languages.register({
|
|
@@ -4559,8 +4560,8 @@ const arcadeApiCss = ":host{background-color:var(--calcite-color-foreground-1)}:
|
|
|
4559
4560
|
const ArcgisArcadeApi = class {
|
|
4560
4561
|
constructor(hostRef) {
|
|
4561
4562
|
registerInstance(this, hostRef);
|
|
4562
|
-
this.
|
|
4563
|
-
this.
|
|
4563
|
+
this.arcgisClose = createEvent(this, "arcgisClose", 3);
|
|
4564
|
+
this.arcgisItemSelected = createEvent(this, "arcgisItemSelected", 3);
|
|
4564
4565
|
this.manager = useControllerManager(this);
|
|
4565
4566
|
this.messages = useT9n();
|
|
4566
4567
|
this._emitItemSelected = (e) => {
|
|
@@ -4571,10 +4572,10 @@ const ArcgisArcadeApi = class {
|
|
|
4571
4572
|
const keyEvent = e;
|
|
4572
4573
|
if (!keyEvent.key || keyEvent.key === "Enter") {
|
|
4573
4574
|
e.preventDefault();
|
|
4574
|
-
this.
|
|
4575
|
+
this.arcgisItemSelected.emit(item.completion.insertText);
|
|
4575
4576
|
}
|
|
4576
4577
|
};
|
|
4577
|
-
this._emitClose = () => this.
|
|
4578
|
+
this._emitClose = () => this.arcgisClose.emit();
|
|
4578
4579
|
this._emitItemSelectedAndClose = (e) => {
|
|
4579
4580
|
if (!e.target) {
|
|
4580
4581
|
return;
|
|
@@ -4586,7 +4587,7 @@ const ArcgisArcadeApi = class {
|
|
|
4586
4587
|
if (!item) {
|
|
4587
4588
|
return;
|
|
4588
4589
|
}
|
|
4589
|
-
this.
|
|
4590
|
+
this.arcgisItemSelected.emit(item.completion.insertText);
|
|
4590
4591
|
}
|
|
4591
4592
|
};
|
|
4592
4593
|
this._selectItem = (e) => {
|
|
@@ -4931,8 +4932,8 @@ const arcadeEditorCss = "arcgis-arcade-editor{display:flex;flex-direction:column
|
|
|
4931
4932
|
const ArcgisArcadeEditor = class {
|
|
4932
4933
|
constructor(hostRef) {
|
|
4933
4934
|
registerInstance(this, hostRef);
|
|
4934
|
-
this.
|
|
4935
|
-
this.
|
|
4935
|
+
this.arcgisScriptChange = createEvent(this, "arcgisScriptChange", 3);
|
|
4936
|
+
this.arcgisDiagnosticsChange = createEvent(this, "arcgisDiagnosticsChange", 3);
|
|
4936
4937
|
this.manager = useControllerManager(this);
|
|
4937
4938
|
this._componentReadyDefer = new Deferred$1();
|
|
4938
4939
|
this._modelId = generateGuid();
|
|
@@ -4978,7 +4979,7 @@ const ArcgisArcadeEditor = class {
|
|
|
4978
4979
|
this._openArcadeHelp = () => void window.open(DevelopersWebSitePath, "Arcade Help");
|
|
4979
4980
|
this._emitScriptChange = (e) => {
|
|
4980
4981
|
e.stopPropagation();
|
|
4981
|
-
this.
|
|
4982
|
+
this.arcgisScriptChange.emit(e.detail);
|
|
4982
4983
|
};
|
|
4983
4984
|
this._insertAsSnippet = (e) => void this._codeEditorElt?.insertSnippet(e.detail).catch(console.error);
|
|
4984
4985
|
this._insertAsText = (e) => void this._codeEditorElt?.insertText(e.detail).catch(console.error);
|
|
@@ -5100,7 +5101,7 @@ const ArcgisArcadeEditor = class {
|
|
|
5100
5101
|
// Start listening to the validation diagnostics.
|
|
5101
5102
|
// We are doing this as late as possible
|
|
5102
5103
|
const diagnosticsService = await getArcadeDiagnosticService();
|
|
5103
|
-
this._disposables.push(diagnosticsService.onDiagnosticsChange((event) => !this._preparingProfile && this.
|
|
5104
|
+
this._disposables.push(diagnosticsService.onDiagnosticsChange((event) => !this._preparingProfile && this.arcgisDiagnosticsChange.emit(event.diagnostics)));
|
|
5104
5105
|
// Get editor instance and add action
|
|
5105
5106
|
this._standaloneCodeEditor = await this.getEditorInstance();
|
|
5106
5107
|
this._standaloneCodeEditor?.addAction({
|
|
@@ -5161,7 +5162,7 @@ const ArcgisArcadeEditor = class {
|
|
|
5161
5162
|
//#endregion
|
|
5162
5163
|
//#region Render Main Panel
|
|
5163
5164
|
renderMainPanel() {
|
|
5164
|
-
return (h("arcgis-code-editor", { class: "flex-adjustable", language: arcadeDefaults.languageId, value: this.script ?? "", modelId: this._modelId, options: this.editorOptions,
|
|
5165
|
+
return (h("arcgis-code-editor", { class: "flex-adjustable", language: arcadeDefaults.languageId, value: this.script ?? "", modelId: this._modelId, options: this.editorOptions, onArcgisValueChange: this._emitScriptChange, ref: (e) => (this._codeEditorElt = e) }));
|
|
5165
5166
|
}
|
|
5166
5167
|
//#endregion
|
|
5167
5168
|
//#region Rendering the Action Bar
|
|
@@ -5211,11 +5212,11 @@ const ArcgisArcadeEditor = class {
|
|
|
5211
5212
|
}
|
|
5212
5213
|
switch (this.openedSidePanel) {
|
|
5213
5214
|
case "api":
|
|
5214
|
-
return (h("arcgis-arcade-api", { class: "side-panel flex-panel border-inline-start", modelId: this._modelId, hideDocumentationActions: this.hideDocumentationActions,
|
|
5215
|
+
return (h("arcgis-arcade-api", { class: "side-panel flex-panel border-inline-start", modelId: this._modelId, hideDocumentationActions: this.hideDocumentationActions, onArcgisItemSelected: this._insertAsSnippet, onArcgisClose: this._toggleSidePanel, "data-panel-name": "none" }));
|
|
5215
5216
|
case "variables":
|
|
5216
|
-
return (h("arcgis-arcade-variables", { class: "side-panel flex-panel border-inline-start", loading: this._preparingProfile, modelId: this._modelId,
|
|
5217
|
+
return (h("arcgis-arcade-variables", { class: "side-panel flex-panel border-inline-start", loading: this._preparingProfile, modelId: this._modelId, onArcgisItemSelected: this._insertAsText, onArcgisClose: this._toggleSidePanel, "data-panel-name": "none" }));
|
|
5217
5218
|
case "suggestions":
|
|
5218
|
-
return (h("arcgis-arcade-suggestions", { class: "side-panel flex-panel border-inline-start", suggestions: this.suggestions,
|
|
5219
|
+
return (h("arcgis-arcade-suggestions", { class: "side-panel flex-panel border-inline-start", suggestions: this.suggestions, onArcgisItemSelected: this._insertAsText, onArcgisClose: this._toggleSidePanel, "data-panel-name": "none" }));
|
|
5219
5220
|
default:
|
|
5220
5221
|
return null;
|
|
5221
5222
|
}
|
|
@@ -5226,7 +5227,7 @@ const ArcgisArcadeEditor = class {
|
|
|
5226
5227
|
if (!this._showExecutionPanel) {
|
|
5227
5228
|
return null;
|
|
5228
5229
|
}
|
|
5229
|
-
return (h("arcgis-arcade-results", { class: "flex-adjustable", openedResultPanel: this._resultPanel, loading: this._executingScript, result: this._executionResult, consoleLogs: this._consoleLogs,
|
|
5230
|
+
return (h("arcgis-arcade-results", { class: "flex-adjustable", openedResultPanel: this._resultPanel, loading: this._executingScript, result: this._executionResult, consoleLogs: this._consoleLogs, onArcgisOpenedResultPanelChange: this._onResultPanelChange, onArcgisClose: this._onExecutionPanelClose }));
|
|
5230
5231
|
}
|
|
5231
5232
|
//#endregion
|
|
5232
5233
|
//#region Render
|
|
@@ -5305,8 +5306,8 @@ function renderFeatureSetTable(arcadeResult) {
|
|
|
5305
5306
|
const ArcgisArcadeResults = class {
|
|
5306
5307
|
constructor(hostRef) {
|
|
5307
5308
|
registerInstance(this, hostRef);
|
|
5308
|
-
this.
|
|
5309
|
-
this.
|
|
5309
|
+
this.arcgisOpenedResultPanelChange = createEvent(this, "arcgisOpenedResultPanelChange", 3);
|
|
5310
|
+
this.arcgisClose = createEvent(this, "arcgisClose", 3);
|
|
5310
5311
|
this.manager = useControllerManager(this);
|
|
5311
5312
|
//#region Private Properties
|
|
5312
5313
|
this.messages = useT9n();
|
|
@@ -5320,7 +5321,7 @@ const ArcgisArcadeResults = class {
|
|
|
5320
5321
|
}
|
|
5321
5322
|
this.updateResultPanel(panelName);
|
|
5322
5323
|
};
|
|
5323
|
-
this._emitClose = () => this.
|
|
5324
|
+
this._emitClose = () => this.arcgisClose.emit();
|
|
5324
5325
|
this.loading = true;
|
|
5325
5326
|
this.openedResultPanel = "output";
|
|
5326
5327
|
this.result = undefined;
|
|
@@ -5330,7 +5331,7 @@ const ArcgisArcadeResults = class {
|
|
|
5330
5331
|
//#region Private Methods
|
|
5331
5332
|
updateResultPanel(resultPanelType) {
|
|
5332
5333
|
this.openedResultPanel = resultPanelType;
|
|
5333
|
-
this.
|
|
5334
|
+
this.arcgisOpenedResultPanelChange.emit(resultPanelType);
|
|
5334
5335
|
}
|
|
5335
5336
|
//#endregion
|
|
5336
5337
|
//#region Rendering
|
|
@@ -5489,8 +5490,8 @@ const arcadeSuggestionsCss = ":host{background-color:var(--calcite-color-foregro
|
|
|
5489
5490
|
const ArcgisArcadeSuggestions = class {
|
|
5490
5491
|
constructor(hostRef) {
|
|
5491
5492
|
registerInstance(this, hostRef);
|
|
5492
|
-
this.
|
|
5493
|
-
this.
|
|
5493
|
+
this.arcgisClose = createEvent(this, "arcgisClose", 3);
|
|
5494
|
+
this.arcgisItemSelected = createEvent(this, "arcgisItemSelected", 3);
|
|
5494
5495
|
this.manager = useControllerManager(this);
|
|
5495
5496
|
this.messages = useT9n();
|
|
5496
5497
|
this._updateFilterValue = (e) => {
|
|
@@ -5504,7 +5505,7 @@ const ArcgisArcadeSuggestions = class {
|
|
|
5504
5505
|
const keyEvent = e;
|
|
5505
5506
|
if (!keyEvent.key || keyEvent.key === "Enter") {
|
|
5506
5507
|
e.preventDefault();
|
|
5507
|
-
this.
|
|
5508
|
+
this.arcgisItemSelected.emit(item.code);
|
|
5508
5509
|
}
|
|
5509
5510
|
};
|
|
5510
5511
|
this._showSuggestionDetail = (e) => {
|
|
@@ -5516,7 +5517,7 @@ const ArcgisArcadeSuggestions = class {
|
|
|
5516
5517
|
this._selectedSuggestion = item;
|
|
5517
5518
|
};
|
|
5518
5519
|
this._emitClose = () => {
|
|
5519
|
-
this.
|
|
5520
|
+
this.arcgisClose.emit();
|
|
5520
5521
|
};
|
|
5521
5522
|
this._beforeBack = async () => {
|
|
5522
5523
|
this._selectedSuggestion = undefined;
|
|
@@ -5605,8 +5606,8 @@ function stopEnterPropagation(e) {
|
|
|
5605
5606
|
const ArcgisArcadeVariables = class {
|
|
5606
5607
|
constructor(hostRef) {
|
|
5607
5608
|
registerInstance(this, hostRef);
|
|
5608
|
-
this.
|
|
5609
|
-
this.
|
|
5609
|
+
this.arcgisClose = createEvent(this, "arcgisClose", 3);
|
|
5610
|
+
this.arcgisItemSelected = createEvent(this, "arcgisItemSelected", 3);
|
|
5610
5611
|
this.manager = useControllerManager(this);
|
|
5611
5612
|
this.messages = useT9n();
|
|
5612
5613
|
this._updateFilterValue = (e) => {
|
|
@@ -5617,7 +5618,7 @@ const ArcgisArcadeVariables = class {
|
|
|
5617
5618
|
this._filterValue = "";
|
|
5618
5619
|
};
|
|
5619
5620
|
this._emitClose = () => {
|
|
5620
|
-
this.
|
|
5621
|
+
this.arcgisClose.emit();
|
|
5621
5622
|
};
|
|
5622
5623
|
this._backToTop = () => {
|
|
5623
5624
|
this._flowItemRenderers = [];
|
|
@@ -5630,7 +5631,7 @@ const ArcgisArcadeVariables = class {
|
|
|
5630
5631
|
const keyEvent = e;
|
|
5631
5632
|
if (!keyEvent.key || keyEvent.key === "Enter") {
|
|
5632
5633
|
e.preventDefault();
|
|
5633
|
-
this.
|
|
5634
|
+
this.arcgisItemSelected.emit(variable.snippet);
|
|
5634
5635
|
}
|
|
5635
5636
|
};
|
|
5636
5637
|
this._showCollectionPanel = (e) => {
|
|
@@ -5760,7 +5761,7 @@ const EditorOptionsDefaults = {
|
|
|
5760
5761
|
const ArcgisCodeEditor = class {
|
|
5761
5762
|
constructor(hostRef) {
|
|
5762
5763
|
registerInstance(this, hostRef);
|
|
5763
|
-
this.
|
|
5764
|
+
this.arcgisValueChange = createEvent(this, "arcgisValueChange", 3);
|
|
5764
5765
|
this._componentReadyDefer = new Deferred$1();
|
|
5765
5766
|
this._disposables = [];
|
|
5766
5767
|
this.value = undefined;
|
|
@@ -5904,7 +5905,7 @@ const ArcgisCodeEditor = class {
|
|
|
5904
5905
|
// Listen to the Monaco Editor content change event and propagate
|
|
5905
5906
|
this._editorInstance.onDidChangeModelContent(() => {
|
|
5906
5907
|
const script = this._editorInstance?.getValue() ?? "";
|
|
5907
|
-
this.
|
|
5908
|
+
this.arcgisValueChange.emit(script);
|
|
5908
5909
|
});
|
|
5909
5910
|
// Detect if the host element or its ancestors got a theme attribute mutation
|
|
5910
5911
|
this._themeObserver = observeAncestorsMutation$1(this._hostElt, ["class"], () => this.updateTheme());
|
|
@@ -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.0-next.
|
|
4
|
+
* v4.30.0-next.40
|
|
5
5
|
*/
|
|
6
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
7
|
-
export { s as setNonce } from './index-
|
|
6
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-33ae02ee.js';
|
|
7
|
+
export { s as setNonce } from './index-33ae02ee.js';
|
|
8
8
|
|
|
9
9
|
/*
|
|
10
10
|
Stencil Client Patch Browser v4.9.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -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.0-next.
|
|
4
|
+
* v4.30.0-next.40
|
|
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.0-next.
|
|
4
|
+
* v4.30.0-next.40
|
|
5
5
|
*/
|
|
6
|
-
import { y as monaco_editor_core_star } from './arcade-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
import { y as monaco_editor_core_star } from './arcade-defaults-690c65b0.js';
|
|
7
|
+
import './index-33ae02ee.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.0-next.
|
|
4
|
+
* v4.30.0-next.40
|
|
5
5
|
*/
|
|
6
|
-
import { y as monaco_editor_core_star } from './arcade-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
import { y as monaco_editor_core_star } from './arcade-defaults-690c65b0.js';
|
|
7
|
+
import './index-33ae02ee.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.0-next.
|
|
4
|
+
* v4.30.0-next.40
|
|
5
5
|
*/
|
|
6
|
-
import { y as monaco_editor_core_star } from './arcade-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
import { y as monaco_editor_core_star } from './arcade-defaults-690c65b0.js';
|
|
7
|
+
import './index-33ae02ee.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.0-next.
|
|
4
|
+
* v4.30.0-next.40
|
|
5
5
|
*/
|
|
6
|
-
export { a as arcade } from './arcade-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
export { a as arcade } from './arcade-defaults-690c65b0.js';
|
|
7
|
+
import './index-33ae02ee.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.0-next.
|
|
4
|
+
* v4.30.0-next.40
|
|
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-d8d38af2.js';
|
|
7
|
+
import './arcade-defaults-690c65b0.js';
|
|
8
|
+
import './index-33ae02ee.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.0-next.
|
|
4
|
+
* v4.30.0-next.40
|
|
5
5
|
*/
|
|
6
|
-
import { y as monaco_editor_core_star } from './arcade-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
import { y as monaco_editor_core_star } from './arcade-defaults-690c65b0.js';
|
|
7
|
+
import './index-33ae02ee.js';
|
|
8
8
|
|
|
9
9
|
/*!-----------------------------------------------------------------------------
|
|
10
10
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
package/dist/esm/loader.js
CHANGED
|
@@ -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.0-next.
|
|
4
|
+
* v4.30.0-next.40
|
|
5
5
|
*/
|
|
6
|
-
import { b as bootstrapLazy } from './index-
|
|
7
|
-
export { s as setNonce } from './index-
|
|
6
|
+
import { b as bootstrapLazy } from './index-33ae02ee.js';
|
|
7
|
+
export { s as setNonce } from './index-33ae02ee.js';
|
|
8
8
|
|
|
9
9
|
const defineCustomElements = (win, options) => {
|
|
10
10
|
if (typeof window === 'undefined') return undefined;
|
|
@@ -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.0-next.
|
|
4
|
+
* v4.30.0-next.40
|
|
5
5
|
*/
|
|
6
|
-
import { z as typescriptDefaults, y as monaco_editor_core_star } from './arcade-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
import { z as typescriptDefaults, y as monaco_editor_core_star } from './arcade-defaults-690c65b0.js';
|
|
7
|
+
import './index-33ae02ee.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.0-next.
|
|
4
|
+
* v4.30.0-next.40
|
|
5
5
|
*/
|
|
6
|
-
import { y as monaco_editor_core_star } from './arcade-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
import { y as monaco_editor_core_star } from './arcade-defaults-690c65b0.js';
|
|
7
|
+
import './index-33ae02ee.js';
|
|
8
8
|
|
|
9
9
|
/*!-----------------------------------------------------------------------------
|
|
10
10
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
package/dist/loader/cdn.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.0-next.
|
|
4
|
+
* v4.30.0-next.40
|
|
5
5
|
*/
|
|
6
6
|
module.exports = require('../cjs/loader.cjs.js');
|
|
7
7
|
module.exports.applyPolyfills = function() { return Promise.resolve() };
|
package/dist/loader/index.cjs.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.0-next.
|
|
4
|
+
* v4.30.0-next.40
|
|
5
5
|
*/
|
|
6
6
|
module.exports = require('../cjs/loader.cjs.js');
|
|
7
7
|
module.exports.applyPolyfills = function() { return Promise.resolve() };
|
|
@@ -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.0-next.
|
|
4
|
+
* v4.30.0-next.40
|
|
5
5
|
*/
|
|
6
6
|
export * from '../esm/polyfills/index.js';
|
|
7
7
|
export * from '../esm/loader.js';
|
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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.40
|
|
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/polyfills/index.js';
|
|
@@ -24,11 +24,11 @@ export declare class ArcgisArcadeApi implements ComponentInterface {
|
|
|
24
24
|
/**
|
|
25
25
|
* Raised when the close action has been requested
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
arcgisClose: EventEmitter<void>;
|
|
28
28
|
/**
|
|
29
29
|
* Raised when an item has been selected
|
|
30
30
|
*/
|
|
31
|
-
|
|
31
|
+
arcgisItemSelected: EventEmitter<string>;
|
|
32
32
|
componentWillLoad(): Promise<void>;
|
|
33
33
|
disconnectedCallback(): void;
|
|
34
34
|
private _updateApiLibrary;
|
|
@@ -113,11 +113,11 @@ export declare class ArcgisArcadeEditor implements ComponentInterface {
|
|
|
113
113
|
/**
|
|
114
114
|
* Emitted when the script string has changed.
|
|
115
115
|
*/
|
|
116
|
-
|
|
116
|
+
arcgisScriptChange: EventEmitter<string>;
|
|
117
117
|
/**
|
|
118
118
|
* Emitted when the disagnostics collection has changed.
|
|
119
119
|
*/
|
|
120
|
-
|
|
120
|
+
arcgisDiagnosticsChange: EventEmitter<Diagnostic[]>;
|
|
121
121
|
componentWillLoad(): Promise<void>;
|
|
122
122
|
componentDidLoad(): Promise<void>;
|
|
123
123
|
disconnectedCallback(): void;
|
|
@@ -26,11 +26,11 @@ export declare class ArcgisArcadeResults implements ComponentInterface {
|
|
|
26
26
|
/**
|
|
27
27
|
* Raised when the opened result panel has changed
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
arcgisOpenedResultPanelChange: EventEmitter<ResultPanelName>;
|
|
30
30
|
/**
|
|
31
31
|
* Raise when the clode action has been activated
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
arcgisClose: EventEmitter<void>;
|
|
34
34
|
private updateResultPanel;
|
|
35
35
|
private _switchResultPanel;
|
|
36
36
|
private _emitClose;
|
|
@@ -19,11 +19,11 @@ export declare class ArcgisArcadeSuggestions implements ComponentInterface {
|
|
|
19
19
|
/**
|
|
20
20
|
* Raised when close action has been activated
|
|
21
21
|
*/
|
|
22
|
-
|
|
22
|
+
arcgisClose: EventEmitter<void>;
|
|
23
23
|
/**
|
|
24
24
|
* Raised when an item has been selected
|
|
25
25
|
*/
|
|
26
|
-
|
|
26
|
+
arcgisItemSelected: EventEmitter<string>;
|
|
27
27
|
componentWillLoad(): Promise<void>;
|
|
28
28
|
disconnectedCallback(): void;
|
|
29
29
|
private flowFocusHandler;
|
|
@@ -21,11 +21,11 @@ export declare class ArcgisArcadeVariables implements ComponentInterface {
|
|
|
21
21
|
/**
|
|
22
22
|
* Raised when close action has been activated
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
arcgisClose: EventEmitter<void>;
|
|
25
25
|
/**
|
|
26
26
|
* Raised when an item has been selected
|
|
27
27
|
*/
|
|
28
|
-
|
|
28
|
+
arcgisItemSelected: EventEmitter<string>;
|
|
29
29
|
disconnectedCallback(): void;
|
|
30
30
|
private addPanelRenderer;
|
|
31
31
|
private removeLastPanelRenderer;
|
|
@@ -71,7 +71,7 @@ export declare class ArcgisCodeEditor implements ComponentInterface {
|
|
|
71
71
|
/**
|
|
72
72
|
* Emitted when the value has changed (script, code, css, json, etc.)
|
|
73
73
|
*/
|
|
74
|
-
|
|
74
|
+
arcgisValueChange: EventEmitter<string>;
|
|
75
75
|
componentWillLoad(): void;
|
|
76
76
|
componentDidLoad(): void;
|
|
77
77
|
disconnectedCallback(): void;
|