@arcgis/coding-components 4.29.0-beta.31 → 4.29.0-beta.32
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 +1 -1
- package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +14 -15
- package/dist/arcgis-coding-components/assets/code-editor/css.worker.js +8 -12
- package/dist/arcgis-coding-components/assets/code-editor/editor.worker.js +3 -4
- package/dist/arcgis-coding-components/assets/code-editor/html.worker.js +7 -9
- package/dist/arcgis-coding-components/assets/code-editor/json.worker.js +6 -7
- package/dist/arcgis-coding-components/assets/code-editor/ts.worker.js +6 -7
- package/dist/arcgis-coding-components/index.esm.js +1 -1
- package/dist/arcgis-coding-components/{p-65eafaa8.js → p-2643765e.js} +1 -1
- package/dist/arcgis-coding-components/p-28f621f9.js +62 -0
- package/dist/arcgis-coding-components/{p-9b30e8fd.js → p-3c47246c.js} +1 -1
- package/dist/arcgis-coding-components/{p-b22fea94.js → p-4909fbcf.js} +1 -1
- package/dist/arcgis-coding-components/p-5d670bd2.js +2 -0
- package/dist/arcgis-coding-components/{p-d803b04d.js → p-7adf1ed7.js} +1 -1
- package/dist/arcgis-coding-components/{p-c11cd309.js → p-7fd59fc8.js} +2 -2
- package/dist/arcgis-coding-components/{p-97061527.js → p-a4e5ae47.js} +1 -1
- package/dist/arcgis-coding-components/p-cd6d9f14.entry.js +1 -0
- package/dist/arcgis-coding-components/{p-65fb2907.js → p-de643cd8.js} +1 -1
- package/dist/arcgis-coding-components/{p-4e4023ee.js → p-e3586655.js} +1 -1
- package/dist/cjs/{arcade-defaults-f05b9f5a.js → arcade-defaults-f1f3f116.js} +8 -8
- package/dist/cjs/{arcade-mode-91ffbc46.js → arcade-mode-ee9db986.js} +2 -2
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +9 -9
- package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
- package/dist/cjs/{cssMode-86d2760b.js → cssMode-03b33422.js} +2 -2
- package/dist/cjs/{html-5caeb6f1.js → html-f0b8e4e4.js} +2 -2
- package/dist/cjs/{htmlMode-d0da136f.js → htmlMode-8cf2940e.js} +2 -2
- package/dist/cjs/{index-f8a85eb8.js → index-6a382a34.js} +302 -64
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/{javascript-861d4292.js → javascript-7d70e438.js} +3 -3
- package/dist/cjs/{jsonMode-9f832adc.js → jsonMode-f36d8ca4.js} +2 -2
- package/dist/cjs/loader.cjs.js +3 -12
- package/dist/cjs/{tsMode-53e6df0d.js → tsMode-65f0156f.js} +2 -2
- package/dist/cjs/{typescript-a18c2bfa.js → typescript-60a0514e.js} +2 -2
- package/dist/components/arcade-api.js +3 -3
- package/dist/components/arcade-contribution.js +1 -1
- package/dist/components/arcade-results.js +2 -2
- package/dist/components/arcade-suggestions.js +4 -2
- package/dist/components/arcade-variables.js +3 -1
- package/dist/components/arcgis-arcade-editor.js +8 -4
- package/dist/components/code-editor.js +6 -2
- package/dist/components/index.d.ts +5 -8
- package/dist/components/index.js +1 -7
- package/dist/esm/{arcade-defaults-1a326358.js → arcade-defaults-4436aca0.js} +8 -8
- package/dist/esm/{arcade-mode-81a096cc.js → arcade-mode-a8df822b.js} +2 -2
- package/dist/esm/arcgis-arcade-api_6.entry.js +9 -9
- package/dist/esm/arcgis-coding-components.js +4 -4
- package/dist/esm/{cssMode-b30a1209.js → cssMode-f048406d.js} +2 -2
- package/dist/esm/{html-6152c906.js → html-0e4f1b8e.js} +2 -2
- package/dist/esm/{htmlMode-392c6d33.js → htmlMode-c1194a95.js} +2 -2
- package/dist/esm/{index-d4ec142a.js → index-fd6b2fd8.js} +302 -64
- package/dist/esm/index.js +2 -2
- package/dist/esm/{javascript-b05df4b3.js → javascript-ceb16d0f.js} +3 -3
- package/dist/esm/{jsonMode-0104c506.js → jsonMode-c6c644c5.js} +2 -2
- package/dist/esm/loader.js +4 -13
- package/dist/esm/{tsMode-abdafbe1.js → tsMode-55ad0ba1.js} +2 -2
- package/dist/esm/{typescript-9c8f769d.js → typescript-8bb27bc9.js} +2 -2
- package/dist/loader/index.d.ts +2 -2
- package/dist/types/components.d.ts +78 -0
- package/dist/types/stencil-public-runtime.d.ts +53 -17
- package/package.json +11 -11
- package/dist/arcgis-coding-components/p-0fa0a06d.js +0 -2
- package/dist/arcgis-coding-components/p-863090d2.entry.js +0 -1
- package/dist/arcgis-coding-components/p-f214346b.js +0 -62
- package/dist/esm/polyfills/css-shim.js +0 -1
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const arcadeDefaults = require('./arcade-defaults-
|
|
6
|
-
require('./index-
|
|
5
|
+
const arcadeDefaults = require('./arcade-defaults-f1f3f116.js');
|
|
6
|
+
require('./index-6a382a34.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const typescript = require('./typescript-
|
|
4
|
-
require('./arcade-defaults-
|
|
5
|
-
require('./index-
|
|
3
|
+
const typescript = require('./typescript-60a0514e.js');
|
|
4
|
+
require('./arcade-defaults-f1f3f116.js');
|
|
5
|
+
require('./index-6a382a34.js');
|
|
6
6
|
|
|
7
7
|
/*!-----------------------------------------------------------------------------
|
|
8
8
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const arcadeDefaults = require('./arcade-defaults-
|
|
4
|
-
require('./index-
|
|
3
|
+
const arcadeDefaults = require('./arcade-defaults-f1f3f116.js');
|
|
4
|
+
require('./index-6a382a34.js');
|
|
5
5
|
|
|
6
6
|
/*!-----------------------------------------------------------------------------
|
|
7
7
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,20 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
|
|
7
|
-
/*
|
|
8
|
-
Stencil Client Patch Esm v2.22.3 | MIT Licensed | https://stenciljs.com
|
|
9
|
-
*/
|
|
10
|
-
const patchEsm = () => {
|
|
11
|
-
return index.promiseResolve();
|
|
12
|
-
};
|
|
5
|
+
const index = require('./index-6a382a34.js');
|
|
13
6
|
|
|
14
7
|
const defineCustomElements = (win, options) => {
|
|
15
|
-
if (typeof window === 'undefined') return
|
|
16
|
-
return
|
|
17
|
-
return index.bootstrapLazy([["arcgis-arcade-api_6.cjs",[[0,"arcgis-arcade-editor",{"profile":[16],"script":[1],"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"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_standaloneCodeEditor":[32],"_preparingProfile":[32],"_editorProfile":[32],"_showExecutionPanel":[32],"_resultPanel":[32],"_executingScript":[32],"_consoleLogs":[32],"_executionResult":[32],"getScript":[64],"setFocus":[64],"getEditorInstance":[64],"getTestResult":[64],"getOutputType":[64],"updateThemeColors":[64]}],[1,"arcgis-arcade-api",{"hideDocumentationActions":[4,"hide-documentation-actions"],"modelId":[1,"model-id"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_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],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32]}],[1,"arcgis-arcade-suggestions",{"suggestions":[16],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_selectedSuggestion":[32],"_filterValue":[32],"_colorizeStyle":[32]}],[1,"arcgis-arcade-variables",{"loading":[4],"modelId":[1,"model-id"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]}],[0,"arcgis-code-editor",{"value":[1],"language":[1],"modelId":[1,"model-id"],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]}]]]], options);
|
|
18
|
-
});
|
|
8
|
+
if (typeof window === 'undefined') return undefined;
|
|
9
|
+
return index.bootstrapLazy([["arcgis-arcade-api_6.cjs",[[0,"arcgis-arcade-editor",{"profile":[16],"script":[1],"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"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_standaloneCodeEditor":[32],"_preparingProfile":[32],"_editorProfile":[32],"_showExecutionPanel":[32],"_resultPanel":[32],"_executingScript":[32],"_consoleLogs":[32],"_executionResult":[32],"getScript":[64],"setFocus":[64],"getEditorInstance":[64],"getTestResult":[64],"getOutputType":[64],"updateThemeColors":[64]},null,{"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}],[1,"arcgis-arcade-api",{"hideDocumentationActions":[4,"hide-documentation-actions"],"modelId":[1,"model-id"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_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],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32]}],[1,"arcgis-arcade-suggestions",{"suggestions":[16],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_selectedSuggestion":[32],"_filterValue":[32],"_colorizeStyle":[32]},null,{"suggestions":["suggestionsPropChanged"]}],[1,"arcgis-arcade-variables",{"loading":[4],"modelId":[1,"model-id"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}],[0,"arcgis-code-editor",{"value":[1],"language":[1],"modelId":[1,"model-id"],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]},null,{"value":["valuePropChange"],"language":["languagePropChange"],"modelId":["modelIdPropChange"]}]]]], options);
|
|
19
10
|
};
|
|
20
11
|
|
|
21
12
|
exports.setNonce = index.setNonce;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const arcadeDefaults = require('./arcade-defaults-
|
|
4
|
-
require('./index-
|
|
3
|
+
const arcadeDefaults = require('./arcade-defaults-f1f3f116.js');
|
|
4
|
+
require('./index-6a382a34.js');
|
|
5
5
|
|
|
6
6
|
/*!-----------------------------------------------------------------------------
|
|
7
7
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const arcadeDefaults = require('./arcade-defaults-
|
|
4
|
-
require('./index-
|
|
3
|
+
const arcadeDefaults = require('./arcade-defaults-f1f3f116.js');
|
|
4
|
+
require('./index-6a382a34.js');
|
|
5
5
|
|
|
6
6
|
/*!-----------------------------------------------------------------------------
|
|
7
7
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5,7 +5,7 @@ import { f as filterCollection } from './utilities.js';
|
|
|
5
5
|
import { Uri } from 'monaco-editor';
|
|
6
6
|
import { $, F, C, q } from './index2.js';
|
|
7
7
|
import { b as arcadeDefaults } from './arcade-defaults.js';
|
|
8
|
-
import {
|
|
8
|
+
import { g as getArcadeWorker } from './arcade-contribution.js';
|
|
9
9
|
import '@esri/calcite-components/dist/components/calcite-list-item-group.js';
|
|
10
10
|
import '@esri/calcite-components/dist/components/calcite-list-item.js';
|
|
11
11
|
import '@esri/calcite-components/dist/components/calcite-action.js';
|
|
@@ -18,7 +18,7 @@ import '@esri/calcite-components/dist/components/calcite-list.js';
|
|
|
18
18
|
|
|
19
19
|
const arcadeApiCss = ":host{background-color:var(--calcite-ui-foreground-1)}:host .notice-container{margin:var(--calcite-spacing-quarter);padding:var(--calcite-spacing-half);background-color:var(--calcite-ui-foreground-1)}:host .sticky{position:sticky;top:0px;z-index:10}:host calcite-flow{height:100%}:host calcite-block p:first-of-type{margin-top:0}:host calcite-block code{font-family:var(--calcite-code-family)}:host calcite-block pre{direction:ltr;overflow-x:auto;background-color:var(--calcite-ui-foreground-2);padding:var(--calcite-spacing-half)}:host calcite-block pre code{font-size:var(--calcite-font-size--2)}";
|
|
20
20
|
|
|
21
|
-
const ArcgisArcadeApi = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
21
|
+
const ArcgisArcadeApi = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeApi extends HTMLElement {
|
|
22
22
|
constructor() {
|
|
23
23
|
super();
|
|
24
24
|
this.__registerHost();
|
|
@@ -150,7 +150,7 @@ const ArcgisArcadeApi = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
150
150
|
if (!apiItem) {
|
|
151
151
|
return null;
|
|
152
152
|
}
|
|
153
|
-
return (h("calcite-flow-item", { heading: this._t9nStrings?.constantsandfunctions, beforeBack: this._unselectItem, closable: true, onCalciteFlowItemClose: this._emitClose }, this.hideDocumentationActions ? null : (h("calcite-button", { width: "half", slot: "footer
|
|
153
|
+
return (h("calcite-flow-item", { heading: this._t9nStrings?.constantsandfunctions, beforeBack: this._unselectItem, closable: true, onCalciteFlowItemClose: this._emitClose }, this.hideDocumentationActions ? null : (h("calcite-button", { width: "half", slot: "footer", appearance: "outline", kind: "brand", scale: "s", href: apiItem.link, target: "Arcade Help", "icon-start": "information" }, this._t9nStrings?.moreinformation)), h("calcite-button", { width: "half", slot: "footer", appearance: "outline", kind: "brand", "icon-start": "code", scale: "s", onClick: this._emitItemSelectedAndClose, "data-item": apiItem, ref: (e) => e?.setFocus() }, this._t9nStrings?.insert ?? "Insert"), h("calcite-block", { open: true, heading: q(apiItem.completion.detail) }, h("div", { innerHTML: convertMarkdownString(apiItem.completion.documentation) }), apiItem.examples ? (h("div", { ref: (e) => {
|
|
154
154
|
if (!e) {
|
|
155
155
|
return;
|
|
156
156
|
}
|
|
@@ -108,4 +108,4 @@ languages.onLanguage(arcadeDefaults.languageId, async () => {
|
|
|
108
108
|
mode.setupMode(arcadeDefaults);
|
|
109
109
|
});
|
|
110
110
|
|
|
111
|
-
export {
|
|
111
|
+
export { getArcadeDiagnosticService as a, getArcadeWorker as g, setupMonacoEnvironment as s };
|
|
@@ -259,7 +259,7 @@ const expandableTreeItemProps = {
|
|
|
259
259
|
item.expanded = !item.expanded;
|
|
260
260
|
}
|
|
261
261
|
};
|
|
262
|
-
const ArcgisArcadeResults = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
262
|
+
const ArcgisArcadeResults = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeResults extends HTMLElement {
|
|
263
263
|
constructor() {
|
|
264
264
|
super();
|
|
265
265
|
this.__registerHost();
|
|
@@ -475,7 +475,7 @@ const ArcgisArcadeResults = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
|
|
|
475
475
|
}))));
|
|
476
476
|
}
|
|
477
477
|
render() {
|
|
478
|
-
return (h(Host, null, h("header", { class: "flex-row" }, h("calcite-action-bar", { class: "flex-adjustable", layout: "horizontal", scale: "s", expanded: true, "expand-disabled": true }, h("calcite-action-group", {
|
|
478
|
+
return (h(Host, null, h("header", { class: "flex-row" }, h("calcite-action-bar", { class: "flex-adjustable", layout: "horizontal", scale: "s", expanded: true, "expand-disabled": true }, h("calcite-action-group", { scale: "s" }, h("calcite-action", { active: this.openedResultPanel === "output", text: this._t9nStrings?.output ?? "Output", "text-enabled": true, scale: "s", icon: "list-show-all", iconFlipRtl: true, onClick: this._switchResultPanel, "data-panel-name": "output" }), h("calcite-action", { active: this.openedResultPanel === "console", text: this._t9nStrings?.console ?? "Console", "text-enabled": true, scale: "s", icon: "console", iconFlipRtl: true, onClick: this._switchResultPanel, "data-panel-name": "console" }), h("calcite-action", { active: this.openedResultPanel === "log", text: this._t9nStrings?.log ?? "Log", "text-enabled": true, scale: "s", icon: "list", iconFlipRtl: true, onClick: this._switchResultPanel, "data-panel-name": "log" }))), h("calcite-action", { scale: "s", icon: "x", text: this._t9nStrings?.close ?? "", onClick: this._emitClose })), h("article", { class: "flex-adjustable" }, this.loading ? (h("calcite-loader", { scale: "s", type: "indeterminate", label: "" })) : (h("div", { class: "flex-column y-scrollable-container" }, this.renderOutputPanel(), this.renderConsolePanel(), this.renderLogPanel())))));
|
|
479
479
|
}
|
|
480
480
|
static get assetsDirs() { return ["assets"]; }
|
|
481
481
|
get _hostElement() { return this; }
|
|
@@ -24,7 +24,7 @@ function isSuggestionGroups(item) {
|
|
|
24
24
|
|
|
25
25
|
const arcadeSuggestionsCss = ":host{background-color:var(--calcite-ui-foreground-1)}:host .notice-container{margin:var(--calcite-spacing-quarter);padding:var(--calcite-spacing-half);background-color:var(--calcite-ui-foreground-1)}:host .sticky{position:sticky;top:0px;z-index:10}:host calcite-flow{height:100%}:host calcite-block p:first-of-type{margin-top:0}:host calcite-block code{font-family:var(--calcite-code-family)}:host calcite-block pre{direction:ltr;overflow-x:auto;background-color:var(--calcite-ui-foreground-2);padding:var(--calcite-spacing-half)}:host calcite-block pre code{font-size:var(--calcite-font-size--2)}";
|
|
26
26
|
|
|
27
|
-
const ArcgisArcadeSuggestions = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
27
|
+
const ArcgisArcadeSuggestions = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeSuggestions extends HTMLElement {
|
|
28
28
|
constructor() {
|
|
29
29
|
super();
|
|
30
30
|
this.__registerHost();
|
|
@@ -124,7 +124,7 @@ const ArcgisArcadeSuggestions = /*@__PURE__*/ proxyCustomElement(class extends H
|
|
|
124
124
|
if (!suggestion) {
|
|
125
125
|
return null;
|
|
126
126
|
}
|
|
127
|
-
return (h("calcite-flow-item", { heading: this._t9nStrings?.suggestions, closable: true, onCalciteFlowItemClose: this._emitClose, beforeBack: this._beforeBack }, h("calcite-button", { width: "half", slot: "footer
|
|
127
|
+
return (h("calcite-flow-item", { heading: this._t9nStrings?.suggestions, closable: true, onCalciteFlowItemClose: this._emitClose, beforeBack: this._beforeBack }, h("calcite-button", { width: "half", slot: "footer", appearance: "outline", kind: "brand", "icon-start": "code", scale: "s", onClick: this._emitItemSelected, ref: (e) => e?.setFocus(), "data-item": suggestion }, this._t9nStrings?.insert), h("calcite-block", { open: true, heading: suggestion.label, description: suggestion.description }, h("div", { innerHTML: convertMarkdownString(suggestion.documentation) }), h("pre", null, h("code", { ref: async (e) => await colorizeCodeElement(e, suggestion.code) })))));
|
|
128
128
|
}
|
|
129
129
|
render() {
|
|
130
130
|
return (h(Host, null, h("style", null, this._colorizeStyle), h("calcite-flow", { ref: (ref) => this.flowFocusHandler(ref) }, h("calcite-flow-item", { heading: this._t9nStrings?.suggestions, closable: true, onCalciteFlowItemClose: this._emitClose }, h(StickyFilterInput, { filterValue: this._filterValue, onCalciteInputInput: this._updateFilterValue }), h("calcite-list", null, this.renderSuggestionGroups())), this.renderSuggestionFlowItem())));
|
|
@@ -143,6 +143,8 @@ const ArcgisArcadeSuggestions = /*@__PURE__*/ proxyCustomElement(class extends H
|
|
|
143
143
|
"_selectedSuggestion": [32],
|
|
144
144
|
"_filterValue": [32],
|
|
145
145
|
"_colorizeStyle": [32]
|
|
146
|
+
}, undefined, {
|
|
147
|
+
"suggestions": ["suggestionsPropChanged"]
|
|
146
148
|
}]);
|
|
147
149
|
function defineCustomElement() {
|
|
148
150
|
if (typeof customElements === "undefined") {
|
|
@@ -13,7 +13,7 @@ import '@esri/calcite-components/dist/components/calcite-flow.js';
|
|
|
13
13
|
|
|
14
14
|
const arcadeVariablesCss = ":host{background-color:var(--calcite-ui-foreground-1)}:host .notice-container{margin:var(--calcite-spacing-quarter);padding:var(--calcite-spacing-half);background-color:var(--calcite-ui-foreground-1)}:host .sticky{position:sticky;top:0px;z-index:10}:host calcite-flow{height:100%}";
|
|
15
15
|
|
|
16
|
-
const ArcgisArcadeVariables = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
16
|
+
const ArcgisArcadeVariables = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeVariables extends HTMLElement {
|
|
17
17
|
constructor() {
|
|
18
18
|
super();
|
|
19
19
|
this.__registerHost();
|
|
@@ -161,6 +161,8 @@ const ArcgisArcadeVariables = /*@__PURE__*/ proxyCustomElement(class extends HTM
|
|
|
161
161
|
"_mutationCounter": [32],
|
|
162
162
|
"_flowItemRenderers": [32],
|
|
163
163
|
"_filterValue": [32]
|
|
164
|
+
}, undefined, {
|
|
165
|
+
"modelId": ["modelIdPropChanged"]
|
|
164
166
|
}]);
|
|
165
167
|
function defineCustomElement() {
|
|
166
168
|
if (typeof customElements === "undefined") {
|
|
@@ -2,7 +2,7 @@ import { proxyCustomElement, HTMLElement, createEvent, getAssetPath, h as h$1, F
|
|
|
2
2
|
import { editor, KeyCode } from 'monaco-editor';
|
|
3
3
|
import { e as executeScript, D as DevelopersWebSitePath, d as defineCustomElement$5 } from './arcade-results.js';
|
|
4
4
|
import { h, k, P, $, F } from './index2.js';
|
|
5
|
-
import { s as setupMonacoEnvironment,
|
|
5
|
+
import { s as setupMonacoEnvironment, a as getArcadeDiagnosticService } from './arcade-contribution.js';
|
|
6
6
|
import { b as arcadeDefaults } from './arcade-defaults.js';
|
|
7
7
|
import '@esri/calcite-components/dist/components/calcite-action-bar.js';
|
|
8
8
|
import '@esri/calcite-components/dist/components/calcite-action-group.js';
|
|
@@ -71,10 +71,10 @@ function updateThemeColors(theme, colorRules) {
|
|
|
71
71
|
editor.defineTheme(base, { base, inherit: true, rules, colors: {} });
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
const arcadeEditorCss = "arcgis-arcade-editor{display:flex;flex-direction:column;height:100%;width:100%;position:relative;overflow:hidden;border:1px solid var(--calcite-ui-border-3);box-sizing:border-box;background-color:var(--calcite-ui-foreground-1)}arcgis-arcade-editor .flex-adjustable{flex:1 1 auto;overflow:hidden}arcgis-arcade-editor .flex-panel{flex:1 0 auto}arcgis-arcade-editor .position-relative{position:relative}arcgis-arcade-editor .flex-row{display:flex;flex-direction:row;overflow:hidden}arcgis-arcade-editor .flex-column{display:flex;flex-direction:column;overflow:hidden}arcgis-arcade-editor .border-inline-start{border-inline-start:1px solid var(--calcite-ui-border-3);box-sizing:border-box}arcgis-arcade-editor .border-inline-end{border-inline-end:1px solid var(--calcite-ui-border-3);box-sizing:border-box}arcgis-arcade-editor .sticky{position:sticky;top:0px;z-index:10}arcgis-arcade-editor .notice-container{margin:var(--calcite-spacing-quarter);padding:var(--calcite-spacing-half);background-color:var(--calcite-ui-foreground-1);text-align:center}arcgis-arcade-editor .side-action-bar{max-width:25%}arcgis-arcade-editor .side-panel{max-width:45%;width:600px}arcgis-arcade-editor .side-panel calcite-flow{height:100%}arcgis-arcade-editor .main-action-bar{border-bottom:1px solid var(--calcite-ui-border-3);flex:0 0 auto}arcgis-arcade-editor .main-action-bar calcite-action-group{padding-inline-end:var(--calcite-spacing-half)}arcgis-arcade-editor .main-action-bar calcite-action-group calcite-action{padding-inline-end:var(--calcite-spacing-half)}arcgis-arcade-editor .main-action-bar calcite-action-group calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-half)}arcgis-arcade-editor .main-action-bar calcite-action-group:last-child{border-inline-end-width:0px}arcgis-arcade-editor .main-action-bar calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-half)}arcgis-arcade-editor arcgis-arcade-results{border-top:1px solid var(--calcite-ui-border-3);box-sizing:border-box;max-height:50%;min-height:50%;margin-bottom:-1px}arcgis-arcade-editor calcite-flow [slot=footer
|
|
74
|
+
const arcadeEditorCss = "arcgis-arcade-editor{display:flex;flex-direction:column;height:100%;width:100%;position:relative;overflow:hidden;border:1px solid var(--calcite-ui-border-3);box-sizing:border-box;background-color:var(--calcite-ui-foreground-1)}arcgis-arcade-editor .flex-adjustable{flex:1 1 auto;overflow:hidden}arcgis-arcade-editor .flex-panel{flex:1 0 auto}arcgis-arcade-editor .position-relative{position:relative}arcgis-arcade-editor .flex-row{display:flex;flex-direction:row;overflow:hidden}arcgis-arcade-editor .flex-column{display:flex;flex-direction:column;overflow:hidden}arcgis-arcade-editor .border-inline-start{border-inline-start:1px solid var(--calcite-ui-border-3);box-sizing:border-box}arcgis-arcade-editor .border-inline-end{border-inline-end:1px solid var(--calcite-ui-border-3);box-sizing:border-box}arcgis-arcade-editor .sticky{position:sticky;top:0px;z-index:10}arcgis-arcade-editor .notice-container{margin:var(--calcite-spacing-quarter);padding:var(--calcite-spacing-half);background-color:var(--calcite-ui-foreground-1);text-align:center}arcgis-arcade-editor .side-action-bar{max-width:25%}arcgis-arcade-editor .side-panel{max-width:45%;width:600px}arcgis-arcade-editor .side-panel calcite-flow{height:100%}arcgis-arcade-editor .main-action-bar{border-bottom:1px solid var(--calcite-ui-border-3);flex:0 0 auto}arcgis-arcade-editor .main-action-bar calcite-action-group{padding-inline-end:var(--calcite-spacing-half)}arcgis-arcade-editor .main-action-bar calcite-action-group calcite-action{padding-inline-end:var(--calcite-spacing-half)}arcgis-arcade-editor .main-action-bar calcite-action-group calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-half)}arcgis-arcade-editor .main-action-bar calcite-action-group:last-child{border-inline-end-width:0px}arcgis-arcade-editor .main-action-bar calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-half)}arcgis-arcade-editor arcgis-arcade-results{border-top:1px solid var(--calcite-ui-border-3);box-sizing:border-box;max-height:50%;min-height:50%;margin-bottom:-1px}arcgis-arcade-editor calcite-flow [slot=footer]{word-break:break-word}arcgis-arcade-editor calcite-list-item-group calcite-list-item{margin-bottom:1px;box-shadow:0 1px 0 var(--calcite-ui-border-3)}arcgis-arcade-editor calcite-list-item-group calcite-list-item:last-child{box-shadow:none}arcgis-arcade-editor calcite-list-item-group:last-child{margin-bottom:var(--calcite-spacing-1)}";
|
|
75
75
|
|
|
76
76
|
setupArcadeTheme();
|
|
77
|
-
const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
77
|
+
const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeEditor extends HTMLElement {
|
|
78
78
|
constructor() {
|
|
79
79
|
super();
|
|
80
80
|
this.__registerHost();
|
|
@@ -317,7 +317,7 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
|
317
317
|
if (!this.testData) {
|
|
318
318
|
return null;
|
|
319
319
|
}
|
|
320
|
-
return (h$1("calcite-action-bar", { class: "main-action-bar", layout: "horizontal", scale: "s", expanded: true, "expand-disabled": true }, h$1("calcite-action-group", {
|
|
320
|
+
return (h$1("calcite-action-bar", { class: "main-action-bar", layout: "horizontal", scale: "s", expanded: true, "expand-disabled": true }, h$1("calcite-action-group", { scale: "s" }, h$1("calcite-action", { text: this._t9nStrings?.run ?? "Run", "text-enabled": true, icon: "play", scale: "s", loading: this._preparingProfile, onClick: this._executeScript }), this._executionResult ? (h$1("calcite-action", { text: this._t9nStrings?.lastresults ?? "Last results", active: this._showExecutionPanel, "text-enabled": true, icon: "access-string-results", iconFlipRtl: true, scale: "s", onClick: this._toggleShowExecutionPanel })) : null)));
|
|
321
321
|
}
|
|
322
322
|
//#endregion
|
|
323
323
|
//#region Render Main Panel
|
|
@@ -411,6 +411,10 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
|
411
411
|
"getTestResult": [64],
|
|
412
412
|
"getOutputType": [64],
|
|
413
413
|
"updateThemeColors": [64]
|
|
414
|
+
}, undefined, {
|
|
415
|
+
"profile": ["_profileChanged"],
|
|
416
|
+
"testData": ["_testDataChanged"],
|
|
417
|
+
"snippets": ["_snippetChanged"]
|
|
414
418
|
}]);
|
|
415
419
|
function defineCustomElement$1() {
|
|
416
420
|
if (typeof customElements === "undefined") {
|