@arcgis/coding-components 4.30.0-next.31 → 4.30.0-next.33

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 (72) 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-a286cbca.js → p-24f29eb4.js} +2 -2
  4. package/dist/arcgis-coding-components/{p-ffda93ad.js → p-5865a798.js} +1 -1
  5. package/dist/arcgis-coding-components/{p-55ccf00d.js → p-68f31968.js} +3 -3
  6. package/dist/arcgis-coding-components/p-6bc94114.entry.js +6 -0
  7. package/dist/arcgis-coding-components/{p-0f773b26.js → p-9ea4ac05.js} +2 -2
  8. package/dist/arcgis-coding-components/{p-a9b7b4e7.js → p-a382f14a.js} +2 -2
  9. package/dist/arcgis-coding-components/{p-6e95a049.js → p-ad464919.js} +2 -2
  10. package/dist/arcgis-coding-components/{p-b7048f8f.js → p-b0d11a1c.js} +2 -2
  11. package/dist/arcgis-coding-components/{p-b45853be.js → p-b1235394.js} +2 -2
  12. package/dist/arcgis-coding-components/{p-a0b7ffe0.js → p-c71dac95.js} +10 -10
  13. package/dist/arcgis-coding-components/{p-238b42f1.js → p-ec99ba57.js} +2 -2
  14. package/dist/arcgis-coding-components/{p-fc096a00.js → p-eca4aa08.js} +2 -2
  15. package/dist/cjs/{arcade-defaults-c7fb2997.js → arcade-defaults-436340b0.js} +10 -10
  16. package/dist/cjs/{arcade-mode-3e94a952.js → arcade-mode-7b19a9f1.js} +3 -3
  17. package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +88 -77
  18. package/dist/cjs/arcgis-coding-components.cjs.js +2 -2
  19. package/dist/cjs/{css-49099aaf.js → css-994237f6.js} +1 -1
  20. package/dist/cjs/{cssMode-ae7543b4.js → cssMode-a0096604.js} +3 -3
  21. package/dist/cjs/{html-5fb457e8.js → html-4b877e6d.js} +3 -3
  22. package/dist/cjs/{htmlMode-29b3d04d.js → htmlMode-e2a2c858.js} +3 -3
  23. package/dist/cjs/{index-4761d9b3.js → index-2e6c0de2.js} +2 -2
  24. package/dist/cjs/index.cjs.js +3 -3
  25. package/dist/cjs/{javascript-a1ce96d3.js → javascript-d23266e2.js} +4 -4
  26. package/dist/cjs/{jsonMode-0dc42ab3.js → jsonMode-79a70a56.js} +3 -3
  27. package/dist/cjs/loader.cjs.js +2 -2
  28. package/dist/cjs/{tsMode-41b4ad72.js → tsMode-113011cb.js} +3 -3
  29. package/dist/cjs/{typescript-6862dde4.js → typescript-71747915.js} +3 -3
  30. package/dist/components/arcade-api.js +5 -11
  31. package/dist/components/arcade-contribution.js +1 -1
  32. package/dist/components/arcade-defaults.js +1 -1
  33. package/dist/components/arcade-mode.js +1 -1
  34. package/dist/components/arcade-results.js +5 -8
  35. package/dist/components/arcade-suggestions.js +5 -10
  36. package/dist/components/arcade-variables.js +5 -11
  37. package/dist/components/arcgis-arcade-api.js +1 -1
  38. package/dist/components/arcgis-arcade-editor.js +6 -33
  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-FQ4KFKVY.js → chunk-WQTCUXBS.js} +84 -73
  46. package/dist/components/code-editor.js +1 -1
  47. package/dist/components/fields.js +1 -1
  48. package/dist/components/index.js +1 -1
  49. package/dist/components/index2.js +1 -1
  50. package/dist/components/markdown.js +1 -1
  51. package/dist/components/utilities.js +1 -1
  52. package/dist/esm/{arcade-defaults-c1f134db.js → arcade-defaults-4e691530.js} +10 -10
  53. package/dist/esm/{arcade-mode-923e3be6.js → arcade-mode-d9da615e.js} +3 -3
  54. package/dist/esm/arcgis-arcade-api_6.entry.js +88 -77
  55. package/dist/esm/arcgis-coding-components.js +3 -3
  56. package/dist/esm/{css-2997dcdd.js → css-3ab60b24.js} +1 -1
  57. package/dist/esm/{cssMode-5a2cc7ad.js → cssMode-f91659a3.js} +3 -3
  58. package/dist/esm/{html-32528844.js → html-c95c89bf.js} +3 -3
  59. package/dist/esm/{htmlMode-c84c9b50.js → htmlMode-9ba0a55d.js} +3 -3
  60. package/dist/esm/{index-4dfdaab1.js → index-a06bf6f4.js} +2 -2
  61. package/dist/esm/index.js +3 -3
  62. package/dist/esm/{javascript-921d3a14.js → javascript-3ec443eb.js} +4 -4
  63. package/dist/esm/{jsonMode-c0ecf6b9.js → jsonMode-6e466a77.js} +3 -3
  64. package/dist/esm/loader.js +3 -3
  65. package/dist/esm/{tsMode-aba3c96f.js → tsMode-f1fa7423.js} +3 -3
  66. package/dist/esm/{typescript-871ba741.js → typescript-8dd8ba46.js} +3 -3
  67. package/dist/loader/cdn.js +1 -1
  68. package/dist/loader/index.cjs.js +1 -1
  69. package/dist/loader/index.es2017.js +1 -1
  70. package/dist/loader/index.js +1 -1
  71. package/package.json +9 -9
  72. package/dist/arcgis-coding-components/p-d4190a0c.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.31
