@arcgis/coding-components 4.31.0-next.111 → 4.31.0-next.112
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.esm.js +2 -2
- package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +1 -1
- package/dist/arcgis-coding-components/index.esm.js +2 -2
- package/dist/arcgis-coding-components/{p-26682de8.entry.js → p-14aacf74.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-fe1c1faa.js → p-17ec40c3.js} +2 -2
- package/dist/arcgis-coding-components/{p-345c5513.js → p-36ce0535.js} +2 -2
- package/dist/arcgis-coding-components/{p-8e247d60.js → p-3804ebad.js} +3 -3
- package/dist/arcgis-coding-components/{p-2b431998.js → p-56a91d27.js} +2 -2
- package/dist/arcgis-coding-components/{p-5395066a.js → p-57680502.js} +2 -2
- package/dist/arcgis-coding-components/{p-a6c1d699.js → p-5acda71e.js} +1 -1
- package/dist/arcgis-coding-components/{p-b774cb77.js → p-5d8209f2.js} +2 -2
- package/dist/arcgis-coding-components/{p-eb3b8e79.js → p-6e790643.js} +10 -10
- package/dist/arcgis-coding-components/{p-daac23d2.entry.js → p-6ecb3b40.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-a0f13225.js → p-7e44029f.js} +1 -1
- package/dist/arcgis-coding-components/{p-02b9ae03.js → p-7ed16ebb.js} +2 -2
- package/dist/arcgis-coding-components/{p-c444c49c.js → p-a4626cb0.js} +1 -1
- package/dist/arcgis-coding-components/{p-0c4ea552.js → p-bdba224e.js} +2 -2
- package/dist/arcgis-coding-components/{p-225dc9ae.js → p-c2ab2fc0.js} +2 -2
- package/dist/arcgis-coding-components/{p-b8a9f7d3.js → p-de5baa75.js} +2 -2
- package/dist/arcgis-coding-components/p-e9e07a92.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-29e25578.js → p-fad8ee76.js} +2 -2
- package/dist/cjs/{app-globals-099c496c.js → app-globals-ab67cd33.js} +1 -1
- package/dist/cjs/{arcade-defaults-1f601501.js → arcade-defaults-bd6d7dfa.js} +3 -3
- package/dist/cjs/{arcade-mode-97be004c.js → arcade-mode-077e245a.js} +3 -3
- package/dist/cjs/arcgis-arcade-editor_6.cjs.entry.js +7 -7
- package/dist/cjs/arcgis-coding-components.cjs.js +4 -4
- package/dist/cjs/arcgis-sql-expression-editor.cjs.entry.js +7 -6
- package/dist/cjs/arcgis-sql-expression-fields.cjs.entry.js +4 -4
- package/dist/cjs/{css-d67fe8a3.js → css-5706f5c0.js} +1 -1
- package/dist/cjs/{cssMode-4ec98698.js → cssMode-1ced4aee.js} +3 -3
- package/dist/cjs/{html-db33989d.js → html-df5d2b8e.js} +3 -3
- package/dist/cjs/{htmlMode-95395b75.js → htmlMode-61ddc383.js} +3 -3
- package/dist/cjs/{index-9eeb0a15.js → index-846869c1.js} +1 -1
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/{javascript-c4f7e826.js → javascript-1f283391.js} +4 -4
- package/dist/cjs/{jsonMode-fbf362ac.js → jsonMode-0da74e4f.js} +3 -3
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{sql-expr-defaults-884d92ee.js → sql-expr-defaults-a9d52cbe.js} +10 -10
- package/dist/cjs/{sql-expr-mode-5bb5880c.js → sql-expr-mode-f002f542.js} +3 -3
- package/dist/cjs/{tsMode-c39b0bf3.js → tsMode-4e96e206.js} +3 -3
- package/dist/cjs/{typescript-adcc935b.js → typescript-b2deb03c.js} +3 -3
- package/dist/cjs/{useT9n-8be92ed5.js → useT9n-a1e3005a.js} +3 -3
- package/dist/components/arcade-defaults.js +1 -1
- package/dist/components/arcade-mode.js +1 -1
- package/dist/components/arcade-results.js +1 -1
- package/dist/components/arcade-suggestions.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +1 -1
- 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 +6 -4
- package/dist/components/arcgis-sql-expression-fields.js +1 -1
- package/dist/components/chunk-UFIZBDFE.js +1 -1
- package/dist/components/code-editor.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/components/useT9n.js +1 -1
- package/dist/components/utilities.js +1 -1
- package/dist/esm/{app-globals-b7a0f7f0.js → app-globals-041e42e4.js} +1 -1
- package/dist/esm/{arcade-defaults-c10be5e6.js → arcade-defaults-a6e8e809.js} +3 -3
- package/dist/esm/{arcade-mode-c644e712.js → arcade-mode-0a87b4f5.js} +3 -3
- package/dist/esm/arcgis-arcade-editor_6.entry.js +7 -7
- package/dist/esm/arcgis-coding-components.js +5 -5
- package/dist/esm/arcgis-sql-expression-editor.entry.js +7 -6
- package/dist/esm/arcgis-sql-expression-fields.entry.js +4 -4
- package/dist/esm/{css-737572b6.js → css-02b3030b.js} +1 -1
- package/dist/esm/{cssMode-bd923631.js → cssMode-e7b2d667.js} +3 -3
- package/dist/esm/{html-91df8b03.js → html-4d79c632.js} +3 -3
- package/dist/esm/{htmlMode-2651d901.js → htmlMode-e3f31bbe.js} +3 -3
- package/dist/esm/{index-b94d7207.js → index-ccc11f96.js} +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/{javascript-93079feb.js → javascript-f55644e2.js} +4 -4
- package/dist/esm/{jsonMode-59a995aa.js → jsonMode-86e99706.js} +3 -3
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{sql-expr-defaults-22297eaa.js → sql-expr-defaults-3ce4d757.js} +10 -10
- package/dist/esm/{sql-expr-mode-29ebe01c.js → sql-expr-mode-39a8a83f.js} +3 -3
- package/dist/esm/{tsMode-b8027e9a.js → tsMode-a94ea358.js} +3 -3
- package/dist/esm/{typescript-e1a7109e.js → typescript-325ac6d7.js} +3 -3
- package/dist/esm/{useT9n-fec4f521.js → useT9n-4eceb242.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/sql-expression-editor/sql-expression-editor.d.ts +19 -0
- package/dist/types/components.d.ts +20 -0
- 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/sql-expression-editor/sql-expression-editor.stories.d.ts +1 -0
- package/package.json +11 -11
- package/dist/arcgis-coding-components/p-69a9ee69.entry.js +0 -6
|
@@ -1,11 +1,11 @@
|
|
|
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.112
|
|
5
5
|
*/
|
|
6
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-
|
|
7
|
-
import { u as useControllerManager, a as useT9n } from './useT9n-
|
|
8
|
-
import { l as generateGuid, x as sqlExprDefaults } from './sql-expr-defaults-
|
|
6
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-ccc11f96.js';
|
|
7
|
+
import { u as useControllerManager, a as useT9n } from './useT9n-4eceb242.js';
|
|
8
|
+
import { l as generateGuid, x as sqlExprDefaults } from './sql-expr-defaults-3ce4d757.js';
|
|
9
9
|
|
|
10
10
|
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%}";
|
|
11
11
|
const ArcgisSqlExpressionEditorStyle0 = sqlExpressionEditorCss;
|
|
@@ -41,6 +41,7 @@ const SqlExpressionEditor = class {
|
|
|
41
41
|
this.messages = useT9n();
|
|
42
42
|
this.profile = undefined;
|
|
43
43
|
this.script = "";
|
|
44
|
+
this.hideSideBar = false;
|
|
44
45
|
}
|
|
45
46
|
async _messagesChanged() {
|
|
46
47
|
await this._updateEditorProfile();
|
|
@@ -107,9 +108,9 @@ const SqlExpressionEditor = class {
|
|
|
107
108
|
// #endregion
|
|
108
109
|
render() {
|
|
109
110
|
const variable = this._getFeatureSetVariable();
|
|
110
|
-
return (h(Host, { key: '
|
|
111
|
+
return (h(Host, { key: '3e73cda4effdd5e967e5e13eed2590cf76a9b678' }, h("div", { key: '4118574ffeee6d7afd2e1578e70eca66c5e4f176', class: "flex-row flex-adjustable" }, h("div", { key: '17620aa2fef7c979cf7f25dbf594e0143945ac94', class: "flex-column flex-adjustable" }, h("arcgis-code-editor", { key: '4dd0249360c334394fa4302fa9e41d9174dab56f', language: "arcgis-sql-expression", modelId: this._modelId, ref: (e) => (this._codeEditorElt = e), value: this.script ?? "", onArcgisValueChange: this._onCodeEditorValueChange })), this._activeAction === "fields" && !this.hideSideBar && (h("arcgis-editor-variables", { key: '4fa0827db5432582ce7b029103f1804b07834030', 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" && !this.hideSideBar && (h("arcgis-language-api-panel", { key: '431721750bfc0bf856af1d2fc627544c3c3b7aa6', 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", hideDocumentationActions: true })), !this.hideSideBar && (h("calcite-action-bar", { key: 'b96ce9bb0650fd5cd2cac4be83186d9531b9f7b4', class: "side-action-bar border-inline-start", expanded: this.sideActionBarExpanded, position: "end", onCalciteActionBarToggle: this._toggleSideActionBarExpanded }, h("calcite-action-group", { key: 'f2967694a12f6926c92e4d61a84456895654834f' }, h("calcite-action", { key: '0f041d66f37d3c9bb32e9b9770c16461641abeb1', id: "fields-action", text: this.messages.fields ?? "Fields", icon: "profile-variables", active: this._activeAction === "fields", "data-panel-name": "fields",
|
|
111
112
|
// need to use an arrow function to automatically bind 'this'
|
|
112
|
-
onClick: (e) => this._handleActionClick(e) }), !this.sideActionBarExpanded && (h("calcite-tooltip", { key: '
|
|
113
|
+
onClick: (e) => this._handleActionClick(e) }), !this.sideActionBarExpanded && (h("calcite-tooltip", { key: '947c16b81627f6d2f688c689263bb56a3a2e5a89', "reference-element": "fields-action" }, h("span", { key: '65cfab22849866e80614fe643778ca66a2dac30d' }, this.messages.fields ?? "Fields"))), h("calcite-action", { key: '2685d0c61c9bd66770413b89f6b3ac0752e475cc', 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: '15381638bc59c2dc99cb267be39e2f3b91a4b9ea', "reference-element": "functions-action" }, h("span", { key: '6364b66c2c09970a4c8d33c0d5b5c6dae7ea8f9b' }, this.messages.functions ?? "Functions")))))))));
|
|
113
114
|
}
|
|
114
115
|
static get assetsDirs() { return ["assets"]; }
|
|
115
116
|
get el() { return getElement(this); }
|
|
@@ -1,11 +1,11 @@
|
|
|
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.112
|
|
5
5
|
*/
|
|
6
|
-
import { r as registerInstance, c as createEvent, h, a as getElement } from './index-
|
|
7
|
-
import { u as useControllerManager, a as useT9n } from './useT9n-
|
|
8
|
-
import { x as sqlExprDefaults } from './sql-expr-defaults-
|
|
6
|
+
import { r as registerInstance, c as createEvent, h, a as getElement } from './index-ccc11f96.js';
|
|
7
|
+
import { u as useControllerManager, a as useT9n } from './useT9n-4eceb242.js';
|
|
8
|
+
import { x as sqlExprDefaults } from './sql-expr-defaults-3ce4d757.js';
|
|
9
9
|
|
|
10
10
|
const sqlExpressionFieldsCss = ":host calcite-flow{height:100%}:host calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}";
|
|
11
11
|
const ArcgisSqlExpressionFieldsStyle0 = sqlExpressionFieldsCss;
|
|
@@ -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.112
|
|
5
5
|
*/
|
|
6
6
|
/*!-----------------------------------------------------------------------------
|
|
7
7
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.112
|
|
5
5
|
*/
|
|
6
|
-
import { O as monaco_editor_core_star } from './sql-expr-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
import { O as monaco_editor_core_star } from './sql-expr-defaults-3ce4d757.js';
|
|
7
|
+
import './index-ccc11f96.js';
|
|
8
8
|
|
|
9
9
|
/*!-----------------------------------------------------------------------------
|
|
10
10
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.112
|
|
5
5
|
*/
|
|
6
|
-
import { O as monaco_editor_core_star } from './sql-expr-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
import { O as monaco_editor_core_star } from './sql-expr-defaults-3ce4d757.js';
|
|
7
|
+
import './index-ccc11f96.js';
|
|
8
8
|
|
|
9
9
|
/*!-----------------------------------------------------------------------------
|
|
10
10
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.112
|
|
5
5
|
*/
|
|
6
|
-
import { O as monaco_editor_core_star } from './sql-expr-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
import { O as monaco_editor_core_star } from './sql-expr-defaults-3ce4d757.js';
|
|
7
|
+
import './index-ccc11f96.js';
|
|
8
8
|
|
|
9
9
|
/*!-----------------------------------------------------------------------------
|
|
10
10
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -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.112
|
|
5
5
|
*/
|
|
6
6
|
const NAMESPACE = 'arcgis-coding-components';
|
|
7
7
|
const BUILD = /* arcgis-coding-components */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: true, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: true, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: true, hydratedClass: false, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
|
package/dist/esm/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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.112
|
|
5
5
|
*/
|
|
6
|
-
export { a as arcade } from './arcade-defaults-
|
|
7
|
-
export { s as sqlExpression } from './sql-expr-defaults-
|
|
8
|
-
import './index-
|
|
6
|
+
export { a as arcade } from './arcade-defaults-a6e8e809.js';
|
|
7
|
+
export { s as sqlExpression } from './sql-expr-defaults-3ce4d757.js';
|
|
8
|
+
import './index-ccc11f96.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
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.112
|
|
5
5
|
*/
|
|
6
|
-
import { conf as conf$1, language as language$1 } from './typescript-
|
|
7
|
-
import './sql-expr-defaults-
|
|
8
|
-
import './index-
|
|
6
|
+
import { conf as conf$1, language as language$1 } from './typescript-325ac6d7.js';
|
|
7
|
+
import './sql-expr-defaults-3ce4d757.js';
|
|
8
|
+
import './index-ccc11f96.js';
|
|
9
9
|
|
|
10
10
|
/*!-----------------------------------------------------------------------------
|
|
11
11
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.112
|
|
5
5
|
*/
|
|
6
|
-
import { O as monaco_editor_core_star } from './sql-expr-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
import { O as monaco_editor_core_star } from './sql-expr-defaults-3ce4d757.js';
|
|
7
|
+
import './index-ccc11f96.js';
|
|
8
8
|
|
|
9
9
|
/*!-----------------------------------------------------------------------------
|
|
10
10
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
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.112
|
|
5
5
|
*/
|
|
6
|
-
import { b as bootstrapLazy } from './index-
|
|
7
|
-
export { s as setNonce } from './index-
|
|
8
|
-
import { g as globalScripts } from './app-globals-
|
|
6
|
+
import { b as bootstrapLazy } from './index-ccc11f96.js';
|
|
7
|
+
export { s as setNonce } from './index-ccc11f96.js';
|
|
8
|
+
import { g as globalScripts } from './app-globals-041e42e4.js';
|
|
9
9
|
|
|
10
10
|
const defineCustomElements = async (win, options) => {
|
|
11
11
|
if (typeof window === 'undefined') return undefined;
|
|
12
12
|
await globalScripts();
|
|
13
|
-
return bootstrapLazy([["arcgis-arcade-editor_6",[[0,"arcgis-arcade-editor",{"profile":[16],"script":[1025],"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"],"editorOptions":[16],"editorInstance":[16],"_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]},null,{"messages":["_messagesChanged"],"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}],[1,"arcgis-arcade-results",{"loading":[4],"openedResultPanel":[1537,"opened-result-panel"],"result":[16],"consoleLogs":[16]}],[1,"arcgis-arcade-suggestions",{"suggestions":[16],"_selectedSuggestion":[32],"_filterValue":[32],"_colorizeStyle":[32]},null,{"suggestions":["suggestionsPropChanged"]}],[0,"arcgis-code-editor",{"value":[1],"language":[1],"modelId":[1,"model-id"],"editorOptions":[16],"editorInstance":[16],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]},null,{"language":["languagePropChange"],"modelId":["modelIdPropChange"],"editorOptions":["editorOptionsPropChange"]}],[1,"arcgis-editor-variables",{"loading":[4],"modelId":[1,"model-id"],"variable":[16],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32],"_mode":[32]},null,{"modelId":["modelIdPropChanged"],"variable":["_variableChanged"]}],[1,"arcgis-language-api-panel",{"hideDocumentationActions":[4,"hide-documentation-actions"],"loading":[4],"apiLibrary":[16],"_selectedApiItem":[32],"_filterValue":[32],"_colorizeStyle":[32]},null,{"apiLibrary":["_apiLibraryChanged"]}]]],["arcgis-sql-expression-editor",[[0,"arcgis-sql-expression-editor",{"profile":[16],"script":[1025],"_preparing":[32],"_editorProfile":[32],"_activeAction":[32],"_apiLibrary":[32],"sideActionBarExpanded":[32],"messages":[32]},null,{"messages":["_messagesChanged"],"profile":["_profileChanged"]}]]],["arcgis-sql-expression-fields",[[1,"arcgis-sql-expression-fields",{"loading":[4],"modelId":[1,"model-id"],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}]]]], options);
|
|
13
|
+
return bootstrapLazy([["arcgis-arcade-editor_6",[[0,"arcgis-arcade-editor",{"profile":[16],"script":[1025],"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"],"editorOptions":[16],"editorInstance":[16],"_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]},null,{"messages":["_messagesChanged"],"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}],[1,"arcgis-arcade-results",{"loading":[4],"openedResultPanel":[1537,"opened-result-panel"],"result":[16],"consoleLogs":[16]}],[1,"arcgis-arcade-suggestions",{"suggestions":[16],"_selectedSuggestion":[32],"_filterValue":[32],"_colorizeStyle":[32]},null,{"suggestions":["suggestionsPropChanged"]}],[0,"arcgis-code-editor",{"value":[1],"language":[1],"modelId":[1,"model-id"],"editorOptions":[16],"editorInstance":[16],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]},null,{"language":["languagePropChange"],"modelId":["modelIdPropChange"],"editorOptions":["editorOptionsPropChange"]}],[1,"arcgis-editor-variables",{"loading":[4],"modelId":[1,"model-id"],"variable":[16],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32],"_mode":[32]},null,{"modelId":["modelIdPropChanged"],"variable":["_variableChanged"]}],[1,"arcgis-language-api-panel",{"hideDocumentationActions":[4,"hide-documentation-actions"],"loading":[4],"apiLibrary":[16],"_selectedApiItem":[32],"_filterValue":[32],"_colorizeStyle":[32]},null,{"apiLibrary":["_apiLibraryChanged"]}]]],["arcgis-sql-expression-editor",[[0,"arcgis-sql-expression-editor",{"profile":[16],"script":[1025],"hideSideBar":[4,"hide-side-bar"],"_preparing":[32],"_editorProfile":[32],"_activeAction":[32],"_apiLibrary":[32],"sideActionBarExpanded":[32],"messages":[32]},null,{"messages":["_messagesChanged"],"profile":["_profileChanged"]}]]],["arcgis-sql-expression-fields",[[1,"arcgis-sql-expression-fields",{"loading":[4],"modelId":[1,"model-id"],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}]]]], options);
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
export { defineCustomElements };
|
|
@@ -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.112
|
|
5
5
|
*/
|
|
6
|
-
import { g as getAssetPath } from './index-
|
|
6
|
+
import { g as getAssetPath } from './index-ccc11f96.js';
|
|
7
7
|
|
|
8
8
|
// src/index.ts
|
|
9
9
|
var isAMD = typeof window !== "undefined" && "$arcgis" in window && typeof window.$arcgis === "object" && "import" in window.$arcgis && !("forceESM" in window.$arcgis);
|
|
@@ -124672,7 +124672,7 @@ registerLanguage({
|
|
|
124672
124672
|
mimetypes: ["text/css"],
|
|
124673
124673
|
loader: () => {
|
|
124674
124674
|
{
|
|
124675
|
-
return import('./css-
|
|
124675
|
+
return import('./css-02b3030b.js');
|
|
124676
124676
|
}
|
|
124677
124677
|
}
|
|
124678
124678
|
});
|
|
@@ -124690,7 +124690,7 @@ registerLanguage({
|
|
|
124690
124690
|
mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
|
|
124691
124691
|
loader: () => {
|
|
124692
124692
|
{
|
|
124693
|
-
return import('./html-
|
|
124693
|
+
return import('./html-4d79c632.js');
|
|
124694
124694
|
}
|
|
124695
124695
|
}
|
|
124696
124696
|
});
|
|
@@ -124710,7 +124710,7 @@ registerLanguage({
|
|
|
124710
124710
|
mimetypes: ["text/javascript"],
|
|
124711
124711
|
loader: () => {
|
|
124712
124712
|
{
|
|
124713
|
-
return import('./javascript-
|
|
124713
|
+
return import('./javascript-f55644e2.js');
|
|
124714
124714
|
}
|
|
124715
124715
|
}
|
|
124716
124716
|
});
|
|
@@ -124728,7 +124728,7 @@ registerLanguage({
|
|
|
124728
124728
|
mimetypes: ["text/typescript"],
|
|
124729
124729
|
loader: () => {
|
|
124730
124730
|
{
|
|
124731
|
-
return import('./typescript-
|
|
124731
|
+
return import('./typescript-325ac6d7.js');
|
|
124732
124732
|
}
|
|
124733
124733
|
}
|
|
124734
124734
|
});
|
|
@@ -124849,7 +124849,7 @@ var lessDefaults = new LanguageServiceDefaultsImpl$3("less", optionsDefault$1, m
|
|
|
124849
124849
|
monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
|
|
124850
124850
|
function getMode$3() {
|
|
124851
124851
|
{
|
|
124852
|
-
return import('./cssMode-
|
|
124852
|
+
return import('./cssMode-e7b2d667.js');
|
|
124853
124853
|
}
|
|
124854
124854
|
}
|
|
124855
124855
|
monaco_editor_core_exports$3.languages.onLanguage("less", () => {
|
|
@@ -124974,7 +124974,7 @@ monaco_editor_core_exports$2.languages.html = {
|
|
|
124974
124974
|
};
|
|
124975
124975
|
function getMode$2() {
|
|
124976
124976
|
{
|
|
124977
|
-
return import('./htmlMode-
|
|
124977
|
+
return import('./htmlMode-e3f31bbe.js');
|
|
124978
124978
|
}
|
|
124979
124979
|
}
|
|
124980
124980
|
function registerHTMLLanguageService(languageId, options = optionsDefault, modeConfiguration = getConfigurationDefault(languageId)) {
|
|
@@ -125076,7 +125076,7 @@ var jsonDefaults = new LanguageServiceDefaultsImpl$1("json", diagnosticDefault,
|
|
|
125076
125076
|
monaco_editor_core_exports$1.languages.json = { jsonDefaults };
|
|
125077
125077
|
function getMode$1() {
|
|
125078
125078
|
{
|
|
125079
|
-
return import('./jsonMode-
|
|
125079
|
+
return import('./jsonMode-86e99706.js');
|
|
125080
125080
|
}
|
|
125081
125081
|
}
|
|
125082
125082
|
monaco_editor_core_exports$1.languages.register({
|
|
@@ -125345,7 +125345,7 @@ monaco_editor_core_exports.languages.typescript = {
|
|
|
125345
125345
|
};
|
|
125346
125346
|
function getMode() {
|
|
125347
125347
|
{
|
|
125348
|
-
return import('./tsMode-
|
|
125348
|
+
return import('./tsMode-a94ea358.js');
|
|
125349
125349
|
}
|
|
125350
125350
|
}
|
|
125351
125351
|
monaco_editor_core_exports.languages.onLanguage("typescript", () => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.112
|
|
5
5
|
*/
|
|
6
|
-
import { D as Deferred, r as editor, T as debounce, w as languages, x as sqlExprDefaults, V as Emitter } from './sql-expr-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
import { D as Deferred, r as editor, T as debounce, w as languages, x as sqlExprDefaults, V as Emitter } from './sql-expr-defaults-3ce4d757.js';
|
|
7
|
+
import './index-ccc11f96.js';
|
|
8
8
|
|
|
9
9
|
// hold onto a promise that resolves when the worker is ready
|
|
10
10
|
let deferredWorker = new Deferred();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.112
|
|
5
5
|
*/
|
|
6
|
-
import { P as typescriptDefaults, O as monaco_editor_core_star } from './sql-expr-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
import { P as typescriptDefaults, O as monaco_editor_core_star } from './sql-expr-defaults-3ce4d757.js';
|
|
7
|
+
import './index-ccc11f96.js';
|
|
8
8
|
|
|
9
9
|
/*!-----------------------------------------------------------------------------
|
|
10
10
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.112
|
|
5
5
|
*/
|
|
6
|
-
import { O as monaco_editor_core_star } from './sql-expr-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
import { O as monaco_editor_core_star } from './sql-expr-defaults-3ce4d757.js';
|
|
7
|
+
import './index-ccc11f96.js';
|
|
8
8
|
|
|
9
9
|
/*!-----------------------------------------------------------------------------
|
|
10
10
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.112
|
|
5
5
|
*/
|
|
6
|
-
import { F as isNotUndefined, D as Deferred, G as safeAsyncCall, H as devToolsAwareTimeout, J as safeCall, M as startLocaleObserver, N as getElementLocales } from './sql-expr-defaults-
|
|
7
|
-
import { g as getAssetPath } from './index-
|
|
6
|
+
import { F as isNotUndefined, D as Deferred, G as safeAsyncCall, H as devToolsAwareTimeout, J as safeCall, M as startLocaleObserver, N as getElementLocales } from './sql-expr-defaults-3ce4d757.js';
|
|
7
|
+
import { g as getAssetPath } from './index-ccc11f96.js';
|
|
8
8
|
|
|
9
9
|
// src/framework.ts
|
|
10
10
|
function retrieveComponentMembers(component, isLit) {
|
package/dist/loader/cdn.js
CHANGED
package/dist/loader/index.cjs.js
CHANGED
package/dist/loader/index.js
CHANGED
|
@@ -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.112
|
|
5
5
|
*/
|
|
6
6
|
(function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
|
|
7
7
|
export * from '../esm/loader.js';
|
|
@@ -21,12 +21,31 @@ export declare class SqlExpressionEditor implements ComponentInterface {
|
|
|
21
21
|
functions: string;
|
|
22
22
|
}>;
|
|
23
23
|
_messagesChanged(): Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* The profile to use for the editor. The profile defines the variables and functions that are available to the editor.
|
|
26
|
+
* @example
|
|
27
|
+
* ```jsx
|
|
28
|
+
* <arcgis-sql-expression-editor profile={id: "field-calculation", definitions: { $layer: layer }}></arcgis-sql-expression-editor>
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
24
31
|
profile: IPredefinedProfile | undefined;
|
|
25
32
|
_profileChanged(): Promise<void>;
|
|
26
33
|
/**
|
|
27
34
|
* The sql expression script. Use this property to define or update the script.
|
|
35
|
+
* @example
|
|
36
|
+
* ```html
|
|
37
|
+
* <arcgis-sql-expression-editor script="CAST(2.45 AS INTEGER)"></arcgis-sql-expression-editor>
|
|
38
|
+
* ```
|
|
28
39
|
*/
|
|
29
40
|
script: string;
|
|
41
|
+
/**
|
|
42
|
+
* If true, it will hide the side actions bar. The editor will be in a minimalistic UX.
|
|
43
|
+
* @example
|
|
44
|
+
* ```html
|
|
45
|
+
* <arcgis-sql-expression-editor hideSideBar></arcgis-sql-expression-editor>
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
hideSideBar: boolean;
|
|
30
49
|
private _updateEditorProfile;
|
|
31
50
|
private _setActiveAction;
|
|
32
51
|
private _handleActionClick;
|
|
@@ -192,9 +192,19 @@ export namespace Components {
|
|
|
192
192
|
"loading": boolean;
|
|
193
193
|
}
|
|
194
194
|
interface ArcgisSqlExpressionEditor {
|
|
195
|
+
/**
|
|
196
|
+
* If true, it will hide the side actions bar. The editor will be in a minimalistic UX.
|
|
197
|
+
* @example ```html <arcgis-sql-expression-editor hideSideBar></arcgis-sql-expression-editor> ```
|
|
198
|
+
*/
|
|
199
|
+
"hideSideBar": boolean;
|
|
200
|
+
/**
|
|
201
|
+
* The profile to use for the editor. The profile defines the variables and functions that are available to the editor.
|
|
202
|
+
* @example ```jsx <arcgis-sql-expression-editor profile={id: "field-calculation", definitions: { $layer: layer }}></arcgis-sql-expression-editor> ```
|
|
203
|
+
*/
|
|
195
204
|
"profile": IPredefinedProfile1 | undefined;
|
|
196
205
|
/**
|
|
197
206
|
* The sql expression script. Use this property to define or update the script.
|
|
207
|
+
* @example ```html <arcgis-sql-expression-editor script="CAST(2.45 AS INTEGER)"></arcgis-sql-expression-editor> ```
|
|
198
208
|
*/
|
|
199
209
|
"script": string;
|
|
200
210
|
}
|
|
@@ -569,13 +579,23 @@ declare namespace LocalJSX {
|
|
|
569
579
|
"onArcgisItemSelected"?: (event: ArcgisLanguageApiPanelCustomEvent<string>) => void;
|
|
570
580
|
}
|
|
571
581
|
interface ArcgisSqlExpressionEditor {
|
|
582
|
+
/**
|
|
583
|
+
* If true, it will hide the side actions bar. The editor will be in a minimalistic UX.
|
|
584
|
+
* @example ```html <arcgis-sql-expression-editor hideSideBar></arcgis-sql-expression-editor> ```
|
|
585
|
+
*/
|
|
586
|
+
"hideSideBar"?: boolean;
|
|
572
587
|
/**
|
|
573
588
|
* Emitted when the script string has changed.
|
|
574
589
|
*/
|
|
575
590
|
"onArcgisScriptChange"?: (event: ArcgisSqlExpressionEditorCustomEvent<string>) => void;
|
|
591
|
+
/**
|
|
592
|
+
* The profile to use for the editor. The profile defines the variables and functions that are available to the editor.
|
|
593
|
+
* @example ```jsx <arcgis-sql-expression-editor profile={id: "field-calculation", definitions: { $layer: layer }}></arcgis-sql-expression-editor> ```
|
|
594
|
+
*/
|
|
576
595
|
"profile"?: IPredefinedProfile1 | undefined;
|
|
577
596
|
/**
|
|
578
597
|
* The sql expression script. Use this property to define or update the script.
|
|
598
|
+
* @example ```html <arcgis-sql-expression-editor script="CAST(2.45 AS INTEGER)"></arcgis-sql-expression-editor> ```
|
|
579
599
|
*/
|
|
580
600
|
"script"?: string;
|
|
581
601
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/coding-components",
|
|
3
|
-
"version": "4.31.0-next.
|
|
3
|
+
"version": "4.31.0-next.112",
|
|
4
4
|
"description": "Contains components for editing code in different languages. The currently supported languages are html, css, json, TypeScript, JavaScript, and Arcade.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ArcGIS",
|
|
@@ -50,23 +50,23 @@
|
|
|
50
50
|
"generate": "stencil generate"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@arcgis/arcade-languageservice": "4.31.0-next.
|
|
54
|
-
"@arcgis/components-
|
|
55
|
-
"@arcgis/components-
|
|
56
|
-
"@arcgis/
|
|
53
|
+
"@arcgis/arcade-languageservice": "4.31.0-next.112",
|
|
54
|
+
"@arcgis/components-build-utils": "4.31.0-next.112",
|
|
55
|
+
"@arcgis/components-controllers": "4.31.0-next.112",
|
|
56
|
+
"@arcgis/components-utils": "4.31.0-next.112",
|
|
57
|
+
"@arcgis/languages-api-utils": "4.31.0-next.112",
|
|
57
58
|
"@stencil/core": "4.20.0",
|
|
58
59
|
"monaco-editor": "0.45.0",
|
|
59
60
|
"tslib": "^2.7.0",
|
|
60
61
|
"vscode-languageserver-types": "^3.17.5"
|
|
61
62
|
},
|
|
62
63
|
"devDependencies": {
|
|
63
|
-
"@arcgis/components-
|
|
64
|
-
"@arcgis/components-plugins": "4.31.0-next.111",
|
|
64
|
+
"@arcgis/components-plugins": "4.31.0-next.112",
|
|
65
65
|
"@arcgis/core": ">=4.31.0-next <4.32",
|
|
66
|
-
"@arcgis/core-adapter": "4.31.0-next.
|
|
66
|
+
"@arcgis/core-adapter": "4.31.0-next.112",
|
|
67
67
|
"@arcgis/sql-expression-sdk": "^1.1.0-next.14",
|
|
68
|
-
"@arcgis/storybook-utils": "4.31.0-next.
|
|
69
|
-
"@arcgis/typescript-config": "4.31.0-next.
|
|
68
|
+
"@arcgis/storybook-utils": "4.31.0-next.112",
|
|
69
|
+
"@arcgis/typescript-config": "4.31.0-next.112",
|
|
70
70
|
"@esri/calcite-components": "^2.12.1",
|
|
71
71
|
"@stencil/react-output-target": "0.5.3",
|
|
72
72
|
"@stencil/sass": "^3.0.12",
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
"storybook-static": "builds"
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "388967aea3e36323fae8a2a117cb9c67e6197a66"
|
|
112
112
|
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.111
|
|
5
|
-
*/
|
|
6
|
-
import{r as e,c as i,h as s,H as t,a}from"./p-a6c1d699.js";import{u as o,a as n}from"./p-0c4ea552.js";import{l as r,x as c}from"./p-eb3b8e79.js";const d=class{constructor(s){e(this,s),this.arcgisScriptChange=i(this,"arcgisScriptChange",3),this.manager=o(this),this._modelId=r(),this._insertAsSnippet=e=>{this._codeEditorElt?.insertSnippet(e.detail).catch(console.error)},this._insertAsText=e=>{this._codeEditorElt?.insertText(e.detail.replaceAll('"',"'")).catch(console.error)},this._updateApiLibrary=async()=>{this._apiLibrary=await c.getApiLibraryForModel(this._modelId)},this._onCodeEditorValueChange=e=>{e.stopPropagation(),this.script=e.detail,this.arcgisScriptChange.emit(e.detail)},this._toggleSideActionBarExpanded=()=>{this.sideActionBarExpanded=!this.sideActionBarExpanded},this._preparing=!1,this._editorProfile=void 0,this._activeAction=void 0,this._apiLibrary=void 0,this.sideActionBarExpanded=!1,this.messages=n(),this.profile=void 0,this.script=""}async _messagesChanged(){await this._updateEditorProfile(),await this._updateApiLibrary()}async _profileChanged(){await this._updateEditorProfile(),await this._updateApiLibrary()}async _updateEditorProfile(){this._preparing=!0;try{await c.setProfileForModel(this._modelId,this.profile,{locale:this.messages._t9nLocale}),this._editorProfile=c.getEditorProfileForModel(this._modelId)}catch{this._editorProfile=void 0}finally{this._preparing=!1}}_setActiveAction(e){this._activeAction=this._activeAction!==e?e:void 0}_handleActionClick(e){this._setActiveAction(e.target.dataset.panelName)}_getFeatureSetVariable(){let e;const i=c.getEditorProfileForModel(this._modelId);return i?.variables?.length&&"featureSet"!==i?.variables?.[0]?.type?console.error("encountered unexpected editor profile"):e=i?.variables?.[0],e}async componentWillLoad(){await this._updateEditorProfile().catch(console.error)}async componentDidLoad(){await this._updateApiLibrary()}render(){const e=this._getFeatureSetVariable();return s(t,{key:"5d7a1877b7cf39220d8d71b31da2a6a8c0eb8e06"},s("div",{key:"301acf20965aec80a882e8b42fe69758ec4b3c99",class:"flex-row flex-adjustable"},s("div",{key:"40c8d933e1b77930f36e6b90341a1d7c9267f337",class:"flex-column flex-adjustable"},s("arcgis-code-editor",{key:"f29e52368b5feb73eabd0d1445a34b0ac1c13a59",language:"arcgis-sql-expression",modelId:this._modelId,ref:e=>this._codeEditorElt=e,value:this.script??"",onArcgisValueChange:this._onCodeEditorValueChange})),"fields"===this._activeAction&&s("arcgis-editor-variables",{key:"ceae6e48d27024f0d21843ec5185f9a05445fe0b",variable:e,class:"side-panel flex-panel border-inline-start",loading:this._preparing,modelId:this._modelId,onArcgisItemSelected:this._insertAsText,onArcgisClose:()=>this._setActiveAction(void 0),"data-panel-name":"none"}),"functions"===this._activeAction&&s("arcgis-language-api-panel",{key:"01df45fee1ff9dffd483519747996f23edfa315d",class:"side-panel flex-panel border-inline-start",onArcgisItemSelected:this._insertAsSnippet,onArcgisClose:()=>this._setActiveAction(void 0),loading:this._preparing,apiLibrary:this._apiLibrary,"data-panel-name":"none",hideDocumentationActions:!0}),s("calcite-action-bar",{key:"ae8dd2dfd8e31838d08439f2723871473655b8bc",class:"side-action-bar border-inline-start",expanded:this.sideActionBarExpanded,position:"end",onCalciteActionBarToggle:this._toggleSideActionBarExpanded},s("calcite-action",{key:"7e2a31f08d0d97b07deaeef31c9e0e2a097ceb5c",id:"fields-action",text:this.messages.fields??"Fields",icon:"profile-variables",active:"fields"===this._activeAction,"data-panel-name":"fields",onClick:e=>this._handleActionClick(e)}),!this.sideActionBarExpanded&&s("calcite-tooltip",{key:"29734989408b3ee7b703d923fba093cd58ea6b0d","reference-element":"fields-action"},s("span",{key:"20c1b55f2e42b9258549ab2807fe44f76ebef77e"},this.messages.fields??"Fields")),s("calcite-action",{key:"64eeac74b70f8e7efde68e398ee0687c06bd08c6",id:"functions-action",text:this.messages.functions??"Functions",icon:"function",active:"functions"===this._activeAction,"data-panel-name":"functions",onClick:e=>this._handleActionClick(e)}),!this.sideActionBarExpanded&&s("calcite-tooltip",{key:"8463172366fbc6536757885835ca49c474edf372","reference-element":"functions-action"},s("span",{key:"0e441ab9ff790002cfd69fd78a47fbf67ff4bfc8"},this.messages.functions??"Functions")))))}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{messages:["_messagesChanged"],profile:["_profileChanged"]}}};d.style="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%}";export{d as arcgis_sql_expression_editor}
|