@arcgis/coding-components 4.31.0-next.150 → 4.31.0-next.151

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 (151) hide show
  1. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  2. package/dist/arcgis-coding-components/assets/arcade-language/api/test.json +6861 -0
  3. package/dist/arcgis-coding-components/index.esm.js +2 -2
  4. package/dist/arcgis-coding-components/{p-561621f5.js → p-0dc5dd37.js} +2 -2
  5. package/dist/arcgis-coding-components/p-14fc05ed.js +12 -0
  6. package/dist/arcgis-coding-components/{p-bc0eeb83.js → p-14fe0e2e.js} +2 -2
  7. package/dist/arcgis-coding-components/{p-11797558.js → p-1625cb1d.js} +2 -2
  8. package/dist/arcgis-coding-components/{p-e9a56e38.entry.js → p-1a9a03d7.entry.js} +2 -2
  9. package/dist/arcgis-coding-components/p-1e47c6e2.entry.js +6 -0
  10. package/dist/arcgis-coding-components/{p-9bf7cf20.js → p-1f96b801.js} +2 -2
  11. package/dist/arcgis-coding-components/{p-c55494c0.entry.js → p-1f990ec7.entry.js} +2 -2
  12. package/dist/arcgis-coding-components/{p-865517bd.js → p-221e692b.js} +2 -2
  13. package/dist/arcgis-coding-components/{p-965e5a15.js → p-236a3928.js} +10 -10
  14. package/dist/arcgis-coding-components/{p-5a8918f9.js → p-2ba5d9f0.js} +2 -2
  15. package/dist/arcgis-coding-components/{p-fc64abaa.js → p-39feeb1b.js} +2 -2
  16. package/dist/arcgis-coding-components/p-467f5d55.js +6 -0
  17. package/dist/arcgis-coding-components/p-501f5282.js +12 -0
  18. package/dist/arcgis-coding-components/{p-ad53776e.js → p-568a56d0.js} +1 -1
  19. package/dist/arcgis-coding-components/{p-d3c751e9.js → p-57d23245.js} +2 -2
  20. package/dist/arcgis-coding-components/p-5ac97486.js +12 -0
  21. package/dist/arcgis-coding-components/{p-b2d9867f.js → p-5ae75475.js} +2 -2
  22. package/dist/arcgis-coding-components/{p-e8a861e0.entry.js → p-60d5af97.entry.js} +2 -2
  23. package/dist/arcgis-coding-components/{p-bf2114f8.js → p-66b621b9.js} +2 -2
  24. package/dist/arcgis-coding-components/p-6eb1581f.js +6 -0
  25. package/dist/arcgis-coding-components/{p-4343aa45.js → p-721af385.js} +1 -1
  26. package/dist/arcgis-coding-components/p-7b35e793.js +12 -0
  27. package/dist/arcgis-coding-components/{p-e3fb2b88.js → p-7d3fe172.js} +2 -2
  28. package/dist/arcgis-coding-components/{p-6d76a0bc.js → p-7eb67844.js} +1 -1
  29. package/dist/arcgis-coding-components/p-a2afc28f.js +6 -0
  30. package/dist/arcgis-coding-components/p-b249112b.entry.js +6 -0
  31. package/dist/arcgis-coding-components/p-b6d568e3.js +6 -0
  32. package/dist/arcgis-coding-components/p-b98edabb.js +12 -0
  33. package/dist/arcgis-coding-components/p-c2b233d3.js +6 -0
  34. package/dist/arcgis-coding-components/p-d011251d.js +68 -0
  35. package/dist/arcgis-coding-components/p-d6c459ae.js +12 -0
  36. package/dist/arcgis-coding-components/p-dc193848.js +7 -0
  37. package/dist/arcgis-coding-components/p-df6d8f1f.js +12 -0
  38. package/dist/arcgis-coding-components/p-e109dc9e.js +12 -0
  39. package/dist/arcgis-coding-components/p-f7bf9210.entry.js +6 -0
  40. package/dist/cjs/{app-globals-e2e63057.js → app-globals-1dbdc02e.js} +1 -1
  41. package/dist/cjs/app-globals-d2c3d493.js +10 -0
  42. package/dist/cjs/{arcade-defaults-e133ed42.js → arcade-defaults-2d74542a.js} +3 -3
  43. package/dist/cjs/arcade-defaults-bc1e723c.js +289 -0
  44. package/dist/cjs/{arcade-mode-63ee903f.js → arcade-mode-47cd03fd.js} +3 -3
  45. package/dist/cjs/arcade-mode-4ab96441.js +611 -0
  46. package/dist/cjs/arcgis-arcade-editor_6.cjs.entry.js +7 -7
  47. package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
  48. package/dist/cjs/arcgis-sql-expression-editor.cjs.entry.js +4 -4
  49. package/dist/cjs/arcgis-sql-expression-fields.cjs.entry.js +4 -4
  50. package/dist/cjs/{css-3a1e0cfe.js → css-782d416d.js} +1 -1
  51. package/dist/cjs/css-87f18d10.js +193 -0
  52. package/dist/cjs/{cssMode-aa9bd85f.js → cssMode-e68b5f49.js} +3 -3
  53. package/dist/cjs/cssMode-ef23ee4d.js +2043 -0
  54. package/dist/cjs/{html-be088389.js → html-10e5b6ee.js} +3 -3
  55. package/dist/cjs/html-42d46974.js +304 -0
  56. package/dist/cjs/{htmlMode-9359cdfb.js → htmlMode-9d5ce987.js} +3 -3
  57. package/dist/cjs/htmlMode-c3117e13.js +2059 -0
  58. package/dist/cjs/{index-92a13be0.js → index-5403bdc9.js} +1 -1
  59. package/dist/cjs/index-c7d67706.js +1375 -0
  60. package/dist/cjs/index.cjs.js +4 -4
  61. package/dist/cjs/{javascript-a6fa8787.js → javascript-30be26a5.js} +4 -4
  62. package/dist/cjs/javascript-7ef34ce8.js +85 -0
  63. package/dist/cjs/{jsonMode-4c6dc37c.js → jsonMode-0970c143.js} +3 -3
  64. package/dist/cjs/jsonMode-0cc66d93.js +2619 -0
  65. package/dist/cjs/loader.cjs.js +3 -3
  66. package/dist/cjs/{sql-expr-defaults-6a5e950c.js → sql-expr-defaults-260e0b42.js} +10 -10
  67. package/dist/cjs/sql-expr-defaults-9721f89b.js +171151 -0
  68. package/dist/cjs/{sql-expr-mode-302f4228.js → sql-expr-mode-ae585c68.js} +3 -3
  69. package/dist/cjs/sql-expr-mode-c9d0fd9a.js +480 -0
  70. package/dist/cjs/{tsMode-e6211caf.js → tsMode-64ef0571.js} +3 -3
  71. package/dist/cjs/tsMode-e24d0cfa.js +1167 -0
  72. package/dist/cjs/{typescript-b9f05def.js → typescript-724b94a5.js} +3 -3
  73. package/dist/cjs/typescript-7f0fb99d.js +350 -0
  74. package/dist/cjs/{useT9n-40bf7857.js → useT9n-0885f1e4.js} +3 -3
  75. package/dist/cjs/useT9n-fc7a9607.js +1252 -0
  76. package/dist/components/arcade-defaults.js +1 -1
  77. package/dist/components/arcade-mode.js +1 -1
  78. package/dist/components/arcade-results.js +1 -1
  79. package/dist/components/arcade-suggestions.js +1 -1
  80. package/dist/components/arcgis-arcade-editor.js +1 -1
  81. package/dist/components/arcgis-arcade-results.js +1 -1
  82. package/dist/components/arcgis-arcade-suggestions.js +1 -1
  83. package/dist/components/arcgis-assets.d.ts +1 -1
  84. package/dist/components/arcgis-assets.js +1 -1
  85. package/dist/components/arcgis-code-editor.js +1 -1
  86. package/dist/components/arcgis-editor-variables.js +1 -1
  87. package/dist/components/arcgis-language-api-panel.js +1 -1
  88. package/dist/components/arcgis-sql-expression-editor.js +1 -1
  89. package/dist/components/arcgis-sql-expression-fields.js +1 -1
  90. package/dist/components/chunk-UFIZBDFE.js +1 -1
  91. package/dist/components/code-editor.js +1 -1
  92. package/dist/components/editor-variables.js +1 -1
  93. package/dist/components/fields.js +1 -1
  94. package/dist/components/index.js +1 -1
  95. package/dist/components/index2.js +1 -1
  96. package/dist/components/language-api-panel.js +1 -1
  97. package/dist/components/markdown.js +1 -1
  98. package/dist/components/sql-expr-defaults.js +1 -1
  99. package/dist/components/sql-expr-mode.js +1 -1
  100. package/dist/components/useT9n.js +1 -1
  101. package/dist/components/utilities.js +1 -1
  102. package/dist/esm/{app-globals-fdade983.js → app-globals-590e2a77.js} +1 -1
  103. package/dist/esm/app-globals-9eb472df.js +8 -0
  104. package/dist/esm/{arcade-defaults-c931a334.js → arcade-defaults-946a53d0.js} +3 -3
  105. package/dist/esm/arcade-defaults-c30590df.js +286 -0
  106. package/dist/esm/{arcade-mode-2a2720ab.js → arcade-mode-6cffe3c1.js} +3 -3
  107. package/dist/esm/arcade-mode-c33fda0d.js +607 -0
  108. package/dist/esm/arcgis-arcade-editor_6.entry.js +7 -7
  109. package/dist/esm/arcgis-coding-components.js +4 -4
  110. package/dist/esm/arcgis-sql-expression-editor.entry.js +4 -4
  111. package/dist/esm/arcgis-sql-expression-fields.entry.js +4 -4
  112. package/dist/esm/{css-c89bd479.js → css-e12310b7.js} +1 -1
  113. package/dist/esm/css-e7ef6d6c.js +190 -0
  114. package/dist/esm/{cssMode-b0baab26.js → cssMode-453bbfcc.js} +3 -3
  115. package/dist/esm/cssMode-c027d78b.js +2022 -0
  116. package/dist/esm/{html-d0b5e659.js → html-97e099d8.js} +3 -3
  117. package/dist/esm/html-ebaad5de.js +301 -0
  118. package/dist/esm/{htmlMode-523c26fe.js → htmlMode-9e54779c.js} +3 -3
  119. package/dist/esm/htmlMode-e30ea0d0.js +2037 -0
  120. package/dist/esm/{index-b3598a82.js → index-7422efbb.js} +1 -1
  121. package/dist/esm/index-c18b3435.js +1344 -0
  122. package/dist/esm/index.js +4 -4
  123. package/dist/esm/{javascript-b17a245b.js → javascript-32941085.js} +4 -4
  124. package/dist/esm/javascript-51965802.js +82 -0
  125. package/dist/esm/{jsonMode-72ee90a8.js → jsonMode-8cbae8ad.js} +3 -3
  126. package/dist/esm/jsonMode-a15607eb.js +2598 -0
  127. package/dist/esm/loader.js +4 -4
  128. package/dist/esm/{sql-expr-defaults-1429a1dd.js → sql-expr-defaults-6d0018f8.js} +10 -10
  129. package/dist/esm/sql-expr-defaults-d1bc79e7.js +171083 -0
  130. package/dist/esm/{sql-expr-mode-b60c1580.js → sql-expr-mode-005919d5.js} +3 -3
  131. package/dist/esm/sql-expr-mode-ea2622f3.js +476 -0
  132. package/dist/esm/{tsMode-e385e048.js → tsMode-0252de17.js} +3 -3
  133. package/dist/esm/tsMode-4d215cd3.js +1143 -0
  134. package/dist/esm/{typescript-1ce38f98.js → typescript-501c9e02.js} +3 -3
  135. package/dist/esm/typescript-d2cd994b.js +347 -0
  136. package/dist/esm/useT9n-40e08c69.js +1248 -0
  137. package/dist/esm/{useT9n-435fabc7.js → useT9n-8342fb27.js} +3 -3
  138. package/dist/loader/cdn.js +1 -1
  139. package/dist/loader/index.cjs.js +1 -1
  140. package/dist/loader/index.es2017.js +1 -1
  141. package/dist/loader/index.js +1 -1
  142. package/dist/types/Users/fred/Projects/arcgis-web-components-work/packages/coding-packages/coding-components/.stencil/stencil.config.d.ts +3 -0
  143. package/dist/types/Users/fred/Projects/arcgis-web-components-work/packages/coding-packages/coding-components/.stencil/stories/internal/arcade-editor/arcade-editor.stories.d.ts +27 -0
  144. package/dist/types/Users/fred/Projects/arcgis-web-components-work/packages/coding-packages/coding-components/.stencil/stories/internal/arcade-editor/editorContext.d.ts +15 -0
  145. package/dist/types/Users/fred/Projects/arcgis-web-components-work/packages/coding-packages/coding-components/.stencil/stories/internal/code-editor/code-editor.stories.d.ts +6 -0
  146. package/dist/types/Users/fred/Projects/arcgis-web-components-work/packages/coding-packages/coding-components/.stencil/stories/internal/sql-expression-editor/sql-expression-editor.stories.d.ts +15 -0
  147. package/dist/types/Users/fred/Projects/arcgis-web-components-work/packages/coding-packages/coding-components/.stencil/stories/reference/stories/arcade-editor.stories.d.ts +9 -0
  148. package/dist/types/Users/fred/Projects/arcgis-web-components-work/packages/coding-packages/coding-components/.stencil/support/sass-inline-url-importer.d.ts +9 -0
  149. package/dist/types/Users/fred/Projects/arcgis-web-components-work/packages/coding-packages/coding-components/.stencil/support/sass-json-importer.d.ts +19 -0
  150. package/dist/types/Users/fred/Projects/arcgis-web-components-work/packages/coding-packages/coding-components/.stencil/support/stencil-monaco-plugins.d.ts +6 -0
  151. package/package.json +6 -6
