@arcgis/coding-components 4.30.0-next.53 → 4.30.0-next.55

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 (78) hide show
  1. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  2. package/dist/arcgis-coding-components/index.esm.js +2 -2
  3. package/dist/arcgis-coding-components/{p-2694d8a3.js → p-066e92d1.js} +3 -3
  4. package/dist/arcgis-coding-components/{p-beb2f723.js → p-2693971c.js} +3 -3
  5. package/dist/arcgis-coding-components/{p-223fbe86.js → p-45285796.js} +2 -2
  6. package/dist/arcgis-coding-components/{p-d3506b60.js → p-62e19edf.js} +10 -10
  7. package/dist/arcgis-coding-components/{p-50faa900.js → p-a21af5c2.js} +2 -2
  8. package/dist/arcgis-coding-components/{p-8dfefa05.js → p-a8972f3a.js} +2 -2
  9. package/dist/arcgis-coding-components/{p-cb3bac9e.js → p-adfb0c22.js} +2 -2
  10. package/dist/arcgis-coding-components/{p-c8c907bf.js → p-b1c78178.js} +1 -1
  11. package/dist/arcgis-coding-components/{p-ac96528d.js → p-c6259119.js} +2 -2
  12. package/dist/arcgis-coding-components/p-cd33d331.entry.js +6 -0
  13. package/dist/arcgis-coding-components/{p-bcc7c6e7.js → p-db6e20a4.js} +2 -2
  14. package/dist/arcgis-coding-components/{p-712c4f1a.js → p-fb0c5ed3.js} +1 -1
  15. package/dist/cjs/{arcade-defaults-86f87dbf.js → arcade-defaults-2f99ffac.js} +80 -52
  16. package/dist/cjs/{arcade-mode-2f573fc7.js → arcade-mode-612116aa.js} +3 -3
  17. package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +71 -283
  18. package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
  19. package/dist/cjs/{css-c43c1312.js → css-aae58255.js} +1 -1
  20. package/dist/cjs/{cssMode-68f945ef.js → cssMode-019cdd12.js} +3 -3
  21. package/dist/cjs/{html-ad32caf5.js → html-2cd89214.js} +3 -3
  22. package/dist/cjs/{htmlMode-34c3af71.js → htmlMode-6ff065ce.js} +3 -3
  23. package/dist/cjs/{index-9680417b.js → index-7fe043a0.js} +1 -1
  24. package/dist/cjs/index.cjs.js +3 -3
  25. package/dist/cjs/{javascript-3af71f33.js → javascript-f3173b53.js} +4 -4
  26. package/dist/cjs/{jsonMode-785845b1.js → jsonMode-d07cd24b.js} +3 -3
  27. package/dist/cjs/loader.cjs.js +3 -3
  28. package/dist/cjs/{tsMode-6d89ee5c.js → tsMode-df87047f.js} +3 -3
  29. package/dist/cjs/{typescript-db79e227.js → typescript-f555be78.js} +3 -3
  30. package/dist/components/arcade-api.js +3 -3
  31. package/dist/components/arcade-contribution.js +2 -2
  32. package/dist/components/arcade-defaults.js +17 -43
  33. package/dist/components/arcade-mode.js +2 -2
  34. package/dist/components/arcade-results.js +2 -2
  35. package/dist/components/arcade-suggestions.js +3 -3
  36. package/dist/components/arcade-variables.js +3 -3
  37. package/dist/components/arcgis-arcade-api.js +1 -1
  38. package/dist/components/arcgis-arcade-editor.js +6 -8
  39. package/dist/components/arcgis-arcade-results.js +1 -1
  40. package/dist/components/arcgis-arcade-suggestions.js +1 -1
  41. package/dist/components/arcgis-arcade-variables.js +1 -1
  42. package/dist/components/arcgis-assets.d.ts +1 -1
  43. package/dist/components/arcgis-assets.js +1 -1
  44. package/dist/components/arcgis-code-editor.js +1 -1
  45. package/dist/components/{chunk-JHYFFIV3.js → chunk-A2KF2X73.js} +23 -226
  46. package/dist/components/code-editor.js +11 -15
  47. package/dist/components/fields.js +1 -1
  48. package/dist/components/index.js +1 -1
  49. package/dist/components/index2.js +51 -2
  50. package/dist/components/markdown.js +1 -1
  51. package/dist/components/useT9n.js +3 -3
  52. package/dist/components/utilities.js +1 -1
  53. package/dist/esm/{arcade-defaults-b38398b2.js → arcade-defaults-ab5e3060.js} +76 -53
  54. package/dist/esm/{arcade-mode-c69f900a.js → arcade-mode-a0624c39.js} +3 -3
  55. package/dist/esm/arcgis-arcade-api_6.entry.js +39 -251
  56. package/dist/esm/arcgis-coding-components.js +4 -4
  57. package/dist/esm/{css-d7e57264.js → css-e69d53db.js} +1 -1
  58. package/dist/esm/{cssMode-f3b67cc6.js → cssMode-b25ace38.js} +3 -3
  59. package/dist/esm/{html-5dde7d7f.js → html-c28124e4.js} +3 -3
  60. package/dist/esm/{htmlMode-7d0e5cb0.js → htmlMode-3d23403f.js} +3 -3
  61. package/dist/esm/{index-119ec33b.js → index-2d3020e1.js} +1 -1
  62. package/dist/esm/index.js +3 -3
  63. package/dist/esm/{javascript-7c2c7fa3.js → javascript-85f127db.js} +4 -4
  64. package/dist/esm/{jsonMode-a83c8152.js → jsonMode-37a1f491.js} +3 -3
  65. package/dist/esm/loader.js +4 -4
  66. package/dist/esm/{tsMode-b72fe3be.js → tsMode-e3a12729.js} +3 -3
  67. package/dist/esm/{typescript-a3e7b53d.js → typescript-adcf24e9.js} +3 -3
  68. package/dist/loader/cdn.js +1 -1
  69. package/dist/loader/index.cjs.js +1 -1
  70. package/dist/loader/index.es2017.js +1 -1
  71. package/dist/loader/index.js +1 -1
  72. package/dist/types/components/arcade-editor/arcade-editor.d.ts +0 -1
  73. package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/arcade-editor/arcade-editor.stories.d.ts +2 -9
  74. package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/arcade-editor/editorContext.d.ts +11 -0
  75. package/dist/types/utils/profile/types.d.ts +13 -11
  76. package/dist/types/utils/profile/utils.d.ts +0 -2
  77. package/package.json +11 -11
  78. package/dist/arcgis-coding-components/p-f5e4e643.entry.js +0 -6
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.53
4
+ * v4.30.0-next.55
5
5
  */
