@arcgis/coding-components 4.30.0-next.45 → 4.30.0-next.47

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 (76) 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-c9761d56.js → p-0fee5174.js} +2 -2
  4. package/dist/arcgis-coding-components/{p-9d824c7e.js → p-1a627096.js} +2 -2
  5. package/dist/arcgis-coding-components/{p-ebe0dd23.js → p-29207f1e.js} +1 -1
  6. package/dist/arcgis-coding-components/p-2b6dab4b.entry.js +6 -0
  7. package/dist/arcgis-coding-components/{p-4928cbf5.js → p-4fd5a02d.js} +3 -3
  8. package/dist/arcgis-coding-components/{p-e3f33726.js → p-621187ef.js} +2 -2
  9. package/dist/arcgis-coding-components/{p-bcfde3a0.js → p-6fd22ff7.js} +2 -2
  10. package/dist/arcgis-coding-components/{p-e1381c29.js → p-833b0216.js} +2 -2
  11. package/dist/arcgis-coding-components/{p-ad83a4c3.js → p-a0704d86.js} +10 -10
  12. package/dist/arcgis-coding-components/{p-5ff71a20.js → p-a412be74.js} +2 -2
  13. package/dist/arcgis-coding-components/{p-f59a3139.js → p-ab7e89c0.js} +2 -2
  14. package/dist/arcgis-coding-components/{p-2cd4a423.js → p-d5df8d73.js} +2 -2
  15. package/dist/cjs/{arcade-defaults-9cd78c83.js → arcade-defaults-4e0664fb.js} +10 -10
  16. package/dist/cjs/{arcade-mode-64fa17b4.js → arcade-mode-61a07430.js} +3 -3
  17. package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +85 -66
  18. package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
  19. package/dist/cjs/{css-3faba200.js → css-fac19960.js} +1 -1
  20. package/dist/cjs/{cssMode-50de9c49.js → cssMode-22d917f0.js} +3 -3
  21. package/dist/cjs/{html-7d93e27c.js → html-5bc24648.js} +3 -3
  22. package/dist/cjs/{htmlMode-304aeb14.js → htmlMode-f09628e1.js} +3 -3
  23. package/dist/cjs/{index-91a65ccf.js → index-02749111.js} +6 -1
  24. package/dist/cjs/index.cjs.js +3 -3
  25. package/dist/cjs/{javascript-13393a52.js → javascript-29521fd3.js} +4 -4
  26. package/dist/cjs/{jsonMode-373f0b84.js → jsonMode-99606370.js} +3 -3
  27. package/dist/cjs/loader.cjs.js +3 -3
  28. package/dist/cjs/{tsMode-beaaa0a0.js → tsMode-e34432d7.js} +3 -3
  29. package/dist/cjs/{typescript-0e0dd0e1.js → typescript-8ce06335.js} +3 -3
  30. package/dist/components/arcade-api.js +2 -2
  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 +2 -2
  35. package/dist/components/arcade-suggestions.js +2 -2
  36. package/dist/components/arcade-variables.js +2 -2
  37. package/dist/components/arcgis-arcade-api.js +1 -1
  38. package/dist/components/arcgis-arcade-editor.js +14 -11
  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-HXHHCYA6.js → chunk-36QZLGG2.js} +22 -12
  46. package/dist/components/code-editor.js +54 -61
  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-6869481f.js → arcade-defaults-fdba0972.js} +10 -10
  53. package/dist/esm/{arcade-mode-e4e834c6.js → arcade-mode-0d144d92.js} +3 -3
  54. package/dist/esm/arcgis-arcade-api_6.entry.js +85 -66
  55. package/dist/esm/arcgis-coding-components.js +4 -4
  56. package/dist/esm/{css-fe8f3a4b.js → css-58b4c966.js} +1 -1
  57. package/dist/esm/{cssMode-e562138d.js → cssMode-f5916932.js} +3 -3
  58. package/dist/esm/{html-ea09066e.js → html-7c8fbcc5.js} +3 -3
  59. package/dist/esm/{htmlMode-ea206439.js → htmlMode-d7755346.js} +3 -3
  60. package/dist/esm/{index-34f0cc38.js → index-c6b28dae.js} +6 -1
  61. package/dist/esm/index.js +3 -3
  62. package/dist/esm/{javascript-21f7e90c.js → javascript-9ac36865.js} +4 -4
  63. package/dist/esm/{jsonMode-d577e66d.js → jsonMode-ef328849.js} +3 -3
  64. package/dist/esm/loader.js +4 -4
  65. package/dist/esm/{tsMode-4ba96e2b.js → tsMode-0daf7dc9.js} +3 -3
  66. package/dist/esm/{typescript-214d5803.js → typescript-a34ba038.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/dist/types/components/arcade-editor/arcade-editor.d.ts +9 -5
  72. package/dist/types/components/code-editor/code-editor.d.ts +14 -12
  73. package/dist/types/components.d.ts +22 -11
  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/arcade-editor.stories.d.ts +0 -3
  75. package/package.json +9 -9
  76. package/dist/arcgis-coding-components/p-4b5a4653.entry.js +0 -6
@@ -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.45
4
+ * v4.30.0-next.47
5
5
  */
6
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- const index = require('./index-91a65ccf.js');
10
+ const index = require('./index-02749111.js');
11
11
 
12
12
  /*
13
13
  Stencil Client Patch Browser v4.9.0 | MIT Licensed | https://stenciljs.com
@@ -22,7 +22,7 @@ const patchBrowser = () => {
22
22
  };
23
23
 
24
24
  patchBrowser().then(options => {
25
- return index.bootstrapLazy([["arcgis-arcade-api_6.cjs",[[0,"arcgis-arcade-editor",{"profile":[16],"script":[1],"testData":[16],"suggestions":[16],"snippets":[16],"hideDocumentationActions":[4,"hide-documentation-actions"],"hideSideBar":[4,"hide-side-bar"],"sideActionBarExpanded":[1540,"side-action-bar-expanded"],"openedSidePanel":[1537,"opened-side-panel"],"editorOptions":[16],"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]},null,{"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}],[1,"arcgis-arcade-api",{"hideDocumentationActions":[4,"hide-documentation-actions"],"modelId":[1,"model-id"],"_selectedApiItem":[32],"_filterValue":[32],"_colorizeStyle":[32],"_preparingApi":[32],"_apiLibrary":[32]}],[1,"arcgis-arcade-results",{"loading":[4],"openedResultPanel":[1537,"opened-result-panel"],"result":[16],"consoleLogs":[16]}],[1,"arcgis-arcade-suggestions",{"suggestions":[16],"_selectedSuggestion":[32],"_filterValue":[32],"_colorizeStyle":[32]},null,{"suggestions":["suggestionsPropChanged"]}],[1,"arcgis-arcade-variables",{"loading":[4],"modelId":[1,"model-id"],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}],[0,"arcgis-code-editor",{"value":[1],"language":[1],"modelId":[1,"model-id"],"options":[16],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]},null,{"value":["valuePropChange"],"language":["languagePropChange"],"modelId":["modelIdPropChange"],"options":["optionsPropChange"]}]]]], options);
25
+ return index.bootstrapLazy([["arcgis-arcade-api_6.cjs",[[0,"arcgis-arcade-editor",{"profile":[16],"script":[1025],"testData":[16],"suggestions":[16],"snippets":[16],"hideDocumentationActions":[4,"hide-documentation-actions"],"hideSideBar":[4,"hide-side-bar"],"sideActionBarExpanded":[1540,"side-action-bar-expanded"],"openedSidePanel":[1537,"opened-side-panel"],"editorOptions":[16],"editorInstance":[16],"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]},null,{"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}],[1,"arcgis-arcade-api",{"hideDocumentationActions":[4,"hide-documentation-actions"],"modelId":[1,"model-id"],"_selectedApiItem":[32],"_filterValue":[32],"_colorizeStyle":[32],"_preparingApi":[32],"_apiLibrary":[32]}],[1,"arcgis-arcade-results",{"loading":[4],"openedResultPanel":[1537,"opened-result-panel"],"result":[16],"consoleLogs":[16]}],[1,"arcgis-arcade-suggestions",{"suggestions":[16],"_selectedSuggestion":[32],"_filterValue":[32],"_colorizeStyle":[32]},null,{"suggestions":["suggestionsPropChanged"]}],[1,"arcgis-arcade-variables",{"loading":[4],"modelId":[1,"model-id"],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}],[0,"arcgis-code-editor",{"value":[1],"language":[1],"modelId":[1,"model-id"],"options":[16],"editorInstance":[16],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]},null,{"language":["languagePropChange"],"modelId":["modelIdPropChange"],"options":["optionsPropChange"]}]]]], options);
26
26
  });
27
27
 
28
28
  exports.setNonce = index.setNonce;
@@ -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.45
4
+ * v4.30.0-next.47
5
5
  */
6
6
  'use strict';
7
7
 
@@ -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.45
4
+ * v4.30.0-next.47
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-9cd78c83.js');
9
- require('./index-91a65ccf.js');
8
+ const arcadeDefaults = require('./arcade-defaults-4e0664fb.js');
9
+ require('./index-02749111.js');
10
10
 
11
11
  /*!-----------------------------------------------------------------------------
12
12
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -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.45
4
+ * v4.30.0-next.47
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-9cd78c83.js');
9
- require('./index-91a65ccf.js');
8
+ const arcadeDefaults = require('./arcade-defaults-4e0664fb.js');
9
+ require('./index-02749111.js');
10
10
 
11
11
  /*!-----------------------------------------------------------------------------
12
12
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -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.45
4
+ * v4.30.0-next.47
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-9cd78c83.js');
9
- require('./index-91a65ccf.js');
8
+ const arcadeDefaults = require('./arcade-defaults-4e0664fb.js');
9
+ require('./index-02749111.js');
10
10
 
11
11
  /*!-----------------------------------------------------------------------------
12
12
  * 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.45
4
+ * v4.30.0-next.47
5
5
  */
6
6
  'use strict';
7
7
 
@@ -1390,6 +1390,11 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
1390
1390
  }
