@arcgis/coding-components 4.30.0-next.30 → 4.30.0-next.32

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-50cbdef2.js → p-05d5b897.js} +2 -2
  4. package/dist/arcgis-coding-components/{p-1b04872b.js → p-0e0e70a6.js} +2 -2
  5. package/dist/arcgis-coding-components/{p-7f41598e.js → p-184bf4da.js} +2 -2
  6. package/dist/arcgis-coding-components/{p-38778060.js → p-269db6aa.js} +3 -3
  7. package/dist/arcgis-coding-components/{p-05407167.js → p-33ea4eb8.js} +2 -2
  8. package/dist/arcgis-coding-components/{p-3e84bed2.js → p-46c6fbc9.js} +2 -2
  9. package/dist/arcgis-coding-components/{p-305e6a27.js → p-546ba43b.js} +2 -2
  10. package/dist/arcgis-coding-components/{p-a09a2021.js → p-659c3042.js} +2 -2
  11. package/dist/arcgis-coding-components/{p-61a3a32b.js → p-902eefd8.js} +2 -2
  12. package/dist/arcgis-coding-components/p-df91c9d3.entry.js +6 -0
  13. package/dist/arcgis-coding-components/{p-f2b266c1.js → p-e3481b2c.js} +1 -1
  14. package/dist/arcgis-coding-components/{p-51032f3c.js → p-f0c3f554.js} +10 -10
  15. package/dist/cjs/{arcade-defaults-18a60f03.js → arcade-defaults-1727169e.js} +10 -10
  16. package/dist/cjs/{arcade-mode-c53bfc0e.js → arcade-mode-6252a28f.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-56924b29.js → css-7033ec1f.js} +1 -1
  20. package/dist/cjs/{cssMode-ea630257.js → cssMode-6aa0e718.js} +3 -3
  21. package/dist/cjs/{html-3d953aa2.js → html-14d508a9.js} +3 -3
  22. package/dist/cjs/{htmlMode-f3da6666.js → htmlMode-06259c73.js} +3 -3
  23. package/dist/cjs/{index-084a0845.js → index-7d6f659a.js} +2 -2
  24. package/dist/cjs/index.cjs.js +3 -3
  25. package/dist/cjs/{javascript-470dd761.js → javascript-8554c164.js} +4 -4
  26. package/dist/cjs/{jsonMode-f2bad76f.js → jsonMode-99a582c6.js} +3 -3
  27. package/dist/cjs/loader.cjs.js +2 -2
  28. package/dist/cjs/{tsMode-4dbfa911.js → tsMode-8d94687b.js} +3 -3
  29. package/dist/cjs/{typescript-8fb2fceb.js → typescript-a219dbaa.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-3f0e1c43.js → arcade-defaults-94f6bcf4.js} +10 -10
  53. package/dist/esm/{arcade-mode-5aef1763.js → arcade-mode-4e387eee.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-4c710cf8.js → css-1b851753.js} +1 -1
  57. package/dist/esm/{cssMode-54cea919.js → cssMode-81cf8605.js} +3 -3
  58. package/dist/esm/{html-3908d2da.js → html-36233eff.js} +3 -3
  59. package/dist/esm/{htmlMode-2fa6e6a4.js → htmlMode-2abc0cc0.js} +3 -3
  60. package/dist/esm/{index-06d390be.js → index-66e67c30.js} +2 -2
  61. package/dist/esm/index.js +3 -3
  62. package/dist/esm/{javascript-1d86322d.js → javascript-6610a082.js} +4 -4
  63. package/dist/esm/{jsonMode-27eb619c.js → jsonMode-6a977ee3.js} +3 -3
  64. package/dist/esm/loader.js +3 -3
  65. package/dist/esm/{tsMode-9a8f9af2.js → tsMode-046bec01.js} +3 -3
  66. package/dist/esm/{typescript-7a26367c.js → typescript-5f1c5cf7.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 +10 -9
  72. package/dist/arcgis-coding-components/p-0e4fd488.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.30
4
+ * v4.30.0-next.32
5
5
  */
6
6
  import { editor, languages } from 'monaco-editor';
7
7
  import { b as arcadeDefaults } 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.30
4
+ * v4.30.0-next.32
5
5
  */
6
6
  import { Emitter, Uri } from 'monaco-editor';
7
7
  import { InsertTextMode, InsertTextFormat, CompletionItemKind } from 'vscode-languageserver-types';
@@ -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.30
4
+ * v4.30.0-next.32
5
5
  */
6
6
  import { editor, MarkerSeverity, Range, languages, Emitter } from 'monaco-editor';
7
7
  import { CompletionItemKind, DiagnosticSeverity, InsertTextFormat } from 'vscode-languageserver-types';
@@ -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.30
4
+ * v4.30.0-next.32
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, h, Fragment, Host } from '@stencil/core/internal/client';
7
7
  import { t as importArcade, s as setValuesInString, u as quoteString } from './index2.js';
