@arcgis/coding-components 4.34.0-next.125 → 4.34.0-next.127

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 (86) hide show
  1. package/dist/addons.js +1 -1
  2. package/dist/cdn/{YO7DAFZV.js → 3TTIN52W.js} +2 -2
  3. package/dist/cdn/{V7AP47DK.js → 5EKI3VHY.js} +2 -2
  4. package/dist/cdn/{DLBR7H3C.js → 5PFSFE4Q.js} +2 -2
  5. package/dist/cdn/6BGS4U4A.js +4 -0
  6. package/dist/cdn/{UBOR3LK5.js → 75GXGTBQ.js} +2 -2
  7. package/dist/cdn/{XMNS2AMG.js → BQ3VAANG.js} +2 -2
  8. package/dist/cdn/{735NEHPE.js → BV6FAGXT.js} +2 -2
  9. package/dist/cdn/{NXZCMRTV.js → C2LWYXK2.js} +1 -1
  10. package/dist/cdn/D7A65QAT.js +6 -0
  11. package/dist/cdn/{WVK7TRLB.js → DT5CWNRT.js} +2 -2
  12. package/dist/cdn/{OVRXTFBM.js → EZRQL3V5.js} +2 -2
  13. package/dist/cdn/FBC5VUHQ.js +4 -0
  14. package/dist/cdn/{CFMAASMV.js → FYVBP75X.js} +2 -2
  15. package/dist/cdn/{6WSJJRZH.js → GXTCOJXP.js} +2 -2
  16. package/dist/cdn/{CT2SSRPF.js → IWSM7Q5E.js} +1 -1
  17. package/dist/cdn/{VF3GPNIR.js → K23J5R4T.js} +2 -2
  18. package/dist/cdn/{K2ZTYOPH.js → K6QSZMSY.js} +2 -2
  19. package/dist/cdn/{GYSXQ7C2.js → KLPV3RCE.js} +2 -2
  20. package/dist/cdn/{UVQCJUPD.js → KMDEJYHR.js} +2 -2
  21. package/dist/cdn/{RQ2AYTIG.js → KW67OACY.js} +1 -1
  22. package/dist/cdn/{7LQEOJIC.js → KXC2K6MP.js} +2 -2
  23. package/dist/cdn/{ZSLS5APT.js → L6FLWBQW.js} +2 -2
  24. package/dist/cdn/{M5RHS3KM.js → LKDQOQC2.js} +1 -1
  25. package/dist/cdn/{JZU3ZQVI.js → M54D6KE5.js} +2 -2
  26. package/dist/cdn/{AC3W5G2Y.js → MF7AJU7K.js} +2 -2
  27. package/dist/cdn/{PD2ZPE6T.js → MFRHU2JZ.js} +2 -2
  28. package/dist/cdn/{D7QSIB5F.js → MQC6VFHO.js} +4 -4
  29. package/dist/cdn/{VWVCAOVL.js → N3QFTQGU.js} +2 -2
  30. package/dist/cdn/{J5SRTNFX.js → NBAEDVU7.js} +2 -2
  31. package/dist/cdn/{U432E4UL.js → O4K3WI7G.js} +2 -2
  32. package/dist/cdn/{FEEGKDY3.js → OBRGYXAJ.js} +2 -2
  33. package/dist/cdn/{ZT2MY6JP.js → OCTGHWZG.js} +1 -1
  34. package/dist/cdn/{2GDZLUV7.js → OOQCYIGC.js} +2 -2
  35. package/dist/cdn/{YUYT7A4Q.js → QD3PSCEY.js} +2 -2
  36. package/dist/cdn/{6AHL6AZO.js → QPN3WOVJ.js} +2 -2
  37. package/dist/cdn/{VONGISVP.js → QRWCK4JS.js} +2 -2
  38. package/dist/cdn/{FO2JLEYN.js → RB5VEDVC.js} +2 -2
  39. package/dist/cdn/{WEYDBUPW.js → RQ7S4B5S.js} +2 -2
  40. package/dist/cdn/{XHOB2Y35.js → SS62SMVV.js} +2 -2
  41. package/dist/cdn/{E32XMARU.js → WAAQ76SZ.js} +2 -2
  42. package/dist/cdn/{I3YYZV2R.js → XG4524QO.js} +1 -1
  43. package/dist/cdn/{UTFXKWES.js → YBA5LBUQ.js} +2 -2
  44. package/dist/cdn/{XNP5WDRF.js → YGUHMT5S.js} +2 -2
  45. package/dist/cdn/{EN5YQO7E.js → ZSQWUBYU.js} +2 -2
  46. package/dist/cdn/assets/code-editor/sql-expr.worker.js +73189 -76014
  47. package/dist/cdn/index.js +2 -2
  48. package/dist/chunks/arcade-defaults.js +1 -1
  49. package/dist/chunks/arcade-executor.js +1 -1
  50. package/dist/chunks/arcade-mode.js +1 -1
  51. package/dist/chunks/arcade-service-accessors.js +1 -1
  52. package/dist/chunks/editor.js +1 -1
  53. package/dist/chunks/fields.js +1 -1
  54. package/dist/chunks/language-defaults-base.js +1 -1
  55. package/dist/chunks/markdown.js +1 -1
  56. package/dist/chunks/monaco-importer.js +1 -1
  57. package/dist/chunks/runtime.js +1 -1
  58. package/dist/chunks/setup-monaco.js +31 -21
  59. package/dist/chunks/sql-expr-contribution.js +1 -1
  60. package/dist/chunks/sql-expr-defaults.js +1 -1
  61. package/dist/chunks/sql-expr-mode.js +1 -1
  62. package/dist/chunks/sql-expr-service-accessors.js +1 -1
  63. package/dist/chunks/useT9n.js +1 -1
  64. package/dist/components/arcgis-arcade-coding-assistant/customElement.js +81 -78
  65. package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
  66. package/dist/components/arcgis-arcade-results/customElement.js +1 -1
  67. package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
  68. package/dist/components/arcgis-code-editor/customElement.js +1 -1
  69. package/dist/components/arcgis-editor-variables/customElement.js +1 -1
  70. package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
  71. package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
  72. package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
  73. package/dist/docs/api.json +3 -3
  74. package/dist/docs/docs.json +5 -5
  75. package/dist/docs/web-types.json +2 -2
  76. package/dist/index.js +1 -1
  77. package/dist/loader.js +1 -1
  78. package/dist/monacoStyles.js +1 -1
  79. package/dist/utils/arcade-assistant/types.d.ts +2 -2
  80. package/dist/utils/monaco-importer.d.ts +0 -1
  81. package/dist/utils/monaco-typings.d.ts +4 -0
  82. package/dist/utils/setup-monaco.d.ts +13 -0
  83. package/package.json +5 -5
  84. package/dist/cdn/2MKLDKHG.js +0 -4
  85. package/dist/cdn/B2DP3PQK.js +0 -6
  86. package/dist/cdn/VYFOJC4T.js +0 -4