1391
1391
  }
1392
1392
  if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1393
+ if (instance.componentShouldUpdate) {
1394
+ if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
1395
+ return;
1396
+ }
1397
+ }
1393
1398
  // looks like this value actually changed, so we've got work to do!
1394
1399
  // but only if we've already rendered, otherwise just chill out
1395
1400
  // queue that we need to do an update, but don't worry about queuing
@@ -1,14 +1,14 @@
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.45
4
+ * v4.30.0-next.47
5
5
  */
6
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- const arcadeDefaults = require('./arcade-defaults-9cd78c83.js');
11
- require('./index-91a65ccf.js');
10
+ const arcadeDefaults = require('./arcade-defaults-4e0664fb.js');
11
+ require('./index-02749111.js');
12
12
 
13
13
 
14
14
 
@@ -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.45
4
+ * v4.30.0-next.47
5
5
  */
6
6
  'use strict';
7
7
 
8
- const typescript = require('./typescript-0e0dd0e1.js');
9
- require('./arcade-defaults-9cd78c83.js');
10
- require('./index-91a65ccf.js');
8
+ const typescript = require('./typescript-8ce06335.js');
9
+ require('./arcade-defaults-4e0664fb.js');
10
+ require('./index-02749111.js');
11
11
 
12
12
  /*!-----------------------------------------------------------------------------
13
13
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -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.45
4
+ * v4.30.0-next.47
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-9cd78c83.js');
9
- require('./index-91a65ccf.js');
8
+ const arcadeDefaults = require('./arcade-defaults-4e0664fb.js');
9
+ require('./index-02749111.js');
10
10
 
11
11
  /*!-----------------------------------------------------------------------------
12
12
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,17 +1,17 @@
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.45
4
+ * v4.30.0-next.47
5
5
  */
