@arcgis/coding-components 4.29.0-beta.113 → 4.29.0-beta.115
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +113 -113
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.en.json +19 -19
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +66 -66
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +66 -66
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +66 -66
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +66 -66
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +66 -66
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +66 -66
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ar.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bg.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bs.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ca.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.cs.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.da.json +3 -3
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.de.json +3 -3
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.el.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.en.json +3 -3
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.es.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.et.json +3 -3
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fi.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fr.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.he.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hr.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hu.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.id.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.it.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ja.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ko.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lt.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lv.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nb.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nl.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pl.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-BR.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-PT.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ro.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ru.json +3 -3
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sk.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sl.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sr.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sv.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.th.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.tr.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.uk.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.vi.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-CN.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-HK.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-TW.json +4 -4
- package/dist/arcgis-coding-components/index.esm.js +2 -2
- package/dist/arcgis-coding-components/{p-1d1df020.js → p-6e8b9fe5.js} +2 -2
- package/dist/arcgis-coding-components/{p-e530878b.js → p-7a93bb3b.js} +2 -2
- package/dist/arcgis-coding-components/{p-4b7291cc.js → p-9cb71acd.js} +1 -1
- package/dist/arcgis-coding-components/p-a204229b.entry.js +6 -0
- package/dist/arcgis-coding-components/p-af7e61b6.js +6 -0
- package/dist/arcgis-coding-components/{p-4088f191.js → p-ba6773e0.js} +1 -1
- package/dist/arcgis-coding-components/{p-e1eaafa9.js → p-d8743a57.js} +2 -2
- package/dist/arcgis-coding-components/{p-ed0acf1d.js → p-d96dc356.js} +2 -2
- package/dist/arcgis-coding-components/{p-e4fb8f11.js → p-dfbc8c11.js} +11 -11
- package/dist/arcgis-coding-components/{p-8fa7b6b3.js → p-e67455ae.js} +2 -2
- package/dist/arcgis-coding-components/{p-b2b27bbe.js → p-e8238684.js} +2 -2
- package/dist/arcgis-coding-components/{p-b7f6269a.js → p-f71b9ff8.js} +2 -2
- package/dist/cjs/{arcade-defaults-4a549303.js → arcade-defaults-72ad69bb.js} +34 -30
- package/dist/cjs/{arcade-mode-6c189663.js → arcade-mode-d0e254e7.js} +11 -14
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +100 -135
- package/dist/cjs/arcgis-coding-components.cjs.js +2 -2
- package/dist/cjs/{css-6f7dcd5a.js → css-7e80b850.js} +1 -1
- package/dist/cjs/{cssMode-245d6467.js → cssMode-acc88f93.js} +3 -3
- package/dist/cjs/{html-2774c64f.js → html-c634cfab.js} +3 -3
- package/dist/cjs/{htmlMode-0606c7e3.js → htmlMode-7446fade.js} +3 -3
- package/dist/cjs/{index-b518646d.js → index-135d850f.js} +1 -1
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{javascript-6b11fc9d.js → javascript-7de4f2e5.js} +4 -4
- package/dist/cjs/{jsonMode-11883f07.js → jsonMode-ba23faf1.js} +3 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{tsMode-4de8b5c1.js → tsMode-f95cf2a3.js} +3 -3
- package/dist/cjs/{typescript-96d879a2.js → typescript-fd97c5c9.js} +3 -3
- package/dist/components/arcade-api.js +20 -18
- package/dist/components/arcade-contribution.js +8 -7
- package/dist/components/arcade-defaults.js +9 -9
- package/dist/components/arcade-mode.js +10 -12
- package/dist/components/arcade-results.js +27 -81
- package/dist/components/arcade-suggestions.js +15 -12
- package/dist/components/arcade-variables.js +16 -10
- package/dist/components/arcgis-arcade-api.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +16 -12
- 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-code-editor.js +1 -1
- package/dist/components/code-editor.js +1 -1
- package/dist/components/fields.js +10 -7
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +3 -3
- package/dist/components/markdown.js +10 -1
- package/dist/components/utilities.js +4 -4
- package/dist/esm/{arcade-defaults-1e50716f.js → arcade-defaults-341d3ba2.js} +30 -27
- package/dist/esm/{arcade-mode-95cf5178.js → arcade-mode-c6b62779.js} +11 -14
- package/dist/esm/arcgis-arcade-api_6.entry.js +100 -135
- package/dist/esm/arcgis-coding-components.js +3 -3
- package/dist/esm/{css-e2349c2b.js → css-a5c8eae7.js} +1 -1
- package/dist/esm/{cssMode-3fae4ab5.js → cssMode-2775c361.js} +3 -3
- package/dist/esm/{html-961458b7.js → html-21177d74.js} +3 -3
- package/dist/esm/{htmlMode-33dab68c.js → htmlMode-f07e5f14.js} +3 -3
- package/dist/esm/{index-751e780b.js → index-17ee3129.js} +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/{javascript-996fdadb.js → javascript-e4b517d9.js} +4 -4
- package/dist/esm/{jsonMode-d3634539.js → jsonMode-ca5b2b48.js} +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{tsMode-e2bb6f87.js → tsMode-fe489f62.js} +3 -3
- package/dist/esm/{typescript-e9a34331.js → typescript-2541a3e5.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/utils/arcade-monaco/arcade-contribution.d.ts +2 -2
- package/dist/types/utils/constants.d.ts +2 -2
- package/dist/types/utils/markdown.d.ts +3 -0
- package/package.json +8 -8
- package/dist/arcgis-coding-components/p-6c13dba0.entry.js +0 -6
- package/dist/arcgis-coding-components/p-d80df481.js +0 -6
- package/dist/components/functional-components.js +0 -15
- package/dist/types/utils/functional-components.d.ts +0 -7
- package/dist/types/utils/json-format.d.ts +0 -1
|
@@ -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.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.0-beta.
|
|
4
|
+
* v4.29.0-beta.115
|
|
5
5
|
*/
|
|
6
6
|
import { editor } from 'monaco-editor';
|
|
7
7
|
import { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
@@ -22,16 +22,21 @@ async function colorizeCodeElement(e, text) {
|
|
|
22
22
|
if (!e || e.tagName !== "CODE") {
|
|
23
23
|
return;
|
|
24
24
|
}
|
|
25
|
+
// eslint-disable-next-line require-atomic-updates
|
|
25
26
|
e.innerHTML = await colorizeCode(text ?? "");
|
|
26
27
|
}
|
|
27
28
|
function generateColorizeStyles() {
|
|
29
|
+
/* eslint-disable @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access */
|
|
28
30
|
const themeService = StandaloneServices.get(IStandaloneThemeService);
|
|
29
31
|
const theme = themeService.getColorTheme();
|
|
30
32
|
return generateTokensCSSForColorMap(theme.tokenTheme.getColorMap());
|
|
33
|
+
/* eslint-enable @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access */
|
|
31
34
|
}
|
|
32
35
|
function onColorizeThemeChanged(func) {
|
|
36
|
+
/* eslint-disable @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access */
|
|
33
37
|
const themeService = StandaloneServices.get(IStandaloneThemeService);
|
|
34
38
|
return themeService.onDidColorThemeChange(() => func());
|
|
39
|
+
/* eslint-enable @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access */
|
|
35
40
|
}
|
|
36
41
|
|
|
37
42
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -2927,6 +2932,7 @@ var marked_umd = createCommonjsModule(function (module, exports) {
|
|
|
2927
2932
|
}));
|
|
2928
2933
|
});
|
|
2929
2934
|
|
|
2935
|
+
// Set up the marked library to use GitHub Flavored Markdown and to use the custom renderer for links.
|
|
2930
2936
|
marked_umd.marked.use({
|
|
2931
2937
|
gfm: true,
|
|
2932
2938
|
renderer: {
|
|
@@ -2935,6 +2941,9 @@ marked_umd.marked.use({
|
|
|
2935
2941
|
}
|
|
2936
2942
|
}
|
|
2937
2943
|
});
|
|
2944
|
+
/**
|
|
2945
|
+
* Converts a markdown string to HTML using the marked library.
|
|
2946
|
+
*/
|
|
2938
2947
|
function convertMarkdownString(value) {
|
|
2939
2948
|
value ?? (value = "");
|
|
2940
2949
|
const result = marked_umd.marked(typeof value === "string" ? value : value.value, {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.0-beta.
|
|
4
|
+
* v4.29.0-beta.115
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
6
|
+
import { K } from './index2.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Filters a collection of items by the given keys and filter word.
|
|
@@ -16,7 +16,7 @@ function filterCollection(collection, keys, filterWord, beforeFilteringFn) {
|
|
|
16
16
|
if (!_keys.length) {
|
|
17
17
|
return [];
|
|
18
18
|
}
|
|
19
|
-
const filterExpression =
|
|
19
|
+
const filterExpression = K(filterWord);
|
|
20
20
|
return collection.filter((item) => {
|
|
21
21
|
if (beforeFilteringFn) {
|
|
22
22
|
const res = beforeFilteringFn(item);
|
|
@@ -24,7 +24,7 @@ function filterCollection(collection, keys, filterWord, beforeFilteringFn) {
|
|
|
24
24
|
return res;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
return _keys.some((key) => filterExpression.test(
|
|
27
|
+
return _keys.some((key) => filterExpression.test(String(item[key] ?? "")));
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.0-beta.
|
|
4
|
+
* v4.29.0-beta.115
|
|
5
5
|
*/
|
|
6
|
-
import { g as getAssetPath } from './index-
|
|
6
|
+
import { g as getAssetPath } from './index-17ee3129.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Returns the last element of an array.
|
|
@@ -120522,7 +120522,7 @@ registerLanguage({
|
|
|
120522
120522
|
mimetypes: ["text/css"],
|
|
120523
120523
|
loader: () => {
|
|
120524
120524
|
{
|
|
120525
|
-
return import('./css-
|
|
120525
|
+
return import('./css-a5c8eae7.js');
|
|
120526
120526
|
}
|
|
120527
120527
|
}
|
|
120528
120528
|
});
|
|
@@ -120540,7 +120540,7 @@ registerLanguage({
|
|
|
120540
120540
|
mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
|
|
120541
120541
|
loader: () => {
|
|
120542
120542
|
{
|
|
120543
|
-
return import('./html-
|
|
120543
|
+
return import('./html-21177d74.js');
|
|
120544
120544
|
}
|
|
120545
120545
|
}
|
|
120546
120546
|
});
|
|
@@ -120560,7 +120560,7 @@ registerLanguage({
|
|
|
120560
120560
|
mimetypes: ["text/javascript"],
|
|
120561
120561
|
loader: () => {
|
|
120562
120562
|
{
|
|
120563
|
-
return import('./javascript-
|
|
120563
|
+
return import('./javascript-e4b517d9.js');
|
|
120564
120564
|
}
|
|
120565
120565
|
}
|
|
120566
120566
|
});
|
|
@@ -120578,7 +120578,7 @@ registerLanguage({
|
|
|
120578
120578
|
mimetypes: ["text/typescript"],
|
|
120579
120579
|
loader: () => {
|
|
120580
120580
|
{
|
|
120581
|
-
return import('./typescript-
|
|
120581
|
+
return import('./typescript-2541a3e5.js');
|
|
120582
120582
|
}
|
|
120583
120583
|
}
|
|
120584
120584
|
});
|
|
@@ -120699,7 +120699,7 @@ var lessDefaults = new LanguageServiceDefaultsImpl$3("less", optionsDefault$1, m
|
|
|
120699
120699
|
monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
|
|
120700
120700
|
function getMode$3() {
|
|
120701
120701
|
{
|
|
120702
|
-
return import('./cssMode-
|
|
120702
|
+
return import('./cssMode-2775c361.js');
|
|
120703
120703
|
}
|
|
120704
120704
|
}
|
|
120705
120705
|
monaco_editor_core_exports$3.languages.onLanguage("less", () => {
|
|
@@ -120824,7 +120824,7 @@ monaco_editor_core_exports$2.languages.html = {
|
|
|
120824
120824
|
};
|
|
120825
120825
|
function getMode$2() {
|
|
120826
120826
|
{
|
|
120827
|
-
return import('./htmlMode-
|
|
120827
|
+
return import('./htmlMode-f07e5f14.js');
|
|
120828
120828
|
}
|
|
120829
120829
|
}
|
|
120830
120830
|
function registerHTMLLanguageService(languageId, options = optionsDefault, modeConfiguration = getConfigurationDefault(languageId)) {
|
|
@@ -120926,7 +120926,7 @@ var jsonDefaults = new LanguageServiceDefaultsImpl$1("json", diagnosticDefault,
|
|
|
120926
120926
|
monaco_editor_core_exports$1.languages.json = { jsonDefaults };
|
|
120927
120927
|
function getMode$1() {
|
|
120928
120928
|
{
|
|
120929
|
-
return import('./jsonMode-
|
|
120929
|
+
return import('./jsonMode-ca5b2b48.js');
|
|
120930
120930
|
}
|
|
120931
120931
|
}
|
|
120932
120932
|
monaco_editor_core_exports$1.languages.register({
|
|
@@ -121195,7 +121195,7 @@ monaco_editor_core_exports.languages.typescript = {
|
|
|
121195
121195
|
};
|
|
121196
121196
|
function getMode() {
|
|
121197
121197
|
{
|
|
121198
|
-
return import('./tsMode-
|
|
121198
|
+
return import('./tsMode-fe489f62.js');
|
|
121199
121199
|
}
|
|
121200
121200
|
}
|
|
121201
121201
|
monaco_editor_core_exports.languages.onLanguage("typescript", () => {
|
|
@@ -168926,6 +168926,9 @@ var main = createCommonjsModule(function (module, exports) {
|
|
|
168926
168926
|
});
|
|
168927
168927
|
|
|
168928
168928
|
const amd = "define" in window && typeof window.define === "function" && "amd" in window.define;
|
|
168929
|
+
function isDefaultModule(module) {
|
|
168930
|
+
return module.default !== undefined;
|
|
168931
|
+
}
|
|
168929
168932
|
async function requireModule(modulePath) {
|
|
168930
168933
|
return await new Promise((resolve) => window.require([modulePath], (moduleDefault) => {
|
|
168931
168934
|
resolve(moduleDefault);
|
|
@@ -168936,14 +168939,14 @@ async function importLayersFeatureLayer() {
|
|
|
168936
168939
|
return await requireModule("esri/layers/FeatureLayer");
|
|
168937
168940
|
}
|
|
168938
168941
|
const module = await import('@arcgis/core/layers/FeatureLayer.js');
|
|
168939
|
-
return module.default;
|
|
168942
|
+
return isDefaultModule(module) ? module.default : module;
|
|
168940
168943
|
}
|
|
168941
168944
|
async function importPortalPortalItem() {
|
|
168942
168945
|
if (amd) {
|
|
168943
168946
|
return await requireModule("esri/portal/PortalItem");
|
|
168944
168947
|
}
|
|
168945
168948
|
const module = await import('@arcgis/core/portal/PortalItem.js');
|
|
168946
|
-
return module.default;
|
|
168949
|
+
return isDefaultModule(module) ? module.default : module;
|
|
168947
168950
|
}
|
|
168948
168951
|
async function newPortalPortalItem(properties) {
|
|
168949
168952
|
const ModConstructor = await importPortalPortalItem();
|
|
@@ -168954,7 +168957,7 @@ async function importWebMap() {
|
|
|
168954
168957
|
return await requireModule("esri/WebMap");
|
|
168955
168958
|
}
|
|
168956
168959
|
const module = await import('@arcgis/core/WebMap.js');
|
|
168957
|
-
return module.default;
|
|
168960
|
+
return isDefaultModule(module) ? module.default : module;
|
|
168958
168961
|
}
|
|
168959
168962
|
async function newWebMap(properties) {
|
|
168960
168963
|
const ModConstructor = await importWebMap();
|
|
@@ -168965,7 +168968,7 @@ async function importWebScene() {
|
|
|
168965
168968
|
return await requireModule("esri/WebScene");
|
|
168966
168969
|
}
|
|
168967
168970
|
const module = await import('@arcgis/core/WebScene.js');
|
|
168968
|
-
return module.default;
|
|
168971
|
+
return isDefaultModule(module) ? module.default : module;
|
|
168969
168972
|
}
|
|
168970
168973
|
async function newWebScene(properties) {
|
|
168971
168974
|
const ModConstructor = await importWebScene();
|
|
@@ -168976,14 +168979,14 @@ async function importArcade() {
|
|
|
168976
168979
|
return await requireModule("esri/arcade");
|
|
168977
168980
|
}
|
|
168978
168981
|
const module = await import('@arcgis/core/arcade.js');
|
|
168979
|
-
return module;
|
|
168982
|
+
return isDefaultModule(module) ? module.default : module;
|
|
168980
168983
|
}
|
|
168981
168984
|
async function importRequest() {
|
|
168982
168985
|
if (amd) {
|
|
168983
168986
|
return await requireModule("esri/request");
|
|
168984
168987
|
}
|
|
168985
168988
|
const module = await import('@arcgis/core/request.js');
|
|
168986
|
-
return module.default;
|
|
168989
|
+
return isDefaultModule(module) ? module.default : module;
|
|
168987
168990
|
}
|
|
168988
168991
|
|
|
168989
168992
|
//#region core adapter fix
|
|
@@ -169159,7 +169162,7 @@ function filterFeatureLayerInfos(layers, queryCapability) {
|
|
|
169159
169162
|
}
|
|
169160
169163
|
//#endregion
|
|
169161
169164
|
|
|
169162
|
-
var h=class{constructor(){this.resolve=()=>{},this.reject=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n;});}};function S(e,t){let n=e;for(;n;){if(n===t)return !0;if(!n.parentNode)return !1;n.parentNode instanceof ShadowRoot?n=n.parentNode.host:n=n.parentNode;}return !1}function x(e,t,n=()=>{}){if(!t||t.length<=0)return;let r=new MutationObserver(o=>{for(let s of o)S(e,s.target)&&n();});return r.observe(document.documentElement,{attributes:!0,attributeFilter:t,subtree:!0}),r}function T(e,t){let n=e;for(;n;){let r=n.closest(t);if(r)return r;let o=n.getRootNode();if(o===document)return null;n=o.host;}return null}function k(e){let t=T(e,":is(.calcite-mode-light, .calcite-mode-dark)");return t&&t.classList.contains("calcite-mode-dark")?"dark":"light"}function f(e,t,n){return T(e,`[${t}]`)?.getAttribute(t)??n}function M(e){return e.nodeType===Node.ELEMENT_NODE}function d(e,t=""){if(!M(e))return !1;if(e.matches(t))return setTimeout(()=>e
|
|
169165
|
+
var h=class{constructor(){this.resolve=()=>{},this.reject=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n;});}};function S(e,t){let n=e;for(;n;){if(n===t)return !0;if(!n.parentNode)return !1;n.parentNode instanceof ShadowRoot?n=n.parentNode.host:n=n.parentNode;}return !1}function x(e,t,n=()=>{}){if(!t||t.length<=0)return;let r=new MutationObserver(o=>{for(let s of o)S(e,s.target)&&n();});return r.observe(document.documentElement,{attributes:!0,attributeFilter:t,subtree:!0}),r}function T(e,t){let n=e;for(;n;){let r=n.closest(t);if(r)return r;let o=n.getRootNode();if(o===document)return null;n=o.host;}return null}function k(e){let t=T(e,":is(.calcite-mode-light, .calcite-mode-dark)");return t&&t.classList.contains("calcite-mode-dark")?"dark":"light"}function f(e,t,n){return T(e,`[${t}]`)?.getAttribute(t)??n}function M(e){return e.nodeType===Node.ELEMENT_NODE}function R(e){return "setFocus"in e&&typeof e.setFocus=="function"}function d(e,t=""){if(!M(e))return !1;if(e.matches(t))return R(e)&&setTimeout(()=>e.setFocus(),0),!0;for(let r of e.children)if(d(r,t))return !0;let n=e.shadowRoot;if(n){for(let r of n.children)if(d(r,t))return !0}return !1}function W(e,t){if(!e?.shadowRoot)return;if(e.hasAttribute("hydrated")||e.hasAttribute("calcite-hydrated")){d(e,t);return}let n=new MutationObserver(()=>{n.disconnect(),d(e,t);});n.observe(e,{attributes:!0,attributeFilter:["hydrated","calcite-hydrated"]});}function c(e){let t="";for(let n=0;n<e;n++)t+=((1+Math.random())*65536|0).toString(16).substring(1);return t}function U(){return [c(2),c(1),c(1),c(1),c(3)].join("-")}var E=new Set(["ar","bg","bs","ca","cs","da","de","el","en","es","et","fi","fr","he","hr","hu","id","it","ja","ko","lt","lv","nl","nb","pl","pt-BR","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"]),a=new Map;async function v(e,t,n=""){let r=`${t}/${n}${e}.json`;if(a.has(r))return a.get(r);try{let o=await fetch(r);if(o.ok){let i=await o.json();return a.set(r,i),i}if(e==="en"){a.set(r,void 0);return}let s=await v("en",t,n);return a.set(r,s),s}catch{a.set(r,void 0);return}}function _(e){let t=f(e,"lang",navigator.language||"en");if(E.has(t))return {lang:t,t9nLocale:t};let n=t.slice(0,2);return {lang:t,t9nLocale:E.has(n)?n:"en"}}var p=new WeakMap,m=new WeakMap,C=new WeakMap;async function B(e,t,n){m.set(e,t),p.set(e,x(e._hostElement,["lang"],()=>{b(e,n).catch(console.error);})),await b(e,n);}function q(e){p.get(e)?.disconnect(),p.delete(e),m.delete(e);}async function b(e,t){let{lang:n,t9nLocale:r}=_(e._hostElement);if(n===e._lang&&r===e._t9nLocale||(n!==e._lang&&(e._lang=n),r===e._t9nLocale))return;let o=C.get(e);if(!o){let s=m.get(e)??"",i=e._hostElement.tagName.toLowerCase().replace("arcgis-",""),l=`${s}/${i}/t9n`,u=`${i}.t9n.`;o=await v(r,l,u);}r!==e._t9nLocale&&(e._t9nLocale=r,e._t9nStrings=o,await t?.call(e));}var N='"',w="'";function L(e,t){return new Array(t+1).join(e)}function D(e){let t=N,n=w;e.includes(t)&&!e.includes(n)&&(n=N,t=w);let o=new RegExp(`(^|[^\\\\])((?:\\\\{2})*)((?:\\\\${n})+)`,"gu");e=e.replace(o,(i,l,u,g)=>l+u+L(n,g.length/2));let s=new RegExp(`(^|[^\\\\])((?:\\\\{2})*)(${t}+)`,"gu");return e=e.replace(s,(i,l,u,g)=>l+u+L(`\\${t}`,g.length)),t+e+t}function K(e){let t=e?e.replaceAll(/[-[\]/{}()*+?.\\^$|]/gu,"\\$&"):"^.*$";return new RegExp(t,"i")}function Z(e,t={}){return (e??"").replace(/\{(.*?)\}/gu,(n,r)=>t[r]??n)}function G(e){return `\u200E${e??""}\u200E`}function ee(e){return e!==null}function te(e){return e!==void 0}function re(e,t=100){let n;return (...r)=>{let o=()=>{clearTimeout(n),e(...r);};clearTimeout(n),n=setTimeout(o,t);}}function se(e,t,n=!1){if(!e||!t)return !1;let r=new URL(e),o=new URL(t);return !n&&r.protocol!==o.protocol||r.host==null||o.host==null?!1:r.host.toLowerCase()===o.host.toLowerCase()&&r.port===o.port}function ie(e){try{return new URL(e),!0}catch{return !1}}
|
|
169163
169166
|
|
|
169164
169167
|
/**
|
|
169165
169168
|
* Filters a collection of items by the given keys and filter word.
|
|
@@ -169172,7 +169175,7 @@ function filterCollection(collection, keys, filterWord, beforeFilteringFn) {
|
|
|
169172
169175
|
if (!_keys.length) {
|
|
169173
169176
|
return [];
|
|
169174
169177
|
}
|
|
169175
|
-
const filterExpression =
|
|
169178
|
+
const filterExpression = K(filterWord);
|
|
169176
169179
|
return collection.filter((item) => {
|
|
169177
169180
|
if (beforeFilteringFn) {
|
|
169178
169181
|
const res = beforeFilteringFn(item);
|
|
@@ -169180,7 +169183,7 @@ function filterCollection(collection, keys, filterWord, beforeFilteringFn) {
|
|
|
169180
169183
|
return res;
|
|
169181
169184
|
}
|
|
169182
169185
|
}
|
|
169183
|
-
return _keys.some((key) => filterExpression.test(
|
|
169186
|
+
return _keys.some((key) => filterExpression.test(String(item[key] ?? "")));
|
|
169184
169187
|
});
|
|
169185
169188
|
}
|
|
169186
169189
|
/**
|
|
@@ -169510,9 +169513,9 @@ class ProfileItemBase {
|
|
|
169510
169513
|
// If the component is under RTL, the string is messed up.
|
|
169511
169514
|
// It is converted from $feature to feature$, This is not acceptable since the label
|
|
169512
169515
|
// represents a variable name. We are adding in front of the $ sign a right to left mark.
|
|
169513
|
-
return
|
|
169516
|
+
return G(this._label);
|
|
169514
169517
|
}
|
|
169515
|
-
return
|
|
169518
|
+
return Z(this._profile?.intlStrings[this._label.code], this._label.formatValues);
|
|
169516
169519
|
}
|
|
169517
169520
|
/**
|
|
169518
169521
|
* Returns the description string.
|
|
@@ -169524,7 +169527,7 @@ class ProfileItemBase {
|
|
|
169524
169527
|
if (typeof this.description === "string") {
|
|
169525
169528
|
return this.description;
|
|
169526
169529
|
}
|
|
169527
|
-
return
|
|
169530
|
+
return Z(this._profile?.intlStrings[this.description.code], this.description.formatValues);
|
|
169528
169531
|
}
|
|
169529
169532
|
/**
|
|
169530
169533
|
* Returns true if the item pass the filter test
|
|
@@ -169765,7 +169768,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
169765
169768
|
return this._profile?.intlStrings.layer ?? "layer";
|
|
169766
169769
|
}
|
|
169767
169770
|
async loadSource() {
|
|
169768
|
-
if (
|
|
169771
|
+
if (ee(this._loadPromise) && te(this._loadPromise)) {
|
|
169769
169772
|
return await this._loadPromise;
|
|
169770
169773
|
}
|
|
169771
169774
|
this._loadPromise = this._loadSource();
|
|
@@ -170033,7 +170036,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
170033
170036
|
nonInteractive: true
|
|
170034
170037
|
}, [new ValueVariable({ profile: this._profile, label: snippet, description: "", snippet })], { exposeRelationships: true, sourceTableId: source.layerId });
|
|
170035
170038
|
}));
|
|
170036
|
-
relationshipsGroup.variables = relationshipItems.filter(
|
|
170039
|
+
relationshipsGroup.variables = relationshipItems.filter(ee);
|
|
170037
170040
|
if (!relationshipsGroup.variables.length) {
|
|
170038
170041
|
return null;
|
|
170039
170042
|
}
|
|
@@ -170191,7 +170194,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
|
|
|
170191
170194
|
return this._profile?.intlStrings.featureservice ?? "featureservice";
|
|
170192
170195
|
}
|
|
170193
170196
|
async loadSource() {
|
|
170194
|
-
if (
|
|
170197
|
+
if (ee(this._loadPromise) && te(this._loadPromise)) {
|
|
170195
170198
|
return await this._loadPromise;
|
|
170196
170199
|
}
|
|
170197
170200
|
this._loadPromise = this._loadSource();
|
|
@@ -170607,7 +170610,7 @@ class ArcadeLanguageServiceDefaults {
|
|
|
170607
170610
|
if (isPredefinedProfile(definition)) {
|
|
170608
170611
|
definition = await convertToEditorProfileDefinition(definition, apiContext.locale);
|
|
170609
170612
|
}
|
|
170610
|
-
const intlStrings = await
|
|
170613
|
+
const intlStrings = await v(apiContext.locale, getAssetPath("./assets/arcade-language/t9n"), "profile.t9n.");
|
|
170611
170614
|
if (!intlStrings) {
|
|
170612
170615
|
throw new Error(`Failed to load the language bundle for ${apiContext.locale}`);
|
|
170613
170616
|
}
|
|
@@ -170689,4 +170692,4 @@ const arcade = {
|
|
|
170689
170692
|
setProfileForModel: arcadeDefaults.setProfileForModel.bind(arcadeDefaults)
|
|
170690
170693
|
};
|
|
170691
170694
|
|
|
170692
|
-
export { B, D, Emitter as E,
|
|
170695
|
+
export { B, D, Emitter as E, G, IStandaloneThemeService as I, KeyCode as K, MarkerSeverity as M, Range as R, StandaloneServices as S, Uri as U, W, Z, arcade as a, commonjsGlobal as b, createCommonjsModule as c, importRequest as d, editor as e, arcadeDefaults as f, generateTokensCSSForColorMap as g, filterCollection as h, ie as i, importArcade as j, h as k, languages as l, U as m, k as n, supportedFields as o, K as p, q, KeyMod as r, se as s, monaco_editor_core_star as t, typescriptDefaults as u, main as v, re as w, x };
|
|
@@ -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.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.0-beta.
|
|
4
|
+
* v4.29.0-beta.115
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
7
|
-
import './index-
|
|
6
|
+
import { v as main, e as editor, M as MarkerSeverity, R as Range, l as languages, w as re, E as Emitter } from './arcade-defaults-341d3ba2.js';
|
|
7
|
+
import './index-17ee3129.js';
|
|
8
8
|
|
|
9
9
|
var j={False:"false",Null:"null",True:"true"},f={Break:"break",Continue:"continue",Else:"else",For:"for",From:"from",Function:"function",If:"if",Import:"import",Export:"export",In:"in",Return:"return",Var:"var",While:"while"},Fe=["++","--"],Qe=["-","+","!","~"],Ze=["=","/=","*=","%=","+=","-="],Xe=["||","&&"],Lt=["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"];var U=[[],[],[]];Fe.forEach(t=>U[t.length-1]?.push(t));Qe.forEach(t=>U[t.length-1]?.push(t));Xe.forEach(t=>U[t.length-1]?.push(t));Ze.forEach(t=>U[t.length-1]?.push(t));Lt.forEach(t=>U[t.length-1]?.push(t));var ht=Object.values(f),dt=Object.values(j);dt.map(t=>({label:t,kind:main.CompletionItemKind.Constant}));ht.map(t=>({label:t,kind:main.CompletionItemKind.Keyword}));
|
|
10
10
|
|
|
@@ -230,16 +230,13 @@ class DiagnosticsAdapter {
|
|
|
230
230
|
if (languageId !== this._languageId) {
|
|
231
231
|
return;
|
|
232
232
|
}
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
}, 500);
|
|
241
|
-
}));
|
|
242
|
-
this._doValidate(model, languageId);
|
|
233
|
+
const debouncedValidate = re(() => {
|
|
234
|
+
this._doValidate(model, languageId).catch((err) => {
|
|
235
|
+
throw err;
|
|
236
|
+
});
|
|
237
|
+
});
|
|
238
|
+
this._listener.set(model.uri.toString(), model.onDidChangeContent(debouncedValidate));
|
|
239
|
+
this._doValidate(model, languageId).catch(console.error);
|
|
243
240
|
};
|
|
244
241
|
const onModelRemoved = (model) => {
|
|
245
242
|
const uriStr = model.uri.toString();
|
|
@@ -269,7 +266,7 @@ class DiagnosticsAdapter {
|
|
|
269
266
|
this._disposables.push(defaults.onModelContextDidChange((key) => {
|
|
270
267
|
editor.getModels().forEach((model) => {
|
|
271
268
|
if (model.getLanguageId() === this._languageId && model.uri.toString() === key) {
|
|
272
|
-
this._doValidate(model, this._languageId);
|
|
269
|
+
this._doValidate(model, this._languageId).catch(console.error);
|
|
273
270
|
}
|
|
274
271
|
});
|
|
275
272
|
}));
|