@arcgis/coding-components 4.31.0-next.86 → 4.31.0-next.88

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 (107) hide show
  1. package/dist/arcgis-coding-components/arcgis-coding-components.css +1 -1
  2. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  3. package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +26 -26
  4. package/dist/arcgis-coding-components/index.esm.js +2 -2
  5. package/dist/arcgis-coding-components/{p-d87abcac.js → p-0831d7e3.js} +10 -10
  6. package/dist/arcgis-coding-components/p-20cbb2be.entry.js +6 -0
  7. package/dist/arcgis-coding-components/{p-eaa982e5.js → p-446add2c.js} +2 -2
  8. package/dist/arcgis-coding-components/{p-57561f5a.js → p-5e5ee397.js} +2 -2
  9. package/dist/arcgis-coding-components/p-63d471e6.entry.js +6 -0
  10. package/dist/arcgis-coding-components/{p-beb8be6a.js → p-68d93bec.js} +2 -2
  11. package/dist/arcgis-coding-components/{p-214f0943.js → p-7199d246.js} +1 -1
  12. package/dist/arcgis-coding-components/{p-229a8da8.js → p-8590c168.js} +2 -2
  13. package/dist/arcgis-coding-components/{p-0126f49c.js → p-86517ba4.js} +2 -2
  14. package/dist/arcgis-coding-components/{p-b2ba8b34.js → p-8ac43937.js} +2 -2
  15. package/dist/arcgis-coding-components/{p-bf26b459.js → p-8d2811d6.js} +2 -2
  16. package/dist/arcgis-coding-components/{p-2897bc2e.js → p-9705a7c3.js} +2 -2
  17. package/dist/arcgis-coding-components/{p-78e2178d.entry.js → p-b1766017.entry.js} +2 -2
  18. package/dist/arcgis-coding-components/p-b3a07d3d.js +6 -0
  19. package/dist/arcgis-coding-components/{p-18de61b2.js → p-b47d0934.js} +1 -1
  20. package/dist/arcgis-coding-components/{p-18697781.js → p-cd94eef5.js} +2 -2
  21. package/dist/arcgis-coding-components/p-d99cfac0.js +6 -0
  22. package/dist/arcgis-coding-components/{p-203f2b89.js → p-dfc23342.js} +1 -1
  23. package/dist/cjs/{app-globals-85e23764.js → app-globals-c671eae8.js} +1 -1
  24. package/dist/cjs/{arcade-defaults-facf9b04.js → arcade-defaults-87cb0d4e.js} +3 -3
  25. package/dist/cjs/{arcade-mode-e0cd67d7.js → arcade-mode-05be84a4.js} +4 -4
  26. package/dist/cjs/arcgis-arcade-editor_6.cjs.entry.js +59 -93
  27. package/dist/cjs/arcgis-coding-components.cjs.js +4 -4
  28. package/dist/cjs/arcgis-sql-expression-editor.cjs.entry.js +10 -7
  29. package/dist/cjs/arcgis-sql-expression-fields.cjs.entry.js +4 -4
  30. package/dist/cjs/{css-c6bedad3.js → css-6993712b.js} +1 -1
  31. package/dist/cjs/{cssMode-bd1cd2db.js → cssMode-5e68ccad.js} +3 -3
  32. package/dist/cjs/{html-4b409ccd.js → html-8856cd07.js} +3 -3
  33. package/dist/cjs/{htmlMode-9e8b3aa4.js → htmlMode-586acc8e.js} +3 -3
  34. package/dist/cjs/{index-de0083ae.js → index-926e4742.js} +1 -1
  35. package/dist/cjs/index.cjs.js +4 -4
  36. package/dist/cjs/{javascript-35af1f5f.js → javascript-d6c61309.js} +4 -4
  37. package/dist/cjs/{jsonMode-0a52bfb9.js → jsonMode-6eaf1ab6.js} +3 -3
  38. package/dist/cjs/loader.cjs.js +4 -4
  39. package/dist/cjs/{sql-expr-defaults-5d12bac1.js → sql-expr-defaults-53f5441c.js} +10 -10
  40. package/dist/cjs/{sql-expr-mode-e3735afc.js → sql-expr-mode-b8b5dec0.js} +5 -9
  41. package/dist/cjs/{tsMode-a398c1de.js → tsMode-c5f1d89c.js} +3 -3
  42. package/dist/cjs/{typescript-73ba924b.js → typescript-0cee7fa8.js} +3 -3
  43. package/dist/cjs/{useT9n-81259a51.js → useT9n-7c90f507.js} +3 -3
  44. package/dist/components/arcade-defaults.js +1 -1
  45. package/dist/components/arcade-mode.js +2 -2
  46. package/dist/components/arcade-results.js +1 -1
  47. package/dist/components/arcade-suggestions.js +1 -1
  48. package/dist/components/arcgis-arcade-editor.js +6 -27
  49. package/dist/components/arcgis-arcade-results.js +1 -1
  50. package/dist/components/arcgis-arcade-suggestions.js +1 -1
  51. package/dist/components/arcgis-assets.d.ts +1 -1
  52. package/dist/components/arcgis-assets.js +1 -1
  53. package/dist/components/arcgis-code-editor.js +1 -1
  54. package/dist/components/arcgis-editor-variables.js +1 -1
  55. package/dist/components/arcgis-language-api-panel.js +1 -1
  56. package/dist/components/arcgis-sql-expression-editor.js +7 -4
  57. package/dist/components/arcgis-sql-expression-fields.js +1 -1
  58. package/dist/components/chunk-IUUKU7EW.js +2 -2
  59. package/dist/components/code-editor.js +54 -67
  60. package/dist/components/editor-variables.js +1 -1
  61. package/dist/components/fields.js +1 -1
  62. package/dist/components/index.js +1 -1
  63. package/dist/components/index2.js +2 -2
  64. package/dist/components/language-api-panel.js +1 -1
  65. package/dist/components/markdown.js +1 -1
  66. package/dist/components/sql-expr-defaults.js +1 -1
  67. package/dist/components/sql-expr-mode.js +3 -7
  68. package/dist/components/useT9n.js +1 -1
  69. package/dist/components/utilities.js +1 -1
  70. package/dist/esm/{app-globals-69d652cb.js → app-globals-8347c4b3.js} +1 -1
  71. package/dist/esm/{arcade-defaults-5c1697c8.js → arcade-defaults-50d9d8c8.js} +3 -3
  72. package/dist/esm/{arcade-mode-b9b3758f.js → arcade-mode-7edef4e0.js} +4 -4
  73. package/dist/esm/arcgis-arcade-editor_6.entry.js +59 -93
  74. package/dist/esm/arcgis-coding-components.js +5 -5
  75. package/dist/esm/arcgis-sql-expression-editor.entry.js +10 -7
  76. package/dist/esm/arcgis-sql-expression-fields.entry.js +4 -4
  77. package/dist/esm/{css-e7d7c494.js → css-9f8f8b62.js} +1 -1
  78. package/dist/esm/{cssMode-8f0b2005.js → cssMode-16f9393b.js} +3 -3
  79. package/dist/esm/{html-e1f91da6.js → html-6400ea87.js} +3 -3
  80. package/dist/esm/{htmlMode-8fdef8e9.js → htmlMode-649bdb55.js} +3 -3
  81. package/dist/esm/{index-80add115.js → index-25e5e252.js} +1 -1
  82. package/dist/esm/index.js +4 -4
  83. package/dist/esm/{javascript-a0ba9bde.js → javascript-53af5e46.js} +4 -4
  84. package/dist/esm/{jsonMode-5c4f6e92.js → jsonMode-40045ac2.js} +3 -3
  85. package/dist/esm/loader.js +5 -5
  86. package/dist/esm/{sql-expr-defaults-b1553413.js → sql-expr-defaults-d147b45c.js} +11 -11
  87. package/dist/esm/{sql-expr-mode-bc488961.js → sql-expr-mode-11024d7c.js} +5 -9
  88. package/dist/esm/{tsMode-82bbedd5.js → tsMode-93c862c3.js} +3 -3
  89. package/dist/esm/{typescript-73ad9064.js → typescript-1c9039a2.js} +3 -3
  90. package/dist/esm/{useT9n-a2a83800.js → useT9n-ce905834.js} +3 -3
  91. package/dist/loader/cdn.js +1 -1
  92. package/dist/loader/index.cjs.js +1 -1
  93. package/dist/loader/index.es2017.js +1 -1
  94. package/dist/loader/index.js +1 -1
  95. package/dist/types/components/arcade-editor/arcade-editor.d.ts +0 -6
  96. package/dist/types/components/code-editor/code-editor.d.ts +1 -0
  97. package/dist/types/components/sql-expression-editor/sql-expression-editor.d.ts +1 -0
  98. package/dist/types/components.d.ts +0 -6
  99. package/dist/types/data/arcgis-web-compoments/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 -7
  100. package/dist/types/utils/setup-monaco-theme.d.ts +1 -0
  101. package/dist/types/utils/sql-expr-monaco/sql-expr-constants.d.ts +1 -1
  102. package/package.json +11 -11
  103. package/dist/arcgis-coding-components/p-0c876d09.entry.js +0 -6
  104. package/dist/arcgis-coding-components/p-16a26703.js +0 -6
  105. package/dist/arcgis-coding-components/p-e689d955.js +0 -6
  106. package/dist/arcgis-coding-components/p-f1fef244.entry.js +0 -6
  107. package/dist/types/utils/arcade-monaco/arcade-theme.d.ts +0 -12
