@arcgis/coding-components 4.29.0-beta.47 → 4.29.0-beta.49

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 (94) hide show
  1. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +1 -1
  2. package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +13 -13
  3. package/dist/arcgis-coding-components/index.esm.js +1 -1
  4. package/dist/arcgis-coding-components/{p-10a322ec.js → p-0d616249.js} +9 -9
  5. package/dist/arcgis-coding-components/p-2c0d6f15.js +2 -0
  6. package/dist/arcgis-coding-components/{p-71faf9a4.js → p-5802524a.js} +1 -1
  7. package/dist/arcgis-coding-components/{p-9eabda86.js → p-5ddccf04.js} +1 -1
  8. package/dist/arcgis-coding-components/p-7475f3a6.js +1 -0
  9. package/dist/arcgis-coding-components/{p-e6ede32d.js → p-7d8caba9.js} +1 -1
  10. package/dist/arcgis-coding-components/{p-f7d7d78d.js → p-9f6db08a.js} +1 -1
  11. package/dist/arcgis-coding-components/{p-e475e6cd.js → p-aefe77ce.js} +1 -1
  12. package/dist/arcgis-coding-components/p-ce2be55e.entry.js +1 -0
  13. package/dist/arcgis-coding-components/{p-ce586a8c.js → p-d425a387.js} +1 -1
  14. package/dist/arcgis-coding-components/{p-c084ada8.js → p-ff21f230.js} +1 -1
  15. package/dist/cjs/{arcade-defaults-8445d852.js → arcade-defaults-2d513b59.js} +1534 -1534
  16. package/dist/cjs/arcade-mode-6219f1b8.js +599 -0
  17. package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +1404 -1408
  18. package/dist/cjs/arcgis-coding-components.cjs.js +2 -2
  19. package/dist/cjs/{cssMode-e63287bb.js → cssMode-1ec48254.js} +2 -2
  20. package/dist/cjs/{html-c0d4db3b.js → html-0e1741fe.js} +2 -2
  21. package/dist/cjs/{htmlMode-fdc44d57.js → htmlMode-279d3c29.js} +2 -2
  22. package/dist/cjs/{index-6a382a34.js → index-ac186201.js} +67 -24
  23. package/dist/cjs/index.cjs.js +2 -2
  24. package/dist/cjs/{javascript-a419d064.js → javascript-04f1bce0.js} +3 -3
  25. package/dist/cjs/{jsonMode-73aee5d2.js → jsonMode-59322f7a.js} +2 -2
  26. package/dist/cjs/loader.cjs.js +1 -1
  27. package/dist/cjs/{tsMode-37d1b053.js → tsMode-17561f70.js} +2 -2
  28. package/dist/cjs/{typescript-53f9f36a.js → typescript-b7da8629.js} +2 -2
  29. package/dist/components/arcade-api.js +160 -160
  30. package/dist/components/arcade-contribution.js +60 -60
  31. package/dist/components/arcade-defaults.js +1240 -1240
  32. package/dist/components/arcade-mode.js +514 -513
  33. package/dist/components/arcade-results.js +426 -430
  34. package/dist/components/arcade-suggestions.js +130 -132
  35. package/dist/components/arcade-variables.js +157 -155
  36. package/dist/components/arcgis-arcade-api.d.ts +2 -2
  37. package/dist/components/arcgis-arcade-editor.d.ts +2 -2
  38. package/dist/components/arcgis-arcade-editor.js +391 -391
  39. package/dist/components/arcgis-arcade-results.d.ts +2 -2
  40. package/dist/components/arcgis-arcade-suggestions.d.ts +2 -2
  41. package/dist/components/arcgis-arcade-variables.d.ts +2 -2
  42. package/dist/components/arcgis-code-editor.d.ts +2 -2
  43. package/dist/components/code-editor.js +251 -251
  44. package/dist/components/fields.js +69 -69
  45. package/dist/components/functional-components.js +1 -1
  46. package/dist/components/index2.js +2 -2
  47. package/dist/components/markdown.js +28 -28
  48. package/dist/components/utilities.js +20 -20
  49. package/dist/esm/{arcade-defaults-d7893362.js → arcade-defaults-0bafa696.js} +1534 -1534
  50. package/dist/esm/arcade-mode-c17a1fa1.js +595 -0
  51. package/dist/esm/arcgis-arcade-api_6.entry.js +1404 -1408
  52. package/dist/esm/arcgis-coding-components.js +3 -3
  53. package/dist/esm/{cssMode-b1771f92.js → cssMode-3d18bd2b.js} +2 -2
  54. package/dist/esm/{html-af635d52.js → html-2bce5d77.js} +2 -2
  55. package/dist/esm/{htmlMode-3021c301.js → htmlMode-69d56956.js} +2 -2
  56. package/dist/esm/{index-fd6b2fd8.js → index-022fb97b.js} +67 -24
  57. package/dist/esm/index.js +2 -2
  58. package/dist/esm/{javascript-70589186.js → javascript-ded5c9d7.js} +3 -3
  59. package/dist/esm/{jsonMode-cb509b79.js → jsonMode-0bf84cb2.js} +2 -2
  60. package/dist/esm/loader.js +2 -2
  61. package/dist/esm/{tsMode-ed90c9aa.js → tsMode-15d4e936.js} +2 -2
  62. package/dist/esm/{typescript-db8a0b18.js → typescript-cc4d00f0.js} +2 -2
  63. package/dist/types/components/arcade-api/arcade-api.d.ts +40 -40
  64. package/dist/types/components/arcade-api/t9n-types.d.ts +6 -6
  65. package/dist/types/components/arcade-editor/arcade-editor.d.ts +127 -127
  66. package/dist/types/components/arcade-editor/t9n-types.d.ts +6 -6
  67. package/dist/types/components/arcade-results/arcade-results.d.ts +47 -47
  68. package/dist/types/components/arcade-results/t9n-types.d.ts +11 -11
  69. package/dist/types/components/arcade-suggestions/arcade-suggestions.d.ts +34 -34
  70. package/dist/types/components/arcade-suggestions/t9n-types.d.ts +4 -4
  71. package/dist/types/components/arcade-variables/arcade-variables.d.ts +41 -41
  72. package/dist/types/components/arcade-variables/t9n-types.d.ts +6 -6
  73. package/dist/types/components/code-editor/code-editor.d.ts +73 -73
  74. package/dist/types/stencil-public-runtime.d.ts +8 -0
  75. package/dist/types/utils/arcade-executor.d.ts +79 -79
  76. package/dist/types/utils/arcade-monaco/arcade-defaults.d.ts +66 -66
  77. package/dist/types/utils/arcade-monaco/arcade-language-features.d.ts +23 -23
  78. package/dist/types/utils/arcade-monaco/arcade-mode.d.ts +9 -9
  79. package/dist/types/utils/arcade-monaco/arcade-theme.d.ts +7 -7
  80. package/dist/types/utils/arcade-monaco/arcade-worker-manager.d.ts +9 -9
  81. package/dist/types/utils/arcade-monaco/arcade.worker.d.ts +12 -12
  82. package/dist/types/utils/arcade-monaco/types.d.ts +29 -29
  83. package/dist/types/utils/editor-suggestions.d.ts +24 -24
  84. package/dist/types/utils/functional-components.d.ts +1 -1
  85. package/dist/types/utils/markdown.d.ts +1 -1
  86. package/dist/types/utils/profile/editor-profile.d.ts +185 -185
  87. package/dist/types/utils/profile/types.d.ts +101 -101
  88. package/dist/types/utils/utilities.d.ts +1 -1
  89. package/package.json +7 -7
  90. package/dist/arcgis-coding-components/p-5d670bd2.js +0 -2
  91. package/dist/arcgis-coding-components/p-9e242e76.js +0 -1
  92. package/dist/arcgis-coding-components/p-ccdf0ac1.entry.js +0 -1
  93. package/dist/cjs/arcade-mode-b77afcc9.js +0 -598
  94. package/dist/esm/arcade-mode-70e22d22.js +0 -594
