@arcgis/coding-components 4.34.0-next.128 → 4.34.0-next.129

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 (96) hide show
  1. package/dist/addons.js +1 -1
  2. package/dist/cdn/{OGCX5NIT.js → 2JJBMAY2.js} +2 -2
  3. package/dist/cdn/{JLOGYGWN.js → 2TZ4WNB2.js} +2 -2
  4. package/dist/cdn/{AH5G2UUW.js → 2Y4QWUQ5.js} +2 -2
  5. package/dist/cdn/{F7KZ4J3M.js → 3BAPPI5A.js} +1 -1
  6. package/dist/cdn/{DN4MQ6DT.js → 3OTSLDGR.js} +2 -2
  7. package/dist/cdn/{PIG62Q36.js → 3VYPPYN2.js} +2 -2
  8. package/dist/cdn/{XNX2GS3A.js → 4XLQ3TIM.js} +2 -2
  9. package/dist/cdn/{AP2U5M7T.js → 5AAZTIQL.js} +2 -2
  10. package/dist/cdn/{E2HR7G72.js → 5JFZAWYW.js} +2 -2
  11. package/dist/cdn/{G2VPV7FH.js → 6MXMTSQB.js} +2 -2
  12. package/dist/cdn/{FMXI4GWW.js → 7VY4ZFTY.js} +2 -2
  13. package/dist/cdn/{JBEVFE6N.js → BT4ACDC4.js} +2 -2
  14. package/dist/cdn/DUHD2WEC.js +8 -0
  15. package/dist/cdn/{3X4QVHVH.js → EWJPI4K3.js} +2 -2
  16. package/dist/cdn/{CGZMEBUQ.js → FDYED5F2.js} +2 -2
  17. package/dist/cdn/{CVRIP3YF.js → FLSE56KS.js} +2 -2
  18. package/dist/cdn/{ATINCT6D.js → HEQUWZSF.js} +4 -4
  19. package/dist/cdn/{2D4XLNSC.js → HV2EUOMS.js} +2 -2
  20. package/dist/cdn/{4ARGYT7I.js → IEGREDGD.js} +2 -2
  21. package/dist/cdn/{TZB44K44.js → IEGVLDQY.js} +2 -2
  22. package/dist/cdn/{JEW6O26N.js → JM3TNAV2.js} +2 -2
  23. package/dist/cdn/{OI5IWVLN.js → JVIVTV57.js} +2 -2
  24. package/dist/cdn/{M6VF2DXU.js → JZL444LG.js} +2 -2
  25. package/dist/cdn/{3WLCQZAM.js → K2A3TUUC.js} +2 -2
  26. package/dist/cdn/{Z3XY2NFB.js → KYAO2ZUR.js} +1 -1
  27. package/dist/cdn/{TWSJPG3O.js → L4PG6X53.js} +2 -2
  28. package/dist/cdn/{LWXLWCAZ.js → L5G7YF5J.js} +2 -2
  29. package/dist/cdn/{SYJQ6XKG.js → LR63OZBB.js} +2 -2
  30. package/dist/cdn/LUROZOMB.js +14 -0
  31. package/dist/cdn/{NFQLRYAL.js → NFEER5QJ.js} +2 -2
  32. package/dist/cdn/{BXLATVVK.js → OEFBH3WB.js} +2 -2
  33. package/dist/cdn/{7LDSNUR5.js → OKKIHEDD.js} +2 -2
  34. package/dist/cdn/{FXZL7KS5.js → QESHZN4W.js} +2 -2
  35. package/dist/cdn/QGSWW3NM.js +4 -0
  36. package/dist/cdn/{EITZEBGN.js → QUT4VJRY.js} +1 -1
  37. package/dist/cdn/STHV2ZWY.js +4 -0
  38. package/dist/cdn/{6RCN5HYJ.js → SWMMEXIO.js} +1 -1
  39. package/dist/cdn/{RIPEMMAE.js → T3RBCTRD.js} +2 -2
  40. package/dist/cdn/{CZEK6RSP.js → U2OPLXBP.js} +2 -2
  41. package/dist/cdn/{GNFBKT3J.js → UCTN2Y42.js} +2 -2
  42. package/dist/cdn/{BOTANQTX.js → UDSJ3U6Q.js} +2 -2
  43. package/dist/cdn/{BSLV24BJ.js → UN2TOEHW.js} +1 -1
  44. package/dist/cdn/{WA55I5X3.js → WD27FFED.js} +1 -1
  45. package/dist/cdn/{J3STVK2I.js → YHHR4A3C.js} +2 -2
  46. package/dist/cdn/assets/code-editor/sql-expr.worker.js +8187 -8181
  47. package/dist/cdn/index.js +2 -2
  48. package/dist/chunks/arcade-defaults.js +138 -104
  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 +52 -11
  54. package/dist/chunks/language-defaults-base.js +378 -243
  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 +1 -1
  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.d.ts +0 -8
  65. package/dist/components/arcgis-arcade-coding-assistant/customElement.js +1 -1
  66. package/dist/components/arcgis-arcade-editor/customElement.d.ts +0 -71
  67. package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
  68. package/dist/components/arcgis-arcade-results/customElement.d.ts +0 -14
  69. package/dist/components/arcgis-arcade-results/customElement.js +1 -1
  70. package/dist/components/arcgis-arcade-suggestions/customElement.d.ts +0 -8
  71. package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
  72. package/dist/components/arcgis-code-editor/customElement.d.ts +0 -53
  73. package/dist/components/arcgis-code-editor/customElement.js +1 -1
  74. package/dist/components/arcgis-editor-variables/customElement.d.ts +0 -19
  75. package/dist/components/arcgis-editor-variables/customElement.js +1 -1
  76. package/dist/components/arcgis-language-api-panel/customElement.d.ts +0 -23
  77. package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
  78. package/dist/components/arcgis-sql-expression-editor/customElement.d.ts +0 -28
  79. package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
  80. package/dist/components/arcgis-sql-expression-fields/customElement.d.ts +0 -8
  81. package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
  82. package/dist/docs/api.json +2 -2
  83. package/dist/docs/docs.json +2 -2
  84. package/dist/docs/web-types.json +1 -1
  85. package/dist/index.js +1 -1
  86. package/dist/loader.js +1 -1
  87. package/dist/monacoStyles.js +1 -1
  88. package/dist/utils/fields.d.ts +8 -1
  89. package/dist/utils/profile/editor-profile.d.ts +30 -12
  90. package/dist/utils/profile/types.d.ts +28 -1
  91. package/dist/utils/profile/utils.d.ts +5 -1
  92. package/package.json +5 -5
  93. package/dist/cdn/A2QCR3TF.js +0 -10
  94. package/dist/cdn/DCS4WKNJ.js +0 -4
  95. package/dist/cdn/F3CZQSXF.js +0 -8
  96. package/dist/cdn/WOVEEI32.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.128 */
