@arcgis/coding-components 4.30.0-next.99 → 4.31.0-next.2

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 (134) hide show
  1. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +3 -3
  2. package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +13 -13
  3. package/dist/arcgis-coding-components/index.esm.js +3 -3
  4. package/dist/arcgis-coding-components/{p-6b70d00e.js → p-03ea6cd7.js} +4 -4
  5. package/dist/arcgis-coding-components/{p-b27225fb.js → p-0c6de9b3.js} +3 -3
  6. package/dist/arcgis-coding-components/{p-df22caf3.js → p-36fedc23.js} +11 -11
  7. package/dist/arcgis-coding-components/p-5ef7cce5.js +6 -0
  8. package/dist/arcgis-coding-components/{p-804fc70c.js → p-60c2a820.js} +3 -3
  9. package/dist/arcgis-coding-components/{p-09fc6deb.js → p-62ee6251.js} +2 -2
  10. package/dist/arcgis-coding-components/{p-88c8c547.js → p-7984ea8e.js} +3 -3
  11. package/dist/arcgis-coding-components/p-81c37dab.entry.js +6 -0
  12. package/dist/arcgis-coding-components/{p-8e5106fd.js → p-93a97573.js} +4 -4
  13. package/dist/arcgis-coding-components/{p-71030413.js → p-9eced6fc.js} +3 -3
  14. package/dist/arcgis-coding-components/{p-c5b5ad43.js → p-bb7e832e.js} +4 -4
  15. package/dist/arcgis-coding-components/{p-0f86fcd3.js → p-e7ee4d64.js} +4 -4
  16. package/dist/arcgis-coding-components/{p-8f59b7ab.js → p-e8211ffe.js} +2 -2
  17. package/dist/cjs/{app-globals-4f0e7eae.js → app-globals-aee5f4b5.js} +2 -2
  18. package/dist/cjs/{arcade-defaults-57559f4d.js → arcade-defaults-a8d8f8e2.js} +130 -69
  19. package/dist/cjs/{arcade-mode-5e9d9501.js → arcade-mode-b85ae7d4.js} +6 -6
  20. package/dist/cjs/{arcgis-arcade-api_6.cjs.entry.js → arcgis-arcade-editor_6.cjs.entry.js} +5090 -5124
  21. package/dist/cjs/arcgis-coding-components.cjs.js +5 -5
  22. package/dist/cjs/{css-3b5f7de7.js → css-7cc05f76.js} +2 -2
  23. package/dist/cjs/{cssMode-ee50e646.js → cssMode-2b0daeae.js} +4 -4
  24. package/dist/cjs/{html-1414ae85.js → html-f56911e1.js} +4 -4
  25. package/dist/cjs/{htmlMode-c04fe1a3.js → htmlMode-43eed674.js} +4 -4
  26. package/dist/cjs/{index-aa7289d7.js → index-b34238a6.js} +4 -4
  27. package/dist/cjs/index.cjs.js +4 -4
  28. package/dist/cjs/{javascript-f871d3e1.js → javascript-5115cb76.js} +5 -5
  29. package/dist/cjs/{jsonMode-d0bba5f8.js → jsonMode-550dda36.js} +4 -4
  30. package/dist/cjs/loader.cjs.js +5 -5
  31. package/dist/cjs/{tsMode-2cee8df6.js → tsMode-336306a9.js} +4 -4
  32. package/dist/cjs/{typescript-e699bcbb.js → typescript-b395242f.js} +4 -4
  33. package/dist/components/arcade-defaults.js +107 -48
  34. package/dist/components/arcade-mode.js +4 -4
  35. package/dist/components/arcade-results.js +5 -5
  36. package/dist/components/arcade-suggestions.js +6 -6
  37. package/dist/components/arcade-variables.js +3 -3
  38. package/dist/components/arcgis-arcade-editor.js +18 -19
  39. package/dist/components/arcgis-arcade-results.js +2 -2
  40. package/dist/components/arcgis-arcade-suggestions.js +2 -2
  41. package/dist/components/arcgis-arcade-variables.js +2 -2
  42. package/dist/components/arcgis-assets.d.ts +2 -2
  43. package/dist/components/arcgis-assets.js +2 -2
  44. package/dist/components/arcgis-code-editor.js +2 -2
  45. package/dist/components/arcgis-language-api-panel.d.ts +11 -0
  46. package/dist/components/arcgis-language-api-panel.js +11 -0
  47. package/dist/components/chunk-IHYYRFLQ.js +3 -3
  48. package/dist/components/code-editor.js +144 -7
  49. package/dist/components/fields.js +2 -2
  50. package/dist/components/index.js +2 -2
  51. package/dist/components/index2.js +3 -3
  52. package/dist/components/{arcade-api.js → language-api-panel.js} +27 -29
  53. package/dist/components/markdown.js +3 -3
  54. package/dist/components/useT9n.js +3 -3
  55. package/dist/components/utilities.js +2 -2
  56. package/dist/esm/{app-globals-1f81b3b1.js → app-globals-59faaf33.js} +2 -2
  57. package/dist/esm/{arcade-defaults-73fede8d.js → arcade-defaults-9eb28407.js} +129 -70
  58. package/dist/esm/{arcade-mode-3719f850.js → arcade-mode-5d46035e.js} +6 -6
  59. package/dist/esm/{arcgis-arcade-api_6.entry.js → arcgis-arcade-editor_6.entry.js} +5087 -5121
  60. package/dist/esm/arcgis-coding-components.js +6 -6
  61. package/dist/esm/{css-a2a21514.js → css-e257dc49.js} +2 -2
  62. package/dist/esm/{cssMode-a8d4806a.js → cssMode-c11f7f40.js} +4 -4
  63. package/dist/esm/{html-7e9fbd0f.js → html-a6c37a99.js} +4 -4
  64. package/dist/esm/{htmlMode-f2cf3793.js → htmlMode-1270bc7d.js} +4 -4
  65. package/dist/esm/{index-3f3310e0.js → index-a970952c.js} +4 -4
  66. package/dist/esm/index.js +4 -4
  67. package/dist/esm/{javascript-a6285ee9.js → javascript-ee179624.js} +5 -5
  68. package/dist/esm/{jsonMode-f88952f9.js → jsonMode-07502ccb.js} +4 -4
  69. package/dist/esm/loader.js +6 -6
  70. package/dist/esm/{tsMode-764b2d3b.js → tsMode-96749a12.js} +4 -4
  71. package/dist/esm/{typescript-7eaebbd1.js → typescript-a3cf9881.js} +4 -4
  72. package/dist/loader/cdn.js +2 -2
  73. package/dist/loader/index.cjs.js +2 -2
  74. package/dist/loader/index.es2017.js +2 -2
  75. package/dist/loader/index.js +2 -2
  76. package/dist/types/components/{arcade-api/arcade-api.d.ts → language-api-panel/language-api-panel.d.ts} +5 -3
  77. package/dist/types/components/{arcade-api → language-api-panel}/t9n-types.d.ts +1 -1
  78. package/dist/types/components.d.ts +57 -53
  79. package/dist/types/dependencies.d.ts +25 -0
  80. package/dist/types/utils/arcade-monaco/arcade-contribution.d.ts +1 -24
  81. package/dist/types/utils/arcade-monaco/arcade-defaults.d.ts +12 -49
  82. package/dist/types/utils/arcade-monaco/arcade-language-features.d.ts +5 -4
  83. package/dist/types/utils/arcade-monaco/arcade-mode.d.ts +3 -2
  84. package/dist/types/utils/arcade-monaco/arcade-service-accessors.d.ts +31 -0
  85. package/dist/types/utils/arcade-monaco/arcade-worker-manager.d.ts +3 -2
  86. package/dist/types/utils/arcade-monaco/arcade.worker.d.ts +5 -5
  87. package/dist/types/utils/arcade-monaco/types.d.ts +6 -35
  88. package/dist/types/utils/language-defaults-base.d.ts +76 -0
  89. package/package.json +11 -10
  90. package/dist/arcgis-coding-components/p-46fac9d8.js +0 -6
  91. package/dist/arcgis-coding-components/p-f7fcef66.entry.js +0 -6
  92. package/dist/components/arcade-contribution.js +0 -181
  93. package/dist/components/arcgis-arcade-api.d.ts +0 -11
  94. package/dist/components/arcgis-arcade-api.js +0 -11
  95. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.ar.json → language-api-panel/t9n/language-api-panel.t9n.ar.json} +0 -0
  96. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.bg.json → language-api-panel/t9n/language-api-panel.t9n.bg.json} +0 -0
  97. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.bs.json → language-api-panel/t9n/language-api-panel.t9n.bs.json} +0 -0
  98. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.ca.json → language-api-panel/t9n/language-api-panel.t9n.ca.json} +0 -0
  99. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.cs.json → language-api-panel/t9n/language-api-panel.t9n.cs.json} +0 -0
  100. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.da.json → language-api-panel/t9n/language-api-panel.t9n.da.json} +0 -0
  101. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.de.json → language-api-panel/t9n/language-api-panel.t9n.de.json} +0 -0
  102. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.el.json → language-api-panel/t9n/language-api-panel.t9n.el.json} +0 -0
  103. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.en.json → language-api-panel/t9n/language-api-panel.t9n.en.json} +0 -0
  104. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.es.json → language-api-panel/t9n/language-api-panel.t9n.es.json} +0 -0
  105. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.et.json → language-api-panel/t9n/language-api-panel.t9n.et.json} +0 -0
  106. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.fi.json → language-api-panel/t9n/language-api-panel.t9n.fi.json} +0 -0
  107. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.fr.json → language-api-panel/t9n/language-api-panel.t9n.fr.json} +0 -0
  108. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.he.json → language-api-panel/t9n/language-api-panel.t9n.he.json} +0 -0
  109. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.hr.json → language-api-panel/t9n/language-api-panel.t9n.hr.json} +0 -0
  110. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.hu.json → language-api-panel/t9n/language-api-panel.t9n.hu.json} +0 -0
  111. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.id.json → language-api-panel/t9n/language-api-panel.t9n.id.json} +0 -0
  112. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.it.json → language-api-panel/t9n/language-api-panel.t9n.it.json} +0 -0
  113. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.ja.json → language-api-panel/t9n/language-api-panel.t9n.ja.json} +0 -0
  114. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.ko.json → language-api-panel/t9n/language-api-panel.t9n.ko.json} +0 -0
  115. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.lt.json → language-api-panel/t9n/language-api-panel.t9n.lt.json} +0 -0
  116. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.lv.json → language-api-panel/t9n/language-api-panel.t9n.lv.json} +0 -0
  117. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.nb.json → language-api-panel/t9n/language-api-panel.t9n.nb.json} +0 -0
  118. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.nl.json → language-api-panel/t9n/language-api-panel.t9n.nl.json} +0 -0
  119. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.pl.json → language-api-panel/t9n/language-api-panel.t9n.pl.json} +0 -0
  120. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.pt-BR.json → language-api-panel/t9n/language-api-panel.t9n.pt-BR.json} +0 -0
  121. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.pt-PT.json → language-api-panel/t9n/language-api-panel.t9n.pt-PT.json} +0 -0
  122. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.ro.json → language-api-panel/t9n/language-api-panel.t9n.ro.json} +0 -0
  123. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.ru.json → language-api-panel/t9n/language-api-panel.t9n.ru.json} +0 -0
  124. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.sk.json → language-api-panel/t9n/language-api-panel.t9n.sk.json} +0 -0
  125. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.sl.json → language-api-panel/t9n/language-api-panel.t9n.sl.json} +0 -0
  126. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.sr.json → language-api-panel/t9n/language-api-panel.t9n.sr.json} +0 -0
  127. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.sv.json → language-api-panel/t9n/language-api-panel.t9n.sv.json} +0 -0
  128. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.th.json → language-api-panel/t9n/language-api-panel.t9n.th.json} +0 -0
  129. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.tr.json → language-api-panel/t9n/language-api-panel.t9n.tr.json} +0 -0
  130. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.uk.json → language-api-panel/t9n/language-api-panel.t9n.uk.json} +0 -0
  131. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.vi.json → language-api-panel/t9n/language-api-panel.t9n.vi.json} +0 -0
  132. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.zh-CN.json → language-api-panel/t9n/language-api-panel.t9n.zh-CN.json} +0 -0
  133. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.zh-HK.json → language-api-panel/t9n/language-api-panel.t9n.zh-HK.json} +0 -0
  134. /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.zh-TW.json → language-api-panel/t9n/language-api-panel.t9n.zh-TW.json} +0 -0
