@arcgis/coding-components 5.0.4 → 5.0.5
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/cdn/{YODLOKH4.js → 23XAK7QK.js} +1 -1
- package/dist/cdn/{MJSQTSOK.js → BYXXWJKL.js} +1 -1
- package/dist/cdn/{NIYJTGTP.js → CFX5YYPW.js} +1 -1
- package/dist/cdn/{IC26XJYA.js → CHSINB6N.js} +1 -1
- package/dist/cdn/{UB65KLBZ.js → D3CHW5FX.js} +1 -1
- package/dist/cdn/{3LPRAQTY.js → DEEKIIXS.js} +1 -1
- package/dist/cdn/{3A4STQXM.js → EVIJBHVJ.js} +1 -1
- package/dist/cdn/{A3T45VXN.js → GJLMXPW7.js} +1 -1
- package/dist/cdn/{CC25THK2.js → I6GIZWSZ.js} +1 -1
- package/dist/cdn/{PLR4WX3O.js → K5Q4VIAS.js} +1 -1
- package/dist/cdn/{5ALY3XQI.js → KZBOMX2P.js} +1 -1
- package/dist/cdn/{K4TX7B4D.js → MLSNLBXU.js} +1 -1
- package/dist/cdn/{FNSSKYBZ.js → MP4M4VSD.js} +1 -1
- package/dist/cdn/{A4OWORZA.js → QOURNU2Z.js} +1 -1
- package/dist/cdn/{OSDOBBYC.js → S6WDBUCH.js} +1 -1
- package/dist/cdn/{7XJ7G5H5.js → TV7DSRQ6.js} +1 -1
- package/dist/cdn/UEFBBA6F.js +2 -0
- package/dist/cdn/{GQLL5GUB.js → UYS7SP7E.js} +1 -1
- package/dist/cdn/{5K6LAVPW.js → VDRAAU56.js} +1 -1
- package/dist/cdn/{GAEVCFPO.js → WIKQE2F2.js} +1 -1
- package/dist/cdn/assets/code-editor/sql-expr.worker.js +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +5 -5
- package/dist/cdn/QFDJFS6E.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import{a as X,b as Y,c as Z,d as f,e as y}from"./72CKSOAE.js";import{b as Q}from"./
|
|
2
|
+
import{a as X,b as Y,c as Z,d as f,e as y}from"./72CKSOAE.js";import{b as Q}from"./KZBOMX2P.js";import{a as ee}from"./EMCHMKAC.js";import{b as S,c as v,d as F,e as J}from"./3YF4QLXU.js";import{i as H}from"./NMIFSDFV.js";import{K as z,r as B,t as $}from"./K5Q4VIAS.js";import{a as u}from"./RXOG5OZ7.js";import{Qk as A,Zk as L}from"./YCOWKBW5.js";export default $arcgis.t(([T,me,be,ge,we,{getDeclaredVoxelMembers:Ce,getDeclaredPixelMembers:De}])=>{var j=t=>t!==void 0,x=t=>t!==null;function pe(t){return!!t&&typeof t=="object"&&"declaredClass"in t&&typeof t.declaredClass=="string"&&t.declaredClass.startsWith("esri.layers.")&&M(t)&&"queryFeatures"in t&&typeof t.queryFeatures=="function"}function ce(t){return!!t&&typeof t=="object"&&"declaredClass"in t&&typeof t.declaredClass=="string"&&(t.declaredClass==="esri.Map"||t.declaredClass==="esri.WebMap"||t.declaredClass==="esri.WebScene")}function Se(t){return!!t&&typeof t=="object"&&"loadAll"in t&&typeof t.loadAll=="function"}function ue(t){return!!t&&typeof t=="object"&&"portalItem"in t&&t.portalItem!=null}function he(t){return!!t&&typeof t=="object"&&"portalItem"in t&&t.portalItem!=null}function M(t){return!!t&&typeof t=="object"&&"fields"in t&&Array.isArray(t.fields)}function V(t){return!!t&&typeof t=="object"&&"url"in t&&typeof t.url=="string"}function ve(t){return V(t)&&/\/(?:featureserver|mapserver)(?:\/|$)/iu.test(t.url??"")}function de(t){return V(t)||M(t)||he(t)}function rt(t){return de(t)&&"type"in t&&t.type==="voxel"}function st(t){return de(t)&&"type"in t&&(t.type==="imagery"||t.type==="imagery-tile")}function nt(t){return V(t)||M(t)||he(t)}function ot(t){return ue(t)||ce(t)||ve(t)}function te(t){return!!t&&typeof t=="object"&&"declaredClass"in t&&t.declaredClass==="esri.layers.support.Subtype"}function E(t){return!!t&&typeof t=="object"&&"declaredClass"in t&&t.declaredClass==="esri.layers.support.CodedValueDomain"}function Fe(t){return!!t&&typeof t=="object"&&"declaredClass"in t&&t.declaredClass==="esri.layers.support.InheritedDomain"}function at(t){return!!t&&typeof t=="object"&&"id"in t&&typeof t.id=="string"&&"definitions"in t&&typeof t.definitions=="object"&&!Array.isArray(t.definitions)}function d(t){return!!t&&typeof t=="object"&&"title"in t&&typeof t.title=="string"}function xe(t){return!!t&&typeof t=="object"&&"url"in t&&typeof t.url=="string"}function fe(t){return!!t&&typeof t=="object"&&"layerId"in t&&typeof t.layerId=="number"}function N(t){return!!t&&typeof t=="object"&&"typeIdField"in t&&"types"in t}function ie(t){return!!t&&typeof t=="object"&&"getFieldDomain"in t&&typeof t.getFieldDomain=="function"}function _(t){return!!t&&typeof t=="object"&&"subtypeField"in t}function Te(t){return _(t)&&"subtypes"in t}function Ie(t){return!!t&&typeof t=="object"&&"portalItem"in t}function Pe(t){return fe(t)&&"relationships"in t&&"url"in t&&Array.isArray(t.relationships)&&typeof t.url=="string"}function Me(t){return!!t&&typeof t=="object"&&"isTable"in t&&typeof t.isTable=="boolean"}function Ve(t){if(t&&typeof t=="object"){if(Me(t))return t.isTable||"type"in t&&t.type==="table";if("geometryType"in t)return t.geometryType===""||t.geometryType==="esriGeometryNull"||t.geometryType===null}return!1}function $e(t){return!Ve(t)}function Ae(t){return!!t&&typeof t=="object"&&"load"in t&&typeof t.load=="function"}function Le(t){return!!t&&typeof t=="object"&&"type"in t&&t.type==="voxel"}function re(t){return!!t&&typeof t=="object"&&"type"in t&&typeof t.type=="string"&&["imagery","imagery-tile"].includes(t.type)}async function ye(t){if(!t)return null;let e;return M(t)?e=t:e=new T(t),Ae(e)&&await e.load(),e}async function je(t){t+="/layers";let e=await me(t,{responseType:"json",query:{f:"json"}}),i=t.endsWith("MapServer/layers")?"data":"query",r=se(e.data?.layers,i),s=se(e.data?.tables,i);return{layers:r,tables:s}}function se(t,e){return t?t.filter(i=>{switch(i.type){case"Feature Layer":case"Oriented Imagery Layer":case"Catalog Layer":case"Table":return(i.capabilities?i.capabilities.toLowerCase().split(",").map(r=>r.trim()):[]).includes(e);default:return!1}}):[]}async function Ee(t,e){let i=new T({url:`${t.url}/${e.relatedTableId}`});return await i.load(),i}function O(t){return(e,i)=>{if(e.type==="oid")return-1;if(i.type==="oid")return 1;if(_(t)){if(e.name===t.subtypeField)return-1;if(i.name===t.subtypeField)return 1}if(N(t)){if(e.name===t.typeIdField)return-1;if(i.name===t.typeIdField)return 1}return e.name.localeCompare(i.name,"en",{sensitivity:"base"})}}function ne(t,e){return t?.every(i=>i.domains?.[e.name]?.type==="inherited")??!1}var Ne=/^[a-z_$][a-z0-9_$]*$/giu;function K(t,e=!0){return t.match(Ne)?`${e?".":""}${t}`:`["${t}"]`}function _e(t,e){return t?`${t}${K(e)}`:e}function oe(t){return Ie(t)?t.portalItem:null}function lt(t,e,i=!1){let r=e,s=[],o=[];return f(t).forEach(n=>{r&&(r+=`
|
|
3
3
|
|
|
4
4
|
`),r+=`**${n.name}** (${n.alias})
|
|
5
5
|
${n.type}`,n.description&&(r+=`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import{a as g}from"./
|
|
2
|
+
import{a as g}from"./S6WDBUCH.js";import"./EVIJBHVJ.js";import{e as u}from"./NMIFSDFV.js";import{E as h,F as m,J as f,h as c,j as i,n as r,q as d}from"./K5Q4VIAS.js";import{a as n}from"./RXOG5OZ7.js";import"./ALDX5YZO.js";var b=c`:host{background-color:var(--calcite-color-foreground-1);.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.sticky{position:sticky;top:0;z-index:10}calcite-flow{height:100%}calcite-list-item-group{background-color:var(--calcite-color-foreground-2);word-break:break-word}}`;function p(a){a.key==="Enter"&&a.stopPropagation()}var o=class extends m{constructor(){super(...arguments),this._beforeBack=async()=>{this.removeLastPanelRenderer(),this._filterValue=""},this.messages=g(),this._filterValue="",this._flowItemRenderers=[],this._mode="profile",this._mutationCounter=1,this.loading=!1,this.closed=!1,this.arcgisInternalClosePanel=r({bubbles:!1,composed:!1}),this.arcgisInternalItemSelected=r({bubbles:!1})}static{this.properties={_filterValue:16,_flowItemRenderers:16,_mode:16,_mutationCounter:16,loading:5,modelId:1,closed:5,variable:0}}static{this.styles=b}load(){this._variableChanged()}willUpdate(e){e.has("modelId")&&(this._flowItemRenderers=[]),e.has("variable")&&this._variableChanged()}disconnectedCallback(){super.disconnectedCallback(),this._flowObserver?.disconnect()}_variableChanged(){this._mode=this.variable?.type==="featureSet"?"featureSet":"profile"}addPanelRenderer(e){this._flowItemRenderers=[...this._flowItemRenderers,e]}removeLastPanelRenderer(){this._flowItemRenderers=this._flowItemRenderers.slice(0,-1)}_isMode(e){return this._mode===e}flowFocusHandler(e){if(!e){this._flowObserver?.disconnect(),this._flowObserver=void 0;return}this._flowObserver||(this._flowObserver=new MutationObserver(()=>{u(e.querySelector("calcite-flow-item:last-child"),"calcite-input")}),this._flowObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0}))}_updateFilterValue(e){this._filterValue=e.currentTarget.value}_emitClose(){this.arcgisInternalClosePanel.emit()}_backToTop(){this._flowItemRenderers=[]}_emitItemSelected(e,t){if(t.nonInteractive)return;let l=e;(!l.key||l.key==="Enter")&&(e.preventDefault(),this.arcgisInternalItemSelected.emit(t.snippet))}_showCollectionPanel(e,t){e.stopPropagation(),this.addPanelRenderer(l=>this.renderCollectionBasedVariable(t,!1,l))}_getHeadingForCollection(e){if(!e)return"";switch(this._mode){case"profile":return this.messages.profilevariables??"";case"featureSet":return this.messages.fields??""}}_getDescriptionForCollection(e){if(!e)return"";switch(this._mode){case"profile":return e.breadcrumb;case"featureSet":return e.variables[0]?.getLabel()??""}}renderCollectionBasedVariable(e,t=!1,l=!1){if(!e)return null;let s=this.loading;return!s&&!e.loaded&&(e.loadSource().then(()=>setTimeout(()=>{this._mutationCounter+=1})).catch(()=>{n("error",this,"Error loading collection"),s=!1}),s=!0),i`<calcite-flow-item heading-level=2 .heading=${this._getHeadingForCollection(e)} .description=${this._getDescriptionForCollection(e)} .beforeBack=${this._beforeBack} closable @calciteFlowItemClose=${this._emitClose} .selected=${l}><calcite-action slot=header-actions-end .text=${this.messages.backtotop??""} scale=m .hidden=${t||this._isMode("featureSet")} icon=chevrons-left icon-flip-rtl @click=${this._backToTop}></calcite-action><calcite-input .value=${this._filterValue} icon=magnifying-glass clearable @calciteInputInput=${this._updateFilterValue} class="sticky" scale=m .label=${this.messages.filterthevariablesbyname??""} name=variable-filter></calcite-input>${s?i`<calcite-loader scale=s type=indeterminate .label=${this.messages.loading??""}></calcite-loader>`:i`<calcite-list .label=${this.messages.profilevariables??"Profile variables"}>${this.renderEditorVariables(e)}</calcite-list>`}</calcite-flow-item>`}renderEditorVariables(e){let t=d(this._filterValue),l=e.variables.filter(s=>s.passFilter(t));return l.length?l.map(s=>this.renderEditorVariable(s)):i`<div class="notice-container">${this.messages.noitems}</div>`}renderEditorVariable(e){switch(e.type){case"group":return this._isMode("featureSet")&&e.isHeader?i`<calcite-list-item-group .heading=${e.getLabel()}></calcite-list-item-group>`:this._isMode("featureSet")&&e._label?.code==="fields"?this.renderEditorVariables(e):i`<calcite-list-item-group .heading=${e.getLabel()}>${this.renderEditorVariables(e)}</calcite-list-item-group>`;default:return i`<calcite-list-item .label=${e.getLabel()} .description=${e.getDescription()} @calciteListItemSelect=${t=>this._emitItemSelected(t,e)} @keydown=${t=>this._emitItemSelected(t,e)}>${e.isCollection?i`<calcite-action slot=actions-end .text=${this.messages.expand??""} scale=s icon=chevron-right icon-flip-rtl @click=${t=>this._showCollectionPanel(t,e)} @keydown=${p}></calcite-action>`:null}${e.icon?i`<calcite-icon .icon=${e.icon} scale=s slot=content-start></calcite-icon>`:null}</calcite-list-item>`}}render(){return this.closed?null:!this.loading&&this.variable?.loaded&&!this.variable?.variables.length?i`<calcite-flow><calcite-flow-item heading-level=2 .heading=${this.messages.profilevariables} closable @calciteFlowItemClose=${this._emitClose}><div class="notice-container">${this.messages.noprofilevariablesmessage}</div></calcite-flow-item></calcite-flow>`:i`<calcite-flow ${h(this.flowFocusHandler)}>${this.renderCollectionBasedVariable(this.variable,!0,this._flowItemRenderers.length===0)}${this._flowItemRenderers.map((e,t,l)=>e(t===l.length-1))}</calcite-flow>`}};f("arcgis-editor-variables",o);export{o as ArcgisEditorVariables};
|
|
@@ -18245,7 +18245,7 @@ function se(t, e, r, n) {
|
|
|
18245
18245
|
const cr = { apiKey: void 0, apiKeys: { scopes: [] }, applicationName: "", applicationUrl: globalThis.location?.href, assetsPath: "", fontsUrl: "https://static.arcgis.com/fonts", geometryServiceUrl: "https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer", geoRSSServiceUrl: "https://utility.arcgis.com/sharing/rss", kmlServiceUrl: "https://utility.arcgis.com/sharing/kml", userPrivilegesApplied: !0, portalUrl: "https://www.arcgis.com", respectPrefersReducedMotion: !0, routeServiceUrl: "https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World", workers: { loaderConfig: { has: {}, paths: {}, map: {}, packages: [] } }, request: { crossOriginNoCorsDomains: null, httpsDomains: ["arcgis.com", "arcgisonline.com", "esrikr.com", "premiumservices.blackbridge.com", "esripremium.accuweather.com", "gbm.digitalglobe.com", "firstlook.digitalglobe.com", "msi.digitalglobe.com"], interceptors: [], internalInterceptors: [], maxUrlLength: 2e3, priority: "high", proxyRules: [], proxyUrl: null, timeout: 62e3, trustedServers: [], useIdentity: !0 }, log: { interceptors: [], level: null } };
|
|
18246
18246
|
if (globalThis.esriConfig && (Y4(cr, globalThis.esriConfig, !0), delete cr.has), !cr.assetsPath) {
|
|
18247
18247
|
{
|
|
18248
|
-
const t = "5.0.
|
|
18248
|
+
const t = "5.0.5";
|
|
18249
18249
|
cr.assetsPath = `https://js.arcgis.com/${t}/@arcgis/core/assets`;
|
|
18250
18250
|
}
|
|
18251
18251
|
cr.defaultAssetsPath = cr.assetsPath;
|
package/dist/cdn/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import{I as s,u as e}from"./
|
|
2
|
+
import{I as s,u as e}from"./K5Q4VIAS.js";import"./RXOG5OZ7.js";import"./ALDX5YZO.js";var i=e(s,{"arcgis-arcade-coding-assistant":[()=>import("./MP4M4VSD.js"),"appVersion,assistantsEnabled,closed,closePanel:,disableQuestionAnswerLogging,editorRef:,feedbackServiceUrl,helpBase,insertText:,portalUrl,serviceUrl;destroy"],"arcgis-arcade-editor":[()=>import("./I6GIZWSZ.js"),"arcadeAssistant:,customPanels:,editorInstance:,editorOptions:,hideDocumentationActions,hideSideBar,messages:,openedSidePanel,profile:,script,sideActionBarExpanded,snippets:,suggestions:,testData:;getTestResult,setFocus"],"arcgis-arcade-results":[()=>import("./DEEKIIXS.js"),"calciteModeDark,consoleLogs:,loading,openedResultPanel,result:"],"arcgis-arcade-suggestions":[()=>import("./CFX5YYPW.js"),"closed,suggestions:"],"arcgis-code-editor":[()=>import("./GJLMXPW7.js"),"editorInstance:,editorOptions:,language,modelId,value;insertSnippet,insertText,setFocus"],"arcgis-code-editor-shell":[()=>import("./MLSNLBXU.js")],"arcgis-code-viewer":[()=>import("./TV7DSRQ6.js"),"language,round"],"arcgis-editor-variables":[()=>import("./WIKQE2F2.js"),"closed,loading,modelId,variable:"],"arcgis-language-api-panel":[()=>import("./QOURNU2Z.js"),"apiLibrary:,closed,hideDocumentationActions,languageId,loading"],"arcgis-sql-expression-editor":[()=>import("./23XAK7QK.js"),"hideSideBar,messages:,profile:,script;setFocus"]});i({resourcesUrl:import.meta.url});var t=new CSSStyleSheet;t.replaceSync("@layer{:not([hydrated]):is(arcgis-arcade-editor,arcgis-code-editor,arcgis-code-editor-shell,arcgis-code-viewer,arcgis-sql-expression-editor){visibility:hidden}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,t];window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r)=>{a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,s)
|
package/dist/chunks/runtime.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "../cdn/main.css";
|
|
3
3
|
import { makeRuntime as e } from "@arcgis/lumina";
|
|
4
4
|
import { trackAccess as s, createObservable as r, createTrackingTarget as a, runTracked as c } from "@arcgis/core/applications/Components/reactiveUtils.js";
|
|
5
|
-
const t = e({ defaultAssetPath: "https://js.arcgis.com/5.0.
|
|
5
|
+
const t = e({ defaultAssetPath: "https://js.arcgis.com/5.0.5/coding-components/", hydratedAttribute: "hydrated" }), { customElement: n, getAssetPath: i, setAssetPath: d } = t;
|
|
6
6
|
t.t = s;
|
|
7
7
|
t.o = r;
|
|
8
8
|
t.c = a;
|