@arcgis/coding-components 4.29.0-beta.4 → 4.29.0-beta.41
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.
- package/LICENSE.md +1 -1
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +1 -1
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.en.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.en.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.en.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.en.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.en.json +8 -8
- package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +24 -22
- package/dist/arcgis-coding-components/assets/code-editor/css.worker.js +34 -35
- package/dist/arcgis-coding-components/assets/code-editor/editor.worker.js +7 -5
- package/dist/arcgis-coding-components/assets/code-editor/html.worker.js +41 -40
- package/dist/arcgis-coding-components/assets/code-editor/json.worker.js +24 -22
- package/dist/arcgis-coding-components/assets/code-editor/ts.worker.js +163 -161
- package/dist/arcgis-coding-components/index.esm.js +1 -1
- package/dist/arcgis-coding-components/{p-3eb641a2.js → p-15b09ea0.js} +2 -2
- package/dist/arcgis-coding-components/{p-74e0738d.js → p-2053efe5.js} +3 -3
- package/dist/arcgis-coding-components/{p-5fe913f0.js → p-4056fd39.js} +3 -3
- package/dist/arcgis-coding-components/p-5d670bd2.js +2 -0
- package/dist/arcgis-coding-components/p-6b0c537d.js +62 -0
- package/dist/arcgis-coding-components/{p-683e3dd4.js → p-739259a0.js} +1 -1
- package/dist/arcgis-coding-components/{p-96c3ebcb.js → p-8919c3fb.js} +2 -2
- package/dist/arcgis-coding-components/p-a67252ce.entry.js +1 -0
- package/dist/arcgis-coding-components/{p-7fb19e9b.js → p-a8cfb543.js} +2 -2
- package/dist/arcgis-coding-components/{p-27d03fb2.js → p-c66fdb0b.js} +2 -2
- package/dist/arcgis-coding-components/{p-98f0e116.js → p-cfff9500.js} +1 -1
- package/dist/arcgis-coding-components/{p-a152b643.js → p-f56ec2fe.js} +2 -2
- package/dist/cjs/{arcade-defaults-55c18abe.js → arcade-defaults-0bd884a4.js} +64439 -59097
- package/dist/cjs/{arcade-mode-bd1630dd.js → arcade-mode-7bc7978f.js} +2 -2
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +40 -32
- package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
- package/dist/cjs/{css-3c67d381.js → css-7229b372.js} +1 -1
- package/dist/cjs/{cssMode-73d4ac47.js → cssMode-04695efd.js} +3 -3
- package/dist/cjs/{html-da599f39.js → html-4364b57b.js} +3 -3
- package/dist/cjs/{htmlMode-6f0883d3.js → htmlMode-3232d4d2.js} +3 -3
- package/dist/cjs/{index-f8a85eb8.js → index-6a382a34.js} +302 -64
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/{javascript-92268a2f.js → javascript-1b17ffb0.js} +4 -4
- package/dist/cjs/{jsonMode-110ef3c9.js → jsonMode-85cfe5d7.js} +3 -3
- package/dist/cjs/loader.cjs.js +3 -12
- package/dist/cjs/{tsMode-8cb72aa2.js → tsMode-6ac3dd97.js} +3 -3
- package/dist/cjs/{typescript-edaad128.js → typescript-e8854a4f.js} +3 -3
- package/dist/components/arcade-api.js +10 -8
- package/dist/components/arcade-contribution.js +1 -1
- package/dist/components/arcade-results.js +13 -8
- package/dist/components/arcade-suggestions.js +11 -7
- package/dist/components/arcade-variables.js +10 -6
- package/dist/components/arcgis-arcade-editor.js +20 -14
- package/dist/components/code-editor.js +8 -4
- package/dist/components/index.d.ts +5 -8
- package/dist/components/index.js +1 -7
- package/dist/components/index2.js +2 -2
- package/dist/esm/{arcade-defaults-ac486973.js → arcade-defaults-145d902c.js} +64438 -59096
- package/dist/esm/{arcade-mode-fc719356.js → arcade-mode-4f74179e.js} +2 -2
- package/dist/esm/arcgis-arcade-api_6.entry.js +40 -32
- package/dist/esm/arcgis-coding-components.js +4 -4
- package/dist/esm/{css-9066b96a.js → css-ff1e9f8c.js} +1 -1
- package/dist/esm/{cssMode-f452e699.js → cssMode-93b88d81.js} +3 -3
- package/dist/esm/{html-7c0b7520.js → html-7d557330.js} +3 -3
- package/dist/esm/{htmlMode-200a28b3.js → htmlMode-e9b83ec7.js} +3 -3
- package/dist/esm/{index-d4ec142a.js → index-fd6b2fd8.js} +302 -64
- package/dist/esm/index.js +2 -2
- package/dist/esm/{javascript-44a7aba3.js → javascript-83c892dd.js} +4 -4
- package/dist/esm/{jsonMode-fb784fa5.js → jsonMode-5c5eb0e2.js} +3 -3
- package/dist/esm/loader.js +4 -13
- package/dist/esm/{tsMode-890f3141.js → tsMode-77877670.js} +3 -3
- package/dist/esm/{typescript-4b8bacca.js → typescript-dab44a94.js} +3 -3
- package/dist/loader/index.d.ts +2 -2
- package/dist/types/components/arcade-api/arcade-api.d.ts +3 -2
- package/dist/types/components/arcade-editor/arcade-editor.d.ts +3 -2
- package/dist/types/components/arcade-results/arcade-results.d.ts +3 -2
- package/dist/types/components/arcade-suggestions/arcade-suggestions.d.ts +3 -2
- package/dist/types/components/arcade-variables/arcade-variables.d.ts +3 -2
- package/dist/types/components.d.ts +78 -0
- package/dist/types/stencil-public-runtime.d.ts +53 -17
- package/package.json +26 -30
- package/dist/arcgis-coding-components/p-0fa0a06d.js +0 -2
- package/dist/arcgis-coding-components/p-2c5583d5.entry.js +0 -1
- package/dist/arcgis-coding-components/p-a388e974.js +0 -62
- package/dist/esm/polyfills/css-shim.js +0 -1
package/dist/esm/loader.js
CHANGED
|
@@ -1,18 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { s as setNonce } from './index-
|
|
3
|
-
|
|
4
|
-
/*
|
|
5
|
-
Stencil Client Patch Esm v2.22.3 | MIT Licensed | https://stenciljs.com
|
|
6
|
-
*/
|
|
7
|
-
const patchEsm = () => {
|
|
8
|
-
return promiseResolve();
|
|
9
|
-
};
|
|
1
|
+
import { b as bootstrapLazy } from './index-fd6b2fd8.js';
|
|
2
|
+
export { s as setNonce } from './index-fd6b2fd8.js';
|
|
10
3
|
|
|
11
4
|
const defineCustomElements = (win, options) => {
|
|
12
|
-
if (typeof window === 'undefined') return
|
|
13
|
-
return
|
|
14
|
-
return bootstrapLazy([["arcgis-arcade-api_6",[[0,"arcgis-arcade-editor",{"profile":[16],"script":[1],"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"],"_locale":[32],"_t9nStrings":[32],"_standaloneCodeEditor":[32],"_preparingProfile":[32],"_editorProfile":[32],"_showExecutionPanel":[32],"_resultPanel":[32],"_executingScript":[32],"_consoleLogs":[32],"_executionResult":[32],"getScript":[64],"setFocus":[64],"getEditorInstance":[64],"getTestResult":[64],"getOutputType":[64],"updateThemeColors":[64]}],[1,"arcgis-arcade-api",{"hideDocumentationActions":[4,"hide-documentation-actions"],"modelId":[1,"model-id"],"_locale":[32],"_t9nStrings":[32],"_selectedApiItem":[32],"_filterValue":[32],"_colorizeStyle":[32],"_preparingApi":[32],"_apiLibrary":[32]}],[1,"arcgis-arcade-results",{"loading":[4],"openedResultPanel":[1537,"opened-result-panel"],"result":[16],"consoleLogs":[16],"_locale":[32],"_t9nStrings":[32]}],[1,"arcgis-arcade-suggestions",{"suggestions":[16],"_locale":[32],"_t9nStrings":[32],"_selectedSuggestion":[32],"_filterValue":[32],"_colorizeStyle":[32]}],[1,"arcgis-arcade-variables",{"loading":[4],"modelId":[1,"model-id"],"_locale":[32],"_t9nStrings":[32],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]}],[0,"arcgis-code-editor",{"value":[1],"language":[1],"modelId":[1,"model-id"],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]}]]]], options);
|
|
15
|
-
});
|
|
5
|
+
if (typeof window === 'undefined') return undefined;
|
|
6
|
+
return bootstrapLazy([["arcgis-arcade-api_6",[[0,"arcgis-arcade-editor",{"profile":[16],"script":[1],"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"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_standaloneCodeEditor":[32],"_preparingProfile":[32],"_editorProfile":[32],"_showExecutionPanel":[32],"_resultPanel":[32],"_executingScript":[32],"_consoleLogs":[32],"_executionResult":[32],"getScript":[64],"setFocus":[64],"getEditorInstance":[64],"getTestResult":[64],"getOutputType":[64],"updateThemeColors":[64]},null,{"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}],[1,"arcgis-arcade-api",{"hideDocumentationActions":[4,"hide-documentation-actions"],"modelId":[1,"model-id"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_selectedApiItem":[32],"_filterValue":[32],"_colorizeStyle":[32],"_preparingApi":[32],"_apiLibrary":[32]}],[1,"arcgis-arcade-results",{"loading":[4],"openedResultPanel":[1537,"opened-result-panel"],"result":[16],"consoleLogs":[16],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32]}],[1,"arcgis-arcade-suggestions",{"suggestions":[16],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_selectedSuggestion":[32],"_filterValue":[32],"_colorizeStyle":[32]},null,{"suggestions":["suggestionsPropChanged"]}],[1,"arcgis-arcade-variables",{"loading":[4],"modelId":[1,"model-id"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}],[0,"arcgis-code-editor",{"value":[1],"language":[1],"modelId":[1,"model-id"],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]},null,{"value":["valuePropChange"],"language":["languagePropChange"],"modelId":["modelIdPropChange"]}]]]], options);
|
|
16
7
|
};
|
|
17
8
|
|
|
18
9
|
export { defineCustomElements };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as typescriptDefaults,
|
|
2
|
-
import './index-
|
|
1
|
+
import { t as typescriptDefaults, n as monaco_editor_core_star } from './arcade-defaults-145d902c.js';
|
|
2
|
+
import './index-fd6b2fd8.js';
|
|
3
3
|
|
|
4
4
|
/*!-----------------------------------------------------------------------------
|
|
5
5
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6
|
-
* Version: 0.
|
|
6
|
+
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
7
7
|
* Released under the MIT license
|
|
8
8
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
9
9
|
*-----------------------------------------------------------------------------*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import './index-
|
|
1
|
+
import { n as monaco_editor_core_star } from './arcade-defaults-145d902c.js';
|
|
2
|
+
import './index-fd6b2fd8.js';
|
|
3
3
|
|
|
4
4
|
/*!-----------------------------------------------------------------------------
|
|
5
5
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6
|
-
* Version: 0.
|
|
6
|
+
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
7
7
|
* Released under the MIT license
|
|
8
8
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
9
9
|
*-----------------------------------------------------------------------------*/
|
package/dist/loader/index.d.ts
CHANGED
|
@@ -8,10 +8,10 @@ export interface CustomElementsDefineOptions {
|
|
|
8
8
|
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
9
9
|
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
10
10
|
}
|
|
11
|
-
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions):
|
|
11
|
+
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): void;
|
|
12
12
|
export declare function applyPolyfills(): Promise<void>;
|
|
13
13
|
|
|
14
|
-
/**
|
|
14
|
+
/**
|
|
15
15
|
* Used to specify a nonce value that corresponds with an application's CSP.
|
|
16
16
|
* When set, the nonce will be added to all dynamically created script and style tags at runtime.
|
|
17
17
|
* Alternatively, the nonce value can be set on a meta tag in the DOM head
|
|
@@ -5,8 +5,9 @@ import { ArcadeAPIStrings } from "./t9n-types";
|
|
|
5
5
|
export declare class ArcgisArcadeApi implements ComponentInterface {
|
|
6
6
|
private _flowObserver?;
|
|
7
7
|
private _themeChangedListner?;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
_hostElement: HTMLArcgisArcadeApiElement;
|
|
9
|
+
_lang: string;
|
|
10
|
+
_t9nLocale: string;
|
|
10
11
|
_t9nStrings: ArcadeAPIStrings | undefined;
|
|
11
12
|
_selectedApiItem: undefined | ApiItem;
|
|
12
13
|
_filterValue: string;
|
|
@@ -15,8 +15,9 @@ export declare class ArcgisArcadeEditor implements ComponentInterface {
|
|
|
15
15
|
private _modelId;
|
|
16
16
|
private _editorProfilePromise;
|
|
17
17
|
private _disposables;
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
_hostElement: HTMLArcgisArcadeEditorElement;
|
|
19
|
+
_lang: string;
|
|
20
|
+
_t9nLocale: string;
|
|
20
21
|
_t9nStrings: ArcadeEditorStrings | undefined;
|
|
21
22
|
_standaloneCodeEditor: editor.IStandaloneCodeEditor | undefined;
|
|
22
23
|
_preparingProfile: boolean;
|
|
@@ -4,8 +4,9 @@ import { ArcadeResultsStrings } from "./t9n-types";
|
|
|
4
4
|
export type ResultPanelName = "output" | "console" | "log";
|
|
5
5
|
/** @internal */
|
|
6
6
|
export declare class ArcgisArcadeResults implements ComponentInterface {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
_hostElement: HTMLArcgisArcadeResultsElement;
|
|
8
|
+
_lang: string;
|
|
9
|
+
_t9nLocale: string;
|
|
9
10
|
_t9nStrings: ArcadeResultsStrings | undefined;
|
|
10
11
|
/**
|
|
11
12
|
* Loading state
|
|
@@ -5,8 +5,9 @@ import { ArcadeSuggestionsStrings } from "./t9n-types";
|
|
|
5
5
|
export declare class ArcgisArcadeSuggestions implements ComponentInterface {
|
|
6
6
|
private _flowObserver?;
|
|
7
7
|
private _themeChangedListner?;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
_hostElement: HTMLArcgisArcadeSuggestionsElement;
|
|
9
|
+
_lang: string;
|
|
10
|
+
_t9nLocale: string;
|
|
10
11
|
_t9nStrings: ArcadeSuggestionsStrings | undefined;
|
|
11
12
|
_selectedSuggestion: undefined | IEditorCodeSuggestion;
|
|
12
13
|
_filterValue: string;
|
|
@@ -3,8 +3,9 @@ import { ArcadeVariablesStrings } from "./t9n-types";
|
|
|
3
3
|
/** @internal */
|
|
4
4
|
export declare class ArcgisArcadeVariables implements ComponentInterface {
|
|
5
5
|
private _flowObserver?;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
_hostElement: HTMLArcgisArcadeVariablesElement;
|
|
7
|
+
_lang: string;
|
|
8
|
+
_t9nLocale: string;
|
|
8
9
|
_t9nStrings: ArcadeVariablesStrings | undefined;
|
|
9
10
|
_mutationCounter: number;
|
|
10
11
|
_flowItemRenderers: Array<() => VNode>;
|
|
@@ -12,6 +12,13 @@ import { ApiSnippet, Diagnostic } from "@arcgis/arcade-languageservice";
|
|
|
12
12
|
import { SidePanelName } from "./components/arcade-editor/arcade-editor";
|
|
13
13
|
import { IColorRules } from "./utils/arcade-monaco/arcade-theme";
|
|
14
14
|
import { ResultPanelName } from "./components/arcade-results/arcade-results";
|
|
15
|
+
export { IEditorProfileDefinition, IPredefinedProfile } from "./utils/profile/types";
|
|
16
|
+
export { ArcadeResult, IEditorTestContext, ResultType } from "./utils/arcade-executor";
|
|
17
|
+
export { IEditorCodeSuggestion, IEditorCodeSuggestionGroup } from "./utils/editor-suggestions";
|
|
18
|
+
export { ApiSnippet, Diagnostic } from "@arcgis/arcade-languageservice";
|
|
19
|
+
export { SidePanelName } from "./components/arcade-editor/arcade-editor";
|
|
20
|
+
export { IColorRules } from "./utils/arcade-monaco/arcade-theme";
|
|
21
|
+
export { ResultPanelName } from "./components/arcade-results/arcade-results";
|
|
15
22
|
export namespace Components {
|
|
16
23
|
interface ArcgisArcadeApi {
|
|
17
24
|
/**
|
|
@@ -193,37 +200,108 @@ export interface ArcgisCodeEditorCustomEvent<T> extends CustomEvent<T> {
|
|
|
193
200
|
target: HTMLArcgisCodeEditorElement;
|
|
194
201
|
}
|
|
195
202
|
declare global {
|
|
203
|
+
interface HTMLArcgisArcadeApiElementEventMap {
|
|
204
|
+
"close": void;
|
|
205
|
+
"itemSelected": string;
|
|
206
|
+
}
|
|
196
207
|
interface HTMLArcgisArcadeApiElement extends Components.ArcgisArcadeApi, HTMLStencilElement {
|
|
208
|
+
addEventListener<K extends keyof HTMLArcgisArcadeApiElementEventMap>(type: K, listener: (this: HTMLArcgisArcadeApiElement, ev: ArcgisArcadeApiCustomEvent<HTMLArcgisArcadeApiElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
209
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
210
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
211
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
212
|
+
removeEventListener<K extends keyof HTMLArcgisArcadeApiElementEventMap>(type: K, listener: (this: HTMLArcgisArcadeApiElement, ev: ArcgisArcadeApiCustomEvent<HTMLArcgisArcadeApiElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
213
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
214
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
215
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
197
216
|
}
|
|
198
217
|
var HTMLArcgisArcadeApiElement: {
|
|
199
218
|
prototype: HTMLArcgisArcadeApiElement;
|
|
200
219
|
new (): HTMLArcgisArcadeApiElement;
|
|
201
220
|
};
|
|
221
|
+
interface HTMLArcgisArcadeEditorElementEventMap {
|
|
222
|
+
"scriptChange": string;
|
|
223
|
+
"diagnosticsChange": Diagnostic[];
|
|
224
|
+
}
|
|
202
225
|
interface HTMLArcgisArcadeEditorElement extends Components.ArcgisArcadeEditor, HTMLStencilElement {
|
|
226
|
+
addEventListener<K extends keyof HTMLArcgisArcadeEditorElementEventMap>(type: K, listener: (this: HTMLArcgisArcadeEditorElement, ev: ArcgisArcadeEditorCustomEvent<HTMLArcgisArcadeEditorElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
227
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
228
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
229
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
230
|
+
removeEventListener<K extends keyof HTMLArcgisArcadeEditorElementEventMap>(type: K, listener: (this: HTMLArcgisArcadeEditorElement, ev: ArcgisArcadeEditorCustomEvent<HTMLArcgisArcadeEditorElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
231
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
232
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
233
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
203
234
|
}
|
|
204
235
|
var HTMLArcgisArcadeEditorElement: {
|
|
205
236
|
prototype: HTMLArcgisArcadeEditorElement;
|
|
206
237
|
new (): HTMLArcgisArcadeEditorElement;
|
|
207
238
|
};
|
|
239
|
+
interface HTMLArcgisArcadeResultsElementEventMap {
|
|
240
|
+
"openedResultPanelChange": ResultPanelName;
|
|
241
|
+
"close": void;
|
|
242
|
+
}
|
|
208
243
|
interface HTMLArcgisArcadeResultsElement extends Components.ArcgisArcadeResults, HTMLStencilElement {
|
|
244
|
+
addEventListener<K extends keyof HTMLArcgisArcadeResultsElementEventMap>(type: K, listener: (this: HTMLArcgisArcadeResultsElement, ev: ArcgisArcadeResultsCustomEvent<HTMLArcgisArcadeResultsElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
245
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
246
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
247
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
248
|
+
removeEventListener<K extends keyof HTMLArcgisArcadeResultsElementEventMap>(type: K, listener: (this: HTMLArcgisArcadeResultsElement, ev: ArcgisArcadeResultsCustomEvent<HTMLArcgisArcadeResultsElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
249
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
250
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
251
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
209
252
|
}
|
|
210
253
|
var HTMLArcgisArcadeResultsElement: {
|
|
211
254
|
prototype: HTMLArcgisArcadeResultsElement;
|
|
212
255
|
new (): HTMLArcgisArcadeResultsElement;
|
|
213
256
|
};
|
|
257
|
+
interface HTMLArcgisArcadeSuggestionsElementEventMap {
|
|
258
|
+
"close": void;
|
|
259
|
+
"itemSelected": string;
|
|
260
|
+
}
|
|
214
261
|
interface HTMLArcgisArcadeSuggestionsElement extends Components.ArcgisArcadeSuggestions, HTMLStencilElement {
|
|
262
|
+
addEventListener<K extends keyof HTMLArcgisArcadeSuggestionsElementEventMap>(type: K, listener: (this: HTMLArcgisArcadeSuggestionsElement, ev: ArcgisArcadeSuggestionsCustomEvent<HTMLArcgisArcadeSuggestionsElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
263
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
264
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
265
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
266
|
+
removeEventListener<K extends keyof HTMLArcgisArcadeSuggestionsElementEventMap>(type: K, listener: (this: HTMLArcgisArcadeSuggestionsElement, ev: ArcgisArcadeSuggestionsCustomEvent<HTMLArcgisArcadeSuggestionsElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
267
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
268
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
269
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
215
270
|
}
|
|
216
271
|
var HTMLArcgisArcadeSuggestionsElement: {
|
|
217
272
|
prototype: HTMLArcgisArcadeSuggestionsElement;
|
|
218
273
|
new (): HTMLArcgisArcadeSuggestionsElement;
|
|
219
274
|
};
|
|
275
|
+
interface HTMLArcgisArcadeVariablesElementEventMap {
|
|
276
|
+
"close": void;
|
|
277
|
+
"itemSelected": string;
|
|
278
|
+
}
|
|
220
279
|
interface HTMLArcgisArcadeVariablesElement extends Components.ArcgisArcadeVariables, HTMLStencilElement {
|
|
280
|
+
addEventListener<K extends keyof HTMLArcgisArcadeVariablesElementEventMap>(type: K, listener: (this: HTMLArcgisArcadeVariablesElement, ev: ArcgisArcadeVariablesCustomEvent<HTMLArcgisArcadeVariablesElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
281
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
282
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
283
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
284
|
+
removeEventListener<K extends keyof HTMLArcgisArcadeVariablesElementEventMap>(type: K, listener: (this: HTMLArcgisArcadeVariablesElement, ev: ArcgisArcadeVariablesCustomEvent<HTMLArcgisArcadeVariablesElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
285
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
286
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
287
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
221
288
|
}
|
|
222
289
|
var HTMLArcgisArcadeVariablesElement: {
|
|
223
290
|
prototype: HTMLArcgisArcadeVariablesElement;
|
|
224
291
|
new (): HTMLArcgisArcadeVariablesElement;
|
|
225
292
|
};
|
|
293
|
+
interface HTMLArcgisCodeEditorElementEventMap {
|
|
294
|
+
"valueChange": string;
|
|
295
|
+
}
|
|
226
296
|
interface HTMLArcgisCodeEditorElement extends Components.ArcgisCodeEditor, HTMLStencilElement {
|
|
297
|
+
addEventListener<K extends keyof HTMLArcgisCodeEditorElementEventMap>(type: K, listener: (this: HTMLArcgisCodeEditorElement, ev: ArcgisCodeEditorCustomEvent<HTMLArcgisCodeEditorElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
298
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
299
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
300
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
301
|
+
removeEventListener<K extends keyof HTMLArcgisCodeEditorElementEventMap>(type: K, listener: (this: HTMLArcgisCodeEditorElement, ev: ArcgisCodeEditorCustomEvent<HTMLArcgisCodeEditorElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
302
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
303
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
304
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
227
305
|
}
|
|
228
306
|
var HTMLArcgisCodeEditorElement: {
|
|
229
307
|
prototype: HTMLArcgisCodeEditorElement;
|
|
@@ -3,6 +3,16 @@ export interface ComponentDecorator {
|
|
|
3
3
|
(opts?: ComponentOptions): ClassDecorator;
|
|
4
4
|
}
|
|
5
5
|
export interface ComponentOptions {
|
|
6
|
+
/**
|
|
7
|
+
* When set to `true` this component will be form-associated. See
|
|
8
|
+
* https://stenciljs.com/docs/next/form-associated documentation on how to
|
|
9
|
+
* build form-associated Stencil components that integrate into forms like
|
|
10
|
+
* native browser elements such as `<input>` and `<textarea>`.
|
|
11
|
+
*
|
|
12
|
+
* The {@link AttachInternals} decorator allows for access to the
|
|
13
|
+
* `ElementInternals` object to modify the associated form.
|
|
14
|
+
*/
|
|
15
|
+
formAssociated?: boolean;
|
|
6
16
|
/**
|
|
7
17
|
* Tag name of the web component. Ideally, the tag name must be globally unique,
|
|
8
18
|
* so it's recommended to choose an unique prefix for all your components within the same collection.
|
|
@@ -62,7 +72,7 @@ export interface PropOptions {
|
|
|
62
72
|
/**
|
|
63
73
|
* The name of the associated DOM attribute.
|
|
64
74
|
* Stencil uses different heuristics to determine the default name of the attribute,
|
|
65
|
-
* but using this property, you can override the default
|
|
75
|
+
* but using this property, you can override the default behavior.
|
|
66
76
|
*/
|
|
67
77
|
attribute?: string | null;
|
|
68
78
|
/**
|
|
@@ -107,6 +117,9 @@ export interface EventOptions {
|
|
|
107
117
|
*/
|
|
108
118
|
composed?: boolean;
|
|
109
119
|
}
|
|
120
|
+
export interface AttachInternalsDecorator {
|
|
121
|
+
(): PropertyDecorator;
|
|
122
|
+
}
|
|
110
123
|
export interface ListenDecorator {
|
|
111
124
|
(eventName: string, opts?: ListenOptions): CustomMethodDecorator<any>;
|
|
112
125
|
}
|
|
@@ -128,7 +141,7 @@ export interface ListenOptions {
|
|
|
128
141
|
* By default, Stencil uses several heuristics to determine if
|
|
129
142
|
* it must attach a `passive` event listener or not.
|
|
130
143
|
*
|
|
131
|
-
* Using the `passive` option can be used to change the default
|
|
144
|
+
* Using the `passive` option can be used to change the default behavior.
|
|
132
145
|
* Please see https://developers.google.com/web/updates/2016/06/passive-event-listeners for further information.
|
|
133
146
|
*/
|
|
134
147
|
passive?: boolean;
|
|
@@ -175,6 +188,12 @@ export declare const Element: ElementDecorator;
|
|
|
175
188
|
* https://stenciljs.com/docs/events
|
|
176
189
|
*/
|
|
177
190
|
export declare const Event: EventDecorator;
|
|
191
|
+
/**
|
|
192
|
+
* If the `formAssociated` option is set in options passed to the
|
|
193
|
+
* `@Component()` decorator then this decorator may be used to get access to the
|
|
194
|
+
* `ElementInternals` instance associated with the component.
|
|
195
|
+
*/
|
|
196
|
+
export declare const AttachInternals: AttachInternalsDecorator;
|
|
178
197
|
/**
|
|
179
198
|
* The `Listen()` decorator is for listening DOM events, including the ones
|
|
180
199
|
* dispatched from `@Events()`.
|
|
@@ -432,7 +451,7 @@ export interface QueueApi {
|
|
|
432
451
|
/**
|
|
433
452
|
* Host
|
|
434
453
|
*/
|
|
435
|
-
interface HostAttributes {
|
|
454
|
+
export interface HostAttributes {
|
|
436
455
|
class?: string | {
|
|
437
456
|
[className: string]: boolean;
|
|
438
457
|
};
|
|
@@ -471,7 +490,7 @@ export interface FunctionalUtilities {
|
|
|
471
490
|
/**
|
|
472
491
|
* Utility for reading the children of a functional component at runtime.
|
|
473
492
|
* Since the Stencil runtime uses a different interface for children it is
|
|
474
|
-
* not
|
|
493
|
+
* not recommended to read the children directly, and is preferable to use
|
|
475
494
|
* this utility to, for instance, perform a side effect for each child.
|
|
476
495
|
*/
|
|
477
496
|
forEach: (children: VNode[], cb: (vnode: ChildNode, index: number, array: ChildNode[]) => void) => void;
|
|
@@ -812,6 +831,7 @@ export declare namespace JSXBase {
|
|
|
812
831
|
datetime?: string;
|
|
813
832
|
}
|
|
814
833
|
interface DialogHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
834
|
+
onCancel?: (event: Event) => void;
|
|
815
835
|
onClose?: (event: Event) => void;
|
|
816
836
|
open?: boolean;
|
|
817
837
|
returnValue?: string;
|
|
@@ -871,6 +891,8 @@ export declare namespace JSXBase {
|
|
|
871
891
|
}
|
|
872
892
|
interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
873
893
|
alt?: string;
|
|
894
|
+
crossOrigin?: string;
|
|
895
|
+
crossorigin?: string;
|
|
874
896
|
decoding?: 'async' | 'auto' | 'sync';
|
|
875
897
|
importance?: 'low' | 'auto' | 'high';
|
|
876
898
|
height?: number | string;
|
|
@@ -892,8 +914,8 @@ export declare namespace JSXBase {
|
|
|
892
914
|
accept?: string;
|
|
893
915
|
allowdirs?: boolean;
|
|
894
916
|
alt?: string;
|
|
895
|
-
autoCapitalize?:
|
|
896
|
-
autocapitalize?:
|
|
917
|
+
autoCapitalize?: string;
|
|
918
|
+
autocapitalize?: string;
|
|
897
919
|
autoComplete?: string;
|
|
898
920
|
autocomplete?: string;
|
|
899
921
|
autoFocus?: boolean;
|
|
@@ -929,6 +951,8 @@ export declare namespace JSXBase {
|
|
|
929
951
|
minlength?: number | string;
|
|
930
952
|
multiple?: boolean;
|
|
931
953
|
name?: string;
|
|
954
|
+
onSelect?: (event: Event) => void;
|
|
955
|
+
onselect?: (event: Event) => void;
|
|
932
956
|
pattern?: string;
|
|
933
957
|
placeholder?: string;
|
|
934
958
|
readOnly?: boolean;
|
|
@@ -1110,11 +1134,13 @@ export declare namespace JSXBase {
|
|
|
1110
1134
|
autocomplete?: string;
|
|
1111
1135
|
}
|
|
1112
1136
|
interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1137
|
+
height?: number;
|
|
1113
1138
|
media?: string;
|
|
1114
1139
|
sizes?: string;
|
|
1115
1140
|
src?: string;
|
|
1116
1141
|
srcSet?: string;
|
|
1117
1142
|
type?: string;
|
|
1143
|
+
width?: number;
|
|
1118
1144
|
}
|
|
1119
1145
|
interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1120
1146
|
media?: string;
|
|
@@ -1130,6 +1156,8 @@ export declare namespace JSXBase {
|
|
|
1130
1156
|
summary?: string;
|
|
1131
1157
|
}
|
|
1132
1158
|
interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1159
|
+
autoComplete?: string;
|
|
1160
|
+
autocomplete?: string;
|
|
1133
1161
|
autoFocus?: boolean;
|
|
1134
1162
|
autofocus?: boolean | string;
|
|
1135
1163
|
cols?: number;
|
|
@@ -1140,6 +1168,8 @@ export declare namespace JSXBase {
|
|
|
1140
1168
|
minLength?: number;
|
|
1141
1169
|
minlength?: number | string;
|
|
1142
1170
|
name?: string;
|
|
1171
|
+
onSelect?: (event: Event) => void;
|
|
1172
|
+
onselect?: (event: Event) => void;
|
|
1143
1173
|
placeholder?: string;
|
|
1144
1174
|
readOnly?: boolean;
|
|
1145
1175
|
readonly?: boolean | string;
|
|
@@ -1217,8 +1247,8 @@ export declare namespace JSXBase {
|
|
|
1217
1247
|
resource?: string;
|
|
1218
1248
|
typeof?: string;
|
|
1219
1249
|
vocab?: string;
|
|
1220
|
-
autoCapitalize?:
|
|
1221
|
-
autocapitalize?:
|
|
1250
|
+
autoCapitalize?: string;
|
|
1251
|
+
autocapitalize?: string;
|
|
1222
1252
|
autoCorrect?: string;
|
|
1223
1253
|
autocorrect?: string;
|
|
1224
1254
|
autoSave?: string;
|
|
@@ -1286,7 +1316,7 @@ export declare namespace JSXBase {
|
|
|
1286
1316
|
clipPathUnits?: number | string;
|
|
1287
1317
|
'clip-rule'?: number | string;
|
|
1288
1318
|
'color-interpolation'?: number | string;
|
|
1289
|
-
'color-interpolation-filters'?: 'auto' | '
|
|
1319
|
+
'color-interpolation-filters'?: 'auto' | 'sRGB' | 'linearRGB';
|
|
1290
1320
|
'color-profile'?: number | string;
|
|
1291
1321
|
'color-rendering'?: number | string;
|
|
1292
1322
|
contentScriptType?: number | string;
|
|
@@ -1509,12 +1539,12 @@ export declare namespace JSXBase {
|
|
|
1509
1539
|
onCutCapture?: (event: ClipboardEvent) => void;
|
|
1510
1540
|
onPaste?: (event: ClipboardEvent) => void;
|
|
1511
1541
|
onPasteCapture?: (event: ClipboardEvent) => void;
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1542
|
+
onCompositionend?: (event: CompositionEvent) => void;
|
|
1543
|
+
onCompositionendCapture?: (event: CompositionEvent) => void;
|
|
1544
|
+
onCompositionstart?: (event: CompositionEvent) => void;
|
|
1545
|
+
onCompositionstartCapture?: (event: CompositionEvent) => void;
|
|
1546
|
+
onCompositionupdate?: (event: CompositionEvent) => void;
|
|
1547
|
+
onCompositionupdateCapture?: (event: CompositionEvent) => void;
|
|
1518
1548
|
onFocus?: (event: FocusEvent) => void;
|
|
1519
1549
|
onFocusCapture?: (event: FocusEvent) => void;
|
|
1520
1550
|
onFocusin?: (event: FocusEvent) => void;
|
|
@@ -1525,8 +1555,8 @@ export declare namespace JSXBase {
|
|
|
1525
1555
|
onBlurCapture?: (event: FocusEvent) => void;
|
|
1526
1556
|
onChange?: (event: Event) => void;
|
|
1527
1557
|
onChangeCapture?: (event: Event) => void;
|
|
1528
|
-
onInput?: (event:
|
|
1529
|
-
onInputCapture?: (event:
|
|
1558
|
+
onInput?: (event: InputEvent) => void;
|
|
1559
|
+
onInputCapture?: (event: InputEvent) => void;
|
|
1530
1560
|
onReset?: (event: Event) => void;
|
|
1531
1561
|
onResetCapture?: (event: Event) => void;
|
|
1532
1562
|
onSubmit?: (event: Event) => void;
|
|
@@ -1616,8 +1646,14 @@ export declare namespace JSXBase {
|
|
|
1616
1646
|
onAnimationEndCapture?: (event: AnimationEvent) => void;
|
|
1617
1647
|
onAnimationIteration?: (event: AnimationEvent) => void;
|
|
1618
1648
|
onAnimationIterationCapture?: (event: AnimationEvent) => void;
|
|
1649
|
+
onTransitionCancel?: (event: TransitionEvent) => void;
|
|
1650
|
+
onTransitionCancelCapture?: (event: TransitionEvent) => void;
|
|
1619
1651
|
onTransitionEnd?: (event: TransitionEvent) => void;
|
|
1620
1652
|
onTransitionEndCapture?: (event: TransitionEvent) => void;
|
|
1653
|
+
onTransitionRun?: (event: TransitionEvent) => void;
|
|
1654
|
+
onTransitionRunCapture?: (event: TransitionEvent) => void;
|
|
1655
|
+
onTransitionStart?: (event: TransitionEvent) => void;
|
|
1656
|
+
onTransitionStartCapture?: (event: TransitionEvent) => void;
|
|
1621
1657
|
}
|
|
1622
1658
|
}
|
|
1623
1659
|
export interface JSXAttributes<T = Element> {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@arcgis/coding-components",
|
|
3
3
|
"description": "Contains components for editing code in different languages. The currently supported languages are html, css, json, TypeScript, JavaScript, and Arcade.",
|
|
4
4
|
"homepage": "https://developers.arcgis.com/javascript/latest/",
|
|
5
|
-
"version": "4.29.0-beta.
|
|
5
|
+
"version": "4.29.0-beta.41",
|
|
6
6
|
"module": "dist/components/index.js",
|
|
7
7
|
"main": "dist/index.cjs.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -36,41 +36,38 @@
|
|
|
36
36
|
"build:external-storybook": "storybook build -c .storybook/external -o storybook-static-external --quiet",
|
|
37
37
|
"build:components": "stencil build",
|
|
38
38
|
"build:components:dev": "stencil build --dev",
|
|
39
|
-
"build:monaco-workers": "
|
|
39
|
+
"build:monaco-workers": "tsx ./scripts/build-monaco-workers.ts",
|
|
40
40
|
"build:composite-storybook": "yarn g:shx cp -r storybook-static-external ../../docs/storybook-static-external/coding-components",
|
|
41
41
|
"test": "yarn build:test && stencil test --spec --no-build",
|
|
42
42
|
"test:e2e": "stencil test --e2e",
|
|
43
43
|
"test.watch": "stencil test --spec --e2e --watchAll",
|
|
44
44
|
"clean": "rimraf ./node_modules ./storybook-static ./storybook-static-external ./turbo ./dist ./www",
|
|
45
|
-
"lint": "eslint .",
|
|
46
45
|
"pre": "rimraf ./dist ./www && awc-build-t9n-types",
|
|
47
46
|
"util:build-t9n-types": "awc-build-t9n-types",
|
|
48
47
|
"update:storybook": "npx storybook@latest upgrade",
|
|
49
|
-
"generate": "stencil generate"
|
|
50
|
-
"prettier": "prettier . --write"
|
|
48
|
+
"generate": "stencil generate"
|
|
51
49
|
},
|
|
52
50
|
"dependencies": {
|
|
53
|
-
"@arcgis/arcade-languageservice": "4.29.0-beta.
|
|
54
|
-
"@stencil/core": "
|
|
55
|
-
"monaco-editor": "^0.
|
|
51
|
+
"@arcgis/arcade-languageservice": "4.29.0-beta.41",
|
|
52
|
+
"@stencil/core": "4.7.1",
|
|
53
|
+
"monaco-editor": "^0.44.0",
|
|
56
54
|
"vscode-languageserver-types": "^3.17.3"
|
|
57
55
|
},
|
|
58
56
|
"devDependencies": {
|
|
59
|
-
"@arcgis/components-plugins": "4.29.0-beta.
|
|
60
|
-
"@arcgis/components-utils": "4.29.0-beta.
|
|
57
|
+
"@arcgis/components-plugins": "4.29.0-beta.41",
|
|
58
|
+
"@arcgis/components-utils": "4.29.0-beta.41",
|
|
61
59
|
"@arcgis/core": ">=4.29.0-next <4.30",
|
|
62
|
-
"@arcgis/core-adapter": "4.29.0-beta.
|
|
63
|
-
"@arcgis/eslint-config": "1.0.0",
|
|
60
|
+
"@arcgis/core-adapter": "4.29.0-beta.41",
|
|
64
61
|
"@arcgis/typescript-config": "1.0.0",
|
|
65
|
-
"@esri/calcite-components": "^
|
|
62
|
+
"@esri/calcite-components": "^2.0.0",
|
|
66
63
|
"@stencil/angular-output-target": "0.8.1",
|
|
67
64
|
"@stencil/react-output-target": "0.5.3",
|
|
68
|
-
"@stencil/sass": "^
|
|
69
|
-
"@storybook/addon-a11y": "^7.
|
|
70
|
-
"@storybook/addon-essentials": "^7.
|
|
71
|
-
"@storybook/addon-links": "^7.
|
|
72
|
-
"@storybook/web-components": "^7.
|
|
73
|
-
"@storybook/web-components-vite": "^7.
|
|
65
|
+
"@stencil/sass": "^3.0.0",
|
|
66
|
+
"@storybook/addon-a11y": "^7.6.0",
|
|
67
|
+
"@storybook/addon-essentials": "^7.6.0",
|
|
68
|
+
"@storybook/addon-links": "^7.6.0",
|
|
69
|
+
"@storybook/web-components": "^7.6.0",
|
|
70
|
+
"@storybook/web-components-vite": "^7.6.0",
|
|
74
71
|
"@types/estraverse": "^5.1.2",
|
|
75
72
|
"@types/estree": "^1.0.0",
|
|
76
73
|
"@types/fs-extra": "^11.0.1",
|
|
@@ -81,20 +78,19 @@
|
|
|
81
78
|
"@types/resize-observer-browser": "^0.1.7",
|
|
82
79
|
"@types/sass": "^1.45.0",
|
|
83
80
|
"@vitejs/plugin-react": "^4.0.1",
|
|
84
|
-
"esbuild": "^0.19.
|
|
85
|
-
"eslint": "^8.
|
|
81
|
+
"esbuild": "^0.19.5",
|
|
82
|
+
"eslint": "^8.55.0",
|
|
86
83
|
"estraverse": "^5.3.0",
|
|
87
84
|
"fs-extra": "^11.1.1",
|
|
88
85
|
"jest": "^29.5.0",
|
|
89
86
|
"jest-cli": "^29.5.0",
|
|
90
87
|
"kill-port": "^2.0.1",
|
|
91
|
-
"lit": "^
|
|
88
|
+
"lit": "^3.1.0",
|
|
92
89
|
"magic-string": "^0.30.0",
|
|
93
90
|
"marked": "^5.0.5",
|
|
94
|
-
"postcss": "^8.4.
|
|
91
|
+
"postcss": "^8.4.31",
|
|
95
92
|
"postcss-discard-comments": "^5.1.2",
|
|
96
93
|
"postcss-url": "^10.1.3",
|
|
97
|
-
"prettier": "^3.0.0",
|
|
98
94
|
"puppeteer": "^20.5.0",
|
|
99
95
|
"react": "^18.2.0",
|
|
100
96
|
"react-dom": "^18.2.0",
|
|
@@ -103,16 +99,16 @@
|
|
|
103
99
|
"rollup": "^3.25.0",
|
|
104
100
|
"rollup-plugin-import-css": "^3.1.0",
|
|
105
101
|
"rollup-plugin-node-polyfills": "^0.2.1",
|
|
106
|
-
"storybook": "^7.
|
|
107
|
-
"
|
|
108
|
-
"typescript": "
|
|
109
|
-
"vite": "^
|
|
102
|
+
"storybook": "^7.6.0",
|
|
103
|
+
"tsx": "^4.1.2",
|
|
104
|
+
"typescript": "5.2.2",
|
|
105
|
+
"vite": "^5.0.0",
|
|
110
106
|
"vscode-languageserver-textdocument": "^1.0.9",
|
|
111
107
|
"yargs": "^17.1.1"
|
|
112
108
|
},
|
|
113
109
|
"peerDependencies": {
|
|
114
110
|
"@arcgis/core": ">=4.29.0-next <4.30",
|
|
115
|
-
"@esri/calcite-components": "
|
|
111
|
+
"@esri/calcite-components": "^2.0.0"
|
|
116
112
|
},
|
|
117
|
-
"gitHead": "
|
|
113
|
+
"gitHead": "819fd350e56671fcbe459da3ffdbbd2074c98865"
|
|
118
114
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
let e,n,t=!1;const l=e=>{const n=new URL(e,ee.t);return n.origin!==Y.location.origin?n.href:n.pathname},s="http://www.w3.org/1999/xlink",o={},i=e=>"object"==(e=typeof e)||"function"===e;function c(e){var n,t,l;return null!==(l=null===(t=null===(n=e.head)||void 0===n?void 0:n.querySelector('meta[name="csp-nonce"]'))||void 0===t?void 0:t.getAttribute("content"))&&void 0!==l?l:void 0}const r=(e,n,...t)=>{let l=null,s=null,o=!1,c=!1;const r=[],a=n=>{for(let t=0;t<n.length;t++)l=n[t],Array.isArray(l)?a(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof e&&!i(l))&&(l+=""),o&&c?r[r.length-1].l+=l:r.push(o?u(null,l):l),c=o)};if(a(t),n){n.key&&(s=n.key);{const e=n.className||n.class;e&&(n.class="object"!=typeof e?e:Object.keys(e).filter((n=>e[n])).join(" "))}}if("function"==typeof e)return e(null===n?{}:n,r,f);const d=u(e,null);return d.o=n,r.length>0&&(d.i=r),d.u=s,d},u=(e,n)=>({h:0,m:e,l:n,p:null,i:null,o:null,u:null}),a={},f={forEach:(e,n)=>e.map(d).forEach(n),map:(e,n)=>e.map(d).map(n).map(y)},d=e=>({vattrs:e.o,vchildren:e.i,vkey:e.u,vname:e.$,vtag:e.m,vtext:e.l}),y=e=>{if("function"==typeof e.vtag){const n=Object.assign({},e.vattrs);return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),r(e.vtag,n,...e.vchildren||[])}const n=u(e.vtag,e.vtext);return n.o=e.vattrs,n.i=e.vchildren,n.u=e.vkey,n.$=e.vname,n},h=e=>z(e).v,m=(e,n,t)=>{const l=h(e);return{emit:e=>p(l,n,{bubbles:!!(4&t),composed:!!(2&t),cancelable:!!(1&t),detail:e})}},p=(e,n,t)=>{const l=ee.ce(n,t);return e.dispatchEvent(l),l},$=new WeakMap,b=e=>"sc-"+e.g,v=(e,n,t,l,o,c)=>{if(t!==l){let r=I(e,n),u=n.toLowerCase();if("class"===n){const n=e.classList,s=g(t),o=g(l);n.remove(...s.filter((e=>e&&!o.includes(e)))),n.add(...o.filter((e=>e&&!s.includes(e))))}else if("style"===n){for(const n in t)l&&null!=l[n]||(n.includes("-")?e.style.removeProperty(n):e.style[n]="");for(const n in l)t&&l[n]===t[n]||(n.includes("-")?e.style.setProperty(n,l[n]):e.style[n]=l[n])}else if("key"===n);else if("ref"===n)l&&l(e);else if(r||"o"!==n[0]||"n"!==n[1]){const a=i(l);if((r||a&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[n]=l;else{const s=null==l?"":l;"list"===n?r=!1:null!=t&&e[n]==s||(e[n]=s)}}catch(e){}let f=!1;u!==(u=u.replace(/^xlink\:?/,""))&&(n=u,f=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(n)||(f?e.removeAttributeNS(s,n):e.removeAttribute(n)):(!r||4&c||o)&&!a&&(l=!0===l?"":l,f?e.setAttributeNS(s,n,l):e.setAttribute(n,l))}else n="-"===n[2]?n.slice(3):I(Y,u)?u.slice(2):u[2]+n.slice(3),t&&ee.rel(e,n,t,!1),l&&ee.ael(e,n,l,!1)}},w=/\s/,g=e=>e?e.split(w):[],k=(e,n,t,l)=>{const s=11===n.p.nodeType&&n.p.host?n.p.host:n.p,i=e&&e.o||o,c=n.o||o;for(l in i)l in c||v(s,l,i[l],void 0,t,n.h);for(l in c)v(s,l,i[l],c[l],t,n.h)},S=(n,t,l)=>{const s=t.i[l];let o,i,c=0;if(null!==s.l)o=s.p=Z.createTextNode(s.l);else if(o=s.p=Z.createElement(s.m),k(null,s,!1),null!=e&&o["s-si"]!==e&&o.classList.add(o["s-si"]=e),s.i)for(c=0;c<s.i.length;++c)i=S(n,s,c),i&&o.appendChild(i);return o},j=(e,t,l,s,o,i)=>{let c,r=e;for(r.shadowRoot&&r.tagName===n&&(r=r.shadowRoot);o<=i;++o)s[o]&&(c=S(null,l,o),c&&(s[o].p=c,r.insertBefore(c,t)))},M=(e,n,t,l,s)=>{for(;n<=t;++n)(l=e[n])&&(s=l.p,x(l),s.remove())},O=(e,n)=>e.m===n.m&&e.u===n.u,C=(e,n)=>{const t=n.p=e.p,l=e.i,s=n.i,o=n.l;null===o?(k(e,n,!1),null!==l&&null!==s?((e,n,t,l)=>{let s,o,i=0,c=0,r=0,u=0,a=n.length-1,f=n[0],d=n[a],y=l.length-1,h=l[0],m=l[y];for(;i<=a&&c<=y;)if(null==f)f=n[++i];else if(null==d)d=n[--a];else if(null==h)h=l[++c];else if(null==m)m=l[--y];else if(O(f,h))C(f,h),f=n[++i],h=l[++c];else if(O(d,m))C(d,m),d=n[--a],m=l[--y];else if(O(f,m))C(f,m),e.insertBefore(f.p,d.p.nextSibling),f=n[++i],m=l[--y];else if(O(d,h))C(d,h),e.insertBefore(d.p,f.p),d=n[--a],h=l[++c];else{for(r=-1,u=i;u<=a;++u)if(n[u]&&null!==n[u].u&&n[u].u===h.u){r=u;break}r>=0?(o=n[r],o.m!==h.m?s=S(n&&n[c],t,r):(C(o,h),n[r]=void 0,s=o.p),h=l[++c]):(s=S(n&&n[c],t,c),h=l[++c]),s&&f.p.parentNode.insertBefore(s,f.p)}i>a?j(e,null==l[y+1]?null:l[y+1].p,t,l,c,y):c>y&&M(n,i,a)})(t,l,n,s):null!==s?(null!==e.l&&(t.textContent=""),j(t,null,n,s,0,s.length-1)):null!==l&&M(l,0,l.length-1)):e.l!==o&&(t.data=o)},x=e=>{e.o&&e.o.ref&&e.o.ref(null),e.i&&e.i.map(x)},L=(e,n)=>{n&&!e.k&&n["s-p"]&&n["s-p"].push(new Promise((n=>e.k=n)))},P=(e,n)=>{if(e.h|=16,!(4&e.h))return L(e,e.S),ue((()=>E(e,n)));e.h|=512},E=(e,n)=>{const t=e.j;let l;return n&&(l=W(t,"componentWillLoad")),A(l,(()=>N(e,t,n)))},N=async(e,n,t)=>{const l=e.v,s=l["s-rc"];t&&(e=>{const n=e.M,t=e.v,l=n.h,s=((e,n)=>{var t;let l=b(n);const s=X.get(l);if(e=11===e.nodeType?e:Z,s)if("string"==typeof s){let n,o=$.get(e=e.head||e);if(o||$.set(e,o=new Set),!o.has(l)){{n=Z.createElement("style"),n.innerHTML=s;const l=null!==(t=ee.O)&&void 0!==t?t:c(Z);null!=l&&n.setAttribute("nonce",l),e.insertBefore(n,e.querySelector("link"))}o&&o.add(l)}}else e.adoptedStyleSheets.includes(s)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]);return l})(t.shadowRoot?t.shadowRoot:t.getRootNode(),n);10&l&&(t["s-sc"]=s,t.classList.add(s+"-h"))})(e);R(e,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const n=l["s-p"],t=()=>T(e);0===n.length?t():(Promise.all(n).then(t),e.h|=4,n.length=0)}},R=(t,l)=>{try{l=l.render(),t.h&=-17,t.h|=2,((t,l)=>{const s=t.v,o=t.M,i=t.C||u(null,null),c=(e=>e&&e.m===a)(l)?l:r(null,null,l);n=s.tagName,o.L&&(c.o=c.o||{},o.L.map((([e,n])=>c.o[n]=s[e]))),c.m=null,c.h|=4,t.C=c,c.p=i.p=s.shadowRoot||s,e=s["s-sc"],C(i,c)})(t,l)}catch(e){J(e,t.v)}return null},T=e=>{const n=e.v,t=e.j,l=e.S;64&e.h||(e.h|=64,F(n),W(t,"componentDidLoad"),e.P(n),l||U()),e.N(n),e.k&&(e.k(),e.k=void 0),512&e.h&&re((()=>P(e,!1))),e.h&=-517},U=()=>{F(Z.documentElement),re((()=>p(Y,"appload",{detail:{namespace:"arcgis-coding-components"}})))},W=(e,n,t)=>{if(e&&e[n])try{return e[n](t)}catch(e){J(e)}},A=(e,n)=>e&&e.then?e.then(n):n(),F=e=>e.setAttribute("hydrated",""),H=(e,n,t)=>{if(n.R){e.watchers&&(n.T=e.watchers);const l=Object.entries(n.R),s=e.prototype;if(l.map((([e,[l]])=>{31&l||2&t&&32&l?Object.defineProperty(s,e,{get(){return((e,n)=>z(this).U.get(n))(0,e)},set(t){((e,n,t,l)=>{const s=z(e),o=s.v,c=s.U.get(n),r=s.h,u=s.j;if(t=((e,n)=>null==e||i(e)?e:4&n?"false"!==e&&(""===e||!!e):1&n?e+"":e)(t,l.R[n][0]),(!(8&r)||void 0===c)&&t!==c&&(!Number.isNaN(c)||!Number.isNaN(t))&&(s.U.set(n,t),u)){if(l.T&&128&r){const e=l.T[n];e&&e.map((e=>{try{u[e](t,c,n)}catch(e){J(e,o)}}))}2==(18&r)&&P(s,!1)}})(this,e,t,n)},configurable:!0,enumerable:!0}):1&t&&64&l&&Object.defineProperty(s,e,{value(...n){const t=z(this);return t.W.then((()=>t.j[e](...n)))}})})),1&t){const t=new Map;s.attributeChangedCallback=function(e,n,l){ee.jmp((()=>{const n=t.get(e);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(s.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},e.observedAttributes=l.filter((([e,n])=>15&n[0])).map((([e,l])=>{const s=l[1]||e;return t.set(s,e),512&l[0]&&n.L.push([e,s]),s}))}}return e},q=(e,n={})=>{var t;const l=[],s=n.exclude||[],o=Y.customElements,i=Z.head,r=i.querySelector("meta[charset]"),u=Z.createElement("style"),a=[];let f,d=!0;Object.assign(ee,n),ee.t=new URL(n.resourcesUrl||"./",Z.baseURI).href,e.map((e=>{e[1].map((n=>{const t={h:n[0],g:n[1],R:n[2],A:n[3]};t.R=n[2],t.L=[],t.T={};const i=t.g,c=class extends HTMLElement{constructor(e){super(e),G(e=this,t),1&t.h&&e.attachShadow({mode:"open"})}connectedCallback(){f&&(clearTimeout(f),f=null),d?a.push(this):ee.jmp((()=>(e=>{if(0==(1&ee.h)){const n=z(e),t=n.M,l=()=>{};if(!(1&n.h)){n.h|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){L(n,n.S=t);break}}t.R&&Object.entries(t.R).map((([n,[t]])=>{if(31&t&&e.hasOwnProperty(n)){const t=e[n];delete e[n],e[n]=t}})),(async(e,n,t,l,s)=>{if(0==(32&n.h)){{if(n.h|=32,(s=Q(t)).then){const e=()=>{};s=await s,e()}s.isProxied||(t.T=s.watchers,H(s,t,2),s.isProxied=!0);const e=()=>{};n.h|=8;try{new s(n)}catch(e){J(e)}n.h&=-9,n.h|=128,e()}if(s.style){let e=s.style;const n=b(t);if(!X.has(n)){const l=()=>{};((e,n,t)=>{let l=X.get(e);te&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,X.set(e,l)})(n,e,!!(1&t.h)),l()}}}const o=n.S,i=()=>P(n,!0);o&&o["s-rc"]?o["s-rc"].push(i):i()})(0,n,t)}l()}})(this)))}disconnectedCallback(){ee.jmp((()=>(()=>{0==(1&ee.h)&&W(z(this).j,"disconnectedCallback")})()))}componentOnReady(){return z(this).F}};t.H=e[0],s.includes(i)||o.get(i)||(l.push(i),o.define(i,H(c,t,1)))}))}));{u.innerHTML=l+"{visibility:hidden}[hydrated]{visibility:inherit}",u.setAttribute("data-styles","");const e=null!==(t=ee.O)&&void 0!==t?t:c(Z);null!=e&&u.setAttribute("nonce",e),i.insertBefore(u,r?r.nextSibling:i.firstChild)}d=!1,a.length?a.map((e=>e.connectedCallback())):ee.jmp((()=>f=setTimeout(U,30)))},D=(e,n)=>n,V=e=>ee.O=e,_=new WeakMap,z=e=>_.get(e),B=(e,n)=>_.set(n.j=e,n),G=(e,n)=>{const t={h:0,v:e,M:n,U:new Map};return t.W=new Promise((e=>t.N=e)),t.F=new Promise((e=>t.P=e)),e["s-p"]=[],e["s-rc"]=[],_.set(e,t)},I=(e,n)=>n in e,J=(e,n)=>(0,console.error)(e,n),K=new Map,Q=e=>{const n=e.g.replace(/-/g,"_"),t=e.H,l=K.get(t);return l?l[n]:import(`./${t}.entry.js`).then((e=>(K.set(t,e),e[n])),J)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},X=new Map,Y="undefined"!=typeof window?window:{},Z=Y.document||{head:{}},ee={h:0,t:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,n,t,l)=>e.addEventListener(n,t,l),rel:(e,n,t,l)=>e.removeEventListener(n,t,l),ce:(e,n)=>new CustomEvent(e,n)},ne=e=>Promise.resolve(e),te=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),le=[],se=[],oe=(e,n)=>l=>{e.push(l),t||(t=!0,n&&4&ee.h?re(ce):ee.raf(ce))},ie=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(e){J(e)}e.length=0},ce=()=>{ie(le),ie(se),(t=le.length>0)&&ee.raf(ce)},re=e=>ne().then(e),ue=oe(se,!0);export{D as F,a as H,h as a,q as b,m as c,l as g,r as h,ne as p,B as r,V as s}
|