@@ -1,14 +1,14 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
- * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.99
3
+ * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
+ * v4.31.0-next.2
5
5
  */
6
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- const index = require('./index-aa7289d7.js');
11
- const appGlobals = require('./app-globals-4f0e7eae.js');
10
+ const index = require('./index-b34238a6.js');
11
+ const appGlobals = require('./app-globals-aee5f4b5.js');
12
12
 
13
13
  /*
14
14
  Stencil Client Patch Browser v4.17.1 | MIT Licensed | https://stenciljs.com
@@ -24,7 +24,7 @@ var patchBrowser = () => {
24
24
 
25
25
  patchBrowser().then(async (options) => {
26
26
  await appGlobals.globalScripts();
27
- 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],"_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);
27
+ return index.bootstrapLazy([["arcgis-arcade-editor_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],"_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-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"]}],[1,"arcgis-language-api-panel",{"hideDocumentationActions":[4,"hide-documentation-actions"],"modelId":[1,"model-id"],"languageDefaults":[16],"_selectedApiItem":[32],"_filterValue":[32],"_colorizeStyle":[32],"_preparingApi":[32],"_apiLibrary":[32]}]]]], options);
28
28
  });
29
29
 
30
30
  exports.setNonce = index.setNonce;
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
- * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.99
3
+ * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
+ * v4.31.0-next.2
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
- * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.99
3
+ * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
+ * v4.31.0-next.2
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-57559f4d.js');
9
- require('./index-aa7289d7.js');
8
+ const arcadeDefaults = require('./arcade-defaults-a8d8f8e2.js');
9
+ require('./index-b34238a6.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
- * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.99
3
+ * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
+ * v4.31.0-next.2
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-57559f4d.js');
9
- require('./index-aa7289d7.js');
8
+ const arcadeDefaults = require('./arcade-defaults-a8d8f8e2.js');
9
+ require('./index-b34238a6.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
- * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.99
3
+ * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
+ * v4.31.0-next.2
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-57559f4d.js');
9
- require('./index-aa7289d7.js');
8
+ const arcadeDefaults = require('./arcade-defaults-a8d8f8e2.js');
9
+ require('./index-b34238a6.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
- * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.99
3
+ * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
+ * v4.31.0-next.2
5
5
  */