@@ -1,77 +1,77 @@
1
1
  import { EventEmitter, VNode, ComponentInterface } from "../../stencil-public-runtime";
2
2
  import "../../utils/arcade-monaco/arcade-contribution";
3
3
  export declare class ArcgisCodeEditor implements ComponentInterface {
4
- private _editorInstance?;
5
- private _currentTheme?;
6
- private _themeObserver?;
7
- private _componentReadyDefer;
8
- private _disposables;
9
- _hostElt: HTMLArcgisCodeEditorElement;
10
- /**
11
- * The initial value for the editor.
12
- * The value is the script, code, css, json, etc.
13
- */
14
- value: string | undefined;
15
- valuePropChange(newValue: string | undefined, oldValue: string | undefined): void;
16
- /**
17
- * The language for the editor.
18
- * Currently supported language: arcade, json, css, html, javascript, typescript, and text.
19
- */
20
- language: string | undefined;
21
- languagePropChange(newValue: string | undefined, oldValue: string | undefined): void;
22
- /**
23
- * A unique identifier for the model.
24
- * The unique identifier is sometimes used by language defaults to store model metadata.
25
- * For example, with arcade, the model id is used to store the arcade profile and other metadata.
26
- * The unique identifier is especially useful when there are multiple editors on the same page.
27
- */
28
- modelId: string;
29
- modelIdPropChange(newValue: string | undefined, oldValue: string | undefined): void;
30
- /**
31
- * Gets the current value in the editor.
32
- * @returns {Promise<string>}
33
- */
34
- getValue(): Promise<string>;
35
- /**
36
- * Sets the new value in the editor. Use this method instead of setting the value
37
- * on the model to preserve undo/redo stack.
38
- * @param text
39
- * @returns {Promise<void>}
40
- */
41
- setValue(text: string | null | undefined): Promise<void>;
42
- /**
43
- * Inserts a text at the current position in the editor.
44
- * @param {string} text - The string to insert
45
- * @returns {Promise<void>}
46
- */
47
- insertText(text: string | null | undefined): Promise<void>;
48
- /**
49
- * Inserts a snippet at the current position in the editor.
50
- * @param {string} text - The string snippet to insert
51
- * @returns {Promise<void>}
52
- */
53
- insertSnippet(text: string | null | undefined): Promise<void>;
54
- /**
55
- * @internal
56
- * Returns the editor instance.
57
- * @returns {Promise<IStandaloneCodeEditor>} - The monaco editor instance
58
- */
59
- getEditorInstance(): Promise<any | undefined>;
60
- /**
61
- * Sets the focus on the editor.
62
- * @returns {Promise<void>}
63
- */
64
- setFocus(): Promise<void>;
65
- /**
66
- * Emitted when the value has changed (script, code, css, json, etc.)
67
- */
68
- valueChange: EventEmitter<string>;
69
- componentWillLoad(): void;
70
- componentDidLoad(): void;
71
- disconnectedCallback(): void;
72
- private updateModel;
73
- private getUri;
74
- private updateTheme;
75
- private addCommonEditorActions;
76
- render(): VNode;
4
+ private _editorInstance?;
5
+ private _currentTheme?;
6
+ private _themeObserver?;
7
+ private _componentReadyDefer;
8
+ private _disposables;
9
+ _hostElt: HTMLArcgisCodeEditorElement;
10
+ /**
11
+ * The initial value for the editor.
12
+ * The value is the script, code, css, json, etc.
13
+ */
14
+ value: string | undefined;
15
+ valuePropChange(newValue: string | undefined, oldValue: string | undefined): void;
16
+ /**
17
+ * The language for the editor.
18
+ * Currently supported language: arcade, json, css, html, javascript, typescript, and text.
19
+ */
20
+ language: string | undefined;
21
+ languagePropChange(newValue: string | undefined, oldValue: string | undefined): void;
22
+ /**
23
+ * A unique identifier for the model.
24
+ * The unique identifier is sometimes used by language defaults to store model metadata.
25
+ * For example, with arcade, the model id is used to store the arcade profile and other metadata.
26
+ * The unique identifier is especially useful when there are multiple editors on the same page.
27
+ */
28
+ modelId: string;
29
+ modelIdPropChange(newValue: string | undefined, oldValue: string | undefined): void;
30
+ /**
31
+ * Gets the current value in the editor.
32
+ * @returns {Promise<string>}
33
+ */
34
+ getValue(): Promise<string>;
35
+ /**
36
+ * Sets the new value in the editor. Use this method instead of setting the value
37
+ * on the model to preserve undo/redo stack.
38
+ * @param text
39
+ * @returns {Promise<void>}
40
+ */
41
+ setValue(text: string | null | undefined): Promise<void>;
42
+ /**
43
+ * Inserts a text at the current position in the editor.
44
+ * @param {string} text - The string to insert
45
+ * @returns {Promise<void>}
46
+ */
47
+ insertText(text: string | null | undefined): Promise<void>;
48
+ /**
49
+ * Inserts a snippet at the current position in the editor.
50
+ * @param {string} text - The string snippet to insert
51
+ * @returns {Promise<void>}
52
+ */
53
+ insertSnippet(text: string | null | undefined): Promise<void>;
54
+ /**
55
+ * @internal
56
+ * Returns the editor instance.
57
+ * @returns {Promise<IStandaloneCodeEditor>} - The monaco editor instance
58
+ */
59
+ getEditorInstance(): Promise<any | undefined>;
60
+ /**
61
+ * Sets the focus on the editor.
62
+ * @returns {Promise<void>}
63
+ */
64
+ setFocus(): Promise<void>;
65
+ /**
66
+ * Emitted when the value has changed (script, code, css, json, etc.)
67
+ */
68
+ valueChange: EventEmitter<string>;
69
+ componentWillLoad(): void;
70
+ componentDidLoad(): void;
71
+ disconnectedCallback(): void;
72
+ private updateModel;
73
+ private getUri;
74
+ private updateTheme;
75
+ private addCommonEditorActions;
76
+ render(): VNode;
77
77
  }