6
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- const index = require('./index-91a65ccf.js');
10
+ const index = require('./index-02749111.js');
11
11
 
12
12
  const defineCustomElements = (win, options) => {
13
13
  if (typeof window === 'undefined') return undefined;
14
- return index.bootstrapLazy([["arcgis-arcade-api_6.cjs",[[0,"arcgis-arcade-editor",{"profile":[16],"script":[1],"testData":[16],"suggestions":[16],"snippets":[16],"hideDocumentationActions":[4,"hide-documentation-actions"],"hideSideBar":[4,"hide-side-bar"],"sideActionBarExpanded":[1540,"side-action-bar-expanded"],"openedSidePanel":[1537,"opened-side-panel"],"editorOptions":[16],"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]},null,{"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}],[1,"arcgis-arcade-api",{"hideDocumentationActions":[4,"hide-documentation-actions"],"modelId":[1,"model-id"],"_selectedApiItem":[32],"_filterValue":[32],"_colorizeStyle":[32],"_preparingApi":[32],"_apiLibrary":[32]}],[1,"arcgis-arcade-results",{"loading":[4],"openedResultPanel":[1537,"opened-result-panel"],"result":[16],"consoleLogs":[16]}],[1,"arcgis-arcade-suggestions",{"suggestions":[16],"_selectedSuggestion":[32],"_filterValue":[32],"_colorizeStyle":[32]},null,{"suggestions":["suggestionsPropChanged"]}],[1,"arcgis-arcade-variables",{"loading":[4],"modelId":[1,"model-id"],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}],[0,"arcgis-code-editor",{"value":[1],"language":[1],"modelId":[1,"model-id"],"options":[16],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]},null,{"value":["valuePropChange"],"language":["languagePropChange"],"modelId":["modelIdPropChange"],"options":["optionsPropChange"]}]]]], options);
14
+ return index.bootstrapLazy([["arcgis-arcade-api_6.cjs",[[0,"arcgis-arcade-editor",{"profile":[16],"script":[1025],"testData":[16],"suggestions":[16],"snippets":[16],"hideDocumentationActions":[4,"hide-documentation-actions"],"hideSideBar":[4,"hide-side-bar"],"sideActionBarExpanded":[1540,"side-action-bar-expanded"],"openedSidePanel":[1537,"opened-side-panel"],"editorOptions":[16],"editorInstance":[16],"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]},null,{"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}],[1,"arcgis-arcade-api",{"hideDocumentationActions":[4,"hide-documentation-actions"],"modelId":[1,"model-id"],"_selectedApiItem":[32],"_filterValue":[32],"_colorizeStyle":[32],"_preparingApi":[32],"_apiLibrary":[32]}],[1,"arcgis-arcade-results",{"loading":[4],"openedResultPanel":[1537,"opened-result-panel"],"result":[16],"consoleLogs":[16]}],[1,"arcgis-arcade-suggestions",{"suggestions":[16],"_selectedSuggestion":[32],"_filterValue":[32],"_colorizeStyle":[32]},null,{"suggestions":["suggestionsPropChanged"]}],[1,"arcgis-arcade-variables",{"loading":[4],"modelId":[1,"model-id"],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}],[0,"arcgis-code-editor",{"value":[1],"language":[1],"modelId":[1,"model-id"],"options":[16],"editorInstance":[16],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]},null,{"language":["languagePropChange"],"modelId":["modelIdPropChange"],"options":["optionsPropChange"]}]]]], options);
15
15
  };