6
6
  'use strict';
7
7
 
@@ -1213,10 +1213,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1213
1213
  }
1214
1214
  switch(bundleId) {
1215
1215
 
1216
- case 'arcgis-arcade-api_6.cjs':
1216
+ case 'arcgis-arcade-editor_6.cjs':
1217
1217
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
1218
1218
  /* webpackMode: "lazy" */
1219
- './arcgis-arcade-api_6.cjs.entry.js')); }).then(processMod, consoleError);
1219
+ './arcgis-arcade-editor_6.cjs.entry.js')); }).then(processMod, consoleError);
1220
1220
  }
1221
1221
  }
1222
1222
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
@@ -1,14 +1,14 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
- * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.99
3
+ * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
+ * v4.31.0-next.2
5
5
  */
6
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- const arcadeDefaults = require('./arcade-defaults-57559f4d.js');
11
- require('./index-aa7289d7.js');
10
+ const arcadeDefaults = require('./arcade-defaults-a8d8f8e2.js');
11
+ require('./index-b34238a6.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
- * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.99
3
+ * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
+ * v4.31.0-next.2
5
5
  */
6
6
  'use strict';
7
7
 
8
- const typescript = require('./typescript-e699bcbb.js');
9
- require('./arcade-defaults-57559f4d.js');
10
- require('./index-aa7289d7.js');
8
+ const typescript = require('./typescript-b395242f.js');
9
+ require('./arcade-defaults-a8d8f8e2.js');
10
+ require('./index-b34238a6.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
- * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.99
3
+ * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
+ * v4.31.0-next.2
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-57559f4d.js');
9
- require('./index-aa7289d7.js');
8
+ const arcadeDefaults = require('./arcade-defaults-a8d8f8e2.js');
9
+ require('./index-b34238a6.js');
10
10
 
11
11
  /*!-----------------------------------------------------------------------------
12
12
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,19 +1,19 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
- * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.99
3
+ * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
+ * v4.31.0-next.2
5
5
  */
6
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- const index = require('./index-aa7289d7.js');
11
- const appGlobals = require('./app-globals-4f0e7eae.js');
10
+ const index = require('./index-b34238a6.js');
11
+ const appGlobals = require('./app-globals-aee5f4b5.js');
12
12
 
13
13
  const defineCustomElements = async (win, options) => {
14
14
  if (typeof window === 'undefined') return undefined;
15
15
  await appGlobals.globalScripts();
16
- 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],"_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);
16
+ return index.bootstrapLazy([["arcgis-arcade-editor_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],"_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-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"]}],[1,"arcgis-language-api-panel",{"hideDocumentationActions":[4,"hide-documentation-actions"],"modelId":[1,"model-id"],"languageDefaults":[16],"_selectedApiItem":[32],"_filterValue":[32],"_colorizeStyle":[32],"_preparingApi":[32],"_apiLibrary":[32]}]]]], options);
17
17
  };
18
18
 
19
19
  exports.setNonce = index.setNonce;
@@ -1,12 +1,12 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
- * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.99
3
+ * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
+ * v4.31.0-next.2
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-57559f4d.js');
9
- require('./index-aa7289d7.js');
8
+ const arcadeDefaults = require('./arcade-defaults-a8d8f8e2.js');
9
+ require('./index-b34238a6.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
- * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.99
3
+ * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
+ * v4.31.0-next.2
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-57559f4d.js');
9
- require('./index-aa7289d7.js');
8
+ const arcadeDefaults = require('./arcade-defaults-a8d8f8e2.js');
9
+ require('./index-b34238a6.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
- * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.99
3
+ * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
+ * v4.31.0-next.2
5
5
  */
6
6
  import { Emitter, Uri } from 'monaco-editor';
7
7
  import { CompletionItemKind, InsertTextMode, InsertTextFormat } from 'vscode-languageserver-types';
@@ -1462,32 +1462,58 @@ async function convertToEditorProfileDefinition(predefinedProfile, locale = "en"
1462
1462
  return editorProfile;
1463
1463
  }
1464
1464
 
1465
- const arcadeLanguageId = "arcade";
1465
+ /**
1466
+ * Returns the arcade diagnostic service.
1467
+ * Example:
1468
+ * ```ts
1469
+ * const diagnosticService = await getArcadeDiagnosticService();
1470
+ * diagnosticService.onDidChangeDiagnostics(({uri, diaganostics }) => {
1471
+ * // Filter the diagnostics for the uri of interest
1472
+ * // Do something with the diagnostics
1473
+ * });
1474
+ * ```
1475
+ */
1476
+ async function getArcadeDiagnosticService() {
1477
+ const mode = await getMode();
1478
+ return mode.getArcadeDiagnosticService();
1479
+ }
1480
+ /**
1481
+ * Returns the arcade worker for the model.
1482
+ * Example:
1483
+ * ```ts
1484
+ * const arcadeWorker = await getArcadeWorker(model.uri);
1485
+ * ```
1486
+ * @returns arcade worker
1487
+ */
1488
+ async function getArcadeWorker(uri) {
1489
+ const mode = await getMode();
1490
+ return await mode.getArcadeWorker(uri);
1491
+ }
1492
+ /**
1493
+ * Request the arcade mode
1494
+ * @returns arcade mode module
1495
+ */
1496
+ async function getMode() {
1497
+ return await import('./arcade-mode.js');
1498
+ }
1499
+
1500
+ // this file contains the building blocks for a language default provider
1466
1501
  const defaultContext = {
1467
1502
  locale: "en",
1468
1503
  };
1469
- class ArcadeLanguageServiceDefaults {
1504
+ class LanguageDefaultsBase {
1470
1505
  constructor() {
1471
- this._languageId = arcadeLanguageId;
1472
- this._languageOptions = {};
1506
+ // #endregion
1507
+ // #region Protected properties
1473
1508
  this._onDidChange = new Emitter();
1474
1509
  this._profileMap = new Map();
1475
1510
  this._apiContextMap = new Map();
1476
1511
  this._onModelContextDidChange = new Emitter();
1477
1512
  this._onDidModelContextChangeTimeout = -1;
1513
+ // #endregion
1478
1514
  }
1479
- get onDidChange() {
1480
- return this._onDidChange.event;
1481
- }
1482
- get onModelContextDidChange() {
1483
- return this._onModelContextDidChange.event;
1484
- }
1485
- get languageId() {
1486
- return this._languageId;
1487
- }
1488
- get languageOptions() {
1489
- return this._languageOptions;
1490
- }
1515
+ // #endregion
1516
+ // #region Protected methods
1491
1517
  _fireModelContextDidChange(key) {
1492
1518
  if (this._onDidModelContextChangeTimeout !== -1) {
1493
1519
  return;
@@ -1503,35 +1529,13 @@ class ArcadeLanguageServiceDefaults {
1503
1529
  }
1504
1530
  return modelId.toString();
1505
1531
  }
1506
- /**
1507
- * Create an EditorProfile for the given model id using the given definition and locale.
1508
- * The EditorProfile is used by the the Arcade Language service as well by the cosing components.
1509
- * The definition can be a pre-defined profile or an editor profile definition.
1510
- * If the locale is not provided then the 'en' locale is used.
1511
- * @param modelId The model id for which to create the context.
1512
- * @param definition The definition to use for the model context.
1513
- * @param locale The locale to use for the model context.
1514
- * @returns The EditorProfile for the model.
1515
- */
1516
- async setProfileForModel(modelId, definition, apiContext = { locale: "en" }) {
1517
- // Convert pre-defined profile to a runtime profile
1518
- if (isPredefinedProfile(definition)) {
1519
- definition = await convertToEditorProfileDefinition(definition, apiContext.locale);
1520
- }
1521
- const intlStrings = await fetchT9NStringsBundle(apiContext.locale, getAssetPath("./assets/arcade-language/t9n"), "profile.t9n.");
1522
- if (!intlStrings) {
1523
- throw new Error(`Failed to load the language bundle for ${apiContext.locale}`);
1524
- }
1525
- this.disposeEditorProfileForModel(modelId);
1526
- const key = this._getApiKey(modelId);
1527
- const editorProfile = new EditorProfile(definition, intlStrings);
1528
- this._profileMap.set(key, editorProfile);
1529
- const apiProfile = await editorProfile.toLSProfile();
1530
- this.updateApiContextForModel(modelId, {
1531
- locale: apiContext.locale,
1532
- profile: apiProfile,
1533
- snippets: apiContext.snippets,
1534
- });
1532
+ // #endregion
1533
+ // #region Public methods
1534
+ get onDidChange() {
1535
+ return this._onDidChange.event;
1536
+ }
1537
+ get languageOptions() {
1538
+ return this._languageOptions;
1535
1539
  }
1536
1540
  /**
1537
1541
  * Dispose the editor profile for the given model id.
@@ -1580,6 +1584,51 @@ class ArcadeLanguageServiceDefaults {
1580
1584
  this._apiContextMap.set(key, { ...currentApiContext, ...apiContext });
1581
1585
  this._fireModelContextDidChange(key);
1582
1586
  }
1587
+ get onModelContextDidChange() {
1588
+ return this._onModelContextDidChange.event;
1589
+ }
1590
+ get languageId() {
1591
+ return this._languageId;
1592
+ }
1593
+ }
1594
+
1595
+ const arcadeLanguageId = "arcade";
1596
+ class ArcadeLanguageServiceDefaults extends LanguageDefaultsBase {
1597
+ constructor() {
1598
+ super(...arguments);
1599
+ this._languageId = arcadeLanguageId;
1600
+ this._languageOptions = {};
1601
+ }
1602
+ /**
1603
+ * Create an EditorProfile for the given model id using the given definition and locale.
1604
+ * The EditorProfile is used by the the Arcade Language service as well by the cosing components.
1605
+ * The definition can be a pre-defined profile or an editor profile definition.
1606
+ * If the locale is not provided then the 'en' locale is used.
1607
+ * @param modelId The model id for which to create the context.
1608
+ * @param definition The definition to use for the model context.
1609
+ * @param locale The locale to use for the model context.
1610
+ * @returns The EditorProfile for the model.
1611
+ */
1612
+ async setProfileForModel(modelId, definition, apiContext = { locale: "en" }) {
1613
+ // Convert pre-defined profile to a runtime profile
1614
+ if (isPredefinedProfile(definition)) {
1615
+ definition = await convertToEditorProfileDefinition(definition, apiContext.locale);
1616
+ }
1617
+ const intlStrings = await fetchT9NStringsBundle(apiContext.locale, getAssetPath("./assets/arcade-language/t9n"), "profile.t9n.");
1618
+ if (!intlStrings) {
1619
+ throw new Error(`Failed to load the language bundle for ${apiContext.locale}`);
1620
+ }
1621
+ this.disposeEditorProfileForModel(modelId);
1622
+ const key = this._getApiKey(modelId);
1623
+ const editorProfile = new EditorProfile(definition, intlStrings);
1624
+ this._profileMap.set(key, editorProfile);
1625
+ const apiProfile = await editorProfile.toLSProfile();
1626
+ this.updateApiContextForModel(modelId, {
1627
+ locale: apiContext.locale,
1628
+ profile: apiProfile,
1629
+ snippets: apiContext.snippets,
1630
+ });
1631
+ }
1583
1632
  /**
1584
1633
  * Set or update the Arcade language service options.
1585
1634
  * @param languageOptions The language options to set.
@@ -1594,10 +1643,20 @@ class ArcadeLanguageServiceDefaults {
1594
1643
  this._languageOptions = { ...this._languageOptions, ...languageOptions };
1595
1644
  this._onDidChange.fire(this);
1596
1645
  }
1646
+ /**
1647
+ * Gets the API library for the given model id.
1648
+ * @param modelId The model id for which to get the API library.
1649
+ * @returns The API library for the model.
1650
+ */
1651
+ async getApiLibrary(modelId) {
1652
+ const uri = Uri.parse(modelId);
1653
+ const worker = await getArcadeWorker(uri);
1654
+ return await worker.getApiLibrary(this.getApiContextForModel(uri));
1655
+ }
1597
1656
  }
1598
1657
  const arcadeDefaults = new ArcadeLanguageServiceDefaults();
1599
1658
  const arcade = {
1600
1659
  setProfileForModel: arcadeDefaults.setProfileForModel.bind(arcadeDefaults),
1601
1660
  };
1602
1661
 
1603
- export { arcade as a, arcadeDefaults as b };
1662
+ export { arcade as a, arcadeDefaults as b, getMode as c, getArcadeDiagnosticService as g };
@@ -1,13 +1,13 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
- * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.99
3
+ * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
+ * v4.31.0-next.2
5
5
  */
6
6
  import { editor, MarkerSeverity, Range, languages, Emitter } from 'monaco-editor';
7
7
  import { CompletionItemKind, DiagnosticSeverity, InsertTextFormat } from 'vscode-languageserver-types';
8
8
  import { u as debounce } from './index2.js';
9
9
 
10
- 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:CompletionItemKind.Constant}));ht.map(t=>({label:t,kind:CompletionItemKind.Keyword}));
10
+ var V={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"},Ee=["++","--"],Je=["-","+","!","~"],Qe=["=","/=","*=","%=","+=","-="],Ze=["||","&&"],Lt=["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"];var U=[[],[],[]];Ee.forEach(t=>U[t.length-1]?.push(t));Je.forEach(t=>U[t.length-1]?.push(t));Ze.forEach(t=>U[t.length-1]?.push(t));Qe.forEach(t=>U[t.length-1]?.push(t));Lt.forEach(t=>U[t.length-1]?.push(t));var ft=Object.values(f),gt=Object.values(V);gt.map(t=>({label:t,kind:CompletionItemKind.Constant}));ft.map(t=>({label:t,kind:CompletionItemKind.Keyword}));
11
11
 
12
12
  const operators = [
13
13
  "<=",
@@ -82,7 +82,7 @@ const arcadeMonarchLanguage = {
82
82
  // builtinFunctions: [...arcadeService.FunctionNames],
83
83
  // Arcade keywords. 'from' is a special case as we want to treat it as a keyword in
84
84
  // import statement but as an identifer in var statement.
85
- keywords: ht.filter((k) => k !== "from"),
85
+ keywords: ft.filter((k) => k !== "from"),
86
86
  operators,
87
87
  constants: ["true", "false", "null"],
88
88
  // we include these common regular expressions
@@ -1,12 +1,12 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
- * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.99
3
+ * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
+ * v4.31.0-next.2
5
5
  */
6
- import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Fragment, Host } from '@stencil/core/internal/client';
6
+ import { proxyCustomElement, HTMLElement, createEvent, h, Fragment, Host, forceUpdate } from '@stencil/core/internal/client';
7
7
  import { g as importArcade, s as supportedFields } from './fields.js';
8
8
  import { u as useControllerManager } from './chunk-IHYYRFLQ.js';
9
- import { s as setValuesInString, r as quoteString } from './index2.js';
9
+ import { s as setValuesInString, q as quoteString } from './index2.js';
10
10
  import { u as useT9n } from './useT9n.js';
11
11
  import "@esri/calcite-components/dist/components/calcite-tree.js";
12
12
  import "@esri/calcite-components/dist/components/calcite-tree-item.js";
@@ -469,7 +469,7 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
469
469
  }))) : null));
470
470
  }
471
471
  render() {
472
- return (h(Host, { key: 'a614339d095dcaa6ba426f3fc104f3628979a019' }, h("header", { key: 'cafdb89380b6a1db8fb478ef61d8dc328907977d', class: "flex-row" }, h("calcite-action-bar", { key: '542065aba5cc9e26ee9259c47e8c067d39aee748', class: "flex-adjustable", layout: "horizontal", scale: "s", expanded: true, "expand-disabled": true }, h("calcite-action-group", { key: 'ca20537be7a679c37ae72ba6556a2448c3ff3a3b', scale: "s" }, h("calcite-action", { key: 'e7cf514c820e23d77663b48190be003b679dd865', active: this.openedResultPanel === "output", text: this.messages.output ?? "Output", "text-enabled": true, scale: "s", icon: "list-show-all", iconFlipRtl: true, onClick: this._switchResultPanel, "data-panel-name": "output" }), h("calcite-action", { key: '086b8bb306556ce5bbe8153a5ebfa42430eef01e', active: this.openedResultPanel === "console", text: this.messages.console ?? "Console", "text-enabled": true, scale: "s", icon: "console", iconFlipRtl: true, onClick: this._switchResultPanel, "data-panel-name": "console" }), h("calcite-action", { key: 'fde3d723183ea294706adf0bb5041bd10234a222', active: this.openedResultPanel === "log", text: this.messages.log ?? "Log", "text-enabled": true, scale: "s", icon: "list", iconFlipRtl: true, onClick: this._switchResultPanel, "data-panel-name": "log" }))), h("calcite-action", { key: '51cc05e32acc8dc0eee956af96fe8541abf613e8', scale: "s", icon: "x", text: this.messages.close ?? "", onClick: this._emitClose })), h("article", { key: 'ce84fa0ec6376e764c3479a9c891dfa02dd7cb10', class: "flex-adjustable" }, this.loading ? (h("calcite-loader", { scale: "s", type: "indeterminate", label: "" })) : (h("div", { class: "flex-column y-scrollable-container" }, this.renderOutputPanel(), this.renderConsolePanel(), this.renderLogPanel())))));
472
+ return (h(Host, { key: 'a614339d095dcaa6ba426f3fc104f3628979a019' }, h("header", { key: 'cafdb89380b6a1db8fb478ef61d8dc328907977d', class: "flex-row" }, h("calcite-action-bar", { key: '542065aba5cc9e26ee9259c47e8c067d39aee748', class: "flex-adjustable", layout: "horizontal", scale: "s", expanded: true, "expand-disabled": true }, h("calcite-action-group", { key: 'ca20537be7a679c37ae72ba6556a2448c3ff3a3b', scale: "s" }, h("calcite-action", { key: 'b9bdd5a0687931d2b40103ec1e506b18292d2bfa', active: this.openedResultPanel === "output", text: this.messages.output ?? "Output", textEnabled: true, scale: "s", icon: "list-show-all", iconFlipRtl: true, onClick: this._switchResultPanel, "data-panel-name": "output" }), h("calcite-action", { key: '74fc4b880b1a60221b06ea758c45bc965723b3f0', active: this.openedResultPanel === "console", text: this.messages.console ?? "Console", textEnabled: true, scale: "s", icon: "console", iconFlipRtl: true, onClick: this._switchResultPanel, "data-panel-name": "console" }), h("calcite-action", { key: 'fc747cc2177d5fcd08ba1dcfa052893e963b28c0', active: this.openedResultPanel === "log", text: this.messages.log ?? "Log", textEnabled: true, scale: "s", icon: "list", iconFlipRtl: true, onClick: this._switchResultPanel, "data-panel-name": "log" }))), h("calcite-action", { key: '6fd3159fd471b10d76f7906fec19298301126829', scale: "s", icon: "x", text: this.messages.close ?? "", onClick: this._emitClose })), h("article", { key: 'a60c039cec36a4408044e37d8b46d29bcda6e6a3', class: "flex-adjustable" }, this.loading ? (h("calcite-loader", { scale: "s", type: "indeterminate", label: "" })) : (h("div", { class: "flex-column y-scrollable-container" }, this.renderOutputPanel(), this.renderConsolePanel(), this.renderLogPanel())))));
473
473
  }
474
474
  static get assetsDirs() { return ["assets"]; }
475
475
  get el() { return this; }
@@ -1,13 +1,13 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
- * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.99
3
+ * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
+ * v4.31.0-next.2
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
7
- import { g as generateColorizeStyles, o as onColorizeThemeChanged, c as convertMarkdownString, b as colorizeCodeElement } from './markdown.js';
7
+ import { g as generateColorizeStyles, o as onColorizeThemeChanged, c as convertMarkdownString, a as colorizeCodeElement } from './markdown.js';
8
8
  import { f as filterCollection } from './utilities.js';
9
9
  import { u as useControllerManager } from './chunk-IHYYRFLQ.js';
10
- import { e as setFocusOnElement } from './index2.js';
10
+ import { t as setFocusOnElement } from './index2.js';
11
11
  import { u as useT9n } from './useT9n.js';
12
12
  import "@esri/calcite-components/dist/components/calcite-list-item-group.js";
13
13
  import "@esri/calcite-components/dist/components/calcite-list-item.js";
@@ -132,10 +132,10 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
132
132
  if (!suggestion) {
133
133
  return null;
134
134
  }
135
- return (h("calcite-flow-item", { heading: this.messages.suggestions, closable: true, onCalciteFlowItemClose: this._emitClose, beforeBack: this._beforeBack }, h("calcite-button", { width: "half", slot: "footer", appearance: "outline", kind: "brand", "icon-start": "code", scale: "s", onClick: this._emitItemSelected, ref: (e) => void e?.setFocus(), "data-item": suggestion }, this.messages.insert), h("calcite-block", { open: true, heading: suggestion.label, description: suggestion.description }, h("div", { innerHTML: convertMarkdownString(suggestion.documentation) }), h("pre", null, h("code", { ref: (e) => e === undefined ? undefined : void colorizeCodeElement(e, suggestion.code).catch(console.error) })))));
135
+ return (h("calcite-flow-item", { heading: this.messages.suggestions, closable: true, onCalciteFlowItemClose: this._emitClose, beforeBack: this._beforeBack }, h("calcite-button", { width: "half", slot: "footer", appearance: "outline", kind: "brand", iconStart: "code", scale: "s", onClick: this._emitItemSelected, ref: (e) => void e?.setFocus(), "data-item": suggestion }, this.messages.insert), h("calcite-block", { open: true, heading: suggestion.label, description: suggestion.description }, h("div", { innerHTML: convertMarkdownString(suggestion.documentation) }), h("pre", null, h("code", { ref: (e) => e === undefined ? undefined : void colorizeCodeElement(e, suggestion.code).catch(console.error) })))));
136
136
  }
