@arcgis/coding-components 4.31.0-next.3 → 4.31.0-next.31

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 (205) hide show
  1. package/README.md +22 -3
  2. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  3. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ar.json +1 -1
  4. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.bg.json +1 -1
  5. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.bs.json +1 -1
  6. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ca.json +6 -6
  7. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.cs.json +1 -1
  8. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.da.json +1 -1
  9. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.de.json +1 -1
  10. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.el.json +1 -1
  11. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.es.json +1 -1
  12. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.et.json +1 -1
  13. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.fi.json +1 -1
  14. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.fr.json +1 -1
  15. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.he.json +1 -1
  16. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.hr.json +1 -1
  17. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.id.json +1 -1
  18. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.it.json +1 -1
  19. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ko.json +1 -1
  20. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.nb.json +1 -1
  21. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.nl.json +1 -1
  22. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.pl.json +1 -1
  23. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.pt-BR.json +1 -1
  24. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.pt-PT.json +1 -1
  25. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ru.json +1 -1
  26. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sk.json +1 -1
  27. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sl.json +1 -1
  28. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sr.json +1 -1
  29. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sv.json +1 -1
  30. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.th.json +1 -1
  31. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.tr.json +1 -1
  32. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.uk.json +5 -5
  33. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.vi.json +1 -1
  34. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.zh-CN.json +1 -1
  35. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.zh-HK.json +1 -1
  36. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.zh-TW.json +1 -1
  37. package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.ca.json +2 -2
  38. package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.de.json +1 -1
  39. package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.he.json +1 -1
  40. package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.ca.json +1 -1
  41. package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.it.json +1 -1
  42. package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +447 -7
  43. package/dist/arcgis-coding-components/assets/language-api-panel/t9n/language-api-panel.t9n.ca.json +1 -1
  44. package/dist/arcgis-coding-components/index.esm.js +2 -2
  45. package/dist/arcgis-coding-components/p-18b2d2f5.js +7 -0
  46. package/dist/arcgis-coding-components/p-25183ed9.js +6 -0
  47. package/dist/arcgis-coding-components/{p-93d0e0cc.js → p-416666a0.js} +12 -12
  48. package/dist/arcgis-coding-components/p-536cdf7f.js +6 -0
  49. package/dist/arcgis-coding-components/{p-9132bc9c.entry.js → p-5c8677cf.entry.js} +2 -2
  50. package/dist/arcgis-coding-components/p-6e7ad639.js +6 -0
  51. package/dist/arcgis-coding-components/p-81152e8f.entry.js +6 -0
  52. package/dist/arcgis-coding-components/{p-86106a9a.js → p-983460ea.js} +1 -1
  53. package/dist/arcgis-coding-components/p-98f1e54e.js +6 -0
  54. package/dist/arcgis-coding-components/{p-111ba641.js → p-9c648939.js} +2 -2
  55. package/dist/arcgis-coding-components/{p-6554a853.js → p-9d4ed924.js} +1 -1
  56. package/dist/arcgis-coding-components/{p-7c6b3d40.js → p-b87b9e87.js} +2 -2
  57. package/dist/arcgis-coding-components/{p-3ca5ba95.entry.js → p-c61b56ec.entry.js} +2 -2
  58. package/dist/arcgis-coding-components/{p-4986aaf2.js → p-c66ece75.js} +3 -3
  59. package/dist/arcgis-coding-components/{p-42c8b545.js → p-c7d40b7a.js} +3 -3
  60. package/dist/arcgis-coding-components/p-e14e15c3.js +6 -0
  61. package/dist/arcgis-coding-components/{p-8b4298d5.js → p-ec21f417.js} +2 -2
  62. package/dist/arcgis-coding-components/{p-c4a5150e.js → p-f257c183.js} +3 -3
  63. package/dist/arcgis-coding-components/{p-5eb82abf.js → p-fc9f9713.js} +2 -2
  64. package/dist/cjs/{app-globals-92c5b499.js → app-globals-a4195754.js} +1 -1
  65. package/dist/cjs/arcade-defaults-eb4c386e.js +349 -0
  66. package/dist/cjs/arcade-language-features-443afb4a.js +274 -0
  67. package/dist/cjs/{arcade-mode-dfd66b4b.js → arcade-mode-b7f29ea1.js} +6 -266
  68. package/dist/cjs/arcgis-arcade-editor_6.cjs.entry.js +20 -26
  69. package/dist/cjs/arcgis-coding-components.cjs.js +5 -5
  70. package/dist/cjs/arcgis-sql-expression-editor.cjs.entry.js +4 -4
  71. package/dist/cjs/arcgis-sql-expression-fields.cjs.entry.js +4 -4
  72. package/dist/cjs/{css-9b0053c3.js → css-69196adc.js} +1 -1
  73. package/dist/cjs/{cssMode-62e53008.js → cssMode-859f4e51.js} +2 -3
  74. package/dist/cjs/{html-3036e89e.js → html-4fbc00a9.js} +2 -3
  75. package/dist/cjs/{htmlMode-c37eee42.js → htmlMode-a72d1bc1.js} +2 -3
  76. package/dist/cjs/{index-be6b2520.js → index-bdf3252c.js} +43 -15
  77. package/dist/cjs/index.cjs.js +4 -4
  78. package/dist/cjs/{javascript-7276c023.js → javascript-58361a1e.js} +3 -4
  79. package/dist/cjs/{jsonMode-baa295f0.js → jsonMode-193bd3e6.js} +2 -3
  80. package/dist/cjs/{language-defaults-base-5817af52.js → language-defaults-base-21562698.js} +842 -1062
  81. package/dist/cjs/loader.cjs.js +4 -4
  82. package/dist/cjs/{sql-expr-defaults-746bbc5f.js → sql-expr-defaults-c60e217b.js} +101 -39
  83. package/dist/cjs/sql-expr-mode-d24b61b3.js +1171 -0
  84. package/dist/cjs/{tsMode-36398912.js → tsMode-7a15853a.js} +2 -3
  85. package/dist/cjs/{typescript-608a420b.js → typescript-f25eb5d3.js} +2 -3
  86. package/dist/components/arcade-defaults.js +238 -4
  87. package/dist/components/arcade-language-features.js +271 -0
  88. package/dist/components/arcade-mode.js +4 -264
  89. package/dist/components/arcade-results.js +3 -3
  90. package/dist/components/arcade-suggestions.js +2 -2
  91. package/dist/components/arcade-variables.js +2 -2
  92. package/dist/components/arcgis-arcade-editor.js +7 -6
  93. package/dist/components/arcgis-arcade-results.js +1 -1
  94. package/dist/components/arcgis-arcade-suggestions.js +1 -1
  95. package/dist/components/arcgis-arcade-variables.js +1 -1
  96. package/dist/components/arcgis-assets.d.ts +1 -1
  97. package/dist/components/arcgis-assets.js +1 -1
  98. package/dist/components/arcgis-code-editor.js +1 -1
  99. package/dist/components/arcgis-language-api-panel.js +1 -1
  100. package/dist/components/arcgis-sql-expression-editor.js +2 -2
  101. package/dist/components/arcgis-sql-expression-fields.js +1 -1
  102. package/dist/components/{chunk-6TARY3NN.js → chunk-EOMOY2EF.js} +12 -17
  103. package/dist/components/code-editor.js +16 -23
  104. package/dist/components/fields.js +22 -4
  105. package/dist/components/index.d.ts +18 -3
  106. package/dist/components/index.js +1 -1
  107. package/dist/components/index2.js +2 -2
  108. package/dist/components/language-api-panel.js +2 -2
  109. package/dist/components/language-defaults-base.js +81 -323
  110. package/dist/components/markdown.js +1 -1
  111. package/dist/components/sql-expr-defaults.js +89 -24
  112. package/dist/components/sql-expr-mode.js +1009 -24971
  113. package/dist/components/sql-expression-fields.js +2 -2
  114. package/dist/components/useT9n.js +2 -2
  115. package/dist/components/utilities.js +1 -1
  116. package/dist/esm/{app-globals-5e178541.js → app-globals-fe777f03.js} +1 -1
  117. package/dist/esm/arcade-defaults-59308750.js +344 -0
  118. package/dist/esm/arcade-language-features-bb595565.js +269 -0
  119. package/dist/esm/{arcade-mode-02336ce9.js → arcade-mode-ecfbfe83.js} +3 -263
  120. package/dist/esm/arcgis-arcade-editor_6.entry.js +21 -27
  121. package/dist/esm/arcgis-coding-components.js +6 -6
  122. package/dist/esm/arcgis-sql-expression-editor.entry.js +4 -4
  123. package/dist/esm/arcgis-sql-expression-fields.entry.js +4 -4
  124. package/dist/esm/{css-e79f1ed1.js → css-5d085688.js} +1 -1
  125. package/dist/esm/{cssMode-cd007d02.js → cssMode-ce6a5fa5.js} +2 -3
  126. package/dist/esm/{html-d079d00d.js → html-3bbdbcc4.js} +2 -3
  127. package/dist/esm/{htmlMode-ff14e035.js → htmlMode-ba97a916.js} +2 -3
  128. package/dist/esm/{index-88fc341d.js → index-c0152d8f.js} +43 -15
  129. package/dist/esm/index.js +4 -4
  130. package/dist/esm/{javascript-69f7c282.js → javascript-882d0f8e.js} +3 -4
  131. package/dist/esm/{jsonMode-18ddadde.js → jsonMode-81390da0.js} +2 -3
  132. package/dist/esm/{language-defaults-base-6687d11a.js → language-defaults-base-98463e74.js} +837 -1062
  133. package/dist/esm/loader.js +5 -5
  134. package/dist/esm/{sql-expr-defaults-2cdfe08a.js → sql-expr-defaults-7dc678a7.js} +100 -40
  135. package/dist/esm/sql-expr-mode-3bee46a2.js +1167 -0
  136. package/dist/esm/{tsMode-c2e5d33a.js → tsMode-c62203dd.js} +2 -3
  137. package/dist/esm/{typescript-a0fbebf0.js → typescript-b12d65fd.js} +2 -3
  138. package/dist/loader/cdn.js +2 -3
  139. package/dist/loader/index.cjs.js +2 -3
  140. package/dist/loader/index.es2017.js +2 -3
  141. package/dist/loader/index.js +2 -3
  142. package/dist/types/components/arcade-editor/arcade-editor.d.ts +13 -3
  143. package/dist/types/components/arcade-results/arcade-results.d.ts +1 -1
  144. package/dist/types/components/arcade-suggestions/arcade-suggestions.d.ts +1 -1
  145. package/dist/types/components/arcade-variables/arcade-variables.d.ts +1 -1
  146. package/dist/types/components/code-editor/code-editor.d.ts +14 -4
  147. package/dist/types/components/language-api-panel/language-api-panel.d.ts +1 -1
  148. package/dist/types/components.d.ts +13 -13
  149. 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 +8 -1
  150. package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/arcade-editor/editorContext.d.ts +5 -1
  151. package/dist/types/stencil-public-runtime.d.ts +3 -8
  152. package/dist/types/utils/arcade-monaco/arcade-language-features.d.ts +1 -0
  153. package/dist/types/utils/arcade-monaco/arcade-profile-strategy.d.ts +9 -0
  154. package/dist/types/utils/fields.d.ts +2 -2
  155. package/dist/types/utils/profile/editor-profile.d.ts +7 -6
  156. package/dist/types/utils/profile/types.d.ts +53 -65
  157. package/dist/types/utils/profile/utils.d.ts +9 -8
  158. package/dist/types/utils/sql-expr-monaco/sql-expr-completion.d.ts +3 -2
  159. package/dist/types/utils/sql-expr-monaco/sql-expr-constants.d.ts +45 -0
  160. package/dist/types/utils/sql-expr-monaco/sql-expr-contribution.d.ts +1 -11
  161. package/dist/types/utils/sql-expr-monaco/sql-expr-defaults.d.ts +0 -1
  162. package/dist/types/utils/sql-expr-monaco/sql-expr-language-features.d.ts +19 -520
  163. package/dist/types/utils/sql-expr-monaco/sql-expr-mode.d.ts +34 -1
  164. package/dist/types/utils/sql-expr-monaco/sql-expr-service-accessors.d.ts +19 -0
  165. package/dist/types/utils/sql-expr-monaco/sql-expr-validation-diagnostic-adapter.d.ts +0 -7
  166. package/dist/types/utils/sql-expr-monaco/sql-expr-validation-utils.d.ts +75 -77
  167. package/dist/types/utils/sql-expr-monaco/sql-expr-validation.d.ts +5 -6
  168. package/dist/types/utils/sql-expr-monaco/sql-expr-worker-manager.d.ts +2 -0
  169. package/dist/types/utils/sql-expr-monaco/sql-expr.worker.d.ts +9 -6
  170. package/dist/types/utils/sql-expr-monaco/sql-expression-profile-strategy.d.ts +13 -0
  171. package/dist/types/utils/sql-expr-monaco/types.d.ts +6 -12
  172. package/package.json +19 -19
  173. package/dist/arcgis-coding-components/p-0105cc95.js +0 -6
  174. package/dist/arcgis-coding-components/p-5e26a360.js +0 -6
  175. package/dist/arcgis-coding-components/p-9c7e0089.js +0 -7
  176. package/dist/arcgis-coding-components/p-b82e98f0.js +0 -6
  177. package/dist/arcgis-coding-components/p-d353f1ba.entry.js +0 -6
  178. package/dist/arcgis-coding-components/p-fe6ccfe0.js +0 -6
  179. package/dist/cjs/arcade-defaults-34e82ff5.js +0 -116
  180. package/dist/cjs/sql-expr-mode-a9f1b697.js +0 -25135
  181. package/dist/esm/arcade-defaults-6dac6b30.js +0 -111
  182. package/dist/esm/polyfills/core-js.js +0 -11
  183. package/dist/esm/polyfills/dom.js +0 -79
  184. package/dist/esm/polyfills/es5-html-element.js +0 -1
  185. package/dist/esm/polyfills/index.js +0 -34
  186. package/dist/esm/polyfills/system.js +0 -6
  187. package/dist/esm/sql-expr-mode-f10e5a43.js +0 -25132
  188. package/dist/types/utils/profile/predefined-profile.d.ts +0 -4
  189. package/dist/types/utils/sql-expr-monaco/DependentFiles/DateOnly.d.ts +0 -41
  190. package/dist/types/utils/sql-expr-monaco/DependentFiles/SqlInterval.d.ts +0 -16
  191. package/dist/types/utils/sql-expr-monaco/DependentFiles/SqlTimestampOffset.d.ts +0 -26
  192. package/dist/types/utils/sql-expr-monaco/DependentFiles/TimeOnly.d.ts +0 -37
  193. package/dist/types/utils/sql-expr-monaco/DependentFiles/UnknownTimeZone.d.ts +0 -11
  194. package/dist/types/utils/sql-expr-monaco/DependentFiles/WhereGrammar.d.ts +0 -122
  195. package/dist/types/utils/sql-expr-monaco/DependentFiles/sqlCompareUtils.d.ts +0 -5
  196. package/dist/types/utils/sql-expr-monaco/DependentFiles/sqlDateParsingUtils.d.ts +0 -18
  197. package/dist/types/utils/sql-expr-monaco/DependentFiles/sqlUtils.d.ts +0 -6
  198. package/dist/types/utils/sql-expr-monaco/DependentFiles/standardizedFunctions.d.ts +0 -156
  199. package/dist/types/utils/sql-expr-monaco/DependentFiles/support.d.ts +0 -150
  200. package/dist/types/utils/sql-expr-monaco/PeggyGrammar/sql92grammar.d.ts +0 -1397
  201. package/dist/types/utils/sql-expr-monaco/libraries/date/properties/index.d.ts +0 -59
  202. package/dist/types/utils/sql-expr-monaco/libraries/numeric/properties/index.d.ts +0 -295
  203. package/dist/types/utils/sql-expr-monaco/libraries/string/properties/index.d.ts +0 -135
  204. package/dist/types/utils/sql-expr-monaco/sql-expr-validation-adapter.d.ts +0 -3
  205. package/dist/types/utils/sql-expr-profile/predefined-profile.d.ts +0 -2