8
- import { u as useControllerManager, a as useT9n } from './chunk-FQ4KFKVY.js';
8
+ import { u as useControllerManager, a as useT9n } from './chunk-WQTCUXBS.js';
9
9
  import { s as supportedFields } from './fields.js';
10
10
  import "@esri/calcite-components/dist/components/calcite-tree.js";
11
11
  import "@esri/calcite-components/dist/components/calcite-tree-item.js";
@@ -298,10 +298,12 @@ function renderFeatureSetTable(arcadeResult) {
298
298
  }
299
299
  })))))));
300
300
  }
301
+ const __cmpMeta = [1,"arcgis-arcade-results",[["loading",[1028]],["openedResultPanel",[1537,"opened-result-panel"]],["result",[1040]],["consoleLogs",[1040]]]];
301
302
  const ArcgisArcadeResults = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeResults extends HTMLElement {
302
303
  constructor() {
303
304
  super();
304
305
  this.__registerHost();
306
+ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
305
307
  this.__attachShadow();
306
308
  this.openedResultPanelChange = createEvent(this, "openedResultPanelChange", 3);
307
309
  this.close = createEvent(this, "close", 3);
@@ -470,12 +472,7 @@ const ArcgisArcadeResults = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeR
470
472
  static get assetsDirs() { return ["assets"]; }
471
473
  get el() { return this; }
472
474
  static get style() { return arcadeResultsCss; }
473
- }, [1, "arcgis-arcade-results", {
474
- "loading": [4],
475
- "openedResultPanel": [1537, "opened-result-panel"],
476
- "result": [16],
477
- "consoleLogs": [16]
478
- }]);
475
+ }, __cmpMeta);
479
476
  function defineCustomElement() {
480
477
  if (typeof customElements === "undefined") {
481
478
  return;
@@ -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.30
4
+ * v4.30.0-next.32
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
7
7
  import { g as generateColorizeStyles, o as onColorizeThemeChanged, c as convertMarkdownString, b as colorizeCodeElement } from './markdown.js';
8
8
  import { f as filterCollection } from './utilities.js';
9
- import { u as useControllerManager, a as useT9n } from './chunk-FQ4KFKVY.js';
9
+ import { u as useControllerManager, a as useT9n } from './chunk-WQTCUXBS.js';
10
10
  import { k as setFocusOnElement } from './index2.js';
11
11
  import "@esri/calcite-components/dist/components/calcite-list-item-group.js";
12
12
  import "@esri/calcite-components/dist/components/calcite-list-item.js";
@@ -30,10 +30,12 @@ function isSuggestionGroups(item) {
30
30
 
31
31
  const arcadeSuggestionsCss = ":host{background-color:var(--calcite-color-foreground-1)}:host .notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}:host .sticky{position:sticky;top:0px;z-index:10}:host calcite-flow{height:100%}:host calcite-block p:first-of-type{margin-top:0}:host calcite-block code{font-family:var(--calcite-code-family)}:host calcite-block pre{direction:ltr;overflow-x:auto;background-color:var(--calcite-color-foreground-2);padding:var(--calcite-spacing-sm)}:host calcite-block pre code{font-size:var(--calcite-font-size--2)}";
32
32
 
33
+ const __cmpMeta = [1,"arcgis-arcade-suggestions",[["suggestions",[1040]],["_selectedSuggestion",[32]],["_filterValue",[32]],["_colorizeStyle",[32]]],undefined,{"suggestions":["suggestionsPropChanged"]}];
33
34
  const ArcgisArcadeSuggestions = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeSuggestions extends HTMLElement {
34
35
  constructor() {
35
36
  super();
36
37
  this.__registerHost();
38
+ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
37
39
  this.__attachShadow();
38
40
  this.close = createEvent(this, "close", 3);
39
41
  this.itemSelected = createEvent(this, "itemSelected", 3);
@@ -139,14 +141,7 @@ const ArcgisArcadeSuggestions = /*@__PURE__*/ proxyCustomElement(class ArcgisArc
139
141
  "suggestions": ["suggestionsPropChanged"]
140
142
  }; }
141
143
  static get style() { return arcadeSuggestionsCss; }
142
- }, [1, "arcgis-arcade-suggestions", {
143
- "suggestions": [16],
144
- "_selectedSuggestion": [32],
145
- "_filterValue": [32],
146
- "_colorizeStyle": [32]
147
- }, undefined, {
148
- "suggestions": ["suggestionsPropChanged"]
149
- }]);
144
+ }, __cmpMeta);
150
145
  function defineCustomElement() {
151
146
  if (typeof customElements === "undefined") {
152
147
  return;
@@ -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.30
4
+ * v4.30.0-next.32
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
7
- import { u as useControllerManager, a as useT9n } from './chunk-FQ4KFKVY.js';
7
+ import { u as useControllerManager, a as useT9n } from './chunk-WQTCUXBS.js';
8
8
  import { k as setFocusOnElement, j as createFilterExpression } from './index2.js';
9
9
  import { b as arcadeDefaults } from './arcade-defaults.js';
10
10
  import "@esri/calcite-components/dist/components/calcite-flow-item.js";
@@ -24,10 +24,12 @@ function stopEnterPropagation(e) {
24
24
  e.stopPropagation();
25
25
  }
26
26
  }
27
+ const __cmpMeta = [1,"arcgis-arcade-variables",[["loading",[1028]],["modelId",[1025,"model-id"]],["_mutationCounter",[32]],["_flowItemRenderers",[32]],["_filterValue",[32]]],undefined,{"modelId":["modelIdPropChanged"]}];
27
28
  const ArcgisArcadeVariables = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeVariables extends HTMLElement {
28
29
  constructor() {
29
30
  super();
30
31
  this.__registerHost();
32
+ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
31
33
  this.__attachShadow();
32
34
  this.close = createEvent(this, "close", 3);
33
35
  this.itemSelected = createEvent(this, "itemSelected", 3);
@@ -163,15 +165,7 @@ const ArcgisArcadeVariables = /*@__PURE__*/ proxyCustomElement(class ArcgisArcad
163
165
  "modelId": ["modelIdPropChanged"]
164
166
  }; }
165
167
  static get style() { return arcadeVariablesCss; }
166
- }, [1, "arcgis-arcade-variables", {
167
- "loading": [4],
168
- "modelId": [1, "model-id"],
169
- "_mutationCounter": [32],
170
- "_flowItemRenderers": [32],
171
- "_filterValue": [32]
172
- }, undefined, {
173
- "modelId": ["modelIdPropChanged"]
174
- }]);
168
+ }, __cmpMeta);
175
169
  function defineCustomElement() {
176
170
  if (typeof customElements === "undefined") {
177
171
  return;
@@ -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.30
4
+ * v4.30.0-next.32
5
5
  */
6
6
  import { A as ArcgisArcadeApi$1, d as defineCustomElement$1 } from './arcade-api.js';
7
7
 
@@ -1,13 +1,13 @@
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.30
4
+ * v4.30.0-next.32
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, h, Fragment, Host } from '@stencil/core/internal/client';
7
7
  import { KeyCode } from 'monaco-editor';
8
8
  import { e as executeScript, D as DevelopersWebSitePath, d as defineCustomElement$5 } from './arcade-results.js';
9
9
  import { u as updateThemeColors, c as colorRulesKeys, s as setupMonacoEnvironment, a as getArcadeDiagnosticService } from './arcade-contribution.js';
10
- import { u as useControllerManager, a as useT9n } from './chunk-FQ4KFKVY.js';
10
+ import { u as useControllerManager, a as useT9n } from './chunk-WQTCUXBS.js';
11
11
  import { D as Deferred, q as generateGuid, r as getElementTheme } from './index2.js';
12
12
  import { b as arcadeDefaults } from './arcade-defaults.js';
13
13
  import { d as defineCustomElement$6 } from './arcade-api.js';
@@ -22,10 +22,12 @@ import { getArcgisAssetPath as getAssetPath } from "./arcgis-assets.js";
22
22
 
23
23
  const arcadeEditorCss = "arcgis-arcade-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:1px solid var(--calcite-color-border-3);box-sizing:border-box;background-color:var(--calcite-color-foreground-1);height:100%}arcgis-arcade-editor .flex-adjustable{flex:1 1 auto;overflow:hidden}arcgis-arcade-editor .flex-panel{flex:1 0 auto}arcgis-arcade-editor .position-relative{position:relative}arcgis-arcade-editor .flex-row{display:flex;flex-direction:row;overflow:hidden}arcgis-arcade-editor .flex-column{display:flex;flex-direction:column;overflow:hidden}arcgis-arcade-editor .border-inline-start{border-inline-start:1px solid var(--calcite-color-border-3);box-sizing:border-box}arcgis-arcade-editor .border-inline-end{border-inline-end:1px solid var(--calcite-color-border-3);box-sizing:border-box}arcgis-arcade-editor .sticky{position:sticky;top:0px;z-index:10}arcgis-arcade-editor .notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1);text-align:center}arcgis-arcade-editor .side-action-bar{max-width:25%}arcgis-arcade-editor .side-panel{max-width:45%;width:600px}arcgis-arcade-editor .side-panel calcite-flow{height:100%}arcgis-arcade-editor .main-action-bar{border-bottom:1px solid var(--calcite-color-border-3);flex:0 0 auto}arcgis-arcade-editor .main-action-bar calcite-action-group{padding-inline-end:var(--calcite-spacing-sm)}arcgis-arcade-editor .main-action-bar calcite-action-group calcite-action{padding-inline-end:var(--calcite-spacing-sm)}arcgis-arcade-editor .main-action-bar calcite-action-group calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}arcgis-arcade-editor .main-action-bar calcite-action-group:last-child{border-inline-end-width:0px}arcgis-arcade-editor .main-action-bar calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}arcgis-arcade-editor arcgis-arcade-results{border-top:1px solid var(--calcite-color-border-3);box-sizing:border-box;max-height:50%;min-height:50%;margin-bottom:-1px}arcgis-arcade-editor calcite-flow [slot=footer]{word-break:break-word}arcgis-arcade-editor calcite-list-item-group calcite-list-item{margin-bottom:1px;box-shadow:0 1px 0 var(--calcite-color-border-3)}arcgis-arcade-editor calcite-list-item-group calcite-list-item:last-child{box-shadow:none}arcgis-arcade-editor calcite-list-item-group:last-child{margin-bottom:var(--calcite-spacing-xl)}";
24
24
 
25
+ const __cmpMeta = [0,"arcgis-arcade-editor",[["profile",[1040]],["script",[1025]],["testData",[1040]],["suggestions",[1040]],["snippets",[1040]],["hideDocumentationActions",[1028,"hide-documentation-actions"]],["hideSideBar",[1028,"hide-side-bar"]],["sideActionBarExpanded",[1540,"side-action-bar-expanded"]],["openedSidePanel",[1537,"opened-side-panel"]],["editorOptions",[1040]],["messages",[32]],["_standaloneCodeEditor",[32]],["_preparingProfile",[32]],["_editorProfile",[32]],["_showExecutionPanel",[32]],["_resultPanel",[32]],["_executingScript",[32]],["_consoleLogs",[32]],["_executionResult",[32]],["getScript",[64]],["setFocus",[64]],["getEditorInstance",[64]],["getTestResult",[64]],["updateThemeColors",[64]]],undefined,{"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}];
25
26
  const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeEditor extends HTMLElement {
26
27
  constructor() {
27
28
  super();
28
29
  this.__registerHost();
30
+ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
29
31
  this.scriptChange = createEvent(this, "scriptChange", 3);
30
32
  this.diagnosticsChange = createEvent(this, "diagnosticsChange", 3);
31
33
  this.manager = useControllerManager(this);
@@ -180,7 +182,7 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcade
180
182
  async componentWillLoad() {
181
183
  const assetsPath = getAssetPath("./assets");
182
184
  // We are a bit in a chicken and egg situation here.
183
- // Normally, it is the code editor that is responsible for setting up the Monaco environement.
185
+ // Normally, it is the code editor that is responsible for setting up the Monaco environment.
184
186
  // However, we need to setup the environment before the code editor is instantiated because
185
187
  // we need to access the arcade language service to get the api library.
186
188
  setupMonacoEnvironment(assetsPath);
@@ -336,36 +338,7 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcade
336
338
  "snippets": ["_snippetChanged"]
337
339
  }; }
338
340
  static get style() { return arcadeEditorCss; }
339
- }, [0, "arcgis-arcade-editor", {
340
- "profile": [16],
341
- "script": [1],
342
- "testData": [16],
343
- "suggestions": [16],
344
- "snippets": [16],
345
- "hideDocumentationActions": [4, "hide-documentation-actions"],
346
- "hideSideBar": [4, "hide-side-bar"],
347
- "sideActionBarExpanded": [1540, "side-action-bar-expanded"],
348
- "openedSidePanel": [1537, "opened-side-panel"],
349
- "editorOptions": [16],
350
- "messages": [32],
351
- "_standaloneCodeEditor": [32],
352
- "_preparingProfile": [32],
353
- "_editorProfile": [32],
354
- "_showExecutionPanel": [32],
355
- "_resultPanel": [32],
356
- "_executingScript": [32],
357
- "_consoleLogs": [32],
358
- "_executionResult": [32],
359
- "getScript": [64],
360
- "setFocus": [64],
361
- "getEditorInstance": [64],
362
- "getTestResult": [64],
363
- "updateThemeColors": [64]
364
- }, undefined, {
365
- "profile": ["_profileChanged"],
366
- "testData": ["_testDataChanged"],
367
- "snippets": ["_snippetChanged"]
368
- }]);
341
+ }, __cmpMeta);
369
342
  function defineCustomElement$1() {
370
343
  if (typeof customElements === "undefined") {
371
344
  return;
@@ -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.30
4
+ * v4.30.0-next.32
5
5
  */
6
6
  import { A as ArcgisArcadeResults$1, d as defineCustomElement$1 } from './arcade-results.js';
7
7
 
@@ -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.30
4
+ * v4.30.0-next.32
5
5
  */
6
6
  import { A as ArcgisArcadeSuggestions$1, d as defineCustomElement$1 } from './arcade-suggestions.js';
7
7
 
@@ -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.30
4
+ * v4.30.0-next.32
5
5
  */
6
6
  import { A as ArcgisArcadeVariables$1, d as defineCustomElement$1 } from './arcade-variables.js';
7
7
 
@@ -2,7 +2,7 @@
2
2
  /*!
3
3
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
4
4
  * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
5
- * v4.30.0-next.30
5
+ * v4.30.0-next.32
6
6
  */
7
7
  /**
8
8
  * Get the base path to where the package assets can be found.
@@ -2,7 +2,7 @@
2
2
  /*!
3
3
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
4
4
  * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
5
- * v4.30.0-next.30
5
+ * v4.30.0-next.32
6
6
  */
7
7
  let resourceUrl = "https://js.arcgis.com/coding-components/next/";
8
8
  export const getArcgisAssetPath = (path) => {
@@ -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.30
4
+ * v4.30.0-next.32
5
5
  */
6
6
  import { A as ArcgisCodeEditor$1, d as defineCustomElement$1 } from './code-editor.js';
7
7
 
@@ -1,12 +1,52 @@
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.30
4
+ * v4.30.0-next.32
5
5
  */
6
6
  import { forceUpdate } from '@stencil/core/internal/client';
7
7
  import { l as importCoreAccessor, m as importCoreAccessorSupportDecorators } from './index2.js';
8
8
  import { getArcgisAssetPath as getAssetPath } from "./arcgis-assets.js";
9
9
 
10
+ // src/stencil.ts
11
+ function retrieveComponentMeta(component) {
12
+ const constructor = component.constructor;
13
+ const members = constructor.__registerControllers?.(component) ?? void 0;
14
+ constructor.__registerControllers = void 0;
15
+ if (typeof members !== "object")
16
+ throw new Error(
17
+ "Failed to retrieve internal component meta. Make sure you have the useComponentsControllers() Rollup Plugin for Stencil Controllers configured in your Stencil config."
18
+ );
19
+ component.manager.internals.members = members;
20
+ }
21
+ function parsePropertyValue(value, type = 8 /* Any */) {
22
+ const isComplex = value == null || typeof value === "object" || typeof value === "function";
23
+ if (isComplex)
24
+ return value;
25
+ if ((type & 4 /* Boolean */) !== 0)
26
+ return value === "false" ? false : value === "" || !!value;
27
+ else if ((type & 2 /* Number */) !== 0)
28
+ return Number.parseFloat(value.toString());
29
+ else if ((type & 1 /* String */) !== 0)
30
+ return String(value);
31
+ else
32
+ return value;
33
+ }
34
+ var makeMemberFilter = (filter) => (component) => {
35
+ const members = component.manager.internals.members;
36
+ return Object.entries(members ?? {}).filter(([_name, [propType]]) => (propType & filter) !== 0).map(([name]) => name);
37
+ };
38
+ var getPropLikeMembers = makeMemberFilter(63 /* PropLike */);
39
+ var getMemberType = (component, name) => component.manager.internals.members?.[name]?.[0];
40
+ function getPropType(component, name) {
41
+ const type = getMemberType(component, name);
42
+ if (type === void 0)
43
+ return void 0;
44
+ else if (type & 32 /* State */)
45
+ return "state";
46
+ else
47
+ return "prop";
48
+ }
49
+
10
50
  // ../components-utils/dist/index.js
11
51
  var Deferred = class {
12
52
  /**
@@ -360,56 +400,6 @@ var unresolvableExports = [
360
400
  "an object instead"
361
401
  ].join("");
362
402
 
363
- // src/stencil.ts
364
- function retrieveComponentMeta(component) {
365
- const constructor = component.constructor;
366
- const meta = constructor.__registerControllers?.(component) ?? void 0;
367
- constructor.__registerControllers = void 0;
368
- if (typeof meta !== "object")
369
- throw new Error(
370
- "Failed to retrieve internal component meta. Make sure you have the useComponentsControllers() Rollup Plugin for Stencil Controllers configured in your Stencil config."
371
- );
372
- component.manager.internals.meta = { members: meta[0], watchers: meta[1] };
373
- }
374
- function parsePropertyValue(value, type = 8 /* Any */) {
375
- const isComplex = value == null || typeof value === "object" || typeof value === "function";
376
- if (isComplex)
377
- return value;
378
- if ((type & 4 /* Boolean */) !== 0)
379
- return value === "false" ? false : value === "" || !!value;
380
- else if ((type & 2 /* Number */) !== 0)
381
- return Number.parseFloat(value.toString());
382
- else if ((type & 1 /* String */) !== 0)
383
- return String(value);
384
- else
385
- return value;
386
- }
387
- var makeMemberFilter = (filter) => (component) => {
388
- const members = component.manager.internals.meta?.members;
389
- return Object.entries(members ?? {}).filter(([_name, [propType]]) => (propType & filter) !== 0).map(([name]) => name);
390
- };
391
- var getPropLikeMembers = makeMemberFilter(63 /* PropLike */);
392
- var getMemberType = (component, name) => component.manager.internals.meta.members?.[name]?.[0];
393
- function getPropType(component, name) {
394
- const type = getMemberType(component, name);
395
- if (type === void 0)
396
- return void 0;
397
- else if (type & 32 /* State */)
398
- return "state";
399
- else
400
- return "prop";
401
- }
402
- function addPropertyWatcher(component, property) {
403
- const meta = component.manager.internals.meta;
404
- meta.watchers ?? (meta.watchers = {});
405
- const watchers = meta.watchers;
406
- if (!(property in watchers))
407
- watchers[property] = [];
408
- if (!watchers[property].includes(watcherCallbackName))
409
- watchers[property].push(watcherCallbackName);
410
- }
411
- var watcherCallbackName = "dynamicWatcherCallback";
412
-
413
403
  // src/Controller.ts
414
404
  var _a;
415
405
  var _Controller = class _Controller {
@@ -562,9 +552,11 @@ var _Controller = class _Controller {
562
552
  */
563
553
  bypassSetter(callback) {
564
554
  _Controller.internals.shouldBypassSetter = true;
565
- const result = safeCall(callback);
566
- _Controller.internals.shouldBypassSetter = false;
567
- return result;
555
+ try {
556
+ return callback();
557
+ } finally {
558
+ _Controller.internals.shouldBypassSetter = false;
559
+ }
568
560
  }
569
561
  /**
570
562
  * Like bypassSetter, but only bypasses this.manager.readonly(), rather that
@@ -572,9 +564,11 @@ var _Controller = class _Controller {
572
564
  */
573
565
  bypassReadonly(callback) {
574
566
  _Controller.internals.shouldBypassReadonly = true;
575
- const result = safeCall(callback);
576
- _Controller.internals.shouldBypassReadonly = false;
577
- return result;
567
+ try {
568
+ return callback();
569
+ } finally {
570
+ _Controller.internals.shouldBypassReadonly = false;
571
+ }
578
572
  }
579
573
  /**
580
574
  * Property reads inside of this function will bypass any custom getter you
@@ -596,9 +590,11 @@ var _Controller = class _Controller {
596
590
  */
597
591
  bypassGetter(callback) {
598
592
  _Controller.internals.shouldBypassGetter = true;
599
- const result = safeCall(callback);
600
- _Controller.internals.shouldBypassGetter = false;
601
- return result;
593
+ try {
594
+ return callback();
595
+ } finally {
596
+ _Controller.internals.shouldBypassGetter = false;
597
+ }
602
598
  }
603
599
  /**
604
600
  * Like this.manager.getSet(), but can be called on any component's
@@ -626,7 +622,7 @@ var _Controller = class _Controller {
626
622
  }
627
623
  // FEATURE: improve typings
628
624
  /**
629
- * Dynamically set a watcher for any @Prop()/@State() property
625
+ * Dynamically set a watcher for any \@Prop()/\@State() property
630
626
  */
631
627
  watch(property, callback) {
632
628
  var _a2;
@@ -635,9 +631,8 @@ var _Controller = class _Controller {
635
631
  throw new Error(
636
632
  `Trying to watch a non-@Prop, non-@State property "${property}". Either convert it into a @State() or use manager.getSet/dynamicGetSet`
637
633
  );
638
- addPropertyWatcher(this.component, property);
639
- (_a2 = this.internals.watchers)[property] ?? (_a2[property] = []);
640
- const watchers = this.internals.watchers[property];
634
+ (_a2 = this.internals.allWatchers)[property] ?? (_a2[property] = []);
635
+ const watchers = this.internals.allWatchers[property];
641
636
  const genericCallback = callback;
642
637
  const safeCallback = (newValue, oldValue, propertyName) => safeCall(() => genericCallback(newValue, oldValue, propertyName));
643
638
  watchers.push(safeCallback);
@@ -839,6 +834,18 @@ function keyTrackResolve() {
839
834
  // src/ComponentInternals.ts
840
835
  var ComponentInternals = class {
841
836
  constructor(component) {
837
+ /**
838
+ * When watchers are set, set then into `allWatchers`. When watchers are read
839
+ * in the setter, read from `enabledWatchers`.
840
+ * On connectedCallback(), controller manager does `enabledWatchers=allWatchers`.
841
+ * Reasoning:
842
+ * - This disables watchers until connected callback (matches behavior of
843
+ * Stencil's watchers)
844
+ * - This removes in the setter to check if watchers were enabled already or
845
+ * not (as getters/setters are hot path, and should be streamlined)
846
+ */
847
+ this.enabledWatchers = {};
848
+ this.allWatchers = {};
842
849
  this.trackKey = (hostsCandidates, onResolved, defaultValue) => {
843
850
  const candidateHosts = Array.isArray(hostsCandidates) ? hostsCandidates : [hostsCandidates];
844
851
  let leftToResolve = candidateHosts.length + 1;
@@ -876,14 +883,16 @@ var ComponentInternals = class {
876
883
  }, defaultValue);
877
884
  return defaultValue;
878
885
  };
879
- this.trackPropKey = (onResolved, defaultValue) => {
886
+ this.trackPropKey = (onResolved, defaultValue, ignoreDefaultValueMismatch = false) => {
880
887
  if (this._trackedValue !== nothing && this._trackedValue !== defaultValue)
881
888
  this._firePropertyTrackers(void 0, void 0, void 0);
882
889
  if (this._keyTrackers.length === 0)
883
890
  queueMicrotask(() => this._firePropertyTrackers(void 0, void 0, void 0));
884
891
  this._trackedValue = defaultValue;
885
892
  this._keyTrackers.push(
886
- (key, value, previousValue) => safeCall(() => onResolved(defaultValue === value ? key : void 0, previousValue))
893
+ (key, value, previousValue) => safeCall(
894
+ () => onResolved(defaultValue === value || ignoreDefaultValueMismatch ? key : void 0, previousValue)
895
+ )
887
896
  );
888
897
  return defaultValue;
889
898
  };
@@ -946,9 +955,9 @@ var ComponentInternals = class {
946
955
  return;
947
956
  const finalGetter = shouldOverwriteGet ? function getter() {
948
957
  let value = originalGet.call(this);
949
- if (Controller.internals.shouldBypassGetter)
950
- return value;
951
958
  const component2 = Controller.internals.elementToInstance.get(this);
959
+ if (Controller.internals.shouldBypassGetter || component2 === void 0)
960
+ return value;
952
961
  const internals = component2.manager.internals;
953
962
  value = internals.accessorGetter[name](value, name);
954
963
  const getters = internals.getters[name] ?? emptyArray;
@@ -960,6 +969,10 @@ var ComponentInternals = class {
960
969
  const oldValue = originalGet.call(this);
961
970
  let newValue = parsePropertyValue(rawNewValue, propType);
962
971
  const component2 = Controller.internals.elementToInstance.get(this);
972
+ if (component2 === void 0) {
973
+ originalSet.call(this, rawNewValue);
974
+ return;
975
+ }
963
976
  const internals = component2.manager.internals;
964
977
  if (newValue === oldValue)
965
978
  originalSet.call(this, rawNewValue);
@@ -969,6 +982,8 @@ var ComponentInternals = class {
969
982
  newValue = setters[i](newValue, oldValue, name);
970
983
  newValue = internals.accessorSetter[name](newValue, oldValue, name);
971
984
  originalSet.call(this, newValue);
985
+ if (newValue !== oldValue)
986
+ internals.enabledWatchers[name]?.forEach((watcher) => watcher(newValue, oldValue, name));
972
987
  }
973
988
  if (internals._keyTrackers.length > 0)
974
989
  internals?._firePropertyTrackers(name, rawNewValue, oldValue);
@@ -1040,14 +1055,10 @@ var useControllerManager = (component) => new ControllerManager(component);
1040
1055
  var ControllerManager = class extends GenericController {
1041
1056
  constructor(component) {
1042
1057
  const controllers = /* @__PURE__ */ new Set();
1043
- const watchers = {};
1044
1058
  const controllerHost = {
1045
1059
  addController: (controller) => {
1046
1060
  controllers.add(controller);
1047
1061
  },
1048
- [watcherCallbackName]: (newValue, oldValue, propertyName) => {
1049
- watchers[propertyName]?.forEach((callback) => callback(newValue, oldValue, propertyName));
1050
- },
1051
1062
  removeController: (controller) => {
1052
1063
  controllers.delete(controller);
1053
1064
  },
@@ -1128,7 +1139,6 @@ var ControllerManager = class extends GenericController {
1128
1139
  this.component.manager = this;
1129
1140
  retrieveComponentMeta(component);
1130
1141
  this._controllers = controllers;
1131
- this.internals.watchers = watchers;
1132
1142
  this.exports = void 0;
1133
1143
  this.hasDestroy = "preserveOnDisconnect" in this.component && typeof this.component.destroy === "function";
1134
1144
  if (this.hasDestroy)
@@ -1188,6 +1198,7 @@ var ControllerManager = class extends GenericController {
1188
1198
  `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.`
1189
1199
  );
1190
1200
  }
1201
+ this.internals.enabledWatchers = this.internals.allWatchers;
1191
1202
  keyTrackResolve();
1192
1203
  this._connected.resolve();
1193
1204
  this._controllers.forEach(
@@ -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.30
4
+ * v4.30.0-next.32
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
7
7
  import { Range, editor, Uri, KeyMod, KeyCode } from 'monaco-editor';
@@ -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.30
4
+ * v4.30.0-next.32
5
5
  */
6
6
  /**
7
7
  * Returns an icon name for the field type
@@ -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.30
4
+ * v4.30.0-next.32
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.30
4
+ * v4.30.0-next.32
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.30
4
+ * v4.30.0-next.32
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.30
4
+ * v4.30.0-next.32
5
5
  */
6
6
  import { j as createFilterExpression } from './index2.js';
7
7