@arcgis/coding-components 5.0.0-next.39 → 5.0.0-next.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/dist/addons.js +1 -1
  2. package/dist/cdn/3WIRROBH.js +4 -0
  3. package/dist/cdn/{AFUBHK37.js → 42JQRIXR.js} +5 -5
  4. package/dist/cdn/4R4DUTCV.js +6 -0
  5. package/dist/cdn/5PJI5QQB.js +37 -0
  6. package/dist/cdn/{A3HSJCES.js → 5UEEUMXL.js} +2 -2
  7. package/dist/cdn/6CKRGIHZ.js +6 -0
  8. package/dist/cdn/7EJZH64Z.js +4 -0
  9. package/dist/cdn/7XW6IKKV.js +4 -0
  10. package/dist/cdn/{IQRXXWGC.js → A3TLL6LG.js} +2 -2
  11. package/dist/cdn/AKWJLYC3.js +4 -0
  12. package/dist/cdn/ASRHMURK.js +4 -0
  13. package/dist/cdn/{V2PRLYOK.js → BMXVKJ7B.js} +2 -2
  14. package/dist/cdn/{32D5TXZE.js → CJ65XLTF.js} +2 -2
  15. package/dist/cdn/{22UJ2NCC.js → D726IUEN.js} +2 -2
  16. package/dist/cdn/DRX5YPAV.js +4 -0
  17. package/dist/cdn/DUJT7B4V.js +4 -0
  18. package/dist/cdn/{LWCU6T2S.js → E2PW5KNS.js} +2 -2
  19. package/dist/cdn/FF6CRCZF.js +4 -0
  20. package/dist/cdn/{5A2OAIPG.js → FYVNN5SL.js} +2 -2
  21. package/dist/cdn/GACCOEJE.js +4 -0
  22. package/dist/cdn/GUM3FUHK.js +4 -0
  23. package/dist/cdn/{XQUZTH64.js → HPZKKREG.js} +2 -2
  24. package/dist/cdn/{HW6JQO5U.js → I2ZZVQNR.js} +2 -2
  25. package/dist/cdn/{65R5LFH4.js → IDPVSJSA.js} +1 -1
  26. package/dist/cdn/JJXU7RKH.js +4 -0
  27. package/dist/cdn/KVOGU23G.js +4 -0
  28. package/dist/cdn/MG7IUFZ5.js +4 -0
  29. package/dist/cdn/{B7UCVBR4.js → MPI3VJ27.js} +2 -2
  30. package/dist/cdn/{463DHUPJ.js → NRSCYJ4X.js} +2 -2
  31. package/dist/cdn/{MSV35DG3.js → NSG3IIH4.js} +1 -1
  32. package/dist/cdn/{SO6A33RQ.js → QB4B762H.js} +1 -1
  33. package/dist/cdn/SNG6BXOJ.js +4 -0
  34. package/dist/cdn/TA3A544D.js +69 -0
  35. package/dist/cdn/TDR5QOYK.js +4 -0
  36. package/dist/cdn/{YVZP32LA.js → UNGROWHP.js} +2 -2
  37. package/dist/cdn/{NBILS2PA.js → UOMZGMYC.js} +2 -2
  38. package/dist/cdn/V3QS3R7T.js +6 -0
  39. package/dist/cdn/{LUBHSH6S.js → VOYE3SWE.js} +15 -15
  40. package/dist/cdn/{PNX3P5LX.js → VRR5O4LN.js} +2 -2
  41. package/dist/cdn/{5AE3XQBB.js → W3FWYOGY.js} +1 -1
  42. package/dist/cdn/WB62GWRN.js +4 -0
  43. package/dist/cdn/{GYFX6FDB.js → WS4TV7BI.js} +2 -2
  44. package/dist/cdn/{6DXNKA5R.js → WXEVTZGW.js} +2 -2
  45. package/dist/cdn/{WPDOXZMT.js → XNU7TDA3.js} +2 -2
  46. package/dist/cdn/{KMM2L2UC.js → XSTPZUAO.js} +2 -2
  47. package/dist/cdn/{QV5P6IW2.js → XV2IY5HJ.js} +2 -2
  48. package/dist/cdn/{DJBX4N35.js → YIFRYPQP.js} +2 -2
  49. package/dist/cdn/assets/code-editor/sql-expr.worker.js +2107 -2107
  50. package/dist/cdn/index.js +3 -3
  51. package/dist/cdn/main.css +1 -1
  52. package/dist/chunks/arcade-contribution.js +97 -0
  53. package/dist/chunks/arcade-defaults.js +1 -1
  54. package/dist/chunks/arcade-executor.js +1 -1
  55. package/dist/chunks/arcade-mode.js +1 -1
  56. package/dist/chunks/arcade-service-accessors.js +75 -6
  57. package/dist/chunks/colorize.js +26 -0
  58. package/dist/chunks/editor.js +1 -1
  59. package/dist/chunks/fields.js +1 -1
  60. package/dist/chunks/language-defaults-base.js +37 -36
  61. package/dist/chunks/markdown.js +64 -91
  62. package/dist/chunks/monaco-importer.js +8 -93
  63. package/dist/chunks/runtime.js +1 -1
  64. package/dist/chunks/sql-expr-defaults.js +1 -1
  65. package/dist/chunks/sql-expr-mode.js +1 -1
  66. package/dist/chunks/sql-expr-service-accessors.js +1 -1
  67. package/dist/chunks/useT9n.js +1 -1
  68. package/dist/chunks/utilities.js +90 -0
  69. package/dist/components/arcgis-arcade-coding-assistant/customElement.js +3 -3
  70. package/dist/components/arcgis-arcade-coding-assistant/index.d.ts +1 -0
  71. package/dist/components/arcgis-arcade-coding-assistant/index.js +1 -0
  72. package/dist/components/arcgis-arcade-editor/customElement.js +2 -3
  73. package/dist/components/arcgis-arcade-results/customElement.js +1 -1
  74. package/dist/components/arcgis-arcade-suggestions/customElement.js +6 -5
  75. package/dist/components/arcgis-code-editor/customElement.js +3 -3
  76. package/dist/components/arcgis-code-viewer/customElement.d.ts +63 -0
  77. package/dist/components/arcgis-code-viewer/customElement.js +119 -0
  78. package/dist/components/arcgis-code-viewer/index.d.ts +1 -0
  79. package/dist/components/arcgis-code-viewer/index.js +1 -0
  80. package/dist/components/arcgis-editor-variables/customElement.js +1 -1
  81. package/dist/components/arcgis-language-api-panel/customElement.js +24 -28
  82. package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
  83. package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
  84. package/dist/docs/api.json +144 -2
  85. package/dist/docs/docs.json +116 -2
  86. package/dist/docs/vscode.html-custom-data.json +22 -0
  87. package/dist/docs/web-types.json +40 -1
  88. package/dist/index.d.ts +5 -0
  89. package/dist/index.js +1 -1
  90. package/dist/loader.js +5 -4
  91. package/dist/monacoStyles.js +1 -1
  92. package/dist/types/lumina.d.ts +5 -0
  93. package/dist/types/preact.d.ts +6 -0
  94. package/dist/types/preact10.d.ts +7 -0
  95. package/dist/types/react.d.ts +7 -0
  96. package/dist/types/stencil.d.ts +5 -0
  97. package/dist/utils/colorize.d.ts +1 -1
  98. package/dist/utils/monaco-languages.d.ts +4 -0
  99. package/package.json +6 -5
  100. package/dist/cdn/36J7OXKL.js +0 -4
  101. package/dist/cdn/5HDJXUGY.js +0 -4
  102. package/dist/cdn/77G2EUBD.js +0 -4
  103. package/dist/cdn/BC25UYFG.js +0 -4
  104. package/dist/cdn/BEW42V7C.js +0 -4
  105. package/dist/cdn/DQFS5S4N.js +0 -4
  106. package/dist/cdn/FNKWDH6V.js +0 -4
  107. package/dist/cdn/FZYOFX2D.js +0 -6
  108. package/dist/cdn/GQJM6PDN.js +0 -104
  109. package/dist/cdn/IJJXIW5Z.js +0 -4
  110. package/dist/cdn/KFRXV3AL.js +0 -4
  111. package/dist/cdn/LPXQ3NWM.js +0 -4
  112. package/dist/cdn/M4276KFE.js +0 -4
  113. package/dist/cdn/SPZVHSF2.js +0 -4
  114. package/dist/cdn/TIYSNFGO.js +0 -4
  115. package/dist/cdn/USHS6Y7V.js +0 -6
  116. package/dist/cdn/X2NBZ5GC.js +0 -4
  117. package/dist/cdn/XAAE3RER.js +0 -4
  118. package/dist/chunks/setup-monaco.js +0 -74
  119. package/dist/chunks/sql-expr-contribution.js +0 -85
