@arcgis/coding-components 4.30.0-next.87 → 4.30.0-next.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
- package/dist/arcgis-coding-components/index.esm.js +2 -2
- package/dist/arcgis-coding-components/{p-59edc8da.js → p-0196528e.js} +2 -2
- package/dist/arcgis-coding-components/{p-7e829596.entry.js → p-6022c224.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-4f19dcba.js → p-71f35f85.js} +2 -2
- package/dist/arcgis-coding-components/{p-3cd3ac86.js → p-74f23145.js} +10 -10
- package/dist/arcgis-coding-components/{p-a601cf86.js → p-775478a1.js} +2 -2
- package/dist/arcgis-coding-components/{p-f5deb79d.js → p-9590a76e.js} +1 -1
- package/dist/arcgis-coding-components/{p-513dd114.js → p-9e52b4ea.js} +2 -2
- package/dist/arcgis-coding-components/{p-2c2ceb89.js → p-a17e1ccd.js} +2 -2
- package/dist/arcgis-coding-components/{p-903a5f03.js → p-cc6ae457.js} +2 -2
- package/dist/arcgis-coding-components/{p-9f808f2c.js → p-cf751d6e.js} +2 -2
- package/dist/arcgis-coding-components/{p-e3eaada6.js → p-d3ec7e0f.js} +2 -2
- package/dist/arcgis-coding-components/{p-3d787465.js → p-dfe82b20.js} +1 -1
- package/dist/cjs/{arcade-defaults-d85a2324.js → arcade-defaults-ce56c09d.js} +20 -15
- package/dist/cjs/{arcade-mode-d73130a7.js → arcade-mode-ea977580.js} +3 -3
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +204 -113
- package/dist/cjs/arcgis-coding-components.cjs.js +2 -2
- package/dist/cjs/{css-f3bb790e.js → css-6b84446c.js} +1 -1
- package/dist/cjs/{cssMode-0f4d1959.js → cssMode-4e1af67c.js} +3 -3
- package/dist/cjs/{html-ba1a8679.js → html-f4dd0588.js} +3 -3
- package/dist/cjs/{htmlMode-9b561517.js → htmlMode-f68de1a9.js} +3 -3
- package/dist/cjs/{index-82f03a8a.js → index-605d6ef9.js} +1 -1
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{javascript-5b1823aa.js → javascript-dda2ef43.js} +4 -4
- package/dist/cjs/{jsonMode-ccd5f6cd.js → jsonMode-6bac5cc0.js} +3 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{tsMode-7dff2308.js → tsMode-8390294f.js} +3 -3
- package/dist/cjs/{typescript-7f8d1b9e.js → typescript-98a878a8.js} +3 -3
- package/dist/components/arcade-api.js +4 -3
- package/dist/components/arcade-contribution.js +1 -1
- package/dist/components/arcade-defaults.js +1 -1
- package/dist/components/arcade-mode.js +1 -1
- package/dist/components/arcade-results.js +2 -2
- package/dist/components/arcade-suggestions.js +2 -2
- package/dist/components/arcade-variables.js +2 -2
- package/dist/components/arcgis-arcade-api.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +2 -2
- 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-63RMNUHL.js → chunk-IHYYRFLQ.js} +195 -107
- package/dist/components/code-editor.js +2 -2
- package/dist/components/fields.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +11 -6
- package/dist/components/markdown.js +1 -1
- package/dist/components/useT9n.js +6 -4
- package/dist/components/utilities.js +1 -1
- package/dist/esm/{arcade-defaults-ba76eccb.js → arcade-defaults-88113aee.js} +20 -15
- package/dist/esm/{arcade-mode-5825602d.js → arcade-mode-aac5e6e0.js} +3 -3
- package/dist/esm/arcgis-arcade-api_6.entry.js +204 -113
- package/dist/esm/arcgis-coding-components.js +3 -3
- package/dist/esm/{css-6763a410.js → css-7426781e.js} +1 -1
- package/dist/esm/{cssMode-e1a97726.js → cssMode-15d430ed.js} +3 -3
- package/dist/esm/{html-2fcb5e0d.js → html-2ab5b706.js} +3 -3
- package/dist/esm/{htmlMode-02c07834.js → htmlMode-63740dc4.js} +3 -3
- package/dist/esm/{index-50fbefd4.js → index-d0ab56b8.js} +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/{javascript-d530fdb9.js → javascript-13a9ec01.js} +4 -4
- package/dist/esm/{jsonMode-6a65324c.js → jsonMode-fd19e9c6.js} +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{tsMode-4da5912a.js → tsMode-530e410c.js} +3 -3
- package/dist/esm/{typescript-2b4a9ded.js → typescript-d8863dec.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/package.json +9 -9
|
@@ -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.89
|
|
5
5
|
*/
|
|
6
6
|
import { editor } from 'monaco-editor';
|
|
7
7
|
import { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
@@ -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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.89
|
|
5
5
|
*/
|
|
6
|
-
import { m as makeController } from './chunk-
|
|
6
|
+
import { m as makeController } from './chunk-IHYYRFLQ.js';
|
|
7
7
|
import { n as startLocaleObserver, o as getElementLocales } from './index2.js';
|
|
8
8
|
import { getArcgisAssetPath as getAssetPath } from "./arcgis-assets.js";
|
|
9
9
|
|
|
@@ -17,14 +17,16 @@ var makeT9nController = (getAssetPath) => ({ blocking = false, name } = {}) => (
|
|
|
17
17
|
({ t9nLocale, t9nStrings, lang }) => {
|
|
18
18
|
controller.exports = { ...t9nStrings, _lang: lang, _t9nLocale: t9nLocale };
|
|
19
19
|
const label = t9nStrings.componentLabel ?? t9nStrings.widgetLabel;
|
|
20
|
-
if (typeof label === "string" && "label" in component && component.label == null)
|
|
20
|
+
if (typeof label === "string" && "label" in component && component.label == null) {
|
|
21
21
|
component.label ?? (component.label = label);
|
|
22
|
+
}
|
|
22
23
|
},
|
|
23
24
|
name
|
|
24
25
|
)
|
|
25
26
|
);
|
|
26
|
-
if (blocking)
|
|
27
|
+
if (blocking) {
|
|
27
28
|
return controller.ready;
|
|
29
|
+
}
|
|
28
30
|
const locale = getElementLocales(component.el);
|
|
29
31
|
return { _lang: locale.lang, _t9nLocale: locale.t9nLocale };
|
|
30
32
|
})
|
|
@@ -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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.89
|
|
5
5
|
*/
|
|
6
|
-
import { g as getAssetPath } from './index-
|
|
6
|
+
import { g as getAssetPath } from './index-d0ab56b8.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-7426781e.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-2ab5b706.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-13a9ec01.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-d8863dec.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-15d430ed.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-63740dc4.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-fd19e9c6.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-530e410c.js');
|
|
121199
121199
|
}
|
|
121200
121200
|
}
|
|
121201
121201
|
monaco_editor_core_exports.languages.onLanguage("typescript", () => {
|
|
@@ -169208,16 +169208,18 @@ function observeAncestorsMutation(element, attributeFilter, callback) {
|
|
|
169208
169208
|
const { subscribe } = observe(attributeFilter);
|
|
169209
169209
|
return subscribe((mutations) => {
|
|
169210
169210
|
const matched = mutations.some((mutation) => inTargetElement(element, mutation.target));
|
|
169211
|
-
if (matched)
|
|
169211
|
+
if (matched) {
|
|
169212
169212
|
callback();
|
|
169213
|
+
}
|
|
169213
169214
|
});
|
|
169214
169215
|
}
|
|
169215
169216
|
var observers = {};
|
|
169216
169217
|
function observe(attributeFilter) {
|
|
169217
169218
|
const attributes = attributeFilter.join(",");
|
|
169218
169219
|
const previousObserver = observers[attributes];
|
|
169219
|
-
if (previousObserver !== void 0)
|
|
169220
|
+
if (previousObserver !== void 0) {
|
|
169220
169221
|
return previousObserver;
|
|
169222
|
+
}
|
|
169221
169223
|
const subscribers = /* @__PURE__ */ new Set();
|
|
169222
169224
|
const mutationObserver = new MutationObserver((mutations) => subscribers.forEach((callback) => callback(mutations)));
|
|
169223
169225
|
mutationObserver.observe(document.documentElement, {
|
|
@@ -169404,14 +169406,16 @@ async function fetchBundle(locale, path) {
|
|
|
169404
169406
|
const filePath = `${path}${locale}.json`;
|
|
169405
169407
|
try {
|
|
169406
169408
|
const response = await fetch(filePath);
|
|
169407
|
-
if (response.ok)
|
|
169409
|
+
if (response.ok) {
|
|
169408
169410
|
return await response.json();
|
|
169411
|
+
}
|
|
169409
169412
|
} catch (error) {
|
|
169410
169413
|
console.error(error);
|
|
169411
169414
|
return fallbackBundle;
|
|
169412
169415
|
}
|
|
169413
|
-
if (locale === defaultLocale)
|
|
169416
|
+
if (locale === defaultLocale) {
|
|
169414
169417
|
return fallbackBundle;
|
|
169418
|
+
}
|
|
169415
169419
|
return await fetchBundle(defaultLocale, path);
|
|
169416
169420
|
}
|
|
169417
169421
|
var fallbackBundle = new Proxy(
|
|
@@ -169431,8 +169435,9 @@ function getElementLocales(element) {
|
|
|
169431
169435
|
function startLocaleObserver(element, assetsPath, onUpdated, assetName) {
|
|
169432
169436
|
let result = void 0;
|
|
169433
169437
|
const callback = () => void updateComponentLocateState(element, assetsPath, assetName).then((newResult) => {
|
|
169434
|
-
if (result?.lang !== newResult.lang || result.t9nLocale !== newResult.t9nLocale || result.t9nStrings !== newResult.t9nStrings)
|
|
169438
|
+
if (result?.lang !== newResult.lang || result.t9nLocale !== newResult.t9nLocale || result.t9nStrings !== newResult.t9nStrings) {
|
|
169435
169439
|
onUpdated(newResult);
|
|
169440
|
+
}
|
|
169436
169441
|
result = newResult;
|
|
169437
169442
|
}).catch(console.error);
|
|
169438
169443
|
callback();
|
|
@@ -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.89
|
|
5
5
|
*/
|
|
6
|
-
import { F as main, e as editor, M as MarkerSeverity, R as Range, n as languages, G as debounce, H as Emitter } from './arcade-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
import { F as main, e as editor, M as MarkerSeverity, R as Range, n as languages, G as debounce, H as Emitter } from './arcade-defaults-88113aee.js';
|
|
7
|
+
import './index-d0ab56b8.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
|
|