@arcgis/common-components 4.29.0-beta.46 → 4.29.0-beta.48

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.
Files changed (53) hide show
  1. package/dist/arcgis-common-components/arcgis-common-components.esm.js +1 -1
  2. package/dist/arcgis-common-components/p-6c7d2684.js +1 -0
  3. package/dist/arcgis-common-components/p-7318a1d1.entry.js +1 -0
  4. package/dist/arcgis-common-components/p-77e17376.entry.js +1 -0
  5. package/dist/arcgis-common-components/p-a91ab432.js +2 -0
  6. package/dist/cjs/arcgis-common-components.cjs.js +3 -3
  7. package/dist/cjs/arcgis-field-info.cjs.entry.js +902 -903
  8. package/dist/cjs/arcgis-field-pick-list.cjs.entry.js +228 -229
  9. package/dist/cjs/{index-2e4fbd31.js → index-5ec7f592.js} +5 -20
  10. package/dist/cjs/{index-ab5f2576.js → index-e0422bc8.js} +72 -77
  11. package/dist/cjs/loader.cjs.js +2 -2
  12. package/dist/components/arcgis-field-info.d.ts +2 -2
  13. package/dist/components/arcgis-field-pick-list.d.ts +2 -2
  14. package/dist/components/arcgis-field-pick-list.js +271 -272
  15. package/dist/components/field-info.js +955 -900
  16. package/dist/esm/arcgis-common-components.js +4 -4
  17. package/dist/esm/arcgis-field-info.entry.js +902 -903
  18. package/dist/esm/arcgis-field-pick-list.entry.js +228 -229
  19. package/dist/esm/{index-74897166.js → index-0c129ec4.js} +73 -78
  20. package/dist/esm/index-ba4fe890.js +59 -0
  21. package/dist/esm/loader.js +3 -3
  22. package/dist/types/components/field-info/field-info.d.ts +61 -61
  23. package/dist/types/components/field-info/t9n-types.d.ts +72 -72
  24. package/dist/types/components/field-info/utils/basic.d.ts +24 -24
  25. package/dist/types/components/field-info/utils/field.d.ts +1 -1
  26. package/dist/types/components/field-pick-list/field-pick-list.d.ts +115 -115
  27. package/dist/types/components/field-pick-list/t9n-types.d.ts +15 -15
  28. package/dist/types/components/field-pick-list/utils/types.d.ts +14 -14
  29. package/dist/types/components.d.ts +0 -86
  30. package/dist/types/stencil-public-runtime.d.ts +8 -0
  31. package/package.json +7 -7
  32. package/dist/arcgis-common-components/p-0be8fd4c.entry.js +0 -1
  33. package/dist/arcgis-common-components/p-164eb24e.entry.js +0 -1
  34. package/dist/arcgis-common-components/p-5ecf6396.js +0 -1
  35. package/dist/arcgis-common-components/p-97c7ac8d.entry.js +0 -1
  36. package/dist/arcgis-common-components/p-b23318c8.js +0 -1
  37. package/dist/arcgis-common-components/p-d66b011b.entry.js +0 -1
  38. package/dist/arcgis-common-components/p-f27af39c.js +0 -2
  39. package/dist/cjs/arcgis-api-key.cjs.entry.js +0 -51
  40. package/dist/cjs/arcgis-identity.cjs.entry.js +0 -139
  41. package/dist/cjs/index-f8bf4df6.js +0 -7
  42. package/dist/components/arcgis-api-key.d.ts +0 -11
  43. package/dist/components/arcgis-api-key.js +0 -69
  44. package/dist/components/arcgis-identity.d.ts +0 -11
  45. package/dist/components/arcgis-identity.js +0 -167
  46. package/dist/components/index2.js +0 -75
  47. package/dist/esm/arcgis-api-key.entry.js +0 -47
  48. package/dist/esm/arcgis-identity.entry.js +0 -135
  49. package/dist/esm/index-3d9bb67e.js +0 -75
  50. package/dist/esm/index-e7244815.js +0 -3
  51. package/dist/types/components/api-key/api-key.d.ts +0 -9
  52. package/dist/types/components/identity/identity.d.ts +0 -31
  53. package/dist/types/components/types.d.ts +0 -10
