@arcgis/charts-components 6.0.0-next.13 → 6.0.0-next.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{FKES55PK.js → 23OBJJMY.js} +1 -1
- package/dist/cdn/{SFX2QCRS.js → 2IIC5M7T.js} +1 -1
- package/dist/cdn/{EYDYH5BT.js → 2IL6SDH6.js} +1 -1
- package/dist/cdn/{TG37UNR7.js → 2MLNSI3G.js} +1 -1
- package/dist/cdn/{G5VMZ4VH.js → 3FV3RKYL.js} +1 -1
- package/dist/cdn/{PBWXTUZG.js → 3GALMNH3.js} +1 -1
- package/dist/cdn/{A2PYAGE3.js → 3MDBYWXW.js} +1 -1
- package/dist/cdn/{XF7SJJ6J.js → 3RHVJYAV.js} +1 -1
- package/dist/cdn/{RZY26VLW.js → 4BPMPV3W.js} +1 -1
- package/dist/cdn/{HVNTD3Q6.js → 4F5FRRXP.js} +1 -1
- package/dist/cdn/{5BRIW4JG.js → 4KT3XIUS.js} +1 -1
- package/dist/cdn/{GOIPGQBY.js → 4KY3CIOE.js} +1 -1
- package/dist/cdn/{4CUMUAAH.js → 4YOBDCTR.js} +1 -1
- package/dist/cdn/{X5TWBBO6.js → 5766ZRIW.js} +1 -1
- package/dist/cdn/{GBX7JKXH.js → 5TNFHQIR.js} +1 -1
- package/dist/cdn/{Y7P2RW24.js → 5WK7EKWG.js} +1 -1
- package/dist/cdn/{EOTR4BKX.js → 626JGTRZ.js} +1 -1
- package/dist/cdn/{SBJXOYLB.js → 6A57VCEB.js} +1 -1
- package/dist/cdn/{FYQGRCBG.js → 7MQQTEGS.js} +1 -1
- package/dist/cdn/{IVTDNZSZ.js → A4LP6267.js} +1 -1
- package/dist/cdn/{KK445MLC.js → ANXI7X33.js} +1 -1
- package/dist/cdn/{TU3OFQPY.js → APLXZUSH.js} +1 -1
- package/dist/cdn/{HVJPAZGC.js → AY7RTY3L.js} +1 -1
- package/dist/cdn/{VJMXXMFI.js → B5PJAELA.js} +1 -1
- package/dist/cdn/{GAKY2U56.js → BAJ6SAPB.js} +1 -1
- package/dist/cdn/{R53Q2XGQ.js → BZYCRR4Z.js} +1 -1
- package/dist/cdn/{5BKFFWXV.js → CCOXNEXP.js} +19 -19
- package/dist/cdn/{2WQNU554.js → CEUNAF3K.js} +1 -1
- package/dist/cdn/{SERDXBEF.js → CRVLFI7I.js} +1 -1
- package/dist/cdn/{WIXK4A6U.js → CWEJAEUV.js} +1 -1
- package/dist/cdn/{OZSHGMU6.js → D7HVHYVY.js} +1 -1
- package/dist/cdn/{5ZUY5423.js → DDFYNCKU.js} +1 -1
- package/dist/cdn/{XTYXEE3J.js → E2Q5PPYX.js} +1 -1
- package/dist/cdn/{SOSQGEYI.js → EHYUK7VN.js} +1 -1
- package/dist/cdn/{BNNHHDU7.js → EQL6DTXS.js} +1 -1
- package/dist/cdn/{FM6F6ZYW.js → EXFLYGOA.js} +1 -1
- package/dist/cdn/{IBZIYVHR.js → FEEBSCRS.js} +1 -1
- package/dist/cdn/{D6WOKCOW.js → FMMCLXTF.js} +1 -1
- package/dist/cdn/{TTV7DGFQ.js → FXFRPOKB.js} +1 -1
- package/dist/cdn/{OYUTQX4U.js → GJWYUOWB.js} +1 -1
- package/dist/cdn/{OA24BIJ5.js → GWUQBXSL.js} +1 -1
- package/dist/cdn/{BRTTYFXT.js → HDMJM556.js} +1 -1
- package/dist/cdn/{Y67ETZ3T.js → HFIOYGNL.js} +1 -1
- package/dist/cdn/{HZTTUPNN.js → HXTUTTDW.js} +1 -1
- package/dist/cdn/{INILFUNG.js → IBKFWQPH.js} +1 -1
- package/dist/cdn/{RPB56XMC.js → IPH2HEQ3.js} +2 -2
- package/dist/cdn/{H5VCT3XP.js → IVX5JR6I.js} +1 -1
- package/dist/cdn/IYVGK242.js +4 -0
- package/dist/cdn/{DMOEIZNS.js → IZBXJRRJ.js} +1 -1
- package/dist/cdn/{5JK6VH6K.js → JASKGKES.js} +1 -1
- package/dist/cdn/{RWR5WVPG.js → K5HHOIAF.js} +1 -1
- package/dist/cdn/{ADQTDPLB.js → K6XIY66O.js} +1 -1
- package/dist/cdn/{HNXEJNF2.js → KDFM2DN3.js} +1 -1
- package/dist/cdn/{XJUMOE6X.js → KIDSF6WN.js} +1 -1
- package/dist/cdn/KXU3XKM2.js +2 -0
- package/dist/cdn/{6RWOVGNO.js → KYI6HDQF.js} +1 -1
- package/dist/cdn/{5OYAVQQE.js → MFTD2HWQ.js} +1 -1
- package/dist/cdn/{ZCEZ3K6F.js → MJD7DA5G.js} +1 -1
- package/dist/cdn/{AS2IRRXE.js → NKLK62MJ.js} +1 -1
- package/dist/cdn/{OO25ZLEY.js → NZOXMPKS.js} +1 -1
- package/dist/cdn/{XTGFTMVI.js → O6ZKYG4T.js} +1 -1
- package/dist/cdn/{F3RF7JPT.js → O7O5YDT5.js} +1 -1
- package/dist/cdn/{OQ2DAU4S.js → OI3WFXG7.js} +1 -1
- package/dist/cdn/{V35YA4VJ.js → OUM277XS.js} +1 -1
- package/dist/cdn/{H3ZHPXRC.js → PFTKPGYF.js} +1 -1
- package/dist/cdn/{MVIMCR4O.js → PH7PXDCI.js} +1 -1
- package/dist/cdn/{3MXANTL7.js → PLZJ46HI.js} +1 -1
- package/dist/cdn/{WAHJIOS5.js → PVE3JDGX.js} +1 -1
- package/dist/cdn/{JYLCRNMW.js → QQVHG5TF.js} +1 -1
- package/dist/cdn/{G37AUFZF.js → QROPJ6DR.js} +1 -1
- package/dist/cdn/{ZK3ZCNLZ.js → QYJMNNOD.js} +1 -1
- package/dist/cdn/{UUEYN7QY.js → RF37N4VO.js} +1 -1
- package/dist/cdn/{33LWKOPD.js → RQDYFGOX.js} +1 -1
- package/dist/cdn/{TFWCYDKN.js → RUGYC5G2.js} +1 -1
- package/dist/cdn/{I6SVVJK3.js → SBNA2XJS.js} +1 -1
- package/dist/cdn/{NCPNWQMP.js → SH5NIXPR.js} +1 -1
- package/dist/cdn/{7CKN3OHT.js → SHHA3DMQ.js} +1 -1
- package/dist/cdn/{GRGXX2Z5.js → SN2JSWO5.js} +1 -1
- package/dist/cdn/{62FX3J5X.js → SSPQJJ5K.js} +1 -1
- package/dist/cdn/{HXMLK3YJ.js → T4JWI7IU.js} +1 -1
- package/dist/cdn/{GRMO7AJJ.js → T5JI4I3G.js} +1 -1
- package/dist/cdn/{4MCM2HLB.js → TA72F3YR.js} +1 -1
- package/dist/cdn/{MXA4EHKB.js → TD3GMZRT.js} +1 -1
- package/dist/cdn/{7GF7IASO.js → TONXC5MT.js} +1 -1
- package/dist/cdn/{6QBSP4KD.js → TPOYE44W.js} +1 -1
- package/dist/cdn/{NUTUTE7W.js → UBJQCDOL.js} +1 -1
- package/dist/cdn/{CI5EMPAM.js → USS4BS7V.js} +1 -1
- package/dist/cdn/{REHZ6CP3.js → VMX2EPNH.js} +1 -1
- package/dist/cdn/{V7SVV26H.js → VQ7NP3P7.js} +1 -1
- package/dist/cdn/{EPY6V4CJ.js → WFTQTZE4.js} +3 -3
- package/dist/cdn/{XS33HEQ4.js → WS365KG2.js} +1 -1
- package/dist/cdn/{ESXR5BLH.js → X4EOEOKN.js} +1 -1
- package/dist/cdn/{D6GRNBZP.js → XWBETWPT.js} +1 -1
- package/dist/cdn/{HHHAJL7M.js → YGBETAHO.js} +1 -1
- package/dist/cdn/{NHJPAIVY.js → YJS7H3HY.js} +1 -1
- package/dist/cdn/{FNXREQOE.js → YOVZ4RVH.js} +1 -1
- package/dist/cdn/{DEXP6J3O.js → YVGYDZ4Y.js} +1 -1
- package/dist/cdn/{DRUWV4QU.js → YWBS5O3M.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +4 -4
- package/dist/cdn/PBQRZBQM.js +0 -2
- package/dist/cdn/YF6ML4P6.js +0 -4
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{k as r,s,t as i,w as o}from"./
|
|
2
|
+
import{k as r,s,t as i,w as o}from"./IYVGK242.js";var u=s(class extends i{constructor(){super(...arguments),this.key=r}render(t,e){return this.key=t,e}update(t,[e,m]){return e!==this.key&&(o(t),this.key=e),m}});export{u as a};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
var J=globalThis,Y=J.ShadowRoot&&(J.ShadyCSS===void 0||J.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,vt=Symbol(),Mt=new WeakMap,I=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==vt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Y&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=Mt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Mt.set(e,t))}return t}toString(){return this.cssText}},kt=o=>new I(typeof o=="string"?o:o+"",void 0,vt),_e=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((s,n,r)=>s+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+o[r+1],o[0]);return new I(e,o,vt)},jt=(o,t)=>{if(Y)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let s=document.createElement("style"),n=J.litNonce;n!==void 0&&s.setAttribute("nonce",n),s.textContent=e.cssText,o.appendChild(s)}},Et=Y?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return kt(e)})(o):o;var{is:Ce,defineProperty:we,getOwnPropertyDescriptor:Oe,getOwnPropertyNames:Te,getOwnPropertySymbols:Se,getPrototypeOf:Pe}=Object,X=globalThis,Ht=X.trustedTypes,Ne=Ht?Ht.emptyScript:"",xe=X.reactiveElementPolyfillSupport,M=(o,t)=>o,Z={toAttribute(o,t){switch(t){case Boolean:o=o?Ne:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},k=(o,t)=>!Ce(o,t),Vt={attribute:!0,type:String,converter:Z,reflect:!1,useDefault:!1,hasChanged:k};Symbol.metadata??=Symbol("metadata"),X.litPropertyMetadata??=new WeakMap;var b=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Vt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let s=Symbol(),n=this.getPropertyDescriptor(t,s,e);n!==void 0&&we(this.prototype,t,n)}}static getPropertyDescriptor(t,e,s){let{get:n,set:r}=Oe(this.prototype,t)??{get(){return this[e]},set(i){this[e]=i}};return{get:n,set(i){let a=n?.call(this);r?.call(this,i),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Vt}static _$Ei(){if(this.hasOwnProperty(M("elementProperties")))return;let t=Pe(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(M("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(M("properties"))){let e=this.properties,s=[...Te(e),...Se(e)];for(let n of s)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[s,n]of e)this.elementProperties.set(s,n)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let n=this._$Eu(e,s);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let n of s)e.unshift(Et(n))}else t!==void 0&&e.push(Et(t));return e}static _$Eu(t,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return jt(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){let s=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,s);if(n!==void 0&&s.reflect===!0){let r=(s.converter?.toAttribute!==void 0?s.converter:Z).toAttribute(e,s.type);this._$Em=t,r==null?this.removeAttribute(n):this.setAttribute(n,r),this._$Em=null}}_$AK(t,e){let s=this.constructor,n=s._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let r=s.getPropertyOptions(n),i=typeof r.converter=="function"?{fromAttribute:r.converter}:r.converter?.fromAttribute!==void 0?r.converter:Z;this._$Em=n;let a=i.fromAttribute(e,r.type);this[n]=a??this._$Ej?.get(n)??a,this._$Em=null}}requestUpdate(t,e,s,n=!1,r){if(t!==void 0){let i=this.constructor;if(n===!1&&(r=this[t]),s??=i.getPropertyOptions(t),!((s.hasChanged??k)(r,e)||s.useDefault&&s.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:n,wrapped:r},i){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),r!==!0||i!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),n===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,r]of this._$Ep)this[n]=r;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[n,r]of s){let{wrapped:i}=r,a=this[n];i!==!0||this._$AL.has(n)||a===void 0||this.C(n,void 0,r,a)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(s=>s.hostUpdate?.()),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};b.elementStyles=[],b.shadowRootOptions={mode:"open"},b[M("elementProperties")]=new Map,b[M("finalized")]=new Map,xe?.({ReactiveElement:b}),(X.reactiveElementVersions??=[]).push("2.1.2");var bt=globalThis,zt=o=>o,tt=bt.trustedTypes,Bt=tt?tt.createPolicy("lit-html",{createHTML:o=>o}):void 0,At="$lit$",A=`lit$${Math.random().toFixed(9).slice(2)}$`,_t="?"+A,De=`<${_t}>`,O=document,H=()=>O.createComment(""),V=o=>o===null||typeof o!="object"&&typeof o!="function",Ct=Array.isArray,Qt=o=>Ct(o)||typeof o?.[Symbol.iterator]=="function",$t=`[
|
|
3
|
+
\f\r]`,j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Wt=/-->/g,Ft=/>/g,C=RegExp(`>|${$t}(?:([^\\s"'>=/]+)(${$t}*=${$t}*(?:[^
|
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),qt=/'/g,Gt=/"/g,Jt=/^(?:script|style|textarea|title)$/i,wt=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),fs=wt(1),ms=wt(2),ys=wt(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Kt=new WeakMap,w=O.createTreeWalker(O,129);function Yt(o,t){if(!Ct(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Bt!==void 0?Bt.createHTML(t):t}var Zt=(o,t)=>{let e=o.length-1,s=[],n,r=t===2?"<svg>":t===3?"<math>":"",i=j;for(let a=0;a<e;a++){let c=o[a],l,u,h=-1,m=0;for(;m<c.length&&(i.lastIndex=m,u=i.exec(c),u!==null);)m=i.lastIndex,i===j?u[1]==="!--"?i=Wt:u[1]!==void 0?i=Ft:u[2]!==void 0?(Jt.test(u[2])&&(n=RegExp("</"+u[2],"g")),i=C):u[3]!==void 0&&(i=C):i===C?u[0]===">"?(i=n??j,h=-1):u[1]===void 0?h=-2:(h=i.lastIndex-u[2].length,l=u[1],i=u[3]===void 0?C:u[3]==='"'?Gt:qt):i===Gt||i===qt?i=C:i===Wt||i===Ft?i=j:(i=C,n=void 0);let v=i===C&&o[a+1].startsWith("/>")?" ":"";r+=i===j?c+De:h>=0?(s.push(l),c.slice(0,h)+At+c.slice(h)+A+v):c+A+(h===-2?a:v)}return[Yt(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},z=class o{constructor({strings:t,_$litType$:e},s){let n;this.parts=[];let r=0,i=0,a=t.length-1,c=this.parts,[l,u]=Zt(t,e);if(this.el=o.createElement(l,s),w.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=w.nextNode())!==null&&c.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(At)){let m=u[i++],v=n.getAttribute(h).split(A),_=/([.?@])?(.*)/.exec(m);c.push({type:1,index:r,name:_[2],strings:v,ctor:_[1]==="."?st:_[1]==="?"?ot:_[1]==="@"?nt:S}),n.removeAttribute(h)}else h.startsWith(A)&&(c.push({type:6,index:r}),n.removeAttribute(h));if(Jt.test(n.tagName)){let h=n.textContent.split(A),m=h.length-1;if(m>0){n.textContent=tt?tt.emptyScript:"";for(let v=0;v<m;v++)n.append(h[v],H()),w.nextNode(),c.push({type:2,index:++r});n.append(h[m],H())}}}else if(n.nodeType===8)if(n.data===_t)c.push({type:2,index:r});else{let h=-1;for(;(h=n.data.indexOf(A,h+1))!==-1;)c.push({type:7,index:r}),h+=A.length-1}r++}}static createElement(t,e){let s=O.createElement("template");return s.innerHTML=t,s}};function T(o,t,e=o,s){if(t===f)return t;let n=s!==void 0?e._$Co?.[s]:e._$Cl,r=V(t)?void 0:t._$litDirective$;return n?.constructor!==r&&(n?._$AO?.(!1),r===void 0?n=void 0:(n=new r(o),n._$AT(o,e,s)),s!==void 0?(e._$Co??=[])[s]=n:e._$Cl=n),n!==void 0&&(t=T(o,n._$AS(o,t.values),n,s)),t}var et=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:s}=this._$AD,n=(t?.creationScope??O).importNode(e,!0);w.currentNode=n;let r=w.nextNode(),i=0,a=0,c=s[0];for(;c!==void 0;){if(i===c.index){let l;c.type===2?l=new D(r,r.nextSibling,this,t):c.type===1?l=new c.ctor(r,c.name,c.strings,this,t):c.type===6&&(l=new rt(r,this,t)),this._$AV.push(l),c=s[++a]}i!==c?.index&&(r=w.nextNode(),i++)}return w.currentNode=O,n}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},D=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,n){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=T(this,t,e),V(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==f&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Qt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&V(this._$AH)?this._$AA.nextSibling.data=t:this.T(O.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:s}=t,n=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=z.createElement(Yt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===n)this._$AH.p(e);else{let r=new et(n,this),i=r.u(this.options);r.p(e),this.T(i),this._$AH=r}}_$AC(t){let e=Kt.get(t.strings);return e===void 0&&Kt.set(t.strings,e=new z(t)),e}k(t){Ct(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,n=0;for(let r of t)n===e.length?e.push(s=new o(this.O(H()),this.O(H()),this,this.options)):s=e[n],s._$AI(r),n++;n<e.length&&(this._$AR(s&&s._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let s=zt(t).nextSibling;zt(t).remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},S=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,n,r){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=d}_$AI(t,e=this,s,n){let r=this.strings,i=!1;if(r===void 0)t=T(this,t,e,0),i=!V(t)||t!==this._$AH&&t!==f,i&&(this._$AH=t);else{let a=t,c,l;for(t=r[0],c=0;c<r.length-1;c++)l=T(this,a[s+c],e,c),l===f&&(l=this._$AH[c]),i||=!V(l)||l!==this._$AH[c],l===d?t=d:t!==d&&(t+=(l??"")+r[c+1]),this._$AH[c]=l}i&&!n&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},st=class extends S{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},ot=class extends S{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},nt=class extends S{constructor(t,e,s,n,r){super(t,e,s,n,r),this.type=5}_$AI(t,e=this){if((t=T(this,t,e,0)??d)===f)return;let s=this._$AH,n=t===d&&s!==d||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==d&&(s===d||n);n&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},rt=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){T(this,t)}},Xt={M:At,P:A,A:_t,C:1,L:Zt,R:et,D:Qt,V:T,I:D,H:S,N:ot,U:nt,B:st,F:rt},Le=bt.litHtmlPolyfillSupport;Le?.(z,D),(bt.litHtmlVersions??=[]).push("3.3.2");var it=(o,t,e)=>{let s=e?.renderBefore??t,n=s._$litPart$;if(n===void 0){let r=e?.renderBefore??null;s._$litPart$=n=new D(t.insertBefore(H(),r),r,void 0,e??{})}return n._$AI(o),n};var Ot=globalThis,E=class extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=it(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return f}};E._$litElement$=!0,E.finalized=!0,Ot.litElementHydrateSupport?.({LitElement:E});var Re=Ot.litElementPolyfillSupport;Re?.({LitElement:E});(Ot.litElementVersions??=[]).push("4.2.2");var te=new Set,ee;var se=o=>typeof o=="string"?o:"el"in o?o.el.localName:"localName"in o?o.localName:o.declaredClass,Ps=(o,t,e,s)=>{let n=se(t);if(s?.once){let i=`${o}${n}${e}`;if(te.has(i))return;te.add(i)}let r;if(s?.detail){r={};for(let[i,a]of Object.entries(s.detail))if((typeof a=="object"||typeof a=="function")&&a!==null){let c=new WeakRef(a);Object.defineProperty(r,i,{enumerable:!0,get(){return c.deref()}})}else r[i]=a;ee?.log.interceptors?.forEach(i=>i(o,n,e,r)),console[o](`[${n}]: ${e}`,r)}else ee?.log.interceptors?.forEach(i=>i(o,n,e)),console[o](`[${n}]: ${e}`)},oe=o=>{let t=`[${se(o)}] `;return e=>{let s=e instanceof Error&&e.message?e:new Error(String(e));s.message=`${t}${s.message}`,setTimeout(()=>{throw e})}};var p=(o,t,...e)=>{try{return o?.call(t,...e)}catch(s){console.error(s,o)}},B=async(o,t,...e)=>{try{return await o?.call(t,...e)}catch(s){console.error(s,o)}};var F=Symbol.for("controller"),Ue=o=>typeof o=="object"&&o!==null&&(F in o||"hostConnected"in o||"hostDisconnected"in o||"hostUpdate"in o||"hostUpdated"in o),Ds=o=>typeof o?.then=="function";var W,N=o=>{W!==o&&(W=o,queueMicrotask(()=>W===o?W=void 0:0))},q=o=>W,P=[],ct=o=>{if(o===void 0){P=[];return}let t=P.indexOf(o);P=t===-1?[...P,o]:P.slice(0,t+1),queueMicrotask(()=>P=[])},ne=()=>P,L,Ls=o=>{L!==o&&(L=o,queueMicrotask(()=>L===o?L=void 0:0))},Ie=()=>{let o=L;return L=void 0,o},re=async(o,t)=>{let e=lt(o);if(e===void 0)return o;if(await e.ready,typeof t=="function"){let s=e.watchExports(n=>t(n,s))}return e.exports},ie=async o=>{let t=lt(o);return await t.ready,t},lt=o=>{let e=q().manager.X(o);if(e!==void 0)return e;if(Ue(o))return o;let s=Ie();if(s!==void 0)return s},at=!1,Rs=o=>{at=!0;try{return o()}finally{at=!1}};var Me=(o,t,e)=>{let s=Object.keys(o),n=s.length;R===void 0&&queueMicrotask(U),R??=new Map;let r=R.get(o);return r===void 0&&(r={callbacks:[],keyCount:n},R.set(o,r)),r.keyCount!==n&&(r.callbacks.forEach(i=>i(s)),r.callbacks=[],r.keyCount=n),r.callbacks.push(i=>{let a=l=>p(t,null,l),c=i[n];c===void 0?a(void 0):o[c]===e?a(c):a(void 0)}),e},R,U=()=>{R?.forEach(({callbacks:o},t)=>{let e=Object.keys(t);o.forEach(s=>s(e))}),R=void 0},ke=(o,t,e)=>{let s=o.manager;return s.V!==d&&s.V!==e&&s.S(void 0,void 0),s.T.length===0&&queueMicrotask(()=>s.S(void 0,void 0)),s.V=e,s.T.push((n,r)=>p(t,void 0,e===r?n:void 0)),e},je=(o=[q(),...ne()],t,e)=>{let s=Array.isArray(o)?o:[o],n=s.length+1,r=i=>{n-=1,i!==void 0&&(n=Math.min(n,0)),n===0&&t(i)};s.forEach(i=>Me(i,a=>r(a===void 0?void 0:{key:a,host:i,isReactive:!1}),e));for(let i of s)if("manager"in i&&i.manager.component===i){ke(i,a=>r(a===void 0?void 0:{key:a,host:i,isReactive:!0}),e);break}return e},He=(o="",t={},e=q())=>{let s={emit:n=>{o===""&&U();let r=new CustomEvent(o,{detail:n,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(r),r}};return o===""&&je(void 0,n=>o=n.key,s),s},Ve=He.bind(null,""),le;le=F;var Tt=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#n=[],this.#r=[],this.#c=[],this.#l=[],this.#d=[],this.#i=[],this.#p=!1,this.P=Promise.withResolvers(),this.connectedCalled=!1,this.loadedCalled=!1,this[le]=!0,this.#h=[];let e=this,s=t??q(new.target.name);e.#o=s,e.ready=e.P.promise,e.#a=ce(e),e.component=s,e.#o.addController(e),e.#o.manager===void 0||(ct(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#n;#r;#c;#l;#d;#i;#p;#o;catchUpLifecycle(){let{manager:t}=this.#o;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#p&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(oe(this.#o))}#a;get exports(){return this.#a}set exports(t){let e=this.#a;e!==t&&(this.#a=t,this.#h.forEach(p),this.connectedCalled&&this.O!==!1&&this.#o.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#a=e?ce(t):t,this.#h.forEach(p)}#h;watchExports(t){let e=()=>t(this.#a);return this.#h.push(e),()=>{this.#h.splice(this.#h.indexOf(e),1)}}get use(){return N(this.#o),re}get useRef(){return N(this.#o),ie}get useRefSync(){return N(this.#o),lt}controllerRemoved(){this.#o.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this.#t.push(t)}onDisconnected(t){this.#e.push(t)}onLoad(t){this.#s.push(t)}onLoaded(t){this.#n.push(t)}onUpdate(t){this.#r.push(t)}onUpdated(t){this.#c.push(t)}onDestroy(t){this.#l.push(t)}onLifecycle(t){this.#d.push(t),this.connectedCalled&&this.#o.el.isConnected&&this.#u(t)}triggerConnected(){let t=this;t.hostConnected&&p(t.hostConnected,t),t.#t.forEach(p),t.triggerLifecycle(),t.connectedCalled=!0}triggerDisconnected(){let t=this;t.hostDisconnected&&p(t.hostDisconnected,t),t.#e.forEach(p),t.#i.forEach(p),t.#i=[]}async triggerLoad(){if(this.#p)return;this.#p=!0;let t=this;t.hostLoad&&await B(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(B)),this.P.resolve(this.#a)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&p(this.hostLoaded,this),this.#n.forEach(p),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&p(this.hostUpdate,this,t),this.#r.forEach(ae,t)}triggerUpdated(t){this.hostUpdated&&p(this.hostUpdated,this,t),this.#c.forEach(ae,t)}triggerDestroy(){this.hostDestroy&&p(this.hostDestroy,this),this.#l.forEach(p)}triggerLifecycle(){this.hostLifecycle&&this.#u(()=>this.hostLifecycle()),this.#d.forEach(this.#u,this)}#u(t){N(this.#o);let e=p(t);(Array.isArray(e)?e:[e]).forEach(n=>{typeof n=="function"?this.#i.push(n):typeof n=="object"&&typeof n.remove=="function"&&this.#i.push(n.remove)})}};function ae(o){p(o,void 0,this)}var ce=o=>{if(typeof o!="object"&&typeof o!="function"||o===null)return o;let t={get(s,n,r){if(!((n==="exports"||n==="_exports")&&n in s&&s[n]===e)&&(n in s||n in Promise.prototype||typeof n=="symbol"))return typeof s=="function"?s[n]:Reflect.get(s,n,r)}},e=new Proxy(o,t);return e};var he=Tt;var{I:ze}=Xt,de=o=>o;var ht=o=>o.strings===void 0,pe=()=>document.createComment(""),Bs=(o,t,e)=>{let s=o._$AA.parentNode,n=t===void 0?o._$AB:t._$AA;if(e===void 0){let r=s.insertBefore(pe(),n),i=s.insertBefore(pe(),n);e=new ze(r,i,o,o.options)}else{let r=e._$AB.nextSibling,i=e._$AM,a=i!==o;if(a){let c;e._$AQ?.(o),e._$AM=o,e._$AP!==void 0&&(c=o._$AU)!==i._$AU&&e._$AP(c)}if(r!==n||a){let c=e._$AA;for(;c!==r;){let l=de(c).nextSibling;de(s).insertBefore(c,n),c=l}}}return e},Ws=(o,t,e=o)=>(o._$AI(t,e),o),Be={},ue=(o,t=Be)=>o._$AH=t,Fs=o=>o._$AH,qs=o=>{o._$AR(),o._$AA.remove()};var y={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},$=o=>(...t)=>({_$litDirective$:o,values:t}),g=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var G=(o,t)=>{let e=o._$AN;if(e===void 0)return!1;for(let s of e)s._$AO?.(t,!1),G(s,t);return!0},dt=o=>{let t,e;do{if((t=o._$AM)===void 0)break;e=t._$AN,e.delete(o),o=t}while(e?.size===0)},fe=o=>{for(let t;t=o._$AM;o=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(o))break;e.add(o),qe(t)}};function We(o){this._$AN!==void 0?(dt(this),this._$AM=o,fe(this)):this._$AM=o}function Fe(o,t=!1,e=0){let s=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(t)if(Array.isArray(s))for(let r=e;r<s.length;r++)G(s[r],!1),dt(s[r]);else s!=null&&(G(s,!1),dt(s));else G(this,o)}var qe=o=>{o.type==y.CHILD&&(o._$AP??=Fe,o._$AQ??=We)},pt=class extends g{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),fe(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(G(this,t),dt(this))}setValue(t){if(ht(this._$Ct))this._$Ct._$AI(t,this);else{let e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}};var so=()=>new Pt,Pt=class{},St=new WeakMap,Nt=$(class extends pt{render(o){return d}update(o,[t]){let e=t!==this.G;return e&&this.G!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.G=t,this.ht=o.options?.host,this.rt(this.ct=o.element)),d}rt(o){if(this.isConnected||(o=void 0),typeof this.G=="function"){let t=this.ht??globalThis,e=St.get(t);e===void 0&&(e=new WeakMap,St.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,o),o!==void 0&&this.G.call(this.ht,o)}else this.G.value=o}get lt(){return typeof this.G=="function"?St.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var ut=o=>o.replace(Ke,(t,e)=>`${e===0?"":"-"}${t.toLowerCase()}`),Ke=/[A-Z]+(?![a-z])|[A-Z]/gu;var yo="randomUUID"in crypto;var Dt=o=>{let t=o;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let e=t;return e.manager?.loadedCalled||(e.J??e._offspring).push(o),(e.I??e._postLoad).promise}return!1},Lt={};function Rt(){}function Ut(o){for(let t of["Associated","Disabled","Reset","StateRestore"]){let e=`orm${t}Callback`;o.prototype["f"+e]=async function(...s){await this.componentOnReady(),(this.el??this).dispatchEvent(new CustomEvent(`luminaF${e}`,{detail:s}))}}}var Qe=(o,t)=>function(s,n){if(!globalThis.customElements)return;let i=(n??s??{}).resourcesUrl;i&&o.setAssetPath(i);for(let[a,[c,l="",u=0]]of Object.entries(t)){if(customElements.get(a))continue;let[h,m,v]=l.split(";"),_=h?h?.split(",").map(Je):void 0,gt=_?.map(([x])=>x),Q=class extends xt{static{this.formAssociated=u===1}static{this.observedAttributes=_?.map(([,x])=>x).filter(x=>x!=="")}static{this.C=gt}static{this.E=m?m?.split(","):void 0}static{this.D=v?.split(",")}static{this.L=a}static{this.K=o}constructor(){!Q.B&&(Q.B=c(),Q.F()),super()}};customElements.define(a,Q)}},ft=Object.defineProperty,Je=o=>{let t=o.split(":");return t.length===1?[t[0],ut(t[0])]:t},Ye=globalThis.HTMLElement??Rt,xt=class extends Ye{constructor(){super(),this.#e={},this.#s=[],this.I=Promise.withResolvers(),this.H=Promise.withResolvers(),this.J=[];let t=this,e=t.constructor;t._offspring=t.J,t._postLoad=t.I,e.C?.forEach(s=>{Object.hasOwn(t,s)&&(t.#e[s]=t[s],delete t[s])}),e.A?t.#n({a:e.A}):e.B.then(async s=>{await e.K.p,t.#n(await(s.default?.then(n=>typeof n=="function"?{a:n}:n)??s))}).catch(s=>{t.H.reject(s),setTimeout(()=>{throw s})})}static{this.lumina=!0}static F(){for(let t of this.C??[])ft(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#e[t]},set(e){this.#e[t]=e}});for(let t of this.E??[])ft(this.prototype,t,{async value(...e){return this.#t||await this.H.promise,await this.#t[t](...e)},configurable:!0});for(let t of this.D??[])ft(this.prototype,t,{value(...e){return this.#t[t](...e)},configurable:!0})}static{Ut(this)}#t;#e;#s;get manager(){return this.#t?.manager}attributeChangedCallback(t,e,s){this.#t?.attributeChangedCallback(t,e,s),this.#t||this.#s.push(t)}connectedCallback(){this.#t?this.#t.connectedCallback?.():queueMicrotask(()=>this.G=Dt(this))}disconnectedCallback(){this.#t?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#n(t){let e=this.constructor,s=e.L,n=this.#e,r=Object.values(t).find(h=>h.L===s),i=`${s}--lazy`,a=r;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);Xe(a),!e.A&&(e.A=r,customElements.define(i,r)),r.N=this;let l=document.createElement(i);r.N=void 0,this.#t=l,this.#e=l,this.#s.forEach(h=>l.attributeChangedCallback(h,null,this.getAttribute(h))),Object.entries(n).forEach(Ze,l);let u=this.isConnected;(u||this.G)&&(l.connectedCallback?.(),u||l.disconnectedCallback())}addController(){}requestUpdate(){this.#t?.requestUpdate()}};function Ze([o,t]){this[o]=t}var Xe=o=>{let t=o.prototype,e=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(n,r){e.setAttribute.call(this.el,n,r)},t.removeAttribute=function(n){e.removeAttribute.call(this.el,n)},t.hasAttribute=function(n){return e.hasAttribute.call(this.el,n)},ft(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var ye=(o,t)=>{let e=t>ts?es:t/ss,s=0,n=setInterval(()=>{s+=e,s>=t&&(clearInterval(n),o())},e);return n},ts=4e3,es=2e3,ss=4;var mt=class extends he{constructor(t){super(t),this.destroyed=!1,this.R=!1,this.V=d,this.T=[],this.#s=new WeakMap,this.#e=t,this.exports=void 0,this.hasDestroy=yt in t&&typeof t.destroy=="function",E.prototype.addController.call(t,{hostConnected:()=>{if(this.destroyed){let e=t.el.localName;throw t.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${yt} prop.`)}this.#t!==void 0&&clearTimeout(this.#t),U();for(let e of t.M)"triggerConnected"in e?e.triggerConnected():p(e.hostConnected,e)},hostDisconnected:()=>{for(let e of t.M)"triggerDisconnected"in e?e.triggerDisconnected():p(e.hostDisconnected,e);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(let e of t.M)"triggerUpdate"in e?e.triggerUpdate(this.Q):p(e.hostUpdate,e,this.Q)},hostUpdated:()=>{for(let e of t.M)"triggerUpdated"in e?e.triggerUpdated(this.Q):p(e.hostUpdated,e,this.Q);this.Q=void 0}}),queueMicrotask(()=>this.R=!0),ct(void 0),N(t)}#t;#e;async destroy(){if(!this.destroyed){this.#e.el.isConnected&&(this.hasDestroy=!1,this.#e.el.remove()),this.#t=void 0,this.destroyed=!0;for(let t of this.#e.M)"triggerDestroy"in t?t.triggerDestroy():p(t.hostDestroy,t);this.#e.M.splice(0)}}U(){if(this.#t!==void 0&&clearTimeout(this.#t),!this.#e.el.isConnected&&!this.#e.autoDestroyDisabled){let t=()=>{this.#e.destroy()};this.#t=ye(t,os)}}S(t,e){let s=this.T;this.V=d,this.T=[],s.forEach(n=>n(t,e))}#s;W(t,e){(typeof e=="object"&&e!==null||typeof e=="function")&&this.#s.set(e,t)}X(t){if(typeof t=="object"&&t!==null||typeof t=="function")return this.#s.get(t)}},os=1e3,yt="autoDestroyDisabled";var ge=$(class extends g{constructor(o){if(super(o),o.type!==y.ATTRIBUTE||o.name!=="class"||o.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter(t=>o[t]).join(" ")+" "}update(o,[t]){if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(let s in t)t[s]&&!this.nt?.has(s)&&this.st.add(s);return this.render(t)}let e=o.element.classList;for(let s of this.st)s in t||(e.remove(s),this.st.delete(s));for(let s in t){let n=!!t[s];n===this.st.has(s)||this.nt?.has(s)||(n?(e.add(s),this.st.add(s)):(e.remove(s),this.st.delete(s)))}return f}});var ve="important",ns=" !"+ve,Ee=$(class extends g{constructor(o){if(super(o),o.type!==y.ATTRIBUTE||o.name!=="style"||o.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((t,e)=>{let s=o[e];return s==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(o,[t]){let{style:e}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let s of this.ft)t[s]==null&&(this.ft.delete(s),s.includes("-")?e.removeProperty(s):e[s]=null);for(let s in t){let n=t[s];if(n!=null){this.ft.add(s);let r=typeof n=="string"&&n.endsWith(ns);s.includes("-")||r?e.setProperty(s,r?n.slice(0,-11):n,r?ve:""):e[s]=n}}return f}});var rs=$(class extends g{constructor(o){if(super(o),o.type!==y.PROPERTY&&o.type!==y.ATTRIBUTE&&o.type!==y.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!ht(o))throw Error("`live` bindings can only contain a single expression")}render(o){return o}update(o,[t]){if(t===f||t===d)return t;let e=o.element,s=o.name;if(o.type===y.PROPERTY){if(t===e[s])return f}else if(o.type===y.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(s))return f}else if(o.type===y.ATTRIBUTE&&e.getAttribute(s)===t+"")return f;return ue(o),t}});var $e=class o extends E{constructor(){super(),this.M=[],this.manager=new mt(this);let t=this,e=t.constructor,s=e.N,n=e.K.o,r=o.prototype.shouldUpdate;t.#n=s?.H??Promise.withResolvers(),t.I=s?.I??Promise.withResolvers(),t.J=s?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=s??t,t.#s=t.enableUpdating,t.enableUpdating=Rt,t.shouldUpdate!==r&&(t.#e=t.shouldUpdate,t.shouldUpdate=r),n&&(t.#t=new Map,e.elementProperties.forEach((i,a)=>t.#t.set(a,n()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),s=this.shadowRootOptions===Lt;return this.K?.commonStyles===void 0||s?e:[this.K.commonStyles,...e]}static createProperty(t,e){let s=typeof e=="number"?e:Array.isArray(e)?e[0]:0,n=Array.isArray(e)?e[1]:void 0,r=n?.hasChanged??k,i={attribute:s&1&&typeof t=="string"?ut(t):!1,reflect:!!(s&2),type:s&4?Boolean:s&8?Number:void 0,state:!!(s&16),readOnly:!!(s&32),noAccessor:!!(s&64),useDefault:!!(s&128),c:!1,...n,hasChanged(a,c){let l=r(a,c);return i.c=l,l}};super.createProperty(t,i)}static getPropertyDescriptor(t,e,s){let n=this.K,r=super.getPropertyDescriptor(t,e,s);return s.d=r,{...r,get(){return n.t?.(this.#t.get(t)),r.get?.call(this)},set(i){let a=this.manager;if(s.readOnly&&!at&&(a.R||a.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${i}"`);r.set.call(this,i??void 0),s.c&&this.#t?.get(t)?.notify(),a.T.length>0&&(U(),a?.S(t,i))}}}static{this.lumina=!0}static{Ut(this)}#t;#e;#s;#n;#r;#c;get elementInternals(){return this.#c??=this.el.attachInternals(),this.#c}connectedCallback(){this.hasAttribute("defer-hydration")||this.#l(!0)}#l(t){let e=this.constructor.K.c?.(()=>this.requestUpdate());this.#r=e;let s=!this.manager.connectedCalled;t&&super.connectedCallback(),s?queueMicrotask(()=>this.#i().catch(n=>{this.#n.reject(n),setTimeout(()=>{throw n})})):e&&this.requestUpdate()}#d(t){try{this.#r.clear(),this.constructor.K.r(this.#r,()=>super.update(t))}catch(e){throw this.#r.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#r?.destroy(),this.#r=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,s=e.shadowRootOptions,r=t??(s===Lt?this.el:this.el.attachShadow(s));if(t)return this.manager.connectedCalled||this.#l(!1),E.prototype.createRenderRoot.call(this),t;if(this.isConnected){let i=r.getRootNode();i.adoptedStyleSheets=[...i.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return r}async#i(){let t=this.el.G??Dt(this.el);t&&await t;let e=[];for(let n of this.M)"triggerLoad"in n?e.push(n.triggerLoad()):e.push(B(n.hostLoad,n));await Promise.all(e),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(n=>n.has(yt)&&this.manager.U()),this.#s(!0),this.performUpdate(),this.I.resolve(),await 0;let s=this.J.filter(n=>!n.manager?.loadedCalled);s.length&&await Promise.allSettled(s.map(async n=>await n.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(let n of this.M)"triggerLoaded"in n?n.triggerLoaded():p(n.hostLoaded,n);this.loaded?.(),this.#n.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#e?.(t)??!0}update(t){this.#r?this.#d(t):super.update(t)}listen(t,e,s){let n=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,n,s),()=>this.el.removeEventListener(t,n,s)))}listenOn(t,e,s,n){let r=s?.bind(this)??s;this.manager.onLifecycle(()=>(t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)))}async componentOnReady(){return await this.#n.promise,this}addController(t){this.M.push(t),!(F in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}};var Ae=o=>{let t,e=n=>{t=new URL(n,globalThis.location?.href||void 0).href},s={...o,getAssetPath(n){let r=new URL(n,t);return r.origin!==globalThis.location?.origin?r.href:r.pathname},setAssetPath:e,customElement(n,r){r.K=s,r.L=n,customElements.get(n)||customElements.define(n,r)}};return e(o.defaultAssetPath),s};var On=o=>typeof o=="object"&&o!=null?ge(o):o,Tn=o=>typeof o=="object"&&o!=null?Ee(o):o;var It=class extends g{#t;#e;constructor(t){super(t);let e=this;this.#e=function(n){return e.#t.call(this,n)}}render(t){return typeof t=="function"?(this.#t=t,Nt(this.#e)):Nt(t)}},Sn=$(It);var Pn=d;var Nn=o=>{let t=document.createElement("div");return it(o,t),t.firstElementChild};var K=Ae({defaultAssetPath:"https://jsdev.arcgis.com/6.0.0-next/charts-components/",hydratedAttribute:"hydrated"}),{customElement:Un,getAssetPath:In,setAssetPath:Mn}=K;K.t=void 0;K.o=void 0;K.c=void 0;K.r=void 0;export{Ds as a,N as b,ct as c,ne as d,Ls as e,Rs as f,_e as g,k as h,fs as i,f as j,d as k,Ps as l,je as m,Ve as n,Tt as o,he as p,Qe as q,y as r,$ as s,g as t,Bs as u,Ws as v,ue as w,Fs as x,qs as y,so as z,Nt as A,$e as B,On as C,Tn as D,Pn as E,Nn as F,K as G,Un as H,In as I};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a as N}from"./P67ON5B6.js";import{a as S,b as $}from"./IBCFYECI.js";import b from"./V35YA4VJ.js";import"./5AKOPV7Z.js";import{a as p}from"./FNXREQOE.js";import a from"./EPY6V4CJ.js";import"./XXO5K6N4.js";import"./WKF53DYD.js";import{k as B}from"./OZSOICXE.js";import"./PBQRZBQM.js";import{A as g,B as E,C as l,F as C,H as L,g as f,i as s,z as M}from"./YF6ML4P6.js";import"./FHN6CIIO.js";import"./AUKJ4CBR.js";import{a as d}from"./BNAX4Y53.js";import"./TIWCUJOG.js";export default $arcgis.t(([,{a:b,f:v,g:h,h:r,i:i}])=>{var m={linkContainer:"link-container",label:"label",mb2:"mb-2"},w=f`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}calcite-block{width:var(--arcgis-charts-config-calcite-block-width, var(--arcgis-charts-config-calcite-block-default-width));height:var(--arcgis-charts-config-calcite-block-height, var(--arcgis-charts-config-calcite-block-default-height));border:0px;-webkit-box-shadow:0 0 0 0;box-shadow:0 0}.label{display:flex;justify-content:space-between}.mb-2{margin-bottom:var(--arcgis-charts-config-margin-minor)}.link-container{display:flex;justify-content:flex-end;margin-top:-.75rem}`,I=class extends E{constructor(){super(...arguments),this._messages=p(),this.commonStrings=p({name:"common",blocking:!0}),this.axisModel=new N,this.minBoundInputElement=M(),this.maxBoundInputElement=M(),this.showLogScaleSwitch=M(),this.defaultMinBound=Number.NaN,this.defaultMaxBound=Number.NaN,this.onMaxBoundsChange=()=>{let t=this.maxBoundInputElement.value?.value,e=this.maxBoundInputElement.value?.status;if(t!==void 0&&t!==""){let n=this.axisModel.getMinBound(),u=this.axisModel.getMaxBound(),o=Number.isFinite(n)?n:this.initialMinBound,x=this.maxBoundInputElement.value?.min===void 0?o:Math.max(this.maxBoundInputElement.value.min,o??Number.NaN),a=Number.parseFloat(t);if(a!==o&&v(a,x,this.maxBoundInputElement.value?.max)){if(a!==u){this.axisModel.setMaxBound(a);let c=this.getAxisBoundsFromStateStore();c&&(c.currMaxBound=a)}e=i.IDLE}else e=i.INVALID}else e=i.IDLE;this.isMaxBoundInvalid=e===i.INVALID,this.maxBoundInputElement.value&&r({inputElement:this.maxBoundInputElement.value,status:e}),e!==i.INVALID&&this.minBoundInputElement.value?.status===i.INVALID&&this.onMinBoundsChange(),this.requestUpdate()},this.onMaxBoundsChangeDebounced=B(this.onMaxBoundsChange,b.DebounceTimer),this.onMinBoundsChange=()=>{let t=this.minBoundInputElement.value?.value,e=this.minBoundInputElement.value?.status;if(t!==void 0&&t!==""){let n=this.axisModel.getMinBound(),u=this.axisModel.getMaxBound(),o=Number.isFinite(u)?u:this.initialMaxBound,x=this.minBoundInputElement.value?.max===void 0?o:Math.min(this.minBoundInputElement.value.max,o??Number.NaN),a=Number.parseFloat(t);if(a!==o&&v(a,this.minBoundInputElement.value?.min,x)){if(a!==n){this.axisModel.setMinBound(a);let c=this.getAxisBoundsFromStateStore();c&&(c.currMinBound=a)}e=i.IDLE}else e=i.INVALID}else e=i.IDLE;this.isMinBoundInvalid=e===i.INVALID,this.minBoundInputElement.value&&r({inputElement:this.minBoundInputElement.value,status:e}),e!==i.INVALID&&this.maxBoundInputElement.value?.status===i.INVALID&&this.onMaxBoundsChange(),this.updateEnableLogarithmic(this.axisModel.getLogarithmic()&&(this.dataMinValue??Number.NaN)>0),this.requestUpdate()},this.onMinBoundsChangeDebounced=B(this.onMinBoundsChange,b.DebounceTimer),this.onModelConfigChange=()=>{this.requestUpdate()},this.disableMaxBoundResetBtn=!0,this.disableMinBoundResetBtn=!0,this.isMinBoundInvalid=!1,this.isMaxBoundInvalid=!1,this.isXAxis=!1,this.axisTitle="",this.showMaxBoundOption=!1,this.showMinBoundOption=!1,this.showEnableLogOption=!1}static{this.properties={disableMaxBoundResetBtn:16,disableMinBoundResetBtn:16,isMinBoundInvalid:16,isMaxBoundInvalid:16,messageOverrides:0,model:0,isXAxis:5,axisTitle:1,maxBoundMaxLimit:9,maxBoundMinLimit:9,minBoundMinLimit:9,minBoundMaxLimit:9,showMaxBoundOption:5,showMinBoundOption:5,showEnableLogOption:5,dataMaxValue:9,dataMinValue:9,initialMaxBound:9,initialMinBound:9}}static{this.styles=w}load(){this.modelChange(this.model),this.dataMinValue!==void 0&&this.dataMinValueChange(this.dataMinValue,Number.NaN),this.dataMaxValue!==void 0&&this.dataMaxValueChange(this.dataMaxValue,Number.NaN)}willUpdate(t){t.has("model")&&this.modelChange(this.model,t.get("model")),t.has("dataMinValue")&&this.dataMinValueChange(this.dataMinValue??Number.NaN,t.get("dataMinValue")),t.has("dataMaxValue")&&this.dataMaxValueChange(this.dataMaxValue??Number.NaN,t.get("dataMaxValue")),t.has("initialMaxBound")&&this.initialMaxBoundChange(),t.has("initialMinBound")&&this.initialMinBoundChange()}updated(){this.disableResetButtons()}disconnectedCallback(){super.disconnectedCallback(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(t,e){this.axisModel=new N(this.model,this.isXAxis),e?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),t?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}dataMinValueChange(t,e){Number.isNaN(e)&&!Number.isNaN(t)&&(this.defaultMinBound=t)}dataMaxValueChange(t,e){Number.isNaN(e)&&!Number.isNaN(t)&&(this.defaultMaxBound=t)}initialMaxBoundChange(){Number.isNaN(this.axisModel.getMaxBound())||this.axisModel.setMaxBound(this.axisModel.getMaxBound())}initialMinBoundChange(){Number.isNaN(this.axisModel.getMinBound())||this.axisModel.setMinBound(this.axisModel.getMinBound())}getAxisBoundsFromStateStore(){let t,e=S.chartAxesBoundDataMap,n=this.model.chartId;if(n){let u=$({chartId:n,isXAxis:this.isXAxis,isLogarithmic:this.axisModel.getLogarithmic()});t=e[n]?.[u]}return t}disableResetButtons(){let t=this.getAxisBoundsFromStateStore();t&&(this.disableMaxBoundResetBtn=t.defaultMaxBound===t.currMaxBound&&this.maxBoundInputElement.value?.status!==i.INVALID&&this.maxBoundInputElement.value?.value.trim()!=="",this.disableMinBoundResetBtn=t.defaultMinBound===t.currMinBound&&this.minBoundInputElement.value?.status!==i.INVALID&&this.minBoundInputElement.value?.value.trim()!=="")}onShowLogScaleMouseEnter(){this.showLogScaleTooltip?.remove(),this.showLogScaleSwitch.value?.disabled&&(this.showLogScaleTooltip=C(s`<calcite-tooltip .referenceElement=${this.showLogScaleSwitch.value??document.body} open>${this.commonStrings.utilsStrings.tooltips?.logDisabled??""}</calcite-tooltip>`),document.body.appendChild(this.showLogScaleTooltip))}onShowLogScaleMouseLeave(){this.showLogScaleTooltip?.remove()}onCategoryFormatChange(t){this.axisModel.setValueFormat(t.target.categoryFormat)}updateEnableLogarithmic(t){t!==this.axisModel.getLogarithmic()&&(this.axisModel.setLogarithmic(t),this.requestUpdate())}onNumberFormatChange(t){this.axisModel.setValueFormat({type:d.NumberAxisFormat,intlOptions:t.detail}),this.requestUpdate()}onRevertMaxBoundsToDefault(){if(this.maxBoundInputElement.value?.status===i.INVALID||this.maxBoundInputElement.value?.value.trim()===""||this.axisModel.getMaxBound()!==this.defaultMaxBound){this.onMaxBoundsChangeDebounced.cancel();let t=this.getAxisBoundsFromStateStore();this.axisModel.getMinBound()>this.defaultMaxBound&&this.axisModel.setMinBound(t?.defaultMinBound??Number.NaN),this.axisModel.setMaxBound(t?.defaultMaxBound??Number.NaN),this.maxBoundInputElement.value&&(this.maxBoundInputElement.value.value=h(t?.defaultMaxBound,this.initialMaxBound)??"",this.isMaxBoundInvalid=!1,r({inputElement:this.maxBoundInputElement.value,status:i.IDLE})),this.requestUpdate()}}onRevertMinBoundsToDefault(){if(this.minBoundInputElement.value?.status===i.INVALID||this.minBoundInputElement.value?.value.trim()===""||this.axisModel.getMinBound()!==this.defaultMinBound){this.onMinBoundsChangeDebounced.cancel();let t=this.getAxisBoundsFromStateStore();this.axisModel.getMaxBound()<this.defaultMinBound&&(this.onMaxBoundsChangeDebounced.cancel(),this.axisModel.setMaxBound(Number.NaN),this.maxBoundInputElement.value&&(this.maxBoundInputElement.value.value=h(Number.NaN,this.initialMaxBound)??"",this.isMaxBoundInvalid=!1,r({inputElement:this.maxBoundInputElement.value,status:i.IDLE}))),this.axisModel.setMinBound(Number.NaN),this.minBoundInputElement.value&&(this.minBoundInputElement.value.value=h(t?.defaultMinBound,this.initialMinBound)??"",this.isMinBoundInvalid=!1,r({inputElement:this.minBoundInputElement.value,status:i.IDLE})),this.requestUpdate()}}enableLogScale(t){let{checked:e}=t.target;this.axisModel.setLogarithmic(e&&(this.dataMinValue??Number.NaN)>0),this.requestUpdate()}render(){return s`<calcite-block .hidden=${this.axisModel.getValueFormat()?.type===d.DateAxisFormat} expanded .heading=${this.axisTitle}>${this.renderAxis()}</calcite-block>`}renderAxis(){let t=null,e={...this.axisModel.getValueFormat()};switch(this.axisModel.getValueFormat()?.type){case d.CategoryAxisFormat:t=s`<arcgis-charts-config-category-format .categoryFormat=${e} @arcgisChartsConfigCategoryFormatChange=${this.onCategoryFormatChange}></arcgis-charts-config-category-format>`;break;case d.NumberAxisFormat:t=s`<div>${this.renderShowLogScale()}${this.renderMinBound()}${this.renderMaxBound()}<arcgis-charts-config-number-format .numberFormat=${{...e.intlOptions}} @arcgisChartsConfigNumberFormatChange=${this.onNumberFormatChange}></arcgis-charts-config-number-format></div>`;break;case d.DateAxisFormat:t=null;break}return t}renderMaxBound(){let t;if(!this.showMaxBoundOption)t=null;else{let e=h(this.axisModel.getMaxBound(),this.initialMaxBound);t=s`<div><calcite-label class=${l(m.label)}>${this._messages.maxBounds}<calcite-input type=number number-button-type=none .min=${this.maxBoundMinLimit??Number.MIN_SAFE_INTEGER} .max=${this.maxBoundMaxLimit??Number.MAX_SAFE_INTEGER} step=any .value=${e} @calciteInputInput=${this.onMaxBoundsChangeDebounced} ${g(this.maxBoundInputElement)}></calcite-input><arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.invalidBound} .isInvalid=${this.isMaxBoundInvalid}></arcgis-charts-config-invalid-input-message></calcite-label><div class=${l(m.linkContainer)}><calcite-button .disabled=${this.disableMaxBoundResetBtn} @click=${this.onRevertMaxBoundsToDefault} appearance=transparent icon-end=reset>${this._messages.revertToDefault}</calcite-button></div></div>`}return t}renderMinBound(){let t;if(!this.showMinBoundOption)t=null;else{let e=this.getAxisBoundsFromStateStore(),n=h(this.axisModel.getMinBound(),e?.defaultMinBound??this.initialMinBound);t=s`<div><calcite-label class=${l(m.label)}>${this._messages.minBounds}<calcite-input type=number number-button-type=none .min=${this.minBoundMinLimit??Number.MIN_SAFE_INTEGER} .max=${this.minBoundMaxLimit??Number.MAX_SAFE_INTEGER} step=any .value=${n} @calciteInputInput=${this.onMinBoundsChangeDebounced} ${g(this.minBoundInputElement)}></calcite-input><arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.invalidBound} .isInvalid=${this.isMinBoundInvalid}></arcgis-charts-config-invalid-input-message></calcite-label><div class=${l(m.linkContainer)}><calcite-button .disabled=${this.disableMinBoundResetBtn} appearance=transparent icon-end=reset @click=${this.onRevertMinBoundsToDefault}>${this._messages.revertToDefault}</calcite-button></div></div>`}return t}renderShowLogScale(){let t;return this.showEnableLogOption&&(t=s`<calcite-label layout=inline-space-between class=${l({[m.label]:!0,[m.mb2]:!0})}>${this._messages.logScale}<div @mouseenter=${this.onShowLogScaleMouseEnter} @mouseleave=${this.onShowLogScaleMouseLeave}><calcite-switch .checked=${this.axisModel.getLogarithmic()&&(this.dataMinValue??Number.NaN)>0} .disabled=${(this.dataMinValue??Number.NaN)<=0} @calciteSwitchChange=${this.enableLogScale} ${g(this.showLogScaleSwitch)}></calcite-switch></div></calcite-label>`),t}};L("arcgis-charts-config-axis",I);return I},a,b)
|
|
2
|
+
import{a as N}from"./P67ON5B6.js";import{a as S,b as $}from"./IBCFYECI.js";import b from"./OUM277XS.js";import"./5AKOPV7Z.js";import{a as p}from"./YOVZ4RVH.js";import a from"./WFTQTZE4.js";import"./XXO5K6N4.js";import"./WKF53DYD.js";import{k as B}from"./OZSOICXE.js";import"./KXU3XKM2.js";import{A as g,B as E,C as l,F as C,H as L,g as f,i as s,z as M}from"./IYVGK242.js";import"./FHN6CIIO.js";import"./AUKJ4CBR.js";import{a as d}from"./BNAX4Y53.js";import"./TIWCUJOG.js";export default $arcgis.t(([,{a:b,f:v,g:h,h:r,i:i}])=>{var m={linkContainer:"link-container",label:"label",mb2:"mb-2"},w=f`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}calcite-block{width:var(--arcgis-charts-config-calcite-block-width, var(--arcgis-charts-config-calcite-block-default-width));height:var(--arcgis-charts-config-calcite-block-height, var(--arcgis-charts-config-calcite-block-default-height));border:0px;-webkit-box-shadow:0 0 0 0;box-shadow:0 0}.label{display:flex;justify-content:space-between}.mb-2{margin-bottom:var(--arcgis-charts-config-margin-minor)}.link-container{display:flex;justify-content:flex-end;margin-top:-.75rem}`,I=class extends E{constructor(){super(...arguments),this._messages=p(),this.commonStrings=p({name:"common",blocking:!0}),this.axisModel=new N,this.minBoundInputElement=M(),this.maxBoundInputElement=M(),this.showLogScaleSwitch=M(),this.defaultMinBound=Number.NaN,this.defaultMaxBound=Number.NaN,this.onMaxBoundsChange=()=>{let t=this.maxBoundInputElement.value?.value,e=this.maxBoundInputElement.value?.status;if(t!==void 0&&t!==""){let n=this.axisModel.getMinBound(),u=this.axisModel.getMaxBound(),o=Number.isFinite(n)?n:this.initialMinBound,x=this.maxBoundInputElement.value?.min===void 0?o:Math.max(this.maxBoundInputElement.value.min,o??Number.NaN),a=Number.parseFloat(t);if(a!==o&&v(a,x,this.maxBoundInputElement.value?.max)){if(a!==u){this.axisModel.setMaxBound(a);let c=this.getAxisBoundsFromStateStore();c&&(c.currMaxBound=a)}e=i.IDLE}else e=i.INVALID}else e=i.IDLE;this.isMaxBoundInvalid=e===i.INVALID,this.maxBoundInputElement.value&&r({inputElement:this.maxBoundInputElement.value,status:e}),e!==i.INVALID&&this.minBoundInputElement.value?.status===i.INVALID&&this.onMinBoundsChange(),this.requestUpdate()},this.onMaxBoundsChangeDebounced=B(this.onMaxBoundsChange,b.DebounceTimer),this.onMinBoundsChange=()=>{let t=this.minBoundInputElement.value?.value,e=this.minBoundInputElement.value?.status;if(t!==void 0&&t!==""){let n=this.axisModel.getMinBound(),u=this.axisModel.getMaxBound(),o=Number.isFinite(u)?u:this.initialMaxBound,x=this.minBoundInputElement.value?.max===void 0?o:Math.min(this.minBoundInputElement.value.max,o??Number.NaN),a=Number.parseFloat(t);if(a!==o&&v(a,this.minBoundInputElement.value?.min,x)){if(a!==n){this.axisModel.setMinBound(a);let c=this.getAxisBoundsFromStateStore();c&&(c.currMinBound=a)}e=i.IDLE}else e=i.INVALID}else e=i.IDLE;this.isMinBoundInvalid=e===i.INVALID,this.minBoundInputElement.value&&r({inputElement:this.minBoundInputElement.value,status:e}),e!==i.INVALID&&this.maxBoundInputElement.value?.status===i.INVALID&&this.onMaxBoundsChange(),this.updateEnableLogarithmic(this.axisModel.getLogarithmic()&&(this.dataMinValue??Number.NaN)>0),this.requestUpdate()},this.onMinBoundsChangeDebounced=B(this.onMinBoundsChange,b.DebounceTimer),this.onModelConfigChange=()=>{this.requestUpdate()},this.disableMaxBoundResetBtn=!0,this.disableMinBoundResetBtn=!0,this.isMinBoundInvalid=!1,this.isMaxBoundInvalid=!1,this.isXAxis=!1,this.axisTitle="",this.showMaxBoundOption=!1,this.showMinBoundOption=!1,this.showEnableLogOption=!1}static{this.properties={disableMaxBoundResetBtn:16,disableMinBoundResetBtn:16,isMinBoundInvalid:16,isMaxBoundInvalid:16,messageOverrides:0,model:0,isXAxis:5,axisTitle:1,maxBoundMaxLimit:9,maxBoundMinLimit:9,minBoundMinLimit:9,minBoundMaxLimit:9,showMaxBoundOption:5,showMinBoundOption:5,showEnableLogOption:5,dataMaxValue:9,dataMinValue:9,initialMaxBound:9,initialMinBound:9}}static{this.styles=w}load(){this.modelChange(this.model),this.dataMinValue!==void 0&&this.dataMinValueChange(this.dataMinValue,Number.NaN),this.dataMaxValue!==void 0&&this.dataMaxValueChange(this.dataMaxValue,Number.NaN)}willUpdate(t){t.has("model")&&this.modelChange(this.model,t.get("model")),t.has("dataMinValue")&&this.dataMinValueChange(this.dataMinValue??Number.NaN,t.get("dataMinValue")),t.has("dataMaxValue")&&this.dataMaxValueChange(this.dataMaxValue??Number.NaN,t.get("dataMaxValue")),t.has("initialMaxBound")&&this.initialMaxBoundChange(),t.has("initialMinBound")&&this.initialMinBoundChange()}updated(){this.disableResetButtons()}disconnectedCallback(){super.disconnectedCallback(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(t,e){this.axisModel=new N(this.model,this.isXAxis),e?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),t?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}dataMinValueChange(t,e){Number.isNaN(e)&&!Number.isNaN(t)&&(this.defaultMinBound=t)}dataMaxValueChange(t,e){Number.isNaN(e)&&!Number.isNaN(t)&&(this.defaultMaxBound=t)}initialMaxBoundChange(){Number.isNaN(this.axisModel.getMaxBound())||this.axisModel.setMaxBound(this.axisModel.getMaxBound())}initialMinBoundChange(){Number.isNaN(this.axisModel.getMinBound())||this.axisModel.setMinBound(this.axisModel.getMinBound())}getAxisBoundsFromStateStore(){let t,e=S.chartAxesBoundDataMap,n=this.model.chartId;if(n){let u=$({chartId:n,isXAxis:this.isXAxis,isLogarithmic:this.axisModel.getLogarithmic()});t=e[n]?.[u]}return t}disableResetButtons(){let t=this.getAxisBoundsFromStateStore();t&&(this.disableMaxBoundResetBtn=t.defaultMaxBound===t.currMaxBound&&this.maxBoundInputElement.value?.status!==i.INVALID&&this.maxBoundInputElement.value?.value.trim()!=="",this.disableMinBoundResetBtn=t.defaultMinBound===t.currMinBound&&this.minBoundInputElement.value?.status!==i.INVALID&&this.minBoundInputElement.value?.value.trim()!=="")}onShowLogScaleMouseEnter(){this.showLogScaleTooltip?.remove(),this.showLogScaleSwitch.value?.disabled&&(this.showLogScaleTooltip=C(s`<calcite-tooltip .referenceElement=${this.showLogScaleSwitch.value??document.body} open>${this.commonStrings.utilsStrings.tooltips?.logDisabled??""}</calcite-tooltip>`),document.body.appendChild(this.showLogScaleTooltip))}onShowLogScaleMouseLeave(){this.showLogScaleTooltip?.remove()}onCategoryFormatChange(t){this.axisModel.setValueFormat(t.target.categoryFormat)}updateEnableLogarithmic(t){t!==this.axisModel.getLogarithmic()&&(this.axisModel.setLogarithmic(t),this.requestUpdate())}onNumberFormatChange(t){this.axisModel.setValueFormat({type:d.NumberAxisFormat,intlOptions:t.detail}),this.requestUpdate()}onRevertMaxBoundsToDefault(){if(this.maxBoundInputElement.value?.status===i.INVALID||this.maxBoundInputElement.value?.value.trim()===""||this.axisModel.getMaxBound()!==this.defaultMaxBound){this.onMaxBoundsChangeDebounced.cancel();let t=this.getAxisBoundsFromStateStore();this.axisModel.getMinBound()>this.defaultMaxBound&&this.axisModel.setMinBound(t?.defaultMinBound??Number.NaN),this.axisModel.setMaxBound(t?.defaultMaxBound??Number.NaN),this.maxBoundInputElement.value&&(this.maxBoundInputElement.value.value=h(t?.defaultMaxBound,this.initialMaxBound)??"",this.isMaxBoundInvalid=!1,r({inputElement:this.maxBoundInputElement.value,status:i.IDLE})),this.requestUpdate()}}onRevertMinBoundsToDefault(){if(this.minBoundInputElement.value?.status===i.INVALID||this.minBoundInputElement.value?.value.trim()===""||this.axisModel.getMinBound()!==this.defaultMinBound){this.onMinBoundsChangeDebounced.cancel();let t=this.getAxisBoundsFromStateStore();this.axisModel.getMaxBound()<this.defaultMinBound&&(this.onMaxBoundsChangeDebounced.cancel(),this.axisModel.setMaxBound(Number.NaN),this.maxBoundInputElement.value&&(this.maxBoundInputElement.value.value=h(Number.NaN,this.initialMaxBound)??"",this.isMaxBoundInvalid=!1,r({inputElement:this.maxBoundInputElement.value,status:i.IDLE}))),this.axisModel.setMinBound(Number.NaN),this.minBoundInputElement.value&&(this.minBoundInputElement.value.value=h(t?.defaultMinBound,this.initialMinBound)??"",this.isMinBoundInvalid=!1,r({inputElement:this.minBoundInputElement.value,status:i.IDLE})),this.requestUpdate()}}enableLogScale(t){let{checked:e}=t.target;this.axisModel.setLogarithmic(e&&(this.dataMinValue??Number.NaN)>0),this.requestUpdate()}render(){return s`<calcite-block .hidden=${this.axisModel.getValueFormat()?.type===d.DateAxisFormat} expanded .heading=${this.axisTitle}>${this.renderAxis()}</calcite-block>`}renderAxis(){let t=null,e={...this.axisModel.getValueFormat()};switch(this.axisModel.getValueFormat()?.type){case d.CategoryAxisFormat:t=s`<arcgis-charts-config-category-format .categoryFormat=${e} @arcgisChartsConfigCategoryFormatChange=${this.onCategoryFormatChange}></arcgis-charts-config-category-format>`;break;case d.NumberAxisFormat:t=s`<div>${this.renderShowLogScale()}${this.renderMinBound()}${this.renderMaxBound()}<arcgis-charts-config-number-format .numberFormat=${{...e.intlOptions}} @arcgisChartsConfigNumberFormatChange=${this.onNumberFormatChange}></arcgis-charts-config-number-format></div>`;break;case d.DateAxisFormat:t=null;break}return t}renderMaxBound(){let t;if(!this.showMaxBoundOption)t=null;else{let e=h(this.axisModel.getMaxBound(),this.initialMaxBound);t=s`<div><calcite-label class=${l(m.label)}>${this._messages.maxBounds}<calcite-input type=number number-button-type=none .min=${this.maxBoundMinLimit??Number.MIN_SAFE_INTEGER} .max=${this.maxBoundMaxLimit??Number.MAX_SAFE_INTEGER} step=any .value=${e} @calciteInputInput=${this.onMaxBoundsChangeDebounced} ${g(this.maxBoundInputElement)}></calcite-input><arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.invalidBound} .isInvalid=${this.isMaxBoundInvalid}></arcgis-charts-config-invalid-input-message></calcite-label><div class=${l(m.linkContainer)}><calcite-button .disabled=${this.disableMaxBoundResetBtn} @click=${this.onRevertMaxBoundsToDefault} appearance=transparent icon-end=reset>${this._messages.revertToDefault}</calcite-button></div></div>`}return t}renderMinBound(){let t;if(!this.showMinBoundOption)t=null;else{let e=this.getAxisBoundsFromStateStore(),n=h(this.axisModel.getMinBound(),e?.defaultMinBound??this.initialMinBound);t=s`<div><calcite-label class=${l(m.label)}>${this._messages.minBounds}<calcite-input type=number number-button-type=none .min=${this.minBoundMinLimit??Number.MIN_SAFE_INTEGER} .max=${this.minBoundMaxLimit??Number.MAX_SAFE_INTEGER} step=any .value=${n} @calciteInputInput=${this.onMinBoundsChangeDebounced} ${g(this.minBoundInputElement)}></calcite-input><arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.invalidBound} .isInvalid=${this.isMinBoundInvalid}></arcgis-charts-config-invalid-input-message></calcite-label><div class=${l(m.linkContainer)}><calcite-button .disabled=${this.disableMinBoundResetBtn} appearance=transparent icon-end=reset @click=${this.onRevertMinBoundsToDefault}>${this._messages.revertToDefault}</calcite-button></div></div>`}return t}renderShowLogScale(){let t;return this.showEnableLogOption&&(t=s`<calcite-label layout=inline-space-between class=${l({[m.label]:!0,[m.mb2]:!0})}>${this._messages.logScale}<div @mouseenter=${this.onShowLogScaleMouseEnter} @mouseleave=${this.onShowLogScaleMouseLeave}><calcite-switch .checked=${this.axisModel.getLogarithmic()&&(this.dataMinValue??Number.NaN)>0} .disabled=${(this.dataMinValue??Number.NaN)<=0} @calciteSwitchChange=${this.enableLogScale} ${g(this.showLogScaleSwitch)}></calcite-switch></div></calcite-label>`),t}};L("arcgis-charts-config-axis",I);return I},a,b)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a as k,b,c as v,d as x}from"./VKMVMHTT.js";import d from"./
|
|
2
|
+
import{a as k,b,c as v,d as x}from"./VKMVMHTT.js";import d from"./XWBETWPT.js";import a from"./WFTQTZE4.js";import{U as c}from"./XXO5K6N4.js";export default $arcgis.t(([{Ia:o,Ja:n},{d:f,e:g}])=>{var t=s=>{let{config:e,seriesIndex:i,callback:a}=s;[i!==void 0?e.series?.[i]:e.series].flat().forEach(r=>{r!==void 0&&(o(r)||n(r))&&a(r)})},T=(s,e)=>{if(o(e.series[s])||n(e.series[s]))return k(e.series[s])},w=s=>{let{style:e,seriesIndex:i,config:a}=s;t({config:a,seriesIndex:i,callback:r=>{b(e,r)}})},j=(s,e)=>{if(o(e.series[s])||n(e.series[s]))return v(e.series[s])},z=s=>{let{width:e,seriesIndex:i,config:a}=s;t({config:a,seriesIndex:i,callback:r=>{x(e,r)}})},O=(s,e)=>o(e.series[s])||n(e.series[s])?e.series[s].markerSymbol?.color:void 0,A=(s,e,i)=>{if(o(i.series[e])||n(i.series[e])){let a=i.series[e];a.markerSymbol===void 0&&(a.markerSymbol=c()),a.markerSymbol.color=s}},D=(s,e)=>o(e.series[s])||n(e.series[s])?e.series?.[s]?.markerSymbol?.style:void 0,E=s=>{let{style:e,seriesIndex:i,config:a}=s;t({config:a,seriesIndex:i,callback:r=>{r.markerSymbol===void 0&&(r.markerSymbol=c()),r.markerSymbol.style=e}})},L=(s,e)=>o(e.series[s])||n(e.series[s])?e.series?.[s]?.markerSymbol?.size:void 0,P=s=>{let{size:e,seriesIndex:i,config:a}=s;t({config:a,seriesIndex:i,callback:r=>{r.markerSymbol===void 0&&(r.markerSymbol=c()),r.markerSymbol.size=e}})},_=(s,e)=>o(e.series[s])||n(e.series[s])?e.series?.[s]?.lineSmoothed??!1:!1,q=s=>{let{smoothed:e,seriesIndex:i,config:a}=s;t({config:a,seriesIndex:i,callback:r=>{r.lineSmoothed=e}})},C=(s,e)=>o(e.series[s])||n(e.series[s])?e.series[s].showArea??!1:!1,W=s=>{let{visible:e,seriesIndex:i,config:a}=s;t({config:a,seriesIndex:i,callback:r=>{r.showArea=e}})},F=(s,e)=>o(e.series[s])||n(e.series[s])?e.series[s].markerVisible??!0:!1,G=s=>{let{visible:e,seriesIndex:i,config:a}=s;t({config:a,seriesIndex:i,callback:r=>{r.markerVisible=e}})},H=(s,e)=>o(e.series[s])||n(e.series[s])?e.series[s].areaColor:void 0,J=(s,e)=>o(e.series[s])||n(e.series[s])?e.series?.[s]?.connectLines:void 0,K=s=>{let{connect:e,seriesIndex:i,config:a}=s;t({config:a,seriesIndex:i,callback:r=>{r.connectLines=e}})},y=Object.defineProperty,I=Object.getOwnPropertyDescriptor,S=(s,e,i,a)=>{for(var r=I(e,i),l=s.length-1,m;l>=0;l--)(m=s[l])&&(r=m(e,i,r)||r);return r&&y(e,i,r),r},h=(s,e)=>o(e.series[s])||n(e.series[s])?e.series[s].stackNegativeValuesToBaseline??!0:!1,u=s=>{let{stackNegativeValuesToBaseline:e,seriesIndex:i,config:a}=s;(o(a.series[i])||n(a.series[i]))&&(a.series[i].stackNegativeValuesToBaseline=e)},d=class extends f{isNegativeValuesStackedToBaseline(e){return h(e,this._config)}setNegativeValuesStackedToBaseline(e,i){u({stackNegativeValuesToBaseline:e,seriesIndex:i,config:this._config})}};S([g],d.prototype,"setNegativeValuesStackedToBaseline");return{a:T,b:w,c:j,d:z,e:O,f:A,g:D,h:E,i:L,j:P,k:_,l:q,m:C,n:W,o:F,p:G,q:H,r:J,s:K,t:d}},a,d)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a as P}from"./
|
|
2
|
+
import{a as P}from"./IVX5JR6I.js";import{a as k}from"./GSCC3FON.js";import{h as a}from"./5AKOPV7Z.js";import{a as F}from"./YOVZ4RVH.js";import e from"./USS4BS7V.js";import d from"./WFTQTZE4.js";import"./XXO5K6N4.js";import"./WKF53DYD.js";import"./OZSOICXE.js";import"./KXU3XKM2.js";import{A as c,B as C,C as o,F as u,H as b,g as f,i as s,n as h,z as n}from"./IYVGK242.js";import"./FHN6CIIO.js";import"./AUKJ4CBR.js";import{b as v}from"./BNAX4Y53.js";import"./TIWCUJOG.js";export default $arcgis.t(([{Ac:y,O:d,fc:m},{h:$}])=>{var l={label:"label",fieldList:"field-list",fab:"fab"},E=f`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin);margin-top:var(--arcgis-charts-top-section-margin)}.label,.disabled-label{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-minor);justify-content:space-between}.field-list{max-height:50vh;overflow-y:auto}.disabled-label{pointer-events:none}.fab{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:1.5rem;justify-content:center}`,g=class extends C{constructor(){super(...arguments),this._messages=F(),this.pieChartPopover=null,this.sortOrderElement=n(),this.categoryElement=n(),this.numericFieldsElement=n(),this.onPieChartDataChange=e=>{try{if(e.detail!==null&&e.detail?.value!==void 0){let{contentKind:i}=e.detail,t=[...e.detail.value];switch(i){case a.aggregation:this.model.aggregationType=t[0]!==v.NoAggregation?t[0]:"";break;case a.category:{let r=t[0]?.trim()||"",p=this.model.numericFields;p.length>1&&r!==d&&(this.model.numericFields=[p[0]]),this.model.category=r,this.model.colorMatch=!0;break}case a.numericFields:(t.length>1||t.length>0&&this.model.category.trim()==="")&&(this.model.category=d),this.model.numericFields=t;break;case a.sortOrder:this.model.setDataSortOrder(t[0]);break;default:break}}}catch(i){throw i instanceof Error&&this.arcgisChartsConfigDataChangeError.emit({error:i,model:this.model}),i}this.requestUpdate()},this.onModelConfigChange=()=>{this.requestUpdate()},this.popoverClose=e=>{this.pieChartPopover===e?.target&&this.removePieChartDataPopover()},this.layerFieldsInfo=[],this.arcgisChartsConfigDataChangeError=h(),this.arcgisChartsConfigPieChartDataNumericFieldValidate=h()}static{this.properties={messageOverrides:0,model:0,layerFieldsInfo:0}}static{this.styles=E}load(){this.modelChange(this.model),this.onModelConfigChange()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model"))}disconnectedCallback(){super.disconnectedCallback(),this.removePieChartDataPopover(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,i){i?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}buildNumericFieldItem(e){return P(e,s`<calcite-list-item .label=${m(this.layerFieldsInfo,e)} .value=${e} closable @calciteListItemClose=${this.onRemoveNumericField}></calcite-list-item>`)}onSortOrderSelect(e){this.contentKind=a.sortOrder,this.setupPopover(e)}onCategorySelect(e){this.contentKind=a.category,this.setupPopover(e)}onAddNumericFields(e){this.contentKind=a.numericFields,this.setupPopover(e)}onRemoveNumericField(e){let i=e.target.value;this.model.numericFields=this.model.numericFields.filter(t=>t!==i)}onShowDataLabelsChange(e){this.model.dataLabelsVisibility=e.target.checked}setupPopover(e){e.stopImmediatePropagation(),this.removePieChartDataPopover();let i,t,r;switch(this.contentKind){case a.category:i=this.categoryElement.value,t=this._messages.categoryHeader,r=this.model.category;break;case a.numericFields:i=this.numericFieldsElement.value,t=this._messages.numericFieldsMultipleHeader,r=this.model.numericFields;break;case a.sortOrder:i=this.sortOrderElement.value,t=this._messages.sortOrderHeader,r=this.model.getDataSortOrder();break}this.pieChartPopover=u(s`<arcgis-charts-config-pie-chart-popover .headingTitle=${t} .referenceElement=${i} open .contentKind=${this.contentKind} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${r} @arcgisChartsConfigPieChartDataPopoverChange=${this.onPieChartDataChange} @arcgisChartsConfigPopoverClose=${this.popoverClose}></arcgis-charts-config-pie-chart-popover>`),!document.body.contains(this.pieChartPopover)&&this.pieChartPopover!==null&&document.body.appendChild(this.pieChartPopover)}getCorrectedCategoryValue(){return $({fieldName:this.model.category,fieldList:this.layerFieldsInfo})?"":m(this.layerFieldsInfo,this.model.category)}removePieChartDataPopover(){this.pieChartPopover!==null&&(this.pieChartPopover.open=!1,this.pieChartPopover=k(this.pieChartPopover))}renderSorting(){return s`<arcgis-charts-config-field-picker .label=${this._messages[this.model.getDataSortOrder()]} @click=${this.onSortOrderSelect} ${c(this.sortOrderElement)}></arcgis-charts-config-field-picker>`}renderCategory(){let e=this.getCorrectedCategoryValue();return s`<arcgis-charts-config-field-picker .label=${e} @click=${this.onCategorySelect} ${c(this.categoryElement)}></arcgis-charts-config-field-picker>`}renderNumericFields(e){let i=y(this.model.layer).idField,t=[];for(let r of e)r!==i&&t.push(this.buildNumericFieldItem(r));return s`<calcite-list label class=${o(l.fieldList)} ${c(this.numericFieldsElement)}>${t}</calcite-list>`}render(){let e=this.renderCategory(),i=this.renderSorting(),t=this.renderNumericFields([...this.model.numericFields]);return s`<calcite-label class=${o(l.label)}>${this._messages.category}${e}</calcite-label>${[s`<calcite-label class=${o(l.label)}>${this._messages.numericFields}${t}</calcite-label>`,s`<div class=${o(l.fab)}><calcite-fab appearance=outline-fill kind=neutral scale=m .label=${this._messages.selectNumericFields} text-enabled .text=${this._messages.selectNumericFields} icon=plus @click=${this.onAddNumericFields}></calcite-fab></div>`]}<calcite-label class=${o(l.label)} layout=inline-space-between>${this._messages.showDataLabels}<calcite-switch .checked=${this.model.dataLabelsVisibility} @calciteSwitchChange=${this.onShowDataLabelsChange}></calcite-switch></calcite-label><calcite-label class=${o(l.label)}>${this._messages.sortOrder}${i}</calcite-label>`}};b("arcgis-charts-config-pie-chart-data",g);return g},d,e)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a}from"./N7JJ6DIC.js";import b from"./
|
|
2
|
+
import{a}from"./N7JJ6DIC.js";import b from"./WFTQTZE4.js";import{A as n,x as g,y as m,z as p}from"./XXO5K6N4.js";import"./WKF53DYD.js";import"./OZSOICXE.js";import"./KXU3XKM2.js";import{B as c,C as s,D as e,H as h,g as d,i as r}from"./IYVGK242.js";import"./AUKJ4CBR.js";import"./BNAX4Y53.js";import"./TIWCUJOG.js";export default $arcgis.t(([{nc:f,tc:b}])=>{var x=d`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:block;width:auto;height:auto;overflow:auto}.panel-children-container{display:flex}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}.panel-children-container{padding:0 1rem;margin-top:1rem}.info-modal-container{box-sizing:border-box;width:-webkit-fill-available;height:100%;display:grid;position:absolute;place-items:center;align-content:center;justify-content:center;padding:1rem;text-align:start}.info-modal-container h3.heading-true{display:flex;margin-bottom:auto;background:#0000000d;height:30px;padding:.5rem;justify-self:stretch;text-align:start;align-items:center}.info-modal-container h3.heading-false{background:#0000000d;margin-bottom:auto;text-align:start}.info-modal-container p{justify-self:stretch;text-align:start}.chart-loader-overlay{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;z-index:1001}`,l=class extends c{constructor(){super(...arguments),this.message="",this.heading="",this.showLoader=!1}static{this.properties={message:1,heading:1,showLoader:5,loaderColors:0,calciteThemeColors:0}}static{this.styles=x}render(){let i=null,t=this.loaderColors?.curtainColor??this.calciteThemeColors?.backgroundColor??g,u=this.loaderColors?.spinnerColor??this.calciteThemeColors?.spinnerColor??m,o;return this.loaderColors?.curtainColor?o=b({r:t[0],g:t[1],b:t[2],a:t[3]/255})?n:p:o=this.calciteThemeColors?.textColor??n,this.showLoader?i=r`<div class=${s(a.ChartLoaderOverlay)} style=${e({background:`rgb(${t.toString()})`,"--calcite-loader-progress-color":`rgb(${u.toString()})`})}><calcite-loader scale=s label=Loading></calcite-loader></div>`:this.message!==void 0?i=r`<div class=${s(a.InfoModalContainer)} style=${e({background:`rgb(${t.toString()})`})}><h3 class=${s(this.heading!==void 0?"heading-true":"heading-false")} style=${e({color:`rgb(${o.toString()})`})}>${this.heading}</h3><p style=${e({color:`rgb(${o.toString()})`})} .innerHTML=${f(this.message)??""}></p></div>`:i=r`<div class=${`${a.InfoModalContainer} ${a.Hide}`}></div>`,i}};h("arcgis-charts-info-modal",l);return l},b)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a as P}from"./OZSHGMU6.js";import{a as b}from"./H5VCT3XP.js";import{a as p}from"./GSCC3FON.js";import f from"./V35YA4VJ.js";import"./5AKOPV7Z.js";import{a as L}from"./FNXREQOE.js";import e from"./EPY6V4CJ.js";import"./XXO5K6N4.js";import"./WKF53DYD.js";import"./OZSOICXE.js";import"./PBQRZBQM.js";import{B as $,C as a,D as c,F as d,H as x,g as u,i as l}from"./YF6ML4P6.js";import"./FHN6CIIO.js";import"./AUKJ4CBR.js";import{g as h}from"./BNAX4Y53.js";import"./TIWCUJOG.js";export default $arcgis.t(([{q:g},{r:I}])=>{var n={topSection:"top-section",sectionLabel:"section-label",list:"list",infoIcon:"info-icon"},k=u`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}.top-section{margin-top:var(--arcgis-charts-config-margin-minor)}.section-label{display:flex;margin-bottom:var(--arcgis-charts-config-margin-major);margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}.list{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major)}.info-icon{margin:auto 1rem;pointer-events:auto}`,C=class extends ${constructor(){super(...arguments),this._messages=L(),this.resetSeriesOriginal=()=>{this.configSeriesOpen=!1,this.selectedSeriesId=void 0,this.model.resetSeriesStyling(),this.seriesOrderResetCounter+=1},this.onMultipleSeriesSelect=e=>{if(!this.shouldDisableMeanLinesOption()){let i=e.target,s=i.value??i.parentElement.value??"";this.model.showMeanLines=s===h.MeanLines}},this.seriesNameChange=e=>{if(e.detail!==null||e.detail!==void 0){let i=e.detail?.name,s=this.selectedSeriesIndex;s!==void 0&&s>=0&&this.model.setSeriesName(i,s)}},this.seriesColorChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{color:i}=e.detail;if(i!==void 0)if(this.meanLinesBoxColorIsSelected)this.model.meanLinesBoxColor=i;else{let s=this.selectedSeriesIndex;s!==void 0&&s>=0&&(this.model.colorMatch=!1,this.model.setSeriesColor(i,s))}}},this.seriesLineStyleChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{style:i}=e.detail,s=this.selectedSeriesIndex;i!==void 0&&s!==void 0&&s>=0&&this.model.setSeriesLineStyle(i,s)}},this.seriesLineWidthChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{width:i}=e.detail,s=this.selectedSeriesIndex;i!==void 0&&s!==void 0&&s>=0&&this.model.setSeriesLineWidth(i,s)}},this.onCalciteListOrderChange=e=>{let i=this.model.boxPlotSeriesIndexWhenMeanLinesShown;if(e.detail!==null&&e.detail!==void 0){let{newIndex:s,oldIndex:t}=e.detail,o=t,r=s;i!==-1&&(o=t>=i?t+1:t,r=s>=i?s+1:s),this.model.moveSeries(o,r),this.seriesOrderResetCounter+=1}},this.seriesPopoverClose=()=>{this.selectedSeriesId=void 0,this.meanLinesBoxColorIsSelected=!1,this.configSeriesOpen=!1,this.seriesPopover=p(this.seriesPopover)},this.openSeriesPopOver=e=>{e.stopImmediatePropagation(),this.removeSeriesPopover();let i=e.target,s=i.localName==="calcite-list-item"?i:i.parentNode,t=!this.configSeriesOpen,o=this.model.getSeriesIndex(s.value);if(o!==void 0&&o!==-1)this.configSeriesOpen=this.selectedSeriesIndex===o?t:!0,this.configSeriesOpen?this.selectedSeriesId=s.value:this.selectedSeriesId=void 0,this.meanLinesBoxColorIsSelected=!1;else if(s.value==="box-plot-color"){let r=!this.meanLinesBoxColorIsSelected;this.configSeriesOpen=r,this.meanLinesBoxColorIsSelected=r,this.selectedSeriesId=void 0}},this.createTooltip=(e,i)=>{let s=e.target;this.tooltip=d(l`<calcite-tooltip style=${c({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${s} open placement=top>${i??""}</calcite-tooltip>`),document.body.appendChild(this.tooltip)},this.destroyTooltip=()=>{I(this.tooltip)},this.onModelConfigChange=()=>{this.selectedSeriesId!==void 0&&this.selectedSeriesIndex===-1?this.seriesPopoverClose():this.seriesPopover&&(this.seriesPopover.selectedSeriesIndex=this.selectedSeriesIndex),this.requestUpdate()},this.meanLinesBoxColorIsSelected=!1,this.seriesOrderResetCounter=0,this.configSeriesOpen=!1,this.activeColorMatch=!1,this.popoverPlacement="leading"}static{this.properties={selectedSeriesId:16,meanLinesBoxColorIsSelected:16,seriesOrderResetCounter:16,messageOverrides:0,model:0,configSeriesOpen:5,activeColorMatch:5,popoverPlacement:1}}static{this.styles=k}get selectedSeriesIndex(){return this.selectedSeriesId===void 0?void 0:this.model.getSeriesIndex(this.selectedSeriesId)}load(){this.modelChange(this.model),this.onModelConfigChange()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),(e.has("selectedSeriesId")||e.has("meanLinesBoxColorIsSelected"))&&this.selectedSeriesChange()}disconnectedCallback(){super.disconnectedCallback(),this.removeSeriesPopover(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,i){i?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}selectedSeriesChange(){(this.selectedSeriesIndex!==void 0||this.meanLinesBoxColorIsSelected)&&this.configSeriesOpen?this.setupSeriesPopover():this.removeSeriesPopover()}removeSeriesPopover(){this.seriesPopover!==null&&this.seriesPopover!==void 0&&(this.seriesPopover.open=!1,this.seriesPopover=p(this.seriesPopover))}buildSeriesListItems(){let e=this.model.seriesLength,i=this.model.boxPlotSeriesIndexWhenMeanLinesShown,s=Array.from({length:e},(t,o)=>o);return P(s,t=>this.model.getSeriesId(t),t=>{let o=this.model.getSeriesId(t),r=this.model.getSeriesColor(t),m=this.model.getSeriesName(t),S=this.model.chartSubType,y=S===g.BoxPlotC1MonoField||S===g.BoxPlotC2MultiFields?this._messages.series:o,v="#CCCCCC",f="minus-square";if((e>1||!this.activeColorMatch)&&r!==void 0){f=this.model.showMeanLines===!0?"line-solid":"square-f";let[M,O,B,w]=[...r];v=`rgba(${M},${O},${B},${w/255})`}return i!==t?l`<calcite-list-item .label=${m??o??""} .description=${y} .value=${o} .selected=${this.selectedSeriesId===o} @click=${this.openSeriesPopOver}><calcite-icon slot=content-end .icon=${f} style=${c({color:v})}></calcite-icon></calcite-list-item>`:null})}buildSeriesList(){return b(this.seriesOrderResetCounter,l`<calcite-list label class=${a(n.list)} drag-enabled selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildSeriesListItems()}</calcite-list>`)}setupSeriesPopover(){this.removeSeriesPopover(),this.meanLinesBoxColorIsSelected?this.seriesPopover=d(l`<arcgis-charts-config-box-plot-series-popover .referenceElement=${this.el} .selectedColor=${this.model.meanLinesBoxColor} .placement=${this.popoverPlacement} open .selectedSeriesIndex=${this.selectedSeriesIndex} .labelCanBeConfigured=${!this.meanLinesBoxColorIsSelected} @arcgisChartsConfigSeriesPopoverNameChange=${this.seriesNameChange} @arcgisChartsConfigSeriesPopoverColorChange=${this.seriesColorChange} @arcgisChartsConfigSeriesPopoverLineStyleChange=${this.seriesLineStyleChange} @arcgisChartsConfigSeriesPopoverLineWidthChange=${this.seriesLineWidthChange} @arcgisChartsConfigPopoverClose=${this.seriesPopoverClose}></arcgis-charts-config-box-plot-series-popover>`):this.selectedSeriesIndex!==void 0&&(this.seriesPopover=d(l`<arcgis-charts-config-box-plot-series-popover .referenceElement=${this.el} .selectedName=${this.model.getSeriesName(this.selectedSeriesIndex)} .selectedColor=${this.model.getSeriesColor(this.selectedSeriesIndex)} .selectedLineStyle=${this.model.getSeriesLineStyle(this.selectedSeriesIndex)} .selectedLineWidth=${this.model.getSeriesLineWidth(this.selectedSeriesIndex)} .isLineSymbol=${this.model.showMeanLines} .placement=${this.popoverPlacement} open .selectedSeriesIndex=${this.selectedSeriesIndex} .labelCanBeConfigured=${!this.meanLinesBoxColorIsSelected} @arcgisChartsConfigSeriesPopoverNameChange=${this.seriesNameChange} @arcgisChartsConfigSeriesPopoverColorChange=${this.seriesColorChange} @arcgisChartsConfigSeriesPopoverLineStyleChange=${this.seriesLineStyleChange} @arcgisChartsConfigSeriesPopoverLineWidthChange=${this.seriesLineWidthChange} @arcgisChartsConfigPopoverClose=${this.seriesPopoverClose}></arcgis-charts-config-box-plot-series-popover>`)),this.seriesPopover&&!document.body.contains(this.seriesPopover)&&document.body.appendChild(this.seriesPopover)}shouldDisableMeanLinesOption(){return this.model.splitByField===""||this.model.splitByField===void 0}renderMeanLinesBoxColorItem(){let e="#CCCCCC",i="minus-square",s=this.model.meanLinesBoxColor;if(s!==void 0){i="square-f";let[t,o,r,m]=[...s];e=`rgba(${t},${o},${r},${m/255})`}return l`<calcite-list label class=${a(n.list)}><calcite-list-item value=box-plot-color .label=${this._messages.boxPlotColor} .selected=${this.meanLinesBoxColorIsSelected} @click=${this.openSeriesPopOver}><calcite-icon slot=content-end .icon=${i} style=${c({color:e})}></calcite-icon></calcite-list-item></calcite-list>`}renderMultipleSeriesOption(){let e=this.shouldDisableMeanLinesOption();return e?[]:[l`<div class=${`${n.sectionLabel} ${n.topSection}`}>${this._messages.displayMultipleSeries}</div>`,l`<calcite-list label class=${a(n.list)} selection-mode=single-persist selection-appearance=border @click=${this.onMultipleSeriesSelect}><calcite-list-item .label=${this._messages.sideBySide} .value=${h.Side} .selected=${this.model.showMeanLines!==!0}><calcite-icon slot=content-start scale=l icon=graph-box-side-by-side></calcite-icon><calcite-icon class=${a(n.infoIcon)} slot=actions-end icon=information scale=s flip-rtl @mouseover=${i=>this.createTooltip(i,this._messages.sideBySideTooltip??"")} @mouseout=${this.destroyTooltip}></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.meanLines} .value=${h.MeanLines} .disabled=${e} .selected=${this.model.showMeanLines===!0}><calcite-icon slot=content-start scale=l icon=graph-box-mean-lines></calcite-icon><calcite-icon class=${a(n.infoIcon)} slot=actions-end icon=information scale=s flip-rtl @mouseover=${i=>this.createTooltip(i,this._messages.meanLinesTooltip??"")} @mouseout=${this.destroyTooltip}></calcite-icon></calcite-list-item></calcite-list>`,this.model.showMeanLines===!0?this.renderMeanLinesBoxColorItem():null]}render(){return l`${this.renderMultipleSeriesOption()}<div class=${a(n.sectionLabel)}>${this._messages.series}<calcite-button @click=${this.resetSeriesOriginal} .disabled=${!this.model.resetAvailable()} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button></div>${this.buildSeriesList()}`}};x("arcgis-charts-config-box-plot-series",C);return C},e,f)
|
|
2
|
+
import{a as P}from"./D7HVHYVY.js";import{a as b}from"./IVX5JR6I.js";import{a as p}from"./GSCC3FON.js";import f from"./OUM277XS.js";import"./5AKOPV7Z.js";import{a as L}from"./YOVZ4RVH.js";import e from"./WFTQTZE4.js";import"./XXO5K6N4.js";import"./WKF53DYD.js";import"./OZSOICXE.js";import"./KXU3XKM2.js";import{B as $,C as a,D as c,F as d,H as x,g as u,i as l}from"./IYVGK242.js";import"./FHN6CIIO.js";import"./AUKJ4CBR.js";import{g as h}from"./BNAX4Y53.js";import"./TIWCUJOG.js";export default $arcgis.t(([{q:g},{r:I}])=>{var n={topSection:"top-section",sectionLabel:"section-label",list:"list",infoIcon:"info-icon"},k=u`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}.top-section{margin-top:var(--arcgis-charts-config-margin-minor)}.section-label{display:flex;margin-bottom:var(--arcgis-charts-config-margin-major);margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}.list{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major)}.info-icon{margin:auto 1rem;pointer-events:auto}`,C=class extends ${constructor(){super(...arguments),this._messages=L(),this.resetSeriesOriginal=()=>{this.configSeriesOpen=!1,this.selectedSeriesId=void 0,this.model.resetSeriesStyling(),this.seriesOrderResetCounter+=1},this.onMultipleSeriesSelect=e=>{if(!this.shouldDisableMeanLinesOption()){let i=e.target,s=i.value??i.parentElement.value??"";this.model.showMeanLines=s===h.MeanLines}},this.seriesNameChange=e=>{if(e.detail!==null||e.detail!==void 0){let i=e.detail?.name,s=this.selectedSeriesIndex;s!==void 0&&s>=0&&this.model.setSeriesName(i,s)}},this.seriesColorChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{color:i}=e.detail;if(i!==void 0)if(this.meanLinesBoxColorIsSelected)this.model.meanLinesBoxColor=i;else{let s=this.selectedSeriesIndex;s!==void 0&&s>=0&&(this.model.colorMatch=!1,this.model.setSeriesColor(i,s))}}},this.seriesLineStyleChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{style:i}=e.detail,s=this.selectedSeriesIndex;i!==void 0&&s!==void 0&&s>=0&&this.model.setSeriesLineStyle(i,s)}},this.seriesLineWidthChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{width:i}=e.detail,s=this.selectedSeriesIndex;i!==void 0&&s!==void 0&&s>=0&&this.model.setSeriesLineWidth(i,s)}},this.onCalciteListOrderChange=e=>{let i=this.model.boxPlotSeriesIndexWhenMeanLinesShown;if(e.detail!==null&&e.detail!==void 0){let{newIndex:s,oldIndex:t}=e.detail,o=t,r=s;i!==-1&&(o=t>=i?t+1:t,r=s>=i?s+1:s),this.model.moveSeries(o,r),this.seriesOrderResetCounter+=1}},this.seriesPopoverClose=()=>{this.selectedSeriesId=void 0,this.meanLinesBoxColorIsSelected=!1,this.configSeriesOpen=!1,this.seriesPopover=p(this.seriesPopover)},this.openSeriesPopOver=e=>{e.stopImmediatePropagation(),this.removeSeriesPopover();let i=e.target,s=i.localName==="calcite-list-item"?i:i.parentNode,t=!this.configSeriesOpen,o=this.model.getSeriesIndex(s.value);if(o!==void 0&&o!==-1)this.configSeriesOpen=this.selectedSeriesIndex===o?t:!0,this.configSeriesOpen?this.selectedSeriesId=s.value:this.selectedSeriesId=void 0,this.meanLinesBoxColorIsSelected=!1;else if(s.value==="box-plot-color"){let r=!this.meanLinesBoxColorIsSelected;this.configSeriesOpen=r,this.meanLinesBoxColorIsSelected=r,this.selectedSeriesId=void 0}},this.createTooltip=(e,i)=>{let s=e.target;this.tooltip=d(l`<calcite-tooltip style=${c({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${s} open placement=top>${i??""}</calcite-tooltip>`),document.body.appendChild(this.tooltip)},this.destroyTooltip=()=>{I(this.tooltip)},this.onModelConfigChange=()=>{this.selectedSeriesId!==void 0&&this.selectedSeriesIndex===-1?this.seriesPopoverClose():this.seriesPopover&&(this.seriesPopover.selectedSeriesIndex=this.selectedSeriesIndex),this.requestUpdate()},this.meanLinesBoxColorIsSelected=!1,this.seriesOrderResetCounter=0,this.configSeriesOpen=!1,this.activeColorMatch=!1,this.popoverPlacement="leading"}static{this.properties={selectedSeriesId:16,meanLinesBoxColorIsSelected:16,seriesOrderResetCounter:16,messageOverrides:0,model:0,configSeriesOpen:5,activeColorMatch:5,popoverPlacement:1}}static{this.styles=k}get selectedSeriesIndex(){return this.selectedSeriesId===void 0?void 0:this.model.getSeriesIndex(this.selectedSeriesId)}load(){this.modelChange(this.model),this.onModelConfigChange()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),(e.has("selectedSeriesId")||e.has("meanLinesBoxColorIsSelected"))&&this.selectedSeriesChange()}disconnectedCallback(){super.disconnectedCallback(),this.removeSeriesPopover(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,i){i?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}selectedSeriesChange(){(this.selectedSeriesIndex!==void 0||this.meanLinesBoxColorIsSelected)&&this.configSeriesOpen?this.setupSeriesPopover():this.removeSeriesPopover()}removeSeriesPopover(){this.seriesPopover!==null&&this.seriesPopover!==void 0&&(this.seriesPopover.open=!1,this.seriesPopover=p(this.seriesPopover))}buildSeriesListItems(){let e=this.model.seriesLength,i=this.model.boxPlotSeriesIndexWhenMeanLinesShown,s=Array.from({length:e},(t,o)=>o);return P(s,t=>this.model.getSeriesId(t),t=>{let o=this.model.getSeriesId(t),r=this.model.getSeriesColor(t),m=this.model.getSeriesName(t),S=this.model.chartSubType,y=S===g.BoxPlotC1MonoField||S===g.BoxPlotC2MultiFields?this._messages.series:o,v="#CCCCCC",f="minus-square";if((e>1||!this.activeColorMatch)&&r!==void 0){f=this.model.showMeanLines===!0?"line-solid":"square-f";let[M,O,B,w]=[...r];v=`rgba(${M},${O},${B},${w/255})`}return i!==t?l`<calcite-list-item .label=${m??o??""} .description=${y} .value=${o} .selected=${this.selectedSeriesId===o} @click=${this.openSeriesPopOver}><calcite-icon slot=content-end .icon=${f} style=${c({color:v})}></calcite-icon></calcite-list-item>`:null})}buildSeriesList(){return b(this.seriesOrderResetCounter,l`<calcite-list label class=${a(n.list)} drag-enabled selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildSeriesListItems()}</calcite-list>`)}setupSeriesPopover(){this.removeSeriesPopover(),this.meanLinesBoxColorIsSelected?this.seriesPopover=d(l`<arcgis-charts-config-box-plot-series-popover .referenceElement=${this.el} .selectedColor=${this.model.meanLinesBoxColor} .placement=${this.popoverPlacement} open .selectedSeriesIndex=${this.selectedSeriesIndex} .labelCanBeConfigured=${!this.meanLinesBoxColorIsSelected} @arcgisChartsConfigSeriesPopoverNameChange=${this.seriesNameChange} @arcgisChartsConfigSeriesPopoverColorChange=${this.seriesColorChange} @arcgisChartsConfigSeriesPopoverLineStyleChange=${this.seriesLineStyleChange} @arcgisChartsConfigSeriesPopoverLineWidthChange=${this.seriesLineWidthChange} @arcgisChartsConfigPopoverClose=${this.seriesPopoverClose}></arcgis-charts-config-box-plot-series-popover>`):this.selectedSeriesIndex!==void 0&&(this.seriesPopover=d(l`<arcgis-charts-config-box-plot-series-popover .referenceElement=${this.el} .selectedName=${this.model.getSeriesName(this.selectedSeriesIndex)} .selectedColor=${this.model.getSeriesColor(this.selectedSeriesIndex)} .selectedLineStyle=${this.model.getSeriesLineStyle(this.selectedSeriesIndex)} .selectedLineWidth=${this.model.getSeriesLineWidth(this.selectedSeriesIndex)} .isLineSymbol=${this.model.showMeanLines} .placement=${this.popoverPlacement} open .selectedSeriesIndex=${this.selectedSeriesIndex} .labelCanBeConfigured=${!this.meanLinesBoxColorIsSelected} @arcgisChartsConfigSeriesPopoverNameChange=${this.seriesNameChange} @arcgisChartsConfigSeriesPopoverColorChange=${this.seriesColorChange} @arcgisChartsConfigSeriesPopoverLineStyleChange=${this.seriesLineStyleChange} @arcgisChartsConfigSeriesPopoverLineWidthChange=${this.seriesLineWidthChange} @arcgisChartsConfigPopoverClose=${this.seriesPopoverClose}></arcgis-charts-config-box-plot-series-popover>`)),this.seriesPopover&&!document.body.contains(this.seriesPopover)&&document.body.appendChild(this.seriesPopover)}shouldDisableMeanLinesOption(){return this.model.splitByField===""||this.model.splitByField===void 0}renderMeanLinesBoxColorItem(){let e="#CCCCCC",i="minus-square",s=this.model.meanLinesBoxColor;if(s!==void 0){i="square-f";let[t,o,r,m]=[...s];e=`rgba(${t},${o},${r},${m/255})`}return l`<calcite-list label class=${a(n.list)}><calcite-list-item value=box-plot-color .label=${this._messages.boxPlotColor} .selected=${this.meanLinesBoxColorIsSelected} @click=${this.openSeriesPopOver}><calcite-icon slot=content-end .icon=${i} style=${c({color:e})}></calcite-icon></calcite-list-item></calcite-list>`}renderMultipleSeriesOption(){let e=this.shouldDisableMeanLinesOption();return e?[]:[l`<div class=${`${n.sectionLabel} ${n.topSection}`}>${this._messages.displayMultipleSeries}</div>`,l`<calcite-list label class=${a(n.list)} selection-mode=single-persist selection-appearance=border @click=${this.onMultipleSeriesSelect}><calcite-list-item .label=${this._messages.sideBySide} .value=${h.Side} .selected=${this.model.showMeanLines!==!0}><calcite-icon slot=content-start scale=l icon=graph-box-side-by-side></calcite-icon><calcite-icon class=${a(n.infoIcon)} slot=actions-end icon=information scale=s flip-rtl @mouseover=${i=>this.createTooltip(i,this._messages.sideBySideTooltip??"")} @mouseout=${this.destroyTooltip}></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.meanLines} .value=${h.MeanLines} .disabled=${e} .selected=${this.model.showMeanLines===!0}><calcite-icon slot=content-start scale=l icon=graph-box-mean-lines></calcite-icon><calcite-icon class=${a(n.infoIcon)} slot=actions-end icon=information scale=s flip-rtl @mouseover=${i=>this.createTooltip(i,this._messages.meanLinesTooltip??"")} @mouseout=${this.destroyTooltip}></calcite-icon></calcite-list-item></calcite-list>`,this.model.showMeanLines===!0?this.renderMeanLinesBoxColorItem():null]}render(){return l`${this.renderMultipleSeriesOption()}<div class=${a(n.sectionLabel)}>${this._messages.series}<calcite-button @click=${this.resetSeriesOriginal} .disabled=${!this.model.resetAvailable()} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button></div>${this.buildSeriesList()}`}};x("arcgis-charts-config-box-plot-series",C);return C},e,f)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a as h}from"./OZSHGMU6.js";import{a as R}from"./H5VCT3XP.js";import{b as q}from"./GSCC3FON.js";import f from"./V35YA4VJ.js";import{l as c,m as b}from"./5AKOPV7Z.js";import{a as x}from"./FNXREQOE.js";import e from"./TFWCYDKN.js";import a from"./EPY6V4CJ.js";import{Aa as _,i as E}from"./XXO5K6N4.js";import{a as A}from"./WKF53DYD.js";import{b as T}from"./OZSOICXE.js";import"./PBQRZBQM.js";import{A as p,B as F,C as l,D as I,E as g,H as L,g as P,i as s,n as d,z as v}from"./YF6ML4P6.js";import"./FHN6CIIO.js";import"./AUKJ4CBR.js";import{b as S,w as u,x as C}from"./BNAX4Y53.js";import"./TIWCUJOG.js";export default $arcgis.t(([O,{Bc:N,Cc:B,fc:D,l:f},{c:$,d:y},{a:M,c:k,k:m}])=>{var z=P`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.panel{max-height:60vh}.color-ramp-popover{display:flex;flex-direction:column;gap:.75rem;min-width:320px;max-width:480px}.color-ramp-toolbar{display:flex;gap:.5rem;align-items:center;padding:5px 5px 0}.ramp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:.5rem;max-height:300px;overflow:auto;padding:.25rem}.ramp-item{display:flex;flex-direction:column;border:1px solid var(--calcite-color-foreground-3);background:var(--calcite-color-foreground-1);cursor:pointer;box-shadow:inset 0 0 0 1px transparent;transition:box-shadow .12s;border-radius:2px;min-height:56px;padding:4px}.ramp-item:hover{box-shadow:inset 0 0 0 1px var(--calcite-color-foreground-3)}.ramp-name{font-size:.625rem;line-height:1;padding:2px 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--calcite-color-text-3)}.ramp-item.selected{background-color:var(--calcite-color-brand)!important;border-color:var(--calcite-color-brand)!important;outline:2px solid var(--calcite-color-brand)!important;color:var(--calcite-color-foreground-1)}.ramp-item.selected .ramp-name{color:var(--calcite-color-foreground-1)}.ramp-item.selected .ramp-strip{box-shadow:none;border:none}.ramp-strips{display:flex;flex:1;height:28px;width:100%;overflow:hidden}.ramp-strip{flex:1;min-width:0}.ramp-strip-fallback{background:repeating-linear-gradient(45deg,var(--calcite-color-foreground-3) 0,var(--calcite-color-foreground-3) 5px,var(--calcite-color-foreground-2) 5px,var(--calcite-color-foreground-2) 10px)}.ramp-empty{grid-column:1/-1;font-size:.75rem;color:var(--calcite-color-text-3)}.panel-children-container{display:flex}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}.panel-children-container{padding:0 1rem;margin-top:1rem}.color-ramp-popover-footer{display:flex;padding:.5rem}.color-ramp-popover-footer calcite-button{flex:1}`,o={name:"bar-chart-data-popover",header:"header",popoverPickList:"popover-pick-list",panel:"panel",colorRampPopover:"color-ramp-popover",colorRampToolbar:"color-ramp-toolbar",rampGrid:"ramp-grid",rampItem:"ramp-item",rampName:"ramp-name",rampStrips:"ramp-strips",rampStrip:"ramp-strip",rampStripFallback:"ramp-strip-fallback",rampEmpty:"ramp-empty",panelChildrenContainer:"panel-children-container",colorRampPopoverFooter:"color-ramp-popover-footer"},w=class extends F{constructor(){super(...arguments),this._messages=x(),this.commonStrings=x({name:"common",blocking:!0}),this.picklist=v(),this.popoverElement=v(),this.placement="leading",this.offsetDistance=-200,this.availableColorRamps=[],this.selectedCategory=y.all,this.aggregationLabels=[],this.isFlipped=!1,this.open=!1,this.layerFieldsInfo=[],this.arcgisChartsConfigHeatChartColorRampChange=d(),this.arcgisChartsConfigHeatChartDataPopoverChange=d(),this.arcgisChartsConfigPopoverClose=d(),this.arcgisChartsConfigPopoverEmptyCellColorChange=d(),this.arcgisChartsConfigPopoverEmptyCellNameChange=d()}static{this.properties={availableColorRamps:16,selectedColorRampName:16,selectedCategory:16,aggregationLabels:16,isFlipped:5,model:0,messageOverrides:0,headingTitle:1,referenceElement:0,open:5,contentKind:1,layerFieldsInfo:0,selectedContent:1,colorRamps:0}}static{this.styles=z}async reposition(){await this.popoverElement.value?.reposition()}willUpdate(){let e=k.map(t=>_(t,this.commonStrings));T(this.aggregationLabels,e)||(this.aggregationLabels=e),this.colorRamps&&this.colorRamps!==this.availableColorRamps&&(this.availableColorRamps=this.colorRamps),this.contentKind===c.colorScheme&&this.selectedContent&&!this.selectedColorRampName&&(this.selectedColorRampName=this.selectedContent)}updated(){setTimeout(()=>{this.picklist.value?.setFocus()},M.PopoverTimer),q(this.popoverElement.value,this.open)}buildAggregationListItems(){return h(k.filter(e=>e!==S.NoAggregation),e=>e,(e,t)=>s`<calcite-list-item .label=${this.aggregationLabels[t]} .value=${e} .selected=${m(e,this.selectedContent)}></calcite-list-item>`)}buildPickListItem(e){return R(e.name,s`<calcite-list-item .label=${D(this.layerFieldsInfo,e.name)} .value=${e.name} .selected=${m(e.name,this.selectedContent)}></calcite-list-item>`)}buildPickListItems(e){let t=this.layerFieldsInfo?.length??0,a=[];switch(e){case c.numericFields:{let i=R(" ",s`<calcite-list-item label=" " value=" " .selected=${m("",this.selectedContent)}></calcite-list-item>`);a.push(i);for(let r=0;r<t;r+=1){let n=this.layerFieldsInfo?.[r];n&&N(n)&&a.push(this.buildPickListItem(n))}break}case c.xAxisField:{for(let i=0;i<t;i+=1){let r=this.layerFieldsInfo?.[i];r&&B(r)&&a.push(this.buildPickListItem(r))}break}}return a}closePopover(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit()}onDataContentTypeChange(e){let t=e.target.selectedItems;this.arcgisChartsConfigHeatChartDataPopoverChange.emit({contentKind:this.contentKind,value:t.map(a=>a.value)[0]}),this.open=!1}filterColorRamps(){let e=[];if(this.selectedCategory===y.all)e=this.availableColorRamps;else{let t=$[this.selectedCategory];e=this.availableColorRamps?.filter(a=>t.some(i=>a.tags.includes(i)))}return e}getRampColors(e){let t=e.colors;return this.isFlipped?[...t].reverse():t}rampColorToCss(e){let t="#000000";try{if(e){if(e instanceof O){let a=e.toHex();typeof a=="string"&&a.length&&(t=a)}else if(Array.isArray(e)){let[a,i,r,n]=e;[a,i,r].every(H=>typeof H=="number")&&(t=`rgba(${a},${i},${r},${n??1})`)}else if(typeof e=="object"&&e){let{r:a,g:i,b:r,a:n}=e;if(a!=null&&i!=null&&r!=null)return`rgba(${a},${i},${r},${n??1})`}}}catch{}return t}onCategoryDropdownSelect(e){let t=e.target.selectedItems[0]?.getAttribute("data-tag");t&&(this.selectedCategory=t)}onFlipAll(){if(this.isFlipped=!this.isFlipped,this.selectedColorRampName){let e=this.availableColorRamps.find(t=>t.name===this.selectedColorRampName);if(e){let t={...e,colors:this.getRampColors(e)};this.arcgisChartsConfigHeatChartColorRampChange.emit({rampName:e.name,ramp:t,isFlipped:this.isFlipped})}}}onRampSelect(e){this.selectedColorRampName=e.name;let t={...e,colors:this.getRampColors(e)};this.arcgisChartsConfigHeatChartColorRampChange.emit({rampName:e.name,ramp:t,isFlipped:this.isFlipped})}nameChange(e){let t=e.target.value;this.model.emptyCellText!==t&&(this.model.emptyCellText=t,this.arcgisChartsConfigPopoverEmptyCellNameChange.emit({name:t}))}colorChange(e){let t=e instanceof CustomEvent?e.detail:e,[a,i,r]=t,n=E*255;this.arcgisChartsConfigPopoverEmptyCellColorChange.emit({color:[a,i,r,n]})}renderAggregationType(){let e=this.buildAggregationListItems();return s`<calcite-list label class=${l(o.popoverPickList)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`}renderXAxisFieldSelect(){let e=this.buildPickListItems(c.xAxisField);return s`<calcite-list label class=${l(o.popoverPickList)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`}renderNumericFields(){let e=this.buildPickListItems(c.numericFields);return s`<calcite-list label class=${l(o.popoverPickList)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`}renderCalendarType(){let e=this.layerFieldsInfo.find(i=>i.name===this.model.xAxisField),t=Object.values(b).filter(i=>i!==b.WeekByDayOfWeekAndHourOfDay||e?.type!==A.DateOnly),a=h(t,i=>i,i=>{let r=this._messages[i];return s`<calcite-list-item .label=${r} .value=${i} .selected=${m(i,this.selectedContent)}></calcite-list-item>`});return s`<calcite-list label class=${l(o.popoverPickList)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${a}</calcite-list>`}renderCalendarViewType(){let e=h(Object.values(u),t=>t,t=>{let a=this._messages[t];return s`<calcite-list-item .label=${a} .value=${t} .disabled=${t!==u.singleCalendarView} .selected=${m(t,this.selectedContent)}></calcite-list-item>`});return s`<calcite-list label class=${l(o.popoverPickList)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`}renderClassBreakMethod(){let e=[{value:C.naturalBreaks,title:this._messages?.classBreaksMethod?.naturalBreaks,msg:this._messages?.classBreaksMethod?.naturalBreaksMsg},{value:C.equalInterval,title:this._messages?.classBreaksMethod?.equalInterval,msg:this._messages?.classBreaksMethod?.equalIntervalMsg},{value:C.quantile,title:this._messages?.classBreaksMethod?.quantile,msg:this._messages?.classBreaksMethod?.quantileMsg}],t=h(Object.values(e),({value:a})=>a,a=>{let{title:i,msg:r,value:n}=a;return s`<calcite-list-item .label=${i} .description=${r} .value=${n} .selected=${m(n,this.selectedContent)}></calcite-list-item>`});return s`<calcite-list label class=${l(o.popoverPickList)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${t}</calcite-list>`}renderPopoverInfo(){let e;switch(this.contentKind){case c.aggregation:e=this.renderAggregationType();break;case c.numericFields:e=this.renderNumericFields();break;case c.xAxisField:e=this.renderXAxisFieldSelect();break;case c.calendarType:e=this.renderCalendarType();break;case c.calendarViewType:e=this.renderCalendarViewType();break;case c.classBreakMethod:e=this.renderClassBreakMethod();break;case c.colorScheme:e=this.renderColorRampSelect();break;case c.null:e=this.renderEmptyCellUI();break;default:e=s`<div></div>`;break}return e}renderColorRampSelect(){let e=this.filterColorRamps(),t=this._messages?.colorRampCategories?this._messages.colorRampCategories[this.selectedCategory]:this.selectedCategory;return s`<div class=${l(o.colorRampPopover)}><div class=${l(o.colorRampToolbar)}><calcite-dropdown selection-mode=single placement=bottom-start @calciteDropdownSelect=${this.onCategoryDropdownSelect}><calcite-button slot=trigger appearance=outline icon-end=chevron-down>${t}</calcite-button><calcite-dropdown-group group-title=${this._messages?.colorRamp?.allCategories??"All color ramps"??g}>${Object.keys($).map(a=>s`<calcite-dropdown-item data-tag=${a??g} .selected=${this.selectedCategory===a}>${this._messages?.colorRampCategories?this._messages.colorRampCategories[a]:a}</calcite-dropdown-item>`)}</calcite-dropdown-group></calcite-dropdown><calcite-button appearance=outline icon-start=arrow-up-down @click=${this.onFlipAll}>${this._messages?.colorRamp?.flipRampColors}</calcite-button></div><div class=${l(o.rampGrid)}>${e.length===0&&s`<div class=${l(o.rampEmpty)}>${this._messages?.colorRamp?.noRamps} ${this.selectedCategory!=="all"?`"${this.selectedCategory}"`:""}</div>`||""}${e.map(a=>{let i=this.getRampColors(a),r=a.name===this.selectedColorRampName;return s`<div class=${`${o.rampItem} ${r?"selected":""}`} title=${a.name??g} @click=${()=>this.onRampSelect(a)}><div class=${l(o.rampName)} aria-hidden=true>${a.name}</div><div class=${l(o.rampStrips)}>${h(i,n=>n,n=>s`<div class=${l(o.rampStrip)} style=${I({backgroundColor:this.rampColorToCss(n)})}></div>`)}${i.length===0&&s`<div class=${`${o.rampStrip} ${o.rampStripFallback}`}></div>`||""}</div></div>`})}</div><div class=${l(o.colorRampPopoverFooter)}><calcite-button appearance=solid kind=brand @click=${this.closePopover}>${this._messages?.colorRamp?.done}</calcite-button></div></div>`}renderEmptyCellUI(){let e=this.model.emptyCellSymbol?.color??f.grayColor,t=this.model.emptyCellText??f.nullCategory?.text??"";return s`<div><div class=${l(o.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${t} @calciteInputInput=${this.nameChange}></calcite-input></calcite-label></div><div class=${l(o.panelChildrenContainer)}><arcgis-charts-config-colors .heading=${this._messages?.symbolColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></div>`}render(){return s`<div><calcite-popover class=${l(o.name)} .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${p(this.popoverElement)}><calcite-panel class=${l(o.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${l(o.header)}>${this.headingTitle??""}</div>${this.renderPopoverInfo()}${void 0}</calcite-panel></calcite-popover></div>`}};L("arcgis-charts-config-heat-chart-popover",w);return w},"Color",a,e,f)
|
|
2
|
+
import{a as h}from"./D7HVHYVY.js";import{a as R}from"./IVX5JR6I.js";import{b as q}from"./GSCC3FON.js";import f from"./OUM277XS.js";import{l as c,m as b}from"./5AKOPV7Z.js";import{a as x}from"./YOVZ4RVH.js";import e from"./RUGYC5G2.js";import a from"./WFTQTZE4.js";import{Aa as _,i as E}from"./XXO5K6N4.js";import{a as A}from"./WKF53DYD.js";import{b as T}from"./OZSOICXE.js";import"./KXU3XKM2.js";import{A as p,B as F,C as l,D as I,E as g,H as L,g as P,i as s,n as d,z as v}from"./IYVGK242.js";import"./FHN6CIIO.js";import"./AUKJ4CBR.js";import{b as S,w as u,x as C}from"./BNAX4Y53.js";import"./TIWCUJOG.js";export default $arcgis.t(([O,{Bc:N,Cc:B,fc:D,l:f},{c:$,d:y},{a:M,c:k,k:m}])=>{var z=P`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.panel{max-height:60vh}.color-ramp-popover{display:flex;flex-direction:column;gap:.75rem;min-width:320px;max-width:480px}.color-ramp-toolbar{display:flex;gap:.5rem;align-items:center;padding:5px 5px 0}.ramp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:.5rem;max-height:300px;overflow:auto;padding:.25rem}.ramp-item{display:flex;flex-direction:column;border:1px solid var(--calcite-color-foreground-3);background:var(--calcite-color-foreground-1);cursor:pointer;box-shadow:inset 0 0 0 1px transparent;transition:box-shadow .12s;border-radius:2px;min-height:56px;padding:4px}.ramp-item:hover{box-shadow:inset 0 0 0 1px var(--calcite-color-foreground-3)}.ramp-name{font-size:.625rem;line-height:1;padding:2px 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--calcite-color-text-3)}.ramp-item.selected{background-color:var(--calcite-color-brand)!important;border-color:var(--calcite-color-brand)!important;outline:2px solid var(--calcite-color-brand)!important;color:var(--calcite-color-foreground-1)}.ramp-item.selected .ramp-name{color:var(--calcite-color-foreground-1)}.ramp-item.selected .ramp-strip{box-shadow:none;border:none}.ramp-strips{display:flex;flex:1;height:28px;width:100%;overflow:hidden}.ramp-strip{flex:1;min-width:0}.ramp-strip-fallback{background:repeating-linear-gradient(45deg,var(--calcite-color-foreground-3) 0,var(--calcite-color-foreground-3) 5px,var(--calcite-color-foreground-2) 5px,var(--calcite-color-foreground-2) 10px)}.ramp-empty{grid-column:1/-1;font-size:.75rem;color:var(--calcite-color-text-3)}.panel-children-container{display:flex}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}.panel-children-container{padding:0 1rem;margin-top:1rem}.color-ramp-popover-footer{display:flex;padding:.5rem}.color-ramp-popover-footer calcite-button{flex:1}`,o={name:"bar-chart-data-popover",header:"header",popoverPickList:"popover-pick-list",panel:"panel",colorRampPopover:"color-ramp-popover",colorRampToolbar:"color-ramp-toolbar",rampGrid:"ramp-grid",rampItem:"ramp-item",rampName:"ramp-name",rampStrips:"ramp-strips",rampStrip:"ramp-strip",rampStripFallback:"ramp-strip-fallback",rampEmpty:"ramp-empty",panelChildrenContainer:"panel-children-container",colorRampPopoverFooter:"color-ramp-popover-footer"},w=class extends F{constructor(){super(...arguments),this._messages=x(),this.commonStrings=x({name:"common",blocking:!0}),this.picklist=v(),this.popoverElement=v(),this.placement="leading",this.offsetDistance=-200,this.availableColorRamps=[],this.selectedCategory=y.all,this.aggregationLabels=[],this.isFlipped=!1,this.open=!1,this.layerFieldsInfo=[],this.arcgisChartsConfigHeatChartColorRampChange=d(),this.arcgisChartsConfigHeatChartDataPopoverChange=d(),this.arcgisChartsConfigPopoverClose=d(),this.arcgisChartsConfigPopoverEmptyCellColorChange=d(),this.arcgisChartsConfigPopoverEmptyCellNameChange=d()}static{this.properties={availableColorRamps:16,selectedColorRampName:16,selectedCategory:16,aggregationLabels:16,isFlipped:5,model:0,messageOverrides:0,headingTitle:1,referenceElement:0,open:5,contentKind:1,layerFieldsInfo:0,selectedContent:1,colorRamps:0}}static{this.styles=z}async reposition(){await this.popoverElement.value?.reposition()}willUpdate(){let e=k.map(t=>_(t,this.commonStrings));T(this.aggregationLabels,e)||(this.aggregationLabels=e),this.colorRamps&&this.colorRamps!==this.availableColorRamps&&(this.availableColorRamps=this.colorRamps),this.contentKind===c.colorScheme&&this.selectedContent&&!this.selectedColorRampName&&(this.selectedColorRampName=this.selectedContent)}updated(){setTimeout(()=>{this.picklist.value?.setFocus()},M.PopoverTimer),q(this.popoverElement.value,this.open)}buildAggregationListItems(){return h(k.filter(e=>e!==S.NoAggregation),e=>e,(e,t)=>s`<calcite-list-item .label=${this.aggregationLabels[t]} .value=${e} .selected=${m(e,this.selectedContent)}></calcite-list-item>`)}buildPickListItem(e){return R(e.name,s`<calcite-list-item .label=${D(this.layerFieldsInfo,e.name)} .value=${e.name} .selected=${m(e.name,this.selectedContent)}></calcite-list-item>`)}buildPickListItems(e){let t=this.layerFieldsInfo?.length??0,a=[];switch(e){case c.numericFields:{let i=R(" ",s`<calcite-list-item label=" " value=" " .selected=${m("",this.selectedContent)}></calcite-list-item>`);a.push(i);for(let r=0;r<t;r+=1){let n=this.layerFieldsInfo?.[r];n&&N(n)&&a.push(this.buildPickListItem(n))}break}case c.xAxisField:{for(let i=0;i<t;i+=1){let r=this.layerFieldsInfo?.[i];r&&B(r)&&a.push(this.buildPickListItem(r))}break}}return a}closePopover(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit()}onDataContentTypeChange(e){let t=e.target.selectedItems;this.arcgisChartsConfigHeatChartDataPopoverChange.emit({contentKind:this.contentKind,value:t.map(a=>a.value)[0]}),this.open=!1}filterColorRamps(){let e=[];if(this.selectedCategory===y.all)e=this.availableColorRamps;else{let t=$[this.selectedCategory];e=this.availableColorRamps?.filter(a=>t.some(i=>a.tags.includes(i)))}return e}getRampColors(e){let t=e.colors;return this.isFlipped?[...t].reverse():t}rampColorToCss(e){let t="#000000";try{if(e){if(e instanceof O){let a=e.toHex();typeof a=="string"&&a.length&&(t=a)}else if(Array.isArray(e)){let[a,i,r,n]=e;[a,i,r].every(H=>typeof H=="number")&&(t=`rgba(${a},${i},${r},${n??1})`)}else if(typeof e=="object"&&e){let{r:a,g:i,b:r,a:n}=e;if(a!=null&&i!=null&&r!=null)return`rgba(${a},${i},${r},${n??1})`}}}catch{}return t}onCategoryDropdownSelect(e){let t=e.target.selectedItems[0]?.getAttribute("data-tag");t&&(this.selectedCategory=t)}onFlipAll(){if(this.isFlipped=!this.isFlipped,this.selectedColorRampName){let e=this.availableColorRamps.find(t=>t.name===this.selectedColorRampName);if(e){let t={...e,colors:this.getRampColors(e)};this.arcgisChartsConfigHeatChartColorRampChange.emit({rampName:e.name,ramp:t,isFlipped:this.isFlipped})}}}onRampSelect(e){this.selectedColorRampName=e.name;let t={...e,colors:this.getRampColors(e)};this.arcgisChartsConfigHeatChartColorRampChange.emit({rampName:e.name,ramp:t,isFlipped:this.isFlipped})}nameChange(e){let t=e.target.value;this.model.emptyCellText!==t&&(this.model.emptyCellText=t,this.arcgisChartsConfigPopoverEmptyCellNameChange.emit({name:t}))}colorChange(e){let t=e instanceof CustomEvent?e.detail:e,[a,i,r]=t,n=E*255;this.arcgisChartsConfigPopoverEmptyCellColorChange.emit({color:[a,i,r,n]})}renderAggregationType(){let e=this.buildAggregationListItems();return s`<calcite-list label class=${l(o.popoverPickList)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`}renderXAxisFieldSelect(){let e=this.buildPickListItems(c.xAxisField);return s`<calcite-list label class=${l(o.popoverPickList)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`}renderNumericFields(){let e=this.buildPickListItems(c.numericFields);return s`<calcite-list label class=${l(o.popoverPickList)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`}renderCalendarType(){let e=this.layerFieldsInfo.find(i=>i.name===this.model.xAxisField),t=Object.values(b).filter(i=>i!==b.WeekByDayOfWeekAndHourOfDay||e?.type!==A.DateOnly),a=h(t,i=>i,i=>{let r=this._messages[i];return s`<calcite-list-item .label=${r} .value=${i} .selected=${m(i,this.selectedContent)}></calcite-list-item>`});return s`<calcite-list label class=${l(o.popoverPickList)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${a}</calcite-list>`}renderCalendarViewType(){let e=h(Object.values(u),t=>t,t=>{let a=this._messages[t];return s`<calcite-list-item .label=${a} .value=${t} .disabled=${t!==u.singleCalendarView} .selected=${m(t,this.selectedContent)}></calcite-list-item>`});return s`<calcite-list label class=${l(o.popoverPickList)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`}renderClassBreakMethod(){let e=[{value:C.naturalBreaks,title:this._messages?.classBreaksMethod?.naturalBreaks,msg:this._messages?.classBreaksMethod?.naturalBreaksMsg},{value:C.equalInterval,title:this._messages?.classBreaksMethod?.equalInterval,msg:this._messages?.classBreaksMethod?.equalIntervalMsg},{value:C.quantile,title:this._messages?.classBreaksMethod?.quantile,msg:this._messages?.classBreaksMethod?.quantileMsg}],t=h(Object.values(e),({value:a})=>a,a=>{let{title:i,msg:r,value:n}=a;return s`<calcite-list-item .label=${i} .description=${r} .value=${n} .selected=${m(n,this.selectedContent)}></calcite-list-item>`});return s`<calcite-list label class=${l(o.popoverPickList)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${t}</calcite-list>`}renderPopoverInfo(){let e;switch(this.contentKind){case c.aggregation:e=this.renderAggregationType();break;case c.numericFields:e=this.renderNumericFields();break;case c.xAxisField:e=this.renderXAxisFieldSelect();break;case c.calendarType:e=this.renderCalendarType();break;case c.calendarViewType:e=this.renderCalendarViewType();break;case c.classBreakMethod:e=this.renderClassBreakMethod();break;case c.colorScheme:e=this.renderColorRampSelect();break;case c.null:e=this.renderEmptyCellUI();break;default:e=s`<div></div>`;break}return e}renderColorRampSelect(){let e=this.filterColorRamps(),t=this._messages?.colorRampCategories?this._messages.colorRampCategories[this.selectedCategory]:this.selectedCategory;return s`<div class=${l(o.colorRampPopover)}><div class=${l(o.colorRampToolbar)}><calcite-dropdown selection-mode=single placement=bottom-start @calciteDropdownSelect=${this.onCategoryDropdownSelect}><calcite-button slot=trigger appearance=outline icon-end=chevron-down>${t}</calcite-button><calcite-dropdown-group group-title=${this._messages?.colorRamp?.allCategories??"All color ramps"??g}>${Object.keys($).map(a=>s`<calcite-dropdown-item data-tag=${a??g} .selected=${this.selectedCategory===a}>${this._messages?.colorRampCategories?this._messages.colorRampCategories[a]:a}</calcite-dropdown-item>`)}</calcite-dropdown-group></calcite-dropdown><calcite-button appearance=outline icon-start=arrow-up-down @click=${this.onFlipAll}>${this._messages?.colorRamp?.flipRampColors}</calcite-button></div><div class=${l(o.rampGrid)}>${e.length===0&&s`<div class=${l(o.rampEmpty)}>${this._messages?.colorRamp?.noRamps} ${this.selectedCategory!=="all"?`"${this.selectedCategory}"`:""}</div>`||""}${e.map(a=>{let i=this.getRampColors(a),r=a.name===this.selectedColorRampName;return s`<div class=${`${o.rampItem} ${r?"selected":""}`} title=${a.name??g} @click=${()=>this.onRampSelect(a)}><div class=${l(o.rampName)} aria-hidden=true>${a.name}</div><div class=${l(o.rampStrips)}>${h(i,n=>n,n=>s`<div class=${l(o.rampStrip)} style=${I({backgroundColor:this.rampColorToCss(n)})}></div>`)}${i.length===0&&s`<div class=${`${o.rampStrip} ${o.rampStripFallback}`}></div>`||""}</div></div>`})}</div><div class=${l(o.colorRampPopoverFooter)}><calcite-button appearance=solid kind=brand @click=${this.closePopover}>${this._messages?.colorRamp?.done}</calcite-button></div></div>`}renderEmptyCellUI(){let e=this.model.emptyCellSymbol?.color??f.grayColor,t=this.model.emptyCellText??f.nullCategory?.text??"";return s`<div><div class=${l(o.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${t} @calciteInputInput=${this.nameChange}></calcite-input></calcite-label></div><div class=${l(o.panelChildrenContainer)}><arcgis-charts-config-colors .heading=${this._messages?.symbolColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></div>`}render(){return s`<div><calcite-popover class=${l(o.name)} .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${p(this.popoverElement)}><calcite-panel class=${l(o.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${l(o.header)}>${this.headingTitle??""}</div>${this.renderPopoverInfo()}${void 0}</calcite-panel></calcite-popover></div>`}};L("arcgis-charts-config-heat-chart-popover",w);return w},"Color",a,e,f)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import{l as a}from"./IYVGK242.js";var v=(e,n)=>{let t=e;for(;t;){if(t===n)return!0;if(!t.parentNode)return!1;t.parentNode instanceof ShadowRoot?t=t.parentNode.host:t=t.parentNode}return!1},g=(e,n,t)=>{let o=w(n).subscribe;return o(r=>{r.some(s=>v(e,s.target))&&t()})},u={},w=e=>{let n=e.join(","),t=u[n];if(t!==void 0)return t;let o=new Set,r=new MutationObserver(s=>o.forEach(l=>l(s)));globalThis.document&&r.observe(document.documentElement,{attributes:!0,attributeFilter:e,subtree:!0});let c={subscribe:s=>(o.add(s),()=>{o.delete(s),o.size===0&&(r.disconnect(),u[n]=void 0)})};return u[n]=c,c},h=(e,n)=>{let t=e;for(;t;){let o=t.closest?.(n);if(o)return o;let r=t.getRootNode?.();if(r===globalThis.document)return;t=r?.host}};function S(e){let n=h(e,".calcite-mode-dark, .calcite-mode-light, .calcite-mode-auto");return n?.classList.contains("calcite-mode-dark")||n?.classList.contains("calcite-mode-auto")&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}var z=e=>f(e,"dir","ltr"),f=(e,n,t)=>h(e,`[${n}]`)?.getAttribute(n)??t;function C(e){return e.ownerDocument.defaultView||window}var E="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(","),L=new Set(E),i="en",$={pt:"pt-BR",nb:"no",nn:"no",zh:"zh-CN"},m=async(e,n,t="")=>{let o=`${n}/${t}`,r=`${o}${e}.json`;return p[r]??=b(e,o),await p[r]},p={},b=async(e,n)=>{let t=`${n}${e}.json`;try{let o=await fetch(t);if(o.ok)return await o.json()}catch(o){return a("error","intl",`An unknown error occurred while fetching localization strings at ${t}`,{detail:{error:o}}),{}}return e===i?{}:await b(i,n)},d=e=>{let[n,t]=e.split("-"),o=n.toLowerCase(),r=o;return t&&(r=`${o}-${t.toUpperCase()}`),r=$[r]??r,L.has(r)?r:t?d(o):i};var k=e=>{let n=f(e,"lang",globalThis.navigator?.language||i);return{lang:n,t9nLocale:d(n)}},O=(e,n,t,o)=>{let r,c=()=>y(e,n(),o).then(s=>{(r?.lang!==s.lang||r.t9nLocale!==s.t9nLocale||r.t9nStrings!==s.t9nStrings)&&t(s),r=s}).catch(s=>{a("error","intl","Error updating component locale state",{detail:{error:s}})});return queueMicrotask(c),g(e,["lang"],c)},y=async(e,n,t=e.localName.split("-").slice(1).join("-"))=>{let{lang:o,t9nLocale:r}=k(e),c=`${n}/${t}/t9n`,l=t===null?{}:await m(r,c,"messages.");return{lang:o,t9nLocale:r,t9nStrings:l}};export{g as a,h as b,S as c,z as d,C as e,L as f,i as g,m as h,d as i,k as j,O as k};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a as C}from"./
|
|
2
|
+
import{a as C}from"./IVX5JR6I.js";import{b}from"./GSCC3FON.js";import d from"./OUM277XS.js";import{j as r}from"./5AKOPV7Z.js";import{a as S}from"./YOVZ4RVH.js";import a from"./WFTQTZE4.js";import"./XXO5K6N4.js";import{f as h}from"./WKF53DYD.js";import"./OZSOICXE.js";import"./KXU3XKM2.js";import{A as p,B as f,C as l,H as v,g,i as s,n as o,z as c}from"./IYVGK242.js";import"./FHN6CIIO.js";import"./AUKJ4CBR.js";import"./BNAX4Y53.js";import"./TIWCUJOG.js";export default $arcgis.t(([{Bc:$,fc:y},{a:u,k:d,l:P}])=>{var n={scatterplotPopover:"scatter-plot-popover",fillColor:"fill-color",header:"header",popoverPickList:"popover-pick-list",pickListPanel:"pick-list-panel"},k=g`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{width:100%}.pick-list-panel{max-height:60vh}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}`,m=class extends f{constructor(){super(...arguments),this.picklist=c(),this._messages=S(),this.popoverElement=c(),this.open=!1,this.layerFieldsInfo=[],this.arcgisChartsConfigPopoverClose=o(),this.arcgisChartsConfigScatterplotFillColorChange=o(),this.arcgisChartsConfigScatterplotLineStyleChange=o(),this.arcgisChartsConfigScatterplotSizeVariableFieldChange=o(),this.arcgisChartsConfigScatterplotAdditionalTooltipFieldChange=o(),this.arcgisChartsConfigScatterplotXYFieldChange=o()}static{this.properties={messageOverrides:0,headingTitle:1,contentKind:1,selectedContent:1,referenceElement:0,placement:1,open:5,layerFieldsInfo:0}}static{this.styles=k}async reposition(){await this.popoverElement.value?.reposition()}updated(){setTimeout(()=>{this.picklist.value?.setFocus()},u.PopoverTimer),b(this.popoverElement.value,this.open)}seriesPopoverClose(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit()}closePopover(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit()}updateSymbolProperties(e){this.selectedContent=e.target.lineStyle,this.arcgisChartsConfigScatterplotLineStyleChange.emit(e.detail)}updateColorProperties(e){this.selectedContent=e.detail,this.arcgisChartsConfigScatterplotFillColorChange.emit(e.detail)}onFieldSelectionChange(e){let t=e.target.selectedItems;this.contentKind===r.sizeVariable?this.arcgisChartsConfigScatterplotSizeVariableFieldChange.emit(t.map(i=>i.value)[0]):this.contentKind===r.additionalTooltipFields?this.arcgisChartsConfigScatterplotAdditionalTooltipFieldChange.emit(t.map(i=>i.value)[0]):this.arcgisChartsConfigScatterplotXYFieldChange.emit(t.map(i=>i.value)[0]),this.open=!1}render(){let e=this.selectedContent,t=this.selectedContent;return s`<div><calcite-popover class=${l(n.scatterplotPopover)} .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} .offsetDistance=${P(this.placement)} @calcitePopoverClose=${this.closePopover} .open=${this.open} label auto-close ${p(this.popoverElement)}>${Array.isArray(e)?s`<arcgis-charts-config-color-style .header=${this._messages.fillColor} class=${l(n.fillColor)} enable-close .open=${this.open} .selectedColor=${e} @arcgisChartsConfigColorStyleClose=${this.seriesPopoverClose} @arcgisChartsConfigColorStyleChange=${this.updateColorProperties}></arcgis-charts-config-color-style>`:null}${t?.type===h.SLS?s`<arcgis-charts-config-line-style .header=${this._messages.lineStyle} .open=${this.open} enable-close use-panel .lineStyle=${t} @arcgisChartsConfigLineStyleClose=${this.seriesPopoverClose} @arcgisChartsConfigLineStyleChange=${this.updateSymbolProperties}></arcgis-charts-config-line-style>`:null}${!Array.isArray(e)&&t?.type!==h.SLS?this.renderVariablePickList():null}</calcite-popover></div>`}renderVariablePickList(){let e=this.layerFieldsInfo?.length??0,t=[];(this.contentKind===r.sizeVariable||this.contentKind===r.additionalTooltipFields)&&t.push(C(" ",s`<calcite-list-item label=" " value=" " .selected=${d("",this.selectedContent)}></calcite-list-item>`));for(let i=0;i<e;i+=1){let a=this.layerFieldsInfo?.[i]??void 0;if(a!==void 0&&(this.contentKind===r.additionalTooltipFields||$(a))){let F=y(this.layerFieldsInfo,a.name);t.push(C(a.name,s`<calcite-list-item .label=${F} .value=${a.name} .selected=${d(a.name,this.selectedContent)}></calcite-list-item>`))}}return s`<calcite-panel class=${l(n.pickListPanel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${l(n.header)}>${this.headingTitle??""}</div><calcite-list label class=${l(n.popoverPickList)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onFieldSelectionChange} ${p(this.picklist)}>${t}</calcite-list></calcite-panel>`}};v("arcgis-charts-config-scatter-plot-popover",m);return m},a,d)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a as u}from"./
|
|
2
|
+
import{a as u}from"./D7HVHYVY.js";import{a as f}from"./IVX5JR6I.js";import{a as o}from"./GSCC3FON.js";import b from"./OUM277XS.js";import"./5AKOPV7Z.js";import{a as S}from"./YOVZ4RVH.js";import a from"./WFTQTZE4.js";import"./XXO5K6N4.js";import"./WKF53DYD.js";import"./OZSOICXE.js";import"./KXU3XKM2.js";import{B as c,D as m,F as g,H as C,g as h,i as r}from"./IYVGK242.js";import"./FHN6CIIO.js";import"./AUKJ4CBR.js";import"./BNAX4Y53.js";import"./TIWCUJOG.js";export default $arcgis.t(([{q:p},{p:v}])=>{var O=h`:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}`,l=class extends c{constructor(){super(...arguments),this._messages=S(),this.seriesPopover=null,this.open=!1,this.seriesNameChange=e=>{if(e.detail!==null||e.detail!==void 0){let i=e.detail?.name,s=this.selectedSeriesIndex;s!==void 0&&s>=0&&this.model.setSeriesName(i,s)}},this.seriesColorChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{color:i}=e.detail;this.model.colorMatch=!1;let s=this.selectedSeriesIndex;i!==void 0&&s!==void 0&&s>=0&&(this.model.setSeriesColor(i,s),this.model.setSeriesMarkerColor(i,s))}},this.seriesLineStyleChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{lineStyle:i}=e.detail,s=this.selectedSeriesIndex;i!==void 0&&s!==void 0&&s>=0&&this.model.setSeriesLineStyle(i,s)}},this.seriesLineWidthChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{lineWidth:i}=e.detail,s=this.selectedSeriesIndex;i!==void 0&&s!==void 0&&s>=0&&(this.model.setSeriesLineWidth(i,s),this.model.setSeriesMarkerSize(i*2,s))}},this.seriesPopoverClose=e=>{let{selectedSeriesIndex:i}=e.detail;this.selectedSeriesIndex===i&&(this.seriesPopover=o(this.seriesPopover),this.selectedSeriesId=void 0)},this.onModelConfigChange=()=>{this.selectedSeriesId!==void 0&&this.selectedSeriesIndex===-1?(this.removeSeriesPopover(),this.selectedSeriesId=void 0):this.seriesPopover&&(this.seriesPopover.selectedSeriesIndex=this.selectedSeriesIndex),this.requestUpdate()},this.seriesOrderResetCounter=0,this.activeColorMatch=!1,this.popoverPlacement="leading"}static{this.properties={selectedSeriesId:16,seriesOrderResetCounter:16,messageOverrides:0,model:0,activeColorMatch:5,popoverPlacement:1}}static{this.styles=O}get selectedSeriesIndex(){return this.selectedSeriesId===void 0?void 0:this.model.getSeriesIndex(this.selectedSeriesId)}load(){this.modelChange(this.model),this.onModelConfigChange()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("selectedSeriesId")&&this.selectedSeriesChange()}disconnectedCallback(){super.disconnectedCallback(),this.removeSeriesPopover(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,i){i?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}selectedSeriesChange(){this.selectedSeriesIndex!==void 0&&(this.seriesPopover=g(r`<arcgis-charts-config-line-chart-series-popover .referenceElement=${this.el} .selectedName=${this.model.getSeriesName(this.selectedSeriesIndex)} .selectedColor=${this.model.getSeriesColor(this.selectedSeriesIndex)} .selectedLineStyle=${this.model.getSeriesLineStyle(this.selectedSeriesIndex)} .selectedLineWidth=${this.model.getSeriesLineWidth(this.selectedSeriesIndex)} .placement=${this.popoverPlacement} .open=${this.open} .selectedSeriesIndex=${this.selectedSeriesIndex} @arcgisChartsConfigSeriesPopoverNameChange=${this.seriesNameChange} @arcgisChartsConfigSeriesPopoverColorChange=${this.seriesColorChange} @arcgisChartsConfigSeriesPopoverLineStyleChange=${this.seriesLineStyleChange} @arcgisChartsConfigSeriesPopoverLineWidthChange=${this.seriesLineWidthChange} @arcgisChartsConfigPopoverClose=${this.seriesPopoverClose}></arcgis-charts-config-line-chart-series-popover>`),this.seriesPopover&&!document.body.contains(this.seriesPopover)&&document.body.appendChild(this.seriesPopover))}removeSeriesPopover(){this.seriesPopover!==void 0&&this.seriesPopover!==null&&(this.seriesPopover.open=!1,this.seriesPopover=o(this.seriesPopover))}buildSeriesListItems(){let e=this.model.seriesLength,i=Array.from({length:e},(s,t)=>t);return u(i,s=>this.model.getSeriesId(s),s=>{let t=this.model.getSeriesId(s),d=this.model.getSeriesColor(s),I=this.model.getSeriesName(s),$=this.model.chartSubType===p.BarAndLineFromFields?this._messages.series:t,P=this.model.getSeriesLineStyle(s),L=v(P),n="#CCCCCC",a="minus-circle";if((e>1||!this.activeColorMatch)&&d!==void 0){a=`line-${L}`;let[x,b,y,M]=[...d];n=`rgba(${x},${b},${y},${M/255})`}return r`<calcite-list-item .label=${I??t??""} .description=${$} .value=${t} .selected=${this.selectedSeriesId===t} @click=${this.openSeriesPopOver}><calcite-icon slot=content-end .icon=${a} style=${m({color:n})}></calcite-icon></calcite-list-item>`})}buildSeriesList(){return f(this.seriesOrderResetCounter,r`<calcite-list label drag-enabled selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildSeriesListItems()}</calcite-list>`)}resetSeriesOriginal(){this.selectedSeriesId=void 0,this.model.resetSeriesStyling(),this.seriesOrderResetCounter+=1}onCalciteListOrderChange(e){if(e.detail!==null&&e.detail!==void 0){let{newIndex:i,oldIndex:s}=e.detail;this.model.moveSeries(s??0,i??s??0),this.seriesOrderResetCounter+=1}}openSeriesPopOver(e){e.stopImmediatePropagation(),this.removeSeriesPopover();let i=e.target,s=i.localName==="calcite-list-item"?i:i.parentNode;this.open=this.selectedSeriesId!==s.value,this.selectedSeriesId=this.open?s.value:void 0}render(){return r`<calcite-panel .heading=${this._messages.series}><calcite-button slot=header-actions-end @click=${this.resetSeriesOriginal} .disabled=${!this.model.resetAvailable()} appearance=transparent scale=s icon-end=reset>${this._messages.reset}</calcite-button>${this.buildSeriesList()}</calcite-panel>`}};C("arcgis-charts-config-line-chart-series",l);return l},a,b)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import b from"./
|
|
2
|
+
import b from"./XWBETWPT.js";import a from"./WFTQTZE4.js";import{Ka as f}from"./XXO5K6N4.js";export default $arcgis.t(([{Ka:i},{d:g,e:c}])=>{var h=r=>{let{config:e,seriesIndex:n,callback:s}=r;[n!==void 0?e.series?.[n]:e.series].flat().forEach(o=>{i(o)&&s(o)})},k=(r,e)=>i(e.series?.[r])?e.series?.[r].hideOversizedSideBySideLabels:void 0,y=r=>{let{hide:e,seriesIndex:n,config:s}=r;h({config:s,seriesIndex:n,callback:o=>{o.hideOversizedSideBySideLabels=e}})},z=(r,e)=>i(e.series?.[r])?e.series?.[r].hideOversizedStackedLabels:void 0,_=r=>{let{hide:e,seriesIndex:n,config:s}=r;h({config:s,seriesIndex:n,callback:o=>{o.hideOversizedStackedLabels=e}})},p=Object.defineProperty,b=Object.getOwnPropertyDescriptor,l=(r,e,n,s)=>{for(var o=b(e,n),t=r.length-1,u;t>=0;t--)(u=r[t])&&(o=u(e,n,o)||o);return o&&p(e,n,o),o};function a(r){return r.series.some(i)}function C(r){return a(r)?r.roundCorners?.rounded??!1:!1}function v(r,e){let n=r??!1;e.roundCorners={rounded:n,cornerRadius:e.roundCorners?.cornerRadius??f}}function m(r){return r.roundCorners?.cornerRadius}function R(r,e){e.roundCorners={rounded:e.roundCorners?.rounded??!1,cornerRadius:r??e.roundCorners?.cornerRadius}}var d=class extends g{get roundCorners(){return C(this._config)}set roundCorners(e){a(this._config)&&v(e,this._config)}get cornerRadius(){return m(this._config)}set cornerRadius(e){a(this._config)&&R(e,this._config)}};l([c],d.prototype,"roundCorners");l([c],d.prototype,"cornerRadius");return{a:k,b:y,c:z,d:_,e:d}},a,b)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{b as $}from"./GSCC3FON.js";import{a as u}from"./
|
|
2
|
+
import{b as $}from"./GSCC3FON.js";import{a as u}from"./YOVZ4RVH.js";import{i as c}from"./XXO5K6N4.js";import{f as b}from"./WKF53DYD.js";import{b as S}from"./OZSOICXE.js";import"./KXU3XKM2.js";import{A as f,B as v,C as l,H as y,g as C,i as n,n as a,z as g}from"./IYVGK242.js";import"./BNAX4Y53.js";import"./TIWCUJOG.js";var L={panelChildrenContainer:"panel-children-container"},P=C`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{overflow-y:auto;width:min-content}.panel-children-container{display:flex}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}.panel-children-container{padding:0 1rem;margin-top:1rem}`,h=class extends v{constructor(){super(...arguments),this._messages=u(),this.popoverElement=g(),this.isLineSymbol=!1,this.open=!1,this.labelCanBeConfigured=!1,this.arcgisChartsConfigPopoverClose=a(),this.arcgisChartsConfigSeriesPopoverColorChange=a(),this.arcgisChartsConfigSeriesPopoverLineStyleChange=a(),this.arcgisChartsConfigSeriesPopoverLineWidthChange=a(),this.arcgisChartsConfigSeriesPopoverNameChange=a()}static{this.properties={messageOverrides:0,referenceElement:0,selectedName:1,selectedColor:0,selectedLineStyle:1,selectedLineWidth:9,selectedSeriesIndex:9,isLineSymbol:5,placement:1,open:5,labelCanBeConfigured:5}}static{this.styles=P}async reposition(){await this.popoverElement.value?.reposition()}updated(){$(this.popoverElement.value,this.open)}seriesNameChange(e){let i=e.target.value;this.selectedName!==i&&(this.selectedName=i,this.arcgisChartsConfigSeriesPopoverNameChange.emit({name:i}))}closePopover(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit()}colorChange(e){let i=e instanceof CustomEvent?e.detail:e,[o,t,s]=i,r=c*255;this.selectedColor=[o,t,s,r],this.arcgisChartsConfigSeriesPopoverColorChange.emit({color:[o,t,s,r]})}lineSymbolChange(e){let{lineStyle:i}=e.target,{color:o,style:t,width:s}=i;if(o!==void 0&&!S(o,this.selectedColor)){let[r,p,d]=o,m=c*255;this.selectedColor=[r,p,d,m],this.arcgisChartsConfigSeriesPopoverColorChange.emit({color:[r,p,d,m]})}t!==void 0&&t!==this.selectedLineStyle&&(this.selectedLineStyle=t,this.arcgisChartsConfigSeriesPopoverLineStyleChange.emit({style:t})),s!==void 0&&s!==this.selectedLineWidth&&(this.selectedLineWidth=s,this.arcgisChartsConfigSeriesPopoverLineWidthChange.emit({width:s}))}render(){let e=this.selectedColor;return n`<div><calcite-popover .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${f(this.popoverElement)}><calcite-panel .heading=${this._messages.seriesElement} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}>${this.labelCanBeConfigured?n`<div class=${l(L.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${this.selectedName} @calciteInputInput=${this.seriesNameChange}></calcite-input></calcite-label></div>`:null}<div class=${l(this.isLineSymbol?"":L.panelChildrenContainer)}>${this.isLineSymbol?n`<arcgis-charts-config-line-style .open=${this.open} enable-close .lineStyle=${{type:b.SLS,style:this.selectedLineStyle,width:this.selectedLineWidth,color:e}} @arcgisChartsConfigLineStyleClose=${this.closePopover} @arcgisChartsConfigLineStyleChange=${this.lineSymbolChange}></arcgis-charts-config-line-style>`:n`<arcgis-charts-config-colors .heading=${this._messages.symbolColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors>`}</div></calcite-panel></calcite-popover></div>`}};y("arcgis-charts-config-box-plot-series-popover",h);export{h as ArcgisChartsConfigBoxPlotSeriesPopover};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import d from"./
|
|
2
|
+
import d from"./VQ7NP3P7.js";import c from"./XWBETWPT.js";import b from"./WFTQTZE4.js";import{G as p,I as f,c as a}from"./XXO5K6N4.js";export default $arcgis.t(([{Yb:k,bd:R,mc:N},{d:i,e:l},{a:q,b:E,d:U,f:M}])=>{var G=Object.defineProperty,J=Object.getOwnPropertyDescriptor,Z=(e,t,o,c)=>{for(var r=J(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&G(t,o,r),r},K=e=>e.title?.content,Q=(e,t)=>{if(e){let o=q(t);t.title===void 0&&(t.title=f({text:"",visible:!0,font:p(a.ChartTitle),type:a.ChartTitle})),t.title.content={...e,text:o}}},g=class extends i{get titleSymbol(){return K(this._config)}set titleSymbol(t){Q(t,this._config)}};Z([l],g.prototype,"titleSymbol");var X=Object.defineProperty,Y=Object.getOwnPropertyDescriptor,$=(e,t,o,c)=>{for(var r=Y(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&X(t,o,r),r},b=class extends i{get config(){return this._config}set config(t){this._config=t}};$([l],b.prototype,"config");var V=class extends i{get layer(){return this.layerInfo?.layer}},H=e=>e.id,tt=(e,t)=>{t.id=e},F=class extends i{get chartId(){return H(this._config)}set chartId(t){tt(t,this._config)}},et=e=>e.version,w=class extends i{get version(){return et(this._config)}},rt=Object.defineProperty,ot=Object.getOwnPropertyDescriptor,st=(e,t,o,c)=>{for(var r=ot(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&rt(t,o,r),r},W=e=>e.subtitle?.content.text??"",nt=(e,t)=>{t.subtitle!==void 0?t.subtitle.content.text=e:e!==void 0&&(t.subtitle=f({text:e,visible:!0,font:p(a.ChartSubtitle)}))},d=class extends i{get subtitleText(){return W(this._config)}set subtitleText(t){nt(t,this._config)}};st([l],d.prototype,"subtitleText");var it=Object.defineProperty,ct=Object.getOwnPropertyDescriptor,lt=(e,t,o,c)=>{for(var r=ct(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&it(t,o,r),r},at=e=>e.subtitle?.content,pt=(e,t)=>{if(e){let o=W(t);t.subtitle===void 0&&(t.subtitle=f({text:"",visible:!0,font:p(a.ChartSubtitle),type:a.ChartSubtitle})),t.subtitle.content={...e,text:o}}},h=class extends i{get subtitleSymbol(){return at(this._config)}set subtitleSymbol(t){pt(t,this._config)}};lt([l],h.prototype,"subtitleSymbol");var ft=Object.defineProperty,gt=Object.getOwnPropertyDescriptor,bt=(e,t,o,c)=>{for(var r=gt(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&ft(t,o,r),r},A=e=>e.footer?.content.text??"",dt=(e,t)=>{t.footer!==void 0?t.footer.content.text=e:e!==void 0&&(t.footer=f({text:e,visible:!0,font:p(a.DescriptionText)}))},u=class extends i{get descriptionText(){return A(this._config)}set descriptionText(t){dt(t,this._config)}};bt([l],u.prototype,"descriptionText");var ht=Object.defineProperty,ut=Object.getOwnPropertyDescriptor,yt=(e,t,o,c)=>{for(var r=ut(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&ht(t,o,r),r},vt=e=>e.footer?.content,xt=(e,t)=>{if(e){let o=A(t);t.footer===void 0&&(t.footer=f({text:"",visible:!0,font:p(a.DescriptionText),type:a.DescriptionText})),t.footer.content={...e,text:o}}},y=class extends i{get descriptionSymbol(){return vt(this._config)}set descriptionSymbol(t){xt(t,this._config)}};yt([l],y.prototype,"descriptionSymbol");var Ot=Object.defineProperty,_t=Object.getOwnPropertyDescriptor,jt=(e,t,o,c)=>{for(var r=_t(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&Ot(t,o,r),r},Pt=e=>e.title?e.title.visible??!0:!1,Dt=(e,t)=>{t.title!==void 0?t.title.visible=e:t.title=f({text:"",visible:e,font:p(a.ChartTitle)})},v=class extends i{get chartTitleVisibility(){return Pt(this._config)}set chartTitleVisibility(t){Dt(t,this._config)}};jt([l],v.prototype,"chartTitleVisibility");var St=Object.defineProperty,mt=Object.getOwnPropertyDescriptor,Tt=(e,t,o,c)=>{for(var r=mt(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&St(t,o,r),r},Vt=e=>e.subtitle?e.subtitle.visible??!0:!1,Ft=(e,t)=>{t.subtitle!==void 0?t.subtitle.visible=e:t.subtitle=f({text:"",visible:e,font:p(a.ChartSubtitle)})},x=class extends i{get chartSubtitleVisibility(){return Vt(this._config)}set chartSubtitleVisibility(t){Ft(t,this._config)}};Tt([l],x.prototype,"chartSubtitleVisibility");var wt=Object.defineProperty,Ct=Object.getOwnPropertyDescriptor,It=(e,t,o,c)=>{for(var r=Ct(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&wt(t,o,r),r},B=e=>e.footer?.visible??!1,zt=(e,t)=>{t.footer!==void 0?t.footer.visible=e:e!==B(t)&&(t.footer=f({text:"",visible:!0,font:p(a.DescriptionText)}))},O=class extends i{get descriptionVisibility(){return B(this._config)}set descriptionVisibility(t){zt(t,this._config)}};It([l],O.prototype,"descriptionVisibility");var Lt=Object.defineProperty,kt=Object.getOwnPropertyDescriptor,Nt=(e,t,o,c)=>{for(var r=kt(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&Lt(t,o,r),r},Rt=e=>e.chartRenderer,qt=(e,t)=>{t.chartRenderer=e},_=class extends i{get chartRenderer(){return Rt(this._config)}set chartRenderer(t){qt(t,this._config)}};Nt([l],_.prototype,"chartRenderer");var Et=Object.defineProperty,Ut=Object.getOwnPropertyDescriptor,Mt=(e,t,o,c)=>{for(var r=Ut(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&Et(t,o,r),r},Wt=e=>e.background,At=(e,t)=>{t.background=e},j=class extends i{get backgroundColor(){return Wt(this._config)}set backgroundColor(t){At(t,this._config)}};Mt([l],j.prototype,"backgroundColor");var Bt=Object.defineProperty,Gt=Object.getOwnPropertyDescriptor,Jt=(e,t,o,c)=>{for(var r=Gt(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&Bt(t,o,r),r},Zt=(e,t)=>t.series[e].visible??!0,Kt=(e,t)=>{N({detail:e},t)},P=class extends i{getSeriesVisibility(t){return Zt(t,this._config)}setSeriesVisibility(t){Kt(t,this._config)}};Jt([l],P.prototype,"setSeriesVisibility");var Qt=(e,t)=>t.series[e]?.id,C=class extends i{getSeriesId(t){return Qt(t,this._config)}},Xt=(e,t)=>t.series.findIndex(o=>o.id===e),I=class extends i{getSeriesIndex(t){return Xt(t,this._config)}},Yt=e=>R(e.series),z=class extends i{get chartSubType(){return Yt(this._config)}},$t=Object.defineProperty,Ht=Object.getOwnPropertyDescriptor,te=(e,t,o,c)=>{for(var r=Ht(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&$t(t,o,r),r},ee=(e,t)=>e.length!==0&&t<e.length?e[t].dataTooltipFontSize:void 0,re=e=>{let{series:t,seriesIndex:o,fontSize:c}=e;t.length!==0&&o<t.length&&(t[o].dataTooltipFontSize=c)},D=class extends i{getDataTooltipFontSize(t){return ee(this._config.series,t)}setDataTooltipFontSize(t,o){re({series:this._config.series,seriesIndex:o,fontSize:t})}};te([l],D.prototype,"setDataTooltipFontSize");var oe=Object.defineProperty,se=Object.getOwnPropertyDescriptor,ne=(e,t,o,c)=>{for(var r=se(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&oe(t,o,r),r},ie=(e,t)=>{let o;return e.length!==0&&t<e.length&&(o=e[t].dataTooltipValueFormat),o},ce=e=>{let{series:t,seriesIndex:o,valueFormat:c}=e;t.length!==0&&o<t.length&&(t[o].dataTooltipValueFormat=c)},S=class extends i{getDataTooltipValueFormat(t){return ie(this._config.series,t)}setDataTooltipValueFormat(t,o){ce({series:this._config.series,seriesIndex:t,valueFormat:o})}};ne([l],S.prototype,"setDataTooltipValueFormat");var le=Object.defineProperty,ae=Object.getOwnPropertyDescriptor,pe=(e,t,o,c)=>{for(var r=ae(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&le(t,o,r),r},fe=(e,t)=>{t.series.forEach(o=>{o.query&&(o.query.fetchNullValues=e)})},ge=e=>e.series.some(t=>t.query?.fetchNullValues),m=class extends i{get fetchNULLValues(){return ge(this._config)}set fetchNULLValues(t){fe(t,this._config)}};pe([l],m.prototype,"fetchNULLValues");var be=Object.defineProperty,de=Object.getOwnPropertyDescriptor,he=(e,t,o,c)=>{for(var r=de(t,o),s=e.length-1,n;s>=0;s--)(n=e[s])&&(r=n(t,o,r)||r);return r&&be(t,o,r),r},ue=e=>e.dataFilters,ye=(e,t)=>{e!==void 0?t.dataFilters=e:delete t.dataFilters},T=class extends i{getDataFilters(){return ue(this._config)}async setDataFilters(t){ye(t,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}};he([l],T.prototype,"setDataFilters");var L=class extends i{},ve=[b,V,F,E,g,w,d,h,u,y,v,x,O,_,j,P,C,I,M,z,S,D,m,U,T];k(L,ve);return L},b,c,d)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import c from"./
|
|
2
|
+
import c from"./NZOXMPKS.js";import a from"./XWBETWPT.js";import{G as p,I as b,P as g,c as r}from"./XXO5K6N4.js";import{e as u}from"./BNAX4Y53.js";export default $arcgis.t(([{d:v,e:l},y])=>{var m=t=>{let e=!1;return t.legend!==void 0&&(e=t.legend.visible??!0),e},L=(t,e)=>{e.legend===void 0&&(e.legend=g()),e.legend.visible=t},V=t=>t.legend?.title?.content,M=(t,e)=>{e.legend===void 0&&(e.legend=g()),(e.legend.title===void 0||t===void 0)&&(e.legend.title=b({text:"",visible:!0,font:p(r.LegendTitle),type:r.LegendTitle})),t!==void 0&&(e.legend.title.content=t)},D=t=>t.legend?.body,O=(t,e)=>{e.legend===void 0&&(e.legend=g()),e.legend.body=t??b({text:"",visible:!0,font:p(r.LegendText),type:r.LegendText}).content},h=t=>t.legend?.title?.content.text??"",P=(t,e)=>{if(e.legend?.title!==void 0)e.legend.title.content.text=t;else if(e.legend===void 0&&t!==void 0){let i=g();i.title!==void 0&&(i.title.content.text=t,i.title.visible=!0,e.legend=i)}},R=t=>t.legend?.title?.visible??!1,j=(t,e)=>{if(e.legend?.title!==void 0)e.legend.title.visible=t;else if(e.legend!==void 0&&e.legend?.title===void 0&&t)e.legend.title=b({text:h(e),visible:t,font:p(r.LegendTitle),type:r.LegendTitle});else if(e.legend===void 0){let i=g();i.title=b({text:h(e),visible:t,font:p(r.LegendTitle),type:r.LegendTitle}),e.legend=i}},C=t=>t.legend?.position??u.Right,S=(t,e)=>{if(e.legend!==void 0)e.legend.position=t;else if(e.legend===void 0){let i=g();i.position=t,e.legend=i}},k=t=>t.legend?.roundMarkers??!1,H=(t,e)=>{e.legend===void 0&&(e.legend=g()),e.legend.roundMarkers=t},w=t=>t.legend?.maxHeight??void 0,E=(t,e)=>{e.legend===void 0&&(e.legend=g()),e.legend.maxHeight=t},W=Object.defineProperty,q=Object.getOwnPropertyDescriptor,a=(t,e,i,c)=>{for(var o=q(e,i),n=t.length-1,s;n>=0;n--)(s=t[n])&&(o=s(e,i,o)||o);return o&&W(e,i,o),o},d=class extends y{get legendVisibility(){return m(this._config)}set legendVisibility(e){L(e,this._config)}get legendTitleText(){return h(this._config)}set legendTitleText(e){P(e,this._config)}get legendTitleVisibility(){return R(this._config)}set legendTitleVisibility(e){j(e,this._config)}get legendPosition(){return C(this._config)}set legendPosition(e){S(e,this._config)}get legendTitleSymbol(){return V(this._config)}set legendTitleSymbol(e){M(e,this._config)}get legendTextSymbol(){return D(this._config)}set legendTextSymbol(e){O(e,this._config)}get legendMaxHeight(){return w(this._config)}set legendMaxHeight(e){e!==void 0&&E(e,this._config)}get legendRoundMarker(){return k(this._config)}set legendRoundMarker(e){H(e,this._config)}};a([l],d.prototype,"legendVisibility");a([l],d.prototype,"legendTitleText");a([l],d.prototype,"legendTitleVisibility");a([l],d.prototype,"legendPosition");a([l],d.prototype,"legendTitleSymbol");a([l],d.prototype,"legendTextSymbol");a([l],d.prototype,"legendMaxHeight");a([l],d.prototype,"legendRoundMarker");var z=(t,e)=>t.series?.[e??0]?.dataTooltipVisible??!0,A=(t,e,i)=>{i!==void 0&&t.series?.[i]?t.series[i].dataTooltipVisible=e:t.series&&t.series.forEach(c=>{c.dataTooltipVisible=e})},B=(t,e)=>t.series?.[e??0]?.dataTooltipReverseColor??!1,F=(t,e,i)=>{i!==void 0&&t.series?.[i]?t.series[i].dataTooltipReverseColor=e:t.series&&t.series.forEach(c=>{c.dataTooltipReverseColor=e})},G=Object.defineProperty,I=Object.getOwnPropertyDescriptor,_=(t,e,i,c)=>{for(var o=I(e,i),n=t.length-1,s;n>=0;n--)(s=t[n])&&(o=s(e,i,o)||o);return o&&G(e,i,o),o},f=class extends y{getDataTooltipVisibility(e){return z(this._config,e)}setDataTooltipVisibility(e,i){A(this._config,e,i)}getDataTooltipReverseColor(e){return B(this._config,e)}setDataTooltipReverseColor(e,i){F(this._config,e,i)}};_([l],f.prototype,"setDataTooltipVisibility");_([l],f.prototype,"setDataTooltipReverseColor");var J=Object.defineProperty,K=Object.getOwnPropertyDescriptor,N=(t,e,i,c)=>{for(var o=K(e,i),n=t.length-1,s;n>=0;n--)(s=t[n])&&(o=s(e,i,o)||o);return o&&J(e,i,o),o},U=t=>t.colorMatch??!0,X=(t,e)=>{e.colorMatch=t},T=class extends v{get colorMatch(){return U(this._config)}set colorMatch(e){X(e,this._config)}};N([l],T.prototype,"colorMatch");var Y=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,$=(t,e,i,c)=>{for(var o=Z(e,i),n=t.length-1,s;n>=0;n--)(s=t[n])&&(o=s(e,i,o)||o);return o&&Y(e,i,o),o},Q=t=>t.series[0]?.dataLabels?.visible??!1,ee=(t,e)=>{e.series.forEach(i=>{i.dataLabels!==void 0?i.dataLabels.visible=t:i.dataLabels=b({text:"",visible:t,font:p(r.DataLabels),type:r.DataLabels})})},x=class extends v{get dataLabelsVisibility(){return Q(this._config)}set dataLabelsVisibility(e){ee(e,this._config)}};$([l],x.prototype,"dataLabelsVisibility");return{a:d,b:f,c:T,d:x}},a,c)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{d as i}from"./5AKOPV7Z.js";import a from"./
|
|
2
|
+
import{d as i}from"./5AKOPV7Z.js";import a from"./WFTQTZE4.js";import"./XXO5K6N4.js";import"./WKF53DYD.js";import{b as l}from"./OZSOICXE.js";import"./KXU3XKM2.js";import{B as h,H as c,g as n,i as t}from"./IYVGK242.js";import"./AUKJ4CBR.js";import"./BNAX4Y53.js";import"./TIWCUJOG.js";export default $arcgis.t(([{Ca:g,Ga:p,Nc:C,t:d,wa:m,wc:f,yc:u}])=>{var y=n`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`,r=class extends h{constructor(){super(...arguments),this.onModelConfigChange=async e=>{let a=e?.detail.config??this.model.config;this.layer===void 0&&await this.updateFetchLayerFieldsInfo(a)},this.usePopupTemplateFieldsInfo=!1}static{this.properties={layerFieldsInfo:16,model:0,chartData:0,seriesColor:0,calculatedMinMaxBounds:0,page:1,layer:0,usePopupTemplateFieldsInfo:5,popupTemplateFieldInfosEnabled:5}}static{this.styles=y}async load(){this.seriesColor!==void 0&&this.seriesColorChange(this.seriesColor),await this.updateFetchLayerFieldsInfo(this.model?.config),this.modelChange(this.model)}willUpdate(e){let a=!1;e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("layer")&&this.layer!==void 0&&!l(e.get("layer"),this.layer)&&(a=!0),(e.has("usePopupTemplateFieldsInfo")&&this.usePopupTemplateFieldsInfo!==e.get("usePopupTemplateFieldsInfo")||e.has("popupTemplateFieldInfosEnabled")&&this.popupTemplateFieldInfosEnabled!==e.get("popupTemplateFieldInfosEnabled"))&&(a=!0),e.has("seriesColor")&&this.seriesColorChange(this.seriesColor),this.layerFieldsInfo===void 0&&(a=!0),a&&this.updateFetchLayerFieldsInfo()}disconnectedCallback(){super.disconnectedCallback(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,a){a?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}seriesColorChange(e){this.model.colorMatch&&e?.forEach(a=>{g(a)&&e?.get(0)!==void 0&&!l(this.model.binSymbol,a)&&(this.model.binSymbol=a)})}async updateFetchLayerFieldsInfo(e){let a=e??this.model.config,s=this.layer;if(!s){let o=p(a)?a.iLayer:void 0;o&&(s=await f(o))}if(s){await C(s);let o=this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled;this.layerFieldsInfo=d(s)?m({layer:s,popupTemplateFieldInfosEnabled:o,chartType:a?.type}):u(s,o)}}render(){let e;switch(this.page){case i.Data:e=t`<arcgis-charts-config-histogram-data .model=${this.model} .meanValue=${this.chartData?.mean} .medianValue=${this.chartData?.median} .standardDevValue=${this.chartData?.stddev} .minValue=${this.chartData?.min} .maxValue=${this.chartData?.max} .sumValue=${this.chartData?.sum} .nullsValue=${this.chartData?.nulls} .countValue=${this.chartData?.count} .layerFieldsInfo=${this.layerFieldsInfo}></arcgis-charts-config-histogram-data>`;break;case i.Axes:e=t`<arcgis-charts-config-axes .model=${this.model} show-max-y-bound-option .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-axes>`;break;case i.Guides:e=t`<arcgis-charts-config-guides .model=${this.model} enable-y-axis-guide></arcgis-charts-config-guides>`;break;case i.Format:e=t`<arcgis-charts-config-format .model=${this.model}></arcgis-charts-config-format>`;break;case i.General:e=t`<arcgis-charts-config-general .model=${this.model}></arcgis-charts-config-general>`;break;default:e="";break}return e}};c("arcgis-charts-config-histogram",r);return r},a)
|