@@ -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.31/esri/copyright.txt for details.
4
- * v4.31.0-next.86
4
+ * v4.31.0-next.88
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h } from '@stencil/core/internal/client';
7
7
  import { u as useControllerManager } from './chunk-IUUKU7EW.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.31/esri/copyright.txt for details.
4
- * v4.31.0-next.86
4
+ * v4.31.0-next.88
5
5
  */
6
6
  // src/index.ts
7
7
  var isAMD = typeof window !== "undefined" && "$arcgis" in window && typeof window.$arcgis === "object" && "import" in window.$arcgis && !("forceESM" in window.$arcgis);
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.86
4
+ * v4.31.0-next.88
5
5
  */
6
6
  export { setNonce, setPlatformOptions } from '@stencil/core/internal/client';
7
7
  export { a as arcade } from './arcade-defaults.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.86
4
+ * v4.31.0-next.88
5
5
  */
6
6
  // src/array-utils.ts
7
7
 
@@ -412,4 +412,4 @@ function isURL(url) {
412
412
  }
413
413
  }
414
414
 
415
- export { Deferred as D, isNotUndefined as a, addLTRMark as b, setValuesInString as c, createFilterExpression as d, getElementTheme as e, fetchT9nStringsBundle as f, generateGuid as g, isURL as h, isNotNull as i, hasSameOrigin as j, safeAsyncCall as k, devToolsAwareTimeout as l, safeCall as m, normalizeLocale as n, observeAncestorsMutation as o, startLocaleObserver as p, quoteString as q, getElementLocales as r, supportedLocales as s, setFocusOnElement as t, debounce as u };
415
+ export { Deferred as D, isNotUndefined as a, addLTRMark as b, setValuesInString as c, createFilterExpression as d, safeAsyncCall as e, fetchT9nStringsBundle as f, generateGuid as g, devToolsAwareTimeout as h, isNotNull as i, safeCall as j, isURL as k, hasSameOrigin as l, getElementTheme as m, normalizeLocale as n, observeAncestorsMutation as o, startLocaleObserver as p, quoteString as q, getElementLocales as r, supportedLocales as s, setFocusOnElement as t, debounce as u };
@@ -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.31/esri/copyright.txt for details.
4
- * v4.31.0-next.86
4
+ * v4.31.0-next.88
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
7
7
  import { g as generateColorizeStyles, o as onColorizeThemeChanged, c as convertMarkdownString, b as colorizedAllCodeElements } from './markdown.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.31/esri/copyright.txt for details.
