@arcgis/charts-components 5.1.4 → 5.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{RAVTKVYZ.js → 2EKXF2J4.js} +1 -1
- package/dist/cdn/{S6T5M6GS.js → 2JBXK3DL.js} +1 -1
- package/dist/cdn/{5LJPDYNW.js → 2YTLUBN5.js} +1 -1
- package/dist/cdn/{5DFOI7PP.js → 33V25PIE.js} +1 -1
- package/dist/cdn/{PYT35JFQ.js → 3HTF4AID.js} +1 -1
- package/dist/cdn/{HPQR3MBB.js → 3K4U6YTH.js} +1 -1
- package/dist/cdn/{U4JZDPSL.js → 3LGVIOWA.js} +18 -18
- package/dist/cdn/{W5BMIVSG.js → 3SPQWIVR.js} +1 -1
- package/dist/cdn/{HUUQ5D7I.js → 3SRLE6PU.js} +1 -1
- package/dist/cdn/{B5HQ43EN.js → 3V5BEFJV.js} +1 -1
- package/dist/cdn/{BYMBCT2F.js → 4SZL2F4O.js} +1 -1
- package/dist/cdn/{6WUIHNJV.js → 4XLKQLZD.js} +1 -1
- package/dist/cdn/{PZNWCTHF.js → 53NUZXBS.js} +1 -1
- package/dist/cdn/{JW72VEXT.js → 5GNAMZB3.js} +1 -1
- package/dist/cdn/{BO62D625.js → 5RUXH3HZ.js} +1 -1
- package/dist/cdn/{WVKAKDT2.js → 5WCFADMD.js} +1 -1
- package/dist/cdn/{VEZL4O6Q.js → 65KE3H45.js} +1 -1
- package/dist/cdn/{UMEPK4WF.js → 6BL4274I.js} +1 -1
- package/dist/cdn/{ZBLIN4DV.js → 6LGAYTPU.js} +1 -1
- package/dist/cdn/{ZO2YW5LI.js → 6PYMZ3RX.js} +1 -1
- package/dist/cdn/{ABV6UCMN.js → 6TBK27OD.js} +1 -1
- package/dist/cdn/{DBIVR3L2.js → 7NXD333R.js} +1 -1
- package/dist/cdn/{TLJ4H37R.js → 7UAZJKKD.js} +1 -1
- package/dist/cdn/{4TT2P5OY.js → B5EG7AFI.js} +1 -1
- package/dist/cdn/{ZQBIFM6I.js → BEBIXEOG.js} +1 -1
- package/dist/cdn/{X2TTMLTD.js → C2MDZRI3.js} +1 -1
- package/dist/cdn/{72EIE6AJ.js → CK4RMZYV.js} +1 -1
- package/dist/cdn/{BODOPAEX.js → CMJDB4ME.js} +1 -1
- package/dist/cdn/{5FGV55H7.js → CVALNNSU.js} +1 -1
- package/dist/cdn/{G4INLVFS.js → CYYPQ2LR.js} +1 -1
- package/dist/cdn/{5TMK4CEI.js → D2KB272M.js} +1 -1
- package/dist/cdn/{NYHISIOD.js → D7QKDEA6.js} +1 -1
- package/dist/cdn/{ZLJEUWW4.js → EMB4D26F.js} +1 -1
- package/dist/cdn/{2TFATOOA.js → EWRX4I6L.js} +1 -1
- package/dist/cdn/{MKTZLNQS.js → FS4EYUQH.js} +1 -1
- package/dist/cdn/{6XGEGAU4.js → FVFK55AE.js} +1 -1
- package/dist/cdn/{SZMGKYVB.js → GSZX746F.js} +1 -1
- package/dist/cdn/{3XQOOVQD.js → GUSQHVGC.js} +1 -1
- package/dist/cdn/{TW3SD7C7.js → H4AEITXU.js} +1 -1
- package/dist/cdn/{TFIXQT72.js → H6RZITOS.js} +1 -1
- package/dist/cdn/{E6GB46ZD.js → H7KQKJNM.js} +1 -1
- package/dist/cdn/{UZ3QNDHV.js → HCAHC365.js} +1 -1
- package/dist/cdn/{Y5GWG5U5.js → HDVECTPH.js} +1 -1
- package/dist/cdn/{OIYGFIO4.js → IRRJUIFU.js} +1 -1
- package/dist/cdn/{WSYF2WB3.js → IUIO4GSK.js} +1 -1
- package/dist/cdn/{SKIB625Y.js → JEYVT73B.js} +1 -1
- package/dist/cdn/{JYZJN3VW.js → JIQN7CXG.js} +1 -1
- package/dist/cdn/{SIFAYWHC.js → JW4PYIDC.js} +1 -1
- package/dist/cdn/{OFCKFTDX.js → K4TJLYWW.js} +1 -1
- package/dist/cdn/{RBDGIDAU.js → K5BCEEVY.js} +1 -1
- package/dist/cdn/{VLBGCHXS.js → KVTZK7IU.js} +1 -1
- package/dist/cdn/{DNADQCK3.js → KWK2QSHG.js} +1 -1
- package/dist/cdn/{VCYPJ7PB.js → L7CYUUVR.js} +1 -1
- package/dist/cdn/{VNGGZBV3.js → LED3NRVC.js} +1 -1
- package/dist/cdn/{NT7UYJVV.js → LS45NXOD.js} +1 -1
- package/dist/cdn/{ZZB2HIWS.js → LUB3SLVV.js} +1 -1
- package/dist/cdn/{YTYNOFR6.js → LXHJO6QR.js} +1 -1
- package/dist/cdn/{PSKB6EW7.js → LZXSWTPV.js} +1 -1
- package/dist/cdn/{SWYI6DEZ.js → M4SH4CLR.js} +1 -1
- package/dist/cdn/{P7BXFL27.js → MTNJEN5Q.js} +1 -1
- package/dist/cdn/{G37SKFUL.js → N6EJWFKT.js} +1 -1
- package/dist/cdn/{EHGLI22W.js → NMD65TFH.js} +1 -1
- package/dist/cdn/{QWCA3FTZ.js → OAKOMF77.js} +1 -1
- package/dist/cdn/{L4UNCX3L.js → OBFWK6CR.js} +1 -1
- package/dist/cdn/{J5GJ5GMV.js → OCOTAMHY.js} +1 -1
- package/dist/cdn/{JQ625GCM.js → P6GCBRMR.js} +1 -1
- package/dist/cdn/{ASP76QRT.js → PITA3B7R.js} +1 -1
- package/dist/cdn/{FFA2RBY6.js → PJBLSGYT.js} +1 -1
- package/dist/cdn/{33DVUHLW.js → PK4B6TCD.js} +1 -1
- package/dist/cdn/{VMF3NPNR.js → Q4XR55XI.js} +1 -1
- package/dist/cdn/{N4F66JKS.js → Q5SBNW4I.js} +1 -1
- package/dist/cdn/{NAH7RHCB.js → QRP3UGUO.js} +1 -1
- package/dist/cdn/{ZG3MLOD3.js → QY7SOZLC.js} +1 -1
- package/dist/cdn/{VVI7T6DN.js → RCQOEUT2.js} +1 -1
- package/dist/cdn/{7U6BD7RE.js → REONEUPD.js} +1 -1
- package/dist/cdn/{3KPPKAKV.js → RJAI3YDQ.js} +1 -1
- package/dist/cdn/{ZQNOUNTB.js → S6J3P2WT.js} +1 -1
- package/dist/cdn/{RDZKQ3UB.js → SDZLO6ZK.js} +1 -1
- package/dist/cdn/{WS34OEFD.js → SPLSYLRT.js} +1 -1
- package/dist/cdn/{N2EQ4VQJ.js → SRQRP6JA.js} +1 -1
- package/dist/cdn/{J4JRQR6I.js → SYX7IS6Q.js} +1 -1
- package/dist/cdn/{GYLV7XO5.js → SZYABWCY.js} +1 -1
- package/dist/cdn/TAGFFJNC.js +4 -0
- package/dist/cdn/{DWKUQWMM.js → TX7C3I2B.js} +1 -1
- package/dist/cdn/{4D6MJQGE.js → UHQ4MJUM.js} +1 -1
- package/dist/cdn/{VZIW4UJA.js → V53MYDGA.js} +1 -1
- package/dist/cdn/{NBKUOIWE.js → WCE74RQX.js} +1 -1
- package/dist/cdn/{Z2RV6WZ3.js → WS6BQJCB.js} +1 -1
- package/dist/cdn/{NJH2AUUA.js → XCRGJ7YK.js} +1 -1
- package/dist/cdn/{HTIKYSUG.js → XMGEYSND.js} +1 -1
- package/dist/cdn/{2KMZGANY.js → YCUVGSG5.js} +1 -1
- package/dist/cdn/{EG6IUTUM.js → YVIC3YRQ.js} +1 -1
- package/dist/cdn/{VKI3EJVB.js → Z74BOGAU.js} +1 -1
- package/dist/cdn/{BIHDQSPP.js → ZGU363YV.js} +1 -1
- package/dist/cdn/{GZHDYNRE.js → ZOE3HTYC.js} +1 -1
- package/dist/cdn/{5XDQYOWX.js → ZZJ6YRF4.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/web-component-utils.js +414 -384
- package/dist/components/arcgis-chart/customElement.js +1995 -1993
- 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 +3 -3
- package/dist/cdn/5NEOQ33I.js +0 -4
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{b as l}from"./TJQGGNGV.js";import{a as d}from"./
|
|
2
|
+
import{b as l}from"./TJQGGNGV.js";import{a as d}from"./H7KQKJNM.js";import"./FIMXZMTB.js";import"./3SRLE6PU.js";import{A as o,G as r,i as e,n as i,y as t,z as a}from"./S6J3P2WT.js";import"./QPIMTXPL.js";var s=class extends o{constructor(){super(...arguments),this._messages=d(),this.popoverElement=t(),this.onAddXGuide=()=>{this.open=!1,this.arcgisChartsAddXAxisGuide.emit()},this.onAddYGuide=()=>{this.open=!1,this.arcgisChartsAddYAxisGuide.emit()},this.enableXAxisGuide=!1,this.enableYAxisGuide=!1,this.placement="bottom",this.open=!1,this.arcgisChartsAddXAxisGuide=i(),this.arcgisChartsAddYAxisGuide=i(),this.arcgisChartsConfigPopoverClose=i()}static{this.properties={enableXAxisGuide:5,enableYAxisGuide:5,messageOverrides:0,referenceElement:0,placement:1,open:5}}async reposition(){await this.popoverElement.value?.reposition()}updated(){l(this.popoverElement.value,this.open)}guidePopoverClose(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit()}render(){return e`<calcite-popover .open=${this.open} .referenceElement=${this.referenceElement??document.body} flip-disabled pointer-disabled offset-distance=-18 @calcitePopoverClose=${this.guidePopoverClose} .placement=${this.placement} auto-close label ${a(this.popoverElement)}><calcite-panel .heading=${this._messages.guideType} closable @calcitePanelClose=${this.guidePopoverClose}>${this.enableXAxisGuide?e`<calcite-action .label=${this._messages.addXAxisGuide} .text=${this._messages.addXAxisGuide??""} @click=${this.onAddXGuide} icon=x-axis-guide text-enabled></calcite-action>`:null}${this.enableYAxisGuide?e`<calcite-action .label=${this._messages.addYAxisGuide} .text=${this._messages.addYAxisGuide??""} @click=${this.onAddYGuide} icon=y-axis-guide text-enabled></calcite-action>`:null}</calcite-panel></calcite-popover>`}};r("arcgis-charts-config-guides-type-popover",s);export{s as ArcgisChartsConfigGuidesTypePopover};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as i}from"./2JUO3GP2.js";import{b as m}from"./TJQGGNGV.js";import{a as g}from"./
|
|
2
|
+
import{a as i}from"./2JUO3GP2.js";import{b as m}from"./TJQGGNGV.js";import{a as g}from"./H7KQKJNM.js";import{f as h}from"./75Y43JLP.js";import"./FIMXZMTB.js";import"./3SRLE6PU.js";import{A as n,B as p,G as c,i as o,n as t,y as a,z as l}from"./S6J3P2WT.js";import"./XOB365BI.js";import"./QPIMTXPL.js";var C={jsAppFlyout:"js-app-flyout"},r=class extends n{constructor(){super(...arguments),this._messages=g(),this.popoverElement=a(),this.placement="leading",this.open=!1,this.arcgisChartsConfigGuidePopoverColorChange=t(),this.arcgisChartsConfigGuidePopoverSymbolChange=t(),this.arcgisChartsConfigPopoverClose=t()}static{this.properties={messageOverrides:0,selectedElement:0,referenceElement:0,placement:1,open:5}}async reposition(){await this.popoverElement.value?.reposition()}updated(){m(this.popoverElement.value,this.open)}guidePopoverClose(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit()}updateColorProperties(s){let e=s.detail;e!==void 0&&(e[3]=i),this.selectedElement=e,this.arcgisChartsConfigGuidePopoverColorChange.emit(this.selectedElement)}updateSymbolProperties(s){let{lineStyle:e}=s.target;e?.color!==void 0&&(e.color[3]=i),this.selectedElement=e,this.arcgisChartsConfigGuidePopoverSymbolChange.emit(s.detail)}render(){let s=this.selectedElement,e=this.selectedElement;return o`<div class=${p(C.jsAppFlyout)}><calcite-popover .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} .open=${this.open} offset-distance=20 offset-skidding=60 label pointer-disabled @calcitePopoverClose=${this.guidePopoverClose} auto-close ${l(this.popoverElement)}>${Array.isArray(s)&&o`<arcgis-charts-config-color-style .header=${this._messages.fillStyle} enable-close .open=${this.open} .selectedColor=${s} @arcgisChartsConfigColorStyleClose=${this.guidePopoverClose} @arcgisChartsConfigColorStyleChange=${this.updateColorProperties}></arcgis-charts-config-color-style>`||""}${e?.type===h.SLS&&o`<arcgis-charts-config-line-style .header=${this._messages.lineStyle} .open=${this.open} enable-close .lineStyle=${e} @arcgisChartsConfigLineStyleClose=${this.guidePopoverClose} @arcgisChartsConfigLineStyleChange=${this.updateSymbolProperties}></arcgis-charts-config-line-style>`||""}</calcite-popover></div>`}};c("arcgis-charts-config-guide-popover",r);export{r as ArcgisChartsConfigGuidePopover};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as i,b as n,c}from"./TOO3T62Y.js";import{k as r}from"./EZM4ZDQI.js";async function d(t){let a="config"in t?n(t.config):t.chartType,o;if(!("layer"in t)&&!("iLayer"in t)&&"config"in t&&t.config.iLayer===void 0)throw new Error("The source is missing. You can provide it to createModel through either `iLayer`, `layer`, or by setting the `config.iLayer` property.");switch(a){case r.LineChart:{let{LineChartModel:e}=await import("./
|
|
2
|
+
import{a as i,b as n,c}from"./TOO3T62Y.js";import{k as r}from"./EZM4ZDQI.js";async function d(t){let a="config"in t?n(t.config):t.chartType,o;if(!("layer"in t)&&!("iLayer"in t)&&"config"in t&&t.config.iLayer===void 0)throw new Error("The source is missing. You can provide it to createModel through either `iLayer`, `layer`, or by setting the `config.iLayer` property.");switch(a){case r.LineChart:{let{LineChartModel:e}=await import("./Q4XR55XI.js").then(m=>m.default.then(e=>({LineChartModel:e})));o=new e;break}case r.ComboBarLineChart:{let{ComboBarLineChartModel:e}=await import("./3HTF4AID.js").then(m=>m.default.then(e=>({ComboBarLineChartModel:e})));o=new e;break}case r.PieChart:{let{PieChartModel:e}=await import("./YVIC3YRQ.js").then(m=>m.default.then(e=>({PieChartModel:e})));o=new e;break}case r.Histogram:{let{HistogramModel:e}=await import("./EMB4D26F.js").then(m=>m.default.then(e=>({HistogramModel:e})));o=new e;break}case r.Scatterplot:{let{ScatterplotModel:e}=await import("./CYYPQ2LR.js").then(m=>m.default.then(e=>({ScatterplotModel:e})));o=new e;break}case r.BoxPlot:{let{BoxPlotModel:e}=await import("./2JBXK3DL.js").then(m=>m.default.then(e=>({BoxPlotModel:e})));o=new e;break}case r.Gauge:{let{GaugeModel:e}=await import("./RJAI3YDQ.js").then(m=>m.default.then(e=>({GaugeModel:e})));o=new e;break}case r.RadarChart:{let{RadarChartModel:e}=await import("./GUSQHVGC.js").then(m=>m.default.then(e=>({RadarChartModel:e})));o=new e;break}case r.HeatChart:{let{HeatChartModel:e}=await import("./CK4RMZYV.js").then(m=>m.default.then(e=>({HeatChartModel:e})));o=new e;break}case r.BarChart:default:{let{BarChartModel:e}=await import("./KWK2QSHG.js").then(m=>m.default.then(e=>({BarChartModel:e})));o=new e;break}}if(await o?.setup({layer:"layer"in t?t.layer:void 0,iLayer:"iLayer"in t?t.iLayer:void 0,config:"config"in t?t.config:void 0,commonStrings:"commonStrings"in t?t.commonStrings:void 0}),a!==void 0&&c(o,a))return o;{let e=i(o.chartType);throw new Error(`Please check the arguments provided to \`createModel\`. The generated model's type (\`${e}\`) does not match the type specified by either the \`chartType\` or the \`config\` argument (\`${a}\`).`)}}export{d as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{f as p,h as T,i as y,j as m,k as A}from"./7MKAC33Z.js";import{c as h,d as u,e as g,f as d}from"./NQAPPISU.js";import a from"./
|
|
2
|
+
import{f as p,h as T,i as y,j as m,k as A}from"./7MKAC33Z.js";import{c as h,d as u,e as g,f as d}from"./NQAPPISU.js";import a from"./7UAZJKKD.js";import{n as o}from"./P5XJTTU3.js";import{p as f}from"./6JI4NDJ6.js";export default $arcgis.t(([{b:a,c:x}])=>{var P=Object.defineProperty,j=Object.getOwnPropertyDescriptor,O=(i,t,e,v)=>{for(var s=j(t,e),r=i.length-1,n;r>=0;r--)(n=i[r])&&(s=n(t,e,s)||s);return s&&P(t,e,s),s};function k(i){return i!==void 0&&"xAxisTitleText"in i}var l=class extends a{get xAxisTitleText(){return h(0,this._config)}set xAxisTitleText(t){u(t,0,this._config)}};O([x],l.prototype,"xAxisTitleText");var _=Object.defineProperty,C=Object.getOwnPropertyDescriptor,V=(i,t,e,v)=>{for(var s=C(t,e),r=i.length-1,n;r>=0;r--)(n=i[r])&&(s=n(t,e,s)||s);return s&&_(t,e,s),s};function w(i){return i!==void 0&&"xAxisTitleVisibility"in i}var c=class extends a{get xAxisTitleVisibility(){return g(0,this._config)}set xAxisTitleVisibility(t){d(t,0,this._config)}};V([x],c.prototype,"xAxisTitleVisibility");function B(i){return i!==void 0&&"generateXAxisTitle"in i}var b=class extends a{generateXAxisTitle(){let t=this.layerInfo?.layerFieldsInfo;if(t===void 0)return"";if(y(this)||p(this))return o(t,this.xAxisField);if(T(this))return this.category!==f?o(t,this.category):"";if(m(this))return o(t,this.numericField);if(A(this)){let e=this.xTemporalBinning?.unit;return e!==void 0?this.commonStrings.utilsStrings.heatChartCalendarDatePartsUnits[e]:""}return""}};return{a:k,b:l,c:w,d:c,e:B,f:b}},a)
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import{i as we}from"./PDWS67CW.js";import{c as W}from"./MZ2UZAFW.js";import g from"./6PYMZ3RX.js";import f from"./Z74BOGAU.js";import e from"./ZGU363YV.js";import d from"./QY7SOZLC.js";import c from"./M4SH4CLR.js";import b from"./7NXD333R.js";import a from"./TX7C3I2B.js";import{c as h,d as y,r as V}from"./P5XJTTU3.js";import{Ba as ne,Ca as Y,Ea as k,Fa as se,p as N,q as E}from"./6JI4NDJ6.js";import{a as le}from"./75Y43JLP.js";import{e as v,l as ie,m as U,s as K}from"./FIMXZMTB.js";import{e as G}from"./EZM4ZDQI.js";import{a as re}from"./43P4WOC4.js";import{a as O,l as D}from"./XOB365BI.js";export default $arcgis.t(([{B:S,J:ue,La:de,T:T,a:Q,ic:I,rb:ce,tb:me,wa:fe,zb:be},{c:X},{f:ye,g:_},{k:q,l:H,m:ee,x:ge},{b:pe},{a:xe,c:Le,d:Fe},{la:te,ma:ve,na:ae}])=>{function he(l){let{hour:e,minute:t=0,format:a,locale:o="en-US"}=l,i=a&&Object.keys(a).length>0?a:{hour:"numeric",minute:"2-digit",hour12:!1},r=e.toString();if(Number.isInteger(e)&&e>=0&&e<=23&&Number.isInteger(t)&&t>=0&&t<=59){let n=new Date(2e3,0,1,e,t);r=new Intl.DateTimeFormat(o,i).format(n),r.includes(":")||r.startsWith("0")&&(r=r.slice(1))}return r}function Ce(l){let{weekdayNumber:e,format:t,locale:a="en-US",firstDayOfWeek:o=7}=l,i=t&&Object.keys(t).length>0?t:{weekday:"long"},r=e.toString();if(Number.isInteger(e)&&e>0&&e<=7&&Number.isInteger(o)&&o>0&&o<=7){let n=(e+o-1)%7,s=new Date(2e3,0,2+n);r=new Intl.DateTimeFormat(a,i).format(s)}return r}function Oe(l){let{monthNumber:e,format:t,locale:a="en-US"}=l,o=t&&Object.keys(t).length>0?t:{month:"long"},i=e.toString();if(Number.isInteger(e)&&e>0&&e<=12){let r=new Date(2e3,e-1);i=new Intl.DateTimeFormat(a,o).format(r)}return i}function Be(l){let{value:e,formatLocale:t,unit:a,config:o,utilsStrings:i}=l,r={label:"",value:e.toString()};switch(a){case D.DayOfWeek:r={label:i.heatChartCalendarDatePartsUnits.dayOfWeek,value:Ce({weekdayNumber:e,firstDayOfWeek:"firstDayOfWeek"in o?o.firstDayOfWeek:se,locale:t})};break;case D.MonthOfYear:r={label:i.heatChartCalendarDatePartsUnits.monthOfYear,value:Oe({monthNumber:e,locale:t})};break;case D.HourOfDay:r={label:i.heatChartCalendarDatePartsUnits.hourOfDay,value:he({hour:e,format:{hour:"numeric",hour12:!1},locale:t})};break;case D.DayOfMonth:r={label:i.heatChartCalendarDatePartsUnits.dayOfMonth,value:typeof e=="string"?e:e?.toString()??""};break;case D.DayOfYear:r={label:i.heatChartCalendarDatePartsUnits.dayOfYear,value:typeof e=="string"?e:e?.toString()??""};break;case D.MinuteOfDay:r={label:i.heatChartCalendarDatePartsUnits.minuteOfDay,value:typeof e=="string"?e:e?.toString()??""};break;case D.WeekOfYear:r={label:i.heatChartCalendarDatePartsUnits.weekOfYear,value:typeof e=="string"?e:e?.toString()??""};break;case D.QuarterOfYear:r={label:i.heatChartCalendarDatePartsUnits.quarterOfYear,value:typeof e=="string"?e:e?.toString()??""};break}return r}function ke(l,e){return!ie(l,e)}function ut(l,e){return ke(l,e)||l!==e}function $e(l){return(new Intl.NumberFormat(l,{minimumFractionDigits:1,maximumFractionDigits:1}).formatToParts(1.1).find(e=>e.type==="decimal")?.value??".")==="."?",":";"}function Me(l){return new Intl.NumberFormat(l,{minimumFractionDigits:1,maximumFractionDigits:1}).formatToParts(1.1).find(e=>e.type==="decimal")?.value??"."}var Se=l=>{let{value:e,quoteAll:t=!1,locale:a,roundDecimals:o}=l,i=e==null?"":String(e);if(e===null)i="null";else if(e===void 0)i="";else if(typeof e=="number"&&Number.isFinite(e)&&a!==void 0){let r=Me(a),n=o??i.split(r)[1]?.length??2;i=new Intl.NumberFormat(a,{maximumFractionDigits:n}).format(e).replace(/\u202F/gu," ")}return(t||/[",\r\n]/u.test(i))&&(i=`"${i.replace(/"/gu,'""')}"`),i};function ft(l,e={}){let{columns:t,delimiter:a,includeHeader:o=!0,quoteAll:i=!1,locale:r,roundDecimals:n}=e,s=l.length===0,f="";if(!s){let c=t??Object.keys(l[0]),u=[],g=a??$e(r??"en");if(r!==void 0&&g!==","&&(f+=`sep=${g}\r
|
|
3
|
+
`),o){let w=c.map(p=>Se({value:p,quoteAll:i,locale:r,roundDecimals:n}));u.push(w.join(g))}l.forEach(w=>{let p=c.map(x=>Se({value:w[x],quoteAll:i,locale:r,roundDecimals:n}));u.push(p.join(g))}),f+=u.join(`\r
|
|
4
|
+
`)}return f}function dt(l){let{rawData:e,config:t,layer:a,fieldList:o,formatters:i,useRendererLabel:r,timeZone:n,formatLocale:s,utilsStrings:f}=l,c=[];if(t!==void 0&&Array.isArray(e)&&e.length>0){let u=re(t?.series);u===O.HistogramSeries?c=Ve(t,e,i):u===O.HeatSeries?c=Re({config:t,rows:e,layer:a,fieldList:o,formatLocale:s,utilsStrings:f}):u===O.BarSeries||u===O.LineSeries||u===O.ComboLineAndBarSeries?c=Ie({config:t,rows:e,layer:a,fieldList:o,formatters:i,useRendererLabel:r,timeZone:n}):u===O.PieSeries?c=Ue({config:t,rows:e,layer:a,fieldList:o,formatters:i,useRendererLabel:r,timeZone:n}):u===O.BoxPlotSeries&&(c=Ye({config:t,rows:e,layer:a,fieldList:o,formatters:i,useRendererLabel:r,timeZone:n}))}return c}function A(l){let{value:e,originalValue:t,formatter:a}=l,o=e;return a!==void 0&&(e===null||e instanceof Date||typeof e=="number"||typeof e=="string")&&(o=a(e,t)),o}function M(l){let{field:e,value:t,dataContext:a,layer:o,fieldList:i,formatter:r,timeZone:n}=l,s;if(t==null||typeof t=="boolean"||Array.isArray(t))s=t;else if(typeof t=="string"||typeof t=="number"||t instanceof Date){let f=Ne({fieldName:e,dataContext:a})??(o!==void 0&&(typeof t=="string"||typeof t=="number")?be({queryObject:o,fieldName:e,fieldValue:t}):void 0);s=De({field:e,value:f??t,fieldList:i,timeZone:n})}else s=t;return A({value:s,originalValue:t,formatter:r})}function $(l){let{field:e,row:t,layer:a,fieldList:o,formatter:i,useRendererLabel:r=!1,timeZone:n}=l,s=Object.keys(t).find(u=>u.toLocaleLowerCase()===e.toLocaleLowerCase()),f=t[s??e],c=fe({value:f,dataContext:t,useRendererLabel:r});return M({field:e,value:c,dataContext:t,layer:a,fieldList:o,formatter:i,timeZone:n})}function Ze(l,e){let t=!1;if(l===e)t=!0;else if(l!=null&&e!=null){let a=String(l),o=String(e);t=a===o||!Number.isNaN(Number(a))&&!Number.isNaN(Number(o))&&Number(a)===Number(o)}return t}function Ne(l){let{fieldName:e,dataContext:t}=l,a=h.rendererSymbolField;return e===a&&t!==void 0?de(t):void 0}function Ae(l){let{config:e,splitByField:t,splitByValue:a,splitByValueIndex:o,layer:i,fieldList:r,timeZone:n}=l,s,f=e.series[o??-1]?.name;return f!==void 0?s=f:s=M({field:t,value:a,layer:i,fieldList:r,timeZone:n}),s}function Re(l){let{config:e,rows:t,layer:a,fieldList:o,formatLocale:i,utilsStrings:r}=l,[n]=e.series,s=n.x,f=te(e),c=ae(e),u=_({config:e,xAxisField:s,numericFields:c,aggregationType:f,layer:a,fieldList:o});return t.map(g=>{let w=g[E.xField],p=g[E.yField],x=g[E.valueField],F=typeof x=="number"&&Number.isFinite(x)?x.toFixed(2):x,m={label:n.x,value:w},b={label:n.y,value:p};if(n.xTemporalBinning!==void 0){let{label:d,value:L}=Be({value:Number(w),config:e,formatLocale:i,unit:n.xTemporalBinning.unit,utilsStrings:r});!V(d)&&!V(L)&&(m={label:d,value:L})}if(n.yTemporalBinning!==void 0){let{label:d,value:L}=Be({value:Number(p),config:e,formatLocale:i,unit:n.yTemporalBinning.unit,utilsStrings:r});!V(d)&&!V(L)&&(b={label:d,value:L})}return{[m.label]:m.value,[b.label]:b.value,[u.description]:F}})}function Ve(l,e,t){let a=pe(l),o=`${v(W.Min)} of ${a}`,i=`${v(W.Max)} of ${a}`,r=`${v(W.Count)} of ${a}`;return e.map(n=>{let{minValue:s,maxValue:f,count:c}=n,u=U(s),g=U(f),w=U(c),p={};if(u&&(p[o]=A({value:s,originalValue:s,formatter:t?.xAxisLabelFormatter})),g&&(p[i]=A({value:f,originalValue:f,formatter:t?.xAxisLabelFormatter})),u&&g){let x=A({value:s,originalValue:s,formatter:t?.xAxisLabelFormatter}),F=A({value:f,originalValue:f,formatter:t?.xAxisLabelFormatter});p.Label=`${String(x??"")} - ${String(F??"")}`}return w&&(p[r]=c),p})}function Te(l,e,t){let a=Object.keys(l),o=[];return t?o=t.map(i=>a.find(r=>r.toLowerCase().includes(i.toLowerCase()))||""):o=a.filter(i=>i.toLowerCase().includes(e.toLowerCase())),o.filter(i=>i.trim()!=="")}function Ie(l){let{config:e,rows:t,layer:a,fieldList:o,formatters:i,useRendererLabel:r=!1,timeZone:n}=l,s=ye(e),f=te(e),c=v(f),u=ae(e),g=T(e.series),w=X(e),p=ve(e),{idField:x,isTraditionalTypeOID:F}=ce(ue(a)),m=F&&u.length===1&&u[0]===x,b;switch(g){case y.BarAndLineNoAggregation:b=t.map(d=>{let L=$({field:s,row:d,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n}),B={[s]:L};return Object.assign(B,...u.map(P=>({[P]:A({value:d[P],originalValue:d[P]})}))),B});break;case y.BarAndLineFromFields:b=K(u,t).map(([d,L])=>{let B=I(e.series)[0],P={};return L!==void 0&&d!==void 0&&(P.Field=A({value:L[s],originalValue:L[s],formatter:i?.xAxisLabelFormatter}),P.Value=A({value:L[B],originalValue:L[B]})),P});break;case y.BarAndLineMonoField:case y.BarAndLineMultiFields:b=t.map(d=>{let L=$({field:s,row:d,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n}),B={[s]:L};return u.forEach((P,C)=>{let Z=_({config:e,xAxisField:s,numericFields:u,aggregationType:f,layer:a,numericFieldIndex:C,fieldList:o}),R=I(e.series)[C],oe=R,J=R;R.toLowerCase()===Z.name.toLowerCase()&&(oe=Z.description,J=Z.name),B[oe]=A({value:d[J],originalValue:d[J]})}),B});break;case y.BarAndLineSplitBy:b=t.flatMap(d=>{let L=I(e.series),B=$({field:s,row:d,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n});return w.map((P,C)=>{let Z=Ae({config:e,splitByField:p,splitByValue:P,splitByValueIndex:C,layer:a,fieldList:o,timeZone:n});return{[s]:B,[p]:Z,[m?c:`${c} of ${u[0]}`]:d[L[C]]}})});break;case y.BarAndLineSplitByNoAggregation:b=t.map(d=>{let L=$({field:s,row:d,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n}),B=Te(d,u[0],w),P=d[p],C=w.findIndex(R=>Ze(R,P)),Z=Ae({config:e,splitByField:p,splitByValue:P,splitByValueIndex:C>=0?C:void 0,layer:a,fieldList:o,timeZone:n});return{[s]:L,[p]:Z,[u[0]]:d[B[0]]}});break;default:b=t}return b}function je(l){if(l.length===0)return[];let e=l.reduce((t,a)=>{for(let[o,i]of Object.entries(a))typeof i=="number"&&Number.isFinite(i)&&(t[o]=(t[o]??0)+i);return t},{});return l.map(t=>{let a={...t};for(let[o,i]of Object.entries(t))if(typeof i=="number"&&e[o]>0){let r=i/e[o];a[`${o}${k}`]=r.toPrecision(2)}return a})}function Ue(l){let{config:e,rows:t,layer:a,fieldList:o,formatters:i,useRendererLabel:r=!1,timeZone:n}=l,s=xe(e),f=T(e.series),c=je(t),u=Le(e),g=f!==y.PieFromFields?G.Category:G.Fields,w=Fe(e,g),p=_({config:e,xAxisField:s,numericFields:u,aggregationType:w,mode:g,layer:a,fieldList:o}),x=I(e.series)[0];return f===y.PieFromCategory||f===y.PieNoAggregation?c=c.map(F=>{let m=$({field:s,row:F,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n}),b={[s]:m},d=x,L=x;return f===y.PieFromCategory&&x.toLowerCase()===p.name.toLowerCase()&&(d=p.description,L=p.name),b[d]=A({value:F[L],originalValue:F[L]}),b[v(k.trim())]=A({value:F[`${L}${k}`],originalValue:F[`${L}${k}`]}),b}):f===y.PieFromFields&&(c=K(u,c).map(([F,m])=>{let b={};return m!==void 0&&F!==void 0&&(b.Field=A({value:m[s],originalValue:m[s],formatter:i?.xAxisLabelFormatter}),b.Value=A({value:m[x],originalValue:m[x]}),b[v(k.trim())]=A({value:m[`${x}${k}`],originalValue:m[`${x}${k}`]})),b})),c}function z(l){let{rawData:e,keyBase:t="",outRow:a}=l;for(let[o,i]of Object.entries(S)){let r=e[t+i];r!==void 0&&(a[o]=r);let n=e[t+i+ne];n!==void 0&&(a[`${o} Outlier`]=n);let s=e[t+i+Y];s!==void 0&&(a[`${o} Z-Score`]=s)}}function j(l){let{rawData:e,outRow:t,config:a,boxPlotSubType:o,layer:i,fieldList:r,timeZone:n}=l,s=q(a),f=ee(a),c=H(a),u=S.Outlier,g=N;switch(o){case y.BoxPlotMonoFieldAndCategory:{let x=De({field:s,value:e[s],fieldList:r,timeZone:n});t[s]=x,t[v(S.Outlier)]=e[u];break}case y.BoxPlotMultiFieldsAndCategory:{t[v(s)]=e[s],u=`${f.find(x=>Object.keys(e).some(F=>F.toLowerCase().includes(x.toLowerCase())))??""}_${u}`,t[v(S.Outlier)]=e[u];break}case y.BoxPlotMonoFieldAndSplitBy:case y.BoxPlotMultiFieldsAndSplitBy:{let x=String(e[c]),F=M({field:c,value:x,layer:i,fieldList:r,timeZone:n});u=`${x}_${u}`,t.Field=e[g],t[v(c)]=F,t[v(S.Outlier)]=e[u];break}case y.BoxPlotMonoFieldAndCategoryAndSplitBy:{let x=String(e[c]),F=M({field:c,value:x,layer:i,fieldList:r,timeZone:n});u=`${x}_${u}`,t[v(s)]=e[s],t[v(c)]=F,t[v(S.Outlier)]=e[u];break}case y.BoxPlotMonoField:case y.BoxPlotMultiFields:default:{t.Field=e[g],t[v(S.Outlier)]=e[u];break}}let w=`${u}${Y}`,p=e[w];p!==void 0&&(t[`${v(S.Outlier)} Z-Score`]=p)}function Ee(l){let{rawData:e,outRow:t,config:a,splitByValue:o,layer:i,fieldList:r,timeZone:n}=l,s=T(a.series),f=e[`${o}_${S.Average}`],c=H(a),u=q(a),g="";switch(s){case y.BoxPlotMonoFieldAndSplitBy:{g=`${o}_${c}`,t.Field=e[N],t[v(c)]=M({field:c,value:e[g],layer:i,fieldList:r,timeZone:n});break}case y.BoxPlotMultiFieldsAndSplitBy:{g=`${o}_${S.Average}`,t.Field=e[N],t[v(c)]=M({field:c,value:e[g],layer:i,fieldList:r,timeZone:n});break}case y.BoxPlotMonoFieldAndCategoryAndSplitBy:{g=`${o}_${S.Average}`,t[u]=e[u],t[v(c)]=M({field:c,value:o,layer:i,fieldList:r,timeZone:n});break}}t[v(S.Average)]=f;let w=`${String(f)}${Y}`,p=e[w];p!==void 0&&(t[`${v(S.Average)} Z-Score`]=p)}function Ye(l){let{config:e,rows:t,layer:a,fieldList:o,formatters:i,useRendererLabel:r=!1,timeZone:n}=l,s=T(e.series),f=s,c=ge(e),u=Array.isArray(t)&&t.length>0&&t.every(m=>m[h.boxPlot.boxPlotMeanLineMarkerId]!==void 0);c&&!u&&(s===y.BoxPlotMonoFieldAndSplitBy?f=y.BoxPlotMonoField:s===y.BoxPlotMultiFieldsAndSplitBy?f=y.BoxPlotMultiFields:s===y.BoxPlotMonoFieldAndCategoryAndSplitBy&&(f=y.BoxPlotMonoFieldAndCategory));let g=q(e),w=ee(e),p=X(e),x=H(e),F;switch(f){case y.BoxPlotMonoField:case y.BoxPlotMonoFieldAndCategory:{F=t.map(m=>{let b={};if(m[h.boxPlot.boxPlotOutlierId])j({rawData:m,outRow:b,config:e,boxPlotSubType:f,layer:a,fieldList:o,timeZone:n});else{if(f===y.BoxPlotMonoFieldAndCategory){let d=$({field:g,row:m,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n});b[g]=d}else f===y.BoxPlotMonoField&&(b.Field=m[N]);z({rawData:m,outRow:b})}return b});break}case y.BoxPlotMultiFields:{F=t.flatMap(m=>{let b={};return m[h.boxPlot.boxPlotOutlierId]?j({rawData:m,outRow:b,config:e,boxPlotSubType:f,layer:a,fieldList:o,timeZone:n}):(b.Field=m[N],z({rawData:m,outRow:b})),[b]});break}case y.BoxPlotMultiFieldsAndCategory:{F=t.flatMap(m=>w.map(b=>{let d={},L="";if(d.Field=b,m[h.boxPlot.boxPlotOutlierId])j({rawData:m,outRow:d,config:e,boxPlotSubType:f,layer:a,fieldList:o,timeZone:n});else{if(f===y.BoxPlotMultiFieldsAndCategory){let B=$({field:g,row:m,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n});d[g]=B,L=`${b}_`}z({rawData:m,outRow:d,keyBase:L})}return d}));break}case y.BoxPlotMonoFieldAndSplitBy:case y.BoxPlotMultiFieldsAndSplitBy:case y.BoxPlotMonoFieldAndCategoryAndSplitBy:{F=t.flatMap(m=>{if(m[h.boxPlot.boxPlotOutlierId]){let b={};return j({rawData:m,outRow:b,config:e,boxPlotSubType:f,layer:a,fieldList:o,timeZone:n}),[b]}else return m[h.boxPlot.boxPlotMeanLineMarkerId]?p?.map(b=>{let d={};return Ee({rawData:m,outRow:d,splitByValue:b,config:e,layer:a,fieldList:o,timeZone:n}),d}):p.map(b=>{let d={},L=M({field:x,value:b,layer:a,fieldList:o});if(f===y.BoxPlotMonoFieldAndCategoryAndSplitBy){let B=$({field:g,row:m,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n});d[g]=B}return m[h.boxPlot.boxPlotOutlierId]?j({rawData:m,outRow:d,config:e,boxPlotSubType:f,layer:a,fieldList:o,timeZone:n}):(d[x]=L,z({rawData:m,outRow:d,keyBase:`${b}_`})),d})});break}default:F=t}return F}var Pe=l=>{let e=!1;return(typeof l=="string"||typeof l=="number")&&(e=!Number.isNaN(new Date(l).getTime())),e},We=(l,e)=>Q.fromJSDate(l,{zone:e??"local"}).toFormat("yyyy-LL-dd"),_e=(l,e)=>Q.fromJSDate(l,{zone:e??"local"}).toFormat("yyyy-LL-dd'T'HH:mm:ss"),De=l=>{let{field:e,value:t,fieldList:a,timeZone:o}=l,i=t,r=a?.find(n=>n.name===e);if(r){let n=r.type===le.DateOnly;me(r)&&!n?i=Pe(t)?_e(new Date(t),o):t:n&&typeof t!="string"&&(i=Pe(t)?We(new Date(t),o):t)}return i};function ct(l){let{runtimeDataFilters:e,view:t,viewTimeExtentChangePolicy:a,syncViewTimeExtent:o}=l,i=e;return t&&(a===we.Refresh||o)&&t.timeExtent?.start!=null&&t.timeExtent?.end!=null&&(i={...e,timeExtent:[t.timeExtent.start.valueOf(),t.timeExtent.end.valueOf()]}),i}return{a:he,b:Ce,c:Oe,d:Be,e:ke,f:ut,g:ft,h:dt,i:ct}},a,b,c,d,e,f,g)
|