@arcgis/common-components 5.2.0-next.0 → 5.2.0-next.10

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.
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{a as ae}from"./NKMDS2IH.js";import{a as te,b as re}from"./SKYXMBD4.js";import{a as V,b as J,d as Q}from"./F45Q3BRT.js";import{a as ee}from"./YG4PY2H3.js";import{A as S,B as Z,C as $,D as z,E,H as X,g as W,i as x,o as q,p as Y,q as P,s as G,t as O,z as A}from"./OOBX2C2L.js";export default $arcgis.t(([{on:Je,watch:ne},{createObservable:ve,trackAccess:be},{property:at,subclass:nt},st,we,{property:C,subclass:De},{watch:N}])=>{var ie=(a,e)=>t=>_e(t,a),H=class extends G{constructor(e,t){super(e),this.Y=new Map,this.A=void 0,this.#r=ve();let r=this;r.#e=t,r.Z(),r.setProvisionalExports(xe(e,new WeakRef(r),e.M.length-1,r.instance,r.Y),!1),q(e,i=>{if(i){let n=ne(()=>e[i],o=>{if(o===r.instance)return;let s=r.instance;r.exports=o,r.instance=o,r.Y.forEach((l,c)=>e.requestUpdate(l,s[c])),r.#t&&s.destroy(),r.#t=!1},{sync:!0});r.onDestroy(n.remove)}},r.exports)}#t;#r;#e;get exports(){return be(this.#r),super.exports}set exports(e){super.exports=e,this.#r.notify()}Z(){let e=this;e.instance="prototype"in e.#e&&"declaredClass"in e.#e.prototype?new e.#e:e.#e(),e.#t=!0}hostConnected(){this.exports=this.instance}hostDestroy(){this.#t&&this.instance.destroy?.()}},_e=te(H),xe=(a,e,t,r,i)=>new Proxy(r,{get:(n,o)=>{let s=n[o];if(typeof o=="symbol"||i.has(o))return s;let l=a.M[t];return l.A=o,Y(a,c=>{if(l.A=void 0,c!==void 0){let d=c.key;i.set(o,d);let h=a.constructor.getPropertyOptions(d),u=o!==d&&d.toLowerCase().includes("disable");ye(e,h,o,d,u),h.i===void 0&&ke(h,t,o,u)}},s)}}),ye=(a,e,t,r,i,n)=>n=ne(()=>{let o=a.deref();return o===void 0||o.component.manager.destroyed?n=n.remove():o.exports[t]},(o,s)=>{if(!n)return;a.deref().component?.requestUpdate(r,i?!s:s),e.c=!1},{sync:!0}),ke=(a,e,t,r)=>{a.d.get=function(){let i=this.M[e]?.exports[t];return r?!i:i},a.d.set=function(i){let n=this.M[e];n.A!==t&&(n.exports[t]=r?!i:i)}};function*se(a,e){if(a!==void 0){let t=0;for(let r of a)yield e(r,t++)}}var v={increment:"ArrowUp",incrementHorizontal:"ArrowRight",decrement:"ArrowDown",decrementHorizontal:"ArrowLeft",pageIncrement:"PageUp",pageDecrement:"PageDown",jumpToStart:"Home",jumpToEnd:"End",confirmEdit:"Enter"};function oe({key:a,shiftKey:e},t,r){let i=Ee(a);if(i==null)return null;let n=Pe(a)||Ce(a)&&e?$e(t):1;return{direction:r?i*-1:i,count:n}}function Ee(a){return a===v.increment||a===v.incrementHorizontal||a===v.pageIncrement?1:a===v.decrement||a===v.decrementHorizontal||a===v.pageDecrement?-1:null}function le(a){return a===v.jumpToEnd||a===v.jumpToStart}function Ce(a){return a===v.increment||a===v.decrement||a===v.decrementHorizontal||a===v.incrementHorizontal}function Pe(a){return a===v.pageIncrement||a===v.pageDecrement}function $e(a){let e=Number.isFinite(a)?Math.floor(a):1;return Math.max(1,e)}var Me=W`:host{display:flex;width:100%;height:100%;font-family:Avenir Next,Helvetica Neue,helvetica,arial,sans-serif;font-size:var(--calcite-font-size--2);font-variant-numeric:tabular-nums;--arcgis-slider-dash-length: 5px;--arcgis-slider-handle-size: .875rem;--arcgis-slider-track-background-color: var(--calcite-color-border-2);--arcgis-slider-internal-show-range-labels: 0;--arcgis-slider-internal-show-value-labels: 0;--arcgis-slider-internal-value-labels-placement-start: 0;--arcgis-slider-internal-value-labels-placement-end: 0;--arcgis-slider-internal-range-labels-placement-center: 0;--arcgis-slider-internal-range-labels-placement-end: 0;--arcgis-slider-internal-handle-offset: calc(var(--arcgis-slider-handle-size) / 2);--arcgis-slider-internal-label-input-margin: calc(var(--arcgis-slider-internal-handle-offset) + 4px);--arcgis-slider-internal-label-input-height: var(--calcite-input-number-height, 1.5rem);--arcgis-slider-internal-track-size: 2px}:host([show-range-labels]){--arcgis-slider-internal-show-range-labels: 1}:host(:not([value-labels-display="hidden"])){--arcgis-slider-internal-show-value-labels: 1}:host([value-labels-placement="start"]){--arcgis-slider-internal-value-labels-placement-start: var(--arcgis-slider-internal-show-value-labels)}:host([value-labels-placement="end"]){--arcgis-slider-internal-value-labels-placement-end: var(--arcgis-slider-internal-show-value-labels)}:host([range-labels-placement="center"]){--arcgis-slider-internal-range-labels-placement-center: var(--arcgis-slider-internal-show-range-labels)}:host([range-labels-placement="end"]){--arcgis-slider-internal-range-labels-placement-end: var(--arcgis-slider-internal-show-range-labels)}:host([disabled]){cursor:default;opacity:var(--calcite-opacity-disabled);pointer-events:none}.content{direction:ltr;flex:1;touch-action:none;user-select:none;display:grid;word-wrap:normal;word-break:normal;padding-block:var(--arcgis-slider-internal-handle-offset)}.track-container{grid-area:track-container;position:relative;display:flex;justify-content:center;align-items:center}.track{touch-action:none;position:relative}.track-bounds{background-color:var(--calcite-color-border-2)}:host([layout="vertical"]){.track-effective-start{background:repeating-linear-gradient(to bottom,var(--arcgis-slider-track-background-color) 0 var(--arcgis-slider-dash-length),color-mix(in srgb,transparent 75%,var(--arcgis-slider-track-background-color) 25%) var(--arcgis-slider-dash-length) calc(var(--arcgis-slider-dash-length) * 2))}.track-effective-end{background:repeating-linear-gradient(to top,var(--arcgis-slider-track-background-color) 0 var(--arcgis-slider-dash-length),color-mix(in srgb,transparent 75%,var(--arcgis-slider-track-background-color) 25%) var(--arcgis-slider-dash-length) calc(var(--arcgis-slider-dash-length) * 2))}}:host([layout="horizontal"]){.track-effective-start{background:repeating-linear-gradient(to right,var(--arcgis-slider-track-background-color) 0 var(--arcgis-slider-dash-length),color-mix(in srgb,transparent 75%,var(--arcgis-slider-track-background-color) 25%) var(--arcgis-slider-dash-length) calc(var(--arcgis-slider-dash-length) * 2))}.track-effective-end{background:repeating-linear-gradient(to left,var(--arcgis-slider-track-background-color) 0 var(--arcgis-slider-dash-length),color-mix(in srgb,transparent 75%,var(--arcgis-slider-track-background-color) 25%) var(--arcgis-slider-dash-length) calc(var(--arcgis-slider-dash-length) * 2))}}.track-range{background-color:var(--calcite-color-brand);&.active{box-shadow:0 0 8px #00000029;outline:1px solid var(--calcite-color-focus, var(--calcite-color-focus, var(--calcite-color-brand)))}}:host([disabled]) .track-range{background-color:var(--calcite-color-text-3)}:host([disabled]),:host([disabled][layout="horizontal"]),:host([disabled][layout="vertical"]){.track-range.interactive:after{cursor:default;pointer-events:none}}:host([layout="horizontal"]){.track-range.interactive:after{all:initial;cursor:ew-resize;position:absolute;inline-size:100%;content:"";inset-block-start:calc(-1 * var(--arcgis-slider-internal-handle-offset));block-size:var(--arcgis-slider-handle-size);margin-top:1px}}:host([layout="vertical"]){.track-range.interactive:after{all:initial;cursor:ns-resize;position:absolute;inline-size:100%;content:"";inset-block-start:calc(-1 * var(--arcgis-slider-internal-handle-offset));block-size:var(--arcgis-slider-handle-size);margin-left:1px;writing-mode:vertical-lr}}.segment{transform-origin:0 0;inset-block-start:0px;block-size:.125rem;position:absolute;top:0;left:0}.thumb{-webkit-user-select:none;user-select:none;background-color:#4c4c4c;position:absolute}.thumb:focus,.thumb.active{.handle{background-color:var(--calcite-color-brand);box-shadow:0 0 8px #00000029;outline:2px solid var(--calcite-color-focus, var(--calcite-color-focus, var(--calcite-color-brand)));outline-offset:calc(2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}}.handle{cursor:pointer;box-sizing:border-box;z-index:1;touch-action:none;background-color:var(--calcite-color-foreground-1);box-shadow:0 0 0 2px var(--calcite-color-text-3) inset;border-radius:var(--arcgis-slider-handle-size);width:var(--arcgis-slider-handle-size);height:var(--arcgis-slider-handle-size);transition:all var(--calcite-animation-timing, .125s) ease-in-out;position:absolute;top:calc(var(--arcgis-slider-internal-handle-offset) * -1);left:calc(var(--arcgis-slider-internal-handle-offset) * -1)}.handle:hover{box-shadow:0 0 0 3px var(--calcite-color-brand) inset}.label{position:absolute;will-change:transform}.min{grid-area:range-start}.max{grid-area:range-end}:host([layout="horizontal"][mirrored][range-labels-placement="center"]),:host([layout="vertical"]:not([mirrored])){.min{grid-area:range-end}.max{grid-area:range-start}}.content-start{grid-area:content-start;display:flex}.content-end{grid-area:content-end;display:flex}:host([layout="vertical"]){.content{grid-template:". range-start range-start range-start ." "content-start content-start track-container content-end content-end" ". range-end range-end range-end .";grid-template-rows:auto 1fr auto;grid-template-columns:1fr auto auto auto 1fr;row-gap:var(--arcgis-slider-internal-handle-offset)}.track-container{flex-direction:column}.track{flex:1;width:var(--arcgis-slider-internal-track-size)}.segment{writing-mode:vertical-lr}.label{top:calc(var(--arcgis-slider-internal-label-input-height) * -.5)}&:host([value-labels-placement="start"]){.label{right:var(--arcgis-slider-internal-label-input-margin)}}&:host([value-labels-placement="end"]){.label{left:var(--arcgis-slider-internal-label-input-margin)}}}:host([layout="horizontal"][range-labels-placement="center"]){.content{--arcgis-slider-internal-content-start-min-height: calc( ((1 - var(--arcgis-slider-internal-show-range-labels)) * var(--arcgis-slider-internal-handle-offset)) + (var(--arcgis-slider-internal-value-labels-placement-start) * var(--arcgis-slider-internal-label-input-height)) );--arcgis-slider-internal-content-end-min-height: calc( ((1 - var(--arcgis-slider-internal-show-range-labels)) * var(--arcgis-slider-internal-handle-offset)) + (var(--arcgis-slider-internal-value-labels-placement-end) * var(--arcgis-slider-internal-label-input-height)) );column-gap:calc(var(--arcgis-slider-internal-show-range-labels) * var(--arcgis-slider-internal-handle-offset) / 2);padding-inline:calc((1 - var(--arcgis-slider-internal-show-range-labels)) * var(--arcgis-slider-internal-handle-offset));grid-template:". content-start ." "range-start content-start range-end" "range-start track-container range-end" "range-start content-end range-end" ". content-end .";grid-template-columns:auto 1fr auto;grid-template-rows:minmax(var(--arcgis-slider-internal-content-start-min-height),auto) calc(var(--arcgis-slider-internal-show-range-labels) * calc(calc(var(--arcgis-slider-internal-label-input-height) / 2) - calc(var(--arcgis-slider-internal-track-size) / 2))) var(--arcgis-slider-internal-track-size) calc(var(--arcgis-slider-internal-show-range-labels) * calc(calc(var(--arcgis-slider-internal-label-input-height) / 2) - calc(var(--arcgis-slider-internal-track-size) / 2))) minmax(var(--arcgis-slider-internal-content-end-min-height),auto)}.track{flex:1;height:var(--arcgis-slider-internal-track-size)}&:host([value-labels-placement="start"]){.label{bottom:var(--arcgis-slider-internal-label-input-margin)}}&:host([value-labels-placement="end"]){.label{top:var(--arcgis-slider-internal-label-input-margin)}}}:host([layout="horizontal"][range-labels-placement="end"]){.content{--arcgis-slider-internal-content-start-min-height: calc( var(--arcgis-slider-internal-handle-offset) + var(--arcgis-slider-internal-value-labels-placement-start) * var(--arcgis-slider-internal-label-input-height) );--arcgis-slider-internal-content-end-min-height: calc( var(--arcgis-slider-internal-value-labels-placement-end) * var(--arcgis-slider-internal-label-input-height) );padding-inline:var(--arcgis-slider-internal-handle-offset);grid-template:"content-start content-start content-start" "track-container track-container track-container" "content-end content-end content-end" "content-end content-end content-end" "content-end content-end content-end";grid-template-columns:auto;grid-template-rows:minmax(var(--arcgis-slider-internal-content-start-min-height),auto) var(--arcgis-slider-internal-track-size) var(--arcgis-slider-internal-handle-offset) calc(var(--arcgis-slider-internal-range-labels-placement-end) * var(--arcgis-slider-internal-label-input-height)) minmax(var(--arcgis-slider-internal-content-end-min-height),auto);column-gap:var(--arcgis-slider-internal-handle-offset)}.track{flex:1;height:var(--arcgis-slider-internal-track-size)}&:host([value-labels-placement="start"]){.label{bottom:var(--arcgis-slider-internal-label-input-margin)}}&:host([value-labels-placement="end"]){.label{top:calc(var(--arcgis-slider-internal-label-input-margin) + var(--arcgis-slider-internal-range-labels-placement-end) * (var(--arcgis-slider-internal-label-input-height)))}}.min,.max{--arcgis-slider-internal-range-translation: calc(var(--arcgis-slider-internal-handle-offset) + .5rem + 1px);grid-area:unset;grid-row:-3}&:host(:not([mirrored])){.min{grid-column:1;transform:translate(calc(var(--arcgis-slider-internal-range-translation) * -1))}.max{grid-column:3;transform:translate(var(--arcgis-slider-internal-range-translation))}}&:host([mirrored]){.min{grid-column:3;transform:translate(var(--arcgis-slider-internal-range-translation))}.max{grid-column:1;transform:translate(calc(var(--arcgis-slider-internal-range-translation) * -1))}}}`,Ie=Object.defineProperty,Te=Object.getOwnPropertyDescriptor,ue=a=>{throw TypeError(a)},D=(a,e,t,r)=>{for(var i=r>1?void 0:r?Te(e,t):e,n=a.length-1,o;n>=0;n--)(o=a[n])&&(i=(r?o(e,t,i):o(i))||i);return r&&i&&Ie(e,t,i),i},ge=(a,e,t)=>e.has(a)||ue("Cannot "+t),Se=(a,e,t)=>(ge(a,e,"read from private field"),e.get(a)),ze=(a,e,t)=>e.has(a)?ue("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),Ve=(a,e,t,r)=>(ge(a,e,"write to private field"),e.set(a,t),t),R;function Fe(){return{min:0,max:100,values:[]}}var k=class extends we{constructor(a={}){super({...Fe(),properties:a}),this._entries=new Map,this.precision=4,this.ready=!1,ze(this,R)}startup(){let{precision:a}=this,{min:e,max:t,values:r}=this;t=y(t,a),e=y(e,a),r=r?.map(n=>I(y(n,a),e,t)).sort((n,o)=>n-o),this._set("min",e),this._set("max",t),this._set("values",r);let i=new Map(r?.map(n=>[O(),n]));this._entries=i,N(()=>this.min,n=>{let o=this.values;n!=null&&o?.length&&o.some(s=>s<n)&&(this._entries.forEach((s,l)=>{s<n&&this._entries.set(l,n)}),this._updatesValues())},{sync:!0}),N(()=>this.max,n=>{let o=this.values;n!=null&&o?.length&&o.some(s=>s>n)&&(this._entries.forEach((s,l)=>{s>n&&this._entries.set(l,n)}),this._updatesValues())},{sync:!0}),N(()=>this.precision,n=>{let{min:o,max:s,values:l}=this;this._set("min",y(o,n)),this._set("max",y(s,n)),l?.length&&(this._entries.forEach((c,d)=>{this._entries.set(d,y(c,n))}),this._updatesValues())},{sync:!0}),this._set("ready",!0)}get entries(){return this._entries}set max(a){if(!this.ready){this._set("max",a);return}let e=this._get("max"),t=y(a,this.precision);e!==t&&this._set("max",t)}set min(a){if(!this.ready){this._set("min",a);return}let e=this._get("min"),t=y(a,this.precision);e!==t&&this._set("min",t)}set values(a){if(Se(this,R)===a)return;if(Ve(this,R,a),!this.ready){this._set("values",a);return}let e=this._get("values");if(a=a?.map(r=>I(y(r,this.precision),this.min,this.max)).sort((r,i)=>r-i),e?.length===a?.length&&e.every((r,i)=>r===a[i]))return;let t=new Map(a?.map(r=>[O(),r]));this._entries=t,this._set("values",a)}getValue(a){return this._entries.get(a)}setValue(a,e){if(this.values==null)return!1;let{min:t,max:r}=this,i=this._entries.get(a),n=I(y(e,this.precision),t,r);return i===n?!1:(this._entries.set(a,n),this._updatesValues(),!0)}setValues(a){if(this.values==null)return!1;let e=!1,{min:t,max:r}=this;for(let[i,n]of a){let o=this._entries.get(i),s=I(y(n,this.precision),t,r);o!==s&&(e=!0,this._entries.set(i,s))}return e?(this._updatesValues(),!0):!1}_updatesValues(){let a=Array.from(this._entries.values()).sort((e,t)=>e-t);this._set("values",a)}};R=new WeakMap;D([C()],k.prototype,"_entries",2);D([C({readOnly:!0})],k.prototype,"entries",1);D([C()],k.prototype,"max",1);D([C()],k.prototype,"min",1);D([C({cast:a=>I(a,0,20)})],k.prototype,"precision",2);D([C({readOnly:!0})],k.prototype,"ready",2);D([C()],k.prototype,"values",1);k=D([De("esri.widgets.Slider.SliderData")],k);function I(a,e,t){return Math.min(Math.max(a,e),t)}function y(a,e){return Number.parseFloat(a.toFixed(e))}var B=class{constructor(e){this.steps=e,this.minIndex=0,this.maxIndex=this.steps.length-1}indexToValue(e){return this.steps[w(e,this.minIndex,this.maxIndex)]}valueToIndex(e){let t=this.steps.indexOf(e);return t!==-1?t:this.steps.reduce((r,i,n,o)=>Math.abs(i-e)<Math.abs(o[r]-e)?n:r,0)}getClosestStepDistances(e,t){if(t<=0)return[];let r=[];for(let i=this.minIndex;i<=this.maxIndex;i++){let n=this.indexToValue(i),o=Math.abs(n-e),s=!1;for(let l=0;l<r.length;l++)if(o<r[l].dist){r.splice(l,0,{idx:i,value:n,dist:o}),s=!0;break}!s&&r.length<t&&r.push({idx:i,value:n,dist:o}),r.length>t&&(r.length=t)}return r}},U=class{constructor(e,t,r){this.min=e,this.max=t,this.stepSize=r,this.minIndex=0,this.maxIndex=Math.round((this.max-this.min)/this.stepSize)}indexToValue(e){return this.min+w(e,this.minIndex,this.maxIndex)*this.stepSize}valueToIndex(e){return e=w(e,this.min,this.max),Math.round((e-this.min)/this.stepSize)}getClosestStepDistances(e,t){if(t<=0)return[];let r=[],i=this.minIndex,n=this.maxIndex,o=(w(e,this.min,this.max)-this.min)/this.stepSize,s=Math.floor(o),l=s+1;for(;r.length<t&&(s>=i||l<=n);){if(s<i){let p=this.indexToValue(l);r.push({idx:l,value:p,dist:Math.abs(p-e)}),l++;continue}if(l>n){let p=this.indexToValue(s);r.push({idx:s,value:p,dist:Math.abs(p-e)}),s--;continue}let c=this.indexToValue(s),d=this.indexToValue(l),h=Math.abs(c-e),u=Math.abs(d-e);h<=u?(r.push({idx:s,value:c,dist:h}),s--):(r.push({idx:l,value:d,dist:u}),l++)}return r}};function Le(a){if(a.steps==null)return null;let e=a.steps;return Array.isArray(e)?e.length===0?null:new B(e):e<=0?null:new U(a.min,a.max,e)}function Re(a,e,t){if(a==null){let s=new Map;for(let[l,c]of e.entries())s.set(l,c+t);return s}let r=e.size,i=Array.from(e.entries()).map(([s,l])=>{let c=l+t,d=a.getClosestStepDistances(c,r);return{uuid:s,stepDistances:d}}),n=new Set,o=new Map;i.sort((s,l)=>s.stepDistances[0].dist-l.stepDistances[0].dist);for(let s of i){let l=s.stepDistances.find(c=>!n.has(c.idx));l?(n.add(l.idx),o.set(s.uuid,l.value)):o.set(s.uuid,e.get(s.uuid))}return o}function ce(a,e,t,r,i){let n=e.get(t)??0;if(!a)return n+r;let o=n+r,s=a.minIndex,l=a.maxIndex,c=new Set;if(!i)for(let[g,f]of e.entries())g!==t&&c.add(a.valueToIndex(f));let d=w(a.valueToIndex(o),s,l);if(!c.has(d))return a.indexToValue(d);let h=null,u=1/0,p=Math.min(Math.max(d-s,l-d),c.size+1);for(let g=1;g<=p;g++){let f=d-g;if(f>=s&&!c.has(f)){let m=a.indexToValue(f),b=Math.abs(m-o);h=f,u=b}let _=d+g;if(_<=l&&!c.has(_)){let m=a.indexToValue(_),b=Math.abs(m-o);(h==null||b<u)&&(h=_,u=b)}if(h!=null)return a.indexToValue(h)}return h==null?n:a.indexToValue(h)}function Oe(a,e,t,r=1){let i=me(r),n=e,o=!1;for(let s=0;s<i;s++){let l=He(a,n,t);if(o||=l.changed,n=l.entries,!l.changed)break}return{changed:o,entries:n}}function Ae(a,e,t,r,i=1){let n=me(i);if(n===1)return j(a,e,t,r);let o=new Map(e),s=o.get(t);for(let l=0;l<n;l++){let c=j(a,o,t,r);if(c===s)break;s=c,o.set(t,s)}return s}function me(a){let e=Number.isFinite(a)?Math.floor(a):1;return Math.max(1,e)}function He(a,e,t){let r=new Map,i=t>0?Ue:pe,n=Array.from(e).sort((l,c)=>i(l[1],c[1])),o=!1,s=!0;for(let[l,c]of n)if(r.set(l,c),s){let d=j(a,r,l,t);c===d&&(s=!1),o||=s,r.set(l,d)}return{changed:o,entries:r}}function j(a,e,t,r){let{allowValuesOverlap:i,stepsProvider:n,resolution:o,min:s,max:l}=a,c=e.get(t);if(r=r>0?1:-1,!n){let m=w(c+r*o,s,l);if(i)return m;let b=new Set;for(let[T,fe]of e)T!==t&&b.add(fe);for(;b.has(m)&&m<=l&&m>=s;)m=w(m+r*o,s,l);return b.has(m)||m>l||m<s?c:m}let d=n.valueToIndex(c);if(d===-1)return c;if(i){let m=w(d+r,n.minIndex,n.maxIndex);return n.indexToValue(m)}let h=new Set;for(let[m,b]of e)m!==t&&h.add(n.valueToIndex(b));let u=d,p=!1,g=n.minIndex,f=n.maxIndex,_=0;for(;_<Math.abs(f-g)&&(u+=r,!(u<g||u>f));){if(!h.has(u)){p=!0;break}_++}return p?n.indexToValue(u):c}function Ne(a,e,t,r){let{allowValuesOverlap:i,stepsProvider:n,resolution:o,min:s,max:l}=a,c=e.get(t);if(r=r>0?1:-1,!n){let p=new Set(Array.from(e).filter(([f])=>f!==t).map(([,f])=>f)),g=r>0?l:s;if(i)return g;for(;p.has(g);)if(g-=r*o,r>0&&g>l||r<0&&g<s){g=c;break}return g}if(i)return r>0?n.indexToValue(n.maxIndex):n.indexToValue(n.minIndex);let d=n.valueToIndex(c);if(d===-1)return c;let h=new Set(Array.from(e).filter(([p])=>p!==t).map(([,p])=>n.valueToIndex(p))),u=r>0?n.maxIndex:n.minIndex;for(;h.has(u);)if(u-=r,r>0&&u>l||r<0&&u<s){u=d;break}return n.indexToValue(u)}function Be(a,e,t){let{stepsProvider:r,min:i,max:n}=a,o=new Map,s=Array.from(e).sort((c,d)=>pe(c[1],d[1]));if(r){let c=0;if(t>0){let d=s[s.length-1],h=r.valueToIndex(d[1]);c=r.maxIndex-h}else{let d=s[0],h=r.valueToIndex(d[1]);c=r.minIndex-h}if(c===0)for(let[d,h]of s)o.set(d,h);for(let[d,h]of s){let u=r.indexToValue(r.valueToIndex(h)+c);o.set(d,u)}return o}let l=0;if(t>0){let c=s[s.length-1];l=n-c[1]}else{let c=s[0];l=i-c[1]}for(let[c,d]of s)o.set(c,d+l);return o}function pe(a,e){return a-e}function Ue(a,e){return e-a}function w(a,e,t){return Math.max(e,Math.min(t,a))}var je=ie(k),K=class extends Z{constructor(){super(...arguments),this._stepsProvider=null,this._popoverElement=A(),this._trackElement=A(),this.messages=re({}),this._onPointerMoveDragUpdate=e=>{this._updateDrag(this._mapEventToRange(e))},this._onPointerUpDragEnd=e=>{F(e)&&this._endDrag()},this._onPointerCancelDragEnd=()=>{this._endDrag()},this._formatLabel=(e,t,r)=>{let i=ae(this.messages._lang,t),n=this.labelFormatter;return n?n(r,e,s=>i.format(s))??i.format(r):i.format(r)},this._numberFormatOptions={},this._createFormatter=(e,t)=>this._formatLabel.bind(this,e,t),this._minFormatter=this._createFormatter("min",this._numberFormatOptions),this._maxFormatter=this._createFormatter("max",this._numberFormatOptions),this._valueFormatter=this._createFormatter("value",this._numberFormatOptions),this._resizeObserver=new ResizeObserver(()=>{this._layoutLabelInputs()}),this._labelInputsUpdateComplete=null,this._dragInfo=null,this._hasPopoverContent=!1,this._hasContentStart=!1,this._hasContentEnd=!1,this._activePart=null,this._sliderData=je(this),this.allowValuesOverlap=!1,this.autoDestroyDisabled=!1,this.disabled=!1,this.fillPlacement="start",this.layout="horizontal",this.max=this._sliderData.max,this.min=this._sliderData.min,this.mirrored=!1,this.popoverLabel="",this.popoverPlacement="start",this.precision=this._sliderData.precision,this.rangeLabelsEditingEnabled=!1,this.rangeLabelsPlacement="center",this.segmentsDraggingDisabled=!1,this.showRangeLabels=!1,this.valueLabelsDisplay="hidden",this.valueLabelsPlacement="start",this.valueLabelsEditingEnabled=!1,this.keyboardLargeStep=10,this.values=this._sliderData.values,this.arcgisActiveValueChange=P({cancelable:!1}),this.arcgisChange=P({cancelable:!1}),this.arcgisInput=P({cancelable:!1}),this.arcgisRangeChange=P({cancelable:!1})}static{this.properties={_dragInfo:16,_hasPopoverContent:16,_hasContentStart:16,_hasContentEnd:16,_activePart:16,_sliderData:16,activeValue:32,allowValuesOverlap:5,autoDestroyDisabled:5,disabled:7,fullRangeMax:11,fullRangeMin:11,fillPlacement:1,labelFormatter:0,layout:3,max:11,min:11,mirrored:7,popoverLabel:1,popoverPlacement:3,precision:11,rangeLabelsEditingEnabled:5,rangeLabelsPlacement:3,segmentsDraggingDisabled:5,showRangeLabels:7,steps:[9,{converter:{fromAttribute(e){if(e.includes(","))return e.split(",").filter(r=>r.trim()!=="").map(parseFloat).filter(r=>Number.isFinite(r));let t=parseFloat(e);return Number.isFinite(t)?t:void 0}}}],valueLabelsDisplay:3,valueLabelsPlacement:3,valueLabelsEditingEnabled:5,keyboardLargeStep:9,values:[1,{converter:{fromAttribute(e){return e.includes(",")?e.split(",").filter(t=>t.trim()!=="").map(parseFloat).filter(t=>Number.isFinite(t)):[parseFloat(e)].filter(t=>Number.isFinite(t))}}}],messageOverrides:0}}static{this.styles=Me}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}get _fullMin(){return this.fullRangeMin??this.min}get _fullMax(){return this.fullRangeMax??this.max}get _fullRange(){return this._fullMax-this._fullMin}get isHorizontal(){return this.layout==="horizontal"}get _trackWidthOrHeight(){let e=this._trackElement.value?.getBoundingClientRect();return e?this.isHorizontal?e.width:e.height:0}get _disabledOrInvalid(){return this.disabled||this.values.length===0||this._invalid}get _invalid(){let e=this.fullRangeMin==null||this.fullRangeMax==null||this.fullRangeMin<this.fullRangeMax,t=this.fullRangeMin==null||this.fullRangeMin<=this.min,r=this.fullRangeMax==null||this.fullRangeMax>=this.max;return this.min>=this.max||!e||!t||!r}get resolution(){let e=(this._sliderData.max-this._sliderData.min)/this._trackWidthOrHeight;return Math.max(e,1/Math.pow(10,this.precision))}get activeValue(){if(this._activePart)return this._activePart==="range"?"all":this._sliderData.getValue(this._activePart)}async destroy(){await this.manager.destroy()}load(){this._sliderData.startup()}willUpdate(e){if((e.has("steps")||e.has("min")||e.has("max"))&&(this._stepsProvider=Le(this)),e.has("messages")||e.has("min")||e.has("max")||e.has("precision")||e.has("labelFormatter")){let t=this.max!=null&&this.min!=null&&this.max-this.min>10?2:this.precision;this._numberFormatOptions={maximumFractionDigits:t},this._minFormatter=this._createFormatter("min",this._numberFormatOptions),this._maxFormatter=this._createFormatter("max",this._numberFormatOptions),this._valueFormatter=this._createFormatter("value",this._numberFormatOptions)}}updated(e){this._layoutLabelInputs();let t=this._popoverElement.value;t&&(e.has("values")||e.has("min")||e.has("max"))&&t.reposition()}loaded(){this._resizeObserver.observe(this.el)}disconnectedCallback(){super.disconnectedCallback(),this._removeDragListeners()}_makeResizeRef(){let e=null;return t=>{t?(e=t,this._resizeObserver.observe(t)):e&&(this._resizeObserver.unobserve(e),e=null)}}async _layoutLabelInputs(){if(this.layout!=="horizontal"||!this._trackElement.value||this.valueLabelsDisplay==="hidden")return;let e=this.renderRoot.querySelectorAll("arcgis-label-input"),t=this.componentOnReady().then(()=>Promise.all(Array.from(e,n=>n.updateComplete)));if(this._labelInputsUpdateComplete=t,await t,t!==this._labelInputsUpdateComplete)return;this._labelInputsUpdateComplete=null;let r=this._trackElement.value;if(!r)return;let i=r.getBoundingClientRect();for(let n of this._sliderData.entries.keys()){let o=this._activePart==="range"||this._activePart===n;if(this.valueLabelsDisplay==="always"||o){let s=Ye(this,n),l=de(this,n);if(!s||!l)continue;let c=s.getBoundingClientRect(),d=l.getBoundingClientRect(),h=l.getLabelBoundingClientRect(),u=c.width/2,p=Math.round(c.left+u),g=Math.round(h.width/2),f=d.width/2,_=i.left-u,m=i.right+u,b=p-g,T=p+g;b<_?f+=b-_:T>m&&(f+=T-m),l.style.transform=`translateX(${-Math.round(f)}px)`}}}_onTrackFocus(){this._setActivePart("range")}_onTrackBlur(){this._setActivePart(null)}_onTrackRangePointerDown(e){this._disabledOrInvalid||!F(e)||(e.preventDefault(),e.currentTarget.focus(),this._startDrag("range",this._mapEventToRange(e)))}async _onPointerDown(e){if(this._disabledOrInvalid||!F(e))return;let t=this.renderRoot.querySelector("arcgis-label-input[editing]");if(e.target===t)return;if(t){t.blur(),this._focusEntry(M(t));return}if(Ke(e.target)||this.values?.length>1)return;let r=this._mapEventToRange(e),[i,n]=this._sliderData.entries.entries().next().value,o=r*this._fullRange+this._fullMin-n,s=L(this._fullMin,this._fullMax,n)/100;this._startDrag(i,s);let l=ce(this._stepsProvider,this._sliderData.entries,i,o,this.allowValuesOverlap);this._setValue(i,l),this._focusEntry(i)}_onThumbPointerDown(e){let t=M(e.currentTarget);if(!F(e)||this._disabledOrInvalid||!t)return;let r=de(this,t);e.target===r&&r?.editing||(e.stopPropagation(),e.preventDefault(),this._focusEntry(t),this._startDrag(t,this._mapEventToRange(e)))}_endDrag(){if(this._disabledOrInvalid)return;this._removeDragListeners();let e=!1;if(this._dragInfo){let{entries:t}=this._dragInfo;for(let[r,i]of t)if(this._sliderData.getValue(r)!==i){e=!0;break}}this._dragInfo=null,e&&this.arcgisChange.emit()}_startDrag(e,t){if(this._disabledOrInvalid)return;let{min:r,max:i,values:n}=this,o=r,s=i;if(this._setActivePart(e),e==="range"){if(this.segmentsDraggingDisabled)return;o=r-n[0],s=i-n[n.length-1]}this._dragInfo={position:t,entries:new Map(this._sliderData.entries.entries()),minDiff:o,maxDiff:s},this._addDragListeners()}_updateDrag(e){if(!this._dragInfo||!this._activePart)return;let{_activePart:t,_dragInfo:{position:r,entries:i,minDiff:n,maxDiff:o}}=this;if(r===e)return;let s=(e-r)*this._fullRange;if(t==="range"){s=Math.min(o,Math.max(n,s));let l=Re(this._stepsProvider,i,s);this._setValues(l)}else{let l=ce(this._stepsProvider,i,t,s,this.allowValuesOverlap);this._setValue(t,l)}}_focusEntry(e){e&&qe(this,e)?.focus()}_addDragListeners(){document.addEventListener("pointerup",this._onPointerUpDragEnd),document.addEventListener("pointermove",this._onPointerMoveDragUpdate),document.addEventListener("pointercancel",this._onPointerCancelDragEnd)}_removeDragListeners(){document.removeEventListener("pointerup",this._onPointerUpDragEnd),document.removeEventListener("pointermove",this._onPointerMoveDragUpdate),document.removeEventListener("pointercancel",this._onPointerCancelDragEnd)}_setValues(e){this._sliderData.setValues(e)&&(this._dragInfo||this.arcgisChange.emit(),this.arcgisInput.emit())}_setValue(e,t){this._sliderData.setValue(e,t)&&(this._dragInfo||this.arcgisChange.emit(),this.arcgisInput.emit())}_onThumbFocus(e){let t=M(e.currentTarget);this._setActivePart(t)}_onThumbBlur(){this._setActivePart(null)}_onRangeInputChange(e){let t=e.currentTarget,r=t.value,i=t.dataset.type,n=!1;switch(e.stopPropagation(),i){case"min":{r<this.max?(this.min=r,n=!0):t.value=this.min;break}case"max":{r>this.min?(this.max=r,n=!0):t.value=this.max;break}}n&&this.arcgisRangeChange.emit()}_onValueInputChange(e){let t=e.currentTarget,r=M(t),i=t.value;r&&(e.stopPropagation(),this._setValue(r,i),t.value=this._sliderData.getValue(r))}_mapEventToRange(e){let t=this._trackElement.value?.getBoundingClientRect();if(!t)return 0;let r=this.isHorizontal?(e.clientX-t.left)/t.width:1-(e.clientY-t.top)/t.height;return this.mirrored?1-r:r}_getPositionStyleForElement(e){let t=L(this._fullMin,this._fullMax,e);return{[this.isHorizontal?this.mirrored?"right":"left":this.mirrored?"top":"bottom"]:`${t}%`}}_popoverSlotChange(e){this._hasPopoverContent=V(e)}_onContentStartSlotChange(e){this._hasContentStart=V(e)}_onContentEndSlotChange(e){this._hasContentEnd=V(e)}_onThumbKeyDown(e){let t=M(e.currentTarget);if(!t)return;let r=e.currentTarget.querySelector("arcgis-label-input");if(!r||r.editing)return;if(e.key===v.confirmEdit){r.edit();return}let i=oe(e,this.keyboardLargeStep,this.mirrored);if(i){e.preventDefault();let n=Ae(this._getStepsConfiguration(),this._sliderData.entries,t,i.direction,i.count);this._setValue(t,n);return}if(le(e.key)){e.preventDefault();let n=Ne(this._getStepsConfiguration(),this._sliderData.entries,t,this._getDirectionForHomeEndKey(e.key));this._setValue(t,n)}}_onTrackRangeKeyDown(e){if(this._disabledOrInvalid)return;let t=oe(e,this.keyboardLargeStep,this.mirrored);if(t){e.preventDefault();let{entries:r}=Oe(this._getStepsConfiguration(),this._sliderData.entries,t.direction,t.count);this._setValues(r);return}if(le(e.key)){e.preventDefault();let r=Be(this._getStepsConfiguration(),this._sliderData.entries,this._getDirectionForHomeEndKey(e.key));this._setValues(r)}}_getStepsConfiguration(){return{allowValuesOverlap:this.allowValuesOverlap,stepsProvider:this._stepsProvider,resolution:this.resolution,min:this.min,max:this.max}}_getDirectionForHomeEndKey(e){return this.isHorizontal&&this.mirrored||this.layout==="vertical"?e===v.jumpToEnd?-1:1:e===v.jumpToStart?-1:1}_setActivePart(e){this._activePart!==e&&(this._activePart=e,this.arcgisActiveValueChange.emit())}render(){return x`<div class=${$({content:!0,disabled:this._disabledOrInvalid})} @pointerdown=${this._onPointerDown}>${this._renderContentStart()}${this._renderContentEnd()}${this._renderRangeLabel("min")}${this._renderTrackRange()}${this._renderRangeLabel("max")}${this._renderPopover()}</div>`}_renderPopover(){let{_activePart:e,layout:t,popoverPlacement:r,valueLabelsPlacement:i,valueLabelsDisplay:n,popoverLabel:o}=this,s=e?We(e)?e:"track-range":"",l=this._hasPopoverContent&&!!s,c=t==="horizontal"?r==="start"?"top":"bottom":r==="start"?"left":"right",d=14;return n!=="hidden"&&r===i&&(d+=24),x`<calcite-popover focus-trap-disabled .label=${o} .open=${l} .offsetDistance=${d} .placement=${c} .referenceElement=${s} scale=s trigger-disabled ${S(this._popoverElement)}><slot name=popover @slotchange=${this._popoverSlotChange}></slot></calcite-popover>`}_renderContentStart(){return x`<div class="content-start" .hidden=${!this._hasContentStart}><slot name=content-start @slotchange=${this._onContentStartSlotChange}></slot></div>`}_renderContentEnd(){return x`<div class="content-end" .hidden=${!this._hasContentEnd}><slot name=content-end @slotchange=${this._onContentEndSlotChange}></slot></div>`}_renderTrackRange(){return x`<div class="track-container">${this._renderTrack()}${this._renderThumbs()}</div>`}_renderTrack(){return x`<div class="track" ${S(this._trackElement)}>${this._renderTrackBackground()}${this._renderFillSegment()}</div>`}_renderTrackBackground(){let{max:e,min:t,fillPlacement:r,values:i}=this,n=i.length>1,o=this._fullMin,s=this._fullMax,l=[];return this._invalid?x`<div class="segment track-bounds" style=${z({left:"0%",right:"0%",top:"0%",bottom:"0%"})}></div>`:(o<t&&(l.push(this._renderSegment(o,t,[this.mirrored?"track-effective-end":"track-effective-start",!n&&r==="start"?"track-fill":null])),o=t),s>e&&(l.push(this._renderSegment(e,s,[this.mirrored?"track-effective-start":"track-effective-end",!n&&r==="end"?"track-fill":null])),s=e),l.push(this._renderSegment(o,s,["track-bounds"])),l)}_renderFillSegment(){let{values:e,fillPlacement:t,min:r,max:i}=this;if(!e?.length||this._invalid)return;let n=[...e].sort((s,l)=>s-l);if(n.length===1)switch(t){case"start":if(r<n[0])return this._renderSegment(r,n[0],["track-range"]);break;case"end":if(i>n[0])return this._renderSegment(n[0],i,["track-range"]);break}let o=this.segmentsDraggingDisabled;return this._renderSegment(n[0],n[n.length-1],["track-range",o?null:"interactive",this._activePart==="range"?"active":null],{id:"track-range",onFocus:o?void 0:this._onTrackFocus,onBlur:o?void 0:this._onTrackBlur,onPointerDown:o?void 0:this._onTrackRangePointerDown,onKeyDown:o?void 0:this._onTrackRangeKeyDown})}_renderSegment(e,t,r,i){let{_fullMin:n,_fullMax:o,mirrored:s}=this,l=[L(n,o,he(e,n,o)),100-L(n,o,he(t,n,o))];s&&l.reverse();let c=this.isHorizontal?{left:`${l[0]}%`,right:`${l[1]}%`}:{top:`${l[1]}%`,bottom:`${l[0]}%`},d=J("segment",...r);return x`<div id=${i?.id??E} class=${$(d)} style=${z(c)} .tabIndex=${i?.onPointerDown?0:-1} @focus=${i?.onFocus} @blur=${i?.onBlur} @pointerdown=${i?.onPointerDown} @keydown=${i?.onKeyDown}></div>`}_renderThumbs(){let{_sliderData:e}=this,t=Array.from(e.entries).filter(([,r])=>r>=this._fullMin&&r<=this._fullMax);return se(t,([r,i])=>this._renderThumb(r,i))}_renderThumb(e,t){let{valueLabelsDisplay:r}=this,i=this._disabledOrInvalid,n=this._activePart===e||this._activePart==="range",o=this._activePart==="range"||this._activePart===e,s=r==="always"||r==="auto"&&o,l=this.isHorizontal,c=l?"horizontal":"vertical",d=`label-${e}`,h=l?"center":this.valueLabelsPlacement==="start"?"end":"start";return ee(e,x`<div id=${e??E} .ariaLabel=${this.messages.sliderValue} aria-labelledby=${(r?d:void 0)??E} .ariaOrientation=${c} .ariaValueMin=${this.min} .ariaValueMax=${this.max} .ariaValueNow=${t} .ariaValueText=${this._valueFormatter(t)} class=${$({thumb:!0,active:n})} data-entry=${e??E} @pointerdown=${this._onThumbPointerDown} @focus=${this._onThumbFocus} @blur=${this._onThumbBlur} @keydown=${this._onThumbKeyDown} role=slider style=${z({...this._getPositionStyleForElement(t),"z-index":this._activePart===e?1:0})} .tabIndex=${i?-1:0}><span class="handle"></span><arcgis-label-input .alignment=${h} class="label" .hidden=${!s} id=${d??E} .labelFormatter=${this._valueFormatter} @focus=${i?void 0:this._onThumbFocus} @blur=${i?void 0:this._onThumbBlur} @arcgisChange=${this._onValueInputChange} .readOnly=${!this.valueLabelsEditingEnabled} tabindex=-1 .value=${t} ${S(this._makeResizeRef())}></arcgis-label-input></div>`)}_renderRangeLabel(e){let t="center";return this.isHorizontal&&(t=e==="min"?"end":"start",this.rangeLabelsPlacement==="end"&&(t=t==="end"?"start":"end"),this.mirrored&&(t=t==="end"?"start":"end")),x`<arcgis-label-input .alignment=${t} class=${$(e)} data-type=${e??E} .hidden=${!this.showRangeLabels} .labelFormatter=${this[`_${e}Formatter`]} @arcgisChange=${this._onRangeInputChange} .readOnly=${!this.rangeLabelsEditingEnabled} .value=${this[e]}></arcgis-label-input>`}};function Ke(a){return"dataset"in a&&a.tagName==="ARCGIS-LABEL-INPUT"&&(a.dataset.type==="min"||a.dataset.type==="max")}function M(a){let e=Q(a,"[data-entry]");return e&&"dataset"in e?e.dataset.entry:null}function We(a){return typeof a!=null&&a!=="range"}function qe(a,e){return e?a.renderRoot.querySelector(`div[data-entry="${e}"]`):null}function Ye(a,e){return e?a.renderRoot.querySelector(`div[data-entry="${e}"] span.handle`):null}function de(a,e){return e?a.renderRoot.querySelector(`div[data-entry="${e}"] arcgis-label-input`):null}function F(a){return a.isPrimary&&a.button===0}var Ge=5;function L(a,e,t){let r=e-a,i=(t-a)/r*100;return Number.parseFloat(i.toFixed(Ge))}function he(a,e,t){return Math.max(e,Math.min(t,a))}X("arcgis-slider",K);return K},"core/reactiveUtils","applications/Components/reactiveUtils","core/accessorSupport/decorators","core/Accessor","core/Accessor","core/accessorSupport/decorators","core/reactiveUtils")
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{a as J,b as x,c as v,d as Q,e as w,f as y,g as j,h as N,i as k,j as F,k as z,l as B,m as E,n as $,o as S,p as R}from"./4BJYJUMR.js";import{a as H,b as p}from"./WJ3TYWP2.js";import{b as U}from"./SKYXMBD4.js";import"./F45Q3BRT.js";import{a as V}from"./YG4PY2H3.js";import{A as q,B as G,C as b,H as W,g as M,i as c,m as O,n as D,q as C}from"./OOBX2C2L.js";export default $arcgis.t(([Y,_,f,A,I,ee,te,ie])=>{function se(a){return a.associatedLayer?.url}var ae={dateStyle:"short",timeStyle:"short"},re={timeStyle:"medium"};function ne(a){let{layer:e,fieldName:t}=a,i,s=A.supportsFieldConfiguration(e),r;"popupTemplate"in e&&(r=e.popupTemplate);let n=r?r.fieldInfos:[];return X(a)?.filter(o=>o.name===t).forEach(o=>{let d=!s&&n?n.filter(m=>m.fieldName===o.name):void 0,u=s?e.getFieldAlias(t):d?.length?d[0].label:o.alias;/^raster.(item|service)pixelvalue/iu.test(t)&&(o.type="double");let l={layerField:o,label:u||o.name};l.codedValues=ue(t,a),de(l),l.simpleFieldType&&(i=l)}),i}function X(a){let{layer:e}=a;return y(e)||S(e)||w(e)&&e.rasterFields.length?e.rasterFields:e.fields}async function K(a){a.statisticsStatus="in-progress";let{layer:e,view:t}=a;if(y(e)||S(e)||F(e)||$(e))throw new Error("could not get feature count");try{return await me(e,t)}catch{return}}async function oe(a){let{layer:e,view:t,fieldName:i,fieldInfo:s}=a;if(y(e)||S(e)||$(e))throw new Error("could not get statistics for ImageryTileLayer/WCSLayer/VoxelLayer");if(!s||s.layerField.type==="oid"||s.layerField.type==="guid"||s.layerField.type==="global-id")return{totalCount:await K(a),nullcount:0};try{let r=await ee({layer:e,view:t,field:i,outStatisticTypes:{exclude:["median"]}});if(!p(r.count))throw new Error("could not get statistics");let n="sourceJSON"in e&&e.sourceJSON.maxRecordCount===r.count;if(p(r.nullcount)&&!n)return{...r,totalCount:r.count+r.nullcount};{let o=await K(a);return{...r,totalCount:o}}}catch{throw new Error("could not get statistics")}}async function le(a){let{layer:e,view:t,fieldName:i}=a;if(y(e)||S(e)||$(e))throw new Error("could not get unique values for ImageryLayer/ImageryTileLayer/WCSLayer/VoxelLayer");x(e)&&(e.outFields=["*"]);try{return await te({layer:e,view:t,field:i})}catch{throw new Error("could not get unique values")}}function de(a){switch(a.layerField.type){case"string":a.simpleFieldType="string";break;case"date":a.simpleFieldType="date";break;case"timestamp-offset":a.simpleFieldType="timestamp-offset";break;case"date-only":a.simpleFieldType="date-only";break;case"time-only":a.simpleFieldType="time-only";break;case"oid":a.simpleFieldType="oid";break;case"guid":case"global-id":a.simpleFieldType="guid";break;case"small-integer":case"big-integer":case"integer":case"single":case"double":case"long":a.simpleFieldType="number";break}}function ue(a,e){let{layer:t}=e;if(E(t)&&t.subtypeField===a){let d=t.parent?.subtypes?.find(u=>u.code===t.subtypeCode);if(d)return[{code:d.code,name:d.name}]}if(!v(t)&&!w(t))return;let i=v(t)?t.typeIdField:void 0,s=v(t)?t.types:void 0,r,n=X(e)?.find(d=>d.name===a),o=n?.domain;return v(t)&&i&&s?(i===a?r=s.map(d=>({code:d.id,name:d.name})):(r=[],s.forEach(d=>{if(!d.domains[a]||d.domains[a].type==="inherited"){let u=o;u?.codedValues&&u.codedValues.forEach(l=>{let m=!1;r.forEach(h=>{h.code===l.code&&(m=!0,`, ${h.name},`.includes(`, ${l.name},`)||(h.name+=`, ${l.name}`))}),m||r.push(I.clone(l))})}else d.domains[a].codedValues&&d.domains[a].codedValues.forEach(u=>{let l=!1;r.forEach(m=>{m.code===u.code&&(l=!0,`, ${m.name},`.includes(`, ${u.name},`)||(m.name+=`, ${u.name}`))}),l||r.push(I.clone(u))})})),!r.length&&o?.codedValues&&(r=I.clone(o.codedValues))):o?.codedValues&&(r=n.domain.codedValues),r?.length?r:void 0}async function ce(a){let{view:e,layer:t}=a;if(w(t)||y(t)||S(t))throw new Error("could not get feature");if(v(t)&&!t.url||R(t)){let i=t.createQuery();i.start=0,i.num=5,i.outFields=["*"];let s=await t.queryFeatures(i);if(s.features.length)return s;throw new Error("could not get feature")}else{if(!e)return await L(a);let i;if(E(t)||z(t)){let s=t.parent;for(;B(s)||j(s);)s=s.parent;i=await e.whenLayerView(s)}else i=await e.whenLayerView(t);if(i.availableFields.length===t.fields.length||(F(t)||N(t))&&i.availableFields.length>0){let s=i.createQuery();s.start=0,s.num=5,s.outFields=["*"];let r=await i.queryFeatures(s);return r.features?.length?r:await L(a)}else return await L(a)}}async function L(a){let{layer:e}=a;if(w(e)||y(e)||F(e)||N(e))throw new Error("cannot get feature from service");let t=new ie({where:"1=1",outFields:["*"],returnGeometry:!1});return"sourceJSON"in e&&e.sourceJSON?.advancedQueryCapabilities?.supportsPagination&&(t.num=1),await e.queryFeatures(t)}async function me(a,e){if(x(a))return await pe(a);if(v(a)||J(a)||k(a)||R(a)||Q(a))return await a.queryFeatureCount();if(e&&(F(a)||N(a)))return await fe(a,e)}async function pe(a){let e=a.createQuery();e.outFields=["*"];let t=await a.queryFeatures(e);if(t.features.length)return t.features.length;throw new Error("could not get feature count")}async function fe(a,e){return await(await e.whenLayerView(a)).queryFeatureCount()}var ge=M`:host{height:100%}.container{padding:var(--calcite-space-xs);background-color:var(--calcite-color-foreground-1)}.title{font-weight:700;padding:5px 0}.missing,.data{color:#a9a9a9}.count{white-space:nowrap}.section{padding:var(--calcite-space-xs) 0}.statistics-row{border-top:var(--calcite-border-width-sm) solid var(--calcite-color-border-2);padding:var(--calcite-space-xs) 0;display:flex;justify-content:space-between}.statistics-row-top-values{border-top:var(--calcite-border-width-sm) solid var(--calctie-color-border-2);padding:20px 0 var(--calcite-space-xs) 0;display:flex;justify-content:space-between}`,Z=class extends G{constructor(){super(...arguments),this._messages=U({blocking:!0}),this._propWatcherTask=new H(this,{task:async([e,t])=>{let i=p(e)&&p(t);if(p(e)||O("error",this,D("layer")),p(t)||O("error",this,D("fieldName")),!i)throw new Error;await this.processProps(),this._propWatcherTask.autoRun=!1},args:()=>[this.layer,this.fieldName]}),this.oneFeatureResponseStatus="missing",this.statisticsStatus="missing",this.uniqueValuesStatus="missing",this.hideAlias=!1,this.hideNumericFormat=!1,this.hideStatistics=!1,this.arcgisComplete=C(),this.arcgisFieldInfoComplete=C()}static{this.properties={oneFeatureResponseStatus:16,oneFeatureResponse:16,statisticsStatus:16,statistics:16,uniqueValuesStatus:16,uniqueValues:16,view:0,layer:0,fieldName:1,hideAlias:5,hideNumericFormat:5,hideStatistics:5}}static{this.styles=ge}async refresh(){await this.processProps(),this.requestUpdate()}disconnectedCallback(){super.disconnectedCallback(),this.timeZoneHandle?.remove()}async processProps(){let{view:e,layer:t,fieldName:i,hideStatistics:s}=this;if(!t||!i)return;let r;if(t.declaredClass==="esri.layers.support.Sublayer"){let n=t;e&&await _.whenOnce(()=>!e.updating),r=await n.createFeatureLayer(),await r?.load()}this.props={view:e,layer:r??t,fieldName:i,hideStatistics:s},this.props.fieldInfo=ne(this.props),k(t)&&Y.request.interceptors?.push({urls:`${se(t)}/${t.layerId}`,before(n){n.requestOptions.authMode="no-prompt"}}),this.oneFeatureResponseStatus="in-progress";try{let n=await ce(this.props);this.oneFeatureResponse=n,this.oneFeatureResponseStatus="success"}catch{this.oneFeatureResponseStatus="failed"}if(F(t)){this.uniqueValuesStatus="failed",this.statisticsStatus="failed";return}if(s)this.uniqueValuesStatus="failed";else{this.uniqueValuesStatus="in-progress";try{let n=await le(this.props);this.uniqueValues=n,n?.uniqueValueInfos?.length?this.uniqueValuesStatus="success":this.uniqueValuesStatus="failed"}catch{this.uniqueValuesStatus="failed"}}if(s)this.statisticsStatus="failed";else{this.statisticsStatus="in-progress";try{let n=await oe(this.props);if(!p(n.totalCount)&&p(n.count)&&this.uniqueValuesStatus==="success"){let o=this.uniqueValues?.uniqueValueInfos??[];for(let d=0;d<o.length;d++){let u=o[d];if(u.value===null){n.totalCount=u.count+n.count;break}}n.totalCount??=n.count}this.statistics=n,this.statisticsStatus="success"}catch{this.statisticsStatus="failed"}}this.setUpTimeZoneHandle()}setUpTimeZoneHandle(){this.timeZoneHandle?.remove();let{props:e}=this,{view:t,fieldInfo:i}=e;["date","timestamp-offset"].includes(this._getStatisticsType(i))&&(this.timeZoneHandle=_.watch(()=>t?.timeZone,()=>{this.requestUpdate()}))}_getFieldTypeLabel(e){let{_messages:t}=this,i=t.fieldTypes;switch(e){case"big-integer":return i.bigInteger;case"date":return i.date;case"date-only":return i.dateOnly;case"double":return i.double;case"global-id":return i.globalId;case"guid":return i.guid;case"integer":return i.integer;case"long":return i.long;case"oid":return i.oid;case"single":return i.single;case"small-integer":return i.smallInteger;case"string":return i.string;case"time-only":return i.timeOnly;case"timestamp-offset":return i.timestampOffset;default:return i.string}}_getStatisticsType(e){switch(e.layerField.type){case"big-integer":case"double":case"integer":case"single":case"small-integer":{if(e.codedValues)return"string";switch(e.layerField.valueType){case"url":case"binary":case"description":case"location-or-place-name":case"name-or-title":case"ordered-or-ranked":case"type-or-category":return"string";default:return"number"}}case"date":return"date";case"date-only":return"date-only";case"string":return"string";case"time-only":return"time-only";case"timestamp-offset":return"timestamp-offset";default:return"string"}}_getFieldValueTypeCamelCase(e){switch(e.layerField.valueType){case"count-or-amount":return"countOrAmount";case"date-and-time":return"dateAndTime";case"location-or-place-name":return"locationOrPlaceName";case"name-or-title":return"nameOrTitle";case"ordered-or-ranked":return"orderedOrRanked";case"percentage-or-ratio":return"percentageOrRatio";case"type-or-category":return"typeOrCategory";case"unique-identifier":return"uniqueIdentifier";case"phone-number":return"phoneNumber";case"email-address":return"emailAddress";default:return e.layerField.valueType??void 0}}_getDisplayString(e,t){let{props:i}=this,{fieldInfo:s}=i;switch(s.simpleFieldType){case"date":return this._getDateString(e,t);case"date-only":return this._getDateOnlyString(e,t);case"guid":return this._getGuidString(e);case"number":return this._getNumberString(e,t);case"time-only":return this._getTimeOnlyString(e,t);case"timestamp-offset":return this._getTimestampOffsetString(e,t);default:return`${e}`}}_getDateString(e,t){let{view:i}=this.props;return i&&i.timeZone==="unknown"?f.formatDate(e,{...this.getIntlDateTimeFormattingOptions("short-date-short-time",t),timeZone:"utc"}):f.formatDate(e,{...this.getIntlDateTimeFormattingOptions("short-date-short-time",t),timeZone:i?.timeZone||"system"})}_getTimestampOffsetString(e,t){let{view:i}=this.props;return typeof e=="string"?i&&i.timeZone==="unknown"?f.formatTimestamp(e,{...this.getIntlDateTimeFormattingOptions("short-date-short-time",t),timeZone:"utc"}):f.formatTimestamp(e,{...this.getIntlDateTimeFormattingOptions("short-date-short-time",t),timeZone:i?.timeZone||"system"}):this._getDateString(e,t)}_getDateOnlyString(e,t){return f.formatDateOnly(e,this.getIntlDateTimeFormattingOptions("short-date",t))}_getTimeOnlyString(e,t){return typeof e=="string"?f.formatTimeOnly(e,this.getIntlDateTimeFormattingOptions("short-date-long-time",t)):f.formatDate(e,{...this.getIntlDateTimeFormattingOptions("long-time",{...t,isTimeOnly:!0}),timeZone:"utc"})}_getGuidString(e){return e.startsWith("{")?e:`{${e}}`}_getNumberString(e,t){let i=t?.useFieldFormatting?e:Math.round(e*100)/100;return f.formatNumber(i,this.getIntlNumberFormattingOptions(t))}_printNumValue(e,t){return p(e)?this._getNumberString(e,t):"--"}_setCompleteRef(){this.arcgisComplete.emit(),this.arcgisFieldInfoComplete.emit()}getCurrentFieldFormat(){let{props:e}=this,{layer:t,fieldName:i}=e;return(this.originalLayerSupportsFieldConfigs()?t.getFieldConfiguration(i):void 0)?.fieldFormat??void 0}getIntlNumberFormattingOptions(e){let t=this.getCurrentFieldFormat();if(!e?.useFieldFormatting)return t?{useGrouping:["always","auto"].includes(t.useGrouping)}:f.convertNumberFormatToIntlOptions({digitSeparator:this.getPopupTemplateFieldInfo()?.format?.digitSeparator??!0});let i=t?{minimumFractionDigits:t.minimumFractionDigits,maximumFractionDigits:t.maximumFractionDigits,useGrouping:["always","auto"].includes(t.useGrouping)}:void 0;if(i)return i;let s=this.getPopupTemplateFieldInfo();return f.convertNumberFormatToIntlOptions({digitSeparator:s?.format?.digitSeparator??!0,places:s?.format?.places??2})}getIntlDateTimeFormattingOptions(e,t){let i=this.getCurrentFieldFormat();if(!t?.useFieldFormatting)return i?t?.isTimeOnly?re:ae:f.convertDateFormatToIntlOptions(e);let s=i?{dateStyle:t?.isTimeOnly?void 0:i.dateStyle??void 0,year:i.dateStyle?void 0:i.year??void 0,month:i.dateStyle?void 0:i.month??void 0,timeStyle:i.timeStyle??void 0,hourCycle:i.hour12==="never"?"h23":"h11"}:void 0;if(s)return s;let r=this.getPopupTemplateFieldInfo();return f.convertDateFormatToIntlOptions(r?.format?.dateFormat??e)}originalLayerSupportsFieldConfigs(){let{layer:e}=this;return A.supportsFieldConfiguration(e)}getPopupTemplateFieldInfo(){let{props:e}=this,{layer:t,fieldName:i}=e;return("popupTemplate"in t?t.popupTemplate:void 0)?.fieldInfos?.find(s=>s.fieldName===i)}render(){return this._propWatcherTask.render({complete:()=>{let{props:e}=this,{fieldInfo:t}=e;return t?c`<div class="container">${this.renderFieldType()}${this.renderFieldAlias()}${this.renderFieldDescription()}${this.renderFieldValueType()}${this.renderFieldSampleValue()}${this.renderFieldNumericFormat()}${this.renderFieldStatistics()}</div>`:""},error:()=>""})}renderFieldType(){let{_messages:e,props:t}=this,{fieldInfo:i}=t,s=this._getFieldTypeLabel(i.layerField.type);return c`<div class="section"><div class="title">${e.fieldType}</div><div>${s}</div></div>`}renderFieldAlias(){let{_messages:e,props:t,hideAlias:i}=this,{fieldInfo:s}=t;return i?"":c`<div class="section"><div class="title">${e.fieldAlias}</div><div>${s.label}</div></div>`}renderFieldDescription(){let{_messages:e,props:t}=this,{layer:i}=t;if(!v(i))return"";let{fieldInfo:s}=t,r=s.layerField.description;return c`<div class="section"><div class="title">${e.fieldDescription}</div><div class=${b({missing:!r})}>${r||e.fieldDescriptionNotSet}</div></div>`}renderFieldValueType(){let{_messages:e,props:t}=this,{layer:i}=t;if(!v(i))return"";let{fieldInfo:s}=t,r=this._getFieldValueTypeCamelCase(s);return c`<div class="section"><div class="title">${e.fieldValueType}</div><div class=${b(r?"":"missing")}>${r?e.fieldValueTypes[r]:e.fieldValueTypeNotSet}</div></div>`}renderFieldSampleValue(){let{oneFeatureResponse:e,oneFeatureResponseStatus:t,statisticsStatus:i,statistics:s,uniqueValuesStatus:r,uniqueValues:n,_messages:o,props:d}=this,{layer:u,fieldName:l,fieldInfo:m}=d,{statistics:h}=o,g;if(y(u)||$(u)||!F(u)&&["string","oid","guid"].includes(this._getStatisticsType(m))&&r!=="failed")return"";t==="success"?e.features.forEach(T=>{(g===void 0||g===null&&T.attributes[l]!==null)&&(g=T.attributes[l])}):i==="success"?g=s?.min??void 0:r==="success"&&(g=n?.uniqueValueInfos?.[0]?.value??n?.uniqueValueInfos?.[1]?.value??void 0);let P=m.codedValues;return p(g)&&(P?g=P.find(T=>g===T.code)?.name||g:g=this._getDisplayString(g,{useFieldFormatting:!0})),c`<div class="section"><div class="title">${o.fieldSampleValue}</div><div class=${b(t==="failed"&&i==="failed"&&r==="failed"||!p(g)?"missing":"")}>${t==="success"||i==="success"||r==="success"?g?.toString()??h.allNulls:t==="failed"&&i==="failed"&&r==="failed"?o.fieldSampleNotAvailable:o.fieldSampleRetrieving}</div></div>`}renderFieldNumericFormat(){let{_messages:e,props:t,hideNumericFormat:i}=this,{fieldName:s,fieldInfo:r,layer:n}=t;if(i||!["double","long","single"].includes(r.layerField.type))return"";let o=this.originalLayerSupportsFieldConfigs()?n.getFieldConfiguration(s):void 0;if(o?.fieldFormat){let{minimumFractionDigits:u,maximumFractionDigits:l}=o.fieldFormat;return c`<div class="section"><div class="title">${e.fieldDecimalPlaces}</div><div>${e.fieldMinimumFractionDigits.replace("${number}",u.toString())}</div><div>${e.fieldMaximumFractionDigits.replace("${number}",l.toString())}</div></div>`}let d="popupTemplate"in n?n.popupTemplate:void 0;if(d?.fieldInfos){let u=d.fieldInfos?.filter(l=>l.fieldName===s);if(u?.length){let l=u[0];if(p(l?.format?.places)){let m=l.format.places;return c`<div class="section"><div class="title">${e.fieldDecimalPlaces}</div><div>${e.fieldNumDecimalPlaces.replace("${number}",m.toString())}</div></div>`}}}return c`<div class="section"><div class="title">${e.fieldDecimalPlaces}</div><div class="missing">${e.fieldDecimalPlacesNotAvailable}</div></div>`}renderFieldStatistics(){let{statisticsStatus:e,uniqueValuesStatus:t,hideStatistics:i,_messages:s,props:r}=this,{layer:n,fieldInfo:o}=r;return i?(this.arcgisComplete.emit(),this.arcgisFieldInfoComplete.emit(),""):["stream","imagery-tile","voxel"].includes(n.type)||["long"].includes(o.layerField.type)?(this.arcgisComplete.emit(),this.arcgisFieldInfoComplete.emit(),""):c`<div class="section"><div class="title">${s.fieldStatistics}</div>${!e||e==="missing"||e==="in-progress"?V("field-info-statistics-content",c`<div class="missing">${s.fieldStatisticsRetrieving}</div>`):e==="failed"&&t!=="success"?this.renderNoStatistics():V("field-info-statistics-content",c`<div ${q(this._setCompleteRef)}>${this.renderStatistics()}</div>`)}</div>`}renderNoStatistics(){let{_messages:e}=this;return V("field-info-statistics-content",c`<div class="missing" ${q(this._setCompleteRef)}>${e.fieldStatisticsNotAvailable}</div>`)}renderStatistics(){let{props:e}=this,{fieldInfo:t}=e;switch(this._getStatisticsType(t)){case"number":return this.renderNumberStatistics();case"guid":case"oid":case"string":return this.renderStringStatistics();case"date":case"date-only":case"time-only":case"timestamp-offset":return this.renderDateStatistics();default:return""}}renderNumberStatistics(){let{statistics:e,_messages:t}=this;if(!e)return this.renderNoStatistics();let{statistics:i}=t;return c`<div><div class="statistics-row"><div>${i.numberOfValues}</div><div class="data">${this._printNumValue(e.totalCount)}</div></div>${p(e.sum)?c`<div class="statistics-row"><div>${i.sumOfValues}</div><div class="data">${this._printNumValue(e.sum)}</div></div>`:null}${p(e.min)?c`<div class="statistics-row"><div>${i.minimum}</div><div class="data">${this._printNumValue(e.min)}</div></div>`:null}${p(e.max)?c`<div class="statistics-row"><div>${i.maximum}</div><div class="data">${this._printNumValue(e.max)}</div></div>`:null}${p(e.avg)?c`<div class="statistics-row"><div>${i.average}</div><div class="data">${this._printNumValue(e.avg)}</div></div>`:null}${p(e.stddev)?c`<div class="statistics-row"><div>${i.standardDeviation}</div><div class="data">${this._printNumValue(e.stddev)}</div></div>`:null}${this.renderNullValues()}</div>`}renderStringStatistics(){let{statistics:e,uniqueValuesStatus:t,_messages:i}=this,{statistics:s}=i;return c`<div><div class="statistics-row"><div>${s.numberOfValues}</div>${t!=="success"?c`<div class="missing">--</div>`:c`<div class="data">${this._printNumValue(e?.totalCount)}</div>`}</div>${this.renderNullValues()}${this.renderTopValues()}</div>`}renderDateStatistics(){let{statistics:e,view:t,props:i,_messages:s}=this,{fieldInfo:r}=i;if(!e||!p(e.max)||!p(e.min))return this.renderNoStatistics();let{statistics:n}=s,o=e.max-e.min,d=Math.floor(o/31536e6),u=Math.floor((o-d*31536e6)/2628e6),l=Math.ceil((o-u*2628e6)/864e5);l>=30&&(u+=1,l=0);let m=d===1?n.timeSpanOptions.year:d>1?n.timeSpanOptions.years.replace("${years}",d.toString()):"";m+=d>0&&(u>0||l>0)?", ":"",m+=u===1?n.timeSpanOptions.month:u>1?n.timeSpanOptions.months.replace("${months}",u.toString()):"",m+=u>0&&l>0?", ":"",m+=l===1?n.timeSpanOptions.day:l>1?n.timeSpanOptions.days.replace("${days}",l.toString()):"";let h=r.simpleFieldType!=="timestamp-offset"||!t||t.timeZone!=="unknown",g=r.simpleFieldType==="time-only";return c`<div><div class="statistics-row"><div>${n.numberOfValues}</div><div class="data">${this._printNumValue(e?.totalCount)}</div></div>${h&&p(e.min)?c`<div class="statistics-row"><div>${g?n.minimumTime:n.minimumDate}</div><div class="data">${this._getDisplayString(e.min)}</div></div>`:null}${h&&p(e.max)?c`<div class="statistics-row"><div>${g?n.maximumTime:n.maximumDate}</div><div class="data">${this._getDisplayString(e.max)}</div></div>`:null}${h&&p(e.avg)?c`<div class="statistics-row"><div>${g?n.averageTime:n.averageDate}</div><div class="data">${this._getDisplayString(e.avg)}</div></div>`:null}${h&&!g&&p(e.min)&&p(e.max)&&o>0?c`<div class="statistics-row"><div>${n.timespan}</div><div class="data">${m}</div></div>`:null}${this.renderNullValues()}</div>`}renderTopValues(){let{uniqueValues:e,uniqueValuesStatus:t,_messages:i,props:s}=this,{fieldInfo:r}=s,{statistics:n}=i;if(e?.uniqueValueInfos?.length){let o=e.uniqueValueInfos;o.sort((l,m)=>l.count<m.count?1:l.count>m.count?-1:0);let d=r.codedValues,u=o.filter(l=>l.value!==null).filter((l,m)=>l&&m<10).map(l=>{let m=l.value;return d?d.forEach(h=>{m===h.code&&(m=h.name)}):m=this._getDisplayString(m),c`<div class="statistics-row"><div class="data">${`${m}`}</div><div class="count">${this._printNumValue(l.count)}</div></div>`});return u.length?c`<div><div class="statistics-row-top-values"><div>${o.length>10?n.topTenValues:n.topValues}</div><div>${n.count}</div></div>${u}</div>`:""}else return c`<div><div class="statistics-row-top-values"><div>${n.topValues}</div><div>${n.count}</div></div><div class="statistics-row"><div class="missing">${t==="failed"?i.fieldUniqueValuesNotAvailable:i.fieldSampleRetrieving}</div></div></div>`}renderNullValues(){let{statistics:e,uniqueValues:t,_messages:i}=this,{statistics:s}=i,r=e?.nullcount;if(!p(r)&&t){let n=t.uniqueValueInfos;for(let o=0;o<n.length;o++){let d=n[o];if(d.value===null){r=d.count;break}}}return c`<div class="statistics-row"><div>${s.numberOfNulls}</div>${p(r)?c`<div class="data">${this._printNumValue(r)}</div>`:c`<div class="missing">--</div>`}</div>`}};W("arcgis-field-info",Z);return Z},"config","core/reactiveUtils","intl","applications/PortalApp/layerUtils","core/lang","smartMapping/statistics/summaryStatistics","smartMapping/statistics/uniqueValues","rest/support/Query")
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{c as A,f as N}from"./F45Q3BRT.js";import{I as w,a as x,b as C,c as f,d as m,e as P,f as L,m as g,p as v,r as O}from"./OOBX2C2L.js";var $=t=>(...s)=>{let o=m(),e=new t(...s),r=e.exports;f(o.at(-1));let n=e.component.manager;n.W(e,r),e.watchExports(n.W.bind(n,e)),P(e);let a=[e.component,...o].reverse();return v(a,i=>i===void 0?void 0:z(e,i,r),r)},z=(t,{host:s,key:o,isReactive:e},r)=>{let n=s,a=n[o]!==t.exports,i=n[o]!==r,c=r!==t.exports;if(a&&!i&&c&&(n[o]=t.exports),s===t.component){if(e){let l=t.component.manager;i&&l.W(t,n[o]),t.onUpdate(u=>{if(u.has(o)){let y=n[o];y!==t.exports&&l.W(t,y)}})}t.O=e?void 0:o}let d=t.component.constructor.elementProperties.get(o)?.readOnly;t.watchExports(()=>{n[o]!==t.exports&&(d?L(()=>{n[o]=t.exports}):n[o]=t.exports)})};var M="ar,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,he,hr,hu,id,it,ja,ko,lt,lv,nl,nb,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,th,tr,uk,vi,zh-CN,zh-HK,zh-TW".split(","),S=new Set(M),h="en",U={pt:"pt-BR",nb:"no",nn:"no",zh:"zh-CN"},F=async(t,s,o="")=>{let e=`${s}/${o}`,r=`${e}${t}.json`;return _[r]??=k(t,e),await _[r]},_={},k=async(t,s)=>{let o=`${s}${t}.json`;try{let e=await fetch(o);if(e.ok)return await e.json()}catch(e){return g("error","intl",`An unknown error occurred while fetching localization strings at ${o}`,{detail:{error:e}}),{}}return t===h?{}:await k(h,s)},b=t=>{let s=N(t,"lang",globalThis.navigator?.language||h);return{lang:s,t9nLocale:j(s)}},j=t=>{let[s,o]=t.split("-"),e=s.toLowerCase(),r=e;return o&&(r=`${e}-${o.toUpperCase()}`),r=U[r]??r,S.has(r)?r:o?j(e):h},D=(t,s,o,e)=>{let r,n=()=>W(t,s(),e).then(a=>{(r?.lang!==a.lang||r.t9nLocale!==a.t9nLocale||r.t9nStrings!==a.t9nStrings)&&o(a),r=a}).catch(a=>{g("error","intl","Error updating component locale state",{detail:{error:a}})});return queueMicrotask(n),A(t,["lang"],n)},W=async(t,s,o=t.localName.split("-").slice(1).join("-"))=>{let{lang:e,t9nLocale:r}=b(t),n=`${s}/${o}/t9n`,i=o===null?{}:await F(r,n,"messages.");return{lang:e,t9nLocale:r,t9nStrings:i}};var K=t=>R(void 0,t);var E=class extends O{constructor(s,o){super(s);let e=this.exports;try{C(this.component);let r=o(this.component,this),n=this.exports!==e;if(x(r)){n||this.setProvisionalExports(r);let a=r.then(i=>{this.exports=i,super.catchUpLifecycle()}).catch(i=>{this.P.reject(i)});this.onLoad(async()=>await a)}else(!n||r!==void 0)&&(this.exports=r),queueMicrotask(()=>super.catchUpLifecycle())}catch(r){this.P.reject(r)}}catchUpLifecycle(){}},R=$(E);var T=t=>(s={})=>K((o,e)=>{let r=b(o.el),n={_lang:r.lang,_t9nLocale:r.t9nLocale,_loading:!0},a=o;e.onLifecycle(()=>D(o.el,()=>t("./assets"),({t9nLocale:c,t9nStrings:p,lang:d})=>{let l={...p,_lang:d,_t9nLocale:c,_loading:!1};e.exports=l;let u=p.componentLabel;typeof u=="string"&&"label"in o&&o.label==null&&(o.label??=u),i(a.messageOverrides)},s.name));let i=c=>{let p=e.exports,d=p._original??p,l=V(d,c);c&&(l._original=d),e.exports=l};return"messageOverrides"in a&&e.onUpdate(c=>{c.has("messageOverrides")&&i(a.messageOverrides)}),s.blocking?(e.setProvisionalExports(n,!1),e.ready):n}),V=(t,s)=>{if(!s)return t;let o={...t};return Object.entries(s).forEach(([e,r])=>{t[e]!==void 0&&(typeof r=="object"?o[e]=V(t[e],r):o[e]=r??t[e])}),o};var lt=T(w);export{$ as a,lt as b};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as u}from"./Y5Y7IXOV.js";import{a as S,b as x}from"./WJ3TYWP2.js";import{b as B}from"./YSXFXVP6.js";import"./F45Q3BRT.js";import{a as b}from"./YG4PY2H3.js";import{A as d,B as $,C as v,D as g,E as h,F as C,H as k,g as y,i as l,m,n as w,q as a,z as r}from"./OOBX2C2L.js";var n=new Map;n.set("oid","key");n.set("guid","key");n.set("global-id","key");n.set("blob","binary");n.set("integer","integer");n.set("small-integer","integer");n.set("big-integer","integer");n.set("single","number");n.set("double","number");n.set("long","number");n.set("number","number");n.set("date","date-time");n.set("date-only","calendar");n.set("time-only","clock");n.set("timestamp-offset","time-zone");n.set("string","string");var E=({fieldType:F})=>l`<calcite-icon scale=s .icon=${n.get(F)}></calcite-icon>`,L=y`.panel{min-height:250px}.content{max-height:50vh}.field-icons{display:flex;align-items:center;padding:0 var(--calcite-space-sm)}.selection-button-div{padding:var(--calcite-space-2xs) var(--calcite-space-sm-plus)}.no-match-text{padding:var(--calcite-space-md)}.footer{width:100%}.add-cancel-buttons{display:flex;align-content:space-between}`,f=class extends ${constructor(){super(...arguments),this._messages=B({blocking:!0}),this.popoverNode=r(),this.listNode=r(),this.flowElement=r(),this.panelElement=r(),this.dropdownNode=r(),this.fieldInfoFlowItemEl=r(),this.allLists=[],this.filterText="",this.panelCutOffHeight=0,this._propWatcherTask=new S(this,{task:async([e])=>{if(!this.listOnly&&!x(e?.refElement))throw m("error",this,w("popoverProps")),new Error;this._propWatcherTask.autoRun=!1},args:()=>[this.popoverProps]}),this.fields=[],this.selectedFields=[],this.listOnly=!1,this.showFieldInfo=!1,this.showFieldTypeIcon=!1,this.showFieldName=!1,this.showDescription=!1,this.showSelectionAll=!1,this.showCancel=!0,this.hideCancel=!1,this.showSort=!0,this.hideSort=!1,this.showFilterLength=10,this.multiple=!1,this.sortBy="default",this.groupFieldsAndExpressions=!1,this.arcgisChange=a(),this.arcgisClose=a(),this.arcgisFieldPickListChange=a(),this.arcgisFieldPickListDismissed=a(),this.arcgisFieldPickListSortByChange=a(),this.arcgisSortByChange=a(),this.arcgisEditField=a(),this.arcgisDeleteField=a()}static{this.properties={lastSortBy:16,filterFields:16,mapView:0,view:0,layer:0,fields:0,selectedFields:0,listOnly:5,popoverProps:0,showFieldInfo:5,showFieldTypeIcon:5,showFieldName:5,showDescription:5,showSelectionAll:5,showCancel:5,hideCancel:5,showSort:5,hideSort:5,showFilterLength:9,multiple:5,heading:1,okBtnText:1,filterPlaceholderText:1,filterNoResultsText:1,sortBy:1,groupFieldsAndExpressions:5,fieldsGroupHeading:1,expressionsGroupHeading:1,customExpressionCheck:0}}static{this.styles=L}async reposition(){await this.popoverNode.value?.reposition()}async setFocus(){setTimeout(()=>requestAnimationFrame(()=>{this.listOnly?this.listNode.value?.setFocus():this.panelElement.value?.setFocus()}),1)}async setDisabled(e){this.panelElement.value&&(this.panelElement.value.disabled=e)}load(){!this.view&&this.mapView&&(this.view=this.mapView),!this.showCancel&&!this.hideCancel&&(this.hideCancel=!0),!this.showSort&&!this.hideSort&&(this.hideSort=!0),this.listOnly&&this.showFieldInfo&&(this.showFieldInfo=!1,m("info",this,"showFieldInfo is not supported if listOnly is true.")),!this.multiple&&this.selectedFields.length>1&&(this.selectedFields=[this.selectedFields[0]]),this.lastSortBy=this.sortBy??this.lastSortBy,this.updateGroupedLists()}willUpdate(e){(e.has("fields")||e.has("lastSortBy")||e.has("customExpressionCheck"))&&this.updateGroupedLists()}loaded(){this.setUpObserver(),this.listOnly?this.listNode.value?.setFocus():(this.flowElement.value?.setFocus(),this.checkMaxHeight())}disconnectedCallback(){super.disconnectedCallback(),this.observer?.disconnect()}setUpObserver(){this.observer=new MutationObserver(e=>{for(let t of e)t.attributeName==="style"&&this.popoverNode.value&&this.dropdownNode.value&&this.popoverNode.value.style.visibility==="hidden"&&(this.dropdownNode.value.open=!1)})}checkMaxHeight(){setTimeout(()=>this.checkPanelMaxHeight(),200),setTimeout(()=>this.checkPanelMaxHeight(),500),setTimeout(()=>this.checkPanelMaxHeight(),1e3),setTimeout(()=>this.checkPanelMaxHeight(),1500)}checkPanelMaxHeight(){if(this.panelCutOffHeight===0){let e=this.panelElement.value?.getBoundingClientRect();if(e&&e.bottom>window.innerHeight){this.panelCutOffHeight=e.height-(e.bottom-window.innerHeight)-5;let t=this.listNode.value?.getBoundingClientRect();t&&(this.listNode.value.style.maxHeight=`${t.height-(e.bottom-window.innerHeight)-5}px`)}}}getSortedList(e){let t=[...e],i=t.filter(s=>s.type==="none");return t=t.filter(s=>s.type!=="none"),this.lastSortBy==="display"?t.sort((s,o)=>s.alias.localeCompare(o.alias)):this.lastSortBy==="field"?t.sort((s,o)=>s.name.localeCompare(o.name)):this.lastSortBy==="type"&&t.sort((s,o)=>s.type.localeCompare(o.type)),t=t.concat(i),t}isExpression(e){return this.customExpressionCheck?this.customExpressionCheck(e):e.name.includes(u.expression)}canDeselectAll(){let e=this.getAllFields();return this.filterFields?.length?this.filterContainsAll():this.selectedFields.length===e.length}filterContainsAll(){return!!this.filterFields?.every(e=>this.selectedFields.some(t=>t===e))}showFieldInfoCheck(e){let{layer:t}=this;return this.showFieldInfo?!(!t||this.isExpression(e)||e.name.includes(u.relationship)||e.type==="none"):!1}updateGroupedLists(){if(this.fields)if(this.allLists=[],this.usingCustomGroups())for(let e of this.fields)this.allLists.push({title:e.title,fields:[...this.getSortedList(e.fields)]});else this.allLists=this.groupFieldsAndExpressions?[{title:this.expressionsGroupHeading,fields:[...this.getSortedList(this.fields)].filter(e=>this.isExpression(e))},{title:this.fieldsGroupHeading,fields:[...this.getSortedList(this.fields)].filter(e=>!this.isExpression(e))}]:[{title:void 0,fields:[...this.getSortedList(this.fields)]}]}addFieldInfoFlowItem(e,t){let i=this.flowElement.value,s=C(l`<calcite-flow-item selected .heading=${e.alias??e.name} .description=${e.name} class="panel" style=${g(this.panelCutOffHeight>0?`max-height: ${this.panelCutOffHeight}px`:"max-height: 50vh")} @calciteFlowItemBack=${o=>{o.currentTarget.remove(),this.fieldInfoFlowItemEl.value.selected=!1,this.panelElement.value.selected=!0,setTimeout(()=>{t.setFocus()},300)}} ${d(this.fieldInfoFlowItemEl)}><arcgis-field-info lang=${this._messages._lang??h} .fieldName=${e.name} .layer=${this.layer} .view=${this.view} class="content"></arcgis-field-info></calcite-flow-item>`);i.appendChild(s),this.panelElement.value.selected=!1,this.fieldInfoFlowItemEl?.value.setFocus()}usingCustomGroups(){return!!this.fields.length&&"fields"in this.fields[0]}getAllFields(){return this.allLists.map(e=>e.fields).flat()}setSortBy(e){this.lastSortBy=e,this.updateGroupedLists(),this.arcgisSortByChange.emit(this.lastSortBy),this.arcgisFieldPickListSortByChange.emit(this.lastSortBy),this.reorderSelectedFieldsByCurrentListOrder()&&(this.arcgisChange.emit({selectedFields:this.selectedFields}),this.arcgisFieldPickListChange.emit({selectedFields:this.selectedFields}))}reorderSelectedFieldsByCurrentListOrder(){if(!this.selectedFields.length)return!1;let e=this.getAllFields().map(o=>o.name),t=new Set(this.selectedFields),i=e.filter(o=>t.has(o)),s=i.length!==this.selectedFields.length||i.some((o,p)=>o!==this.selectedFields[p]);return s&&(this.selectedFields=[...i]),s}render(){return this._propWatcherTask.render({complete:()=>{if(this.listOnly)return this.renderList();let e=this.heading||(this.multiple?this._messages.headerSelect:this._messages.header),t=this.popoverProps;return this.el.classList.add("js-app-flyout"),l`<calcite-popover .placement=${t.placement??"leading-start"} open pointer-disabled .referenceElement=${t.refElement} .offsetDistance=${t.offsetDistance??-Math.round(t.refElement.getBoundingClientRect().width)} .offsetSkidding=${t.offsetSkidding??0} .overlayPositioning=${t.overlayPositioning} trigger-disabled .autoClose=${t.autoClose} .label=${this.heading??(this.multiple?this._messages.headerSelect:this._messages.header)??""} @calcitePopoverClose=${()=>{this.arcgisClose.emit(),this.arcgisFieldPickListDismissed.emit()}} ${d(this.popoverNode)}><calcite-flow style=${g({width:`${t.popoverWidth??t.refElement.getBoundingClientRect().width}px`,...t.maxHeight&&{maxHeight:t.maxHeight}})} ${d(this.flowElement)}><calcite-flow-item class="panel" .heading=${e} closable @calciteFlowItemClose=${()=>{this.arcgisClose.emit(),this.arcgisFieldPickListDismissed.emit()}} ${d(this.panelElement)}><slot slot=content-top name=content-top></slot>${this.renderList()}<slot slot=content-bottom name=content-bottom></slot>${(this.multiple||!this.hideCancel)&&l`<div slot=footer class="footer"><slot name=content-footer></slot>${this.multiple&&!this.hideCancel?l`<div class="add-cancel-buttons">${this.renderAddButton()}${this.renderCancelButton()}</div>`:l`${this.renderAddButton()}${this.renderCancelButton()}`}</div>`||""}</calcite-flow-item></calcite-flow></calcite-popover>`},error:()=>""})}renderList(){let e=this.heading||(this.multiple?this._messages.headerSelect:this._messages.header),t=this.getAllFields(),i=t.length>=this.showFilterLength;return l`${t.length?l`<calcite-list .label=${e} .selectionMode=${this.multiple?"multiple":"single"} class=${v(this.listOnly?"":"content")} .filterEnabled=${i} .filterPlaceholder=${this.filterPlaceholderText??this._messages.filter} @calciteListChange=${()=>{let s=this.listNode.value.selectedItems.map(c=>c.value),o=this.selectedFields.filter(c=>s.includes(c)),p=s.filter(c=>!this.selectedFields.includes(c));this.selectedFields=[...new Set([...o,...p])],this.reorderSelectedFieldsByCurrentListOrder(),this.arcgisChange.emit({selectedFields:this.selectedFields}),this.arcgisFieldPickListChange.emit({selectedFields:this.selectedFields}),this.multiple||(this.arcgisClose.emit({selectedFields:this.selectedFields}),this.arcgisFieldPickListDismissed.emit({selectedFields:this.selectedFields}))}} @calciteListFilter=${s=>{s.stopPropagation(),this.filterFields=this.listNode.value.filteredItems?.map(o=>o.value),this.filterText=this.listNode.value.filterText}} ${d(this.listNode)}>${this.renderSortButton()}<slot name=content-center></slot>${this.multiple&&this.showSelectionAll&&(!i||!this.filterText||this.filterFields?.length)?this.renderSelectionButton():null}${this.renderListItems()}</calcite-list>`:l`<slot name=no-fields></slot>`}${this.filterFields&&!this.filterFields.length&&this.listNode.value&&this.filterNoResultsText?.length!==0?l`<div class="no-match-text">${this.filterNoResultsText??this._messages.noMatches}</div>`:null}`}renderSortButton(){let e=this.getAllFields();if(!(e.length>=this.showFilterLength&&!this.hideSort))return"";let t=e.every(i=>!!i.type);return l`<calcite-dropdown slot=filter-actions-end placement=bottom-end overlay-positioning=fixed .disabled=${this.filterFields?this.filterFields.length<4:!1} @calciteDropdownOpen=${()=>{this.observer?.disconnect(),this.popoverNode.value&&this.observer?.observe(this.popoverNode.value,{attributes:!0})}} @calciteDropdownClose=${()=>this.observer?.disconnect()} ${d(this.dropdownNode)}><calcite-action slot=trigger .text=${this._messages.sort??""} title=${this._messages.sort??h}><calcite-icon scale=s icon=sortDescending flip-rtl></calcite-icon></calcite-action><calcite-dropdown-group><calcite-dropdown-item .selected=${this.lastSortBy==="default"} @click=${()=>this.setSortBy("default")} @keydown=${i=>{i.stopPropagation(),(i.key===" "||i.key==="Enter")&&this.setSortBy("default")}}>${this._messages.default}</calcite-dropdown-item><calcite-dropdown-item .selected=${this.lastSortBy==="display"} @click=${()=>this.setSortBy("display")} @keydown=${i=>{i.stopPropagation(),(i.key===" "||i.key==="Enter")&&this.setSortBy("display")}}>${this._messages.displayName}</calcite-dropdown-item>${t&&l`<calcite-dropdown-item .selected=${this.lastSortBy==="type"} @click=${()=>this.setSortBy("type")} @keydown=${i=>{i.stopPropagation(),(i.key===" "||i.key==="Enter")&&this.setSortBy("type")}}>${this._messages.type}</calcite-dropdown-item>`||""}<calcite-dropdown-item .selected=${this.lastSortBy==="field"} @click=${()=>this.setSortBy("field")} @keydown=${i=>{i.stopPropagation(),(i.key===" "||i.key==="Enter")&&this.setSortBy("field")}}>${this._messages.fieldName}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`}renderSelectionButton(){return l`<div class="selection-button-div"><calcite-button appearance=transparent scale=s width=full @click=${()=>{if(this.canDeselectAll())this.selectedFields=this.filterFields?.length?this.selectedFields.filter(e=>!this.filterFields?.includes(e)):[];else if(this.filterFields?.length)this.selectedFields=[...new Set([...this.selectedFields,...this.filterFields])];else{let e=this.getAllFields();this.selectedFields=e.map(t=>t.name)}this.reorderSelectedFieldsByCurrentListOrder(),this.arcgisChange.emit({selectedFields:this.selectedFields}),this.arcgisFieldPickListChange.emit({selectedFields:this.selectedFields})}}>${this.canDeselectAll()?this._messages.deselectAll:this._messages.selectAll}</calcite-button></div>`}renderListItems(){let e=this.allLists.filter(t=>!!t.fields.length);return e.length===1&&!e[0].title?e[0].fields.map(t=>this.renderCalciteListItem(t)):e.map(t=>l`<calcite-list-item-group .heading=${t.title}>${t.fields.map(i=>this.renderCalciteListItem(i))}</calcite-list-item-group>`)}renderCalciteListItem(e){let t=this.showFieldInfoCheck(e),i=this.showFieldTypeIcon&&!!e.type;return b(e.name,l`<calcite-list-item .label=${e.alias||e.name} .description=${(()=>{if(this.showFieldName&&e.hideFieldName!==!0)return`{${e.name}}`;if(this.showDescription&&e.hideDescription!==!0&&e.description)return e.description})()} .value=${e.name} .selected=${!this.multiple&&e.name===this.selectedFields[0]||this.multiple&&this.selectedFields.includes(e.name)} .metadata=${{label:e.alias,fieldName:e.name}}>${i&&l`<div slot=actions-end class="field-icons">${E({fieldType:e.type})}</div>`||""}${this.renderInfoAction(e,t)}${this.renderEditAction(e)}${this.renderDeleteAction(e)}</calcite-list-item>`)}renderInfoAction(e,t){let{_messages:i}=this;return t?l`<calcite-action slot=actions-end .text=${i.info} title=${i.info??h} scale=s icon=information @click=${s=>{s.stopPropagation();let o=s.currentTarget;this.addFieldInfoFlowItem(e,o)}}></calcite-action>`:""}renderEditAction(e){let{_messages:t}=this;return e.showEditAction?l`<calcite-action slot=actions-end .text=${t.edit} title=${t.edit??h} scale=s icon=pencil @click=${i=>{i.stopPropagation(),this.arcgisEditField.emit({fieldName:e.name})}}></calcite-action>`:""}renderDeleteAction(e){let{_messages:t}=this;return e.showDeleteAction?l`<calcite-action slot=actions-end .text=${t.delete} title=${t.delete??h} scale=s icon=trash @click=${i=>{i.stopPropagation(),this.arcgisDeleteField.emit({fieldName:e.name})}}></calcite-action>`:""}renderAddButton(){return this.multiple?l`<calcite-button .appearance=${this.hideCancel?"outline-fill":"solid"} .width=${this.hideCancel?"full":"half"} @click=${()=>{this.arcgisClose.emit({selectedFields:this.selectedFields}),this.arcgisFieldPickListDismissed.emit({selectedFields:this.selectedFields})}}>${this.okBtnText||(this.multiple?this._messages.done:this._messages.ok)}</calcite-button>`:""}renderCancelButton(){return this.hideCancel?"":l`<calcite-button appearance=outline-fill .width=${this.multiple?"half":"full"} @click=${()=>{this.arcgisClose.emit(),this.arcgisFieldPickListDismissed.emit()}}>${this._messages.cancel}</calcite-button>`}};k("arcgis-field-pick-list",f);export{f as ArcgisFieldPickList};
2
+ import{a as u}from"./Y5Y7IXOV.js";import{a as S,b as x}from"./WJ3TYWP2.js";import{b as B}from"./SKYXMBD4.js";import"./F45Q3BRT.js";import{a as b}from"./YG4PY2H3.js";import{A as d,B as $,C as v,D as g,E as h,F as C,H as k,g as y,i as l,m,n as w,q as a,z as r}from"./OOBX2C2L.js";var n=new Map;n.set("oid","key");n.set("guid","key");n.set("global-id","key");n.set("blob","binary");n.set("integer","integer");n.set("small-integer","integer");n.set("big-integer","integer");n.set("single","number");n.set("double","number");n.set("long","number");n.set("number","number");n.set("date","date-time");n.set("date-only","calendar");n.set("time-only","clock");n.set("timestamp-offset","time-zone");n.set("string","string");var E=({fieldType:F})=>l`<calcite-icon scale=s .icon=${n.get(F)}></calcite-icon>`,L=y`.panel{min-height:250px}.content{max-height:50vh}.field-icons{display:flex;align-items:center;padding:0 var(--calcite-space-sm)}.selection-button-div{padding:var(--calcite-space-2xs) var(--calcite-space-sm-plus)}.no-match-text{padding:var(--calcite-space-md)}.footer{width:100%}.add-cancel-buttons{display:flex;align-content:space-between}`,f=class extends ${constructor(){super(...arguments),this._messages=B({blocking:!0}),this.popoverNode=r(),this.listNode=r(),this.flowElement=r(),this.panelElement=r(),this.dropdownNode=r(),this.fieldInfoFlowItemEl=r(),this.allLists=[],this.filterText="",this.panelCutOffHeight=0,this._propWatcherTask=new S(this,{task:async([e])=>{if(!this.listOnly&&!x(e?.refElement))throw m("error",this,w("popoverProps")),new Error;this._propWatcherTask.autoRun=!1},args:()=>[this.popoverProps]}),this.fields=[],this.selectedFields=[],this.listOnly=!1,this.showFieldInfo=!1,this.showFieldTypeIcon=!1,this.showFieldName=!1,this.showDescription=!1,this.showSelectionAll=!1,this.showCancel=!0,this.hideCancel=!1,this.showSort=!0,this.hideSort=!1,this.showFilterLength=10,this.multiple=!1,this.sortBy="default",this.groupFieldsAndExpressions=!1,this.arcgisChange=a(),this.arcgisClose=a(),this.arcgisFieldPickListChange=a(),this.arcgisFieldPickListDismissed=a(),this.arcgisFieldPickListSortByChange=a(),this.arcgisSortByChange=a(),this.arcgisEditField=a(),this.arcgisDeleteField=a()}static{this.properties={lastSortBy:16,filterFields:16,mapView:0,view:0,layer:0,fields:0,selectedFields:0,listOnly:5,popoverProps:0,showFieldInfo:5,showFieldTypeIcon:5,showFieldName:5,showDescription:5,showSelectionAll:5,showCancel:5,hideCancel:5,showSort:5,hideSort:5,showFilterLength:9,multiple:5,heading:1,okBtnText:1,filterPlaceholderText:1,filterNoResultsText:1,sortBy:1,groupFieldsAndExpressions:5,fieldsGroupHeading:1,expressionsGroupHeading:1,customExpressionCheck:0}}static{this.styles=L}async reposition(){await this.popoverNode.value?.reposition()}async setFocus(){setTimeout(()=>requestAnimationFrame(()=>{this.listOnly?this.listNode.value?.setFocus():this.panelElement.value?.setFocus()}),1)}async setDisabled(e){this.panelElement.value&&(this.panelElement.value.disabled=e)}load(){!this.view&&this.mapView&&(this.view=this.mapView),!this.showCancel&&!this.hideCancel&&(this.hideCancel=!0),!this.showSort&&!this.hideSort&&(this.hideSort=!0),this.listOnly&&this.showFieldInfo&&(this.showFieldInfo=!1,m("info",this,"showFieldInfo is not supported if listOnly is true.")),!this.multiple&&this.selectedFields.length>1&&(this.selectedFields=[this.selectedFields[0]]),this.lastSortBy=this.sortBy??this.lastSortBy,this.updateGroupedLists()}willUpdate(e){(e.has("fields")||e.has("lastSortBy")||e.has("customExpressionCheck"))&&this.updateGroupedLists()}loaded(){this.setUpObserver(),this.listOnly?this.listNode.value?.setFocus():(this.flowElement.value?.setFocus(),this.checkMaxHeight())}disconnectedCallback(){super.disconnectedCallback(),this.observer?.disconnect()}setUpObserver(){this.observer=new MutationObserver(e=>{for(let t of e)t.attributeName==="style"&&this.popoverNode.value&&this.dropdownNode.value&&this.popoverNode.value.style.visibility==="hidden"&&(this.dropdownNode.value.open=!1)})}checkMaxHeight(){setTimeout(()=>this.checkPanelMaxHeight(),200),setTimeout(()=>this.checkPanelMaxHeight(),500),setTimeout(()=>this.checkPanelMaxHeight(),1e3),setTimeout(()=>this.checkPanelMaxHeight(),1500)}checkPanelMaxHeight(){if(this.panelCutOffHeight===0){let e=this.panelElement.value?.getBoundingClientRect();if(e&&e.bottom>window.innerHeight){this.panelCutOffHeight=e.height-(e.bottom-window.innerHeight)-5;let t=this.listNode.value?.getBoundingClientRect();t&&(this.listNode.value.style.maxHeight=`${t.height-(e.bottom-window.innerHeight)-5}px`)}}}getSortedList(e){let t=[...e],i=t.filter(s=>s.type==="none");return t=t.filter(s=>s.type!=="none"),this.lastSortBy==="display"?t.sort((s,o)=>s.alias.localeCompare(o.alias)):this.lastSortBy==="field"?t.sort((s,o)=>s.name.localeCompare(o.name)):this.lastSortBy==="type"&&t.sort((s,o)=>s.type.localeCompare(o.type)),t=t.concat(i),t}isExpression(e){return this.customExpressionCheck?this.customExpressionCheck(e):e.name.includes(u.expression)}canDeselectAll(){let e=this.getAllFields();return this.filterFields?.length?this.filterContainsAll():this.selectedFields.length===e.length}filterContainsAll(){return!!this.filterFields?.every(e=>this.selectedFields.some(t=>t===e))}showFieldInfoCheck(e){let{layer:t}=this;return this.showFieldInfo?!(!t||this.isExpression(e)||e.name.includes(u.relationship)||e.type==="none"):!1}updateGroupedLists(){if(this.fields)if(this.allLists=[],this.usingCustomGroups())for(let e of this.fields)this.allLists.push({title:e.title,fields:[...this.getSortedList(e.fields)]});else this.allLists=this.groupFieldsAndExpressions?[{title:this.expressionsGroupHeading,fields:[...this.getSortedList(this.fields)].filter(e=>this.isExpression(e))},{title:this.fieldsGroupHeading,fields:[...this.getSortedList(this.fields)].filter(e=>!this.isExpression(e))}]:[{title:void 0,fields:[...this.getSortedList(this.fields)]}]}addFieldInfoFlowItem(e,t){let i=this.flowElement.value,s=C(l`<calcite-flow-item selected .heading=${e.alias??e.name} .description=${e.name} class="panel" style=${g(this.panelCutOffHeight>0?`max-height: ${this.panelCutOffHeight}px`:"max-height: 50vh")} @calciteFlowItemBack=${o=>{o.currentTarget.remove(),this.fieldInfoFlowItemEl.value.selected=!1,this.panelElement.value.selected=!0,setTimeout(()=>{t.setFocus()},300)}} ${d(this.fieldInfoFlowItemEl)}><arcgis-field-info lang=${this._messages._lang??h} .fieldName=${e.name} .layer=${this.layer} .view=${this.view} class="content"></arcgis-field-info></calcite-flow-item>`);i.appendChild(s),this.panelElement.value.selected=!1,this.fieldInfoFlowItemEl?.value.setFocus()}usingCustomGroups(){return!!this.fields.length&&"fields"in this.fields[0]}getAllFields(){return this.allLists.map(e=>e.fields).flat()}setSortBy(e){this.lastSortBy=e,this.updateGroupedLists(),this.arcgisSortByChange.emit(this.lastSortBy),this.arcgisFieldPickListSortByChange.emit(this.lastSortBy),this.reorderSelectedFieldsByCurrentListOrder()&&(this.arcgisChange.emit({selectedFields:this.selectedFields}),this.arcgisFieldPickListChange.emit({selectedFields:this.selectedFields}))}reorderSelectedFieldsByCurrentListOrder(){if(!this.selectedFields.length)return!1;let e=this.getAllFields().map(o=>o.name),t=new Set(this.selectedFields),i=e.filter(o=>t.has(o)),s=i.length!==this.selectedFields.length||i.some((o,p)=>o!==this.selectedFields[p]);return s&&(this.selectedFields=[...i]),s}render(){return this._propWatcherTask.render({complete:()=>{if(this.listOnly)return this.renderList();let e=this.heading||(this.multiple?this._messages.headerSelect:this._messages.header),t=this.popoverProps;return this.el.classList.add("js-app-flyout"),l`<calcite-popover .placement=${t.placement??"leading-start"} open pointer-disabled .referenceElement=${t.refElement} .offsetDistance=${t.offsetDistance??-Math.round(t.refElement.getBoundingClientRect().width)} .offsetSkidding=${t.offsetSkidding??0} .overlayPositioning=${t.overlayPositioning} trigger-disabled .autoClose=${t.autoClose} .label=${this.heading??(this.multiple?this._messages.headerSelect:this._messages.header)??""} @calcitePopoverClose=${()=>{this.arcgisClose.emit(),this.arcgisFieldPickListDismissed.emit()}} ${d(this.popoverNode)}><calcite-flow style=${g({width:`${t.popoverWidth??t.refElement.getBoundingClientRect().width}px`,...t.maxHeight&&{maxHeight:t.maxHeight}})} ${d(this.flowElement)}><calcite-flow-item class="panel" .heading=${e} closable @calciteFlowItemClose=${()=>{this.arcgisClose.emit(),this.arcgisFieldPickListDismissed.emit()}} ${d(this.panelElement)}><slot slot=content-top name=content-top></slot>${this.renderList()}<slot slot=content-bottom name=content-bottom></slot>${(this.multiple||!this.hideCancel)&&l`<div slot=footer class="footer"><slot name=content-footer></slot>${this.multiple&&!this.hideCancel?l`<div class="add-cancel-buttons">${this.renderAddButton()}${this.renderCancelButton()}</div>`:l`${this.renderAddButton()}${this.renderCancelButton()}`}</div>`||""}</calcite-flow-item></calcite-flow></calcite-popover>`},error:()=>""})}renderList(){let e=this.heading||(this.multiple?this._messages.headerSelect:this._messages.header),t=this.getAllFields(),i=t.length>=this.showFilterLength;return l`${t.length?l`<calcite-list .label=${e} .selectionMode=${this.multiple?"multiple":"single"} class=${v(this.listOnly?"":"content")} .filterEnabled=${i} .filterPlaceholder=${this.filterPlaceholderText??this._messages.filter} @calciteListChange=${()=>{let s=this.listNode.value.selectedItems.map(c=>c.value),o=this.selectedFields.filter(c=>s.includes(c)),p=s.filter(c=>!this.selectedFields.includes(c));this.selectedFields=[...new Set([...o,...p])],this.reorderSelectedFieldsByCurrentListOrder(),this.arcgisChange.emit({selectedFields:this.selectedFields}),this.arcgisFieldPickListChange.emit({selectedFields:this.selectedFields}),this.multiple||(this.arcgisClose.emit({selectedFields:this.selectedFields}),this.arcgisFieldPickListDismissed.emit({selectedFields:this.selectedFields}))}} @calciteListFilter=${s=>{s.stopPropagation(),this.filterFields=this.listNode.value.filteredItems?.map(o=>o.value),this.filterText=this.listNode.value.filterText}} ${d(this.listNode)}>${this.renderSortButton()}<slot name=content-center></slot>${this.multiple&&this.showSelectionAll&&(!i||!this.filterText||this.filterFields?.length)?this.renderSelectionButton():null}${this.renderListItems()}</calcite-list>`:l`<slot name=no-fields></slot>`}${this.filterFields&&!this.filterFields.length&&this.listNode.value&&this.filterNoResultsText?.length!==0?l`<div class="no-match-text">${this.filterNoResultsText??this._messages.noMatches}</div>`:null}`}renderSortButton(){let e=this.getAllFields();if(!(e.length>=this.showFilterLength&&!this.hideSort))return"";let t=e.every(i=>!!i.type);return l`<calcite-dropdown slot=filter-actions-end placement=bottom-end overlay-positioning=fixed .disabled=${this.filterFields?this.filterFields.length<4:!1} @calciteDropdownOpen=${()=>{this.observer?.disconnect(),this.popoverNode.value&&this.observer?.observe(this.popoverNode.value,{attributes:!0})}} @calciteDropdownClose=${()=>this.observer?.disconnect()} ${d(this.dropdownNode)}><calcite-action slot=trigger .text=${this._messages.sort??""} title=${this._messages.sort??h}><calcite-icon scale=s icon=sortDescending flip-rtl></calcite-icon></calcite-action><calcite-dropdown-group><calcite-dropdown-item .selected=${this.lastSortBy==="default"} @click=${()=>this.setSortBy("default")} @keydown=${i=>{i.stopPropagation(),(i.key===" "||i.key==="Enter")&&this.setSortBy("default")}}>${this._messages.default}</calcite-dropdown-item><calcite-dropdown-item .selected=${this.lastSortBy==="display"} @click=${()=>this.setSortBy("display")} @keydown=${i=>{i.stopPropagation(),(i.key===" "||i.key==="Enter")&&this.setSortBy("display")}}>${this._messages.displayName}</calcite-dropdown-item>${t&&l`<calcite-dropdown-item .selected=${this.lastSortBy==="type"} @click=${()=>this.setSortBy("type")} @keydown=${i=>{i.stopPropagation(),(i.key===" "||i.key==="Enter")&&this.setSortBy("type")}}>${this._messages.type}</calcite-dropdown-item>`||""}<calcite-dropdown-item .selected=${this.lastSortBy==="field"} @click=${()=>this.setSortBy("field")} @keydown=${i=>{i.stopPropagation(),(i.key===" "||i.key==="Enter")&&this.setSortBy("field")}}>${this._messages.fieldName}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`}renderSelectionButton(){return l`<div class="selection-button-div"><calcite-button appearance=transparent scale=s width=full @click=${()=>{if(this.canDeselectAll())this.selectedFields=this.filterFields?.length?this.selectedFields.filter(e=>!this.filterFields?.includes(e)):[];else if(this.filterFields?.length)this.selectedFields=[...new Set([...this.selectedFields,...this.filterFields])];else{let e=this.getAllFields();this.selectedFields=e.map(t=>t.name)}this.reorderSelectedFieldsByCurrentListOrder(),this.arcgisChange.emit({selectedFields:this.selectedFields}),this.arcgisFieldPickListChange.emit({selectedFields:this.selectedFields})}}>${this.canDeselectAll()?this._messages.deselectAll:this._messages.selectAll}</calcite-button></div>`}renderListItems(){let e=this.allLists.filter(t=>!!t.fields.length);return e.length===1&&!e[0].title?e[0].fields.map(t=>this.renderCalciteListItem(t)):e.map(t=>l`<calcite-list-item-group .heading=${t.title}>${t.fields.map(i=>this.renderCalciteListItem(i))}</calcite-list-item-group>`)}renderCalciteListItem(e){let t=this.showFieldInfoCheck(e),i=this.showFieldTypeIcon&&!!e.type;return b(e.name,l`<calcite-list-item .label=${e.alias||e.name} .description=${(()=>{if(this.showFieldName&&e.hideFieldName!==!0)return`{${e.name}}`;if(this.showDescription&&e.hideDescription!==!0&&e.description)return e.description})()} .value=${e.name} .selected=${!this.multiple&&e.name===this.selectedFields[0]||this.multiple&&this.selectedFields.includes(e.name)} .metadata=${{label:e.alias,fieldName:e.name}}>${i&&l`<div slot=actions-end class="field-icons">${E({fieldType:e.type})}</div>`||""}${this.renderInfoAction(e,t)}${this.renderEditAction(e)}${this.renderDeleteAction(e)}</calcite-list-item>`)}renderInfoAction(e,t){let{_messages:i}=this;return t?l`<calcite-action slot=actions-end .text=${i.info} title=${i.info??h} scale=s icon=information @click=${s=>{s.stopPropagation();let o=s.currentTarget;this.addFieldInfoFlowItem(e,o)}}></calcite-action>`:""}renderEditAction(e){let{_messages:t}=this;return e.showEditAction?l`<calcite-action slot=actions-end .text=${t.edit} title=${t.edit??h} scale=s icon=pencil @click=${i=>{i.stopPropagation(),this.arcgisEditField.emit({fieldName:e.name})}}></calcite-action>`:""}renderDeleteAction(e){let{_messages:t}=this;return e.showDeleteAction?l`<calcite-action slot=actions-end .text=${t.delete} title=${t.delete??h} scale=s icon=trash @click=${i=>{i.stopPropagation(),this.arcgisDeleteField.emit({fieldName:e.name})}}></calcite-action>`:""}renderAddButton(){return this.multiple?l`<calcite-button .appearance=${this.hideCancel?"outline-fill":"solid"} .width=${this.hideCancel?"full":"half"} @click=${()=>{this.arcgisClose.emit({selectedFields:this.selectedFields}),this.arcgisFieldPickListDismissed.emit({selectedFields:this.selectedFields})}}>${this.okBtnText||(this.multiple?this._messages.done:this._messages.ok)}</calcite-button>`:""}renderCancelButton(){return this.hideCancel?"":l`<calcite-button appearance=outline-fill .width=${this.multiple?"half":"full"} @click=${()=>{this.arcgisClose.emit(),this.arcgisFieldPickListDismissed.emit()}}>${this._messages.cancel}</calcite-button>`}};k("arcgis-field-pick-list",f);export{f as ArcgisFieldPickList};
@@ -1 +1 @@
1
- {"ARC (equal arc-second)":"ARC (equal arc-second)","Africa":"Africa","Antarctica":"Antarctica","Argentina":"Argentina","Asia":"Asia","Asteroid Belt":"Asteroid Belt","Atlantic Ocean":"Atlantic Ocean","Australia":"Australia","Australia and New Zealand":"Australia and New Zealand","Austria":"Austria","BLM (US Feet)":"BLM (US Feet)","Bangladesh":"Bangladesh","Beijing 1954":"Beijing 1954","Bhutan":"Bhutan","CGCS2000":"CGCS2000","Canada":"Canada","Caribbean":"Caribbean","Caribbean Sea":"Caribbean Sea","Central America":"Central America","Central and North America":"Central and North America","Colombia":"Colombia","Continental":"Continental","County Systems":"County Systems","Democratic Republic of the Congo":"Democratic Republic of the Congo","EPSG Arctic":"EPSG Arctic","Earth":"Earth","Ellipsoidal-based":"Ellipsoidal-based","Europe":"Europe","Finland":"Finland","France":"France","GSK 2011":"GSK 2011","Gauss Kruger":"Gauss Kruger","Geographic Coordinate Systems":"Geographic Coordinate Systems","Germany":"Germany","Gravity-related":"Gravity-related","Greenwich-based":"Greenwich-based","Highways England":"Highways England","Illinois":"Illinois","Indian Ocean":"Indian Ocean","Indian Subcontinent":"Indian Subcontinent","Indiana":"Indiana","Indonesia":"Indonesia","Iowa":"Iowa","Ireland and United Kingdom":"Ireland and United Kingdom","Italy":"Italy","Japan":"Japan","Jupiter":"Jupiter","Kansas":"Kansas","Las Vegas":"Las Vegas","Libya":"Libya","Malaysia":"Malaysia","Malaysia and Singapore":"Malaysia and Singapore","Mars":"Mars","Mercury":"Mercury","Meters":"Meters","Minnesota":"Minnesota","Montana":"Montana","NAD 1927":"NAD 1927","NAD 1927 (US Feet)":"NAD 1927 (US Feet)","NAD 1983":"NAD 1983","NAD 1983 (2011)":"NAD 1983 (2011)","NAD 1983 (2011) (Intl Feet)":"NAD 1983 (2011) (Intl Feet)","NAD 1983 (2011) (Meters)":"NAD 1983 (2011) (Meters)","NAD 1983 (2011) (US Feet)":"NAD 1983 (2011) (US Feet)","NAD 1983 (CORS96) (Intl Feet)":"NAD 1983 (CORS96) (Intl Feet)","NAD 1983 (CORS96) (Meters)":"NAD 1983 (CORS96) (Meters)","NAD 1983 (CORS96) (US Feet)":"NAD 1983 (CORS96) (US Feet)","NAD 1983 (Intl Feet)":"NAD 1983 (Intl Feet)","NAD 1983 (Meters)":"NAD 1983 (Meters)","NAD 1983 (PA11) (Meters)":"NAD 1983 (PA11) (Meters)","NAD 1983 (PA11) (US Feet)":"NAD 1983 (PA11) (US Feet)","NAD 1983 (US Feet)":"NAD 1983 (US Feet)","NAD 1983 HARN (Intl Feet)":"NAD 1983 HARN (Intl Feet)","NAD 1983 HARN (Meters)":"NAD 1983 HARN (Meters)","NAD 1983 HARN (US Feet)":"NAD 1983 HARN (US Feet)","NAD 1983 NSRS2007 (Intl Feet)":"NAD 1983 NSRS2007 (Intl Feet)","NAD 1983 NSRS2007 (Meters)":"NAD 1983 NSRS2007 (Meters)","NAD 1983 NSRS2007 (US Feet)":"NAD 1983 NSRS2007 (US Feet)","National Grids":"National Grids","Navajo":"Navajo","Neptune":"Neptune","New Beijing":"New Beijing","New Zealand":"New Zealand","North America":"North America","Northern Hemisphere":"Northern Hemisphere","Norway":"Norway","Oceans":"Oceans","Oregon":"Oregon","Other GCS":"Other GCS","Pacific Ocean":"Pacific Ocean","Pluto":"Pluto","Polar":"Polar","Portugal":"Portugal","Projected Coordinate Systems":"Projected Coordinate Systems","Pulkovo 1942":"Pulkovo 1942","Pulkovo 1995":"Pulkovo 1995","Replaced":"Replaced","SAD 1969":"SAD 1969","SIRGAS":"SIRGAS","SIRGAS 2000":"SIRGAS 2000","Saturn":"Saturn","Solar System":"Solar System","South Africa":"South Africa","South America":"South America","South Korea":"South Korea","Southern Hemisphere":"Southern Hemisphere","Spheroid-based":"Spheroid-based","State Plane":"State Plane","State Systems":"State Systems","Sweden":"Sweden","Switzerland and Liechtenstein":"Switzerland and Liechtenstein","Texas":"Texas","Tribal":"Tribal","Turkey":"Turkey","US Feet":"US Feet","USA and territories":"USA and territories","UTM":"UTM","Ukraine":"Ukraine","Unknown Height Systems":"Unknown Height Systems","Uranus":"Uranus","Venus":"Venus","Vertical Coordinate Systems":"Vertical Coordinate Systems","Vietnam":"Vietnam","WGS 1972":"WGS 1972","WGS 1984":"WGS 1984","Wisconsin":"Wisconsin","Wisconsin CRS":"Wisconsin CRS","World":"World","World (Sphere-based)":"World (Sphere-based)","Wyoming":"Wyoming","Xian 1980":"Xian 1980","noMatchesFound":"No matches found for '{searchTerm}'.","noResults":"No results found","searchPlaceholder":"Name or WKID","custom":"Custom"}
1
+ {"ARC (equal arc-second)":"ARC (equal arc-second)","Africa":"Africa","Antarctica":"Antarctica","Argentina":"Argentina","Asia":"Asia","Asteroid Belt":"Asteroid Belt","Atlantic Ocean":"Atlantic Ocean","Australia":"Australia","Australia and New Zealand":"Australia and New Zealand","Austria":"Austria","BLM (US Feet)":"BLM (US Feet)","Bangladesh":"Bangladesh","Beijing 1954":"Beijing 1954","Bhutan":"Bhutan","CGCS2000":"CGCS2000","Canada":"Canada","Caribbean":"Caribbean","Caribbean Sea":"Caribbean Sea","Central America":"Central America","Central and North America":"Central and North America","Colombia":"Colombia","Continental":"Continental","County Systems":"County Systems","Democratic Republic of the Congo":"Democratic Republic of the Congo","EPSG Arctic":"EPSG Arctic","Earth":"Earth","Ellipsoidal-based":"Ellipsoidal-based","Europe":"Europe","Finland":"Finland","France":"France","GSK 2011":"GSK 2011","Gauss Kruger":"Gauss Kruger","Geographic Coordinate Systems":"Geographic Coordinate Systems","Germany":"Germany","Gravity-related":"Gravity-related","Greenwich-based":"Greenwich-based","Highways England":"Highways England","Illinois":"Illinois","Indian Ocean":"Indian Ocean","Indian Subcontinent":"Indian Subcontinent","Indiana":"Indiana","Indonesia":"Indonesia","Iowa":"Iowa","Ireland and United Kingdom":"Ireland and United Kingdom","Italy":"Italy","Japan":"Japan","Jupiter":"Jupiter","Kansas":"Kansas","Las Vegas":"Las Vegas","Libya":"Libya","Malaysia":"Malaysia","Malaysia and Singapore":"Malaysia and Singapore","Mars":"Mars","Mercury":"Mercury","Meters":"Meters","Minnesota":"Minnesota","Montana":"Montana","NAD 1927":"NAD 1927","NAD 1927 (US Feet)":"NAD 1927 (US Feet)","NAD 1983":"NAD 1983","NAD 1983 (2011)":"NAD 1983 (2011)","NAD 1983 (2011) (Intl Feet)":"NAD 1983 (2011) (Intl Feet)","NAD 1983 (2011) (Meters)":"NAD 1983 (2011) (Meters)","NAD 1983 (2011) (US Feet)":"NAD 1983 (2011) (US Feet)","NAD 1983 (CORS96) (Intl Feet)":"NAD 1983 (CORS96) (Intl Feet)","NAD 1983 (CORS96) (Meters)":"NAD 1983 (CORS96) (Meters)","NAD 1983 (CORS96) (US Feet)":"NAD 1983 (CORS96) (US Feet)","NAD 1983 (Intl Feet)":"NAD 1983 (Intl Feet)","NAD 1983 (Meters)":"NAD 1983 (Meters)","NAD 1983 (PA11) (Meters)":"NAD 1983 (PA11) (Meters)","NAD 1983 (PA11) (US Feet)":"NAD 1983 (PA11) (US Feet)","NAD 1983 (US Feet)":"NAD 1983 (US Feet)","NAD 1983 HARN (Intl Feet)":"NAD 1983 HARN (Intl Feet)","NAD 1983 HARN (Meters)":"NAD 1983 HARN (Meters)","NAD 1983 HARN (US Feet)":"NAD 1983 HARN (US Feet)","NAD 1983 NSRS2007 (Intl Feet)":"NAD 1983 NSRS2007 (Intl Feet)","NAD 1983 NSRS2007 (Meters)":"NAD 1983 NSRS2007 (Meters)","NAD 1983 NSRS2007 (US Feet)":"NAD 1983 NSRS2007 (US Feet)","National Grids":"National Grids","Navajo":"Navajo","Neptune":"Neptune","New Beijing":"New Beijing","New Zealand":"New Zealand","North America":"North America","Northern Hemisphere":"Northern Hemisphere","Norway":"Norway","Oceans":"Oceans","Oregon":"Oregon","Other GCS":"Other GCS","Pacific Ocean":"Pacific Ocean","Pluto":"Pluto","Polar":"Polar","Portugal":"Portugal","Projected Coordinate Systems":"Projected Coordinate Systems","Pulkovo 1942":"Pulkovo 1942","Pulkovo 1995":"Pulkovo 1995","Replaced":"Replaced","SAD 1969":"SAD 1969","SIRGAS":"SIRGAS","SIRGAS 2000":"SIRGAS 2000","Saturn":"Saturn","Solar System":"Solar System","South Africa":"South Africa","South America":"South America","South Korea":"South Korea","Southern Hemisphere":"Southern Hemisphere","Spheroid-based":"Spheroid-based","State Plane":"State Plane","State Systems":"State Systems","Sweden":"Sweden","Switzerland and Liechtenstein":"Switzerland and Liechtenstein","Texas":"Texas","Tribal":"Tribal","Turkey":"Turkey","US Feet":"US Feet","USA and territories":"USA and territories","UTM":"UTM","Ukraine":"Ukraine","Unknown Height Systems":"Unknown Height Systems","Uranus":"Uranus","Venus":"Venus","Vertical Coordinate Systems":"Vertical Coordinate Systems","Vietnam":"Vietnam","WGS 1972":"WGS 1972","WGS 1984":"WGS 1984","Wisconsin":"Wisconsin","Wisconsin CRS":"Wisconsin CRS","World":"World","World (Sphere-based)":"World (Sphere-based)","Wyoming":"Wyoming","Xian 1980":"Xian 1980","noMatchesFound":"No matches found for '{searchTerm}'.","noResults":"No results found","searchPlaceholder":"Name or WKID","searchPlaceholderLong":"Search by coordinate system name or WKID (Well-Known ID)","custom":"Custom"}
@@ -1 +1 @@
1
- {"fieldType":"Field type","fieldAlias":"Field alias","fieldDescription":"Field description","fieldValueType":"Field value type","fieldSampleValue":"Sample value","fieldDecimalPlaces":"Decimal places","fieldMinimumFractionDigits":"Minimum: ${number} decimal places","fieldMaximumFractionDigits":"Maximum: ${number} decimal places","fieldStatistics":"Statistics","fieldDescriptionNotSet":"Field description has not been set.","fieldValueTypeNotSet":"Field value type has not been set.","fieldSampleRetrieving":"Requesting ...","fieldSampleNotAvailable":"A sample value is not available.","fieldDecimalPlacesNotAvailable":"Significant digits has not been set.","fieldNumDecimalPlaces":"${number} decimal places","fieldStatisticsRetrieving":"Calculating ...","fieldStatisticsNotAvailable":"Statistics could not get calculated.","fieldUniqueValuesRetrieving":"Counting ...","fieldUniqueValuesNotAvailable":"Data could not get calculated.","fieldTypes":{"integer":"Integer","smallInteger":"Small integer","bigInteger":"Big integer","single":"Single","double":"Double","long":"Long","string":"String","date":"Date","dateOnly":"Date only","timeOnly":"Time only","timestampOffset":"Timestamp offset","oid":"Object ID","guid":"Globally unique ID","globalId":"Global ID"},"fieldValueTypes":{"nameOrTitle":"Name or Title","description":"Description","typeOrCategory":"Type or Category","countOrAmount":"Count or Amount","percentageOrRatio":"Percentage or Ratio","measurement":"Measurement","uniqueIdentifier":"Unique Identifier","orderedOrRanked":"Ordered or Ranked","binary":"Binary","locationOrPlaceName":"Location or Place Name","coordinate":"Coordinate","currency":"Currency","phoneNumber":"Phone number","emailAddress":"Email address","dateAndTime":"Date and Time"},"statistics":{"numberOfValues":"Number of records","numberOfNulls":"Number of empty records","allNulls":"All values are null.","topValues":"Top values","topTenValues":"Top 10 values","count":"Count","sumOfValues":"Sum of values","minimum":"Minimum","maximum":"Maximum","average":"Average","standardDeviation":"Standard deviation","minimumDate":"Minimum date","maximumDate":"Maximum date","averageDate":"Average date","minimumTime":"Minimum time","maximumTime":"Maximum time","averageTime":"Average time","timespan":"Time span","timeSpanOptions":{"day":"1 day","days":"${days} days","month":"1 month","months":"${months} months","year":"1 year","years":"${years} years"}}}
1
+ {"fieldType":"Field type","fieldAlias":"Field alias","fieldDescription":"Field description","fieldValueType":"Field value type","fieldSampleValue":"Sample value","fieldDecimalPlaces":"Decimal places","fieldMinimumFractionDigits":"Minimum: ${number} decimal places","fieldMaximumFractionDigits":"Maximum: ${number} decimal places","fieldStatistics":"Statistics","fieldDescriptionNotSet":"Field description has not been set.","fieldValueTypeNotSet":"Field value type has not been set.","fieldSampleRetrieving":"Requesting ...","fieldSampleNotAvailable":"A sample value is not available.","fieldDecimalPlacesNotAvailable":"Significant digits has not been set.","fieldNumDecimalPlaces":"${number} decimal places","fieldStatisticsRetrieving":"Calculating ...","fieldStatisticsNotAvailable":"Statistics could not get calculated.","fieldUniqueValuesRetrieving":"Counting ...","fieldUniqueValuesNotAvailable":"Data could not get calculated.","fieldTypes":{"integer":"Integer","smallInteger":"Small integer","bigInteger":"Big integer","single":"Single","double":"Double","long":"Long","string":"String","date":"Date","dateOnly":"Date only","timeOnly":"Time only","timestampOffset":"Timestamp offset","oid":"Object ID","guid":"Globally unique ID","globalId":"Global ID"},"fieldValueTypes":{"nameOrTitle":"Name or Title","description":"Description","typeOrCategory":"Type or Category","countOrAmount":"Count or Amount","percentageOrRatio":"Percentage or Ratio","measurement":"Measurement","uniqueIdentifier":"Unique Identifier","orderedOrRanked":"Ordered or Ranked","binary":"Binary","locationOrPlaceName":"Location or Place Name","coordinate":"Coordinate","currency":"Currency","phoneNumber":"Phone number","emailAddress":"Email address","dateAndTime":"Date and Time","url":"URL"},"statistics":{"numberOfValues":"Number of records","numberOfNulls":"Number of empty records","allNulls":"All values are null.","topValues":"Top values","topTenValues":"Top 10 values","count":"Count","sumOfValues":"Sum of values","minimum":"Minimum","maximum":"Maximum","average":"Average","standardDeviation":"Standard deviation","minimumDate":"Minimum date","maximumDate":"Maximum date","averageDate":"Average date","minimumTime":"Minimum time","maximumTime":"Maximum time","averageTime":"Average time","timespan":"Time span","timeSpanOptions":{"day":"1 day","days":"${days} days","month":"1 month","months":"${months} months","year":"1 year","years":"${years} years"}}}
package/dist/cdn/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{G as i,v as e}from"./OOBX2C2L.js";var s=e(i,{"arcgis-ckeditor5":[()=>import("./FZSF24HT.js"),"canResizeVertically,currentLanguage,customConfig,customExpressionCheck:,editorType,groupFieldsAndExpressions,intlExpressionsGroupHeading,intlFieldsGroupHeading,intlTextPlaceHolder,mentionFields:,readOnly,textData;getData,setFocus"],"arcgis-ckeditor5-popover":[()=>import("./2MN6S2HH.js"),"guid,intlCancel,intlLabel,intlOk,refElement:;reposition"],"arcgis-color-input":[()=>import("./S7B2PKI3.js"),"_messages:,clearable,color,compact,disabled,hideRecentColors,messageOverrides:,placement,popoverProps:,showTransparency,storageId;close,setFocus"],"arcgis-coordinate-system-picker":[()=>import("./UMIMGOKS.js"),"_messages:,autoFilterToDefault,defaultWkid,filterEnabled,hideCategories:,value:;getSRDescription"],"arcgis-coordinate-system-picker-tree":[()=>import("./5I5ODGDD.js"),"data:,value"],"arcgis-field-info":[()=>import("./X4NARYUV.js"),"_messages:,fieldName,hideAlias,hideNumericFormat,hideStatistics,layer:,view:;refresh"],"arcgis-field-pick-list":[()=>import("./ORSF6IOL.js"),"_messages:,customExpressionCheck:,expressionsGroupHeading,fields:,fieldsGroupHeading,filterNoResultsText,filterPlaceholderText,groupFieldsAndExpressions,heading,hideCancel,hideSort,layer:,listOnly,mapView:,multiple,okBtnText,popoverProps:,selectedFields:,showCancel,showDescription,showFieldInfo,showFieldName,showFieldTypeIcon,showFilterLength,showSelectionAll,showSort,sortBy,view:;reposition,setDisabled,setFocus"],"arcgis-histogram":[()=>import("./GEWXC2ZR.js"),"_messages:,average,bins:,colorBlendingEnabled,colorStops:,dataLines:,icon,label,layout,max,messageOverrides:,min,standardDeviation"],"arcgis-label-input":[()=>import("./232BH3SJ.js"),"alignment,editing,labelFormatter:,readOnly,value;edit;getLabelBoundingClientRect"],"arcgis-picker-input":[()=>import("./HWEOBUAY.js"),"disabled,heading,iconEnd,intlDone,label,popoverProps:;close,setFocus"],"arcgis-ramp-color":[()=>import("./YVWFGK4M.js"),"layout,max,min,stops:"],"arcgis-ramp-color-break":[()=>import("./MINFRX4Y.js"),"layout,max,min,stops:"],"arcgis-ramp-opacity":[()=>import("./YVCGEEMG.js"),"fillColor,layout,max,min,stops:"],"arcgis-slider":[()=>import("./VUQJROFR.js"),"activeValue:,allowValuesOverlap,autoDestroyDisabled,disabled,fillPlacement,fullRangeMax,fullRangeMin,keyboardLargeStep,labelFormatter:,layout,max,messageOverrides:,messages:,min,mirrored,popoverLabel,popoverPlacement,precision,rangeLabelsEditingEnabled,rangeLabelsPlacement,segmentsDraggingDisabled,showRangeLabels,steps,valueLabelsDisplay,valueLabelsEditingEnabled,valueLabelsPlacement,values;destroy"],"arcgis-slider-input":[()=>import("./AGGCAE6P.js"),"disabled,flipLabels,label,max,min,scale,step,unitsLabel,value,withSteppers"],"arcgis-ticks":[()=>import("./BDF4ZLUF.js"),"interactive,interpolationExponent,labelFormatter:,labelPlacement,layout,max,min,mirrored,mode,showBaseline,showLabels,values"],"arcgis-unique-values-list":[()=>import("./QEW7H22O.js"),"_messages:,fieldName,layer:,maxHeight,multiple,numberFormatOptions:,partialUniqueValues,selectedValues:,showFilterLength,sortBy,uniqueValues:,view:,visualizationSource;getUniqueValues,setFocus"]});s({resourcesUrl:import.meta.url});var a=new CSSStyleSheet;a.replaceSync("@layer{:not([hydrated]):is(arcgis-ckeditor5,arcgis-ckeditor5-popover,arcgis-color-input,arcgis-coordinate-system-picker,arcgis-coordinate-system-picker-tree,arcgis-field-info,arcgis-field-pick-list,arcgis-histogram,arcgis-label-input,arcgis-picker-input,arcgis-ramp-color,arcgis-ramp-color-break,arcgis-ramp-opacity,arcgis-slider,arcgis-slider-input,arcgis-ticks,arcgis-unique-values-list){visibility:hidden}:root{--arcgis-ckeditor5-initial-height: 30vh;--arcgis-ckeditor5-max-width: 35vw;--arcgis-ckeditor5-mentions-max-width: 33vw;--arcgis-coordinate-system-picker-height: 45vh;--arcgis-coordinate-system-picker-min-width: 20rem;--arcgis-coordinate-system-picker-max-width: 27rem}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,a];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,i)
2
+ import{G as i,v as e}from"./OOBX2C2L.js";var s=e(i,{"arcgis-ckeditor5":[()=>import("./6XE5JNJ7.js"),"canResizeVertically,currentLanguage,customConfig,customExpressionCheck:,editorType,groupFieldsAndExpressions,intlExpressionsGroupHeading,intlFieldsGroupHeading,intlTextPlaceHolder,mentionFields:,readOnly,textData;getData,setFocus"],"arcgis-ckeditor5-popover":[()=>import("./2MN6S2HH.js"),"guid,intlCancel,intlLabel,intlOk,refElement:;reposition"],"arcgis-color-input":[()=>import("./4NANIXN7.js"),"_messages:,clearable,color,compact,disabled,hideRecentColors,messageOverrides:,placement,popoverProps:,showTransparency,storageId;close,setFocus;isOpen"],"arcgis-coordinate-system-picker":[()=>import("./OUUS7VKS.js"),"_messages:,autoFilterToDefault,defaultWkid,filterEnabled,hideCategories:,value:;getSRDescription"],"arcgis-coordinate-system-picker-tree":[()=>import("./5I5ODGDD.js"),"data:,value"],"arcgis-field-info":[()=>import("./QS7JRY4H.js"),"_messages:,fieldName,hideAlias,hideNumericFormat,hideStatistics,layer:,view:;refresh"],"arcgis-field-pick-list":[()=>import("./UEGSIUVY.js"),"_messages:,customExpressionCheck:,expressionsGroupHeading,fields:,fieldsGroupHeading,filterNoResultsText,filterPlaceholderText,groupFieldsAndExpressions,heading,hideCancel,hideSort,layer:,listOnly,mapView:,multiple,okBtnText,popoverProps:,selectedFields:,showCancel,showDescription,showFieldInfo,showFieldName,showFieldTypeIcon,showFilterLength,showSelectionAll,showSort,sortBy,view:;reposition,setDisabled,setFocus"],"arcgis-histogram":[()=>import("./D3WBDGDH.js"),"_messages:,average,bins:,colorBlendingEnabled,colorStops:,dataLines:,icon,label,layout,max,messageOverrides:,min,standardDeviation"],"arcgis-label-input":[()=>import("./232BH3SJ.js"),"alignment,editing,labelFormatter:,readOnly,value;edit;getLabelBoundingClientRect"],"arcgis-picker-input":[()=>import("./HWEOBUAY.js"),"disabled,heading,iconEnd,intlDone,label,popoverProps:;close,setFocus"],"arcgis-ramp-color":[()=>import("./YVWFGK4M.js"),"layout,max,min,stops:"],"arcgis-ramp-color-break":[()=>import("./MINFRX4Y.js"),"layout,max,min,stops:"],"arcgis-ramp-opacity":[()=>import("./YVCGEEMG.js"),"fillColor,layout,max,min,stops:"],"arcgis-slider":[()=>import("./OYXJA2QF.js"),"activeValue:,allowValuesOverlap,autoDestroyDisabled,disabled,fillPlacement,fullRangeMax,fullRangeMin,keyboardLargeStep,labelFormatter:,layout,max,messageOverrides:,messages:,min,mirrored,popoverLabel,popoverPlacement,precision,rangeLabelsEditingEnabled,rangeLabelsPlacement,segmentsDraggingDisabled,showRangeLabels,steps,valueLabelsDisplay,valueLabelsEditingEnabled,valueLabelsPlacement,values;destroy"],"arcgis-slider-input":[()=>import("./AGGCAE6P.js"),"disabled,flipLabels,label,max,min,scale,step,unitsLabel,value,withSteppers"],"arcgis-ticks":[()=>import("./BDF4ZLUF.js"),"interactive,interpolationExponent,labelFormatter:,labelPlacement,layout,max,min,mirrored,mode,showBaseline,showLabels,values"],"arcgis-unique-values-list":[()=>import("./OTXMT4H5.js"),"_messages:,fieldName,layer:,maxHeight,multiple,numberFormatOptions:,partialUniqueValues,selectedValues:,showFilterLength,sortBy,uniqueValues:,view:,visualizationSource;getUniqueValues,setFocus"]});s({resourcesUrl:import.meta.url});var a=new CSSStyleSheet;a.replaceSync("@layer{:not([hydrated]):is(arcgis-ckeditor5,arcgis-ckeditor5-popover,arcgis-color-input,arcgis-coordinate-system-picker,arcgis-coordinate-system-picker-tree,arcgis-field-info,arcgis-field-pick-list,arcgis-histogram,arcgis-label-input,arcgis-picker-input,arcgis-ramp-color,arcgis-ramp-color-break,arcgis-ramp-opacity,arcgis-slider,arcgis-slider-input,arcgis-ticks,arcgis-unique-values-list){visibility:hidden}:root{--arcgis-ckeditor5-initial-height: 30vh;--arcgis-ckeditor5-max-width: 35vw;--arcgis-ckeditor5-mentions-max-width: 33vw;--arcgis-coordinate-system-picker-height: 45vh;--arcgis-coordinate-system-picker-min-width: 20rem;--arcgis-coordinate-system-picker-max-width: 27rem}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,a];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,i)
@@ -33371,7 +33371,7 @@ $&
33371
33371
  };
33372
33372
  execute(e, t, n, o) {
33373
33373
  this.editor.model.document.selection, this.addedPopver || (this.popover.referenceElement = o, this.popover.addEventListener("calcitePopoverClose", (() => {
33374
- o.classList.remove("ck-on"), o.classList.add("ck-off"), t(!1);
33374
+ o.classList.remove("ck-on"), o.classList.add("ck-off"), o.removeAttribute("data-cke-tooltip-disabled"), t(!1);
33375
33375
  })), document.body.appendChild(this.popover), this.addedPopver = !0), e || (this.setPickerView(n), this.setColorState(n), window.setTimeout((() => {
33376
33376
  this.popover.setFocus();
33377
33377
  }), 100)), t(!e);
@@ -79,6 +79,7 @@ export abstract class ArcgisColorInput extends LitElement {
79
79
  accessor storageId: string;
80
80
  /** Close the component. */
81
81
  close(): Promise<void>;
82
+ isOpen(): boolean;
82
83
  /** Set focus on the component. */
83
84
  setFocus(): Promise<void>;
84
85
  /** Emitted when the color has changed. */
@@ -17,7 +17,7 @@ function y(l, e) {
17
17
  const S = u`:host,arcgis-picker-input{display:block}.color-picker-container{display:flex;flex-direction:column}.color-picker{--calcite-color-border-1: transparent;overflow-x:hidden}.preview-swatch{width:100%;height:24px}.recent-colors-container{align-items:center;border:var(--calcite-border-width-sm) solid var(--calcite-color-border-input);display:flex;gap:var(--calcite-space-sm);height:32px;padding:0 var(--calcite-space-xs);transition:outline-offset .1s ease-in-out,outline-color .1s ease-in-out}.preview-recent-swatch{cursor:pointer}.recent-colors-container:focus,.preview-recent-swatch:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-brand);outline-offset:var(--calcite-border-width-md)}.empty-swatch{cursor:default}.end-action{display:flex}`;
18
18
  class I extends m {
19
19
  constructor() {
20
- super(), this._messages = k(), this.actionEl = w(), this.setRecentColorElement = (e) => (o) => {
20
+ super(), this._messages = k(), this.actionEl = w(), this.open = !1, this.setRecentColorElement = (e) => (o) => {
21
21
  switch (e) {
22
22
  case 1:
23
23
  this.recentColor1El = o;
@@ -42,6 +42,9 @@ class I extends m {
42
42
  async setFocus() {
43
43
  await this.inlineInputEl?.setFocus();
44
44
  }
45
+ isOpen() {
46
+ return this.open;
47
+ }
45
48
  load() {
46
49
  this.setRecentColorsFromStorage();
47
50
  }
@@ -49,7 +52,7 @@ class I extends m {
49
52
  super.disconnectedCallback(), this.removeTooltip();
50
53
  }
51
54
  async handleOpen() {
52
- await this.colorPickerEl?.setFocus(), this.arcgisPickerOpen.emit(), this.arcgisColorInputPopoverOpen.emit();
55
+ await this.colorPickerEl?.setFocus(), this.open = !0, this.arcgisPickerOpen.emit(), this.arcgisColorInputPopoverOpen.emit();
53
56
  }
54
57
  setInlineInputRef(e) {
55
58
  this.inlineInputEl = e;
@@ -107,7 +110,7 @@ class I extends m {
107
110
  $(this.storageId, t), this.recentColors = t, this.arcgisInternalStoredColor.emit();
108
111
  }
109
112
  handleClose(e) {
110
- e.stopPropagation(), this.storeRecentColorToStorage(this.colorPickerEl?.value), this.arcgisPickerClose.emit(this.colorPickerEl?.value), this.arcgisColorInputPopoverClose.emit(this.colorPickerEl?.value);
113
+ e.stopPropagation(), this.storeRecentColorToStorage(this.colorPickerEl?.value), this.open = !1, this.arcgisPickerClose.emit(this.colorPickerEl?.value), this.arcgisColorInputPopoverClose.emit(this.colorPickerEl?.value);
111
114
  }
112
115
  addTooltip(e) {
113
116
  this.removeTooltip(), this.tooltipContainerEl = document.createElement("div"), g(s`<calcite-tooltip .placement=${e.placement ?? "auto"} .referenceElement=${e.referenceElement} overlay-positioning=fixed open>${e.innerHTML}</calcite-tooltip>`, this.tooltipContainerEl), document.body.append(this.tooltipContainerEl);
@@ -144,6 +144,7 @@ export abstract class ArcgisCoordinateSystemPicker extends LitElement {
144
144
  noMatchesFound: string;
145
145
  noResults: string;
146
146
  searchPlaceholder: string;
147
+ searchPlaceholderLong: string;
147
148
  custom: string;
148
149
  } & T9nMeta<{
149
150
  "ARC (equal arc-second)": string;
@@ -280,6 +281,7 @@ export abstract class ArcgisCoordinateSystemPicker extends LitElement {
280
281
  noMatchesFound: string;
281
282
  noResults: string;
282
283
  searchPlaceholder: string;
284
+ searchPlaceholderLong: string;
283
285
  custom: string;
284
286
  }>;
285
287
  /**
@@ -59,6 +59,7 @@ export abstract class ArcgisFieldInfo extends LitElement {
59
59
  phoneNumber: string;
60
60
  emailAddress: string;
61
61
  dateAndTime: string;
62
+ url: string;
62
63
  };
63
64
  statistics: {
64
65
  numberOfValues: string;
@@ -140,6 +141,7 @@ export abstract class ArcgisFieldInfo extends LitElement {
140
141
  phoneNumber: string;
141
142
  emailAddress: string;
142
143
  dateAndTime: string;
144
+ url: string;
143
145
  };
144
146
  statistics: {
145
147
  numberOfValues: string;
@@ -373,6 +373,8 @@ class ge extends W {
373
373
  if (e.codedValues)
374
374
  return "string";
375
375
  switch (e.layerField.valueType) {
376
+ // @ts-ignore - waiting on typings...
377
+ case "url":
376
378
  case "binary":
377
379
  case "description":
378
380
  case "location-or-place-name":