137
137
  render() {
138
- return (h(Host, { key: '6707bd25af9f7121687352d99cd02646aec67b9e' }, h("style", { key: 'cbb41e7834f0a353b27cb21fd6cb3ee42dfa7d1f' }, this._colorizeStyle), h("calcite-flow", { key: 'b261c8f3d8dc7e1cf94c2596297509ebfea09d40', ref: (ref) => this.flowFocusHandler(ref) }, h("calcite-flow-item", { key: '9faa9a146dc090e0dce0eb30748d57cbb449b2ee', heading: this.messages.suggestions, closable: true, onCalciteFlowItemClose: this._emitClose }, h("calcite-input", { key: '692b2a425ff4ca843485be5f90bc11fc385373a7', value: this._filterValue, icon: "magnifying-glass", clearable: true, onCalciteInputInput: this._updateFilterValue, class: "sticky", scale: "m" }), h("calcite-list", { key: 'e23fdc3c39e98deb6d4c3268b48e0c289c8aefbf' }, this.renderSuggestionGroups())), this.renderSuggestionFlowItem())));
138
+ return (h(Host, { key: 'fa11f8f0541f31b0979b1efb8cfa48e8808eff67' }, h("style", { key: 'b3cb5ad5e4f9b29b499482b6bd908283a7b3a639' }, this._colorizeStyle), h("calcite-flow", { key: '2827b51aa567edd908a84183ced66999eea3a0a8', ref: (ref) => this.flowFocusHandler(ref) }, h("calcite-flow-item", { key: 'd35292ff615f7cfb26f5d8b88074a9191a7d190c', heading: this.messages.suggestions, closable: true, onCalciteFlowItemClose: this._emitClose }, h("calcite-input", { key: 'f62fe1c21a55a0bb21b65638554735803b620283', value: this._filterValue, icon: "magnifying-glass", clearable: true, onCalciteInputInput: this._updateFilterValue, class: "sticky", scale: "m" }), h("calcite-list", { key: 'bb4c1d9d41a7005f9f768d3ab619200fd697e4f8' }, this.renderSuggestionGroups())), this.renderSuggestionFlowItem())));
139
139
  }
140
140
  static get assetsDirs() { return ["assets"]; }
141
141
  get el() { return this; }
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
- * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.99
3
+ * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
+ * v4.31.0-next.2
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h } from '@stencil/core/internal/client';
7
7
  import { u as useControllerManager } from './chunk-IHYYRFLQ.js';
8
- import { e as setFocusOnElement, d as createFilterExpression } from './index2.js';
8
+ import { t as setFocusOnElement, d as createFilterExpression } from './index2.js';
9
9
  import { b as arcadeDefaults } from './arcade-defaults.js';
10
10
  import { u as useT9n } from './useT9n.js';
11
11
  import "@esri/calcite-components/dist/components/calcite-flow-item.js";