@arcgis/coding-components 4.31.0-next.85 → 4.31.0-next.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/arcgis-coding-components/arcgis-coding-components.css +1 -1
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
- package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +26 -26
- package/dist/arcgis-coding-components/index.esm.js +2 -2
- package/dist/arcgis-coding-components/{p-6dddf7c6.js → p-0831d7e3.js} +10 -10
- package/dist/arcgis-coding-components/p-20cbb2be.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-4dc09b9b.js → p-446add2c.js} +2 -2
- package/dist/arcgis-coding-components/{p-d0decfa1.js → p-5e5ee397.js} +2 -2
- package/dist/arcgis-coding-components/p-63d471e6.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-21986b95.js → p-68d93bec.js} +2 -2
- package/dist/arcgis-coding-components/p-7199d246.js +7 -0
- package/dist/arcgis-coding-components/{p-4f1f2dd0.js → p-8590c168.js} +2 -2
- package/dist/arcgis-coding-components/{p-8504f6ee.js → p-86517ba4.js} +2 -2
- package/dist/arcgis-coding-components/{p-6db4951f.js → p-8ac43937.js} +2 -2
- package/dist/arcgis-coding-components/{p-6ba86387.js → p-8d2811d6.js} +2 -2
- package/dist/arcgis-coding-components/{p-6b2d51ce.js → p-9705a7c3.js} +3 -3
- package/dist/arcgis-coding-components/{p-ef40e5fb.entry.js → p-b1766017.entry.js} +2 -2
- package/dist/arcgis-coding-components/p-b3a07d3d.js +6 -0
- package/dist/arcgis-coding-components/{p-34f45a39.js → p-b47d0934.js} +1 -1
- package/dist/arcgis-coding-components/{p-f9a6d614.js → p-cd94eef5.js} +2 -2
- package/dist/arcgis-coding-components/p-d99cfac0.js +6 -0
- package/dist/arcgis-coding-components/{p-717b28d7.js → p-dfc23342.js} +1 -1
- package/dist/cjs/{app-globals-64321eee.js → app-globals-c671eae8.js} +1 -1
- package/dist/cjs/{arcade-defaults-adc065a1.js → arcade-defaults-87cb0d4e.js} +3 -3
- package/dist/cjs/{arcade-mode-edd4fdf3.js → arcade-mode-05be84a4.js} +4 -4
- package/dist/cjs/arcgis-arcade-editor_6.cjs.entry.js +59 -93
- package/dist/cjs/arcgis-coding-components.cjs.js +5 -5
- package/dist/cjs/arcgis-sql-expression-editor.cjs.entry.js +10 -7
- package/dist/cjs/arcgis-sql-expression-fields.cjs.entry.js +4 -4
- package/dist/cjs/{css-28229e9e.js → css-6993712b.js} +1 -1
- package/dist/cjs/{cssMode-bab07355.js → cssMode-5e68ccad.js} +3 -3
- package/dist/cjs/{html-5b883749.js → html-8856cd07.js} +3 -3
- package/dist/cjs/{htmlMode-95f8a4cc.js → htmlMode-586acc8e.js} +3 -3
- package/dist/cjs/{index-e078ddd9.js → index-926e4742.js} +24 -7
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/{javascript-f1667c96.js → javascript-d6c61309.js} +4 -4
- package/dist/cjs/{jsonMode-8b831485.js → jsonMode-6eaf1ab6.js} +3 -3
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{sql-expr-defaults-0a2f3160.js → sql-expr-defaults-53f5441c.js} +21 -19
- package/dist/cjs/{sql-expr-mode-658d46fd.js → sql-expr-mode-b8b5dec0.js} +5 -9
- package/dist/cjs/{tsMode-9327cb13.js → tsMode-c5f1d89c.js} +3 -3
- package/dist/cjs/{typescript-8e259ec5.js → typescript-0cee7fa8.js} +3 -3
- package/dist/cjs/{useT9n-c50e3a5b.js → useT9n-7c90f507.js} +3 -3
- package/dist/components/arcade-defaults.js +1 -1
- package/dist/components/arcade-mode.js +2 -2
- package/dist/components/arcade-results.js +1 -1
- package/dist/components/arcade-suggestions.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +6 -27
- package/dist/components/arcgis-arcade-results.js +1 -1
- package/dist/components/arcgis-arcade-suggestions.js +1 -1
- package/dist/components/arcgis-assets.d.ts +1 -1
- package/dist/components/arcgis-assets.js +1 -1
- package/dist/components/arcgis-code-editor.js +1 -1
- package/dist/components/arcgis-editor-variables.js +1 -1
- package/dist/components/arcgis-language-api-panel.js +1 -1
- package/dist/components/arcgis-sql-expression-editor.js +7 -4
- package/dist/components/arcgis-sql-expression-fields.js +1 -1
- package/dist/components/chunk-IUUKU7EW.js +2 -2
- package/dist/components/code-editor.js +54 -67
- package/dist/components/editor-variables.js +1 -1
- package/dist/components/fields.js +1 -1
- package/dist/components/index.d.ts +18 -3
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +13 -11
- package/dist/components/language-api-panel.js +1 -1
- package/dist/components/markdown.js +1 -1
- package/dist/components/sql-expr-defaults.js +1 -1
- package/dist/components/sql-expr-mode.js +3 -7
- package/dist/components/useT9n.js +1 -1
- package/dist/components/utilities.js +1 -1
- package/dist/esm/{app-globals-0fdff2c9.js → app-globals-8347c4b3.js} +1 -1
- package/dist/esm/{arcade-defaults-fc8720cf.js → arcade-defaults-50d9d8c8.js} +3 -3
- package/dist/esm/{arcade-mode-09716194.js → arcade-mode-7edef4e0.js} +4 -4
- package/dist/esm/arcgis-arcade-editor_6.entry.js +59 -93
- package/dist/esm/arcgis-coding-components.js +6 -6
- package/dist/esm/arcgis-sql-expression-editor.entry.js +10 -7
- package/dist/esm/arcgis-sql-expression-fields.entry.js +4 -4
- package/dist/esm/{css-ee3a1991.js → css-9f8f8b62.js} +1 -1
- package/dist/esm/{cssMode-dc6b1abe.js → cssMode-16f9393b.js} +3 -3
- package/dist/esm/{html-d289b15b.js → html-6400ea87.js} +3 -3
- package/dist/esm/{htmlMode-ac296150.js → htmlMode-649bdb55.js} +3 -3
- package/dist/esm/{index-6e2de412.js → index-25e5e252.js} +24 -7
- package/dist/esm/index.js +4 -4
- package/dist/esm/{javascript-376b79d1.js → javascript-53af5e46.js} +4 -4
- package/dist/esm/{jsonMode-d7625920.js → jsonMode-40045ac2.js} +3 -3
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{sql-expr-defaults-443c4344.js → sql-expr-defaults-d147b45c.js} +22 -20
- package/dist/esm/{sql-expr-mode-049af586.js → sql-expr-mode-11024d7c.js} +5 -9
- package/dist/esm/{tsMode-bc18818c.js → tsMode-93c862c3.js} +3 -3
- package/dist/esm/{typescript-057af1f6.js → typescript-1c9039a2.js} +3 -3
- package/dist/esm/{useT9n-574037bc.js → useT9n-ce905834.js} +3 -3
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/types/components/arcade-editor/arcade-editor.d.ts +2 -8
- package/dist/types/components/arcade-results/arcade-results.d.ts +2 -2
- package/dist/types/components/arcade-suggestions/arcade-suggestions.d.ts +2 -2
- package/dist/types/components/code-editor/code-editor.d.ts +1 -0
- package/dist/types/components/editor-variables/editor-variables.d.ts +2 -2
- package/dist/types/components/language-api-panel/language-api-panel.d.ts +2 -2
- package/dist/types/components/sql-expression-editor/sql-expression-editor.d.ts +3 -2
- package/dist/types/components/sql-expression-fields/sql-expression-fields.d.ts +2 -2
- package/dist/types/components.d.ts +0 -6
- package/dist/types/data/arcgis-web-compoments/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/arcade-editor/arcade-editor.stories.d.ts +0 -7
- package/dist/types/utils/profile/editor-profile.d.ts +2 -2
- package/dist/types/utils/setup-monaco-theme.d.ts +1 -0
- package/dist/types/utils/sql-expr-monaco/sql-expr-constants.d.ts +1 -1
- package/package.json +16 -16
- package/dist/arcgis-coding-components/p-40e55c7e.entry.js +0 -6
- package/dist/arcgis-coding-components/p-79d58774.js +0 -6
- package/dist/arcgis-coding-components/p-88ac4d4e.js +0 -7
- package/dist/arcgis-coding-components/p-88de12c7.js +0 -6
- package/dist/arcgis-coding-components/p-aad7c354.entry.js +0 -6
- package/dist/types/utils/arcade-monaco/arcade-theme.d.ts +0 -12
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.88
|
|
5
5
|
*/
|
|
6
6
|
import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
|
|
7
7
|
import { g as generateColorizeStyles, o as onColorizeThemeChanged, c as convertMarkdownString, a as colorizeCodeElement } from './markdown.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
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.
|
|
4
|
+
* v4.31.0-next.88
|
|
5
5
|
*/
|
|
6
6
|
import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Fragment, Host } from '@stencil/core/internal/client';
|
|
7
7
|
import { KeyCode } from 'monaco-editor';
|
|
8
8
|
import { d as defineCustomElement$6, e as executeScript, D as DevelopersWebSitePath } from './arcade-results.js';
|
|
9
|
-
import { d as defineCustomElement$4, u as updateThemeColors, c as colorRulesKeys, s as setupMonacoEnvironment, g as getArcadeDiagnosticService } from './code-editor.js';
|
|
10
9
|
import { u as useControllerManager, g as getSet } from './chunk-IUUKU7EW.js';
|
|
11
|
-
import { D as Deferred, g as generateGuid
|
|
10
|
+
import { D as Deferred, g as generateGuid } from './index2.js';
|
|
11
|
+
import { d as defineCustomElement$4, s as setupMonacoEnvironment, g as getArcadeDiagnosticService } from './code-editor.js';
|
|
12
12
|
import { b as arcadeDefaults } from './arcade-defaults.js';
|
|
13
13
|
import { u as useT9n } from './useT9n.js';
|
|
14
14
|
import { d as defineCustomElement$5 } from './arcade-suggestions.js';
|
|
@@ -20,10 +20,10 @@ import "@esri/calcite-components/dist/components/calcite-action.js";
|
|
|
20
20
|
import "@esri/calcite-components/dist/components/calcite-tooltip.js";
|
|
21
21
|
import { getArcgisAssetPath as getAssetPath } from "./arcgis-assets.js";
|
|
22
22
|
|
|
23
|
-
const arcadeEditorCss = "arcgis-arcade-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:
|
|
23
|
+
const arcadeEditorCss = "arcgis-arcade-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-border);box-sizing:border-box;background-color:var(--arcgis-coding-components-background-color);height:100%}arcgis-arcade-editor .flex-adjustable{flex:1 1 auto;overflow:hidden}arcgis-arcade-editor .flex-panel{flex:1 0 auto}arcgis-arcade-editor .position-relative{position:relative}arcgis-arcade-editor .flex-row{display:flex;flex-direction:row;overflow:hidden}arcgis-arcade-editor .flex-column{display:flex;flex-direction:column;overflow:hidden}arcgis-arcade-editor .border-inline-start{border-inline-start:var(--arcgis-coding-components-border);box-sizing:border-box}arcgis-arcade-editor .border-inline-end{border-inline-end:var(--arcgis-coding-components-border);box-sizing:border-box}arcgis-arcade-editor .sticky{position:sticky;top:0px;z-index:10}arcgis-arcade-editor .notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1);text-align:center}arcgis-arcade-editor .side-action-bar{max-width:var(--arcgis-coding-components-side-action-bar-max-w)}arcgis-arcade-editor .side-panel{max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w)}arcgis-arcade-editor .side-panel calcite-flow{height:100%}arcgis-arcade-editor .main-action-bar{border-bottom:var(--arcgis-coding-components-border);flex:0 0 auto}arcgis-arcade-editor .main-action-bar calcite-action-group{padding-inline-end:var(--calcite-spacing-sm)}arcgis-arcade-editor .main-action-bar calcite-action-group calcite-action{padding-inline-end:var(--calcite-spacing-sm)}arcgis-arcade-editor .main-action-bar calcite-action-group calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}arcgis-arcade-editor .main-action-bar calcite-action-group:last-child{border-inline-end-width:0px}arcgis-arcade-editor .main-action-bar calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}arcgis-arcade-editor arcgis-arcade-results{border-top:var(--arcgis-coding-components-border);box-sizing:border-box;max-height:50%;min-height:50%;margin-bottom:-1px}arcgis-arcade-editor calcite-flow [slot=footer]{word-break:break-word}";
|
|
24
24
|
const ArcgisArcadeEditorStyle0 = arcadeEditorCss;
|
|
25
25
|
|
|
26
|
-
const __cmpMeta = [0,"arcgis-arcade-editor",{"profile":[1040],"script":[1025],"testData":[1040],"suggestions":[1040],"snippets":[1040],"hideDocumentationActions":[1028,"hide-documentation-actions"],"hideSideBar":[1028,"hide-side-bar"],"sideActionBarExpanded":[1540,"side-action-bar-expanded"],"openedSidePanel":[1537,"opened-side-panel"],"editorOptions":[1040],"editorInstance":[1040],"_preparingArcade":[32],"_editorProfile":[32],"_apiLibrary":[32],"_showExecutionPanel":[32],"_resultPanel":[32],"_executingScript":[32],"_consoleLogs":[32],"_executionResult":[32],"messages":[32],"getScript":[64],"setFocus":[64],"getEditorInstance":[64],"getTestResult":[64]
|
|
26
|
+
const __cmpMeta = [0,"arcgis-arcade-editor",{"profile":[1040],"script":[1025],"testData":[1040],"suggestions":[1040],"snippets":[1040],"hideDocumentationActions":[1028,"hide-documentation-actions"],"hideSideBar":[1028,"hide-side-bar"],"sideActionBarExpanded":[1540,"side-action-bar-expanded"],"openedSidePanel":[1537,"opened-side-panel"],"editorOptions":[1040],"editorInstance":[1040],"_preparingArcade":[32],"_editorProfile":[32],"_apiLibrary":[32],"_showExecutionPanel":[32],"_resultPanel":[32],"_executingScript":[32],"_consoleLogs":[32],"_executionResult":[32],"messages":[32],"getScript":[64],"setFocus":[64],"getEditorInstance":[64],"getTestResult":[64]},undefined,{"messages":["_messagesChanged"],"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}];
|
|
27
27
|
const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeEditor extends HTMLElement {
|
|
28
28
|
connectedCallback() { this.manager._connectedCallback(); }
|
|
29
29
|
constructor() {
|
|
@@ -166,27 +166,6 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
|
|
|
166
166
|
const script = this._codeEditorElt?.value;
|
|
167
167
|
return await executeScript(editorProfile.definition, script, this.testData);
|
|
168
168
|
}
|
|
169
|
-
/**
|
|
170
|
-
* Allows to change theme colors
|
|
171
|
-
* @internal
|
|
172
|
-
*/
|
|
173
|
-
async updateThemeColors(colorRules) {
|
|
174
|
-
const theme = getElementTheme(this.el);
|
|
175
|
-
updateThemeColors(theme, colorRules);
|
|
176
|
-
if (colorRules === undefined) {
|
|
177
|
-
colorRulesKeys.forEach((key) => {
|
|
178
|
-
this.el.style.removeProperty(`--arcgis-arcade-editor-${key}`);
|
|
179
|
-
});
|
|
180
|
-
return;
|
|
181
|
-
}
|
|
182
|
-
colorRulesKeys.forEach((key) => {
|
|
183
|
-
const foreground = colorRules[key];
|
|
184
|
-
if (!foreground) {
|
|
185
|
-
return;
|
|
186
|
-
}
|
|
187
|
-
this.el.style.setProperty(`--arcgis-arcade-editor-${key}`, foreground);
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
169
|
// #endregion
|
|
191
170
|
// #region Component lifecycle events
|
|
192
171
|
async componentWillLoad() {
|
|
@@ -337,7 +316,7 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
|
|
|
337
316
|
//#endregion
|
|
338
317
|
//#region Render
|
|
339
318
|
render() {
|
|
340
|
-
return (h(Host, { key: '
|
|
319
|
+
return (h(Host, { key: '38666dca7b4c799a4c92eeb58008d7e8cefd465d' }, this.renderMainActionBar(), h("div", { key: 'f182e16b276288b0cb4d6f7d22414e78c28990fa', class: "flex-row flex-adjustable" }, h("div", { key: '105e0f5218e7c8017b784b4ab9b0dfffc82205b0', class: "flex-column flex-adjustable" }, this.renderMainPanel(), this.renderResultsPanel()), this.renderSidePanel(), this.renderSideActionBar())));
|
|
341
320
|
}
|
|
342
321
|
static get assetsDirs() { return ["assets"]; }
|
|
343
322
|
get el() { return this; }
|
|
@@ -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.
|
|
4
|
+
* v4.31.0-next.88
|
|
5
5
|
*/
|
|
6
6
|
import { A as ArcgisArcadeResults$1, d as defineCustomElement$1 } from './arcade-results.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.88
|
|
5
5
|
*/
|
|
6
6
|
import { A as ArcgisArcadeSuggestions$1, d as defineCustomElement$1 } from './arcade-suggestions.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.88
|
|
5
5
|
*/
|
|
6
6
|
let resourceUrl = "https://js.arcgis.com/coding-components/next/";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.88
|
|
5
5
|
*/
|
|
6
6
|
import { A as ArcgisCodeEditor$1, d as defineCustomElement$1 } from './code-editor.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.88
|
|
5
5
|
*/
|
|
6
6
|
import { A as ArcgisEditorVariables$1, d as defineCustomElement$1 } from './editor-variables.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.88
|
|
5
5
|
*/
|
|
6
6
|
import { A as ArcgisLanguageApiPanel$1, d as defineCustomElement$1 } from './language-api-panel.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.88
|
|
5
5
|
*/
|
|
6
6
|
import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
|
|
7
7
|
import { u as useControllerManager } from './chunk-IUUKU7EW.js';
|
|
@@ -15,7 +15,7 @@ import "@esri/calcite-components/dist/components/calcite-action-bar.js";
|
|
|
15
15
|
import "@esri/calcite-components/dist/components/calcite-action.js";
|
|
16
16
|
import "@esri/calcite-components/dist/components/calcite-tooltip.js";
|
|
17
17
|
|
|
18
|
-
const sqlExpressionEditorCss = "arcgis-sql-expression-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:
|
|
18
|
+
const sqlExpressionEditorCss = "arcgis-sql-expression-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-border);box-sizing:border-box;background-color:var(--arcgis-coding-components-background-color);height:100%}arcgis-sql-expression-editor .flex-adjustable{flex:1 1 auto;overflow:hidden}arcgis-sql-expression-editor .flex-panel{flex:1 0 auto}arcgis-sql-expression-editor .position-relative{position:relative}arcgis-sql-expression-editor .flex-row{display:flex;flex-direction:row;overflow:hidden}arcgis-sql-expression-editor .flex-column{display:flex;flex-direction:column;overflow:hidden}arcgis-sql-expression-editor .border-inline-start{border-inline-start:var(--arcgis-coding-components-border);box-sizing:border-box}arcgis-sql-expression-editor .border-inline-end{border-inline-end:var(--arcgis-coding-components-border);box-sizing:border-box}arcgis-sql-expression-editor .side-action-bar{max-width:var(--arcgis-coding-components-side-action-bar-max-w)}arcgis-sql-expression-editor .side-panel{max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w)}arcgis-sql-expression-editor .side-panel calcite-flow{height:100%}";
|
|
19
19
|
const ArcgisSqlExpressionEditorStyle0 = sqlExpressionEditorCss;
|
|
20
20
|
|
|
21
21
|
const __cmpMeta = [0,"arcgis-sql-expression-editor",{"profile":[1040],"script":[1025],"_preparing":[32],"_editorProfile":[32],"_activeAction":[32],"_apiLibrary":[32],"sideActionBarExpanded":[32],"messages":[32]},undefined,{"messages":["_messagesChanged"],"profile":["_profileChanged"]}];
|
|
@@ -43,6 +43,9 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
|
|
|
43
43
|
this.script = e.detail;
|
|
44
44
|
this.arcgisScriptChange.emit(e.detail);
|
|
45
45
|
};
|
|
46
|
+
this._toggleSideActionBarExpanded = () => {
|
|
47
|
+
this.sideActionBarExpanded = !this.sideActionBarExpanded;
|
|
48
|
+
};
|
|
46
49
|
this._preparing = false;
|
|
47
50
|
this._editorProfile = undefined;
|
|
48
51
|
this._activeAction = undefined;
|
|
@@ -117,9 +120,9 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
|
|
|
117
120
|
// #endregion
|
|
118
121
|
render() {
|
|
119
122
|
const variable = this._getFeatureSetVariable();
|
|
120
|
-
return (h(Host, { key: '
|
|
123
|
+
return (h(Host, { key: '7045de8598251dd6984000e7b29954e061c026d1' }, h("div", { key: 'be7bdc3c1f67698806cb82340db7298ea4a587c8', class: "flex-row flex-adjustable" }, h("div", { key: 'fd8fc820e4936b92e56b5d6391645d0bbd9f25ec', class: "flex-column flex-adjustable" }, h("arcgis-code-editor", { key: '1f99b35c123aa46d06533d3bd6435e771efc0a74', language: "arcgis-sql-expression", modelId: this._modelId, ref: (e) => (this._codeEditorElt = e), value: this.script ?? "", onArcgisValueChange: this._onCodeEditorValueChange })), this._activeAction === "fields" && (h("arcgis-editor-variables", { key: '0670d6ac75b6139db6d941ac277bf273ce6bae1b', variable: variable, class: "side-panel flex-panel border-inline-start", loading: this._preparing, modelId: this._modelId, onArcgisItemSelected: this._insertAsText, onArcgisClose: () => this._setActiveAction(undefined), "data-panel-name": "none" })), this._activeAction === "functions" && (h("arcgis-language-api-panel", { key: '10a0dca508651738450312758c9b0e5c92c8cfbe', class: "side-panel flex-panel border-inline-start", onArcgisItemSelected: this._insertAsSnippet, onArcgisClose: () => this._setActiveAction(undefined), loading: this._preparing, apiLibrary: this._apiLibrary, "data-panel-name": "none" })), h("calcite-action-bar", { key: 'fdb88197b0ee0b2995b6a47a60094fcbc9131c98', class: "side-action-bar border-inline-start", expanded: this.sideActionBarExpanded, position: "end", onCalciteActionBarToggle: this._toggleSideActionBarExpanded }, h("calcite-action", { key: 'a1ca3ce4b89ad68b00aaa6b3f86dbb31e1d1616c', id: "fields-action", text: this.messages.fields ?? "Fields", icon: "profile-variables", active: this._activeAction === "fields", "data-panel-name": "fields",
|
|
121
124
|
// need to use an arrow function to automatically bind 'this'
|
|
122
|
-
onClick: (e) => this._handleActionClick(e) }), !this.sideActionBarExpanded && (h("calcite-tooltip", { key: '
|
|
125
|
+
onClick: (e) => this._handleActionClick(e) }), !this.sideActionBarExpanded && (h("calcite-tooltip", { key: '82a8e3557e765d05caf08d54afbf3d2f5a383615', "reference-element": "fields-action" }, h("span", { key: '8e3ee3362edc48378676eecbb8c25d8a686f8e58' }, this.messages.fields ?? "Fields"))), h("calcite-action", { key: 'bde73acdf947bbfb252bb644c6ef2c06971849d3', id: "functions-action", text: this.messages.functions ?? "Functions", icon: "function", active: this._activeAction === "functions", "data-panel-name": "functions", onClick: (e) => this._handleActionClick(e) }), !this.sideActionBarExpanded && (h("calcite-tooltip", { key: 'f353577f4ed06d1607ac0282be6674f3246b69bc', "reference-element": "functions-action" }, h("span", { key: '7445241db197f4e9b29527150e3b55dc307f3fe5' }, this.messages.functions ?? "Functions")))))));
|
|
123
126
|
}
|
|
124
127
|
static get assetsDirs() { return ["assets"]; }
|
|
125
128
|
get el() { return this; }
|
|
@@ -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.
|
|
4
|
+
* v4.31.0-next.88
|
|
5
5
|
*/
|
|
6
6
|
import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h } from '@stencil/core/internal/client';
|
|
7
7
|
import { u as useControllerManager } from './chunk-IUUKU7EW.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
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.
|
|
4
|
+
* v4.31.0-next.88
|
|
5
5
|
*/
|
|
6
|
-
import { a as isNotUndefined, D as Deferred,
|
|
6
|
+
import { a as isNotUndefined, D as Deferred, e as safeAsyncCall, h as devToolsAwareTimeout, j as safeCall } from './index2.js';
|
|
7
7
|
|
|
8
8
|
// src/framework.ts
|
|
9
9
|
function retrieveComponentMembers(component, isLit) {
|