16
16
 
17
17
  exports.setNonce = index.setNonce;
@@ -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.45
4
+ * v4.30.0-next.47
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-9cd78c83.js');
9
- require('./index-91a65ccf.js');
8
+ const arcadeDefaults = require('./arcade-defaults-4e0664fb.js');
9
+ require('./index-02749111.js');
10
10
 
11
11
  /*!-----------------------------------------------------------------------------
12
12
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -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.45
4
+ * v4.30.0-next.47
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-9cd78c83.js');
9
- require('./index-91a65ccf.js');
8
+ const arcadeDefaults = require('./arcade-defaults-4e0664fb.js');
9
+ require('./index-02749111.js');
10
10
 
11
11
  /*!-----------------------------------------------------------------------------
12
12
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -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.45
4
+ * v4.30.0-next.47
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, a as colorizedAllCodeElements } from './markdown.js';
8
8
  import { f as filterCollection } from './utilities.js';
9
9
  import { Uri } from 'monaco-editor';
10
- import { u as useControllerManager, a as useT9n } from './chunk-HXHHCYA6.js';
10
+ import { u as useControllerManager, a as useT9n } from './chunk-36QZLGG2.js';
11
11
  import { k as setFocusOnElement, f as addLTRMark } from './index2.js';
12
12
  import { b as arcadeDefaults } from './arcade-defaults.js';
13
13
  import { g as getArcadeWorker } from './arcade-contribution.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.45
4
+ * v4.30.0-next.47
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.45
4
+ * v4.30.0-next.47
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.45
4
+ * v4.30.0-next.47
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.45
4
+ * v4.30.0-next.47
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-HXHHCYA6.js';
8
+ import { u as useControllerManager, a as useT9n } from './chunk-36QZLGG2.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";
@@ -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.45
4
+ * v4.30.0-next.47
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-HXHHCYA6.js';
9
+ import { u as useControllerManager, a as useT9n } from './chunk-36QZLGG2.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";
@@ -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.45
4
+ * v4.30.0-next.47
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
7
- import { u as useControllerManager, a as useT9n } from './chunk-HXHHCYA6.js';
7
+ import { u as useControllerManager, a as useT9n } from './chunk-36QZLGG2.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";
@@ -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.45
4
+ * v4.30.0-next.47
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.45
4
+ * v4.30.0-next.47
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-HXHHCYA6.js';
10
+ import { u as useControllerManager, a as useT9n } from './chunk-36QZLGG2.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,7 +22,7 @@ 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
+ 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],"editorInstance":[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"]}];
26
26
  const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeEditor extends HTMLElement {
27
27
  constructor() {
28
28
  super();
@@ -73,8 +73,9 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
73
73
  }
74
74
  };
75
75
  this._openArcadeHelp = () => void window.open(DevelopersWebSitePath, "Arcade Help");
76
- this._emitScriptChange = (e) => {
76
+ this._onCodeEditorValueChange = (e) => {
77
77
  e.stopPropagation();
78
+ this.script = e.detail;
78
79
  this.arcgisScriptChange.emit(e.detail);
79
80
  };
80
81
  this._insertAsSnippet = (e) => void this._codeEditorElt?.insertSnippet(e.detail).catch(console.error);
@@ -100,6 +101,10 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
100
101
  this.sideActionBarExpanded = false;
101
102
  this.openedSidePanel = "none";
102
103
  this.editorOptions = undefined;
104
+ this.editorInstance = this.manager.getSet(undefined, {
105
+ get: () => this._codeEditorElt?.editorInstance,
106
+ set: (_value, prevValue) => prevValue,
107
+ });
103
108
  }
104
109
  _profileChanged() {
105
110
  this._updateEditorProfile().catch(console.error);
@@ -118,12 +123,11 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
118
123
  // #endregion
119
124
  // #region Public methods API
120
125
  /**
121
- * Returns the current script.
122
- * @returns {Promise<string>}
126
+ * @deprecated Use `script` property instead.
123
127
  */