@@ -1,16 +1,16 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.3
4
+ * v4.31.0-next.31
5
5
  */
6
- import { b as bootstrapLazy } from './index-88fc341d.js';
7
- export { s as setNonce } from './index-88fc341d.js';
8
- import { g as globalScripts } from './app-globals-5e178541.js';
6
+ import { b as bootstrapLazy } from './index-c0152d8f.js';
7
+ export { s as setNonce } from './index-c0152d8f.js';
8
+ import { g as globalScripts } from './app-globals-fe777f03.js';
9
9
 
10
10
  const defineCustomElements = async (win, options) => {
11
11
  if (typeof window === 'undefined') return undefined;
12
12
  await globalScripts();
13
- return bootstrapLazy([["arcgis-sql-expression-fields",[[1,"arcgis-sql-expression-fields",{"loading":[4],"modelId":[1,"model-id"],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}]]],["arcgis-arcade-editor_6",[[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],"_preparingArcade":[32],"_editorProfile":[32],"_apiLibrary":[32],"_showExecutionPanel":[32],"_resultPanel":[32],"_executingScript":[32],"_consoleLogs":[32],"_executionResult":[32],"messages":[32],"getScript":[64],"setFocus":[64],"getEditorInstance":[64],"getTestResult":[64],"updateThemeColors":[64]},null,{"messages":["_messagesChanged"],"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"],"loading":[4],"apiLibrary":[16],"_selectedApiItem":[32],"_filterValue":[32],"_colorizeStyle":[32]}]]],["arcgis-sql-expression-editor",[[0,"arcgis-sql-expression-editor",{"profile":[16],"_preparing":[32],"_editorProfile":[32],"_activeAction":[32],"_apiLibrary":[32]},null,{"profile":["_profileChanged"]}]]]], options);
13
+ return bootstrapLazy([["arcgis-sql-expression-fields",[[1,"arcgis-sql-expression-fields",{"loading":[4],"modelId":[1,"model-id"],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}]]],["arcgis-arcade-editor_6",[[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],"_preparingArcade":[32],"_editorProfile":[32],"_apiLibrary":[32],"_showExecutionPanel":[32],"_resultPanel":[32],"_executingScript":[32],"_consoleLogs":[32],"_executionResult":[32],"messages":[32],"getScript":[64],"setFocus":[64],"getEditorInstance":[64],"getTestResult":[64],"updateThemeColors":[64]},null,{"messages":["_messagesChanged"],"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"],"editorOptions":[16],"editorInstance":[16],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]},null,{"language":["languagePropChange"],"modelId":["modelIdPropChange"],"editorOptions":["editorOptionsPropChange"]}],[1,"arcgis-language-api-panel",{"hideDocumentationActions":[4,"hide-documentation-actions"],"loading":[4],"apiLibrary":[16],"_selectedApiItem":[32],"_filterValue":[32],"_colorizeStyle":[32]}]]],["arcgis-sql-expression-editor",[[0,"arcgis-sql-expression-editor",{"profile":[16],"_preparing":[32],"_editorProfile":[32],"_activeAction":[32],"_apiLibrary":[32]},null,{"profile":["_profileChanged"]}]]]], options);
14
14
  };
