@arcgis/coding-components 4.30.0-next.99 → 4.31.0-next.2
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 +3 -3
- package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +13 -13
- package/dist/arcgis-coding-components/index.esm.js +3 -3
- package/dist/arcgis-coding-components/{p-6b70d00e.js → p-03ea6cd7.js} +4 -4
- package/dist/arcgis-coding-components/{p-b27225fb.js → p-0c6de9b3.js} +3 -3
- package/dist/arcgis-coding-components/{p-df22caf3.js → p-36fedc23.js} +11 -11
- package/dist/arcgis-coding-components/p-5ef7cce5.js +6 -0
- package/dist/arcgis-coding-components/{p-804fc70c.js → p-60c2a820.js} +3 -3
- package/dist/arcgis-coding-components/{p-09fc6deb.js → p-62ee6251.js} +2 -2
- package/dist/arcgis-coding-components/{p-88c8c547.js → p-7984ea8e.js} +3 -3
- package/dist/arcgis-coding-components/p-81c37dab.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-8e5106fd.js → p-93a97573.js} +4 -4
- package/dist/arcgis-coding-components/{p-71030413.js → p-9eced6fc.js} +3 -3
- package/dist/arcgis-coding-components/{p-c5b5ad43.js → p-bb7e832e.js} +4 -4
- package/dist/arcgis-coding-components/{p-0f86fcd3.js → p-e7ee4d64.js} +4 -4
- package/dist/arcgis-coding-components/{p-8f59b7ab.js → p-e8211ffe.js} +2 -2
- package/dist/cjs/{app-globals-4f0e7eae.js → app-globals-aee5f4b5.js} +2 -2
- package/dist/cjs/{arcade-defaults-57559f4d.js → arcade-defaults-a8d8f8e2.js} +130 -69
- package/dist/cjs/{arcade-mode-5e9d9501.js → arcade-mode-b85ae7d4.js} +6 -6
- package/dist/cjs/{arcgis-arcade-api_6.cjs.entry.js → arcgis-arcade-editor_6.cjs.entry.js} +5090 -5124
- package/dist/cjs/arcgis-coding-components.cjs.js +5 -5
- package/dist/cjs/{css-3b5f7de7.js → css-7cc05f76.js} +2 -2
- package/dist/cjs/{cssMode-ee50e646.js → cssMode-2b0daeae.js} +4 -4
- package/dist/cjs/{html-1414ae85.js → html-f56911e1.js} +4 -4
- package/dist/cjs/{htmlMode-c04fe1a3.js → htmlMode-43eed674.js} +4 -4
- package/dist/cjs/{index-aa7289d7.js → index-b34238a6.js} +4 -4
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/{javascript-f871d3e1.js → javascript-5115cb76.js} +5 -5
- package/dist/cjs/{jsonMode-d0bba5f8.js → jsonMode-550dda36.js} +4 -4
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{tsMode-2cee8df6.js → tsMode-336306a9.js} +4 -4
- package/dist/cjs/{typescript-e699bcbb.js → typescript-b395242f.js} +4 -4
- package/dist/components/arcade-defaults.js +107 -48
- package/dist/components/arcade-mode.js +4 -4
- package/dist/components/arcade-results.js +5 -5
- package/dist/components/arcade-suggestions.js +6 -6
- package/dist/components/arcade-variables.js +3 -3
- package/dist/components/arcgis-arcade-editor.js +18 -19
- package/dist/components/arcgis-arcade-results.js +2 -2
- package/dist/components/arcgis-arcade-suggestions.js +2 -2
- package/dist/components/arcgis-arcade-variables.js +2 -2
- package/dist/components/arcgis-assets.d.ts +2 -2
- package/dist/components/arcgis-assets.js +2 -2
- package/dist/components/arcgis-code-editor.js +2 -2
- package/dist/components/arcgis-language-api-panel.d.ts +11 -0
- package/dist/components/arcgis-language-api-panel.js +11 -0
- package/dist/components/chunk-IHYYRFLQ.js +3 -3
- package/dist/components/code-editor.js +144 -7
- package/dist/components/fields.js +2 -2
- package/dist/components/index.js +2 -2
- package/dist/components/index2.js +3 -3
- package/dist/components/{arcade-api.js → language-api-panel.js} +27 -29
- package/dist/components/markdown.js +3 -3
- package/dist/components/useT9n.js +3 -3
- package/dist/components/utilities.js +2 -2
- package/dist/esm/{app-globals-1f81b3b1.js → app-globals-59faaf33.js} +2 -2
- package/dist/esm/{arcade-defaults-73fede8d.js → arcade-defaults-9eb28407.js} +129 -70
- package/dist/esm/{arcade-mode-3719f850.js → arcade-mode-5d46035e.js} +6 -6
- package/dist/esm/{arcgis-arcade-api_6.entry.js → arcgis-arcade-editor_6.entry.js} +5087 -5121
- package/dist/esm/arcgis-coding-components.js +6 -6
- package/dist/esm/{css-a2a21514.js → css-e257dc49.js} +2 -2
- package/dist/esm/{cssMode-a8d4806a.js → cssMode-c11f7f40.js} +4 -4
- package/dist/esm/{html-7e9fbd0f.js → html-a6c37a99.js} +4 -4
- package/dist/esm/{htmlMode-f2cf3793.js → htmlMode-1270bc7d.js} +4 -4
- package/dist/esm/{index-3f3310e0.js → index-a970952c.js} +4 -4
- package/dist/esm/index.js +4 -4
- package/dist/esm/{javascript-a6285ee9.js → javascript-ee179624.js} +5 -5
- package/dist/esm/{jsonMode-f88952f9.js → jsonMode-07502ccb.js} +4 -4
- package/dist/esm/loader.js +6 -6
- package/dist/esm/{tsMode-764b2d3b.js → tsMode-96749a12.js} +4 -4
- package/dist/esm/{typescript-7eaebbd1.js → typescript-a3cf9881.js} +4 -4
- package/dist/loader/cdn.js +2 -2
- package/dist/loader/index.cjs.js +2 -2
- package/dist/loader/index.es2017.js +2 -2
- package/dist/loader/index.js +2 -2
- package/dist/types/components/{arcade-api/arcade-api.d.ts → language-api-panel/language-api-panel.d.ts} +5 -3
- package/dist/types/components/{arcade-api → language-api-panel}/t9n-types.d.ts +1 -1
- package/dist/types/components.d.ts +57 -53
- package/dist/types/dependencies.d.ts +25 -0
- package/dist/types/utils/arcade-monaco/arcade-contribution.d.ts +1 -24
- package/dist/types/utils/arcade-monaco/arcade-defaults.d.ts +12 -49
- package/dist/types/utils/arcade-monaco/arcade-language-features.d.ts +5 -4
- package/dist/types/utils/arcade-monaco/arcade-mode.d.ts +3 -2
- package/dist/types/utils/arcade-monaco/arcade-service-accessors.d.ts +31 -0
- package/dist/types/utils/arcade-monaco/arcade-worker-manager.d.ts +3 -2
- package/dist/types/utils/arcade-monaco/arcade.worker.d.ts +5 -5
- package/dist/types/utils/arcade-monaco/types.d.ts +6 -35
- package/dist/types/utils/language-defaults-base.d.ts +76 -0
- package/package.json +11 -10
- package/dist/arcgis-coding-components/p-46fac9d8.js +0 -6
- package/dist/arcgis-coding-components/p-f7fcef66.entry.js +0 -6
- package/dist/components/arcade-contribution.js +0 -181
- package/dist/components/arcgis-arcade-api.d.ts +0 -11
- package/dist/components/arcgis-arcade-api.js +0 -11
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.ar.json → language-api-panel/t9n/language-api-panel.t9n.ar.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.bg.json → language-api-panel/t9n/language-api-panel.t9n.bg.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.bs.json → language-api-panel/t9n/language-api-panel.t9n.bs.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.ca.json → language-api-panel/t9n/language-api-panel.t9n.ca.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.cs.json → language-api-panel/t9n/language-api-panel.t9n.cs.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.da.json → language-api-panel/t9n/language-api-panel.t9n.da.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.de.json → language-api-panel/t9n/language-api-panel.t9n.de.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.el.json → language-api-panel/t9n/language-api-panel.t9n.el.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.en.json → language-api-panel/t9n/language-api-panel.t9n.en.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.es.json → language-api-panel/t9n/language-api-panel.t9n.es.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.et.json → language-api-panel/t9n/language-api-panel.t9n.et.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.fi.json → language-api-panel/t9n/language-api-panel.t9n.fi.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.fr.json → language-api-panel/t9n/language-api-panel.t9n.fr.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.he.json → language-api-panel/t9n/language-api-panel.t9n.he.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.hr.json → language-api-panel/t9n/language-api-panel.t9n.hr.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.hu.json → language-api-panel/t9n/language-api-panel.t9n.hu.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.id.json → language-api-panel/t9n/language-api-panel.t9n.id.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.it.json → language-api-panel/t9n/language-api-panel.t9n.it.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.ja.json → language-api-panel/t9n/language-api-panel.t9n.ja.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.ko.json → language-api-panel/t9n/language-api-panel.t9n.ko.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.lt.json → language-api-panel/t9n/language-api-panel.t9n.lt.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.lv.json → language-api-panel/t9n/language-api-panel.t9n.lv.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.nb.json → language-api-panel/t9n/language-api-panel.t9n.nb.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.nl.json → language-api-panel/t9n/language-api-panel.t9n.nl.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.pl.json → language-api-panel/t9n/language-api-panel.t9n.pl.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.pt-BR.json → language-api-panel/t9n/language-api-panel.t9n.pt-BR.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.pt-PT.json → language-api-panel/t9n/language-api-panel.t9n.pt-PT.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.ro.json → language-api-panel/t9n/language-api-panel.t9n.ro.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.ru.json → language-api-panel/t9n/language-api-panel.t9n.ru.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.sk.json → language-api-panel/t9n/language-api-panel.t9n.sk.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.sl.json → language-api-panel/t9n/language-api-panel.t9n.sl.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.sr.json → language-api-panel/t9n/language-api-panel.t9n.sr.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.sv.json → language-api-panel/t9n/language-api-panel.t9n.sv.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.th.json → language-api-panel/t9n/language-api-panel.t9n.th.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.tr.json → language-api-panel/t9n/language-api-panel.t9n.tr.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.uk.json → language-api-panel/t9n/language-api-panel.t9n.uk.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.vi.json → language-api-panel/t9n/language-api-panel.t9n.vi.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.zh-CN.json → language-api-panel/t9n/language-api-panel.t9n.zh-CN.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.zh-HK.json → language-api-panel/t9n/language-api-panel.t9n.zh-HK.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.zh-TW.json → language-api-panel/t9n/language-api-panel.t9n.zh-TW.json} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.
|
|
4
|
-
* v4.
|
|
3
|
+
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
+
* v4.31.0-next.2
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
|
10
|
-
const index = require('./index-
|
|
11
|
-
const appGlobals = require('./app-globals-
|
|
10
|
+
const index = require('./index-b34238a6.js');
|
|
11
|
+
const appGlobals = require('./app-globals-aee5f4b5.js');
|
|
12
12
|
|
|
13
13
|
/*
|
|
14
14
|
Stencil Client Patch Browser v4.17.1 | MIT Licensed | https://stenciljs.com
|
|
@@ -24,7 +24,7 @@ var patchBrowser = () => {
|
|
|
24
24
|
|
|
25
25
|
patchBrowser().then(async (options) => {
|
|
26
26
|
await appGlobals.globalScripts();
|
|
27
|
-
return index.bootstrapLazy([["arcgis-arcade-
|
|
27
|
+
return index.bootstrapLazy([["arcgis-arcade-editor_6.cjs",[[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-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"],"options":[16],"editorInstance":[16],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]},null,{"language":["languagePropChange"],"modelId":["modelIdPropChange"],"options":["optionsPropChange"]}],[1,"arcgis-language-api-panel",{"hideDocumentationActions":[4,"hide-documentation-actions"],"modelId":[1,"model-id"],"languageDefaults":[16],"_selectedApiItem":[32],"_filterValue":[32],"_colorizeStyle":[32],"_preparingApi":[32],"_apiLibrary":[32]}]]]], options);
|
|
28
28
|
});
|
|
29
29
|
|
|
30
30
|
exports.setNonce = index.setNonce;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.
|
|
4
|
-
* v4.
|
|
3
|
+
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
+
* v4.31.0-next.2
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.
|
|
4
|
-
* v4.
|
|
3
|
+
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
+
* v4.31.0-next.2
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const arcadeDefaults = require('./arcade-defaults-
|
|
9
|
-
require('./index-
|
|
8
|
+
const arcadeDefaults = require('./arcade-defaults-a8d8f8e2.js');
|
|
9
|
+
require('./index-b34238a6.js');
|
|
10
10
|
|
|
11
11
|
/*!-----------------------------------------------------------------------------
|
|
12
12
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.
|
|
4
|
-
* v4.
|
|
3
|
+
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
+
* v4.31.0-next.2
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const arcadeDefaults = require('./arcade-defaults-
|
|
9
|
-
require('./index-
|
|
8
|
+
const arcadeDefaults = require('./arcade-defaults-a8d8f8e2.js');
|
|
9
|
+
require('./index-b34238a6.js');
|
|
10
10
|
|
|
11
11
|
/*!-----------------------------------------------------------------------------
|
|
12
12
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.
|
|
4
|
-
* v4.
|
|
3
|
+
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
+
* v4.31.0-next.2
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const arcadeDefaults = require('./arcade-defaults-
|
|
9
|
-
require('./index-
|
|
8
|
+
const arcadeDefaults = require('./arcade-defaults-a8d8f8e2.js');
|
|
9
|
+
require('./index-b34238a6.js');
|
|
10
10
|
|
|
11
11
|
/*!-----------------------------------------------------------------------------
|
|
12
12
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.
|
|
4
|
-
* v4.
|
|
3
|
+
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
+
* v4.31.0-next.2
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
@@ -1213,10 +1213,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1213
1213
|
}
|
|
1214
1214
|
switch(bundleId) {
|
|
1215
1215
|
|
|
1216
|
-
case 'arcgis-arcade-
|
|
1216
|
+
case 'arcgis-arcade-editor_6.cjs':
|
|
1217
1217
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1218
1218
|
/* webpackMode: "lazy" */
|
|
1219
|
-
'./arcgis-arcade-
|
|
1219
|
+
'./arcgis-arcade-editor_6.cjs.entry.js')); }).then(processMod, consoleError);
|
|
1220
1220
|
}
|
|
1221
1221
|
}
|
|
1222
1222
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.
|
|
4
|
-
* v4.
|
|
3
|
+
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
+
* v4.31.0-next.2
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
|
10
|
-
const arcadeDefaults = require('./arcade-defaults-
|
|
11
|
-
require('./index-
|
|
10
|
+
const arcadeDefaults = require('./arcade-defaults-a8d8f8e2.js');
|
|
11
|
+
require('./index-b34238a6.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.
|
|
4
|
-
* v4.
|
|
3
|
+
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
+
* v4.31.0-next.2
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const typescript = require('./typescript-
|
|
9
|
-
require('./arcade-defaults-
|
|
10
|
-
require('./index-
|
|
8
|
+
const typescript = require('./typescript-b395242f.js');
|
|
9
|
+
require('./arcade-defaults-a8d8f8e2.js');
|
|
10
|
+
require('./index-b34238a6.js');
|
|
11
11
|
|
|
12
12
|
/*!-----------------------------------------------------------------------------
|
|
13
13
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.
|
|
4
|
-
* v4.
|
|
3
|
+
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
+
* v4.31.0-next.2
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const arcadeDefaults = require('./arcade-defaults-
|
|
9
|
-
require('./index-
|
|
8
|
+
const arcadeDefaults = require('./arcade-defaults-a8d8f8e2.js');
|
|
9
|
+
require('./index-b34238a6.js');
|
|
10
10
|
|
|
11
11
|
/*!-----------------------------------------------------------------------------
|
|
12
12
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.
|
|
4
|
-
* v4.
|
|
3
|
+
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
+
* v4.31.0-next.2
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
|
10
|
-
const index = require('./index-
|
|
11
|
-
const appGlobals = require('./app-globals-
|
|
10
|
+
const index = require('./index-b34238a6.js');
|
|
11
|
+
const appGlobals = require('./app-globals-aee5f4b5.js');
|
|
12
12
|
|
|
13
13
|
const defineCustomElements = async (win, options) => {
|
|
14
14
|
if (typeof window === 'undefined') return undefined;
|
|
15
15
|
await appGlobals.globalScripts();
|
|
16
|
-
return index.bootstrapLazy([["arcgis-arcade-
|
|
16
|
+
return index.bootstrapLazy([["arcgis-arcade-editor_6.cjs",[[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-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"],"options":[16],"editorInstance":[16],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]},null,{"language":["languagePropChange"],"modelId":["modelIdPropChange"],"options":["optionsPropChange"]}],[1,"arcgis-language-api-panel",{"hideDocumentationActions":[4,"hide-documentation-actions"],"modelId":[1,"model-id"],"languageDefaults":[16],"_selectedApiItem":[32],"_filterValue":[32],"_colorizeStyle":[32],"_preparingApi":[32],"_apiLibrary":[32]}]]]], options);
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
exports.setNonce = index.setNonce;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.
|
|
4
|
-
* v4.
|
|
3
|
+
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
+
* v4.31.0-next.2
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const arcadeDefaults = require('./arcade-defaults-
|
|
9
|
-
require('./index-
|
|
8
|
+
const arcadeDefaults = require('./arcade-defaults-a8d8f8e2.js');
|
|
9
|
+
require('./index-b34238a6.js');
|
|
10
10
|
|
|
11
11
|
/*!-----------------------------------------------------------------------------
|
|
12
12
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.
|
|
4
|
-
* v4.
|
|
3
|
+
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
+
* v4.31.0-next.2
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const arcadeDefaults = require('./arcade-defaults-
|
|
9
|
-
require('./index-
|
|
8
|
+
const arcadeDefaults = require('./arcade-defaults-a8d8f8e2.js');
|
|
9
|
+
require('./index-b34238a6.js');
|
|
10
10
|
|
|
11
11
|
/*!-----------------------------------------------------------------------------
|
|
12
12
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.
|
|
4
|
-
* v4.
|
|
3
|
+
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
+
* v4.31.0-next.2
|
|
5
5
|
*/
|
|
6
6
|
import { Emitter, Uri } from 'monaco-editor';
|
|
7
7
|
import { CompletionItemKind, InsertTextMode, InsertTextFormat } from 'vscode-languageserver-types';
|
|
@@ -1462,32 +1462,58 @@ async function convertToEditorProfileDefinition(predefinedProfile, locale = "en"
|
|
|
1462
1462
|
return editorProfile;
|
|
1463
1463
|
}
|
|
1464
1464
|
|
|
1465
|
-
|
|
1465
|
+
/**
|
|
1466
|
+
* Returns the arcade diagnostic service.
|
|
1467
|
+
* Example:
|
|
1468
|
+
* ```ts
|
|
1469
|
+
* const diagnosticService = await getArcadeDiagnosticService();
|
|
1470
|
+
* diagnosticService.onDidChangeDiagnostics(({uri, diaganostics }) => {
|
|
1471
|
+
* // Filter the diagnostics for the uri of interest
|
|
1472
|
+
* // Do something with the diagnostics
|
|
1473
|
+
* });
|
|
1474
|
+
* ```
|
|
1475
|
+
*/
|
|
1476
|
+
async function getArcadeDiagnosticService() {
|
|
1477
|
+
const mode = await getMode();
|
|
1478
|
+
return mode.getArcadeDiagnosticService();
|
|
1479
|
+
}
|
|
1480
|
+
/**
|
|
1481
|
+
* Returns the arcade worker for the model.
|
|
1482
|
+
* Example:
|
|
1483
|
+
* ```ts
|
|
1484
|
+
* const arcadeWorker = await getArcadeWorker(model.uri);
|
|
1485
|
+
* ```
|
|
1486
|
+
* @returns arcade worker
|
|
1487
|
+
*/
|
|
1488
|
+
async function getArcadeWorker(uri) {
|
|
1489
|
+
const mode = await getMode();
|
|
1490
|
+
return await mode.getArcadeWorker(uri);
|
|
1491
|
+
}
|
|
1492
|
+
/**
|
|
1493
|
+
* Request the arcade mode
|
|
1494
|
+
* @returns arcade mode module
|
|
1495
|
+
*/
|
|
1496
|
+
async function getMode() {
|
|
1497
|
+
return await import('./arcade-mode.js');
|
|
1498
|
+
}
|
|
1499
|
+
|
|
1500
|
+
// this file contains the building blocks for a language default provider
|
|
1466
1501
|
const defaultContext = {
|
|
1467
1502
|
locale: "en",
|
|
1468
1503
|
};
|
|
1469
|
-
class
|
|
1504
|
+
class LanguageDefaultsBase {
|
|
1470
1505
|
constructor() {
|
|
1471
|
-
|
|
1472
|
-
|
|
1506
|
+
// #endregion
|
|
1507
|
+
// #region Protected properties
|
|
1473
1508
|
this._onDidChange = new Emitter();
|
|
1474
1509
|
this._profileMap = new Map();
|
|
1475
1510
|
this._apiContextMap = new Map();
|
|
1476
1511
|
this._onModelContextDidChange = new Emitter();
|
|
1477
1512
|
this._onDidModelContextChangeTimeout = -1;
|
|
1513
|
+
// #endregion
|
|
1478
1514
|
}
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
}
|
|
1482
|
-
get onModelContextDidChange() {
|
|
1483
|
-
return this._onModelContextDidChange.event;
|
|
1484
|
-
}
|
|
1485
|
-
get languageId() {
|
|
1486
|
-
return this._languageId;
|
|
1487
|
-
}
|
|
1488
|
-
get languageOptions() {
|
|
1489
|
-
return this._languageOptions;
|
|
1490
|
-
}
|
|
1515
|
+
// #endregion
|
|
1516
|
+
// #region Protected methods
|
|
1491
1517
|
_fireModelContextDidChange(key) {
|
|
1492
1518
|
if (this._onDidModelContextChangeTimeout !== -1) {
|
|
1493
1519
|
return;
|
|
@@ -1503,35 +1529,13 @@ class ArcadeLanguageServiceDefaults {
|
|
|
1503
1529
|
}
|
|
1504
1530
|
return modelId.toString();
|
|
1505
1531
|
}
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
* @param locale The locale to use for the model context.
|
|
1514
|
-
* @returns The EditorProfile for the model.
|
|
1515
|
-
*/
|
|
1516
|
-
async setProfileForModel(modelId, definition, apiContext = { locale: "en" }) {
|
|
1517
|
-
// Convert pre-defined profile to a runtime profile
|
|
1518
|
-
if (isPredefinedProfile(definition)) {
|
|
1519
|
-
definition = await convertToEditorProfileDefinition(definition, apiContext.locale);
|
|
1520
|
-
}
|
|
1521
|
-
const intlStrings = await fetchT9NStringsBundle(apiContext.locale, getAssetPath("./assets/arcade-language/t9n"), "profile.t9n.");
|
|
1522
|
-
if (!intlStrings) {
|
|
1523
|
-
throw new Error(`Failed to load the language bundle for ${apiContext.locale}`);
|
|
1524
|
-
}
|
|
1525
|
-
this.disposeEditorProfileForModel(modelId);
|
|
1526
|
-
const key = this._getApiKey(modelId);
|
|
1527
|
-
const editorProfile = new EditorProfile(definition, intlStrings);
|
|
1528
|
-
this._profileMap.set(key, editorProfile);
|
|
1529
|
-
const apiProfile = await editorProfile.toLSProfile();
|
|
1530
|
-
this.updateApiContextForModel(modelId, {
|
|
1531
|
-
locale: apiContext.locale,
|
|
1532
|
-
profile: apiProfile,
|
|
1533
|
-
snippets: apiContext.snippets,
|
|
1534
|
-
});
|
|
1532
|
+
// #endregion
|
|
1533
|
+
// #region Public methods
|
|
1534
|
+
get onDidChange() {
|
|
1535
|
+
return this._onDidChange.event;
|
|
1536
|
+
}
|
|
1537
|
+
get languageOptions() {
|
|
1538
|
+
return this._languageOptions;
|
|
1535
1539
|
}
|
|
1536
1540
|
/**
|
|
1537
1541
|
* Dispose the editor profile for the given model id.
|
|
@@ -1580,6 +1584,51 @@ class ArcadeLanguageServiceDefaults {
|
|
|
1580
1584
|
this._apiContextMap.set(key, { ...currentApiContext, ...apiContext });
|
|
1581
1585
|
this._fireModelContextDidChange(key);
|
|
1582
1586
|
}
|
|
1587
|
+
get onModelContextDidChange() {
|
|
1588
|
+
return this._onModelContextDidChange.event;
|
|
1589
|
+
}
|
|
1590
|
+
get languageId() {
|
|
1591
|
+
return this._languageId;
|
|
1592
|
+
}
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1595
|
+
const arcadeLanguageId = "arcade";
|
|
1596
|
+
class ArcadeLanguageServiceDefaults extends LanguageDefaultsBase {
|
|
1597
|
+
constructor() {
|
|
1598
|
+
super(...arguments);
|
|
1599
|
+
this._languageId = arcadeLanguageId;
|
|
1600
|
+
this._languageOptions = {};
|
|
1601
|
+
}
|
|
1602
|
+
/**
|
|
1603
|
+
* Create an EditorProfile for the given model id using the given definition and locale.
|
|
1604
|
+
* The EditorProfile is used by the the Arcade Language service as well by the cosing components.
|
|
1605
|
+
* The definition can be a pre-defined profile or an editor profile definition.
|
|
1606
|
+
* If the locale is not provided then the 'en' locale is used.
|
|
1607
|
+
* @param modelId The model id for which to create the context.
|
|
1608
|
+
* @param definition The definition to use for the model context.
|
|
1609
|
+
* @param locale The locale to use for the model context.
|
|
1610
|
+
* @returns The EditorProfile for the model.
|
|
1611
|
+
*/
|
|
1612
|
+
async setProfileForModel(modelId, definition, apiContext = { locale: "en" }) {
|
|
1613
|
+
// Convert pre-defined profile to a runtime profile
|
|
1614
|
+
if (isPredefinedProfile(definition)) {
|
|
1615
|
+
definition = await convertToEditorProfileDefinition(definition, apiContext.locale);
|
|
1616
|
+
}
|
|
1617
|
+
const intlStrings = await fetchT9NStringsBundle(apiContext.locale, getAssetPath("./assets/arcade-language/t9n"), "profile.t9n.");
|
|
1618
|
+
if (!intlStrings) {
|
|
1619
|
+
throw new Error(`Failed to load the language bundle for ${apiContext.locale}`);
|
|
1620
|
+
}
|
|
1621
|
+
this.disposeEditorProfileForModel(modelId);
|
|
1622
|
+
const key = this._getApiKey(modelId);
|
|
1623
|
+
const editorProfile = new EditorProfile(definition, intlStrings);
|
|
1624
|
+
this._profileMap.set(key, editorProfile);
|
|
1625
|
+
const apiProfile = await editorProfile.toLSProfile();
|
|
1626
|
+
this.updateApiContextForModel(modelId, {
|
|
1627
|
+
locale: apiContext.locale,
|
|
1628
|
+
profile: apiProfile,
|
|
1629
|
+
snippets: apiContext.snippets,
|
|
1630
|
+
});
|
|
1631
|
+
}
|
|
1583
1632
|
/**
|
|
1584
1633
|
* Set or update the Arcade language service options.
|
|
1585
1634
|
* @param languageOptions The language options to set.
|
|
@@ -1594,10 +1643,20 @@ class ArcadeLanguageServiceDefaults {
|
|
|
1594
1643
|
this._languageOptions = { ...this._languageOptions, ...languageOptions };
|
|
1595
1644
|
this._onDidChange.fire(this);
|
|
1596
1645
|
}
|
|
1646
|
+
/**
|
|
1647
|
+
* Gets the API library for the given model id.
|
|
1648
|
+
* @param modelId The model id for which to get the API library.
|
|
1649
|
+
* @returns The API library for the model.
|
|
1650
|
+
*/
|
|
1651
|
+
async getApiLibrary(modelId) {
|
|
1652
|
+
const uri = Uri.parse(modelId);
|
|
1653
|
+
const worker = await getArcadeWorker(uri);
|
|
1654
|
+
return await worker.getApiLibrary(this.getApiContextForModel(uri));
|
|
1655
|
+
}
|
|
1597
1656
|
}
|
|
1598
1657
|
const arcadeDefaults = new ArcadeLanguageServiceDefaults();
|
|
1599
1658
|
const arcade = {
|
|
1600
1659
|
setProfileForModel: arcadeDefaults.setProfileForModel.bind(arcadeDefaults),
|
|
1601
1660
|
};
|
|
1602
1661
|
|
|
1603
|
-
export { arcade as a, arcadeDefaults as b };
|
|
1662
|
+
export { arcade as a, arcadeDefaults as b, getMode as c, getArcadeDiagnosticService as g };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.
|
|
4
|
-
* v4.
|
|
3
|
+
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
+
* v4.31.0-next.2
|
|
5
5
|
*/
|
|
6
6
|
import { editor, MarkerSeverity, Range, languages, Emitter } from 'monaco-editor';
|
|
7
7
|
import { CompletionItemKind, DiagnosticSeverity, InsertTextFormat } from 'vscode-languageserver-types';
|
|
8
8
|
import { u as debounce } from './index2.js';
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var V={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"},Ee=["++","--"],Je=["-","+","!","~"],Qe=["=","/=","*=","%=","+=","-="],Ze=["||","&&"],Lt=["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"];var U=[[],[],[]];Ee.forEach(t=>U[t.length-1]?.push(t));Je.forEach(t=>U[t.length-1]?.push(t));Ze.forEach(t=>U[t.length-1]?.push(t));Qe.forEach(t=>U[t.length-1]?.push(t));Lt.forEach(t=>U[t.length-1]?.push(t));var ft=Object.values(f),gt=Object.values(V);gt.map(t=>({label:t,kind:CompletionItemKind.Constant}));ft.map(t=>({label:t,kind:CompletionItemKind.Keyword}));
|
|
11
11
|
|
|
12
12
|
const operators = [
|
|
13
13
|
"<=",
|
|
@@ -82,7 +82,7 @@ const arcadeMonarchLanguage = {
|
|
|
82
82
|
// builtinFunctions: [...arcadeService.FunctionNames],
|
|
83
83
|
// Arcade keywords. 'from' is a special case as we want to treat it as a keyword in
|
|
84
84
|
// import statement but as an identifer in var statement.
|
|
85
|
-
keywords:
|
|
85
|
+
keywords: ft.filter((k) => k !== "from"),
|
|
86
86
|
operators,
|
|
87
87
|
constants: ["true", "false", "null"],
|
|
88
88
|
// we include these common regular expressions
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.
|
|
4
|
-
* v4.
|
|
3
|
+
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
+
* v4.31.0-next.2
|
|
5
5
|
*/
|
|
6
|
-
import { proxyCustomElement, HTMLElement, createEvent,
|
|
6
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Fragment, Host, forceUpdate } from '@stencil/core/internal/client';
|
|
7
7
|
import { g as importArcade, s as supportedFields } from './fields.js';
|
|
8
8
|
import { u as useControllerManager } from './chunk-IHYYRFLQ.js';
|
|
9
|
-
import { s as setValuesInString,
|
|
9
|
+
import { s as setValuesInString, q as quoteString } from './index2.js';
|
|
10
10
|
import { u as useT9n } from './useT9n.js';
|
|
11
11
|
import "@esri/calcite-components/dist/components/calcite-tree.js";
|
|
12
12
|
import "@esri/calcite-components/dist/components/calcite-tree-item.js";
|
|
@@ -469,7 +469,7 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
|
|
|
469
469
|
}))) : null));
|
|
470
470
|
}
|
|
471
471
|
render() {
|
|
472
|
-
return (h(Host, { key: 'a614339d095dcaa6ba426f3fc104f3628979a019' }, h("header", { key: 'cafdb89380b6a1db8fb478ef61d8dc328907977d', class: "flex-row" }, h("calcite-action-bar", { key: '542065aba5cc9e26ee9259c47e8c067d39aee748', class: "flex-adjustable", layout: "horizontal", scale: "s", expanded: true, "expand-disabled": true }, h("calcite-action-group", { key: 'ca20537be7a679c37ae72ba6556a2448c3ff3a3b', scale: "s" }, h("calcite-action", { key: '
|
|
472
|
+
return (h(Host, { key: 'a614339d095dcaa6ba426f3fc104f3628979a019' }, h("header", { key: 'cafdb89380b6a1db8fb478ef61d8dc328907977d', class: "flex-row" }, h("calcite-action-bar", { key: '542065aba5cc9e26ee9259c47e8c067d39aee748', class: "flex-adjustable", layout: "horizontal", scale: "s", expanded: true, "expand-disabled": true }, h("calcite-action-group", { key: 'ca20537be7a679c37ae72ba6556a2448c3ff3a3b', scale: "s" }, h("calcite-action", { key: 'b9bdd5a0687931d2b40103ec1e506b18292d2bfa', active: this.openedResultPanel === "output", text: this.messages.output ?? "Output", textEnabled: true, scale: "s", icon: "list-show-all", iconFlipRtl: true, onClick: this._switchResultPanel, "data-panel-name": "output" }), h("calcite-action", { key: '74fc4b880b1a60221b06ea758c45bc965723b3f0', active: this.openedResultPanel === "console", text: this.messages.console ?? "Console", textEnabled: true, scale: "s", icon: "console", iconFlipRtl: true, onClick: this._switchResultPanel, "data-panel-name": "console" }), h("calcite-action", { key: 'fc747cc2177d5fcd08ba1dcfa052893e963b28c0', active: this.openedResultPanel === "log", text: this.messages.log ?? "Log", textEnabled: true, scale: "s", icon: "list", iconFlipRtl: true, onClick: this._switchResultPanel, "data-panel-name": "log" }))), h("calcite-action", { key: '6fd3159fd471b10d76f7906fec19298301126829', scale: "s", icon: "x", text: this.messages.close ?? "", onClick: this._emitClose })), h("article", { key: 'a60c039cec36a4408044e37d8b46d29bcda6e6a3', 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())))));
|
|
473
473
|
}
|
|
474
474
|
static get assetsDirs() { return ["assets"]; }
|
|
475
475
|
get el() { return this; }
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.
|
|
4
|
-
* v4.
|
|
3
|
+
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
+
* v4.31.0-next.2
|
|
5
5
|
*/
|
|
6
6
|
import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
|
|
7
|
-
import { g as generateColorizeStyles, o as onColorizeThemeChanged, c as convertMarkdownString,
|
|
7
|
+
import { g as generateColorizeStyles, o as onColorizeThemeChanged, c as convertMarkdownString, a as colorizeCodeElement } from './markdown.js';
|
|
8
8
|
import { f as filterCollection } from './utilities.js';
|
|
9
9
|
import { u as useControllerManager } from './chunk-IHYYRFLQ.js';
|
|
10
|
-
import {
|
|
10
|
+
import { t as setFocusOnElement } from './index2.js';
|
|
11
11
|
import { u as useT9n } from './useT9n.js';
|
|
12
12
|
import "@esri/calcite-components/dist/components/calcite-list-item-group.js";
|
|
13
13
|
import "@esri/calcite-components/dist/components/calcite-list-item.js";
|
|
@@ -132,10 +132,10 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
|
|
|
132
132
|
if (!suggestion) {
|
|
133
133
|
return null;
|
|
134
134
|
}
|
|
135
|
-
return (h("calcite-flow-item", { heading: this.messages.suggestions, closable: true, onCalciteFlowItemClose: this._emitClose, beforeBack: this._beforeBack }, h("calcite-button", { width: "half", slot: "footer", appearance: "outline", kind: "brand",
|
|
135
|
+
return (h("calcite-flow-item", { heading: this.messages.suggestions, closable: true, onCalciteFlowItemClose: this._emitClose, beforeBack: this._beforeBack }, h("calcite-button", { width: "half", slot: "footer", appearance: "outline", kind: "brand", iconStart: "code", scale: "s", onClick: this._emitItemSelected, ref: (e) => void e?.setFocus(), "data-item": suggestion }, this.messages.insert), h("calcite-block", { open: true, heading: suggestion.label, description: suggestion.description }, h("div", { innerHTML: convertMarkdownString(suggestion.documentation) }), h("pre", null, h("code", { ref: (e) => e === undefined ? undefined : void colorizeCodeElement(e, suggestion.code).catch(console.error) })))));
|
|
136
136
|
}
|
|
137
137
|
render() {
|
|
138
|
-
return (h(Host, { key: '
|
|
138
|
+
return (h(Host, { key: 'fa11f8f0541f31b0979b1efb8cfa48e8808eff67' }, h("style", { key: 'b3cb5ad5e4f9b29b499482b6bd908283a7b3a639' }, this._colorizeStyle), h("calcite-flow", { key: '2827b51aa567edd908a84183ced66999eea3a0a8', ref: (ref) => this.flowFocusHandler(ref) }, h("calcite-flow-item", { key: 'd35292ff615f7cfb26f5d8b88074a9191a7d190c', heading: this.messages.suggestions, closable: true, onCalciteFlowItemClose: this._emitClose }, h("calcite-input", { key: 'f62fe1c21a55a0bb21b65638554735803b620283', value: this._filterValue, icon: "magnifying-glass", clearable: true, onCalciteInputInput: this._updateFilterValue, class: "sticky", scale: "m" }), h("calcite-list", { key: 'bb4c1d9d41a7005f9f768d3ab619200fd697e4f8' }, this.renderSuggestionGroups())), this.renderSuggestionFlowItem())));
|
|
139
139
|
}
|
|
140
140
|
static get assetsDirs() { return ["assets"]; }
|
|
141
141
|
get el() { return this; }
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.
|
|
4
|
-
* v4.
|
|
3
|
+
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
+
* v4.31.0-next.2
|
|
5
5
|
*/
|
|
6
6
|
import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h } from '@stencil/core/internal/client';
|
|
7
7
|
import { u as useControllerManager } from './chunk-IHYYRFLQ.js';
|
|
8
|
-
import {
|
|
8
|
+
import { t as setFocusOnElement, d as createFilterExpression } from './index2.js';
|
|
9
9
|
import { b as arcadeDefaults } from './arcade-defaults.js';
|
|
10
10
|
import { u as useT9n } from './useT9n.js';
|
|
11
11
|
import "@esri/calcite-components/dist/components/calcite-flow-item.js";
|