@arcgis/coding-components 4.30.0-next.4 → 4.30.0-next.41
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.css +1 -1
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.en.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +25 -0
- package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +1 -1
- package/dist/arcgis-coding-components/assets/code-editor/css.worker.js +1 -1
- package/dist/arcgis-coding-components/assets/code-editor/editor.worker.js +1 -1
- package/dist/arcgis-coding-components/assets/code-editor/html.worker.js +1 -1
- package/dist/arcgis-coding-components/assets/code-editor/json.worker.js +1 -1
- package/dist/arcgis-coding-components/assets/code-editor/ts.worker.js +1 -1
- package/dist/arcgis-coding-components/index.esm.js +2 -2
- package/dist/arcgis-coding-components/{p-25023832.js → p-1f57b2c8.js} +3 -3
- package/dist/arcgis-coding-components/{p-e88c0d1d.js → p-2656babc.js} +1 -1
- package/dist/arcgis-coding-components/p-41c0f095.js +7 -0
- package/dist/arcgis-coding-components/{p-08f272e7.js → p-4e83c7d9.js} +3 -3
- package/dist/arcgis-coding-components/p-55dffc4c.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-78220a75.js → p-68167d79.js} +3 -3
- package/dist/arcgis-coding-components/{p-4d158786.js → p-6e9ee8e1.js} +2 -2
- package/dist/arcgis-coding-components/{p-b63557ba.js → p-7600673f.js} +2 -2
- package/dist/arcgis-coding-components/{p-73e2476b.js → p-8741dfa4.js} +2 -2
- package/dist/arcgis-coding-components/{p-cd9e95f9.js → p-9acb23cc.js} +2 -2
- package/dist/arcgis-coding-components/p-b3a3ab63.js +68 -0
- package/dist/arcgis-coding-components/{p-c7bb7c6a.js → p-ea30709a.js} +2 -2
- package/dist/cjs/{arcade-defaults-d41420df.js → arcade-defaults-acc3b5ac.js} +498 -172
- package/dist/cjs/{arcade-mode-55360f90.js → arcade-mode-af4f0fdf.js} +45 -51
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +1660 -234
- package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
- package/dist/cjs/{css-9a006c1a.js → css-c1dec897.js} +1 -1
- package/dist/cjs/{cssMode-c9458ea4.js → cssMode-8a51d0ec.js} +3 -3
- package/dist/cjs/{html-45d9defe.js → html-a26829c5.js} +3 -3
- package/dist/cjs/{htmlMode-1716753f.js → htmlMode-d59290f4.js} +3 -3
- package/dist/cjs/{index-25b044b5.js → index-f070b08e.js} +42 -4
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{javascript-9ce57501.js → javascript-836a3c78.js} +4 -4
- package/dist/cjs/{jsonMode-3945e8f7.js → jsonMode-2600ca0a.js} +3 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{tsMode-7eaeb36b.js → tsMode-b10eb9a7.js} +3 -3
- package/dist/cjs/{typescript-ec5da0c4.js → typescript-07dfd341.js} +3 -3
- package/dist/components/arcade-api.js +19 -31
- package/dist/components/arcade-contribution.js +71 -13
- package/dist/components/arcade-defaults.js +79 -74
- package/dist/components/arcade-mode.js +44 -50
- package/dist/components/arcade-results.js +46 -60
- package/dist/components/arcade-suggestions.js +19 -30
- package/dist/components/arcade-variables.js +20 -35
- package/dist/components/arcgis-arcade-api.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +48 -140
- 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-HXHHCYA6.js +1460 -0
- package/dist/components/code-editor.js +21 -18
- package/dist/components/fields.js +2 -66
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +388 -3
- package/dist/components/markdown.js +9 -11
- package/dist/components/utilities.js +3 -3
- package/dist/esm/{arcade-defaults-0bce2095.js → arcade-defaults-1f9c1af0.js} +485 -159
- package/dist/esm/{arcade-mode-57782d19.js → arcade-mode-c0bd49f2.js} +45 -51
- package/dist/esm/arcgis-arcade-api_6.entry.js +1660 -234
- package/dist/esm/arcgis-coding-components.js +4 -4
- package/dist/esm/{css-70f18054.js → css-1e20a73b.js} +1 -1
- package/dist/esm/{cssMode-488c3e86.js → cssMode-31dc7377.js} +3 -3
- package/dist/esm/{html-59102be0.js → html-f8a0ecfe.js} +3 -3
- package/dist/esm/{htmlMode-cfdd852e.js → htmlMode-71570d38.js} +3 -3
- package/dist/esm/{index-78a96626.js → index-0030b0f4.js} +42 -5
- package/dist/esm/index.js +3 -3
- package/dist/esm/{javascript-8ee5b791.js → javascript-bd547f0f.js} +4 -4
- package/dist/esm/{jsonMode-771e71b0.js → jsonMode-fc11c3fd.js} +3 -3
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{tsMode-f95b693f.js → tsMode-201c99e8.js} +3 -3
- package/dist/esm/{typescript-055e39ac.js → typescript-51b03c89.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 +6 -7
- package/dist/types/components/arcade-editor/arcade-editor.d.ts +9 -6
- package/dist/types/components/arcade-results/arcade-results.d.ts +6 -9
- package/dist/types/components/arcade-suggestions/arcade-suggestions.d.ts +6 -7
- package/dist/types/components/arcade-variables/arcade-variables.d.ts +6 -8
- package/dist/types/components/code-editor/code-editor.d.ts +9 -1
- package/dist/types/components.d.ts +35 -24
- package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/arcade-editor/arcade-editor.stories.d.ts +37 -0
- package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/code-editor/code-editor.stories.d.ts +6 -0
- package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/reference/stories/arcade-editor.stories.d.ts +9 -0
- package/dist/types/utils/arcade-monaco/arcade-language-features.d.ts +1 -1
- package/dist/types/utils/profile/types.d.ts +1 -1
- package/package.json +20 -19
- package/dist/arcgis-coding-components/p-04561935.entry.js +0 -6
- package/dist/arcgis-coding-components/p-871217d9.js +0 -68
- package/dist/arcgis-coding-components/p-c23d1605.js +0 -7
|
@@ -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.41
|
|
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-0030b0f4.js';
|
|
7
|
+
export { s as setNonce } from './index-0030b0f4.js';
|
|
8
8
|
|
|
9
9
|
/*
|
|
10
10
|
Stencil Client Patch Browser v4.9.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -19,5 +19,5 @@ const patchBrowser = () => {
|
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
patchBrowser().then(options => {
|
|
22
|
-
return bootstrapLazy([["arcgis-arcade-api_6",[[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"],"editorOptions":[16],"
|
|
22
|
+
return bootstrapLazy([["arcgis-arcade-api_6",[[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"],"editorOptions":[16],"messages":[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],"updateThemeColors":[64]},null,{"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}],[1,"arcgis-arcade-api",{"hideDocumentationActions":[4,"hide-documentation-actions"],"modelId":[1,"model-id"],"_selectedApiItem":[32],"_filterValue":[32],"_colorizeStyle":[32],"_preparingApi":[32],"_apiLibrary":[32]}],[1,"arcgis-arcade-results",{"loading":[4],"openedResultPanel":[1537,"opened-result-panel"],"result":[16],"consoleLogs":[16]}],[1,"arcgis-arcade-suggestions",{"suggestions":[16],"_selectedSuggestion":[32],"_filterValue":[32],"_colorizeStyle":[32]},null,{"suggestions":["suggestionsPropChanged"]}],[1,"arcgis-arcade-variables",{"loading":[4],"modelId":[1,"model-id"],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}],[0,"arcgis-code-editor",{"value":[1],"language":[1],"modelId":[1,"model-id"],"options":[16],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]},null,{"value":["valuePropChange"],"language":["languagePropChange"],"modelId":["modelIdPropChange"],"options":["optionsPropChange"]}]]]], options);
|
|
23
23
|
});
|
|
@@ -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.41
|
|
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.41
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
7
|
-
import './index-
|
|
6
|
+
import { y as monaco_editor_core_star } from './arcade-defaults-1f9c1af0.js';
|
|
7
|
+
import './index-0030b0f4.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.41
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
7
|
-
import './index-
|
|
6
|
+
import { y as monaco_editor_core_star } from './arcade-defaults-1f9c1af0.js';
|
|
7
|
+
import './index-0030b0f4.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.41
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
7
|
-
import './index-
|
|
6
|
+
import { y as monaco_editor_core_star } from './arcade-defaults-1f9c1af0.js';
|
|
7
|
+
import './index-0030b0f4.js';
|
|
8
8
|
|
|
9
9
|
/*!-----------------------------------------------------------------------------
|
|
10
10
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.41
|
|
5
5
|
*/
|
|
6
6
|
const NAMESPACE = 'arcgis-coding-components';
|
|
7
7
|
|
|
@@ -1109,6 +1109,19 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1109
1109
|
maybePromise = safeCall(instance, 'componentWillLoad');
|
|
1110
1110
|
}
|
|
1111
1111
|
}
|
|
1112
|
+
else {
|
|
1113
|
+
{
|
|
1114
|
+
// Like `componentWillLoad` above, we allow Stencil component
|
|
1115
|
+
// authors to return a `Promise` from this lifecycle callback, and
|
|
1116
|
+
// we specify that our runtime will wait for that `Promise` to
|
|
1117
|
+
// resolve before the component re-renders. So if the method
|
|
1118
|
+
// returns a `Promise` we need to keep it around!
|
|
1119
|
+
maybePromise = safeCall(instance, 'componentWillUpdate');
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
{
|
|
1123
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, 'componentWillRender'));
|
|
1124
|
+
}
|
|
1112
1125
|
endSchedule();
|
|
1113
1126
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
1114
1127
|
};
|
|
@@ -1233,6 +1246,9 @@ const postUpdateComponent = (hostRef) => {
|
|
|
1233
1246
|
const endPostUpdate = createTime('postUpdate', tagName);
|
|
1234
1247
|
const instance = hostRef.$lazyInstance$ ;
|
|
1235
1248
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1249
|
+
{
|
|
1250
|
+
safeCall(instance, 'componentDidRender');
|
|
1251
|
+
}
|
|
1236
1252
|
if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
|
|
1237
1253
|
hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
|
|
1238
1254
|
{
|
|
@@ -1251,6 +1267,9 @@ const postUpdateComponent = (hostRef) => {
|
|
|
1251
1267
|
}
|
|
1252
1268
|
}
|
|
1253
1269
|
else {
|
|
1270
|
+
{
|
|
1271
|
+
safeCall(instance, 'componentDidUpdate');
|
|
1272
|
+
}
|
|
1254
1273
|
endPostUpdate();
|
|
1255
1274
|
}
|
|
1256
1275
|
{
|
|
@@ -1272,6 +1291,18 @@ const postUpdateComponent = (hostRef) => {
|
|
|
1272
1291
|
// ( •_•)>⌐■-■
|
|
1273
1292
|
// (⌐■_■)
|
|
1274
1293
|
};
|
|
1294
|
+
const forceUpdate = (ref) => {
|
|
1295
|
+
{
|
|
1296
|
+
const hostRef = getHostRef(ref);
|
|
1297
|
+
const isConnected = hostRef.$hostElement$.isConnected;
|
|
1298
|
+
if (isConnected &&
|
|
1299
|
+
(hostRef.$flags$ & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
|
|
1300
|
+
scheduleUpdate(hostRef, false);
|
|
1301
|
+
}
|
|
1302
|
+
// Returns "true" when the forced update was successfully scheduled
|
|
1303
|
+
return isConnected;
|
|
1304
|
+
}
|
|
1305
|
+
};
|
|
1275
1306
|
const appDidLoad = (who) => {
|
|
1276
1307
|
// on appload
|
|
1277
1308
|
// we have finish the first big initial render
|
|
@@ -1543,7 +1574,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1543
1574
|
// construction in order to directly wire together the
|
|
1544
1575
|
// host element and the lazy-loaded instance
|
|
1545
1576
|
try {
|
|
1546
|
-
new Cstr(hostRef);
|
|
1577
|
+
Cstr.__registerControllers=(component)=>{registerInstance(component,hostRef);return hostRef.$cmpMeta$.$members$??{}};new Cstr(hostRef);Cstr.__registerControllers=undefined;
|
|
1547
1578
|
}
|
|
1548
1579
|
catch (e) {
|
|
1549
1580
|
consoleError(e);
|
|
@@ -1555,6 +1586,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1555
1586
|
hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
|
|
1556
1587
|
}
|
|
1557
1588
|
endNewInstance();
|
|
1589
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1558
1590
|
}
|
|
1559
1591
|
if (Cstr.style) {
|
|
1560
1592
|
// this component has styles but we haven't registered them yet
|
|
@@ -1584,6 +1616,9 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1584
1616
|
}
|
|
1585
1617
|
};
|
|
1586
1618
|
const fireConnectedCallback = (instance) => {
|
|
1619
|
+
{
|
|
1620
|
+
safeCall(instance, 'connectedCallback');
|
|
1621
|
+
}
|
|
1587
1622
|
};
|
|
1588
1623
|
const connectedCallback = (elm) => {
|
|
1589
1624
|
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
@@ -1625,9 +1660,11 @@ const connectedCallback = (elm) => {
|
|
|
1625
1660
|
}
|
|
1626
1661
|
else {
|
|
1627
1662
|
// fire off connectedCallback() on component instance
|
|
1628
|
-
if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$)
|
|
1663
|
+
if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) {
|
|
1664
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1665
|
+
}
|
|
1629
1666
|
else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
|
|
1630
|
-
hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
|
|
1667
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
|
|
1631
1668
|
}
|
|
1632
1669
|
}
|
|
1633
1670
|
endConnected();
|
|
@@ -1924,4 +1961,4 @@ const flush = () => {
|
|
|
1924
1961
|
const nextTick = (cb) => promiseResolve().then(cb);
|
|
1925
1962
|
const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
|
|
1926
1963
|
|
|
1927
|
-
export { Fragment as F, Host as H, getElement as a, bootstrapLazy as b, createEvent as c, getAssetPath as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
|
1964
|
+
export { Fragment as F, Host as H, getElement as a, bootstrapLazy as b, createEvent as c, forceUpdate as f, getAssetPath as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
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.41
|
|
5
5
|
*/
|
|
6
|
-
export { a as arcade } from './arcade-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
export { a as arcade } from './arcade-defaults-1f9c1af0.js';
|
|
7
|
+
import './index-0030b0f4.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.41
|
|
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-51b03c89.js';
|
|
7
|
+
import './arcade-defaults-1f9c1af0.js';
|
|
8
|
+
import './index-0030b0f4.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.41
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
7
|
-
import './index-
|
|
6
|
+
import { y as monaco_editor_core_star } from './arcade-defaults-1f9c1af0.js';
|
|
7
|
+
import './index-0030b0f4.js';
|
|
8
8
|
|
|
9
9
|
/*!-----------------------------------------------------------------------------
|
|
10
10
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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.41
|
|
5
5
|
*/
|
|
6
|
-
import { b as bootstrapLazy } from './index-
|
|
7
|
-
export { s as setNonce } from './index-
|
|
6
|
+
import { b as bootstrapLazy } from './index-0030b0f4.js';
|
|
7
|
+
export { s as setNonce } from './index-0030b0f4.js';
|
|
8
8
|
|
|
9
9
|
const defineCustomElements = (win, options) => {
|
|
10
10
|
if (typeof window === 'undefined') return undefined;
|
|
11
|
-
return bootstrapLazy([["arcgis-arcade-api_6",[[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"],"editorOptions":[16],"
|
|
11
|
+
return bootstrapLazy([["arcgis-arcade-api_6",[[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"],"editorOptions":[16],"messages":[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],"updateThemeColors":[64]},null,{"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}],[1,"arcgis-arcade-api",{"hideDocumentationActions":[4,"hide-documentation-actions"],"modelId":[1,"model-id"],"_selectedApiItem":[32],"_filterValue":[32],"_colorizeStyle":[32],"_preparingApi":[32],"_apiLibrary":[32]}],[1,"arcgis-arcade-results",{"loading":[4],"openedResultPanel":[1537,"opened-result-panel"],"result":[16],"consoleLogs":[16]}],[1,"arcgis-arcade-suggestions",{"suggestions":[16],"_selectedSuggestion":[32],"_filterValue":[32],"_colorizeStyle":[32]},null,{"suggestions":["suggestionsPropChanged"]}],[1,"arcgis-arcade-variables",{"loading":[4],"modelId":[1,"model-id"],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}],[0,"arcgis-code-editor",{"value":[1],"language":[1],"modelId":[1,"model-id"],"options":[16],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]},null,{"value":["valuePropChange"],"language":["languagePropChange"],"modelId":["modelIdPropChange"],"options":["optionsPropChange"]}]]]], options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
export { defineCustomElements };
|
|
@@ -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.41
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
7
|
-
import './index-
|
|
6
|
+
import { z as typescriptDefaults, y as monaco_editor_core_star } from './arcade-defaults-1f9c1af0.js';
|
|
7
|
+
import './index-0030b0f4.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.41
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
7
|
-
import './index-
|
|
6
|
+
import { y as monaco_editor_core_star } from './arcade-defaults-1f9c1af0.js';
|
|
7
|
+
import './index-0030b0f4.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.41
|
|
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.41
|
|
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.41
|
|
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.41
|
|
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';
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import type { VNode, EventEmitter, ComponentInterface } from "../../stencil-public-runtime";
|
|
2
2
|
import type { ApiCategory, ApiItem } from "@arcgis/arcade-languageservice";
|
|
3
|
-
import type {
|
|
3
|
+
import type { ControllerManager } from "@arcgis/components-controllers";
|
|
4
4
|
/** @internal */
|
|
5
5
|
export declare class ArcgisArcadeApi implements ComponentInterface {
|
|
6
|
+
manager: ControllerManager<this>;
|
|
6
7
|
private _flowObserver?;
|
|
7
8
|
private _themeChangedListner?;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_t9nLocale: string;
|
|
11
|
-
_t9nStrings: ArcadeAPIStrings | undefined;
|
|
9
|
+
private messages;
|
|
10
|
+
el: HTMLArcgisArcadeApiElement;
|
|
12
11
|
_selectedApiItem: ApiItem | undefined;
|
|
13
12
|
_filterValue: string;
|
|
14
13
|
_colorizeStyle: string;
|
|
@@ -25,11 +24,11 @@ export declare class ArcgisArcadeApi implements ComponentInterface {
|
|
|
25
24
|
/**
|
|
26
25
|
* Raised when the close action has been requested
|
|
27
26
|
*/
|
|
28
|
-
|
|
27
|
+
arcgisClose: EventEmitter<void>;
|
|
29
28
|
/**
|
|
30
29
|
* Raised when an item has been selected
|
|
31
30
|
*/
|
|
32
|
-
|
|
31
|
+
arcgisItemSelected: EventEmitter<string>;
|
|
33
32
|
componentWillLoad(): Promise<void>;
|
|
34
33
|
disconnectedCallback(): void;
|
|
35
34
|
private _updateApiLibrary;
|
|
@@ -8,17 +8,20 @@ import type { EditorProfile } from "../../utils/profile/editor-profile";
|
|
|
8
8
|
import type { ArcadeResult, IEditorTestContext } from "../../utils/arcade-executor";
|
|
9
9
|
import type { IColorRules } from "../../utils/arcade-monaco/arcade-theme";
|
|
10
10
|
import type { ResultPanelName } from "../arcade-results/arcade-results";
|
|
11
|
+
import type { ControllerManager } from "@arcgis/components-controllers";
|
|
11
12
|
export type SidePanelName = "api" | "none" | "suggestions" | "variables";
|
|
12
13
|
export declare class ArcgisArcadeEditor implements ComponentInterface {
|
|
14
|
+
manager: ControllerManager<this>;
|
|
13
15
|
private _codeEditorElt?;
|
|
14
16
|
private _componentReadyDefer;
|
|
15
17
|
private _modelId;
|
|
16
18
|
private _editorProfilePromise;
|
|
17
19
|
private _disposables;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
el: HTMLArcgisArcadeEditorElement;
|
|
21
|
+
messages: {
|
|
22
|
+
_lang: string;
|
|
23
|
+
_t9nLocale: string;
|
|
24
|
+
} & Partial<ArcadeEditorStrings>;
|
|
22
25
|
_standaloneCodeEditor: editor.IStandaloneCodeEditor | undefined;
|
|
23
26
|
_preparingProfile: boolean;
|
|
24
27
|
_editorProfile: EditorProfile | undefined;
|
|
@@ -110,11 +113,11 @@ export declare class ArcgisArcadeEditor implements ComponentInterface {
|
|
|
110
113
|
/**
|
|
111
114
|
* Emitted when the script string has changed.
|
|
112
115
|
*/
|
|
113
|
-
|
|
116
|
+
arcgisScriptChange: EventEmitter<string>;
|
|
114
117
|
/**
|
|
115
118
|
* Emitted when the disagnostics collection has changed.
|
|
116
119
|
*/
|
|
117
|
-
|
|
120
|
+
arcgisDiagnosticsChange: EventEmitter<Diagnostic[]>;
|
|
118
121
|
componentWillLoad(): Promise<void>;
|
|
119
122
|
componentDidLoad(): Promise<void>;
|
|
120
123
|
disconnectedCallback(): void;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import type { ComponentInterface, EventEmitter, VNode } from "../../stencil-public-runtime";
|
|
2
2
|
import type { ArcadeResult } from "../../utils/arcade-executor";
|
|
3
|
-
import type {
|
|
3
|
+
import type { ControllerManager } from "@arcgis/components-controllers";
|
|
4
4
|
export type ResultPanelName = "console" | "log" | "output";
|
|
5
5
|
/** @internal */
|
|
6
6
|
export declare class ArcgisArcadeResults implements ComponentInterface {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_t9nStrings: ArcadeResultsStrings | undefined;
|
|
7
|
+
manager: ControllerManager<this>;
|
|
8
|
+
private messages;
|
|
9
|
+
el: HTMLArcgisArcadeResultsElement;
|
|
11
10
|
/**
|
|
12
11
|
* Loading state
|
|
13
12
|
*/
|
|
@@ -27,13 +26,11 @@ export declare class ArcgisArcadeResults implements ComponentInterface {
|
|
|
27
26
|
/**
|
|
28
27
|
* Raised when the opened result panel has changed
|
|
29
28
|
*/
|
|
30
|
-
|
|
29
|
+
arcgisOpenedResultPanelChange: EventEmitter<ResultPanelName>;
|
|
31
30
|
/**
|
|
32
31
|
* Raise when the clode action has been activated
|
|
33
32
|
*/
|
|
34
|
-
|
|
35
|
-
componentWillLoad(): Promise<void>;
|
|
36
|
-
disconnectedCallback(): void;
|
|
33
|
+
arcgisClose: EventEmitter<void>;
|
|
37
34
|
private updateResultPanel;
|
|
38
35
|
private _switchResultPanel;
|
|
39
36
|
private _emitClose;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import type { VNode, EventEmitter, ComponentInterface } from "../../stencil-public-runtime";
|
|
2
2
|
import type { IEditorCodeSuggestion, IEditorCodeSuggestionGroup } from "../../utils/editor-suggestions";
|
|
3
|
-
import type {
|
|
3
|
+
import type { ControllerManager } from "@arcgis/components-controllers";
|
|
4
4
|
/** @internal */
|
|
5
5
|
export declare class ArcgisArcadeSuggestions implements ComponentInterface {
|
|
6
|
+
manager: ControllerManager<this>;
|
|
6
7
|
private _flowObserver?;
|
|
7
8
|
private _themeChangedListner?;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_t9nLocale: string;
|
|
11
|
-
_t9nStrings: ArcadeSuggestionsStrings | undefined;
|
|
9
|
+
private messages;
|
|
10
|
+
el: HTMLArcgisArcadeSuggestionsElement;
|
|
12
11
|
_selectedSuggestion: IEditorCodeSuggestion | undefined;
|
|
13
12
|
_filterValue: string;
|
|
14
13
|
_colorizeStyle: string;
|
|
@@ -20,11 +19,11 @@ export declare class ArcgisArcadeSuggestions implements ComponentInterface {
|
|
|
20
19
|
/**
|
|
21
20
|
* Raised when close action has been activated
|
|
22
21
|
*/
|
|
23
|
-
|
|
22
|
+
arcgisClose: EventEmitter<void>;
|
|
24
23
|
/**
|
|
25
24
|
* Raised when an item has been selected
|
|
26
25
|
*/
|
|
27
|
-
|
|
26
|
+
arcgisItemSelected: EventEmitter<string>;
|
|
28
27
|
componentWillLoad(): Promise<void>;
|
|
29
28
|
disconnectedCallback(): void;
|
|
30
29
|
private flowFocusHandler;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { VNode, EventEmitter, ComponentInterface } from "../../stencil-public-runtime";
|
|
2
|
-
import type {
|
|
2
|
+
import type { ControllerManager } from "@arcgis/components-controllers";
|
|
3
3
|
/** @internal */
|
|
4
4
|
export declare class ArcgisArcadeVariables implements ComponentInterface {
|
|
5
|
+
manager: ControllerManager<this>;
|
|
5
6
|
private _flowObserver?;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
_t9nLocale: string;
|
|
9
|
-
_t9nStrings: ArcadeVariablesStrings | undefined;
|
|
7
|
+
private messages;
|
|
8
|
+
el: HTMLArcgisArcadeVariablesElement;
|
|
10
9
|
_mutationCounter: number;
|
|
11
10
|
_flowItemRenderers: (() => VNode)[];
|
|
12
11
|
_filterValue: string;
|
|
@@ -22,12 +21,11 @@ export declare class ArcgisArcadeVariables implements ComponentInterface {
|
|
|
22
21
|
/**
|
|
23
22
|
* Raised when close action has been activated
|
|
24
23
|
*/
|
|
25
|
-
|
|
24
|
+
arcgisClose: EventEmitter<void>;
|
|
26
25
|
/**
|
|
27
26
|
* Raised when an item has been selected
|
|
28
27
|
*/
|
|
29
|
-
|
|
30
|
-
componentWillLoad(): Promise<void>;
|
|
28
|
+
arcgisItemSelected: EventEmitter<string>;
|
|
31
29
|
disconnectedCallback(): void;
|
|
32
30
|
private addPanelRenderer;
|
|
33
31
|
private removeLastPanelRenderer;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { EventEmitter, VNode, ComponentInterface } from "../../stencil-public-runtime";
|
|
2
|
+
import type { Selection } from "monaco-editor";
|
|
2
3
|
import { editor } from "monaco-editor";
|
|
3
4
|
import "../../utils/arcade-monaco/arcade-contribution";
|
|
4
5
|
export declare class ArcgisCodeEditor implements ComponentInterface {
|
|
@@ -71,7 +72,14 @@ export declare class ArcgisCodeEditor implements ComponentInterface {
|
|
|
71
72
|
/**
|
|
72
73
|
* Emitted when the value has changed (script, code, css, json, etc.)
|
|
73
74
|
*/
|
|
74
|
-
|
|
75
|
+
arcgisValueChange: EventEmitter<string>;
|
|
76
|
+
/**
|
|
77
|
+
* Emitted when the selection has changed.
|
|
78
|
+
*/
|
|
79
|
+
arcgisSelectionChange: EventEmitter<{
|
|
80
|
+
selection: Selection;
|
|
81
|
+
model: editor.ITextModel | null | undefined;
|
|
82
|
+
}>;
|
|
75
83
|
componentWillLoad(): void;
|
|
76
84
|
componentDidLoad(): void;
|
|
77
85
|
disconnectedCallback(): void;
|