@@ -1 +1 @@
1
- import{p as e,b as t}from"./p-f27af39c.js";export{s as setNonce}from"./p-f27af39c.js";(()=>{const t=import.meta.url,s={};return""!==t&&(s.resourcesUrl=new URL(".",t).href),e(s)})().then((e=>t([["p-0be8fd4c",[[1,"arcgis-field-pick-list",{selectedFields:[1040],fields:[16],popoverProps:[16],layer:[16],mapView:[16],showFieldInfo:[4,"show-field-info"],showFieldName:[4,"show-field-name"],showDescription:[4,"show-description"],showSelectionAll:[4,"show-selection-all"],showCancel:[4,"show-cancel"],showSort:[4,"show-sort"],showFilterLength:[2,"show-filter-length"],multiple:[4],heading:[1],okBtnText:[1,"ok-btn-text"],filterPlaceholderText:[1,"filter-placeholder-text"],sortBy:[1,"sort-by"],lastSortyBy:[32],filterFields:[32],_lang:[32],_t9nLocale:[32],_t9nStrings:[32],setFocus:[64],reposition:[64]}]]],["p-164eb24e",[[0,"arcgis-api-key",{apiKey:[1,"api-key"]},null,{apiKey:["apiKeyWatcher"]}]]],["p-97c7ac8d",[[0,"arcgis-identity",{identity:[1040],appId:[1,"app-id"],credential:[1040],expiration:[1026],locale:[1],usePopup:[4,"use-popup"],popupCallbackUrl:[1,"popup-callback-url"],portalUrl:[1,"portal-url"],preserveUrlHash:[4,"preserve-url-hash"],signIn:[64],signOut:[64]},null,{appId:["appIdWatcher"]}]]],["p-d66b011b",[[1,"arcgis-field-info",{view:[16],layer:[16],fieldName:[1,"field-name"],hideStatistics:[4,"hide-statistics"],oneFeatureResponse:[32],oneFeatureResponseStatus:[32],statistics:[32],statisticsStatus:[32],uniqueValues:[32],uniqueValuesStatus:[32],_lang:[32],_t9nLocale:[32],_t9nStrings:[32]}]]]],e)));
1
+ import{p as e,b as t}from"./p-a91ab432.js";export{s as setNonce}from"./p-a91ab432.js";(()=>{const t=import.meta.url,s={};return""!==t&&(s.resourcesUrl=new URL(".",t).href),e(s)})().then((e=>t([["p-77e17376",[[1,"arcgis-field-info",{view:[16],layer:[16],fieldName:[1,"field-name"],hideStatistics:[4,"hide-statistics"],oneFeatureResponse:[32],oneFeatureResponseStatus:[32],statistics:[32],statisticsStatus:[32],uniqueValues:[32],uniqueValuesStatus:[32],_lang:[32],_t9nLocale:[32],_t9nStrings:[32]}]]],["p-7318a1d1",[[1,"arcgis-field-pick-list",{selectedFields:[1040],fields:[16],popoverProps:[16],layer:[16],mapView:[16],showFieldInfo:[4,"show-field-info"],showFieldName:[4,"show-field-name"],showDescription:[4,"show-description"],showSelectionAll:[4,"show-selection-all"],showCancel:[4,"show-cancel"],showSort:[4,"show-sort"],showFilterLength:[2,"show-filter-length"],multiple:[4],heading:[1],okBtnText:[1,"ok-btn-text"],filterPlaceholderText:[1,"filter-placeholder-text"],sortBy:[1,"sort-by"],lastSortyBy:[32],filterFields:[32],_lang:[32],_t9nLocale:[32],_t9nStrings:[32],setFocus:[64],reposition:[64]}]]]],e)));
@@ -0,0 +1 @@
1
+ const t="define"in window&&"function"==typeof window.define&&"amd"in window.define;function n(t){return new Promise((n=>window.require([t],(t=>{n(t)}))))}async function r(){return t?n("esri/rest/support/Query"):(await import("@arcgis/core/rest/support/Query.js")).default}async function i(){return t?n("esri/config"):(await import("@arcgis/core/config.js")).default}async function e(){return t?n("esri/core/lang"):await import("@arcgis/core/core/lang.js")}async function a(){return t?n("esri/core/reactiveUtils"):await import("@arcgis/core/core/reactiveUtils.js")}async function s(){return t?n("esri/intl"):await import("@arcgis/core/intl.js")}async function c(){return t?n("esri/smartMapping/statistics/summaryStatistics"):(await import("@arcgis/core/smartMapping/statistics/summaryStatistics.js")).default}async function o(){return t?n("esri/smartMapping/statistics/uniqueValues"):(await import("@arcgis/core/smartMapping/statistics/uniqueValues.js")).default}function u(t,n){let r=t;for(;r;){if(r===n)return!0;if(!r.parentNode)return!1;r=r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}return!1}function f(t){return l(t,"dir","ltr")}function l(t,n,r){return function(t,n){let r=t;for(;r;){let t=r.closest(n);if(t)return t;let i=r.getRootNode();if(i===document)return null;r=i.host}return null}(t,`[${n}]`)?.getAttribute(n)??r}var w=new Set(["ar","bg","bs","ca","cs","da","de","el","en","es","et","fi","fr","he","hr","hu","id","it","ja","ko","lt","lv","nl","nb","pl","pt-BR","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"]),p=new Map;async function g(t,n,r=""){let i=`${n}/${r}${t}.json`;if(p.has(i))return p.get(i);try{let e=await fetch(i);if(e.ok){let t=await e.json();return p.set(i,t),t}if("en"===t)return void p.set(i,void 0);let a=await g("en",n,r);return p.set(i,a),a}catch{return void p.set(i,void 0)}}var m=new WeakMap,d=new WeakMap,y=new WeakMap;async function v(t,n,r){d.set(t,n),m.set(t,function(t,n,r=(()=>{})){if(!n||n.length<=0)return;let i=new MutationObserver((n=>{for(let i of n)u(t,i.target)&&r()}));return i.observe(document.documentElement,{attributes:!0,attributeFilter:n,subtree:!0}),i}(t._hostElement,["lang"],(()=>{j(t,r)}))),await j(t,r)}function h(t){m.get(t)?.disconnect(),m.delete(t),d.delete(t)}async function j(t,n){let{lang:r,t9nLocale:i}=function(t){let n=l(t,"lang",navigator?.language||"en");if(w.has(n))return{lang:n,t9nLocale:n};let r=n.slice(0,2);return{lang:n,t9nLocale:w.has(r)?r:"en"}}(t._hostElement);if(r===t._lang&&i===t._t9nLocale||(r!==t._lang&&(t._lang=r),i===t._t9nLocale))return;let e=y.get(t);if(!e){let n=d.get(t)??"",r=t._hostElement.tagName.toLowerCase().replace("arcgis-",""),a=`${n}/${r}/t9n`,s=`${r}.t9n.`;e=await g(i,a,s)}t._t9nLocale=i,t._t9nStrings=e,await(n?.call(t))}export{f as C,v as F,h as U,e as a,i as b,r as c,c as d,o as e,a as f,s as i}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as s,g as e,H as h,a as o}from"./p-a91ab432.js";import{F as l,i as n,U as a,C as c}from"./p-6c7d2684.js";var r,d;!function(t){t.expression="expression/",t.relationship="relationships/",t.raster="Raster."}(r||(r={})),function(t){t.default="default",t.display="display",t.type="type",t.field="field"}(d||(d={}));const p=class{constructor(e){t(this,e),this.arcgisFieldPickListDismissed=i(this,"arcgisFieldPickListDismissed",7),this.arcgisFieldPickListChange=i(this,"arcgisFieldPickListChange",7),this.arcgisFieldPickListSortByChange=i(this,"arcgisFieldPickListSortByChange",7),this.calciteValueList=t=>s("calcite-pick-list-item",{key:t.name,label:t.alias||t.name,description:(()=>this.showFieldName?`{${t.name}}`:this.showDescription&&t.description?t.description:null)(),value:t.name,selected:!this.multiple&&t.name===this.selectedFields[0]||this.multiple&&this.selectedFields.indexOf(t.name)>-1,metadata:{label:t.alias,fieldName:t.name}},this.showFieldInfoCheck(t)&&s("calcite-action",{slot:"actions-end",text:this._t9nStrings.info,title:this._t9nStrings.info,scale:"s",icon:"information",onClick:i=>{i.stopPropagation();const s=i.target,e=document.createElement("calcite-flow-item");e.heading=t.alias??t.name,e.description=t.name,e.className="panel";const h=document.createElement("arcgis-field-info");h.lang=this._lang,h.fieldName=t.name,h.layer=this.layer,h.view=this.mapView,h.classList.add("content"),e.appendChild(h),e.addEventListener("calciteFlowItemBack",(()=>setTimeout((()=>requestAnimationFrame((()=>s.setFocus()))),200))),this.flowElement.appendChild(e),setTimeout((()=>requestAnimationFrame((()=>e.setFocus()))),200)}})),this.selectedFields=[],this.fields=void 0,this.popoverProps=void 0,this.layer=void 0,this.mapView=void 0,this.showFieldInfo=!1,this.showFieldName=!1,this.showDescription=!1,this.showSelectionAll=!1,this.showCancel=!0,this.showSort=!0,this.showFilterLength=10,this.multiple=!1,this.heading=void 0,this.okBtnText=void 0,this.filterPlaceholderText=void 0,this.sortBy=void 0,this.lastSortyBy=d.default,this.filterFields=null,this._lang="",this._t9nLocale="",this._t9nStrings=void 0}async componentWillLoad(){await l(this,e("./assets")),!this.multiple&&this.selectedFields.length>1&&(this.selectedFields=[this.selectedFields[0]]),this.lastSortyBy=this.sortBy||this.lastSortyBy}async componentDidLoad(){(await n()).setLocale(this._lang),this.setUpObserver(),this.popoverNode.open=!0,setTimeout((()=>requestAnimationFrame((()=>this.panelElement.setFocus()))),200)}disconnectedCallback(){a(this),this.observer?.disconnect()}async setFocus(){setTimeout((()=>requestAnimationFrame((()=>this.panelElement.setFocus()))),1)}async reposition(){this.popoverNode?.reposition()}getSortedList(){const t=[...this.fields];return this.lastSortyBy===d.display?t.sort(((t,i)=>t.alias.localeCompare(i.alias))):this.lastSortyBy===d.field?t.sort(((t,i)=>t.name.localeCompare(i.name))):this.lastSortyBy===d.type&&t.sort(((t,i)=>t.type.localeCompare(i.type))),t}showFieldInfoCheck(t){return!!this.showFieldInfo&&!t.name.includes(r.expression)&&!t.name.includes(r.relationship)}selectDeselect(){return this.filterFields?.length?this.filterContainsAll():this.selectedFields.length===this.fields.length}filterContainsAll(){return!!this.filterFields?.every((t=>this.selectedFields.some((i=>i===t))))}render(){const t=s("calcite-button",{slot:"footer",appearance:this.showCancel?"solid":"outline-fill",width:this.showCancel?"half":"full",scale:"m",onClick:()=>{this.arcgisFieldPickListDismissed.emit({selectedFields:this.selectedFields})}},this.okBtnText||(this.multiple?this._t9nStrings.done:this._t9nStrings.ok)),i=s("calcite-button",{slot:"footer",appearance:"outline-fill",width:this.multiple?"half":"full",scale:"m",onClick:()=>this.arcgisFieldPickListDismissed.emit()},this._t9nStrings.cancel),e=this.fields.every((t=>!!t.type)),o=s("calcite-dropdown",{slot:"menu-actions",placement:"bottom-end",overlayPositioning:"fixed",ref:t=>this.dropdownNode=t,onCalciteDropdownOpen:()=>{this.observer?.disconnect(),this.observer?.observe(this.popoverNode,{attributes:!0})},onCalciteDropdownClose:()=>this.observer?.disconnect()},s("calcite-action",{slot:"trigger",text:this._t9nStrings.sort,title:this._t9nStrings.sort},s("calcite-icon",{scale:"s",icon:"sortDescending"})),s("calcite-dropdown-group",null,s("calcite-dropdown-item",{selected:this.lastSortyBy===d.default,onClick:()=>{this.lastSortyBy=d.default,this.arcgisFieldPickListSortByChange.emit(this.lastSortyBy)}},this._t9nStrings.default),s("calcite-dropdown-item",{selected:this.lastSortyBy===d.display,onClick:()=>{this.lastSortyBy=d.display,this.arcgisFieldPickListSortByChange.emit(this.lastSortyBy)}},this._t9nStrings.displayName),e&&s("calcite-dropdown-item",{selected:this.lastSortyBy===d.type,onClick:()=>{this.lastSortyBy=d.type,this.arcgisFieldPickListSortByChange.emit(this.lastSortyBy)}},this._t9nStrings.type),s("calcite-dropdown-item",{selected:this.lastSortyBy===d.field,onClick:()=>{this.lastSortyBy=d.field,this.arcgisFieldPickListSortByChange.emit(this.lastSortyBy)}},this._t9nStrings.fieldName))),l=s("div",{class:"selection-button-div"},s("calcite-button",{appearance:"transparent",scale:"s",width:"full",onClick:()=>{this.selectedFields=this.selectDeselect()?this.filterFields?.length?this.selectedFields.filter((t=>!this.filterFields?.includes(t))):[]:this.filterFields?.length?[...new Set([...this.selectedFields,...this.filterFields])]:this.fields.map((t=>t.name))}},this.selectDeselect()?this._t9nStrings.deselectAll:this._t9nStrings.selectAll));return s(h,{class:"js-app-flyout"},s("calcite-popover",{dir:c(this._hostElement),class:"popover",placement:this.popoverProps.placement||"leading-start",open:!1,pointerDisabled:!0,referenceElement:this.popoverProps.refElement,offsetDistance:this.popoverProps.offsetDistance||-Math.round(this.popoverProps.refElement.getBoundingClientRect().width),offsetSkidding:this.popoverProps.offsetSkidding||0,overlayPositioning:this.popoverProps.overlayPositioning,triggerDisabled:this.popoverProps.triggerDisabled,autoClose:this.popoverProps.autoClose,label:this.heading||(this.multiple?this._t9nStrings.headerSelect:this._t9nStrings.header),onCalcitePopoverClose:()=>this.arcgisFieldPickListDismissed.emit(),ref:t=>this.popoverNode=t},s("calcite-flow",{ref:t=>{this.flowElement=t},style:{width:`${this.popoverProps.popoverWidth||this.popoverProps.refElement.getBoundingClientRect().width}px`}},s("calcite-flow-item",{ref:t=>this.panelElement=t,class:"panel",heading:this.heading||(this.multiple?this._t9nStrings.headerSelect:this._t9nStrings.header),closable:!0,onCalciteFlowItemClose:()=>this.arcgisFieldPickListDismissed.emit()},this.multiple&&t,this.showCancel&&i,s("calcite-pick-list",{multiple:this.multiple,ref:t=>{this.pickListNode=t},class:"content",filterEnabled:this.fields.length>=this.showFilterLength,filterPlaceholder:this.filterPlaceholderText??this._t9nStrings.filter,onCalciteListChange:async()=>{const t=await this.pickListNode.getSelectedItems();this.selectedFields=[...new Set([...this.selectedFields.filter((i=>t.has(i))),...t.keys()])],this.arcgisFieldPickListChange.emit({selectedFields:this.selectedFields}),this.multiple||this.arcgisFieldPickListDismissed.emit({selectedFields:this.selectedFields})},onCalciteListFilter:t=>{t.stopPropagation();const i=t.target;this.filterFields=i.filteredItems?.map((t=>t.value))}},this.fields.length>=this.showFilterLength&&this.showSort&&o,this.multiple&&this.showSelectionAll&&l,[...this.getSortedList()].map((t=>this.calciteValueList(t))))))))}setUpObserver(){this.observer=new MutationObserver((t=>{for(const i of t)"style"===i.attributeName&&"hidden"===this.popoverNode.style.visibility&&(this.dropdownNode.open=!1)}))}static get assetsDirs(){return["assets"]}get _hostElement(){return o(this)}};p.style=".popover{z-index:100}.panel{min-height:300px}.content{max-height:60vh}.selection-button-div{padding:4px 10px}";export{p as arcgis_field_pick_list}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,g as e,h as i,H as n,a as r,F as a}from"./p-a91ab432.js";import{F as l,a as o,b as c,i as u,c as d,d as h,e as f,f as g,U as m}from"./p-6c7d2684.js";var v,y;function p(t){return null!=t}function w(t){return"scene"===t.type?t.associatedLayer?.url:t.url}async function S(t){t.statisticsStatus=v.IN_PROGRESS;const{layer:s,view:e}=t;if("imagery"===s.type||"imagery-tile"===s.type||"stream"===s.type)throw new Error("could not get feature count");try{return await async function(t,s){return"feature"!==t.type||t.url?"feature"===t.type||"csv"===t.type||"scene"===t.type||"wfs"===t.type||"geojson"===t.type?await t.queryFeatureCount():!s||"stream"!==t.type&&"ogc-feature"!==t.type?void 0:async function(t,s){return(await s.whenLayerView(t)).queryFeatureCount()}(t,s):async function(t){const s=t.createQuery();s.outFields=["*"];const e=await t.queryFeatures(s);if(e.features?.length)return e.features.length;throw new Error("could not get feature count")}(t)}(s,e)}catch(t){return}}async function b(t){const{layer:s,modules:e}=t;if(["imagery","imagery-tile","stream","ogc-feature"].indexOf(s.type)>-1)throw new Error("cannot get feature from service");const i=new e.Query({where:"1=1",outFields:["*"],returnGeometry:!1});return s.queryFeatures(i)}!function(t){t.MISSING="missing",t.IN_PROGRESS="inProgress",t.SUCCESS="success",t.FAILED="failed"}(v||(v={})),function(t){t.NUMBER="number",t.STRING="string",t.DATE="date",t.DATE_ONLY="date-only",t.TIME_ONLY="time-only",t.TIMESTAMP_OFFSET="timestamp-offset",t.OID="oid",t.GUID="guid",t.UNKNOWN="unknown"}(y||(y={}));const _=class{constructor(e){t(this,e),this.arcgisFieldInfoComplete=s(this,"arcgisFieldInfoComplete",7),this.view=void 0,this.layer=void 0,this.fieldName=void 0,this.hideStatistics=!1,this.oneFeatureResponse=void 0,this.oneFeatureResponseStatus=v.MISSING,this.statistics=void 0,this.statisticsStatus=v.MISSING,this.uniqueValues=void 0,this.uniqueValuesStatus=v.MISSING,this._lang="",this._t9nLocale="",this._t9nStrings=void 0}async componentWillLoad(){await l(this,e("./assets"));const t=await o(),s=await c(),i=await u(),n=await d(),r=await h(),a=await f(),{view:m,layer:_,fieldName:k,hideStatistics:$}=this;let I;if("esri.layers.support.Sublayer"===_.declaredClass){const t=_,{whenOnce:s}=await g();m&&await s((()=>!m.updating)),I=await t.createFeatureLayer(),await I.load()}this.props={view:m,layer:I||_,fieldName:k,hideStatistics:$,modules:{esriLang:t,esriConfig:s,intl:i,Query:n,summaryStatistics:r,uniqueValues:a}},this.props.fieldInfo=function(t){const{layer:s,fieldName:e}=t;let i;const{popupTemplate:n}=s,r=n?n.fieldInfos:[];return("imagery-tile"===s.type||"imagery"===s.type&&s.rasterFields?.length?s.rasterFields:s.fields).filter((t=>t.name===e)).forEach((s=>{const n=r?r.filter((t=>t.fieldName===s.name)):null,a=n?.length?n[0].label:null;/^raster.(item|service)pixelvalue/i.test(e)&&(s.type="double");const l={layerField:s,label:a||s.alias||s.name};l.codedValues=function(t,s){const{layer:e,modules:i}=s;if("feature"!==e.type)return;const n=e.typeIdField,r=e.types;let a;const l=e.fields.find((s=>s.name===t)),o=l.domain;return n&&r?(n===t?a=r.map((t=>({code:t.id,name:t.name}))):(a=[],r.forEach((s=>{if(s.domains&&s.domains[t]&&"inherited"!==s.domains[t].type)s.domains?.[t]?.codedValues&&s.domains[t].codedValues.forEach((async t=>{let s=!1;a.forEach((e=>{e.code===t.code&&(s=!0,-1===`, ${e.name},`.indexOf(`, ${t.name},`)&&(e.name+=`, ${t.name}`))})),s||a.push(i.esriLang.clone(t))}));else{const t=o;t?.codedValues&&t.codedValues.forEach((async t=>{let s=!1;a.forEach((e=>{e.code===t.code&&(s=!0,-1===`, ${e.name},`.indexOf(`, ${t.name},`)&&(e.name+=`, ${t.name}`))})),s||a.push(i.esriLang.clone(t))}))}}))),!a?.length&&o?.codedValues&&(a=i.esriLang.clone(o.codedValues))):o?.codedValues&&(a=l.domain.codedValues),a?.length?a:null}(e,t),function(t){switch(t.layerField.type){case"string":t.simpleFieldType=y.STRING;break;case"date":t.simpleFieldType=y.DATE;break;case"timestamp-offset":t.simpleFieldType=y.TIMESTAMP_OFFSET;break;case"date-only":t.simpleFieldType=y.DATE_ONLY;break;case"time-only":t.simpleFieldType=y.TIME_ONLY;break;case"oid":t.simpleFieldType=y.OID;break;case"guid":case"global-id":t.simpleFieldType=y.GUID;break;case"small-integer":case"big-integer":case"integer":case"single":case"double":case"long":t.simpleFieldType=y.NUMBER}}(l),l.simpleFieldType&&(i=l)})),i}(this.props),"scene"===_.type&&s.request.interceptors?.push({urls:w(_)+"/"+_.layerId,before:function(t){t.requestOptions.authMode="no-prompt"}}),this.oneFeatureResponseStatus=v.IN_PROGRESS;try{const t=await async function(t){const{view:s,layer:e}=t;if("imagery"===e.type||"imagery-tile"===e.type)throw new Error("could not get feature");if("feature"===e.type&&!e.url||"wfs"===e.type){const t=e.createQuery();t.start=0,t.num=5,t.outFields=["*"];const s=await e.queryFeatures(t);if(s.features?.length)return s;throw new Error("could not get feature")}{if(!s)return b(t);const i=await s.whenLayerView(e);if(i.availableFields.length===e.fields.length||["stream","ogc-feature"].indexOf(e.type)>-1&&i.availableFields.length>0){const s=e.createQuery();s.start=0,s.num=5,s.outFields=["*"];const n=await i.queryFeatures(s);return n.features?.length?n:b(t)}return b(t)}}(this.props);this.oneFeatureResponse=t,this.oneFeatureResponseStatus=v.SUCCESS}catch(t){this.oneFeatureResponseStatus=v.FAILED}if("stream"===_.type)return this.uniqueValuesStatus=v.FAILED,void(this.statisticsStatus=v.FAILED);if($)this.uniqueValuesStatus=v.FAILED;else{this.uniqueValuesStatus=v.IN_PROGRESS;try{const t=await async function(t){const{layer:s,view:e,fieldName:i,modules:n}=t;if("imagery"===s.type||"imagery-tile"===s.type)throw new Error("could not get unique values for ImageryLayer/ImageryTileLayer");"feature"!==s.type||s.url||(s.outFields=["*"]);try{return await n.uniqueValues({layer:s,view:e,field:i})}catch(t){throw new Error("could not get unique values")}}(this.props);this.uniqueValues=t,this.uniqueValuesStatus=t?.uniqueValueInfos?.length?v.SUCCESS:v.FAILED}catch(t){this.uniqueValuesStatus=v.FAILED}}if($)this.statisticsStatus=v.FAILED;else{this.statisticsStatus=v.IN_PROGRESS;try{const t=await async function(t){const{layer:s,view:e,fieldName:i,fieldInfo:n,modules:r}=t;if("imagery"===s.type||"imagery-tile"===s.type)throw new Error("could not get statistics for ImageryLayer/ImageryTileLayer");if(!n||"oid"===n.layerField.type||"guid"===n.layerField.type||"global-id"===n.layerField.type){const s=await S(t);return Promise.resolve({totalCount:s,nullcount:0})}try{const n=await r.summaryStatistics({layer:s,view:e,field:i});if(!p(n.count))throw new Error("could not get statistics");const a="sourceJSON"in s&&s.sourceJSON.maxRecordCount===n.count;if(p(n.nullcount)&&!a)return{...n,totalCount:n.count+n.nullcount};{const s=await S(t);return{...n,totalCount:s}}}catch(t){throw new Error("could not get statistics")}}(this.props);if(!p(t.totalCount)&&p(t.count)&&this.uniqueValuesStatus===v.SUCCESS){const s=this.uniqueValues.uniqueValueInfos;for(let e=0;e<s.length;e++){const i=s[e];if(null===i.value){t.totalCount=i.count+t.count;break}}p(t.totalCount)||(t.totalCount=t.count)}this.statistics=t,this.statisticsStatus=v.SUCCESS}catch(t){this.statisticsStatus=v.FAILED}}}async componentDidLoad(){const{props:t}=this,{modules:s}=t;s.intl.setLocale(this._lang)}disconnectedCallback(){m(this)}render(){const{props:t}=this,{fieldInfo:s}=t;return s?i(n,null,i("div",{class:"container"},this.renderFieldType(),this.renderFieldAlias(),this.renderFieldDescription(),this.renderFieldValueType(),this.renderFieldSampleValue(),this.renderFieldFormat(),this.renderFieldStatistics())):i(a,null)}renderFieldType(){const{_t9nStrings:t,props:s}=this,{fieldInfo:e}=s,n=this._getFieldTypeLabel(e.layerField.type);return i("div",{class:"section"},i("div",{class:"title"},t.fieldType),i("div",null,n))}renderFieldAlias(){const{_t9nStrings:t,props:s}=this,{fieldInfo:e}=s;return i("div",{class:"section"},i("div",{class:"title"},t.fieldAlias),i("div",null,e.label))}renderFieldDescription(){const{_t9nStrings:t,props:s}=this,{layer:e}=s;if("feature"!==e.type)return i(a,null);const{fieldInfo:n}=s,r=n.layerField.description;return i("div",{class:"section"},i("div",{class:"title"},t.fieldDescription),i("div",{class:{missing:!r}},r||t.fieldDescriptionNotSet))}renderFieldValueType(){const{_t9nStrings:t,props:s}=this,{layer:e}=s;if("feature"!==e.type)return i(a,null);const{fieldInfo:n}=s,r=this._getFieldValueTypeCamelCase(n);return i("div",{class:"section"},i("div",{class:"title"},t.fieldValueType),i("div",{class:r?"":"missing"},r?t.fieldValueTypes[r]:t.fieldValueTypeNotSet))}renderFieldSampleValue(){const{oneFeatureResponse:t,oneFeatureResponseStatus:s,statisticsStatus:e,statistics:n,uniqueValuesStatus:r,uniqueValues:l,_t9nStrings:o,props:c}=this,{layer:u,fieldName:d,fieldInfo:h}=c,{statistics:f}=o;let g;if(["imagery","imagery-tile"].indexOf(u.type)>-1)return i(a,null);if("stream"!==u.type&&[y.STRING,y.OID,y.GUID].indexOf(this._getStatisticsType(h))>-1&&r!==v.FAILED)return i(a,null);s===v.SUCCESS?t.features.forEach((t=>{(void 0===g||null===g&&null!==t.attributes[d])&&(g=t.attributes[d])})):e===v.SUCCESS?g=n.min:r===v.SUCCESS&&(g=l.uniqueValueInfos?.[0]?.value||l.uniqueValueInfos?.[1]?.value);const m=h.codedValues;return p(g)&&(g=m?m.find((t=>g===t.code))?.name||g:this._getDisplayString(g)),i("div",{class:"section"},i("div",{class:"title"},o.fieldSampleValue),i("div",{class:s===v.FAILED&&e===v.FAILED&&r===v.FAILED||!p(g)?"missing":""},s===v.SUCCESS||e===v.SUCCESS||r===v.SUCCESS?p(g)?`${g}`:f.allNulls:s===v.FAILED&&e===v.FAILED&&r===v.FAILED?o.fieldSampleNotAvailable:o.fieldSampleRetrieving))}renderFieldFormat(){const{_t9nStrings:t,props:s}=this,{fieldName:e,fieldInfo:n,layer:r}=s;if(-1===["single","double","long"].indexOf(n.layerField.type))return i(a,null);const l=r.popupTemplate;if(l?.fieldInfos){const s=l.fieldInfos?.filter((t=>t.fieldName===e));if(s?.length){const e=s[0];if(p(e?.format?.places)){const s=e.format.places;return i("div",{class:"section"},i("div",{class:"title"},t.fieldDecimalPlaces),i("div",null,t.fieldNumDecimalPlaces.replace("${number}",s.toString())))}}}return i("div",{class:"section"},i("div",{class:"title"},t.fieldDecimalPlaces),i("div",{class:"missing"},t.fieldDecimalPlacesNotAvailable))}renderFieldStatistics(){const{statisticsStatus:t,uniqueValuesStatus:s,hideStatistics:e,_t9nStrings:n,props:r}=this,{layer:l,fieldInfo:o}=r;return e||["stream","imagery","imagery-tile"].indexOf(l.type)>-1||["long"].indexOf(o.layerField.type)>-1?(this.arcgisFieldInfoComplete.emit(),i(a,null)):i("div",{class:"section"},i("div",{class:"title"},n.fieldStatistics),t&&t!==v.MISSING&&t!==v.IN_PROGRESS?t===v.FAILED&&s!==v.SUCCESS?this.renderNoStatistics():i("div",{key:"field-info-statistics-content",ref:()=>this.arcgisFieldInfoComplete.emit()},this.renderStatistics()):i("div",{key:"field-info-statistics-content",class:"missing"},n.fieldStatisticsRetrieving))}renderNoStatistics(){const{_t9nStrings:t}=this;return i("div",{key:"field-info-statistics-content",ref:()=>this.arcgisFieldInfoComplete.emit(),class:"missing"},t.fieldStatisticsNotAvailable)}renderStatistics(){const{props:t}=this,{fieldInfo:s}=t;switch(this._getStatisticsType(s)){case y.NUMBER:return this.renderNumberStatistics();case y.STRING:case y.OID:case y.GUID:return this.renderStringStatistics();case y.DATE:case y.DATE_ONLY:case y.TIME_ONLY:case y.TIMESTAMP_OFFSET:return this.renderDateStatistics();default:return i(a,null)}}renderNumberStatistics(){const{statistics:t,_t9nStrings:s}=this;if(!t)return this.renderNoStatistics();const{statistics:e}=s;return i("div",null,i("div",{class:"statistics-row"},i("div",null,e.numberOfValues),i("div",{class:"data"},this._printNumValue(t.totalCount))),p(t.sum)?i("div",{class:"statistics-row"},i("div",null,e.sumOfValues),i("div",{class:"data"},this._printNumValue(t.sum))):null,p(t.min)?i("div",{class:"statistics-row"},i("div",null,e.minimum),i("div",{class:"data"},this._printNumValue(t.min))):null,p(t.max)?i("div",{class:"statistics-row"},i("div",null,e.maximum),i("div",{class:"data"},this._printNumValue(t.max))):null,p(t.avg)?i("div",{class:"statistics-row"},i("div",null,e.average),i("div",{class:"data"},this._printNumValue(t.avg))):null,p(t.stddev)?i("div",{class:"statistics-row"},i("div",null,e.standardDeviation),i("div",{class:"data"},this._printNumValue(t.stddev))):null,this.renderNullValues())}renderStringStatistics(){const{statistics:t,uniqueValuesStatus:s,_t9nStrings:e}=this,{statistics:n}=e;return i("div",null,i("div",{class:"statistics-row"},i("div",null,n.numberOfValues),s!==v.SUCCESS?i("div",{class:"missing"},"--"):i("div",{class:"data"},this._printNumValue(t?.totalCount))),this.renderNullValues(),this.renderTopValues())}renderDateStatistics(){const{statistics:t,view:s,props:e,_t9nStrings:n}=this,{fieldInfo:r}=e;if(!t)return this.renderNoStatistics();const{statistics:a}=n,l=t.max-t.min,o=Math.floor(l/31536e6);let c=Math.floor((l-31536e6*o)/2628e6),u=Math.ceil((l-2628e6*c)/864e5);u>=30&&(c+=1,u=0);let d=1===o?a.timeSpanOptions.year:o>1?a.timeSpanOptions.years.replace("${years}",o.toString()):"";d+=o>0&&(c>0||u>0)?", ":"",d+=1===c?a.timeSpanOptions.month:c>1?a.timeSpanOptions.months.replace("${months}",c.toString()):"",d+=c>0&&u>0?", ":"",d+=1===u?a.timeSpanOptions.day:u>1?a.timeSpanOptions.days.replace("${days}",u.toString()):"";const h=r.simpleFieldType!==y.TIMESTAMP_OFFSET||!s||"unknown"!==s.timeZone,f=r.simpleFieldType===y.TIME_ONLY;return i("div",null,i("div",{class:"statistics-row"},i("div",null,a.numberOfValues),i("div",{class:"data"},this._printNumValue(t?.totalCount))),h&&p(t.min)?i("div",{class:"statistics-row"},i("div",null,f?a.minimumTime:a.minimumDate),i("div",{class:"data"},`${this._getDisplayString(t.min)}`)):null,h&&p(t.max)?i("div",{class:"statistics-row"},i("div",null,f?a.maximumTime:a.maximumDate),i("div",{class:"data"},`${this._getDisplayString(t.max)}`)):null,h&&p(t.avg)?i("div",{class:"statistics-row"},i("div",null,f?a.averageTime:a.averageDate),i("div",{class:"data"},`${this._getDisplayString(t.avg)}`)):null,h&&!f&&p(t.min)&&p(t.max)&&l>0?i("div",{class:"statistics-row"},i("div",null,a.timespan),i("div",{class:"data"},d)):null,this.renderNullValues())}renderTopValues(){const{uniqueValues:t,uniqueValuesStatus:s,_t9nStrings:e,props:n}=this,{fieldInfo:r}=n,{statistics:l}=e;if(t?.uniqueValueInfos?.length){const s=t.uniqueValueInfos;s.sort(((t,s)=>t.count<s.count?1:t.count>s.count?-1:0));const e=r.codedValues,n=s.filter((t=>null!==t.value)).filter(((t,s)=>t&&s<10)).map((t=>{let s=t.value;return e?e.forEach((t=>{s===t.code&&(s=t.name)})):s=this._getDisplayString(s),i("div",{class:"statistics-row"},i("div",{class:"data"},`${s}`),i("div",{class:'$"data" $"count"'},this._printNumValue(t.count)))}));return n.length?i("div",null,i("div",{class:"statistics-row-top-values"},i("div",null,s.length>10?l.topTenValues:l.topValues),i("div",null,l.count)),n):i(a,null)}return i("div",null,i("div",{class:"statistics-row-top-values"},i("div",null,l.topValues),i("div",null,l.count)),i("div",{class:"statistics-row"},i("div",{class:"missing"},s===v.FAILED?e.fieldUniqueValuesNotAvailable:e.fieldSampleRetrieving)))}renderNullValues(){const{statistics:t,uniqueValues:s,_t9nStrings:e}=this,{statistics:n}=e;let r=t?.nullcount;if(!p(r)&&s){const t=s.uniqueValueInfos;for(let s=0;s<t.length;s++){const e=t[s];if(null===e.value){r=e.count;break}}}return i("div",{class:"statistics-row"},i("div",null,n.numberOfNulls),p(r)?i("div",{class:"data"},`${new Number(r).toLocaleString()}`):i("div",{class:"missing"},"--"))}_getFieldTypeLabel(t){const{_t9nStrings:s}=this,e=s.fieldTypes;switch(t){case"small-integer":return e.smallInteger;case"big-integer":return e.bigInteger;case"integer":return e.integer;case"single":return e.single;case"double":return e.double;case"long":return e.long;case"string":default:return e.string;case"date":return e.date;case"date-only":return e.dateOnly;case"time-only":return e.timeOnly;case"timestamp-offset":return e.timestampOffset;case"oid":return e.oid;case"guid":return e.guid;case"global-id":return e.globalId}}_getStatisticsType(t){switch(t.layerField.type){case"small-integer":case"big-integer":case"integer":case"single":case"double":if(t.codedValues)return y.STRING;switch(t.layerField.valueType){case"name-or-title":case"type-or-category":case"description":case"location-or-place-name":case"ordered-or-ranked":case"binary":return y.STRING;default:return y.NUMBER}case"string":return y.STRING;case"date":return y.DATE;case"timestamp-offset":return y.TIMESTAMP_OFFSET;case"date-only":return y.DATE_ONLY;case"time-only":return y.TIME_ONLY;default:return y.STRING}}_getFieldValueTypeCamelCase(t){switch(t.layerField.valueType){case"count-or-amount":return"countOrAmount";case"percentage-or-ratio":return"percentageOrRatio";case"unique-identifier":return"uniqueIdentifier";case"name-or-title":return"nameOrTitle";case"type-or-category":return"typeOrCategory";case"location-or-place-name":return"locationOrPlaceName";case"ordered-or-ranked":return"orderedOrRanked";case"date-and-time":return"dateAndTime";default:return t.layerField.valueType}}_getDisplayString(t){const{props:s}=this,{fieldInfo:e}=s;switch(e.simpleFieldType){case y.DATE:return this._getDateString(t);case y.TIMESTAMP_OFFSET:return this._getTimestampOffsetString(t);case y.DATE_ONLY:return this._getDateOnlyString(t);case y.TIME_ONLY:return this._getTimeOnlyString(t);case y.NUMBER:return this._getNumberString(t);case y.GUID:return this._getGuidString(t);default:return`${t}`}}_getDateString(t){const{modules:s,view:e}=this.props;return s.intl.formatDate(t,e&&"unknown"===e.timeZone?{...s.intl.convertDateFormatToIntlOptions("short-date-short-time"),timeZone:"utc",timeZoneName:"shortOffset"}:{...s.intl.convertDateFormatToIntlOptions("short-date-short-time"),timeZone:e?.timeZone||"system"})}_getTimestampOffsetString(t){const{modules:s,view:e}=this.props;return"string"==typeof t?s.intl.formatTimestamp(t,e&&"unknown"===e.timeZone?{...s.intl.convertDateFormatToIntlOptions("short-date-short-time"),timeZone:"utc",timeZoneName:"shortOffset"}:{...s.intl.convertDateFormatToIntlOptions("short-date-short-time"),timeZone:e?.timeZone||"system"}):this._getDateString(t)}_getDateOnlyString(t){const{props:s}=this,{modules:e}=s;return e.intl.formatDateOnly(t,e.intl.convertDateFormatToIntlOptions("short-date"))}_getTimeOnlyString(t){const{props:s}=this,{modules:e}=s;return"string"==typeof t?e.intl.formatTimeOnly(t,e.intl.convertDateFormatToIntlOptions("short-date-long-time")):e.intl.formatDate(t,{...e.intl.convertDateFormatToIntlOptions("long-time"),timeZone:"utc"})}_getGuidString(t){return t.startsWith("{")?t:`{${t}}`}_getNumberString(t){return this.props.modules.intl.formatNumber(t)}_printNumValue(t){return p(t)?this._getNumberString(Math.round(100*t)/100):"--"}static get assetsDirs(){return["assets"]}get _hostElement(){return r(this)}};_.style=":host{height:100%}.container{padding:6px;background-color:white}.title{font-weight:bold;padding:5px 0}.missing{color:#a9a9a9}.data{color:#a9a9a9}.count{white-space:nowrap}.section{padding:6px 0}.statistics-row{border-top:1px solid #e0e0e0;padding:6px 0;display:flex;justify-content:space-between}.statistics-row-top-values{border-top:1px solid #e0e0e0;padding:20px 0 6px 0;display:flex;justify-content:space-between}";export{_ as arcgis_field_info}
@@ -0,0 +1,2 @@
1
+ let e,n,t=!1;const l=e=>{const n=new URL(e,oe.t);return n.origin!==te.location.origin?n.href:n.pathname},o="slot-fb{display:contents}slot-fb[hidden]{display:none}",s={},i=e=>"object"==(e=typeof e)||"function"===e;function c(e){var n,t,l;return null!==(l=null===(t=null===(n=e.head)||void 0===n?void 0:n.querySelector('meta[name="csp-nonce"]'))||void 0===t?void 0:t.getAttribute("content"))&&void 0!==l?l:void 0}const r=(e,n,...t)=>{let l=null,o=null,s=!1,c=!1;const r=[],a=n=>{for(let t=0;t<n.length;t++)l=n[t],Array.isArray(l)?a(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!i(l))&&(l+=""),s&&c?r[r.length-1].l+=l:r.push(s?u(null,l):l),c=s)};if(a(t),n){n.key&&(o=n.key);{const e=n.className||n.class;e&&(n.class="object"!=typeof e?e:Object.keys(e).filter((n=>e[n])).join(" "))}}if("function"==typeof e)return e(null===n?{}:n,r,f);const d=u(e,null);return d.o=n,r.length>0&&(d.i=r),d.u=o,d},u=(e,n)=>({v:0,p:e,l:n,m:null,i:null,o:null,u:null}),a={},f={forEach:(e,n)=>e.map(d).forEach(n),map:(e,n)=>e.map(d).map(n).map(v)},d=e=>({vattrs:e.o,vchildren:e.i,vkey:e.u,vname:e.h,vtag:e.p,vtext:e.l}),v=e=>{if("function"==typeof e.vtag){const n=Object.assign({},e.vattrs);return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),r(e.vtag,n,...e.vchildren||[])}const n=u(e.vtag,e.vtext);return n.o=e.vattrs,n.i=e.vchildren,n.u=e.vkey,n.h=e.vname,n},y=e=>J(e).$hostElement$,p=(e,n,t)=>{const l=y(e);return{emit:e=>m(l,n,{bubbles:!!(4&t),composed:!!(2&t),cancelable:!!(1&t),detail:e})}},m=(e,n,t)=>{const l=oe.ce(n,t);return e.dispatchEvent(l),l},h=new WeakMap,$=e=>"sc-"+e.$,b=(e,n,t,l,o,s)=>{if(t!==l){let c=X(e,n),r=n.toLowerCase();if("class"===n){const n=e.classList,o=g(t),s=g(l);n.remove(...o.filter((e=>e&&!s.includes(e)))),n.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===n){for(const n in t)l&&null!=l[n]||(n.includes("-")?e.style.removeProperty(n):e.style[n]="");for(const n in l)t&&l[n]===t[n]||(n.includes("-")?e.style.setProperty(n,l[n]):e.style[n]=l[n])}else if("key"===n);else if("ref"===n)l&&l(e);else if(c||"o"!==n[0]||"n"!==n[1]){const r=i(l);if((c||r&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[n]=l;else{const o=null==l?"":l;"list"===n?c=!1:null!=t&&e[n]==o||(e[n]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(n)||e.removeAttribute(n):(!c||4&s||o)&&!r&&e.setAttribute(n,l=!0===l?"":l)}else if(n="-"===n[2]?n.slice(3):X(te,r)?r.slice(2):r[2]+n.slice(3),t||l){const o=n.endsWith(S);n=n.replace(j,""),t&&oe.rel(e,n,t,o),l&&oe.ael(e,n,l,o)}}},w=/\s/,g=e=>e?e.split(w):[],S="Capture",j=RegExp(S+"$"),k=(e,n,t,l)=>{const o=11===n.m.nodeType&&n.m.host?n.m.host:n.m,i=e&&e.o||s,c=n.o||s;for(l in i)l in c||b(o,l,i[l],void 0,t,n.v);for(l in c)b(o,l,i[l],c[l],t,n.v)},O=(t,l,o)=>{const s=l.i[o];let i,c,r=0;if(null!==s.l)i=s.m=le.createTextNode(s.l);else if(i=s.m=le.createElement(s.p),k(null,s,!1),null!=e&&i["s-si"]!==e&&i.classList.add(i["s-si"]=e),s.i)for(r=0;r<s.i.length;++r)c=O(t,s,r),c&&i.appendChild(c);return i["s-hn"]=n,i},C=(e,t,l,o,s,i)=>{let c,r=e;for(r.shadowRoot&&r.tagName===n&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=O(null,l,s),c&&(o[s].m=c,r.insertBefore(c,t)))},M=(e,n,t)=>{for(let l=n;l<=t;++l){const n=e[l];if(n){const e=n.m;E(n),e&&e.remove()}}},P=(e,n)=>e.p===n.p&&e.u===n.u,x=(e,n)=>{const t=n.m=e.m,l=e.i,o=n.i,s=n.l;null===s?(k(e,n,!1),null!==l&&null!==o?((e,n,t,l)=>{let o,s,i=0,c=0,r=0,u=0,a=n.length-1,f=n[0],d=n[a],v=l.length-1,y=l[0],p=l[v];for(;i<=a&&c<=v;)if(null==f)f=n[++i];else if(null==d)d=n[--a];else if(null==y)y=l[++c];else if(null==p)p=l[--v];else if(P(f,y))x(f,y),f=n[++i],y=l[++c];else if(P(d,p))x(d,p),d=n[--a],p=l[--v];else if(P(f,p))x(f,p),e.insertBefore(f.m,d.m.nextSibling),f=n[++i],p=l[--v];else if(P(d,y))x(d,y),e.insertBefore(d.m,f.m),d=n[--a],y=l[++c];else{for(r=-1,u=i;u<=a;++u)if(n[u]&&null!==n[u].u&&n[u].u===y.u){r=u;break}r>=0?(s=n[r],s.p!==y.p?o=O(n&&n[c],t,r):(x(s,y),n[r]=void 0,o=s.m),y=l[++c]):(o=O(n&&n[c],t,c),y=l[++c]),o&&f.m.parentNode.insertBefore(o,f.m)}i>a?C(e,null==l[v+1]?null:l[v+1].m,t,l,c,v):c>v&&M(n,i,a)})(t,l,n,o):null!==o?(null!==e.l&&(t.textContent=""),C(t,null,n,o,0,o.length-1)):null!==l&&M(l,0,l.length-1)):e.l!==s&&(t.data=s)},E=e=>{e.o&&e.o.ref&&e.o.ref(null),e.i&&e.i.map(E)},L=(e,n)=>{n&&!e.S&&n["s-p"]&&n["s-p"].push(new Promise((n=>e.S=n)))},R=(e,n)=>{if(e.v|=16,!(4&e.v))return L(e,e.j),ve((()=>A(e,n)));e.v|=512},A=(e,n)=>{const t=e.k;let l;return n&&(l=q(t,"componentWillLoad")),F(l,(()=>T(e,t,n)))},F=(e,n)=>N(e)?e.then(n):n(),N=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,T=async(e,n,t)=>{var l;const s=e.$hostElement$,i=s["s-rc"];t&&(e=>{const n=e.O,t=e.$hostElement$,l=n.v,s=((e,n)=>{var t;const l=$(n),s=ne.get(l);if(e=11===e.nodeType?e:le,s)if("string"==typeof s){let i,r=h.get(e=e.head||e);if(r||h.set(e,r=new Set),!r.has(l)){{i=le.createElement("style"),i.innerHTML=s;const n=null!==(t=oe.C)&&void 0!==t?t:c(le);null!=n&&i.setAttribute("nonce",n),e.insertBefore(i,e.querySelector("link"))}4&n.v&&(i.innerHTML+=o),r&&r.add(l)}}else e.adoptedStyleSheets.includes(s)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]);return l})(t.shadowRoot?t.shadowRoot:t.getRootNode(),n);10&l&&(t["s-sc"]=s,t.classList.add(s+"-h"))})(e);U(e,n,s,t),i&&(i.map((e=>e())),s["s-rc"]=void 0);{const n=null!==(l=s["s-p"])&&void 0!==l?l:[],t=()=>W(e);0===n.length?t():(Promise.all(n).then(t),e.v|=4,n.length=0)}},U=(t,l,o,s)=>{try{l=l.render(),t.v&=-17,t.v|=2,((t,l,o=!1)=>{const s=t.$hostElement$,i=t.M||u(null,null),c=(e=>e&&e.p===a)(l)?l:r(null,null,l);if(n=s.tagName,o&&c.o)for(const e of Object.keys(c.o))s.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(c.o[e]=s[e]);c.p=null,c.v|=4,t.M=c,c.m=i.m=s.shadowRoot||s,e=s["s-sc"],x(i,c)})(t,l,s)}catch(e){Y(e,t.$hostElement$)}return null},W=e=>{const n=e.$hostElement$,t=e.k,l=e.j;64&e.v||(e.v|=64,D(n),q(t,"componentDidLoad"),e.P(n),l||H()),e.L(n),e.S&&(e.S(),e.S=void 0),512&e.v&&de((()=>R(e,!1))),e.v&=-517},H=()=>{D(le.documentElement),de((()=>m(te,"appload",{detail:{namespace:"arcgis-common-components"}})))},q=(e,n,t)=>{if(e&&e[n])try{return e[n](t)}catch(e){Y(e)}},D=e=>e.setAttribute("hydrated",""),V=(e,n,t)=>{var l;const o=e.prototype;if(n.R){const s=Object.entries(n.R);if(s.map((([e,[l]])=>{31&l||2&t&&32&l?Object.defineProperty(o,e,{get(){return((e,n)=>J(this).A.get(n))(0,e)},set(t){((e,n,t,l)=>{const o=J(e),s=o.A.get(n),c=o.v,r=o.k;t=((e,n)=>null==e||i(e)?e:4&n?"false"!==e&&(""===e||!!e):2&n?parseFloat(e):1&n?e+"":e)(t,l.R[n][0]),8&c&&void 0!==s||t===s||Number.isNaN(s)&&Number.isNaN(t)||(o.A.set(n,t),r&&2==(18&c)&&R(o,!1))})(this,e,t,n)},configurable:!0,enumerable:!0}):1&t&&64&l&&Object.defineProperty(o,e,{value(...n){var t;const l=J(this);return null===(t=null==l?void 0:l.F)||void 0===t?void 0:t.then((()=>{var t;return null===(t=l.k)||void 0===t?void 0:t[e](...n)}))}})})),1&t){const t=new Map;o.attributeChangedCallback=function(e,l,s){oe.jmp((()=>{var i;const c=t.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(o.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const t=J(this),o=null==t?void 0:t.v;if(o&&!(8&o)&&128&o&&s!==l){const o=t.k,c=null===(i=n.N)||void 0===i?void 0:i[e];null==c||c.forEach((n=>{null!=o[n]&&o[n].call(o,s,l,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!==(l=n.N)&&void 0!==l?l:{}),...s.filter((([e,n])=>15&n[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))]))}}return e},_=e=>{q(e,"disconnectedCallback")},z=(e,n={})=>{var t;const l=[],s=n.exclude||[],i=te.customElements,r=le.head,u=r.querySelector("meta[charset]"),a=le.createElement("style"),f=[];let d,v=!0;Object.assign(oe,n),oe.t=new URL(n.resourcesUrl||"./",le.baseURI).href;let y=!1;if(e.map((e=>{e[1].map((n=>{const t={v:n[0],$:n[1],R:n[2],T:n[3]};4&t.v&&(y=!0),t.R=n[2];const o=t.$,c=class extends HTMLElement{constructor(e){super(e),Q(e=this,t),1&t.v&&e.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),v?f.push(this):oe.jmp((()=>(e=>{if(0==(1&oe.v)){const n=J(e),t=n.O,l=()=>{};if(1&n.v)(null==n?void 0:n.k)||(null==n?void 0:n.U)&&n.U.then((()=>{}));else{n.v|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){L(n,n.j=t);break}}t.R&&Object.entries(t.R).map((([n,[t]])=>{if(31&t&&e.hasOwnProperty(n)){const t=e[n];delete e[n],e[n]=t}})),(async(e,n,t)=>{let l;if(0==(32&n.v)){n.v|=32;{if(l=ee(t),l.then){const e=()=>{};l=await l,e()}l.isProxied||(V(l,t,2),l.isProxied=!0);const e=()=>{};n.v|=8;try{new l(n)}catch(e){Y(e)}n.v&=-9,e()}if(l.style){let e=l.style;const n=$(t);if(!ne.has(n)){const l=()=>{};((e,n,t)=>{let l=ne.get(e);ie&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,ne.set(e,l)})(n,e,!!(1&t.v)),l()}}}const o=n.j,s=()=>R(n,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()})(0,n,t)}l()}})(this)))}disconnectedCallback(){oe.jmp((()=>(async()=>{if(0==(1&oe.v)){const e=J(this);(null==e?void 0:e.k)?_(e.k):(null==e?void 0:e.U)&&e.U.then((()=>_(e.k)))}})()))}componentOnReady(){return J(this).U}};t.W=e[0],s.includes(o)||i.get(o)||(l.push(o),i.define(o,V(c,t,1)))}))})),y&&(a.innerHTML+=o),a.innerHTML+=l+"{visibility:hidden}[hydrated]{visibility:inherit}",a.innerHTML.length){a.setAttribute("data-styles","");const e=null!==(t=oe.C)&&void 0!==t?t:c(le);null!=e&&a.setAttribute("nonce",e),r.insertBefore(a,u?u.nextSibling:r.firstChild)}v=!1,f.length?f.map((e=>e.connectedCallback())):oe.jmp((()=>d=setTimeout(H,30)))},B=(e,n)=>n,G=e=>oe.C=e,I=new WeakMap,J=e=>I.get(e),K=(e,n)=>I.set(n.k=e,n),Q=(e,n)=>{const t={v:0,$hostElement$:e,O:n,A:new Map};return t.F=new Promise((e=>t.L=e)),t.U=new Promise((e=>t.P=e)),e["s-p"]=[],e["s-rc"]=[],I.set(e,t)},X=(e,n)=>n in e,Y=(e,n)=>(0,console.error)(e,n),Z=new Map,ee=e=>{const n=e.$.replace(/-/g,"_"),t=e.W,l=Z.get(t);return l?l[n]:import(`./${t}.entry.js`).then((e=>(Z.set(t,e),e[n])),Y)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},ne=new Map,te="undefined"!=typeof window?window:{},le=te.document||{head:{}},oe={v:0,t:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,n,t,l)=>e.addEventListener(n,t,l),rel:(e,n,t,l)=>e.removeEventListener(n,t,l),ce:(e,n)=>new CustomEvent(e,n)},se=e=>Promise.resolve(e),ie=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),ce=[],re=[],ue=(e,n)=>l=>{e.push(l),t||(t=!0,n&&4&oe.v?de(fe):oe.raf(fe))},ae=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(e){Y(e)}e.length=0},fe=()=>{ae(ce),ae(re),(t=ce.length>0)&&oe.raf(fe)},de=e=>se().then(e),ve=ue(re,!0);export{B as F,a as H,y as a,z as b,p as c,l as g,r as h,se as p,K as r,G as s}
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-ab5f2576.js');
5
+ const index = require('./index-e0422bc8.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Browser v4.7.1 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Browser v4.8.2 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
  const patchBrowser = () => {
11
11
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('arcgis-common-components.cjs.js', document.baseURI).href));
@@ -17,7 +17,7 @@ const patchBrowser = () => {
17
17
  };
18
18
 
19
19
  patchBrowser().then(options => {
20
- return index.bootstrapLazy([["arcgis-field-pick-list.cjs",[[1,"arcgis-field-pick-list",{"selectedFields":[1040],"fields":[16],"popoverProps":[16],"layer":[16],"mapView":[16],"showFieldInfo":[4,"show-field-info"],"showFieldName":[4,"show-field-name"],"showDescription":[4,"show-description"],"showSelectionAll":[4,"show-selection-all"],"showCancel":[4,"show-cancel"],"showSort":[4,"show-sort"],"showFilterLength":[2,"show-filter-length"],"multiple":[4],"heading":[1],"okBtnText":[1,"ok-btn-text"],"filterPlaceholderText":[1,"filter-placeholder-text"],"sortBy":[1,"sort-by"],"lastSortyBy":[32],"filterFields":[32],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"setFocus":[64],"reposition":[64]}]]],["arcgis-api-key.cjs",[[0,"arcgis-api-key",{"apiKey":[1,"api-key"]},null,{"apiKey":["apiKeyWatcher"]}]]],["arcgis-identity.cjs",[[0,"arcgis-identity",{"identity":[1040],"appId":[1,"app-id"],"credential":[1040],"expiration":[1026],"locale":[1],"usePopup":[4,"use-popup"],"popupCallbackUrl":[1,"popup-callback-url"],"portalUrl":[1,"portal-url"],"preserveUrlHash":[4,"preserve-url-hash"],"signIn":[64],"signOut":[64]},null,{"appId":["appIdWatcher"]}]]],["arcgis-field-info.cjs",[[1,"arcgis-field-info",{"view":[16],"layer":[16],"fieldName":[1,"field-name"],"hideStatistics":[4,"hide-statistics"],"oneFeatureResponse":[32],"oneFeatureResponseStatus":[32],"statistics":[32],"statisticsStatus":[32],"uniqueValues":[32],"uniqueValuesStatus":[32],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32]}]]]], options);
20
+ return index.bootstrapLazy([["arcgis-field-info.cjs",[[1,"arcgis-field-info",{"view":[16],"layer":[16],"fieldName":[1,"field-name"],"hideStatistics":[4,"hide-statistics"],"oneFeatureResponse":[32],"oneFeatureResponseStatus":[32],"statistics":[32],"statisticsStatus":[32],"uniqueValues":[32],"uniqueValuesStatus":[32],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32]}]]],["arcgis-field-pick-list.cjs",[[1,"arcgis-field-pick-list",{"selectedFields":[1040],"fields":[16],"popoverProps":[16],"layer":[16],"mapView":[16],"showFieldInfo":[4,"show-field-info"],"showFieldName":[4,"show-field-name"],"showDescription":[4,"show-description"],"showSelectionAll":[4,"show-selection-all"],"showCancel":[4,"show-cancel"],"showSort":[4,"show-sort"],"showFilterLength":[2,"show-filter-length"],"multiple":[4],"heading":[1],"okBtnText":[1,"ok-btn-text"],"filterPlaceholderText":[1,"filter-placeholder-text"],"sortBy":[1,"sort-by"],"lastSortyBy":[32],"filterFields":[32],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"setFocus":[64],"reposition":[64]}]]]], options);
21
21
  });
22
22
 
23
23
  exports.setNonce = index.setNonce;