@@ -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.150
4
+ * v4.31.0-next.151
5
5
  */
6
- import { F as isNotUndefined, D as Deferred, G as safeAsyncCall, H as devToolsAwareTimeout, J as safeCall, M as startLocaleObserver, N as getElementLocales } from './sql-expr-defaults-1429a1dd.js';
7
- import { g as getAssetPath } from './index-b3598a82.js';
6
+ import { F as isNotUndefined, D as Deferred, G as safeAsyncCall, H as devToolsAwareTimeout, J as safeCall, M as startLocaleObserver, N as getElementLocales } from './sql-expr-defaults-d1bc79e7.js';
7
+ import { g as getAssetPath } from './index-c18b3435.js';
8
8
 
9
9
  // src/framework.ts
10
10
  function retrieveComponentMembers(component, isLit) {
@@ -1,6 +1,6 @@
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.150
4
+ * v4.31.0-next.151
5
5
  */
6
6
  module.exports = require('../cjs/loader.cjs.js');
@@ -1,6 +1,6 @@
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.150
4
+ * v4.31.0-next.151
5
5
  */
6
6
  module.exports = require('../cjs/loader.cjs.js');
@@ -1,6 +1,6 @@
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.150
4
+ * v4.31.0-next.151
5
5
  */
6
6
  export * from '../esm/loader.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.150
4
+ * v4.31.0-next.151
5
5
  */
6
6
  (function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
7
7
  export * from '../esm/loader.js';
@@ -0,0 +1,3 @@
1
+ import type { Config } from "../../../../../../../../stencil-public-runtime";
2
+ declare const config: Config;
3
+ export { config };
@@ -0,0 +1,27 @@
1
+ import type { Meta, StoryObj } from "@storybook/web-components";
2
+ import type { Components } from "../../../src/components";
3
+ import type { LayerItemPopupProfileConfiguration } from "./editorContext";
4
+ import { type PopupProfileConfiguration } from "./editorContext";
5
+ import type { BundleType } from "@arcgis/arcade-languageservice";
6
+ declare const meta: Meta<Components.ArcgisArcadeEditor>;
7
+ export default meta;
8
+ interface PopupProfileAdditionalArgs {
9
+ configuration: PopupProfileConfiguration;
10
+ }
11
+ type PopupProfileStoryType = Components.ArcgisArcadeEditor & PopupProfileAdditionalArgs;
12
+ export declare const PopupProfileStory: StoryObj<PopupProfileStoryType>;
13
+ interface SLPopupProfileAdditionalArgs {
14
+ configuration: LayerItemPopupProfileConfiguration;
15
+ }
16
+ type SLPopupProfileStoryType = Components.ArcgisArcadeEditor & SLPopupProfileAdditionalArgs;
17
+ export declare const SLPopupProfileStory: StoryObj<SLPopupProfileStoryType>;
18
+ export declare const HideItemsCustomProfileStory: StoryObj<Components.ArcgisArcadeEditor & {
19
+ bundles?: BundleType[];
20
+ hiddenApiItems: string[];
21
+ }>;
22
+ export declare const HideItemsPredefinedProfileStory: StoryObj<Components.ArcgisArcadeEditor & {
23
+ hiddenApiItems: string[];
24
+ }>;
25
+ export declare const UpdatingTestDataStory: StoryObj<Components.ArcgisArcadeEditor & {
26
+ number: number;
27
+ }>;
@@ -0,0 +1,15 @@
1
+ import type { Components } from "../../../src/components";
2
+ type PortalKeyType = "devext" | "qaext" | "www";
3
+ export interface PopupProfileConfiguration {
4
+ portalKey: PortalKeyType;
5
+ itemId: string;
6
+ layerId: string;
7
+ subtypeCode?: number;
8
+ sublayerId?: number;
9
+ timeZone: string;
10
+ }
11
+ export type PopupProfileEditorContext = Partial<Pick<Components.ArcgisArcadeEditor, "profile" | "testData">>;
12
+ export declare function getPopupProfileEditorContext({ portalKey, itemId, layerId, timeZone, subtypeCode, sublayerId, }: PopupProfileConfiguration): Promise<PopupProfileEditorContext>;
13
+ export type LayerItemPopupProfileConfiguration = Pick<PopupProfileConfiguration, "layerId" | "portalKey">;
14
+ export declare function getPopupProfileEditorContextForLayerItem({ portalKey, layerId }: LayerItemPopupProfileConfiguration, createTestData?: boolean): Promise<PopupProfileEditorContext>;
15
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from "@storybook/web-components";
2
+ import type { Components } from "../../../src/components";
3
+ declare const meta: Meta<Components.ArcgisCodeEditor>;
4
+ export default meta;
5
+ export declare const SimpleStory: StoryObj<Components.ArcgisCodeEditor>;
6
+ export declare const TwoEditorsStory: StoryObj<Components.ArcgisCodeEditor>;
@@ -0,0 +1,15 @@
1
+ import type { Meta, StoryObj } from "@storybook/web-components";
2
+ import { type Components } from "../../../src/components";
3
+ declare const meta: Meta<Components.ArcgisSqlExpressionEditor>;
4
+ export default meta;
5
+ interface Configuration {
6
+ portalKey: "devext" | "qaext" | "www";
7
+ itemId: string;
8
+ sublayerId?: number;
9
+ }
10
+ type StoryType = Components.ArcgisArcadeEditor & {
11
+ configuration: Configuration;
12
+ hideSidebar: boolean;
13
+ mounted: boolean;
14
+ };
15
+ export declare const SimpleStory: StoryObj<StoryType>;
@@ -0,0 +1,9 @@
1
+ import type { Meta, StoryObj } from "@storybook/web-components";
2
+ import type { Components } from "../../../src/components";
3
+ declare const meta: Meta<Components.ArcgisArcadeEditor>;
4
+ export default meta;
5
+ interface AdditionalArgs {
6
+ wkid: number;
7
+ }
8
+ type StoryType = AdditionalArgs & Components.ArcgisArcadeEditor;
9
+ export declare const SimpleStory: StoryObj<StoryType>;
@@ -0,0 +1,9 @@
1
+ import type { Importer } from "@stencil/sass/dist/declarations";
2
+ /**
3
+ * Special SASS importer for files starting with `inlineurl:`.
4
+ * Example: `@use "inlineurl:~monaco-editor/min/vs/editor/editor.main.css";`
5
+ * It will import the file and inline the url resources using postcss.
6
+ * This importer is actually usefull for importing Monaco css files that
7
+ * contain file resources references.
8
+ */
9
+ export declare const sassInlineUrlImporter: Importer;
@@ -0,0 +1,19 @@
1
+ import type { Importer } from "@stencil/sass/dist/declarations";
2
+ /**
3
+ * Special SASS importer for json files.
4
+ * The currently structure is:
5
+ * {
6
+ * key-1: value,
7
+ * key-2: {
8
+ * sub-key-1: value,
9
+ * sub-key-2: value
10
+ * }
11
+ * }
12
+ *
13
+ * Will be converted to:
14
+ * $key-1: value;
15
+ * $key-2: ("sub-key-1": value, "sub-key-2": value);
16
+ *
17
+ * Use map.get($key-2, "sub-key-2")
18
+ */
19
+ export declare const sassJsonImporter: Importer;
@@ -0,0 +1,6 @@
1
+ import type { Plugin } from "rollup";
2
+ export declare function handleMonacoDependencies(): Plugin;
3
+ /**
4
+ * Avoid loading unecessary monaco languages
5
+ */
6
+ export declare function removeMonacoBasicLanguages(): Plugin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/coding-components",
3
- "version": "4.31.0-next.150",
3
+ "version": "4.31.0-next.151",
4
4
  "description": "Contains components for editing code in different languages. The currently supported languages are html, css, json, TypeScript, JavaScript, and Arcade.",
5
5
  "keywords": [
6
6
  "ArcGIS",
@@ -23,11 +23,11 @@
23
23
  ],
24
24
  "license": "SEE LICENSE IN LICENSE.md",
25
25
  "dependencies": {
26
- "@arcgis/arcade-languageservice": "4.31.0-next.150",
27
- "@arcgis/components-build-utils": "4.31.0-next.150",
28
- "@arcgis/components-controllers": "4.31.0-next.150",
29
- "@arcgis/components-utils": "4.31.0-next.150",
30
- "@arcgis/languages-api-utils": "4.31.0-next.150",
26
+ "@arcgis/arcade-languageservice": "4.31.0-next.151",
27
+ "@arcgis/components-build-utils": "4.31.0-next.151",
28
+ "@arcgis/components-controllers": "4.31.0-next.151",
29
+ "@arcgis/components-utils": "4.31.0-next.151",
30
+ "@arcgis/languages-api-utils": "4.31.0-next.151",
31
31
  "@stencil/core": "4.20.0",
32
32
  "monaco-editor": "0.45.0",
33
33
  "tslib": "^2.7.0",