6
6
  // src/array-utils.ts
7
7
 
@@ -104,6 +104,10 @@ function getElementTheme(base) {
104
104
  const themeElt = closestElement(base, ":is(.calcite-mode-light, .calcite-mode-dark)");
105
105
  return themeElt && themeElt.classList.contains("calcite-mode-dark") ? "dark" : "light";
106
106
  }
107
+ function getElementAttribute(el, prop, fallbackValue) {
108
+ const closest = closestElement(el, `[${prop}]`);
109
+ return closest?.getAttribute(prop) ?? fallbackValue;
110
+ }
107
111
  function isElement(ref) {
108
112
  return ref.nodeType === Node.ELEMENT_NODE;
109
113
  }
@@ -153,6 +157,25 @@ function setFocusOnElement(ref, selector) {
153
157
  });
154
158
  }
155
159
 
160
+ // src/errors.ts
161
+ function safeCall(callback, thisContext, ...rest) {
162
+ try {
163
+ return callback?.call(thisContext, ...rest);
164
+ } catch (error) {
165
+ console.error(error, callback);
166
+ }
167
+ return void 0;
168
+ }
169
+ async function safeAsyncCall(callback, thisContext, ...rest) {
170
+ try {
171
+ const result = callback?.call(thisContext, ...rest);
172
+ return result instanceof Promise ? await result : result;
173
+ } catch (error) {
174
+ console.error(error, callback);
175
+ }
176
+ return void 0;
177
+ }
178
+
156
179
  // src/guid.ts