package/dist/cdn/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
3
- v4.34.0-next.125 */
4
- import{C as i,o as e}from"./J5SRTNFX.js";import"./CT2SSRPF.js";import"./RQ2AYTIG.js";var r=e(i,{"arcgis-arcade-coding-assistant":[()=>import("./B2DP3PQK.js"),"appVersion,assistantsEnabled,closed,closePanel:,editorRef:,feedbackServiceUrl,helpBase,insertText:,layer,portalUrl,serviceUrl;destroy"],"arcgis-arcade-editor":[()=>import("./FEEGKDY3.js"),"arcadeAssistant:,customPanels:,editorInstance:,editorOptions:,hideDocumentationActions,hideSideBar,openedSidePanel:,profile:,script,sideActionBarExpanded,snippets:,suggestions:,testData:;getEditorInstance,getScript,getTestResult,setFocus"],"arcgis-arcade-results":[()=>import("./2GDZLUV7.js"),"consoleLogs:,loading,openedResultPanel,result:"],"arcgis-arcade-suggestions":[()=>import("./GYSXQ7C2.js"),"closed,suggestions:"],"arcgis-code-editor":[()=>import("./735NEHPE.js"),"editorInstance:,editorOptions:,language,modelId:,value;getEditorInstance,getValue,insertSnippet,insertText,setFocus,setValue"],"arcgis-editor-variables":[()=>import("./XNP5WDRF.js"),"closed,loading,modelId,variable:"],"arcgis-language-api-panel":[()=>import("./UTFXKWES.js"),"apiLibrary:,closed,hideDocumentationActions,languageId,loading"],"arcgis-sql-expression-editor":[()=>import("./V7AP47DK.js"),"hideSideBar,profile:,script"],"arcgis-sql-expression-fields":[()=>import("./YUYT7A4Q.js"),"loading,modelId"]});r({resourcesUrl:import.meta.url});var o=new CSSStyleSheet();var ___=new CSSStyleSheet();___.replaceSync(`@layer{/*!-----------------------------------------------------------
3
+ v4.34.0-next.127 */
4
+ import{C as i,o as e}from"./NBAEDVU7.js";import"./IWSM7Q5E.js";import"./KW67OACY.js";var r=e(i,{"arcgis-arcade-coding-assistant":[()=>import("./D7A65QAT.js"),"appVersion,assistantsEnabled,closed,closePanel:,editorRef:,feedbackServiceUrl,helpBase,insertText:,layer,portalUrl,serviceUrl;destroy"],"arcgis-arcade-editor":[()=>import("./OBRGYXAJ.js"),"arcadeAssistant:,customPanels:,editorInstance:,editorOptions:,hideDocumentationActions,hideSideBar,openedSidePanel:,profile:,script,sideActionBarExpanded,snippets:,suggestions:,testData:;getEditorInstance,getScript,getTestResult,setFocus"],"arcgis-arcade-results":[()=>import("./OOQCYIGC.js"),"consoleLogs:,loading,openedResultPanel,result:"],"arcgis-arcade-suggestions":[()=>import("./KLPV3RCE.js"),"closed,suggestions:"],"arcgis-code-editor":[()=>import("./BV6FAGXT.js"),"editorInstance:,editorOptions:,language,modelId:,value;getEditorInstance,getValue,insertSnippet,insertText,setFocus,setValue"],"arcgis-editor-variables":[()=>import("./YGUHMT5S.js"),"closed,loading,modelId,variable:"],"arcgis-language-api-panel":[()=>import("./YBA5LBUQ.js"),"apiLibrary:,closed,hideDocumentationActions,languageId,loading"],"arcgis-sql-expression-editor":[()=>import("./5EKI3VHY.js"),"hideSideBar,profile:,script"],"arcgis-sql-expression-fields":[()=>import("./QD3PSCEY.js"),"loading,modelId"]});r({resourcesUrl:import.meta.url});var o=new CSSStyleSheet();var ___=new CSSStyleSheet();___.replaceSync(`@layer{/*!-----------------------------------------------------------
5
5
  * Copyright (c) Microsoft Corporation. All rights reserved.
6
6
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
7
7
  * Released under the MIT license
@@ -4,7 +4,7 @@ import { g as m } from "./runtime.js";
4
4
  import { CompletionItemKind as w, InsertTextFormat as f, InsertTextMode as d } from "vscode-languageserver-types";
5
5
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
6
6
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
7
- v4.34.0-next.125 */
7
+ v4.34.0-next.127 */
8
8
  async function S(e) {
9
9
  const { apiVersion: i, bundles: t, hiddenApiItems: n } = e.toEditorProfileDefinition(), r = await h(e.dictionaryVariables);
10
10
  return { apiVersion: i, bundles: t, variables: r, hiddenApiItems: n?.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/4.34/esri/copyright.txt for details.
4
- v4.34.0-next.125 */
4
+ v4.34.0-next.127 */
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/4.34/esri/copyright.txt for details.
12
- v4.34.0-next.125 */
12
+ v4.34.0-next.127 */
13
13
  const S = [
14
14
  "<=",
15
15
  ">=",
@@ -1,6 +1,6 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
3
- v4.34.0-next.125 */
3
+ v4.34.0-next.127 */
4
4
  async function a() {
5
5
  return (await e()).getArcadeDiagnosticService();
6
6
  }
@@ -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/4.34/esri/copyright.txt for details.
4
- v4.34.0-next.125 */
4
+ v4.34.0-next.127 */
5
5
  const o = 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)}.side-panel{max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w)}.side-panel calcite-flow{height:100%}}}`;
6
6
  export {
7
7
  o 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/4.34/esri/copyright.txt for details.
3
- v4.34.0-next.125 */
3
+ v4.34.0-next.127 */
4
4
  function t(e) {
5
5
  switch (e.type) {
6
6
  case "oid":
@@ -14,7 +14,7 @@ import { filterApiLibraryForContext as le } from "@arcgis/languages-api-utils";
14
14
  import { Emitter as $, Uri as A } from "monaco-editor";
15
15
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
16
16
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
17
- v4.34.0-next.125 */
17
+ v4.34.0-next.127 */
18
18
  function B(t) {
19
19
  return !!t && typeof t == "object" && "declaredClass" in t && typeof t.declaredClass == "string" && t.declaredClass.startsWith("esri.layers.") && g(t) && "queryFeatures" in t && typeof t.queryFeatures == "function";
20
20
  }
@@ -4,7 +4,7 @@ import { IStandaloneThemeService as ie } from "monaco-editor/esm/vs/editor/stand
4
4
  import { generateTokensCSSForColorMap as we } from "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
5
5
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
6
6
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
7
- v4.34.0-next.125 */
7
+ v4.34.0-next.127 */
8
8
  async function ye(r, e) {
9
9
  return await (await me()).colorize(r, e, { tabSize: 2 });
10
10
  }
@@ -6,7 +6,7 @@ import "monaco-editor/esm/vs/editor/standalone/common/standaloneTheme.js";
6
6
  import "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
7
7
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
8
8
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
9
- v4.34.0-next.125 */
9
+ v4.34.0-next.127 */
10
10
  function $(e, n, l, i) {
11
11
  if (!n)
12
12
  return [];
@@ -3,7 +3,7 @@ import { makeRuntime as e } from "@arcgis/lumina";
3
3
  import { trackAccess as s, createObservable as r, createTrackingTarget as a, runTracked as c } from "@arcgis/core/applications/Components/reactiveUtils.js";
4
4
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
5
5
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
6
- v4.34.0-next.125 */
6
+ v4.34.0-next.127 */
7
7
  const t = e({ defaultAssetPath: "https://jsdev.arcgis.com/next/coding-components/", hydratedAttribute: "hydrated" }), { customElement: n, getAssetPath: d, setAssetPath: i } = t;
8
8
  t.t = s;
9
9
  t.o = r;
@@ -1,21 +1,31 @@
1
- import i from "@arcgis/core/request.js";
1
+ import w from "@arcgis/core/request.js";
2
2
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
- v4.34.0-next.125 */
5
- function p() {
6
- return !!window.MonacoEnvironment?.getWorkerUrl;
4
+ v4.34.0-next.127 */
5
+ function d() {
6
+ return !!window.MonacoEnvironment?.getWorker;
7
7
  }
8
- let n = "";
9
- const u = /* @__PURE__ */ new Map();
10
- async function l(s, e) {
11
- const r = await i(s, { responseType: "text" });
12
- return new Worker(URL.createObjectURL(new Blob([r.data], { type: "text/javascript" })), { type: "module" });
8
+ let a = "";
9
+ const f = /* @__PURE__ */ new Map(), i = !1;
10
+ async function c(s, e, r) {
11
+ if (r)
12
+ return e ? e() : new Worker(s);
13
+ const o = window.location.origin;
14
+ if (new URL(s, window.location.href).origin !== o) {
15
+ const t = await w(s, { responseType: "text" });
16
+ return new Worker(URL.createObjectURL(new Blob([t.data], { type: "text/javascript" })), {
17
+ type: "module"
18
+ });
19
+ }
20
+ return new Worker(s, {
21
+ type: "module"
22
+ });
13
23
  }
14
- function k(s) {
15
- if (p())
24
+ function j(s) {
25
+ if (d())
16
26
  return;
17
- n = s;
18
- const e = `${n}/code-editor`, r = {
27
+ a = s;
28
+ const e = `${a}/code-editor`, r = {
19
29
  arcade: `${e}/arcade.worker.js`,
20
30
  "arcgis-sql-expression": `${e}/sql-expr.worker.js`,
21
31
  html: `${e}/html.worker.js`,
@@ -23,7 +33,7 @@ function k(s) {
23
33
  typescript: `${e}/ts.worker.js`,
24
34
  json: `${e}/json.worker.js`,
25
35
  default: `${e}/editor.worker.js`
26
- }, t = {
36
+ }, o = {
27
37
  arcade: {
28
38
  url: r.arcade
29
39
  },
@@ -50,15 +60,15 @@ function k(s) {
50
60
  }
51
61
  };
52
62
  window.MonacoEnvironment = {
53
- getWorker: async (w, o) => {
54
- const a = u.get(o);
55
- if (a)
56
- return await l(a);
57
- const { url: c, localWorker: d } = t[o] || t.default;
58
- return await l(c);
63
+ getWorker: async (l, t) => {
64
+ const n = f.get(t);
65
+ if (n)
66
+ return await c(n, void 0, i);
67
+ const { url: p, localWorker: u } = o[t] || o.default;
68
+ return await c(p, u, i);
59
69
  }
60
70
  };
61
71
  }
62
72
  export {
63
- k as s
73
+ j as s
64
74
  };
@@ -9,7 +9,7 @@ import { a as n } from "./sql-expr-defaults.js";
9
9
  import { g as m } from "./sql-expr-service-accessors.js";
10
10
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
11
11
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
12
- v4.34.0-next.125 */
12
+ v4.34.0-next.127 */
13
13
  const s = /* @__PURE__ */ new Set();
14
14
  function g(e, o) {
15
15
  return () => {
@@ -4,7 +4,7 @@ import { fetchT9nStringsBundle as M } from "@arcgis/toolkit/intl";
4
4
  import { g as b } from "./runtime.js";
5
5
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
6
6
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
7
- v4.34.0-next.125 */
7
+ v4.34.0-next.127 */
8
8
  const x = (r) => {
9
9
  const e = r.variables[0], i = e && e.type === "featureSet" ? A(e) : void 0, { apiVersion: t, bundles: o, hiddenApiItems: s } = r.toEditorProfileDefinition();
10
10
  return {
@@ -9,7 +9,7 @@ import { debounce as N } from "@arcgis/toolkit/function";
9
9
  import { g as f } from "./sql-expr-service-accessors.js";
10
10
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
11
11
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
12
- v4.34.0-next.125 */
12
+ v4.34.0-next.127 */
13
13
  let h = new _();
14
14
  class k {
15
15
  constructor(e) {
@@ -1,6 +1,6 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
3
- v4.34.0-next.125 */
3
+ v4.34.0-next.127 */
4
4
  async function t() {
5
5
  return await import("./sql-expr-mode.js");
6
6
  }
@@ -2,7 +2,7 @@ import { makeT9nController as o } from "@arcgis/lumina/controllers";
2
2
  import { g as t } from "./runtime.js";
3
3
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
4
4
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
5
- v4.34.0-next.125 */
5
+ v4.34.0-next.127 */
6
6
  const s = o(t);
7
7
  export {
8
8
  s as u