@arcgis/coding-components 4.30.0-next.50 → 4.30.0-next.52
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-bf81a3f3.js → p-13f350e3.js} +2 -2
- package/dist/arcgis-coding-components/{p-2c805689.js → p-345b5ba8.js} +2 -2
- package/dist/arcgis-coding-components/{p-50055c43.js → p-45f495e9.js} +2 -2
- package/dist/arcgis-coding-components/{p-60888738.js → p-46769e94.js} +2 -2
- package/dist/arcgis-coding-components/{p-ab00671b.js → p-5478c787.js} +10 -10
- package/dist/arcgis-coding-components/p-724eb64e.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-b62b3ecc.js → p-7ab8f0f7.js} +1 -1
- package/dist/arcgis-coding-components/{p-7c5bb70b.js → p-7ad70a79.js} +2 -2
- package/dist/arcgis-coding-components/{p-bda60780.js → p-910ed5f7.js} +2 -2
- package/dist/arcgis-coding-components/{p-8c564c76.js → p-a7564b2c.js} +2 -2
- package/dist/arcgis-coding-components/{p-d220236c.js → p-dc1c7b80.js} +1 -1
- package/dist/arcgis-coding-components/{p-c3aa0ba1.js → p-f75dbd4e.js} +2 -2
- package/dist/cjs/{arcade-defaults-57e26a09.js → arcade-defaults-6e0547ad.js} +21 -12
- package/dist/cjs/{arcade-mode-3b27569b.js → arcade-mode-76ed6c56.js} +3 -3
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +232 -170
- package/dist/cjs/arcgis-coding-components.cjs.js +2 -2
- package/dist/cjs/{css-c4174c97.js → css-a8317c02.js} +1 -1
- package/dist/cjs/{cssMode-11d4382b.js → cssMode-8cfc97e2.js} +3 -3
- package/dist/cjs/{html-f41bd48d.js → html-d058f515.js} +3 -3
- package/dist/cjs/{htmlMode-59c5586b.js → htmlMode-546991d6.js} +3 -3
- package/dist/cjs/{index-999a3012.js → index-3be8a503.js} +1 -1
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{javascript-00a4972f.js → javascript-1461f157.js} +4 -4
- package/dist/cjs/{jsonMode-3550388e.js → jsonMode-2db5dc31.js} +3 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{tsMode-b6cf29ec.js → tsMode-c850272d.js} +3 -3
- package/dist/cjs/{typescript-2704ab9d.js → typescript-257a502a.js} +3 -3
- package/dist/components/arcade-api.js +2 -2
- 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 +3 -3
- 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-27DTPISK.js → chunk-NUIXJNPX.js} +227 -189
- package/dist/components/code-editor.js +3 -3
- package/dist/components/fields.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +12 -3
- package/dist/components/markdown.js +1 -1
- package/dist/components/useT9n.js +26 -2
- package/dist/components/utilities.js +1 -1
- package/dist/esm/{arcade-defaults-c102be00.js → arcade-defaults-3d16bccc.js} +21 -12
- package/dist/esm/{arcade-mode-c4dd84f5.js → arcade-mode-ca4a7bd2.js} +3 -3
- package/dist/esm/arcgis-arcade-api_6.entry.js +232 -170
- package/dist/esm/arcgis-coding-components.js +3 -3
- package/dist/esm/{css-be9f2148.js → css-251aca28.js} +1 -1
- package/dist/esm/{cssMode-5bfb9fcd.js → cssMode-61d0f6b9.js} +3 -3
- package/dist/esm/{html-e4052e46.js → html-f315d132.js} +3 -3
- package/dist/esm/{htmlMode-39da10b5.js → htmlMode-ef5a2c16.js} +3 -3
- package/dist/esm/{index-507ff821.js → index-970155f3.js} +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/{javascript-2698ff38.js → javascript-c726fa62.js} +4 -4
- package/dist/esm/{jsonMode-01c45b94.js → jsonMode-e547930f.js} +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{tsMode-4ee78489.js → tsMode-a12376ae.js} +3 -3
- package/dist/esm/{typescript-5e150a72.js → typescript-0f735029.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
- package/dist/arcgis-coding-components/p-f11a8755.entry.js +0 -6
|
@@ -1,11 +1,35 @@
|
|
|
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.52
|
|
5
5
|
*/
|
|
6
|
-
import { m as
|
|
6
|
+
import { m as makeController, s as startLocaleObserver, g as getElementLocales } from './chunk-NUIXJNPX.js';
|
|
7
7
|
import { getArcgisAssetPath as getAssetPath } from "./arcgis-assets.js";
|
|
8
8
|
|
|
9
|
+
// src/useT9n.ts
|
|
10
|
+
var makeT9nController = (getAssetPath) => ({ blocking = false, name } = {}) => (
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/promise-function-async
|
|
12
|
+
makeController((component, controller) => {
|
|
13
|
+
controller.onLifecycle(
|
|
14
|
+
() => startLocaleObserver(
|
|
15
|
+
component.el,
|
|
16
|
+
getAssetPath("./assets"),
|
|
17
|
+
({ t9nLocale, t9nStrings, lang }) => {
|
|
18
|
+
controller.exports = { ...t9nStrings, _lang: lang, _t9nLocale: t9nLocale };
|
|
19
|
+
const label = t9nStrings.componentLabel ?? t9nStrings.widgetLabel;
|
|
20
|
+
if (typeof label === "string" && "label" in component && component.label == null)
|
|
21
|
+
component.label ?? (component.label = label);
|
|
22
|
+
},
|
|
23
|
+
name
|
|
24
|
+
)
|
|
25
|
+
);
|
|
26
|
+
if (blocking)
|
|
27
|
+
return controller.ready;
|
|
28
|
+
const locale = getElementLocales(component.el);
|
|
29
|
+
return { _lang: locale.lang, _t9nLocale: locale.t9nLocale };
|
|
30
|
+
})
|
|
31
|
+
);
|
|
32
|
+
|
|
9
33
|
const useT9n = makeT9nController(getAssetPath);
|
|
10
34
|
|
|
11
35
|
export { useT9n as u };
|
|
@@ -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.52
|
|
5
5
|
*/
|
|
6
|
-
import { g as getAssetPath } from './index-
|
|
6
|
+
import { g as getAssetPath } from './index-970155f3.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-251aca28.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-f315d132.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-c726fa62.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-0f735029.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-61d0f6b9.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-ef5a2c16.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-e547930f.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-a12376ae.js');
|
|
121199
121199
|
}
|
|
121200
121200
|
}
|
|
121201
121201
|
monaco_editor_core_exports.languages.onLanguage("typescript", () => {
|
|
@@ -169178,12 +169178,21 @@ function getSupportedLayerInfos(layers, queryCapability) {
|
|
|
169178
169178
|
|
|
169179
169179
|
// src/deferred.ts
|
|
169180
169180
|
var Deferred = class {
|
|
169181
|
+
/**
|
|
169182
|
+
* Resolves the promise.
|
|
169183
|
+
* @param value The value to resolve the promise with.
|
|
169184
|
+
*/
|
|
169185
|
+
resolve(_value) {
|
|
169186
|
+
}
|
|
169187
|
+
/**
|
|
169188
|
+
* Rejects the promise.
|
|
169189
|
+
*/
|
|
169190
|
+
reject(_error) {
|
|
169191
|
+
}
|
|
169181
169192
|
/**
|
|
169182
169193
|
* Creates a new deferred promise.
|
|
169183
169194
|
*/
|
|
169184
169195
|
constructor() {
|
|
169185
|
-
this.resolve = () => void 0;
|
|
169186
|
-
this.reject = () => void 0;
|
|
169187
169196
|
this.promise = new Promise((resolve, reject) => {
|
|
169188
169197
|
this.resolve = resolve;
|
|
169189
169198
|
this.reject = reject;
|
|
@@ -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.52
|
|
5
5
|
*/
|
|
6
|
-
import { y as main, e as editor, M as MarkerSeverity, R as Range, l as languages, z as debounce, E as Emitter } from './arcade-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
import { y as main, e as editor, M as MarkerSeverity, R as Range, l as languages, z as debounce, E as Emitter } from './arcade-defaults-3d16bccc.js';
|
|
7
|
+
import './index-970155f3.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
|
|