157
180
  function gen(count) {
158
181
  let out = "";
@@ -164,6 +187,7 @@ function gen(count) {
164
187
  function generateGuid() {
165
188
  return [gen(2), gen(1), gen(1), gen(1), gen(3)].join("-");
166
189
  }
190
+ var camelToKebab = (string) => string.replace(upperBeforeLower, (upper, remainder) => `${remainder === 0 ? "" : "-"}${upper.toLowerCase()}`);
167
191
  var upperBeforeLower = /[A-Z]+(?![a-z])|[A-Z]/gu;
168
192
  var capitalize = (string) => string.charAt(0).toUpperCase() + string.slice(1);
169
193
  var camelToHuman = (string) => capitalize(string.replace(upperBeforeLower, (upper, remainder) => `${remainder === 0 ? "" : " "}${upper}`));
@@ -239,6 +263,31 @@ var fallbackBundle = new Proxy(
239
263
  get: (_target, property) => camelToHuman(property.toString())
240
264
  }
241
265
  );
266
+ function getElementLocales(element) {
267
+ const lang = getElementAttribute(element, "lang", navigator.language || defaultLocale);
268
+ if (supportedLocales.has(lang)) {
269
+ return { lang, t9nLocale: lang };
270
+ }
271
+ const rootCode = lang.slice(0, 2);
272
+ return { lang, t9nLocale: supportedLocales.has(rootCode) ? rootCode : defaultLocale };
273
+ }
274
+ function startLocaleObserver(element, assetsPath, onUpdated, assetName) {
275
+ let result = void 0;
276
+ const callback = () => void updateComponentLocateState(element, assetsPath, assetName).then((newResult) => {
277
+ if (result?.lang !== newResult.lang || result.t9nLocale !== newResult.t9nLocale || result.t9nStrings !== newResult.t9nStrings)
278
+ onUpdated(newResult);
279
+ result = newResult;
280
+ }).catch(console.error);
281
+ callback();
282
+ return observeAncestorsMutation(element, ["lang"], callback);
283
+ }
284
+ async function updateComponentLocateState(element, assetsPath, assetName = element.tagName.toLowerCase().replace("arcgis-", "")) {
285
+ const { lang, t9nLocale } = getElementLocales(element);
286
+ const t9nAssetsPath = `${assetsPath}/${assetName}/t9n`;
287
+ const prefix = `${assetName}.t9n.`;
288
+ const t9nStrings = await fetchT9NStringsBundle(t9nLocale, t9nAssetsPath, prefix);
289
+ return { lang, t9nLocale, t9nStrings };
290
+ }
242
291
 
243
292
  // src/strings.ts
244
293
  var doubleQuote = '"';
@@ -325,4 +374,4 @@ function isURL(url) {
325
374
  }
326
375
  }
327
376
 
328
- export { Deferred as D, isNotUndefined as a, addLTRMark as b, supportedLocales as c, createFilterExpression as d, setFocusOnElement as e, fetchT9NStringsBundle as f, isURL as g, hasSameOrigin as h, isNotNull as i, generateGuid as j, getElementTheme as k, debounce as l, observeAncestorsMutation as o, quoteString as q, setValuesInString as s };
377
+ export { Deferred as D, isNotUndefined as a, addLTRMark as b, supportedLocales as c, createFilterExpression as d, setFocusOnElement as e, fetchT9NStringsBundle as f, camelToKebab as g, safeCall as h, isNotNull as i, safeAsyncCall as j, isURL as k, hasSameOrigin as l, startLocaleObserver as m, getElementLocales as n, generateGuid as o, getElementTheme as p, quoteString as q, observeAncestorsMutation as r, setValuesInString as s, debounce as t };
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.53
4
+ * v4.30.0-next.55
5
5
  */
