@arcgis/coding-components 5.0.0-next.122 → 5.0.0-next.124

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 (88) hide show
  1. package/dist/addons.js +1 -1
  2. package/dist/cdn/{XSD6BA46.js → 3MIA2XQZ.js} +2 -2
  3. package/dist/cdn/{BYEGZCAI.js → 4LJTQZWW.js} +2 -2
  4. package/dist/cdn/{VDUSITD2.js → 4XYFRBBR.js} +2 -2
  5. package/dist/cdn/{MVLG2MYX.js → 4Y6R6MQI.js} +2 -2
  6. package/dist/cdn/{5QI5UTMM.js → 55REAZ7V.js} +2 -2
  7. package/dist/cdn/{2DRQ6BNC.js → 5GR4XBOP.js} +2 -2
  8. package/dist/cdn/{ZP4A4AY3.js → 5ITFKKVZ.js} +2 -2
  9. package/dist/cdn/{KVIMKPYW.js → 66M74NC6.js} +2 -2
  10. package/dist/cdn/{JK3CCPVF.js → 6UYTY4E3.js} +2 -2
  11. package/dist/cdn/{GXZ2X7XU.js → 7CBFSCCG.js} +1 -1
  12. package/dist/cdn/{LDJSETSD.js → 7FXIEFR3.js} +2 -2
  13. package/dist/cdn/{55RCZ6XP.js → BS7DG5AD.js} +2 -2
  14. package/dist/cdn/{P5TZ5UNU.js → BT52UHKC.js} +2 -2
  15. package/dist/cdn/{MXJRGL5U.js → BYGCJU6Z.js} +2 -2
  16. package/dist/cdn/{XAGEA3XO.js → CFMBBMFV.js} +2 -2
  17. package/dist/cdn/{NAGF2Z2D.js → DDIB2E3H.js} +1 -1
  18. package/dist/cdn/{Q5T2KPL2.js → EA5DSTV6.js} +1 -1
  19. package/dist/cdn/{3PS6M6VD.js → EXFGYPJ2.js} +1 -1
  20. package/dist/cdn/{EBUSMJOT.js → HYCWQZZI.js} +2 -2
  21. package/dist/cdn/{XSPLDM5L.js → ICPAFIAA.js} +2 -2
  22. package/dist/cdn/{4DTAVXBS.js → IDRFWYUA.js} +2 -2
  23. package/dist/cdn/{CJKTWGGK.js → JOPULDW6.js} +2 -2
  24. package/dist/cdn/{M66XJTO2.js → JSJKYLLW.js} +1 -1
  25. package/dist/cdn/{XMXTLCWY.js → LBMYHT4Q.js} +2 -2
  26. package/dist/cdn/{JHFPKEPM.js → LLM7KVBR.js} +2 -2
  27. package/dist/cdn/{LBLAK3PN.js → LR4QV5NI.js} +2 -2
  28. package/dist/cdn/{IEG7THXU.js → M3VMO37P.js} +2 -2
  29. package/dist/cdn/{CUPGVQVT.js → MPY6CNJH.js} +2 -2
  30. package/dist/cdn/{W45Q242J.js → QQRC43MF.js} +2 -2
  31. package/dist/cdn/{6ATXY4DQ.js → QUWSFG75.js} +3 -3
  32. package/dist/cdn/{ORNQOMPI.js → RBP6TTNV.js} +1 -1
  33. package/dist/cdn/{HGQ5VLKG.js → RBVG3RGE.js} +2 -2
  34. package/dist/cdn/{XZEBDJ5V.js → RP6KGR7C.js} +2 -2
  35. package/dist/cdn/RWSSODQI.js +4 -0
  36. package/dist/cdn/{JYS5LGFT.js → SNYKC7WF.js} +2 -2
  37. package/dist/cdn/TF4SWIYY.js +8 -0
  38. package/dist/cdn/{FMRHPBFR.js → UMFZP3TQ.js} +2 -2
  39. package/dist/cdn/{ZEFUZXY6.js → VIDKLNUH.js} +2 -2
  40. package/dist/cdn/{2J6SHWMB.js → VKSQIHTK.js} +2 -2
  41. package/dist/cdn/{VSFXRIEN.js → VOFZE5TQ.js} +2 -2
  42. package/dist/cdn/{WGAHI6SV.js → VSPPJ34Y.js} +2 -2
  43. package/dist/cdn/{E5LZXWSX.js → WUX7GIVY.js} +1 -1
  44. package/dist/cdn/{ZXMUDXWG.js → X324SFCI.js} +2 -2
  45. package/dist/cdn/{ERWJSSYU.js → X5CNM52D.js} +2 -2
  46. package/dist/cdn/{7TNM3MBK.js → XB2H3BKT.js} +2 -2
  47. package/dist/cdn/{YU7EUPE6.js → XBQFW5F5.js} +2 -2
  48. package/dist/cdn/{3JK722XX.js → YZMXKVJP.js} +1 -1
  49. package/dist/cdn/{QEIQAP7D.js → ZNA5PXHK.js} +2 -2
  50. package/dist/cdn/assets/code-editor/sql-expr.worker.js +578 -578
  51. package/dist/cdn/index.js +2 -2
  52. package/dist/chunks/arcade-contribution.js +1 -1
  53. package/dist/chunks/arcade-defaults.js +153 -131
  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 +1 -1
  57. package/dist/chunks/colorize.js +1 -1
  58. package/dist/chunks/fields.js +1 -1
  59. package/dist/chunks/language-defaults-base.js +1 -1
  60. package/dist/chunks/markdown.js +1 -1
  61. package/dist/chunks/monaco-importer.js +1 -1
  62. package/dist/chunks/monaco-theme.js +1 -1
  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 +1 -1
  69. package/dist/components/arcgis-arcade-coding-assistant/customElement.js +1 -1
  70. package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
  71. package/dist/components/arcgis-arcade-results/customElement.js +1 -1
  72. package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
  73. package/dist/components/arcgis-code-editor/customElement.js +1 -1
  74. package/dist/components/arcgis-code-editor-shell/customElement.js +1 -1
  75. package/dist/components/arcgis-code-viewer/customElement.js +1 -1
  76. package/dist/components/arcgis-editor-variables/customElement.js +1 -1
  77. package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
  78. package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
  79. package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
  80. package/dist/docs/api.json +2 -2
  81. package/dist/docs/docs.json +2 -2
  82. package/dist/docs/web-types.json +1 -1
  83. package/dist/index.js +1 -1
  84. package/dist/loader.js +1 -1
  85. package/dist/utils/arcade-monaco/arcade-defaults.d.ts +20 -0
  86. package/package.json +5 -5
  87. package/dist/cdn/R7VFYNQC.js +0 -8
  88. package/dist/cdn/SOWUXRA3.js +0 -4