4
- import{C as i,o as e}from"./DN4MQ6DT.js";import"./WA55I5X3.js";import"./Z3XY2NFB.js";var r=e(i,{"arcgis-arcade-coding-assistant":[()=>import("./G2VPV7FH.js"),"appVersion,assistantsEnabled,closed,closePanel:,editorRef:,feedbackServiceUrl,helpBase,insertText:,layer,portalUrl,serviceUrl;destroy"],"arcgis-arcade-editor":[()=>import("./CZEK6RSP.js"),"arcadeAssistant:,customPanels:,editorInstance:,editorOptions:,hideDocumentationActions,hideSideBar,openedSidePanel:,profile:,script,sideActionBarExpanded,snippets:,suggestions:,testData:;getEditorInstance,getScript,getTestResult,setFocus"],"arcgis-arcade-results":[()=>import("./3X4QVHVH.js"),"consoleLogs:,loading,openedResultPanel,result:"],"arcgis-arcade-suggestions":[()=>import("./GNFBKT3J.js"),"closed,suggestions:"],"arcgis-code-editor":[()=>import("./AH5G2UUW.js"),"editorInstance:,editorOptions:,language,modelId:,value;getEditorInstance,getValue,insertSnippet,insertText,setFocus,setValue"],"arcgis-editor-variables":[()=>import("./JEW6O26N.js"),"closed,loading,modelId,variable:"],"arcgis-language-api-panel":[()=>import("./JBEVFE6N.js"),"apiLibrary:,closed,hideDocumentationActions,languageId,loading"],"arcgis-sql-expression-editor":[()=>import("./XNX2GS3A.js"),"hideSideBar,profile:,script"],"arcgis-sql-expression-fields":[()=>import("./FXZL7KS5.js"),"loading,modelId"]});r({resourcesUrl:import.meta.url});var o=new CSSStyleSheet();var ___=new CSSStyleSheet();___.replaceSync(`@layer{/*!-----------------------------------------------------------
3
+ v4.34.0-next.129 */
4
+ import{C as i,o as e}from"./3OTSLDGR.js";import"./WD27FFED.js";import"./KYAO2ZUR.js";var r=e(i,{"arcgis-arcade-coding-assistant":[()=>import("./6MXMTSQB.js"),"appVersion,assistantsEnabled,closed,closePanel:,editorRef:,feedbackServiceUrl,helpBase,insertText:,layer,portalUrl,serviceUrl;destroy"],"arcgis-arcade-editor":[()=>import("./U2OPLXBP.js"),"arcadeAssistant:,customPanels:,editorInstance:,editorOptions:,hideDocumentationActions,hideSideBar,openedSidePanel:,profile:,script,sideActionBarExpanded,snippets:,suggestions:,testData:;getEditorInstance,getScript,getTestResult,setFocus"],"arcgis-arcade-results":[()=>import("./EWJPI4K3.js"),"consoleLogs:,loading,openedResultPanel,result:"],"arcgis-arcade-suggestions":[()=>import("./UCTN2Y42.js"),"closed,suggestions:"],"arcgis-code-editor":[()=>import("./2Y4QWUQ5.js"),"editorInstance:,editorOptions:,language,modelId:,value;getEditorInstance,getValue,insertSnippet,insertText,setFocus,setValue"],"arcgis-editor-variables":[()=>import("./JM3TNAV2.js"),"closed,loading,modelId,variable:"],"arcgis-language-api-panel":[()=>import("./BT4ACDC4.js"),"apiLibrary:,closed,hideDocumentationActions,languageId,loading"],"arcgis-sql-expression-editor":[()=>import("./4XLQ3TIM.js"),"hideSideBar,profile:,script"],"arcgis-sql-expression-fields":[()=>import("./QESHZN4W.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
@@ -1,127 +1,158 @@
1
- import { i as y, c as P, a as T, d as b, f as A, L as x, E as D } from "./language-defaults-base.js";
2
- import { supportedLocales as F, fetchT9nStringsBundle as M } from "@arcgis/toolkit/intl";
3
- import { g as m } from "./runtime.js";
4
- import { CompletionItemKind as w, InsertTextFormat as f, InsertTextMode as d } from "vscode-languageserver-types";
1
+ import { i as m, c as x, a as D, d as b, e as A, g as M, f as S, m as v, L as F, E as L } from "./language-defaults-base.js";
2
+ import { supportedLocales as k, fetchT9nStringsBundle as E } from "@arcgis/toolkit/intl";
3
+ import { g as y } from "./runtime.js";
4
+ import { CompletionItemKind as w, InsertTextFormat as u, InsertTextMode as p } from "vscode-languageserver-types";
5
+ import { getDeclaredPixelMembers as I } from "@arcgis/core/applications/Components/arcadeEditorUtils.js";
5
6
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
6
7
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
7
- v4.34.0-next.128 */
8
- async function S(e) {
9
- const { apiVersion: i, bundles: t, hiddenApiItems: n } = e.toEditorProfileDefinition(), r = await h(e.dictionaryVariables);
10
- return { apiVersion: i, bundles: t, variables: r, hiddenApiItems: n?.map((s) => s.toLowerCase()) };
8
+ v4.34.0-next.129 */
9
+ async function C(e) {
10
+ const { apiVersion: r, bundles: t, hiddenApiItems: i } = e.toEditorProfileDefinition(), n = await h(e.dictionaryVariables);
11
+ return { apiVersion: r, bundles: t, variables: n, hiddenApiItems: i?.map((s) => s.toLowerCase()) };
11
12
  }
12
- async function h(e, i = w.Variable) {
13
+ async function h(e, r = w.Variable) {
13
14
  return await Promise.all(
14
15
  e.map(async (t) => {
15
16
  switch (t.type) {
16
17
  case "dictionary":
17
- return await v(t, i);
18
+ return await K(t, r);
19
+ case "pixel":
20
+ return await B(t, r);
21
+ // Voxel is equivalent to features in regards to the languageservice.
22
+ // They both have equivalent fields, but some voxel fields are different types (arrays)
23
+ // than what is reported in .fields, so in the sidebar we treat a bit differently.
24
+ // In autocomplete we don't differentiate types, so we can use the same logic as features.
25
+ case "voxel":
18
26
  case "feature":
19
- return await k(t, i);
27
+ return await j(t, r);
20
28
  default:
21
- return L(t, i);
29
+ return $(t, r);
22
30
  }
23
31
  })
24
32
  );
25
33
  }
26
- function L(e, i) {
27
- const { name: t, type: n } = e, r = e.getDescription();
34
+ function $(e, r) {
35
+ const { name: t, type: i } = e, n = e.getDescription();
28
36
  return {
29
37
  name: t,
30
- description: r,
31
- type: n,
38
+ description: n,
39
+ type: i,
32
40
  completion: {
33
41
  label: t,
34
42
  detail: t,
35
43
  insertText: t,
36
- insertTextMode: d.asIs,
37
- insertTextFormat: f.PlainText,
38
- kind: i,
39
- documentation: { kind: "markdown", value: r }
44
+ insertTextMode: p.asIs,
45
+ insertTextFormat: u.PlainText,
46
+ kind: r,
47
+ documentation: { kind: "markdown", value: n }
40
48
  }
41
49
  };
42
50
  }
43
- async function k(e, i) {
44
- const t = await e.loadSource(), { name: n } = e, r = e.getDescription(), s = {
51
+ async function j(e, r) {
52
+ const t = await e.loadSource(), { name: i } = e, n = e.getDescription(), s = {
53
+ label: i,
54
+ detail: i,
55
+ insertText: i,
56
+ insertTextMode: p.asIs,
57
+ insertTextFormat: u.PlainText,
58
+ kind: r
59
+ }, o = {
60
+ name: i,
61
+ description: n,
62
+ type: "dictionary",
63
+ properties: [],
64
+ completion: s
65
+ };
66
+ if (!t)
67
+ return o;
68
+ const [a, c] = S(t.fields, n, !0);
69
+ return o.properties = a, s.documentation = { kind: "markdown", value: c }, o;
70
+ }
71
+ async function B(e, r) {
72
+ const t = await e.loadSource(), i = e.toProfileVariableDefinition();
73
+ if (i.type !== "pixel")
74
+ throw new Error("Incorrect definition passed to pixel variable");
75
+ const { name: n } = e, s = e.getDescription(), o = {
45
76
  label: n,
46
77
  detail: n,
47
78
  insertText: n,
48
- insertTextMode: d.asIs,
49
- insertTextFormat: f.PlainText,
50
- kind: i
79
+ insertTextMode: p.asIs,
80
+ insertTextFormat: u.PlainText,
81
+ kind: r
51
82
  }, a = {
52
83
  name: n,
53
- description: r,
84
+ description: s,
54
85
  type: "dictionary",
55
86
  properties: [],
56
- completion: s
87
+ completion: o
57
88
  };
58
- if (!t)
89
+ if (!t || !i.definition)
59
90
  return a;
60
- const [o, c] = A(t.fields, r, !0);
61
- return a.properties = o, s.documentation = { kind: "markdown", value: c }, a;
91
+ const c = await I(t), [g, P] = v(c, s);
92
+ return a.properties = g, o.documentation = { kind: "markdown", value: P }, a;
62
93
  }
63
- async function v(e, i) {
64
- const { name: t, dictionaryVariables: n } = e, r = e.getDescription(), s = n.reduce((a, o) => {
65
- a !== "" && (a += `
94
+ async function K(e, r) {
95
+ const { name: t, dictionaryVariables: i } = e, n = e.getDescription(), s = i.reduce((o, a) => {
96
+ o !== "" && (o += `
66
97
 
67
- `), a += `**${o.name}**
68
- ${o.type}`;
69
- const c = o.getDescription();
70
- return c && (a += `
71
- ${c}`), a;
72
- }, r);
98
+ `), o += `**${a.name}**
99
+ ${a.type}`;
100
+ const c = a.getDescription();
101
+ return c && (o += `
102
+ ${c}`), o;
103
+ }, n);
73
104
  return {
74
105
  name: t,
75
- description: r,
106
+ description: n,
76
107
  type: "dictionary",
77
- properties: await h(n, w.Field),
108
+ properties: await h(i, w.Field),
78
109
  completion: {
79
110
  label: t,
80
111
  detail: t,
81
112
  insertText: t,
82
- insertTextMode: d.asIs,
83
- insertTextFormat: f.PlainText,
84
- kind: i,
113
+ insertTextMode: p.asIs,
114
+ insertTextFormat: u.PlainText,
115
+ kind: r,
85
116
  documentation: { kind: "markdown", value: s }
86
117
  }
87
118
  };
88
119
  }
89
- async function l(e = "en") {
90
- const i = g.get(e);
91
- if (i)
92
- return i;
93
- if (!F.has(e))
94
- return await l("en");
120
+ async function f(e = "en") {
121
+ const r = T.get(e);
122
+ if (r)
123
+ return r;
124
+ if (!k.has(e))
125
+ return await f("en");
95
126
  try {
96
- const t = await fetch(m(`./assets/arcade-language/profiles/arcade-profiles.t9n.${e}.json`));
97
- return t.ok ? E(e, await t.json()) : e === "en" ? null : await l("en");
127
+ const t = await fetch(y(`./assets/arcade-language/profiles/arcade-profiles.t9n.${e}.json`));
128
+ return t.ok ? _(e, await t.json()) : e === "en" ? null : await f("en");
98
129
  } catch {
99
130
  return null;
100
131
  }
101
132
  }
102
- const g = /* @__PURE__ */ new Map();
103
- function E(e, i) {
133
+ const T = /* @__PURE__ */ new Map();
134
+ function _(e, r) {
104
135
  const t = /* @__PURE__ */ new Map();
105
- return i.forEach((n) => {
106
- t.set(n.id, n);
107
- }), g.set(e, t), t;
136
+ return r.forEach((i) => {
137
+ t.set(i.id, i);
138
+ }), T.set(e, t), t;
108
139
  }
109
- async function I(e, i = "en") {
110
- return (await l(i))?.get(e) ?? null;
140
+ async function q(e, r = "en") {
141
+ return (await f(r))?.get(e) ?? null;
111
142
  }
112
- function $(e) {
143
+ function z(e) {
113
144
  return !!e && typeof e == "object" && "additionalVariables" in e && Array.isArray(e.additionalVariables);
114
145
  }
115
- function C(e) {
116
- return e?.map(p);
146
+ function G(e) {
147
+ return e?.map(d);
117
148
  }
118
- function p(e) {
149
+ function d(e) {
119
150
  switch (e.type) {
120
151
  case "dictionary":
121
152
  return {
122
153
  ...e,
123
154
  type: e.type,
124
- properties: C(e.properties)
155
+ properties: G(e.properties)
125
156
  };
126
157
  case "array":
127
158
  return {
@@ -133,43 +164,46 @@ function p(e) {
133
164
  return { ...e, type: e.type };
134
165
  }
135
166
  }
136
- async function j(e, i = "en") {
137
- if (!y(e))
167
+ async function H(e, r = "en") {
168
+ if (!m(e))
138
169
  return;
139
- const t = await I(e.id, i);
170
+ const t = await q(e.id, r);
140
171
  if (!t)
141
172
  return;
142
- const n = {
173
+ const i = {
143
174
  bundles: [...t.bundles],
144
175
  variables: [],
145
- hiddenApiItems: e.hiddenApiItems?.map((r) => r.toLowerCase())
176
+ hiddenApiItems: e.hiddenApiItems?.map((n) => n.toLowerCase())
146
177
  };
147
- return t.variables.forEach((r) => {
148
- if (e.disabledVariables?.includes(r.name))
178
+ return t.variables.forEach((n) => {
179
+ if (e.disabledVariables?.includes(n.name))
149
180
  return;
150
- const s = e.definitions[r.name];
151
- switch (r.type) {
181
+ const s = e.definitions[n.name];
182
+ switch (n.type) {
152
183
  case "dictionary":
153
- return n.variables.push(
154
- p({
155
- ...r,
156
- type: r.type,
157
- properties: Array.isArray(s) ? [...s] : r.properties
184
+ return i.variables.push(
185
+ d({
186
+ ...n,
187
+ type: n.type,
188
+ properties: Array.isArray(s) ? [...s] : n.properties
158
189
  })
159
190
  );
160
191
  case "feature":
192
+ return M(s) ? i.variables.push({ ...n, type: "feature", definition: s }) : void 0;
193
+ case "pixel":
194
+ return A(s) ? i.variables.push({ ...n, type: n.type, definition: s }) : void 0;
161
195
  case "voxel":
162
- return b(s) ? n.variables.push({ ...r, type: "feature", definition: s }) : void 0;
196
+ return b(s) ? i.variables.push({ ...n, type: n.type, definition: s }) : void 0;
163
197
  case "featureSet":
164
- return T(s) ? n.variables.push({ ...r, type: r.type, definition: s }) : void 0;
198
+ return D(s) ? i.variables.push({ ...n, type: n.type, definition: s }) : void 0;
165
199
  case "featureSetCollection":
166
- return P(s) ? n.variables.push({ ...r, type: r.type, definition: s }) : void 0;
200
+ return x(s) ? i.variables.push({ ...n, type: n.type, definition: s }) : void 0;
167
201
  default:
168
- return n.variables.push(p(r));
202
+ return i.variables.push(d(n));
169
203
  }
170
- }), $(e) && n.variables.push(...e.additionalVariables ?? []), n;
204
+ }), z(e) && i.variables.push(...e.additionalVariables ?? []), i;
171
205
  }
172
- class B extends x {
206
+ class J extends F {
173
207
  constructor() {
174
208
  super("arcade", {
175
209
  apiPath: "./assets/arcade-language/api",
@@ -186,31 +220,31 @@ class B extends x {
186
220
  * @param locale The locale to use for the model context.
187
221
  * @returns The EditorProfile for the model.
188
222
  */
189
- async setProfileForModel(i, t, n = { locale: "en" }) {
190
- y(t) && (t = await j(t, n.locale));
191
- const r = await M(
192
- n.locale,
193
- m("./assets/editor-profile/t9n"),
223
+ async setProfileForModel(r, t, i = { locale: "en" }) {
224
+ m(t) && (t = await H(t, i.locale));
225
+ const n = await E(
226
+ i.locale,
227
+ y("./assets/editor-profile/t9n"),
194
228
  "messages."
195
229
  );
196
- if (!r)
197
- throw new Error(`Failed to load the language bundle for ${n.locale}`);
198
- this.disposeForModel(i);
199
- const s = this._getApiKey(i), a = new D(t, r);
200
- this._modelToProfileMap.set(s, a);
201
- const o = await S(a);
202
- this.updateApiContextForModel(i, {
203
- locale: n.locale,
204
- profile: o,
205
- snippets: n.snippets
230
+ if (!n)
231
+ throw new Error(`Failed to load the language bundle for ${i.locale}`);
232
+ this.disposeForModel(r);
233
+ const s = this._getApiKey(r), o = new L(t, n);
234
+ this._modelToProfileMap.set(s, o);
235
+ const a = await C(o);
236
+ this.updateApiContextForModel(r, {
237
+ locale: i.locale,
238
+ profile: a,
239
+ snippets: i.snippets
206
240
  });
207
241
  }
208
242
  }
209
- const u = new B(), G = {
210
- setProfileForModel: u.setProfileForModel.bind(u),
211
- getApiLibraryForModel: u.getApiLibraryForModel.bind(u)
243
+ const l = new J(), W = {
244
+ setProfileForModel: l.setProfileForModel.bind(l),
245
+ getApiLibraryForModel: l.getApiLibraryForModel.bind(l)
212
246
  };
213
247
  export {
214
- G as a,
215
- u as b
248
+ W as a,
249
+ l as b
216
250
  };
@@ -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.128 */
4
+ v4.34.0-next.129 */
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.128 */
12
+ v4.34.0-next.129 */
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.128 */
3
+ v4.34.0-next.129 */
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.128 */
4
+ v4.34.0-next.129 */
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,7 +1,8 @@
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.128 */
4
- function t(e) {
3
+ v4.34.0-next.129 */
4
+ const n = "cube";
5
+ function u(e, t) {
5
6
  switch (e.type) {
6
7
  case "oid":
7
8
  return "key";
@@ -16,6 +17,10 @@ function t(e) {
16
17
  case "guid":
17
18
  return "key";
18
19
  case "string":
20
+ if (t?.some((a) => a.name === e.name && a.type === "array")) {
21
+ const a = t?.find((c) => c.name === e.name);
22
+ return a && r(a) && r(a) ? s(a.elementType.type) : "double-float-set";
23
+ }
19
24
  return "string";
20
25
  case "date":
21
26
  return "date-time";
@@ -29,7 +34,25 @@ function t(e) {
29
34
  return "cube";
30
35
  }
31
36
  }
32
- function s(e) {
37
+ function i(e) {
38
+ switch (e.type) {
39
+ case "number":
40
+ return "number";
41
+ case "text":
42
+ return "string";
43
+ case "array":
44
+ return r(e) ? s(e.elementType.type) : n;
45
+ case "date":
46
+ return "date-time";
47
+ case "dateOnly":
48
+ return "calendar";
49
+ case "time":
50
+ return "clock";
51
+ default:
52
+ return n;
53
+ }
54
+ }
55
+ function l(e) {
33
56
  switch (e.type) {
34
57
  case "small-integer":
35
58
  case "integer":
@@ -53,9 +76,9 @@ function s(e) {
53
76
  return "text";
54
77
  }
55
78
  }
56
- function n(e) {
57
- return (e ?? []).filter((a) => {
58
- switch (a.type) {
79
+ function o(e) {
80
+ return (e ?? []).filter((t) => {
81
+ switch (t.type) {
59
82
  case "string":
60
83
  case "small-integer":
61
84
  case "integer":
@@ -76,12 +99,30 @@ function n(e) {
76
99
  }
77
100
  });
78
101
  }
79
- function r(e) {
102
+ function d(e) {
80
103
  return e.alias || e.name;
81
104
  }
105
+ function r(e) {
106
+ if (typeof e == "object" && e !== null && "elementType" in e) {
107
+ const t = e.elementType;
108
+ return typeof t == "object" && t !== null && "type" in t && typeof t.type == "string";
109
+ }
110
+ return !1;
111
+ }
112
+ function s(e) {
113
+ switch (e) {
114
+ case "text":
115
+ return "string-set";
116
+ case "number":
117
+ return "double-float-set";
118
+ default:
119
+ return n;
120
+ }
121
+ }
82
122
  export {
83
- r as a,
84
- s as b,
85
- t as f,
86
- n as s
123
+ d as a,
124
+ l as b,
125
+ u as f,
126
+ i as m,
127
+ o as s
87
128
  };