@arcgis/coding-components 4.30.0-next.11 → 4.30.0-next.111
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/LICENSE.md +1 -1
- package/README.md +2 -4
- 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-api/t9n/arcade-api.t9n.ca.json +1 -1
- 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/arcade-language/t9n/profile.t9n.ar.json +3 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.bg.json +3 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.bs.json +3 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ca.json +8 -6
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.cs.json +3 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.da.json +3 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.de.json +3 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.el.json +3 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.es.json +3 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.et.json +3 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.fi.json +3 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.fr.json +3 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.he.json +3 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.hr.json +3 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.hu.json +2 -0
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.id.json +3 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.it.json +3 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ja.json +2 -0
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ko.json +3 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.lt.json +2 -0
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.lv.json +2 -0
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.nb.json +3 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.nl.json +3 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.pl.json +3 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.pt-BR.json +3 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.pt-PT.json +3 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ro.json +2 -0
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ru.json +3 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sk.json +3 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sl.json +3 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sr.json +3 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sv.json +3 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.th.json +3 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.tr.json +3 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.uk.json +7 -5
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.vi.json +3 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.zh-CN.json +3 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.zh-HK.json +3 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.zh-TW.json +3 -1
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.ca.json +2 -2
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.de.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.he.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.ca.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.it.json +1 -1
- package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +2 -2
- 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-25549f14.entry.js +6 -0
- package/dist/arcgis-coding-components/p-4998461e.js +6 -0
- package/dist/arcgis-coding-components/p-4d731512.js +6 -0
- package/dist/arcgis-coding-components/{p-2dc8c1c3.js → p-7d1a3e00.js} +1 -1
- package/dist/arcgis-coding-components/p-7f7b18b5.js +7 -0
- package/dist/arcgis-coding-components/{p-67e523f9.js → p-81b4a62f.js} +2 -2
- package/dist/arcgis-coding-components/p-82cacda2.js +68 -0
- package/dist/arcgis-coding-components/{p-fe7352bb.js → p-8e74e852.js} +3 -3
- package/dist/arcgis-coding-components/{p-b2a8cb09.js → p-91470a4a.js} +2 -2
- package/dist/arcgis-coding-components/{p-b8161e05.js → p-bc983f83.js} +2 -2
- package/dist/arcgis-coding-components/{p-ef12f153.js → p-c9ac7a16.js} +3 -3
- package/dist/arcgis-coding-components/{p-acb10a82.js → p-e1b11b78.js} +2 -2
- package/dist/arcgis-coding-components/{p-f74fe922.js → p-f5841047.js} +2 -2
- package/dist/cjs/app-globals-41c1f370.js +10 -0
- package/dist/cjs/{arcade-defaults-576ac87c.js → arcade-defaults-d6466b5a.js} +729 -289
- package/dist/cjs/{arcade-mode-255ab73e.js → arcade-mode-b9b8cb02.js} +78 -84
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +1613 -240
- package/dist/cjs/arcgis-coding-components.cjs.js +14 -12
- package/dist/cjs/{css-ed54e7c5.js → css-445635ef.js} +1 -1
- package/dist/cjs/{cssMode-953d135f.js → cssMode-afed37ca.js} +3 -3
- package/dist/cjs/{html-6885989e.js → html-04f96ede.js} +3 -3
- package/dist/cjs/{htmlMode-036d018f.js → htmlMode-30d3358f.js} +3 -3
- package/dist/cjs/index-202533e4.js +1303 -0
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{javascript-8937794f.js → javascript-0f0f9b7b.js} +4 -4
- package/dist/cjs/{jsonMode-679c7610.js → jsonMode-7ffc2346.js} +3 -3
- package/dist/cjs/loader.cjs.js +6 -4
- package/dist/cjs/{tsMode-ab115860.js → tsMode-885b55a1.js} +3 -3
- package/dist/cjs/{typescript-38fcedb8.js → typescript-c042efee.js} +3 -3
- package/dist/components/arcade-api.js +27 -34
- package/dist/components/arcade-contribution.js +10 -10
- package/dist/components/arcade-defaults.js +143 -161
- package/dist/components/arcade-mode.js +46 -52
- package/dist/components/arcade-results.js +51 -61
- package/dist/components/arcade-suggestions.js +27 -34
- package/dist/components/arcade-variables.js +26 -37
- package/dist/components/arcgis-arcade-api.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +63 -89
- 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-2CDDVOQU.js +1364 -0
- package/dist/components/code-editor.js +75 -80
- package/dist/components/fields.js +45 -45
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +394 -3
- package/dist/components/markdown.js +13 -27
- package/dist/components/useT9n.js +37 -0
- package/dist/components/utilities.js +3 -3
- package/dist/esm/app-globals-73ff8787.js +8 -0
- package/dist/esm/{arcade-defaults-75889e75.js → arcade-defaults-c6c41c52.js} +712 -275
- package/dist/esm/{arcade-mode-5b34a4b8.js → arcade-mode-3b59a8a3.js} +78 -84
- package/dist/esm/arcgis-arcade-api_6.entry.js +1613 -240
- package/dist/esm/arcgis-coding-components.js +15 -13
- package/dist/esm/{css-97016367.js → css-19fe388b.js} +1 -1
- package/dist/esm/{cssMode-9629ae8c.js → cssMode-18face1c.js} +3 -3
- package/dist/esm/{html-8663047e.js → html-f3314d3b.js} +3 -3
- package/dist/esm/{htmlMode-bebf5737.js → htmlMode-2796244f.js} +3 -3
- package/dist/esm/index-9e18ee96.js +1272 -0
- package/dist/esm/index.js +3 -3
- package/dist/esm/{javascript-b4989490.js → javascript-10ca6f91.js} +4 -4
- package/dist/esm/{jsonMode-b32620ba.js → jsonMode-9f05b287.js} +3 -3
- package/dist/esm/loader.js +7 -5
- package/dist/esm/{tsMode-a6cd5561.js → tsMode-17e9cd75.js} +3 -3
- package/dist/esm/{typescript-4fbf00a5.js → typescript-1416b690.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 +18 -12
- package/dist/types/components/arcade-results/arcade-results.d.ts +6 -9
- package/dist/types/components/arcade-suggestions/arcade-suggestions.d.ts +7 -8
- package/dist/types/components/arcade-variables/arcade-variables.d.ts +6 -8
- package/dist/types/components/code-editor/code-editor.d.ts +23 -13
- package/dist/types/components.d.ts +57 -35
- package/dist/types/controllers/useT9n.d.ts +1 -0
- 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 +10 -13
- package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/arcade-editor/editorContext.d.ts +15 -0
- package/dist/types/utils/arcade-monaco/arcade-language-features.d.ts +1 -1
- package/dist/types/utils/profile/types.d.ts +40 -13
- package/dist/types/utils/profile/utils.d.ts +2 -4
- package/package.json +24 -24
- package/dist/arcgis-coding-components/p-2ccd9fd8.entry.js +0 -6
- package/dist/arcgis-coding-components/p-2d2b5e39.js +0 -7
- package/dist/arcgis-coding-components/p-7e1cb194.js +0 -68
- package/dist/arcgis-coding-components/p-9829e511.js +0 -6
- package/dist/cjs/index-2c5ded93.js +0 -1958
- package/dist/esm/index-b24a41ab.js +0 -1927
|
@@ -1,70 +1,70 @@
|
|
|
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.111
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
// src/index.ts
|
|
7
|
+
var isAMD = typeof window !== "undefined" && "$arcgis" in window && typeof window.$arcgis === "object" && "import" in window.$arcgis;
|
|
7
8
|
function isDefaultModule(module) {
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
async function requireModule(modulePath) {
|
|
11
|
-
return await new Promise((resolve) => window.require([modulePath], (moduleDefault) => {
|
|
12
|
-
resolve(moduleDefault);
|
|
13
|
-
}));
|
|
9
|
+
return module.default !== void 0;
|
|
14
10
|
}
|
|
15
11
|
async function importLayersFeatureLayer() {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
if (isAMD) {
|
|
13
|
+
return await window.$arcgis.import("esri/layers/FeatureLayer");
|
|
14
|
+
}
|
|
15
|
+
const module = await import('@arcgis/core/layers/FeatureLayer.js');
|
|
16
|
+
return isDefaultModule(module) ? module.default : module;
|
|
17
|
+
}
|
|
18
|
+
async function newLayersFeatureLayer(properties) {
|
|
19
|
+
const ModConstructor = await importLayersFeatureLayer();
|
|
20
|
+
return new ModConstructor(properties);
|
|
21
21
|
}
|
|
22
22
|
async function importPortalPortalItem() {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
if (isAMD) {
|
|
24
|
+
return await window.$arcgis.import("esri/portal/PortalItem");
|
|
25
|
+
}
|
|
26
|
+
const module = await import('@arcgis/core/portal/PortalItem.js');
|
|
27
|
+
return isDefaultModule(module) ? module.default : module;
|
|
28
28
|
}
|
|
29
29
|
async function newPortalPortalItem(properties) {
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
const ModConstructor = await importPortalPortalItem();
|
|
31
|
+
return new ModConstructor(properties);
|
|
32
32
|
}
|
|
33
33
|
async function importWebMap() {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
if (isAMD) {
|
|
35
|
+
return await window.$arcgis.import("esri/WebMap");
|
|
36
|
+
}
|
|
37
|
+
const module = await import('@arcgis/core/WebMap.js');
|
|
38
|
+
return isDefaultModule(module) ? module.default : module;
|
|
39
39
|
}
|
|
40
40
|
async function newWebMap(properties) {
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
const ModConstructor = await importWebMap();
|
|
42
|
+
return new ModConstructor(properties);
|
|
43
43
|
}
|
|
44
44
|
async function importWebScene() {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
if (isAMD) {
|
|
46
|
+
return await window.$arcgis.import("esri/WebScene");
|
|
47
|
+
}
|
|
48
|
+
const module = await import('@arcgis/core/WebScene.js');
|
|
49
|
+
return isDefaultModule(module) ? module.default : module;
|
|
50
50
|
}
|
|
51
51
|
async function newWebScene(properties) {
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
const ModConstructor = await importWebScene();
|
|
53
|
+
return new ModConstructor(properties);
|
|
54
54
|
}
|
|
55
55
|
async function importArcade() {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
56
|
+
if (isAMD) {
|
|
57
|
+
return await window.$arcgis.import("esri/arcade");
|
|
58
|
+
}
|
|
59
|
+
const module = await import('@arcgis/core/arcade.js');
|
|
60
|
+
return isDefaultModule(module) ? module.default : module;
|
|
61
61
|
}
|
|
62
62
|
async function importRequest() {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
63
|
+
if (isAMD) {
|
|
64
|
+
return await window.$arcgis.import("esri/request");
|
|
65
|
+
}
|
|
66
|
+
const module = await import('@arcgis/core/request.js');
|
|
67
|
+
return isDefaultModule(module) ? module.default : module;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
/**
|
|
@@ -152,4 +152,4 @@ function fieldAlias(field) {
|
|
|
152
152
|
return field.alias || field.name;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
export {
|
|
155
|
+
export { newPortalPortalItem as a, newWebScene as b, newWebMap as c, fieldTypeToIconName as d, fieldTypeToArcadeType as e, fieldAlias as f, importArcade as g, importRequest as i, newLayersFeatureLayer as n, supportedFields as s };
|
package/dist/components/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.111
|
|
5
5
|
*/
|
|
6
6
|
export { setNonce, setPlatformOptions } from '@stencil/core/internal/client';
|
|
7
7
|
export { a as arcade } from './arcade-defaults.js';
|
|
@@ -1,8 +1,399 @@
|
|
|
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.111
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
// src/array-utils.ts
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/deferred.ts
|
|
9
|
+
var Deferred = class {
|
|
10
|
+
/**
|
|
11
|
+
* Resolves the promise.
|
|
12
|
+
* @param value The value to resolve the promise with.
|
|
13
|
+
*/
|
|
14
|
+
resolve(_value) {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Rejects the promise.
|
|
18
|
+
*/
|
|
19
|
+
reject(_error) {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Creates a new deferred promise.
|
|
23
|
+
*/
|
|
24
|
+
constructor() {
|
|
25
|
+
this.promise = new Promise((resolve, reject) => {
|
|
26
|
+
this.resolve = resolve;
|
|
27
|
+
this.reject = reject;
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
// src/dom.ts
|
|
33
|
+
function inTargetElement(element, targetElement) {
|
|
34
|
+
let currentElement = element;
|
|
35
|
+
while (currentElement) {
|
|
36
|
+
if (currentElement === targetElement) {
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
if (!currentElement.parentNode) {
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
if (currentElement.parentNode instanceof ShadowRoot) {
|
|
43
|
+
currentElement = currentElement.parentNode.host;
|
|
44
|
+
} else {
|
|
45
|
+
currentElement = currentElement.parentNode;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return false;
|
|
49
|
+
}
|
|
50
|
+
function observeAncestorsMutation(element, attributeFilter, callback) {
|
|
51
|
+
const { subscribe } = observe(attributeFilter);
|
|
52
|
+
return subscribe((mutations) => {
|
|
53
|
+
const matched = mutations.some((mutation) => inTargetElement(element, mutation.target));
|
|
54
|
+
if (matched) {
|
|
55
|
+
callback();
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
var observers = {};
|
|
60
|
+
function observe(attributeFilter) {
|
|
61
|
+
const attributes = attributeFilter.join(",");
|
|
62
|
+
const previousObserver = observers[attributes];
|
|
63
|
+
if (previousObserver !== void 0) {
|
|
64
|
+
return previousObserver;
|
|
65
|
+
}
|
|
66
|
+
const subscribers = /* @__PURE__ */ new Set();
|
|
67
|
+
const mutationObserver = new MutationObserver((mutations) => subscribers.forEach((callback) => callback(mutations)));
|
|
68
|
+
mutationObserver.observe(document.documentElement, {
|
|
69
|
+
attributes: true,
|
|
70
|
+
attributeFilter,
|
|
71
|
+
subtree: true
|
|
72
|
+
});
|
|
73
|
+
const observer = {
|
|
74
|
+
subscribe(callback) {
|
|
75
|
+
subscribers.add(callback);
|
|
76
|
+
return {
|
|
77
|
+
remove: () => {
|
|
78
|
+
subscribers.delete(callback);
|
|
79
|
+
if (subscribers.size === 0) {
|
|
80
|
+
mutationObserver.disconnect();
|
|
81
|
+
observers[attributes] = void 0;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
observers[attributes] = observer;
|
|
88
|
+
return observer;
|
|
89
|
+
}
|
|
90
|
+
function closestElement(base, selector) {
|
|
91
|
+
let currentElement = base;
|
|
92
|
+
while (currentElement) {
|
|
93
|
+
const element = currentElement.closest(selector);
|
|
94
|
+
if (element) {
|
|
95
|
+
return element;
|
|
96
|
+
}
|
|
97
|
+
const rootElement = currentElement.getRootNode();
|
|
98
|
+
if (rootElement === document) {
|
|
99
|
+
return null;
|
|
100
|
+
}
|
|
101
|
+
currentElement = rootElement.host;
|
|
102
|
+
}
|
|
103
|
+
return null;
|
|
104
|
+
}
|
|
105
|
+
function getElementTheme(base) {
|
|
106
|
+
const themeElt = closestElement(base, ":is(.calcite-mode-light, .calcite-mode-dark)");
|
|
107
|
+
return themeElt && themeElt.classList.contains("calcite-mode-dark") ? "dark" : "light";
|
|
108
|
+
}
|
|
109
|
+
function getElementAttribute(el, prop, fallbackValue) {
|
|
110
|
+
const closest = closestElement(el, `[${prop}]`);
|
|
111
|
+
return closest?.getAttribute(prop) ?? fallbackValue;
|
|
112
|
+
}
|
|
113
|
+
function isElement(ref) {
|
|
114
|
+
return ref.nodeType === Node.ELEMENT_NODE;
|
|
115
|
+
}
|
|
116
|
+
function isHTMLWithSetFocus(ref) {
|
|
117
|
+
return "setFocus" in ref && typeof ref.setFocus === "function";
|
|
118
|
+
}
|
|
119
|
+
function setFocus(ref, selector = "") {
|
|
120
|
+
if (!isElement(ref)) {
|
|
121
|
+
return false;
|
|
122
|
+
}
|
|
123
|
+
if (ref.matches(selector)) {
|
|
124
|
+
if (isHTMLWithSetFocus(ref)) {
|
|
125
|
+
setTimeout(() => ref.setFocus(), 0);
|
|
126
|
+
}
|
|
127
|
+
return true;
|
|
128
|
+
}
|
|
129
|
+
for (const child of ref.children) {
|
|
130
|
+
if (setFocus(child, selector)) {
|
|
131
|
+
return true;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
const shadowRoot = ref.shadowRoot;
|
|
135
|
+
if (shadowRoot) {
|
|
136
|
+
for (const child of shadowRoot.children) {
|
|
137
|
+
if (setFocus(child, selector)) {
|
|
138
|
+
return true;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
return false;
|
|
143
|
+
}
|
|
144
|
+
function setFocusOnElement(ref, selector) {
|
|
145
|
+
if (!ref?.shadowRoot) {
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
if (ref.hasAttribute("hydrated") || ref.hasAttribute("calcite-hydrated")) {
|
|
149
|
+
setFocus(ref, selector);
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
const mutationObserver = new MutationObserver(() => {
|
|
153
|
+
mutationObserver.disconnect();
|
|
154
|
+
setFocus(ref, selector);
|
|
155
|
+
});
|
|
156
|
+
mutationObserver.observe(ref, {
|
|
157
|
+
attributes: true,
|
|
158
|
+
attributeFilter: ["hydrated", "calcite-hydrated"]
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
// src/errors.ts
|
|
163
|
+
function safeCall(callback, thisContext, ...rest) {
|
|
164
|
+
try {
|
|
165
|
+
return callback?.call(thisContext, ...rest);
|
|
166
|
+
} catch (error) {
|
|
167
|
+
console.error(error, callback);
|
|
168
|
+
}
|
|
169
|
+
return void 0;
|
|
170
|
+
}
|
|
171
|
+
async function safeAsyncCall(callback, thisContext, ...rest) {
|
|
172
|
+
try {
|
|
173
|
+
const result = callback?.call(thisContext, ...rest);
|
|
174
|
+
return result instanceof Promise ? await result : result;
|
|
175
|
+
} catch (error) {
|
|
176
|
+
console.error(error, callback);
|
|
177
|
+
}
|
|
178
|
+
return void 0;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
// src/guid.ts
|
|
182
|
+
function gen(count) {
|
|
183
|
+
let out = "";
|
|
184
|
+
for (let i = 0; i < count; i++) {
|
|
185
|
+
out += ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
|
|
186
|
+
}
|
|
187
|
+
return out;
|
|
188
|
+
}
|
|
189
|
+
function generateGuid() {
|
|
190
|
+
return [gen(2), gen(1), gen(1), gen(1), gen(3)].join("-");
|
|
191
|
+
}
|
|
192
|
+
var camelToKebab = (string) => string.replace(upperBeforeLower, (upper, remainder) => `${remainder === 0 ? "" : "-"}${upper.toLowerCase()}`);
|
|
193
|
+
var upperBeforeLower = /[A-Z]+(?![a-z])|[A-Z]/gu;
|
|
194
|
+
var capitalize = (string) => string.charAt(0).toUpperCase() + string.slice(1);
|
|
195
|
+
var camelToHuman = (string) => capitalize(string.replace(upperBeforeLower, (upper, remainder) => `${remainder === 0 ? "" : " "}${upper}`));
|
|
196
|
+
|
|
197
|
+
// src/intl.ts
|
|
198
|
+
var supportedLocales = /* @__PURE__ */ new Set([
|
|
199
|
+
"ar",
|
|
200
|
+
"bg",
|
|
201
|
+
"bs",
|
|
202
|
+
"ca",
|
|
203
|
+
"cs",
|
|
204
|
+
"da",
|
|
205
|
+
"de",
|
|
206
|
+
"el",
|
|
207
|
+
"en",
|
|
208
|
+
"es",
|
|
209
|
+
"et",
|
|
210
|
+
"fi",
|
|
211
|
+
"fr",
|
|
212
|
+
"he",
|
|
213
|
+
"hr",
|
|
214
|
+
"hu",
|
|
215
|
+
"id",
|
|
216
|
+
"it",
|
|
217
|
+
"ja",
|
|
218
|
+
"ko",
|
|
219
|
+
"lt",
|
|
220
|
+
"lv",
|
|
221
|
+
"nl",
|
|
222
|
+
"nb",
|
|
223
|
+
"pl",
|
|
224
|
+
"pt-BR",
|
|
225
|
+
"pt-PT",
|
|
226
|
+
"ro",
|
|
227
|
+
"ru",
|
|
228
|
+
"sk",
|
|
229
|
+
"sl",
|
|
230
|
+
"sr",
|
|
231
|
+
"sv",
|
|
232
|
+
"th",
|
|
233
|
+
"tr",
|
|
234
|
+
"uk",
|
|
235
|
+
"vi",
|
|
236
|
+
"zh-CN",
|
|
237
|
+
"zh-HK",
|
|
238
|
+
"zh-TW"
|
|
239
|
+
]);
|
|
240
|
+
var defaultLocale = "en";
|
|
241
|
+
async function fetchT9NStringsBundle(locale, assetsPath, prefix = "") {
|
|
242
|
+
const path = `${assetsPath}/${prefix}`;
|
|
243
|
+
const filePath = `${path}${locale}.json`;
|
|
244
|
+
t9nStringsCache[filePath] ?? (t9nStringsCache[filePath] = fetchBundle(locale, path));
|
|
245
|
+
return await t9nStringsCache[filePath];
|
|
246
|
+
}
|
|
247
|
+
var t9nStringsCache = {};
|
|
248
|
+
async function fetchBundle(locale, path) {
|
|
249
|
+
const filePath = `${path}${locale}.json`;
|
|
250
|
+
try {
|
|
251
|
+
const response = await fetch(filePath);
|
|
252
|
+
if (response.ok) {
|
|
253
|
+
return await response.json();
|
|
254
|
+
}
|
|
255
|
+
} catch (error) {
|
|
256
|
+
console.error(error);
|
|
257
|
+
return fallbackBundle;
|
|
258
|
+
}
|
|
259
|
+
if (locale === defaultLocale) {
|
|
260
|
+
return fallbackBundle;
|
|
261
|
+
}
|
|
262
|
+
return await fetchBundle(defaultLocale, path);
|
|
263
|
+
}
|
|
264
|
+
var fallbackBundle = new Proxy(
|
|
265
|
+
{},
|
|
266
|
+
{
|
|
267
|
+
get: (_target, property) => camelToHuman(property.toString())
|
|
268
|
+
}
|
|
269
|
+
);
|
|
270
|
+
function getElementLocales(element) {
|
|
271
|
+
const lang = getElementAttribute(element, "lang", navigator.language || defaultLocale);
|
|
272
|
+
if (supportedLocales.has(lang)) {
|
|
273
|
+
return { lang, t9nLocale: lang };
|
|
274
|
+
}
|
|
275
|
+
const rootCode = lang.slice(0, 2);
|
|
276
|
+
return { lang, t9nLocale: supportedLocales.has(rootCode) ? rootCode : defaultLocale };
|
|
277
|
+
}
|
|
278
|
+
function startLocaleObserver(element, assetsPath, onUpdated, assetName) {
|
|
279
|
+
let result = void 0;
|
|
280
|
+
const callback = () => void updateComponentLocateState(element, assetsPath, assetName).then((newResult) => {
|
|
281
|
+
if (result?.lang !== newResult.lang || result.t9nLocale !== newResult.t9nLocale || result.t9nStrings !== newResult.t9nStrings) {
|
|
282
|
+
onUpdated(newResult);
|
|
283
|
+
}
|
|
284
|
+
result = newResult;
|
|
285
|
+
}).catch(console.error);
|
|
286
|
+
callback();
|
|
287
|
+
return observeAncestorsMutation(element, ["lang"], callback);
|
|
288
|
+
}
|
|
289
|
+
async function updateComponentLocateState(element, assetsPath, assetName = element.tagName.toLowerCase().replace("arcgis-", "")) {
|
|
290
|
+
const { lang, t9nLocale } = getElementLocales(element);
|
|
291
|
+
const t9nAssetsPath = `${assetsPath}/${assetName}/t9n`;
|
|
292
|
+
const prefix = `${assetName}.t9n.`;
|
|
293
|
+
const t9nStrings = await fetchT9NStringsBundle(t9nLocale, t9nAssetsPath, prefix);
|
|
294
|
+
return { lang, t9nLocale, t9nStrings };
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
// src/strings.ts
|
|
298
|
+
var doubleQuote = '"';
|
|
299
|
+
var singleQuote = "'";
|
|
300
|
+
function repeatString(value, n) {
|
|
301
|
+
return new Array(n + 1).join(value);
|
|
302
|
+
}
|
|
303
|
+
function quoteString(value) {
|
|
304
|
+
let quote = doubleQuote;
|
|
305
|
+
let alternateQuote = singleQuote;
|
|
306
|
+
const avoidEscape = value.includes(quote) && !value.includes(alternateQuote);
|
|
307
|
+
if (avoidEscape) {
|
|
308
|
+
alternateQuote = doubleQuote;
|
|
309
|
+
quote = singleQuote;
|
|
310
|
+
}
|
|
311
|
+
const alternateEscape = new RegExp(`(^|[^\\\\])((?:\\\\{2})*)((?:\\\\${alternateQuote})+)`, "gu");
|
|
312
|
+
value = value.replace(
|
|
313
|
+
alternateEscape,
|
|
314
|
+
(_, boundaryChar, leadingEscapedSlashes, escapedQuoteChars) => (
|
|
315
|
+
// We divide the escapedQuoteChars by 2 since there are 2 characters in each escaped part ('\\"'.length === 2)
|
|
316
|
+
boundaryChar + leadingEscapedSlashes + repeatString(alternateQuote, escapedQuoteChars.length / 2)
|
|
317
|
+
)
|
|
318
|
+
);
|
|
319
|
+
const quoteEscape = new RegExp(`(^|[^\\\\])((?:\\\\{2})*)(${quote}+)`, "gu");
|
|
320
|
+
value = value.replace(
|
|
321
|
+
quoteEscape,
|
|
322
|
+
(_, boundaryChar, leadingEscapedSlashes, quoteChars) => boundaryChar + leadingEscapedSlashes + repeatString(`\\${quote}`, quoteChars.length)
|
|
323
|
+
);
|
|
324
|
+
return quote + value + quote;
|
|
325
|
+
}
|
|
326
|
+
function createFilterExpression(filterWord) {
|
|
327
|
+
const sanitizedWord = filterWord ? filterWord.replaceAll(/[-[\]/{}()*+?.\\^$|]/gu, "\\$&") : "^.*$";
|
|
328
|
+
return new RegExp(sanitizedWord, "i");
|
|
329
|
+
}
|
|
330
|
+
function setValuesInString(message, values = {}) {
|
|
331
|
+
return (message ?? "").replace(/\{(?<valueName>.*?)\}/gu, (match, valueName) => values[valueName] ?? match);
|
|
332
|
+
}
|
|
333
|
+
function addLTRMark(value) {
|
|
334
|
+
return `\u200E${value ?? ""}\u200E`;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
// src/timeouts.ts
|
|
338
|
+
function devToolsAwareTimeout(callback, timeout) {
|
|
339
|
+
const interval = timeout > longTimeoutThreshold ? longTimeoutInterval : timeout / shortTimeoutIntervals;
|
|
340
|
+
let elapsed = 0;
|
|
341
|
+
const reference = setInterval(() => {
|
|
342
|
+
elapsed += interval;
|
|
343
|
+
if (elapsed >= timeout) {
|
|
344
|
+
clearInterval(reference);
|
|
345
|
+
callback();
|
|
346
|
+
}
|
|
347
|
+
}, interval);
|
|
348
|
+
return reference;
|
|
349
|
+
}
|
|
350
|
+
var longTimeoutThreshold = 4e3;
|
|
351
|
+
var longTimeoutInterval = 2e3;
|
|
352
|
+
var shortTimeoutIntervals = 4;
|
|
353
|
+
|
|
354
|
+
// src/type-guards.ts
|
|
355
|
+
function isNotNull(item) {
|
|
356
|
+
return item !== null;
|
|
357
|
+
}
|
|
358
|
+
function isNotUndefined(item) {
|
|
359
|
+
return item !== void 0;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
// src/ui.ts
|
|
363
|
+
function debounce(func, waitFor = 100) {
|
|
364
|
+
let timeout;
|
|
365
|
+
return (...args) => {
|
|
366
|
+
const later = () => {
|
|
367
|
+
clearTimeout(timeout);
|
|
368
|
+
func(...args);
|
|
369
|
+
};
|
|
370
|
+
clearTimeout(timeout);
|
|
371
|
+
timeout = setTimeout(later, waitFor);
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
// src/url.ts
|
|
376
|
+
function hasSameOrigin(url1, url2, ignoreProtocol = false) {
|
|
377
|
+
if (!url1 || !url2) {
|
|
378
|
+
return false;
|
|
379
|
+
}
|
|
380
|
+
const url1Obj = new URL(url1);
|
|
381
|
+
const url2Obj = new URL(url2);
|
|
382
|
+
if (!ignoreProtocol && url1Obj.protocol !== url2Obj.protocol) {
|
|
383
|
+
return false;
|
|
384
|
+
}
|
|
385
|
+
if (url1Obj.host == null || url2Obj.host == null) {
|
|
386
|
+
return false;
|
|
387
|
+
}
|
|
388
|
+
return url1Obj.host.toLowerCase() === url2Obj.host.toLowerCase() && url1Obj.port === url2Obj.port;
|
|
389
|
+
}
|
|
390
|
+
function isURL(url) {
|
|
391
|
+
try {
|
|
392
|
+
new URL(url);
|
|
393
|
+
return true;
|
|
394
|
+
} catch (e) {
|
|
395
|
+
return false;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
export { Deferred as D, isNotUndefined as a, addLTRMark as b, supportedLocales as c, createFilterExpression as d, setFocusOnElement as e, fetchT9NStringsBundle as f, camelToKebab as g, safeCall as h, isNotNull as i, safeAsyncCall as j, devToolsAwareTimeout as k, isURL as l, hasSameOrigin as m, startLocaleObserver as n, getElementLocales as o, generateGuid as p, getElementTheme as q, quoteString as r, setValuesInString as s, observeAncestorsMutation as t, debounce as u };
|
|
@@ -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.111
|
|
5
5
|
*/
|
|
6
6
|
import { editor } from 'monaco-editor';
|
|
7
7
|
import { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
@@ -41,27 +41,15 @@ function onColorizeThemeChanged(func) {
|
|
|
41
41
|
|
|
42
42
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
return module = {
|
|
46
|
-
path: basedir,
|
|
47
|
-
exports: {},
|
|
48
|
-
require: function (path, base) {
|
|
49
|
-
return commonjsRequire();
|
|
50
|
-
}
|
|
51
|
-
}, fn(module, module.exports), module.exports;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
function commonjsRequire () {
|
|
55
|
-
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
56
|
-
}
|
|
44
|
+
var marked_umd = {exports: {}};
|
|
57
45
|
|
|
58
|
-
var marked_umd = createCommonjsModule(function (module, exports) {
|
|
59
46
|
/**
|
|
60
47
|
* marked v5.1.2 - a markdown parser
|
|
61
48
|
* Copyright (c) 2011-2023, Christopher Jeffrey. (MIT Licensed)
|
|
62
49
|
* https://github.com/markedjs/marked
|
|
63
50
|
*/
|
|
64
51
|
|
|
52
|
+
(function (module, exports) {
|
|
65
53
|
/**
|
|
66
54
|
* DO NOT EDIT THIS FILE
|
|
67
55
|
* The code in this file is generated from files in ./src/
|
|
@@ -2930,29 +2918,27 @@ var marked_umd = createCommonjsModule(function (module, exports) {
|
|
|
2930
2918
|
exports.walkTokens = walkTokens;
|
|
2931
2919
|
|
|
2932
2920
|
}));
|
|
2933
|
-
});
|
|
2921
|
+
}(marked_umd, marked_umd.exports));
|
|
2934
2922
|
|
|
2935
2923
|
// Set up the marked library to use GitHub Flavored Markdown and to use the custom renderer for links.
|
|
2936
|
-
marked_umd.marked.use({
|
|
2924
|
+
marked_umd.exports.marked.use({
|
|
2937
2925
|
gfm: true,
|
|
2926
|
+
breaks: true,
|
|
2927
|
+
async: false,
|
|
2938
2928
|
renderer: {
|
|
2939
2929
|
link(href, title, text) {
|
|
2940
2930
|
return `<calcite-link href="${href}" title="${title ?? text}" target="Arcade Help">${text}</calcite-link>`;
|
|
2941
|
-
}
|
|
2942
|
-
}
|
|
2931
|
+
},
|
|
2932
|
+
},
|
|
2943
2933
|
});
|
|
2944
2934
|
/**
|
|
2945
2935
|
* Converts a markdown string to HTML using the marked library.
|
|
2946
2936
|
*/
|
|
2947
2937
|
function convertMarkdownString(value) {
|
|
2948
|
-
value
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
headerIds: false,
|
|
2953
|
-
mangle: false
|
|
2954
|
-
});
|
|
2955
|
-
return result;
|
|
2938
|
+
if (value === null || value === undefined) {
|
|
2939
|
+
return "";
|
|
2940
|
+
}
|
|
2941
|
+
return marked_umd.exports.marked.parse(typeof value === "string" ? value : value.value);
|
|
2956
2942
|
}
|
|
2957
2943
|
|
|
2958
2944
|
export { colorizedAllCodeElements as a, colorizeCodeElement as b, convertMarkdownString as c, generateColorizeStyles as g, onColorizeThemeChanged as o };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
+
* v4.30.0-next.111
|
|
5
|
+
*/
|
|
6
|
+
import { m as makeController } from './chunk-2CDDVOQU.js';
|
|
7
|
+
import { n as startLocaleObserver, o as getElementLocales } from './index2.js';
|
|
8
|
+
import { getArcgisAssetPath as getAssetPath } from "./arcgis-assets.js";
|
|
9
|
+
|
|
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
|
+
},
|
|
24
|
+
name
|
|
25
|
+
)
|
|
26
|
+
);
|
|
27
|
+
if (blocking) {
|
|
28
|
+
return controller.ready;
|
|
29
|
+
}
|
|
30
|
+
const locale = getElementLocales(component.el);
|
|
31
|
+
return { _lang: locale.lang, _t9nLocale: locale.t9nLocale };
|
|
32
|
+
})
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
const useT9n = makeT9nController(getAssetPath);
|
|
36
|
+
|
|
37
|
+
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.111
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
6
|
+
import { d as createFilterExpression } 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 = createFilterExpression(filterWord);
|
|
20
20
|
return collection.filter((item) => {
|
|
21
21
|
if (beforeFilteringFn) {
|
|
22
22
|
const res = beforeFilteringFn(item);
|