4
+ * v4.30.0-next.33
5
5
  */
6
6
  export { setNonce, setPlatformOptions } from '@stencil/core/internal/client';
7
7
  export { a as arcade } from './arcade-defaults.js';
@@ -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.31
4
+ * v4.30.0-next.33
5
5
  */
6
6
  // src/index.ts
7
7
  var isAMD = typeof window !== "undefined" && "$arcgis" in window && typeof window.$arcgis === "object" && "import" in window.$arcgis;
@@ -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.31
4
+ * v4.30.0-next.33
5
5
  */
6
6
  import { editor } from 'monaco-editor';
7
7
  import { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
@@ -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.31
4
+ * v4.30.0-next.33
5
5
  */
6
6
  import { j 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.31
4
+ * v4.30.0-next.33
5
5
  */
6
- import { g as getAssetPath } from './index-4dfdaab1.js';
6
+ import { g as getAssetPath } from './index-a06bf6f4.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-2997dcdd.js');
120525
+ return import('./css-3ab60b24.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-32528844.js');
120543
+ return import('./html-c95c89bf.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-921d3a14.js');
120563
+ return import('./javascript-3ec443eb.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-871ba741.js');
120581
+ return import('./typescript-8dd8ba46.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-5a2cc7ad.js');
120702
+ return import('./cssMode-f91659a3.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-c84c9b50.js');
120827
+ return import('./htmlMode-9ba0a55d.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-c0ecf6b9.js');
120929
+ return import('./jsonMode-6e466a77.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-aba3c96f.js');
121198
+ return import('./tsMode-f1fa7423.js');
121199
121199
  }
121200
121200
  }
