@arcgis/charts-components 5.2.2 → 5.2.3

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 (107) hide show
  1. package/dist/cdn/{KPLGLGTL.js → 2DHOWU74.js} +1 -1
  2. package/dist/cdn/{63IOSB5X.js → 2ITRCZ43.js} +1 -1
  3. package/dist/cdn/{VBI6VE3V.js → 3PL6X4PU.js} +1 -1
  4. package/dist/cdn/{PK4FGBU5.js → 4DK44E5O.js} +1 -1
  5. package/dist/cdn/{3WNW44CU.js → 4QJLNQVP.js} +1 -1
  6. package/dist/cdn/{HLDELLOC.js → 4RUGZX4B.js} +1 -1
  7. package/dist/cdn/{6HHPPOBU.js → 4T63TCAU.js} +1 -1
  8. package/dist/cdn/{BYNQVZSU.js → 5DHIEIKM.js} +1 -1
  9. package/dist/cdn/{TV4M37RV.js → 5E24TRTV.js} +1 -1
  10. package/dist/cdn/{LGE37VU4.js → 5J6IA3AT.js} +1 -1
  11. package/dist/cdn/{RYST7PDJ.js → 5NXG23F4.js} +1 -1
  12. package/dist/cdn/{SDG5AVVS.js → 6HMFCTSE.js} +1 -1
  13. package/dist/cdn/{2FNM7LTO.js → 6KJ3ATLC.js} +1 -1
  14. package/dist/cdn/{EI5GRIVH.js → 6MCRBGLJ.js} +1 -1
  15. package/dist/cdn/{6S6OEV5K.js → 6RGFJYNO.js} +1 -1
  16. package/dist/cdn/{5RZDY4EP.js → 6RZYKXDA.js} +1 -1
  17. package/dist/cdn/{RTEDJ3T4.js → 75HWWMEG.js} +1 -1
  18. package/dist/cdn/{BELOO4W3.js → 76U7GN3L.js} +1 -1
  19. package/dist/cdn/{6OYCHZM4.js → 76YX2DGE.js} +1 -1
  20. package/dist/cdn/{OVP272NJ.js → 7GB2Q6OS.js} +1 -1
  21. package/dist/cdn/{CCKX6FAN.js → 7QKHK4XD.js} +1 -1
  22. package/dist/cdn/{KTGSCBYU.js → A34FRLBP.js} +1 -1
  23. package/dist/cdn/{ZI76SVPP.js → AWBGXQRZ.js} +1 -1
  24. package/dist/cdn/{AYAESDR6.js → AZP4RGFP.js} +1 -1
  25. package/dist/cdn/{B6AY2BEK.js → BCHANC26.js} +1 -1
  26. package/dist/cdn/{KD4JWBDI.js → BIBN2SQU.js} +1 -1
  27. package/dist/cdn/{FZGT5CKO.js → BTNU6VLH.js} +1 -1
  28. package/dist/cdn/{PS7SYYYZ.js → BTSCZNHG.js} +1 -1
  29. package/dist/cdn/{AZGB6VW4.js → CDRFXW4A.js} +1 -1
  30. package/dist/cdn/{GJVEKBGE.js → CR4MU3W6.js} +1 -1
  31. package/dist/cdn/{3JRDVKJA.js → EFVPTYFY.js} +1 -1
  32. package/dist/cdn/{SA6QQ3QB.js → EQWLGHXR.js} +1 -1
  33. package/dist/cdn/{CEXMZI5E.js → F2WF5LOK.js} +1 -1
  34. package/dist/cdn/{UEB2J4WK.js → F55Y2EPO.js} +1 -1
  35. package/dist/cdn/{L63SHKVW.js → F6JR4B5W.js} +1 -1
  36. package/dist/cdn/{KUFHZS66.js → FF6SXLVE.js} +1 -1
  37. package/dist/cdn/{MWZXEV2Y.js → FJDJEGBB.js} +1 -1
  38. package/dist/cdn/{LR65J3RS.js → FTUDHR5D.js} +1 -1
  39. package/dist/cdn/{AWYUPUUD.js → FXHGYIYN.js} +1 -1
  40. package/dist/cdn/{5H4GHC76.js → GXNMIY2V.js} +2 -2
  41. package/dist/cdn/{AGLVYLFP.js → H6ZF2I7S.js} +1 -1
  42. package/dist/cdn/{VO3ESRGL.js → HUPBTTYO.js} +1 -1
  43. package/dist/cdn/{VXP27HMM.js → I3AJHPG3.js} +1 -1
  44. package/dist/cdn/{2MPB2XZE.js → I5JXNSMW.js} +1 -1
  45. package/dist/cdn/{MC7TF2BZ.js → IVJNEGWU.js} +1 -1
  46. package/dist/cdn/{WCJEURG5.js → JUBE7XD2.js} +1 -1
  47. package/dist/cdn/{TIGSVX3S.js → JV4NMPZ4.js} +1 -1
  48. package/dist/cdn/{3HLITCTE.js → JYANGPFS.js} +1 -1
  49. package/dist/cdn/{WAJUBYQK.js → JZU4SOIS.js} +1 -1
  50. package/dist/cdn/{33GJB5E4.js → KHIAPS7F.js} +1 -1
  51. package/dist/cdn/{BPRMU5ND.js → KMSUWCI6.js} +1 -1
  52. package/dist/cdn/{V6P7GHR3.js → KOO5EZH6.js} +1 -1
  53. package/dist/cdn/{YVRQEVJQ.js → KTFNKN5F.js} +1 -1
  54. package/dist/cdn/{BKXCCTLV.js → LRSAWJXU.js} +1 -1
  55. package/dist/cdn/{YZFQRSIT.js → LU75T4XH.js} +1 -1
  56. package/dist/cdn/{ZIZI52ZU.js → NAS5U23Y.js} +1 -1
  57. package/dist/cdn/{CUN2N2F7.js → NIJPEYBN.js} +1 -1
  58. package/dist/cdn/{YXIUOIPZ.js → NKN7AFL4.js} +1 -1
  59. package/dist/cdn/{PLGVDNNI.js → NOMIOWXZ.js} +1 -1
  60. package/dist/cdn/{KUCSPQBP.js → NPYUDYKA.js} +1 -1
  61. package/dist/cdn/{6PIABFQA.js → NWJR42GU.js} +1 -1
  62. package/dist/cdn/{TRCWO2RN.js → OGAZTEWM.js} +1 -1
  63. package/dist/cdn/{FQB2OTR4.js → OWLTOYDG.js} +1 -1
  64. package/dist/cdn/{5CDCBHUV.js → P657CUK2.js} +1 -1
  65. package/dist/cdn/{233QAVL2.js → PMXISOZT.js} +1 -1
  66. package/dist/cdn/{TEEVPE55.js → QCKR4OTA.js} +1 -1
  67. package/dist/cdn/{BJ6P7A7L.js → R55EYC4S.js} +2 -2
  68. package/dist/cdn/{77G2JZVN.js → RKIFK4DG.js} +1 -1
  69. package/dist/cdn/{P64QA7JR.js → RW3ON36X.js} +1 -1
  70. package/dist/cdn/{A2VHCG23.js → RW7RIOD3.js} +1 -1
  71. package/dist/cdn/{54DJH26Q.js → RZAKMRDK.js} +1 -1
  72. package/dist/cdn/{FMFEQDVU.js → SHHHKG57.js} +1 -1
  73. package/dist/cdn/{FOJK7SVH.js → SSYS6VT2.js} +1 -1
  74. package/dist/cdn/{HE3765GD.js → TCH4J3F6.js} +1 -1
  75. package/dist/cdn/{Q7O2UFCW.js → TDHOHWAC.js} +1 -1
  76. package/dist/cdn/{EN3QXSQY.js → TFIU4IUB.js} +1 -1
  77. package/dist/cdn/{TI2WEAIV.js → TG7JNJCB.js} +1 -1
  78. package/dist/cdn/{KJLS2SHS.js → TQK5XUSK.js} +1 -1
  79. package/dist/cdn/{BXTYXKBX.js → TRFGSCB4.js} +1 -1
  80. package/dist/cdn/{RARMFEVT.js → TT5HDSP6.js} +1 -1
  81. package/dist/cdn/{2FCUHT32.js → UA55OQF3.js} +1 -1
  82. package/dist/cdn/{STIAP2Q5.js → UHJ7VTFD.js} +1 -1
  83. package/dist/cdn/{HHB7ZYPG.js → ULANMCAP.js} +1 -1
  84. package/dist/cdn/{SRSYDZ6O.js → UY3IN55T.js} +1 -1
  85. package/dist/cdn/{TST7PDVP.js → UYQTXFCW.js} +1 -1
  86. package/dist/cdn/{USREDFJL.js → VKNN66QE.js} +1 -1
  87. package/dist/cdn/{OYCGFPQT.js → VLRPMYSL.js} +1 -1
  88. package/dist/cdn/{E4ZD7V5C.js → W3QA6ZI7.js} +1 -1
  89. package/dist/cdn/{7FHPITRG.js → WA5VS7K6.js} +1 -1
  90. package/dist/cdn/{P7Y5BFN2.js → WUP5BSUX.js} +1 -1
  91. package/dist/cdn/{MGNP3DY7.js → X47VAXVY.js} +1 -1
  92. package/dist/cdn/{XEYKRP6V.js → XK5OMNAS.js} +1 -1
  93. package/dist/cdn/{D4KRL7MP.js → YGO7XLM2.js} +1 -1
  94. package/dist/cdn/{RPT2UPHQ.js → YMIPGKRK.js} +1 -1
  95. package/dist/cdn/{R5OXT4NA.js → YN5ITGQJ.js} +1 -1
  96. package/dist/cdn/{YCIFTIY2.js → YTW4BANB.js} +1 -1
  97. package/dist/cdn/{Z2SCWDQL.js → ZGN6WYDJ.js} +1 -1
  98. package/dist/cdn/{4R4V25QG.js → ZNE4F3GH.js} +1 -1
  99. package/dist/cdn/index.js +1 -1
  100. package/dist/cdn/model/shared/setup-utils.js +1 -1
  101. package/dist/chunks/index.js +340 -340
  102. package/dist/chunks/runtime.js +1 -1
  103. package/dist/components/arcgis-chart/customElement.js +11 -11
  104. package/dist/docs/api.json +1 -1
  105. package/dist/docs/docs.json +1 -1
  106. package/dist/docs/web-types.json +1 -1
  107. package/package.json +4 -4
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as q}from"./VBI6VE3V.js";import{a as w}from"./SRSYDZ6O.js";import{a as Z}from"./RP6LD7CU.js";import{a as h,c as u,d as H,f as j}from"./OBPAQN4H.js";import i from"./2FCUHT32.js";import{g as a,o as v}from"./POA2XTTK.js";import{a as L}from"./WCJEURG5.js";import g from"./5CDCBHUV.js";import e from"./5H4GHC76.js";import{Aa as _,Ba as N}from"./43DLRSYB.js";import"./KX7KGXKQ.js";import{b as I}from"./NGXRBJKL.js";import"./FQB2OTR4.js";import{A as d,B as O,C as r,F as T,H as P,g as D,i as o,k as E,n as p,z as c}from"./3WNW44CU.js";import{a as f}from"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as b,b as m,k as B,n as C}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{Cc:k,Ec:R,Q:V,dd:A,hc:$,ic:U,l:M,mc:z,q:F},{h:K},{a:S}])=>{var l={label:"label",fieldList:"field-list",fab:"fab",disabledLabel:"disabled-label",timeBinningHeader:"time-binning-header",linkContainer:"link-container",list:"list",customSortButtons:"custom-sort-buttons",dimText:"dim-text",intervalContainer:"interval-container"},J=D`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin);margin-top:var(--arcgis-charts-top-section-margin)}.label,.disabled-label{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-minor);justify-content:space-between}.time-binning-header{display:flex;font-weight:700;margin-left:.5rem;margin-right:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:auto}.disabled-label{pointer-events:none}.fab{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:1.5rem;justify-content:center}.fab>calcite-button{--calcite-button-shadow: var(--calcite-shadow-md)}.fab span{white-space:normal;overflow-wrap:anywhere}.link-container{display:flex;justify-content:flex-end}.list{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major);max-height:400px;overflow-y:auto}.custom-sort-buttons{display:flex;justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}.mb-2{margin-bottom:var(--arcgis-charts-config-margin-minor)}.interval-container{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-minor)}`,x=class extends O{constructor(){super(...arguments),this._messages=L(),this.commonStrings=L({name:"common",blocking:!0}),this.barChartPopover=null,this.sortOrderElement=c(),this.aggregationElement=c(),this.categoryElement=c(),this.numericFieldsElement=c(),this.splitByFieldElement=c(),this.enableTimeBinningSwitch=c(),this.intervalAlignmentElement=c(),this.intervalElement=c(),this.originalCustomSortLabels=[],this.isCustomSortDisabled=!1,this.onBarChartDataChange=async e=>{try{if(e.detail!==null&&e.detail?.value!==void 0){let{contentKind:i}=e.detail,t=[...e.detail.value];switch(i){case a.aggregation:u(h),this.model.aggregationType=t[0]!==m.NoAggregation?t[0]:m.NoAggregation;break;case a.category:{u(h);let s=t[0]?.trim()||"";this.model.xAxisField=s;break}case a.numericFields:u(h),this.model.numericFields=t,(this.model.numericFields??[]).length>0&&this.model.aggregationType===m.Count&&this.model.numericFields[0]!==k(this.model.layer).idField&&(this.model.aggregationType=m.Sum);break;case a.splitByField:{u(h);let s=t[0]?.trim()||"";this.model.splitByField=s,this.model.colorMatch=!0;break}case a.sortOrder:{let s=t[0];if(s===f.customSort){let n=await this.updateCustomSortProps();this.model.setDataSortOrder(s,n)}else this.model.setDataSortOrder(s);this.sortOrderResetCounter+=1;break}case a.interval:this.model.temporalBinningSize=t[0]?.intervalSize,this.model.temporalBinningUnit=t[0]?.intervalUnits,this.arcgisChartsConfigCustomizedTimeInterval.emit();break;case a.intervalAlignment:this.model.timeAggregationType=t[0]??"";break;default:break}i!==a.interval&&i!==a.intervalAlignment&&j(h)}}catch(i){throw this.arcgisChartsConfigDataChangeError.emit({error:i,model:this.model}),i}this.removeBarChartDataPopover(),this.requestUpdate()},this.onModelConfigChange=()=>{this.requestUpdate()},this.onModelDataChange=async()=>{if(this.model.getDataSortOrder()===f.customSort){let e=await this.updateCustomSortProps();this.model.orderByList=e,this.sortOrderResetCounter+=1}else await this.updateCustomSortDisabled();this.requestUpdate()},this.popoverClose=e=>{this.barChartPopover===e?.target&&this.removeBarChartDataPopover()},this.selectedCustomSortItemId="",this.sortOrderResetCounter=0,this.layerFieldsInfo=[],this.open=!1,this.arcgisChartsConfigBarChartDataNumericFieldValidate=p(),this.arcgisChartsConfigCustomizedTimeInterval=p(),this.arcgisChartsConfigDataChangeError=p(),this.arcgisChartsConfigResetTimeInterval=p()}static{this.properties={selectedCustomSortItemId:16,aggregationLabel:16,timeAggregationLabel:16,disableSplitBy:16,sortOrderResetCounter:16,messageOverrides:0,model:0,layerFieldsInfo:0,open:5}}static{this.styles=J}load(){this.modelChange(this.model),this.onModelConfigChange(),this.updateCustomSortProps()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),this.aggregationLabel=_(this.model.aggregationType,this.commonStrings);let i=this.model.timeAggregationType;i!==void 0&&(this.timeAggregationLabel=N(i,this.commonStrings)),this.disableSplitBy=this.model.numericFields.length>1||this.model.xAxisField===""||this.model.xAxisField===V}disconnectedCallback(){super.disconnectedCallback(),this.removeBarChartDataPopover(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),this.model.removeEventListener("arcgisChartsModelDataChange",this.onModelDataChange)}modelChange(e,i){i?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),i?.removeEventListener("arcgisChartsModelDataChange",this.onModelDataChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelDataChange",this.onModelDataChange)}onCalciteListOrderChange(e){if(e.detail!==null&&e.detail!==void 0){let{newIndex:i,oldIndex:t}=e.detail;this.model.moveCustomSortValuesInOrderByList(t??0,i??t??0),this.sortOrderResetCounter+=1}}onCustomSortItemSelected(e){let{id:i}=e.target;this.selectedCustomSortItemId=this.selectedCustomSortItemId===i?"":i}onCustomSortItemSortHandleBeforeOpen(e){let{id:i}=e.target;this.selectedCustomSortItemId=i}onCustomSortListClick(e){e.preventDefault()}onCustomSortItemMoved(e){let{id:i}=e.target,t=this.model.orderByList.length,s=this.model.orderByList.indexOf(this.selectedCustomSortItemId);i===v.Up?t=s-1:i===v.Down&&(t=s+1),s>=0&&t>=0&&t<this.model.orderByList.length&&(this.model.moveCustomSortValuesInOrderByList(s,t),this.sortOrderResetCounter+=1)}onEnableTimeBinningChange(e){let i=e.target.checked;this.model.binTemporalData=i,this.requestUpdate()}buildNumericFieldItem(e){return w(e,o`<calcite-list-item .label=${$(this.layerFieldsInfo,e)} .value=${e} closable @calciteListItemClose=${this.onRemoveNumericField}></calcite-list-item>`)}resetTimeIntervalOriginal(e){this.popoverClose(e),this.model.resetTimeInterval!==void 0&&(this.model.resetTimeInterval(),this.arcgisChartsConfigResetTimeInterval.emit())}buildCustomSortListItems(){return q(this.model.orderByList,e=>e,e=>{let i=U(this.layerFieldsInfo,e),t=this.model.nullCategory!==void 0&&e.trim()===M.nullCategory?.text?.trim();return o`<calcite-list-item id=${e??E} .label=${e} .closed=${t} .description=${i} .value=${e} .selected=${this.selectedCustomSortItemId===e} @calciteListItemSelect=${this.onCustomSortItemSelected} @calciteListItemSortHandleBeforeOpen=${this.onCustomSortItemSortHandleBeforeOpen}><calcite-icon slot=content-end></calcite-icon></calcite-list-item>`})}buildCustomSortList(){return w(this.sortOrderResetCounter,o`<calcite-list label class=${r(l.list)} drag-enabled selection-mode=single selection-appearance=border @click=${this.onCustomSortListClick} @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildCustomSortListItems()}</calcite-list>`)}onAggregationSelect(e){this.contentKind=a.aggregation,this.setupPopover(e)}onSortOrderSelect(e){this.contentKind=a.sortOrder,this.setupPopover(e)}onCategorySelect(e){this.contentKind=a.category,this.setupPopover(e)}onSplitBySelect(e){this.splitByFieldElement.value&&!this.splitByFieldElement.value.disabled&&(this.contentKind=a.splitByField,this.setupPopover(e))}onAddNumericFields(e){this.contentKind=a.numericFields,this.setupPopover(e)}async onRemoveNumericField(e){let i=e.target.value;u(h),this.model.numericFields=this.model.numericFields.filter(t=>t!==i)}onIntervalAlignmentSelect(e){this.intervalAlignmentElement.value&&!this.intervalAlignmentElement.value.disabled&&(this.contentKind=a.intervalAlignment,this.setupPopover(e))}onIntervalSelect(e){this.intervalElement.value&&!this.intervalElement.value.disabled&&(this.contentKind=a.interval,this.setupPopover(e))}getCorrectedSplitByValue(){return this.model.splitByField===""||(this.model.numericFields??[]).length>1?"":$(this.layerFieldsInfo,this.model.splitByField)}getCorrectedCategoryValue(){return K({fieldName:this.model.xAxisField,fieldList:this.layerFieldsInfo})?"":$(this.layerFieldsInfo,this.model.xAxisField)}onShowDataLabelsChange(e){this.model.dataLabelsVisibility=e.target.checked}onTreatNullAsCategoryChange(e){this.model.fetchNULLValues=e.target.checked}async updateCustomSortProps(){let e=await this.model.getCustomSortValues();this.originalCustomSortLabels=[...e];let i=e.length>S.customSortLimit;return i&&(this.sortOrderElement.value&&(this.sortOrderElement.value.label=this._messages.xAxisAsc),this.model.setDataSortOrder(f.xAxisAsc)),this.isCustomSortDisabled=i,e}async updateCustomSortDisabled(){let e=await this.model.getCustomSortValues(S.customSortLimit+1);this.isCustomSortDisabled=e.length>S.customSortLimit}setupPopover(e){e.stopImmediatePropagation(),this.removeBarChartDataPopover();let i={size:this.model.temporalBinningSize??1,unit:this.model.temporalBinningUnit??B.Second},t,s,n,g=!1,y=!1;switch(this.contentKind){case a.aggregation:t=this.aggregationElement.value,s=this._messages.aggregationHeader,g=A(this.model.config.series??[])===F.BarAndLineFromFields,n=this.model.aggregationType;break;case a.category:t=this.categoryElement.value,s=this._messages.categoryHeader,n=this.model.xAxisField;break;case a.numericFields:t=this.numericFieldsElement.value,s=this._messages.numericFieldsHeader,n=this.model.numericFields;break;case a.splitByField:t=this.splitByFieldElement.value,s=this._messages.splitByFieldHeader,n=this.model.splitByField;break;case a.sortOrder:t=this.sortOrderElement.value,s=this._messages.sortOrderHeader,n=this.model.getDataSortOrder(),y=this.isCustomSortDisabled;break;case a.interval:t=this.intervalElement.value,s=this._messages.editInterval,n=i;break;case a.intervalAlignment:t=this.intervalAlignmentElement.value,s=this._messages.intervalAlignment,n=this.model.timeAggregationType??"";break}this.barChartPopover=T(o`<arcgis-charts-config-bar-chart-popover .headingTitle=${s} .referenceElement=${t} open .contentKind=${this.contentKind} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${n} .isCustomSortDisabled=${y} .isNoAggregationDisabled=${g} @arcgisChartsConfigBarChartDataPopoverChange=${this.onBarChartDataChange} @arcgisChartsConfigPopoverClose=${this.popoverClose}></arcgis-charts-config-bar-chart-popover>`),!document.body.contains(this.barChartPopover)&&this.barChartPopover!==null&&document.body.appendChild(this.barChartPopover)}removeBarChartDataPopover(){this.barChartPopover!==null&&(this.barChartPopover.open=!1,this.barChartPopover=Z(this.barChartPopover))}resetToOriginalCustomSortLabels(){this.selectedCustomSortItemId="",this.model.orderByList=[...this.originalCustomSortLabels],this.sortOrderResetCounter+=1}onTrimIncompleteIntervalChange(e){this.model.trimIncompleteTimeInterval=e.target.checked}onNullPolicyChange(e){this.model.nullPolicy=e.target.selectedItem?.value}shouldShowTimeBinning(){let e=this.layerFieldsInfo.find(t=>t.name===this.model.xAxisField),i=this.model.aggregationType!==m.NoAggregation;return e!==void 0&&R(e)&&i}renderSorting(){return o`<arcgis-charts-config-field-picker .disabled=${this.model.getAxisValueFormat(0)?.type===b.DateAxisFormat} .label=${this.model.getAxisValueFormat(0)?.type===b.DateAxisFormat?this._messages.xAxisAsc:this._messages[this.model.getDataSortOrder()]} @click=${this.onSortOrderSelect} ${d(this.sortOrderElement)}></arcgis-charts-config-field-picker>`}renderAggregation(){return o`<arcgis-charts-config-field-picker .label=${this.model.aggregationType===m.NoAggregation?this._messages.noAggregation:this.aggregationLabel} @click=${this.onAggregationSelect} ${d(this.aggregationElement)}></arcgis-charts-config-field-picker>`}renderCategory(){let e=this.getCorrectedCategoryValue();return o`<arcgis-charts-config-field-picker .label=${e} @click=${this.onCategorySelect} ${d(this.categoryElement)}></arcgis-charts-config-field-picker>`}renderSplitBy(){let e=this.getCorrectedSplitByValue();return o`<arcgis-charts-config-field-picker .label=${e} .disabled=${this.disableSplitBy} @click=${this.onSplitBySelect} ${d(this.splitByFieldElement)}></arcgis-charts-config-field-picker>`}renderNumericFields(e){let i=k(this.model.layer).idField,t=[];for(let s of e)s!==i&&t.push(this.buildNumericFieldItem(s));return o`<calcite-list label class=${r(l.fieldList)} ${d(this.numericFieldsElement)}>${t}</calcite-list>`}renderCustomSortUI(){let e=this.model.getDataSortOrder(),i=this.model.getAxisValueFormat(0)?.type,t=this.model.orderByList.indexOf(this.selectedCustomSortItemId);return i===b.CategoryAxisFormat&&e===f.customSort&&!this.isCustomSortDisabled?o`<calcite-label class=${r(l.label)}><div class=${r(l.customSortButtons)}><div><calcite-button appearance=transparent .disabled=${t===0||t===-1||this.selectedCustomSortItemId.trim()===""} icon-start=arrow-bold-up id=${v.Up} kind=neutral scale=s @click=${this.onCustomSortItemMoved}></calcite-button><calcite-button appearance=transparent .disabled=${t===-1||t===this.model.orderByList.length-1||this.selectedCustomSortItemId.trim()===""} icon-start=arrow-bold-down id=${v.Down} kind=neutral scale=s @click=${this.onCustomSortItemMoved}></calcite-button></div><calcite-button @click=${this.resetToOriginalCustomSortLabels} .disabled=${I(this.model.orderByList,this.originalCustomSortLabels)} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button></div>${A(this.model.config.series??[])===F.BarAndLineFromFields?this._messages.values:this._messages.category}${this.buildCustomSortList()}</calcite-label>`:null}renderInterval(){let e=(this.model.temporalBinningSize??0)<=0,i=this.model.temporalBinningSize??"",t=z(this.model.temporalBinningUnit??B.Second,this._messages)??"",s=H(h),n={size:this.model.temporalBinningSize,unit:this.model.temporalBinningUnit},g=I(n,s);return[o`<calcite-list label selection-appearance=border class=${r(l.intervalContainer)}><calcite-list-item .value=${e?"":`${i} ${t}`} .label=${e?"":`${i} ${t}`} @click=${e?()=>{}:this.onIntervalSelect} ${d(this.intervalElement)}><calcite-icon slot=content-end icon=pencil></calcite-icon></calcite-list-item></calcite-list>`,o`<div class=${r(l.linkContainer)}><calcite-button .disabled=${g} appearance=transparent scale=s icon-end=reset @click=${this.resetTimeIntervalOriginal}>${this._messages.reset}</calcite-button></div>`]}renderIntervalAlignment(){return o`<arcgis-charts-config-field-picker .label=${this.timeAggregationLabel} @click=${this.onIntervalAlignmentSelect} ${d(this.intervalAlignmentElement)}></arcgis-charts-config-field-picker>`}renderEmptyBins(){return o`<calcite-radio-button-group name=empty-bins layout=vertical @calciteRadioButtonGroupChange=${this.onNullPolicyChange}><calcite-label layout=inline><calcite-radio-button .value=${C.Zero} .checked=${this.model.nullPolicy===C.Zero}></calcite-radio-button>${this._messages.treatAsZero}</calcite-label><calcite-label layout=inline><calcite-radio-button .value=${C.Null} .checked=${this.model.nullPolicy===C.Null}></calcite-radio-button>${this._messages.treatAsNull}</calcite-label></calcite-radio-button-group>`}render(){let e=this.renderAggregation(),i=this.renderCategory(),t=this.renderSplitBy(),s=this.renderSorting(),n=this.renderNumericFields([...this.model.numericFields??[]]),g=this.renderCustomSortUI(),y=this.renderInterval(),G=this.renderIntervalAlignment(),W=this.renderEmptyBins();return o`<calcite-label class=${r(l.label)}>${this._messages.category}${i}</calcite-label><calcite-label class=${r(l.label)}>${this._messages.aggregation}${e}</calcite-label><calcite-label class=${r(l.label)}>${this._messages.numericFields}${n}</calcite-label><div class=${r(l.fab)}><calcite-button appearance=outline-fill kind=neutral scale=m width=auto round icon-start=plus @click=${this.onAddNumericFields}><span>${this._messages.selectNumericFields}</span></calcite-button></div><calcite-label class=${r(l.label)}><span class=${r(this.disableSplitBy?l.dimText:"")}>${this._messages.splitBy}</span>${t}</calcite-label><div .hidden=${!this.shouldShowTimeBinning()}><h3 class=${r(l.timeBinningHeader)}>${this._messages.timeBinningOptions}</h3><calcite-label class=${r(l.label)} layout=inline-space-between>${this._messages.enableTemporalBinning}<calcite-switch .checked=${this.model.binTemporalData} @calciteSwitchChange=${this.onEnableTimeBinningChange} ${d(this.enableTimeBinningSwitch)}></calcite-switch></calcite-label><div .hidden=${!this.model.binTemporalData||!this.shouldShowTimeBinning()}><calcite-label class=${r(l.label)}>${this._messages.interval}${y}</calcite-label><calcite-label class=${r(l.label)}>${this._messages.intervalAlignment}${G}</calcite-label><calcite-label class=${r(l.label)} layout=inline-space-between>${this._messages.trimIncompleteInterval}<calcite-switch .checked=${this.model.trimIncompleteTimeInterval} @calciteSwitchChange=${this.onTrimIncompleteIntervalChange}></calcite-switch></calcite-label>${this.model.aggregationType!==m.Count?o`<calcite-label class=${r(l.label)}>${this._messages.emptyBins}${W}</calcite-label>`:null}</div></div><calcite-label class=${r(l.label)} layout=inline-space-between>${this._messages.treatNullAsCategory}<calcite-switch .checked=${this.model.fetchNULLValues} @calciteSwitchChange=${this.onTreatNullAsCategoryChange}></calcite-switch></calcite-label><calcite-label class=${r(l.label)} layout=inline-space-between>${this._messages.showDataLabels}<calcite-switch .checked=${this.model.dataLabelsVisibility} @calciteSwitchChange=${this.onShowDataLabelsChange}></calcite-switch></calcite-label><calcite-label class=${r(this.model.getAxisValueFormat(0)?.type===b.DateAxisFormat?l.disabledLabel:l.label)}>${this._messages.sortOrder}${s}</calcite-label>${g}`}};P("arcgis-charts-config-bar-chart-data",x);return x},e,g,i)
2
+ import{a as q}from"./3PL6X4PU.js";import{a as w}from"./UY3IN55T.js";import{a as Z}from"./RP6LD7CU.js";import{a as h,c as u,d as H,f as j}from"./OBPAQN4H.js";import i from"./UA55OQF3.js";import{g as a,o as v}from"./POA2XTTK.js";import{a as L}from"./JUBE7XD2.js";import g from"./P657CUK2.js";import e from"./GXNMIY2V.js";import{Aa as _,Ba as N}from"./43DLRSYB.js";import"./KX7KGXKQ.js";import{b as I}from"./NGXRBJKL.js";import"./OWLTOYDG.js";import{A as d,B as O,C as r,F as T,H as P,g as D,i as o,k as E,n as p,z as c}from"./4QJLNQVP.js";import{a as f}from"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as b,b as m,k as B,n as C}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{Cc:k,Ec:R,Q:V,dd:A,hc:$,ic:U,l:M,mc:z,q:F},{h:K},{a:S}])=>{var l={label:"label",fieldList:"field-list",fab:"fab",disabledLabel:"disabled-label",timeBinningHeader:"time-binning-header",linkContainer:"link-container",list:"list",customSortButtons:"custom-sort-buttons",dimText:"dim-text",intervalContainer:"interval-container"},J=D`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin);margin-top:var(--arcgis-charts-top-section-margin)}.label,.disabled-label{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-minor);justify-content:space-between}.time-binning-header{display:flex;font-weight:700;margin-left:.5rem;margin-right:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:auto}.disabled-label{pointer-events:none}.fab{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:1.5rem;justify-content:center}.fab>calcite-button{--calcite-button-shadow: var(--calcite-shadow-md)}.fab span{white-space:normal;overflow-wrap:anywhere}.link-container{display:flex;justify-content:flex-end}.list{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major);max-height:400px;overflow-y:auto}.custom-sort-buttons{display:flex;justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}.mb-2{margin-bottom:var(--arcgis-charts-config-margin-minor)}.interval-container{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-minor)}`,x=class extends O{constructor(){super(...arguments),this._messages=L(),this.commonStrings=L({name:"common",blocking:!0}),this.barChartPopover=null,this.sortOrderElement=c(),this.aggregationElement=c(),this.categoryElement=c(),this.numericFieldsElement=c(),this.splitByFieldElement=c(),this.enableTimeBinningSwitch=c(),this.intervalAlignmentElement=c(),this.intervalElement=c(),this.originalCustomSortLabels=[],this.isCustomSortDisabled=!1,this.onBarChartDataChange=async e=>{try{if(e.detail!==null&&e.detail?.value!==void 0){let{contentKind:i}=e.detail,t=[...e.detail.value];switch(i){case a.aggregation:u(h),this.model.aggregationType=t[0]!==m.NoAggregation?t[0]:m.NoAggregation;break;case a.category:{u(h);let s=t[0]?.trim()||"";this.model.xAxisField=s;break}case a.numericFields:u(h),this.model.numericFields=t,(this.model.numericFields??[]).length>0&&this.model.aggregationType===m.Count&&this.model.numericFields[0]!==k(this.model.layer).idField&&(this.model.aggregationType=m.Sum);break;case a.splitByField:{u(h);let s=t[0]?.trim()||"";this.model.splitByField=s,this.model.colorMatch=!0;break}case a.sortOrder:{let s=t[0];if(s===f.customSort){let n=await this.updateCustomSortProps();this.model.setDataSortOrder(s,n)}else this.model.setDataSortOrder(s);this.sortOrderResetCounter+=1;break}case a.interval:this.model.temporalBinningSize=t[0]?.intervalSize,this.model.temporalBinningUnit=t[0]?.intervalUnits,this.arcgisChartsConfigCustomizedTimeInterval.emit();break;case a.intervalAlignment:this.model.timeAggregationType=t[0]??"";break;default:break}i!==a.interval&&i!==a.intervalAlignment&&j(h)}}catch(i){throw this.arcgisChartsConfigDataChangeError.emit({error:i,model:this.model}),i}this.removeBarChartDataPopover(),this.requestUpdate()},this.onModelConfigChange=()=>{this.requestUpdate()},this.onModelDataChange=async()=>{if(this.model.getDataSortOrder()===f.customSort){let e=await this.updateCustomSortProps();this.model.orderByList=e,this.sortOrderResetCounter+=1}else await this.updateCustomSortDisabled();this.requestUpdate()},this.popoverClose=e=>{this.barChartPopover===e?.target&&this.removeBarChartDataPopover()},this.selectedCustomSortItemId="",this.sortOrderResetCounter=0,this.layerFieldsInfo=[],this.open=!1,this.arcgisChartsConfigBarChartDataNumericFieldValidate=p(),this.arcgisChartsConfigCustomizedTimeInterval=p(),this.arcgisChartsConfigDataChangeError=p(),this.arcgisChartsConfigResetTimeInterval=p()}static{this.properties={selectedCustomSortItemId:16,aggregationLabel:16,timeAggregationLabel:16,disableSplitBy:16,sortOrderResetCounter:16,messageOverrides:0,model:0,layerFieldsInfo:0,open:5}}static{this.styles=J}load(){this.modelChange(this.model),this.onModelConfigChange(),this.updateCustomSortProps()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),this.aggregationLabel=_(this.model.aggregationType,this.commonStrings);let i=this.model.timeAggregationType;i!==void 0&&(this.timeAggregationLabel=N(i,this.commonStrings)),this.disableSplitBy=this.model.numericFields.length>1||this.model.xAxisField===""||this.model.xAxisField===V}disconnectedCallback(){super.disconnectedCallback(),this.removeBarChartDataPopover(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),this.model.removeEventListener("arcgisChartsModelDataChange",this.onModelDataChange)}modelChange(e,i){i?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),i?.removeEventListener("arcgisChartsModelDataChange",this.onModelDataChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelDataChange",this.onModelDataChange)}onCalciteListOrderChange(e){if(e.detail!==null&&e.detail!==void 0){let{newIndex:i,oldIndex:t}=e.detail;this.model.moveCustomSortValuesInOrderByList(t??0,i??t??0),this.sortOrderResetCounter+=1}}onCustomSortItemSelected(e){let{id:i}=e.target;this.selectedCustomSortItemId=this.selectedCustomSortItemId===i?"":i}onCustomSortItemSortHandleBeforeOpen(e){let{id:i}=e.target;this.selectedCustomSortItemId=i}onCustomSortListClick(e){e.preventDefault()}onCustomSortItemMoved(e){let{id:i}=e.target,t=this.model.orderByList.length,s=this.model.orderByList.indexOf(this.selectedCustomSortItemId);i===v.Up?t=s-1:i===v.Down&&(t=s+1),s>=0&&t>=0&&t<this.model.orderByList.length&&(this.model.moveCustomSortValuesInOrderByList(s,t),this.sortOrderResetCounter+=1)}onEnableTimeBinningChange(e){let i=e.target.checked;this.model.binTemporalData=i,this.requestUpdate()}buildNumericFieldItem(e){return w(e,o`<calcite-list-item .label=${$(this.layerFieldsInfo,e)} .value=${e} closable @calciteListItemClose=${this.onRemoveNumericField}></calcite-list-item>`)}resetTimeIntervalOriginal(e){this.popoverClose(e),this.model.resetTimeInterval!==void 0&&(this.model.resetTimeInterval(),this.arcgisChartsConfigResetTimeInterval.emit())}buildCustomSortListItems(){return q(this.model.orderByList,e=>e,e=>{let i=U(this.layerFieldsInfo,e),t=this.model.nullCategory!==void 0&&e.trim()===M.nullCategory?.text?.trim();return o`<calcite-list-item id=${e??E} .label=${e} .closed=${t} .description=${i} .value=${e} .selected=${this.selectedCustomSortItemId===e} @calciteListItemSelect=${this.onCustomSortItemSelected} @calciteListItemSortHandleBeforeOpen=${this.onCustomSortItemSortHandleBeforeOpen}><calcite-icon slot=content-end></calcite-icon></calcite-list-item>`})}buildCustomSortList(){return w(this.sortOrderResetCounter,o`<calcite-list label class=${r(l.list)} drag-enabled selection-mode=single selection-appearance=border @click=${this.onCustomSortListClick} @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildCustomSortListItems()}</calcite-list>`)}onAggregationSelect(e){this.contentKind=a.aggregation,this.setupPopover(e)}onSortOrderSelect(e){this.contentKind=a.sortOrder,this.setupPopover(e)}onCategorySelect(e){this.contentKind=a.category,this.setupPopover(e)}onSplitBySelect(e){this.splitByFieldElement.value&&!this.splitByFieldElement.value.disabled&&(this.contentKind=a.splitByField,this.setupPopover(e))}onAddNumericFields(e){this.contentKind=a.numericFields,this.setupPopover(e)}async onRemoveNumericField(e){let i=e.target.value;u(h),this.model.numericFields=this.model.numericFields.filter(t=>t!==i)}onIntervalAlignmentSelect(e){this.intervalAlignmentElement.value&&!this.intervalAlignmentElement.value.disabled&&(this.contentKind=a.intervalAlignment,this.setupPopover(e))}onIntervalSelect(e){this.intervalElement.value&&!this.intervalElement.value.disabled&&(this.contentKind=a.interval,this.setupPopover(e))}getCorrectedSplitByValue(){return this.model.splitByField===""||(this.model.numericFields??[]).length>1?"":$(this.layerFieldsInfo,this.model.splitByField)}getCorrectedCategoryValue(){return K({fieldName:this.model.xAxisField,fieldList:this.layerFieldsInfo})?"":$(this.layerFieldsInfo,this.model.xAxisField)}onShowDataLabelsChange(e){this.model.dataLabelsVisibility=e.target.checked}onTreatNullAsCategoryChange(e){this.model.fetchNULLValues=e.target.checked}async updateCustomSortProps(){let e=await this.model.getCustomSortValues();this.originalCustomSortLabels=[...e];let i=e.length>S.customSortLimit;return i&&(this.sortOrderElement.value&&(this.sortOrderElement.value.label=this._messages.xAxisAsc),this.model.setDataSortOrder(f.xAxisAsc)),this.isCustomSortDisabled=i,e}async updateCustomSortDisabled(){let e=await this.model.getCustomSortValues(S.customSortLimit+1);this.isCustomSortDisabled=e.length>S.customSortLimit}setupPopover(e){e.stopImmediatePropagation(),this.removeBarChartDataPopover();let i={size:this.model.temporalBinningSize??1,unit:this.model.temporalBinningUnit??B.Second},t,s,n,g=!1,y=!1;switch(this.contentKind){case a.aggregation:t=this.aggregationElement.value,s=this._messages.aggregationHeader,g=A(this.model.config.series??[])===F.BarAndLineFromFields,n=this.model.aggregationType;break;case a.category:t=this.categoryElement.value,s=this._messages.categoryHeader,n=this.model.xAxisField;break;case a.numericFields:t=this.numericFieldsElement.value,s=this._messages.numericFieldsHeader,n=this.model.numericFields;break;case a.splitByField:t=this.splitByFieldElement.value,s=this._messages.splitByFieldHeader,n=this.model.splitByField;break;case a.sortOrder:t=this.sortOrderElement.value,s=this._messages.sortOrderHeader,n=this.model.getDataSortOrder(),y=this.isCustomSortDisabled;break;case a.interval:t=this.intervalElement.value,s=this._messages.editInterval,n=i;break;case a.intervalAlignment:t=this.intervalAlignmentElement.value,s=this._messages.intervalAlignment,n=this.model.timeAggregationType??"";break}this.barChartPopover=T(o`<arcgis-charts-config-bar-chart-popover .headingTitle=${s} .referenceElement=${t} open .contentKind=${this.contentKind} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${n} .isCustomSortDisabled=${y} .isNoAggregationDisabled=${g} @arcgisChartsConfigBarChartDataPopoverChange=${this.onBarChartDataChange} @arcgisChartsConfigPopoverClose=${this.popoverClose}></arcgis-charts-config-bar-chart-popover>`),!document.body.contains(this.barChartPopover)&&this.barChartPopover!==null&&document.body.appendChild(this.barChartPopover)}removeBarChartDataPopover(){this.barChartPopover!==null&&(this.barChartPopover.open=!1,this.barChartPopover=Z(this.barChartPopover))}resetToOriginalCustomSortLabels(){this.selectedCustomSortItemId="",this.model.orderByList=[...this.originalCustomSortLabels],this.sortOrderResetCounter+=1}onTrimIncompleteIntervalChange(e){this.model.trimIncompleteTimeInterval=e.target.checked}onNullPolicyChange(e){this.model.nullPolicy=e.target.selectedItem?.value}shouldShowTimeBinning(){let e=this.layerFieldsInfo.find(t=>t.name===this.model.xAxisField),i=this.model.aggregationType!==m.NoAggregation;return e!==void 0&&R(e)&&i}renderSorting(){return o`<arcgis-charts-config-field-picker .disabled=${this.model.getAxisValueFormat(0)?.type===b.DateAxisFormat} .label=${this.model.getAxisValueFormat(0)?.type===b.DateAxisFormat?this._messages.xAxisAsc:this._messages[this.model.getDataSortOrder()]} @click=${this.onSortOrderSelect} ${d(this.sortOrderElement)}></arcgis-charts-config-field-picker>`}renderAggregation(){return o`<arcgis-charts-config-field-picker .label=${this.model.aggregationType===m.NoAggregation?this._messages.noAggregation:this.aggregationLabel} @click=${this.onAggregationSelect} ${d(this.aggregationElement)}></arcgis-charts-config-field-picker>`}renderCategory(){let e=this.getCorrectedCategoryValue();return o`<arcgis-charts-config-field-picker .label=${e} @click=${this.onCategorySelect} ${d(this.categoryElement)}></arcgis-charts-config-field-picker>`}renderSplitBy(){let e=this.getCorrectedSplitByValue();return o`<arcgis-charts-config-field-picker .label=${e} .disabled=${this.disableSplitBy} @click=${this.onSplitBySelect} ${d(this.splitByFieldElement)}></arcgis-charts-config-field-picker>`}renderNumericFields(e){let i=k(this.model.layer).idField,t=[];for(let s of e)s!==i&&t.push(this.buildNumericFieldItem(s));return o`<calcite-list label class=${r(l.fieldList)} ${d(this.numericFieldsElement)}>${t}</calcite-list>`}renderCustomSortUI(){let e=this.model.getDataSortOrder(),i=this.model.getAxisValueFormat(0)?.type,t=this.model.orderByList.indexOf(this.selectedCustomSortItemId);return i===b.CategoryAxisFormat&&e===f.customSort&&!this.isCustomSortDisabled?o`<calcite-label class=${r(l.label)}><div class=${r(l.customSortButtons)}><div><calcite-button appearance=transparent .disabled=${t===0||t===-1||this.selectedCustomSortItemId.trim()===""} icon-start=arrow-bold-up id=${v.Up} kind=neutral scale=s @click=${this.onCustomSortItemMoved}></calcite-button><calcite-button appearance=transparent .disabled=${t===-1||t===this.model.orderByList.length-1||this.selectedCustomSortItemId.trim()===""} icon-start=arrow-bold-down id=${v.Down} kind=neutral scale=s @click=${this.onCustomSortItemMoved}></calcite-button></div><calcite-button @click=${this.resetToOriginalCustomSortLabels} .disabled=${I(this.model.orderByList,this.originalCustomSortLabels)} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button></div>${A(this.model.config.series??[])===F.BarAndLineFromFields?this._messages.values:this._messages.category}${this.buildCustomSortList()}</calcite-label>`:null}renderInterval(){let e=(this.model.temporalBinningSize??0)<=0,i=this.model.temporalBinningSize??"",t=z(this.model.temporalBinningUnit??B.Second,this._messages)??"",s=H(h),n={size:this.model.temporalBinningSize,unit:this.model.temporalBinningUnit},g=I(n,s);return[o`<calcite-list label selection-appearance=border class=${r(l.intervalContainer)}><calcite-list-item .value=${e?"":`${i} ${t}`} .label=${e?"":`${i} ${t}`} @click=${e?()=>{}:this.onIntervalSelect} ${d(this.intervalElement)}><calcite-icon slot=content-end icon=pencil></calcite-icon></calcite-list-item></calcite-list>`,o`<div class=${r(l.linkContainer)}><calcite-button .disabled=${g} appearance=transparent scale=s icon-end=reset @click=${this.resetTimeIntervalOriginal}>${this._messages.reset}</calcite-button></div>`]}renderIntervalAlignment(){return o`<arcgis-charts-config-field-picker .label=${this.timeAggregationLabel} @click=${this.onIntervalAlignmentSelect} ${d(this.intervalAlignmentElement)}></arcgis-charts-config-field-picker>`}renderEmptyBins(){return o`<calcite-radio-button-group name=empty-bins layout=vertical @calciteRadioButtonGroupChange=${this.onNullPolicyChange}><calcite-label layout=inline><calcite-radio-button .value=${C.Zero} .checked=${this.model.nullPolicy===C.Zero}></calcite-radio-button>${this._messages.treatAsZero}</calcite-label><calcite-label layout=inline><calcite-radio-button .value=${C.Null} .checked=${this.model.nullPolicy===C.Null}></calcite-radio-button>${this._messages.treatAsNull}</calcite-label></calcite-radio-button-group>`}render(){let e=this.renderAggregation(),i=this.renderCategory(),t=this.renderSplitBy(),s=this.renderSorting(),n=this.renderNumericFields([...this.model.numericFields??[]]),g=this.renderCustomSortUI(),y=this.renderInterval(),G=this.renderIntervalAlignment(),W=this.renderEmptyBins();return o`<calcite-label class=${r(l.label)}>${this._messages.category}${i}</calcite-label><calcite-label class=${r(l.label)}>${this._messages.aggregation}${e}</calcite-label><calcite-label class=${r(l.label)}>${this._messages.numericFields}${n}</calcite-label><div class=${r(l.fab)}><calcite-button appearance=outline-fill kind=neutral scale=m width=auto round icon-start=plus @click=${this.onAddNumericFields}><span>${this._messages.selectNumericFields}</span></calcite-button></div><calcite-label class=${r(l.label)}><span class=${r(this.disableSplitBy?l.dimText:"")}>${this._messages.splitBy}</span>${t}</calcite-label><div .hidden=${!this.shouldShowTimeBinning()}><h3 class=${r(l.timeBinningHeader)}>${this._messages.timeBinningOptions}</h3><calcite-label class=${r(l.label)} layout=inline-space-between>${this._messages.enableTemporalBinning}<calcite-switch .checked=${this.model.binTemporalData} @calciteSwitchChange=${this.onEnableTimeBinningChange} ${d(this.enableTimeBinningSwitch)}></calcite-switch></calcite-label><div .hidden=${!this.model.binTemporalData||!this.shouldShowTimeBinning()}><calcite-label class=${r(l.label)}>${this._messages.interval}${y}</calcite-label><calcite-label class=${r(l.label)}>${this._messages.intervalAlignment}${G}</calcite-label><calcite-label class=${r(l.label)} layout=inline-space-between>${this._messages.trimIncompleteInterval}<calcite-switch .checked=${this.model.trimIncompleteTimeInterval} @calciteSwitchChange=${this.onTrimIncompleteIntervalChange}></calcite-switch></calcite-label>${this.model.aggregationType!==m.Count?o`<calcite-label class=${r(l.label)}>${this._messages.emptyBins}${W}</calcite-label>`:null}</div></div><calcite-label class=${r(l.label)} layout=inline-space-between>${this._messages.treatNullAsCategory}<calcite-switch .checked=${this.model.fetchNULLValues} @calciteSwitchChange=${this.onTreatNullAsCategoryChange}></calcite-switch></calcite-label><calcite-label class=${r(l.label)} layout=inline-space-between>${this._messages.showDataLabels}<calcite-switch .checked=${this.model.dataLabelsVisibility} @calciteSwitchChange=${this.onShowDataLabelsChange}></calcite-switch></calcite-label><calcite-label class=${r(this.model.getAxisValueFormat(0)?.type===b.DateAxisFormat?l.disabledLabel:l.label)}>${this._messages.sortOrder}${s}</calcite-label>${g}`}};P("arcgis-charts-config-bar-chart-data",x);return x},e,g,i)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import g from"./CCKX6FAN.js";import f from"./BKXCCTLV.js";import e from"./STIAP2Q5.js";import c from"./TI2WEAIV.js";import a from"./5H4GHC76.js";import{E as l}from"./43DLRSYB.js";import{d as b}from"./NGXRBJKL.js";import{j as d}from"./QP5UAIC6.js";import{p as u}from"./QVG3TOL4.js";export default $arcgis.t(([{Zb:m},{e:n},{a:I,b:h,e:p,f:y,j:r,k:A,l:L,m:C,n:v,o:V,p:S,q:T,r:B,s:O,t:M,u:k,v:z,w:D},G,{a:Y,b:Z,c:_}])=>{var H=e=>{for(let i of e.axes??[])if(i?.grid!==void 0)return i.grid},N=(e,i,s)=>{let t=i.axes;(s??t?.map((o,g)=>g)??[]).forEach(o=>{t?.[o]!==void 0&&(t[o].grid=b(e))})},j=(e,i)=>i.axes?.[e]?.visible??!0,w=(e,i,s)=>{let t=s.axes?.[i];t!==void 0&&(t.visible=e)},P=(e,i)=>e.axes?.[i]?.displayZeroLine??!1,q=e=>{let{config:i,displayZeroLine:s,axisIndex:t}=e;h({config:i,axisIndex:t,callback:o=>{o.displayZeroLine=s}})},U=(e,i)=>e.axes?.[i]?.displayCursorTooltip??!1,W=e=>{let{config:i,displayCursorTooltip:s,axisIndex:t}=e;I({config:i,axisIndex:t,callback:o=>{o.displayCursorTooltip=s}})},E=(e,i)=>e.axes?.[i]?.buffer??!1,R=e=>{let{config:i,buffer:s,axisIndex:t}=e;h({config:i,axisIndex:t,callback:o=>{o.buffer=s}})},X=(e,i)=>e.axes?.[i]?.tickSpacing,J=e=>{let{config:i,tickSpacing:s,axisIndex:t}=e;i.axes?.[t]!==void 0&&(i.axes[t].tickSpacing=s)},K=(e,i)=>e.axes?.[i]?.integerOnlyValues??!1,Q=e=>{let{config:i,integerOnlyValues:s,axisIndex:t}=e;h({config:i,axisIndex:t,callback:o=>{o.integerOnlyValues=s}})},$=e=>e.horizontalAxisLabelsBehavior??u.Rotate,ii=(e,i)=>{i.horizontalAxisLabelsBehavior=e},si=e=>e.verticalAxisLabelsBehavior??u.Wrap,ei=(e,i)=>{i.verticalAxisLabelsBehavior=e},ti=e=>e.cursorCrosshair?.horizontalLineVisible??!1,oi=(e,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.horizontalLineVisible=e},ri=e=>e.cursorCrosshair?.verticalLineVisible??!1,ni=(e,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.verticalLineVisible=e},ai=e=>e.cursorCrosshair?.style,ci=(e,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.style=e},gi=e=>e.cursorCrosshair,fi=(e,i)=>{i.cursorCrosshair=e},xi=Object.defineProperty,li=Object.getOwnPropertyDescriptor,c=(e,i,s,t)=>{for(var o=li(i,s),g=e.length-1,f;g>=0;g--)(f=e[g])&&(o=f(i,s,o)||o);return o&&xi(i,s,o),o},a=class extends G{getAxisTitleText(i){return r({config:this._config,axisIndex:i,func:s=>B(s,this._config)})??""}setAxisTitleText(i,s){r({config:this._config,axisIndex:s,func:t=>{O(i,t,this._config)}})}getAxisVisibility(i){return r({config:this._config,axisIndex:i,func:s=>j(s,this._config)})??!0}setAxisVisibility(i,s){this.guardSetterFromAsyncOverwrite(()=>{r({config:this._config,axisIndex:s,func:t=>{w(i,t,this._config),this.emitConfigUpdate("setAxisVisibility")}})})}getAxisLabelsVisibility(i){return r({config:this._config,axisIndex:i,func:s=>S(s,this._config)})??!0}setAxisLabelsVisibility(i,s){this.guardSetterFromAsyncOverwrite(()=>{T({visibility:i,axisIndex:s,config:this._config}),this.emitConfigUpdate("setAxisLabelsVisibility")})}getAxisTitleVisibility(i){return r({config:this._config,axisIndex:i,func:s=>M(s,this._config)})??!1}setAxisTitleVisibility(i,s){k({visibility:i,axisIndex:s,config:this._config})}getMaxBound(i){return r({config:this._config,axisIndex:i,func:s=>p({config:this._config,axisIndex:s,isMax:!0})})??Number.NaN}setMaxBound(i,s){r({config:this._config,axisIndex:s,func:t=>{y({config:this._config,value:i,axisIndex:t,isMax:!0})}})}getMinBound(i){return r({config:this._config,axisIndex:i,func:s=>p({config:this._config,axisIndex:s,isMax:!1})})??Number.NaN}setMinBound(i,s){r({config:this._config,axisIndex:s,func:t=>{y({config:this._config,value:i,axisIndex:t,isMax:!1})}})}getAxisValueFormat(i){return r({config:this._config,axisIndex:i,func:s=>A(s,this._config)})}setAxisValueFormat(i,s){r({config:this._config,axisIndex:i,func:t=>{L({config:this._config,valueFormat:s,axisIndex:t,commonStrings:this.commonStrings})}})}getLogarithmic(i){return r({config:this._config,axisIndex:i,func:s=>C(this._config,s)})??!1}setLogarithmic(i,s){r({config:this._config,axisIndex:s,func:t=>{v({config:this._config,isLogarithmic:i,axisIndex:t})}})}getAxisScrollbar(i){return r({config:this._config,axisIndex:i,func:s=>this._config.axes?.[s]?.scrollbar})}setAxisScrollbar(i,s){r({config:this._config,axisIndex:s,func:t=>{V({config:this._config,scrollbar:i,axisIndex:t})}})}getAxisTitleSymbol(i){return r({config:this._config,axisIndex:i,func:s=>z(this._config,s)})}setAxisTitleSymbol(i,s){D({symbol:i,config:this._config,axisIndex:s})}getHorizontalAxisLabelsBehavior(){return $(this._config)}setHorizontalAxisLabelsBehavior(i){ii(i,this._config)}getVerticalAxisLabelsBehavior(){return si(this._config)}setVerticalAxisLabelsBehavior(i){ei(i,this._config)}getGridLinesSymbol(){return H(this._config)}setGridLinesSymbol(i,s){N(i,this._config,s)}getDefaultXAxisTitleText(){return this.commonStrings.utilsStrings.statistics.count}getDisplayZeroLine(i){return r({config:this._config,axisIndex:i,func:s=>P(this._config,s)})??!1}setDisplayZeroLine(i,s){q({config:this._config,displayZeroLine:i,axisIndex:s})}getDisplayCursorTooltip(i){return r({config:this._config,axisIndex:i,func:s=>U(this._config,s)})??!1}setDisplayCursorTooltip(i,s){W({config:this._config,displayCursorTooltip:i,axisIndex:s})}getBuffer(i){return r({config:this._config,axisIndex:i,func:s=>E(this._config,s)})??!1}setBuffer(i,s){R({config:this._config,buffer:i,axisIndex:s})}getTickSpacing(i){return X(this._config,i)}setTickSpacing(i,s){r({config:this._config,axisIndex:s,func:t=>{J({config:this._config,tickSpacing:i,axisIndex:t})}})}getIntegerOnlyValues(i){return r({config:this._config,axisIndex:i,func:s=>K(this._config,s)})??!1}setIntegerOnlyValues(i,s){Q({config:this._config,integerOnlyValues:i,axisIndex:s})}get cursorCrosshairHorizontalLineVisibility(){return ti(this._config)}set cursorCrosshairHorizontalLineVisibility(i){oi(i,this._config)}get cursorCrosshairVerticalLineVisibility(){return ri(this._config)}set cursorCrosshairVerticalLineVisibility(i){ni(i,this._config)}get cursorCrosshairStyle(){return ai(this._config)}set cursorCrosshairStyle(i){i&&ci(i,this._config)}get cursorCrosshair(){return gi(this._config)}set cursorCrosshair(i){i&&fi(i,this._config)}};c([n],a.prototype,"setAxisTitleText");c([n],a.prototype,"setAxisTitleVisibility");c([n],a.prototype,"setMaxBound");c([n],a.prototype,"setMinBound");c([n],a.prototype,"setAxisValueFormat");c([n],a.prototype,"setLogarithmic");c([n],a.prototype,"setAxisScrollbar");c([n],a.prototype,"setAxisTitleSymbol");c([n],a.prototype,"setHorizontalAxisLabelsBehavior");c([n],a.prototype,"setVerticalAxisLabelsBehavior");c([n],a.prototype,"setGridLinesSymbol");c([n],a.prototype,"setDisplayZeroLine");c([n],a.prototype,"setDisplayCursorTooltip");c([n],a.prototype,"setBuffer");c([n],a.prototype,"setTickSpacing");c([n],a.prototype,"setIntegerOnlyValues");c([n],a.prototype,"cursorCrosshairHorizontalLineVisibility");c([n],a.prototype,"cursorCrosshairVerticalLineVisibility");c([n],a.prototype,"cursorCrosshairStyle");c([n],a.prototype,"cursorCrosshair");var hi=Object.defineProperty,ui=Object.getOwnPropertyDescriptor,F=(e,i,s,t)=>{for(var o=ui(i,s),g=e.length-1,f;g>=0;g--)(f=e[g])&&(o=f(i,s,o)||o);return o&&hi(i,s,o),o},x=class extends _{getYGuidesLength(){return this._config.axes?.[1]?.guides?.length}addYAxisGuide(i,s){Y({config:this._config,name:i,index:s,orientation:d.Y})}deleteYAxisGuide(i){Z({config:this._config,index:i,orientation:d.Y})}};F([n],x.prototype,"addYAxisGuide");F([n],x.prototype,"deleteYAxisGuide");var di=[_];m(x,di);return{a:a,b:x}},a,c,e,f,g)
2
+ import g from"./7QKHK4XD.js";import f from"./LRSAWJXU.js";import e from"./UHJ7VTFD.js";import c from"./TG7JNJCB.js";import a from"./GXNMIY2V.js";import{E as l}from"./43DLRSYB.js";import{d as b}from"./NGXRBJKL.js";import{j as d}from"./QP5UAIC6.js";import{p as u}from"./QVG3TOL4.js";export default $arcgis.t(([{Zb:m},{e:n},{a:I,b:h,e:p,f:y,j:r,k:A,l:L,m:C,n:v,o:V,p:S,q:T,r:B,s:O,t:M,u:k,v:z,w:D},G,{a:Y,b:Z,c:_}])=>{var H=e=>{for(let i of e.axes??[])if(i?.grid!==void 0)return i.grid},N=(e,i,s)=>{let t=i.axes;(s??t?.map((o,g)=>g)??[]).forEach(o=>{t?.[o]!==void 0&&(t[o].grid=b(e))})},j=(e,i)=>i.axes?.[e]?.visible??!0,w=(e,i,s)=>{let t=s.axes?.[i];t!==void 0&&(t.visible=e)},P=(e,i)=>e.axes?.[i]?.displayZeroLine??!1,q=e=>{let{config:i,displayZeroLine:s,axisIndex:t}=e;h({config:i,axisIndex:t,callback:o=>{o.displayZeroLine=s}})},U=(e,i)=>e.axes?.[i]?.displayCursorTooltip??!1,W=e=>{let{config:i,displayCursorTooltip:s,axisIndex:t}=e;I({config:i,axisIndex:t,callback:o=>{o.displayCursorTooltip=s}})},E=(e,i)=>e.axes?.[i]?.buffer??!1,R=e=>{let{config:i,buffer:s,axisIndex:t}=e;h({config:i,axisIndex:t,callback:o=>{o.buffer=s}})},X=(e,i)=>e.axes?.[i]?.tickSpacing,J=e=>{let{config:i,tickSpacing:s,axisIndex:t}=e;i.axes?.[t]!==void 0&&(i.axes[t].tickSpacing=s)},K=(e,i)=>e.axes?.[i]?.integerOnlyValues??!1,Q=e=>{let{config:i,integerOnlyValues:s,axisIndex:t}=e;h({config:i,axisIndex:t,callback:o=>{o.integerOnlyValues=s}})},$=e=>e.horizontalAxisLabelsBehavior??u.Rotate,ii=(e,i)=>{i.horizontalAxisLabelsBehavior=e},si=e=>e.verticalAxisLabelsBehavior??u.Wrap,ei=(e,i)=>{i.verticalAxisLabelsBehavior=e},ti=e=>e.cursorCrosshair?.horizontalLineVisible??!1,oi=(e,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.horizontalLineVisible=e},ri=e=>e.cursorCrosshair?.verticalLineVisible??!1,ni=(e,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.verticalLineVisible=e},ai=e=>e.cursorCrosshair?.style,ci=(e,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.style=e},gi=e=>e.cursorCrosshair,fi=(e,i)=>{i.cursorCrosshair=e},xi=Object.defineProperty,li=Object.getOwnPropertyDescriptor,c=(e,i,s,t)=>{for(var o=li(i,s),g=e.length-1,f;g>=0;g--)(f=e[g])&&(o=f(i,s,o)||o);return o&&xi(i,s,o),o},a=class extends G{getAxisTitleText(i){return r({config:this._config,axisIndex:i,func:s=>B(s,this._config)})??""}setAxisTitleText(i,s){r({config:this._config,axisIndex:s,func:t=>{O(i,t,this._config)}})}getAxisVisibility(i){return r({config:this._config,axisIndex:i,func:s=>j(s,this._config)})??!0}setAxisVisibility(i,s){this.guardSetterFromAsyncOverwrite(()=>{r({config:this._config,axisIndex:s,func:t=>{w(i,t,this._config),this.emitConfigUpdate("setAxisVisibility")}})})}getAxisLabelsVisibility(i){return r({config:this._config,axisIndex:i,func:s=>S(s,this._config)})??!0}setAxisLabelsVisibility(i,s){this.guardSetterFromAsyncOverwrite(()=>{T({visibility:i,axisIndex:s,config:this._config}),this.emitConfigUpdate("setAxisLabelsVisibility")})}getAxisTitleVisibility(i){return r({config:this._config,axisIndex:i,func:s=>M(s,this._config)})??!1}setAxisTitleVisibility(i,s){k({visibility:i,axisIndex:s,config:this._config})}getMaxBound(i){return r({config:this._config,axisIndex:i,func:s=>p({config:this._config,axisIndex:s,isMax:!0})})??Number.NaN}setMaxBound(i,s){r({config:this._config,axisIndex:s,func:t=>{y({config:this._config,value:i,axisIndex:t,isMax:!0})}})}getMinBound(i){return r({config:this._config,axisIndex:i,func:s=>p({config:this._config,axisIndex:s,isMax:!1})})??Number.NaN}setMinBound(i,s){r({config:this._config,axisIndex:s,func:t=>{y({config:this._config,value:i,axisIndex:t,isMax:!1})}})}getAxisValueFormat(i){return r({config:this._config,axisIndex:i,func:s=>A(s,this._config)})}setAxisValueFormat(i,s){r({config:this._config,axisIndex:i,func:t=>{L({config:this._config,valueFormat:s,axisIndex:t,commonStrings:this.commonStrings})}})}getLogarithmic(i){return r({config:this._config,axisIndex:i,func:s=>C(this._config,s)})??!1}setLogarithmic(i,s){r({config:this._config,axisIndex:s,func:t=>{v({config:this._config,isLogarithmic:i,axisIndex:t})}})}getAxisScrollbar(i){return r({config:this._config,axisIndex:i,func:s=>this._config.axes?.[s]?.scrollbar})}setAxisScrollbar(i,s){r({config:this._config,axisIndex:s,func:t=>{V({config:this._config,scrollbar:i,axisIndex:t})}})}getAxisTitleSymbol(i){return r({config:this._config,axisIndex:i,func:s=>z(this._config,s)})}setAxisTitleSymbol(i,s){D({symbol:i,config:this._config,axisIndex:s})}getHorizontalAxisLabelsBehavior(){return $(this._config)}setHorizontalAxisLabelsBehavior(i){ii(i,this._config)}getVerticalAxisLabelsBehavior(){return si(this._config)}setVerticalAxisLabelsBehavior(i){ei(i,this._config)}getGridLinesSymbol(){return H(this._config)}setGridLinesSymbol(i,s){N(i,this._config,s)}getDefaultXAxisTitleText(){return this.commonStrings.utilsStrings.statistics.count}getDisplayZeroLine(i){return r({config:this._config,axisIndex:i,func:s=>P(this._config,s)})??!1}setDisplayZeroLine(i,s){q({config:this._config,displayZeroLine:i,axisIndex:s})}getDisplayCursorTooltip(i){return r({config:this._config,axisIndex:i,func:s=>U(this._config,s)})??!1}setDisplayCursorTooltip(i,s){W({config:this._config,displayCursorTooltip:i,axisIndex:s})}getBuffer(i){return r({config:this._config,axisIndex:i,func:s=>E(this._config,s)})??!1}setBuffer(i,s){R({config:this._config,buffer:i,axisIndex:s})}getTickSpacing(i){return X(this._config,i)}setTickSpacing(i,s){r({config:this._config,axisIndex:s,func:t=>{J({config:this._config,tickSpacing:i,axisIndex:t})}})}getIntegerOnlyValues(i){return r({config:this._config,axisIndex:i,func:s=>K(this._config,s)})??!1}setIntegerOnlyValues(i,s){Q({config:this._config,integerOnlyValues:i,axisIndex:s})}get cursorCrosshairHorizontalLineVisibility(){return ti(this._config)}set cursorCrosshairHorizontalLineVisibility(i){oi(i,this._config)}get cursorCrosshairVerticalLineVisibility(){return ri(this._config)}set cursorCrosshairVerticalLineVisibility(i){ni(i,this._config)}get cursorCrosshairStyle(){return ai(this._config)}set cursorCrosshairStyle(i){i&&ci(i,this._config)}get cursorCrosshair(){return gi(this._config)}set cursorCrosshair(i){i&&fi(i,this._config)}};c([n],a.prototype,"setAxisTitleText");c([n],a.prototype,"setAxisTitleVisibility");c([n],a.prototype,"setMaxBound");c([n],a.prototype,"setMinBound");c([n],a.prototype,"setAxisValueFormat");c([n],a.prototype,"setLogarithmic");c([n],a.prototype,"setAxisScrollbar");c([n],a.prototype,"setAxisTitleSymbol");c([n],a.prototype,"setHorizontalAxisLabelsBehavior");c([n],a.prototype,"setVerticalAxisLabelsBehavior");c([n],a.prototype,"setGridLinesSymbol");c([n],a.prototype,"setDisplayZeroLine");c([n],a.prototype,"setDisplayCursorTooltip");c([n],a.prototype,"setBuffer");c([n],a.prototype,"setTickSpacing");c([n],a.prototype,"setIntegerOnlyValues");c([n],a.prototype,"cursorCrosshairHorizontalLineVisibility");c([n],a.prototype,"cursorCrosshairVerticalLineVisibility");c([n],a.prototype,"cursorCrosshairStyle");c([n],a.prototype,"cursorCrosshair");var hi=Object.defineProperty,ui=Object.getOwnPropertyDescriptor,F=(e,i,s,t)=>{for(var o=ui(i,s),g=e.length-1,f;g>=0;g--)(f=e[g])&&(o=f(i,s,o)||o);return o&&hi(i,s,o),o},x=class extends _{getYGuidesLength(){return this._config.axes?.[1]?.guides?.length}addYAxisGuide(i,s){Y({config:this._config,name:i,index:s,orientation:d.Y})}deleteYAxisGuide(i){Z({config:this._config,index:i,orientation:d.Y})}};F([n],x.prototype,"addYAxisGuide");F([n],x.prototype,"deleteYAxisGuide");var di=[_];m(x,di);return{a:a,b:x}},a,c,e,f,g)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import r from"./MGNP3DY7.js";import q from"./XEYKRP6V.js";import o from"./5CDCBHUV.js";import n from"./PLGVDNNI.js";import l from"./PK4FGBU5.js";import j from"./AYAESDR6.js";import i from"./AGLVYLFP.js";import h from"./UEB2J4WK.js";import g from"./CCKX6FAN.js";import f from"./P64QA7JR.js";import e from"./54DJH26Q.js";import d from"./BKXCCTLV.js";import c from"./STIAP2Q5.js";import b from"./TI2WEAIV.js";import a from"./5H4GHC76.js";import{M as D,O as w,V as k,_ as P,ea as R}from"./43DLRSYB.js";import{b as x}from"./NGXRBJKL.js";import{a as W}from"./QP5UAIC6.js";import{c as B}from"./Z5QPCSUQ.js";import{a as p,b as m,f as F}from"./QVG3TOL4.js";export default $arcgis.t(([{Cc:U,Ja:I,La:C,Q:y,Wb:V,Xb:E,Yb:N,Zb:M},{e:o},{c:j,d:T,f:v},O,{b:xe,d:Fe,f:Be},{b:ue,d:Se,f:_e},{d:me,e:pe},de,{d:Y},{b:Ie},{a:le,b:ge,c:ce,d:he},{a:ye,b:fe},{d:A,e:f,f:z},{b:Ce},{a:q,b:G,c:H,d:J,e:K,f:Q,g:X,h:Z,i:$,j:ee,k:ie,m:te,ma:se,na:d,oa:re,pa:u,qa:S,ra:oe,sa:_,ua:b,va:L,wa:ne,xa:ae}])=>{var Te=(s,e)=>e.series?.[s].assignToSecondValueAxis??!1,ve=s=>{let{assign:e,seriesIndex:i,config:t,commonStrings:r}=s;e&&t.axes!==void 0&&!t.axes?.[2]&&(t.axes[2]=P(r,p.BarSeries)[1]),t.series&&t.series.forEach((l,c)=>{c===i?l.assignToSecondValueAxis=e:c!==i&&l?.assignToSecondValueAxis!==!0&&(l.assignToSecondValueAxis=!1)}),t.axes?.[2]&&!t.series.some(l=>l.assignToSecondValueAxis)&&t.axes.splice(2,1)},Ae=(s,e)=>e.series?.[s]?.name,be=(s,e,i)=>{i.series?.[e]&&(i.series[e].name=s)},Le=(s,e)=>{let i=e.series?.[s],t;return C(i)?t=i.fillSymbol?.color:I(i)&&(t=i.lineSymbol?.color),t},Oe=(s,e,i)=>{let t=i.series?.[e];t&&(C(t)?t.fillSymbol={...R(e),...t.fillSymbol,color:s}:I(t)&&(t.lineSymbol={...k(e),...t.lineSymbol,color:s}))},De=s=>s.series.map(e=>e.id),we=(s,e)=>{e.series?.sort((i,t)=>s.findIndex(r=>i.id===r)-s.findIndex(r=>t.id===r))},ke=s=>s.stackedType??F.Side,Pe=s=>{let{newStackedType:e,config:i,layerInfo:t,commonStrings:r}=s;if(i.stackedType=e,t!==void 0){let l=T({config:i,layerInfo:t,commonStrings:r,numericFields:u(i),aggregationType:d(i)});j(i,1,l)}i.axes?.[1]&&(e===F.Stacked100?i.axes[1].valueFormat=w():i.axes[1].valueFormat=D()),v({config:i,value:null,axisIndex:1,isMax:!1}),v({config:i,value:null,axisIndex:1,isMax:!0})},Re=s=>{let e={};return s.series.forEach(i=>{B(i)&&"nullCategory"in i&&i.nullCategory!==void 0&&(e.text??=i.nullCategory.text,i.type===p.BarSeries?e.fillSymbol??=i.nullCategory.fillSymbol:e.markerSymbol??=i.nullCategory.markerSymbol)}),e.text||e.fillSymbol||e.markerSymbol?e:void 0},Ve=(s,e)=>{s.series.forEach(i=>{B(i)&&(e?i.type===p.BarSeries?i.nullCategory={text:e?.text,fillSymbol:e?.fillSymbol}:i.nullCategory={text:e?.text,markerSymbol:e?.markerSymbol}:i.nullCategory=void 0)})},Ee=Object.defineProperty,Ne=Object.getOwnPropertyDescriptor,h=(s,e,i,t)=>{for(var r=Ne(e,i),l=s.length-1,c;l>=0;l--)(c=s[l])&&(r=c(e,i,r)||r);return r&&Ee(e,i,r),r},g=class extends O{get temporalBinningSize(){return q(this._config)}set temporalBinningSize(e){Q(e,this._config)}get temporalBinningUnit(){return G(this._config)}set temporalBinningUnit(e){Z(e,this._config)}get timeAggregationType(){return H(this._config)}set timeAggregationType(e){$(e,this._config)}get trimIncompleteTimeInterval(){return J(this._config)}set trimIncompleteTimeInterval(e){ee(e,this._config)}get nullPolicy(){return K(this._config)}set nullPolicy(e){X(e,this._config)}resetTimeInterval(){ie(this._config)}};h([o],g.prototype,"temporalBinningSize");h([o],g.prototype,"temporalBinningUnit");h([o],g.prototype,"timeAggregationType");h([o],g.prototype,"trimIncompleteTimeInterval");h([o],g.prototype,"nullPolicy");h([o],g.prototype,"resetTimeInterval");var Me=Object.defineProperty,Ue=Object.getOwnPropertyDescriptor,a=(s,e,i,t)=>{for(var r=Ue(e,i),l=s.length-1,c;l>=0;l--)(c=s[l])&&(r=c(e,i,r)||r);return r&&Me(e,i,r),r},n=class extends O{constructor(){super(...arguments),this._xAxisField="",this._aggregationType=m.Count,this._splitByField="",this._numericFields=[],this._splitBySeriesLimitReached=!1,this._splitBySeriesCount=0}get chartLimits(){return this._chartLimits}set chartLimits(e){let i=!x(this._chartLimits,e);this._chartLimits=e,i&&this.layerInfo!==void 0&&this._config!==void 0&&this.processSeriesRebuild("chartLimits")}get splitBySeriesLimitReached(){return this._splitBySeriesLimitReached}set splitBySeriesLimitReached(e){this._splitBySeriesLimitReached=e}get splitBySeriesCount(){return this._splitBySeriesCount}set splitBySeriesCount(e){this._splitBySeriesCount=e}get xAxisField(){return this._xAxisField}set xAxisField(e){if(this._xAxisField=e,e.trim()===""||e===y){let i=this.numericFields;this.resetConfig(),this.numericFields=i}this.processSeriesRebuild("xAxisField")}get aggregationType(){return this._aggregationType}set aggregationType(e){this._aggregationType=e,oe({aggregationType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}get splitByField(){return this._splitByField}set splitByField(e){this.layerInfo?.layerFieldsInfo&&E(this.layerInfo?.layerFieldsInfo,e)&&(this._splitByField=e,this.processSeriesRebuild("splitByField"))}get numericFields(){return this._numericFields}set numericFields(e){typeof e=="string"&&(e=[e]);let i=N(this.layerInfo?.layerFieldsInfo??[],e),t=(this.xAxisField===""||this.xAxisField===y)&&e.length===0;if(i&&!t){let r=U(this.layerInfo.layer).idField;e.length===0&&r!==void 0?(e=[r],this._aggregationType=m.Count):this._aggregationType===m.Count&&e.length>=1&&r!==void 0&&!e.includes(r)&&(this._aggregationType=m.Sum),this._numericFields=e,this.numericFields.length>1&&(this._splitByField=""),this.processSeriesRebuild("numericFields")}else t&&this.resetConfig()}getAssignToSecondValueAxis(e){return Te(e,this._config)}setAssignToSecondValueAxis(e,i){ve({assign:e,seriesIndex:i,config:this._config,commonStrings:this.commonStrings})}getSeriesToSecondaryYAxis(e){return Te(e,this._config)}setSeriesToSecondaryYAxis(e,i){ve({assign:e,seriesIndex:i,config:this._config,commonStrings:this.commonStrings})}getDataSortOrder(){return S(this._config)[0]}setDataSortOrder(e,i){f(e,this._config,i)}getSortOrder(){return S(this._config)[0]}setSortOrder(e,i){f(e,this._config,i)}async getCustomSortValues(e){return await L({config:this._config,layerInfo:this.layerInfo,num:e,errorStrings:this.commonStrings?.errorStrings})}async setDataFilters(e){super.setDataFilters(e);let i=S(this._config)[0];if(i===W.customSort){this.startAsyncUpdate();let t=await L({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings?.errorStrings});f(i,this._config,t),this.finishAsyncUpdate()}this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get orderByList(){return A(this._config)}set orderByList(e){!Y(this._config)&&b(e,this._config)}updateSeriesFromLayerFilter(){this.layerInfo!==void 0&&_(this.getBuildNewSeriesProps())}async rebuildSeries(){await this.processSeriesRebuild("rebuildSeries")}get binTemporalData(){return ne(this._config)}set binTemporalData(e){ae(e,this._config)}getSeriesName(e){return Ae(e,this._config)}setSeriesName(e,i){be(e,i,this._config)}getSeriesColor(e){return Le(e,this._config)}setSeriesColor(e,i){Oe(e,i,this._config)}getOrderOfSeries(){return De(this._config)}setOrderOfSeries(e){we(e,this._config)}get stackedType(){return ke(this._config)}set stackedType(e){Pe({newStackedType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}moveSeries(e,i){let t=this.getOrderOfSeries(),[r]=t.splice(e,1);t.splice(i,0,r),this.setOrderOfSeries(t)}moveCustomSortValuesInOrderByList(e,i){let t=A(this._config),[r]=t.splice(e,1);t.splice(i,0,r),b(t,this._config)}get nullCategory(){return Re(this._config)}set nullCategory(e){let i=this.nullCategory;x(i,e)||Ve(this._config,e)}setupLocalProps(){this._xAxisField=z(this._config),this._aggregationType=d(this._config),this._splitByField=re(this._config),this._numericFields=u(this._config)}resetConfig(){let e=this._config.id;this._config=this.generateDefaultConfig(),this._config.id=e,this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}usingSplitBy(){return this.splitByField!==""&&this.numericFields.length<=1}async processSeriesRebuild(e){this.usingSplitBy()?(this.startAsyncUpdate(),await this.fetchSplitByFieldInfos(),_(this.getBuildNewSeriesProps()),this.finishAsyncUpdate()):(this._splitBySeriesLimitReached=!1,this._splitBySeriesCount=0,_(this.getBuildNewSeriesProps())),this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate(e)}async fetchSplitByFieldInfos(){return this.splitByFieldInfos=await V({config:this._config,layer:this.layerInfo.layer,layerFieldsInfo:this.layerInfo.layerFieldsInfo,xAxisField:this._xAxisField!==y?this._xAxisField:void 0,splitByField:this._splitByField,fetchNullValues:this._config?.series?.[0]?.query?.fetchNullValues,chartLimits:this._chartLimits,errorStrings:this.commonStrings?.errorStrings}),this._splitBySeriesLimitReached=this.splitByFieldInfos.seriesLimitReached,this._splitBySeriesCount=this.splitByFieldInfos.totalSeriesCount,this.splitByFieldInfos}getBuildNewSeriesProps(){return{xAxisFieldName:this._xAxisField,splitByField:this._splitByField,numericFields:this._numericFields,aggregationType:this._aggregationType,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,splitByFieldInfos:this.splitByFieldInfos}}generateChartTitle(){return this.layerInfo!==void 0?se(this._config,this.layerInfo,this.commonStrings):""}generateYAxisTitle(){return this.layerInfo!==void 0?T({config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,numericFields:u(this._config),aggregationType:d(this._config)}):""}};a([o],n.prototype,"aggregationType");a([o],n.prototype,"setAssignToSecondValueAxis");a([o],n.prototype,"setSeriesToSecondaryYAxis");a([o],n.prototype,"setDataSortOrder");a([o],n.prototype,"setSortOrder");a([o],n.prototype,"setDataFilters");a([o],n.prototype,"orderByList");a([o],n.prototype,"binTemporalData");a([o],n.prototype,"setSeriesName");a([o],n.prototype,"setSeriesColor");a([o],n.prototype,"setOrderOfSeries");a([o],n.prototype,"stackedType");a([o],n.prototype,"moveSeries");a([o],n.prototype,"moveCustomSortValuesInOrderByList");a([o],n.prototype,"nullCategory");a([o],n.prototype,"resetConfig");var We=[ye,le,ge,ce,Ce,he,Ie,de,fe,g,xe,me,Fe,pe,ue,Se,_e,Be,te];M(n,We);return{a:Ae,b:be,c:Oe,d:Ve,e:n}},a,b,c,d,e,f,g,h,i,j,l,n,o,q,r)
2
+ import r from"./X47VAXVY.js";import q from"./XK5OMNAS.js";import o from"./P657CUK2.js";import n from"./NOMIOWXZ.js";import l from"./4DK44E5O.js";import j from"./AZP4RGFP.js";import i from"./H6ZF2I7S.js";import h from"./F55Y2EPO.js";import g from"./7QKHK4XD.js";import f from"./RW3ON36X.js";import e from"./RZAKMRDK.js";import d from"./LRSAWJXU.js";import c from"./UHJ7VTFD.js";import b from"./TG7JNJCB.js";import a from"./GXNMIY2V.js";import{M as D,O as w,V as k,_ as P,ea as R}from"./43DLRSYB.js";import{b as x}from"./NGXRBJKL.js";import{a as W}from"./QP5UAIC6.js";import{c as B}from"./Z5QPCSUQ.js";import{a as p,b as m,f as F}from"./QVG3TOL4.js";export default $arcgis.t(([{Cc:U,Ja:I,La:C,Q:y,Wb:V,Xb:E,Yb:N,Zb:M},{e:o},{c:j,d:T,f:v},O,{b:xe,d:Fe,f:Be},{b:ue,d:Se,f:_e},{d:me,e:pe},de,{d:Y},{b:Ie},{a:le,b:ge,c:ce,d:he},{a:ye,b:fe},{d:A,e:f,f:z},{b:Ce},{a:q,b:G,c:H,d:J,e:K,f:Q,g:X,h:Z,i:$,j:ee,k:ie,m:te,ma:se,na:d,oa:re,pa:u,qa:S,ra:oe,sa:_,ua:b,va:L,wa:ne,xa:ae}])=>{var Te=(s,e)=>e.series?.[s].assignToSecondValueAxis??!1,ve=s=>{let{assign:e,seriesIndex:i,config:t,commonStrings:r}=s;e&&t.axes!==void 0&&!t.axes?.[2]&&(t.axes[2]=P(r,p.BarSeries)[1]),t.series&&t.series.forEach((l,c)=>{c===i?l.assignToSecondValueAxis=e:c!==i&&l?.assignToSecondValueAxis!==!0&&(l.assignToSecondValueAxis=!1)}),t.axes?.[2]&&!t.series.some(l=>l.assignToSecondValueAxis)&&t.axes.splice(2,1)},Ae=(s,e)=>e.series?.[s]?.name,be=(s,e,i)=>{i.series?.[e]&&(i.series[e].name=s)},Le=(s,e)=>{let i=e.series?.[s],t;return C(i)?t=i.fillSymbol?.color:I(i)&&(t=i.lineSymbol?.color),t},Oe=(s,e,i)=>{let t=i.series?.[e];t&&(C(t)?t.fillSymbol={...R(e),...t.fillSymbol,color:s}:I(t)&&(t.lineSymbol={...k(e),...t.lineSymbol,color:s}))},De=s=>s.series.map(e=>e.id),we=(s,e)=>{e.series?.sort((i,t)=>s.findIndex(r=>i.id===r)-s.findIndex(r=>t.id===r))},ke=s=>s.stackedType??F.Side,Pe=s=>{let{newStackedType:e,config:i,layerInfo:t,commonStrings:r}=s;if(i.stackedType=e,t!==void 0){let l=T({config:i,layerInfo:t,commonStrings:r,numericFields:u(i),aggregationType:d(i)});j(i,1,l)}i.axes?.[1]&&(e===F.Stacked100?i.axes[1].valueFormat=w():i.axes[1].valueFormat=D()),v({config:i,value:null,axisIndex:1,isMax:!1}),v({config:i,value:null,axisIndex:1,isMax:!0})},Re=s=>{let e={};return s.series.forEach(i=>{B(i)&&"nullCategory"in i&&i.nullCategory!==void 0&&(e.text??=i.nullCategory.text,i.type===p.BarSeries?e.fillSymbol??=i.nullCategory.fillSymbol:e.markerSymbol??=i.nullCategory.markerSymbol)}),e.text||e.fillSymbol||e.markerSymbol?e:void 0},Ve=(s,e)=>{s.series.forEach(i=>{B(i)&&(e?i.type===p.BarSeries?i.nullCategory={text:e?.text,fillSymbol:e?.fillSymbol}:i.nullCategory={text:e?.text,markerSymbol:e?.markerSymbol}:i.nullCategory=void 0)})},Ee=Object.defineProperty,Ne=Object.getOwnPropertyDescriptor,h=(s,e,i,t)=>{for(var r=Ne(e,i),l=s.length-1,c;l>=0;l--)(c=s[l])&&(r=c(e,i,r)||r);return r&&Ee(e,i,r),r},g=class extends O{get temporalBinningSize(){return q(this._config)}set temporalBinningSize(e){Q(e,this._config)}get temporalBinningUnit(){return G(this._config)}set temporalBinningUnit(e){Z(e,this._config)}get timeAggregationType(){return H(this._config)}set timeAggregationType(e){$(e,this._config)}get trimIncompleteTimeInterval(){return J(this._config)}set trimIncompleteTimeInterval(e){ee(e,this._config)}get nullPolicy(){return K(this._config)}set nullPolicy(e){X(e,this._config)}resetTimeInterval(){ie(this._config)}};h([o],g.prototype,"temporalBinningSize");h([o],g.prototype,"temporalBinningUnit");h([o],g.prototype,"timeAggregationType");h([o],g.prototype,"trimIncompleteTimeInterval");h([o],g.prototype,"nullPolicy");h([o],g.prototype,"resetTimeInterval");var Me=Object.defineProperty,Ue=Object.getOwnPropertyDescriptor,a=(s,e,i,t)=>{for(var r=Ue(e,i),l=s.length-1,c;l>=0;l--)(c=s[l])&&(r=c(e,i,r)||r);return r&&Me(e,i,r),r},n=class extends O{constructor(){super(...arguments),this._xAxisField="",this._aggregationType=m.Count,this._splitByField="",this._numericFields=[],this._splitBySeriesLimitReached=!1,this._splitBySeriesCount=0}get chartLimits(){return this._chartLimits}set chartLimits(e){let i=!x(this._chartLimits,e);this._chartLimits=e,i&&this.layerInfo!==void 0&&this._config!==void 0&&this.processSeriesRebuild("chartLimits")}get splitBySeriesLimitReached(){return this._splitBySeriesLimitReached}set splitBySeriesLimitReached(e){this._splitBySeriesLimitReached=e}get splitBySeriesCount(){return this._splitBySeriesCount}set splitBySeriesCount(e){this._splitBySeriesCount=e}get xAxisField(){return this._xAxisField}set xAxisField(e){if(this._xAxisField=e,e.trim()===""||e===y){let i=this.numericFields;this.resetConfig(),this.numericFields=i}this.processSeriesRebuild("xAxisField")}get aggregationType(){return this._aggregationType}set aggregationType(e){this._aggregationType=e,oe({aggregationType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}get splitByField(){return this._splitByField}set splitByField(e){this.layerInfo?.layerFieldsInfo&&E(this.layerInfo?.layerFieldsInfo,e)&&(this._splitByField=e,this.processSeriesRebuild("splitByField"))}get numericFields(){return this._numericFields}set numericFields(e){typeof e=="string"&&(e=[e]);let i=N(this.layerInfo?.layerFieldsInfo??[],e),t=(this.xAxisField===""||this.xAxisField===y)&&e.length===0;if(i&&!t){let r=U(this.layerInfo.layer).idField;e.length===0&&r!==void 0?(e=[r],this._aggregationType=m.Count):this._aggregationType===m.Count&&e.length>=1&&r!==void 0&&!e.includes(r)&&(this._aggregationType=m.Sum),this._numericFields=e,this.numericFields.length>1&&(this._splitByField=""),this.processSeriesRebuild("numericFields")}else t&&this.resetConfig()}getAssignToSecondValueAxis(e){return Te(e,this._config)}setAssignToSecondValueAxis(e,i){ve({assign:e,seriesIndex:i,config:this._config,commonStrings:this.commonStrings})}getSeriesToSecondaryYAxis(e){return Te(e,this._config)}setSeriesToSecondaryYAxis(e,i){ve({assign:e,seriesIndex:i,config:this._config,commonStrings:this.commonStrings})}getDataSortOrder(){return S(this._config)[0]}setDataSortOrder(e,i){f(e,this._config,i)}getSortOrder(){return S(this._config)[0]}setSortOrder(e,i){f(e,this._config,i)}async getCustomSortValues(e){return await L({config:this._config,layerInfo:this.layerInfo,num:e,errorStrings:this.commonStrings?.errorStrings})}async setDataFilters(e){super.setDataFilters(e);let i=S(this._config)[0];if(i===W.customSort){this.startAsyncUpdate();let t=await L({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings?.errorStrings});f(i,this._config,t),this.finishAsyncUpdate()}this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get orderByList(){return A(this._config)}set orderByList(e){!Y(this._config)&&b(e,this._config)}updateSeriesFromLayerFilter(){this.layerInfo!==void 0&&_(this.getBuildNewSeriesProps())}async rebuildSeries(){await this.processSeriesRebuild("rebuildSeries")}get binTemporalData(){return ne(this._config)}set binTemporalData(e){ae(e,this._config)}getSeriesName(e){return Ae(e,this._config)}setSeriesName(e,i){be(e,i,this._config)}getSeriesColor(e){return Le(e,this._config)}setSeriesColor(e,i){Oe(e,i,this._config)}getOrderOfSeries(){return De(this._config)}setOrderOfSeries(e){we(e,this._config)}get stackedType(){return ke(this._config)}set stackedType(e){Pe({newStackedType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}moveSeries(e,i){let t=this.getOrderOfSeries(),[r]=t.splice(e,1);t.splice(i,0,r),this.setOrderOfSeries(t)}moveCustomSortValuesInOrderByList(e,i){let t=A(this._config),[r]=t.splice(e,1);t.splice(i,0,r),b(t,this._config)}get nullCategory(){return Re(this._config)}set nullCategory(e){let i=this.nullCategory;x(i,e)||Ve(this._config,e)}setupLocalProps(){this._xAxisField=z(this._config),this._aggregationType=d(this._config),this._splitByField=re(this._config),this._numericFields=u(this._config)}resetConfig(){let e=this._config.id;this._config=this.generateDefaultConfig(),this._config.id=e,this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}usingSplitBy(){return this.splitByField!==""&&this.numericFields.length<=1}async processSeriesRebuild(e){this.usingSplitBy()?(this.startAsyncUpdate(),await this.fetchSplitByFieldInfos(),_(this.getBuildNewSeriesProps()),this.finishAsyncUpdate()):(this._splitBySeriesLimitReached=!1,this._splitBySeriesCount=0,_(this.getBuildNewSeriesProps())),this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate(e)}async fetchSplitByFieldInfos(){return this.splitByFieldInfos=await V({config:this._config,layer:this.layerInfo.layer,layerFieldsInfo:this.layerInfo.layerFieldsInfo,xAxisField:this._xAxisField!==y?this._xAxisField:void 0,splitByField:this._splitByField,fetchNullValues:this._config?.series?.[0]?.query?.fetchNullValues,chartLimits:this._chartLimits,errorStrings:this.commonStrings?.errorStrings}),this._splitBySeriesLimitReached=this.splitByFieldInfos.seriesLimitReached,this._splitBySeriesCount=this.splitByFieldInfos.totalSeriesCount,this.splitByFieldInfos}getBuildNewSeriesProps(){return{xAxisFieldName:this._xAxisField,splitByField:this._splitByField,numericFields:this._numericFields,aggregationType:this._aggregationType,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,splitByFieldInfos:this.splitByFieldInfos}}generateChartTitle(){return this.layerInfo!==void 0?se(this._config,this.layerInfo,this.commonStrings):""}generateYAxisTitle(){return this.layerInfo!==void 0?T({config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,numericFields:u(this._config),aggregationType:d(this._config)}):""}};a([o],n.prototype,"aggregationType");a([o],n.prototype,"setAssignToSecondValueAxis");a([o],n.prototype,"setSeriesToSecondaryYAxis");a([o],n.prototype,"setDataSortOrder");a([o],n.prototype,"setSortOrder");a([o],n.prototype,"setDataFilters");a([o],n.prototype,"orderByList");a([o],n.prototype,"binTemporalData");a([o],n.prototype,"setSeriesName");a([o],n.prototype,"setSeriesColor");a([o],n.prototype,"setOrderOfSeries");a([o],n.prototype,"stackedType");a([o],n.prototype,"moveSeries");a([o],n.prototype,"moveCustomSortValuesInOrderByList");a([o],n.prototype,"nullCategory");a([o],n.prototype,"resetConfig");var We=[ye,le,ge,ce,Ce,he,Ie,de,fe,g,xe,me,Fe,pe,ue,Se,_e,Be,te];M(n,We);return{a:Ae,b:be,c:Oe,d:Ve,e:n}},a,b,c,d,e,f,g,h,i,j,l,n,o,q,r)
@@ -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"./5H4GHC76.js";import"./43DLRSYB.js";import"./KX7KGXKQ.js";import{b as h}from"./NGXRBJKL.js";import"./FQB2OTR4.js";import{B as c,H as d,g as l,i as t,n as r}from"./3WNW44CU.js";import"./Z5QPCSUQ.js";import"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{A:g,Ac:y,Ha:f,Pc:F,t:p,xa:m,yc:u}])=>{var b=l`: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%}`,n=class extends c{constructor(){super(...arguments),this.onModelConfigChange=async e=>{let a=e?.detail.config??this.model.config;this.layer===void 0&&await this.updateFetchLayerFieldsInfo(a)},this.popoverPlacement="leading",this.usePopupTemplateFieldsInfo=!1,this.arcgisChartsConfigWebChartChange=r()}static{this.properties={layerFieldsInfo:16,model:0,popoverPlacement:1,r2:9,calculatedDataMinMaxBounds:0,calculatedMinMaxBounds:0,page:1,layer:0,view:0,usePopupTemplateFieldsInfo:5,popupTemplateFieldInfosEnabled:5}}static{this.styles=b}async load(){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("r2")&&this.r2Change(this.r2),e.has("layer")&&this.layer!==void 0&&!h(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),this.layerFieldsInfo===void 0&&(a=!0),a&&this.updateFetchLayerFieldsInfo()}modelChange(e,a){a?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}r2Change(e){Number.isFinite(e)||(this.r2=void 0)}async updateFetchLayerFieldsInfo(e){let a=e??this.model.config,s=this.layer;if(!s){let o=f(a)?a.iLayer:void 0;o&&(s=await u(o))}if(s){await F(s);let o=this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled;this.layerFieldsInfo=p(s)?m({layer:s,popupTemplateFieldInfosEnabled:o,chartType:a?.type}):y(s,o)}}render(){let e;switch(this.page){case i.Data:let a=g(this.layer),s=a&&"isTable"in a?a.isTable:!1;e=t`<arcgis-charts-config-scatter-plot-data .view=${this.view} .model=${this.model} .r2=${this.r2} .layerFieldsInfo=${this.layerFieldsInfo} .isTableLayer=${s}></arcgis-charts-config-scatter-plot-data>`;break;case i.Axes:e=t`<arcgis-charts-config-axes .model=${this.model} show-min-x-bound-option show-max-x-bound-option show-min-y-bound-option show-max-y-bound-option show-enable-x-log-option show-enable-y-log-option .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds}></arcgis-charts-config-axes>`;break;case i.Guides:e=t`<arcgis-charts-config-guides .model=${this.model} enable-x-axis-guide 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-scatter-plot",n);return n},a)
2
+ import{d as i}from"./POA2XTTK.js";import a from"./GXNMIY2V.js";import"./43DLRSYB.js";import"./KX7KGXKQ.js";import{b as h}from"./NGXRBJKL.js";import"./OWLTOYDG.js";import{B as c,H as d,g as l,i as t,n as r}from"./4QJLNQVP.js";import"./Z5QPCSUQ.js";import"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{A:g,Ac:y,Ha:f,Pc:F,t:p,xa:m,yc:u}])=>{var b=l`: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%}`,n=class extends c{constructor(){super(...arguments),this.onModelConfigChange=async e=>{let a=e?.detail.config??this.model.config;this.layer===void 0&&await this.updateFetchLayerFieldsInfo(a)},this.popoverPlacement="leading",this.usePopupTemplateFieldsInfo=!1,this.arcgisChartsConfigWebChartChange=r()}static{this.properties={layerFieldsInfo:16,model:0,popoverPlacement:1,r2:9,calculatedDataMinMaxBounds:0,calculatedMinMaxBounds:0,page:1,layer:0,view:0,usePopupTemplateFieldsInfo:5,popupTemplateFieldInfosEnabled:5}}static{this.styles=b}async load(){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("r2")&&this.r2Change(this.r2),e.has("layer")&&this.layer!==void 0&&!h(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),this.layerFieldsInfo===void 0&&(a=!0),a&&this.updateFetchLayerFieldsInfo()}modelChange(e,a){a?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}r2Change(e){Number.isFinite(e)||(this.r2=void 0)}async updateFetchLayerFieldsInfo(e){let a=e??this.model.config,s=this.layer;if(!s){let o=f(a)?a.iLayer:void 0;o&&(s=await u(o))}if(s){await F(s);let o=this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled;this.layerFieldsInfo=p(s)?m({layer:s,popupTemplateFieldInfosEnabled:o,chartType:a?.type}):y(s,o)}}render(){let e;switch(this.page){case i.Data:let a=g(this.layer),s=a&&"isTable"in a?a.isTable:!1;e=t`<arcgis-charts-config-scatter-plot-data .view=${this.view} .model=${this.model} .r2=${this.r2} .layerFieldsInfo=${this.layerFieldsInfo} .isTableLayer=${s}></arcgis-charts-config-scatter-plot-data>`;break;case i.Axes:e=t`<arcgis-charts-config-axes .model=${this.model} show-min-x-bound-option show-max-x-bound-option show-min-y-bound-option show-max-y-bound-option show-enable-x-log-option show-enable-y-log-option .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds}></arcgis-charts-config-axes>`;break;case i.Guides:e=t`<arcgis-charts-config-guides .model=${this.model} enable-x-axis-guide 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-scatter-plot",n);return n},a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import p from"./E4ZD7V5C.js";import o from"./PLGVDNNI.js";import n from"./PK4FGBU5.js";import m from"./AYAESDR6.js";import l from"./AGLVYLFP.js";import k from"./CCKX6FAN.js";import j from"./P64QA7JR.js";import i from"./54DJH26Q.js";import"./O4TPXFX4.js";import f from"./BKXCCTLV.js";import e from"./BPRMU5ND.js";import d from"./STIAP2Q5.js";import c from"./TI2WEAIV.js";import b from"./6S6OEV5K.js";import a from"./5H4GHC76.js";import{xa as g}from"./43DLRSYB.js";import"./KX7KGXKQ.js";import"./NGXRBJKL.js";import"./FQB2OTR4.js";import"./3WNW44CU.js";import"./64L7VJJK.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as h}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{Zb:y},,{e:e},,,z,{b:Y,d:Z,f:$},{b:U,d:V,f:X},{d:J,e:K},,{b:tt},{a:A,b:L,c:B,d:G},{a:Q,b:R},{A:q,a:c,b:p,c:f,d:l,e:d,f:u,g:v,h:_,i:b,j:S,k:w,l:O,m:D,n:C,o:M,p:T,q:E,r:F,s:W,t:j,u:x,v:I,w:N,x:H,y:P,z:k}])=>{var st=Object.defineProperty,et=Object.getOwnPropertyDescriptor,o=(a,t,i,rt)=>{for(var r=et(t,i),n=a.length-1,m;n>=0;n--)(m=a[n])&&(r=m(t,i,r)||r);return r&&st(t,i,r),r},s=class extends z{constructor(){super(...arguments),this._chartType=h.HistogramSeries}async setup(t){await this.loadConfigFromLayer(t),typeof this.resolveSetup=="function"&&this.resolveSetup()}get numericField(){return p(this._config)}set numericField(t){f({numericField:t,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get binCount(){return u(this._config)}set binCount(t){v(t,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get binSymbol(){return _(this._config)}set binSymbol(t){b(t,this._config)}get dataTransformationType(){return l(this._config)}set dataTransformationType(t){d(t,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get meanSymbol(){return O(this._config)}set meanSymbol(t){D(t,this._config)}get medianSymbol(){return C(this._config)}set medianSymbol(t){M(t,this._config)}get normalDistSymbol(){return S(this._config)}set normalDistSymbol(t){w(t,this._config)}get standardDevSymbol(){return T(this._config)}set standardDevSymbol(t){E(t,this._config)}get showNormalDistOverlay(){return F(this._config)}set showNormalDistOverlay(t){W(t,this._config)}get showMeanOverlay(){return j(this._config)}set showMeanOverlay(t){x(t,this._config)}get showMedianOverlay(){return I(this._config)}set showMedianOverlay(t){N(t,this._config)}get showStandardDevOverlay(){return H(this._config)}set showStandardDevOverlay(t){P(t,this._config)}get seriesOverlays(){return k(this._config)}set seriesOverlays(t){q(t,this._config)}generateChartTitle(){return c(this._config,this.layerInfo,this.commonStrings)}generateDefaultConfig(){return g(this.commonStrings)}};o([e],s.prototype,"numericField");o([e],s.prototype,"binCount");o([e],s.prototype,"binSymbol");o([e],s.prototype,"dataTransformationType");o([e],s.prototype,"meanSymbol");o([e],s.prototype,"medianSymbol");o([e],s.prototype,"normalDistSymbol");o([e],s.prototype,"standardDevSymbol");o([e],s.prototype,"showNormalDistOverlay");o([e],s.prototype,"showMeanOverlay");o([e],s.prototype,"showMedianOverlay");o([e],s.prototype,"showStandardDevOverlay");o([e],s.prototype,"seriesOverlays");var ot=[Q,A,L,B,G,tt,R,Y,J,Z,K,U,V,X,$];y(s,ot);return s},a,b,c,d,e,f,i,j,k,l,m,n,o,p)
2
+ import p from"./W3QA6ZI7.js";import o from"./NOMIOWXZ.js";import n from"./4DK44E5O.js";import m from"./AZP4RGFP.js";import l from"./H6ZF2I7S.js";import k from"./7QKHK4XD.js";import j from"./RW3ON36X.js";import i from"./RZAKMRDK.js";import"./O4TPXFX4.js";import f from"./LRSAWJXU.js";import e from"./KMSUWCI6.js";import d from"./UHJ7VTFD.js";import c from"./TG7JNJCB.js";import b from"./6RGFJYNO.js";import a from"./GXNMIY2V.js";import{xa as g}from"./43DLRSYB.js";import"./KX7KGXKQ.js";import"./NGXRBJKL.js";import"./OWLTOYDG.js";import"./4QJLNQVP.js";import"./64L7VJJK.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as h}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{Zb:y},,{e:e},,,z,{b:Y,d:Z,f:$},{b:U,d:V,f:X},{d:J,e:K},,{b:tt},{a:A,b:L,c:B,d:G},{a:Q,b:R},{A:q,a:c,b:p,c:f,d:l,e:d,f:u,g:v,h:_,i:b,j:S,k:w,l:O,m:D,n:C,o:M,p:T,q:E,r:F,s:W,t:j,u:x,v:I,w:N,x:H,y:P,z:k}])=>{var st=Object.defineProperty,et=Object.getOwnPropertyDescriptor,o=(a,t,i,rt)=>{for(var r=et(t,i),n=a.length-1,m;n>=0;n--)(m=a[n])&&(r=m(t,i,r)||r);return r&&st(t,i,r),r},s=class extends z{constructor(){super(...arguments),this._chartType=h.HistogramSeries}async setup(t){await this.loadConfigFromLayer(t),typeof this.resolveSetup=="function"&&this.resolveSetup()}get numericField(){return p(this._config)}set numericField(t){f({numericField:t,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get binCount(){return u(this._config)}set binCount(t){v(t,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get binSymbol(){return _(this._config)}set binSymbol(t){b(t,this._config)}get dataTransformationType(){return l(this._config)}set dataTransformationType(t){d(t,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get meanSymbol(){return O(this._config)}set meanSymbol(t){D(t,this._config)}get medianSymbol(){return C(this._config)}set medianSymbol(t){M(t,this._config)}get normalDistSymbol(){return S(this._config)}set normalDistSymbol(t){w(t,this._config)}get standardDevSymbol(){return T(this._config)}set standardDevSymbol(t){E(t,this._config)}get showNormalDistOverlay(){return F(this._config)}set showNormalDistOverlay(t){W(t,this._config)}get showMeanOverlay(){return j(this._config)}set showMeanOverlay(t){x(t,this._config)}get showMedianOverlay(){return I(this._config)}set showMedianOverlay(t){N(t,this._config)}get showStandardDevOverlay(){return H(this._config)}set showStandardDevOverlay(t){P(t,this._config)}get seriesOverlays(){return k(this._config)}set seriesOverlays(t){q(t,this._config)}generateChartTitle(){return c(this._config,this.layerInfo,this.commonStrings)}generateDefaultConfig(){return g(this.commonStrings)}};o([e],s.prototype,"numericField");o([e],s.prototype,"binCount");o([e],s.prototype,"binSymbol");o([e],s.prototype,"dataTransformationType");o([e],s.prototype,"meanSymbol");o([e],s.prototype,"medianSymbol");o([e],s.prototype,"normalDistSymbol");o([e],s.prototype,"standardDevSymbol");o([e],s.prototype,"showNormalDistOverlay");o([e],s.prototype,"showMeanOverlay");o([e],s.prototype,"showMedianOverlay");o([e],s.prototype,"showStandardDevOverlay");o([e],s.prototype,"seriesOverlays");var ot=[Q,A,L,B,G,tt,R,Y,J,Z,K,U,V,X,$];y(s,ot);return s},a,b,c,d,e,f,i,j,k,l,m,n,o,p)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{l}from"./3WNW44CU.js";var C=["arcgis-map","arcgis-scene","arcgis-link-chart"];function x(t,s){let e=s??t.referenceElement;if(typeof e!="string")return e??void 0;let n=e.includes("#")||e.includes(".")||e.includes("["),o=t.el.getRootNode(),r=(n?void 0:o.querySelector(`#${e}`))??o.querySelector(e)??(n?void 0:i(t.el,`#${e}`))??i(t.el,e);if(r==null){l("error",t,`Expected property \`referenceElement\` to resolve to an <arcgis-map>, <arcgis-scene>, or <arcgis-link-chart> element, but no element matched \`${e}\`.`);return}return C.includes(r.localName)||l("error",t,`Expected property \`referenceElement\` to point to an <arcgis-map>, <arcgis-scene>, or <arcgis-link-chart> element, but instead found <${r?.localName}>.`,{detail:{referenceElement:e,resolved:r}}),r??void 0}var E=(t,s)=>{let e=t;for(;e;){if(e===s)return!0;if(!e.parentNode)return!1;e.parentNode instanceof ShadowRoot?e=e.parentNode.host:e=e.parentNode}return!1},h=(t,s,e)=>{let n=b(s).subscribe;return n(o=>{o.some(a=>E(t,a.target))&&e()})},g={},b=t=>{let s=t.join(","),e=g[s];if(e!==void 0)return e;let n=new Set,o=new MutationObserver(a=>n.forEach(u=>u(a)));globalThis.document&&o.observe(document.documentElement,{attributes:!0,attributeFilter:t,subtree:!0});let r={subscribe:a=>(n.add(a),()=>{n.delete(a),n.size===0&&(o.disconnect(),g[s]=void 0)})};return g[s]=r,r},i=(t,s)=>{let e=t;for(;e;){let n=e.closest?.(s);if(n)return n;let o=e.getRootNode?.();if(o===globalThis.document)return;e=o?.host}};function v(t){let s=i(t,".calcite-mode-dark, .calcite-mode-light, .calcite-mode-auto");return s?.classList.contains("calcite-mode-dark")||s?.classList.contains("calcite-mode-auto")&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}var A=t=>c(t,"dir","ltr"),c=(t,s,e)=>i(t,`[${s}]`)?.getAttribute(s)??e;function $(t){return t.ownerDocument.defaultView||window}var N=t=>{let s=c(t,"lang",globalThis.navigator?.language||d);return{lang:s,t9nLocale:p(s)}},K=(t,s,e,n)=>{let o,r=()=>w(t,s(),n).then(a=>{(o?.lang!==a.lang||o.t9nLocale!==a.t9nLocale||o.t9nStrings!==a.t9nStrings)&&e(a),o=a}).catch(a=>{l("error","intl","Error updating component locale state",{detail:{error:a}})});return queueMicrotask(r),h(t,["lang"],r)},w=async(t,s,e=t.localName.split("-").slice(1).join("-"))=>{let{lang:n,t9nLocale:o}=N(t),r=`${s}/${e}/t9n`,u=e===null?{}:await T(o,r,"messages.");return{lang:n,t9nLocale:o,t9nStrings:u}};var y="ar,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,he,hr,hu,id,it,ja,ko,lt,lv,nl,nb,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,th,tr,uk,vi,zh-CN,zh-HK,zh-TW".split(","),L=new Set(y),d="en",S={pt:"pt-BR",nb:"no",nn:"no",zh:"zh-CN"},T=async(t,s,e="")=>{let n=`${s}/${e}`,o=`${n}${t}.json`;return f[o]??=m(t,n),await f[o]},f={},m=async(t,s)=>{let e=`${s}${t}.json`;try{let n=await fetch(e);if(n.ok)return await n.json()}catch(n){return l("error","intl",`An unknown error occurred while fetching localization strings at ${e}`,{detail:{error:n}}),{}}return t===d?{}:await m(d,s)},p=t=>{let[s,e]=t.split("-"),n=s.toLowerCase(),o=n;return e&&(o=`${n}-${e.toUpperCase()}`),o=S[o]??o,L.has(o)?o:e?p(n):d};export{x as a,h as b,i as c,v as d,A as e,$ as f,N as g,K as h,L as i,d as j,T as k,p as l};
2
+ import{l}from"./4QJLNQVP.js";var C=["arcgis-map","arcgis-scene","arcgis-link-chart"];function x(t,s){let e=s??t.referenceElement;if(typeof e!="string")return e??void 0;let n=e.includes("#")||e.includes(".")||e.includes("["),o=t.el.getRootNode(),r=(n?void 0:o.querySelector(`#${e}`))??o.querySelector(e)??(n?void 0:i(t.el,`#${e}`))??i(t.el,e);if(r==null){l("error",t,`Expected property \`referenceElement\` to resolve to an <arcgis-map>, <arcgis-scene>, or <arcgis-link-chart> element, but no element matched \`${e}\`.`);return}return C.includes(r.localName)||l("error",t,`Expected property \`referenceElement\` to point to an <arcgis-map>, <arcgis-scene>, or <arcgis-link-chart> element, but instead found <${r?.localName}>.`,{detail:{referenceElement:e,resolved:r}}),r??void 0}var E=(t,s)=>{let e=t;for(;e;){if(e===s)return!0;if(!e.parentNode)return!1;e.parentNode instanceof ShadowRoot?e=e.parentNode.host:e=e.parentNode}return!1},h=(t,s,e)=>{let n=b(s).subscribe;return n(o=>{o.some(a=>E(t,a.target))&&e()})},g={},b=t=>{let s=t.join(","),e=g[s];if(e!==void 0)return e;let n=new Set,o=new MutationObserver(a=>n.forEach(u=>u(a)));globalThis.document&&o.observe(document.documentElement,{attributes:!0,attributeFilter:t,subtree:!0});let r={subscribe:a=>(n.add(a),()=>{n.delete(a),n.size===0&&(o.disconnect(),g[s]=void 0)})};return g[s]=r,r},i=(t,s)=>{let e=t;for(;e;){let n=e.closest?.(s);if(n)return n;let o=e.getRootNode?.();if(o===globalThis.document)return;e=o?.host}};function v(t){let s=i(t,".calcite-mode-dark, .calcite-mode-light, .calcite-mode-auto");return s?.classList.contains("calcite-mode-dark")||s?.classList.contains("calcite-mode-auto")&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}var A=t=>c(t,"dir","ltr"),c=(t,s,e)=>i(t,`[${s}]`)?.getAttribute(s)??e;function $(t){return t.ownerDocument.defaultView||window}var N=t=>{let s=c(t,"lang",globalThis.navigator?.language||d);return{lang:s,t9nLocale:p(s)}},K=(t,s,e,n)=>{let o,r=()=>w(t,s(),n).then(a=>{(o?.lang!==a.lang||o.t9nLocale!==a.t9nLocale||o.t9nStrings!==a.t9nStrings)&&e(a),o=a}).catch(a=>{l("error","intl","Error updating component locale state",{detail:{error:a}})});return queueMicrotask(r),h(t,["lang"],r)},w=async(t,s,e=t.localName.split("-").slice(1).join("-"))=>{let{lang:n,t9nLocale:o}=N(t),r=`${s}/${e}/t9n`,u=e===null?{}:await T(o,r,"messages.");return{lang:n,t9nLocale:o,t9nStrings:u}};var y="ar,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,he,hr,hu,id,it,ja,ko,lt,lv,nl,nb,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,th,tr,uk,vi,zh-CN,zh-HK,zh-TW".split(","),L=new Set(y),d="en",S={pt:"pt-BR",nb:"no",nn:"no",zh:"zh-CN"},T=async(t,s,e="")=>{let n=`${s}/${e}`,o=`${n}${t}.json`;return f[o]??=m(t,n),await f[o]},f={},m=async(t,s)=>{let e=`${s}${t}.json`;try{let n=await fetch(e);if(n.ok)return await n.json()}catch(n){return l("error","intl",`An unknown error occurred while fetching localization strings at ${e}`,{detail:{error:n}}),{}}return t===d?{}:await m(d,s)},p=t=>{let[s,e]=t.split("-"),n=s.toLowerCase(),o=n;return e&&(o=`${n}-${e.toUpperCase()}`),o=S[o]??o,L.has(o)?o:e?p(n):d};export{x as a,h as b,i as c,v as d,A as e,$ as f,N as g,K as h,L as i,d as j,T as k,p as l};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import b from"./5H4GHC76.js";import{p as O}from"./43DLRSYB.js";import{r as g}from"./NGXRBJKL.js";import{a,c as f,e as I}from"./QP5UAIC6.js";import{a as S}from"./Z5QPCSUQ.js";import{a as n,b as A,h as c,v as d}from"./QVG3TOL4.js";export default $arcgis.t(([{$:_,Cc:h,E:L,Mc:C,O:F,P:T,Q:D,R:N,dd:v,q:B,t:$,wa:b}])=>{function k(e,r){let s;return r===d.Category&&Array.isArray(e)?s=a.customSort:r===d.Category?s=e===c.Ascending?a.xAxisAsc:a.xAxisDesc:e===c.Ascending?s=a.yAxisAsc:s=a.yAxisDesc,s}function q(e,r){let s;return r===d.Category&&Array.isArray(e)?s=f.customSort:s=e===c.Ascending?f.Asc:f.Desc,s}var E=e=>{let r=e.orderOptions?.data&&"orderBy"in e.orderOptions.data?e.orderOptions.data.orderBy:c.Ascending;return k(r,e.orderOptions?.data?.orderType??d.Category)},R=e=>{let r=S(e.series),s=!1;return(r===n.BarSeries||r===n.LineSeries)&&(s=E(e)===a.customSort),s},G=e=>{let r=[],s=e.orderOptions?.data?.orderType;return R(e)&&s===d.Category&&(r=e.orderOptions?.data?.orderBy),r},Q=(e,r,s,i)=>{let t=S(r.series),m=_(r);r.orderOptions??={};let o=m?[""]:c.Ascending;if(m)e===f.customSort&&s!==void 0?o=[...s]:o=e===f.Desc?c.Descending:c.Ascending,i?r.orderOptions.data={...r.orderOptions.data,orderByY:o,orderType:d.MultiAxes}:r.orderOptions.data={...r.orderOptions.data,orderByX:o,orderType:d.MultiAxes};else if(t===n.BarSeries||t===n.LineSeries){let l=d.Category;e===a.customSort&&s!==void 0?(o=[...s],r.orderOptions.data={orderType:l,orderBy:o}):(l=e===a.xAxisAsc||e===a.xAxisDesc?d.Category:d.YValue,o=e===a.xAxisAsc||e===a.yAxisAsc?c.Ascending:c.Descending,r.orderOptions.data={orderType:l,orderBy:o})}},ee=e=>e?.series?.[0]?.x??"",re=e=>{let{config:r,xAxisField:s,numericFields:i,aggregationType:t,mode:m,layer:o,numericFieldIndex:l,seriesIndex:U,splitByField:w="",fieldList:H}=e,M=S(r.series),P=v(r.series),u;if($(o)){let y=b(o);u=i.length===1&&i[0]===y}else{let{idField:y,isTraditionalTypeOID:Y}=h(L(o));u=Y&&i.length===1&&i[0]===y}let p="y",x="y";switch(M){case n.PieSeries:{t!==A.NoAggregation?m===I.Category?(p=`${t}_${i[0]}_0`.toUpperCase(),x=u?g(A.Count):g(`${t} of ${i[0]}`)):p=T:p=i[0];break}case n.BarSeries:case n.LineSeries:case n.ComboLineAndBarSeries:case n.RadarSeries:case n.HeatSeries:{if(w===""||i.length>1)j({fieldName:s,numericFields:i,fieldList:H??[]})||P===B.BarAndLineFromFields?p=N:(p=t!==A.NoAggregation?`${t}_${i[l??0]}_${l??0}`.toUpperCase():i[l??0],x=u?g(A.Count):g(`${t} of ${i[l??0]}`));else{let y=i[0];p=t!==A.NoAggregation?`${t}_${y}_${U??0}`.toUpperCase():y,x=u?g(A.Count):g(`${t} of ${y}`)}break}}return{name:p,description:x}};function V(e){let{fieldName:r,fieldList:s}=e,i=C(s??[],r);return r===D||r===F||r===O||r===void 0||r.trim()===""||i===void 0}function j(e){let{fieldName:r,fieldList:s,numericFields:i}=e,t=i.filter(m=>C(s??[],m)?.type!=="esriFieldTypeOID");return V({fieldName:r,fieldList:s})&&(t?.length??0)>0}return{a:k,b:q,c:E,d:G,e:Q,f:ee,g:re,h:V,i:j}},b)
2
+ import b from"./GXNMIY2V.js";import{p as O}from"./43DLRSYB.js";import{r as g}from"./NGXRBJKL.js";import{a,c as f,e as I}from"./QP5UAIC6.js";import{a as S}from"./Z5QPCSUQ.js";import{a as n,b as A,h as c,v as d}from"./QVG3TOL4.js";export default $arcgis.t(([{$:_,Cc:h,E:L,Mc:C,O:F,P:T,Q:D,R:N,dd:v,q:B,t:$,wa:b}])=>{function k(e,r){let s;return r===d.Category&&Array.isArray(e)?s=a.customSort:r===d.Category?s=e===c.Ascending?a.xAxisAsc:a.xAxisDesc:e===c.Ascending?s=a.yAxisAsc:s=a.yAxisDesc,s}function q(e,r){let s;return r===d.Category&&Array.isArray(e)?s=f.customSort:s=e===c.Ascending?f.Asc:f.Desc,s}var E=e=>{let r=e.orderOptions?.data&&"orderBy"in e.orderOptions.data?e.orderOptions.data.orderBy:c.Ascending;return k(r,e.orderOptions?.data?.orderType??d.Category)},R=e=>{let r=S(e.series),s=!1;return(r===n.BarSeries||r===n.LineSeries)&&(s=E(e)===a.customSort),s},G=e=>{let r=[],s=e.orderOptions?.data?.orderType;return R(e)&&s===d.Category&&(r=e.orderOptions?.data?.orderBy),r},Q=(e,r,s,i)=>{let t=S(r.series),m=_(r);r.orderOptions??={};let o=m?[""]:c.Ascending;if(m)e===f.customSort&&s!==void 0?o=[...s]:o=e===f.Desc?c.Descending:c.Ascending,i?r.orderOptions.data={...r.orderOptions.data,orderByY:o,orderType:d.MultiAxes}:r.orderOptions.data={...r.orderOptions.data,orderByX:o,orderType:d.MultiAxes};else if(t===n.BarSeries||t===n.LineSeries){let l=d.Category;e===a.customSort&&s!==void 0?(o=[...s],r.orderOptions.data={orderType:l,orderBy:o}):(l=e===a.xAxisAsc||e===a.xAxisDesc?d.Category:d.YValue,o=e===a.xAxisAsc||e===a.yAxisAsc?c.Ascending:c.Descending,r.orderOptions.data={orderType:l,orderBy:o})}},ee=e=>e?.series?.[0]?.x??"",re=e=>{let{config:r,xAxisField:s,numericFields:i,aggregationType:t,mode:m,layer:o,numericFieldIndex:l,seriesIndex:U,splitByField:w="",fieldList:H}=e,M=S(r.series),P=v(r.series),u;if($(o)){let y=b(o);u=i.length===1&&i[0]===y}else{let{idField:y,isTraditionalTypeOID:Y}=h(L(o));u=Y&&i.length===1&&i[0]===y}let p="y",x="y";switch(M){case n.PieSeries:{t!==A.NoAggregation?m===I.Category?(p=`${t}_${i[0]}_0`.toUpperCase(),x=u?g(A.Count):g(`${t} of ${i[0]}`)):p=T:p=i[0];break}case n.BarSeries:case n.LineSeries:case n.ComboLineAndBarSeries:case n.RadarSeries:case n.HeatSeries:{if(w===""||i.length>1)j({fieldName:s,numericFields:i,fieldList:H??[]})||P===B.BarAndLineFromFields?p=N:(p=t!==A.NoAggregation?`${t}_${i[l??0]}_${l??0}`.toUpperCase():i[l??0],x=u?g(A.Count):g(`${t} of ${i[l??0]}`));else{let y=i[0];p=t!==A.NoAggregation?`${t}_${y}_${U??0}`.toUpperCase():y,x=u?g(A.Count):g(`${t} of ${y}`)}break}}return{name:p,description:x}};function V(e){let{fieldName:r,fieldList:s}=e,i=C(s??[],r);return r===D||r===F||r===O||r===void 0||r.trim()===""||i===void 0}function j(e){let{fieldName:r,fieldList:s,numericFields:i}=e,t=i.filter(m=>C(s??[],m)?.type!=="esriFieldTypeOID");return V({fieldName:r,fieldList:s})&&(t?.length??0)>0}return{a:k,b:q,c:E,d:G,e:Q,f:ee,g:re,h:V,i:j}},b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import o from"./YVRQEVJQ.js";import n from"./5CDCBHUV.js";import m from"./PK4FGBU5.js";import k from"./AYAESDR6.js";import j from"./AGLVYLFP.js";import i from"./BKXCCTLV.js";import g from"./BPRMU5ND.js";import f from"./STIAP2Q5.js";import e from"./TI2WEAIV.js";import d from"./6S6OEV5K.js";import a from"./5H4GHC76.js";import{M as b,P as p,ha as O,ja as V,o as S,qa as F}from"./43DLRSYB.js";import{f as h}from"./KX7KGXKQ.js";import{d as x}from"./NGXRBJKL.js";import"./FQB2OTR4.js";import{l as C}from"./3WNW44CU.js";import{e as y,f as l}from"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as c}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{Cc:k,Yb:T,Zb:N,_b:M,dd:L,q:f},,{e:t},,,R,{d:W},{b:H},{a:E,b:j,c:K,d:q},,{a:d,b:v,c:m,d:G,e:z,f:I,g:A,h:w,i:B,j:D,k:P,l:_}])=>{var J=i=>i.legend?.displayNumericValue??!1,Q=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.displayNumericValue=i)},U=i=>i.legend?.displayCategory??!1,X=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.displayCategory=i)},Y=i=>i.legend?.displayPercentage??!1,Z=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.displayPercentage=i)},$=i=>i.legend?.labelMaxWidth??200,ee=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.labelMaxWidth=i)},ae=i=>i.legend?.valueLabelMaxWidth??200,ne=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.valueLabelMaxWidth=i)},le=i=>i.series?.[0]?.innerRadius,ce=(i,e)=>{e.series?.[0]&&(e.series[0].innerRadius=i)},ge=i=>i.series?.[0]?.innerRadius,pe=(i,e)=>{e.series?.[0]&&(e.series[0].innerRadius=i)},de=i=>i.series?.[0]?.dataLabelsCharacterLimit,ue=(i,e)=>{e.series?.[0]&&(e.series[0].dataLabelsCharacterLimit=i)},ie=i=>i.series[0]?.startAngle,he=(i,e)=>{e.series?.[0]&&(e.series[0].startAngle=i)},fe=(i,e)=>{e.series?.[0]&&(e.series[0].endAngle=i)},ye=i=>i.series?.[0]?.displayCategoryOnTooltip??!0,me=i=>i.series?.[0]?.displayCategoryOnDataLabel??!0,_e=i=>i.series?.[0]?.displayNumericValueOnDataLabel??!0,Se=i=>i.series?.[0]?.displayPercentageOnDataLabel??!1,be=i=>i.series?.[0]?.displayNumericValueOnTooltip??!0,Oe=i=>i.series?.[0]?.displayPercentageOnTooltip??!0,Le=(i,e)=>{e.series[0]&&(e.series[0].displayPercentageOnTooltip=i)},ve=i=>i.series?.[0]?.valuePrefix,Ie=(i,e)=>{e.series?.[0]&&(e.series[0].valuePrefix=i)},De=i=>i.series?.[0]?.valueSuffix,Pe=(i,e)=>{e.series?.[0]&&(e.series[0].valueSuffix=i)},Ce=i=>i.series?.[0]?.percentagePrefix,xe=(i,e)=>{e.series?.[0]&&(e.series[0].percentagePrefix=i)},Ve=i=>i.series?.[0]?.percentageSuffix,Fe=(i,e)=>{e.series?.[0]&&(e.series[0].percentageSuffix=i)},Te=i=>{let e,o=i.series?.[0];return o?.displayNumericValueOnDataLabel===!0&&o?.displayPercentageOnDataLabel===!0?e=l.Both:o?.displayNumericValueOnDataLabel===!0?e=l.Value:e=l.Percentage,e},Ne=(i,e)=>{let o=i===l.Value||i===l.Both,a=i===l.Percentage||i===l.Both;e.series?.[0]&&(e.series[0].displayNumericValueOnDataLabel=o,e.series[0].displayPercentageOnDataLabel=a),e.legend&&(e.legend={...e.legend,displayNumericValue:o,displayPercentage:a})},Me=i=>i.series?.[0]?.alignDataLabels??!1,ke=(i,e)=>{e.series[0]&&(e.series[0].alignDataLabels=i)},We=i=>i.series?.[0]?.dataLabelsInside??!1,Ge=(i,e)=>{e.series[0]&&(e.series[0].dataLabelsInside=i)},ze=i=>i.series?.[0]?.dataLabelsOffset??10,Ae=(i,e)=>{e.series[0]&&(e.series[0].dataLabelsOffset=i)},we=i=>i.series?.[0]?.numericValueFormat?.intlOptions?.minimumFractionDigits,Be=(i,e)=>{e.series?.[0]&&(e.series[0].numericValueFormat??=b(),e.series[0].numericValueFormat.intlOptions.minimumFractionDigits=i,e.series[0].numericValueFormat.intlOptions.maximumFractionDigits=i,e.series[0].percentValueFormat??=b(),e.series[0].percentValueFormat.intlOptions.minimumFractionDigits=i,e.series[0].percentValueFormat.intlOptions.maximumFractionDigits=i)},Re=i=>i.series?.[0]?.optimizeDataLabelsOverlapping??!1,Ee=(i,e)=>{e.series[0]&&(e.series[0].optimizeDataLabelsOverlapping=i)},je=i=>i.series[0]?.ticks?.visible??!1,Ke=(i,e)=>{e.series?.[0]&&(e.series[0].ticks??=O(),e.series[0].ticks.visible=i)},qe=i=>i.series[0]?.ticks?.lineSymbol,He=(i,e)=>{i&&e.series?.[0]&&(e.series[0].ticks??=O(),e.series[0].ticks.lineSymbol=x(i))},Je=(i,e)=>e.series?.[0]?.slices?.[i]?.originalLabel,Qe=(i,e)=>e.series?.[0]?.slices?.[i]?.label,Ue=(i,e,o)=>{o.series?.[0]?.slices?.[e]&&(o.series[0].slices[e].label=i)},Xe=(i,e)=>e.series?.[0]?.slices?.[i]?.fillSymbol?.color,Ye=(i,e,o)=>{let a=o.series?.[0]?.slices?.[e]?.fillSymbol;a!==void 0?(a.color=i,a.outline!==void 0?a.outline.color=i:a.outline={type:h.SLS,color:i}):o.series?.[0]?.slices?.[e]!==void 0&&(o.series[0].slices[e].fillSymbol={type:h.SFS,color:i,outline:{type:h.SLS,color:i}})},Ze=i=>i.series?.[0]?.slices?.map(e=>e.sliceId),se=(i,e)=>{e.series?.[0]?.slices?.sort((o,a)=>i.findIndex(n=>o.sliceId===n)-i.findIndex(n=>a.sliceId===n))},$e=i=>i.series?.[0]?.sliceGrouping,te=(i,e)=>{e.series?.[0]&&(e.series[0].sliceGrouping=i)},re=i=>i.series?.[0]?.sliceGrouping?.percentageThreshold,ei=(i,e)=>{e.series?.[0]?.sliceGrouping!==void 0?e.series[0].sliceGrouping.percentageThreshold=i:e.series[0].sliceGrouping={sliceId:S.defaultGroupOfSlicesId,percentageThreshold:i}},ii=i=>i.series?.[0]?.slices,oe=(i,e)=>{e.series?.[0]&&(e.series[0].slices=i)},si=i=>{oe(void 0,i),te({sliceId:S.defaultGroupOfSlicesId,percentageThreshold:re(i)??0},i)},ti=(i,e)=>e.series[0]?.slices?.[i]?.sliceId,ri=(i,e)=>e.series[0]?.slices?.findIndex(o=>o.sliceId===i),oi=i=>i.series[0]?.slices?.length??0,ai=Object.defineProperty,ni=Object.getOwnPropertyDescriptor,r=(i,e,o,a)=>{for(var n=ni(e,o),g=i.length-1,u;g>=0;g--)(u=i[g])&&(n=u(e,o,n)||n);return n&&ai(e,o,n),n},s=class extends R{constructor(){super(...arguments),this._chartType=c.PieSeries,this._mode=y.Category,this._groupedSliceIds=[],this._customizedSliceIds=[]}async setup(e){await this.loadConfigFromLayer(e);let{config:o}=e;if(o!==void 0){let a=L(o.series)!==f.PieFromFields?y.Category:y.Fields;this._mode=_({category:d(this._config),numericFields:m(this._config),fallbackMode:a})}typeof this.resolveSetup=="function"&&this.resolveSetup()}get category(){return d(this._config)}set category(e){(!W(this._config)||e.trim()!=="")&&(this._mode=_({category:e,numericFields:m(this._config),fallbackMode:this._mode}),A({newCategory:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")))}get numericFields(){return m(this._config)}set numericFields(e){typeof e=="string"&&(e=[e]),this.layerInfo===void 0||T(this.layerInfo.layerFieldsInfo,e)?(this._mode=_({category:d(this._config),numericFields:e,fallbackMode:this._mode}),B({newNumericFields:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this._config.series[0].slices=this._config.series[0].slices?.filter(o=>o.fillSymbol?.color!==void 0&&this._customizedSliceIds.includes(o.sliceId??"")),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))):C("error","pie-chart-model","Invalid `numericFields`")}get aggregationType(){return G(this._config,this._mode)}set aggregationType(e){w({newAggregationType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}getDataSortOrder(){return v(this._config,this._mode)}setDataSortOrder(e,o){I({newSortOrderKind:e,config:this._config,orderByList:o})}getSortOrder(){return v(this._config,this._mode)}setSortOrder(e,o){I({newSortOrderKind:e,config:this._config,orderByList:o})}get orderByList(){return D(this._config,this._mode)}set orderByList(e){P({values:e,config:this._config,mode:this._mode})}get mode(){return this._mode}set mode(e){this._mode=e}async getCustomSortValues(e){let o=d(this._config),a=L(this._config.series),n=[];return a===f.PieFromFields?n=this.numericFields:o.trim()!==""&&a===f.PieFromCategory&&(n=await M({category:o,config:this._config,layerInfo:this.layerInfo,num:e,errorStrings:this.commonStrings.errorStrings})),n}moveCustomSortValuesInOrderByList(e,o){let a=D(this._config,this._mode),[n]=a.splice(e,1);a.splice(o,0,n),P({values:a,config:this._config,mode:this._mode})}get ticksSymbol(){return qe(this._config)}set ticksSymbol(e){He(e,this._config)}get slices(){return ii(this._config)}set slices(e){oe(e,this._config)}get groupedSliceIds(){return this._groupedSliceIds}set groupedSliceIds(e){this._groupedSliceIds=e}get sliceGrouping(){return $e(this._config)}set sliceGrouping(e){te(e,this._config)}get innerRadiusSize(){return le(this._config)??0}set innerRadiusSize(e){ce(e,this._config)}get innerRadius(){return ge(this._config)??0}set innerRadius(e){pe(e,this._config)}get groupingThreshold(){return re(this._config)??0}set groupingThreshold(e){ei(e,this._config)}get labelCharacterLimit(){return de(this._config)??null}set labelCharacterLimit(e){ue(e,this._config)}get decimalPlaces(){return we(this._config)??1}set decimalPlaces(e){Be(e,this._config)}get displayType(){return Te(this._config)}set displayType(e){Ne(e,this._config)}generateDefaultConfig(){let e=F(this.commonStrings);return e.series=[V(this.commonStrings,k(this.layerInfo.layer).idField)],e}getOriginalSliceName(e){return Je(e,this._config)}getSliceName(e){return Qe(e,this._config)}setSliceName(e,o){let a=this.getSliceId(o);a!==void 0&&this._customizedSliceIds.push(a),Ue(e,o,this._config)}getSliceColor(e){return Xe(e,this._config)}setSliceColor(e,o){let a=this.getSliceId(o);e!==void 0&&a!==void 0&&this._customizedSliceIds.push(a),Ye(e,o,this._config)}get orderOfSlices(){return Ze(this._config)}set orderOfSlices(e){e!==void 0&&se(e,this._config)}moveSeries(e,o){let a=this.orderOfSlices;if(a!==void 0){let[n]=a.splice(e,1);a.splice(o,0,n),se(a,this._config)}}getSliceId(e){return ti(e,this._config)}getSliceIndex(e){return ri(e,this._config)}getSlicesLength(){return oi(this._config)}resetSlices(){this._customizedSliceIds=[],si(this._config)}resetAvailable(){let e=!this.colorMatch,o=!1,a=this.slices?.length??0;for(let n=0;n<a;n+=1){let g=this.getOriginalSliceName(n),u=this.getSliceName(n);if(g!==void 0&&g?.toString()!==u?.toString()){o=!0;break}}return this.sliceGrouping?.originalLabel!==void 0&&this.sliceGrouping?.label!==this.sliceGrouping.originalLabel&&(o=!0),e||o}get ticksVisibility(){return je(this._config)}set ticksVisibility(e){Ke(e,this._config)}get startAngle(){return ie(this._config)}set startAngle(e){he(e,this._config)}get endAngle(){return ie(this._config)}set endAngle(e){fe(e,this._config)}get displayCategoryOnDataLabel(){return me(this._config)}set displayCategoryOnDataLabel(e){this._config.series[0].displayCategoryOnDataLabel=e}get displayCategoryValueOnTooltip(){return ye(this._config)}set displayCategoryValueOnTooltip(e){this._config.series[0].displayCategoryOnTooltip=e}get displayNumericValueOnDataLabel(){return _e(this._config)}set displayNumericValueOnDataLabel(e){this._config.series[0].displayNumericValueOnDataLabel=e}get displayPercentageOnDataLabel(){return Se(this._config)}set displayPercentageOnDataLabel(e){this._config.series[0].displayPercentageOnDataLabel=e}get displayNumericValueOnTooltip(){return be(this._config)}set displayNumericValueOnTooltip(e){this._config.series[0].displayNumericValueOnTooltip=e}get displayPercentageOnTooltip(){return Oe(this._config)}set displayPercentageOnTooltip(e){Le(e,this._config)}get valuePrefix(){return ve(this._config)}set valuePrefix(e){Ie(e,this._config)}get valueSuffix(){return De(this._config)}set valueSuffix(e){Pe(e,this._config)}get percentagePrefix(){return Ce(this._config)}set percentagePrefix(e){xe(e,this._config)}get percentageSuffix(){return Ve(this._config)}set percentageSuffix(e){Fe(e,this._config)}get dataLabelsOffset(){return ze(this._config)}set dataLabelsOffset(e){Ae(e,this._config)}get alignDataLabels(){return Me(this._config)}set alignDataLabels(e){ke(e,this._config)}get dataLabelsInside(){return We(this._config)}set dataLabelsInside(e){Ge(e,this._config)}get optimizeDataLabelsOverlapping(){return Re(this._config)}set optimizeDataLabelsOverlapping(e){Ee(e,this._config)}get displayNumericValueOnLegendItems(){return J(this._config)}set displayNumericValueOnLegendItems(e){Q(e,this._config)}get displayPercentageOnLegendItems(){return Y(this._config)}set displayPercentageOnLegendItems(e){Z(e,this._config)}get displayCategoryOnLegendItems(){return U(this._config)}set displayCategoryOnLegendItems(e){X(e,this._config)}get labelMaxWidth(){return $(this._config)}set labelMaxWidth(e){ee(e,this._config)}get valueLabelMaxWidth(){return ae(this._config)}set valueLabelMaxWidth(e){ne(e,this._config)}getDisplayNumericValue(){return J(this._config)}setDisplayNumericValue(e){Q(e,this._config)}getDisplayPercentage(){return Y(this._config)}setDisplayPercentage(e){Z(e,this._config)}getLabelMaxWidth(){return $(this._config)}setLabelMaxWidth(e){ee(e,this._config)}get displayCategory(){return U(this._config)}set displayCategory(e){X(e,this._config)}generateChartTitle(){return z({config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode})}};r([t],s.prototype,"category");r([t],s.prototype,"numericFields");r([t],s.prototype,"aggregationType");r([t],s.prototype,"setDataSortOrder");r([t],s.prototype,"setSortOrder");r([t],s.prototype,"orderByList");r([t],s.prototype,"mode");r([t],s.prototype,"moveCustomSortValuesInOrderByList");r([t],s.prototype,"ticksSymbol");r([t],s.prototype,"slices");r([t],s.prototype,"groupedSliceIds");r([t],s.prototype,"sliceGrouping");r([t],s.prototype,"innerRadiusSize");r([t],s.prototype,"innerRadius");r([t],s.prototype,"groupingThreshold");r([t],s.prototype,"labelCharacterLimit");r([t],s.prototype,"decimalPlaces");r([t],s.prototype,"displayType");r([t],s.prototype,"setSliceName");r([t],s.prototype,"setSliceColor");r([t],s.prototype,"orderOfSlices");r([t],s.prototype,"moveSeries");r([t],s.prototype,"resetSlices");r([t],s.prototype,"ticksVisibility");r([t],s.prototype,"startAngle");r([t],s.prototype,"endAngle");r([t],s.prototype,"displayCategoryOnDataLabel");r([t],s.prototype,"displayCategoryValueOnTooltip");r([t],s.prototype,"displayNumericValueOnDataLabel");r([t],s.prototype,"displayPercentageOnDataLabel");r([t],s.prototype,"displayNumericValueOnTooltip");r([t],s.prototype,"displayPercentageOnTooltip");r([t],s.prototype,"valuePrefix");r([t],s.prototype,"valueSuffix");r([t],s.prototype,"percentagePrefix");r([t],s.prototype,"percentageSuffix");r([t],s.prototype,"dataLabelsOffset");r([t],s.prototype,"alignDataLabels");r([t],s.prototype,"dataLabelsInside");r([t],s.prototype,"optimizeDataLabelsOverlapping");r([t],s.prototype,"displayNumericValueOnLegendItems");r([t],s.prototype,"displayPercentageOnLegendItems");r([t],s.prototype,"displayCategoryOnLegendItems");r([t],s.prototype,"labelMaxWidth");r([t],s.prototype,"valueLabelMaxWidth");r([t],s.prototype,"setDisplayNumericValue");r([t],s.prototype,"setDisplayPercentage");r([t],s.prototype,"setLabelMaxWidth");r([t],s.prototype,"displayCategory");var li=[E,j,K,q,H];N(s,li);return s},a,d,e,f,g,i,j,k,m,n,o)
2
+ import o from"./KTFNKN5F.js";import n from"./P657CUK2.js";import m from"./4DK44E5O.js";import k from"./AZP4RGFP.js";import j from"./H6ZF2I7S.js";import i from"./LRSAWJXU.js";import g from"./KMSUWCI6.js";import f from"./UHJ7VTFD.js";import e from"./TG7JNJCB.js";import d from"./6RGFJYNO.js";import a from"./GXNMIY2V.js";import{M as b,P as p,ha as O,ja as V,o as S,qa as F}from"./43DLRSYB.js";import{f as h}from"./KX7KGXKQ.js";import{d as x}from"./NGXRBJKL.js";import"./OWLTOYDG.js";import{l as C}from"./4QJLNQVP.js";import{e as y,f as l}from"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as c}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{Cc:k,Yb:T,Zb:N,_b:M,dd:L,q:f},,{e:t},,,R,{d:W},{b:H},{a:E,b:j,c:K,d:q},,{a:d,b:v,c:m,d:G,e:z,f:I,g:A,h:w,i:B,j:D,k:P,l:_}])=>{var J=i=>i.legend?.displayNumericValue??!1,Q=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.displayNumericValue=i)},U=i=>i.legend?.displayCategory??!1,X=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.displayCategory=i)},Y=i=>i.legend?.displayPercentage??!1,Z=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.displayPercentage=i)},$=i=>i.legend?.labelMaxWidth??200,ee=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.labelMaxWidth=i)},ae=i=>i.legend?.valueLabelMaxWidth??200,ne=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.valueLabelMaxWidth=i)},le=i=>i.series?.[0]?.innerRadius,ce=(i,e)=>{e.series?.[0]&&(e.series[0].innerRadius=i)},ge=i=>i.series?.[0]?.innerRadius,pe=(i,e)=>{e.series?.[0]&&(e.series[0].innerRadius=i)},de=i=>i.series?.[0]?.dataLabelsCharacterLimit,ue=(i,e)=>{e.series?.[0]&&(e.series[0].dataLabelsCharacterLimit=i)},ie=i=>i.series[0]?.startAngle,he=(i,e)=>{e.series?.[0]&&(e.series[0].startAngle=i)},fe=(i,e)=>{e.series?.[0]&&(e.series[0].endAngle=i)},ye=i=>i.series?.[0]?.displayCategoryOnTooltip??!0,me=i=>i.series?.[0]?.displayCategoryOnDataLabel??!0,_e=i=>i.series?.[0]?.displayNumericValueOnDataLabel??!0,Se=i=>i.series?.[0]?.displayPercentageOnDataLabel??!1,be=i=>i.series?.[0]?.displayNumericValueOnTooltip??!0,Oe=i=>i.series?.[0]?.displayPercentageOnTooltip??!0,Le=(i,e)=>{e.series[0]&&(e.series[0].displayPercentageOnTooltip=i)},ve=i=>i.series?.[0]?.valuePrefix,Ie=(i,e)=>{e.series?.[0]&&(e.series[0].valuePrefix=i)},De=i=>i.series?.[0]?.valueSuffix,Pe=(i,e)=>{e.series?.[0]&&(e.series[0].valueSuffix=i)},Ce=i=>i.series?.[0]?.percentagePrefix,xe=(i,e)=>{e.series?.[0]&&(e.series[0].percentagePrefix=i)},Ve=i=>i.series?.[0]?.percentageSuffix,Fe=(i,e)=>{e.series?.[0]&&(e.series[0].percentageSuffix=i)},Te=i=>{let e,o=i.series?.[0];return o?.displayNumericValueOnDataLabel===!0&&o?.displayPercentageOnDataLabel===!0?e=l.Both:o?.displayNumericValueOnDataLabel===!0?e=l.Value:e=l.Percentage,e},Ne=(i,e)=>{let o=i===l.Value||i===l.Both,a=i===l.Percentage||i===l.Both;e.series?.[0]&&(e.series[0].displayNumericValueOnDataLabel=o,e.series[0].displayPercentageOnDataLabel=a),e.legend&&(e.legend={...e.legend,displayNumericValue:o,displayPercentage:a})},Me=i=>i.series?.[0]?.alignDataLabels??!1,ke=(i,e)=>{e.series[0]&&(e.series[0].alignDataLabels=i)},We=i=>i.series?.[0]?.dataLabelsInside??!1,Ge=(i,e)=>{e.series[0]&&(e.series[0].dataLabelsInside=i)},ze=i=>i.series?.[0]?.dataLabelsOffset??10,Ae=(i,e)=>{e.series[0]&&(e.series[0].dataLabelsOffset=i)},we=i=>i.series?.[0]?.numericValueFormat?.intlOptions?.minimumFractionDigits,Be=(i,e)=>{e.series?.[0]&&(e.series[0].numericValueFormat??=b(),e.series[0].numericValueFormat.intlOptions.minimumFractionDigits=i,e.series[0].numericValueFormat.intlOptions.maximumFractionDigits=i,e.series[0].percentValueFormat??=b(),e.series[0].percentValueFormat.intlOptions.minimumFractionDigits=i,e.series[0].percentValueFormat.intlOptions.maximumFractionDigits=i)},Re=i=>i.series?.[0]?.optimizeDataLabelsOverlapping??!1,Ee=(i,e)=>{e.series[0]&&(e.series[0].optimizeDataLabelsOverlapping=i)},je=i=>i.series[0]?.ticks?.visible??!1,Ke=(i,e)=>{e.series?.[0]&&(e.series[0].ticks??=O(),e.series[0].ticks.visible=i)},qe=i=>i.series[0]?.ticks?.lineSymbol,He=(i,e)=>{i&&e.series?.[0]&&(e.series[0].ticks??=O(),e.series[0].ticks.lineSymbol=x(i))},Je=(i,e)=>e.series?.[0]?.slices?.[i]?.originalLabel,Qe=(i,e)=>e.series?.[0]?.slices?.[i]?.label,Ue=(i,e,o)=>{o.series?.[0]?.slices?.[e]&&(o.series[0].slices[e].label=i)},Xe=(i,e)=>e.series?.[0]?.slices?.[i]?.fillSymbol?.color,Ye=(i,e,o)=>{let a=o.series?.[0]?.slices?.[e]?.fillSymbol;a!==void 0?(a.color=i,a.outline!==void 0?a.outline.color=i:a.outline={type:h.SLS,color:i}):o.series?.[0]?.slices?.[e]!==void 0&&(o.series[0].slices[e].fillSymbol={type:h.SFS,color:i,outline:{type:h.SLS,color:i}})},Ze=i=>i.series?.[0]?.slices?.map(e=>e.sliceId),se=(i,e)=>{e.series?.[0]?.slices?.sort((o,a)=>i.findIndex(n=>o.sliceId===n)-i.findIndex(n=>a.sliceId===n))},$e=i=>i.series?.[0]?.sliceGrouping,te=(i,e)=>{e.series?.[0]&&(e.series[0].sliceGrouping=i)},re=i=>i.series?.[0]?.sliceGrouping?.percentageThreshold,ei=(i,e)=>{e.series?.[0]?.sliceGrouping!==void 0?e.series[0].sliceGrouping.percentageThreshold=i:e.series[0].sliceGrouping={sliceId:S.defaultGroupOfSlicesId,percentageThreshold:i}},ii=i=>i.series?.[0]?.slices,oe=(i,e)=>{e.series?.[0]&&(e.series[0].slices=i)},si=i=>{oe(void 0,i),te({sliceId:S.defaultGroupOfSlicesId,percentageThreshold:re(i)??0},i)},ti=(i,e)=>e.series[0]?.slices?.[i]?.sliceId,ri=(i,e)=>e.series[0]?.slices?.findIndex(o=>o.sliceId===i),oi=i=>i.series[0]?.slices?.length??0,ai=Object.defineProperty,ni=Object.getOwnPropertyDescriptor,r=(i,e,o,a)=>{for(var n=ni(e,o),g=i.length-1,u;g>=0;g--)(u=i[g])&&(n=u(e,o,n)||n);return n&&ai(e,o,n),n},s=class extends R{constructor(){super(...arguments),this._chartType=c.PieSeries,this._mode=y.Category,this._groupedSliceIds=[],this._customizedSliceIds=[]}async setup(e){await this.loadConfigFromLayer(e);let{config:o}=e;if(o!==void 0){let a=L(o.series)!==f.PieFromFields?y.Category:y.Fields;this._mode=_({category:d(this._config),numericFields:m(this._config),fallbackMode:a})}typeof this.resolveSetup=="function"&&this.resolveSetup()}get category(){return d(this._config)}set category(e){(!W(this._config)||e.trim()!=="")&&(this._mode=_({category:e,numericFields:m(this._config),fallbackMode:this._mode}),A({newCategory:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")))}get numericFields(){return m(this._config)}set numericFields(e){typeof e=="string"&&(e=[e]),this.layerInfo===void 0||T(this.layerInfo.layerFieldsInfo,e)?(this._mode=_({category:d(this._config),numericFields:e,fallbackMode:this._mode}),B({newNumericFields:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this._config.series[0].slices=this._config.series[0].slices?.filter(o=>o.fillSymbol?.color!==void 0&&this._customizedSliceIds.includes(o.sliceId??"")),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))):C("error","pie-chart-model","Invalid `numericFields`")}get aggregationType(){return G(this._config,this._mode)}set aggregationType(e){w({newAggregationType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}getDataSortOrder(){return v(this._config,this._mode)}setDataSortOrder(e,o){I({newSortOrderKind:e,config:this._config,orderByList:o})}getSortOrder(){return v(this._config,this._mode)}setSortOrder(e,o){I({newSortOrderKind:e,config:this._config,orderByList:o})}get orderByList(){return D(this._config,this._mode)}set orderByList(e){P({values:e,config:this._config,mode:this._mode})}get mode(){return this._mode}set mode(e){this._mode=e}async getCustomSortValues(e){let o=d(this._config),a=L(this._config.series),n=[];return a===f.PieFromFields?n=this.numericFields:o.trim()!==""&&a===f.PieFromCategory&&(n=await M({category:o,config:this._config,layerInfo:this.layerInfo,num:e,errorStrings:this.commonStrings.errorStrings})),n}moveCustomSortValuesInOrderByList(e,o){let a=D(this._config,this._mode),[n]=a.splice(e,1);a.splice(o,0,n),P({values:a,config:this._config,mode:this._mode})}get ticksSymbol(){return qe(this._config)}set ticksSymbol(e){He(e,this._config)}get slices(){return ii(this._config)}set slices(e){oe(e,this._config)}get groupedSliceIds(){return this._groupedSliceIds}set groupedSliceIds(e){this._groupedSliceIds=e}get sliceGrouping(){return $e(this._config)}set sliceGrouping(e){te(e,this._config)}get innerRadiusSize(){return le(this._config)??0}set innerRadiusSize(e){ce(e,this._config)}get innerRadius(){return ge(this._config)??0}set innerRadius(e){pe(e,this._config)}get groupingThreshold(){return re(this._config)??0}set groupingThreshold(e){ei(e,this._config)}get labelCharacterLimit(){return de(this._config)??null}set labelCharacterLimit(e){ue(e,this._config)}get decimalPlaces(){return we(this._config)??1}set decimalPlaces(e){Be(e,this._config)}get displayType(){return Te(this._config)}set displayType(e){Ne(e,this._config)}generateDefaultConfig(){let e=F(this.commonStrings);return e.series=[V(this.commonStrings,k(this.layerInfo.layer).idField)],e}getOriginalSliceName(e){return Je(e,this._config)}getSliceName(e){return Qe(e,this._config)}setSliceName(e,o){let a=this.getSliceId(o);a!==void 0&&this._customizedSliceIds.push(a),Ue(e,o,this._config)}getSliceColor(e){return Xe(e,this._config)}setSliceColor(e,o){let a=this.getSliceId(o);e!==void 0&&a!==void 0&&this._customizedSliceIds.push(a),Ye(e,o,this._config)}get orderOfSlices(){return Ze(this._config)}set orderOfSlices(e){e!==void 0&&se(e,this._config)}moveSeries(e,o){let a=this.orderOfSlices;if(a!==void 0){let[n]=a.splice(e,1);a.splice(o,0,n),se(a,this._config)}}getSliceId(e){return ti(e,this._config)}getSliceIndex(e){return ri(e,this._config)}getSlicesLength(){return oi(this._config)}resetSlices(){this._customizedSliceIds=[],si(this._config)}resetAvailable(){let e=!this.colorMatch,o=!1,a=this.slices?.length??0;for(let n=0;n<a;n+=1){let g=this.getOriginalSliceName(n),u=this.getSliceName(n);if(g!==void 0&&g?.toString()!==u?.toString()){o=!0;break}}return this.sliceGrouping?.originalLabel!==void 0&&this.sliceGrouping?.label!==this.sliceGrouping.originalLabel&&(o=!0),e||o}get ticksVisibility(){return je(this._config)}set ticksVisibility(e){Ke(e,this._config)}get startAngle(){return ie(this._config)}set startAngle(e){he(e,this._config)}get endAngle(){return ie(this._config)}set endAngle(e){fe(e,this._config)}get displayCategoryOnDataLabel(){return me(this._config)}set displayCategoryOnDataLabel(e){this._config.series[0].displayCategoryOnDataLabel=e}get displayCategoryValueOnTooltip(){return ye(this._config)}set displayCategoryValueOnTooltip(e){this._config.series[0].displayCategoryOnTooltip=e}get displayNumericValueOnDataLabel(){return _e(this._config)}set displayNumericValueOnDataLabel(e){this._config.series[0].displayNumericValueOnDataLabel=e}get displayPercentageOnDataLabel(){return Se(this._config)}set displayPercentageOnDataLabel(e){this._config.series[0].displayPercentageOnDataLabel=e}get displayNumericValueOnTooltip(){return be(this._config)}set displayNumericValueOnTooltip(e){this._config.series[0].displayNumericValueOnTooltip=e}get displayPercentageOnTooltip(){return Oe(this._config)}set displayPercentageOnTooltip(e){Le(e,this._config)}get valuePrefix(){return ve(this._config)}set valuePrefix(e){Ie(e,this._config)}get valueSuffix(){return De(this._config)}set valueSuffix(e){Pe(e,this._config)}get percentagePrefix(){return Ce(this._config)}set percentagePrefix(e){xe(e,this._config)}get percentageSuffix(){return Ve(this._config)}set percentageSuffix(e){Fe(e,this._config)}get dataLabelsOffset(){return ze(this._config)}set dataLabelsOffset(e){Ae(e,this._config)}get alignDataLabels(){return Me(this._config)}set alignDataLabels(e){ke(e,this._config)}get dataLabelsInside(){return We(this._config)}set dataLabelsInside(e){Ge(e,this._config)}get optimizeDataLabelsOverlapping(){return Re(this._config)}set optimizeDataLabelsOverlapping(e){Ee(e,this._config)}get displayNumericValueOnLegendItems(){return J(this._config)}set displayNumericValueOnLegendItems(e){Q(e,this._config)}get displayPercentageOnLegendItems(){return Y(this._config)}set displayPercentageOnLegendItems(e){Z(e,this._config)}get displayCategoryOnLegendItems(){return U(this._config)}set displayCategoryOnLegendItems(e){X(e,this._config)}get labelMaxWidth(){return $(this._config)}set labelMaxWidth(e){ee(e,this._config)}get valueLabelMaxWidth(){return ae(this._config)}set valueLabelMaxWidth(e){ne(e,this._config)}getDisplayNumericValue(){return J(this._config)}setDisplayNumericValue(e){Q(e,this._config)}getDisplayPercentage(){return Y(this._config)}setDisplayPercentage(e){Z(e,this._config)}getLabelMaxWidth(){return $(this._config)}setLabelMaxWidth(e){ee(e,this._config)}get displayCategory(){return U(this._config)}set displayCategory(e){X(e,this._config)}generateChartTitle(){return z({config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode})}};r([t],s.prototype,"category");r([t],s.prototype,"numericFields");r([t],s.prototype,"aggregationType");r([t],s.prototype,"setDataSortOrder");r([t],s.prototype,"setSortOrder");r([t],s.prototype,"orderByList");r([t],s.prototype,"mode");r([t],s.prototype,"moveCustomSortValuesInOrderByList");r([t],s.prototype,"ticksSymbol");r([t],s.prototype,"slices");r([t],s.prototype,"groupedSliceIds");r([t],s.prototype,"sliceGrouping");r([t],s.prototype,"innerRadiusSize");r([t],s.prototype,"innerRadius");r([t],s.prototype,"groupingThreshold");r([t],s.prototype,"labelCharacterLimit");r([t],s.prototype,"decimalPlaces");r([t],s.prototype,"displayType");r([t],s.prototype,"setSliceName");r([t],s.prototype,"setSliceColor");r([t],s.prototype,"orderOfSlices");r([t],s.prototype,"moveSeries");r([t],s.prototype,"resetSlices");r([t],s.prototype,"ticksVisibility");r([t],s.prototype,"startAngle");r([t],s.prototype,"endAngle");r([t],s.prototype,"displayCategoryOnDataLabel");r([t],s.prototype,"displayCategoryValueOnTooltip");r([t],s.prototype,"displayNumericValueOnDataLabel");r([t],s.prototype,"displayPercentageOnDataLabel");r([t],s.prototype,"displayNumericValueOnTooltip");r([t],s.prototype,"displayPercentageOnTooltip");r([t],s.prototype,"valuePrefix");r([t],s.prototype,"valueSuffix");r([t],s.prototype,"percentagePrefix");r([t],s.prototype,"percentageSuffix");r([t],s.prototype,"dataLabelsOffset");r([t],s.prototype,"alignDataLabels");r([t],s.prototype,"dataLabelsInside");r([t],s.prototype,"optimizeDataLabelsOverlapping");r([t],s.prototype,"displayNumericValueOnLegendItems");r([t],s.prototype,"displayPercentageOnLegendItems");r([t],s.prototype,"displayCategoryOnLegendItems");r([t],s.prototype,"labelMaxWidth");r([t],s.prototype,"valueLabelMaxWidth");r([t],s.prototype,"setDisplayNumericValue");r([t],s.prototype,"setDisplayPercentage");r([t],s.prototype,"setLabelMaxWidth");r([t],s.prototype,"displayCategory");var li=[E,j,K,q,H];N(s,li);return s},a,d,e,f,g,i,j,k,m,n,o)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import k from"./TIGSVX3S.js";import{b as e,c as t,d as l}from"./DRYZWCWX.js";import j from"./2FCUHT32.js";import{a as u}from"./POA2XTTK.js";import{a as E}from"./WCJEURG5.js";import i from"./XEYKRP6V.js";import h from"./AGLVYLFP.js";import{a as r,p as b}from"./O4TPXFX4.js";import f from"./TI2WEAIV.js";import c from"./6S6OEV5K.js";import a from"./5H4GHC76.js";import"./43DLRSYB.js";import"./KX7KGXKQ.js";import"./NGXRBJKL.js";import"./FQB2OTR4.js";import{A as v,B as M,C as O,D as A,E as n,F as m,H as _,g as z,i as s,n as d,z as g}from"./3WNW44CU.js";import"./64L7VJJK.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as x}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{j:p},,,,{a:L},{r:h},{a:F}])=>{function R(f){return f?.tagName.toLowerCase()==="arcgis-chart"}var Z={actionBar:"action-bar"},q=z`.action-bar{display:flex;flex-direction:column;height:100%;border-right:1px solid var(--calcite-color-border-2);width:fit-content}:host{z-index:1001}`,S=class extends M{constructor(){super(...arguments),this.calciteActionBar=g(),this.exportCalciteActionBar=g(),this.expandAction=null,this._messages=E(),this.commonStrings=E({name:"common",blocking:!0}),this.handleMouseOver=a=>{if(this.calciteActionBar.value&&!this.calciteActionBar.value?.expanded){let o=a.target;this.actionTooltip!==void 0&&(this.actionTooltip=h(this.actionTooltip));let i;o?.tagName==="CALCITE-ACTION"?i=o:(o?.tagName==="CALCITE-ACTION-MENU"||o?.tagName==="DIV")&&(i=o.firstChild),i!==void 0&&(this.actionTooltip=m(s`<calcite-tooltip style=${A({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${i} open placement=trailing-end>${i.text}</calcite-tooltip>`),document.body.appendChild(this.actionTooltip))}else this.actionTooltip=h(this.actionTooltip)},this._csvExportExclusionList=[x.ScatterSeries,x.BoxPlotSeries],this.actionTooltip=null,this.forceDisableActions=!1,this.editChartToggle=t.Inactive,this.editChartActive=!1,this.editChartState=l.Disabled,this.editChartEnabled=!1,this.legendToggle=t.Inactive,this.legendActive=!1,this.legendState=l.Enabled,this.legendDisabled=!1,this.rotateChartToggle=t.Inactive,this.rotateChartActive=!1,this.rotateChartState=l.Enabled,this.rotateChartDisabled=!1,this.filterBySelectionToggle=t.Inactive,this.filterBySelectionActive=!1,this.filterBySelectionState=l.Enabled,this.filterBySelectionDisabled=!1,this.filterByExtentToggle=t.Inactive,this.filterByViewExtentActive=!1,this.filterByExtentState=l.Enabled,this.filterByViewExtentDisabled=!1,this.actionBarSelectionMode=p.MultiSelectionWithCtrlKey,this.selectionToggle=t.Inactive,this.selectionActive=!1,this.selectionState=l.Enabled,this.selectionDisabled=!1,this.zoomToggle=t.Inactive,this.zoomActive=!1,this.zoomState=l.Enabled,this.zoomDisabled=!1,this.fullExtentToggle=t.Inactive,this.fullExtentActive=!1,this.fullExtentState=l.Enabled,this.fullExtentDisabled=!1,this.clearSelectionToggle=t.Inactive,this.clearSelectionActive=!1,this.clearSelectionState=l.Enabled,this.clearSelectionDisabled=!1,this.switchSelectionToggle=t.Inactive,this.switchSelectionActive=!1,this.switchSelectionState=l.Enabled,this.switchSelectionDisabled=!1,this.exportAsImageState=l.Enabled,this.exportAsImageDisabled=!1,this.exportAsCSVState=l.Enabled,this.exportAsCSVDisabled=!1,this.disableCSVExportForChartTypes=this._csvExportExclusionList,this.csvExportExclusionList=this._csvExportExclusionList,this.exportActionState=l.Enabled,this.exportActionDisabled=!1,this.expanded=!1,this.hiddenActions=[e.EditChart],this.arcgisActionBarToggle=d(),this.arcgisDefaultActionSelect=d()}static{this.properties={actionTooltip:16,messageOverrides:0,chartType:1,chartElement:0,forceDisableActions:5,editChartToggle:1,editChartActive:5,editChartState:1,editChartEnabled:5,editChartTitle:1,legendToggle:1,legendActive:5,legendState:1,legendDisabled:5,legendTitle:1,rotateChartToggle:1,rotateChartActive:5,rotateChartState:1,rotateChartDisabled:5,rotateChartTitle:1,filterBySelectionToggle:1,filterBySelectionActive:5,filterBySelectionState:1,filterBySelectionDisabled:5,filterBySelectionTitle:1,filterByExtentToggle:1,filterByViewExtentActive:5,filterByExtentState:1,filterByViewExtentDisabled:5,filterByExtentTitle:1,filterByViewExtentTitle:1,actionBarSelectionMode:1,selectionToggle:1,selectionActive:5,selectionState:1,selectionDisabled:5,selectionTitle:1,zoomToggle:1,zoomActive:5,zoomState:1,zoomDisabled:5,zoomTitle:1,fullExtentToggle:1,fullExtentActive:5,fullExtentState:1,fullExtentDisabled:5,fullExtentTitle:1,clearSelectionToggle:1,clearSelectionActive:5,clearSelectionState:1,clearSelectionDisabled:5,clearSelectionTitle:1,switchSelectionToggle:1,switchSelectionActive:5,switchSelectionState:1,switchSelectionDisabled:5,switchSelectionTitle:1,exportAsImageState:1,exportAsImageDisabled:5,exportAsImageTitle:1,exportAsCSVState:1,exportAsCSVDisabled:5,exportAsCSVTitle:1,disableCSVExportForChartTypes:0,csvExportExclusionList:0,exportActionState:1,exportActionDisabled:5,expanded:5,hiddenActions:0}}static{this.styles=q}load(){this.chartElement=R(this.el.parentElement)?this.el.parentElement:void 0}updated(){this.handleExpandTooltip()}disconnectedCallback(){super.disconnectedCallback(),this.actionTooltip?.remove()}async onDefaultActionClick(a){let o=a.currentTarget,i={actionId:o.id,actionActive:!1};switch(o.id){case e.EditChart:{let c=!(this.editChartToggle===t.Active||this.editChartActive);this.editChartToggle=c?t.Active:t.Inactive,this.editChartActive=c,i.actionActive=c;break}case e.Legend:{let c=!(this.legendToggle===t.Active||this.legendActive);this.legendToggle=c?t.Active:t.Inactive,this.legendActive=c,i.actionActive=c,r(this.chartElement?.model)&&b(this.chartElement?.model)&&(this.chartElement.model.legendVisibility=i.actionActive),this.chartElement?.model&&(r(this.chartElement.model)?b(this.chartElement.model)&&(this.chartElement.model.legendVisibility=i.actionActive):this.chartElement.model.rotated=this.chartElement.model.rotated!==!0);break}case e.RotateChart:{let c=!(this.rotateChartToggle===t.Active||this.rotateChartActive);this.rotateChartToggle=c?t.Active:t.Inactive,this.rotateChartActive=c,i.actionActive=c,this.chartElement?.model&&(r(this.chartElement.model)?L(this.chartElement.model)&&(this.chartElement.model.rotated=i.actionActive):this.chartElement.model.rotated=this.chartElement.model.rotated!==!0);break}case e.FilterBySelection:{let c=!(this.filterBySelectionToggle===t.Active||this.filterBySelectionActive);this.filterBySelectionToggle=c?t.Active:t.Inactive,this.filterBySelectionActive=c,i.actionActive=c,this.chartElement!==void 0&&(this.chartElement.filterBySelection=i.actionActive);break}case e.FilterByViewExtent:{let c=!(this.filterByExtentToggle===t.Active||this.filterByViewExtentActive);this.filterByExtentToggle=c?t.Active:t.Inactive,this.filterByViewExtentActive=c,i.actionActive=c,this.chartElement!==void 0&&(this.chartElement.filterByViewExtent=i.actionActive);break}case e.Selection:{this.selectionToggle=t.Active,this.selectionActive=!0,this.zoomToggle=t.Inactive,this.zoomActive=!1,i.actionActive=!0,this.chartElement!==void 0&&(this.chartElement.actionMode=this.actionBarSelectionMode);break}case e.Zoom:{this.zoomToggle=t.Active,this.zoomActive=!0,this.selectionToggle=t.Inactive,this.selectionActive=!1,i.actionActive=!0,this.chartElement!==void 0&&(this.chartElement.actionMode=p.Zoom);break}case e.ClearSelection:i.actionActive=this.clearSelectionToggle===t.Active||this.clearSelectionActive,this.chartElement?.clearSelection();break;case e.FullExtent:i.actionActive=this.fullExtentToggle===t.Active||this.fullExtentActive,this.chartElement?.resetZoom();break;case e.SwitchSelection:i.actionActive=this.switchSelectionToggle===t.Active||this.switchSelectionActive,this.chartElement?.switchSelection();break;case e.ExportAsImage:i.actionActive=!0,await this.chartElement?.exportAsImage();break;case e.ExportAsCSV:i.actionActive=!0,await this.chartElement?.exportAsCSV();break}this.arcgisDefaultActionSelect.emit(i)}handleCalciteActionBarToggle(){this.expanded=this.calciteActionBar.value?.expanded??!1,this.setCustomActionsExpanded(),this.arcgisActionBarToggle.emit(this.expanded)}handleMouseOut(){this.actionTooltip!==null&&(this.actionTooltip=h(this.actionTooltip))}handleSlotChange(a){let o=a.currentTarget.assignedElements();for(let i of o)i.onmouseover=this.handleMouseOver}setCustomActionsExpanded(){this.el.querySelectorAll("calcite-action").forEach(a=>{let o=a;o.textEnabled=this.expanded})}handleExpandTooltip(){this.expandAction===null&&(this.expandAction=this.calciteActionBar.value?.shadowRoot?.querySelector("calcite-action")??null,this.expandAction!==null&&(this.listenOn(this.expandAction,"mouseenter",()=>{!this.calciteActionBar.value?.expanded&&this.expandAction!==null&&!document.body.contains(this.actionTooltip)&&(this.actionTooltip=m(s`<calcite-tooltip style=${A({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${this.expandAction} open placement=trailing-end>${this._messages.expand??""}</calcite-tooltip>`),document.body.appendChild(this.actionTooltip))}),this.listenOn(this.expandAction,"mouseleave",()=>{!this.calciteActionBar.value?.expanded&&this.actionTooltip!==null&&(this.actionTooltip=h(this.actionTooltip))}),this.listenOn(this.expandAction,"click",()=>{this.calciteActionBar.value?.expanded&&this.actionTooltip!==null&&(this.actionTooltip=h(this.actionTooltip))})))}renderDefaultActions(){let a=F(this.chartType).filter(N=>!this.hiddenActions?.includes(N)),o=this.chartElement?.layer&&"isTable"in this.chartElement.layer?this.chartElement.layer.isTable:!1,i=a.includes(e.EditChart),c=a.includes(e.Legend),T=a.includes(e.RotateChart),$=a.includes(e.FilterBySelection),C=a.includes(e.FilterByViewExtent)&&!o,D=a.includes(e.Zoom),y=a.includes(e.Selection),B=a.includes(e.ClearSelection),w=a.includes(e.FullExtent),k=a.includes(e.SwitchSelection),I=a.includes(e.ExportAsImage),V=a.includes(e.ExportAsCSV);return[c||T?s`<calcite-action-group>${i?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.EditChart??n} icon=gear .text=${this.commonStrings?.utilsStrings.actions?.editChart??""} .textEnabled=${this.expanded} .active=${this.editChartToggle===t.Active||this.editChartActive} .disabled=${this.editChartState===l.Disabled||!this.editChartEnabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${c?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Legend??n} .text=${this.legendTitle??this._messages?.legend??""} .textEnabled=${this.expanded} .active=${this.legendToggle===t.Active||this.legendActive} .disabled=${this.legendState===l.Disabled||this.legendDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}><calcite-icon icon=legend scale=s flip-rtl></calcite-icon></calcite-action></div>`:null}${T?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.RotateChart??n} icon=rotate .text=${this.rotateChartTitle??this._messages?.rotateChart??""} .textEnabled=${this.expanded} .active=${this.rotateChartToggle===t.Active||this.rotateChartActive} .disabled=${this.rotateChartState===l.Disabled||this.rotateChartDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}</calcite-action-group>`:null,$||C?s`<calcite-action-group>${$?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FilterBySelection??n} icon=selection-filter .text=${this.filterBySelectionTitle??this._messages?.filterBySelection??""} .textEnabled=${this.expanded} .active=${this.filterBySelectionToggle===t.Active||this.filterBySelectionActive} .disabled=${this.filterBySelectionState===l.Disabled||this.filterBySelectionDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${C?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FilterByViewExtent??n} icon=extent-filter .text=${(this.filterByExtentTitle||this.filterByViewExtentTitle)??this._messages?.filterByExtent??""} .textEnabled=${this.expanded} .active=${this.filterByExtentToggle===t.Active||this.filterByViewExtentActive} .disabled=${this.filterByExtentState===l.Disabled||this.filterByViewExtentDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}</calcite-action-group>`:null,y||D||w||B||k?s`<calcite-action-group>${D?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Zoom??n} icon=magnifying-glass .text=${this.zoomTitle??this._messages?.zoom??""} .textEnabled=${this.expanded} .active=${this.zoomToggle===t.Active||this.zoomActive} .disabled=${this.zoomState===l.Disabled||this.zoomDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${y?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Selection??n} icon=cursor-selection .text=${this.selectionTitle??this._messages?.selection??""} .textEnabled=${this.expanded} .active=${this.selectionToggle===t.Active||this.selectionActive} .disabled=${this.selectionState===l.Disabled||this.selectionDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${B?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.ClearSelection??n} icon=erase .text=${this.clearSelectionTitle??this._messages?.clearSelection??""} .textEnabled=${this.expanded} .active=${this.clearSelectionToggle===t.Active||this.clearSelectionActive} .disabled=${this.clearSelectionState===l.Disabled||this.clearSelectionDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${w?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FullExtent??n} icon=zoom-out-fixed .text=${this.fullExtentTitle??this._messages?.fullExtent??""} .textEnabled=${this.expanded} .active=${this.fullExtentToggle===t.Active||this.fullExtentActive} .disabled=${this.fullExtentState===l.Disabled||this.fullExtentDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${k?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.SwitchSelection??n} icon=arrow-right-left .text=${this.switchSelectionTitle??this._messages?.switchSelection??""} .textEnabled=${this.expanded} .active=${this.switchSelectionToggle===t.Active||this.switchSelectionActive} .disabled=${this.switchSelectionState===l.Disabled||this.switchSelectionDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}</calcite-action-group>`:null,I||V?s`<calcite-action-menu .label=${this._messages?.export??""} ${v(this.exportCalciteActionBar)}><calcite-action id=export icon=export .text=${this._messages?.export??""} .textEnabled=${this.expanded} .disabled=${this.exportActionState===l.Disabled||this.exportActionDisabled||this.forceDisableActions} @mouseover=${this.handleMouseOver} slot=trigger></calcite-action>${I?s`<div><calcite-action id=${e.ExportAsImage??n} icon=graph-bar .text=${this.exportAsImageTitle??this._messages?.exportAsImage??""} .disabled=${this.exportAsImageState===l.Disabled||this.exportAsImageDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick} text-enabled></calcite-action></div>`:null}${V?s`<div><calcite-action id=${e.ExportAsCSV??n} icon=table .text=${this.exportAsCSVTitle??this._messages?.exportAsTable??""} .disabled=${this.exportAsCSVState===l.Disabled||this.exportAsCSVDisabled||this.forceDisableActions||this.chartType&&(this.disableCSVExportForChartTypes.includes(this.chartType)||this.csvExportExclusionList.includes(this.chartType))} @click=${this.onDefaultActionClick} text-enabled></calcite-action></div>`:null}</calcite-action-menu>`:null]}render(){return s`<calcite-action-bar class=${O(Z.actionBar)} @calciteActionBarToggle=${this.handleCalciteActionBarToggle} @mouseout=${this.handleMouseOut} .expanded=${this.expanded} .messageOverrides=${{expand:this._messages.expand,collapse:this._messages.collapse}} overflow-actions-disabled ${v(this.calciteActionBar)}><slot name=${u.customActionTop} @slotchange=${this.handleSlotChange}></slot>${this.renderDefaultActions()}<slot name=${u.customActionBelow} @slotchange=${this.handleSlotChange}></slot></calcite-action-bar>`}};_("arcgis-charts-action-bar",S);return S},a,c,f,h,i,j,k)
2
+ import k from"./JV4NMPZ4.js";import{b as e,c as t,d as l}from"./DRYZWCWX.js";import j from"./UA55OQF3.js";import{a as u}from"./POA2XTTK.js";import{a as E}from"./JUBE7XD2.js";import i from"./XK5OMNAS.js";import h from"./H6ZF2I7S.js";import{a as r,p as b}from"./O4TPXFX4.js";import f from"./TG7JNJCB.js";import c from"./6RGFJYNO.js";import a from"./GXNMIY2V.js";import"./43DLRSYB.js";import"./KX7KGXKQ.js";import"./NGXRBJKL.js";import"./OWLTOYDG.js";import{A as v,B as M,C as O,D as A,E as n,F as m,H as _,g as z,i as s,n as d,z as g}from"./4QJLNQVP.js";import"./64L7VJJK.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as x}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{j:p},,,,{a:L},{r:h},{a:F}])=>{function R(f){return f?.tagName.toLowerCase()==="arcgis-chart"}var Z={actionBar:"action-bar"},q=z`.action-bar{display:flex;flex-direction:column;height:100%;border-right:1px solid var(--calcite-color-border-2);width:fit-content}:host{z-index:1001}`,S=class extends M{constructor(){super(...arguments),this.calciteActionBar=g(),this.exportCalciteActionBar=g(),this.expandAction=null,this._messages=E(),this.commonStrings=E({name:"common",blocking:!0}),this.handleMouseOver=a=>{if(this.calciteActionBar.value&&!this.calciteActionBar.value?.expanded){let o=a.target;this.actionTooltip!==void 0&&(this.actionTooltip=h(this.actionTooltip));let i;o?.tagName==="CALCITE-ACTION"?i=o:(o?.tagName==="CALCITE-ACTION-MENU"||o?.tagName==="DIV")&&(i=o.firstChild),i!==void 0&&(this.actionTooltip=m(s`<calcite-tooltip style=${A({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${i} open placement=trailing-end>${i.text}</calcite-tooltip>`),document.body.appendChild(this.actionTooltip))}else this.actionTooltip=h(this.actionTooltip)},this._csvExportExclusionList=[x.ScatterSeries,x.BoxPlotSeries],this.actionTooltip=null,this.forceDisableActions=!1,this.editChartToggle=t.Inactive,this.editChartActive=!1,this.editChartState=l.Disabled,this.editChartEnabled=!1,this.legendToggle=t.Inactive,this.legendActive=!1,this.legendState=l.Enabled,this.legendDisabled=!1,this.rotateChartToggle=t.Inactive,this.rotateChartActive=!1,this.rotateChartState=l.Enabled,this.rotateChartDisabled=!1,this.filterBySelectionToggle=t.Inactive,this.filterBySelectionActive=!1,this.filterBySelectionState=l.Enabled,this.filterBySelectionDisabled=!1,this.filterByExtentToggle=t.Inactive,this.filterByViewExtentActive=!1,this.filterByExtentState=l.Enabled,this.filterByViewExtentDisabled=!1,this.actionBarSelectionMode=p.MultiSelectionWithCtrlKey,this.selectionToggle=t.Inactive,this.selectionActive=!1,this.selectionState=l.Enabled,this.selectionDisabled=!1,this.zoomToggle=t.Inactive,this.zoomActive=!1,this.zoomState=l.Enabled,this.zoomDisabled=!1,this.fullExtentToggle=t.Inactive,this.fullExtentActive=!1,this.fullExtentState=l.Enabled,this.fullExtentDisabled=!1,this.clearSelectionToggle=t.Inactive,this.clearSelectionActive=!1,this.clearSelectionState=l.Enabled,this.clearSelectionDisabled=!1,this.switchSelectionToggle=t.Inactive,this.switchSelectionActive=!1,this.switchSelectionState=l.Enabled,this.switchSelectionDisabled=!1,this.exportAsImageState=l.Enabled,this.exportAsImageDisabled=!1,this.exportAsCSVState=l.Enabled,this.exportAsCSVDisabled=!1,this.disableCSVExportForChartTypes=this._csvExportExclusionList,this.csvExportExclusionList=this._csvExportExclusionList,this.exportActionState=l.Enabled,this.exportActionDisabled=!1,this.expanded=!1,this.hiddenActions=[e.EditChart],this.arcgisActionBarToggle=d(),this.arcgisDefaultActionSelect=d()}static{this.properties={actionTooltip:16,messageOverrides:0,chartType:1,chartElement:0,forceDisableActions:5,editChartToggle:1,editChartActive:5,editChartState:1,editChartEnabled:5,editChartTitle:1,legendToggle:1,legendActive:5,legendState:1,legendDisabled:5,legendTitle:1,rotateChartToggle:1,rotateChartActive:5,rotateChartState:1,rotateChartDisabled:5,rotateChartTitle:1,filterBySelectionToggle:1,filterBySelectionActive:5,filterBySelectionState:1,filterBySelectionDisabled:5,filterBySelectionTitle:1,filterByExtentToggle:1,filterByViewExtentActive:5,filterByExtentState:1,filterByViewExtentDisabled:5,filterByExtentTitle:1,filterByViewExtentTitle:1,actionBarSelectionMode:1,selectionToggle:1,selectionActive:5,selectionState:1,selectionDisabled:5,selectionTitle:1,zoomToggle:1,zoomActive:5,zoomState:1,zoomDisabled:5,zoomTitle:1,fullExtentToggle:1,fullExtentActive:5,fullExtentState:1,fullExtentDisabled:5,fullExtentTitle:1,clearSelectionToggle:1,clearSelectionActive:5,clearSelectionState:1,clearSelectionDisabled:5,clearSelectionTitle:1,switchSelectionToggle:1,switchSelectionActive:5,switchSelectionState:1,switchSelectionDisabled:5,switchSelectionTitle:1,exportAsImageState:1,exportAsImageDisabled:5,exportAsImageTitle:1,exportAsCSVState:1,exportAsCSVDisabled:5,exportAsCSVTitle:1,disableCSVExportForChartTypes:0,csvExportExclusionList:0,exportActionState:1,exportActionDisabled:5,expanded:5,hiddenActions:0}}static{this.styles=q}load(){this.chartElement=R(this.el.parentElement)?this.el.parentElement:void 0}updated(){this.handleExpandTooltip()}disconnectedCallback(){super.disconnectedCallback(),this.actionTooltip?.remove()}async onDefaultActionClick(a){let o=a.currentTarget,i={actionId:o.id,actionActive:!1};switch(o.id){case e.EditChart:{let c=!(this.editChartToggle===t.Active||this.editChartActive);this.editChartToggle=c?t.Active:t.Inactive,this.editChartActive=c,i.actionActive=c;break}case e.Legend:{let c=!(this.legendToggle===t.Active||this.legendActive);this.legendToggle=c?t.Active:t.Inactive,this.legendActive=c,i.actionActive=c,r(this.chartElement?.model)&&b(this.chartElement?.model)&&(this.chartElement.model.legendVisibility=i.actionActive),this.chartElement?.model&&(r(this.chartElement.model)?b(this.chartElement.model)&&(this.chartElement.model.legendVisibility=i.actionActive):this.chartElement.model.rotated=this.chartElement.model.rotated!==!0);break}case e.RotateChart:{let c=!(this.rotateChartToggle===t.Active||this.rotateChartActive);this.rotateChartToggle=c?t.Active:t.Inactive,this.rotateChartActive=c,i.actionActive=c,this.chartElement?.model&&(r(this.chartElement.model)?L(this.chartElement.model)&&(this.chartElement.model.rotated=i.actionActive):this.chartElement.model.rotated=this.chartElement.model.rotated!==!0);break}case e.FilterBySelection:{let c=!(this.filterBySelectionToggle===t.Active||this.filterBySelectionActive);this.filterBySelectionToggle=c?t.Active:t.Inactive,this.filterBySelectionActive=c,i.actionActive=c,this.chartElement!==void 0&&(this.chartElement.filterBySelection=i.actionActive);break}case e.FilterByViewExtent:{let c=!(this.filterByExtentToggle===t.Active||this.filterByViewExtentActive);this.filterByExtentToggle=c?t.Active:t.Inactive,this.filterByViewExtentActive=c,i.actionActive=c,this.chartElement!==void 0&&(this.chartElement.filterByViewExtent=i.actionActive);break}case e.Selection:{this.selectionToggle=t.Active,this.selectionActive=!0,this.zoomToggle=t.Inactive,this.zoomActive=!1,i.actionActive=!0,this.chartElement!==void 0&&(this.chartElement.actionMode=this.actionBarSelectionMode);break}case e.Zoom:{this.zoomToggle=t.Active,this.zoomActive=!0,this.selectionToggle=t.Inactive,this.selectionActive=!1,i.actionActive=!0,this.chartElement!==void 0&&(this.chartElement.actionMode=p.Zoom);break}case e.ClearSelection:i.actionActive=this.clearSelectionToggle===t.Active||this.clearSelectionActive,this.chartElement?.clearSelection();break;case e.FullExtent:i.actionActive=this.fullExtentToggle===t.Active||this.fullExtentActive,this.chartElement?.resetZoom();break;case e.SwitchSelection:i.actionActive=this.switchSelectionToggle===t.Active||this.switchSelectionActive,this.chartElement?.switchSelection();break;case e.ExportAsImage:i.actionActive=!0,await this.chartElement?.exportAsImage();break;case e.ExportAsCSV:i.actionActive=!0,await this.chartElement?.exportAsCSV();break}this.arcgisDefaultActionSelect.emit(i)}handleCalciteActionBarToggle(){this.expanded=this.calciteActionBar.value?.expanded??!1,this.setCustomActionsExpanded(),this.arcgisActionBarToggle.emit(this.expanded)}handleMouseOut(){this.actionTooltip!==null&&(this.actionTooltip=h(this.actionTooltip))}handleSlotChange(a){let o=a.currentTarget.assignedElements();for(let i of o)i.onmouseover=this.handleMouseOver}setCustomActionsExpanded(){this.el.querySelectorAll("calcite-action").forEach(a=>{let o=a;o.textEnabled=this.expanded})}handleExpandTooltip(){this.expandAction===null&&(this.expandAction=this.calciteActionBar.value?.shadowRoot?.querySelector("calcite-action")??null,this.expandAction!==null&&(this.listenOn(this.expandAction,"mouseenter",()=>{!this.calciteActionBar.value?.expanded&&this.expandAction!==null&&!document.body.contains(this.actionTooltip)&&(this.actionTooltip=m(s`<calcite-tooltip style=${A({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${this.expandAction} open placement=trailing-end>${this._messages.expand??""}</calcite-tooltip>`),document.body.appendChild(this.actionTooltip))}),this.listenOn(this.expandAction,"mouseleave",()=>{!this.calciteActionBar.value?.expanded&&this.actionTooltip!==null&&(this.actionTooltip=h(this.actionTooltip))}),this.listenOn(this.expandAction,"click",()=>{this.calciteActionBar.value?.expanded&&this.actionTooltip!==null&&(this.actionTooltip=h(this.actionTooltip))})))}renderDefaultActions(){let a=F(this.chartType).filter(N=>!this.hiddenActions?.includes(N)),o=this.chartElement?.layer&&"isTable"in this.chartElement.layer?this.chartElement.layer.isTable:!1,i=a.includes(e.EditChart),c=a.includes(e.Legend),T=a.includes(e.RotateChart),$=a.includes(e.FilterBySelection),C=a.includes(e.FilterByViewExtent)&&!o,D=a.includes(e.Zoom),y=a.includes(e.Selection),B=a.includes(e.ClearSelection),w=a.includes(e.FullExtent),k=a.includes(e.SwitchSelection),I=a.includes(e.ExportAsImage),V=a.includes(e.ExportAsCSV);return[c||T?s`<calcite-action-group>${i?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.EditChart??n} icon=gear .text=${this.commonStrings?.utilsStrings.actions?.editChart??""} .textEnabled=${this.expanded} .active=${this.editChartToggle===t.Active||this.editChartActive} .disabled=${this.editChartState===l.Disabled||!this.editChartEnabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${c?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Legend??n} .text=${this.legendTitle??this._messages?.legend??""} .textEnabled=${this.expanded} .active=${this.legendToggle===t.Active||this.legendActive} .disabled=${this.legendState===l.Disabled||this.legendDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}><calcite-icon icon=legend scale=s flip-rtl></calcite-icon></calcite-action></div>`:null}${T?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.RotateChart??n} icon=rotate .text=${this.rotateChartTitle??this._messages?.rotateChart??""} .textEnabled=${this.expanded} .active=${this.rotateChartToggle===t.Active||this.rotateChartActive} .disabled=${this.rotateChartState===l.Disabled||this.rotateChartDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}</calcite-action-group>`:null,$||C?s`<calcite-action-group>${$?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FilterBySelection??n} icon=selection-filter .text=${this.filterBySelectionTitle??this._messages?.filterBySelection??""} .textEnabled=${this.expanded} .active=${this.filterBySelectionToggle===t.Active||this.filterBySelectionActive} .disabled=${this.filterBySelectionState===l.Disabled||this.filterBySelectionDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${C?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FilterByViewExtent??n} icon=extent-filter .text=${(this.filterByExtentTitle||this.filterByViewExtentTitle)??this._messages?.filterByExtent??""} .textEnabled=${this.expanded} .active=${this.filterByExtentToggle===t.Active||this.filterByViewExtentActive} .disabled=${this.filterByExtentState===l.Disabled||this.filterByViewExtentDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}</calcite-action-group>`:null,y||D||w||B||k?s`<calcite-action-group>${D?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Zoom??n} icon=magnifying-glass .text=${this.zoomTitle??this._messages?.zoom??""} .textEnabled=${this.expanded} .active=${this.zoomToggle===t.Active||this.zoomActive} .disabled=${this.zoomState===l.Disabled||this.zoomDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${y?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.Selection??n} icon=cursor-selection .text=${this.selectionTitle??this._messages?.selection??""} .textEnabled=${this.expanded} .active=${this.selectionToggle===t.Active||this.selectionActive} .disabled=${this.selectionState===l.Disabled||this.selectionDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${B?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.ClearSelection??n} icon=erase .text=${this.clearSelectionTitle??this._messages?.clearSelection??""} .textEnabled=${this.expanded} .active=${this.clearSelectionToggle===t.Active||this.clearSelectionActive} .disabled=${this.clearSelectionState===l.Disabled||this.clearSelectionDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${w?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.FullExtent??n} icon=zoom-out-fixed .text=${this.fullExtentTitle??this._messages?.fullExtent??""} .textEnabled=${this.expanded} .active=${this.fullExtentToggle===t.Active||this.fullExtentActive} .disabled=${this.fullExtentState===l.Disabled||this.fullExtentDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}${k?s`<div @mouseover=${this.handleMouseOver}><calcite-action id=${e.SwitchSelection??n} icon=arrow-right-left .text=${this.switchSelectionTitle??this._messages?.switchSelection??""} .textEnabled=${this.expanded} .active=${this.switchSelectionToggle===t.Active||this.switchSelectionActive} .disabled=${this.switchSelectionState===l.Disabled||this.switchSelectionDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick}></calcite-action></div>`:null}</calcite-action-group>`:null,I||V?s`<calcite-action-menu .label=${this._messages?.export??""} ${v(this.exportCalciteActionBar)}><calcite-action id=export icon=export .text=${this._messages?.export??""} .textEnabled=${this.expanded} .disabled=${this.exportActionState===l.Disabled||this.exportActionDisabled||this.forceDisableActions} @mouseover=${this.handleMouseOver} slot=trigger></calcite-action>${I?s`<div><calcite-action id=${e.ExportAsImage??n} icon=graph-bar .text=${this.exportAsImageTitle??this._messages?.exportAsImage??""} .disabled=${this.exportAsImageState===l.Disabled||this.exportAsImageDisabled||this.forceDisableActions} @click=${this.onDefaultActionClick} text-enabled></calcite-action></div>`:null}${V?s`<div><calcite-action id=${e.ExportAsCSV??n} icon=table .text=${this.exportAsCSVTitle??this._messages?.exportAsTable??""} .disabled=${this.exportAsCSVState===l.Disabled||this.exportAsCSVDisabled||this.forceDisableActions||this.chartType&&(this.disableCSVExportForChartTypes.includes(this.chartType)||this.csvExportExclusionList.includes(this.chartType))} @click=${this.onDefaultActionClick} text-enabled></calcite-action></div>`:null}</calcite-action-menu>`:null]}render(){return s`<calcite-action-bar class=${O(Z.actionBar)} @calciteActionBarToggle=${this.handleCalciteActionBarToggle} @mouseout=${this.handleMouseOut} .expanded=${this.expanded} .messageOverrides=${{expand:this._messages.expand,collapse:this._messages.collapse}} overflow-actions-disabled ${v(this.calciteActionBar)}><slot name=${u.customActionTop} @slotchange=${this.handleSlotChange}></slot>${this.renderDefaultActions()}<slot name=${u.customActionBelow} @slotchange=${this.handleSlotChange}></slot></calcite-action-bar>`}};_("arcgis-charts-action-bar",S);return S},a,c,f,h,i,j,k)