15
15
 
16
16
  export { defineCustomElements };
@@ -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.31/esri/copyright.txt for details.
4
- * v4.31.0-next.3
4
+ * v4.31.0-next.31
5
5
  */
6
- import { y as isNotUndefined, D as Deferred, z as safeAsyncCall, A as devToolsAwareTimeout, B as safeCall, i as isPredefinedProfile, C as isFeatureSetDefinition, F as main, L as LanguageDefaultsBase, f as fetchT9nStringsBundle, E as EditorProfile, U as Uri } from './language-defaults-base-6687d11a.js';
7
- import { g as getAssetPath } from './index-88fc341d.js';
6
+ import { F as isNotUndefined, D as Deferred, G as safeAsyncCall, H as devToolsAwareTimeout, J as safeCall, f as fieldsToProfileValues, i as isPredefinedProfile, b as isFeatureSetDefinition, m as main, L as LanguageDefaultsBase, d as fetchT9nStringsBundle, E as EditorProfile, U as Uri } from './language-defaults-base-98463e74.js';
7
+ import { g as getAssetPath } from './index-c0152d8f.js';
8
8
 
9
9
  // src/framework.ts
10
10
  function retrieveComponentMembers(component, isLit) {
@@ -16,7 +16,7 @@ function retrieveComponentMembers(component, isLit) {
16
16
  ([name, descriptor]) => descriptor.noAccessor ? void 0 : [
17
17
  name,
18
18
  [
19
- (descriptor.readonly ? 2048 /* Readonly */ : 0) | (descriptor.state ? 32 /* State */ : descriptor.type === Number ? 2 /* Number */ : descriptor.type === Boolean ? 4 /* Boolean */ : 1 /* String */)
19
+ (descriptor.readOnly ? 2048 /* ReadOnly */ : 0) | (descriptor.state ? 32 /* State */ : descriptor.type === Number ? 2 /* Number */ : descriptor.type === Boolean ? 4 /* Boolean */ : 1 /* String */)
20
20
  ]
21
21
  ]
22
22
  ).filter(isNotUndefined)
@@ -142,10 +142,11 @@ var useRefSync = (value) => {
142
142
  var shouldBypass = {
143
143
  setter: false,
144
144
  getter: false,
145
- readonly: false
145
+ readOnly: false
146
146
  };
147
147
  var elementToInstance = /* @__PURE__ */ new WeakMap();
148
148
  var _a;
149
+ _a = controllerSymbol;
149
150
  var Controller = class {
150
151
  constructor(component) {
151
152
  this._callbacks = {
@@ -411,16 +412,10 @@ var Controller = class {
411
412
  });
412
413
  }
413
414
  };
414
- _a = controllerSymbol;
415
415
  function callUpdate(callback) {
416
416
  safeCall(callback, void 0, this);
417
417
  }
418
- var GenericController = class extends Controller {
419
- // Redundant constructor needed to improve typing
420
- constructor(component) {
421
- super(component);
422
- }
423
- };
418
+ var GenericController = Controller;
424
419
  function makeProvisionalValue(base) {
425
420
  if (typeof base !== "object" && typeof base !== "function" || base === null) {
426
421
  return base;
@@ -518,7 +513,7 @@ var ComponentInternals = class {
518
513
  this.enabledWatchers = {};
519
514
  this.allWatchers = {};
520
515
  /**
521
- * "readonly" is not enabled initially since we need to allow to set property
516
+ * "readOnly" is not enabled initially since we need to allow to set property
522
517
  * default values in the constructor.
523
518
  * For Stencil, readonly is enabled by the `readonly()` controller.
524
519
  * For Lit, we have the following logic:
@@ -531,7 +526,7 @@ var ComponentInternals = class {
531
526
  const internals = this.component.manager.internals;
532
527
  Object.entries(internals.members).forEach(([name2, [type]]) => {
533
528
  var _a2;
534
- const isReadOnly = type & 2048 /* Readonly */;
529
+ const isReadOnly = type & 2048 /* ReadOnly */;
535
530
  if (isReadOnly) {
536
531
  (_a2 = internals.setters)[name2] ?? (_a2[name2] = []);
537
532
  internals.setters[name2].push(internals.readonlySetter);
@@ -547,7 +542,7 @@ var ComponentInternals = class {
547
542
  this.reactiveUtilsIntegrations = /* @__PURE__ */ new Set();
548
543
  this._exports = /* @__PURE__ */ new WeakMap();
549
544
  this.readonlySetter = (newValue, _oldValue, property) => {
550
- if (shouldBypass.readonly) {
545
+ if (shouldBypass.readOnly) {
551
546
  return newValue;
552
547
  }
553
548
  throw new Error(
@@ -1052,12 +1047,12 @@ function genericGetSet(component, property, getSet2) {
1052
1047
  }
1053
1048
  }
1054
1049
  var ignoreSet = (_, value) => value;
1055
- function bypassReadonly(callback) {
1056
- shouldBypass.readonly = true;
1050
+ function bypassReadOnly(callback) {
1051
+ shouldBypass.readOnly = true;
1057
1052
  try {
1058
1053
  return callback();
1059
1054
  } finally {
1060
- shouldBypass.readonly = false;
1055
+ shouldBypass.readOnly = false;
1061
1056
  }
1062
1057
  }
1063
1058
 
@@ -1108,7 +1103,7 @@ function setProxy(controller, { host, key, isReactive: assignedToProp }, initial
1108
1103
  const manager = controller.component.manager;
1109
1104
  const isReadOnly = manager.internals.setters[key]?.includes(manager.internals.readonlySetter);
1110
1105
  if (isReadOnly) {
1111
- bypassReadonly(() => {
1106
+ bypassReadOnly(() => {
1112
1107
  genericHost[key] = controller.exports;
1113
1108
  });
1114
1109
  } else {
@@ -1157,6 +1152,56 @@ var FunctionalController = class extends Controller {
1157
1152
  };
1158
1153
  var proxy = proxyExports(FunctionalController);
1159
1154
 
1155
+ // #region convert editor profile to apiProfile
1156
+ /**
1157
+ * Converts an editor profile to an api profile.
1158
+ * The api profile is an optimized version of the editor profile designed for minimal data transfer between the main thread and the worker.
1159
+ */
1160
+ const sqlExprEditorToApiProfile = (editorProfile) => {
1161
+ const { apiVersion, bundles, hiddenApiItems } = editorProfile.toEditorProfileDefinition();
1162
+ const variable = editorProfile.variables[0];
1163
+ if (!variable || !(variable.type === "featureSet")) {
1164
+ throw Error("No variable found in the editor profile");
1165
+ }
1166
+ const hydratedVariable = variableToApiProfile(variable);
1167
+ return {
1168
+ apiVersion,
1169
+ bundles,
1170
+ variables: [hydratedVariable],
1171
+ hiddenApiItems: hiddenApiItems?.map((s) => s.toLowerCase()),
1172
+ };
1173
+ };
1174
+ function variableToApiProfile(variable) {
1175
+ const { name } = variable;
1176
+ const description = variable.getDescription();
1177
+ const { definition } = variable.toProfileVariableDefinition();
1178
+ const resultCompletion = {
1179
+ label: name,
1180
+ detail: name,
1181
+ insertText: name,
1182
+ insertTextMode: main.exports.InsertTextMode.asIs,
1183
+ insertTextFormat: main.exports.InsertTextFormat.PlainText,
1184
+ kind: main.exports.CompletionItemKind.Field,
1185
+ };
1186
+ const result = {
1187
+ name,
1188
+ description,
1189
+ type: "dictionary",
1190
+ properties: [],
1191
+ completion: resultCompletion,
1192
+ };
1193
+ // No fields or definition, then it will be a feature without any known fields
1194
+ if (!definition || !("fields" in definition)) {
1195
+ return result;
1196
+ }
1197
+ // Create properties for the fields
1198
+ // Also improve the feature completion documentation
1199
+ // TODO: should we add aliases to completion? what about domains?
1200
+ const [properties, featureCompletionDescription] = fieldsToProfileValues(definition.fields, description);
1201
+ result.properties = properties;
1202
+ resultCompletion.documentation = { kind: "markdown", value: featureCompletionDescription };
1203
+ return result;
1204
+ }
1160
1205
  const tempHardcodedProfile = {
1161
1206
  en: {
1162
1207
  id: "field-calculation",
@@ -1205,16 +1250,40 @@ async function convertToEditorProfileDefinition(predefinedProfile, locale = "en"
1205
1250
  });
1206
1251
  return editorProfile;
1207
1252
  }
1253
+ // #endregion
1254
+ // #region profile utils
1255
+ /**
1256
+ * util to retrieve fields from the $layer variable in the api context.
1257
+ */
1258
+ const getFieldsFromLayerVariable = (profile) => {
1259
+ if (profile.variables) {
1260
+ const layerVar = profile.variables.find((variable) => variable.name === "$layer" && variable.type === "dictionary");
1261
+ return layerVar.properties ?? [];
1262
+ }
1263
+ return [];
1264
+ };
1265
+ // #endregion
1208
1266
 
1209
- function x(i){return Array.isArray(i.testSdkCategories)}async function S(i,n){try{let e=await i,t=new Map,r=new Map,a=[],o=k(n);return e.forEach(p=>{let c=[];p.items.forEach(s=>V(c,r,t,o,s)),c.length&&a.push({...p,items:c});}),{categories:a,functionDefinitions:t,constantDefinitions:r}}catch{return {categories:[],functionDefinitions:new Map,constantDefinitions:new Map}}}var g=class{constructor(n){this._settings=n;this.sdkCategoriesCache=new Map;}async getApiDatabase(n){let{locale:e="en"}=n,t=this.sdkCategoriesCache.get(e);if(!t){let{assetsPath:r}=this._settings;if(!r)return {categories:[],functionDefinitions:new Map,constantDefinitions:new Map};t=this.loadSdkApiLibrary(e,r),this.sdkCategoriesCache.set(e,t);}return await S(t,n)}async getApiLibrary(n){let{categories:e}=await this.getApiDatabase(n);return e}async loadSdkApiLibrary(n="en",e=""){if(x(this._settings))return this._settings.testSdkCategories;if(e=e.replace(/\/$/u,""),!e)return [];try{let t=this._settings.apiPathTemplate.replace("${assetsPath}",e).replace("${locale}",n),r=await fetch(t);return r.ok?await r.json():n==="en"?[]:await this.loadSdkApiLibrary("en",e)}catch{return []}}};function k(i){let{profile:{apiVersion:n,bundles:e,hiddenApiItems:t=[]}={}}=i,r=A(n),a=Array.isArray(e)&&e.length>0?new Set(["core",...e]):void 0;return o=>h(r,o.sinceVersion)&&(!a||a.has(o.bundle))&&!t.includes(o.name)}function V(i,n,e,t,r){if(Array.isArray(r)){r.forEach(a=>m(i,e,t,a));return}r.type==="constant"?D(i,n,t,r):m(i,e,t,r);}function m(i,n,e,t){if(!e(t))return;t.disableDocumentation||i.push(t);let{completion:{label:r}}=t,a=r.toLowerCase(),o=n.get(a);o||(o={type:"functionDefinition",key:a,overloads:[]},n.set(a,o)),o.overloads.push(t);}function D(i,n,e,t){if(!e(t))return;i.push(t);let{completion:{label:r}}=t,a=r.toLowerCase();n.set(a,t);let[o,p]=t.completion.label.split(".");if(!p)return;let c=o.toLowerCase(),s=n.get(c);s||(s={type:"namespace",key:c,members:[],completion:{label:o,detail:o,insertText:o,insertTextMode:main.exports.InsertTextMode.adjustIndentation,insertTextFormat:main.exports.InsertTextFormat.PlainText,kind:main.exports.CompletionItemKind.Enum}},n.set(c,s));let l=structuredClone(t);l.name=p,l.completion.label=p,l.completion.insertText=p,l.completion.kind=main.exports.CompletionItemKind.Constant,s.members.push(l),s.completion.documentation=s.members.reduce((u,d)=>(u.value=`${u.value}${u.value?`
1210
-
1211
- `:""}**${d.completion.label}**: ${d.description}`,u),{kind:main.exports.MarkupKind.Markdown,value:""});}function A(i){if(!i||typeof i!="string")return null;let n=i.split(".").map(r=>Number.parseInt(r));if(n.some(Number.isNaN))return console.error("Invalid API version string",i),null;let[e,t]=n.slice(0,2);return {major:e,minor:t}}function h(i,n){if(!i)return !0;let e=A(n);return e?i.major>e.major?!1:i.minor===void 0||e.minor===void 0?!0:e.minor<=i.minor:!0}
1267
+ /**
1268
+ * Returns the sql-expression worker for the model.
1269
+ * Example:
1270
+ * ```ts
1271
+ * const sqlExpressionWorker = await getSqlExpressionWorker(model.uri);
1272
+ * ```
1273
+ * @returns sql-expression worker
1274
+ */
1275
+ async function getSqlExprWorker(uri) {
1276
+ const mode = await getMode();
1277
+ return await mode.getSqlExprWorker(uri);
1278
+ }
1279
+ /**
1280
+ * Request the sql-expression mode
1281
+ * @returns sql-expression mode module
1282
+ */
1283
+ async function getMode() {
1284
+ return await import('./sql-expr-mode-3bee46a2.js');
1285
+ }
1212
1286
 
1213
- // const defaultContext: ApiContext = {
1214
- // locale: "en",
1215
- // };
1216
- // eslint-disable-next-line no-template-curly-in-string
1217
- const apiPathTemplate = "${assetsPath}/api/sql-expression-api.t9n.${locale}.json";
1218
1287
  const languageId = "arcgis-sql-expression";
1219
1288
  class SqlExprDefaults extends LanguageDefaultsBase {
1220
1289
  constructor() {
@@ -1227,7 +1296,6 @@ class SqlExprDefaults extends LanguageDefaultsBase {
1227
1296
  updateFeatureLayerForModel(modelId, layer) {
1228
1297
  const key = this._getApiKey(modelId);
1229
1298
  this._layerMap.set(key, layer);
1230
- this._onDidChange.fire(this);
1231
1299
  }
1232
1300
  setLanguageOptions(languageOptions) {
1233
1301
  this._languageOptions = languageOptions;
@@ -1250,7 +1318,7 @@ class SqlExprDefaults extends LanguageDefaultsBase {
1250
1318
  const key = this._getApiKey(modelId);
1251
1319
  const editorProfile = new EditorProfile(definition, intlStrings);
1252
1320
  this._profileMap.set(key, editorProfile);
1253
- const apiProfile = await editorProfile.toLSProfile();
1321
+ const apiProfile = sqlExprEditorToApiProfile(editorProfile);
1254
1322
  this.updateApiContextForModel(modelId, {
1255
1323
  locale: apiContext.locale,
1256
1324
  profile: apiProfile,
@@ -1262,18 +1330,10 @@ class SqlExprDefaults extends LanguageDefaultsBase {
1262
1330
  }
1263
1331
  async getApiLibrary(modelId) {
1264
1332
  const uri = Uri.parse(modelId);
1265
- let service = this._apiService;
1266
- if (!service) {
1267
- service = new g({
1268
- assetsPath: getAssetPath("./assets/sql-expression-editor"),
1269
- languageId,
1270
- apiPathTemplate,
1271
- });
1272
- this._apiService = service;
1273
- }
1274
- return await service.getApiLibrary(this.getApiContextForModel(uri));
1333
+ const worker = await getSqlExprWorker(uri);
1334
+ return await worker.getApiLibrary(this.getApiContextForModel(uri));
1275
1335
  }
1276
1336
  }
1277
1337
  const sqlExprDefaults = new SqlExprDefaults();
1278
1338
 
1279
- export { getSet as g, makeController as m, sqlExprDefaults as s, useControllerManager as u, watch as w };
1339
+ export { getMode as a, getFieldsFromLayerVariable as b, getSet as g, makeController as m, sqlExprDefaults as s, useControllerManager as u, watch as w };