4
- * v4.31.0-next.86
4
+ * v4.31.0-next.88
5
5
  */
6
6
  import { editor } from 'monaco-editor';
7
7
  import { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.86
4
+ * v4.31.0-next.88
5
5
  */
6
6
  import { n as newLayersFeatureLayer, i as importRequest, s as supportedFields, a as newPortalPortalItem, b as newWebScene, c as newWebMap, f as fieldAlias, d as fieldTypeToIconName, e as fieldTypeToApiValueVarType } from './fields.js';
7
7
  import { InsertTextMode, InsertTextFormat, CompletionItemKind, MarkupKind } 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.31/esri/copyright.txt for details.
4
- * v4.31.0-next.86
4
+ * v4.31.0-next.88
5
5
  */
6
6
  import { editor, languages, Emitter } from 'monaco-editor';
7
7
  import { D as Deferred, u as debounce } from './index2.js';
@@ -105,7 +105,6 @@ Object.values(castDataTypesDict);
105
105
  const sqlExprKeywords = [
106
106
  "AND",
107
107
  "AS",
108
- "BETWEEN",
109
108
  "BOTH",
110
109
  "CASE",
111
110
  "CAST",
@@ -125,14 +124,10 @@ const sqlExprKeywords = [
125
124
  "IN",
126
125
  "INTEGER",
127
126
  "INTERVAL",
128
- "IS",
129
127
  "LEADING",
130
128
  "LIKE",
131
129
  "MINUTE",
132
130
  "MONTH",
133
- "NOT",
134
- "NULL",
135
- "OR",
136
131
  "POSITION",
137
132
  "REAL",
138
133
  "SECOND",
@@ -171,6 +166,7 @@ const sqlExprFunctions = [
171
166
  "CURRENT_DATE",
172
167
  "CURRENT_TIME",
173
168
  "CURRENT_TIMESTAMP",
169
+ "CURRENT_USER",
174
170
  // Mathematical
175
171
  "ABS",
176
172
  "ACOS",
@@ -228,7 +224,7 @@ const sqlExprLanguageConfig = {
228
224
  // TODO: trim down
229
225
  const sqlExprLanguageSyntax = {
230
226
  defaultToken: "",
231
- tokenPostfix: ".sql",
227
+ tokenPostfix: ".arcgis",
232
228
  ignoreCase: true,
233
229
  brackets: [
234
230
  { open: "[", close: "]", token: "delimiter.square" },
@@ -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.31/esri/copyright.txt for details.
4
- * v4.31.0-next.86
4
+ * v4.31.0-next.88
5
5
  */
6
6
  import { p as proxyExports, w as watch, C as Controller, s as setAmbientComponent } from './chunk-IUUKU7EW.js';
7
7
  import { p as startLocaleObserver, r as getElementLocales } from './index2.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.31/esri/copyright.txt for details.
4
- * v4.31.0-next.86
4
+ * v4.31.0-next.88
5
5
  */
6
6
  import { d as createFilterExpression } from './index2.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.31/esri/copyright.txt for details.
4
- * v4.31.0-next.86
4
+ * v4.31.0-next.88
5
5
  */
6
6
  const globalScripts = () => {};
7
7
 
@@ -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.86
4
+ * v4.31.0-next.88
5
5
  */
6
- import { m as main, f as fieldsToProfileValues, i as isPredefinedProfile, a as isFeatureSetCollectionDefinition, b as isFeatureSetDefinition, c as isFeatureDefinition, d as supportedLocales, L as LanguageDefaultsBase, e as fetchT9nStringsBundle, E as EditorProfile } from './sql-expr-defaults-b1553413.js';
7
- import { g as getAssetPath } from './index-80add115.js';
6
+ import { m as main, f as fieldsToProfileValues, i as isPredefinedProfile, a as isFeatureSetCollectionDefinition, b as isFeatureSetDefinition, c as isFeatureDefinition, d as supportedLocales, L as LanguageDefaultsBase, e as fetchT9nStringsBundle, E as EditorProfile } from './sql-expr-defaults-d147b45c.js';
7
+ import { g as getAssetPath } from './index-25e5e252.js';
8
8
 
9
9
  // #region convert editor profile to apiProfile
10
10
  /**
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.86
4
+ * v4.31.0-next.88
5
5
  */
6
- import { m as main, h as editor, Q as MarkerSeverity, R as Range, x as languages, T as debounce, D as Deferred, V as Emitter } from './sql-expr-defaults-b1553413.js';
7
- import './index-80add115.js';
6
+ import { m as main, r as editor, Q as MarkerSeverity, R as Range, w as languages, T as debounce, D as Deferred, V as Emitter } from './sql-expr-defaults-d147b45c.js';
7
+ import './index-25e5e252.js';
8
8
 
9
9
  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"},xe=["++","--"],Ge=["-","+","!","~"],Je=["=","/=","*=","%=","+=","-="],Qe=["||","&&"],Lt=["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"];var U=[[],[],[]];xe.forEach(e=>U[e.length-1]?.push(e));Ge.forEach(e=>U[e.length-1]?.push(e));Qe.forEach(e=>U[e.length-1]?.push(e));Je.forEach(e=>U[e.length-1]?.push(e));Lt.forEach(e=>U[e.length-1]?.push(e));var lt=Object.values(f),pt=Object.values(V);pt.map(e=>({label:e,kind:main.exports.CompletionItemKind.Constant}));lt.map(e=>({label:e,kind:main.exports.CompletionItemKind.Keyword}));
10
10
 
@@ -75,7 +75,7 @@ const arcadeLanguageConfiguration = {
75
75
  const arcadeMonarchLanguage = {
76
76
  // Set defaultToken to invalid to see what you do not tokenize yet
77
77
  defaultToken: "invalid",
78
- tokenPostfix: ".arc",
78
+ tokenPostfix: ".arcgis",
79
79
  // Arcade is case insensitive
80
80
  ignoreCase: true,
81
81
  // builtinFunctions: [...arcadeService.FunctionNames],