@arcgis/charts-components 5.2.0-next.143 → 5.2.0-next.145

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.
Files changed (95) hide show
  1. package/dist/cdn/{SIKOIW4O.js → 2BM7VX6X.js} +1 -1
  2. package/dist/cdn/{374V7N4Z.js → 2GZJVJ6D.js} +1 -1
  3. package/dist/cdn/{SH623BLO.js → 2IQWCGC4.js} +1 -1
  4. package/dist/cdn/{DOOEA5G2.js → 2LYJZSEC.js} +1 -1
  5. package/dist/cdn/{OVJOH6TT.js → 2YNB2RSW.js} +1 -1
  6. package/dist/cdn/{4PT5DHHM.js → 3R4CEE6P.js} +1 -1
  7. package/dist/cdn/{OR4RVAPI.js → 4Y22DEQR.js} +1 -1
  8. package/dist/cdn/{IW6I3CMQ.js → 4YFIGYNC.js} +1 -1
  9. package/dist/cdn/{NTWWAPJY.js → 53NXULDN.js} +1 -1
  10. package/dist/cdn/{4WWCOEDU.js → 5WHCVW35.js} +1 -1
  11. package/dist/cdn/{XFZBBAMQ.js → 74TRPLSI.js} +1 -1
  12. package/dist/cdn/{5A2FEWAN.js → 7A2AGL2N.js} +1 -1
  13. package/dist/cdn/{WGSXEPTN.js → 7I25IJA2.js} +1 -1
  14. package/dist/cdn/{LVX77KGE.js → 7SUMLJRQ.js} +1 -1
  15. package/dist/cdn/{ME25F3ZU.js → AC5XBWF4.js} +1 -1
  16. package/dist/cdn/{OSKZGXXI.js → AJ2NSTY6.js} +1 -1
  17. package/dist/cdn/{74R4YKKJ.js → ASR32YFB.js} +1 -1
  18. package/dist/cdn/{KPH4NSHX.js → AWR5OJXA.js} +1 -1
  19. package/dist/cdn/{BIBYTGGD.js → B56H6U5I.js} +1 -1
  20. package/dist/cdn/{KKAK7K7Y.js → C3JENYG3.js} +8 -8
  21. package/dist/cdn/{MT27PIIN.js → D4MMYT57.js} +1 -1
  22. package/dist/cdn/{HWZ4RJAC.js → DLVMA4UR.js} +1 -1
  23. package/dist/cdn/{I5XHNL4H.js → DNDJF3KR.js} +1 -1
  24. package/dist/cdn/{LR2ES6QN.js → E2RKOLS3.js} +1 -1
  25. package/dist/cdn/{FIT3HVL4.js → EF7JJNJX.js} +1 -1
  26. package/dist/cdn/{TZLXZSWT.js → FBJ4AP2R.js} +1 -1
  27. package/dist/cdn/{LS73CUPP.js → FGGLWGU3.js} +1 -1
  28. package/dist/cdn/{ZXRTE3NQ.js → FJ7ZTRRA.js} +1 -1
  29. package/dist/cdn/{RRVEFLFX.js → FW77THSK.js} +1 -1
  30. package/dist/cdn/{BPVSEGNN.js → GICZ6QTQ.js} +1 -1
  31. package/dist/cdn/{JGINWG4F.js → GOYZO3PH.js} +1 -1
  32. package/dist/cdn/{FPGTZFM6.js → GQYVTTFW.js} +1 -1
  33. package/dist/cdn/{6DX4AHKO.js → H3PQ3KE3.js} +1 -1
  34. package/dist/cdn/{KECMCTWV.js → HOBTZQOO.js} +1 -1
  35. package/dist/cdn/{7SK4E2QB.js → I2LU7GWB.js} +1 -1
  36. package/dist/cdn/{UF64V7K2.js → JFQL7N2M.js} +1 -1
  37. package/dist/cdn/{QYGSQHO2.js → JNDODFJD.js} +1 -1
  38. package/dist/cdn/{MRANCBLW.js → KKAO2PXL.js} +1 -1
  39. package/dist/cdn/{V3HU64ZI.js → LEY6LKUH.js} +1 -1
  40. package/dist/cdn/{UKF6FHVI.js → LIFE557O.js} +1 -1
  41. package/dist/cdn/{G5DGXJY4.js → M4NDM2ZO.js} +1 -1
  42. package/dist/cdn/{AKFXHWQR.js → MJSZLNAF.js} +1 -1
  43. package/dist/cdn/{LRC4DJI7.js → MTMOH3ES.js} +1 -1
  44. package/dist/cdn/{JNLUISLH.js → N4X7ZOF5.js} +1 -1
  45. package/dist/cdn/{RXPIQPYP.js → NARDIIZ3.js} +1 -1
  46. package/dist/cdn/{ZMFFZLG4.js → ND5JWELW.js} +1 -1
  47. package/dist/cdn/{5YB5OJYP.js → NSBR5PR7.js} +1 -1
  48. package/dist/cdn/{E4YCSVP4.js → NSFI6R7F.js} +1 -1
  49. package/dist/cdn/{CXDJLQCL.js → NY73C6DH.js} +1 -1
  50. package/dist/cdn/{UKNW6RSC.js → O344JWQA.js} +1 -1
  51. package/dist/cdn/{FSPPNJTF.js → O5Q63MHK.js} +1 -1
  52. package/dist/cdn/{GWOK245W.js → O7Z5PTLE.js} +1 -1
  53. package/dist/cdn/{6TJYCFI6.js → OCIDPNVR.js} +1 -1
  54. package/dist/cdn/{DDDPW2TW.js → ODY5YRM6.js} +1 -1
  55. package/dist/cdn/{M262DGFX.js → OLD54PWE.js} +1 -1
  56. package/dist/cdn/OWUGRJ3W.js +2 -0
  57. package/dist/cdn/{NZW73WYE.js → OWXCYQKM.js} +1 -1
  58. package/dist/cdn/{XW2OZUID.js → P772YCRO.js} +1 -1
  59. package/dist/cdn/{Q4GFCAK4.js → PD5CSNCF.js} +1 -1
  60. package/dist/cdn/{4E72WHHU.js → PEDFAFPV.js} +1 -1
  61. package/dist/cdn/{LZFVVP4V.js → PNFJAH7R.js} +1 -1
  62. package/dist/cdn/{5EKX23CT.js → PWTMWRU4.js} +1 -1
  63. package/dist/cdn/{RB75SK36.js → PYLGHA4T.js} +1 -1
  64. package/dist/cdn/{ZD5G7A5X.js → RO25JS7J.js} +1 -1
  65. package/dist/cdn/{PTYTLE55.js → SQE3NSLM.js} +1 -1
  66. package/dist/cdn/{VPBOE6X6.js → TAM5ITK5.js} +1 -1
  67. package/dist/cdn/{VNTY3E6P.js → TGAKLKOG.js} +1 -1
  68. package/dist/cdn/{7OJBKQHA.js → TPPHYP2J.js} +1 -1
  69. package/dist/cdn/{WVNNKAJV.js → TPSDJS4O.js} +1 -1
  70. package/dist/cdn/{EAKKFJZR.js → TQG7YJHG.js} +1 -1
  71. package/dist/cdn/{CSUKCDMZ.js → VUVWD7G5.js} +1 -1
  72. package/dist/cdn/{K6AONAMI.js → VVTGMYKI.js} +1 -1
  73. package/dist/cdn/{G6FBGOKD.js → WTDG57TI.js} +1 -1
  74. package/dist/cdn/{Y5LE66OJ.js → XBBOQCVR.js} +1 -1
  75. package/dist/cdn/{P6TSRUSY.js → XJB3EVVM.js} +1 -1
  76. package/dist/cdn/{EKIQVRS6.js → Y5T2FM7Z.js} +1 -1
  77. package/dist/cdn/{3PZBMTXN.js → YMPR72UQ.js} +1 -1
  78. package/dist/cdn/{A3XO2ZEY.js → YU3DD3L3.js} +1 -1
  79. package/dist/cdn/{HSARYNW6.js → YZP4WSUR.js} +1 -1
  80. package/dist/cdn/{5DLEHZWY.js → ZD7PQSBR.js} +1 -1
  81. package/dist/cdn/ZXPTZMFT.js +2 -0
  82. package/dist/cdn/{AFNERY3G.js → ZXVFP4II.js} +1 -1
  83. package/dist/cdn/{4AZERXMK.js → ZY25J33W.js} +1 -1
  84. package/dist/cdn/index.js +1 -1
  85. package/dist/cdn/model/shared/setup-utils.js +1 -1
  86. package/dist/chunks/index.js +8 -8
  87. package/dist/components/arcgis-chart/customElement.js +1985 -2046
  88. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +21 -17
  89. package/dist/components/arcgis-charts-config-font-style/customElement.js +6 -6
  90. package/dist/docs/api.json +1 -1
  91. package/dist/docs/docs.json +1 -1
  92. package/dist/docs/web-types.json +1 -1
  93. package/package.json +4 -4
  94. package/dist/cdn/4IIEPMHS.js +0 -2
  95. package/dist/cdn/G6ZRPCEW.js +0 -2
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import x from"./FPGTZFM6.js";import w from"./HSARYNW6.js";import v from"./RRVEFLFX.js";import t from"./LRC4DJI7.js";import s from"./UF64V7K2.js";import r from"./EKIQVRS6.js";import q from"./WVNNKAJV.js";import o from"./ZXRTE3NQ.js";import n from"./4WWCOEDU.js";import l from"./AKFXHWQR.js";import k from"./Q4GFCAK4.js";import j from"./K6AONAMI.js";import i from"./BPVSEGNN.js";import"./TOL6YNER.js";import h from"./P6TSRUSY.js";import f from"./ZMFFZLG4.js";import e from"./FIT3HVL4.js";import d from"./XFZBBAMQ.js";import c from"./5A2FEWAN.js";import b from"./74R4YKKJ.js";import a from"./4PT5DHHM.js";import"./WOGALV3T.js";import{c as u}from"./PNFPQKYB.js";import{C as S,fa as p,i as m,ma as y}from"./5L7BAEX5.js";import"./KX7KGXKQ.js";import"./NGXRBJKL.js";import"./YVJE3Q7H.js";import"./UE4KTI5X.js";import"./64L7VJJK.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as g}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{Wb:n},{s:v},,{e:a},,,,,,,,,,,,{c:d},,{ta:f},{b:I,c:b,d:_,e:O},{a:L,b:x,c:z,d:C,e:H}])=>{var B=Object.defineProperty,F=Object.getOwnPropertyDescriptor,h=(c,e,s,t)=>{for(var i=F(e,s),o=c.length-1,l;o>=0;o--)(l=c[o])&&(i=l(e,s,i)||i);return i&&B(e,s,i),i},r=class extends O{constructor(){super(...arguments),this._chartType=g.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=y(this.commonStrings);return e.series=[p({objectIDField:n(this.layerInfo.layer).idField,commonStrings:this.commonStrings})],e}getSeriesHideOversizedSideBySideLabels(e){return L(e,this._config)}setSeriesHideOversizedSideBySideLabels(e,s){x({hide:e,seriesIndex:s,config:this._config})}getSeriesHideOversizedStackedLabels(e){return z(e,this._config)}setSeriesHideOversizedStackedLabels(e,s){C({hide:e,seriesIndex:s,config:this._config})}getDataSortOrder(){return d(this._config)}getSortOrder(){return d(this._config)}resetSeriesStyling(){for(let e=0;e<this.seriesLength;e+=1){let s=this.getSeriesId(e),t=S({colorIndex:e,opacity:m});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!==n(this.layerInfo.layer).idField&&I(i??s,e,this._config)}}this.nullCategory!==void 0&&_(this._config,u.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!==n(this.layerInfo.layer).idField&&i!==o){s=!0;break}}return e||s}};h([a],r.prototype,"setSeriesHideOversizedSideBySideLabels");h([a],r.prototype,"setSeriesHideOversizedStackedLabels");h([a],r.prototype,"resetSeriesStyling");var D=[H];v(r,D);return r},a,b,c,d,e,f,h,i,j,k,l,n,o,q,r,s,t,v,w,x)
2
+ import x from"./GQYVTTFW.js";import w from"./YZP4WSUR.js";import v from"./FW77THSK.js";import t from"./MTMOH3ES.js";import s from"./JFQL7N2M.js";import r from"./Y5T2FM7Z.js";import q from"./TPSDJS4O.js";import o from"./FJ7ZTRRA.js";import n from"./5WHCVW35.js";import l from"./MJSZLNAF.js";import k from"./PD5CSNCF.js";import j from"./VVTGMYKI.js";import i from"./GICZ6QTQ.js";import"./TOL6YNER.js";import h from"./XJB3EVVM.js";import f from"./ND5JWELW.js";import e from"./EF7JJNJX.js";import d from"./74TRPLSI.js";import c from"./7A2AGL2N.js";import b from"./ASR32YFB.js";import a from"./3R4CEE6P.js";import"./WOGALV3T.js";import{c as u}from"./PNFPQKYB.js";import{C as S,fa as p,i as m,ma as y}from"./5L7BAEX5.js";import"./KX7KGXKQ.js";import"./NGXRBJKL.js";import"./YVJE3Q7H.js";import"./UE4KTI5X.js";import"./64L7VJJK.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as g}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{Wb:n},{s:v},,{e:a},,,,,,,,,,,,{c:d},,{ta:f},{b:I,c:b,d:_,e:O},{a:L,b:x,c:z,d:C,e:H}])=>{var B=Object.defineProperty,F=Object.getOwnPropertyDescriptor,h=(c,e,s,t)=>{for(var i=F(e,s),o=c.length-1,l;o>=0;o--)(l=c[o])&&(i=l(e,s,i)||i);return i&&B(e,s,i),i},r=class extends O{constructor(){super(...arguments),this._chartType=g.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=y(this.commonStrings);return e.series=[p({objectIDField:n(this.layerInfo.layer).idField,commonStrings:this.commonStrings})],e}getSeriesHideOversizedSideBySideLabels(e){return L(e,this._config)}setSeriesHideOversizedSideBySideLabels(e,s){x({hide:e,seriesIndex:s,config:this._config})}getSeriesHideOversizedStackedLabels(e){return z(e,this._config)}setSeriesHideOversizedStackedLabels(e,s){C({hide:e,seriesIndex:s,config:this._config})}getDataSortOrder(){return d(this._config)}getSortOrder(){return d(this._config)}resetSeriesStyling(){for(let e=0;e<this.seriesLength;e+=1){let s=this.getSeriesId(e),t=S({colorIndex:e,opacity:m});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!==n(this.layerInfo.layer).idField&&I(i??s,e,this._config)}}this.nullCategory!==void 0&&_(this._config,u.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!==n(this.layerInfo.layer).idField&&i!==o){s=!0;break}}return e||s}};h([a],r.prototype,"setSeriesHideOversizedSideBySideLabels");h([a],r.prototype,"setSeriesHideOversizedStackedLabels");h([a],r.prototype,"resetSeriesStyling");var D=[H];v(r,D);return r},a,b,c,d,e,f,h,i,j,k,l,n,o,q,r,s,t,v,w,x)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as C}from"./PABVNO3N.js";import{a as b}from"./YNHYJOH7.js";import{b as S,c as T}from"./RP6LD7CU.js";import h from"./JNLUISLH.js";import{h as a}from"./POA2XTTK.js";import{a as f}from"./TJ5BGDYZ.js";import e from"./74R4YKKJ.js";import d from"./4PT5DHHM.js";import"./WOGALV3T.js";import{n as F}from"./PNFPQKYB.js";import{Aa as x}from"./5L7BAEX5.js";import{a as L}from"./KX7KGXKQ.js";import{b as y}from"./NGXRBJKL.js";import"./YVJE3Q7H.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"./UE4KTI5X.js";import{d as c}from"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{$b:D,Xb:I},,{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)
2
+ import{a as C}from"./PABVNO3N.js";import{a as b}from"./YNHYJOH7.js";import{b as S,c as T}from"./RP6LD7CU.js";import h from"./N4X7ZOF5.js";import{h as a}from"./POA2XTTK.js";import{a as f}from"./TJ5BGDYZ.js";import e from"./ASR32YFB.js";import d from"./3R4CEE6P.js";import"./WOGALV3T.js";import{n as F}from"./PNFPQKYB.js";import{Aa as x}from"./5L7BAEX5.js";import{a as L}from"./KX7KGXKQ.js";import{b as y}from"./NGXRBJKL.js";import"./YVJE3Q7H.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"./UE4KTI5X.js";import{d as c}from"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{$b:D,Xb:I},,{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{d as i}from"./POA2XTTK.js";import a from"./4PT5DHHM.js";import{e as c}from"./WOGALV3T.js";import"./PNFPQKYB.js";import"./5L7BAEX5.js";import"./KX7KGXKQ.js";import{b as r}from"./NGXRBJKL.js";import"./YVJE3Q7H.js";import{B as h,H as d,g as n,i as t}from"./UE4KTI5X.js";import"./Z5QPCSUQ.js";import"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{Ob:p,Sb:f,Ub:u,ic:C,la:m,pa:g}])=>{var y=n`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`,l=class extends h{constructor(){super(...arguments),this.onModelConfigChange=async e=>{let a=e?.detail.config??this.model.config;this.layer===void 0&&await this.updateFetchLayerFieldsInfo(a)},this.usePopupTemplateFieldsInfo=!1}static{this.properties={layerFieldsInfo:16,model:0,chartData:0,seriesColor:0,calculatedMinMaxBounds:0,page:1,layer:0,usePopupTemplateFieldsInfo:5,popupTemplateFieldInfosEnabled:5}}static{this.styles=y}async load(){this.seriesColor!==void 0&&this.seriesColorChange(this.seriesColor),await this.updateFetchLayerFieldsInfo(this.model?.config),this.modelChange(this.model)}willUpdate(e){let a=!1;e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("layer")&&this.layer!==void 0&&!r(e.get("layer"),this.layer)&&(a=!0),(e.has("usePopupTemplateFieldsInfo")&&this.usePopupTemplateFieldsInfo!==e.get("usePopupTemplateFieldsInfo")||e.has("popupTemplateFieldInfosEnabled")&&this.popupTemplateFieldInfosEnabled!==e.get("popupTemplateFieldInfosEnabled"))&&(a=!0),e.has("seriesColor")&&this.seriesColorChange(this.seriesColor),this.layerFieldsInfo===void 0&&(a=!0),a&&this.updateFetchLayerFieldsInfo()}disconnectedCallback(){super.disconnectedCallback(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,a){a?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}seriesColorChange(e){this.model.colorMatch&&e?.forEach(a=>{m(a)&&e?.get(0)!==void 0&&!r(this.model.binSymbol,a)&&(this.model.binSymbol=a)})}async updateFetchLayerFieldsInfo(e){let a=e??this.model.config,s=this.layer;if(!s){let o=g(a)?a.iLayer:void 0;o&&(s=await f(o))}if(s){await C(s);let o=this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled;this.layerFieldsInfo=c(s)?p({layer:s,popupTemplateFieldInfosEnabled:o,chartType:a?.type}):u(s,o)}}render(){let e;switch(this.page){case i.Data:e=t`<arcgis-charts-config-histogram-data .model=${this.model} .meanValue=${this.chartData?.mean} .medianValue=${this.chartData?.median} .standardDevValue=${this.chartData?.stddev} .minValue=${this.chartData?.min} .maxValue=${this.chartData?.max} .sumValue=${this.chartData?.sum} .nullsValue=${this.chartData?.nulls} .countValue=${this.chartData?.count} .layerFieldsInfo=${this.layerFieldsInfo}></arcgis-charts-config-histogram-data>`;break;case i.Axes:e=t`<arcgis-charts-config-axes .model=${this.model} show-max-y-bound-option .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-axes>`;break;case i.Guides:e=t`<arcgis-charts-config-guides .model=${this.model} enable-y-axis-guide></arcgis-charts-config-guides>`;break;case i.Format:e=t`<arcgis-charts-config-format .model=${this.model}></arcgis-charts-config-format>`;break;case i.General:e=t`<arcgis-charts-config-general .model=${this.model}></arcgis-charts-config-general>`;break;default:e="";break}return e}};d("arcgis-charts-config-histogram",l);return l},a)
2
+ import{d as i}from"./POA2XTTK.js";import a from"./3R4CEE6P.js";import{e as c}from"./WOGALV3T.js";import"./PNFPQKYB.js";import"./5L7BAEX5.js";import"./KX7KGXKQ.js";import{b as r}from"./NGXRBJKL.js";import"./YVJE3Q7H.js";import{B as h,H as d,g as n,i as t}from"./UE4KTI5X.js";import"./Z5QPCSUQ.js";import"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{Ob:p,Sb:f,Ub:u,ic:C,la:m,pa:g}])=>{var y=n`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`,l=class extends h{constructor(){super(...arguments),this.onModelConfigChange=async e=>{let a=e?.detail.config??this.model.config;this.layer===void 0&&await this.updateFetchLayerFieldsInfo(a)},this.usePopupTemplateFieldsInfo=!1}static{this.properties={layerFieldsInfo:16,model:0,chartData:0,seriesColor:0,calculatedMinMaxBounds:0,page:1,layer:0,usePopupTemplateFieldsInfo:5,popupTemplateFieldInfosEnabled:5}}static{this.styles=y}async load(){this.seriesColor!==void 0&&this.seriesColorChange(this.seriesColor),await this.updateFetchLayerFieldsInfo(this.model?.config),this.modelChange(this.model)}willUpdate(e){let a=!1;e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("layer")&&this.layer!==void 0&&!r(e.get("layer"),this.layer)&&(a=!0),(e.has("usePopupTemplateFieldsInfo")&&this.usePopupTemplateFieldsInfo!==e.get("usePopupTemplateFieldsInfo")||e.has("popupTemplateFieldInfosEnabled")&&this.popupTemplateFieldInfosEnabled!==e.get("popupTemplateFieldInfosEnabled"))&&(a=!0),e.has("seriesColor")&&this.seriesColorChange(this.seriesColor),this.layerFieldsInfo===void 0&&(a=!0),a&&this.updateFetchLayerFieldsInfo()}disconnectedCallback(){super.disconnectedCallback(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,a){a?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}seriesColorChange(e){this.model.colorMatch&&e?.forEach(a=>{m(a)&&e?.get(0)!==void 0&&!r(this.model.binSymbol,a)&&(this.model.binSymbol=a)})}async updateFetchLayerFieldsInfo(e){let a=e??this.model.config,s=this.layer;if(!s){let o=g(a)?a.iLayer:void 0;o&&(s=await f(o))}if(s){await C(s);let o=this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled;this.layerFieldsInfo=c(s)?p({layer:s,popupTemplateFieldInfosEnabled:o,chartType:a?.type}):u(s,o)}}render(){let e;switch(this.page){case i.Data:e=t`<arcgis-charts-config-histogram-data .model=${this.model} .meanValue=${this.chartData?.mean} .medianValue=${this.chartData?.median} .standardDevValue=${this.chartData?.stddev} .minValue=${this.chartData?.min} .maxValue=${this.chartData?.max} .sumValue=${this.chartData?.sum} .nullsValue=${this.chartData?.nulls} .countValue=${this.chartData?.count} .layerFieldsInfo=${this.layerFieldsInfo}></arcgis-charts-config-histogram-data>`;break;case i.Axes:e=t`<arcgis-charts-config-axes .model=${this.model} show-max-y-bound-option .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-axes>`;break;case i.Guides:e=t`<arcgis-charts-config-guides .model=${this.model} enable-y-axis-guide></arcgis-charts-config-guides>`;break;case i.Format:e=t`<arcgis-charts-config-format .model=${this.model}></arcgis-charts-config-format>`;break;case i.General:e=t`<arcgis-charts-config-general .model=${this.model}></arcgis-charts-config-general>`;break;default:e="";break}return e}};d("arcgis-charts-config-histogram",l);return l},a)