@arcgis/charts-components 5.2.0-next.77 → 5.2.0-next.78
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/{JXD72DDE.js → 2ASLWSZG.js} +1 -1
- package/dist/cdn/{BMARZ7XF.js → 2AYYSMS5.js} +2 -2
- package/dist/cdn/{VC3IPL3W.js → 2GAKZXA7.js} +1 -1
- package/dist/cdn/{6BPYNQZ7.js → 37TEXJ7K.js} +1 -1
- package/dist/cdn/{GNNYVMFC.js → 3EO4F26F.js} +1 -1
- package/dist/cdn/{ZQBXRCOJ.js → 3OW3AP7E.js} +1 -1
- package/dist/cdn/{TTF7P7P3.js → 4UZZHUBR.js} +1 -1
- package/dist/cdn/{SDYFUDYD.js → 4V4XGO3V.js} +1 -1
- package/dist/cdn/{BPWVUSF6.js → 4XM7Q33B.js} +1 -1
- package/dist/cdn/{5ULBL23N.js → 55MAADXE.js} +1 -1
- package/dist/cdn/{SKCMJ7CC.js → 5TACWRME.js} +1 -1
- package/dist/cdn/{ABJIGQPU.js → 5UKSJH54.js} +1 -1
- package/dist/cdn/{EQASVQYJ.js → 6ILCVW7Y.js} +1 -1
- package/dist/cdn/{4RGQGGJ6.js → 6WE5NXCL.js} +1 -1
- package/dist/cdn/{YZVUKFL4.js → 7MXV56XK.js} +1 -1
- package/dist/cdn/{R2VIFEDB.js → AGPCWGX5.js} +1 -1
- package/dist/cdn/{3FWY35ZY.js → ANIGKAAB.js} +1 -1
- package/dist/cdn/{GM4SFNI2.js → ARBNJ22B.js} +1 -1
- package/dist/cdn/{QSHTE5WJ.js → BRQQTNPP.js} +1 -1
- package/dist/cdn/{A7GKTMZO.js → C5O4MQR2.js} +1 -1
- package/dist/cdn/{F5BDRYHY.js → CPTM5D3G.js} +1 -1
- package/dist/cdn/{EE4B5HFW.js → DEEDTMN2.js} +1 -1
- package/dist/cdn/{Z7XPQNHN.js → DNBUCAK5.js} +1 -1
- package/dist/cdn/{J4R4VLYB.js → DWGM7Z44.js} +1 -1
- package/dist/cdn/{RT3HYXWJ.js → EUTOQQ3S.js} +1 -1
- package/dist/cdn/{5ZNHPOV2.js → EVXW4JIN.js} +1 -1
- package/dist/cdn/{RGORGHSV.js → F4YJZZ3Z.js} +1 -1
- package/dist/cdn/{4WLF2UU4.js → FDXSZJWC.js} +1 -1
- package/dist/cdn/{EP3WIZBT.js → FNTOEKMU.js} +1 -1
- package/dist/cdn/{JKDWK3U7.js → FWLBHMGZ.js} +1 -1
- package/dist/cdn/{7ODFP7BY.js → GRFUVWBR.js} +1 -1
- package/dist/cdn/{YVAX4OUD.js → HEVW64SC.js} +1 -1
- package/dist/cdn/{QPADYNBN.js → HHZOC34D.js} +1 -1
- package/dist/cdn/{YAG3OP7J.js → HVNUPBQA.js} +1 -1
- package/dist/cdn/{PVTAABF2.js → HXSSY2BO.js} +1 -1
- package/dist/cdn/IAMJ6CBO.js +3 -0
- package/dist/cdn/{LU4QKTHT.js → IC7XPCCD.js} +1 -1
- package/dist/cdn/{CTK2ZK4B.js → J6SZNFHT.js} +1 -1
- package/dist/cdn/{DFG62DWV.js → JBDNBUXX.js} +24 -24
- package/dist/cdn/{ZGN456TH.js → JILQHU4L.js} +1 -1
- package/dist/cdn/{YQLO6L62.js → JKT2UC2C.js} +1 -1
- package/dist/cdn/{Y4HXO4P6.js → JQU6SHEI.js} +1 -1
- package/dist/cdn/{M3RJM6PA.js → JZFIYS3Q.js} +1 -1
- package/dist/cdn/{N2PUZQSG.js → JZVACQMQ.js} +1 -1
- package/dist/cdn/{LFW4NJ2R.js → KBADZKOP.js} +1 -1
- package/dist/cdn/{O5JPUXWI.js → KBBPAMMT.js} +1 -1
- package/dist/cdn/{IBNGMKY7.js → KOLRCFJY.js} +1 -1
- package/dist/cdn/{ZOAO7KM4.js → KS5BBSHY.js} +1 -1
- package/dist/cdn/{TIZYANIH.js → L4E3VJVV.js} +1 -1
- package/dist/cdn/{ZZTMINB2.js → LYE5P3IM.js} +1 -1
- package/dist/cdn/{FKC43PML.js → N6FMZQZN.js} +1 -1
- package/dist/cdn/{UVYYOM7H.js → N7C7MXPK.js} +1 -1
- package/dist/cdn/{FM7C5MHK.js → NIDK3VNZ.js} +1 -1
- package/dist/cdn/{K7FZ25A3.js → O3I5M2SH.js} +1 -1
- package/dist/cdn/{RZHNQC2X.js → OAGFPD22.js} +1 -1
- package/dist/cdn/{NTZFHNTR.js → OILO7FSO.js} +1 -1
- package/dist/cdn/{UFEYXEPD.js → OTCRP3JF.js} +1 -1
- package/dist/cdn/{OS2BL2C3.js → PBMWAGSX.js} +1 -1
- package/dist/cdn/{5DOL5WYT.js → PCAFQL35.js} +1 -1
- package/dist/cdn/{6GMKBFMW.js → QK73NKPD.js} +1 -1
- package/dist/cdn/{5HOPWMOU.js → QPTQD3ZH.js} +1 -1
- package/dist/cdn/{RL4NP732.js → REUSRETW.js} +1 -1
- package/dist/cdn/{XOC3LIXD.js → RPQJ6RNZ.js} +1 -1
- package/dist/cdn/{J57JXHGX.js → RXIRNKPO.js} +1 -1
- package/dist/cdn/{CTUDTSGM.js → RZHWMERW.js} +1 -1
- package/dist/cdn/{BVTKDNLF.js → SCBFWKS5.js} +1 -1
- package/dist/cdn/{7HLL6I52.js → TGP4YGPD.js} +1 -1
- package/dist/cdn/{MK53NV42.js → TVQYI2GA.js} +1 -1
- package/dist/cdn/{4OTC23OP.js → U43J5GMJ.js} +1 -1
- package/dist/cdn/{2OKKN3FN.js → UEUCI74S.js} +1 -1
- package/dist/cdn/{A5NTUZHK.js → UQQUQB2A.js} +1 -1
- package/dist/cdn/{FFVWTIBA.js → WFNHDRCX.js} +1 -1
- package/dist/cdn/{Z6JHB4OI.js → WIU4Z5RB.js} +1 -1
- package/dist/cdn/{SW6QMW5R.js → X7KNPTRQ.js} +1 -1
- package/dist/cdn/{NKTEOO6T.js → XGOJWQ2M.js} +1 -1
- package/dist/cdn/{35223Y63.js → XPWRCAVM.js} +1 -1
- package/dist/cdn/{4KFRUTOH.js → XUHTILLV.js} +1 -1
- package/dist/cdn/{NPY4FHFQ.js → Y3WKQVWR.js} +1 -1
- package/dist/cdn/{53EWY2TT.js → YWYUS2YB.js} +1 -1
- package/dist/cdn/{YWQ3P3WS.js → ZAGOBG3W.js} +1 -1
- package/dist/cdn/{ULOV2G2M.js → ZFVW3OFJ.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/data.js +23 -23
- package/dist/chunks/index2.js +2803 -2753
- package/dist/chunks/index4.js +1 -1
- package/dist/chunks/serial-chart-data.js +21 -21
- package/dist/chunks/web-component-utils.js +7 -7
- package/dist/components/arcgis-chart/customElement.js +5671 -5559
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +0 -9
- package/dist/utils/chart-config/converter/index.js +13 -13
- package/dist/utils/chart-config/utils/index.d.ts +1 -1
- package/dist/utils/data/index.d.ts +1 -1
- package/dist/utils/layer/query-parser/index.d.ts +1 -1
- package/dist/utils/misc/interfaces.d.ts +1 -0
- package/package.json +3 -3
- package/dist/cdn/QNTIP7XB.js +0 -3
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import a from"./
|
|
2
|
+
import a from"./RPQJ6RNZ.js";import{a as o}from"./KJZTU3DV.js";import{a as e}from"./K4APZJ2O.js";export default $arcgis.t(([{s:n}])=>{function b(s){let c=o(s.series),r="graph-bar";switch(c){case e.LineSeries:{r="graph-time-series";break}case e.PieSeries:{r="pie-chart";break}case e.HistogramSeries:{r="graph-histogram";break}case e.ScatterSeries:{r="graph-scatter-plot";break}case e.BoxPlotSeries:{r="box-chart";break}case e.HeatSeries:{r="calendar-heat-chart";break}case e.BarSeries:}return r}function l(s){let{chartType:c,commonStrings:r,config:i}=s,a=r.utilsStrings,t="";switch(c){case e.HistogramSeries:{t=a.chartType.histogram;break}case e.ScatterSeries:{t=a.chartType.scatterplot;break}case e.BarSeries:{t=a.chartType.barChart;break}case e.LineSeries:{t=a.chartType.lineChart;break}case e.PieSeries:{t=a.chartType.pieChart;break}case e.BoxPlotSeries:{t=a.chartType.boxPlot;break}case e.HeatSeries:{i?t=n(i)?a.chartType.matrixHeatChart:a.chartType.calendarHeatChart:t=a.chartType.heatChart;break}}return t}return{a:b,b:l}},a)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as y}from"./D3YWSIAT.js";import{a as $}from"./IPEJCIHO.js";import{b as _,c as B}from"./IHO3OLL3.js";import d from"./
|
|
2
|
+
import{a as y}from"./D3YWSIAT.js";import{a as $}from"./IPEJCIHO.js";import{b as _,c as B}from"./IHO3OLL3.js";import d from"./2GAKZXA7.js";import{f as s}from"./JYC77MVD.js";import{a as f}from"./SN4KBI42.js";import c from"./RPQJ6RNZ.js";import b from"./IAMJ6CBO.js";import{n as A,u as S}from"./4DPFB567.js";import"./BGOWDCTO.js";import{Aa as E,za as x}from"./WVIP7B4W.js";import{a as I}from"./KX7KGXKQ.js";import{l as v}from"./SP2IPHWF.js";import"./LJTJTGIW.js";import{A as p,B as P,C as o,H as F,g as L,i as a,n as u,z as h}from"./7SBVBD4E.js";import"./QP5UAIC6.js";import"./KJZTU3DV.js";import{k as r,o as m}from"./K4APZJ2O.js";import"./BYSUABOV.js";export default $arcgis.t(([{Aa:b,Ba:D,Da:T,Ea:w},,{a:z,c:C,g:K,k:d,o:N}])=>{var j=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)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.fab{display:flex;justify-content:stretch}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.sort-icon-color{color:#000}.sort-y-axis{transform:rotate(90deg)}calcite-panel{max-height:60vh}calcite-panel .size-section{width:19rem;margin:1rem 0;display:flex;flex-wrap:wrap;justify-content:space-evenly}calcite-panel .size-section calcite-label{width:8rem;margin-bottom:.25rem}calcite-panel .apply-button{width:17rem}`,c={name:"line-chart-data-popover",header:"header",fab:"fab",popoverPickList:"popover-pick-list",sizeSection:"size-section",applyButton:"apply-button"},k=class extends P{constructor(){super(...arguments),this._messages=f(),this.commonStrings=f({name:"common",blocking:!0}),this.picklist=h(),this.intervalSizeElement=h(),this.intervalTypeElement=h(),this.popoverElement=h(),this.placement="leading",this.offsetDistance=-200,this.pickListHasChanged=!1,this.open=!1,this.layerFieldsInfo=[],this.arcgisChartsConfigLineChartDataPopoverChange=u(),this.arcgisChartsConfigLineChartPopoverClose=u()}static{this.properties={aggregationLabels:16,timeAggregationLabels:16,messageOverrides:0,headingTitle:1,referenceElement:0,open:5,contentKind:1,layerFieldsInfo:0,selectedContent:1}}static{this.styles=j}async reposition(){await this.popoverElement.value?.reposition()}willUpdate(e){e.has("selectedContent")&&this.selectedContentChange(this.selectedContent,e.get("selectedContent"));let t=C.map(n=>x(n,this.commonStrings));v(this.aggregationLabels,t)||(this.aggregationLabels=t);let i=[m.Start,m.End].map(n=>E(n,this.commonStrings));v(this.timeAggregationLabels,i)||(this.timeAggregationLabels=i)}updated(){setTimeout(()=>{typeof this.picklist.value?.setFocus=="function"&&this.picklist.value?.setFocus()},z.PopoverTimer),_(this.popoverElement.value,this.open)}selectedContentChange(e,t){this.pickListHasChanged=B(e,t)}buildAggregationPickListItems(){return y(C,e=>e,(e,t)=>a`<calcite-list-item .label=${this.aggregationLabels?.[t]} .value=${e} .selected=${d(e,this.selectedContent)}></calcite-list-item>`)}buildIntervalAlignmentPickListItems(){let e=[m.Start,m.End];return y(e,t=>t,(t,i)=>a`<calcite-list-item .label=${this.timeAggregationLabels?.[i]} .value=${t} .selected=${d(t,this.selectedContent)}></calcite-list-item>`)}buildPickListItem(e){return $(e.name,a`<calcite-list-item .label=${A(this.layerFieldsInfo,e.name)} .value=${e.name} .selected=${d(e.name,this.selectedContent)}></calcite-list-item>`)}buildPickListItems(e){let t=this.layerFieldsInfo?.length??0,i=[];switch(e){case s.numericFields:{for(let n=0;n<t;n+=1){let l=this.layerFieldsInfo?.[n];l&&b(l)&&i.push(this.buildPickListItem(l))}break}case s.xAxisField:{for(let n=0;n<t;n+=1){let l=this.layerFieldsInfo?.[n];l&&(b(l)||D(l)||T(l))&&i.push(this.buildPickListItem(l))}break}case s.splitByField:{let n=$(" ",a`<calcite-list-item label=" " value=" " .selected=${d("",this.selectedContent)}></calcite-list-item>`);i.push(n);for(let l=0;l<t;l+=1){let g=this.layerFieldsInfo?.[l];g&&(w(g)||g.type===I.String)&&i.push(this.buildPickListItem(g))}break}}return i}closePopover(){if(this.contentKind===s.numericFields&&this.pickListHasChanged){let e={pickListElement:this.picklist.value,eventEmitter:this.arcgisChartsConfigLineChartDataPopoverChange,contentKind:this.contentKind};N(e)}this.open=!1,this.arcgisChartsConfigLineChartPopoverClose.emit()}onDataContentTypeChange(e){this.pickListHasChanged=!0;let t=e.target.selectedItems;this.arcgisChartsConfigLineChartDataPopoverChange.emit({contentKind:this.contentKind,value:t.map(i=>i.value)}),this.open=!1}intervalChange(){let e=Number.parseInt(this.intervalSizeElement.value?.value??""),t=this.intervalTypeElement.value?.selectedOption?.value;!Number.isNaN(e)&&e>0&&this.arcgisChartsConfigLineChartDataPopoverChange.emit({contentKind:this.contentKind,value:[{intervalSize:e,intervalUnits:t}]}),this.open=!1}onNumericFieldsChange(e){e.target!==null&&(this.selectedContent=e.target.selectedItems.map(t=>t.value))}onNumericFieldSelectionDone(){this.closePopover()}renderAggregationType(){let e=this.buildAggregationPickListItems();return a`<calcite-list label class=${o(c.popoverPickList)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`}renderXAxisField(){let e=this.buildPickListItems(s.xAxisField);return a`<calcite-list label class=${o(c.popoverPickList)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`}renderNumericFields(){let e=this.buildPickListItems(s.numericFields);return a`<calcite-list label class=${o(c.popoverPickList)} selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${p(this.picklist)}>${e}</calcite-list>`}renderSplitByField(){let e=this.buildPickListItems(s.splitByField);return a`<calcite-list label class=${o(c.popoverPickList)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`}renderIntervalAlignment(){let e=this.buildIntervalAlignmentPickListItems();return a`<calcite-list label class=${o(c.popoverPickList)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`}renderInterval(){let e=this.selectedContent,t=[r.Second,r.Minute,r.Hour,r.Day,r.Week,r.Month,r.Year];return a`<div><div class=${o(c.sizeSection)}><calcite-label scale=m>${this._messages.intervalSize}<calcite-input type=number scale=m min=1 step=any .value=${K(e?.size,1)} ${p(this.intervalSizeElement)}></calcite-input></calcite-label><calcite-label scale=m>${this._messages.intervalType}<calcite-select .label=${this._messages.intervalType??""} ${p(this.intervalTypeElement)}>${t.map(i=>a`<calcite-option .value=${i} .label=${S(i,this._messages)} .selected=${e?.unit===i}></calcite-option>`)}</calcite-select></calcite-label><calcite-button class=${o(c.applyButton)} appearance=outline @click=${this.intervalChange}>${this._messages.apply}</calcite-button></div></div>`}renderPopoverInfo(){let e;switch(this.contentKind){case s.aggregation:e=this.renderAggregationType();break;case s.xAxisField:e=this.renderXAxisField();break;case s.numericFields:e=this.renderNumericFields();break;case s.splitByField:e=this.renderSplitByField();break;case s.intervalAlignment:e=this.renderIntervalAlignment();break;case s.interval:e=this.renderInterval();break}return e}render(){let e;return this.contentKind===s.numericFields&&(e=a`<div slot=footer><calcite-fab class=${o(c.fab)} appearance=outline-fill kind=neutral .icon=${void 0} .label=${this._messages.selectionDone} scale=s text-enabled .text=${this._messages.selectionDone} @click=${this.onNumericFieldSelectionDone}></calcite-fab></div>`),a`<div><calcite-popover class=${o(c.name)} .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} @calcitePopoverClose=${this.closePopover} .open=${this.open} label auto-close ${p(this.popoverElement)}><calcite-panel closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${o(c.header)}>${this.headingTitle??""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`}};F("arcgis-charts-config-line-chart-popover",k);return k},b,c,d)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as C}from"./D3YWSIAT.js";import{a as b}from"./IPEJCIHO.js";import{b as S,c as T}from"./IHO3OLL3.js";import h from"./
|
|
2
|
+
import{a as C}from"./D3YWSIAT.js";import{a as b}from"./IPEJCIHO.js";import{b as S,c as T}from"./IHO3OLL3.js";import h from"./2GAKZXA7.js";import{h as a}from"./JYC77MVD.js";import{a as f}from"./SN4KBI42.js";import e from"./RPQJ6RNZ.js";import d from"./IAMJ6CBO.js";import{n as F}from"./4DPFB567.js";import"./BGOWDCTO.js";import{za as x}from"./WVIP7B4W.js";import{a as L}from"./KX7KGXKQ.js";import{l as y}from"./SP2IPHWF.js";import"./LJTJTGIW.js";import{A as p,B as $,C as r,H as P,g as k,i as s,n as m,z as g}from"./7SBVBD4E.js";import{d as c}from"./QP5UAIC6.js";import"./KJZTU3DV.js";import"./K4APZJ2O.js";import"./BYSUABOV.js";export default $arcgis.t(([{Aa:I,Ea:D},,{a:w,d:u,k:h,o:E}])=>{var o={name:"pie-chart-data-popover",header:"header",fab:"fab",popoverPickList:"popover-pick-list",flipClass:"sort-counter-clockwise",sortOrderPickList:"sort-order-pick-list",panel:"panel"},O=k`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.fab{display:flex;justify-content:stretch}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.sort-icon-color{color:#000}.sort-counter-clockwise{transform:scaleX(-1)}.sort-order-pick-list{overflow-y:hidden}.panel{max-height:60vh}`,v=class extends ${constructor(){super(...arguments),this._messages=f(),this.commonStrings=f({name:"common",blocking:!0}),this.picklist=g(),this.popoverElement=g(),this.placement="leading",this.offsetDistance=-200,this.pickListHasChanged=!1,this.aggregationLabels=[],this.open=!1,this.layerFieldsInfo=[],this.arcgisChartsConfigPieChartDataPopoverChange=m(),this.arcgisChartsConfigPopoverClose=m()}static{this.properties={aggregationLabels:16,messageOverrides:0,headingTitle:1,referenceElement:0,open:5,contentKind:1,layerFieldsInfo:0,selectedContent:1}}static{this.styles=O}async reposition(){await this.popoverElement.value?.reposition()}willUpdate(e){e.has("selectedContent")&&this.selectedContentChange(this.selectedContent,e.get("selectedContent"));let t=u.map(i=>x(i,this.commonStrings));y(this.aggregationLabels,t)||(this.aggregationLabels=t)}updated(){S(this.popoverElement.value,this.open),setTimeout(()=>{this.picklist.value?.setFocus()},w.PopoverTimer)}selectedContentChange(e,t){this.pickListHasChanged=T(e,t)}buildAggregationPickListItems(){return C(u,e=>e,(e,t)=>s`<calcite-list-item .label=${this.aggregationLabels[t]} .value=${e} .selected=${h(e,this.selectedContent)}></calcite-list-item>`)}buildSortOrder(){let e=Object.keys(c);return e.splice(e.indexOf(c.customSort),1),C(e,t=>t,t=>{let i="string",l="rotate",n="";switch(t){case c.labelAsc:i="string";break;case c.labelDesc:i="string",n=o.flipClass;break;case c.valueAsc:i="number";break;case c.valueDesc:i="number",n=o.flipClass;break;case c.customSort:}return s`<calcite-list-item .selected=${this.selectedContent===t} .label=${this._messages[t]} .value=${c[t]}><calcite-icon slot=content-end .icon=${i}></calcite-icon><calcite-icon class=${r(n)} slot=content-end .icon=${l}></calcite-icon></calcite-list-item>`})}buildPickListItem(e){return b(e.name,s`<calcite-list-item .label=${F(this.layerFieldsInfo,e.name)} .value=${e.name} .selected=${h(e.name,this.selectedContent)}></calcite-list-item>`)}buildPickListItems(e){let t=this.layerFieldsInfo?.length??0,i=[];switch(e){case a.numericFields:{for(let l=0;l<t;l+=1){let n=this.layerFieldsInfo[l];I(n)&&i.push(this.buildPickListItem(n))}break}case a.category:{let l=b(" ",s`<calcite-list-item label=" " value=" " .selected=${h("",this.selectedContent)}></calcite-list-item>`);i.push(l);for(let n=0;n<t;n+=1){let d=this.layerFieldsInfo[n];(D(d)||d.type===L.String)&&i.push(this.buildPickListItem(d))}break}}return i}closePopover(){if(this.contentKind===a.numericFields&&this.pickListHasChanged){let e={pickListElement:this.picklist.value,eventEmitter:this.arcgisChartsConfigPieChartDataPopoverChange,contentKind:this.contentKind};E(e)}this.arcgisChartsConfigPopoverClose.emit()}onDataContentTypeChange(e){this.pickListHasChanged=!0;let t=e.target.selectedItems;this.arcgisChartsConfigPieChartDataPopoverChange.emit({contentKind:this.contentKind,value:t.map(i=>i.value)}),this.open=!1}onNumericFieldsChange(e){e.target!==null&&(this.selectedContent=e.target.selectedItems.map(t=>t.value))}onNumericFieldSelectionDone(){this.closePopover()}renderAggregationType(){let e=this.buildAggregationPickListItems();return s`<calcite-list label class=${r(o.popoverPickList)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`}renderCategory(){let e=this.buildPickListItems(a.category);return s`<calcite-list label class=${r(o.popoverPickList)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`}renderNumericFields(){let e=this.buildPickListItems(a.numericFields);return s`<calcite-list label class=${r(o.popoverPickList)} selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${p(this.picklist)}>${e}</calcite-list>`}renderSortOrder(){let e=this.buildSortOrder();return s`<calcite-list label class=${`${o.popoverPickList} ${o.sortOrderPickList}`} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`}renderPopoverInfo(){let e;switch(this.contentKind){case a.aggregation:e=this.renderAggregationType();break;case a.category:e=this.renderCategory();break;case a.numericFields:e=this.renderNumericFields();break;case a.sortOrder:e=this.renderSortOrder();break}return e}render(){let e;return this.contentKind===a.numericFields&&(e=s`<div slot=footer><calcite-fab class=${r(o.fab)} appearance=outline-fill kind=neutral .icon=${void 0} .label=${this._messages.selectionDone} scale=s text-enabled .text=${this._messages.selectionDone} @click=${this.onNumericFieldSelectionDone}></calcite-fab></div>`),s`<div><calcite-popover class=${r(o.name)} .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .offsetDistance=${this.offsetDistance} .open=${this.open} label auto-close ${p(this.popoverElement)}><calcite-panel class=${r(o.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${r(o.header)}>${this.headingTitle??""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`}};P("arcgis-charts-config-pie-chart-popover",v);return v},d,e,h)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import u from"./NKTEOO6T.js";import{a as se}from"./L7CMLBHB.js";import{a as oe}from"./D3YWSIAT.js";import{a as w}from"./IPEJCIHO.js";import{a as re}from"./IHO3OLL3.js";import t from"./BMARZ7XF.js";import{a as $,b as te,e as ae}from"./OBPAQN4H.js";import{a as f}from"./7NWEE7T2.js";import s from"./VC3IPL3W.js";import{d as n}from"./JYC77MVD.js";import{a as I}from"./SN4KBI42.js";import q from"./J57JXHGX.js";import p from"./Z6JHB4OI.js";import o from"./FKC43PML.js";import{a as ee}from"./YAG3OP7J.js";import m from"./SDYFUDYD.js";import l from"./JXD72DDE.js";import k from"./YQLO6L62.js";import j from"./SW6QMW5R.js";import{b as Y,c as P,i as Q,l as B,p as L,r as J}from"./UROIIO5G.js";import i from"./N2PUZQSG.js";import"./VMLRM5N5.js";import g from"./TIZYANIH.js";import e from"./R2VIFEDB.js";import d from"./XOC3LIXD.js";import a from"./QNTIP7XB.js";import{C as T,c as R,q as x}from"./4DPFB567.js";import{d as b,e as O}from"./BGOWDCTO.js";import"./WVIP7B4W.js";import"./KX7KGXKQ.js";import{g as U,l as M}from"./SP2IPHWF.js";import"./LJTJTGIW.js";import{A,B as V,C as h,D as _,F as S,H as z,g as F,i as c,n as C,z as N}from"./7SBVBD4E.js";import"./DAFNQT4C.js";import"./QP5UAIC6.js";import"./KJZTU3DV.js";import{a as r,k as H}from"./K4APZJ2O.js";import"./BYSUABOV.js";export default $arcgis.t(([{substitute:ce},{Lc:j,ba:X,jc:K,pa:G,ta:Z},,,,,{b:v},,{a:W},,,,,{r:ie},{e:y,f:q},{b:k}])=>{var d={chartUIComponent:"chart-ui-component",tabBar:"tab-bar",tab:"tab"};function le(m,e){let t=new Set,a=e;return m?.forEach((i,s)=>{let o=i.chartId;(t.has(o)||o===void 0||o==="")&&(i.chartId=`Chart_${Date.now()}_${s}`,e===o&&(a=i.chartId)),t.add(o)}),a}function he(m,e,t){return m?.filter(a=>x(t,a.config)&&a.layer?.id===e)??[]}function de(m){let{modelList:e,layerList:t,activeLayerId:a,disableEditing:i}=m,s=new Map;return e?.forEach(o=>{let l=o.layer;l&&s.set(l.id,l)}),i||t.forEach(o=>s.set(o.id,o)),Array.from(s.values()).filter(o=>!a||o.id===a)}function me(m,e){m.forEach(t=>{e.forEach(a=>{t?.id===a.layer?.id&&ne(t,a)})})}function ne(m,e){let t=m;if(t){let a=[...t?.charts??[]],i=a?.findIndex(o=>o.id===e.chartId),s=!1;i!==void 0&&i>-1?(s=!M(a[i],e.config),a[i]=e.config):t&&!v(e.config)&&(s=!0,a.push(e.config)),s&&(t.charts=a)}}function pe(m,e){let t=m;if(t){let a=[...t.charts??[]],i=a.findIndex(s=>s.id===e);i>-1&&(a.splice(i,1),t.charts=a)}}function ue(m,e){let t=m;if(t){let a=[...t.charts??[]];a=T({arrayA:a,arrayB:e.map(i=>i.config),getKey:i=>i.id??i.title?.content.text??""}),t.charts=a}}var ge=F`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;flex:1 1 auto;overflow:hidden;height:inherit;max-height:100%}.chart-ui-component{overflow-y:auto;overflow-x:hidden}.label{display:flex;margin-left:1rem;margin-bottom:.5rem;justify-content:space-between}.text{display:flex;margin-left:1rem;width:calc(100% - 1.5rem);height:2rem;margin-bottom:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:scroll}.row{padding:.5rem}.bin-count-container{display:flex;width:calc(100% - 1rem);padding:.5rem}.bin-count-slider{margin-left:1rem;width:calc(90% - 1rem)}.bin-count-input{margin-left:1rem;height:2rem;width:2rem}.bin-row{padding:.5rem 0 .5rem .5rem}.tab-bar{display:flex}.tab{flex:1;height:2.5rem}`,D=class extends V{constructor(){super(),this.selectChartTypePopover=null,this.chartsListFlowItem=N(),this.supportedChartTypes=[r.BarSeries,r.BoxPlotSeries,r.LineSeries,r.PieSeries,r.HistogramSeries,r.ScatterSeries,r.HeatSeries],this._messages=I(),this.commonStrings=I({name:"common",blocking:!0}),this.chartDataProcessComplete=async e=>{let t=e,{chartData:a,model:i}=t.detail,s=this.getModel(this.selectedChartId);if(i?.isSameChartAs(s))switch(s?.chartType){case r.HistogramSeries:if(this.chartData=a,i&&(i.dataStore.chartData=a,O(i.layer))){let o=i,l=a?.bins?.length;l!==void 0&&o.binCount!==l&&(o.binCount=l)}break;case r.PieSeries:{this.chartData=a,i&&(i.dataStore.chartData=a);break}case r.ScatterSeries:{let o=a,{dataItems:l,r2:g,aggregated:u}=o,p=g;Number.isFinite(g)||(p=void 0),this.r2=p,Q(i)&&(i.dataStore.r2=p,i.dataStore.aggregated=u,u&&(i.additionalTooltipField=void 0)),this.calculatedDataMinMaxBounds=this.getDataExtent(l),i&&(i.dataStore.calculatedDataMinMaxBounds=this.calculatedDataMinMaxBounds);break}case r.LineSeries:case r.BarSeries:{let{dataItems:o,timeIntervalInfo:l}=a;(P(s)||Y(s)&&s.binTemporalData)&&(l?.size!==void 0&&s.temporalBinningSize!==l?.size&&(s.temporalBinningSize=l?.size),l?.unit!==void 0&&s.temporalBinningUnit!==l?.unit&&l?.unit!==H.Quarter&&(s.temporalBinningUnit=l?.unit),l?.size!==void 0&&l?.unit!==void 0&&ae($,{size:l.size,unit:l.unit})),this.calculatedDataMinMaxBounds=this.getDataExtent(o),i&&(i.dataStore.calculatedDataMinMaxBounds=this.calculatedDataMinMaxBounds);break}}},this.chartAxesMinMaxChange=e=>{let t=e,{bounds:a,model:i}=t.detail,s=this.getModel(this.selectedChartId),o=i?.isSameChartAs(s),l=s?.chartType;if(o)switch(l){case r.BarSeries:case r.BoxPlotSeries:case r.LineSeries:case r.HistogramSeries:case r.ScatterSeries:this.calculatedMinMaxBounds=a,i&&(i.dataStore.calculatedMinMaxBounds=a),this.updateAxesBoundsInAppState(a);break}},this.chartSeriesColorChange=e=>{let t=e,{colorMatchApplied:a,data:i,model:s}=t.detail,o=this.getModel(this.selectedChartId);if(s?.isSameChartAs(o))switch(o?.chartType){case r.BarSeries:case r.BoxPlotSeries:case r.LineSeries:case r.HistogramSeries:this.seriesColor=i,s&&(s.dataStore.seriesColor=i),this.applyNullCategorySeriesColor({colorMatchApplied:a,data:i,model:o});break;case r.PieSeries:{let l=new Map([[0,i]]);this.seriesColor=l,s&&(s.dataStore.seriesColor=l);break}case r.ScatterSeries:}},this.chartNoRenderPropChange=e=>{let t=e,{propName:a,value:i,model:s}=t.detail,o=this.modelList.find(l=>s?.isSameChartAs(l));if(o)switch(a){case"rotation":typeof i=="boolean"&&W(o)&&(o.rotated=i);break;case"legendPosition":typeof i=="string"&&L(o)&&(o.legendPosition=i);break;case"legendVisibility":typeof i=="boolean"&&L(o)&&(o.legendVisibility=i);break}},this.chartLegendItemVisibilityChange=e=>{let t=e,{legendItemVisibility:a,model:i}=t.detail,s=this.modelList.find(o=>i?.isSameChartAs(o));s?.setSeriesVisibility(a),B(s)&&((s.getMinBound(1)===null||Number.isNaN(s.getMinBound(1)))&&s.setMinBound(null,1),(s.getMaxBound(1)===null||Number.isNaN(s.getMaxBound(1)))&&s.setMaxBound(null,1),P(s)&&((s.getMinBound(0)===null||Number.isNaN(s.getMinBound(0)))&&s.setMinBound(null,0),(s.getMaxBound(0)===null||Number.isNaN(s.getMaxBound(0)))&&s.setMaxBound(null,0)))},this.onSelectChartTypeChange=e=>{this.currentChartTypeText="",this.calculatedDataMinMaxBounds=void 0,this.calculatedMinMaxBounds=void 0,this.removeSelectChartTypePopover();let{selectedModelType:t,layerId:a}=e.target;t!==void 0&&(this.allowChartSyncing=!0,this.arcgisChartsConfigNewChart.emit({key:"key",chartType:t,layerId:a}))},this.onAddChartClose=()=>{this.removeSelectChartTypePopover()},this.onModelConfigChange=e=>{if(this.syncChartsToLayers&&this.allowChartSyncing){let t=e.target;ne(t?.layer,t)}this.requestUpdate()},this.allowChartSyncing=!1,this.currentChartTypeText="",this.modelList=[],this.layerList=[],this.disableEditing=!1,this.syncChartsToLayers=!1,this.close=!1,this.usePopupTemplateFieldsInfo=!1,this.panelNumber=0,this.filterBySelection=!1,this.arcgisChartsConfigChartViewChartClose=C(),this.arcgisChartsConfigModelListChange=C(),this.arcgisChartsConfigNewChart=C(),this.arcgisChartsConfigPanelNumberChange=C(),this.arcgisChartsConfigSelectedChartChange=C(),this.addChartEventListeners(),this.listen("arcgisChartsConfigModelListReorder",this.modelListReorderChangeListener)}static{this.properties={selectedPanel:16,currentChartTypeText:16,messageOverrides:0,modelList:[0,{hasChanged:y}],layerList:[0,{hasChanged:y}],selectedChartId:1,activeLayerId:1,disableEditing:5,syncChartsToLayers:5,timeZone:1,headerTitle:1,close:5,chartData:[0,{hasChanged:y}],r2:9,calculatedDataMinMaxBounds:[0,{hasChanged:y}],calculatedMinMaxBounds:[0,{hasChanged:y}],seriesColor:[0,{hasChanged:q}],popoverPlacement:1,usePopupTemplateFieldsInfo:5,popupTemplateFieldInfosEnabled:5,panelNumber:9,filterBySelection:5}}static{this.styles=ge}async setFocus(){await this.chartsListFlowItem.value?.setFocus()}async load(){await this.layerListChange();let e=this.getModel(this.selectedChartId);this.setEventBasedPropsFromModelData(e)}willUpdate(e){e.has("layerList")&&this.layerListChange(),e.has("panelNumber")&&this.panelNumberChange(this.panelNumber),e.has("modelList")&&this.modelListChange(this.modelList,e.get("modelList")),e.has("selectedChartId")&&this.selectedChartIdChange(this.selectedChartId)}disconnectedCallback(){super.disconnectedCallback(),this.clearPartialModels(),this.removeSelectChartTypePopover()}applyNullCategorySeriesColor(e){let{colorMatchApplied:t,data:a,model:i}=e;J(i)&&i.nullCategory===void 0&&(i.nullCategory=this.getDefaultNullCategory(t?this.getSeriesColor(a):void 0))}getSeriesColor(e){let t=e.get(0),a;return t&&"color"in t?a=t.color:t&&"lineSymbol"in t&&(a=t.markerSymbol?.color??t.lineSymbol.color),a}getDefaultNullCategory(e){let t=U(R.nullCategory);return e!==void 0&&(t.fillSymbol&&(t.fillSymbol.color=e,t.fillSymbol.outline&&(t.fillSymbol.outline.color=e)),t.markerSymbol&&(t.markerSymbol.color=e,t.markerSymbol.outline&&(t.markerSymbol.outline.color=e))),t}modelListReorderChangeListener(e){let{modelList:t}=e.detail;if(this.modelList=T({arrayA:this.modelList,arrayB:t,getKey:a=>a.chartId??a.titleText??""}),this.syncChartsToLayers){let a=t.find(i=>i.layer?.id!==void 0)?.layer?.id;if(a){let i=this.layerList.find(s=>s.id.toString()===a);i&&ue(i,t)}}}async layerListChange(){let e=[],t=this.layerList.map(i=>i.id.toString()),a=[...this.modelList.filter(i=>t.includes(i.layer?.id??""))];for(let i of this.layerList??[]){if(i.type==="sublayer"){let o=await i.createFeatureLayer();if(!o)continue;i=o}let s=i.charts;for(let o of s??[]){let l=await ee({layer:i,config:o,commonStrings:this.commonStrings});l!==void 0&&e.push(l)}}le(e),e.forEach(i=>{a.find(s=>s.isSameChartAs(i))===void 0&&a.push(i)}),a=a.filter(i=>!K(i.config)),this.modelList=a}modelListChange(e,t){this.selectedChartId=le(e,this.selectedChartId),t?.forEach(i=>{i.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}),e.forEach(i=>{i.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)});let a=this.getModel(this.selectedChartId);this.currentChartTypeText=a?.chartType!==void 0?k({chartType:a.chartType,commonStrings:this.commonStrings,config:a.config}):"",this.syncChartsToLayers&&this.allowChartSyncing&&me(this.layerList,e),this.arcgisChartsConfigModelListChange.emit({modelList:e})}selectedChartIdChange(e){this.selectedChartId===void 0&&(this.panelNumber=0),this.selectedPanel=n.Data;let t=this.getModel(e);this.setEventBasedPropsFromModelData(t),this.currentChartTypeText=t?.chartType!==void 0?k({chartType:t.chartType,commonStrings:this.commonStrings,config:t.config}):"",e!==void 0&&e!==$.selectedChartId&&($.selectedChartId=e),this.allowChartSyncing=!0,this.arcgisChartsConfigSelectedChartChange.emit({key:"key",model:t})}panelNumberChange(e){e===0?this.clearPartialModels():e===1&&this.removeSelectChartTypePopover(),this.arcgisChartsConfigPanelNumberChange.emit({panelNumber:e,modelList:this.modelList})}addChartEventListeners(){this.listenOn(document,f.DataProcessComplete,this.chartDataProcessComplete),this.listenOn(document,f.AxesMinMaxChange,this.chartAxesMinMaxChange),this.listenOn(document,f.SeriesColorChange,this.chartSeriesColorChange),this.listenOn(document,f.NoRenderPropChange,this.chartNoRenderPropChange),this.listenOn(document,f.LegendItemVisibilityChange,this.chartLegendItemVisibilityChange)}getDataExtent(e){let t=this.getModel(this.selectedChartId)?.config,a=[];if(t!==void 0&&e!==void 0){let i=j({chartConfig:t,chartData:e}),{minY:s,maxY:o,minX:l,maxX:g}=i;a=[{isXAxis:!0,minimum:l,maximum:g},{isXAxis:!1,minimum:s,maximum:o}]}return a}updateAxesBoundsInAppState(e){e?.forEach(t=>{let{isXAxis:a,maximum:i,minimum:s}=t,o=this.getModel(this.selectedChartId);if(o!==void 0&&B(o)&&this.selectedChartId!==void 0){let l=new se(o,a),g=te({chartId:this.selectedChartId,isXAxis:a,isLogarithmic:l.getLogarithmic()}),u=$.chartAxesBoundDataMap;u[this.selectedChartId]===void 0&&(u[this.selectedChartId]={});let p=u[this.selectedChartId]?.[g],E={defaultMinBound:p?.defaultMinBound===p?.currMinBound?s:p?.defaultMinBound,currMinBound:s,defaultMaxBound:p?.defaultMaxBound===p?.currMaxBound?i:p?.defaultMaxBound,currMaxBound:i};!M(p,E)&&this.selectedChartId!==void 0&&u?.[this.selectedChartId]!==void 0&&(u[this.selectedChartId][g]=E)}})}getPlacement(){let e;return this.popoverPlacement!==void 0?e=this.popoverPlacement:e=this.modelList?.filter(t=>x(X,t.config)).length<=2?"bottom":"top",e}onBackFlow(){this.panelNumber-=1}async onAddChartClick(e){let{referenceElement:t,layerId:a,layerType:i}=e.detail,s=!0;if(b(i)&&a){let o=this.layerList.find(l=>l.id===a);b(o?.type)&&(s=!!(await Z(o))?.attributeTable)}this.setupSelectChartTypePopover(t,a,i,s)}setupSelectChartTypePopover(e,t,a,i=!0){let s=this.getPlacement();this.removeSelectChartTypePopover(),this.selectChartTypePopover=S(c`<arcgis-charts-config-select-chart-type-popover .referenceElement=${e} open .layerId=${t} .layerType=${a} .isRasterBarChartSupported=${i} .popoverPlacement=${s} @arcgisChartsConfigPopoverClose=${this.onAddChartClose} @arcgisChartsConfigSelectChartTypeChange=${this.onSelectChartTypeChange}></arcgis-charts-config-select-chart-type-popover>`),!document.body.contains(this.selectChartTypePopover)&&this.selectChartTypePopover!==null&&document.body.appendChild(this.selectChartTypePopover)}getModel(e){return this.modelList?.find(t=>t.chartId===e)}removeSelectChartTypePopover(){this.selectChartTypePopover!==void 0&&(this.selectChartTypePopover?.remove(),this.selectChartTypePopover=re(this.selectChartTypePopover))}clearPartialModels(){this.modelList=this.modelList.filter(e=>!v(e.config))}onViewChartDelete(e){let{chartId:t}=e.detail;if(t!==void 0){let a=this.modelList.find(s=>s.chartId===t),i=this.layerList.find(s=>s.id===a?.layer?.id);this.modelList=[...this.modelList.filter(s=>s.chartId!==t)],i&&this.syncChartsToLayers&&this.allowChartSyncing&&pe(i,t)}}onViewChartsSelect(e){this.selectedChartId===e.detail.chartId&&(this.allowChartSyncing=!0,this.arcgisChartsConfigSelectedChartChange.emit({key:"key",model:this.getModel(this.selectedChartId)})),this.selectedChartId=e.detail.chartId}onViewChartsEdit(e){this.onViewChartsSelect(e),this.panelNumber=1}onViewChartClose(){this.close=!0,this.removeSelectChartTypePopover(),this.arcgisChartsConfigChartViewChartClose.emit()}setEventBasedPropsFromModelData(e){this.chartData=e?.dataStore.chartData,this.r2=e?.dataStore.r2,this.seriesColor=e?.dataStore.seriesColor,this.calculatedMinMaxBounds=e?.dataStore.calculatedMinMaxBounds,this.calculatedDataMinMaxBounds=e?.dataStore.calculatedDataMinMaxBounds}createTooltip(e){let t=e.target,a="";switch(t.icon){case"configure":a=this._messages.data??"";break;case"graph-bar-stacked":case"graph-line-series":case"box-chart-series":a=this._messages.series??"";break;case"graph-pie-slice":a=this._messages.slices??"";break;case"graph-axis":a=this._messages.axes??"";break;case"graph-guides":a=this._messages.guides??"";break;case"palette":a=this._messages.format??"";break;case"text":a=this._messages.general??"";break;default:a="";break}this.tooltip=S(c`<calcite-tooltip style=${_({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${t} open placement=top>${a}</calcite-tooltip>`),document.body.appendChild(this.tooltip)}destroyTooltip(){ie(this.tooltip)}renderViewCharts(){let e=de({modelList:this.modelList,layerList:this.layerList,activeLayerId:this.activeLayerId,disableEditing:this.disableEditing});return oe(e,t=>t.id,t=>c`<arcgis-charts-config-view-charts .noGroup=${this.activeLayerId!==void 0} .modelList=${he(this.modelList,t.id.toString(),b(t.type)?G:this.supportedChartTypes)} .selectedChartId=${this.selectedChartId??""} .layer=${t} .disableEditing=${this.disableEditing} @arcgisChartsConfigViewChartSelect=${this.onViewChartsSelect} @arcgisChartsConfigViewChartEdit=${this.onViewChartsEdit} @arcgisChartsConfigViewChartDelete=${this.onViewChartDelete} @arcgisChartsConfigViewChartAddChart=${this.onAddChartClick}></arcgis-charts-config-view-charts>`)}render(){return this.close?null:c`<calcite-flow>${w("charts-list",c`<calcite-flow-item .selected=${this.panelNumber===0||this.disableEditing} .heading=${this.headerTitle??this._messages.defaultHeaderTitle} closable @calciteFlowItemClose=${this.onViewChartClose} ${A(this.chartsListFlowItem)}>${this.renderViewCharts()}</calcite-flow-item>`)}${this.panelNumber>=1&&!this.disableEditing?this.renderTabs():null}</calcite-flow>`}renderTabs(){let e=this.getModel(this.selectedChartId);return w("chart-edit",c`<calcite-flow-item .selected=${this.panelNumber>=1&&!this.disableEditing} @calciteFlowItemBack=${this.onBackFlow} .heading=${this._messages[this.selectedPanel??n.Data]} .description=${this.currentChartTypeText!==""&&this._messages.pageFlowTitle!==void 0?ce(this._messages.pageFlowTitle,{chartName:e?.titleText??this.currentChartTypeText,layerName:e?.layer?.title??""}):""}>${e?.chartType!==void 0?c`<calcite-action-bar class=${h(d.tabBar)} layout=horizontal expand-disabled><calcite-action class=${h(d.tab)} icon=configure scale=s alignment=center .active=${this.selectedPanel===n.Data||this.selectedPanel===void 0} @click=${()=>{this.selectedPanel=n.Data}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>${e?.chartType===r.BarSeries?c`<calcite-action class=${h(d.tab)} icon=graph-bar-stacked scale=s alignment=center .active=${this.selectedPanel===n.Series} @click=${()=>{this.selectedPanel=n.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series??""}></calcite-action>`:null}${e?.chartType===r.LineSeries?c`<calcite-action class=${h(d.tab)} icon=graph-line-series scale=s alignment=center .active=${this.selectedPanel===n.Series} @click=${()=>{this.selectedPanel=n.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series??""}></calcite-action>`:null}${e?.chartType===r.BoxPlotSeries?c`<calcite-action class=${h(d.tab)} icon=box-chart-series scale=s alignment=center .active=${this.selectedPanel===n.Series} @click=${()=>{this.selectedPanel=n.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series??""}></calcite-action>`:null}${e?.chartType===r.PieSeries?c`<calcite-action class=${h(d.tab)} icon=graph-pie-slice scale=s alignment=center .active=${this.selectedPanel===n.Slices} @click=${()=>{this.selectedPanel=n.Slices}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.slices??""}></calcite-action>`:null}${e?.chartType!==r.PieSeries&&e?.chartType!==r.HeatSeries?c`<calcite-action class=${h(d.tab)} icon=graph-axis scale=s alignment=center .active=${this.selectedPanel===n.Axes} @click=${()=>{this.selectedPanel=n.Axes}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.axes??""}></calcite-action>`:null}${e?.chartType!==r.PieSeries&&e?.chartType!==r.HeatSeries?c`<calcite-action class=${h(d.tab)} icon=graph-guides scale=s alignment=center .active=${this.selectedPanel===n.Guides} @click=${()=>{this.selectedPanel=n.Guides}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.guides??""}></calcite-action>`:null}<calcite-action class=${h(d.tab)} icon=palette scale=s alignment=center .active=${this.selectedPanel===n.Format} @click=${()=>{this.selectedPanel=n.Format}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.format??""}></calcite-action><calcite-action class=${h(d.tab)} icon=text scale=s alignment=center .active=${this.selectedPanel===n.General} @click=${()=>{this.selectedPanel=n.General}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.general??""}></calcite-action></calcite-action-bar>`:null}${this.renderChartUIComponent()}</calcite-flow-item>`)}renderChartUIComponent(){let e=this.getModel(this.selectedChartId),t=e?.layer,a=null;if(e!==void 0&&!this.disableEditing)switch(e?.chartType){case r.BarSeries:a=c`<arcgis-charts-config-bar-chart class=${h(d.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel??n.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-bar-chart>`;break;case r.LineSeries:a=c`<arcgis-charts-config-line-chart class=${h(d.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel??n.Data} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-line-chart>`;break;case r.PieSeries:a=c`<arcgis-charts-config-pie-chart class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .chartData=${this.chartData} .page=${this.selectedPanel??n.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor} .filterBySelection=${this.filterBySelection}></arcgis-charts-config-pie-chart>`;break;case r.HistogramSeries:a=c`<arcgis-charts-config-histogram class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel??n.Data} .chartData=${this.chartData} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-histogram>`;break;case r.ScatterSeries:a=c`<arcgis-charts-config-scatter-plot class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel??n.Data} .r2=${this.r2} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-scatter-plot>`;break;case r.BoxPlotSeries:a=c`<arcgis-charts-config-box-plot class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel??n.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-box-plot>`;break;case r.HeatSeries:a=c`<arcgis-charts-config-heat-chart class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel??n.Data}></arcgis-charts-config-heat-chart>`;break}return a}};z("arcgis-charts-config-create-flow",D);return D},"intl",a,d,e,g,i,j,k,l,m,o,p,q,s,t,u)
|
|
2
|
+
import u from"./XGOJWQ2M.js";import{a as se}from"./L7CMLBHB.js";import{a as oe}from"./D3YWSIAT.js";import{a as w}from"./IPEJCIHO.js";import{a as re}from"./IHO3OLL3.js";import t from"./2AYYSMS5.js";import{a as $,b as te,e as ae}from"./OBPAQN4H.js";import{a as f}from"./7NWEE7T2.js";import s from"./2GAKZXA7.js";import{d as n}from"./JYC77MVD.js";import{a as I}from"./SN4KBI42.js";import q from"./RXIRNKPO.js";import p from"./WIU4Z5RB.js";import o from"./N6FMZQZN.js";import{a as ee}from"./HVNUPBQA.js";import m from"./4V4XGO3V.js";import l from"./2ASLWSZG.js";import k from"./JKT2UC2C.js";import j from"./X7KNPTRQ.js";import{b as Y,c as P,i as Q,l as B,p as L,r as J}from"./UROIIO5G.js";import i from"./JZVACQMQ.js";import"./VMLRM5N5.js";import g from"./L4E3VJVV.js";import e from"./AGPCWGX5.js";import d from"./RPQJ6RNZ.js";import a from"./IAMJ6CBO.js";import{C as T,c as R,q as x}from"./4DPFB567.js";import{d as b,e as O}from"./BGOWDCTO.js";import"./WVIP7B4W.js";import"./KX7KGXKQ.js";import{g as U,l as M}from"./SP2IPHWF.js";import"./LJTJTGIW.js";import{A,B as V,C as h,D as _,F as S,H as z,g as F,i as c,n as C,z as N}from"./7SBVBD4E.js";import"./DAFNQT4C.js";import"./QP5UAIC6.js";import"./KJZTU3DV.js";import{a as r,k as H}from"./K4APZJ2O.js";import"./BYSUABOV.js";export default $arcgis.t(([{substitute:ce},{Lc:j,aa:X,ic:K,oa:G,sa:Z},,,,,{b:v},,{a:W},,,,,{r:ie},{e:y,f:q},{b:k}])=>{var d={chartUIComponent:"chart-ui-component",tabBar:"tab-bar",tab:"tab"};function le(m,e){let t=new Set,a=e;return m?.forEach((i,s)=>{let o=i.chartId;(t.has(o)||o===void 0||o==="")&&(i.chartId=`Chart_${Date.now()}_${s}`,e===o&&(a=i.chartId)),t.add(o)}),a}function he(m,e,t){return m?.filter(a=>x(t,a.config)&&a.layer?.id===e)??[]}function de(m){let{modelList:e,layerList:t,activeLayerId:a,disableEditing:i}=m,s=new Map;return e?.forEach(o=>{let l=o.layer;l&&s.set(l.id,l)}),i||t.forEach(o=>s.set(o.id,o)),Array.from(s.values()).filter(o=>!a||o.id===a)}function me(m,e){m.forEach(t=>{e.forEach(a=>{t?.id===a.layer?.id&&ne(t,a)})})}function ne(m,e){let t=m;if(t){let a=[...t?.charts??[]],i=a?.findIndex(o=>o.id===e.chartId),s=!1;i!==void 0&&i>-1?(s=!M(a[i],e.config),a[i]=e.config):t&&!v(e.config)&&(s=!0,a.push(e.config)),s&&(t.charts=a)}}function pe(m,e){let t=m;if(t){let a=[...t.charts??[]],i=a.findIndex(s=>s.id===e);i>-1&&(a.splice(i,1),t.charts=a)}}function ue(m,e){let t=m;if(t){let a=[...t.charts??[]];a=T({arrayA:a,arrayB:e.map(i=>i.config),getKey:i=>i.id??i.title?.content.text??""}),t.charts=a}}var ge=F`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;flex:1 1 auto;overflow:hidden;height:inherit;max-height:100%}.chart-ui-component{overflow-y:auto;overflow-x:hidden}.label{display:flex;margin-left:1rem;margin-bottom:.5rem;justify-content:space-between}.text{display:flex;margin-left:1rem;width:calc(100% - 1.5rem);height:2rem;margin-bottom:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:scroll}.row{padding:.5rem}.bin-count-container{display:flex;width:calc(100% - 1rem);padding:.5rem}.bin-count-slider{margin-left:1rem;width:calc(90% - 1rem)}.bin-count-input{margin-left:1rem;height:2rem;width:2rem}.bin-row{padding:.5rem 0 .5rem .5rem}.tab-bar{display:flex}.tab{flex:1;height:2.5rem}`,D=class extends V{constructor(){super(),this.selectChartTypePopover=null,this.chartsListFlowItem=N(),this.supportedChartTypes=[r.BarSeries,r.BoxPlotSeries,r.LineSeries,r.PieSeries,r.HistogramSeries,r.ScatterSeries,r.HeatSeries],this._messages=I(),this.commonStrings=I({name:"common",blocking:!0}),this.chartDataProcessComplete=async e=>{let t=e,{chartData:a,model:i}=t.detail,s=this.getModel(this.selectedChartId);if(i?.isSameChartAs(s))switch(s?.chartType){case r.HistogramSeries:if(this.chartData=a,i&&(i.dataStore.chartData=a,O(i.layer))){let o=i,l=a?.bins?.length;l!==void 0&&o.binCount!==l&&(o.binCount=l)}break;case r.PieSeries:{this.chartData=a,i&&(i.dataStore.chartData=a);break}case r.ScatterSeries:{let o=a,{dataItems:l,r2:g,aggregated:u}=o,p=g;Number.isFinite(g)||(p=void 0),this.r2=p,Q(i)&&(i.dataStore.r2=p,i.dataStore.aggregated=u,u&&(i.additionalTooltipField=void 0)),this.calculatedDataMinMaxBounds=this.getDataExtent(l),i&&(i.dataStore.calculatedDataMinMaxBounds=this.calculatedDataMinMaxBounds);break}case r.LineSeries:case r.BarSeries:{let{dataItems:o,timeIntervalInfo:l}=a;(P(s)||Y(s)&&s.binTemporalData)&&(l?.size!==void 0&&s.temporalBinningSize!==l?.size&&(s.temporalBinningSize=l?.size),l?.unit!==void 0&&s.temporalBinningUnit!==l?.unit&&l?.unit!==H.Quarter&&(s.temporalBinningUnit=l?.unit),l?.size!==void 0&&l?.unit!==void 0&&ae($,{size:l.size,unit:l.unit})),this.calculatedDataMinMaxBounds=this.getDataExtent(o),i&&(i.dataStore.calculatedDataMinMaxBounds=this.calculatedDataMinMaxBounds);break}}},this.chartAxesMinMaxChange=e=>{let t=e,{bounds:a,model:i}=t.detail,s=this.getModel(this.selectedChartId),o=i?.isSameChartAs(s),l=s?.chartType;if(o)switch(l){case r.BarSeries:case r.BoxPlotSeries:case r.LineSeries:case r.HistogramSeries:case r.ScatterSeries:this.calculatedMinMaxBounds=a,i&&(i.dataStore.calculatedMinMaxBounds=a),this.updateAxesBoundsInAppState(a);break}},this.chartSeriesColorChange=e=>{let t=e,{colorMatchApplied:a,data:i,model:s}=t.detail,o=this.getModel(this.selectedChartId);if(s?.isSameChartAs(o))switch(o?.chartType){case r.BarSeries:case r.BoxPlotSeries:case r.LineSeries:case r.HistogramSeries:this.seriesColor=i,s&&(s.dataStore.seriesColor=i),this.applyNullCategorySeriesColor({colorMatchApplied:a,data:i,model:o});break;case r.PieSeries:{let l=new Map([[0,i]]);this.seriesColor=l,s&&(s.dataStore.seriesColor=l);break}case r.ScatterSeries:}},this.chartNoRenderPropChange=e=>{let t=e,{propName:a,value:i,model:s}=t.detail,o=this.modelList.find(l=>s?.isSameChartAs(l));if(o)switch(a){case"rotation":typeof i=="boolean"&&W(o)&&(o.rotated=i);break;case"legendPosition":typeof i=="string"&&L(o)&&(o.legendPosition=i);break;case"legendVisibility":typeof i=="boolean"&&L(o)&&(o.legendVisibility=i);break}},this.chartLegendItemVisibilityChange=e=>{let t=e,{legendItemVisibility:a,model:i}=t.detail,s=this.modelList.find(o=>i?.isSameChartAs(o));s?.setSeriesVisibility(a),B(s)&&((s.getMinBound(1)===null||Number.isNaN(s.getMinBound(1)))&&s.setMinBound(null,1),(s.getMaxBound(1)===null||Number.isNaN(s.getMaxBound(1)))&&s.setMaxBound(null,1),P(s)&&((s.getMinBound(0)===null||Number.isNaN(s.getMinBound(0)))&&s.setMinBound(null,0),(s.getMaxBound(0)===null||Number.isNaN(s.getMaxBound(0)))&&s.setMaxBound(null,0)))},this.onSelectChartTypeChange=e=>{this.currentChartTypeText="",this.calculatedDataMinMaxBounds=void 0,this.calculatedMinMaxBounds=void 0,this.removeSelectChartTypePopover();let{selectedModelType:t,layerId:a}=e.target;t!==void 0&&(this.allowChartSyncing=!0,this.arcgisChartsConfigNewChart.emit({key:"key",chartType:t,layerId:a}))},this.onAddChartClose=()=>{this.removeSelectChartTypePopover()},this.onModelConfigChange=e=>{if(this.syncChartsToLayers&&this.allowChartSyncing){let t=e.target;ne(t?.layer,t)}this.requestUpdate()},this.allowChartSyncing=!1,this.currentChartTypeText="",this.modelList=[],this.layerList=[],this.disableEditing=!1,this.syncChartsToLayers=!1,this.close=!1,this.usePopupTemplateFieldsInfo=!1,this.panelNumber=0,this.filterBySelection=!1,this.arcgisChartsConfigChartViewChartClose=C(),this.arcgisChartsConfigModelListChange=C(),this.arcgisChartsConfigNewChart=C(),this.arcgisChartsConfigPanelNumberChange=C(),this.arcgisChartsConfigSelectedChartChange=C(),this.addChartEventListeners(),this.listen("arcgisChartsConfigModelListReorder",this.modelListReorderChangeListener)}static{this.properties={selectedPanel:16,currentChartTypeText:16,messageOverrides:0,modelList:[0,{hasChanged:y}],layerList:[0,{hasChanged:y}],selectedChartId:1,activeLayerId:1,disableEditing:5,syncChartsToLayers:5,timeZone:1,headerTitle:1,close:5,chartData:[0,{hasChanged:y}],r2:9,calculatedDataMinMaxBounds:[0,{hasChanged:y}],calculatedMinMaxBounds:[0,{hasChanged:y}],seriesColor:[0,{hasChanged:q}],popoverPlacement:1,usePopupTemplateFieldsInfo:5,popupTemplateFieldInfosEnabled:5,panelNumber:9,filterBySelection:5}}static{this.styles=ge}async setFocus(){await this.chartsListFlowItem.value?.setFocus()}async load(){await this.layerListChange();let e=this.getModel(this.selectedChartId);this.setEventBasedPropsFromModelData(e)}willUpdate(e){e.has("layerList")&&this.layerListChange(),e.has("panelNumber")&&this.panelNumberChange(this.panelNumber),e.has("modelList")&&this.modelListChange(this.modelList,e.get("modelList")),e.has("selectedChartId")&&this.selectedChartIdChange(this.selectedChartId)}disconnectedCallback(){super.disconnectedCallback(),this.clearPartialModels(),this.removeSelectChartTypePopover()}applyNullCategorySeriesColor(e){let{colorMatchApplied:t,data:a,model:i}=e;J(i)&&i.nullCategory===void 0&&(i.nullCategory=this.getDefaultNullCategory(t?this.getSeriesColor(a):void 0))}getSeriesColor(e){let t=e.get(0),a;return t&&"color"in t?a=t.color:t&&"lineSymbol"in t&&(a=t.markerSymbol?.color??t.lineSymbol.color),a}getDefaultNullCategory(e){let t=U(R.nullCategory);return e!==void 0&&(t.fillSymbol&&(t.fillSymbol.color=e,t.fillSymbol.outline&&(t.fillSymbol.outline.color=e)),t.markerSymbol&&(t.markerSymbol.color=e,t.markerSymbol.outline&&(t.markerSymbol.outline.color=e))),t}modelListReorderChangeListener(e){let{modelList:t}=e.detail;if(this.modelList=T({arrayA:this.modelList,arrayB:t,getKey:a=>a.chartId??a.titleText??""}),this.syncChartsToLayers){let a=t.find(i=>i.layer?.id!==void 0)?.layer?.id;if(a){let i=this.layerList.find(s=>s.id.toString()===a);i&&ue(i,t)}}}async layerListChange(){let e=[],t=this.layerList.map(i=>i.id.toString()),a=[...this.modelList.filter(i=>t.includes(i.layer?.id??""))];for(let i of this.layerList??[]){if(i.type==="sublayer"){let o=await i.createFeatureLayer();if(!o)continue;i=o}let s=i.charts;for(let o of s??[]){let l=await ee({layer:i,config:o,commonStrings:this.commonStrings});l!==void 0&&e.push(l)}}le(e),e.forEach(i=>{a.find(s=>s.isSameChartAs(i))===void 0&&a.push(i)}),a=a.filter(i=>!K(i.config)),this.modelList=a}modelListChange(e,t){this.selectedChartId=le(e,this.selectedChartId),t?.forEach(i=>{i.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}),e.forEach(i=>{i.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)});let a=this.getModel(this.selectedChartId);this.currentChartTypeText=a?.chartType!==void 0?k({chartType:a.chartType,commonStrings:this.commonStrings,config:a.config}):"",this.syncChartsToLayers&&this.allowChartSyncing&&me(this.layerList,e),this.arcgisChartsConfigModelListChange.emit({modelList:e})}selectedChartIdChange(e){this.selectedChartId===void 0&&(this.panelNumber=0),this.selectedPanel=n.Data;let t=this.getModel(e);this.setEventBasedPropsFromModelData(t),this.currentChartTypeText=t?.chartType!==void 0?k({chartType:t.chartType,commonStrings:this.commonStrings,config:t.config}):"",e!==void 0&&e!==$.selectedChartId&&($.selectedChartId=e),this.allowChartSyncing=!0,this.arcgisChartsConfigSelectedChartChange.emit({key:"key",model:t})}panelNumberChange(e){e===0?this.clearPartialModels():e===1&&this.removeSelectChartTypePopover(),this.arcgisChartsConfigPanelNumberChange.emit({panelNumber:e,modelList:this.modelList})}addChartEventListeners(){this.listenOn(document,f.DataProcessComplete,this.chartDataProcessComplete),this.listenOn(document,f.AxesMinMaxChange,this.chartAxesMinMaxChange),this.listenOn(document,f.SeriesColorChange,this.chartSeriesColorChange),this.listenOn(document,f.NoRenderPropChange,this.chartNoRenderPropChange),this.listenOn(document,f.LegendItemVisibilityChange,this.chartLegendItemVisibilityChange)}getDataExtent(e){let t=this.getModel(this.selectedChartId)?.config,a=[];if(t!==void 0&&e!==void 0){let i=j({chartConfig:t,chartData:e}),{minY:s,maxY:o,minX:l,maxX:g}=i;a=[{isXAxis:!0,minimum:l,maximum:g},{isXAxis:!1,minimum:s,maximum:o}]}return a}updateAxesBoundsInAppState(e){e?.forEach(t=>{let{isXAxis:a,maximum:i,minimum:s}=t,o=this.getModel(this.selectedChartId);if(o!==void 0&&B(o)&&this.selectedChartId!==void 0){let l=new se(o,a),g=te({chartId:this.selectedChartId,isXAxis:a,isLogarithmic:l.getLogarithmic()}),u=$.chartAxesBoundDataMap;u[this.selectedChartId]===void 0&&(u[this.selectedChartId]={});let p=u[this.selectedChartId]?.[g],E={defaultMinBound:p?.defaultMinBound===p?.currMinBound?s:p?.defaultMinBound,currMinBound:s,defaultMaxBound:p?.defaultMaxBound===p?.currMaxBound?i:p?.defaultMaxBound,currMaxBound:i};!M(p,E)&&this.selectedChartId!==void 0&&u?.[this.selectedChartId]!==void 0&&(u[this.selectedChartId][g]=E)}})}getPlacement(){let e;return this.popoverPlacement!==void 0?e=this.popoverPlacement:e=this.modelList?.filter(t=>x(X,t.config)).length<=2?"bottom":"top",e}onBackFlow(){this.panelNumber-=1}async onAddChartClick(e){let{referenceElement:t,layerId:a,layerType:i}=e.detail,s=!0;if(b(i)&&a){let o=this.layerList.find(l=>l.id===a);b(o?.type)&&(s=!!(await Z(o))?.attributeTable)}this.setupSelectChartTypePopover(t,a,i,s)}setupSelectChartTypePopover(e,t,a,i=!0){let s=this.getPlacement();this.removeSelectChartTypePopover(),this.selectChartTypePopover=S(c`<arcgis-charts-config-select-chart-type-popover .referenceElement=${e} open .layerId=${t} .layerType=${a} .isRasterBarChartSupported=${i} .popoverPlacement=${s} @arcgisChartsConfigPopoverClose=${this.onAddChartClose} @arcgisChartsConfigSelectChartTypeChange=${this.onSelectChartTypeChange}></arcgis-charts-config-select-chart-type-popover>`),!document.body.contains(this.selectChartTypePopover)&&this.selectChartTypePopover!==null&&document.body.appendChild(this.selectChartTypePopover)}getModel(e){return this.modelList?.find(t=>t.chartId===e)}removeSelectChartTypePopover(){this.selectChartTypePopover!==void 0&&(this.selectChartTypePopover?.remove(),this.selectChartTypePopover=re(this.selectChartTypePopover))}clearPartialModels(){this.modelList=this.modelList.filter(e=>!v(e.config))}onViewChartDelete(e){let{chartId:t}=e.detail;if(t!==void 0){let a=this.modelList.find(s=>s.chartId===t),i=this.layerList.find(s=>s.id===a?.layer?.id);this.modelList=[...this.modelList.filter(s=>s.chartId!==t)],i&&this.syncChartsToLayers&&this.allowChartSyncing&&pe(i,t)}}onViewChartsSelect(e){this.selectedChartId===e.detail.chartId&&(this.allowChartSyncing=!0,this.arcgisChartsConfigSelectedChartChange.emit({key:"key",model:this.getModel(this.selectedChartId)})),this.selectedChartId=e.detail.chartId}onViewChartsEdit(e){this.onViewChartsSelect(e),this.panelNumber=1}onViewChartClose(){this.close=!0,this.removeSelectChartTypePopover(),this.arcgisChartsConfigChartViewChartClose.emit()}setEventBasedPropsFromModelData(e){this.chartData=e?.dataStore.chartData,this.r2=e?.dataStore.r2,this.seriesColor=e?.dataStore.seriesColor,this.calculatedMinMaxBounds=e?.dataStore.calculatedMinMaxBounds,this.calculatedDataMinMaxBounds=e?.dataStore.calculatedDataMinMaxBounds}createTooltip(e){let t=e.target,a="";switch(t.icon){case"configure":a=this._messages.data??"";break;case"graph-bar-stacked":case"graph-line-series":case"box-chart-series":a=this._messages.series??"";break;case"graph-pie-slice":a=this._messages.slices??"";break;case"graph-axis":a=this._messages.axes??"";break;case"graph-guides":a=this._messages.guides??"";break;case"palette":a=this._messages.format??"";break;case"text":a=this._messages.general??"";break;default:a="";break}this.tooltip=S(c`<calcite-tooltip style=${_({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${t} open placement=top>${a}</calcite-tooltip>`),document.body.appendChild(this.tooltip)}destroyTooltip(){ie(this.tooltip)}renderViewCharts(){let e=de({modelList:this.modelList,layerList:this.layerList,activeLayerId:this.activeLayerId,disableEditing:this.disableEditing});return oe(e,t=>t.id,t=>c`<arcgis-charts-config-view-charts .noGroup=${this.activeLayerId!==void 0} .modelList=${he(this.modelList,t.id.toString(),b(t.type)?G:this.supportedChartTypes)} .selectedChartId=${this.selectedChartId??""} .layer=${t} .disableEditing=${this.disableEditing} @arcgisChartsConfigViewChartSelect=${this.onViewChartsSelect} @arcgisChartsConfigViewChartEdit=${this.onViewChartsEdit} @arcgisChartsConfigViewChartDelete=${this.onViewChartDelete} @arcgisChartsConfigViewChartAddChart=${this.onAddChartClick}></arcgis-charts-config-view-charts>`)}render(){return this.close?null:c`<calcite-flow>${w("charts-list",c`<calcite-flow-item .selected=${this.panelNumber===0||this.disableEditing} .heading=${this.headerTitle??this._messages.defaultHeaderTitle} closable @calciteFlowItemClose=${this.onViewChartClose} ${A(this.chartsListFlowItem)}>${this.renderViewCharts()}</calcite-flow-item>`)}${this.panelNumber>=1&&!this.disableEditing?this.renderTabs():null}</calcite-flow>`}renderTabs(){let e=this.getModel(this.selectedChartId);return w("chart-edit",c`<calcite-flow-item .selected=${this.panelNumber>=1&&!this.disableEditing} @calciteFlowItemBack=${this.onBackFlow} .heading=${this._messages[this.selectedPanel??n.Data]} .description=${this.currentChartTypeText!==""&&this._messages.pageFlowTitle!==void 0?ce(this._messages.pageFlowTitle,{chartName:e?.titleText??this.currentChartTypeText,layerName:e?.layer?.title??""}):""}>${e?.chartType!==void 0?c`<calcite-action-bar class=${h(d.tabBar)} layout=horizontal expand-disabled><calcite-action class=${h(d.tab)} icon=configure scale=s alignment=center .active=${this.selectedPanel===n.Data||this.selectedPanel===void 0} @click=${()=>{this.selectedPanel=n.Data}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>${e?.chartType===r.BarSeries?c`<calcite-action class=${h(d.tab)} icon=graph-bar-stacked scale=s alignment=center .active=${this.selectedPanel===n.Series} @click=${()=>{this.selectedPanel=n.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series??""}></calcite-action>`:null}${e?.chartType===r.LineSeries?c`<calcite-action class=${h(d.tab)} icon=graph-line-series scale=s alignment=center .active=${this.selectedPanel===n.Series} @click=${()=>{this.selectedPanel=n.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series??""}></calcite-action>`:null}${e?.chartType===r.BoxPlotSeries?c`<calcite-action class=${h(d.tab)} icon=box-chart-series scale=s alignment=center .active=${this.selectedPanel===n.Series} @click=${()=>{this.selectedPanel=n.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series??""}></calcite-action>`:null}${e?.chartType===r.PieSeries?c`<calcite-action class=${h(d.tab)} icon=graph-pie-slice scale=s alignment=center .active=${this.selectedPanel===n.Slices} @click=${()=>{this.selectedPanel=n.Slices}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.slices??""}></calcite-action>`:null}${e?.chartType!==r.PieSeries&&e?.chartType!==r.HeatSeries?c`<calcite-action class=${h(d.tab)} icon=graph-axis scale=s alignment=center .active=${this.selectedPanel===n.Axes} @click=${()=>{this.selectedPanel=n.Axes}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.axes??""}></calcite-action>`:null}${e?.chartType!==r.PieSeries&&e?.chartType!==r.HeatSeries?c`<calcite-action class=${h(d.tab)} icon=graph-guides scale=s alignment=center .active=${this.selectedPanel===n.Guides} @click=${()=>{this.selectedPanel=n.Guides}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.guides??""}></calcite-action>`:null}<calcite-action class=${h(d.tab)} icon=palette scale=s alignment=center .active=${this.selectedPanel===n.Format} @click=${()=>{this.selectedPanel=n.Format}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.format??""}></calcite-action><calcite-action class=${h(d.tab)} icon=text scale=s alignment=center .active=${this.selectedPanel===n.General} @click=${()=>{this.selectedPanel=n.General}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.general??""}></calcite-action></calcite-action-bar>`:null}${this.renderChartUIComponent()}</calcite-flow-item>`)}renderChartUIComponent(){let e=this.getModel(this.selectedChartId),t=e?.layer,a=null;if(e!==void 0&&!this.disableEditing)switch(e?.chartType){case r.BarSeries:a=c`<arcgis-charts-config-bar-chart class=${h(d.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel??n.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-bar-chart>`;break;case r.LineSeries:a=c`<arcgis-charts-config-line-chart class=${h(d.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel??n.Data} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-line-chart>`;break;case r.PieSeries:a=c`<arcgis-charts-config-pie-chart class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .chartData=${this.chartData} .page=${this.selectedPanel??n.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor} .filterBySelection=${this.filterBySelection}></arcgis-charts-config-pie-chart>`;break;case r.HistogramSeries:a=c`<arcgis-charts-config-histogram class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel??n.Data} .chartData=${this.chartData} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-histogram>`;break;case r.ScatterSeries:a=c`<arcgis-charts-config-scatter-plot class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel??n.Data} .r2=${this.r2} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-scatter-plot>`;break;case r.BoxPlotSeries:a=c`<arcgis-charts-config-box-plot class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel??n.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-box-plot>`;break;case r.HeatSeries:a=c`<arcgis-charts-config-heat-chart class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel??n.Data}></arcgis-charts-config-heat-chart>`;break}return a}};z("arcgis-charts-config-create-flow",D);return D},"intl",a,d,e,g,i,j,k,l,m,o,p,q,s,t,u)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import z from"./
|
|
2
|
+
import z from"./HEVW64SC.js";import x from"./JQU6SHEI.js";import"./52MUPDJX.js";import w from"./SCBFWKS5.js";import v from"./4V4XGO3V.js";import u from"./2ASLWSZG.js";import t from"./JKT2UC2C.js";import s from"./FWLBHMGZ.js";import r from"./DEEDTMN2.js";import q from"./U43J5GMJ.js";import p from"./X7KNPTRQ.js";import o from"./TGP4YGPD.js";import l from"./FDXSZJWC.js";import k from"./NIDK3VNZ.js";import j from"./WFNHDRCX.js";import"./UROIIO5G.js";import i from"./O3I5M2SH.js";import g from"./JZVACQMQ.js";import"./VMLRM5N5.js";import f from"./L4E3VJVV.js";import e from"./AGPCWGX5.js";import d from"./RPQJ6RNZ.js";import a from"./IAMJ6CBO.js";import"./4DPFB567.js";import"./BGOWDCTO.js";import{B as b,ca as n,i as y,oa as m}from"./WVIP7B4W.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./LJTJTGIW.js";import"./7SBVBD4E.js";import"./DAFNQT4C.js";import"./QP5UAIC6.js";import"./KJZTU3DV.js";import{a as h,u as c}from"./K4APZJ2O.js";import"./BYSUABOV.js";export default $arcgis.t(([{za:l},{q:A},,{e:u},,,,,,,,,,,,,{ta:x},{b:g,c:f,e:S},{b:p,d:T,f:V,h:L,j:C,t:B},X])=>{var F=Object.defineProperty,I=Object.getOwnPropertyDescriptor,v=(o,i,e,t)=>{for(var s=I(i,e),r=o.length-1,d;r>=0;r--)(d=o[r])&&(s=d(i,e,s)||s);return s&&F(i,e,s),s},a=class extends S{constructor(){super(...arguments),this._chartType=h.RadarSeries}async setup(i){await this.loadConfigFromLayer(i),this.setupLocalProps(),i.config!==void 0&&await this.rebuildSeries(),this.initDefaultSeries(),typeof this.resolveSetup=="function"&&this.resolveSetup()}get circularAxisField(){return this.xAxisField}set circularAxisField(i){this.xAxisField=i}get circularAxisLabelsVisibility(){return this.xAxisLabelsVisibility}set circularAxisLabelsVisibility(i){this.xAxisLabelsVisibility=i}get circularAxisTitleText(){return this.xAxisTitleText}set circularAxisTitleText(i){this.xAxisTitleText=i}get circularAxisTitleSymbol(){return this.xAxisTitleSymbol}set circularAxisTitleSymbol(i){this.xAxisTitleSymbol=i}get circularAxisTitleVisibility(){return this.xAxisTitleVisibility}set circularAxisTitleVisibility(i){this.xAxisTitleVisibility=i}get minCircularBound(){return this.minXBound}set minCircularBound(i){this.minXBound=i}get maxCircularBound(){return this.maxXBound}set maxCircularBound(i){this.maxXBound=i}get cursorCrosshairCircularLineVisibility(){return this.cursorCrosshairHorizontalLineVisibility}set cursorCrosshairCircularLineVisibility(i){this.cursorCrosshairHorizontalLineVisibility=i}get cursorCrosshairRadialLineVisibility(){return this.cursorCrosshairVerticalLineVisibility}set cursorCrosshairRadialLineVisibility(i){this.cursorCrosshairVerticalLineVisibility=i}generateCircularAxisTitle(){return this.generateXAxisTitle()}getDefaultCircularAxisTitleText(){return this.getDefaultXAxisTitleText()}addCircularAxisGuide(i,e){this.addXAxisGuide(i,e)}deleteCircularAxisGuide(i){this.deleteXAxisGuide(i)}addRadialAxisGuide(i,e){this.addYAxisGuide(i,e)}deleteRadialAxisGuide(i){this.deleteYAxisGuide(i)}generateRadialAxisTitle(){return this.generateYAxisTitle()}get axisLabelsOrientation(){return this._config.axes?.[0]?.labelsOrientation??c.Circular}set axisLabelsOrientation(i){let e=this._config.axes?.[0];e!==void 0&&(e.labelsOrientation=i)}get xAxisField(){return super.xAxisField}set xAxisField(i){super.xAxisField=i}get xAxisLabelsVisibility(){return super.xAxisLabelsVisibility}set xAxisLabelsVisibility(i){super.xAxisLabelsVisibility=i}get xAxisTitleText(){return super.xAxisTitleText}set xAxisTitleText(i){super.xAxisTitleText=i}get xAxisTitleSymbol(){return super.xAxisTitleSymbol}set xAxisTitleSymbol(i){super.xAxisTitleSymbol=i}get xAxisTitleVisibility(){return super.xAxisTitleVisibility}set xAxisTitleVisibility(i){super.xAxisTitleVisibility=i}get minXBound(){return super.minXBound}set minXBound(i){super.minXBound=i}get maxXBound(){return super.maxXBound}set maxXBound(i){super.maxXBound=i}generateXAxisTitle(){return super.generateXAxisTitle()}getDefaultXAxisTitleText(){return super.getDefaultXAxisTitleText()}addXAxisGuide(i,e){super.addXAxisGuide(i,e)}deleteXAxisGuide(i){super.deleteXAxisGuide(i)}addYAxisGuide(i,e){super.addYAxisGuide(i,e)}deleteYAxisGuide(i){super.deleteYAxisGuide(i)}generateYAxisTitle(){return super.generateYAxisTitle()}get cursorCrosshairHorizontalLineVisibility(){return super.cursorCrosshairHorizontalLineVisibility}set cursorCrosshairHorizontalLineVisibility(i){super.cursorCrosshairHorizontalLineVisibility=i}get cursorCrosshairVerticalLineVisibility(){return super.cursorCrosshairVerticalLineVisibility}set cursorCrosshairVerticalLineVisibility(i){super.cursorCrosshairVerticalLineVisibility=i}getHorizontalAxisLabelsBehavior(){return super.getHorizontalAxisLabelsBehavior()}setHorizontalAxisLabelsBehavior(i){super.setHorizontalAxisLabelsBehavior(i)}getVerticalAxisLabelsBehavior(){return super.getVerticalAxisLabelsBehavior()}setVerticalAxisLabelsBehavior(i){super.setVerticalAxisLabelsBehavior(i)}generateDefaultConfig(){let i=m(this.commonStrings);return i.series=[n({commonStrings:this.commonStrings,objectIDField:l(this.layerInfo.layer).idField})],i}initDefaultSeries(){this.defaultSeries=n({commonStrings:this.commonStrings,objectIDField:l(this.layerInfo.layer).idField})}resetSeriesStyling(){for(let i=0;i<this.seriesLength;i+=1){let e=b({colorIndex:i,opacity:y});if(f(e,i,this._config),V(e,i,this._config),this.layerInfo!==void 0){let t=this.getSeriesId(i),s=x({config:this._config,seriesIndex:i,layerInfo:this.layerInfo,commonStrings:this.commonStrings});s!==l(this.layerInfo.layer).idField&&g(s??t,i,this._config)}p(this.defaultSeries?.lineSymbol?.style,i,this._config),T(this.defaultSeries?.lineSymbol?.width,i,this._config),L(this.defaultSeries?.markerSymbol?.style,i,this._config),C(this.defaultSeries?.markerSymbol?.size,i,this._config)}this._config.colorMatch=!0}resetAvailable(){let i=!this.colorMatch,e=!1;if(!i)for(let t=0;t<this.seriesLength;t+=1){if(this.layerInfo!==void 0){let s=x({config:this._config,seriesIndex:t,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),r=this.getSeriesName(t);s!==void 0&&s!==l(this.layerInfo.layer).idField&&s!==r&&(e=!0)}if(this.defaultSeries?.lineSymbol?.style!==void 0&&this.defaultSeries?.lineSymbol.style!==this.getSeriesLineStyle(t)||this.defaultSeries?.lineSymbol?.width!==void 0&&this.defaultSeries?.lineSymbol.width!==this.getSeriesLineWidth(t)||this.defaultSeries?.markerSymbol?.style!==void 0&&this.defaultSeries?.markerSymbol?.style!==this.getSeriesMarkerStyle(t)||this.defaultSeries?.markerSymbol?.size!==void 0&&this.defaultSeries?.markerSymbol?.size!==this.getSeriesMarkerSize(t)){e=!0;break}}return i||e}};v([u],a.prototype,"axisLabelsOrientation");v([u],a.prototype,"resetSeriesStyling");var G=[B,X];A(a,G);return a},a,d,e,f,g,i,j,k,l,o,p,q,r,s,t,u,v,w,x,z)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import w from"./
|
|
2
|
+
import w from"./6WE5NXCL.js";import v from"./SCBFWKS5.js";import u from"./4V4XGO3V.js";import t from"./2ASLWSZG.js";import s from"./JKT2UC2C.js";import r from"./FWLBHMGZ.js";import q from"./DEEDTMN2.js";import o from"./U43J5GMJ.js";import n from"./X7KNPTRQ.js";import l from"./TGP4YGPD.js";import k from"./FDXSZJWC.js";import j from"./NIDK3VNZ.js";import i from"./WFNHDRCX.js";import"./UROIIO5G.js";import f from"./O3I5M2SH.js";import e from"./JZVACQMQ.js";import"./VMLRM5N5.js";import d from"./L4E3VJVV.js";import c from"./AGPCWGX5.js";import b from"./RPQJ6RNZ.js";import a from"./IAMJ6CBO.js";import{c as y}from"./4DPFB567.js";import"./BGOWDCTO.js";import{B as m,ea as S,i as g,la as p}from"./WVIP7B4W.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./LJTJTGIW.js";import"./7SBVBD4E.js";import"./DAFNQT4C.js";import"./QP5UAIC6.js";import"./KJZTU3DV.js";import{a as h}from"./K4APZJ2O.js";import"./BYSUABOV.js";export default $arcgis.t(([{za:a},{q:u},,{e:n},,,,,,,,,,,{c:v},,{ta:f},{b:I,c:b,d:_,e:L},{a:O,b:z,c:F,d:H,e:x}])=>{var B=Object.defineProperty,C=Object.getOwnPropertyDescriptor,l=(c,e,s,t)=>{for(var i=C(e,s),o=c.length-1,d;o>=0;o--)(d=c[o])&&(i=d(e,s,i)||i);return i&&B(e,s,i),i},r=class extends L{constructor(){super(...arguments),this._chartType=h.BarSeries}async setup(e){await this.loadConfigFromLayer(e),this.setupLocalProps(),e.config!==void 0&&await this.rebuildSeries(),typeof this.resolveSetup=="function"&&this.resolveSetup()}generateDefaultConfig(){let e=p(this.commonStrings);return e.series=[S({objectIDField:a(this.layerInfo.layer).idField,commonStrings:this.commonStrings})],e}getSeriesHideOversizedSideBySideLabels(e){return O(e,this._config)}setSeriesHideOversizedSideBySideLabels(e,s){z(e,s,this._config)}getSeriesHideOversizedStackedLabels(e){return F(e,this._config)}setSeriesHideOversizedStackedLabels(e,s){H(e,s,this._config)}getSortOrder(){return v(this._config)}resetSeriesStyling(){for(let e=0;e<this.seriesLength;e+=1){let s=this.getSeriesId(e),t=m({colorIndex:e,opacity:g});if(b(t,e,this._config),this.layerInfo!==void 0){let i=f({config:this._config,seriesIndex:e,layerInfo:this.layerInfo,commonStrings:this.commonStrings});i!==a(this.layerInfo.layer).idField&&I(i??s,e,this._config)}}this.nullCategory!==void 0&&_(this._config,y.nullCategory),this._config.colorMatch=!0}resetAvailable(){let e=!this.colorMatch,s=!1;if(!e&&this.layerInfo!==void 0)for(let t=0;t<this.seriesLength;t+=1){let i=f({config:this._config,seriesIndex:t,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),o=this.getSeriesName(t);if(i!==void 0&&i!==a(this.layerInfo.layer).idField&&i!==o){s=!0;break}}return e||s}};l([n],r.prototype,"setSeriesHideOversizedSideBySideLabels");l([n],r.prototype,"setSeriesHideOversizedStackedLabels");l([n],r.prototype,"resetSeriesStyling");var k=[x];u(r,k);return r},a,b,c,d,e,f,i,j,k,l,n,o,q,r,s,t,u,v,w)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import x from"./
|
|
2
|
+
import x from"./HEVW64SC.js";import w from"./JQU6SHEI.js";import"./52MUPDJX.js";import v from"./SCBFWKS5.js";import u from"./4V4XGO3V.js";import t from"./2ASLWSZG.js";import s from"./JKT2UC2C.js";import r from"./FWLBHMGZ.js";import q from"./DEEDTMN2.js";import p from"./U43J5GMJ.js";import o from"./X7KNPTRQ.js";import n from"./TGP4YGPD.js";import k from"./FDXSZJWC.js";import j from"./NIDK3VNZ.js";import i from"./WFNHDRCX.js";import"./UROIIO5G.js";import h from"./O3I5M2SH.js";import g from"./JZVACQMQ.js";import"./VMLRM5N5.js";import f from"./L4E3VJVV.js";import e from"./AGPCWGX5.js";import b from"./RPQJ6RNZ.js";import a from"./IAMJ6CBO.js";import"./4DPFB567.js";import"./BGOWDCTO.js";import{B as c,ba as l,i as S,na as d}from"./WVIP7B4W.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./LJTJTGIW.js";import"./7SBVBD4E.js";import"./DAFNQT4C.js";import"./QP5UAIC6.js";import"./KJZTU3DV.js";import{a as m}from"./K4APZJ2O.js";import"./BYSUABOV.js";export default $arcgis.t(([{za:o},{q:y},,{e:g},,,,,,,,,,,,,{ta:h},{b:u,c:p,e:b},{b:I,d:v,f:_,h:k,j:F,t:L},w])=>{var D=Object.defineProperty,M=Object.getOwnPropertyDescriptor,x=(n,e,s,t)=>{for(var i=M(e,s),r=n.length-1,f;r>=0;r--)(f=n[r])&&(i=f(e,s,i)||i);return i&&D(e,s,i),i},a=class extends b{constructor(){super(...arguments),this._chartType=m.LineSeries}async setup(e){await this.loadConfigFromLayer(e),this.setupLocalProps(),e.config!==void 0&&await this.rebuildSeries(),this.initDefaultSeries(),typeof this.resolveSetup=="function"&&this.resolveSetup()}generateDefaultConfig(){let e=d(this.commonStrings);return e.series=[l({commonStrings:this.commonStrings,objectIDField:o(this.layerInfo.layer).idField})],e}initDefaultSeries(){this.defaultSeries=l({commonStrings:this.commonStrings,objectIDField:o(this.layerInfo.layer).idField})}resetSeriesStyling(){for(let e=0;e<this.seriesLength;e+=1){let s=c({colorIndex:e,opacity:S});if(p(s,e,this._config),_(s,e,this._config),this.layerInfo!==void 0){let t=this.getSeriesId(e),i=h({config:this._config,seriesIndex:e,layerInfo:this.layerInfo,commonStrings:this.commonStrings});i!==o(this.layerInfo.layer).idField&&u(i??t,e,this._config)}I(this.defaultSeries?.lineSymbol?.style,e,this._config),v(this.defaultSeries?.lineSymbol?.width,e,this._config),k(this.defaultSeries?.markerSymbol?.style,e,this._config),F(this.defaultSeries?.markerSymbol?.size,e,this._config)}this._config.colorMatch=!0}resetAvailable(){let e=!this.colorMatch,s=!1;if(!e)for(let t=0;t<this.seriesLength;t+=1){if(this.layerInfo!==void 0){let i=h({config:this._config,seriesIndex:t,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),r=this.getSeriesName(t);i!==void 0&&i!==this.layerInfo.objectIdField&&i!==r&&(s=!0)}if(this.defaultSeries?.lineSymbol?.style!==void 0&&this.defaultSeries?.lineSymbol.style!==this.getSeriesLineStyle(t)||this.defaultSeries?.lineSymbol?.width!==void 0&&this.defaultSeries?.lineSymbol.width!==this.getSeriesLineWidth(t)||this.defaultSeries?.markerSymbol?.style!==void 0&&this.defaultSeries?.markerSymbol?.style!==this.getSeriesMarkerStyle(t)||this.defaultSeries?.markerSymbol?.size!==void 0&&this.defaultSeries?.markerSymbol?.size!==this.getSeriesMarkerSize(t)){s=!0;break}}return e||s}};x([g],a.prototype,"resetSeriesStyling");var j=[L,w];y(a,j);return a},a,b,e,f,g,h,i,j,k,n,o,p,q,r,s,t,u,v,w,x)
|
package/dist/cdn/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as i}from"./YAG3OP7J.js";import{G as a,q as e}from"./7SBVBD4E.js";import"./DAFNQT4C.js";import"./QP5UAIC6.js";import"./KJZTU3DV.js";import"./K4APZJ2O.js";import"./BYSUABOV.js";var r=e(a,{"arcgis-chart":[()=>import("./DFG62DWV.js"),"_commonStrings:,_messages:,actionMode,allowUsingObjectIdStat,animationEnabled,aria:,autoDestroyDisabled,autoDisposeChart,autoInverseDataLabelTextColor,calciteThemingCSSVariables:,chartIndex,chartLimits:,chartWillRender:,configurationEnabled,cursorRange,dataLabelFormatter:,disableInteractions,disableTogglingLegendItems,enableBetaFeatures,enableConfiguration,enableResponsiveFeatures,errorPolicy,featureIndex,filterByExtent,filterBySelection,filterByViewExtent,gaugeInnerLabelFormatter:,guideTooltipFormatter:,hideEmptySeries,hideLicenseWatermark,hideLoaderAnimation,hideUIMessages,hideZeroCountCategories,ignoreSmoothRenderingLimit,ignoreViewExtent,interactionsDisabled,layer:,layerFieldsChangePolicy,layerFilterChangePolicy,layerItemId,layerRendererChangePolicy,legendPosition,legendValueLabelFormatter:,legendVisibility,loaderColors:,messageOverrides:,model:,nullAsValid,placeholder,popupTemplateFieldInfosEnabled,queueChartCreation,replaceNoValueCategoryWithZero,returnFeaturesExtent,returnSelectionIndexes,returnSelectionOIDs,rotated,rotation,runtimeDataFilters:,secondaryYAxisLabelFormatter:,selectionData:,selectionManager:,selectionTheme:,setTimeBinningInfoWhenNotProvided,showEmptySeries,showLicenseWatermark,showUIMessages,skipChartCreationQueue,syncChartsSelection,syncSelection,syncSelectionsBetweenChartAndLayerViewPolicy,syncViewSelection,syncViewTimeExtent,syncViewTimeZone,syncViewTimeZoneInclusionList:,timeZone,togglingLegendItemsDisabled,tooltipFormatter:,updateSplitBySeries:,useAnimatedCharts,usePopupTemplateFieldsInfo,view:,viewTimeExtentChangePolicy,xAxisLabelFormatter:,yAxisLabelFormatter:,zeroCountAsValid;clearSelection,destroy,errorAlert,exportAsCSV,exportAsImage,loadModel,notify,refresh,resetZoom,switchSelection;applySelectionFromSelectionManager"],"arcgis-charts-action-bar":[()=>import("./TTF7P7P3.js"),"_messages:,actionBarSelectionMode,chartElement:,chartType,clearSelectionState,clearSelectionTitle,clearSelectionToggle,commonStrings:,csvExportExclusionList:,disableCSVExportForChartTypes:,editChartState,editChartTitle,editChartToggle,expanded,exportActionState,exportAsCSVState,exportAsCSVTitle,exportAsImageState,exportAsImageTitle,filterByExtentState,filterByExtentTitle,filterByExtentToggle,filterBySelectionState,filterBySelectionTitle,filterBySelectionToggle,forceDisableActions,fullExtentState,fullExtentTitle,fullExtentToggle,hiddenActions:,legendState,legendTitle,legendToggle,messageOverrides:,rotateChartState,rotateChartTitle,rotateChartToggle,selectionState,selectionTitle,selectionToggle,switchSelectionState,switchSelectionTitle,switchSelectionToggle,zoomState,zoomTitle,zoomToggle"],"arcgis-charts-config-axes":[()=>import("./O7LPETXX.js"),"calculatedDataMinMaxBounds:,calculatedMinMaxBounds:,messageOverrides:,model:,open,showEnableXLogOption,showEnableYLogOption,showMaxXBoundOption,showMaxYBoundOption,showMinXBoundOption,showMinYBoundOption"],"arcgis-charts-config-axis":[()=>import("./ZZTMINB2.js"),"axisTitle,dataMaxValue,dataMinValue,initialMaxBound,initialMinBound,isXAxis,maxBoundMaxLimit,maxBoundMinLimit,messageOverrides:,minBoundMaxLimit,minBoundMinLimit,model:,showEnableLogOption,showMaxBoundOption,showMinBoundOption"],"arcgis-charts-config-bar-chart":[()=>import("./6BPYNQZ7.js"),"calculatedMinMaxBounds:,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,seriesColor:,timeZone,usePopupTemplateFieldsInfo"],"arcgis-charts-config-bar-chart-data":[()=>import("./ZGN456TH.js"),"layerFieldsInfo:,messageOverrides:,model:,open"],"arcgis-charts-config-bar-chart-popover":[()=>import("./NTZFHNTR.js"),"contentKind,headingTitle,isCustomSortDisabled,isNoAggregationDisabled,layerFieldsInfo:,messageOverrides:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-bar-chart-series":[()=>import("./UFEYXEPD.js"),"activeColorMatch,messageOverrides:,model:,popoverPlacement"],"arcgis-charts-config-bar-chart-series-popover":[()=>import("./A5NTUZHK.js"),"messageOverrides:,nullCategory:,open,placement,referenceElement:,selectedColor:,selectedName,selectedSeriesIndex;reposition"],"arcgis-charts-config-box-plot":[()=>import("./5HOPWMOU.js"),"calculatedMinMaxBounds:,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,seriesColor:,usePopupTemplateFieldsInfo"],"arcgis-charts-config-box-plot-data":[()=>import("./OS2BL2C3.js"),"layerFieldsInfo:,messageOverrides:,model:"],"arcgis-charts-config-box-plot-popover":[()=>import("./YZVUKFL4.js"),"contentKind,headingTitle,isCustomSortDisabled,layerFieldsInfo:,messageOverrides:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-box-plot-series":[()=>import("./QSHTE5WJ.js"),"activeColorMatch,configSeriesOpen,messageOverrides:,model:,popoverPlacement"],"arcgis-charts-config-box-plot-series-popover":[()=>import("./4B2OSQ56.js"),"isLineSymbol,labelCanBeConfigured,messageOverrides:,open,placement,referenceElement:,selectedColor:,selectedLineStyle,selectedLineWidth,selectedName,selectedSeriesIndex;reposition"],"arcgis-charts-config-category-format":[()=>import("./3FWY35ZY.js"),"categoryFormat:,messageOverrides:"],"arcgis-charts-config-chart-rename-popover":[()=>import("./ABJIGQPU.js"),"messageOverrides:,name,open,referenceElement:;reposition"],"arcgis-charts-config-color-style":[()=>import("./TMGMKM5F.js"),"enableClose,header,messageOverrides:,open,selectedColor:"],"arcgis-charts-config-colors":[()=>import("./LU4QKTHT.js"),"heading,messageOverrides:,rgba:"],"arcgis-charts-config-create-flow":[()=>import("./NPY4FHFQ.js"),"activeLayerId,calculatedDataMinMaxBounds:,calculatedMinMaxBounds:,chartData:,close,disableEditing,filterBySelection,headerTitle,layerList:,messageOverrides:,modelList:,panelNumber,popoverPlacement,popupTemplateFieldInfosEnabled,r2,selectedChartId,seriesColor:,syncChartsToLayers,timeZone,usePopupTemplateFieldsInfo;setFocus"],"arcgis-charts-config-field-picker":[()=>import("./IJWJOXQC.js"),"disabled,invalid,label"],"arcgis-charts-config-font-style":[()=>import("./QPADYNBN.js"),"enableClose,fontStyle:,header,messageOverrides:,open"],"arcgis-charts-config-format":[()=>import("./M3RJM6PA.js"),"messageOverrides:,model:"],"arcgis-charts-config-format-popover":[()=>import("./F7UO7P33.js"),"messageOverrides:,open,placement,referenceElement:,selectedElement:;reposition"],"arcgis-charts-config-general":[()=>import("./RL4NP732.js"),"messageOverrides:,model:,open"],"arcgis-charts-config-guide":[()=>import("./5DOL5WYT.js"),"calculatedMinMaxBounds:,index,latestGuidePosition,messageOverrides:,model:,orientation,timeZone"],"arcgis-charts-config-guide-popover":[()=>import("./3U6ESLPG.js"),"messageOverrides:,open,placement,referenceElement:,selectedElement:;reposition"],"arcgis-charts-config-guides":[()=>import("./AVJGLPDW.js"),"calculatedMinMaxBounds:,enableXAxisGuide,enableYAxisGuide,messageOverrides:,model:,open,timeZone"],"arcgis-charts-config-guides-type-popover":[()=>import("./TS7M5QXS.js"),"enableXAxisGuide,enableYAxisGuide,messageOverrides:,open,placement,referenceElement:;reposition"],"arcgis-charts-config-heat-chart":[()=>import("./ZOAO7KM4.js"),"layer:,model:,page,popupTemplateFieldInfosEnabled,usePopupTemplateFieldsInfo"],"arcgis-charts-config-heat-chart-data":[()=>import("./EQASVQYJ.js"),"layerFieldsInfo:,messageOverrides:,model:,open"],"arcgis-charts-config-heat-chart-popover":[()=>import("./F5BDRYHY.js"),"colorRamps:,contentKind,headingTitle,isFlipped,layerFieldsInfo:,messageOverrides:,model:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-histogram":[()=>import("./2OKKN3FN.js"),"calculatedMinMaxBounds:,chartData:,layer:,model:,page,popupTemplateFieldInfosEnabled,seriesColor:,usePopupTemplateFieldsInfo"],"arcgis-charts-config-histogram-data":[()=>import("./6GMKBFMW.js"),"countValue,layerFieldsInfo:,maxValue,meanValue,medianValue,messageOverrides:,minValue,model:,nullsValue,open,selectedOverlaySymbolType,standardDevValue,sumValue"],"arcgis-charts-config-histogram-popover":[()=>import("./7ODFP7BY.js"),"contentKind,headingTitle,layerFieldsInfo:,messageOverrides:,open,placement,referenceElement:,selectedBinColor:,selectedNumericField,selectedOverlaySymbol:,selectedOverlaySymbolType,selectedTransformationType;reposition"],"arcgis-charts-config-invalid-input-message":[()=>import("./EP3WIZBT.js"),"invalidInputMessage,isInvalid"],"arcgis-charts-config-line-chart":[()=>import("./CTK2ZK4B.js"),"calculatedDataMinMaxBounds:,calculatedMinMaxBounds:,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,seriesColor:,timeZone,usePopupTemplateFieldsInfo"],"arcgis-charts-config-line-chart-data":[()=>import("./J4R4VLYB.js"),"layerFieldsInfo:,messageOverrides:,model:,resetTimeInterval:"],"arcgis-charts-config-line-chart-popover":[()=>import("./35223Y63.js"),"contentKind,headingTitle,layerFieldsInfo:,messageOverrides:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-line-chart-series":[()=>import("./UVYYOM7H.js"),"activeColorMatch,messageOverrides:,model:,popoverPlacement"],"arcgis-charts-config-line-chart-series-popover":[()=>import("./Z7XPQNHN.js"),"messageOverrides:,open,placement,referenceElement:,selectedColor:,selectedLineStyle,selectedLineWidth,selectedName,selectedSeriesIndex;reposition"],"arcgis-charts-config-line-style":[()=>import("./MK53NV42.js"),"enableClose,header,lineStyle:,messageOverrides:,open,usePanel"],"arcgis-charts-config-number-format":[()=>import("./SKCMJ7CC.js"),"messageOverrides:,numberFormat:"],"arcgis-charts-config-pie-chart":[()=>import("./A7GKTMZO.js"),"calculatedMinMaxBounds:,chartData:,filterBySelection,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,seriesColor:,usePopupTemplateFieldsInfo"],"arcgis-charts-config-pie-chart-data":[()=>import("./RGORGHSV.js"),"layerFieldsInfo:,messageOverrides:,model:"],"arcgis-charts-config-pie-chart-popover":[()=>import("./4KFRUTOH.js"),"contentKind,headingTitle,layerFieldsInfo:,messageOverrides:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-pie-chart-slices":[()=>import("./CTUDTSGM.js"),"chartData:,messageOverrides:,model:,popoverPlacement"],"arcgis-charts-config-pie-chart-slices-popover":[()=>import("./JMYWZDZT.js"),"messageOverrides:,open,placement,referenceElement:,selectedColor:,selectedName,selectedSliceId;reposition"],"arcgis-charts-config-scatter-plot":[()=>import("./PVTAABF2.js"),"calculatedDataMinMaxBounds:,calculatedMinMaxBounds:,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,r2,usePopupTemplateFieldsInfo"],"arcgis-charts-config-scatter-plot-data":[()=>import("./5ZNHPOV2.js"),"isTableLayer,layerFieldsInfo:,messageOverrides:,model:,r2"],"arcgis-charts-config-scatter-plot-popover":[()=>import("./IBNGMKY7.js"),"contentKind,headingTitle,layerFieldsInfo:,messageOverrides:,open,placement,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-select-chart-type-popover":[()=>import("./DB2GBCE3.js"),"headerTitle,isRasterBarChartSupported,layerId,layerType,messageOverrides:,open,popoverPlacement,referenceElement:,selectedModelType;reposition"],"arcgis-charts-config-view-charts":[()=>import("./RZHNQC2X.js"),"disableEditing,layer:,messageOverrides:,modelList:,noGroup,selectedChartId"],"arcgis-charts-info-modal":[()=>import("./6IQK654E.js"),"calciteThemeColors:,heading,loaderColors:,message,showLoader"]});r({resourcesUrl:import.meta.url});var t=new CSSStyleSheet;t.replaceSync('@layer{:not([hydrated]):is(arcgis-chart,arcgis-charts-action-bar){visibility:hidden}:root,:host{--arcgis-charts-config-calcite-block-default-width: 100%;--arcgis-charts-config-calcite-block-default-height: auto;--arcgis-charts-config-default-max-width: 100%;--arcgis-charts-config-default-max-height: 100%;--arcgis-charts-background: rgb(223, 223, 223);--calcite-ui-foreground: rgb(223, 223, 223);--calcite-app-background-content: rgb(0, 0, 0, 0);--config-width: 40%;--config-height: 600px;--placement-direction: "row"}:root{--arcgis-charts-curtain-opacity: 1;--arcgis-charts-popup-ol-padding: 2em;--arcgis-charts-popup-body-padding-left: 0;--arcgis-charts-default-width: 100%;--arcgis-charts-default-height: 100%;--arcgis-charts-config-calcite-block-default-margin: 0;--arcgis-charts-config-margin-minor: .5rem;--arcgis-charts-config-margin-major: 1rem;--arcgis-charts-config-popover-pick-list-max-width: 314px;--arcgis-charts-inter-section-margin: .9rem;--arcgis-charts-intra-section-margin: .3rem;--arcgis-charts-top-section-margin: .6rem;--arcgis-charts-input-height: 2.4rem;--arcgis-charts-panel-padding: 0 1rem;--arcgis-charts-border-radius: .2rem;--arcgis-charts-input-background: #ffffff;--arcgis-charts-border: #eaeaea;--arcgis-charts-border-hover: #dfdfdf;--arcgis-charts-border-invalid: red;--arcgis-charts-background-clear: transparent;--arcgis-charts-dim-text: rgb(150, 150, 150);--arcgis-charts-side-spacing: 1rem;--arcgis-charts-side-spacing-three-quarters: calc(var(--arcgis-charts-side-spacing) * 3 / 4);--arcgis-charts-side-spacing-half: calc(var(--arcgis-charts-side-spacing) / 2);--arcgis-charts-side-spacing-third: calc(var(--arcgis-charts-side-spacing) / 3);--arcgis-charts-side-spacing-quarter: calc(var(--arcgis-charts-side-spacing) / 4);--arcgis-charts-side-spacing-eighth: calc(var(--arcgis-charts-side-spacing) / 8);--arcgis-charts-side-spacing-plus-half: calc(var(--arcgis-charts-side-spacing) * 1.5);--arcgis-charts-side-spacing-double: calc(var(--arcgis-charts-side-spacing) * 2)}}');document.adoptedStyleSheets=[...document.adoptedStyleSheets,t];export{i as createModel};window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r,p,j,i=(a.importMap??={}).imports??={})=>{"model/shared/setup-utils".split(",").map(e=>i[p+e+j]=i[p+e]=import.meta.resolve("./"+e+j));a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,a,"@arcgis/charts-components/",".js");(($arcgis.importMap??={}).imports??={})["@arcgis/charts-components"]=import.meta.url
|
|
2
|
+
import{a as i}from"./HVNUPBQA.js";import{G as a,q as e}from"./7SBVBD4E.js";import"./DAFNQT4C.js";import"./QP5UAIC6.js";import"./KJZTU3DV.js";import"./K4APZJ2O.js";import"./BYSUABOV.js";var r=e(a,{"arcgis-chart":[()=>import("./JBDNBUXX.js"),"_commonStrings:,_messages:,actionMode,allowUsingObjectIdStat,animationEnabled,aria:,autoDestroyDisabled,autoDisposeChart,autoInverseDataLabelTextColor,calciteThemingCSSVariables:,chartIndex,chartLimits:,chartWillRender:,configurationEnabled,cursorRange,dataLabelFormatter:,disableInteractions,disableTogglingLegendItems,enableBetaFeatures,enableConfiguration,enableResponsiveFeatures,errorPolicy,featureIndex,filterByExtent,filterBySelection,filterByViewExtent,gaugeInnerLabelFormatter:,guideTooltipFormatter:,hideEmptySeries,hideLicenseWatermark,hideLoaderAnimation,hideUIMessages,hideZeroCountCategories,ignoreSmoothRenderingLimit,ignoreViewExtent,interactionsDisabled,layer:,layerFieldsChangePolicy,layerFilterChangePolicy,layerItemId,layerRendererChangePolicy,legendPosition,legendValueLabelFormatter:,legendVisibility,loaderColors:,messageOverrides:,model:,nullAsValid,placeholder,popupTemplateFieldInfosEnabled,queueChartCreation,replaceNoValueCategoryWithZero,returnFeaturesExtent,returnSelectionIndexes,returnSelectionOIDs,rotated,rotation,runtimeDataFilters:,secondaryYAxisLabelFormatter:,selectionData:,selectionManager:,selectionTheme:,setTimeBinningInfoWhenNotProvided,showEmptySeries,showLicenseWatermark,showUIMessages,skipChartCreationQueue,syncChartsSelection,syncSelection,syncSelectionsBetweenChartAndLayerViewPolicy,syncViewSelection,syncViewTimeExtent,syncViewTimeZone,syncViewTimeZoneInclusionList:,timeZone,togglingLegendItemsDisabled,tooltipFormatter:,updateSplitBySeries:,useAnimatedCharts,usePopupTemplateFieldsInfo,view:,viewTimeExtentChangePolicy,xAxisLabelFormatter:,yAxisLabelFormatter:,zeroCountAsValid;clearSelection,destroy,errorAlert,exportAsCSV,exportAsImage,loadModel,notify,refresh,resetZoom,switchSelection;applySelectionFromSelectionManager"],"arcgis-charts-action-bar":[()=>import("./4UZZHUBR.js"),"_messages:,actionBarSelectionMode,chartElement:,chartType,clearSelectionState,clearSelectionTitle,clearSelectionToggle,commonStrings:,csvExportExclusionList:,disableCSVExportForChartTypes:,editChartState,editChartTitle,editChartToggle,expanded,exportActionState,exportAsCSVState,exportAsCSVTitle,exportAsImageState,exportAsImageTitle,filterByExtentState,filterByExtentTitle,filterByExtentToggle,filterBySelectionState,filterBySelectionTitle,filterBySelectionToggle,forceDisableActions,fullExtentState,fullExtentTitle,fullExtentToggle,hiddenActions:,legendState,legendTitle,legendToggle,messageOverrides:,rotateChartState,rotateChartTitle,rotateChartToggle,selectionState,selectionTitle,selectionToggle,switchSelectionState,switchSelectionTitle,switchSelectionToggle,zoomState,zoomTitle,zoomToggle"],"arcgis-charts-config-axes":[()=>import("./O7LPETXX.js"),"calculatedDataMinMaxBounds:,calculatedMinMaxBounds:,messageOverrides:,model:,open,showEnableXLogOption,showEnableYLogOption,showMaxXBoundOption,showMaxYBoundOption,showMinXBoundOption,showMinYBoundOption"],"arcgis-charts-config-axis":[()=>import("./LYE5P3IM.js"),"axisTitle,dataMaxValue,dataMinValue,initialMaxBound,initialMinBound,isXAxis,maxBoundMaxLimit,maxBoundMinLimit,messageOverrides:,minBoundMaxLimit,minBoundMinLimit,model:,showEnableLogOption,showMaxBoundOption,showMinBoundOption"],"arcgis-charts-config-bar-chart":[()=>import("./37TEXJ7K.js"),"calculatedMinMaxBounds:,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,seriesColor:,timeZone,usePopupTemplateFieldsInfo"],"arcgis-charts-config-bar-chart-data":[()=>import("./JILQHU4L.js"),"layerFieldsInfo:,messageOverrides:,model:,open"],"arcgis-charts-config-bar-chart-popover":[()=>import("./OILO7FSO.js"),"contentKind,headingTitle,isCustomSortDisabled,isNoAggregationDisabled,layerFieldsInfo:,messageOverrides:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-bar-chart-series":[()=>import("./OTCRP3JF.js"),"activeColorMatch,messageOverrides:,model:,popoverPlacement"],"arcgis-charts-config-bar-chart-series-popover":[()=>import("./UQQUQB2A.js"),"messageOverrides:,nullCategory:,open,placement,referenceElement:,selectedColor:,selectedName,selectedSeriesIndex;reposition"],"arcgis-charts-config-box-plot":[()=>import("./QPTQD3ZH.js"),"calculatedMinMaxBounds:,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,seriesColor:,usePopupTemplateFieldsInfo"],"arcgis-charts-config-box-plot-data":[()=>import("./PBMWAGSX.js"),"layerFieldsInfo:,messageOverrides:,model:"],"arcgis-charts-config-box-plot-popover":[()=>import("./7MXV56XK.js"),"contentKind,headingTitle,isCustomSortDisabled,layerFieldsInfo:,messageOverrides:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-box-plot-series":[()=>import("./BRQQTNPP.js"),"activeColorMatch,configSeriesOpen,messageOverrides:,model:,popoverPlacement"],"arcgis-charts-config-box-plot-series-popover":[()=>import("./4B2OSQ56.js"),"isLineSymbol,labelCanBeConfigured,messageOverrides:,open,placement,referenceElement:,selectedColor:,selectedLineStyle,selectedLineWidth,selectedName,selectedSeriesIndex;reposition"],"arcgis-charts-config-category-format":[()=>import("./ANIGKAAB.js"),"categoryFormat:,messageOverrides:"],"arcgis-charts-config-chart-rename-popover":[()=>import("./5UKSJH54.js"),"messageOverrides:,name,open,referenceElement:;reposition"],"arcgis-charts-config-color-style":[()=>import("./TMGMKM5F.js"),"enableClose,header,messageOverrides:,open,selectedColor:"],"arcgis-charts-config-colors":[()=>import("./IC7XPCCD.js"),"heading,messageOverrides:,rgba:"],"arcgis-charts-config-create-flow":[()=>import("./Y3WKQVWR.js"),"activeLayerId,calculatedDataMinMaxBounds:,calculatedMinMaxBounds:,chartData:,close,disableEditing,filterBySelection,headerTitle,layerList:,messageOverrides:,modelList:,panelNumber,popoverPlacement,popupTemplateFieldInfosEnabled,r2,selectedChartId,seriesColor:,syncChartsToLayers,timeZone,usePopupTemplateFieldsInfo;setFocus"],"arcgis-charts-config-field-picker":[()=>import("./IJWJOXQC.js"),"disabled,invalid,label"],"arcgis-charts-config-font-style":[()=>import("./HHZOC34D.js"),"enableClose,fontStyle:,header,messageOverrides:,open"],"arcgis-charts-config-format":[()=>import("./JZFIYS3Q.js"),"messageOverrides:,model:"],"arcgis-charts-config-format-popover":[()=>import("./F7UO7P33.js"),"messageOverrides:,open,placement,referenceElement:,selectedElement:;reposition"],"arcgis-charts-config-general":[()=>import("./REUSRETW.js"),"messageOverrides:,model:,open"],"arcgis-charts-config-guide":[()=>import("./PCAFQL35.js"),"calculatedMinMaxBounds:,index,latestGuidePosition,messageOverrides:,model:,orientation,timeZone"],"arcgis-charts-config-guide-popover":[()=>import("./3U6ESLPG.js"),"messageOverrides:,open,placement,referenceElement:,selectedElement:;reposition"],"arcgis-charts-config-guides":[()=>import("./AVJGLPDW.js"),"calculatedMinMaxBounds:,enableXAxisGuide,enableYAxisGuide,messageOverrides:,model:,open,timeZone"],"arcgis-charts-config-guides-type-popover":[()=>import("./TS7M5QXS.js"),"enableXAxisGuide,enableYAxisGuide,messageOverrides:,open,placement,referenceElement:;reposition"],"arcgis-charts-config-heat-chart":[()=>import("./KS5BBSHY.js"),"layer:,model:,page,popupTemplateFieldInfosEnabled,usePopupTemplateFieldsInfo"],"arcgis-charts-config-heat-chart-data":[()=>import("./6ILCVW7Y.js"),"layerFieldsInfo:,messageOverrides:,model:,open"],"arcgis-charts-config-heat-chart-popover":[()=>import("./CPTM5D3G.js"),"colorRamps:,contentKind,headingTitle,isFlipped,layerFieldsInfo:,messageOverrides:,model:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-histogram":[()=>import("./UEUCI74S.js"),"calculatedMinMaxBounds:,chartData:,layer:,model:,page,popupTemplateFieldInfosEnabled,seriesColor:,usePopupTemplateFieldsInfo"],"arcgis-charts-config-histogram-data":[()=>import("./QK73NKPD.js"),"countValue,layerFieldsInfo:,maxValue,meanValue,medianValue,messageOverrides:,minValue,model:,nullsValue,open,selectedOverlaySymbolType,standardDevValue,sumValue"],"arcgis-charts-config-histogram-popover":[()=>import("./GRFUVWBR.js"),"contentKind,headingTitle,layerFieldsInfo:,messageOverrides:,open,placement,referenceElement:,selectedBinColor:,selectedNumericField,selectedOverlaySymbol:,selectedOverlaySymbolType,selectedTransformationType;reposition"],"arcgis-charts-config-invalid-input-message":[()=>import("./FNTOEKMU.js"),"invalidInputMessage,isInvalid"],"arcgis-charts-config-line-chart":[()=>import("./J6SZNFHT.js"),"calculatedDataMinMaxBounds:,calculatedMinMaxBounds:,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,seriesColor:,timeZone,usePopupTemplateFieldsInfo"],"arcgis-charts-config-line-chart-data":[()=>import("./DWGM7Z44.js"),"layerFieldsInfo:,messageOverrides:,model:,resetTimeInterval:"],"arcgis-charts-config-line-chart-popover":[()=>import("./XPWRCAVM.js"),"contentKind,headingTitle,layerFieldsInfo:,messageOverrides:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-line-chart-series":[()=>import("./N7C7MXPK.js"),"activeColorMatch,messageOverrides:,model:,popoverPlacement"],"arcgis-charts-config-line-chart-series-popover":[()=>import("./DNBUCAK5.js"),"messageOverrides:,open,placement,referenceElement:,selectedColor:,selectedLineStyle,selectedLineWidth,selectedName,selectedSeriesIndex;reposition"],"arcgis-charts-config-line-style":[()=>import("./TVQYI2GA.js"),"enableClose,header,lineStyle:,messageOverrides:,open,usePanel"],"arcgis-charts-config-number-format":[()=>import("./5TACWRME.js"),"messageOverrides:,numberFormat:"],"arcgis-charts-config-pie-chart":[()=>import("./C5O4MQR2.js"),"calculatedMinMaxBounds:,chartData:,filterBySelection,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,seriesColor:,usePopupTemplateFieldsInfo"],"arcgis-charts-config-pie-chart-data":[()=>import("./F4YJZZ3Z.js"),"layerFieldsInfo:,messageOverrides:,model:"],"arcgis-charts-config-pie-chart-popover":[()=>import("./XUHTILLV.js"),"contentKind,headingTitle,layerFieldsInfo:,messageOverrides:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-pie-chart-slices":[()=>import("./RZHWMERW.js"),"chartData:,messageOverrides:,model:,popoverPlacement"],"arcgis-charts-config-pie-chart-slices-popover":[()=>import("./JMYWZDZT.js"),"messageOverrides:,open,placement,referenceElement:,selectedColor:,selectedName,selectedSliceId;reposition"],"arcgis-charts-config-scatter-plot":[()=>import("./HXSSY2BO.js"),"calculatedDataMinMaxBounds:,calculatedMinMaxBounds:,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,r2,usePopupTemplateFieldsInfo"],"arcgis-charts-config-scatter-plot-data":[()=>import("./EVXW4JIN.js"),"isTableLayer,layerFieldsInfo:,messageOverrides:,model:,r2"],"arcgis-charts-config-scatter-plot-popover":[()=>import("./KOLRCFJY.js"),"contentKind,headingTitle,layerFieldsInfo:,messageOverrides:,open,placement,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-select-chart-type-popover":[()=>import("./DB2GBCE3.js"),"headerTitle,isRasterBarChartSupported,layerId,layerType,messageOverrides:,open,popoverPlacement,referenceElement:,selectedModelType;reposition"],"arcgis-charts-config-view-charts":[()=>import("./OAGFPD22.js"),"disableEditing,layer:,messageOverrides:,modelList:,noGroup,selectedChartId"],"arcgis-charts-info-modal":[()=>import("./6IQK654E.js"),"calciteThemeColors:,heading,loaderColors:,message,showLoader"]});r({resourcesUrl:import.meta.url});var t=new CSSStyleSheet;t.replaceSync('@layer{:not([hydrated]):is(arcgis-chart,arcgis-charts-action-bar){visibility:hidden}:root,:host{--arcgis-charts-config-calcite-block-default-width: 100%;--arcgis-charts-config-calcite-block-default-height: auto;--arcgis-charts-config-default-max-width: 100%;--arcgis-charts-config-default-max-height: 100%;--arcgis-charts-background: rgb(223, 223, 223);--calcite-ui-foreground: rgb(223, 223, 223);--calcite-app-background-content: rgb(0, 0, 0, 0);--config-width: 40%;--config-height: 600px;--placement-direction: "row"}:root{--arcgis-charts-curtain-opacity: 1;--arcgis-charts-popup-ol-padding: 2em;--arcgis-charts-popup-body-padding-left: 0;--arcgis-charts-default-width: 100%;--arcgis-charts-default-height: 100%;--arcgis-charts-config-calcite-block-default-margin: 0;--arcgis-charts-config-margin-minor: .5rem;--arcgis-charts-config-margin-major: 1rem;--arcgis-charts-config-popover-pick-list-max-width: 314px;--arcgis-charts-inter-section-margin: .9rem;--arcgis-charts-intra-section-margin: .3rem;--arcgis-charts-top-section-margin: .6rem;--arcgis-charts-input-height: 2.4rem;--arcgis-charts-panel-padding: 0 1rem;--arcgis-charts-border-radius: .2rem;--arcgis-charts-input-background: #ffffff;--arcgis-charts-border: #eaeaea;--arcgis-charts-border-hover: #dfdfdf;--arcgis-charts-border-invalid: red;--arcgis-charts-background-clear: transparent;--arcgis-charts-dim-text: rgb(150, 150, 150);--arcgis-charts-side-spacing: 1rem;--arcgis-charts-side-spacing-three-quarters: calc(var(--arcgis-charts-side-spacing) * 3 / 4);--arcgis-charts-side-spacing-half: calc(var(--arcgis-charts-side-spacing) / 2);--arcgis-charts-side-spacing-third: calc(var(--arcgis-charts-side-spacing) / 3);--arcgis-charts-side-spacing-quarter: calc(var(--arcgis-charts-side-spacing) / 4);--arcgis-charts-side-spacing-eighth: calc(var(--arcgis-charts-side-spacing) / 8);--arcgis-charts-side-spacing-plus-half: calc(var(--arcgis-charts-side-spacing) * 1.5);--arcgis-charts-side-spacing-double: calc(var(--arcgis-charts-side-spacing) * 2)}}');document.adoptedStyleSheets=[...document.adoptedStyleSheets,t];export{i as createModel};window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r,p,j,i=(a.importMap??={}).imports??={})=>{"model/shared/setup-utils".split(",").map(e=>i[p+e+j]=i[p+e]=import.meta.resolve("./"+e+j));a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,a,"@arcgis/charts-components/",".js");(($arcgis.importMap??={}).imports??={})["@arcgis/charts-components"]=import.meta.url
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a}from"../../
|
|
2
|
+
import{a}from"../../HVNUPBQA.js";import"../../DAFNQT4C.js";import"../../QP5UAIC6.js";import"../../KJZTU3DV.js";import"../../K4APZJ2O.js";import"../../BYSUABOV.js";export{a as createModel};
|
package/dist/chunks/data.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { capitalize as u } from "lodash-es";
|
|
3
|
-
import { N as h, k as B, m as L,
|
|
3
|
+
import { N as h, k as B, m as L, dk as $, Y as N, ap as I, af as H, az as P, l as _, n as k } from "./index2.js";
|
|
4
4
|
import { g as F } from "./series-types.js";
|
|
5
|
-
import { H as A, S as o, P as
|
|
5
|
+
import { H as A, S as o, P as v } from "./common.js";
|
|
6
6
|
import { p as l, n, u as d, r as g } from "./chart-object-literals.js";
|
|
7
|
-
import { C as
|
|
8
|
-
import { g as
|
|
9
|
-
import { d as
|
|
10
|
-
function
|
|
7
|
+
import { C as M } from "./index3.js";
|
|
8
|
+
import { g as U } from "./index.js";
|
|
9
|
+
import { d as W } from "./type-guards.js";
|
|
10
|
+
function Y(e, r) {
|
|
11
11
|
let s;
|
|
12
12
|
return r === n.Category && Array.isArray(e) ? s = o.customSort : r === n.Category ? s = e === l.Ascending ? o.xAxisAsc : o.xAxisDesc : e === l.Ascending ? s = o.yAxisAsc : s = o.yAxisDesc, s;
|
|
13
13
|
}
|
|
@@ -15,20 +15,20 @@ function w(e, r) {
|
|
|
15
15
|
let s;
|
|
16
16
|
return r === n.Category && Array.isArray(e) ? s = A.customSort : s = e === l.Ascending ? A.Asc : A.Desc, s;
|
|
17
17
|
}
|
|
18
|
-
const
|
|
18
|
+
const E = (e) => {
|
|
19
19
|
const r = e.orderOptions?.data && "orderBy" in e.orderOptions.data ? e.orderOptions.data.orderBy : l.Ascending;
|
|
20
|
-
return
|
|
20
|
+
return Y(
|
|
21
21
|
r,
|
|
22
22
|
e.orderOptions?.data?.orderType ?? n.Category
|
|
23
23
|
);
|
|
24
|
-
},
|
|
24
|
+
}, K = (e) => {
|
|
25
25
|
const r = F(e.series);
|
|
26
26
|
let s = !1;
|
|
27
|
-
return (r === d.BarSeries || r === d.LineSeries) && (s =
|
|
27
|
+
return (r === d.BarSeries || r === d.LineSeries) && (s = E(e) === o.customSort), s;
|
|
28
28
|
}, ee = (e) => {
|
|
29
29
|
let r = [];
|
|
30
30
|
const s = e.orderOptions?.data?.orderType;
|
|
31
|
-
return
|
|
31
|
+
return K(e) && s === n.Category && (r = e.orderOptions?.data?.orderBy), r;
|
|
32
32
|
}, re = (e, r, s, t) => {
|
|
33
33
|
const i = F(r.series), y = $(r);
|
|
34
34
|
r.orderOptions ??= {};
|
|
@@ -67,7 +67,7 @@ const k = (e) => {
|
|
|
67
67
|
fieldList: O
|
|
68
68
|
} = e, T = F(r.series), b = N(r.series);
|
|
69
69
|
let f;
|
|
70
|
-
if (
|
|
70
|
+
if (W(a)) {
|
|
71
71
|
const m = P(a);
|
|
72
72
|
f = t.length === 1 && t[0] === m;
|
|
73
73
|
} else {
|
|
@@ -77,7 +77,7 @@ const k = (e) => {
|
|
|
77
77
|
let p = "y", C = "y";
|
|
78
78
|
switch (T) {
|
|
79
79
|
case d.PieSeries: {
|
|
80
|
-
i !== g.NoAggregation ? y ===
|
|
80
|
+
i !== g.NoAggregation ? y === v.Category ? (p = `${i}_${t[0]}_0`.toUpperCase(), C = f ? u(g.Count) : u(`${i} of ${t[0]}`)) : p = k : p = t[0];
|
|
81
81
|
break;
|
|
82
82
|
}
|
|
83
83
|
case d.BarSeries:
|
|
@@ -86,11 +86,11 @@ const k = (e) => {
|
|
|
86
86
|
case d.RadarSeries:
|
|
87
87
|
case d.HeatSeries: {
|
|
88
88
|
if (S === "" || t.length > 1)
|
|
89
|
-
|
|
89
|
+
V({
|
|
90
90
|
fieldName: s,
|
|
91
91
|
numericFields: t,
|
|
92
92
|
fieldList: O ?? []
|
|
93
|
-
}) || b ===
|
|
93
|
+
}) || b === M.BarAndLineFromFields ? p = _ : (p = i !== g.NoAggregation ? `${i}_${t[c ?? 0]}_${c ?? 0}`.toUpperCase() : t[c ?? 0], C = f ? u(g.Count) : u(`${i} of ${t[c ?? 0]}`));
|
|
94
94
|
else {
|
|
95
95
|
const m = t[0];
|
|
96
96
|
p = i !== g.NoAggregation ? `${i}_${m}_${x ?? 0}`.toUpperCase() : m, C = f ? u(g.Count) : u(`${i} of ${m}`);
|
|
@@ -103,22 +103,22 @@ const k = (e) => {
|
|
|
103
103
|
description: C
|
|
104
104
|
};
|
|
105
105
|
};
|
|
106
|
-
function
|
|
106
|
+
function R(e) {
|
|
107
107
|
const { fieldName: r, fieldList: s } = e, t = h(s ?? [], r);
|
|
108
|
-
return r === B || r === L || r ===
|
|
108
|
+
return r === B || r === L || r === U || r === void 0 || r.trim() === "" || t === void 0;
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function V(e) {
|
|
111
111
|
const { fieldName: r, fieldList: s, numericFields: t } = e, i = t.filter((y) => h(s ?? [], y)?.type !== "esriFieldTypeOID");
|
|
112
|
-
return
|
|
112
|
+
return R({ fieldName: r, fieldList: s }) && (i?.length ?? 0) > 0;
|
|
113
113
|
}
|
|
114
114
|
export {
|
|
115
115
|
se as a,
|
|
116
116
|
w as b,
|
|
117
|
-
|
|
117
|
+
Y as c,
|
|
118
118
|
re as d,
|
|
119
119
|
ee as e,
|
|
120
|
-
|
|
120
|
+
E as f,
|
|
121
121
|
te as g,
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
V as s,
|
|
123
|
+
R as x
|
|
124
124
|
};
|