124
128
  async getScript() {
125
129
  await this._componentReadyDefer.promise;
126
- return await this._codeEditorElt?.getValue();
130
+ return this._codeEditorElt?.value;
127
131
  }
128
132
  /**
129
133
  * Set the focus on the element.
@@ -134,12 +138,11 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
134
138
  }
135
139
  /**
136
140
  * @internal
137
- * Returns the editor instance.
138
- * @returns {Promise<IStandaloneCodeEditor>} - The monaco editor instance
141
+ * @deprecated Use `editorInstance` property instead.
139
142
  */
140
143
  async getEditorInstance() {
141
144
  await this._componentReadyDefer.promise;
142
- return await this._codeEditorElt?.getEditorInstance();
145
+ return this._codeEditorElt?.editorInstance;
143
146
  }
144
147
  /**
145
148
  * Returns the Arcade result for the script for the provided test data.
@@ -258,7 +261,7 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
258
261
  //#endregion
259
262
  //#region Render Main Panel
260
263
  renderMainPanel() {
261
- return (h("arcgis-code-editor", { class: "flex-adjustable", language: arcadeDefaults.languageId, value: this.script ?? "", modelId: this._modelId, options: this.editorOptions, onArcgisValueChange: this._emitScriptChange, ref: (e) => (this._codeEditorElt = e) }));
264
+ return (h("arcgis-code-editor", { class: "flex-adjustable", language: arcadeDefaults.languageId, value: this.script ?? "", modelId: this._modelId, options: this.editorOptions, onArcgisValueChange: this._onCodeEditorValueChange, ref: (e) => (this._codeEditorElt = e) }));
262
265
  }
263
266
  //#endregion
264
267
  //#region Rendering the Action Bar
@@ -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.45
4
+ * v4.30.0-next.47
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.45
4
+ * v4.30.0-next.47
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.45
4
+ * v4.30.0-next.47
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.45
5
+ * v4.30.0-next.47
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.45
5
+ * v4.30.0-next.47
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.45
4
+ * v4.30.0-next.47
5
5
  */
6
6
  import { A as ArcgisCodeEditor$1, d as defineCustomElement$1 } from './code-editor.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.45
4
+ * v4.30.0-next.47
5
5
  */
6
6
  import { forceUpdate } from '@stencil/core/internal/client';
7
7
  import { l as importCoreAccessor, m as importCoreAccessorSupportDecorators } from './index2.js';