121201
121201
  monaco_editor_core_exports.languages.onLanguage("typescript", () => {
@@ -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.31
4
+ * v4.30.0-next.33
5
5
  */
6
- import { A as main, e as editor, M as MarkerSeverity, R as Range, l as languages, B as debounce, E as Emitter } from './arcade-defaults-c1f134db.js';
7
- import './index-4dfdaab1.js';
6
+ import { A as main, e as editor, M as MarkerSeverity, R as Range, l as languages, B as debounce, E as Emitter } from './arcade-defaults-4e691530.js';
7
+ import './index-a06bf6f4.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
 
@@ -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.31
4
+ * v4.30.0-next.33
5
5
  */
6
- import { f as forceUpdate, g as getAssetPath, r as registerInstance, c as createEvent, h, H as Host, a as getElement, F as Fragment } from './index-4dfdaab1.js';
7
- import { g as generateTokensCSSForColorMap, e as editor, S as StandaloneServices, I as IStandaloneThemeService, c as createCommonjsModule, b as commonjsGlobal, i as importCoreAccessor, d as importCoreAccessorSupportDecorators, f as isURL, h as hasSameOrigin, j as importRequest, l as languages, k as arcadeDefaults, U as Uri, s as setFocusOnElement, m as filterCollection, n as addLTRMark, o as importArcade, D as Deferred$1, p as generateGuid, q as getElementTheme, K as KeyCode, r as setValuesInString, t as quoteString, u as supportedFields, v as createFilterExpression, R as Range, w as observeAncestorsMutation$1, x as KeyMod } from './arcade-defaults-c1f134db.js';
6
+ import { f as forceUpdate, g as getAssetPath, r as registerInstance, c as createEvent, h, H as Host, a as getElement, F as Fragment } from './index-a06bf6f4.js';
7
+ import { g as generateTokensCSSForColorMap, e as editor, S as StandaloneServices, I as IStandaloneThemeService, c as createCommonjsModule, b as commonjsGlobal, i as importCoreAccessor, d as importCoreAccessorSupportDecorators, f as isURL, h as hasSameOrigin, j as importRequest, l as languages, k as arcadeDefaults, U as Uri, s as setFocusOnElement, m as filterCollection, n as addLTRMark, o as importArcade, D as Deferred$1, p as generateGuid, q as getElementTheme, K as KeyCode, r as setValuesInString, t as quoteString, u as supportedFields, v as createFilterExpression, R as Range, w as observeAncestorsMutation$1, x as KeyMod } from './arcade-defaults-4e691530.js';
8
8
 
9
9
  async function colorizeCode(code) {
10
10
  return await editor.colorize(code, "arcade", { tabSize: 2 });
@@ -2935,6 +2935,46 @@ function convertMarkdownString(value) {
2935
2935
  return marked_umd.marked.parse(typeof value === "string" ? value : value.value);
2936
2936
  }
2937
2937
 
2938
+ // src/stencil.ts
2939
+ function retrieveComponentMeta(component) {
2940
+ const constructor = component.constructor;
2941
+ const members = constructor.__registerControllers?.(component) ?? void 0;
2942
+ constructor.__registerControllers = void 0;
2943
+ if (typeof members !== "object")
2944
+ throw new Error(
2945
+ "Failed to retrieve internal component meta. Make sure you have the useComponentsControllers() Rollup Plugin for Stencil Controllers configured in your Stencil config."
2946
+ );
2947
+ component.manager.internals.members = members;
2948
+ }
2949
+ function parsePropertyValue(value, type = 8 /* Any */) {
2950
+ const isComplex = value == null || typeof value === "object" || typeof value === "function";
2951
+ if (isComplex)
2952
+ return value;
2953
+ if ((type & 4 /* Boolean */) !== 0)
2954
+ return value === "false" ? false : value === "" || !!value;
2955
+ else if ((type & 2 /* Number */) !== 0)
2956
+ return Number.parseFloat(value.toString());
2957
+ else if ((type & 1 /* String */) !== 0)
2958
+ return String(value);
2959
+ else
2960
+ return value;
2961
+ }
2962
+ var makeMemberFilter = (filter) => (component) => {
2963
+ const members = component.manager.internals.members;
2964
+ return Object.entries(members ?? {}).filter(([_name, [propType]]) => (propType & filter) !== 0).map(([name]) => name);
2965
+ };
2966
+ var getPropLikeMembers = makeMemberFilter(63 /* PropLike */);
2967
+ var getMemberType = (component, name) => component.manager.internals.members?.[name]?.[0];
2968
+ function getPropType(component, name) {
2969
+ const type = getMemberType(component, name);
2970
+ if (type === void 0)
2971
+ return void 0;
2972
+ else if (type & 32 /* State */)
2973
+ return "state";
2974
+ else
2975
+ return "prop";
2976
+ }
2977
+
2938
2978
  // ../components-utils/dist/index.js
2939
2979
  var Deferred = class {
2940
2980
  /**
@@ -3288,56 +3328,6 @@ var unresolvableExports = [
3288
3328
  "an object instead"
3289
3329
  ].join("");
3290
3330
 
3291
- // src/stencil.ts
3292
- function retrieveComponentMeta(component) {
3293
- const constructor = component.constructor;
3294
- const meta = constructor.__registerControllers?.(component) ?? void 0;
3295
- constructor.__registerControllers = void 0;
3296
- if (typeof meta !== "object")
3297
- throw new Error(
3298
- "Failed to retrieve internal component meta. Make sure you have the useComponentsControllers() Rollup Plugin for Stencil Controllers configured in your Stencil config."
3299
- );
3300
- component.manager.internals.meta = { members: meta[0], watchers: meta[1] };
3301
- }
3302
- function parsePropertyValue(value, type = 8 /* Any */) {
3303
- const isComplex = value == null || typeof value === "object" || typeof value === "function";
3304
- if (isComplex)
3305
- return value;
3306
- if ((type & 4 /* Boolean */) !== 0)
3307
- return value === "false" ? false : value === "" || !!value;
3308
- else if ((type & 2 /* Number */) !== 0)
3309
- return Number.parseFloat(value.toString());
3310
- else if ((type & 1 /* String */) !== 0)
3311
- return String(value);
3312
- else
3313
- return value;
3314
- }
3315
- var makeMemberFilter = (filter) => (component) => {
3316
- const members = component.manager.internals.meta?.members;
3317
- return Object.entries(members ?? {}).filter(([_name, [propType]]) => (propType & filter) !== 0).map(([name]) => name);
3318
- };
3319
- var getPropLikeMembers = makeMemberFilter(63 /* PropLike */);
3320
- var getMemberType = (component, name) => component.manager.internals.meta.members?.[name]?.[0];
3321
- function getPropType(component, name) {
3322
- const type = getMemberType(component, name);
3323
- if (type === void 0)
3324
- return void 0;
3325
- else if (type & 32 /* State */)
3326
- return "state";
3327
- else
3328
- return "prop";
3329
- }
3330
- function addPropertyWatcher(component, property) {
3331
- const meta = component.manager.internals.meta;
3332
- meta.watchers ?? (meta.watchers = {});
3333
- const watchers = meta.watchers;
3334
- if (!(property in watchers))
3335
- watchers[property] = [];
3336
- if (!watchers[property].includes(watcherCallbackName))
3337
- watchers[property].push(watcherCallbackName);
3338
- }
3339
- var watcherCallbackName = "dynamicWatcherCallback";
3340
-
3341
3331
  // src/Controller.ts
3342
3332
  var _a;
3343
3333
  var _Controller = class _Controller {
@@ -3490,9 +3480,11 @@ var _Controller = class _Controller {
3490
3480
  */
3491
3481
  bypassSetter(callback) {
3492
3482
  _Controller.internals.shouldBypassSetter = true;
3493
- const result = safeCall(callback);
3494
- _Controller.internals.shouldBypassSetter = false;
3495
- return result;
3483
+ try {
3484
+ return callback();
3485
+ } finally {
3486
+ _Controller.internals.shouldBypassSetter = false;
3487
+ }
3496
3488
  }
3497
3489
  /**
3498
3490
  * Like bypassSetter, but only bypasses this.manager.readonly(), rather that
@@ -3500,9 +3492,11 @@ var _Controller = class _Controller {
3500
3492
  */
3501
3493
  bypassReadonly(callback) {
3502
3494
  _Controller.internals.shouldBypassReadonly = true;
3503
- const result = safeCall(callback);
3504
- _Controller.internals.shouldBypassReadonly = false;
3505
- return result;
3495
+ try {
3496
+ return callback();
3497
+ } finally {
3498
+ _Controller.internals.shouldBypassReadonly = false;
3499
+ }
3506
3500
  }
3507
3501
  /**
3508
3502
  * Property reads inside of this function will bypass any custom getter you
@@ -3524,9 +3518,11 @@ var _Controller = class _Controller {
3524
3518
  */
3525
3519
  bypassGetter(callback) {
3526
3520
  _Controller.internals.shouldBypassGetter = true;
3527
- const result = safeCall(callback);
3528
- _Controller.internals.shouldBypassGetter = false;
3529
- return result;
3521
+ try {
3522
+ return callback();
3523
+ } finally {
3524
+ _Controller.internals.shouldBypassGetter = false;
3525
+ }
3530
3526
  }
3531
3527
  /**
3532
3528
  * Like this.manager.getSet(), but can be called on any component's
@@ -3554,7 +3550,7 @@ var _Controller = class _Controller {
3554
3550
  }
3555
3551
  // FEATURE: improve typings
3556
3552
  /**
3557
- * Dynamically set a watcher for any @Prop()/@State() property
3553
+ * Dynamically set a watcher for any \@Prop()/\@State() property
3558
3554
  */
3559
3555
  watch(property, callback) {
3560
3556
  var _a2;
@@ -3563,9 +3559,8 @@ var _Controller = class _Controller {
3563
3559
  throw new Error(
3564
3560
  `Trying to watch a non-@Prop, non-@State property "${property}". Either convert it into a @State() or use manager.getSet/dynamicGetSet`
3565
3561
  );
3566
- addPropertyWatcher(this.component, property);
3567
- (_a2 = this.internals.watchers)[property] ?? (_a2[property] = []);
3568
- const watchers = this.internals.watchers[property];
3562
+ (_a2 = this.internals.allWatchers)[property] ?? (_a2[property] = []);
3563
+ const watchers = this.internals.allWatchers[property];
3569
3564
  const genericCallback = callback;
3570
3565
  const safeCallback = (newValue, oldValue, propertyName) => safeCall(() => genericCallback(newValue, oldValue, propertyName));
3571
3566
  watchers.push(safeCallback);
@@ -3767,6 +3762,18 @@ function keyTrackResolve() {
3767
3762
  // src/ComponentInternals.ts
3768
3763
  var ComponentInternals = class {
3769
3764
  constructor(component) {
3765
+ /**
3766
+ * When watchers are set, set then into `allWatchers`. When watchers are read
3767
+ * in the setter, read from `enabledWatchers`.
3768
+ * On connectedCallback(), controller manager does `enabledWatchers=allWatchers`.
3769
+ * Reasoning:
3770
+ * - This disables watchers until connected callback (matches behavior of
3771
+ * Stencil's watchers)
3772
+ * - This removes in the setter to check if watchers were enabled already or
3773
+ * not (as getters/setters are hot path, and should be streamlined)
3774
+ */
3775
+ this.enabledWatchers = {};
3776
+ this.allWatchers = {};
3770
3777
  this.trackKey = (hostsCandidates, onResolved, defaultValue) => {
3771
3778
  const candidateHosts = Array.isArray(hostsCandidates) ? hostsCandidates : [hostsCandidates];
3772
3779
  let leftToResolve = candidateHosts.length + 1;
@@ -3804,14 +3811,16 @@ var ComponentInternals = class {
3804
3811
  }, defaultValue);
3805
3812
  return defaultValue;
3806
3813
  };
3807
- this.trackPropKey = (onResolved, defaultValue) => {
3814
+ this.trackPropKey = (onResolved, defaultValue, ignoreDefaultValueMismatch = false) => {
3808
3815
  if (this._trackedValue !== nothing && this._trackedValue !== defaultValue)
3809
3816
  this._firePropertyTrackers(void 0, void 0, void 0);
3810
3817
  if (this._keyTrackers.length === 0)
3811
3818
  queueMicrotask(() => this._firePropertyTrackers(void 0, void 0, void 0));
3812
3819
  this._trackedValue = defaultValue;
3813
3820
  this._keyTrackers.push(
3814
- (key, value, previousValue) => safeCall(() => onResolved(defaultValue === value ? key : void 0, previousValue))
3821
+ (key, value, previousValue) => safeCall(
3822
+ () => onResolved(defaultValue === value || ignoreDefaultValueMismatch ? key : void 0, previousValue)
3823
+ )
3815
3824
  );
3816
3825
  return defaultValue;
3817
3826
  };
@@ -3874,9 +3883,9 @@ var ComponentInternals = class {
3874
3883
  return;
3875
3884
  const finalGetter = shouldOverwriteGet ? function getter() {
3876
3885
  let value = originalGet.call(this);
3877
- if (Controller.internals.shouldBypassGetter)
3878
- return value;
3879
3886
  const component2 = Controller.internals.elementToInstance.get(this);
3887
+ if (Controller.internals.shouldBypassGetter || component2 === void 0)
3888
+ return value;
3880
3889
  const internals = component2.manager.internals;
3881
3890
  value = internals.accessorGetter[name](value, name);
3882
3891
  const getters = internals.getters[name] ?? emptyArray;
@@ -3888,6 +3897,10 @@ var ComponentInternals = class {
3888
3897
  const oldValue = originalGet.call(this);
3889
3898
  let newValue = parsePropertyValue(rawNewValue, propType);
3890
3899
  const component2 = Controller.internals.elementToInstance.get(this);
3900
+ if (component2 === void 0) {
3901
+ originalSet.call(this, rawNewValue);
3902
+ return;
3903
+ }
3891
3904
  const internals = component2.manager.internals;
3892
3905
  if (newValue === oldValue)
3893
3906
  originalSet.call(this, rawNewValue);
@@ -3897,6 +3910,8 @@ var ComponentInternals = class {
3897
3910
  newValue = setters[i](newValue, oldValue, name);
3898
3911
  newValue = internals.accessorSetter[name](newValue, oldValue, name);
3899
3912
  originalSet.call(this, newValue);
3913
+ if (newValue !== oldValue)
3914
+ internals.enabledWatchers[name]?.forEach((watcher) => watcher(newValue, oldValue, name));
3900
3915
  }
3901
3916
  if (internals._keyTrackers.length > 0)
3902
3917
  internals?._firePropertyTrackers(name, rawNewValue, oldValue);
@@ -3968,14 +3983,10 @@ var useControllerManager = (component) => new ControllerManager(component);
3968
3983
  var ControllerManager = class extends GenericController {
3969
3984
  constructor(component) {
3970
3985
  const controllers = /* @__PURE__ */ new Set();
3971
- const watchers = {};
3972
3986
  const controllerHost = {
3973
3987
  addController: (controller) => {
3974
3988
  controllers.add(controller);
3975
3989
  },
3976
- [watcherCallbackName]: (newValue, oldValue, propertyName) => {
3977
- watchers[propertyName]?.forEach((callback) => callback(newValue, oldValue, propertyName));
3978
- },
3979
3990
  removeController: (controller) => {
3980
3991
  controllers.delete(controller);
3981
3992
  },
@@ -4056,7 +4067,6 @@ var ControllerManager = class extends GenericController {
4056
4067
  this.component.manager = this;
4057
4068
  retrieveComponentMeta(component);
4058
4069
  this._controllers = controllers;
4059
- this.internals.watchers = watchers;
4060
4070
  this.exports = void 0;
4061
4071
  this.hasDestroy = "preserveOnDisconnect" in this.component && typeof this.component.destroy === "function";
4062
4072
  if (this.hasDestroy)
@@ -4116,6 +4126,7 @@ var ControllerManager = class extends GenericController {
4116
4126
  `The ${tagName} component has already been destroyed. It can not be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the preserveOnDisconnect prop.`
4117
4127
  );
4118
4128
  }
4129
+ this.internals.enabledWatchers = this.internals.allWatchers;
4119
4130
  keyTrackResolve();
4120
4131
  this._connected.resolve();
4121
4132
  this._controllers.forEach(
@@ -4520,7 +4531,7 @@ async function getArcadeWorker(uri) {
4520
4531
  * @returns arcade mode module
4521
4532
  */
4522
4533
  async function getMode() {
4523
- return await import('./arcade-mode-923e3be6.js');
4534
+ return await import('./arcade-mode-d9da615e.js');
4524
4535
  }
4525
4536
  // Register the language in Monaco
4526
4537
  languages.register({
@@ -5074,7 +5085,7 @@ const ArcgisArcadeEditor = class {
5074
5085
  async componentWillLoad() {
5075
5086
  const assetsPath = getAssetPath("./assets");
5076
5087
  // We are a bit in a chicken and egg situation here.
5077
- // Normally, it is the code editor that is responsible for setting up the Monaco environement.
5088
+ // Normally, it is the code editor that is responsible for setting up the Monaco environment.
5078
5089
  // However, we need to setup the environment before the code editor is instantiated because
5079
5090
  // we need to access the arcade language service to get the api library.
5080
5091
  setupMonacoEnvironment(assetsPath);
@@ -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.31
4
+ * v4.30.0-next.33
5
5
  */
6
- import { p as promiseResolve, b as bootstrapLazy } from './index-4dfdaab1.js';
7
- export { s as setNonce } from './index-4dfdaab1.js';
6
+ import { p as promiseResolve, b as bootstrapLazy } from './index-a06bf6f4.js';
7
+ export { s as setNonce } from './index-a06bf6f4.js';
8
8
 
9
9
  /*
10
10
  Stencil Client Patch Browser v4.9.0 | MIT Licensed | https://stenciljs.com
@@ -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.31
4
+ * v4.30.0-next.33
5
5
  */
6
6
  /*!-----------------------------------------------------------------------------
7
7
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -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.31
4
+ * v4.30.0-next.33
5
5
  */
6
- import { y as monaco_editor_core_star } from './arcade-defaults-c1f134db.js';
7
- import './index-4dfdaab1.js';
6
+ import { y as monaco_editor_core_star } from './arcade-defaults-4e691530.js';
7
+ import './index-a06bf6f4.js';
8
8
 
9
9
  /*!-----------------------------------------------------------------------------
10
10
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -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.31
4
+ * v4.30.0-next.33
5
5
  */
6
- import { y as monaco_editor_core_star } from './arcade-defaults-c1f134db.js';
7
- import './index-4dfdaab1.js';
6
+ import { y as monaco_editor_core_star } from './arcade-defaults-4e691530.js';
7
+ import './index-a06bf6f4.js';
8
8
 
9
9
  /*!-----------------------------------------------------------------------------
10
10
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -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.31
4
+ * v4.30.0-next.33
5
5
  */
6
- import { y as monaco_editor_core_star } from './arcade-defaults-c1f134db.js';
7
- import './index-4dfdaab1.js';
6
+ import { y as monaco_editor_core_star } from './arcade-defaults-4e691530.js';
7
+ import './index-a06bf6f4.js';
8
8
 
9
9
  /*!-----------------------------------------------------------------------------
10
10
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -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.31
4
+ * v4.30.0-next.33
5
5
  */
6
6
  const NAMESPACE = 'arcgis-coding-components';
7
7
 
@@ -1574,7 +1574,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1574
1574
  // construction in order to directly wire together the
1575
1575
  // host element and the lazy-loaded instance
1576
1576
  try {
1577
- Cstr.__registerControllers=(component)=>{registerInstance(component,hostRef);return [hostRef.$cmpMeta$.$members$,hostRef.$cmpMeta$.$watchers$??={}]};new Cstr(hostRef);Cstr.__registerControllers=undefined;
1577
+ Cstr.__registerControllers=(component)=>{registerInstance(component,hostRef);return hostRef.$cmpMeta$.$members$??{}};new Cstr(hostRef);Cstr.__registerControllers=undefined;
1578
1578
  }
1579
1579
  catch (e) {
1580
1580
  consoleError(e);
package/dist/esm/index.js CHANGED
@@ -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.31
4
+ * v4.30.0-next.33
5
5
  */
6
- export { a as arcade } from './arcade-defaults-c1f134db.js';
7
- import './index-4dfdaab1.js';
6
+ export { a as arcade } from './arcade-defaults-4e691530.js';
7
+ import './index-a06bf6f4.js';
@@ -1,11 +1,11 @@
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.31
4
+ * v4.30.0-next.33
5
5
  */
6
- import { conf as conf$1, language as language$1 } from './typescript-871ba741.js';
7
- import './arcade-defaults-c1f134db.js';
8
- import './index-4dfdaab1.js';
6
+ import { conf as conf$1, language as language$1 } from './typescript-8dd8ba46.js';
7
+ import './arcade-defaults-4e691530.js';
8
+ import './index-a06bf6f4.js';
9
9
 
10
10
  /*!-----------------------------------------------------------------------------
11
11
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -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.31
4
+ * v4.30.0-next.33
5
5
  */
6
- import { y as monaco_editor_core_star } from './arcade-defaults-c1f134db.js';
7
- import './index-4dfdaab1.js';
6
+ import { y as monaco_editor_core_star } from './arcade-defaults-4e691530.js';
7
+ import './index-a06bf6f4.js';
8
8
 
9
9
  /*!-----------------------------------------------------------------------------
10
10
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -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.31
4
+ * v4.30.0-next.33
5
5
  */
6
- import { b as bootstrapLazy } from './index-4dfdaab1.js';
7
- export { s as setNonce } from './index-4dfdaab1.js';
6
+ import { b as bootstrapLazy } from './index-a06bf6f4.js';
7
+ export { s as setNonce } from './index-a06bf6f4.js';
8
8
 
9
9
  const defineCustomElements = (win, options) => {
10
10
  if (typeof window === 'undefined') return undefined;
@@ -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.31
4
+ * v4.30.0-next.33
5
5
  */
6
- import { z as typescriptDefaults, y as monaco_editor_core_star } from './arcade-defaults-c1f134db.js';
7
- import './index-4dfdaab1.js';
6
+ import { z as typescriptDefaults, y as monaco_editor_core_star } from './arcade-defaults-4e691530.js';
7
+ import './index-a06bf6f4.js';
8
8
 
9
9
  /*!-----------------------------------------------------------------------------
10
10
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -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.31
4
+ * v4.30.0-next.33
5
5
  */
6
- import { y as monaco_editor_core_star } from './arcade-defaults-c1f134db.js';
7
- import './index-4dfdaab1.js';
6
+ import { y as monaco_editor_core_star } from './arcade-defaults-4e691530.js';
7
+ import './index-a06bf6f4.js';
8
8
 
9
9
  /*!-----------------------------------------------------------------------------
10
10
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -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.31
4
+ * v4.30.0-next.33
5
5
  */
6
6
  module.exports = require('../cjs/loader.cjs.js');
7
7
  module.exports.applyPolyfills = function() { return Promise.resolve() };
@@ -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.31
4
+ * v4.30.0-next.33
5
5
  */
6
6
  module.exports = require('../cjs/loader.cjs.js');
7
7
  module.exports.applyPolyfills = function() { return Promise.resolve() };
@@ -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.31
4
+ * v4.30.0-next.33
5
5
  */
6
6
  export * from '../esm/polyfills/index.js';
7
7
  export * from '../esm/loader.js';