@arcgis/coding-components 4.31.0-next.98 → 4.32.0-next.1
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 +3 -3
- package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +43 -43
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.ar.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.bg.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.bs.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.ca.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.cs.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.da.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.de.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.el.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.es.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.et.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.fi.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.fr.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.he.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.hr.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.hu.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.id.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.it.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.ja.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.ko.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.lt.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.lv.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.nb.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.nl.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.pl.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.pt-BR.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.pt-PT.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.ro.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.ru.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.sk.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.sl.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.sr.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.sv.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.th.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.tr.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.uk.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.vi.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.zh-CN.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.zh-HK.json +2 -1
- package/dist/arcgis-coding-components/assets/editor-variables/t9n/editor-variables.t9n.zh-TW.json +2 -1
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.ar.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.bg.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.bs.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.ca.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.cs.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.da.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.de.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.el.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.en.json +18 -18
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.es.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.et.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.fi.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.fr.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.he.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.hr.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.hu.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.id.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.it.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.ja.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.ko.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.lt.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.lv.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.nl.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.no.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.pl.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.pt-BR.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.pt-PT.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.ro.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.ru.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.sk.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.sl.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.sr.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.sv.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.th.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.tr.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.uk.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.vi.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.zh-CN.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.zh-HK.json +758 -0
- package/dist/arcgis-coding-components/assets/sql-language/api/sql-api.t9n.zh-TW.json +758 -0
- package/dist/arcgis-coding-components/index.esm.js +3 -3
- package/dist/arcgis-coding-components/{p-34cda426.js → p-21f33673.js} +3 -3
- package/dist/arcgis-coding-components/{p-fe538f7b.js → p-397cd035.js} +3 -3
- package/dist/arcgis-coding-components/{p-cd706357.js → p-39946a0f.js} +2 -2
- package/dist/arcgis-coding-components/{p-861aa068.js → p-3abd5d93.js} +3 -3
- package/dist/arcgis-coding-components/{p-8436fc3b.js → p-4d9c89e8.js} +11 -11
- package/dist/arcgis-coding-components/{p-eb65c18a.js → p-609b503d.js} +3 -3
- package/dist/arcgis-coding-components/p-642cb3ba.entry.js +6 -0
- package/dist/arcgis-coding-components/p-69492dd1.js +6 -0
- package/dist/arcgis-coding-components/{p-86185974.js → p-8d52ce65.js} +3 -3
- package/dist/arcgis-coding-components/{p-7f656e14.js → p-8e28481b.js} +2 -2
- package/dist/arcgis-coding-components/{p-500278d2.js → p-8eb0bf11.js} +3 -3
- package/dist/arcgis-coding-components/{p-c0e14552.js → p-942a3112.js} +3 -3
- package/dist/arcgis-coding-components/{p-8ce2a1af.js → p-95967a1d.js} +3 -3
- package/dist/arcgis-coding-components/p-b72de164.js +6 -0
- package/dist/arcgis-coding-components/{p-cb46a8b1.entry.js → p-beb4b118.entry.js} +3 -3
- package/dist/arcgis-coding-components/p-cbb89767.js +6 -0
- package/dist/arcgis-coding-components/{p-f8b015e0.entry.js → p-dd590647.entry.js} +3 -3
- package/dist/arcgis-coding-components/{p-52bbb39b.js → p-fe436d02.js} +3 -3
- package/dist/cjs/{app-globals-33fab07e.js → app-globals-f2405bb9.js} +2 -2
- package/dist/cjs/{arcade-defaults-7de31bf8.js → arcade-defaults-a73dd954.js} +4 -4
- package/dist/cjs/{arcade-mode-dd8f44b9.js → arcade-mode-91a5e99e.js} +4 -4
- package/dist/cjs/arcgis-arcade-editor_6.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-coding-components.cjs.js +4 -4
- package/dist/cjs/arcgis-sql-expression-editor.cjs.entry.js +8 -8
- package/dist/cjs/arcgis-sql-expression-fields.cjs.entry.js +5 -5
- package/dist/cjs/{css-4ce7df7f.js → css-69287236.js} +2 -2
- package/dist/cjs/{cssMode-85125fdd.js → cssMode-52fa0cd4.js} +4 -4
- package/dist/cjs/{html-b97c7c47.js → html-7fd6c69f.js} +4 -4
- package/dist/cjs/{htmlMode-1dd79e3f.js → htmlMode-98ed691c.js} +4 -4
- package/dist/cjs/{index-183b9560.js → index-7cdfac26.js} +2 -2
- package/dist/cjs/index.cjs.js +5 -5
- package/dist/cjs/{javascript-8791760c.js → javascript-a0746b24.js} +5 -5
- package/dist/cjs/{jsonMode-14de22b2.js → jsonMode-43f926c2.js} +4 -4
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{sql-expr-defaults-00a9dcb5.js → sql-expr-defaults-7849269b.js} +39 -29
- package/dist/cjs/{sql-expr-mode-179953e1.js → sql-expr-mode-67b27235.js} +5 -5
- package/dist/cjs/{tsMode-b2e3cebf.js → tsMode-f358944a.js} +4 -4
- package/dist/cjs/{typescript-cfbd1c72.js → typescript-62f57b1c.js} +4 -4
- package/dist/cjs/{useT9n-0cd27204.js → useT9n-1090bf48.js} +8 -6
- package/dist/components/arcade-defaults.js +2 -2
- package/dist/components/arcade-mode.js +2 -2
- package/dist/components/arcade-results.js +3 -3
- package/dist/components/arcade-suggestions.js +3 -3
- package/dist/components/arcgis-arcade-editor.js +3 -3
- package/dist/components/arcgis-arcade-results.js +2 -2
- package/dist/components/arcgis-arcade-suggestions.js +2 -2
- package/dist/components/arcgis-assets.d.ts +2 -2
- package/dist/components/arcgis-assets.js +2 -2
- package/dist/components/arcgis-code-editor.js +2 -2
- package/dist/components/arcgis-editor-variables.js +2 -2
- package/dist/components/arcgis-language-api-panel.js +2 -2
- package/dist/components/arcgis-sql-expression-editor.js +6 -6
- package/dist/components/arcgis-sql-expression-fields.js +3 -3
- package/dist/components/{chunk-IUUKU7EW.js → chunk-72CFD2QZ.js} +3 -3
- package/dist/components/code-editor.js +3 -3
- package/dist/components/editor-variables.js +3 -3
- package/dist/components/fields.js +2 -2
- package/dist/components/index.js +2 -2
- package/dist/components/index2.js +2 -2
- package/dist/components/language-api-panel.js +3 -3
- package/dist/components/markdown.js +2 -2
- package/dist/components/sql-expr-defaults.js +30 -20
- package/dist/components/sql-expr-mode.js +3 -3
- package/dist/components/useT9n.js +6 -4
- package/dist/components/utilities.js +2 -2
- package/dist/esm/{app-globals-913cca84.js → app-globals-94d7a32e.js} +2 -2
- package/dist/esm/{arcade-defaults-fce78edf.js → arcade-defaults-f8b8b18f.js} +4 -4
- package/dist/esm/{arcade-mode-84eef194.js → arcade-mode-4cc42af6.js} +4 -4
- package/dist/esm/arcgis-arcade-editor_6.entry.js +8 -8
- package/dist/esm/arcgis-coding-components.js +5 -5
- package/dist/esm/arcgis-sql-expression-editor.entry.js +8 -8
- package/dist/esm/arcgis-sql-expression-fields.entry.js +5 -5
- package/dist/esm/{css-906fbdfa.js → css-4eeff876.js} +2 -2
- package/dist/esm/{cssMode-9f6312d5.js → cssMode-2056ff0a.js} +4 -4
- package/dist/esm/{html-aab3c828.js → html-ffcf003f.js} +4 -4
- package/dist/esm/{htmlMode-a3a50c83.js → htmlMode-e93a32a0.js} +4 -4
- package/dist/esm/{index-aedc5d3b.js → index-011c2912.js} +2 -2
- package/dist/esm/index.js +5 -5
- package/dist/esm/{javascript-ab01de7f.js → javascript-e0a600c3.js} +5 -5
- package/dist/esm/{jsonMode-deacacde.js → jsonMode-7559691e.js} +4 -4
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{sql-expr-defaults-0ac6e3bd.js → sql-expr-defaults-91ae9bb2.js} +39 -29
- package/dist/esm/{sql-expr-mode-49313741.js → sql-expr-mode-6547aee6.js} +5 -5
- package/dist/esm/{tsMode-176d24ae.js → tsMode-47248b4e.js} +4 -4
- package/dist/esm/{typescript-4cee163a.js → typescript-66f4b785.js} +4 -4
- package/dist/esm/{useT9n-d33c26b0.js → useT9n-7fbdf543.js} +8 -6
- package/dist/loader/cdn.js +2 -2
- package/dist/loader/index.cjs.js +2 -2
- package/dist/loader/index.es2017.js +2 -2
- package/dist/loader/index.js +2 -2
- package/dist/types/components/arcade-editor/arcade-editor.d.ts +8 -21
- package/dist/types/components/arcade-results/arcade-results.d.ts +13 -31
- package/dist/types/components/arcade-suggestions/arcade-suggestions.d.ts +6 -17
- package/dist/types/components/editor-variables/editor-variables.d.ts +9 -23
- package/dist/types/components/language-api-panel/language-api-panel.d.ts +8 -21
- package/dist/types/components/sql-expression-editor/sql-expression-editor.d.ts +4 -13
- package/dist/types/components/sql-expression-fields/sql-expression-fields.d.ts +4 -13
- package/dist/types/utils/sql-expr-monaco/sql-expr-completion.d.ts +1 -0
- package/dist/types/utils/sql-expr-monaco/sql-expr-validation-diagnostic-adapter.d.ts +1 -0
- package/dist/types/utils/sql-expr-monaco/sql-expr-validation-utils.d.ts +8 -23
- package/dist/types/utils/sql-expr-monaco/sql-expression-profile-strategy.d.ts +5 -1
- package/dist/types/utils/sql-expr-monaco/types.d.ts +1 -0
- package/package.json +15 -15
- package/dist/arcgis-coding-components/p-484f6ab3.js +0 -6
- package/dist/arcgis-coding-components/p-557614cc.js +0 -6
- package/dist/arcgis-coding-components/p-6cdef0c0.entry.js +0 -6
- package/dist/arcgis-coding-components/p-fb4e9b2f.js +0 -6
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.
|
|
4
|
-
* v4.
|
|
3
|
+
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
+
* v4.32.0-next.1
|
|
5
5
|
*/
|
|
6
|
-
import{O as e}from"./p-
|
|
6
|
+
import{O as e}from"./p-4d9c89e8.js";import"./p-39946a0f.js";
|
|
7
7
|
/*!-----------------------------------------------------------------------------
|
|
8
8
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
9
|
* Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
+
* v4.32.0-next.1
|
|
5
|
+
*/
|
|
6
|
+
import{r as e,c as i,h as s,H as t,a}from"./p-39946a0f.js";import{u as o,a as n}from"./p-b72de164.js";import{l as r,x as c}from"./p-4d9c89e8.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}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
+
* v4.32.0-next.1
|
|
5
|
+
*/
|
|
6
|
+
import{D as e,r as t,T as s,w as i,x as n,V as o}from"./p-4d9c89e8.js";import"./p-39946a0f.js";let r=new e;class a{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange((()=>this.stopWorker()))}dispose(){this._configChangeListener.dispose(),this.stopWorker()}stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null,r=new e),this._client=null}static async waitForWorker(){return await r.promise}async _getClientProxy(){if(!this._client){const{languageId:e}=this._defaults;this._worker=t.createWebWorker({moduleId:"SqlExprWorker",label:e,createData:{languageId:e},host:this._defaults.workerHost}),r.resolve(this._worker),this._client=this._worker.getProxy()}return await this._client}async getLanguageServiceWorker(...e){const t=await this._getClientProxy();return await(this._worker?.withSyncedResources(e)),t}}var c,l;!function(e){e.ARGS="args",e.CLAUSES="clauses",e.ELSE="else",e.END="end",e.EXPR="expr",e.LEFT="left",e.OPERAND="operand",e.QUALIFIER="qualifier",e.RIGHT="right",e.START="start",e.VALUE="value"}(c||(c={})),function(e){e.CASE_EXPRESSION="case-expression",e.EXPRESSION_LIST="expression-list",e.FUNCTION="function",e.INTERVAL="interval",e.INTERVAL_QUALIFIER="interval-qualifier",e.WHEN_CLAUSE="when-clause",e.UNARY_EXPRESSION="unary-expression",e.BINARY_EXPRESSION="binary-expression"}(l||(l={})),Object.values({date:"DATE",float:"FLOAT",integer:"INTEGER",real:"REAL",smallint:"SMALLINT",time:"TIME",timestamp:"TIMESTAMP",varchar:"VARCHAR"});const h={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},u={defaultToken:"",tokenPostfix:".arcgis",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["AND","AS","BOTH","CASE","CAST","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE","DAY","ELSE","END","ESCAPE","FALSE","FLOAT","FOR","FROM","HOUR","IN","INT","INTEGER","INTERVAL","LEADING","LIKE","MINUTE","MONTH","POSITION","REAL","SECOND","SMALLINT","THEN","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRIM","TRUE","VARCHAR","WHEN","WITH","YEAR","ZONE"],operators:["AND","BETWEEN","LIKE","NOT","OR","IS","NULL"],builtinFunctions:["CAST","EXTRACT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","ABS","ACOS","ASIN","ATAN","CEILING","COS","FLOOR","LOG","LOG10","MOD","NULLIF","POWER","ROUND","SIGN","SIN","TAN","TRUNCATE","CHAR_LENGTH","COALESCE","CONCAT","LOWER","POSITION","SUBSTRING","TRIM","UPPER"],builtinVariables:[],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@keywords":"keyword","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N'/,{token:"string",next:"@string"}],[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[[/(BEGIN|CASE)\b/i,{token:"keyword.block"}],[/END\b/i,{token:"keyword.block"}],[/WHEN\b/i,{token:"keyword.choice"}],[/THEN\b/i,{token:"keyword.choice"}]]}};class E{constructor(e,t){this._worker=e,this._defaults=t}async provideCompletionItems(e,t){try{const s=await this._worker(e.uri),i=e.getWordUntilPosition(t),n={startLineNumber:t.lineNumber,endLineNumber:t.lineNumber,startColumn:i.startColumn,endColumn:i.endColumn},o=this._defaults.getApiContextForModel(e.uri);return await s.doComplete(e.uri.toString(),n,t,o)}catch(e){return console.error(e),{suggestions:[]}}}}class T{constructor(e,i,{defaults:n,diagnosticService:o}){this._languageId=e,this._worker=i,this._disposables=[],this._listener=new Map,this._diagnosticsService=o,this._defaults=n;const r=e=>{const t=e.getLanguageId();if(t!==this._languageId)return;const i=s((()=>{this._doValidate(e,t).catch((e=>{throw e}))}));this._listener.set(e.uri.toString(),e.onDidChangeContent(i)),this._doValidate(e,t).catch(console.error)},a=e=>{const s=e.uri.toString();t.setModelMarkers(e,this._languageId,[]);const i=this._listener.get(s);i&&(i.dispose(),this._listener.delete(s))};this._disposables.push(t.onDidCreateModel(r)),this._disposables.push(t.onWillDisposeModel((e=>a(e)))),this._disposables.push(t.onDidChangeModelLanguage((e=>{a(e.model),r(e.model)}))),this._disposables.push(n.onDidChange((()=>{t.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&(a(e),r(e))}))}))),this._disposables.push(n.onModelContextDidChange((e=>{t.getModels().forEach((t=>{t.getLanguageId()===this._languageId&&t.uri.toString()===e&&this._doValidate(t,this._languageId).catch(console.error)}))}))),this._disposables.push({dispose:()=>{this._listener.forEach((e=>e.dispose())),this._listener.clear()}}),t.getModels().forEach(r)}async _doValidate(e,s){if(e.isAttachedToEditor())try{const i=await this._worker(e.uri),n=this._defaults.getApiContextForModel(e.uri),o=await i.doValidation(e.uri.toString(),n);this._diagnosticsService.fireDiagnosticsChange(e.uri,o),t.setModelMarkers(e,s,o)}catch(e){console.error(e)}}}let d;async function N(...e){return await a.waitForWorker(),await new Promise(((t,s)=>{d?t(d(...e)):s(new Error("sql expression worker not registered!"))}))}const p=new class{constructor(){this._onDiagnosticsChange=new o}get onDiagnosticsChange(){return this._onDiagnosticsChange.event}fireDiagnosticsChange(e,t){this._onDiagnosticsChange.fire({uri:e,diagnostics:t})}};function m(){return p}function I(e){const t=new a(e),s=async(...e)=>await t.getLanguageServiceWorker(...e);d=s,i.setMonarchTokensProvider(n.languageId,u),i.setLanguageConfiguration(n.languageId,h);const o=new E(s,n);i.registerCompletionItemProvider(n.languageId,o),new T(e.languageId,s,{defaults:e,diagnosticService:p})}export{m as getSqlExprDiagnosticService,N as getSqlExprWorker,I as setupMode}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.
|
|
4
|
-
* v4.
|
|
3
|
+
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
+
* v4.32.0-next.1
|
|
5
5
|
*/
|
|
6
|
-
import{conf as e,language as t}from"./p-
|
|
6
|
+
import{conf as e,language as t}from"./p-609b503d.js";import"./p-4d9c89e8.js";import"./p-39946a0f.js";
|
|
7
7
|
/*!-----------------------------------------------------------------------------
|
|
8
8
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
9
|
* Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.
|
|
4
|
-
* v4.
|
|
3
|
+
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
+
* v4.32.0-next.1
|
|
5
5
|
*/
|
|
6
6
|
/*!-----------------------------------------------------------------------------
|
|
7
7
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.
|
|
4
|
-
* v4.
|
|
3
|
+
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
+
* v4.32.0-next.1
|
|
5
5
|
*/
|
|
6
|
-
import{O as t}from"./p-
|
|
6
|
+
import{O as t}from"./p-4d9c89e8.js";import"./p-39946a0f.js";
|
|
7
7
|
/*!-----------------------------------------------------------------------------
|
|
8
8
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
9
|
* Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.
|
|
4
|
-
* v4.
|
|
3
|
+
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
+
* v4.32.0-next.1
|
|
5
5
|
*/
|
|
6
|
-
import{O as t}from"./p-
|
|
6
|
+
import{O as t}from"./p-4d9c89e8.js";import"./p-39946a0f.js";
|
|
7
7
|
/*!-----------------------------------------------------------------------------
|
|
8
8
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
9
|
* Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.
|
|
4
|
-
* v4.
|
|
3
|
+
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
+
* v4.32.0-next.1
|
|
5
5
|
*/
|
|
6
|
-
import{P as t,O as e}from"./p-
|
|
6
|
+
import{P as t,O as e}from"./p-4d9c89e8.js";import"./p-39946a0f.js";
|
|
7
7
|
/*!-----------------------------------------------------------------------------
|
|
8
8
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
9
|
* Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
+
* v4.32.0-next.1
|
|
5
|
+
*/
|
|
6
|
+
import{F as t,D as i,G as s,H as o,J as e,M as n,N as h}from"./p-4d9c89e8.js";import{g as c}from"./p-39946a0f.js";var r,a=(t,i)=>t.manager.internals.members?.[i]?.[0],d=Symbol.for("controller");function u(t){r!==t&&(r=t,queueMicrotask((()=>{r===t&&(r=void 0)})))}function f(){return r}var l,v=[];function y(t){if(void 0===t)return void(v=[]);const i=v.indexOf(t);v=-1===i?[...v,t]:v.slice(0,i+1),queueMicrotask((()=>{v=[]}))}var p,g=async(t,i)=>{const s=b(t);if(void 0===s)return t;if(await s.ready,"function"==typeof i){const t=s.watchExports((s=>i(s,t)))}return s.exports},w=async t=>{const i=b(t);return await i.ready,i},b=t=>{const i=function(){const t=l;return l=void 0,t}();if(void 0!==i)return i;const s=f().manager.internals.resolveExports(t);return void 0!==s?s:(t=>"object"==typeof t&&null!==t&&(d in t||"hostConnected"in t||"hostDisconnected"in t||"hostUpdate"in t||"hostUpdated"in t))(t)?t:void 0},m={setter:!1,getter:!1,readOnly:!1},_=new WeakMap;p=d;var j=class{constructor(t){this._callbacks={hostConnected:[],hostDisconnected:[],hostLoad:[],hostLoaded:[],hostUpdate:[],hostUpdated:[],hostDestroy:[],hostLifecycle:[]},this._ready=new i,this._lifecycleCleanups=[],this.connectedCalled=!1,this._loadCalled=!1,this.loadedCalled=!1,this[p]=!0,this.ready=this._ready.promise,this._exports=M(this),this._exportWatchers=new Set;const s=t??f();this.component=s,this.component.addController(this),y(this),void 0===this.component.manager||queueMicrotask((()=>this.catchUpLifecycle()))}catchUpLifecycle(){const{manager:t}=this.component;!t.connectedCalled||this.connectedCalled||this.triggerConnected(),!t._loadCalled||this.triggerLoad().then((()=>{!t.loadedCalled||this.triggerLoaded()})).catch(console.error)}get exports(){return this._exports}set exports(t){const i=this._exports;i!==t&&(this._exports=t,this._exportWatchers.forEach(e),this.connectedCalled&&!1!==this.assignedProperty&&this.component.requestUpdate(this.assignedProperty,i)),this._ready.resolve(t)}setProvisionalExports(t){this._exports=M(t),this._exportWatchers.forEach(e)}watchExports(t){const i=()=>t(this._exports);return this._exportWatchers.add(i),()=>{this._exportWatchers.delete(i)}}get use(){return u(this.component),g}get useRef(){return u(this.component),w}get useRefSync(){return u(this.component),b}controllerRemoved(){this.component.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this._callbacks.hostConnected.push(t)}onDisconnected(t){this._callbacks.hostDisconnected.push(t)}onLoad(t){this._callbacks.hostLoad.push(t)}onLoaded(t){this._callbacks.hostLoaded.push(t)}onUpdate(t){this._callbacks.hostUpdate.push(t)}onUpdated(t){this._callbacks.hostUpdated.push(t)}onDestroy(t){this._callbacks.hostDestroy.push(t)}onLifecycle(t){this._callbacks.hostLifecycle.push(t),this.connectedCalled&&this.component.el.isConnected&&this._callLifecycle(t)}triggerConnected(){const t=this;t.hostConnected&&e(t.hostConnected,t),this._callbacks.hostConnected.forEach(e),this.triggerLifecycle(),this.connectedCalled=!0}triggerDisconnected(){const t=this;t.hostDisconnected&&e(t.hostDisconnected,t),this._callbacks.hostDisconnected.forEach(e),this._lifecycleCleanups.forEach(e),this._lifecycleCleanups=[]}async triggerLoad(){if(this._loadCalled)return;this._loadCalled=!0;const t=this;t.hostLoad&&await s(t.hostLoad,t),this._callbacks.hostLoad.length>0&&await Promise.allSettled(this._callbacks.hostLoad.map(s)),this._ready.resolve(this._exports)}triggerLoaded(){if(this.loadedCalled)return;const t=this;t.hostLoaded&&e(t.hostLoaded,t),this._callbacks.hostLoaded.forEach(e),this.loadedCalled=!0}triggerUpdate(t){const i=this;i.hostUpdate&&e(i.hostUpdate,i,t),this._callbacks.hostUpdate.forEach(k,t)}triggerUpdated(t){const i=this;i.hostUpdated&&e(i.hostUpdated,i,t),this._callbacks.hostUpdated.forEach(k,t)}triggerDestroy(){const t=this;t.hostDestroy&&e(t.hostDestroy,t),this._callbacks.hostDestroy.forEach(e)}triggerLifecycle(){const t=this;t.hostLifecycle&&this._callLifecycle((()=>t.hostLifecycle())),this._callbacks.hostLifecycle.forEach(this._callLifecycle,this)}_callLifecycle(t){u(this.component);const i=e(t);(Array.isArray(i)?i:[i]).forEach((t=>{"function"==typeof t?this._lifecycleCleanups.push(t):"object"==typeof t&&"function"==typeof t.remove&&this._lifecycleCleanups.push(t.remove)}))}};function k(t){e(t,void 0,this)}var L=j;function M(t){if("object"!=typeof t&&"function"!=typeof t||null===t)return t;const i=new Proxy(t,{get(t,s,o){if(!O.has(s)||!(s in t)||t[s]!==i)return s in t||s in Promise.prototype||"symbol"==typeof s?"function"==typeof t?t[s]:Reflect.get(t,s,o):void 0},set:(t,i,s,o)=>Reflect.set(t,i,s,o)});return i}var O=new Set(["exports","_exports"]),U=void 0;function x(){Array.from(U?.entries()??[]).forEach((([t,{callbacks:i}])=>{const s=Object.keys(t);i.forEach((t=>t(s)))})),U=void 0}function C(t,i,s){var o;const n=i,h=t.manager.internals;(o=h.allWatchers)[n]??(o[n]=[]);const c=h.allWatchers[n],r=s,a=(t,i,s)=>e(r,null,t,i,s);return c.push(a),()=>{const t=c.indexOf(a);-1!==t&&c.splice(t,1)}}var D=class{constructor(t){this.enabledWatchers={},this.allWatchers={},this.enableReadonly=()=>{if(this.enableReadonly=void 0,!this.component.manager.isLit)return;const t=this.component.manager.internals;Object.entries(t.members).forEach((([i,[s]])=>{var o;2048&s&&((o=t.setters)[i]??(o[i]=[]),t.setters[i].push(t.readonlySetter))}))},this.trackedValue=q,this.keyTrackers=[],this.getters={},this.setters={},this.accessorGetter={},this.accessorSetter={},this.reactiveUtilsIntegrations=new Set,this._exports=new WeakMap,this.readonlySetter=(t,i,s)=>{if(m.readOnly)return t;throw new Error(`Cannot assign to read-only property "${s}" of ${this.component.el.tagName.toLowerCase()}. Trying to assign "${String(t)}"`)},this.component=t}firePropTrackers(t,i){const s=this.keyTrackers;this.trackedValue=q,this.keyTrackers=[],s.forEach((s=>s(t,i)))}getSetProxy(t){const i=this.component,s=i.constructor.prototype;if(this._getSetProxy(s,t,"class"),i.manager.isLit)return;const o=i.el.constructor.prototype;s!==o&&this._getSetProxy(o,t,"html")}_getSetProxy(t,i,s){const o=a(this.component,i);let e;do{e=Object.getOwnPropertyDescriptor(t,i)}while(!e&&(t=Object.getPrototypeOf(t)));if(!e)return;const n=e.get,h=e.set,c=P in n,r=P in h;if(c&&r)return;const d=!c,u=!r,f=d?function(){let t=n.call(this);const s=_.get(this);if(void 0===s)return t;const o=s.manager.internals;t=o.accessorGetter[i](t,i);const e=o.getters[i]??S;for(let s=0;s<e.length;s++)t=e[s](t,i);return t}:n,l=u?function(t){const s=n.call(this),e=_.get(this);if(void 0===e)return void h.call(this,t);let c=e.manager.isLit?t??void 0:function(t,i=8){return null==t||"object"==typeof t||"function"==typeof t?t:4&i?"false"!==t&&(""===t||!!t):2&i?Number.parseFloat(t):1&i?String(t):t}(t,o);const r=e.manager.internals;if(c===s)h.call(this,c);else{const t=m.setter?S:r.setters[i]??S;for(let o=0;o<t.length&&(c=t[o](c,s,i),c!==s);o++);c=r.accessorSetter[i](c,s,i),h.call(this,c),c!==s&&r.enabledWatchers[i]?.forEach((t=>t(c,s,i)))}r.keyTrackers.length>0&&r?.firePropTrackers(i,t)}:h;d&&(f[P]=!0),u&&(l[P]=!0),Object.defineProperty(t,i,{...e,get:f,set:l})}markExports(t,i){("object"==typeof i&&null!==i||"function"==typeof i)&&this._exports.set(i,t)}resolveExports(t){return"object"==typeof t&&null!==t||"function"==typeof t?this._exports.get(t):void 0}},S=[],P=Symbol(),q=Symbol(),R=(t,i)=>new E(t,i),E=class extends L{constructor(s,o){const e="addController"in s,n=new Set,h=s;if(h.addController=function(t){n.add(t),!(d in t)&&s.renderRoot&&s.el.isConnected&&t.hostConnected?.()},h.removeController=function(t){n.delete(t),t.controllerRemoved?.()},!e){const t=o??s.constructor.__forceUpdate;h.requestUpdate=()=>t(s)}super(s),this.internals=new D(this.component),this.destroyed=!1,this._updatePromise=new i,this._originalLifecycles={},this.isLit=e,this.component.manager=this,function(i,s){if(s)i.manager.internals.members=Object.fromEntries(Array.from(i.constructor.elementProperties,(([t,i])=>i.noAccessor?void 0:[t,[(i.readOnly?2048:0)|(i.state?32:16)]])).filter(t));else{const t=i.constructor,s=t.__registerControllers?.(i)??void 0;if(t.__registerControllers=void 0,"object"!=typeof s)throw new Error("Failed to retrieve component meta");i.manager.internals.members=Object.fromEntries(Object.entries(s).filter((([t,[i]])=>!!(63&i))))}}(s,e),this._controllers=n,this.exports=void 0,this.hasDestroy=A in this.component&&"function"==typeof this.component.destroy,this._bindLifecycleMethods();const c=this.internals;Object.keys(c.members).forEach((t=>{c.accessorGetter[t]=$,c.accessorSetter[t]=$,c.getSetProxy(t)})),e?this.internals.enabledWatchers=this.internals.allWatchers:Object.defineProperty(s,"updateComplete",{get:async()=>await this._updatePromise.promise}),queueMicrotask(c.enableReadonly),y(void 0),u(s),_.set(s.el,s),_.set(s,s)}_bindLifecycleMethods(){const t=this.component,i=this.isLit,s=t.el===t;this._originalLifecycles={_connectedCallback:i||s?void 0:t.connectedCallback,_disconnectedCallback:i||s?void 0:t.disconnectedCallback,_load:i?t.load:t.componentWillLoad,_loaded:i?t.loaded:t.componentDidLoad,_willUpdate:i?void 0:t.componentWillUpdate,_updated:i?void 0:t.componentDidUpdate,_destroy:t.destroy};const o=this._connectedCallback.bind(this),e=this._disconnectedCallback.bind(this),n=this._update.bind(this),h=this._updated.bind(this);i?t.constructor.prototype.addController.call(t,{hostConnected:o,hostDisconnected:e,hostUpdate:n,hostUpdated:h}):(t.connectedCallback=o,t.disconnectedCallback=e,t.componentWillLoad=this._load.bind(this),t.componentDidLoad=this._loaded.bind(this),t.componentWillUpdate=n,t.componentDidUpdate=h),this.hasDestroy&&(t.destroy=this.destroy.bind(this))}_connectedCallback(){if(this.destroyed){const t=this.component.el.tagName.toLowerCase();throw this.component.el.remove(),new Error(`The ${t} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${A} prop.`)}void 0!==this._autoDestroyTimeout&&clearTimeout(this._autoDestroyTimeout);const t=this.internals;t.enabledWatchers=t.allWatchers,x(),t.enableReadonly?.(),this._controllers.forEach(F),this._originalLifecycles._connectedCallback?.call(this.component)}_disconnectedCallback(){this.destroyed||(this._controllers.forEach(I),this._originalLifecycles._disconnectedCallback?.call(this.component),this.hasDestroy&&this._setAutoDestroyTimeout())}async _load(){const t=this.internals.reactiveUtilsIntegrations;if(t.size>0)for(const i of t)"triggerLoad"in i?await i.triggerLoad():await s(i.hostLoad,i);await Promise.allSettled(Array.from(this._controllers,N,t)),await(this._originalLifecycles._load?.call(this.component)),this.hasDestroy&&C(this.component,A,(()=>this._setAutoDestroyTimeout()))}_loaded(){this._controllers.forEach(W),this._originalLifecycles._loaded?.call(this.component)}_update(){this._controllers.forEach(G,this.component.$changes),this._originalLifecycles._willUpdate?.call(this.component)}_updated(){const t=this.component;if(this._controllers.forEach(H,t.$changes),this._originalLifecycles._updated?.call(this.component),this.isLit)t.$changes=new Map;else{const t=this._updatePromise;this._updatePromise=new i,t.resolve(!0)}}async destroy(){if(!this.destroyed){if(this.component.el.isConnected){this.hasDestroy=!1;try{this.component.el.remove()}finally{this.hasDestroy=!0}}this._autoDestroyTimeout=void 0,this.destroyed=!0,this._controllers.forEach(J),this._controllers.clear(),await(this._originalLifecycles._destroy?.call(this.component))}}_setAutoDestroyTimeout(){void 0!==this._autoDestroyTimeout&&clearTimeout(this._autoDestroyTimeout),this.component.el.isConnected||this.component.autoDestroyDisabled||(this._autoDestroyTimeout=o((()=>{this.destroy().catch(console.error)}),T))}},A="autoDestroyDisabled",T=1e3,$=t=>t;function F(t){"triggerConnected"in t?t.triggerConnected():e(t.hostConnected,t)}function I(t){"triggerDisconnected"in t?t.triggerDisconnected():e(t.hostDisconnected,t)}async function N(t){this.has(t)||("triggerLoad"in t?await t.triggerLoad():await s(t.hostLoad,t))}function W(t){"triggerLoaded"in t?t.triggerLoaded():e(t.hostLoaded,t)}function G(t){"triggerUpdate"in t?t.triggerUpdate(this):e(t.hostUpdate,t,this)}function H(t){"triggerUpdated"in t?t.triggerUpdated(this):e(t.hostUpdated,t,this)}function J(t){"triggerDestroy"in t?t.triggerDestroy():e(t.hostDestroy,t)}function z(t,i,s){const o=t.manager.internals;return o.trackedValue!==q&&o.trackedValue!==s&&o.firePropTrackers(void 0,void 0),0===o.keyTrackers.length&&queueMicrotask((()=>o.firePropTrackers(void 0,void 0))),o.trackedValue=s,o.keyTrackers.push(((t,o)=>e(i,void 0,s===o?t:void 0))),s}function B(t,i){const s=f();return z(s,(o=>{const e=o,n=s.manager,h=s,c=h[e];if(null!=c&&c!==t&&"function"==typeof i.set){const s=i.set(c,t,e);if(s!==c)if(n.isLit)h[e]=s;else{let t=!0;n.onConnected((()=>{t&&(t=!0,function(){m.setter=!0;try{return void(h[e]=s)}finally{m.setter=!1}}())}))}}!function(t,i,s){var o,e;const n=s,h=t.manager.internals,c="function"==typeof n.get?n.get:void 0;c&&((o=h.getters)[i]??(o[i]=[]),h.getters[i].unshift(c));const r="ignore"===n.set?Q:n.set;r&&((e=h.setters)[i]??(e[i]=[]),h.setters[i].unshift(r))}(s,e,i)}),t)}var K,Q=(t,i)=>i,V=(K=class extends j{constructor(t,i){super(t);const s=this.exports;try{u(this.component);const t=i(this.component,this),o=this.exports!==s;if(t instanceof Promise){o||this.setProvisionalExports(t);const i=t.then((t=>{this.exports=t,super.catchUpLifecycle()})).catch((t=>{this._ready.reject(t),console.error(t)}));this.onLoad((async()=>await i))}else o&&void 0===t||(this.exports=t),queueMicrotask((()=>super.catchUpLifecycle()))}catch(t){this._ready.reject(t),console.error(t)}}catchUpLifecycle(){}},(...t)=>{const i=v,s=new K(...t),o=s.exports;y(i.at(-1));const n=s.component.manager.internals;var h;return n.markExports(s,o),s.watchExports((t=>n.markExports(s,t))),l!==(h=s)&&(l=h,queueMicrotask((()=>{l===h&&(l=void 0)}))),function(t,i,s){const o=Array.isArray(t)?t:[t];let n=o.length+1;const h=t=>{n-=1,void 0!==t&&(n=Math.min(n,0)),0===n&&i(t)};o.forEach((t=>function(t,i,s){const o=Object.keys(t),n=o.length;void 0===U&&queueMicrotask(x),U??(U=new Map);let h=U.get(t);return void 0===h&&(h={callbacks:[],keyCount:n},U.set(t,h)),h.keyCount!==n&&(h.callbacks.forEach((t=>t(o))),h.callbacks=[],h.keyCount=n),h.callbacks.push((o=>{const h=o[n];e(i,null,void 0===h?void 0:t[h]===s?h:void 0)})),s}(t,(i=>h(void 0===i?void 0:{key:i,host:t,isReactive:!1})),s)));const c=o.find((t=>"manager"in t&&"object"==typeof t.manager&&t.manager.component===t));return c&&z(c,(t=>h(void 0===t?void 0:{key:t,host:c,isReactive:void 0!==a(c,t)})),s),s}([s.component,...i].reverse(),(t=>void 0===t?void 0:function(t,{host:i,key:s,isReactive:o},e){const n=i,h=n[s]!==e;n[s]!==t.exports&&!h&&e!==t.exports&&(n[s]=t.exports);if(i===t.component){if(o){const i=t.component.manager.internals;h&&i.markExports(t,n[s]),C(t.component,s,(s=>{s!==t.exports&&i.markExports(t,s)}))}t.assignedProperty=o?void 0:s}t.watchExports((()=>{if(n[s]===t.exports)return;const i=t.component.manager,o=i.internals.setters[s]?.includes(i.internals.readonlySetter);o?function(){m.readOnly=!0;try{return void(n[s]=t.exports)}finally{m.readOnly=!1}}():n[s]=t.exports}))}(s,t,o)),o)});function X(t,i){if(!i)return t;const s={...t};return Object.entries(i).forEach((([i,o])=>{s[i]="object"==typeof o?X(t[i],o):o??t[i]})),s}const Y=(t=>(i={})=>V(void 0,((s,o)=>{const e=s;function c(t){const i=o.exports,s=i._original??i,e=X(s,t);t&&(e._original=s),o.exports=e}if(o.onLifecycle((()=>n(s.el,t("./assets"),(({t9nLocale:t,t9nStrings:i,lang:n})=>{const h={...i,_lang:n,_t9nLocale:t,_loading:!1};o.exports=h;const r=i.componentLabel??i.widgetLabel;"string"==typeof r&&"label"in s&&null==s.label&&(s.label??(s.label=r)),c(e.messageOverrides)}),i.name))),"messageOverrides"in e&&o.onLifecycle((()=>C(e,"messageOverrides",c))),i.blocking)return o.ready;const r=h(s.el);return{_lang:r.lang,_t9nLocale:r.t9nLocale,_loading:!0}})))(c);export{Y as a,B as g,R as u}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.
|
|
4
|
-
* v4.
|
|
3
|
+
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
+
* v4.32.0-next.1
|
|
5
5
|
*/
|
|
6
|
-
import{r as t,c as i,h as s,a as e}from"./p-
|
|
6
|
+
import{r as t,c as i,h as s,a as e}from"./p-39946a0f.js";import{u as c,a as l}from"./p-b72de164.js";import{x as o}from"./p-4d9c89e8.js";const a=class{constructor(s){t(this,s),this.arcgisClose=i(this,"arcgisClose",3),this.arcgisFieldSelected=i(this,"arcgisFieldSelected",3),this.manager=c(this),this.messages=l(),this._handleSelectField=t=>{if(t.target instanceof HTMLElement)switch(t.target.tagName.toLowerCase()){case"calcite-list-item":this.arcgisFieldSelected.emit(t.target.value??"");break;case"calcite-action":t.stopPropagation()}},this._handleSelectDomain=t=>{const i=t.target.value;this.arcgisFieldSelected.emit(i?`'${i}'`:"")},this._emitClose=()=>{this.arcgisClose.emit()},this._mutationCounter=1,this._flowItemRenderers=[],this._filterValue="",this.loading=!1,this.modelId=void 0}modelIdPropChanged(){this._flowItemRenderers=[]}disconnectedCallback(){this._flowObserver?.disconnect()}render(){const t=o.getFeatureLayerForModel(this.modelId??"");return!this.loading&&this.modelId&&t?s("calcite-flow",null,s("calcite-flow-item",{heading:this.messages.availablefields??"",closable:!0,onCalciteFlowItemClose:this._emitClose},s("calcite-list",{filterEnabled:!0},t.fields.map((t=>s("calcite-list-item",{key:t.name,onClick:this._handleSelectField,label:t.name,description:t.alias,value:t.name},t.domain&&s("calcite-action",{slot:"actions-end",text:"open",icon:"chevron-right",onClick:()=>{const i=t.domain;"coded-value"===i.type&&(this._flowItemRenderers=[...this._flowItemRenderers,()=>s("calcite-flow-item",{closable:!0,heading:this.messages.domainvalues??"",description:t.name,onCalciteFlowItemClose:this._emitClose},s("calcite-list",null,i.codedValues.map((t=>s("calcite-list-item",{key:t.code,onClick:this._handleSelectDomain,label:t.name,description:String(t.code),value:String(t.code)})))))])}})))))),this._flowItemRenderers.map((t=>t()))):s("calcite-block",{heading:this.messages.availablefields??""})}static get assetsDirs(){return["assets"]}get el(){return e(this)}static get watchers(){return{modelId:["modelIdPropChanged"]}}};a.style=":host calcite-flow{height:100%}:host calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}";export{a as arcgis_sql_expression_fields}
|