package/dist/cdn/main.css CHANGED
@@ -1 +1 @@
1
- @layer{:not([hydrated]):is(arcgis-arcade-editor,arcgis-code-editor,arcgis-sql-expression-editor){visibility:hidden}:root{--arcgis-coding-components-border: 1px solid var(--calcite-color-border-3);--arcgis-coding-components-background-color: var(--calcite-color-foreground-1);--arcgis-coding-components-side-action-bar-max-w: 25%;--arcgis-coding-components-code-editor-side-panel-w: 600px;--arcgis-coding-components-code-editor-side-panel-max-w: 45%;--arcgis-editor-comment: #606060;--arcgis-editor-constant: #9809C8;--arcgis-editor-date: #296389;--arcgis-editor-identifier: #0000B3;--arcgis-editor-keyword: #BF4900;--arcgis-editor-number: #136D3D;--arcgis-editor-string: #A31515}.calcite-mode-dark{--arcgis-editor-comment: #BFBFBF;--arcgis-editor-constant: #CDBAEA;--arcgis-editor-date: #97A6CE;--arcgis-editor-identifier: #9FD4F3;--arcgis-editor-keyword: #EEAA5A;--arcgis-editor-number: #AAD04B;--arcgis-editor-string: #F2877B}}
1
+ @layer{:not([hydrated]):is(arcgis-arcade-editor,arcgis-code-editor,arcgis-code-viewer,arcgis-sql-expression-editor){visibility:hidden}:root{--arcgis-coding-components-border: 1px solid var(--calcite-color-border-3);--arcgis-coding-components-background-color: var(--calcite-color-foreground-1);--arcgis-coding-components-side-action-bar-max-w: 25%;--arcgis-coding-components-code-editor-side-panel-w: 600px;--arcgis-coding-components-code-editor-side-panel-max-w: 45%;--arcgis-editor-comment: #606060;--arcgis-editor-constant: #9809C8;--arcgis-editor-date: #296389;--arcgis-editor-identifier: #0000B3;--arcgis-editor-keyword: #BF4900;--arcgis-editor-number: #136D3D;--arcgis-editor-string: #A31515}.calcite-mode-dark{--arcgis-editor-comment: #BFBFBF;--arcgis-editor-constant: #CDBAEA;--arcgis-editor-date: #97A6CE;--arcgis-editor-identifier: #9FD4F3;--arcgis-editor-keyword: #EEAA5A;--arcgis-editor-number: #AAD04B;--arcgis-editor-string: #F2877B}}
@@ -0,0 +1,97 @@
1
+ import { i as g } from "./monaco-importer.js";
2
+ import { Uri as f, languages as a } from "monaco-editor";
3
+ import "monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js";
4
+ import "monaco-editor/esm/vs/editor/standalone/common/standaloneTheme.js";
5
+ import "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
6
+ import { a as t } from "./sql-expr-defaults.js";
7
+ import { g as p } from "./sql-expr-service-accessors.js";
8
+ import { b as n } from "./arcade-defaults.js";
9
+ import { g as l } from "./arcade-service-accessors.js";
10
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
11
+ See https://js.arcgis.com/5.0/esri/copyright.txt for details.
12
+ v5.0.0-next.41 */
13
+ const h = ["arcade", "arcgis-sql-expression"], i = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Map();
14
+ function c(e) {
15
+ let r = d.get(e);
16
+ return r || (r = Promise.withResolvers(), d.set(e, r)), r;
17
+ }
18
+ function u(e) {
19
+ c(e).resolve();
20
+ }
21
+ function b(e) {
22
+ return h.includes(e) ? c(e).promise : Promise.resolve();
23
+ }
24
+ function m(e, r) {
25
+ return () => {
26
+ i.has(e) || i.add(e), r();
27
+ };
28
+ }
29
+ async function q(e) {
30
+ if (i.has(e))
31
+ return;
32
+ (await g()).createModel("", e, f.parse("")).dispose();
33
+ }
34
+ const k = {
35
+ "light-theme": { comment: "#606060", constant: "#9809C8", date: "#296389", identifier: "#0000B3", keyword: "#BF4900", number: "#136D3D", string: "#A31515", operator: "#9809C8", predefined: "#0000B3" },
36
+ "dark-theme": { comment: "#BFBFBF", constant: "#CDBAEA", date: "#97A6CE", identifier: "#9FD4F3", keyword: "#EEAA5A", number: "#AAD04B", string: "#F2877B", operator: "#CDBAEA", predefined: "#9FD4F3" }
37
+ };
38
+ w();
39
+ function w() {
40
+ g().then((e) => {
41
+ ["light", "dark"].forEach((r) => {
42
+ const s = r === "light" ? "vs" : "vs-dark", o = k[`${r}-theme`];
43
+ e.defineTheme(s, {
44
+ base: s,
45
+ inherit: !0,
46
+ rules: [
47
+ { token: "comment.arcgis", foreground: o.comment },
48
+ { token: "constant.arcgis", foreground: o.constant },
49
+ { token: "keyword.arcgis", foreground: o.keyword },
50
+ { token: "identifier.arcgis", foreground: o.identifier },
51
+ { token: "number.arcgis", foreground: o.number },
52
+ { token: "string.arcgis", foreground: o.string },
53
+ { token: "operator.arcgis", foreground: o.operator },
54
+ { token: "predefined.arcgis", foreground: o.predefined },
55
+ { token: "date.arcgis", foreground: o.date }
56
+ ],
57
+ colors: {}
58
+ });
59
+ });
60
+ });
61
+ }
62
+ a.register({
63
+ id: t.languageId,
64
+ aliases: ["EsiSqlExpression", "sql-expression"],
65
+ extensions: [".sql-expression"],
66
+ mimetypes: ["application/sql-expression"]
67
+ });
68
+ a.onLanguage(
69
+ t.languageId,
70
+ m(t.languageId, () => {
71
+ p().then((e) => {
72
+ e.setupMode(t), u(t.languageId);
73
+ }).catch((e) => {
74
+ throw e;
75
+ });
76
+ })
77
+ );
78
+ a.register({
79
+ id: n.languageId,
80
+ aliases: ["Arcade", "arcade"],
81
+ extensions: [".arc"],
82
+ mimetypes: ["application/arcade"]
83
+ });
84
+ a.onLanguage(
85
+ n.languageId,
86
+ m(n.languageId, () => {
87
+ l().then((e) => {
88
+ e.setupMode(n), u(n.languageId);
89
+ }).catch((e) => {
90
+ throw e;
91
+ });
92
+ })
93
+ );
94
+ export {
95
+ q as s,
96
+ b as w
97
+ };
@@ -5,7 +5,7 @@ import { CompletionItemKind as w, InsertTextFormat as u, InsertTextMode as p } f
5
5
  import { getDeclaredPixelMembers as I } from "@arcgis/core/applications/Components/arcadeEditorUtils.js";
6
6
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
7
7
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
8
- v5.0.0-next.39 */
8
+ v5.0.0-next.41 */
9
9
  async function C(e) {
10
10
  const { apiVersion: r, bundles: t, hiddenApiItems: i } = e.toEditorProfileDefinition(), n = await h(e.dictionaryVariables);
11
11
  return { apiVersion: r, bundles: t, variables: n, hiddenApiItems: i?.map((s) => s.toLowerCase()) };
@@ -1,7 +1,7 @@
1
1
  import { createArcadeExecutor as C } from "@arcgis/core/arcade.js";
2
2
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
- v5.0.0-next.39 */
4
+ v5.0.0-next.41 */
5
5
  const G = "https://developers.arcgis.com/arcade/", O = 100, A = 100;
6
6
  function u(t) {
7
7
  return !!t && typeof t == "object" && "declaredRootClass" in t && typeof t.declaredRootClass == "string" && t.declaredRootClass === "esri.arcade.featureset.support.FeatureSet";
@@ -9,7 +9,7 @@ import { debounce as F } from "@arcgis/toolkit/function";
9
9
  import { Deferred as _ } from "@arcgis/toolkit/promise";
10
10
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
11
11
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
12
- v5.0.0-next.39 */
12
+ v5.0.0-next.41 */
13
13
  const S = [
14
14
  "<=",
15
15
  ">=",
@@ -1,13 +1,82 @@
1
+ import d from "@arcgis/core/request.js";
1
2
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.39 */
4
- async function a() {
5
- return (await e()).getArcadeDiagnosticService();
4
+ v5.0.0-next.41 */
5
+ function w() {
6
+ return !!window.MonacoEnvironment?.getWorker;
6
7
  }
7
- async function e() {
8
+ let a = "";
9
+ const f = /* @__PURE__ */ new Map(), i = !1;
10
+ async function c(t, e, r) {
11
+ if (r)
12
+ return e ? e() : new Worker(t);
13
+ const o = window.location.origin;
14
+ if (new URL(t, window.location.href).origin !== o) {
15
+ const s = await d(t, { responseType: "text" });
16
+ return new Worker(URL.createObjectURL(new Blob([s.data], { type: "text/javascript" })), {
17
+ type: "module"
18
+ });
19
+ }
20
+ return new Worker(t, {
21
+ type: "module"
22
+ });
23
+ }
24
+ function j(t) {
25
+ if (w())
26
+ return;
27
+ a = t;
28
+ const e = `${a}/code-editor`, r = {
29
+ arcade: `${e}/arcade.worker.js`,
30
+ "arcgis-sql-expression": `${e}/sql-expr.worker.js`,
31
+ html: `${e}/html.worker.js`,
32
+ css: `${e}/css.worker.js`,
33
+ typescript: `${e}/ts.worker.js`,
34
+ json: `${e}/json.worker.js`,
35
+ default: `${e}/editor.worker.js`
36
+ }, o = {
37
+ arcade: {
38
+ url: r.arcade
39
+ },
40
+ "arcgis-sql-expression": {
41
+ url: r["arcgis-sql-expression"]
42
+ },
43
+ html: {
44
+ url: r.html
45
+ },
46
+ css: {
47
+ url: r.css
48
+ },
49
+ typescript: {
50
+ url: r.typescript
51
+ },
52
+ javascript: {
53
+ url: r.typescript
54
+ },
55
+ json: {
56
+ url: r.json
57
+ },
58
+ default: {
59
+ url: r.default
60
+ }
61
+ };
62
+ window.MonacoEnvironment = {
63
+ getWorker: async (l, s) => {
64
+ const n = f.get(s);
65
+ if (n)
66
+ return await c(n, void 0, i);
67
+ const { url: u, localWorker: p } = o[s] || o.default;
68
+ return await c(u, p, i);
69
+ }
70
+ };
71
+ }
72
+ async function m() {
73
+ return (await g()).getArcadeDiagnosticService();
74
+ }
75
+ async function g() {
8
76
  return await import("./arcade-mode.js");
9
77
  }
10
78
  export {
11
- a,
12
- e as g
79
+ m as a,
80
+ g,
81
+ j as s
13
82
  };
@@ -0,0 +1,26 @@
1
+ import { i } from "./monaco-importer.js";
2
+ import { StandaloneServices as r } from "monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js";
3
+ import { IStandaloneThemeService as n } from "monaco-editor/esm/vs/editor/standalone/common/standaloneTheme.js";
4
+ import { generateTokensCSSForColorMap as a } from "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
5
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
6
+ See https://js.arcgis.com/5.0/esri/copyright.txt for details.
7
+ v5.0.0-next.41 */
8
+ async function c(e, o) {
9
+ return await (await i()).colorize(e, o, { tabSize: 2 });
10
+ }
11
+ async function C(e, o, t) {
12
+ !e || e.tagName !== "CODE" || (e.innerHTML = await c(o ?? "", t));
13
+ }
14
+ function S() {
15
+ const o = r.get(n).getColorTheme();
16
+ return a(o.tokenTheme.getColorMap());
17
+ }
18
+ function g(e) {
19
+ return r.get(n).onDidColorThemeChange(() => e());
20
+ }
21
+ export {
22
+ C as a,
23
+ c,
24
+ S as g,
25
+ g as o
26
+ };
@@ -1,7 +1,7 @@
1
1
  import { css as e } from "lit";
2
2
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
- v5.0.0-next.39 */
4
+ v5.0.0-next.41 */
5
5
  const i = e`@layer{arcgis-arcade-editor,arcgis-sql-expression-editor{.flex-adjustable{flex:1 1 auto;overflow:hidden}.flex-panel{flex:1 0 auto}.position-relative{position:relative}.flex-row{display:flex;flex-direction:row;overflow:hidden}.flex-column{display:flex;flex-direction:column;overflow:hidden}.border-inline-start{border-inline-start:var(--arcgis-coding-components-border)!important;box-sizing:border-box}.border-inline-end{border-inline-end:var(--arcgis-coding-components-border)!important;box-sizing:border-box}.side-action-bar{max-width:var(--arcgis-coding-components-side-action-bar-max-w)}.code-editor-side-panel{max-width:var(--arcgis-coding-components-code-editor-side-panel-max-w);width:var(--arcgis-coding-components-code-editor-side-panel-w)}.code-editor-side-panel calcite-flow{height:100%}}}`;
6
6
  export {
7
7
  i as s
@@ -1,6 +1,6 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.39 */
3
+ v5.0.0-next.41 */
4
4
  const n = "cube";
5
5
  function u(e, t) {
6
6
  switch (e.type) {
@@ -1,21 +1,22 @@
1
1
  import m from "@arcgis/core/layers/FeatureLayer.js";
2
2
  import ee from "@arcgis/core/request.js";
3
- import { p as te, i as ie } from "./monaco-importer.js";
4
- import re from "@arcgis/core/portal/PortalItem.js";
5
- import se from "@arcgis/core/WebMap.js";
6
- import ne from "@arcgis/core/WebScene.js";
3
+ import { p as te } from "./utilities.js";
4
+ import ie from "@arcgis/core/portal/PortalItem.js";
5
+ import re from "@arcgis/core/WebMap.js";
6
+ import se from "@arcgis/core/WebScene.js";
7
7
  import { isNotNull as C, isNotUndefined as O } from "@arcgis/toolkit/predicate";
8
- import { addLtrMark as oe, setValuesInString as A } from "@arcgis/toolkit/string";
9
- import { s as g, f as ae, a as b, m as le, b as ue } from "./fields.js";
8
+ import { addLtrMark as ne, setValuesInString as A } from "@arcgis/toolkit/string";
9
+ import { s as g, f as oe, a as b, m as ae, b as le } from "./fields.js";
10
10
  import { CompletionItemKind as v, InsertTextFormat as F, InsertTextMode as x } from "vscode-languageserver-types";
11
- import { getDeclaredVoxelMembers as pe, getDeclaredPixelMembers as ce } from "@arcgis/core/applications/Components/arcadeEditorUtils.js";
11
+ import { getDeclaredVoxelMembers as ue, getDeclaredPixelMembers as pe } from "@arcgis/core/applications/Components/arcadeEditorUtils.js";
12
+ import { i as ce } from "./monaco-importer.js";
12
13
  import { g as he } from "./runtime.js";
13
14
  import { normalizeLocale as fe } from "@arcgis/toolkit/intl";
14
15
  import { filterApiLibraryForContext as de } from "@arcgis/languages-api-utils";
15
16
  import { Emitter as G, Uri as E } from "monaco-editor";
16
17
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
17
18
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
18
- v5.0.0-next.39 */
19
+ v5.0.0-next.41 */
19
20
  function k(t) {
20
21
  return !!t && typeof t == "object" && "declaredClass" in t && typeof t.declaredClass == "string" && t.declaredClass.startsWith("esri.layers.") && w(t) && "queryFeatures" in t && typeof t.queryFeatures == "function";
21
22
  }
@@ -43,16 +44,16 @@ function _e(t) {
43
44
  function H(t) {
44
45
  return D(t) || w(t) || z(t);
45
46
  }
46
- function Xe(t) {
47
+ function Ye(t) {
47
48
  return H(t) && "type" in t && t.type === "voxel";
48
49
  }
49
- function Ye(t) {
50
+ function Ze(t) {
50
51
  return H(t) && "type" in t && t.type === "pixel";
51
52
  }
52
- function Ze(t) {
53
+ function et(t) {
53
54
  return D(t) || w(t) || z(t);
54
55
  }
55
- function et(t) {
56
+ function tt(t) {
56
57
  return K(t) || q(t) || _e(t);
57
58
  }
58
59
  function j(t) {
@@ -64,7 +65,7 @@ function S(t) {
64
65
  function be(t) {
65
66
  return !!t && typeof t == "object" && "declaredClass" in t && t.declaredClass === "esri.layers.support.InheritedDomain";
66
67
  }
67
- function tt(t) {
68
+ function it(t) {
68
69
  return !!t && typeof t == "object" && "id" in t && typeof t.id == "string" && "definitions" in t && typeof t.definitions == "object" && !Array.isArray(t.definitions);
69
70
  }
70
71
  function h(t) {
@@ -180,7 +181,7 @@ function X(t, e) {
180
181
  function R(t) {
181
182
  return we(t) ? t.portalItem : null;
182
183
  }
183
- function it(t, e, i = !1) {
184
+ function rt(t, e, i = !1) {
184
185
  let r = e;
185
186
  const s = [], n = [];
186
187
  return g(t).forEach((o) => {
@@ -189,7 +190,7 @@ function it(t, e, i = !1) {
189
190
  `), r += `**${o.name}** (${o.alias})
190
191
  ${o.type}`, o.description && (r += `
191
192
  '${o.description}`);
192
- const c = ue(o), p = I(o.name, !1), _ = b(o);
193
+ const c = le(o), p = I(o.name, !1), _ = b(o);
193
194
  if (s.push({
194
195
  name: o.name,
195
196
  description: _,
@@ -225,7 +226,7 @@ ${o.type}`;
225
226
  }
226
227
  }), [[...s, ...n], r];
227
228
  }
228
- function rt(t, e) {
229
+ function st(t, e) {
229
230
  let i = e;
230
231
  const r = [];
231
232
  return t.forEach((s) => {
@@ -257,7 +258,7 @@ class Y {
257
258
  * Returns the label string.
258
259
  */
259
260
  getLabel() {
260
- return this._label == null ? "" : typeof this._label == "string" ? oe(this._label) : A(this._profile?.intlStrings[this._label.code], this._label.formatValues);
261
+ return this._label == null ? "" : typeof this._label == "string" ? ne(this._label) : A(this._profile?.intlStrings[this._label.code], this._label.formatValues);
261
262
  }
262
263
  /**
263
264
  * Returns the description string.
@@ -443,7 +444,7 @@ class Z extends M {
443
444
  label: s,
444
445
  description: b(e),
445
446
  snippet: s,
446
- icon: ae(e, i),
447
+ icon: oe(e, i),
447
448
  filterDescription: !0
448
449
  });
449
450
  }
@@ -454,7 +455,7 @@ class Z extends M {
454
455
  label: i,
455
456
  description: e.name,
456
457
  snippet: i,
457
- icon: le(e),
458
+ icon: ae(e),
458
459
  filterDescription: !0
459
460
  });
460
461
  }
@@ -692,7 +693,7 @@ class $e extends $ {
692
693
  );
693
694
  const i = new u(this._profile, { code: "values" });
694
695
  this.variables.push(i);
695
- const r = await pe(this._source), s = this._source;
696
+ const r = await ue(this._source), s = this._source;
696
697
  g(this._source.fields).map((n) => s.fields.find((a) => a.name === n.name)).sort(V(s)).forEach((n) => {
697
698
  i.variables.push(this._getFieldProperty(n, r));
698
699
  });
@@ -730,7 +731,7 @@ class Le extends $ {
730
731
  const i = new u(this._profile, { code: "values" });
731
732
  if (this.variables.push(i), !U(this._source))
732
733
  throw new Error("Invalid definition - not an ImageryLayer");
733
- (await ce(this._source)).forEach((s) => {
734
+ (await pe(this._source)).forEach((s) => {
734
735
  i.variables.push(this._getMemberProperty(s));
735
736
  });
736
737
  } catch (e) {
@@ -832,14 +833,14 @@ class Ae extends M {
832
833
  };
833
834
  }
834
835
  async _featureSetCollectionFromPortalItem(e) {
835
- const i = new re(e);
836
+ const i = new ie(e);
836
837
  switch (await i.load(), i.type) {
837
838
  case "Web Map": {
838
- const r = new se({ portalItem: i });
839
+ const r = new re({ portalItem: i });
839
840
  return await this._featureSetCollectionFromMap(r);
840
841
  }
841
842
  case "Web Scene": {
842
- const r = new ne({ portalItem: i });
843
+ const r = new se({ portalItem: i });
843
844
  return await this._featureSetCollectionFromMap(r);
844
845
  }
845
846
  case "Feature Service":
@@ -905,7 +906,7 @@ class Ae extends M {
905
906
  return { type: this.type, name: "", ...this.declaration, definition: this._definition };
906
907
  }
907
908
  }
908
- class st extends y {
909
+ class nt extends y {
909
910
  constructor(e, i, r = "en") {
910
911
  super(void 0, {
911
912
  profile: null,
@@ -932,12 +933,12 @@ class st extends y {
932
933
  const Ge = {
933
934
  locale: "en"
934
935
  };
935
- class nt {
936
+ class ot {
936
937
  // #endregion
937
938
  constructor(e, i) {
938
939
  this.languageId = e, this._apiConfig = i, this._onDidChange = new G(), this._modelToProfileMap = /* @__PURE__ */ new Map(), this._modelToApiContextMap = /* @__PURE__ */ new Map(), this._localeToApiLibraryPromiseMap = /* @__PURE__ */ new Map(), this._onModelContextDidChange = new G(), this._onDidModelContextChangeTimeout = -1, this.workerHost = {
939
940
  getApiLibrary: async (r) => await this.getApiLibrary(r)
940
- }, ie().then((r) => {
941
+ }, ce().then((r) => {
941
942
  r.onWillDisposeModel((s) => {
942
943
  this.disposeForModel(s.uri);
943
944
  });
@@ -1019,15 +1020,15 @@ class nt {
1019
1020
  // #endregion
1020
1021
  }
1021
1022
  export {
1022
- st as E,
1023
- nt as L,
1024
- Ze as a,
1023
+ nt as E,
1024
+ ot as L,
1025
+ et as a,
1025
1026
  k as b,
1026
- et as c,
1027
- Xe as d,
1028
- Ye as e,
1029
- it as f,
1027
+ tt as c,
1028
+ Ye as d,
1029
+ Ze as e,
1030
+ rt as f,
1030
1031
  H as g,
1031
- tt as i,
1032
- rt as m
1032
+ it as i,
1033
+ st as m
1033
1034
  };