@@ -810,6 +810,9 @@ export declare namespace JSXBase {
810
810
  name?: string;
811
811
  type?: string;
812
812
  value?: string | string[] | number;
813
+ popoverTargetAction?: string;
814
+ popoverTargetElement?: Element | null;
815
+ popoverTarget?: string;
813
816
  }
814
817
  interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
815
818
  height?: number | string;
@@ -971,6 +974,9 @@ export declare namespace JSXBase {
971
974
  webkitdirectory?: boolean;
972
975
  webkitEntries?: any;
973
976
  width?: number | string;
977
+ popoverTargetAction?: string;
978
+ popoverTargetElement?: Element | null;
979
+ popoverTarget?: string;
974
980
  }
975
981
  interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
976
982
  autoFocus?: boolean;
@@ -1223,6 +1229,7 @@ export declare namespace JSXBase {
1223
1229
  draggable?: boolean;
1224
1230
  hidden?: boolean;
1225
1231
  id?: string;
1232
+ inert?: boolean;
1226
1233
  lang?: string;
1227
1234
  spellcheck?: 'true' | 'false' | any;
1228
1235
  style?: {
@@ -1231,6 +1238,7 @@ export declare namespace JSXBase {
1231
1238
  tabIndex?: number;
1232
1239
  tabindex?: number | string;
1233
1240
  title?: string;
1241
+ popover?: string | null;
1234
1242
  inputMode?: string;
1235
1243
  inputmode?: string;
1236
1244
  enterKeyHint?: string;
@@ -5,18 +5,18 @@ import type { IEditorProfileDefinition } from "./profile/types";
5
5
  */
6
6
  export type ProfileVariableInstances = Record<string, __esri.ProfileVariableInstanceType>;
7
7
  interface IContextReferences {
8
- /**
9
- * Spatial reference object used to define the spatial reference for the arcade runtime.
10
- * By defaults, the spatial reference is set to Web Mercator (wkid: 3857).
11
- */
12
- spatialReference?: __esri.SpatialReference | {
13
- wkid: number;
14
- };
15
- /**
16
- * Defines the default time zone in which to create and display Arcade date types.
17
- * By default, the time zone is set to "system".
18
- */
19
- timeZone?: string;
8
+ /**
9
+ * Spatial reference object used to define the spatial reference for the arcade runtime.
10
+ * By defaults, the spatial reference is set to Web Mercator (wkid: 3857).
11
+ */
12
+ spatialReference?: __esri.SpatialReference | {
13
+ wkid: number;
14
+ };
15
+ /**
16
+ * Defines the default time zone in which to create and display Arcade date types.
17
+ * By default, the time zone is set to "system".
18
+ */
19
+ timeZone?: string;
20
20
  }
21
21
  /**
22
22
  * If a profile doesn't contain a map, the spatial reference of geometries will be defaulted to
@@ -24,126 +24,126 @@ interface IContextReferences {
24
24
  * The test context objects allows to set the execution spatial reference for such scenario.
25
25
  */
26
26
  export interface IEditorTestContext extends IContextReferences {
27
- /**
28
- * An object of key/value pairs where the key is the name of a profile variable.
29
- * The key's value must be of type ArcGIS core ProfileVariableInstanceType.
30
- */
31
- profileVariableInstances: ProfileVariableInstances;
27
+ /**
28
+ * An object of key/value pairs where the key is the name of a profile variable.
29
+ * The key's value must be of type ArcGIS core ProfileVariableInstanceType.
30
+ */
31
+ profileVariableInstances: ProfileVariableInstances;
32
32
  }
33
33
  /**
34
34
  * @deprecated Use IEditorTestContext instead.
35
35
  */
36
36
  export type EditorTestContext = IEditorTestContext;
37
37
  export interface IArcadeRuntimeDictionary {
38
- declaredClass?: string;
39
- arcadeDeclaredClass?: string;
40
- keys(): string[];
41
- field(name: string): any;
42
- geometry?(): any;
43
- castAsJson(): Record<string, any>;
38
+ declaredClass?: string;
39
+ arcadeDeclaredClass?: string;
40
+ keys(): string[];
41
+ field(name: string): any;
42
+ geometry?(): any;
43
+ castAsJson(): Record<string, any>;
44
44
  }
45
45
  export interface IAbortSignal {
46
- aborted: boolean;
46
+ aborted: boolean;
47
47
  }
48
48
  interface IArcadeRuntimeFeatureSet {
49
- declaredRootClass: string;
50
- fields: __esri.Field[] | null;
51
- load(): Promise<IArcadeRuntimeFeatureSet>;
52
- iterator(abortSignal: IAbortSignal): IArcadeRuntimeFeatureSetIterator;
49
+ declaredRootClass: string;
50
+ fields: __esri.Field[] | null;
51
+ load(): Promise<IArcadeRuntimeFeatureSet>;
52
+ iterator(abortSignal: IAbortSignal): IArcadeRuntimeFeatureSetIterator;
53
53
  }
54
54
  interface IArcadeRuntimeFeatureSetIterator {
55
- nextBatchAsArcadeFeatures(bsize: number, timeZone: string): Promise<IArcadeRuntimeDictionary[] | null>;
55
+ nextBatchAsArcadeFeatures(bsize: number, timeZone: string): Promise<IArcadeRuntimeDictionary[] | null>;
56
56
  }
57
57
  interface IArcadeRuntimeDate {
58
- declaredRootClass: string;
59
- toDateTime(): any;
60
- isUnknownTimeZone: boolean;
58
+ declaredRootClass: string;
59
+ toDateTime(): any;
60
+ isUnknownTimeZone: boolean;
61
61
  }
62
62
  interface IArcadeRuntimeDateOnly {
63
- declaredRootClass: string;
64
- /**
65
- * To ISO Date format
66
- */
67
- toString(): string;
63
+ declaredRootClass: string;
64
+ /**
65
+ * To ISO Date format
66
+ */
67
+ toString(): string;
68
68
  }
69
69
  interface IArcadeRuntimeTimeOnly {
70
- declaredRootClass: string;
71
- /**
72
- * To ISO Time format
73
- */
74
- toString(): string;
70
+ declaredRootClass: string;
71
+ /**
72
+ * To ISO Time format
73
+ */
74
+ toString(): string;
75
75
  }
76
76
  export type ResultType = "unknown" | "error" | "null" | "array" | "date" | "dateOnly" | "time" | "text" | "number" | "boolean" | "dictionary" | "geometry" | "attachment" | "feature" | "featureSet" | "portal";
77
77
  interface IArcadeResultBase {
78
- type: ResultType;
79
- timeStamp?: Date;
80
- compilationTime?: number;
81
- executionTime?: number;
78
+ type: ResultType;
79
+ timeStamp?: Date;
80
+ compilationTime?: number;
81
+ executionTime?: number;
82
82
  }
83
83
  export interface IArcadeResultUnknown extends IArcadeResultBase {
84
- type: "unknown";
84
+ type: "unknown";
85
85
  }
86
86
  export interface IArcadeResultNull extends IArcadeResultBase {
87
- type: "null";
87
+ type: "null";
88
88
  }
89
89
  export interface IArcadeResultError extends IArcadeResultBase {
90
- type: "error";
91
- value: string;
92
- error: any;
90
+ type: "error";
91
+ value: string;
92
+ error: any;
93
93
  }
94
94
  export interface IArcadeResultArray extends IArcadeResultBase {
95
- type: "array";
96
- value: Array<any>;
95
+ type: "array";
96
+ value: Array<any>;
97
97
  }
98
98
  export interface IArcadeResultDate extends IArcadeResultBase {
99
- type: "date";
100
- value: IArcadeRuntimeDate | Date;
99
+ type: "date";
100
+ value: IArcadeRuntimeDate | Date;
101
101
  }
102
102
  export interface IArcadeResultDateOnly extends IArcadeResultBase {
103
- type: "dateOnly";
104
- value: IArcadeRuntimeDateOnly;
103
+ type: "dateOnly";
104
+ value: IArcadeRuntimeDateOnly;
105
105
  }
106
106
  export interface IArcadeResultTimeOnly extends IArcadeResultBase {
107
- type: "time";
108
- value: IArcadeRuntimeTimeOnly;
107
+ type: "time";
108
+ value: IArcadeRuntimeTimeOnly;
109
109
  }
110
110
  export interface IArcadeResultString extends IArcadeResultBase {
111
- type: "text";
112
- value: string;
111
+ type: "text";
112
+ value: string;
113
113
  }
114
114
  export interface IArcadeResultNumber extends IArcadeResultBase {
115
- type: "number";
116
- value: number;
115
+ type: "number";
116
+ value: number;
117
117
  }
118
118
  export interface IArcadeResultBoolean extends IArcadeResultBase {
119
- type: "boolean";
120
- value: boolean;
119
+ type: "boolean";
120
+ value: boolean;
121
121
  }
122
122
  export interface IArcadeResultDictionary extends IArcadeResultBase {
123
- type: "dictionary";
124
- value: IArcadeRuntimeDictionary;
123
+ type: "dictionary";
124
+ value: IArcadeRuntimeDictionary;
125
125
  }
126
126
  export interface IArcadeResultGeometry extends IArcadeResultBase {
127
- type: "geometry";
128
- value: __esri.Geometry;
127
+ type: "geometry";
128
+ value: __esri.Geometry;
129
129
  }
130
130
  export interface IArcadeResultFeature extends IArcadeResultBase {
131
- type: "feature";
132
- value: IArcadeRuntimeDictionary;
131
+ type: "feature";
132
+ value: IArcadeRuntimeDictionary;
133
133
  }
134
134
  export interface IArcadeResultFeatureSet extends IArcadeResultBase {
135
- type: "featureSet";
136
- value: IArcadeRuntimeFeatureSet;
137
- iterator: IArcadeRuntimeFeatureSetIterator | null;
138
- features: IArcadeRuntimeDictionary[];
135
+ type: "featureSet";
136
+ value: IArcadeRuntimeFeatureSet;
137
+ iterator: IArcadeRuntimeFeatureSetIterator | null;
138
+ features: IArcadeRuntimeDictionary[];
139
139
  }
140
140
  export interface IArcadeResultPortal extends IArcadeResultBase {
141
- type: "portal";
142
- value: IArcadeRuntimeDictionary;
141
+ type: "portal";
142
+ value: IArcadeRuntimeDictionary;
143
143
  }
144
144
  export interface IArcadeResultAttachment extends IArcadeResultBase {
145
- type: "attachment";
146
- value: IArcadeRuntimeDictionary;
145
+ type: "attachment";
146
+ value: IArcadeRuntimeDictionary;
147
147
  }
148
148
  export type ArcadeResult = IArcadeResultError | IArcadeResultUnknown | IArcadeResultNull | IArcadeResultNumber | IArcadeResultBoolean | IArcadeResultString | IArcadeResultDate | IArcadeResultDateOnly | IArcadeResultTimeOnly | IArcadeResultArray | IArcadeResultDictionary | IArcadeResultGeometry | IArcadeResultAttachment | IArcadeResultFeature | IArcadeResultFeatureSet | IArcadeResultPortal;
149
149
  export declare function valueToArcadeResult(value: unknown): ArcadeResult;
@@ -4,74 +4,74 @@ import { IEvent, Uri } from "monaco-editor";
4
4
  import { EditorProfile } from "../profile/editor-profile";
5
5
  import { IEditorProfileDefinition, IPredefinedProfile } from "../profile/types";
6
6
  declare class ArcadeLanguageServiceDefaults implements IArcadeLanguageServiceDefaults {
7
- private _languageId;
8
- private _languageOptions;
9
- private _onDidChange;
10
- private _profileMap;
11
- private _apiContextMap;
12
- private _onModelContextDidChange;
13
- private _onDidModelContextChangeTimeout;
14
- get onDidChange(): IEvent<IArcadeLanguageServiceDefaults>;
15
- get onModelContextDidChange(): IEvent<string>;
16
- get languageId(): string;
17
- get languageOptions(): ArcadeLanguageServiceSettings | null;
18
- private _fireModelContextDidChange;
19
- private _getApiKey;
20
- /**
21
- * Create an EditorProfile for the given model id using the given definition and locale.
22
- * The EditorProfile is used by the the Arcade Language service as well by the cosing components.
23
- * The definition can be a pre-defined profile or an editor profile definition.
24
- * If the locale is not provided then the 'en' locale is used.
25
- * @param modelId The model id for which to create the context.
26
- * @param definition The definition to use for the model context.
27
- * @param locale The locale to use for the model context.
28
- * @returns The EditorProfile for the model.
29
- */
30
- setProfileForModel(modelId: string | Uri, definition: IEditorProfileDefinition | IPredefinedProfile | undefined, apiContext?: {
31
- locale: string;
32
- snippets?: ApiSnippet[];
33
- }): Promise<void>;
34
- /**
35
- * Dispose the editor profile for the given model id.
36
- * It is the responsibility of the caller that created the editor profile to dispose it.
37
- * @param modelId The model id for which to dispose the editor profile.
38
- */
39
- disposeEditorProfileForModel(modelId: string | Uri): void;
40
- /**
41
- * Dispose the api context for the given model id.
42
- * @param modelId The model id for which to dispose the api context.
43
- */
44
- disposeApiContextForModel(modelId: string | Uri): void;
45
- /**
46
- * Returns the editor profile for the given model id.
47
- * @param modelId The model id for which to get the editor profile.
48
- * @returns The editor profile for the model.
49
- */
50
- getEditorProfileForModel(modelId: string | Uri): EditorProfile | undefined;
51
- /**
52
- * Returns the API context for the given model id.
53
- * Returns the default context if the model has no context.
54
- * @param modelId The model id for which to get the API context.
55
- * @returns The API context for the model.
56
- */
57
- getApiContextForModel(contextId: string | Uri): ApiContext;
58
- /**
59
- * Set or update api context for the given model id.
60
- * @param modelId The model id for which to set the context.
61
- * @param apiContext The api context to set.
62
- */
63
- updateApiContextForModel(modelId: string | Uri, apiContext: ApiContext): void;
64
- /**
65
- * Set or update the Arcade language service options.
66
- * @param languageOptions The language options to set.
67
- */
68
- setLanguageOptions(languageOptions?: ArcadeLanguageServiceSettings): void;
7
+ private _languageId;
8
+ private _languageOptions;
9
+ private _onDidChange;
10
+ private _profileMap;
11
+ private _apiContextMap;
12
+ private _onModelContextDidChange;
13
+ private _onDidModelContextChangeTimeout;
14
+ get onDidChange(): IEvent<IArcadeLanguageServiceDefaults>;
15
+ get onModelContextDidChange(): IEvent<string>;
16
+ get languageId(): string;
17
+ get languageOptions(): ArcadeLanguageServiceSettings | null;
18
+ private _fireModelContextDidChange;
19
+ private _getApiKey;
20
+ /**
21
+ * Create an EditorProfile for the given model id using the given definition and locale.
22
+ * The EditorProfile is used by the the Arcade Language service as well by the cosing components.
23
+ * The definition can be a pre-defined profile or an editor profile definition.
24
+ * If the locale is not provided then the 'en' locale is used.
25
+ * @param modelId The model id for which to create the context.
26
+ * @param definition The definition to use for the model context.
27
+ * @param locale The locale to use for the model context.
28
+ * @returns The EditorProfile for the model.
29
+ */
30
+ setProfileForModel(modelId: string | Uri, definition: IEditorProfileDefinition | IPredefinedProfile | undefined, apiContext?: {
31
+ locale: string;
32
+ snippets?: ApiSnippet[];
33
+ }): Promise<void>;
34
+ /**
35
+ * Dispose the editor profile for the given model id.
36
+ * It is the responsibility of the caller that created the editor profile to dispose it.
37
+ * @param modelId The model id for which to dispose the editor profile.
38
+ */
39
+ disposeEditorProfileForModel(modelId: string | Uri): void;
40
+ /**
41
+ * Dispose the api context for the given model id.
42
+ * @param modelId The model id for which to dispose the api context.
43
+ */
44
+ disposeApiContextForModel(modelId: string | Uri): void;
45
+ /**
46
+ * Returns the editor profile for the given model id.
47
+ * @param modelId The model id for which to get the editor profile.
48
+ * @returns The editor profile for the model.
49
+ */
50
+ getEditorProfileForModel(modelId: string | Uri): EditorProfile | undefined;
51
+ /**
52
+ * Returns the API context for the given model id.
53
+ * Returns the default context if the model has no context.
54
+ * @param modelId The model id for which to get the API context.
55
+ * @returns The API context for the model.
56
+ */
57
+ getApiContextForModel(contextId: string | Uri): ApiContext;
58
+ /**
59
+ * Set or update api context for the given model id.
60
+ * @param modelId The model id for which to set the context.
61
+ * @param apiContext The api context to set.
62
+ */
63
+ updateApiContextForModel(modelId: string | Uri, apiContext: ApiContext): void;
64
+ /**
65
+ * Set or update the Arcade language service options.
66
+ * @param languageOptions The language options to set.
67
+ */
68
+ setLanguageOptions(languageOptions?: ArcadeLanguageServiceSettings): void;
69
69
  }
70
70
  export declare const arcadeDefaults: ArcadeLanguageServiceDefaults;
71
71
  export declare const arcade: {
72
- setProfileForModel(modelId: string | Uri, definition: IEditorProfileDefinition | IPredefinedProfile | undefined, apiContext?: {
73
- locale: string;
74
- snippets?: ApiSnippet[];
75
- }): Promise<void>;
72
+ setProfileForModel(modelId: string | Uri, definition: IEditorProfileDefinition | IPredefinedProfile | undefined, apiContext?: {
73
+ locale: string;
74
+ snippets?: ApiSnippet[];
75
+ }): Promise<void>;
76
76
  };
77
77
  export {};
@@ -2,31 +2,31 @@ import { Diagnostic } from "@arcgis/arcade-languageservice";
2
2
  import { editor, Uri, Position, languages } from "monaco-editor";
3
3
  import { IArcadeLanguageServiceDefaults, IArcadeWorkerAccessor } from "./types";
4
4
  export declare class DiagnosticsAdapter {
5
- private _languageId;
6
- private _worker;
7
- private _disposables;
8
- private _listener;
9
- private _diagnosticsService;
10
- private _defaults;
11
- constructor(_languageId: string, _worker: IArcadeWorkerAccessor, { defaults, diagnosticsService }: {
12
- defaults: IArcadeLanguageServiceDefaults;
13
- diagnosticsService: {
14
- fireDiagnosticsChange(uri: Uri, diagnostics: Diagnostic[]): void;
15
- };
16
- });
17
- dispose(): void;
18
- private _doValidate;
5
+ private _languageId;
6
+ private _worker;
7
+ private _disposables;
8
+ private _listener;
9
+ private _diagnosticsService;
10
+ private _defaults;
11
+ constructor(_languageId: string, _worker: IArcadeWorkerAccessor, { defaults, diagnosticsService }: {
12
+ defaults: IArcadeLanguageServiceDefaults;
13
+ diagnosticsService: {
14
+ fireDiagnosticsChange(uri: Uri, diagnostics: Diagnostic[]): void;
15
+ };
16
+ });
17
+ dispose(): void;
18
+ private _doValidate;
19
19
  }
20
20
  export declare class CompletionProvider implements languages.CompletionItemProvider {
21
- private _worker;
22
- private _defaults;
23
- constructor(_worker: IArcadeWorkerAccessor, _defaults: IArcadeLanguageServiceDefaults);
24
- triggerCharacters: string[];
25
- provideCompletionItems(model: editor.ITextModel, position: Position): Promise<languages.CompletionList | undefined>;
21
+ private _worker;
22
+ private _defaults;
23
+ constructor(_worker: IArcadeWorkerAccessor, _defaults: IArcadeLanguageServiceDefaults);
24
+ triggerCharacters: string[];
25
+ provideCompletionItems(model: editor.ITextModel, position: Position): Promise<languages.CompletionList | undefined>;
26
26
  }
27
27
  export declare class FormattingProvider implements languages.DocumentFormattingEditProvider {
28
- private _worker;
29
- private _defaults;
30
- constructor(_worker: IArcadeWorkerAccessor, _defaults: IArcadeLanguageServiceDefaults);
31
- provideDocumentFormattingEdits(model: editor.ITextModel): Promise<languages.TextEdit[]>;
28
+ private _worker;
29
+ private _defaults;
30
+ constructor(_worker: IArcadeWorkerAccessor, _defaults: IArcadeLanguageServiceDefaults);
31
+ provideDocumentFormattingEdits(model: editor.ITextModel): Promise<languages.TextEdit[]>;
32
32
  }
@@ -8,17 +8,17 @@ import type { Diagnostic } from "@arcgis/arcade-languageservice";
8
8
  */
9
9
  export declare function getArcadeWorker(...uris: Uri[]): Promise<IArcadeWorker>;
10
10
  export interface IDiagnosticsEvent {
11
- /**
12
- * The uri of the model for which the diagnostics changed.
13
- */
14
- uri: Uri;
15
- /**
16
- * The diagnostics for the model.
17
- */
18
- diagnostics: Diagnostic[];
11
+ /**
12
+ * The uri of the model for which the diagnostics changed.
13
+ */
14
+ uri: Uri;
15
+ /**
16
+ * The diagnostics for the model.
17
+ */
18
+ diagnostics: Diagnostic[];
19
19
  }
20
20
  export interface IDiagnosticService {
21
- onDiagnosticsChange: IEvent<IDiagnosticsEvent>;
21
+ onDiagnosticsChange: IEvent<IDiagnosticsEvent>;
22
22
  }
23
23
  /**
24
24
  * Get the Arcade Diagnostic Service.