@@ -9,7 +9,7 @@ import { c as b } from "../../chunks/markdown.js";
9
9
  import { u as _ } from "../../chunks/useT9n.js";
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.122 */
12
+ v5.0.0-next.124 */
13
13
  function v(o) {
14
14
  return !Array.isArray(o) || !o.length ? !1 : Array.isArray(o[0].suggestions);
15
15
  }
@@ -19,7 +19,7 @@ import { EditorMouseEventFactory as x, EditorMouseEvent as I } from "monaco-edit
19
19
  import { MouseTargetFactory as T } from "monaco-editor/esm/vs/editor/browser/controller/mouseTarget.js";
20
20
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
21
21
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
22
- v5.0.0-next.122 */
22
+ v5.0.0-next.124 */
23
23
  const L = v`/*!-----------------------------------------------------------
24
24
  * Copyright (c) Microsoft Corporation. All rights reserved.
25
25
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
@@ -3,7 +3,7 @@ import { css as e, html as n } from "lit";
3
3
  import { LitElement as r } from "@arcgis/lumina";
4
4
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
5
5
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
6
- v5.0.0-next.122 */
6
+ v5.0.0-next.124 */
7
7
  const i = e`:host{--arcgis-coding-components-internal-border: var( --arcgis-coding-components-border, 1px solid var(--calcite-color-border-3) );--arcgis-coding-components-internal-background-color: var( --arcgis-coding-components-background-color, var(--calcite-color-foreground-1) );--arcgis-coding-components-internal-side-action-bar-max-w: var(--arcgis-coding-components-side-action-bar-max-w, 25%);--arcgis-coding-components-internal-code-editor-side-panel-w: var( --arcgis-coding-components-code-editor-side-panel-w, 600px );--arcgis-coding-components-internal-code-editor-side-panel-max-w: var( --arcgis-coding-components-code-editor-side-panel-max-w, 45% );--arcgis-coding-components-internal-code-editor-results-panel-max-h: var( --arcgis-coding-components-code-editor-results-panel-max-h, 50% );--arcgis-coding-components-internal-code-editor-results-panel-h: var( --arcgis-coding-components-code-editor-results-panel-h, 50% );display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-internal-border);box-sizing:border-box;background-color:var(--arcgis-coding-components-internal-background-color);height:100%;.flex-adjustable{flex:1 1 auto;overflow:hidden}.flex-row{display:flex;flex-direction:row;overflow:hidden}.flex-column{display:flex;flex-direction:column;overflow:hidden}}slot[name=top-action-bar]::slotted(*){border-bottom:var(--arcgis-coding-components-internal-border);flex:0 0 auto}slot[name=side-panel]::slotted(*){max-width:var(--arcgis-coding-components-internal-code-editor-side-panel-max-w);width:var(--arcgis-coding-components-internal-code-editor-side-panel-w);border-inline-start:var(--arcgis-coding-components-internal-border);box-sizing:border-box;flex:1 0 auto}slot[name=side-panel]::slotted(.hidden){display:none}slot[name=editor]::slotted(*){flex:1 1 auto;overflow:hidden}slot[name=results-panel]::slotted(*){flex:0 0 var(--arcgis-coding-components-internal-code-editor-results-panel-h);overflow:hidden;border-top:var(--arcgis-coding-components-internal-border);box-sizing:border-box;max-height:var(--arcgis-coding-components-internal-code-editor-results-panel-max-h);margin-bottom:-1px}slot[name=side-action-bar]::slotted(*){max-width:var(--arcgis-coding-components-internal-side-action-bar-max-w);border-inline-start:var(--arcgis-coding-components-internal-border)}`;
8
8
  class t extends r {
9
9
  static {
@@ -12,7 +12,7 @@ import { Task as N } from "@lit/task";
12
12
  import { rethrowError as O, log as w } from "@arcgis/toolkit/log";
13
13
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
14
14
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
15
- v5.0.0-next.122 */
15
+ v5.0.0-next.124 */
16
16
  const z = E`pre{direction:ltr;overflow-x:auto;background-color:var(--calcite-color-foreground-2);padding:var(--calcite-spacing-sm);white-space:pre-line;code{font-size:var(--calcite-font-size--2);font-family:var(--calcite-font-family-code)}}:host([round]){pre{border-radius:var(--calcite-corner-radius-round)}}`;
17
17
  class L extends p {
18
18
  constructor() {
@@ -8,7 +8,7 @@ import { u as m } from "../../chunks/useT9n.js";
8
8
  import { log as u } from "@arcgis/toolkit/log";
9
9
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
10
10
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
11
- v5.0.0-next.122 */
11
+ v5.0.0-next.124 */
12
12
  const g = n`:host{background-color:var(--calcite-color-foreground-1);.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.sticky{position:sticky;top:0;z-index:10}calcite-flow{height:100%}calcite-list-item-group{background-color:var(--calcite-color-foreground-2);word-break:break-word}}`;
13
13
  function p(l) {
14
14
  l.key === "Enter" && l.stopPropagation();
@@ -9,7 +9,7 @@ import { c as r } from "../../chunks/markdown.js";
9
9
  import { u as p } from "../../chunks/useT9n.js";
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.122 */
12
+ v5.0.0-next.124 */
13
13
  const g = m`:host{background-color:var(--calcite-color-foreground-1);.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.sticky{position:sticky;top:0;z-index:10}calcite-flow{height:100%}calcite-block{p:first-of-type{margin-top:0}}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}calcite-flow{[slot=footer]{word-break:break-word}}}`;
14
14
  class b extends h {
15
15
  constructor() {
@@ -9,7 +9,7 @@ import { getSqlExprDiagnosticService as _ } from "../../chunks/sql-expr-mode.js"
9
9
  import { rethrowError as a } from "@arcgis/toolkit/log";
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.122 */
12
+ v5.0.0-next.124 */
13
13
  const f = n`:host{height:100%}calcite-tooltip:not([calcite-hydrated])>*{display:none}`;
14
14
  class u extends d {
15
15
  constructor() {
@@ -6,7 +6,7 @@ import { a as m } from "../../chunks/sql-expr-defaults.js";
6
6
  import { u as d } from "../../chunks/useT9n.js";
7
7
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
8
8
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
9
- v5.0.0-next.122 */
9
+ v5.0.0-next.124 */
10
10
  const h = r`:host{calcite-flow{height:100%}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`;
11
11
  class g extends n {
12
12
  constructor() {
@@ -1,8 +1,8 @@
1
1
  {
2
- "timestamp": "2026-01-13T04:39:35",
2
+ "timestamp": "2026-01-14T04:43:45",
3
3
  "compiler": {
4
4
  "name": "@arcgis/lumina-compiler",
5
- "version": "5.0.0-next.122",
5
+ "version": "5.0.0-next.124",
6
6
  "typescriptVersion": "5.9.3"
7
7
  },
8
8
  "schemaVersion": "2.1.0",
@@ -1,8 +1,8 @@
1
1
  {
2
- "timestamp": "2026-01-13T04:39:35",
2
+ "timestamp": "2026-01-14T04:43:45",
3
3
  "compiler": {
4
4
  "name": "@arcgis/lumina-compiler",
5
- "version": "5.0.0-next.122",
5
+ "version": "5.0.0-next.124",
6
6
  "typescriptVersion": "5.9.3"
7
7
  },
8
8
  "components": [
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@arcgis/coding-components",
4
- "version": "5.0.0-next.122",
4
+ "version": "5.0.0-next.124",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import { a as o } from "./chunks/arcade-defaults.js";
3
3
  import { s as x } from "./chunks/sql-expr-defaults.js";
4
4
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
5
5
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
6
- v5.0.0-next.122 */
6
+ v5.0.0-next.124 */
7
7
  export {
8
8
  o as arcade,
9
9
  e as getAssetPath,
package/dist/loader.js CHANGED
@@ -2,7 +2,7 @@ import { r as e } from "./chunks/runtime.js";
2
2
  import { makeDefineCustomElements as i } from "@arcgis/lumina";
3
3
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
4
4
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
5
- v5.0.0-next.122 */
5
+ v5.0.0-next.124 */
6
6
  const o = i(e, {
7
7
  "arcgis-arcade-coding-assistant": [() => import("./components/arcgis-arcade-coding-assistant/customElement.js"), "appVersion,assistantsEnabled,closed,closePanel:,editorRef:,feedbackServiceUrl,helpBase,insertText:,layer,portalUrl,serviceUrl;destroy"],
8
8
  "arcgis-arcade-editor": [() => import("./components/arcgis-arcade-editor/customElement.js"), "arcadeAssistant:,customPanels:,editorInstance:,editorOptions:,hideDocumentationActions,hideSideBar,openedSidePanel:,profile:,script,sideActionBarExpanded,snippets:,suggestions:,testData:;getEditorInstance,getScript,getTestResult,setFocus"],
@@ -3,7 +3,27 @@ import { ApiSnippet } from '@arcgis/languages-api-utils';
3
3
  import { Uri } from 'monaco-editor';
4
4
  import { IEditorProfileDefinition, IPredefinedProfile } from '../profile/types';
5
5
  import { LanguageDefaultsBase } from '../language-defaults-base';
6
+ /**
7
+ * Provides default configuration and per-model state management for the Arcade language service.
8
+ *
9
+ * In addition to the base language defaults, this class manages an {@link EditorProfile} and the
10
+ * corresponding API context for each Monaco model. It serializes profile updates on a per-model basis
11
+ * to prevent race conditions when multiple asynchronous profile changes are requested in quick succession.
12
+ *
13
+ * @remarks
14
+ * Profile updates are queued per model key because `setProfileForModel` performs multiple asynchronous steps
15
+ * (e.g., loading localized strings, converting predefined profiles, converting editor profiles to API profiles,
16
+ * and disposing/reinitializing per-model state). Without serialization, an older request could complete after a
17
+ * newer request and overwrite the latest context.
18
+ *
19
+ * @example
20
+ * ```ts
21
+ * await defaults.setProfileForModel(model.uri, predefinedProfile, { locale: "en" });
22
+ * await defaults.setProfileForModel(model.uri, editorProfileDefinition, { locale: "fr", snippets });
23
+ * ```
24
+ */
6
25
  declare class ArcadeLanguageServiceDefaults extends LanguageDefaultsBase<ArcadeApiContext> {
26
+ #private;
7
27
  constructor();
8
28
  /**
9
29
  * Create an EditorProfile for the given model id using the given definition and locale.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/coding-components",
3
- "version": "5.0.0-next.122",
3
+ "version": "5.0.0-next.124",
4
4
  "description": "Contains components for editing code in different languages. The currently supported languages are html, css, json, TypeScript, JavaScript, and Arcade.",
5
5
  "keywords": [
6
6
  "ArcGIS",
@@ -42,10 +42,10 @@
42
42
  ],
43
43
  "license": "SEE LICENSE IN LICENSE.md",
44
44
  "dependencies": {
45
- "@arcgis/arcade-languageservice": "5.0.0-next.122",
46
- "@arcgis/languages-api-utils": "5.0.0-next.122",
47
- "@arcgis/lumina": "5.0.0-next.122",
48
- "@arcgis/toolkit": "5.0.0-next.122",
45
+ "@arcgis/arcade-languageservice": "5.0.0-next.124",
46
+ "@arcgis/languages-api-utils": "5.0.0-next.124",
47
+ "@arcgis/lumina": "5.0.0-next.124",
48
+ "@arcgis/toolkit": "5.0.0-next.124",
49
49
  "@lit/task": "^1.0.3",
50
50
  "lit": "^3.3.0",
51
51
  "monaco-editor": "^0.52.0",
@@ -1,8 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.122 */
4
- import a from"./JYS5LGFT.js";import{b as f,c,d as p}from"./3PS6M6VD.js";import{f as h,g}from"./LDJSETSD.js";import{K as u}from"./VSFXRIEN.js";export default $arcgis.t(([{getDeclaredPixelMembers:E},{b:x,c:v,d:T,e:M,f:F,g:y,h:k,i:P,j:A,k:I}])=>{async function j(e){let{apiVersion:n,bundles:t,hiddenApiItems:i}=e.toEditorProfileDefinition(),a=await V(e.dictionaryVariables);return{apiVersion:n,bundles:t,variables:a,hiddenApiItems:i?.map(r=>r.toLowerCase())}}async function V(e,n=f.Variable){return await Promise.all(e.map(async t=>{switch(t.type){case"dictionary":return await _(t,n);case"pixel":return await K(t,n);case"voxel":case"feature":return await $(t,n);default:return S(t,n)}}))}function S(e,n){let{name:t,type:i}=e,a=e.getDescription();return{name:t,description:a,type:i,completion:{label:t,detail:t,insertText:t,insertTextMode:p.asIs,insertTextFormat:c.PlainText,kind:n,documentation:{kind:"markdown",value:a}}}}async function $(e,n){let t=await e.loadSource(),{name:i}=e,a=e.getDescription(),r={label:i,detail:i,insertText:i,insertTextMode:p.asIs,insertTextFormat:c.PlainText,kind:n},o={name:i,description:a,type:"dictionary",properties:[],completion:r};if(!t)return o;let[s,l]=k(t.fields,a,!0);return o.properties=s,r.documentation={kind:"markdown",value:l},o}async function K(e,n){let t=await e.loadSource(),i=e.toProfileVariableDefinition();if(i.type!=="pixel")throw new Error("Incorrect definition passed to pixel variable");let{name:a}=e,r=e.getDescription(),o={label:a,detail:a,insertText:a,insertTextMode:p.asIs,insertTextFormat:c.PlainText,kind:n},s={name:a,description:r,type:"dictionary",properties:[],completion:o};if(!t||!i.definition)return s;let l=await E(t),[L,C]=P(l,r);return s.properties=L,o.documentation={kind:"markdown",value:C},s}async function _(e,n){let{name:t,dictionaryVariables:i}=e,a=e.getDescription(),r=i.reduce((o,s)=>{o!==""&&(o+=`
5
-
6
- `),o+=`**${s.name}**
7
- ${s.type}`;let l=s.getDescription();return l&&(o+=`
8
- ${l}`),o},a);return{name:t,description:a,type:"dictionary",properties:await V(i,f.Field),completion:{label:t,detail:t,insertText:t,insertTextMode:p.asIs,insertTextFormat:c.PlainText,kind:n,documentation:{kind:"markdown",value:r}}}}async function m(e="en"){let n=D.get(e);if(n)return n;if(!h.has(e))return await m("en");try{let t=await fetch(u(`./assets/arcade-language/profiles/arcade-profiles.t9n.${e}.json`));return t.ok?B(e,await t.json()):e==="en"?null:await m("en")}catch{return null}}var D=new Map;function B(e,n){let t=new Map;return n.forEach(i=>{t.set(i.id,i)}),D.set(e,t),t}async function q(e,n="en"){return(await m(n))?.get(e)??null}function z(e){return!!e&&typeof e=="object"&&"additionalVariables"in e&&Array.isArray(e.additionalVariables)}function G(e){return e?.map(b)}function b(e){switch(e.type){case"dictionary":return{...e,type:e.type,properties:G(e.properties)};case"array":return{...e,type:e.type,elementType:{type:"number",name:"number"}};default:return{...e,type:e.type}}}async function H(e,n="en"){if(!y(e))return;let t=await q(e.id,n);if(!t)return;let i={bundles:[...t.bundles],variables:[],hiddenApiItems:e.hiddenApiItems?.map(a=>a.toLowerCase())};return t.variables.forEach(a=>{if(e.disabledVariables?.includes(a.name))return;let r=e.definitions[a.name];switch(a.type){case"dictionary":return i.variables.push(b({...a,type:a.type,properties:Array.isArray(r)?[...r]:a.properties}));case"feature":return x(r)?i.variables.push({...a,type:"feature",definition:r}):void 0;case"pixel":return T(r)?i.variables.push({...a,type:a.type,definition:r}):void 0;case"voxel":return v(r)?i.variables.push({...a,type:a.type,definition:r}):void 0;case"featureSet":return M(r)?i.variables.push({...a,type:a.type,definition:r}):void 0;case"featureSetCollection":return F(r)?i.variables.push({...a,type:a.type,definition:r}):void 0;default:return i.variables.push(b(a))}}),z(e)&&i.variables.push(...e.additionalVariables??[]),i}var J=["catalog-footprint","catalog","csv","feature","geojson","knowledge-graph-sublayer","ogc-feature","oriented-imagery","subtype-group","subtype-sublayer","wfs"];function N(e){return!!e&&typeof e=="object"&&"type"in e&&typeof e.type=="string"&&J.includes(e.type)}var O={filterFsCollectionLayersFromMap:e=>N(e)},w=class extends I{constructor(){super("arcade",{apiPath:"./assets/arcade-language/api",apiPrefix:"arcade-api.t9n."})}async setProfileForModel(n,t,i={locale:"en"}){y(t)&&(t=await H(t,i.locale));let a=await g(i.locale,u("./assets/editor-profile/t9n"),"messages.");if(!a)throw new Error(`Failed to load the language bundle for ${i.locale}`);this.disposeForModel(n);let r=this._getApiKey(n),o=new A(t,a,i.locale,O);this._modelToProfileMap.set(r,o);let s=await j(o);this.updateApiContextForModel(n,{locale:i.locale,profile:s,snippets:i.snippets})}},d=new w,Z={setProfileForModel:d.setProfileForModel.bind(d),getApiLibraryForModel:d.getApiLibraryForModel.bind(d)};return d},"applications/Components/arcadeEditorUtils",a)
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.122 */
4
- import c from"./FMRHPBFR.js";import"./YU7EUPE6.js";import b from"./CJKTWGGK.js";import a from"./JYS5LGFT.js";import"./Q5T2KPL2.js";import"./M66XJTO2.js";import"./XAGEA3XO.js";import"./6ATXY4DQ.js";import"./3PS6M6VD.js";import"./EBUSMJOT.js";import"./LDJSETSD.js";import"./VSFXRIEN.js";import"./3JK722XX.js";import"./JHFPKEPM.js";import"./NAGF2Z2D.js";export default $arcgis.t(([,,{a:a,b:b,c:c}])=>{return{getSqlExprDiagnosticService:b,getSqlExprWorker:a,setupMode:c}},a,b,c)