6
6
  import { editor } from 'monaco-editor';
7
7
  import { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
@@ -1,12 +1,12 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.53
4
+ * v4.30.0-next.55
5
5
  */
6
- import { m as makeController, s as startLocaleObserver, g as getElementLocales } from './chunk-JHYFFIV3.js';
6
+ import { m as makeController } from './chunk-A2KF2X73.js';
7
+ import { m as startLocaleObserver, n as getElementLocales } from './index2.js';
7
8
  import { getArcgisAssetPath as getAssetPath } from "./arcgis-assets.js";
8
9
 
9
- // src/useT9n.ts
10
10
  var makeT9nController = (getAssetPath) => ({ blocking = false, name } = {}) => (
11
11
  // eslint-disable-next-line @typescript-eslint/promise-function-async
12
12
  makeController((component, controller) => {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.53
4
+ * v4.30.0-next.55
5
5
  */
6
6
  import { d as createFilterExpression } from './index2.js';
7
7
 
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.53
4
+ * v4.30.0-next.55
5
5
  */
6
- import { g as getAssetPath } from './index-119ec33b.js';
6
+ import { g as getAssetPath } from './index-2d3020e1.js';
7
7
 
8
8
  /**
9
9
  * Returns the last element of an array.
@@ -120522,7 +120522,7 @@ registerLanguage({
120522
120522
  mimetypes: ["text/css"],
120523
120523
  loader: () => {
120524
120524
  {
120525
- return import('./css-d7e57264.js');
120525
+ return import('./css-e69d53db.js');
120526
120526
  }
120527
120527
  }
120528
120528
  });
@@ -120540,7 +120540,7 @@ registerLanguage({
120540
120540
  mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
120541
120541
  loader: () => {
120542
120542
  {
120543
- return import('./html-5dde7d7f.js');
120543
+ return import('./html-c28124e4.js');
120544
120544
  }
120545
120545
  }
120546
120546
  });
@@ -120560,7 +120560,7 @@ registerLanguage({
120560
120560
  mimetypes: ["text/javascript"],
120561
120561
  loader: () => {
120562
120562
  {
120563
- return import('./javascript-7c2c7fa3.js');
120563
+ return import('./javascript-85f127db.js');
120564
120564
  }
120565
120565
  }
120566
120566
  });
@@ -120578,7 +120578,7 @@ registerLanguage({
120578
120578
  mimetypes: ["text/typescript"],
120579
120579
  loader: () => {
120580
120580
  {
120581
- return import('./typescript-a3e7b53d.js');
120581
+ return import('./typescript-adcf24e9.js');
120582
120582
  }
120583
120583
  }
120584
120584
  });
@@ -120699,7 +120699,7 @@ var lessDefaults = new LanguageServiceDefaultsImpl$3("less", optionsDefault$1, m
120699
120699
  monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
120700
120700
  function getMode$3() {
120701
120701
  {
120702
- return import('./cssMode-f3b67cc6.js');
120702
+ return import('./cssMode-b25ace38.js');
120703
120703
  }
120704
120704
  }
120705
120705
  monaco_editor_core_exports$3.languages.onLanguage("less", () => {
@@ -120824,7 +120824,7 @@ monaco_editor_core_exports$2.languages.html = {
120824
120824
  };
120825
120825
  function getMode$2() {
120826
120826
  {
120827
- return import('./htmlMode-7d0e5cb0.js');
120827
+ return import('./htmlMode-3d23403f.js');
120828
120828
  }
120829
120829
  }
120830
120830
  function registerHTMLLanguageService(languageId, options = optionsDefault, modeConfiguration = getConfigurationDefault(languageId)) {
@@ -120926,7 +120926,7 @@ var jsonDefaults = new LanguageServiceDefaultsImpl$1("json", diagnosticDefault,
120926
120926
  monaco_editor_core_exports$1.languages.json = { jsonDefaults };
120927
120927
  function getMode$1() {
120928
120928
  {
120929
- return import('./jsonMode-a83c8152.js');
120929
+ return import('./jsonMode-37a1f491.js');
120930
120930
  }
120931
120931
  }
120932
120932
  monaco_editor_core_exports$1.languages.register({
@@ -121195,7 +121195,7 @@ monaco_editor_core_exports.languages.typescript = {
121195
121195
  };
121196
121196
  function getMode() {
121197
121197
  {
121198
- return import('./tsMode-b72fe3be.js');
121198
+ return import('./tsMode-e3a12729.js');
121199
121199
  }
121200
121200
  }
121201
121201
  monaco_editor_core_exports.languages.onLanguage("typescript", () => {
@@ -168993,20 +168993,6 @@ async function newFeatureLayer(definition) {
168993
168993
  }
168994
168994
  //#endregion
168995
168995
  //#region Type Guards
168996
- function isSupportedLayerInstance(item) {
168997
- return (!!item &&
168998
- typeof item === "object" &&
168999
- "declaredClass" in item &&
169000
- typeof item.declaredClass === "string" &&
169001
- item.declaredClass.startsWith("esri.layers."));
169002
- }
169003
- function isFeatureSetInstance(item) {
169004
- return (!!item &&
169005
- typeof item === "object" &&
169006
- "declaredClass" in item &&
169007
- typeof item.declaredClass === "string" &&
169008
- item.declaredClass === "esri.rest.support.FeatureSet");
169009
- }
169010
168996
  function isQueryableLayerInstance(item) {
169011
168997
  return (!!item &&
169012
168998
  typeof item === "object" &&
@@ -169056,10 +169042,10 @@ function isFeatureLayerItemDefinition(item) {
169056
169042
  return !!item && typeof item === "object" && "portalItem" in item && item.portalItem != null;
169057
169043
  }
169058
169044
  function isFieldsDefinition(item) {
169059
- return (!!item && typeof item === "object" && "fields" in item && Array.isArray(item.fields) && !("declaredClass" in item));
169045
+ return !!item && typeof item === "object" && "fields" in item && Array.isArray(item.fields);
169060
169046
  }
169061
169047
  function isUrlDefinition(item) {
169062
- return (!!item && typeof item === "object" && "url" in item && typeof item.url === "string" && !("declaredClass" in item));
169048
+ return !!item && typeof item === "object" && "url" in item && typeof item.url === "string";
169063
169049
  }
169064
169050
  function isSubtypeInstance(item) {
169065
169051
  return (!!item &&
@@ -169129,7 +169115,7 @@ async function supportedSourceFromDefinition(definition) {
169129
169115
  return null;
169130
169116
  }
169131
169117
  let source = null;
169132
- if (isSupportedLayerInstance(definition) || isFeatureSetInstance(definition) || isFieldsDefinition(definition)) {
169118
+ if (isFieldsDefinition(definition)) {
169133
169119
  source = definition;
169134
169120
  }
169135
169121
  else {
@@ -169275,6 +169261,10 @@ function getElementTheme(base) {
169275
169261
  const themeElt = closestElement(base, ":is(.calcite-mode-light, .calcite-mode-dark)");
169276
169262
  return themeElt && themeElt.classList.contains("calcite-mode-dark") ? "dark" : "light";
169277
169263
  }
169264
+ function getElementAttribute(el, prop, fallbackValue) {
169265
+ const closest = closestElement(el, `[${prop}]`);
169266
+ return closest?.getAttribute(prop) ?? fallbackValue;
169267
+ }
169278
169268
  function isElement(ref) {
169279
169269
  return ref.nodeType === Node.ELEMENT_NODE;
169280
169270
  }
@@ -169324,6 +169314,25 @@ function setFocusOnElement(ref, selector) {
169324
169314
  });
169325
169315
  }
169326
169316
 
169317
+ // src/errors.ts
169318
+ function safeCall(callback, thisContext, ...rest) {
169319
+ try {
169320
+ return callback?.call(thisContext, ...rest);
169321
+ } catch (error) {
169322
+ console.error(error, callback);
169323
+ }
169324
+ return void 0;
169325
+ }
169326
+ async function safeAsyncCall(callback, thisContext, ...rest) {
169327
+ try {
169328
+ const result = callback?.call(thisContext, ...rest);
169329
+ return result instanceof Promise ? await result : result;
169330
+ } catch (error) {
169331
+ console.error(error, callback);
169332
+ }
169333
+ return void 0;
169334
+ }
169335
+
169327
169336
  // src/guid.ts
169328
169337
  function gen(count) {
169329
169338
  let out = "";
@@ -169335,6 +169344,7 @@ function gen(count) {
169335
169344
  function generateGuid() {
169336
169345
  return [gen(2), gen(1), gen(1), gen(1), gen(3)].join("-");
169337
169346
  }
169347
+ var camelToKebab = (string) => string.replace(upperBeforeLower, (upper, remainder) => `${remainder === 0 ? "" : "-"}${upper.toLowerCase()}`);
169338
169348
  var upperBeforeLower = /[A-Z]+(?![a-z])|[A-Z]/gu;
169339
169349
  var capitalize = (string) => string.charAt(0).toUpperCase() + string.slice(1);
169340
169350
  var camelToHuman = (string) => capitalize(string.replace(upperBeforeLower, (upper, remainder) => `${remainder === 0 ? "" : " "}${upper}`));
@@ -169410,6 +169420,31 @@ var fallbackBundle = new Proxy(
169410
169420
  get: (_target, property) => camelToHuman(property.toString())
169411
169421
  }
169412
169422
  );
169423
+ function getElementLocales(element) {
169424
+ const lang = getElementAttribute(element, "lang", navigator.language || defaultLocale);
169425
+ if (supportedLocales.has(lang)) {
169426
+ return { lang, t9nLocale: lang };
169427
+ }
169428
+ const rootCode = lang.slice(0, 2);
169429
+ return { lang, t9nLocale: supportedLocales.has(rootCode) ? rootCode : defaultLocale };
169430
+ }
169431
+ function startLocaleObserver(element, assetsPath, onUpdated, assetName) {
169432
+ let result = void 0;
169433
+ const callback = () => void updateComponentLocateState(element, assetsPath, assetName).then((newResult) => {
169434
+ if (result?.lang !== newResult.lang || result.t9nLocale !== newResult.t9nLocale || result.t9nStrings !== newResult.t9nStrings)
169435
+ onUpdated(newResult);
169436
+ result = newResult;
169437
+ }).catch(console.error);
169438
+ callback();
169439
+ return observeAncestorsMutation(element, ["lang"], callback);
169440
+ }
169441
+ async function updateComponentLocateState(element, assetsPath, assetName = element.tagName.toLowerCase().replace("arcgis-", "")) {
169442
+ const { lang, t9nLocale } = getElementLocales(element);
169443
+ const t9nAssetsPath = `${assetsPath}/${assetName}/t9n`;
169444
+ const prefix = `${assetName}.t9n.`;
169445
+ const t9nStrings = await fetchT9NStringsBundle(t9nLocale, t9nAssetsPath, prefix);
169446
+ return { lang, t9nLocale, t9nStrings };
169447
+ }
169413
169448
 
169414
169449
  // src/strings.ts
169415
169450
  var doubleQuote = '"';
@@ -170387,7 +170422,7 @@ class FeatureVariable extends SourceBasedVariable {
170387
170422
  this.type = "feature";
170388
170423
  }
170389
170424
  get title() {
170390
- if (isSupportedLayerInstance(this._source)) {
170425
+ if (isTitleCapableSource(this._source)) {
170391
170426
  return this._source.title ?? "";
170392
170427
  }
170393
170428
  return { code: "feature" };
@@ -170402,7 +170437,7 @@ class FeatureVariable extends SourceBasedVariable {
170402
170437
  throw new Error("Invalid definition");
170403
170438
  }
170404
170439
  // The title group and snippet
170405
- const title = isSupportedLayerInstance(this._source) ? this._source.title ?? "" : "";
170440
+ const title = isTitleCapableSource(this._source) ? this._source.title ?? "" : "";
170406
170441
  this.variables.push(new GroupOfVariables(this._profile, title, [
170407
170442
  new ValueVariable({
170408
170443
  profile: this._profile,
@@ -170437,8 +170472,8 @@ class FeatureVariable extends SourceBasedVariable {
170437
170472
  this.variables.push(relationshipsGroup);
170438
170473
  }
170439
170474
  }
170440
- catch (e) {
170441
- console.error("Loading issue", e, this);
170475
+ catch (error) {
170476
+ console.error("Error with definition", error, this._definition);
170442
170477
  this._source = null;
170443
170478
  }
170444
170479
  finally {
@@ -170460,7 +170495,7 @@ class FeatureSetVariable extends SourceBasedVariable {
170460
170495
  this.type = "featureSet";
170461
170496
  }
170462
170497
  get title() {
170463
- if (isSupportedLayerInstance(this._source)) {
170498
+ if (isTitleCapableSource(this._source)) {
170464
170499
  return this._source.title ?? "";
170465
170500
  }
170466
170501
  return { code: "featureset" };
@@ -170488,8 +170523,8 @@ class FeatureSetVariable extends SourceBasedVariable {
170488
170523
  this.variables.push(relationshipsGroup);
170489
170524
  }
170490
170525
  }
170491
- catch (e) {
170492
- console.error("Loading issue", e, this);
170526
+ catch (error) {
170527
+ console.error("Error with definition", error, this._definition);
170493
170528
  this._source = null;
170494
170529
  }
170495
170530
  finally {
@@ -170575,8 +170610,8 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
170575
170610
  const tablesGroup = new GroupOfVariables(this._profile, { code: "tables" }, this._featureSetCollections.tables);
170576
170611
  this.variables.push(headerGroup, layersGroup, tablesGroup);
170577
170612
  }
170578
- catch (e) {
170579
- console.error("Loading issue", e, this);
170613
+ catch (error) {
170614
+ console.error("Error with definition", error, this._definition);
170580
170615
  this._featureSetCollections = null;
170581
170616
  }
170582
170617
  finally {
@@ -170591,7 +170626,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
170591
170626
  if (isMapInstance(this._definition)) {
170592
170627
  return await this._featureSetCollectionFromMap(this._definition);
170593
170628
  }
170594
- if (isSupportedLayerInstance(this._definition)) {
170629
+ if (isUrlDefinition(this._definition)) {
170595
170630
  return await this._featureSetCollectionFromUrl(this._definition.url);
170596
170631
  }
170597
170632
  if (isPortalItemDefinition(this._definition)) {
@@ -170599,10 +170634,6 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
170599
170634
  // or Feature Service
170600
170635
  return await this._featureSetCollectionFromPortalItem(this._definition.portalItem);
170601
170636
  }
170602
- if (isUrlDefinition(this._definition)) {
170603
- // Assume that the url is pointing to a feature server
170604
- return await this._featureSetCollectionFromUrl(this._definition.url);
170605
- }
170606
170637
  return null;
170607
170638
  }
170608
170639
  async _featureSetCollectionFromMap(map) {
@@ -170759,21 +170790,13 @@ class EditorProfile extends DictionaryVariable {
170759
170790
  //#endregion
170760
170791
 
170761
170792
  function isFeatureDefinition(item) {
170762
- return (isSupportedLayerInstance(item) ||
170763
- isFeatureSetInstance(item) ||
170764
- isUrlDefinition(item) ||
170765
- isFieldsDefinition(item) ||
170766
- isFeatureLayerItemDefinition(item));
170793
+ return isUrlDefinition(item) || isFieldsDefinition(item) || isFeatureLayerItemDefinition(item);
170767
170794
  }
170768
170795
  function isFeatureSetDefinition(item) {
170769
- return (isQueryableLayerInstance(item) ||
170770
- isFeatureSetInstance(item) ||
170771
- isUrlDefinition(item) ||
170772
- isFieldsDefinition(item) ||
170773
- isFeatureLayerItemDefinition(item));
170796
+ return isUrlDefinition(item) || isFieldsDefinition(item) || isFeatureLayerItemDefinition(item);
170774
170797
  }
170775
170798
  function isFeatureSetCollectionDefinition(item) {
170776
- return isPortalItemDefinition(item) || isMapInstance(item) || isFeatureSetDefinition(item);
170799
+ return isPortalItemDefinition(item) || isMapInstance(item) || isUrlDefinition(item);
170777
170800
  }
170778
170801
  /**
170779
170802
  * Get a PredefinedProfile for a locale. If not already loaded then fetch it.
@@ -171038,4 +171061,4 @@ const arcade = {
171038
171061
  setProfileForModel: arcadeDefaults.setProfileForModel.bind(arcadeDefaults),
171039
171062
  };
171040
171063
 
171041
- export { Deferred as D, Emitter as E, IStandaloneThemeService as I, KeyCode as K, MarkerSeverity as M, Range as R, StandaloneServices as S, Uri as U, arcade as a, commonjsGlobal as b, createCommonjsModule as c, importRequest as d, editor as e, arcadeDefaults as f, generateTokensCSSForColorMap as g, hasSameOrigin as h, isURL as i, filterCollection as j, addLTRMark as k, languages as l, importArcade as m, generateGuid as n, getElementTheme as o, setValuesInString as p, quoteString as q, supportedFields as r, setFocusOnElement as s, createFilterExpression as t, observeAncestorsMutation as u, KeyMod as v, monaco_editor_core_star as w, typescriptDefaults as x, main as y, debounce as z };
171064
+ export { KeyMod as A, monaco_editor_core_star as B, typescriptDefaults as C, Deferred as D, main as E, debounce as F, Emitter as G, IStandaloneThemeService as I, KeyCode as K, MarkerSeverity as M, Range as R, StandaloneServices as S, Uri as U, arcade as a, commonjsGlobal as b, createCommonjsModule as c, camelToKebab as d, editor as e, safeAsyncCall as f, generateTokensCSSForColorMap as g, startLocaleObserver as h, getElementLocales as i, isURL as j, hasSameOrigin as k, importRequest as l, languages as m, arcadeDefaults as n, setFocusOnElement as o, filterCollection as p, addLTRMark as q, importArcade as r, safeCall as s, generateGuid as t, getElementTheme as u, setValuesInString as v, quoteString as w, supportedFields as x, createFilterExpression as y, observeAncestorsMutation as z };
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.53
4
+ * v4.30.0-next.55
5
5
  */
6
- import { y as main, e as editor, M as MarkerSeverity, R as Range, l as languages, z as debounce, E as Emitter } from './arcade-defaults-b38398b2.js';
7
- import './index-119ec33b.js';
6
+ import { E as main, e as editor, M as MarkerSeverity, R as Range, m as languages, F as debounce, G as Emitter } from './arcade-defaults-ab5e3060.js';
7
+ import './index-2d3020e1.js';
8
8
 
9
9
  var j={False:"false",Null:"null",True:"true"},f={Break:"break",Continue:"continue",Else:"else",For:"for",From:"from",Function:"function",If:"if",Import:"import",Export:"export",In:"in",Return:"return",Var:"var",While:"while"},Fe=["++","--"],Qe=["-","+","!","~"],Ze=["=","/=","*=","%=","+=","-="],Xe=["||","&&"],Lt=["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"];var U=[[],[],[]];Fe.forEach(t=>U[t.length-1]?.push(t));Qe.forEach(t=>U[t.length-1]?.push(t));Xe.forEach(t=>U[t.length-1]?.push(t));Ze.forEach(t=>U[t.length-1]?.push(t));Lt.forEach(t=>U[t.length-1]?.push(t));var ht=Object.values(f),dt=Object.values(j);dt.map(t=>({label:t,kind:main.CompletionItemKind.Constant}));ht.map(t=>({label:t,kind:main.CompletionItemKind.Keyword}));
10
10