@@ -1070,7 +1070,6 @@ var ControllerManager = class extends GenericController {
1070
1070
  this._connected = new Deferred();
1071
1071
  this.internals = new ComponentInternals(this.component);
1072
1072
  this.connected = this._connected.promise;
1073
- this.hasDestroy = false;
1074
1073
  this.destroyed = false;
1075
1074
  this._updatePromise = new Deferred();
1076
1075
  this._originalLifecycles = {};
@@ -1141,9 +1140,9 @@ var ControllerManager = class extends GenericController {
1141
1140
  retrieveComponentMeta(component);
1142
1141
  this._controllers = controllers;
1143
1142
  this.exports = void 0;
1144
- this.hasDestroy = "preserveOnDisconnect" in this.component && typeof this.component.destroy === "function";
1143
+ this.hasDestroy = "autoDestroyDisabled" in this.component && typeof this.component.destroy === "function";
1145
1144
  if (this.hasDestroy)
1146
- this.watch("preserveOnDisconnect", () => this._preserveOnDisconnectWatcher());
1145
+ this.watch("autoDestroyDisabled", () => this._autoDestroyDisabledWatcher());
1147
1146
  this._bindLifecycleMethods();
1148
1147
  Object.defineProperty(component, "updateComplete", {
1149
1148
  get: async () => await this._updatePromise.promise
@@ -1196,9 +1195,11 @@ var ControllerManager = class extends GenericController {
1196
1195
  const tagName = this.component.el.tagName.toLowerCase();
1197
1196
  this.component.el.remove();
1198
1197
  throw new Error(
1199
- `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.`
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 autoDestroyDisabled prop.`
1200
1199
  );
1201
1200
  }
1201
+ if (this._autoDestroyTimeout !== void 0)
1202
+ clearTimeout(this._autoDestroyTimeout);
1202
1203
  this.internals.enabledWatchers = this.internals.allWatchers;
1203
1204
  keyTrackResolve();
1204
1205
  this._connected.resolve();
@@ -1215,7 +1216,7 @@ var ControllerManager = class extends GenericController {
1215
1216
  );
1216
1217
  this._originalLifecycles.disconnectedCallback?.call(this.component);
1217
1218
  if (this.hasDestroy)
1218
- this._preserveOnDisconnectWatcher();
1219
+ this._autoDestroyDisabledWatcher();
1219
1220
  }
1220
1221
  async _componentWillLoad() {
1221
1222
  await this.internals.reactiveUtilsIntegration();
@@ -1272,18 +1273,26 @@ var ControllerManager = class extends GenericController {
1272
1273
  return;
1273
1274
  if (this.component.el.isConnected) {
1274
1275
  this.hasDestroy = false;
1275
- this.component.el.remove();
1276
- this.hasDestroy = true;
1276
+ try {
1277
+ this.component.el.remove();
1278
+ } finally {
1279
+ this.hasDestroy = true;
1280
+ }
1277
1281
  }
1282
+ this._autoDestroyTimeout = void 0;
1278
1283
  this.destroyed = true;
1279
1284
  this._controllers.forEach(
1280
1285
  (controller) => "triggerDestroy" in controller ? controller.triggerDestroy() : safeCall(() => controller.hostDestroy?.())
1281
1286
  );
1282
1287
  await this._originalLifecycles.destroy?.call(this.component);
1283
1288
  }
1284
- _preserveOnDisconnectWatcher() {
1285
- if (!this.component.el.isConnected && !this.component.preserveOnDisconnect)
1286
- void this.destroy().catch(console.error);
1289
+ _autoDestroyDisabledWatcher() {
1290
+ if (!this.component.el.isConnected && !this.component.autoDestroyDisabled) {
1291
+ if (this._autoDestroyTimeout !== void 0)
1292
+ clearTimeout(this._autoDestroyTimeout);
1293
+ const destroy = () => void this.destroy().catch(console.error);
1294
+ this._autoDestroyTimeout = setTimeout(destroy, autoDestroyOnDisconnectTimeout);
1295
+ }
1287
1296
  }
1288
1297
  /**
1289
1298
  * Make a @Prop() or @State() readonly (prevent overwriting default value).
@@ -1354,8 +1363,9 @@ var destroyErrorMessage = `
1354
1363
  If the component uses a controller that uses destroy() method, then the
1355
1364
  component must have the following properties:
1356
1365
  ${// Don't expose internal code in production, and keep bundle smaller:
1357
- `preserveOnDisconnect and destroy` }
1366
+ `autoDestroyDisabled and destroy` }
1358
1367
  `.trim();
1368
+ var autoDestroyOnDisconnectTimeout = 1e3;
1359
1369
 
1360
1370
  // src/proxyExports.ts
1361
1371
  var proxyExports = (Class) => (...args) => {