@arcgis/charts-components 6.0.0-next.19 → 6.0.0-next.20
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/{Q4EFECTX.js → 2CNZDYOY.js} +1 -1
- package/dist/cdn/{QX443ZT3.js → 2L3CFU7R.js} +1 -1
- package/dist/cdn/{MTMNRIHL.js → 3D6A3FSY.js} +1 -1
- package/dist/cdn/3RMCJLPQ.js +2 -0
- package/dist/cdn/{EDPNBLT6.js → 4DBZXMWZ.js} +1 -1
- package/dist/cdn/{7R57NAHO.js → 4OC5GZ3M.js} +1 -1
- package/dist/cdn/{RANMZVK2.js → 57ZRFAP5.js} +1 -1
- package/dist/cdn/{UBJQCDOL.js → 5FLPMVDG.js} +1 -1
- package/dist/cdn/{UI4IOFME.js → 5VCVKGKW.js} +1 -1
- package/dist/cdn/{WHE4AAZ7.js → 5VG5RZKN.js} +1 -1
- package/dist/cdn/{QGXFFV46.js → 6FLJN3FM.js} +1 -1
- package/dist/cdn/{ONCZ6POJ.js → 73E367AZ.js} +1 -1
- package/dist/cdn/{HHBLZIL4.js → 74J2YHAH.js} +1 -1
- package/dist/cdn/{RQDYFGOX.js → 7CHIKM2Y.js} +1 -1
- package/dist/cdn/{3Z4OBTI2.js → 7EH2KTOE.js} +1 -1
- package/dist/cdn/{7B5WALQA.js → A5Y7SINJ.js} +1 -1
- package/dist/cdn/B2MNXOZC.js +2 -0
- package/dist/cdn/{CEK6AM7E.js → B3YDN37X.js} +1 -1
- package/dist/cdn/{O2NYEOQ6.js → BXUTY44W.js} +1 -1
- package/dist/cdn/{UOAPLPM3.js → CCCVN47Z.js} +1 -1
- package/dist/cdn/{RQ3AQL7A.js → CNQNN4CB.js} +1 -1
- package/dist/cdn/{WSTNZKNL.js → CQU7SD5I.js} +1 -1
- package/dist/cdn/{NYEME5J5.js → CXZF73UW.js} +1 -1
- package/dist/cdn/{CM2TXHHV.js → D26USL3R.js} +1 -1
- package/dist/cdn/{BVYYKKMD.js → DBCZ7X7L.js} +1 -1
- package/dist/cdn/DHXZKTF6.js +4 -0
- package/dist/cdn/{OWX5EO6C.js → DO4L5IAM.js} +1 -1
- package/dist/cdn/{BVAWYQ2X.js → DQJZEIEB.js} +1 -1
- package/dist/cdn/{YEHQ2DYK.js → DYWTYNT4.js} +1 -1
- package/dist/cdn/{2XFCDEUQ.js → EBNM4Q47.js} +1 -1
- package/dist/cdn/{3BHGMUPM.js → EBVBQSUD.js} +1 -1
- package/dist/cdn/{BIU5DASA.js → EKWGPT5Y.js} +1 -1
- package/dist/cdn/{SFA5VTS2.js → F2AEPQP5.js} +1 -1
- package/dist/cdn/{A73ZVGAS.js → F76PZBOK.js} +1 -1
- package/dist/cdn/{ZBDDGW7A.js → GFVKVWUY.js} +1 -1
- package/dist/cdn/{4CDZP4TX.js → GQFD2BXB.js} +1 -1
- package/dist/cdn/HW5YPNRC.js +2 -0
- package/dist/cdn/{JHF77RUC.js → HZSR2TZW.js} +1 -1
- package/dist/cdn/{YI4CAGMX.js → IQE6TEF7.js} +1 -1
- package/dist/cdn/{P4GYZ2NE.js → JNFER2G5.js} +1 -1
- package/dist/cdn/{2OZON66K.js → JTQIRNPA.js} +1 -1
- package/dist/cdn/{RFMXU2H7.js → JWZEPPGG.js} +1 -1
- package/dist/cdn/{VSEVHNBJ.js → KBUFMYZQ.js} +1 -1
- package/dist/cdn/{FBLAMRCB.js → KDVRUUVP.js} +1 -1
- package/dist/cdn/{CEUNAF3K.js → KEX2VV73.js} +1 -1
- package/dist/cdn/{DRQAJW27.js → KKAUA5I4.js} +1 -1
- package/dist/cdn/{HUTZOFDL.js → L5HPMS5V.js} +1 -1
- package/dist/cdn/{SNL33CT7.js → L5U7LDC3.js} +1 -1
- package/dist/cdn/{7YTUWHFR.js → L6BGXMMO.js} +1 -1
- package/dist/cdn/{GJWYUOWB.js → LRZAD7VO.js} +1 -1
- package/dist/cdn/{ZMLRNHR5.js → MG4XERCZ.js} +1 -1
- package/dist/cdn/{R5XG2G7J.js → MIBOTYKP.js} +1 -1
- package/dist/cdn/{Z4MNKCOZ.js → MU55JIYV.js} +1 -1
- package/dist/cdn/{ICEYNRHD.js → MVHLKL7W.js} +1 -1
- package/dist/cdn/{UKXRSJI4.js → N35DJP7H.js} +1 -1
- package/dist/cdn/{4KWM7I3R.js → N3JX6GNR.js} +18 -18
- package/dist/cdn/{CO56NHDR.js → N5QBW4DK.js} +1 -1
- package/dist/cdn/{2IIC5M7T.js → NSHVMSOK.js} +1 -1
- package/dist/cdn/NWPO6T3D.js +2 -0
- package/dist/cdn/NX3KK4IQ.js +2 -0
- package/dist/cdn/{QQVHG5TF.js → NXKWU3DD.js} +1 -1
- package/dist/cdn/{NQJQ637M.js → OMMWNI5R.js} +1 -1
- package/dist/cdn/{IHZHAFPS.js → OZNRLDTD.js} +1 -1
- package/dist/cdn/{CJRZC5CN.js → Q2SHE4BB.js} +1 -1
- package/dist/cdn/QB5X2DNO.js +2 -0
- package/dist/cdn/{LON6BJK7.js → QKRQPIDL.js} +1 -1
- package/dist/cdn/{OGNCTDAF.js → QUOBWCF5.js} +1 -1
- package/dist/cdn/{KKCQL6EG.js → R6MIM2PY.js} +1 -1
- package/dist/cdn/{GO5Q775T.js → RDAE2OL3.js} +1 -1
- package/dist/cdn/{I3DVCLDP.js → RWTBVIDB.js} +1 -1
- package/dist/cdn/{NKLK62MJ.js → SZWXYTUV.js} +1 -1
- package/dist/cdn/{7EBLXYTO.js → T35SJEP4.js} +1 -1
- package/dist/cdn/{NGU7YK4K.js → TRTYIA2G.js} +1 -1
- package/dist/cdn/{3WYN6S3X.js → U2MXHNZR.js} +1 -1
- package/dist/cdn/{W5UOB7NS.js → UIZELEJD.js} +1 -1
- package/dist/cdn/UNFDJW5A.js +2 -0
- package/dist/cdn/{F6MI4LEQ.js → VTCPVV2K.js} +1 -1
- package/dist/cdn/W5I5BEM4.js +2 -0
- package/dist/cdn/{NXZ643YO.js → WMLMPR4P.js} +1 -1
- package/dist/cdn/{GG5XPSK5.js → WO73Q3XE.js} +1 -1
- package/dist/cdn/{GLMJXTZF.js → X2YVJPZF.js} +1 -1
- package/dist/cdn/{N3CQJ33I.js → X7WYDIZE.js} +1 -1
- package/dist/cdn/{M4MZPY2T.js → XCFAVK6F.js} +1 -1
- package/dist/cdn/{26XWRAQN.js → Y2FV4AZ4.js} +1 -1
- package/dist/cdn/{MRCL6W5Z.js → YJW7KSEK.js} +1 -1
- package/dist/cdn/{KQJAQMO4.js → YR2TWUVL.js} +1 -1
- package/dist/cdn/{YGV6VUSU.js → Z6PP7BPU.js} +1 -1
- package/dist/cdn/{LQATZGEX.js → ZCXMHYL5.js} +1 -1
- package/dist/cdn/{E2Y55KVA.js → ZJKDLNZQ.js} +1 -1
- package/dist/cdn/{TX34E6CB.js → ZOZCGOID.js} +1 -1
- package/dist/cdn/{U4N3E77G.js → ZY5S677G.js} +1 -1
- package/dist/cdn/{LQFQARDL.js → ZYH6RLUY.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/bar-chart-model.js +3 -3
- package/dist/chunks/box-plot-model.js +6 -6
- package/dist/chunks/chart-model.js +19 -19
- package/dist/chunks/combo-bar-line-chart-model.js +8 -8
- package/dist/chunks/gauge-model.js +16 -16
- package/dist/chunks/histogram-model.js +5 -5
- package/dist/chunks/index.js +1502 -1481
- package/dist/chunks/line-chart-model.js +5 -5
- package/dist/chunks/model-with-x-guides.js +1 -1
- package/dist/chunks/model-with-y-guides.js +10 -10
- package/dist/chunks/pie-chart-model.js +6 -6
- package/dist/chunks/radar-chart-model.js +1 -1
- package/dist/chunks/scatterplot-model.js +12 -12
- package/dist/chunks/serial-chart-model.js +1 -1
- package/dist/chunks/x-bounds.js +17 -17
- package/dist/components/arcgis-chart/customElement.js +1790 -1804
- package/dist/components/arcgis-charts-config-scatter-plot-aoi/customElement.js +20 -24
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +78 -76
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +214 -213
- package/dist/loader.js +1 -1
- package/package.json +6 -6
- package/dist/cdn/2YPHOEBL.js +0 -2
- package/dist/cdn/54KQWYXM.js +0 -2
- package/dist/cdn/5SEDPIPU.js +0 -2
- package/dist/cdn/7PBQ23Z6.js +0 -2
- package/dist/cdn/FNCCQ326.js +0 -2
- package/dist/cdn/GSCC3FON.js +0 -2
- package/dist/cdn/GZ3YHHLB.js +0 -2
- package/dist/cdn/OZSOICXE.js +0 -2
- package/dist/cdn/XZHXK4OO.js +0 -4
- /package/dist/cdn/{7D3LBTBW.js → 2TVBBBFB.js} +0 -0
- /package/dist/cdn/{OMB6VH6Z.js → 3FAXIZDY.js} +0 -0
- /package/dist/cdn/{YYKAPOEZ.js → 3RJA6GU5.js} +0 -0
- /package/dist/cdn/{EF2HSNUZ.js → 3RXZGLTX.js} +0 -0
- /package/dist/cdn/{42UIR2IR.js → 3XO5QWW2.js} +0 -0
- /package/dist/cdn/{4AKIGTA2.js → 4AA4A62W.js} +0 -0
- /package/dist/cdn/{Q7ZPO77A.js → 4HXGM3VX.js} +0 -0
- /package/dist/cdn/{HZTV6GS6.js → 6COGNLWU.js} +0 -0
- /package/dist/cdn/{AZKT7APT.js → 6YTUMBO6.js} +0 -0
- /package/dist/cdn/{DOQLHITH.js → 7EO4DMRO.js} +0 -0
- /package/dist/cdn/{ZOSUF434.js → ABHDMXQ7.js} +0 -0
- /package/dist/cdn/{JMUDIMMT.js → CFC3MJF7.js} +0 -0
- /package/dist/cdn/{FWC4JUA4.js → CPBCKPO3.js} +0 -0
- /package/dist/cdn/{BA32RD3P.js → EN4TKBF7.js} +0 -0
- /package/dist/cdn/{NZNYMEBI.js → H32ZCMZI.js} +0 -0
- /package/dist/cdn/{DVBWXJY4.js → IJ4NLEMH.js} +0 -0
- /package/dist/cdn/{EGKOW5LO.js → IVMUU655.js} +0 -0
- /package/dist/cdn/{CGGLSXCD.js → JP7ADCJN.js} +0 -0
- /package/dist/cdn/{V2AEKOVG.js → JSIJJIJ2.js} +0 -0
- /package/dist/cdn/{SQ6XT3Z7.js → KJ2WKS3E.js} +0 -0
- /package/dist/cdn/{WQSXECW6.js → KZMHSQD6.js} +0 -0
- /package/dist/cdn/{TFYWD6QL.js → L5YQURIU.js} +0 -0
- /package/dist/cdn/{5BNIGQ75.js → LLQZNNEC.js} +0 -0
- /package/dist/cdn/{7XRRXXLO.js → MMZZZC7O.js} +0 -0
- /package/dist/cdn/{K6FYLQNG.js → NHKIOS73.js} +0 -0
- /package/dist/cdn/{3YRFJ6NV.js → PBFYIRZY.js} +0 -0
- /package/dist/cdn/{4L3BZMH7.js → PISJX2S5.js} +0 -0
- /package/dist/cdn/{TAQ7WU3A.js → Q3KUGWEO.js} +0 -0
- /package/dist/cdn/{PAXVQYNM.js → QGCRMKE5.js} +0 -0
- /package/dist/cdn/{65L7R5DC.js → QJZFHN2U.js} +0 -0
- /package/dist/cdn/{Y2GJGDES.js → SNAWWD5A.js} +0 -0
- /package/dist/cdn/{LD5UFLE7.js → ST6XSWHI.js} +0 -0
- /package/dist/cdn/{NNK6NBLX.js → UXCVVLXG.js} +0 -0
- /package/dist/cdn/{QSYOS3BC.js → VARG4EGS.js} +0 -0
- /package/dist/cdn/{FVSJ2OPV.js → VJWRWNXG.js} +0 -0
- /package/dist/cdn/{I5PEQRVF.js → WCOMQDTO.js} +0 -0
- /package/dist/cdn/{XS6XHZQ5.js → YQPVQLX7.js} +0 -0
- /package/dist/cdn/{I3LSRXSY.js → ZASO3PKX.js} +0 -0
- /package/dist/cdn/{FUUEOMQP.js → ZIHB4MW5.js} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import b from"./
|
|
2
|
+
import b from"./2CNZDYOY.js";import a from"./DHXZKTF6.js";import{G as l,I as g,c}from"./XXO5K6N4.js";export default $arcgis.t(([{bd:f},{d:i,e:p}])=>{var d=Object.defineProperty,v=Object.getOwnPropertyDescriptor,m=(t,e,r,b)=>{for(var s=v(e,r),o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,r,s)||s);return s&&d(e,r,s),s},u=t=>t.title?.content.text??"",y=(t,e)=>{e.title!==void 0?e.title.content.text=t:e.title===void 0&&t!==void 0&&(e.title=g({text:t,visible:!0,font:l(c.ChartTitle)}))},n=class extends i{get titleText(){return u(this._config)}set titleText(e){y(e,this._config)}};m([p],n.prototype,"titleText");var T=t=>t.series.map(e=>String(f({where:e.query?.where}))).filter(e=>e!==void 0),h=class extends i{get splitByValues(){return T(this._config)}},_=t=>t.series.length??0,x=class extends i{get seriesLength(){return _(this._config)}};return{a:u,b:n,c:T,d:h,e:_,f:x}},a,b)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{b as d}from"./
|
|
2
|
+
import{b as d}from"./UNFDJW5A.js";import{a as m}from"./YOVZ4RVH.js";import"./NX3KK4IQ.js";import"./KXU3XKM2.js";import{A as n,B as p,C as l,H as h,g as o,i as t,n as a,z as r}from"./IYVGK242.js";import{k as e}from"./FHN6CIIO.js";import{a as s}from"./BNAX4Y53.js";import"./TIWCUJOG.js";var C={selectChartComponent:"select-chart-component",panel:"panel"},g=o`.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)}.select-chart-component{width:var(--arcgis-charts-config-panel-width);height:var(--arcgis-charts-config-panel-height)}calcite-block{width:var(--arcgis-charts-config-calcite-block-default-width);height:var(--arcgis-charts-config-calcite-block-default-height);margin:var(--arcgis-charts-config-calcite-block-default-margin)}.label{display:flex;margin-left:1rem;margin-bottom:.5rem;justify-content:space-between}.header{margin:0}.panel{max-height:60vh}`,c=class extends p{constructor(){super(...arguments),this._messages=m(),this.selectChartTypePopover=r(),this.open=!1,this.arcgisChartsConfigPopoverClose=a(),this.arcgisChartsConfigSelectChartTypeChange=a()}static{this.properties={messageOverrides:0,headerTitle:1,layerId:1,layerType:1,supportedChartTypes:0,open:5,referenceElement:0,popoverPlacement:1,selectedModelType:1}}static{this.styles=g}async reposition(){await this.selectChartTypePopover.value?.reposition()}updated(){d(this.selectChartTypePopover.value,this.open)}buildChartTypesList(){let i;return i=t`<calcite-list label @click=${this.onChartTypeClick}>${this.supportedChartTypes?.includes(s.BarSeries)?t`<calcite-list-item .label=${this._messages.barChart} .value=${e.BarChart} .selected=${this.selectedModelType===e.BarChart}><calcite-icon slot=content-start icon=graph-bar></calcite-icon></calcite-list-item>`:null}${this.supportedChartTypes?.includes(s.LineSeries)?t`<calcite-list-item .label=${this._messages.lineChart} .value=${e.LineChart} .selected=${this.selectedModelType===e.LineChart}><calcite-icon slot=content-start icon=graph-time-series></calcite-icon></calcite-list-item>`:null}${this.supportedChartTypes?.includes(s.PieSeries)?t`<calcite-list-item .label=${this._messages.pieChart} .value=${e.PieChart} .selected=${this.selectedModelType===e.PieChart}><calcite-icon slot=content-start icon=pie-chart></calcite-icon></calcite-list-item>`:null}${this.supportedChartTypes?.includes(s.HistogramSeries)?t`<calcite-list-item .label=${this._messages.histogram} .value=${e.Histogram} .selected=${this.selectedModelType===e.Histogram}><calcite-icon slot=content-start icon=graph-histogram></calcite-icon></calcite-list-item>`:null}${this.supportedChartTypes?.includes(s.ScatterSeries)?t`<calcite-list-item .label=${this._messages.scatterplot} .value=${e.Scatterplot} .selected=${this.selectedModelType===e.Scatterplot}><calcite-icon slot=content-start icon=graph-scatter-plot></calcite-icon></calcite-list-item>`:null}${this.supportedChartTypes?.includes(s.BoxPlotSeries)?t`<calcite-list-item .label=${this._messages.boxPlot} .value=${e.BoxPlot} .selected=${this.selectedModelType===e.BoxPlot}><calcite-icon slot=content-start icon=box-chart></calcite-icon></calcite-list-item>`:null}${this.supportedChartTypes?.includes(s.HeatSeries)?t`<calcite-list-item .label=${this._messages.calendarHeatChart} .value=${e.HeatChart} .selected=${this.selectedModelType===e.HeatChart}><calcite-icon slot=content-start icon=calendar-heat-chart></calcite-icon></calcite-list-item>`:null}</calcite-list>`,i}onChartTypeClick(i){i.target?.localName==="calcite-list-item"?this.selectedModelType=i.target?.value:this.selectedModelType=i.target?.parentNode?.value,this.arcgisChartsConfigSelectChartTypeChange.emit()}popoverOpen(){setTimeout(()=>{this.selectChartTypePopover.value?.setFocus()},250)}popoverClose(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit(),setTimeout(()=>{this.referenceElement?.setFocus()},250)}render(){return t`<div class=${l({[C.selectChartComponent]:!0})}><calcite-popover .referenceElement=${this.referenceElement??document.body} .placement=${this.popoverPlacement} .flipPlacements=${["top","bottom"]} @calcitePopoverOpen=${this.popoverOpen} @calcitePopoverClose=${this.popoverClose} .open=${this.open} auto-close label ${n(this.selectChartTypePopover)}><calcite-panel class=${l(C.panel)} .heading=${this.headerTitle??this._messages.chooseChartType} closable @calcitePanelClose=${this.popoverClose} .closed=${!this.open}>${this.buildChartTypesList()}</calcite-panel></calcite-popover></div>`}};h("arcgis-charts-config-select-chart-type-popover",c);export{c as ArcgisChartsConfigSelectChartTypePopover};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import{a as P}from"./UNFDJW5A.js";import{a as m,c as K}from"./IBCFYECI.js";import b from"./N35DJP7H.js";import{j as o,n as h}from"./5AKOPV7Z.js";import{a as E}from"./YOVZ4RVH.js";import a from"./DHXZKTF6.js";import{D as I,Da as V,i as _}from"./XXO5K6N4.js";import{f as C}from"./WKF53DYD.js";import{c as L,d as x,q as w}from"./NX3KK4IQ.js";import"./KXU3XKM2.js";import{A as c,B as A,C as t,D as z,F as k,H as M,g as T,i as n,n as $,z as d}from"./IYVGK242.js";import"./FHN6CIIO.js";import"./AUKJ4CBR.js";import{a as S}from"./BNAX4Y53.js";import"./TIWCUJOG.js";export default $arcgis.t(([{hc:y,t:v,ta:D},{b:R,f:f,g:b,h:p,i:u,j:N}])=>{var s={label:"label",r2:"r2",numberInput:"number-input",iconSelect:"icon-select",sectionLabel:"section-label",switchElement:"switch-element",sectionContainer:"section-container",multiInputSection:"multi-input-section",dimText:"dim-text",aoiTools:"aoi-tools",currentAoiBlock:"current-aoi-block"},O=T`.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)}:host .number-input{margin-bottom:.5rem;display:flex}:host .number-input>div{width:100%}calcite-list-item{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor)}calcite-slider{margin-top:-1.5rem}.r2{margin:var(--arcgis-charts-config-margin-major) var(--arcgis-charts-config-margin-minor)}.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}.section-container{display:flex;flex-direction:column}.icon-select{cursor:pointer}.section-label{display:flex;margin:var(--arcgis-charts-config-margin-major) 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)}.switch-element{margin-right:var(--arcgis-charts-config-margin-minor)}.multi-input-section{display:flex;justify-content:space-between;align-items:center}.aoi-tools{margin-top:0;margin-bottom:var(--arcgis-charts-config-margin-major);margin-inline:var(--arcgis-charts-config-margin-minor);background:var(--calcite-color-foreground-1)}.current-aoi-block{margin:var(--arcgis-charts-config-calcite-block-default-margin)}`,F=class extends A{constructor(){super(...arguments),this._messages=E(),this.commonStrings=E({name:"common",blocking:!0}),this.scatterplotPopover=null,this.selectColorElement=d(),this.selectTrendLineElement=d(),this.xAxisElement=d(),this.yAxisElement=d(),this.tooltipFieldElement=d(),this.sizeVariableElement=d(),this.colorModeElement=d(),this.symbolSizeModeElement=d(),this.minSizeInputElement=d(),this.maxSizeInputElement=d(),this.items=[],this.setTrendLineSymbol=i=>{let e=i.detail;this.model.linearTrendSymbol=L(e)},this.setFixedSymbolRGBAColor=i=>{let e=i.detail,[l,a,r]=e,g=_*255;this.model.fixedMarkerSymbol={...this.model.fixedMarkerSymbol,color:[l,a,r,g]}},this.setXYField=i=>{try{let e=i.detail;K(m),this.contentKind===o.xAxisField?this.model.xAxisField=e:this.model.yAxisField=e,this.removeScatterplotPopover()}catch(e){throw e instanceof Error&&this.arcgisChartsConfigDataChangeError.emit({error:e,model:this.model}),e}},this.setAdditionalTooltipField=i=>{let e=i.detail;this.model.additionalTooltipField=e,this.removeScatterplotPopover()},this.setSizeVariableField=i=>{try{let e=i.detail;e?this.model.sizePolicy={...this.model.sizePolicy,type:S.SizePolicy,field:e}:this.model.sizePolicy=void 0,m.scatterplotData[m.selectedChartId]={...m.scatterplotData[m.selectedChartId],sizePolicyField:this.model.sizePolicy?.field??void 0},this.removeScatterplotPopover()}catch(e){throw e instanceof Error&&this.arcgisChartsConfigDataChangeError.emit({error:e,model:this.model}),e}},this.closeScatterplotPopover=i=>{this.scatterplotPopover===i?.target&&(this.contentKind=o.none,this.removeScatterplotPopover())},this.onModelConfigChange=()=>{this.requestUpdate();let{minSize:i,maxSize:e}=this.model.sizePolicy??{};this.minSizeInputElement.value!==void 0&&i!==void 0&&(this.minSizeInputElement.value.value=`${i}`,f(this.minSizeInputElement.value.value,this.minSizeInputElement.value.min,this.minSizeInputElement.value.max)?(this.isMinSizeInvalid=!1,p({inputElement:this.minSizeInputElement.value,status:u.IDLE})):(this.isMinSizeInvalid=!0,p({inputElement:this.minSizeInputElement.value,status:u.INVALID}))),this.maxSizeInputElement.value!==void 0&&e!==void 0&&(this.maxSizeInputElement.value.value=`${e}`,f(this.maxSizeInputElement.value.value,this.maxSizeInputElement.value.min,this.maxSizeInputElement.value.max)?(this.isMaxSizeInvalid=!1,p({inputElement:this.maxSizeInputElement.value,status:u.IDLE})):(this.isMaxSizeInvalid=!0,p({inputElement:this.maxSizeInputElement.value,status:u.INVALID})))},this.segmentedControlRef=i=>{i&&(i.focus=()=>{},this.items.push(i))},this.isFixedSymbolSizeInvalid=!1,this.isMaxSizeInvalid=!1,this.isMinSizeInvalid=!1,this.layerFieldsInfo=[],this.isTableLayer=!1,this.arcgisChartsConfigDataChangeError=$(),this.arcgisChartsConfigScatterplotPopoverChange=$()}static{this.properties={selectedElement:16,selectedSizeType:16,isFixedSymbolSizeInvalid:16,isMaxSizeInvalid:16,isMinSizeInvalid:16,messageOverrides:0,view:0,model:0,r2:9,layerFieldsInfo:0,isTableLayer:5}}static{this.styles=O}load(){this.modelChange(this.model),this.onModelConfigChange(),this.defaultR2Label=V(this.commonStrings)}willUpdate(i){i.has("model")&&(this.updateSymbolSizeInfoInAppState(),this.modelChange(this.model,i.get("model"))),i.has("selectedElement")&&this.openPopover()}loaded(){this.loadedAsync()}disconnectedCallback(){super.disconnectedCallback(),this.removeScatterplotPopover(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}async loadedAsync(){await(async i=>await new Promise(e=>setTimeout(()=>e(),i)))(250),this.items.forEach(i=>{delete i.focus})}updateSymbolSizeInfoInAppState(){this.selectedSizeType=this.getCurrentSymbolSizeType(),this.selectedSizeType===h.Proportional&&(m.scatterplotData[m.selectedChartId]={...m.scatterplotData[m.selectedChartId],sizePolicyField:this.model.sizePolicy?.field})}openPopover(){(typeof this.selectedElement=="string"||!w(this.selectedElement))&&this.setupPopover()}modelChange(i,e){e?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),i?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}setShowTrendLine(i){let e=i.target.checked;this.model.showLinearTrend=e,!e&&this.contentKind===o.trendLine&&this.closeScatterplotPopover(i)}symbolSizeChange(i){let e=i.target,{value:l}=e;if(l!==void 0&&f(l,e.min,e.max)){let a=Number.parseInt(l),r=this.model.sizePolicy,g=this.model.fixedMarkerSymbol;switch(e.name){case"fixed-symbol-size":g!==void 0&&(this.model.fixedMarkerSymbol={...g,size:a}),this.isFixedSymbolSizeInvalid=!1;break;case"proportional-symbol-min-size":r!==void 0&&(this.model.sizePolicy={...r,minSize:a}),this.isMinSizeInvalid=!1;break;case"proportional-symbol-max-size":r!==void 0&&(this.model.sizePolicy={...r,maxSize:a}),this.isMaxSizeInvalid=!1;break}p({inputElement:e,status:u.IDLE})}else e.name==="fixed-symbol-size"?this.isFixedSymbolSizeInvalid=!0:e.name==="proportional-symbol-min-size"?this.isMinSizeInvalid=!0:e.name==="proportional-symbol-max-size"&&(this.isMaxSizeInvalid=!0),p({inputElement:e,status:u.INVALID})}symbolSizeRangeSliderInput(i){let e=i.target,{minValue:l,maxValue:a}=e,r=this.model.sizePolicy;r!==void 0&&(this.model.sizePolicy={...r,minSize:l,maxSize:a},this.minSizeInputElement.value!==void 0&&(this.minSizeInputElement.value.value=`${l}`),this.maxSizeInputElement.value!==void 0&&(this.maxSizeInputElement.value.value=`${a}`))}changeColorTypeToggle(){let i=this.colorModeElement.value?.selectedItem?.value;this.model.colorMatch=i===this._messages.useLayerColors}changeSymbolSizeTypeToggle(){let i=this.symbolSizeModeElement.value?.value;this.selectedSizeType=i;let e=m.scatterplotData[m.selectedChartId]?.sizePolicyField;i===h.Proportional&&e!==void 0?this.model.sizePolicy={...this.model.sizePolicy,type:S.SizePolicy,field:e}:i===h.Fixed&&(this.model.sizePolicy={...this.model.sizePolicy,type:S.SizePolicy,field:""})}changeElementStyle(i){i.stopImmediatePropagation();let e=i.target;e.localName==="calcite-icon"&&(e=e.parentElement),e.value==="selectColor"?(this.contentKind=o.symbol,this.selectedElement=this.model.fixedMarkerSymbol?.color):e.value==="selectTrendLine"&&(this.contentKind=o.trendLine,this.selectedElement=this.model.linearTrendSymbol)}onXVariableSelectChange(i){i.stopImmediatePropagation(),this.contentKind=o.xAxisField,this.selectedElement=this.model.xAxisField}onYVariableSelectChange(i){i.stopImmediatePropagation(),this.contentKind=o.yAxisField,this.selectedElement=this.model.yAxisField}onAdditionalTooltipFieldSelectChange(i){i.stopImmediatePropagation(),this.contentKind=o.additionalTooltipFields,this.selectedElement=this.model.additionalTooltipField?.[0]??""}onSizeVariableSelectChange(i){i.stopImmediatePropagation(),this.contentKind=o.sizeVariable,this.selectedElement=this.model.sizePolicy?.field??""}setupPopover(){this.scatterplotPopover=P(this.scatterplotPopover);let i=v(this.model.layer)?this.layerFieldsInfo.filter(g=>g.type!=="esriFieldTypeOID"):[...this.layerFieldsInfo],e,l,a,r="trailing";switch(this.contentKind){case o.xAxisField:e=this.xAxisElement.value,a=this.model.xAxisField,l=this._messages.selectAField;break;case o.yAxisField:e=this.yAxisElement.value,a=this.model.yAxisField,l=this._messages.selectAField;break;case o.sizeVariable:e=this.sizeVariableElement.value,a=this.model.sizePolicy?.field??"",l=this._messages.selectAField;break;case o.additionalTooltipFields:e=this.tooltipFieldElement.value,a=this.model.additionalTooltipField?.[0]??"",l=this._messages.selectAField;break;case o.symbol:case o.trendLine:{let g=this.selectedElement;a=this.selectedElement,r="leading",Array.isArray(this.selectedElement)?e=this.selectColorElement.value:g?.type===C.SLS&&(e=this.selectTrendLineElement.value);break}default:this.contentKind=o.none,this.removeScatterplotPopover();break}this.scatterplotPopover=k(n`<arcgis-charts-config-scatter-plot-popover .headingTitle=${l} .referenceElement=${e} open .contentKind=${this.contentKind} .layerFieldsInfo=${i} .selectedContent=${a} .placement=${r} @arcgisChartsConfigPopoverClose=${this.closeScatterplotPopover} @arcgisChartsConfigScatterplotFillColorChange=${this.setFixedSymbolRGBAColor} @arcgisChartsConfigScatterplotLineStyleChange=${this.setTrendLineSymbol} @arcgisChartsConfigScatterplotXYFieldChange=${this.setXYField} @arcgisChartsConfigScatterplotSizeVariableFieldChange=${this.setSizeVariableField} @arcgisChartsConfigScatterplotAdditionalTooltipFieldChange=${this.setAdditionalTooltipField}></arcgis-charts-config-scatter-plot-popover>`),!document.body.contains(this.scatterplotPopover)&&this.scatterplotPopover!==null&&document.body.appendChild(this.scatterplotPopover)}removeScatterplotPopover(){this.scatterplotPopover!==null&&(this.scatterplotPopover=P(this.scatterplotPopover)),this.selectedElement=void 0}getCurrentSymbolSizeType(){let i=this.model.sizePolicy;return i===void 0||i.field===""?h.Fixed:h.Proportional}handleImageryScatterplotAoiChange(i){let{tool:e,newGeometry:l}=i.detail;l&&(this.model.locationsOfInterest=[{type:S.LocationOfInterest,label:e,geometry:l,enabled:!0}])}handleImageryScatterplotToggleUseAoi(i){let e=i.target.checked;this.model.locationsOfInterest=this.model.locationsOfInterest?.map(l=>({...l,enabled:e}))}handleImageryScatterplotAoiDeleteClick(){this.model.locationsOfInterest=void 0}renderXVariable(){return n`<arcgis-charts-config-field-picker .label=${y(this.layerFieldsInfo,this.model.xAxisField??"")} @click=${this.onXVariableSelectChange} ${c(this.xAxisElement)}></arcgis-charts-config-field-picker>`}renderYVariable(){return n`<arcgis-charts-config-field-picker .label=${y(this.layerFieldsInfo,this.model.yAxisField??"")} @click=${this.onYVariableSelectChange} ${c(this.yAxisElement)}></arcgis-charts-config-field-picker>`}renderTooltipField(){return n`<arcgis-charts-config-field-picker .disabled=${this.model.dataStore.aggregated} .label=${y(this.layerFieldsInfo,this.model.additionalTooltipField?.[0]??"")} @click=${this.onAdditionalTooltipFieldSelectChange} ${c(this.tooltipFieldElement)}></arcgis-charts-config-field-picker>`}renderStatistics(){let[i,e,l,a]=[...this.model.linearTrendSymbol?.color??I(0)];return n`<div class=${t(s.sectionContainer)}><calcite-label class=${t(s.label)} layout=inline-space-between>${this._messages.showLinearTrend}<calcite-switch class=${t(s.switchElement)} .checked=${this.model.showLinearTrend} @calciteSwitchChange=${this.setShowTrendLine}></calcite-switch></calcite-label><calcite-list label selection-mode=single selection-appearance=border><calcite-list-item .label=${this._messages.trendLineStyle} value=selectTrendLine .hidden=${!this.model.showLinearTrend} .selected=${this.selectedElement?.type===C.SLS} @click=${this.changeElementStyle} ${c(this.selectTrendLineElement)}><calcite-icon slot=content-end icon=line-solid style=${z({color:`rgba(${i},${e},${l},${a/255})`})} class=${t(s.iconSelect)} @click=${this.changeElementStyle}></calcite-icon></calcite-list-item></calcite-list><div class=${t(s.r2)} .hidden=${!this.model.showLinearTrend}>${`${this._messages.r2}: ${Number.isNaN(this.r2)?this.defaultR2Label:N(this.r2,R)}`}</div></div>`}renderFixedSymbol(){return n`<calcite-label class=${t(s.label)}>${this._messages.size}<calcite-input type=number name=fixed-symbol-size class=${t(s.numberInput)} min=1 max=100 step=1 .value=${b(this.model.fixedMarkerSymbol?.size)} @calciteInputInput=${this.symbolSizeChange}></calcite-input><arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.invalidSymbolSize} .isInvalid=${this.isFixedSymbolSizeInvalid}></arcgis-charts-config-invalid-input-message></calcite-label>`}renderSizeVariable(){return n`<arcgis-charts-config-field-picker .label=${y(this.layerFieldsInfo,this.model.sizePolicy?.field??"")} .invalid=${this.layerFieldsInfo.find(i=>i.name===this.model.sizePolicy?.field)===void 0} @click=${this.onSizeVariableSelectChange} ${c(this.sizeVariableElement)}></arcgis-charts-config-field-picker>`}renderMinSizeInput(){return n`<calcite-input type=number name=proportional-symbol-min-size class=${t(s.numberInput)} min=1 .max=${this.model.sizePolicy?.maxSize??100} step=1 .value=${b(this.model.sizePolicy?.minSize)} @calciteInputInput=${this.symbolSizeChange} ${c(this.minSizeInputElement)}></calcite-input>`}renderMaxSizeInput(){return n`<calcite-input type=number name=proportional-symbol-max-size class=${t(s.numberInput)} .min=${this.model.sizePolicy?.minSize??1} max=100 step=1 .value=${b(this.model.sizePolicy?.maxSize)} @calciteInputInput=${this.symbolSizeChange} ${c(this.maxSizeInputElement)}></calcite-input>`}renderProportionalSymbol(){return n`<div class=${t(s.sectionContainer)}><calcite-label class=${t(s.label)}>${this._messages.numberRequired}${this.renderSizeVariable()}</calcite-label><div class=${t(s.multiInputSection)}><calcite-label class=${t(s.label)}>${this._messages.minSize}${this.renderMinSizeInput()}<arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.invalidSymbolSize} .isInvalid=${this.isMinSizeInvalid}></arcgis-charts-config-invalid-input-message></calcite-label><calcite-label class=${t(s.label)}>${this._messages.maxSize}${this.renderMaxSizeInput()}<arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.invalidSymbolSize} .isInvalid=${this.isMaxSizeInvalid}></arcgis-charts-config-invalid-input-message></calcite-label></div><calcite-label><calcite-slider min=1 max=100 .minValue=${x(b(this.model.sizePolicy?.minSize))} .maxValue=${x(b(this.model.sizePolicy?.maxSize))} step=1 @calciteSliderInput=${this.symbolSizeRangeSliderInput}></calcite-slider></calcite-label></div>`}renderSymbolSizeType(){return n`<calcite-label class=${t(s.label)}>${this._messages.size}<calcite-segmented-control name=symbolSizeType layout=horizontal scale=s @calciteSegmentedControlChange=${this.changeSymbolSizeTypeToggle} ${c(this.symbolSizeModeElement)}><calcite-segmented-control-item .value=${h.Fixed} .checked=${h.Fixed===this.selectedSizeType} ${c(this.segmentedControlRef)}>${this._messages.fixed}</calcite-segmented-control-item><calcite-segmented-control-item .value=${h.Proportional} .checked=${h.Proportional===this.selectedSizeType} ${c(this.segmentedControlRef)}>${this._messages.proportional}</calcite-segmented-control-item></calcite-segmented-control></calcite-label>`}renderSymbol(){let i=v(this.model.layer),[e,l,a,r]=[...this.model.fixedMarkerSymbol?.color??I(0)];return n`<div class=${t(s.sectionContainer)}>${this.renderSymbolSizeType()}${this.selectedSizeType===h.Proportional?this.renderProportionalSymbol():this.renderFixedSymbol()}<calcite-label class=${t(s.label)}>${this._messages.color}${!this.isTableLayer&&!i?n`<calcite-segmented-control name=layerColor layout=horizontal scale=s @calciteSegmentedControlChange=${this.changeColorTypeToggle} ${c(this.colorModeElement)}><calcite-segmented-control-item .value=${this._messages.useLayerColors} .checked=${this.model.colorMatch} ${c(this.segmentedControlRef)}>${this._messages.useLayerColors}</calcite-segmented-control-item><calcite-segmented-control-item .value=${this._messages.singleColor} .checked=${!this.model.colorMatch} ${c(this.segmentedControlRef)}>${this._messages.singleColor}</calcite-segmented-control-item></calcite-segmented-control>`:null}</calcite-label><calcite-list label selection-mode=single selection-appearance=border><calcite-list-item .label=${this._messages.color} value=selectColor .hidden=${this.model.colorMatch&&!this.isTableLayer&&!i} .selected=${Array.isArray(this.selectedElement)} @click=${this.changeElementStyle} ${c(this.selectColorElement)}><calcite-icon slot=content-end icon=circle-f style=${z({color:`rgba(${e},${l},${a},${r/255})`})} class=${t(s.iconSelect)} @click=${this.changeElementStyle}></calcite-icon></calcite-list-item></calcite-list></div>`}renderDefineAnAoiSection(){let i=v(this.model.layer),e=this.model.locationsOfInterest?.[0],l=D(e),a=l?this.commonStrings.imageryAoiToolsStrings[l]:"";return i?n`<h3 class=${t(s.sectionLabel)}>${this._messages.defineAnAoi}</h3><div class=${t(s.sectionContainer)}><arcgis-charts-config-scatter-plot-aoi class=${t(s.aoiTools)} .view=${this.view} .tool=${l} @arcgisImageryScatterplotAoiChange=${this.handleImageryScatterplotAoiChange}></arcgis-charts-config-scatter-plot-aoi><calcite-label class=${t(s.label)} layout=inline-space-between>${this._messages.useAoi}<calcite-switch class=${t(s.switchElement)} id=charts-config-scatter-plot-aoi-use-switch .checked=${e?.enabled} .disabled=${!e} @calciteSwitchChange=${this.handleImageryScatterplotToggleUseAoi}></calcite-switch></calcite-label><calcite-block class=${t(s.currentAoiBlock)} expanded .hidden=${!e?.enabled}><calcite-label>${this._messages.currentAoi}</calcite-label><calcite-label layout=inline-space-between scale=s>${a}<calcite-button id=charts-config-scatter-plot-aoi-delete icon-start=trash appearance=transparent scale=s @click=${this.handleImageryScatterplotAoiDeleteClick}></calcite-button></calcite-label></calcite-block></div>`:null}render(){return n`${this.renderDefineAnAoiSection()}<h3 class=${t(s.sectionLabel)}>${this._messages.variables}</h3><calcite-label class=${t(s.label)}>${this._messages.xAxisNumber}${this.renderXVariable()}</calcite-label><calcite-label class=${t(s.label)}>${this._messages.yAxisNumber}${this.renderYVariable()}</calcite-label><calcite-label class=${t(s.label)}><span class=${t(this.model.dataStore.aggregated?s.dimText:"")}>${this._messages.additionalTooltipFields}</span>${this.renderTooltipField()}</calcite-label><h3 class=${t(s.sectionLabel)}>${this._messages.statistics}</h3>${this.renderStatistics()}<h3 class=${t(s.sectionLabel)}>${this._messages.symbol}</h3>${this.renderSymbol()}`}};M("arcgis-charts-config-scatter-plot-data",F);return F},a,b)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
function hr(r){return Array.isArray(r)}function R(r){return r!==null&&(typeof r=="object"||typeof r=="function")}function x(r){return r==null||typeof r!="object"&&typeof r!="function"}function I(r){return Object.getOwnPropertySymbols(r).filter(t=>Object.prototype.propertyIsEnumerable.call(r,t))}function l(r){return r==null?r===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(r)}var Z="[object RegExp]",z="[object String]",U="[object Number]",F="[object Boolean]",Ar="[object Arguments]",V="[object Symbol]",H="[object Date]",G="[object Map]",J="[object Set]",Q="[object Array]",Dr="[object Function]",X="[object ArrayBuffer]",P="[object Object]",$r="[object Error]",Y="[object DataView]",C="[object Uint8Array]",v="[object Uint8ClampedArray]",rr="[object Uint16Array]",tr="[object Uint32Array]",Mr="[object BigUint64Array]",or="[object Int8Array]",er="[object Int16Array]",ir="[object Int32Array]",Wr="[object BigInt64Array]",nr="[object Float32Array]",fr="[object Float64Array]";var Dt=Object.prototype.hasOwnProperty;function y(r,t){return Dt.call(r,t)}var br=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||(function(){return this})();function A(r){return typeof br.Buffer<"u"&&br.Buffer.isBuffer(r)}function Lr(r){return A(r)}function mr(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}function O(r){return mr(r)}function Er(r,t){return $(r,void 0,r,new Map,t)}function $(r,t,o,e,i){if(i!=null){let n=i(r,t,o,e);if(n!==void 0)return n}if(x(r))return r;if(e.has(r))return e.get(r);if(Array.isArray(r)){let n=new Array(r.length);e.set(r,n);for(let f=0;f<r.length;f++)n[f]=$(r[f],f,o,e,i);return y(r,"index")&&(n.index=r.index),y(r,"input")&&(n.input=r.input),n}if(r instanceof Date)return new Date(r.getTime());if(r instanceof RegExp){let n=new RegExp(r.source,r.flags);return n.lastIndex=r.lastIndex,n}if(r instanceof Map){let n=new Map;return e.set(r,n),r.forEach((f,s)=>{n.set(s,$(f,s,o,e,i))}),n}if(r instanceof Set){let n=new Set;return e.set(r,n),r.forEach(f=>{n.add($(f,void 0,o,e,i))}),n}if(Lr(r))return r.subarray();if(O(r)){let n=new(Object.getPrototypeOf(r)).constructor(r.length);e.set(r,n);for(let f=0;f<r.length;f++)n[f]=$(r[f],f,o,e,i);return n}if(r instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer)return r.slice(0);if(r instanceof DataView){let n=new DataView(r.buffer.slice(0),r.byteOffset,r.byteLength);return e.set(r,n),D(n,r,o,e,i),n}if(typeof File<"u"&&r instanceof File){let n=new File([r],r.name,{type:r.type});return e.set(r,n),D(n,r,o,e,i),n}if(typeof Blob<"u"&&r instanceof Blob){let n=new Blob([r],{type:r.type});return e.set(r,n),D(n,r,o,e,i),n}let m=l(r);if(m==="[object Error]")return r===o?{}:r;switch(m){case U:case z:case F:{let n=new r.constructor(r.valueOf());return e.set(r,n),D(n,r,o,e,i),n}case Ar:{let n={};return e.set(r,n),D(n,r,o,e,i),n.length=r.length,n[Symbol.iterator]=r[Symbol.iterator],n}}if(typeof r=="object"&&$t(m)){let n=m==="[object Object]"&&typeof r.constructor!="function"?{}:Object.create(Object.getPrototypeOf(r));return e.set(r,n),D(n,r,o,e,i),n}return r}function D(r,t,o,e,i){let m=[...Object.keys(t),...I(t)];for(let n=0;n<m.length;n++){let f=m[n],s=Object.getOwnPropertyDescriptor(r,f);(s==null||s.writable)&&(r[f]=$(t[f],f,o,e,i))}}function $t(r){switch(r){case Ar:case Q:case X:case Y:case F:case H:case nr:case fr:case or:case er:case ir:case G:case U:case P:case Z:case J:case z:case V:case C:case v:case rr:case tr:return!0;default:return!1}}function w(r){return Er(r)}function M(r){return typeof r=="symbol"||r instanceof Symbol}function Mt(r){return M(r)?NaN:Number(r)}function Nr(r,t,{signal:o,edges:e}={}){let i,m=null,n=e!=null&&e.includes("leading"),f=e==null||e.includes("trailing"),s=()=>{m!==null&&(r.apply(i,m),i=void 0,m=null)},p=()=>{f&&s(),h()},u=null,c=()=>{u!=null&&clearTimeout(u),u=setTimeout(()=>{u=null,p()},t)},a=()=>{u!==null&&(clearTimeout(u),u=null)},h=()=>{a(),i=void 0,m=null},T=()=>{s()},_=function(...Bt){if(o?.aborted)return;i=this,m=Bt;let Pt=u==null;c(),n&&Pt&&s()};return _.schedule=c,_.cancel=h,_.flush=T,o?.addEventListener("abort",h,{once:!0}),_}function Wt(r,t=0,o={}){typeof o!="object"&&(o={});let{leading:e=!1,trailing:i=!0,maxWait:m}=o,n=Array(2);e&&(n[0]="leading"),i&&(n[1]="trailing");let f,s=null,p=Nr(function(...a){f=r.apply(this,a),s=null},t,{edges:n}),u=function(...a){return m!=null&&(s===null&&(s=Date.now()),Date.now()-s>=m)?((e||i)&&(f=r.apply(this,a)),s=Date.now(),p.cancel(),p.schedule(),f):(p.apply(this,a),f)},c=()=>(p.flush(),f);return u.cancel=p.cancel,u.flush=c,u}function xr(r){if(typeof r=="string")return r;if(Array.isArray(r)){let o="";for(let e=0;e<r.length;e++)e>0&&(o+=","),o+=xr(r[e]);return o}if(M(r))return r.toString();let t=r+"";return t==="0"&&Object.is(Number(r),-0)?"-0":t}function g(r){return r==null?"":xr(r)}function Lt(r,t=0,o){return o&&(t=0),Number.parseInt(g(r),t)}function W(r){return r==="__proto__"}function sr(r){if(typeof r!="object"||r==null)return!1;if(Object.getPrototypeOf(r)===null)return!0;if(Object.prototype.toString.call(r)!=="[object Object]"){var t;let e=r[Symbol.toStringTag];return e==null||!(!((t=Object.getOwnPropertyDescriptor(r,Symbol.toStringTag))===null||t===void 0)&&t.writable)?!1:r.toString()===`[object ${e}]`}let o=r;for(;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return Object.getPrototypeOf(r)===o}function b(r){return r!==null&&typeof r=="object"&&l(r)==="[object Arguments]"}function B(r){return typeof r=="object"&&r!==null}function Tr(r){return Number.isSafeInteger(r)&&r>=0}function d(r){return r!=null&&typeof r!="function"&&Tr(r.length)}function pr(r){return B(r)&&d(r)}function Rr(r){if(x(r))return r;if(Array.isArray(r)||mr(r)||r instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer)return r.slice(0);let t=Object.getPrototypeOf(r);if(t==null)return Object.assign(Object.create(t),r);let o=t.constructor;if(r instanceof Date||r instanceof Map||r instanceof Set)return new o(r);if(r instanceof RegExp){let e=new o(r);return e.lastIndex=r.lastIndex,e}if(r instanceof DataView)return new o(r.buffer.slice(0));if(r instanceof Error){let e;return typeof AggregateError<"u"&&r instanceof AggregateError?e=new o(r.errors,r.message,{cause:r.cause}):e=new o(r.message,{cause:r.cause}),e.stack=r.stack,Object.assign(e,r),e}if(typeof File<"u"&&r instanceof File)return new o([r],r.name,{type:r.type,lastModified:r.lastModified});if(typeof r=="object"){let e=Object.create(t);return Object.assign(e,r)}return r}function Or(r,...t){let o=t.slice(0,-1),e=t[t.length-1],i=r;for(let m=0;m<o.length;m++){let n=o[m];i=ur(i,n,e,new Map)}return i}function ur(r,t,o,e){if(x(r)&&(r=Object(r)),t==null||typeof t!="object")return r;if(e.has(t))return Rr(e.get(t));if(e.set(t,r),Array.isArray(t)){t=t.slice();for(let m=0;m<t.length;m++)m in t||(t[m]=void 0)}let i=[...Object.keys(t),...I(t)];for(let m=0;m<i.length;m++){let n=i[m];if(W(n))continue;let f=t[n],s=r[n];if(b(f)&&(f=Object.assign({},f)),b(s)&&(s=Object.assign({},s)),A(f)&&(f=w(f)),Array.isArray(f))if(Array.isArray(s)){let u=[],c=Reflect.ownKeys(s);for(let a=0;a<c.length;a++){let h=c[a];u[h]=s[h]}s=u}else if(pr(s)){let u=[];for(let c=0;c<s.length;c++)u[c]=s[c];s=u}else s=[];let p=o(s,f,n,r,t,e);p!==void 0?r[n]=p:Array.isArray(f)||B(s)&&B(f)&&(sr(s)||sr(f)||O(s)||O(f))?r[n]=ur(s,f,o,e):s==null&&sr(f)?r[n]=ur({},f,o,e):s==null&&O(f)?r[n]=w(f):(s===void 0||f!==void 0)&&(r[n]=f)}return r}function cr(){}function Et(r,...t){return Or(r,...t,cr)}function wr(r){if(!r||typeof r!="object")return!1;let t=Object.getPrototypeOf(r);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(r)==="[object Object]":!1}function j(r,t){return r===t||Number.isNaN(r)&&Number.isNaN(t)}function zr(r,t,o){return k(r,t,void 0,void 0,void 0,void 0,o)}function k(r,t,o,e,i,m,n){let f=n(r,t,o,e,i,m);if(f!==void 0)return f;if(typeof r==typeof t)switch(typeof r){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return r===t;case"number":return r===t||Object.is(r,t);case"function":return r===t;case"object":return q(r,t,m,n)}return q(r,t,m,n)}function q(r,t,o,e){var i;if(Object.is(r,t))return!0;let m=l(r),n=l(t);if(m==="[object Arguments]"&&(m=P),n==="[object Arguments]"&&(n=P),m!==n)return!1;switch(m){case z:return r.toString()===t.toString();case U:{let p=r.valueOf(),u=t.valueOf();return j(p,u)}case F:case H:case V:return Object.is(r.valueOf(),t.valueOf());case Z:return r.source===t.source&&r.flags===t.flags;case Dr:return r===t}o=(i=o)!==null&&i!==void 0?i:new Map;let f=o.get(r),s=o.get(t);if(f!=null&&s!=null)return f===t;o.set(r,t),o.set(t,r);try{switch(m){case G:if(r.size!==t.size)return!1;for(let[p,u]of r.entries())if(!t.has(p)||!k(u,t.get(p),p,r,t,o,e))return!1;return!0;case J:{if(r.size!==t.size)return!1;let p=Array.from(r.values()),u=Array.from(t.values());for(let c=0;c<p.length;c++){let a=p[c],h=u.findIndex(T=>k(a,T,void 0,r,t,o,e));if(h===-1)return!1;u.splice(h,1)}return!0}case Q:case C:case v:case rr:case tr:case Mr:case or:case er:case ir:case Wr:case nr:case fr:if(A(r)!==A(t)||r.length!==t.length)return!1;for(let p=0;p<r.length;p++)if(!k(r[p],t[p],p,r,t,o,e))return!1;return!0;case X:return r.byteLength!==t.byteLength?!1:q(new Uint8Array(r),new Uint8Array(t),o,e);case Y:return r.byteLength!==t.byteLength||r.byteOffset!==t.byteOffset?!1:q(new Uint8Array(r),new Uint8Array(t),o,e);case $r:return r.name===t.name&&r.message===t.message;case P:{if(!(q(r.constructor,t.constructor,o,e)||wr(r)&&wr(t)))return!1;let p=[...Object.keys(r),...I(r)],u=[...Object.keys(t),...I(t)];if(p.length!==u.length)return!1;for(let c=0;c<p.length;c++){let a=p[c],h=r[a];if(!y(t,a))return!1;let T=t[a];if(!k(h,T,a,r,t,o,e))return!1}return!0}default:return!1}}finally{o.delete(r),o.delete(t)}}function Nt(r,t){return zr(r,t,cr)}function Ur(r){let t=r?.constructor;return r===(typeof t=="function"?t.prototype:Object.prototype)}function Tt(r){if(r==null)return!0;if(d(r))return typeof r.splice!="function"&&typeof r!="string"&&!A(r)&&!O(r)&&!b(r)?!1:r.length===0;if(typeof r=="object"||typeof r=="function"){if(r instanceof Map||r instanceof Set)return r.size===0;let t=Object.keys(r);return Ur(r)?t.filter(o=>o!=="constructor").length===0:t.length===0}return!0}function ar(r){return r.charAt(0).toUpperCase()+r.slice(1).toLowerCase()}var Fr=new Map([["\xC6","Ae"],["\xD0","D"],["\xD8","O"],["\xDE","Th"],["\xDF","ss"],["\xE6","ae"],["\xF0","d"],["\xF8","o"],["\xFE","th"],["\u0110","D"],["\u0111","d"],["\u0126","H"],["\u0127","h"],["\u0131","i"],["\u0132","IJ"],["\u0133","ij"],["\u0138","k"],["\u013F","L"],["\u0140","l"],["\u0141","L"],["\u0142","l"],["\u0149","'n"],["\u014A","N"],["\u014B","n"],["\u0152","Oe"],["\u0153","oe"],["\u0166","T"],["\u0167","t"],["\u017F","s"]]);function qr(r){let t="";for(let o=0;o<r.length;o++)t+=Rt(r[o]);return t}function Rt(r){let t=r.charCodeAt(0);if(t<128)return r;if(kr(t))return"";let o=Fr.get(r);if(o!=null)return o;if(!zt(t))return r;let e=r.normalize("NFD"),i="";for(let n=0;n<e.length;n++)if(!kr(e.charCodeAt(n))){var m;i+=(m=Fr.get(e[n]))!==null&&m!==void 0?m:e[n]}return i}function zt(r){return r>=192&&r<=563||r>=7680&&r<=7929||r===8490||r===8491}function kr(r){return r>=768&&r<=879||r>=8400&&r<=8447||r>=65056&&r<=65071}var Kr=[];for(let r=192;r<=383;r++)Kr.push(qr(String.fromCharCode(r)));function _r(r){r=g(r);let t=0;for(;t<r.length&&r.charCodeAt(t)<192;)t++;if(t===r.length)return r;let o=r.slice(0,t);for(;t<r.length;t++){let e=r.charCodeAt(t);if(e>=192&&e<=383){o+=Kr[e-192];continue}e>=768&&e<=879||e>=8400&&e<=8447||e>=65056&&e<=65071||(o+=r[t])}return o}var Jr="\\ud800-\\udfff",Ut="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Qr="\\u2700-\\u27bf",Xr="a-z\\xdf-\\xf6\\xf8-\\xff",Yr="A-Z\\xc0-\\xd6\\xd8-\\xde",Ft="\\ufe0e\\ufe0f",Cr="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",vr="['\u2019]",Zr=`[${Cr}]`,kt=`[${Ut}]`,rt="\\d+",qt=`[${Qr}]`,tt=`[${Xr}]`,ot=`[^${Jr}${Cr}${rt}${Qr}${Xr}${Yr}]`,Kt=`(?:${kt}|\\ud83c[\\udffb-\\udfff])`,_t=`[^${Jr}]`,et="(?:\\ud83c[\\udde6-\\uddff]){2}",it="[\\ud800-\\udbff][\\udc00-\\udfff]",L=`[${Yr}]`,Zt="\\u200d",Vr=`(?:${tt}|${ot})`,Vt=`(?:${L}|${ot})`,Hr=`(?:${vr}(?:d|ll|m|re|s|t|ve))?`,Gr=`(?:${vr}(?:D|LL|M|RE|S|T|VE))?`,nt=`${Kt}?`,ft=`[${Ft}]?`,Ht=`(?:${Zt}(?:${[_t,et,it].join("|")})${ft}${nt})*`,Gt="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Jt="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qt=ft+nt+Ht,Xt=`(?:${[qt,et,it].join("|")})${Qt}`,Yt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ct=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,jr;function vt(){return jr==null&&(jr=RegExp([`${L}?${tt}+${Hr}(?=${[Zr,L,"$"].join("|")})`,`${Vt}+${Gr}(?=${[Zr,L+Vr,"$"].join("|")})`,`${L}?${Vr}+${Hr}`,`${L}+${Gr}`,Jt,Gt,rt,Xt].join("|"),"g")),jr}function mt(r){let t=Yt.test(r)?vt():Ct,o=r.match(t);return o==null?[]:Array.from(o)}function st(r,t,o){let e=g(r);if(o||t===void 0)return mt(e);typeof t=="number"&&(t=t.toString());let i=e.match(t);return(i==null?[]:Array.from(i)).filter(m=>m!=="")}function pt(r){return typeof r!="string"&&(r=g(r)),r.replace(/['\u2019]/g,"")}function ro(r){let t=st(pt(_r(r)));if(t.length===0)return"";let[o,...e]=t;return`${o.toLowerCase()}${e.map(i=>ar(i)).join("")}`}function ut(r,t=1){let o=[],e=Math.floor(t),i=(m,n)=>{for(let f=0;f<m.length;f++){let s=m[f];Array.isArray(s)&&n<e?i(s,n+1):o.push(s)}};return i(r,0),o}function S(r){var t;return typeof r=="string"||typeof r=="symbol"?r:Object.is(r==null||(t=r.valueOf)===null||t===void 0?void 0:t.call(r),-0)?"-0":String(r)}function E(r){if(Array.isArray(r))return r.map(S);if(typeof r=="symbol")return[r];r=g(r);let t=[],o=r.length;if(o===0)return t;let e=0,i="",m="",n=!1,f=!1,s=/^-?\d+(?:\.\d+)?$/;for(r.charCodeAt(0)===46&&t.push("");e<o;){let p=r[e];if(m)p==="\\"&&e+1<o?(e++,i+=r[e]):p===m?m="":i+=p;else if(n)if(p==='"'||p==="'")m=p,f=!0;else if(p==="]"){if(n=!1,!f&&i.includes(".")&&!s.test(i)){let u=i.split(".");for(let c=0;c<u.length;c++)u[c]!==""&&t.push(u[c])}else t.push(i);i=""}else i+=p;else if(p==="[")n=!0,f=!1,i&&(t.push(i),i="");else if(p==="."){i&&(t.push(i),i="");let u=r[e+1];(u===void 0||u===".")&&t.push("")}else i+=p;e++}return i&&t.push(i),t}var to=/\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;function lr(r){switch(typeof r){case"number":case"symbol":return!1;case"string":return r===""||r.startsWith(".")||r.endsWith(".")?!1:to.test(r);default:return!1}}function K(r,t,o){if(r==null)return o;switch(typeof t){case"string":{if(W(t))return o;let e=r[t];return e===void 0?lr(t)&&!y(r,t)?K(r,E(t),o):o:e}case"number":case"symbol":{typeof t=="number"&&(t=S(t));let e=r[t];return e===void 0?o:e}default:{if(Array.isArray(t))return oo(r,t,o);if(Object.is(t?.valueOf(),-0)?t="-0":t=String(t),W(t))return o;let e=r[t];return e===void 0?o:e}}}function oo(r,t,o){if(t.length===0)return o;let e=r;for(let i=0;i<t.length;i++){if(e==null||W(t[i]))return o;e=e[t[i]]}return e===void 0?o:e}function ct(r){return function(t){return K(t,r)}}function Ir(r,t,o){return typeof o!="function"?Ir(r,t,()=>{}):Sr(r,t,function e(i,m,n,f,s,p){let u=o(i,m,n,f,s,p);return u!==void 0?!!u:Sr(i,m,e,p,!1)},new Map,!0)}function Sr(r,t,o,e,i=!1){if(t===r)return!0;switch(typeof t){case"object":return eo(r,t,o,e,i);case"function":return Object.keys(t).length>0?Sr(r,Object.assign({},t),o,e,i):j(r,t);default:return R(r)?i?typeof t=="string"?t==="":!0:j(r,t):j(r,t)}}function eo(r,t,o,e,i=!1){if(t==null)return!0;if(Array.isArray(t))return at(r,t,o,e);if(t instanceof Map)return io(r,t,o,e);if(t instanceof Set)return no(r,t,o,e);let m=Object.keys(t);if(r==null)return i&&m.length===0;if(i)x(r)&&(r=Object(r));else{if(l(t)==="[object Error]")return l(r)==="[object Error]"&&r.name===t.name&&r.message===t.message;let n=l(r);if(n!=="[object Object]"&&n!=="[object Arguments]")return!1}if(m.length===0)return!0;if(e?.has(t))return e.get(t)===r;e?.set(t,r);try{for(let n=0;n<m.length;n++){let f=m[n];if(!(f in r)||t[f]===void 0&&r[f]!==void 0||t[f]===null&&r[f]!==null||!o(r[f],t[f],f,r,t,e))return!1}return!0}finally{e?.delete(t)}}function io(r,t,o,e){if(t.size===0)return!0;if(!(r instanceof Map))return!1;for(let[i,m]of t.entries())if(o(r.get(i),m,i,r,t,e)===!1)return!1;return!0}function at(r,t,o,e){if(t.length===0)return!0;if(!Array.isArray(r))return!1;let i=new Set;for(let m=0;m<t.length;m++){let n=t[m],f=!1;for(let s=0;s<r.length;s++){if(i.has(s))continue;let p=r[s],u=!1;if(o(p,n,m,r,t,e)&&(u=!0),u){i.add(s),f=!0;break}}if(!f)return!1}return!0}function no(r,t,o,e){return t.size===0?!0:r instanceof Set?at([...r],[...t],o,e):!1}function yr(r,t){return Ir(r,t,()=>{})}function lt(r){return r=w(r),t=>yr(t,r)}var fo=/^(?:0|[1-9]\d*)$/;function gr(r,t=Number.MAX_SAFE_INTEGER){switch(typeof r){case"number":return Number.isInteger(r)&&r>=0&&r<t;case"symbol":return!1;case"string":return fo.test(r)}}function yt(r,t){let o;if(Array.isArray(t)?o=t:typeof t=="string"&&lr(t)&&!(t in Object(r))?o=E(t):o=[t],o.length===0)return!1;let e=r;for(let i=0;i<o.length;i++){let m=S(o[i]);if((e==null||!y(e,m))&&!((Array.isArray(e)||b(e))&&gr(m)&&Number(m)<e.length))return!1;e=e[m]}return!0}function gt(r,t){switch(typeof r){case"object":Object.is(r?.valueOf(),-0)&&(r="-0");break;case"number":r=S(r)}return t=w(t),function(o){let e=K(o,r);return e===void 0?yt(o,r):t===void 0?e===void 0:yr(e,t)}}function N(r){return r}function dr(r){if(r==null)return N;switch(typeof r){case"function":return r;case"object":return Array.isArray(r)&&r.length===2?gt(r[0],r[1]):lt(r);default:return ct(r)}}function dt(r){let t=Object.keys(r),o=new Array(t.length);for(let e=0;e<t.length;e++)o[e]=r[t[e]];return o}function ht(r,t,o=1){if(t==null&&(t=r,r=0),!Number.isInteger(o)||o===0)throw new Error("The step value must be a non-zero integer.");let e=Math.max(Math.ceil((t-r)/o),0),i=new Array(e);for(let m=0;m<e;m++)i[m]=r+m*o;return i}function Br(r,t,o){return R(o)&&(typeof t=="number"&&d(o)&&gr(t)&&t<o.length||typeof t=="string"&&t in o)?j(o[t],r):!1}function At(r,t=1){if(!d(r))return[];let o=[],e=Math.floor(t),i=(m,n)=>{for(let f=0;f<m.length;f++){let s=m[f];mo(s)&&n<e?i(s,n+1):o.push(s)}};return i(Array.from(r),0),o}function mo(r){return hr(r)||b(r)||!!(r&&r[Symbol.isConcatSpreadable])}function bt(r,t=N){if(!r)return[];let o=d(r)?ht(0,r.length):Object.keys(r),e=dr(t),i=new Array(o.length);for(let m=0;m<o.length;m++){let n=o[m],f=r[n];i[m]=e(f,n,r)}return i}function xt(r,t=N,o=1){if(r==null)return[];let e=dr(t),i=bt(r,e);return At(i,o)}function so(r,t){return xt(r,t,1)}function Ot(r){return typeof r=="symbol"?1:r===null?2:r===void 0?3:r!==r?4:0}var wt=(r,t,o)=>{if(r!==t){let e=Ot(r),i=Ot(t);if(e===i&&e===0){if(r<t)return o==="desc"?1:-1;if(r>t)return o==="desc"?-1:1}return o==="desc"?i-e:e-i}return 0};var po=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,uo=/^\w*$/;function jt(r,t){return Array.isArray(r)?!1:typeof r=="number"||typeof r=="boolean"||r==null||M(r)?!0:typeof r=="string"&&(uo.test(r)||!po.test(r))||t!=null&&y(t,r)}function St(r,t,o,e){if(r==null)return[];o=e?void 0:o,Array.isArray(r)||(r=d(r)?Array.from(r):dt(r)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(o)||(o=o==null?[]:[o]),o=o.map(f=>String(f));let i=(f,s)=>{let p=f,u=0;for(;u<s.length&&p!=null;++u)p=p[s[u]];return u>0&&u===s.length?p:void 0},m=(f,s)=>{if(f==null)return s;if(s!=null)return typeof f=="object"&&"key"in f?y(s,f.key)?s[f.key]:i(s,f.path):typeof f=="function"?f(s):Array.isArray(f)?i(s,f):s[f]},n=t.map(f=>(Array.isArray(f)&&f.length===1&&(f=f[0]),f==null||typeof f=="function"||Array.isArray(f)||jt(f)?f:{key:f,path:E(f)}));return r.map(f=>({original:f,criteria:n.map(s=>m(s,f))})).slice().sort((f,s)=>{for(let p=0;p<n.length;p++){let u=wt(f.criteria[p],s.criteria[p],o[p]);if(u!==0)return u}return 0}).map(f=>f.original)}function co(r){return r==null}function ao(r,...t){let o=t.length;return o>1&&Br(r,t[0],t[1])?t=[]:o>2&&Br(t[0],t[1],t[2])&&(t=[t[0]]),St(r,ut(t),["asc"])}function lo(r){return typeof r=="number"||B(r)&&l(r)==="[object Number]"}function It(...r){let t=0;for(let i=0;i<r.length;i++)r[i].length>t&&(t=r[i].length);let o=r.length,e=Array(t);for(let i=0;i<t;++i){let m=Array(o);for(let n=0;n<o;++n)m[n]=r[n][i];e[i]=m}return e}function yo(...r){return r.length?It(...r.filter(t=>pr(t))):[]}function Pr(r,t){if(typeof r!="function"||t!=null&&typeof t!="function")throw new TypeError("Expected a function");let o=function(...e){let i=t?t.apply(this,e):e[0],m=o.cache;if(m.has(i))return m.get(i);let n=r.apply(this,e);return o.cache=m.set(i,n)||m,n};return o.cache=new(Pr.Cache||Map),o}Pr.Cache=Map;function go(r){return r===null}function ho(r){return ar(g(r))}export{hr as a,R as b,w as c,Mt as d,so as e,co as f,ao as g,lo as h,yo as i,Wt as j,Pr as k,Lt as l,Or as m,Et as n,Nt as o,go as p,Tt as q,ho as r,ro as s};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{b as f}from"./
|
|
2
|
+
import{b as f}from"./UNFDJW5A.js";import{a as v}from"./YOVZ4RVH.js";import{i as C}from"./XXO5K6N4.js";import"./WKF53DYD.js";import"./NX3KK4IQ.js";import"./KXU3XKM2.js";import{A as m,B as d,C as i,H as g,g as n,i as p,n as s,z as h}from"./IYVGK242.js";import"./BNAX4Y53.js";import"./TIWCUJOG.js";var u={panelChildrenContainer:"panel-children-container"},$=n`.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}`,o=class extends d{constructor(){super(...arguments),this._messages=v(),this.popoverElement=h(),this.selectedSliceId="",this.open=!1,this.arcgisChartsConfigPopoverClose=s(),this.arcgisChartsConfigSlicesPopoverColorChange=s(),this.arcgisChartsConfigSlicesPopoverNameChange=s()}static{this.properties={messageOverrides:0,referenceElement:0,selectedName:1,selectedColor:0,selectedSliceId:1,placement:1,open:5}}static{this.styles=$}async reposition(){await this.popoverElement.value?.reposition()}updated(){f(this.popoverElement.value,this.open)}sliceNameChange(e){let t=e.target.value;this.selectedName!==t&&(this.selectedName=t,this.arcgisChartsConfigSlicesPopoverNameChange.emit({name:t}))}closePopover(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit({selectedSliceId:this.selectedSliceId})}colorChange(e){let t=e instanceof CustomEvent?e.detail:e,[a,l,r]=t,c=C*255;this.selectedColor=[a,l,r,c],this.arcgisChartsConfigSlicesPopoverColorChange.emit({color:[a,l,r,c]})}render(){let e=this.selectedColor!==void 0?[...this.selectedColor]:void 0;return p`<div><calcite-popover .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .open=${this.open} .label=${this._messages.sliceStyle??""} auto-close ${m(this.popoverElement)}><calcite-panel .heading=${this._messages.sliceStyle} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div class=${i(u.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${this.selectedName} @calciteInputInput=${this.sliceNameChange}></calcite-input></calcite-label></div><div class=${i(u.panelChildrenContainer)}><arcgis-charts-config-colors .heading=${this._messages.symbolColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></calcite-panel></calcite-popover></div>`}};g("arcgis-charts-config-pie-chart-slices-popover",o);export{o as ArcgisChartsConfigPieChartSlicesPopover};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import o from"./
|
|
2
|
+
import o from"./ZY5S677G.js";import n from"./L5U7LDC3.js";import m from"./ZYH6RLUY.js";import k from"./EBVBQSUD.js";import"./KRRYFLG4.js";import j from"./BXUTY44W.js";import i from"./N5QBW4DK.js";import g from"./JTQIRNPA.js";import e from"./2CNZDYOY.js";import d from"./DYWTYNT4.js";import a from"./DHXZKTF6.js";import{$ as l,I as p,S as v,ka as h,ra as _}from"./XXO5K6N4.js";import"./WKF53DYD.js";import"./NX3KK4IQ.js";import"./KXU3XKM2.js";import"./IYVGK242.js";import"./QGHI4FS2.js";import"./FHN6CIIO.js";import"./AUKJ4CBR.js";import{a as c,b as f,s as b}from"./BNAX4Y53.js";import"./TIWCUJOG.js";export default $arcgis.t(([{Cc:I,Zb:S},,{e:i},{d:C},,L,{b:w,d:V,f:D},{b:F,d:E,f:W},{d:T,e:A},B])=>{var M=t=>t.axes[0].needle?.visible??!0,P=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=l()),e.axes[0].needle.visible=t},$=t=>t.axes[0].needle?.symbol,G=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=l()),e.axes[0].needle.symbol=t},j=t=>t.axes[0].needle?.startWidth,q=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=l()),e.axes[0].needle.startWidth=t},O=t=>t.axes[0].needle?.endWidth,N=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=l()),e.axes[0].needle.endWidth=t},z=t=>t.axes[0].needle?.innerRadius,H=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=l()),e.axes[0].needle.innerRadius=t},J=t=>t.axes[0].needle?.displayPin??!1,K=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=l()),e.axes[0].needle.displayPin=t},Q=t=>t.axes[0].innerLabel?.visible??!0,U=(t,e)=>{e.axes[0].innerLabel===void 0&&(e.axes[0].innerLabel=p()),e.axes[0].innerLabel.visible=t},X=t=>t.axes[0].innerLabel?.content,Y=(t,e)=>{e.axes[0].innerLabel===void 0&&(e.axes[0].innerLabel=p()),t!==void 0&&(e.axes[0].innerLabel.content=t)},Z=t=>t.axes[0].progressBands?.visible??!0,ee=(t,e)=>{e.axes[0].progressBands===void 0&&(e.axes[0].progressBands={type:c.FixedProgressBands}),e.axes[0].progressBands.visible=t},te=t=>t.axes[0].progressBands,se=(t,e)=>{t===void 0?delete e.axes[0].progressBands:e.axes[0].progressBands=t},ne=t=>t.axes[0].ticks?.visible??!0,ie=(t,e)=>{e.axes[0].ticks===void 0&&(e.axes[0].ticks={type:c.GaugeAxisTick}),e.axes[0].ticks.visible=t},re=t=>t.axes[0].labelsIncrement,oe=(t,e)=>{e.axes[0].labelsIncrement=t},ae=t=>t.axes[0].onlyShowFirstAndLastLabels??!1,ge=(t,e)=>{e.axes[0].onlyShowFirstAndLastLabels=t},le=t=>t.series[0]?.valueConversion,de=(t,e)=>{e.series[0]!==void 0&&(e.series[0].valueConversion=t)},k=t=>t.series[0]?.featureIndex,R=t=>{let{featureIndex:e,config:s,layerInfo:a,commonStrings:o}=t,g=x(s),d=u(s);e===null?delete s.series[0].featureIndex:s.series[0]!==void 0&&(s.series[0].featureIndex=e),y({config:s,layerInfo:a,field:g,aggregationType:d,commonStrings:o})},ce=t=>t.subType??b.StatisticGauge,fe=t=>{let{config:e,field:s,aggregationType:a}=t;if(a!==f.NoAggregation){let o=k(e),g=m(o)?{}:{outStatistics:[{statisticType:a,onStatisticField:s,outStatisticFieldName:`${a}_${s}`}]};e.series[0].query=g}},pe=t=>{let{config:e,layerInfo:s,commonStrings:a,field:o,aggregationType:g}=t;e.title&&(e.title.content.text=C({config:e,layerInfo:s,commonStrings:a,numericFields:[o],aggregationType:g}))},y=t=>{let{config:e,field:s,aggregationType:a}=t;e.series[0]===void 0&&(e.series=[h({})]);let o=m(e.series[0]?.featureIndex),g=o?s:`${a}_${s}`;o&&s.startsWith(`${a}_`)&&(g=s.replace(`${a}_`,"")),e.series[0].x=g,fe({config:e,field:s,aggregationType:a}),pe(t)},u=t=>t.series[0]?.query?.outStatistics?.[0]?.statisticType??f.Count,he=t=>{let{config:e,layerInfo:s,commonStrings:a,aggregationType:o}=t,g=x(e);y({config:e,layerInfo:s,commonStrings:a,field:g,aggregationType:o})},m=t=>typeof t=="number"&&t>=0,x=t=>m(t.series[0]?.featureIndex)?t.series[0]?.x:t.series[0]?.query?.outStatistics?.[0]?.onStatisticField??"",ye=t=>{let{field:e,config:s,layerInfo:a,commonStrings:o}=t,g=u(s);y({config:s,layerInfo:a,commonStrings:o,field:e,aggregationType:g})},ue=t=>t.innerRadius??50,me=(t,e)=>{e.innerRadius=t},xe=t=>t.startAngle??-90,be=(t,e)=>{e.startAngle=t},ve=t=>t.endAngle??270,_e=(t,e)=>{e.endAngle=t};function Se(t){return v(t)}var Ie=Object.defineProperty,Ce=Object.getOwnPropertyDescriptor,r=(t,e,s,a)=>{for(var o=Ce(e,s),g=t.length-1,d;g>=0;g--)(d=t[g])&&(o=d(e,s,o)||o);return o&&Ie(e,s,o),o},n=class extends L{constructor(){super(...arguments),this._chartType=c.GaugeSeries}generateChartTitle(){return Se(this.commonStrings)}async setup(e){await this.loadConfigFromLayer(e),typeof this.resolveSetup=="function"&&this.resolveSetup()}get field(){return x(this._config)}set field(e){ye({field:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get aggregationType(){return u(this._config)}set aggregationType(e){he({aggregationType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get innerRadius(){return ue(this._config)}set innerRadius(e){me(e,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get startAngle(){return xe(this._config)}set startAngle(e){be(e,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get endAngle(){return ve(this._config)}set endAngle(e){_e(e,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get valueConversion(){return le(this._config)}set valueConversion(e){de(e,this._config)}get featureIndex(){return k(this._config)}set featureIndex(e){R({featureIndex:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}removeFeatureIndex(){R({featureIndex:null,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}get gaugeSubType(){return ce(this._config)}get needleVisibility(){return M(this._config)}set needleVisibility(e){P(e,this._config)}get needleSymbol(){return $(this._config)}set needleSymbol(e){G(e,this._config)}get needleStartWidth(){return j(this._config)}set needleStartWidth(e){q(e,this._config)}get needleEndWidth(){return O(this._config)}set needleEndWidth(e){N(e,this._config)}get needleInnerRadius(){return z(this._config)}set needleInnerRadius(e){H(e,this._config)}get needleDisplayPin(){return J(this._config)}set needleDisplayPin(e){K(e,this._config)}get innerLabelVisible(){return Q(this._config)}set innerLabelVisible(e){U(e,this._config)}get innerLabelContent(){return X(this._config)}set innerLabelContent(e){Y(e,this._config)}get progressBandsVisibility(){return Z(this._config)}set progressBandsVisibility(e){ee(e,this._config)}get progressBands(){return te(this._config)}set progressBands(e){se(e,this._config)}get axisTickVisibility(){return ne(this._config)}set axisTickVisibility(e){ie(e,this._config)}get labelsIncrement(){return re(this._config)}set labelsIncrement(e){oe(e,this._config)}get onlyShowFirstAndLastLabels(){return ae(this._config)}set onlyShowFirstAndLastLabels(e){ge(e,this._config)}generateDefaultConfig(){let e=_(this.commonStrings);return e.series=[h({objectIDField:I(this.layerInfo.layer).idField})],e}};r([i],n.prototype,"field");r([i],n.prototype,"aggregationType");r([i],n.prototype,"innerRadius");r([i],n.prototype,"startAngle");r([i],n.prototype,"endAngle");r([i],n.prototype,"valueConversion");r([i],n.prototype,"featureIndex");r([i],n.prototype,"removeFeatureIndex");r([i],n.prototype,"needleVisibility");r([i],n.prototype,"needleSymbol");r([i],n.prototype,"needleStartWidth");r([i],n.prototype,"needleEndWidth");r([i],n.prototype,"needleInnerRadius");r([i],n.prototype,"needleDisplayPin");r([i],n.prototype,"innerLabelVisible");r([i],n.prototype,"innerLabelContent");r([i],n.prototype,"progressBandsVisibility");r([i],n.prototype,"progressBands");r([i],n.prototype,"axisTickVisibility");r([i],n.prototype,"labelsIncrement");r([i],n.prototype,"onlyShowFirstAndLastLabels");var Le=[w,T,V,A,F,E,W,D,B];S(n,Le);return n},a,d,e,g,i,j,k,m,n,o)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a as $}from"./IVX5JR6I.js";import{a as P}from"./GSCC3FON.js";import c from"./UKXRSJI4.js";import"./5AKOPV7Z.js";import{a as z}from"./YOVZ4RVH.js";import a from"./XZHXK4OO.js";import{Ea as y,o as I}from"./XXO5K6N4.js";import{f as k}from"./WKF53DYD.js";import{e as _,k as b,q as G}from"./OZSOICXE.js";import"./KXU3XKM2.js";import{A as g,B as x,C as s,D as p,F as S,H as N,g as T,i as d,k as E,z as m}from"./IYVGK242.js";import{f as h}from"./FHN6CIIO.js";import"./AUKJ4CBR.js";import"./BNAX4Y53.js";import"./TIWCUJOG.js";export default $arcgis.t(([,{a:v,g:u,r:M}])=>{var a={sectionLabel:"section-label",label:"label",sliceList:"slice-list",radioGroup:"radio-group",pieDonutLabelsContainer:"pie-donut-labels-container",sliderInputContainer:"slider-input-container",groupingLabelContainer:"grouping-label-container",numberInput:"number-input"},D=T`.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)}.section-label{display:flex;margin:var(--arcgis-charts-config-margin-major) 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)}.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}.label .grouping-label-container{display:flex;justify-content:space-between}.label .slider-input-container calcite-slider{--calcite-label-margin-bottom: var(--arcgis-charts-intra-section-margin) !important;margin-right:var(--arcgis-charts-config-margin-minor);flex-grow:1}.label .slider-input-container .number-input{width:8rem}.label .slider-input-container{display:flex}.slice-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)}.radio-group{margin-top:var(--arcgis-charts-config-margin-minor)}.pie-donut-labels-container{display:flex;justify-content:space-between;margin-top:calc(var(--arcgis-charts-config-margin-minor) * -3)}`,L=class extends x{constructor(){super(...arguments),this._messages=z(),this.slicesPopover=null,this.donutSizeSliderElement=m(),this.groupingThresholdElement=m(),this.groupingThresholdSliderElement=m(),this.labelCharacterLimitElement=m(),this.decimalPlacesElement=m(),this.open=!1,this.onDonutSizeSliderChange=b(()=>{this.donutSizeSliderElement.value&&Number.isInteger(this.donutSizeSliderElement.value?.value)&&(this.model.innerRadius=this.donutSizeSliderElement.value.value??y)},v.SliderTimer),this.onGroupingThresholdSliderChange=b(()=>{let e=this.groupingThresholdSliderElement.value?.value;e!==void 0&&!Number.isNaN(e)?(this.groupingThresholdElement?.value&&(this.groupingThresholdElement.value.value=e.toString()),this.groupingThresholdSliderElement.value&&(this.groupingThresholdSliderElement.value.value=e),this.model.groupingThreshold=e):this.model.groupingThreshold=0},v.SliderTimer),this.sliceNameChange=e=>{if(e.detail!==null||e.detail!==void 0){let i=e.detail?.name,l=this.model.slices?.findIndex(r=>r.sliceId===this.selectedSliceId),t=this.model.sliceGrouping;l!=null&&l>=0?this.model.setSliceName(i,l):t?.sliceId===this.selectedSliceId&&t!==void 0&&(this.model.sliceGrouping={...t,label:i})}},this.sliceColorChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{color:i}=e.detail,l=this.model.slices?.findIndex(r=>r.sliceId===this.selectedSliceId),t=this.model.sliceGrouping;l!=null&&l>=0?(this.model.colorMatch=!1,this.model.setSliceColor(i,l)):t?.sliceId===this.selectedSliceId&&t!==void 0&&(this.model.colorMatch=!1,this.model.sliceGrouping={...t,fillSymbol:{...t.fillSymbol,type:k.SFS,color:i}})}},this.slicesPopoverClose=e=>{let{selectedSliceId:i}=e.detail;i===this.selectedSliceId&&(this.selectedSliceId=void 0,this.slicesPopover=P(this.slicesPopover))},this.onModelConfigChange=()=>{this.requestUpdate()},this.onGroupingThresholdChange=b(()=>{let e=this.groupingThresholdElement.value?.value??"",i=Number.parseInt(e);i>100?i=100:i<0&&(i=0),Number.isNaN(i)?this.model.groupingThreshold=0:(this.groupingThresholdElement?.value&&(this.groupingThresholdElement.value.value=i.toString()),this.model.groupingThreshold=i,this.groupingThresholdSliderElement.value&&(this.groupingThresholdSliderElement.value.value=i))},v.DebounceTimer),this.popoverPlacement="leading"}static{this.properties={selectedSliceId:16,messageOverrides:0,model:0,popoverPlacement:1,chartData:0}}static{this.styles=D}load(){this.modelChange(this.model),this.onModelConfigChange()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("selectedSliceId")&&this.selectedSliceIdChange()}disconnectedCallback(){super.disconnectedCallback(),this.removeSlicesPopover(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,i){i?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}selectedSliceIdChange(){if(!G(this.selectedSliceId)){let e=this.model.slices,i=this.model.sliceGrouping,l,t;if(this.selectedSliceId===i?.sliceId)l=i?.label,t=i?.fillSymbol?.color;else if(e!==void 0){let r=e.findIndex(n=>n.sliceId===this.selectedSliceId);l=this.model.getSliceName(r),t=this.model.getSliceColor(r)}this.slicesPopover=S(d`<arcgis-charts-config-pie-chart-slices-popover .referenceElement=${this.el} .placement=${this.popoverPlacement} .open=${this.open} .selectedSliceId=${this.selectedSliceId} .selectedName=${l} .selectedColor=${t} @arcgisChartsConfigSlicesPopoverColorChange=${this.sliceColorChange} @arcgisChartsConfigSlicesPopoverNameChange=${this.sliceNameChange} @arcgisChartsConfigPopoverClose=${this.slicesPopoverClose}></arcgis-charts-config-pie-chart-slices-popover>`),this.slicesPopover&&!document.body.contains(this.slicesPopover)&&document.body.appendChild(this.slicesPopover)}}removeSlicesPopover(){this.slicesPopover!==void 0&&this.slicesPopover!==null&&(this.slicesPopover.open=!1,this.slicesPopover.selectedName=void 0,this.slicesPopover.selectedColor=void 0,this.slicesPopover=P(this.slicesPopover))}buildSliceListItem(){let e="#CCCCCC",i="minus-square",l=[],t=this.model.slices,r=this.chartData?.dataItems;r&&(t=t?.filter(o=>r?.findIndex(c=>c.arcgis_charts_slice_id===o.sliceId)!==-1)),t?.forEach(o=>{if(o.fillSymbol?.color!==void 0){i="square-f";let[c,f,C,w]=[...o.fillSymbol.color];e=`rgba(${c},${f},${C},${w/255})`}if(o!==void 0&&!this.model.groupedSliceIds.includes(o.sliceId)){let c=o.sliceId;c===I.emptySliceId?c=this._messages.emptySlice??"":c===I.nullSliceId&&(c=this._messages.nullSlice??""),l?.push($(o.sliceId,d`<calcite-list-item .label=${o.label??o.sliceId} .description=${c} .value=${o.sliceId} .selected=${this.selectedSliceId===o.sliceId} @click=${this.openSlicesPopover}><calcite-icon slot=content-end .icon=${i} style=${p({color:e})}></calcite-icon></calcite-list-item>`))}});let n=this.model.sliceGrouping;if(n?.fillSymbol?.color!==void 0){i="square-f";let[o,c,f,C]=[...n.fillSymbol.color];e=`rgba(${o},${c},${f},${C/255})`}return this.model.groupedSliceIds.length>0&&l?.push($(n?.sliceId,d`<calcite-list-item .label=${n?.label??n?.sliceId??""} .description=${this._messages.groupedSlices} .value=${n?.sliceId??""} .selected=${this.selectedSliceId===n?.sliceId} @click=${this.openSlicesPopover}><calcite-icon slot=content-end .icon=${i} style=${p({color:e})}></calcite-icon></calcite-list-item>`)),l}buildGroupedSlicesListItem(){let e="#CCCCCC",i="minus-square",l=[];return this.model.slices?.forEach(t=>{if(t.fillSymbol?.color!==void 0){i="square-f";let[r,n,o,c]=[...t.fillSymbol.color];e=`rgba(${r},${n},${o},${c/255})`}t!==void 0&&this.model.groupedSliceIds.includes(t.sliceId)&&l?.push($(t.sliceId,d`<calcite-list-item .label=${t.label??t.sliceId} .description=${t.sliceId} .value=${t.sliceId} .selected=${this.selectedSliceId===t.sliceId} @click=${this.openSlicesPopover}><calcite-icon slot=content-end .icon=${i} style=${p({color:e})}></calcite-icon></calcite-list-item>`))}),l}buildSliceList(){return d`<calcite-list .label=${this._messages.slices??""} class=${s(a.sliceList)} selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildSliceListItem()}</calcite-list>`}buildGroupedSliceList(){return d`<calcite-list .label=${this._messages.groupedSlices??""} class=${s(a.sliceList)} selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildGroupedSlicesListItem()}</calcite-list>`}onLabelCharacterLimitChange(e){let i=e.target.value,l=Number.parseInt(i);l<1&&(l=1),Number.isNaN(l)?this.model.labelCharacterLimit=null:(this.labelCharacterLimitElement.value&&(this.labelCharacterLimitElement.value.value=l.toString()),this.model.labelCharacterLimit=l)}onDecimalPlacesChange(e){let i=e.target.value,l=Number.parseInt(i);l<0?l=0:l>20&&(l=20),Number.isNaN(l)?this.model.decimalPlaces=0:(this.decimalPlacesElement.value&&(this.decimalPlacesElement.value.value=l.toString()),this.model.decimalPlaces=l)}onDisplayTypeChange(e){let i=e.target.selectedItem;this.model.displayType=i?.value}resetSlicesOriginal(){this.selectedSliceId=void 0,this.model.colorMatch=!0,this.model.resetSlices()}onCalciteListOrderChange(e){if(e.detail!==null&&e.detail!==void 0){let{newIndex:i,oldIndex:l}=e.detail;this.model.moveSeries(l??0,i??l??0)}}openSlicesPopover(e){e.stopImmediatePropagation(),this.removeSlicesPopover();let i=e.target,l=i.localName==="calcite-list-item"?i:i.parentNode;l.value===this.model.sliceGrouping?.sliceId?this.selectedSliceId=this.model.sliceGrouping?.sliceId:this.selectedSliceId=l.value,this.open=!0}createTooltip(e){let i=e.currentTarget;this.tooltip=S(d`<calcite-tooltip style=${p({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${i} open placement=top .innerHTML=${this._messages.groupingInfo??""??""}></calcite-tooltip>`),document.body.appendChild(this.tooltip)}destroyTooltip(){M(this.tooltip)}render(){return d`<div class=${s(a.sectionLabel)}>${this._messages.settings}</div><calcite-label class=${s(a.label)}>${this._messages.shape}<calcite-slider min=0 max=100 step=1 snap .value=${this.model.innerRadius??y} @calciteSliderChange=${this.onDonutSizeSliderChange} ${g(this.donutSizeSliderElement)}></calcite-slider></calcite-label><div class=${s(a.pieDonutLabelsContainer)}><calcite-label class=${s(a.label)}>${this._messages.pie}</calcite-label><calcite-label class=${s(a.label)}>${this._messages.donut}</calcite-label></div><calcite-label class=${s(a.label)}><div class=${s(a.groupingLabelContainer)}><div>${this._messages.groupingPercent}</div><calcite-icon icon=information scale=s flip-rtl role=img tabindex=0 aria-label=${this._messages.groupingInfo??""??E} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} @focus=${this.createTooltip} @blur=${this.destroyTooltip}></calcite-icon></div><div class=${s(a.sliderInputContainer)}><calcite-slider min=0 max=100 step=1 snap .value=${_(u(this.model.groupingThreshold??0))} @calciteSliderChange=${this.onGroupingThresholdSliderChange} ${g(this.groupingThresholdSliderElement)}></calcite-slider><calcite-input class=${s(a.numberInput)} type=number min=0 max=100 step=1 suffix-text=% .value=${u(this.model.groupingThreshold??0)} @calciteInputInput=${this.onGroupingThresholdChange} @click=${e=>{e.stopPropagation()}} ${g(this.groupingThresholdElement)}></calcite-input></div></calcite-label><div class=${s(a.sectionLabel)}>${this._messages.labels}</div><calcite-label class=${s(a.label)}>${this._messages.labelCharacterLimit}<calcite-input type=number min=1 step=1 .value=${u(this.model.labelCharacterLimit)} @calciteInputInput=${this.onLabelCharacterLimitChange} ${g(this.labelCharacterLimitElement)}></calcite-input></calcite-label><calcite-label class=${s(a.label)}>${this._messages.decimalPlaces}<calcite-input type=number min=0 max=20 step=1 .value=${u(this.model.decimalPlaces)} @calciteInputInput=${this.onDecimalPlacesChange} ${g(this.decimalPlacesElement)}></calcite-input></calcite-label><calcite-label class=${s(a.label)}>${this._messages.display}<calcite-radio-button-group class=${s(a.radioGroup)} name=display layout=vertical @calciteRadioButtonGroupChange=${this.onDisplayTypeChange}><calcite-label layout=inline><calcite-radio-button .value=${h.Value} .checked=${this.model.displayType===h.Value}></calcite-radio-button>${this._messages.value}</calcite-label><calcite-label layout=inline><calcite-radio-button .value=${h.Percentage} .checked=${this.model.displayType===h.Percentage}></calcite-radio-button>${this._messages.percentage}</calcite-label><calcite-label layout=inline><calcite-radio-button .value=${h.Both} .checked=${this.model.displayType===h.Both}></calcite-radio-button>${this._messages.both}</calcite-label></calcite-radio-button-group></calcite-label><div class=${s(a.sectionLabel)}>${this._messages.slices}<calcite-button @click=${this.resetSlicesOriginal} .disabled=${!this.model.resetAvailable()} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button></div>${this.buildSliceList()}<div class=${s(a.sectionLabel)}>${this._messages.groupedSlices}</div>${this.buildGroupedSliceList()}`}};N("arcgis-charts-config-pie-chart-slices",L);return L},a,c)
|
|
2
|
+
import{a as $}from"./IVX5JR6I.js";import{a as P}from"./UNFDJW5A.js";import c from"./N35DJP7H.js";import"./5AKOPV7Z.js";import{a as z}from"./YOVZ4RVH.js";import a from"./DHXZKTF6.js";import{Ea as y,o as I}from"./XXO5K6N4.js";import{f as k}from"./WKF53DYD.js";import{d as _,j as b,q as G}from"./NX3KK4IQ.js";import"./KXU3XKM2.js";import{A as g,B as x,C as s,D as p,F as S,H as N,g as T,i as d,k as E,z as m}from"./IYVGK242.js";import{f as h}from"./FHN6CIIO.js";import"./AUKJ4CBR.js";import"./BNAX4Y53.js";import"./TIWCUJOG.js";export default $arcgis.t(([,{a:v,g:u,r:M}])=>{var a={sectionLabel:"section-label",label:"label",sliceList:"slice-list",radioGroup:"radio-group",pieDonutLabelsContainer:"pie-donut-labels-container",sliderInputContainer:"slider-input-container",groupingLabelContainer:"grouping-label-container",numberInput:"number-input"},D=T`.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)}.section-label{display:flex;margin:var(--arcgis-charts-config-margin-major) 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)}.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}.label .grouping-label-container{display:flex;justify-content:space-between}.label .slider-input-container calcite-slider{--calcite-label-margin-bottom: var(--arcgis-charts-intra-section-margin) !important;margin-right:var(--arcgis-charts-config-margin-minor);flex-grow:1}.label .slider-input-container .number-input{width:8rem}.label .slider-input-container{display:flex}.slice-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)}.radio-group{margin-top:var(--arcgis-charts-config-margin-minor)}.pie-donut-labels-container{display:flex;justify-content:space-between;margin-top:calc(var(--arcgis-charts-config-margin-minor) * -3)}`,L=class extends x{constructor(){super(...arguments),this._messages=z(),this.slicesPopover=null,this.donutSizeSliderElement=m(),this.groupingThresholdElement=m(),this.groupingThresholdSliderElement=m(),this.labelCharacterLimitElement=m(),this.decimalPlacesElement=m(),this.open=!1,this.onDonutSizeSliderChange=b(()=>{this.donutSizeSliderElement.value&&Number.isInteger(this.donutSizeSliderElement.value?.value)&&(this.model.innerRadius=this.donutSizeSliderElement.value.value??y)},v.SliderTimer),this.onGroupingThresholdSliderChange=b(()=>{let e=this.groupingThresholdSliderElement.value?.value;e!==void 0&&!Number.isNaN(e)?(this.groupingThresholdElement?.value&&(this.groupingThresholdElement.value.value=e.toString()),this.groupingThresholdSliderElement.value&&(this.groupingThresholdSliderElement.value.value=e),this.model.groupingThreshold=e):this.model.groupingThreshold=0},v.SliderTimer),this.sliceNameChange=e=>{if(e.detail!==null||e.detail!==void 0){let i=e.detail?.name,l=this.model.slices?.findIndex(r=>r.sliceId===this.selectedSliceId),t=this.model.sliceGrouping;l!=null&&l>=0?this.model.setSliceName(i,l):t?.sliceId===this.selectedSliceId&&t!==void 0&&(this.model.sliceGrouping={...t,label:i})}},this.sliceColorChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{color:i}=e.detail,l=this.model.slices?.findIndex(r=>r.sliceId===this.selectedSliceId),t=this.model.sliceGrouping;l!=null&&l>=0?(this.model.colorMatch=!1,this.model.setSliceColor(i,l)):t?.sliceId===this.selectedSliceId&&t!==void 0&&(this.model.colorMatch=!1,this.model.sliceGrouping={...t,fillSymbol:{...t.fillSymbol,type:k.SFS,color:i}})}},this.slicesPopoverClose=e=>{let{selectedSliceId:i}=e.detail;i===this.selectedSliceId&&(this.selectedSliceId=void 0,this.slicesPopover=P(this.slicesPopover))},this.onModelConfigChange=()=>{this.requestUpdate()},this.onGroupingThresholdChange=b(()=>{let e=this.groupingThresholdElement.value?.value??"",i=Number.parseInt(e);i>100?i=100:i<0&&(i=0),Number.isNaN(i)?this.model.groupingThreshold=0:(this.groupingThresholdElement?.value&&(this.groupingThresholdElement.value.value=i.toString()),this.model.groupingThreshold=i,this.groupingThresholdSliderElement.value&&(this.groupingThresholdSliderElement.value.value=i))},v.DebounceTimer),this.popoverPlacement="leading"}static{this.properties={selectedSliceId:16,messageOverrides:0,model:0,popoverPlacement:1,chartData:0}}static{this.styles=D}load(){this.modelChange(this.model),this.onModelConfigChange()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("selectedSliceId")&&this.selectedSliceIdChange()}disconnectedCallback(){super.disconnectedCallback(),this.removeSlicesPopover(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,i){i?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}selectedSliceIdChange(){if(!G(this.selectedSliceId)){let e=this.model.slices,i=this.model.sliceGrouping,l,t;if(this.selectedSliceId===i?.sliceId)l=i?.label,t=i?.fillSymbol?.color;else if(e!==void 0){let r=e.findIndex(n=>n.sliceId===this.selectedSliceId);l=this.model.getSliceName(r),t=this.model.getSliceColor(r)}this.slicesPopover=S(d`<arcgis-charts-config-pie-chart-slices-popover .referenceElement=${this.el} .placement=${this.popoverPlacement} .open=${this.open} .selectedSliceId=${this.selectedSliceId} .selectedName=${l} .selectedColor=${t} @arcgisChartsConfigSlicesPopoverColorChange=${this.sliceColorChange} @arcgisChartsConfigSlicesPopoverNameChange=${this.sliceNameChange} @arcgisChartsConfigPopoverClose=${this.slicesPopoverClose}></arcgis-charts-config-pie-chart-slices-popover>`),this.slicesPopover&&!document.body.contains(this.slicesPopover)&&document.body.appendChild(this.slicesPopover)}}removeSlicesPopover(){this.slicesPopover!==void 0&&this.slicesPopover!==null&&(this.slicesPopover.open=!1,this.slicesPopover.selectedName=void 0,this.slicesPopover.selectedColor=void 0,this.slicesPopover=P(this.slicesPopover))}buildSliceListItem(){let e="#CCCCCC",i="minus-square",l=[],t=this.model.slices,r=this.chartData?.dataItems;r&&(t=t?.filter(o=>r?.findIndex(c=>c.arcgis_charts_slice_id===o.sliceId)!==-1)),t?.forEach(o=>{if(o.fillSymbol?.color!==void 0){i="square-f";let[c,f,C,w]=[...o.fillSymbol.color];e=`rgba(${c},${f},${C},${w/255})`}if(o!==void 0&&!this.model.groupedSliceIds.includes(o.sliceId)){let c=o.sliceId;c===I.emptySliceId?c=this._messages.emptySlice??"":c===I.nullSliceId&&(c=this._messages.nullSlice??""),l?.push($(o.sliceId,d`<calcite-list-item .label=${o.label??o.sliceId} .description=${c} .value=${o.sliceId} .selected=${this.selectedSliceId===o.sliceId} @click=${this.openSlicesPopover}><calcite-icon slot=content-end .icon=${i} style=${p({color:e})}></calcite-icon></calcite-list-item>`))}});let n=this.model.sliceGrouping;if(n?.fillSymbol?.color!==void 0){i="square-f";let[o,c,f,C]=[...n.fillSymbol.color];e=`rgba(${o},${c},${f},${C/255})`}return this.model.groupedSliceIds.length>0&&l?.push($(n?.sliceId,d`<calcite-list-item .label=${n?.label??n?.sliceId??""} .description=${this._messages.groupedSlices} .value=${n?.sliceId??""} .selected=${this.selectedSliceId===n?.sliceId} @click=${this.openSlicesPopover}><calcite-icon slot=content-end .icon=${i} style=${p({color:e})}></calcite-icon></calcite-list-item>`)),l}buildGroupedSlicesListItem(){let e="#CCCCCC",i="minus-square",l=[];return this.model.slices?.forEach(t=>{if(t.fillSymbol?.color!==void 0){i="square-f";let[r,n,o,c]=[...t.fillSymbol.color];e=`rgba(${r},${n},${o},${c/255})`}t!==void 0&&this.model.groupedSliceIds.includes(t.sliceId)&&l?.push($(t.sliceId,d`<calcite-list-item .label=${t.label??t.sliceId} .description=${t.sliceId} .value=${t.sliceId} .selected=${this.selectedSliceId===t.sliceId} @click=${this.openSlicesPopover}><calcite-icon slot=content-end .icon=${i} style=${p({color:e})}></calcite-icon></calcite-list-item>`))}),l}buildSliceList(){return d`<calcite-list .label=${this._messages.slices??""} class=${s(a.sliceList)} selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildSliceListItem()}</calcite-list>`}buildGroupedSliceList(){return d`<calcite-list .label=${this._messages.groupedSlices??""} class=${s(a.sliceList)} selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildGroupedSlicesListItem()}</calcite-list>`}onLabelCharacterLimitChange(e){let i=e.target.value,l=Number.parseInt(i);l<1&&(l=1),Number.isNaN(l)?this.model.labelCharacterLimit=null:(this.labelCharacterLimitElement.value&&(this.labelCharacterLimitElement.value.value=l.toString()),this.model.labelCharacterLimit=l)}onDecimalPlacesChange(e){let i=e.target.value,l=Number.parseInt(i);l<0?l=0:l>20&&(l=20),Number.isNaN(l)?this.model.decimalPlaces=0:(this.decimalPlacesElement.value&&(this.decimalPlacesElement.value.value=l.toString()),this.model.decimalPlaces=l)}onDisplayTypeChange(e){let i=e.target.selectedItem;this.model.displayType=i?.value}resetSlicesOriginal(){this.selectedSliceId=void 0,this.model.colorMatch=!0,this.model.resetSlices()}onCalciteListOrderChange(e){if(e.detail!==null&&e.detail!==void 0){let{newIndex:i,oldIndex:l}=e.detail;this.model.moveSeries(l??0,i??l??0)}}openSlicesPopover(e){e.stopImmediatePropagation(),this.removeSlicesPopover();let i=e.target,l=i.localName==="calcite-list-item"?i:i.parentNode;l.value===this.model.sliceGrouping?.sliceId?this.selectedSliceId=this.model.sliceGrouping?.sliceId:this.selectedSliceId=l.value,this.open=!0}createTooltip(e){let i=e.currentTarget;this.tooltip=S(d`<calcite-tooltip style=${p({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${i} open placement=top .innerHTML=${this._messages.groupingInfo??""??""}></calcite-tooltip>`),document.body.appendChild(this.tooltip)}destroyTooltip(){M(this.tooltip)}render(){return d`<div class=${s(a.sectionLabel)}>${this._messages.settings}</div><calcite-label class=${s(a.label)}>${this._messages.shape}<calcite-slider min=0 max=100 step=1 snap .value=${this.model.innerRadius??y} @calciteSliderChange=${this.onDonutSizeSliderChange} ${g(this.donutSizeSliderElement)}></calcite-slider></calcite-label><div class=${s(a.pieDonutLabelsContainer)}><calcite-label class=${s(a.label)}>${this._messages.pie}</calcite-label><calcite-label class=${s(a.label)}>${this._messages.donut}</calcite-label></div><calcite-label class=${s(a.label)}><div class=${s(a.groupingLabelContainer)}><div>${this._messages.groupingPercent}</div><calcite-icon icon=information scale=s flip-rtl role=img tabindex=0 aria-label=${this._messages.groupingInfo??""??E} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} @focus=${this.createTooltip} @blur=${this.destroyTooltip}></calcite-icon></div><div class=${s(a.sliderInputContainer)}><calcite-slider min=0 max=100 step=1 snap .value=${_(u(this.model.groupingThreshold??0))} @calciteSliderChange=${this.onGroupingThresholdSliderChange} ${g(this.groupingThresholdSliderElement)}></calcite-slider><calcite-input class=${s(a.numberInput)} type=number min=0 max=100 step=1 suffix-text=% .value=${u(this.model.groupingThreshold??0)} @calciteInputInput=${this.onGroupingThresholdChange} @click=${e=>{e.stopPropagation()}} ${g(this.groupingThresholdElement)}></calcite-input></div></calcite-label><div class=${s(a.sectionLabel)}>${this._messages.labels}</div><calcite-label class=${s(a.label)}>${this._messages.labelCharacterLimit}<calcite-input type=number min=1 step=1 .value=${u(this.model.labelCharacterLimit)} @calciteInputInput=${this.onLabelCharacterLimitChange} ${g(this.labelCharacterLimitElement)}></calcite-input></calcite-label><calcite-label class=${s(a.label)}>${this._messages.decimalPlaces}<calcite-input type=number min=0 max=20 step=1 .value=${u(this.model.decimalPlaces)} @calciteInputInput=${this.onDecimalPlacesChange} ${g(this.decimalPlacesElement)}></calcite-input></calcite-label><calcite-label class=${s(a.label)}>${this._messages.display}<calcite-radio-button-group class=${s(a.radioGroup)} name=display layout=vertical @calciteRadioButtonGroupChange=${this.onDisplayTypeChange}><calcite-label layout=inline><calcite-radio-button .value=${h.Value} .checked=${this.model.displayType===h.Value}></calcite-radio-button>${this._messages.value}</calcite-label><calcite-label layout=inline><calcite-radio-button .value=${h.Percentage} .checked=${this.model.displayType===h.Percentage}></calcite-radio-button>${this._messages.percentage}</calcite-label><calcite-label layout=inline><calcite-radio-button .value=${h.Both} .checked=${this.model.displayType===h.Both}></calcite-radio-button>${this._messages.both}</calcite-label></calcite-radio-button-group></calcite-label><div class=${s(a.sectionLabel)}>${this._messages.slices}<calcite-button @click=${this.resetSlicesOriginal} .disabled=${!this.model.resetAvailable()} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button></div>${this.buildSliceList()}<div class=${s(a.sectionLabel)}>${this._messages.groupedSlices}</div>${this.buildGroupedSliceList()}`}};N("arcgis-charts-config-pie-chart-slices",L);return L},a,c)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import r from"./P4GYZ2NE.js";import q from"./RFMXU2H7.js";import o from"./RANMZVK2.js";import n from"./F6MI4LEQ.js";import l from"./BIU5DASA.js";import j from"./GZ3YHHLB.js";import i from"./YGV6VUSU.js";import h from"./U4N3E77G.js";import g from"./SNL33CT7.js";import f from"./LQFQARDL.js";import e from"./3BHGMUPM.js";import d from"./O2NYEOQ6.js";import c from"./2OZON66K.js";import b from"./Q4EFECTX.js";import a from"./XZHXK4OO.js";import{M as D,O as w,V as k,_ as P,ea as R}from"./XXO5K6N4.js";import{b as x}from"./OZSOICXE.js";import{a as W}from"./FHN6CIIO.js";import{c as B}from"./AUKJ4CBR.js";import{a as p,b as m,f as F}from"./BNAX4Y53.js";export default $arcgis.t(([{Bc:U,Ia:I,Ka:C,Q:y,Vb:V,Wb:E,Xb:N,Yb:M},{e:o},{c:j,d:T,f:v},O,{b:xe,d:Fe,f:Be},{b:ue,d:Se,f:_e},{d:me,e:pe},de,{d:Y},{b:Ie},{a:le,b:ge,c:ce,d:he},{a:ye,b:fe},{d:A,e:f,f:z},{b:Ce},{a:q,b:K,c:G,d:H,e:J,f:Q,g:X,h:Z,i:$,j:ee,k:ie,m:te,ma:se,na:d,oa:re,pa:u,qa:S,ra:oe,sa:_,ua:b,va:L,wa:ne,xa:ae}])=>{var Te=(s,e)=>e.series?.[s].assignToSecondValueAxis??!1,ve=s=>{let{assign:e,seriesIndex:i,config:t,commonStrings:r}=s;e&&t.axes!==void 0&&!t.axes?.[2]&&(t.axes[2]=P(r,p.BarSeries)[1]),t.series&&t.series.forEach((l,c)=>{c===i?l.assignToSecondValueAxis=e:c!==i&&l?.assignToSecondValueAxis!==!0&&(l.assignToSecondValueAxis=!1)}),t.axes?.[2]&&!t.series.some(l=>l.assignToSecondValueAxis)&&t.axes.splice(2,1)},Ae=(s,e)=>e.series?.[s]?.name,be=(s,e,i)=>{i.series?.[e]&&(i.series[e].name=s)},Le=(s,e)=>{let i=e.series?.[s],t;return C(i)?t=i.fillSymbol?.color:I(i)&&(t=i.lineSymbol?.color),t},Oe=(s,e,i)=>{let t=i.series?.[e];t&&(C(t)?t.fillSymbol={...R(e),...t.fillSymbol,color:s}:I(t)&&(t.lineSymbol={...k(e),...t.lineSymbol,color:s}))},De=s=>s.series.map(e=>e.id),we=(s,e)=>{e.series?.sort((i,t)=>s.findIndex(r=>i.id===r)-s.findIndex(r=>t.id===r))},ke=s=>s.stackedType??F.Side,Pe=s=>{let{newStackedType:e,config:i,layerInfo:t,commonStrings:r}=s;if(i.stackedType=e,t!==void 0){let l=T({config:i,layerInfo:t,commonStrings:r,numericFields:u(i),aggregationType:d(i)});j(i,1,l)}i.axes?.[1]&&(e===F.Stacked100?i.axes[1].valueFormat=w():i.axes[1].valueFormat=D()),v({config:i,value:null,axisIndex:1,isMax:!1}),v({config:i,value:null,axisIndex:1,isMax:!0})},Re=s=>{let e={};return s.series.forEach(i=>{B(i)&&"nullCategory"in i&&i.nullCategory!==void 0&&(e.text??=i.nullCategory.text,i.type===p.BarSeries?e.fillSymbol??=i.nullCategory.fillSymbol:e.markerSymbol??=i.nullCategory.markerSymbol)}),e.text||e.fillSymbol||e.markerSymbol?e:void 0},Ve=(s,e)=>{s.series.forEach(i=>{B(i)&&(e?i.type===p.BarSeries?i.nullCategory={text:e?.text,fillSymbol:e?.fillSymbol}:i.nullCategory={text:e?.text,markerSymbol:e?.markerSymbol}:i.nullCategory=void 0)})},Ee=Object.defineProperty,Ne=Object.getOwnPropertyDescriptor,h=(s,e,i,t)=>{for(var r=Ne(e,i),l=s.length-1,c;l>=0;l--)(c=s[l])&&(r=c(e,i,r)||r);return r&&Ee(e,i,r),r},g=class extends O{get temporalBinningSize(){return q(this._config)}set temporalBinningSize(e){Q(e,this._config)}get temporalBinningUnit(){return K(this._config)}set temporalBinningUnit(e){Z(e,this._config)}get timeAggregationType(){return G(this._config)}set timeAggregationType(e){$(e,this._config)}get trimIncompleteTimeInterval(){return H(this._config)}set trimIncompleteTimeInterval(e){ee(e,this._config)}get nullPolicy(){return J(this._config)}set nullPolicy(e){X(e,this._config)}resetTimeInterval(){ie(this._config)}};h([o],g.prototype,"temporalBinningSize");h([o],g.prototype,"temporalBinningUnit");h([o],g.prototype,"timeAggregationType");h([o],g.prototype,"trimIncompleteTimeInterval");h([o],g.prototype,"nullPolicy");h([o],g.prototype,"resetTimeInterval");var Me=Object.defineProperty,Ue=Object.getOwnPropertyDescriptor,a=(s,e,i,t)=>{for(var r=Ue(e,i),l=s.length-1,c;l>=0;l--)(c=s[l])&&(r=c(e,i,r)||r);return r&&Me(e,i,r),r},n=class extends O{constructor(){super(...arguments),this._xAxisField="",this._aggregationType=m.Count,this._splitByField="",this._numericFields=[],this._splitBySeriesLimitReached=!1,this._splitBySeriesCount=0}get chartLimits(){return this._chartLimits}set chartLimits(e){let i=!x(this._chartLimits,e);this._chartLimits=e,i&&this.layerInfo!==void 0&&this._config!==void 0&&this.processSeriesRebuild("chartLimits")}get splitBySeriesLimitReached(){return this._splitBySeriesLimitReached}set splitBySeriesLimitReached(e){this._splitBySeriesLimitReached=e}get splitBySeriesCount(){return this._splitBySeriesCount}set splitBySeriesCount(e){this._splitBySeriesCount=e}get xAxisField(){return this._xAxisField}set xAxisField(e){if(this._xAxisField=e,e.trim()===""||e===y){let i=this.numericFields;this.resetConfig(),this.numericFields=i}this.processSeriesRebuild("xAxisField")}get aggregationType(){return this._aggregationType}set aggregationType(e){this._aggregationType=e,oe({aggregationType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}get splitByField(){return this._splitByField}set splitByField(e){this.layerInfo?.layerFieldsInfo&&E(this.layerInfo?.layerFieldsInfo,e)&&(this._splitByField=e,this.processSeriesRebuild("splitByField"))}get numericFields(){return this._numericFields}set numericFields(e){typeof e=="string"&&(e=[e]);let i=N(this.layerInfo?.layerFieldsInfo??[],e),t=(this.xAxisField===""||this.xAxisField===y)&&e.length===0;if(i&&!t){let r=U(this.layerInfo.layer).idField;e.length===0&&r!==void 0?(e=[r],this._aggregationType=m.Count):this._aggregationType===m.Count&&e.length>=1&&r!==void 0&&!e.includes(r)&&(this._aggregationType=m.Sum),this._numericFields=e,this.numericFields.length>1&&(this._splitByField=""),this.processSeriesRebuild("numericFields")}else t&&this.resetConfig()}getAssignToSecondValueAxis(e){return Te(e,this._config)}setAssignToSecondValueAxis(e,i){ve({assign:e,seriesIndex:i,config:this._config,commonStrings:this.commonStrings})}getSeriesToSecondaryYAxis(e){return Te(e,this._config)}setSeriesToSecondaryYAxis(e,i){ve({assign:e,seriesIndex:i,config:this._config,commonStrings:this.commonStrings})}getDataSortOrder(){return S(this._config)[0]}setDataSortOrder(e,i){f(e,this._config,i)}getSortOrder(){return S(this._config)[0]}setSortOrder(e,i){f(e,this._config,i)}async getCustomSortValues(e){return await L({config:this._config,layerInfo:this.layerInfo,num:e,errorStrings:this.commonStrings?.errorStrings})}async setDataFilters(e){super.setDataFilters(e);let i=S(this._config)[0];if(i===W.customSort){this.startAsyncUpdate();let t=await L({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings?.errorStrings});f(i,this._config,t),this.finishAsyncUpdate()}this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get orderByList(){return A(this._config)}set orderByList(e){!Y(this._config)&&b(e,this._config)}updateSeriesFromLayerFilter(){this.layerInfo!==void 0&&_(this.getBuildNewSeriesProps())}async rebuildSeries(){await this.processSeriesRebuild("rebuildSeries")}get binTemporalData(){return ne(this._config)}set binTemporalData(e){ae(e,this._config)}getSeriesName(e){return Ae(e,this._config)}setSeriesName(e,i){be(e,i,this._config)}getSeriesColor(e){return Le(e,this._config)}setSeriesColor(e,i){Oe(e,i,this._config)}getOrderOfSeries(){return De(this._config)}setOrderOfSeries(e){we(e,this._config)}get stackedType(){return ke(this._config)}set stackedType(e){Pe({newStackedType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}moveSeries(e,i){let t=this.getOrderOfSeries(),[r]=t.splice(e,1);t.splice(i,0,r),this.setOrderOfSeries(t)}moveCustomSortValuesInOrderByList(e,i){let t=A(this._config),[r]=t.splice(e,1);t.splice(i,0,r),b(t,this._config)}get nullCategory(){return Re(this._config)}set nullCategory(e){let i=this.nullCategory;x(i,e)||Ve(this._config,e)}setupLocalProps(){this._xAxisField=z(this._config),this._aggregationType=d(this._config),this._splitByField=re(this._config),this._numericFields=u(this._config)}resetConfig(){let e=this._config.id;this._config=this.generateDefaultConfig(),this._config.id=e,this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}usingSplitBy(){return this.splitByField!==""&&this.numericFields.length<=1}async processSeriesRebuild(e){this.usingSplitBy()?(this.startAsyncUpdate(),await this.fetchSplitByFieldInfos(),_(this.getBuildNewSeriesProps()),this.finishAsyncUpdate()):(this._splitBySeriesLimitReached=!1,this._splitBySeriesCount=0,_(this.getBuildNewSeriesProps())),this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate(e)}async fetchSplitByFieldInfos(){return this.splitByFieldInfos=await V({config:this._config,layer:this.layerInfo.layer,layerFieldsInfo:this.layerInfo.layerFieldsInfo,xAxisField:this._xAxisField!==y?this._xAxisField:void 0,splitByField:this._splitByField,fetchNullValues:this._config?.series?.[0]?.query?.fetchNullValues,chartLimits:this._chartLimits,errorStrings:this.commonStrings?.errorStrings}),this._splitBySeriesLimitReached=this.splitByFieldInfos.seriesLimitReached,this._splitBySeriesCount=this.splitByFieldInfos.totalSeriesCount,this.splitByFieldInfos}getBuildNewSeriesProps(){return{xAxisFieldName:this._xAxisField,splitByField:this._splitByField,numericFields:this._numericFields,aggregationType:this._aggregationType,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,splitByFieldInfos:this.splitByFieldInfos}}generateChartTitle(){return this.layerInfo!==void 0?se(this._config,this.layerInfo,this.commonStrings):""}generateYAxisTitle(){return this.layerInfo!==void 0?T({config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,numericFields:u(this._config),aggregationType:d(this._config)}):""}};a([o],n.prototype,"aggregationType");a([o],n.prototype,"setAssignToSecondValueAxis");a([o],n.prototype,"setSeriesToSecondaryYAxis");a([o],n.prototype,"setDataSortOrder");a([o],n.prototype,"setSortOrder");a([o],n.prototype,"setDataFilters");a([o],n.prototype,"orderByList");a([o],n.prototype,"binTemporalData");a([o],n.prototype,"setSeriesName");a([o],n.prototype,"setSeriesColor");a([o],n.prototype,"setOrderOfSeries");a([o],n.prototype,"stackedType");a([o],n.prototype,"moveSeries");a([o],n.prototype,"moveCustomSortValuesInOrderByList");a([o],n.prototype,"nullCategory");a([o],n.prototype,"resetConfig");var We=[ye,le,ge,ce,Ce,he,Ie,de,fe,g,xe,me,Fe,pe,ue,Se,_e,Be,te];M(n,We);return{a:Ae,b:be,c:Oe,d:Ve,e:n}},a,b,c,d,e,f,g,h,i,j,l,n,o,q,r)
|
|
2
|
+
import r from"./JNFER2G5.js";import q from"./JWZEPPGG.js";import o from"./57ZRFAP5.js";import n from"./VTCPVV2K.js";import l from"./EKWGPT5Y.js";import j from"./B2MNXOZC.js";import i from"./Z6PP7BPU.js";import h from"./ZY5S677G.js";import g from"./L5U7LDC3.js";import f from"./ZYH6RLUY.js";import e from"./EBVBQSUD.js";import d from"./BXUTY44W.js";import c from"./JTQIRNPA.js";import b from"./2CNZDYOY.js";import a from"./DHXZKTF6.js";import{M as D,O as w,V as k,_ as P,ea as R}from"./XXO5K6N4.js";import{o as x}from"./NX3KK4IQ.js";import{a as W}from"./FHN6CIIO.js";import{c as B}from"./AUKJ4CBR.js";import{a as p,b as m,f as F}from"./BNAX4Y53.js";export default $arcgis.t(([{Cc:U,Ja:I,La:C,Q:y,Wb:V,Xb:E,Yb:N,Zb:M},{e:o},{c:j,d:T,f:v},O,{b:xe,d:Fe,f:Be},{b:ue,d:Se,f:_e},{d:me,e:pe},de,{d:Y},{b:Ie},{a:le,b:ge,c:ce,d:he},{a:ye,b:fe},{d:A,e:f,f:z},{b:Ce},{a:q,b:G,c:H,d:J,e:K,f:Q,g:X,h:Z,i:$,j:ee,k:ie,m:te,ma:se,na:d,oa:re,pa:u,qa:S,ra:oe,sa:_,ua:b,va:L,wa:ne,xa:ae}])=>{var Te=(s,e)=>e.series?.[s].assignToSecondValueAxis??!1,ve=s=>{let{assign:e,seriesIndex:i,config:t,commonStrings:r}=s;e&&t.axes!==void 0&&!t.axes?.[2]&&(t.axes[2]=P(r,p.BarSeries)[1]),t.series&&t.series.forEach((l,c)=>{c===i?l.assignToSecondValueAxis=e:c!==i&&l?.assignToSecondValueAxis!==!0&&(l.assignToSecondValueAxis=!1)}),t.axes?.[2]&&!t.series.some(l=>l.assignToSecondValueAxis)&&t.axes.splice(2,1)},Ae=(s,e)=>e.series?.[s]?.name,be=(s,e,i)=>{i.series?.[e]&&(i.series[e].name=s)},Le=(s,e)=>{let i=e.series?.[s],t;return C(i)?t=i.fillSymbol?.color:I(i)&&(t=i.lineSymbol?.color),t},Oe=(s,e,i)=>{let t=i.series?.[e];t&&(C(t)?t.fillSymbol={...R(e),...t.fillSymbol,color:s}:I(t)&&(t.lineSymbol={...k(e),...t.lineSymbol,color:s}))},De=s=>s.series.map(e=>e.id),we=(s,e)=>{e.series?.sort((i,t)=>s.findIndex(r=>i.id===r)-s.findIndex(r=>t.id===r))},ke=s=>s.stackedType??F.Side,Pe=s=>{let{newStackedType:e,config:i,layerInfo:t,commonStrings:r}=s;if(i.stackedType=e,t!==void 0){let l=T({config:i,layerInfo:t,commonStrings:r,numericFields:u(i),aggregationType:d(i)});j(i,1,l)}i.axes?.[1]&&(e===F.Stacked100?i.axes[1].valueFormat=w():i.axes[1].valueFormat=D()),v({config:i,value:null,axisIndex:1,isMax:!1}),v({config:i,value:null,axisIndex:1,isMax:!0})},Re=s=>{let e={};return s.series.forEach(i=>{B(i)&&"nullCategory"in i&&i.nullCategory!==void 0&&(e.text??=i.nullCategory.text,i.type===p.BarSeries?e.fillSymbol??=i.nullCategory.fillSymbol:e.markerSymbol??=i.nullCategory.markerSymbol)}),e.text||e.fillSymbol||e.markerSymbol?e:void 0},Ve=(s,e)=>{s.series.forEach(i=>{B(i)&&(e?i.type===p.BarSeries?i.nullCategory={text:e?.text,fillSymbol:e?.fillSymbol}:i.nullCategory={text:e?.text,markerSymbol:e?.markerSymbol}:i.nullCategory=void 0)})},Ee=Object.defineProperty,Ne=Object.getOwnPropertyDescriptor,h=(s,e,i,t)=>{for(var r=Ne(e,i),l=s.length-1,c;l>=0;l--)(c=s[l])&&(r=c(e,i,r)||r);return r&&Ee(e,i,r),r},g=class extends O{get temporalBinningSize(){return q(this._config)}set temporalBinningSize(e){Q(e,this._config)}get temporalBinningUnit(){return G(this._config)}set temporalBinningUnit(e){Z(e,this._config)}get timeAggregationType(){return H(this._config)}set timeAggregationType(e){$(e,this._config)}get trimIncompleteTimeInterval(){return J(this._config)}set trimIncompleteTimeInterval(e){ee(e,this._config)}get nullPolicy(){return K(this._config)}set nullPolicy(e){X(e,this._config)}resetTimeInterval(){ie(this._config)}};h([o],g.prototype,"temporalBinningSize");h([o],g.prototype,"temporalBinningUnit");h([o],g.prototype,"timeAggregationType");h([o],g.prototype,"trimIncompleteTimeInterval");h([o],g.prototype,"nullPolicy");h([o],g.prototype,"resetTimeInterval");var Me=Object.defineProperty,Ue=Object.getOwnPropertyDescriptor,a=(s,e,i,t)=>{for(var r=Ue(e,i),l=s.length-1,c;l>=0;l--)(c=s[l])&&(r=c(e,i,r)||r);return r&&Me(e,i,r),r},n=class extends O{constructor(){super(...arguments),this._xAxisField="",this._aggregationType=m.Count,this._splitByField="",this._numericFields=[],this._splitBySeriesLimitReached=!1,this._splitBySeriesCount=0}get chartLimits(){return this._chartLimits}set chartLimits(e){let i=!x(this._chartLimits,e);this._chartLimits=e,i&&this.layerInfo!==void 0&&this._config!==void 0&&this.processSeriesRebuild("chartLimits")}get splitBySeriesLimitReached(){return this._splitBySeriesLimitReached}set splitBySeriesLimitReached(e){this._splitBySeriesLimitReached=e}get splitBySeriesCount(){return this._splitBySeriesCount}set splitBySeriesCount(e){this._splitBySeriesCount=e}get xAxisField(){return this._xAxisField}set xAxisField(e){if(this._xAxisField=e,e.trim()===""||e===y){let i=this.numericFields;this.resetConfig(),this.numericFields=i}this.processSeriesRebuild("xAxisField")}get aggregationType(){return this._aggregationType}set aggregationType(e){this._aggregationType=e,oe({aggregationType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}get splitByField(){return this._splitByField}set splitByField(e){this.layerInfo?.layerFieldsInfo&&E(this.layerInfo?.layerFieldsInfo,e)&&(this._splitByField=e,this.processSeriesRebuild("splitByField"))}get numericFields(){return this._numericFields}set numericFields(e){typeof e=="string"&&(e=[e]);let i=N(this.layerInfo?.layerFieldsInfo??[],e),t=(this.xAxisField===""||this.xAxisField===y)&&e.length===0;if(i&&!t){let r=U(this.layerInfo.layer).idField;e.length===0&&r!==void 0?(e=[r],this._aggregationType=m.Count):this._aggregationType===m.Count&&e.length>=1&&r!==void 0&&!e.includes(r)&&(this._aggregationType=m.Sum),this._numericFields=e,this.numericFields.length>1&&(this._splitByField=""),this.processSeriesRebuild("numericFields")}else t&&this.resetConfig()}getAssignToSecondValueAxis(e){return Te(e,this._config)}setAssignToSecondValueAxis(e,i){ve({assign:e,seriesIndex:i,config:this._config,commonStrings:this.commonStrings})}getSeriesToSecondaryYAxis(e){return Te(e,this._config)}setSeriesToSecondaryYAxis(e,i){ve({assign:e,seriesIndex:i,config:this._config,commonStrings:this.commonStrings})}getDataSortOrder(){return S(this._config)[0]}setDataSortOrder(e,i){f(e,this._config,i)}getSortOrder(){return S(this._config)[0]}setSortOrder(e,i){f(e,this._config,i)}async getCustomSortValues(e){return await L({config:this._config,layerInfo:this.layerInfo,num:e,errorStrings:this.commonStrings?.errorStrings})}async setDataFilters(e){super.setDataFilters(e);let i=S(this._config)[0];if(i===W.customSort){this.startAsyncUpdate();let t=await L({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings?.errorStrings});f(i,this._config,t),this.finishAsyncUpdate()}this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get orderByList(){return A(this._config)}set orderByList(e){!Y(this._config)&&b(e,this._config)}updateSeriesFromLayerFilter(){this.layerInfo!==void 0&&_(this.getBuildNewSeriesProps())}async rebuildSeries(){await this.processSeriesRebuild("rebuildSeries")}get binTemporalData(){return ne(this._config)}set binTemporalData(e){ae(e,this._config)}getSeriesName(e){return Ae(e,this._config)}setSeriesName(e,i){be(e,i,this._config)}getSeriesColor(e){return Le(e,this._config)}setSeriesColor(e,i){Oe(e,i,this._config)}getOrderOfSeries(){return De(this._config)}setOrderOfSeries(e){we(e,this._config)}get stackedType(){return ke(this._config)}set stackedType(e){Pe({newStackedType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}moveSeries(e,i){let t=this.getOrderOfSeries(),[r]=t.splice(e,1);t.splice(i,0,r),this.setOrderOfSeries(t)}moveCustomSortValuesInOrderByList(e,i){let t=A(this._config),[r]=t.splice(e,1);t.splice(i,0,r),b(t,this._config)}get nullCategory(){return Re(this._config)}set nullCategory(e){let i=this.nullCategory;x(i,e)||Ve(this._config,e)}setupLocalProps(){this._xAxisField=z(this._config),this._aggregationType=d(this._config),this._splitByField=re(this._config),this._numericFields=u(this._config)}resetConfig(){let e=this._config.id;this._config=this.generateDefaultConfig(),this._config.id=e,this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}usingSplitBy(){return this.splitByField!==""&&this.numericFields.length<=1}async processSeriesRebuild(e){this.usingSplitBy()?(this.startAsyncUpdate(),await this.fetchSplitByFieldInfos(),_(this.getBuildNewSeriesProps()),this.finishAsyncUpdate()):(this._splitBySeriesLimitReached=!1,this._splitBySeriesCount=0,_(this.getBuildNewSeriesProps())),this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate(e)}async fetchSplitByFieldInfos(){return this.splitByFieldInfos=await V({config:this._config,layer:this.layerInfo.layer,layerFieldsInfo:this.layerInfo.layerFieldsInfo,xAxisField:this._xAxisField!==y?this._xAxisField:void 0,splitByField:this._splitByField,fetchNullValues:this._config?.series?.[0]?.query?.fetchNullValues,chartLimits:this._chartLimits,errorStrings:this.commonStrings?.errorStrings}),this._splitBySeriesLimitReached=this.splitByFieldInfos.seriesLimitReached,this._splitBySeriesCount=this.splitByFieldInfos.totalSeriesCount,this.splitByFieldInfos}getBuildNewSeriesProps(){return{xAxisFieldName:this._xAxisField,splitByField:this._splitByField,numericFields:this._numericFields,aggregationType:this._aggregationType,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,splitByFieldInfos:this.splitByFieldInfos}}generateChartTitle(){return this.layerInfo!==void 0?se(this._config,this.layerInfo,this.commonStrings):""}generateYAxisTitle(){return this.layerInfo!==void 0?T({config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,numericFields:u(this._config),aggregationType:d(this._config)}):""}};a([o],n.prototype,"aggregationType");a([o],n.prototype,"setAssignToSecondValueAxis");a([o],n.prototype,"setSeriesToSecondaryYAxis");a([o],n.prototype,"setDataSortOrder");a([o],n.prototype,"setSortOrder");a([o],n.prototype,"setDataFilters");a([o],n.prototype,"orderByList");a([o],n.prototype,"binTemporalData");a([o],n.prototype,"setSeriesName");a([o],n.prototype,"setSeriesColor");a([o],n.prototype,"setOrderOfSeries");a([o],n.prototype,"stackedType");a([o],n.prototype,"moveSeries");a([o],n.prototype,"moveCustomSortValuesInOrderByList");a([o],n.prototype,"nullCategory");a([o],n.prototype,"resetConfig");var We=[ye,le,ge,ce,Ce,he,Ie,de,fe,g,xe,me,Fe,pe,ue,Se,_e,Be,te];M(n,We);return{a:Ae,b:be,c:Oe,d:Ve,e:n}},a,b,c,d,e,f,g,h,i,j,l,n,o,q,r)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import{a as n}from"./YOVZ4RVH.js";import a from"./DHXZKTF6.js";import"./XXO5K6N4.js";import"./WKF53DYD.js";import"./NX3KK4IQ.js";import"./KXU3XKM2.js";import{B as m,E as i,H as p,i as d,n as g}from"./IYVGK242.js";import"./AUKJ4CBR.js";import"./BNAX4Y53.js";import"./TIWCUJOG.js";export default $arcgis.t(([k,{pa:t,qa:l,ra:a}])=>{var r=class extends m{constructor(){super(...arguments),this._messages=n({blocking:!0}),this.commonStrings=n({name:"common",blocking:!0}),this.handleAoiToolClick=async e=>{this.view?.map&&e&&(this.selectedTool===e?this.deactivateAoiSketch():await this.startAoiSketch(e))},this.arcgisImageryScatterplotAoiChange=g()}static{this.properties={selectedTool:16,tool:1,messageOverrides:0,view:0}}willUpdate(e){e.has("tool")&&(this.tool?this.tool!==this.selectedTool&&this.startAoiSketch(this.tool):this.deactivateAoiSketch())}disconnectedCallback(){this.sketchListenerHandle&&this.sketchListenerHandle.remove(),this.sketchViewModel&&(this.sketchViewModel.destroy(),this.sketchViewModel=void 0),this.selectedTool=void 0,super.disconnectedCallback()}async startAoiSketch(e){if(this.view?.map){let o=l(this.view)??a(this.view);this.sketchViewModel?(this.sketchViewModel.cancel(),this.sketchViewModel.layer!==o&&(this.sketchViewModel.layer=o)):(this.sketchViewModel=new k({view:this.view,layer:o,activeFillSymbol:{type:"simple-fill",style:"solid",color:[0,255,255,.25],outline:{color:[0,255,255],width:1}},polylineSymbol:{type:"simple-line",color:[0,255,255],width:1},creationMode:"continuous",updateOnGraphicClick:!1}),this.addAoiSketchListener()),this.selectedTool=e,await this.sketchViewModel.create(e)}}deactivateAoiSketch(){this.sketchViewModel?.cancel(),this.selectedTool=void 0}addAoiSketchListener(){if(this.sketchViewModel){let e=this.sketchViewModel,o=e.on("create",s=>{switch(s.state){case"cancel":this.deactivateAoiSketch();break;case"complete":let c=s.graphic?.geometry;if(c?.type==="polygon"||c?.type==="polyline"){this.arcgisImageryScatterplotAoiChange.emit({tool:this.selectedTool??c.type,newGeometry:c.toJSON()});let h=l(this.view);h?.remove(s.graphic),this.isConnected&&(e.layer=h??a(this.view))}break}});this.sketchListenerHandle?.remove(),this.sketchListenerHandle=o}}render(){return d`<calcite-action-group layout=horizontal id=charts-config-scatter-plot-aoi-action-group><calcite-action id=charts-config-scatter-plot-aoi-line icon=line .text=${this.commonStrings.imageryAoiToolsStrings.polyline} title=${this._messages.draw.polyline??i} .active=${this.selectedTool===t.Polyline} @click=${()=>this.handleAoiToolClick(t.Polyline)}></calcite-action><calcite-action id=charts-config-scatter-plot-aoi-circle icon=circle .text=${this.commonStrings.imageryAoiToolsStrings.circle} title=${this._messages.draw.circle??i} .active=${this.selectedTool===t.Circle} @click=${()=>this.handleAoiToolClick(t.Circle)}></calcite-action><calcite-action id=charts-config-scatter-plot-aoi-rectangle icon=rectangle .text=${this.commonStrings.imageryAoiToolsStrings.rectangle} title=${this._messages.draw.rectangle??i} .active=${this.selectedTool===t.Rectangle} @click=${()=>this.handleAoiToolClick(t.Rectangle)}></calcite-action><calcite-action id=charts-config-scatter-plot-aoi-polygon icon=polygon .text=${this.commonStrings.imageryAoiToolsStrings.polygon} title=${this._messages.draw.polygon??i} .active=${this.selectedTool===t.Polygon} @click=${()=>this.handleAoiToolClick(t.Polygon)}></calcite-action><calcite-action id=charts-config-scatter-plot-aoi-freehand-area icon=freehand-area .text=${this.commonStrings.imageryAoiToolsStrings.freehandPolygon} title=${this._messages.draw.freehandPolygon??i} .active=${this.selectedTool===t.FreehandPolygon} @click=${()=>this.handleAoiToolClick(t.FreehandPolygon)}></calcite-action></calcite-action-group>`}};p("arcgis-charts-config-scatter-plot-aoi",r);return r},"widgets/Sketch/SketchViewModel",a)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a as t,b as n,c}from"./QGHI4FS2.js";import{k as o}from"./FHN6CIIO.js";async function m(a){let i="config"in a?n(a.config):a.chartType,r;if(!("layer"in a)&&!("iLayer"in a)&&"config"in a&&a.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(i){case o.LineChart:{let{LineChartModel:e}=await import("./
|
|
2
|
+
import{a as t,b as n,c}from"./QGHI4FS2.js";import{k as o}from"./FHN6CIIO.js";async function m(a){let i="config"in a?n(a.config):a.chartType,r;if(!("layer"in a)&&!("iLayer"in a)&&"config"in a&&a.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(i){case o.LineChart:{let{LineChartModel:e}=await import("./3D6A3FSY.js").then(m=>m.default.then(e=>({LineChartModel:e})));r=new e;break}case o.ComboBarLineChart:{let{ComboBarLineChartModel:e}=await import("./MU55JIYV.js").then(m=>m.default.then(e=>({ComboBarLineChartModel:e})));r=new e;break}case o.PieChart:{let{PieChartModel:e}=await import("./R6MIM2PY.js").then(m=>m.default.then(e=>({PieChartModel:e})));r=new e;break}case o.Histogram:{let{HistogramModel:e}=await import("./DQJZEIEB.js").then(m=>m.default.then(e=>({HistogramModel:e})));r=new e;break}case o.Scatterplot:{let{ScatterplotModel:e}=await import("./GQFD2BXB.js").then(m=>m.default.then(e=>({ScatterplotModel:e})));r=new e;break}case o.BoxPlot:{let{BoxPlotModel:e}=await import("./EBNM4Q47.js").then(m=>m.default.then(e=>({BoxPlotModel:e})));r=new e;break}case o.Gauge:{let{GaugeModel:e}=await import("./OMMWNI5R.js").then(m=>m.default.then(e=>({GaugeModel:e})));r=new e;break}case o.RadarChart:{let{RadarChartModel:e}=await import("./KKAUA5I4.js").then(m=>m.default.then(e=>({RadarChartModel:e})));r=new e;break}case o.HeatChart:{let{HeatChartModel:e}=await import("./GFVKVWUY.js").then(m=>m.default.then(e=>({HeatChartModel:e})));r=new e;break}case o.BarChart:default:{let{BarChartModel:e}=await import("./73E367AZ.js").then(m=>m.default.then(e=>({BarChartModel:e})));r=new e;break}}if(await r?.setup({layer:"layer"in a?a.layer:void 0,iLayer:"iLayer"in a?a.iLayer:void 0,config:"config"in a?a.config:void 0,commonStrings:"commonStrings"in a?a.commonStrings:void 0,chartLimits:"chartLimits"in a?a.chartLimits:void 0}),i!==void 0&&c(r,i))return r;{let e=t(r.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 (\`${i}\`).`)}}export{m as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import e from"./
|
|
2
|
+
import e from"./N35DJP7H.js";import"./5AKOPV7Z.js";import{a as b}from"./YOVZ4RVH.js";import c from"./DHXZKTF6.js";import"./XXO5K6N4.js";import"./WKF53DYD.js";import"./NX3KK4IQ.js";import"./KXU3XKM2.js";import{A as g,B as d,C as a,H as p,g as l,i as o,n as u,z as h}from"./IYVGK242.js";import"./FHN6CIIO.js";import"./AUKJ4CBR.js";import"./BNAX4Y53.js";import"./TIWCUJOG.js";export default $arcgis.t(([,{f:v,g:f,h:c,i:m}])=>{var s={container:"container",label:"label",numberInput:"number-input"},D=l`.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)}.container{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));margin-top:.5rem}.container>.number-input{margin-bottom:.5rem;display:flex}.container>.number-input>div{width:100%}.label{display:flex;margin-bottom:.5rem;justify-content:space-between}`,r=class extends d{constructor(){super(...arguments),this._messages=b(),this.decimalPlacesInputElement=h(),this.isDecimalPlacesInvalid=!1,this.arcgisChartsConfigNumberFormatChange=u()}static{this.properties={isDecimalPlacesInvalid:16,messageOverrides:0,numberFormat:0}}static{this.styles=D}onDecimalPlacesChange(){let i=this.decimalPlacesInputElement.value?.value,t=Math.floor(Number(i)),n=t===Number(i)&&t>=0;if(i!==void 0&&n&&v(i,this.decimalPlacesInputElement.value?.min,this.decimalPlacesInputElement.value?.max)){let I=Number.parseInt(i),e={minimumFractionDigits:this.numberFormat?.minimumFractionDigits,maximumFractionDigits:I};e.maximumFractionDigits!==void 0&&e.minimumFractionDigits!==void 0&&e.minimumFractionDigits>e.maximumFractionDigits&&(e.minimumFractionDigits=e.maximumFractionDigits);let F=this.getUpdatedNumberFormat(e);this.arcgisChartsConfigNumberFormatChange.emit(F),this.decimalPlacesInputElement.value&&(this.isDecimalPlacesInvalid=!1,c({inputElement:this.decimalPlacesInputElement.value,status:m.IDLE}))}else this.decimalPlacesInputElement.value&&(this.isDecimalPlacesInvalid=!0,c({inputElement:this.decimalPlacesInputElement.value,status:m.INVALID}))}onShowThousandsSeparatorChange(i){let t=i.target.checked,n=this.getUpdatedNumberFormat({useGrouping:t});this.arcgisChartsConfigNumberFormatChange.emit(n)}getUpdatedNumberFormat(i){return{...this.numberFormat,...i}}render(){return o`<div class=${a(s.container)}><calcite-label class=${a(s.label)}>${this._messages.decimalPlaces}<calcite-input type=number class=${a(s.numberInput)} min=0 max=20 step=1 .value=${f(this.numberFormat?.maximumFractionDigits,2)} @calciteInputInput=${this.onDecimalPlacesChange} ${g(this.decimalPlacesInputElement)}></calcite-input><arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.invalidDecimalPlaces} .isInvalid=${this.isDecimalPlacesInvalid}></arcgis-charts-config-invalid-input-message></calcite-label><calcite-label layout=inline-space-between class=${a(s.label)}>${this._messages.showThousandSeparators}<calcite-switch name=useGrouping .checked=${!!(this.numberFormat?.useGrouping??!0)} @calciteSwitchChange=${this.onShowThousandsSeparatorChange}></calcite-switch></calcite-label></div>`}};p("arcgis-charts-config-number-format",r);return r},c,e)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import q from"./KQJAQMO4.js";import o from"./RANMZVK2.js";import n from"./BIU5DASA.js";import m from"./GZ3YHHLB.js";import k from"./YGV6VUSU.js";import j from"./O2NYEOQ6.js";import i from"./CO56NHDR.js";import h from"./2OZON66K.js";import e from"./Q4EFECTX.js";import c from"./YEHQ2DYK.js";import a from"./XZHXK4OO.js";import{M as b,P as d,ha as O,ja as F,o as S,qa as T}from"./XXO5K6N4.js";import{f}from"./WKF53DYD.js";import{d as V}from"./OZSOICXE.js";import"./KXU3XKM2.js";import{l as x}from"./IYVGK242.js";import{e as p,f as l}from"./FHN6CIIO.js";import"./AUKJ4CBR.js";import{a as g}from"./BNAX4Y53.js";import"./TIWCUJOG.js";export default $arcgis.t(([{Bc:G,Xb:N,Yb:M,Zb:k,cd:L,gc:W,q:y},,{e:t},,,j,{d:z},{b:Q},{a:K,b:q,c:H,d:J},,{a:h,b:I,c:m,d:A,e:w,f:v,g:B,h:R,i:E,j:D,k:P,l:_}])=>{var U=i=>i.legend?.displayNumericValue??!1,X=(i,e)=>{e.series[0]?.type===g.PieSeries&&(e.legend===void 0&&(e.legend=d()),e.legend.displayNumericValue=i)},Y=i=>i.legend?.displayCategory??!1,Z=(i,e)=>{e.series[0]?.type===g.PieSeries&&(e.legend===void 0&&(e.legend=d()),e.legend.displayCategory=i)},$=i=>i.legend?.displayPercentage??!1,ee=(i,e)=>{e.series[0]?.type===g.PieSeries&&(e.legend===void 0&&(e.legend=d()),e.legend.displayPercentage=i)},ie=i=>i.legend?.labelMaxWidth??200,se=(i,e)=>{e.series[0]?.type===g.PieSeries&&(e.legend===void 0&&(e.legend=d()),e.legend.labelMaxWidth=i)},le=i=>i.legend?.valueLabelMaxWidth??200,ge=(i,e)=>{e.series[0]?.type===g.PieSeries&&(e.legend===void 0&&(e.legend=d()),e.legend.valueLabelMaxWidth=i)},ce=i=>i.series?.[0]?.innerRadius,de=(i,e)=>{e.series?.[0]&&(e.series[0].innerRadius=i)},pe=i=>i.series?.[0]?.innerRadius,he=(i,e)=>{e.series?.[0]&&(e.series[0].innerRadius=i)},ue=i=>i.series?.[0]?.dataLabelsCharacterLimit,fe=(i,e)=>{e.series?.[0]&&(e.series[0].dataLabelsCharacterLimit=i)},te=i=>i.series[0]?.startAngle,ye=(i,e)=>{e.series?.[0]&&(e.series[0].startAngle=i)},me=(i,e)=>{e.series?.[0]&&(e.series[0].endAngle=i)},_e=i=>i.series?.[0]?.displayCategoryOnTooltip??!0,Se=i=>i.series?.[0]?.displayCategoryOnDataLabel??!0,be=i=>i.series?.[0]?.displayNumericValueOnDataLabel??!0,Oe=i=>i.series?.[0]?.displayPercentageOnDataLabel??!1,Le=i=>i.series?.[0]?.displayNumericValueOnTooltip??!0,Ie=i=>i.series?.[0]?.displayPercentageOnTooltip??!0,ve=(i,e)=>{e.series[0]&&(e.series[0].displayPercentageOnTooltip=i)},De=i=>i.series?.[0]?.valuePrefix,Pe=(i,e)=>{e.series?.[0]&&(e.series[0].valuePrefix=i)},Ce=i=>i.series?.[0]?.valueSuffix,xe=(i,e)=>{e.series?.[0]&&(e.series[0].valueSuffix=i)},Ve=i=>i.series?.[0]?.percentagePrefix,Fe=(i,e)=>{e.series?.[0]&&(e.series[0].percentagePrefix=i)},Te=i=>i.series?.[0]?.percentageSuffix,Ne=(i,e)=>{e.series?.[0]&&(e.series[0].percentageSuffix=i)},Me=i=>{let e,o=i.series?.[0];return o?.displayNumericValueOnDataLabel===!0&&o?.displayPercentageOnDataLabel===!0?e=l.Both:o?.displayNumericValueOnDataLabel===!0?e=l.Value:e=l.Percentage,e},ke=(i,e)=>{let o=i===l.Value||i===l.Both,a=i===l.Percentage||i===l.Both;e.series?.[0]&&(e.series[0].displayNumericValueOnDataLabel=o,e.series[0].displayPercentageOnDataLabel=a),e.legend&&(e.legend={...e.legend,displayNumericValue:o,displayPercentage:a})},We=i=>i.series?.[0]?.alignDataLabels??!1,Ge=(i,e)=>{e.series[0]&&(e.series[0].alignDataLabels=i)},ze=i=>i.series?.[0]?.dataLabelsInside??!1,Ae=(i,e)=>{e.series[0]&&(e.series[0].dataLabelsInside=i)},we=i=>i.series?.[0]?.dataLabelsOffset??10,Be=(i,e)=>{e.series[0]&&(e.series[0].dataLabelsOffset=i)},Re=i=>i.series?.[0]?.numericValueFormat?.intlOptions?.minimumFractionDigits,Ee=(i,e)=>{e.series?.[0]&&(e.series[0].numericValueFormat??=b(),e.series[0].numericValueFormat.intlOptions.minimumFractionDigits=i,e.series[0].numericValueFormat.intlOptions.maximumFractionDigits=i,e.series[0].percentValueFormat??=b(),e.series[0].percentValueFormat.intlOptions.minimumFractionDigits=i,e.series[0].percentValueFormat.intlOptions.maximumFractionDigits=i)},je=i=>i.series?.[0]?.optimizeDataLabelsOverlapping??!1,Ke=(i,e)=>{e.series[0]&&(e.series[0].optimizeDataLabelsOverlapping=i)},qe=i=>i.series[0]?.ticks?.visible??!1,He=(i,e)=>{e.series?.[0]&&(e.series[0].ticks??=O(),e.series[0].ticks.visible=i)},Je=i=>i.series[0]?.ticks?.lineSymbol,Qe=(i,e)=>{i&&e.series?.[0]&&(e.series[0].ticks??=O(),e.series[0].ticks.lineSymbol=V(i))},Ue=(i,e)=>e.series?.[0]?.slices?.[i]?.originalLabel,Xe=(i,e)=>e.series?.[0]?.slices?.[i]?.label,Ye=(i,e,o)=>{o.series?.[0]?.slices?.[e]&&(o.series[0].slices[e].label=i)},Ze=(i,e)=>e.series?.[0]?.slices?.[i]?.fillSymbol?.color,$e=(i,e,o)=>{let a=o.series?.[0]?.slices?.[e]?.fillSymbol;a!==void 0?(a.color=i,a.outline!==void 0?a.outline.color=i:a.outline={type:f.SLS,color:i}):o.series?.[0]?.slices?.[e]!==void 0&&(o.series[0].slices[e].fillSymbol={type:f.SFS,color:i,outline:{type:f.SLS,color:i}})},ei=i=>i.series?.[0]?.slices?.map(e=>e.sliceId),re=(i,e)=>{e.series?.[0]?.slices?.sort((o,a)=>i.findIndex(n=>o.sliceId===n)-i.findIndex(n=>a.sliceId===n))},ii=i=>i.series?.[0]?.sliceGrouping,oe=(i,e)=>{e.series?.[0]&&(e.series[0].sliceGrouping=i)},ae=i=>i.series?.[0]?.sliceGrouping?.percentageThreshold,si=(i,e)=>{e.series?.[0]?.sliceGrouping!==void 0?e.series[0].sliceGrouping.percentageThreshold=i:e.series[0].sliceGrouping={sliceId:S.defaultGroupOfSlicesId,percentageThreshold:i}},ti=i=>i.series?.[0]?.slices,ne=(i,e)=>{e.series?.[0]&&(e.series[0].slices=i)},ri=i=>{ne(void 0,i),oe({sliceId:S.defaultGroupOfSlicesId,percentageThreshold:ae(i)??0},i)},oi=(i,e)=>e.series[0]?.slices?.[i]?.sliceId,ai=(i,e)=>e.series[0]?.slices?.findIndex(o=>o.sliceId===i),ni=i=>i.series[0]?.slices?.length??0,li=Object.defineProperty,gi=Object.getOwnPropertyDescriptor,r=(i,e,o,a)=>{for(var n=gi(e,o),c=i.length-1,u;c>=0;c--)(u=i[c])&&(n=u(e,o,n)||n);return n&&li(e,o,n),n},s=class extends j{constructor(){super(...arguments),this._chartType=g.PieSeries,this._mode=p.Category,this._groupedSliceIds=[],this._customizedSliceIds=[]}async setup(e){await this.loadConfigFromLayer(e);let{config:o}=e;if(o!==void 0){let a=L(o.series)!==y.PieFromFields?p.Category:p.Fields;this._mode=_({category:h(this._config),numericFields:m(this._config),fallbackMode:a})}typeof this.resolveSetup=="function"&&this.resolveSetup()}get category(){return h(this._config)}set category(e){(!z(this._config)||e.trim()!=="")&&(this._mode=_({category:e,numericFields:m(this._config),fallbackMode:this._mode}),B({newCategory:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")))}get numericFields(){return m(this._config)}set numericFields(e){typeof e=="string"&&(e=[e]),this.layerInfo===void 0||N(this.layerInfo.layerFieldsInfo,e)?(this._mode=_({category:h(this._config),numericFields:e,fallbackMode:this._mode}),E({newNumericFields:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this._config.series[0].slices=this._config.series[0].slices?.filter(o=>o.fillSymbol?.color!==void 0&&this._customizedSliceIds.includes(o.sliceId??"")),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))):x("error","pie-chart-model","Invalid `numericFields`")}get aggregationType(){return A(this._config,this._mode)}set aggregationType(e){R({newAggregationType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}getDataSortOrder(){return I(this._config,this._mode)}setDataSortOrder(e,o){v({newSortOrderKind:e,config:this._config,orderByList:o})}getSortOrder(){return I(this._config,this._mode)}setSortOrder(e,o){v({newSortOrderKind:e,config:this._config,orderByList:o})}get orderByList(){return D(this._config,this._mode)}set orderByList(e){P({values:e,config:this._config,mode:this._mode})}get mode(){return this._mode}set mode(e){this._mode=e}async getCustomSortValues(e){let o=h(this._config),a=L(this._config.series),n=[];return a===y.PieFromFields?n=this.numericFields:o.trim()!==""&&a===y.PieFromCategory&&(n=await k({category:o,config:this._config,layerInfo:this.layerInfo,num:e,errorStrings:this.commonStrings.errorStrings})),n}moveCustomSortValuesInOrderByList(e,o){let a=D(this._config,this._mode),[n]=a.splice(e,1);a.splice(o,0,n),P({values:a,config:this._config,mode:this._mode})}get ticksSymbol(){return Je(this._config)}set ticksSymbol(e){Qe(e,this._config)}get slices(){return ti(this._config)}set slices(e){ne(e,this._config)}get groupedSliceIds(){return this._groupedSliceIds}set groupedSliceIds(e){this._groupedSliceIds=e}get sliceGrouping(){return ii(this._config)}set sliceGrouping(e){oe(e,this._config)}get innerRadiusSize(){return ce(this._config)??0}set innerRadiusSize(e){de(e,this._config)}get innerRadius(){return pe(this._config)??0}set innerRadius(e){he(e,this._config)}get groupingThreshold(){return ae(this._config)??0}set groupingThreshold(e){si(e,this._config)}get labelCharacterLimit(){return ue(this._config)??null}set labelCharacterLimit(e){fe(e,this._config)}get decimalPlaces(){return Re(this._config)??1}set decimalPlaces(e){Ee(e,this._config)}get displayType(){return Me(this._config)}set displayType(e){ke(e,this._config)}generateDefaultConfig(){let e=T(this.commonStrings);return e.series=[F(this.commonStrings,G(this.layerInfo.layer).idField)],e}getOriginalSliceName(e){return Ue(e,this._config)}getSliceName(e){return Xe(e,this._config)}setSliceName(e,o){let a=this.getSliceId(o);a!==void 0&&this._customizedSliceIds.push(a),Ye(e,o,this._config)}getSliceColor(e){return Ze(e,this._config)}setSliceColor(e,o){let a=this.getSliceId(o);e!==void 0&&a!==void 0&&this._customizedSliceIds.push(a),$e(e,o,this._config)}get orderOfSlices(){return ei(this._config)}set orderOfSlices(e){e!==void 0&&re(e,this._config)}moveSeries(e,o){let a=this.orderOfSlices;if(a!==void 0){let[n]=a.splice(e,1);a.splice(o,0,n),re(a,this._config)}}getSliceId(e){return oi(e,this._config)}getSliceIndex(e){return ai(e,this._config)}getSlicesLength(){return ni(this._config)}resetSlices(){this._customizedSliceIds=[],ri(this._config)}resetAvailable(){let e=!this.colorMatch,o=!1,a=this.slices?.length??0;for(let n=0;n<a;n+=1){let c=this.getOriginalSliceName(n),u=this.getSliceName(n),C=this._mode===p.Fields?W(this.layerInfo?.layerFieldsInfo,c?.toString()):c;if(C!==void 0&&C?.toString()!==u?.toString()){o=!0;break}}return this.sliceGrouping?.originalLabel!==void 0&&this.sliceGrouping?.label!==this.sliceGrouping.originalLabel&&(o=!0),e||o}get ticksVisibility(){return qe(this._config)}set ticksVisibility(e){He(e,this._config)}get startAngle(){return te(this._config)}set startAngle(e){ye(e,this._config)}get endAngle(){return te(this._config)}set endAngle(e){me(e,this._config)}get displayCategoryOnDataLabel(){return Se(this._config)}set displayCategoryOnDataLabel(e){this._config.series[0].displayCategoryOnDataLabel=e}get displayCategoryValueOnTooltip(){return _e(this._config)}set displayCategoryValueOnTooltip(e){this._config.series[0].displayCategoryOnTooltip=e}get displayNumericValueOnDataLabel(){return be(this._config)}set displayNumericValueOnDataLabel(e){this._config.series[0].displayNumericValueOnDataLabel=e}get displayPercentageOnDataLabel(){return Oe(this._config)}set displayPercentageOnDataLabel(e){this._config.series[0].displayPercentageOnDataLabel=e}get displayNumericValueOnTooltip(){return Le(this._config)}set displayNumericValueOnTooltip(e){this._config.series[0].displayNumericValueOnTooltip=e}get displayPercentageOnTooltip(){return Ie(this._config)}set displayPercentageOnTooltip(e){ve(e,this._config)}get valuePrefix(){return De(this._config)}set valuePrefix(e){Pe(e,this._config)}get valueSuffix(){return Ce(this._config)}set valueSuffix(e){xe(e,this._config)}get percentagePrefix(){return Ve(this._config)}set percentagePrefix(e){Fe(e,this._config)}get percentageSuffix(){return Te(this._config)}set percentageSuffix(e){Ne(e,this._config)}get dataLabelsOffset(){return we(this._config)}set dataLabelsOffset(e){Be(e,this._config)}get alignDataLabels(){return We(this._config)}set alignDataLabels(e){Ge(e,this._config)}get dataLabelsInside(){return ze(this._config)}set dataLabelsInside(e){Ae(e,this._config)}get optimizeDataLabelsOverlapping(){return je(this._config)}set optimizeDataLabelsOverlapping(e){Ke(e,this._config)}get displayNumericValueOnLegendItems(){return U(this._config)}set displayNumericValueOnLegendItems(e){X(e,this._config)}get displayPercentageOnLegendItems(){return $(this._config)}set displayPercentageOnLegendItems(e){ee(e,this._config)}get displayCategoryOnLegendItems(){return Y(this._config)}set displayCategoryOnLegendItems(e){Z(e,this._config)}get labelMaxWidth(){return ie(this._config)}set labelMaxWidth(e){se(e,this._config)}get valueLabelMaxWidth(){return le(this._config)}set valueLabelMaxWidth(e){ge(e,this._config)}getDisplayNumericValue(){return U(this._config)}setDisplayNumericValue(e){X(e,this._config)}getDisplayPercentage(){return $(this._config)}setDisplayPercentage(e){ee(e,this._config)}getLabelMaxWidth(){return ie(this._config)}setLabelMaxWidth(e){se(e,this._config)}get displayCategory(){return Y(this._config)}set displayCategory(e){Z(e,this._config)}generateChartTitle(){return w({config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode})}};r([t],s.prototype,"category");r([t],s.prototype,"numericFields");r([t],s.prototype,"aggregationType");r([t],s.prototype,"setDataSortOrder");r([t],s.prototype,"setSortOrder");r([t],s.prototype,"orderByList");r([t],s.prototype,"mode");r([t],s.prototype,"moveCustomSortValuesInOrderByList");r([t],s.prototype,"ticksSymbol");r([t],s.prototype,"slices");r([t],s.prototype,"groupedSliceIds");r([t],s.prototype,"sliceGrouping");r([t],s.prototype,"innerRadiusSize");r([t],s.prototype,"innerRadius");r([t],s.prototype,"groupingThreshold");r([t],s.prototype,"labelCharacterLimit");r([t],s.prototype,"decimalPlaces");r([t],s.prototype,"displayType");r([t],s.prototype,"setSliceName");r([t],s.prototype,"setSliceColor");r([t],s.prototype,"orderOfSlices");r([t],s.prototype,"moveSeries");r([t],s.prototype,"resetSlices");r([t],s.prototype,"ticksVisibility");r([t],s.prototype,"startAngle");r([t],s.prototype,"endAngle");r([t],s.prototype,"displayCategoryOnDataLabel");r([t],s.prototype,"displayCategoryValueOnTooltip");r([t],s.prototype,"displayNumericValueOnDataLabel");r([t],s.prototype,"displayPercentageOnDataLabel");r([t],s.prototype,"displayNumericValueOnTooltip");r([t],s.prototype,"displayPercentageOnTooltip");r([t],s.prototype,"valuePrefix");r([t],s.prototype,"valueSuffix");r([t],s.prototype,"percentagePrefix");r([t],s.prototype,"percentageSuffix");r([t],s.prototype,"dataLabelsOffset");r([t],s.prototype,"alignDataLabels");r([t],s.prototype,"dataLabelsInside");r([t],s.prototype,"optimizeDataLabelsOverlapping");r([t],s.prototype,"displayNumericValueOnLegendItems");r([t],s.prototype,"displayPercentageOnLegendItems");r([t],s.prototype,"displayCategoryOnLegendItems");r([t],s.prototype,"labelMaxWidth");r([t],s.prototype,"valueLabelMaxWidth");r([t],s.prototype,"setDisplayNumericValue");r([t],s.prototype,"setDisplayPercentage");r([t],s.prototype,"setLabelMaxWidth");r([t],s.prototype,"displayCategory");var ci=[K,q,H,J,Q];M(s,ci);return s},a,c,e,h,i,j,k,m,n,o,q)
|
|
2
|
+
import q from"./YR2TWUVL.js";import o from"./57ZRFAP5.js";import n from"./EKWGPT5Y.js";import m from"./B2MNXOZC.js";import k from"./Z6PP7BPU.js";import j from"./BXUTY44W.js";import i from"./N5QBW4DK.js";import h from"./JTQIRNPA.js";import e from"./2CNZDYOY.js";import c from"./DYWTYNT4.js";import a from"./DHXZKTF6.js";import{M as b,P as d,ha as O,ja as F,o as S,qa as T}from"./XXO5K6N4.js";import{f}from"./WKF53DYD.js";import{c as V}from"./NX3KK4IQ.js";import"./KXU3XKM2.js";import{l as x}from"./IYVGK242.js";import{e as p,f as l}from"./FHN6CIIO.js";import"./AUKJ4CBR.js";import{a as g}from"./BNAX4Y53.js";import"./TIWCUJOG.js";export default $arcgis.t(([{Cc:G,Yb:N,Zb:M,_b:k,dd:L,hc:W,q:y},,{e:t},,,j,{d:z},{b:Q},{a:K,b:q,c:H,d:J},,{a:h,b:I,c:m,d:A,e:w,f:v,g:B,h:R,i:E,j:D,k:P,l:_}])=>{var U=i=>i.legend?.displayNumericValue??!1,X=(i,e)=>{e.series[0]?.type===g.PieSeries&&(e.legend===void 0&&(e.legend=d()),e.legend.displayNumericValue=i)},Y=i=>i.legend?.displayCategory??!1,Z=(i,e)=>{e.series[0]?.type===g.PieSeries&&(e.legend===void 0&&(e.legend=d()),e.legend.displayCategory=i)},$=i=>i.legend?.displayPercentage??!1,ee=(i,e)=>{e.series[0]?.type===g.PieSeries&&(e.legend===void 0&&(e.legend=d()),e.legend.displayPercentage=i)},ie=i=>i.legend?.labelMaxWidth??200,se=(i,e)=>{e.series[0]?.type===g.PieSeries&&(e.legend===void 0&&(e.legend=d()),e.legend.labelMaxWidth=i)},le=i=>i.legend?.valueLabelMaxWidth??200,ge=(i,e)=>{e.series[0]?.type===g.PieSeries&&(e.legend===void 0&&(e.legend=d()),e.legend.valueLabelMaxWidth=i)},ce=i=>i.series?.[0]?.innerRadius,de=(i,e)=>{e.series?.[0]&&(e.series[0].innerRadius=i)},pe=i=>i.series?.[0]?.innerRadius,he=(i,e)=>{e.series?.[0]&&(e.series[0].innerRadius=i)},ue=i=>i.series?.[0]?.dataLabelsCharacterLimit,fe=(i,e)=>{e.series?.[0]&&(e.series[0].dataLabelsCharacterLimit=i)},te=i=>i.series[0]?.startAngle,ye=(i,e)=>{e.series?.[0]&&(e.series[0].startAngle=i)},me=(i,e)=>{e.series?.[0]&&(e.series[0].endAngle=i)},_e=i=>i.series?.[0]?.displayCategoryOnTooltip??!0,Se=i=>i.series?.[0]?.displayCategoryOnDataLabel??!0,be=i=>i.series?.[0]?.displayNumericValueOnDataLabel??!0,Oe=i=>i.series?.[0]?.displayPercentageOnDataLabel??!1,Le=i=>i.series?.[0]?.displayNumericValueOnTooltip??!0,Ie=i=>i.series?.[0]?.displayPercentageOnTooltip??!0,ve=(i,e)=>{e.series[0]&&(e.series[0].displayPercentageOnTooltip=i)},De=i=>i.series?.[0]?.valuePrefix,Pe=(i,e)=>{e.series?.[0]&&(e.series[0].valuePrefix=i)},Ce=i=>i.series?.[0]?.valueSuffix,xe=(i,e)=>{e.series?.[0]&&(e.series[0].valueSuffix=i)},Ve=i=>i.series?.[0]?.percentagePrefix,Fe=(i,e)=>{e.series?.[0]&&(e.series[0].percentagePrefix=i)},Te=i=>i.series?.[0]?.percentageSuffix,Ne=(i,e)=>{e.series?.[0]&&(e.series[0].percentageSuffix=i)},Me=i=>{let e,o=i.series?.[0];return o?.displayNumericValueOnDataLabel===!0&&o?.displayPercentageOnDataLabel===!0?e=l.Both:o?.displayNumericValueOnDataLabel===!0?e=l.Value:e=l.Percentage,e},ke=(i,e)=>{let o=i===l.Value||i===l.Both,a=i===l.Percentage||i===l.Both;e.series?.[0]&&(e.series[0].displayNumericValueOnDataLabel=o,e.series[0].displayPercentageOnDataLabel=a),e.legend&&(e.legend={...e.legend,displayNumericValue:o,displayPercentage:a})},We=i=>i.series?.[0]?.alignDataLabels??!1,Ge=(i,e)=>{e.series[0]&&(e.series[0].alignDataLabels=i)},ze=i=>i.series?.[0]?.dataLabelsInside??!1,Ae=(i,e)=>{e.series[0]&&(e.series[0].dataLabelsInside=i)},we=i=>i.series?.[0]?.dataLabelsOffset??10,Be=(i,e)=>{e.series[0]&&(e.series[0].dataLabelsOffset=i)},Re=i=>i.series?.[0]?.numericValueFormat?.intlOptions?.minimumFractionDigits,Ee=(i,e)=>{e.series?.[0]&&(e.series[0].numericValueFormat??=b(),e.series[0].numericValueFormat.intlOptions.minimumFractionDigits=i,e.series[0].numericValueFormat.intlOptions.maximumFractionDigits=i,e.series[0].percentValueFormat??=b(),e.series[0].percentValueFormat.intlOptions.minimumFractionDigits=i,e.series[0].percentValueFormat.intlOptions.maximumFractionDigits=i)},je=i=>i.series?.[0]?.optimizeDataLabelsOverlapping??!1,Ke=(i,e)=>{e.series[0]&&(e.series[0].optimizeDataLabelsOverlapping=i)},qe=i=>i.series[0]?.ticks?.visible??!1,He=(i,e)=>{e.series?.[0]&&(e.series[0].ticks??=O(),e.series[0].ticks.visible=i)},Je=i=>i.series[0]?.ticks?.lineSymbol,Qe=(i,e)=>{i&&e.series?.[0]&&(e.series[0].ticks??=O(),e.series[0].ticks.lineSymbol=V(i))},Ue=(i,e)=>e.series?.[0]?.slices?.[i]?.originalLabel,Xe=(i,e)=>e.series?.[0]?.slices?.[i]?.label,Ye=(i,e,o)=>{o.series?.[0]?.slices?.[e]&&(o.series[0].slices[e].label=i)},Ze=(i,e)=>e.series?.[0]?.slices?.[i]?.fillSymbol?.color,$e=(i,e,o)=>{let a=o.series?.[0]?.slices?.[e]?.fillSymbol;a!==void 0?(a.color=i,a.outline!==void 0?a.outline.color=i:a.outline={type:f.SLS,color:i}):o.series?.[0]?.slices?.[e]!==void 0&&(o.series[0].slices[e].fillSymbol={type:f.SFS,color:i,outline:{type:f.SLS,color:i}})},ei=i=>i.series?.[0]?.slices?.map(e=>e.sliceId),re=(i,e)=>{e.series?.[0]?.slices?.sort((o,a)=>i.findIndex(n=>o.sliceId===n)-i.findIndex(n=>a.sliceId===n))},ii=i=>i.series?.[0]?.sliceGrouping,oe=(i,e)=>{e.series?.[0]&&(e.series[0].sliceGrouping=i)},ae=i=>i.series?.[0]?.sliceGrouping?.percentageThreshold,si=(i,e)=>{e.series?.[0]?.sliceGrouping!==void 0?e.series[0].sliceGrouping.percentageThreshold=i:e.series[0].sliceGrouping={sliceId:S.defaultGroupOfSlicesId,percentageThreshold:i}},ti=i=>i.series?.[0]?.slices,ne=(i,e)=>{e.series?.[0]&&(e.series[0].slices=i)},ri=i=>{ne(void 0,i),oe({sliceId:S.defaultGroupOfSlicesId,percentageThreshold:ae(i)??0},i)},oi=(i,e)=>e.series[0]?.slices?.[i]?.sliceId,ai=(i,e)=>e.series[0]?.slices?.findIndex(o=>o.sliceId===i),ni=i=>i.series[0]?.slices?.length??0,li=Object.defineProperty,gi=Object.getOwnPropertyDescriptor,r=(i,e,o,a)=>{for(var n=gi(e,o),c=i.length-1,u;c>=0;c--)(u=i[c])&&(n=u(e,o,n)||n);return n&&li(e,o,n),n},s=class extends j{constructor(){super(...arguments),this._chartType=g.PieSeries,this._mode=p.Category,this._groupedSliceIds=[],this._customizedSliceIds=[]}async setup(e){await this.loadConfigFromLayer(e);let{config:o}=e;if(o!==void 0){let a=L(o.series)!==y.PieFromFields?p.Category:p.Fields;this._mode=_({category:h(this._config),numericFields:m(this._config),fallbackMode:a})}typeof this.resolveSetup=="function"&&this.resolveSetup()}get category(){return h(this._config)}set category(e){(!z(this._config)||e.trim()!=="")&&(this._mode=_({category:e,numericFields:m(this._config),fallbackMode:this._mode}),B({newCategory:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")))}get numericFields(){return m(this._config)}set numericFields(e){typeof e=="string"&&(e=[e]),this.layerInfo===void 0||N(this.layerInfo.layerFieldsInfo,e)?(this._mode=_({category:h(this._config),numericFields:e,fallbackMode:this._mode}),E({newNumericFields:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this._config.series[0].slices=this._config.series[0].slices?.filter(o=>o.fillSymbol?.color!==void 0&&this._customizedSliceIds.includes(o.sliceId??"")),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))):x("error","pie-chart-model","Invalid `numericFields`")}get aggregationType(){return A(this._config,this._mode)}set aggregationType(e){R({newAggregationType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}getDataSortOrder(){return I(this._config,this._mode)}setDataSortOrder(e,o){v({newSortOrderKind:e,config:this._config,orderByList:o})}getSortOrder(){return I(this._config,this._mode)}setSortOrder(e,o){v({newSortOrderKind:e,config:this._config,orderByList:o})}get orderByList(){return D(this._config,this._mode)}set orderByList(e){P({values:e,config:this._config,mode:this._mode})}get mode(){return this._mode}set mode(e){this._mode=e}async getCustomSortValues(e){let o=h(this._config),a=L(this._config.series),n=[];return a===y.PieFromFields?n=this.numericFields:o.trim()!==""&&a===y.PieFromCategory&&(n=await k({category:o,config:this._config,layerInfo:this.layerInfo,num:e,errorStrings:this.commonStrings.errorStrings})),n}moveCustomSortValuesInOrderByList(e,o){let a=D(this._config,this._mode),[n]=a.splice(e,1);a.splice(o,0,n),P({values:a,config:this._config,mode:this._mode})}get ticksSymbol(){return Je(this._config)}set ticksSymbol(e){Qe(e,this._config)}get slices(){return ti(this._config)}set slices(e){ne(e,this._config)}get groupedSliceIds(){return this._groupedSliceIds}set groupedSliceIds(e){this._groupedSliceIds=e}get sliceGrouping(){return ii(this._config)}set sliceGrouping(e){oe(e,this._config)}get innerRadiusSize(){return ce(this._config)??0}set innerRadiusSize(e){de(e,this._config)}get innerRadius(){return pe(this._config)??0}set innerRadius(e){he(e,this._config)}get groupingThreshold(){return ae(this._config)??0}set groupingThreshold(e){si(e,this._config)}get labelCharacterLimit(){return ue(this._config)??null}set labelCharacterLimit(e){fe(e,this._config)}get decimalPlaces(){return Re(this._config)??1}set decimalPlaces(e){Ee(e,this._config)}get displayType(){return Me(this._config)}set displayType(e){ke(e,this._config)}generateDefaultConfig(){let e=T(this.commonStrings);return e.series=[F(this.commonStrings,G(this.layerInfo.layer).idField)],e}getOriginalSliceName(e){return Ue(e,this._config)}getSliceName(e){return Xe(e,this._config)}setSliceName(e,o){let a=this.getSliceId(o);a!==void 0&&this._customizedSliceIds.push(a),Ye(e,o,this._config)}getSliceColor(e){return Ze(e,this._config)}setSliceColor(e,o){let a=this.getSliceId(o);e!==void 0&&a!==void 0&&this._customizedSliceIds.push(a),$e(e,o,this._config)}get orderOfSlices(){return ei(this._config)}set orderOfSlices(e){e!==void 0&&re(e,this._config)}moveSeries(e,o){let a=this.orderOfSlices;if(a!==void 0){let[n]=a.splice(e,1);a.splice(o,0,n),re(a,this._config)}}getSliceId(e){return oi(e,this._config)}getSliceIndex(e){return ai(e,this._config)}getSlicesLength(){return ni(this._config)}resetSlices(){this._customizedSliceIds=[],ri(this._config)}resetAvailable(){let e=!this.colorMatch,o=!1,a=this.slices?.length??0;for(let n=0;n<a;n+=1){let c=this.getOriginalSliceName(n),u=this.getSliceName(n),C=this._mode===p.Fields?W(this.layerInfo?.layerFieldsInfo,c?.toString()):c;if(C!==void 0&&C?.toString()!==u?.toString()){o=!0;break}}return this.sliceGrouping?.originalLabel!==void 0&&this.sliceGrouping?.label!==this.sliceGrouping.originalLabel&&(o=!0),e||o}get ticksVisibility(){return qe(this._config)}set ticksVisibility(e){He(e,this._config)}get startAngle(){return te(this._config)}set startAngle(e){ye(e,this._config)}get endAngle(){return te(this._config)}set endAngle(e){me(e,this._config)}get displayCategoryOnDataLabel(){return Se(this._config)}set displayCategoryOnDataLabel(e){this._config.series[0].displayCategoryOnDataLabel=e}get displayCategoryValueOnTooltip(){return _e(this._config)}set displayCategoryValueOnTooltip(e){this._config.series[0].displayCategoryOnTooltip=e}get displayNumericValueOnDataLabel(){return be(this._config)}set displayNumericValueOnDataLabel(e){this._config.series[0].displayNumericValueOnDataLabel=e}get displayPercentageOnDataLabel(){return Oe(this._config)}set displayPercentageOnDataLabel(e){this._config.series[0].displayPercentageOnDataLabel=e}get displayNumericValueOnTooltip(){return Le(this._config)}set displayNumericValueOnTooltip(e){this._config.series[0].displayNumericValueOnTooltip=e}get displayPercentageOnTooltip(){return Ie(this._config)}set displayPercentageOnTooltip(e){ve(e,this._config)}get valuePrefix(){return De(this._config)}set valuePrefix(e){Pe(e,this._config)}get valueSuffix(){return Ce(this._config)}set valueSuffix(e){xe(e,this._config)}get percentagePrefix(){return Ve(this._config)}set percentagePrefix(e){Fe(e,this._config)}get percentageSuffix(){return Te(this._config)}set percentageSuffix(e){Ne(e,this._config)}get dataLabelsOffset(){return we(this._config)}set dataLabelsOffset(e){Be(e,this._config)}get alignDataLabels(){return We(this._config)}set alignDataLabels(e){Ge(e,this._config)}get dataLabelsInside(){return ze(this._config)}set dataLabelsInside(e){Ae(e,this._config)}get optimizeDataLabelsOverlapping(){return je(this._config)}set optimizeDataLabelsOverlapping(e){Ke(e,this._config)}get displayNumericValueOnLegendItems(){return U(this._config)}set displayNumericValueOnLegendItems(e){X(e,this._config)}get displayPercentageOnLegendItems(){return $(this._config)}set displayPercentageOnLegendItems(e){ee(e,this._config)}get displayCategoryOnLegendItems(){return Y(this._config)}set displayCategoryOnLegendItems(e){Z(e,this._config)}get labelMaxWidth(){return ie(this._config)}set labelMaxWidth(e){se(e,this._config)}get valueLabelMaxWidth(){return le(this._config)}set valueLabelMaxWidth(e){ge(e,this._config)}getDisplayNumericValue(){return U(this._config)}setDisplayNumericValue(e){X(e,this._config)}getDisplayPercentage(){return $(this._config)}setDisplayPercentage(e){ee(e,this._config)}getLabelMaxWidth(){return ie(this._config)}setLabelMaxWidth(e){se(e,this._config)}get displayCategory(){return Y(this._config)}set displayCategory(e){Z(e,this._config)}generateChartTitle(){return w({config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode})}};r([t],s.prototype,"category");r([t],s.prototype,"numericFields");r([t],s.prototype,"aggregationType");r([t],s.prototype,"setDataSortOrder");r([t],s.prototype,"setSortOrder");r([t],s.prototype,"orderByList");r([t],s.prototype,"mode");r([t],s.prototype,"moveCustomSortValuesInOrderByList");r([t],s.prototype,"ticksSymbol");r([t],s.prototype,"slices");r([t],s.prototype,"groupedSliceIds");r([t],s.prototype,"sliceGrouping");r([t],s.prototype,"innerRadiusSize");r([t],s.prototype,"innerRadius");r([t],s.prototype,"groupingThreshold");r([t],s.prototype,"labelCharacterLimit");r([t],s.prototype,"decimalPlaces");r([t],s.prototype,"displayType");r([t],s.prototype,"setSliceName");r([t],s.prototype,"setSliceColor");r([t],s.prototype,"orderOfSlices");r([t],s.prototype,"moveSeries");r([t],s.prototype,"resetSlices");r([t],s.prototype,"ticksVisibility");r([t],s.prototype,"startAngle");r([t],s.prototype,"endAngle");r([t],s.prototype,"displayCategoryOnDataLabel");r([t],s.prototype,"displayCategoryValueOnTooltip");r([t],s.prototype,"displayNumericValueOnDataLabel");r([t],s.prototype,"displayPercentageOnDataLabel");r([t],s.prototype,"displayNumericValueOnTooltip");r([t],s.prototype,"displayPercentageOnTooltip");r([t],s.prototype,"valuePrefix");r([t],s.prototype,"valueSuffix");r([t],s.prototype,"percentagePrefix");r([t],s.prototype,"percentageSuffix");r([t],s.prototype,"dataLabelsOffset");r([t],s.prototype,"alignDataLabels");r([t],s.prototype,"dataLabelsInside");r([t],s.prototype,"optimizeDataLabelsOverlapping");r([t],s.prototype,"displayNumericValueOnLegendItems");r([t],s.prototype,"displayPercentageOnLegendItems");r([t],s.prototype,"displayCategoryOnLegendItems");r([t],s.prototype,"labelMaxWidth");r([t],s.prototype,"valueLabelMaxWidth");r([t],s.prototype,"setDisplayNumericValue");r([t],s.prototype,"setDisplayPercentage");r([t],s.prototype,"setLabelMaxWidth");r([t],s.prototype,"displayCategory");var ci=[K,q,H,J,Q];M(s,ci);return s},a,c,e,h,i,j,k,m,n,o,q)
|
|
@@ -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"./DHXZKTF6.js";import"./XXO5K6N4.js";import"./WKF53DYD.js";import{o as l}from"./NX3KK4IQ.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(([{Ac:u,Da:g,Ha:p,Pc:C,t:d,xa:m,yc:f}])=>{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)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import b from"./
|
|
2
|
+
import b from"./2CNZDYOY.js";import a from"./DHXZKTF6.js";import{Ka as f}from"./XXO5K6N4.js";export default $arcgis.t(([{La: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"./
|
|
2
|
+
import{b as $}from"./UNFDJW5A.js";import{a as u}from"./YOVZ4RVH.js";import{i as c}from"./XXO5K6N4.js";import{f as b}from"./WKF53DYD.js";import{o as S}from"./NX3KK4IQ.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{b as C}from"./
|
|
2
|
+
import{b as C}from"./UNFDJW5A.js";import f from"./N35DJP7H.js";import"./5AKOPV7Z.js";import{a as g}from"./YOVZ4RVH.js";import b from"./DHXZKTF6.js";import"./XXO5K6N4.js";import"./WKF53DYD.js";import{q as d}from"./NX3KK4IQ.js";import"./KXU3XKM2.js";import{A as n,B as m,C as e,H as p,g as c,i as h,n as a,z as i}from"./IYVGK242.js";import"./FHN6CIIO.js";import"./AUKJ4CBR.js";import"./BNAX4Y53.js";import"./TIWCUJOG.js";export default $arcgis.t(([,{h:v,i:s}])=>{var r={chartRenameComponent:"chart-rename-component",renameLabelContainer:"rename-label-container",renamePanel:"rename-panel"},u=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)}.chart-rename-component{width:var(--arcgis-charts-config-panel-width-medium);height:var(--arcgis-charts-config-panel-height)}:host{overflow-y:auto;width:min-content}.rename-label-container{display:flex}.rename-label-container calcite-label{flex:1 1 0px;display:flex;width:0px}.rename-label-container{padding:0 1rem;margin-top:1rem}.rename-panel{width:calc(var(--calcite-panel-width-multiplier) * 20vw);max-width:calc(var(--calcite-panel-width-multiplier) * 420px);min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}`,l=class extends m{constructor(){super(...arguments),this._messages=g(),this.characterLimitInputElement=i(),this.popoverElement=i(),this.isChartTitleInvalid=!1,this.changedName="",this.name="",this.open=!1,this.arcgisChartsConfigChartRenamePopoverChange=a(),this.arcgisChartsConfigPopoverClose=a()}static{this.properties={isChartTitleInvalid:16,changedName:16,messageOverrides:0,name:1,open:5,referenceElement:0}}static{this.styles=u}async reposition(){await this.popoverElement.value?.reposition()}willUpdate(t){t.has("name")&&(this.changedName=this.name)}updated(){this.popoverElement.value?.reposition(),C(this.popoverElement.value,this.open)}onNameChange(t){let o=t.target.value;this.changedName=o,this.isChartTitleInvalid=d(o.trim()),this.characterLimitInputElement.value&&v({inputElement:this.characterLimitInputElement.value,status:this.isChartTitleInvalid?s.INVALID:s.IDLE})}onCancelClick(){this.changedName=this.name,this.arcgisChartsConfigPopoverClose.emit(),this.open=!1}onSubmitClick(){this.isChartTitleInvalid||(this.name=this.changedName,this.arcgisChartsConfigChartRenamePopoverChange.emit({name:this.changedName}),this.open=!1)}popoverClose(){this.changedName=this.name,this.open=!1,this.arcgisChartsConfigPopoverClose.emit()}render(){return h`<div class=${e({[r.chartRenameComponent]:!0})}><calcite-popover .referenceElement=${this.referenceElement??document.body} @calcitePopoverClose=${this.popoverClose} .open=${this.open} placement=bottom label auto-close ${n(this.popoverElement)}><calcite-panel class=${e(r.renamePanel)} closable .closed=${!this.open} @calcitePanelClose=${this.popoverClose} .heading=${this._messages.renameChart}><div class=${e(r.renameLabelContainer)}><calcite-label>${this._messages.chartName}<calcite-input required type=text .value=${this.changedName} @calciteInputInput=${this.onNameChange} ${n(this.characterLimitInputElement)}></calcite-input><arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.emptyChartTitle} .isInvalid=${this.isChartTitleInvalid}></arcgis-charts-config-invalid-input-message></calcite-label></div><calcite-button slot=footer appearance=solid scale=m width=half @click=${this.onSubmitClick}>${this._messages.submit}</calcite-button><calcite-button slot=footer appearance=outline-fill scale=m width=half @click=${this.onCancelClick}>${this._messages.cancel}</calcite-button></calcite-panel></calcite-popover></div>`}};p("arcgis-charts-config-chart-rename-popover",l);return l},b,f)
|