@arcgis/charts-components 5.2.0-next.93 → 5.2.0-next.95

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 (156) hide show
  1. package/dist/cdn/{H2NVXIPH.js → 225VUGML.js} +3 -3
  2. package/dist/cdn/{GUMN6KPP.js → 2CFI7BGP.js} +1 -1
  3. package/dist/cdn/{BZEYWH2F.js → 2R6MQ752.js} +1 -1
  4. package/dist/cdn/{KAUOH4F3.js → 3GJ64ZJ4.js} +1 -1
  5. package/dist/cdn/{DOE5S7EP.js → 3NLKE6ZN.js} +1 -1
  6. package/dist/cdn/{IIV6X3KV.js → 42FKRE56.js} +1 -1
  7. package/dist/cdn/{QVLDIB2N.js → 455LSMAU.js} +1 -1
  8. package/dist/cdn/{WTABMFFY.js → 4A4EW5Z5.js} +1 -1
  9. package/dist/cdn/{SJBJ2N5C.js → 4DR6JUR7.js} +2 -2
  10. package/dist/cdn/{VCBFPEET.js → 4LJRIJWD.js} +1 -1
  11. package/dist/cdn/{4JMHK7HK.js → 4U63XRSZ.js} +1 -1
  12. package/dist/cdn/{LU7UO6PR.js → 52GJ6UGS.js} +1 -1
  13. package/dist/cdn/{73DFT5MR.js → 56CLURJA.js} +1 -1
  14. package/dist/cdn/{54LUEUIT.js → 5GDVKAX5.js} +1 -1
  15. package/dist/cdn/{JXAPOWHG.js → 5SKJYBPO.js} +1 -1
  16. package/dist/cdn/{UZHQF5CV.js → 5SYHQWPP.js} +1 -1
  17. package/dist/cdn/{MF2ZBHWI.js → 63AHC52W.js} +1 -1
  18. package/dist/cdn/{QIBUTVUN.js → 6H6SZO4Y.js} +1 -1
  19. package/dist/cdn/{OQQIDPDH.js → 6VIPQGM6.js} +1 -1
  20. package/dist/cdn/{D7LBGWWL.js → 7LA6R3JD.js} +1 -1
  21. package/dist/cdn/{SBJGOYJL.js → 7TM4LYGN.js} +1 -1
  22. package/dist/cdn/{ELNZ7PTF.js → AIQU35U3.js} +1 -1
  23. package/dist/cdn/{4A42J7HF.js → AMTIT4IA.js} +1 -1
  24. package/dist/cdn/{KJAMXKR3.js → AOVXHBJK.js} +1 -1
  25. package/dist/cdn/{KQUI4CT6.js → AYCQHDDV.js} +1 -1
  26. package/dist/cdn/{3K7H52Y5.js → AZYYQMCD.js} +1 -1
  27. package/dist/cdn/{44ICH2UX.js → BB3YY4S4.js} +1 -1
  28. package/dist/cdn/{XW5I2M45.js → BDASIXVJ.js} +1 -1
  29. package/dist/cdn/{6K6Z6CQE.js → BWLRC2U5.js} +1 -1
  30. package/dist/cdn/{5YBMIR4F.js → C3ZVHFEH.js} +1 -1
  31. package/dist/cdn/{KHWZ54IX.js → CC7DZFC6.js} +1 -1
  32. package/dist/cdn/{CKRZTUGB.js → CDRZ4CST.js} +1 -1
  33. package/dist/cdn/{4JWNKQ22.js → CHBL4DXX.js} +1 -1
  34. package/dist/cdn/{H4R2P2BO.js → D3VGNOMT.js} +1 -1
  35. package/dist/cdn/{4VW736DF.js → D5DOFLCS.js} +1 -1
  36. package/dist/cdn/{3HG6OEAW.js → E6E2KLJ2.js} +1 -1
  37. package/dist/cdn/{XYJJ2PIL.js → E6JK3JRJ.js} +1 -1
  38. package/dist/cdn/{KHC2DMSU.js → EB4CM3YK.js} +1 -1
  39. package/dist/cdn/{NYR4K242.js → EVTLSZ5O.js} +1 -1
  40. package/dist/cdn/{7HANUCEA.js → EWIMT2AS.js} +1 -1
  41. package/dist/cdn/{IGE2Z7GO.js → FBS4RBSA.js} +1 -1
  42. package/dist/cdn/{ZO4GRLG6.js → FCADGQJJ.js} +1 -1
  43. package/dist/cdn/{GUWBPR2H.js → GJ2CW5F2.js} +1 -1
  44. package/dist/cdn/{YQL5A2WS.js → GKIYT47O.js} +1 -1
  45. package/dist/cdn/{MTFWTSTG.js → GVJ5WCQD.js} +1 -1
  46. package/dist/cdn/{YOUTTWJN.js → GXYKOTY7.js} +1 -1
  47. package/dist/cdn/{4O4L6CM3.js → H62OOC74.js} +1 -1
  48. package/dist/cdn/{GK6IJBRW.js → HC33KORY.js} +1 -1
  49. package/dist/cdn/{65HVRSR6.js → HF4BJOBP.js} +1 -1
  50. package/dist/cdn/{EFXNPF4V.js → HKNSFOTD.js} +1 -1
  51. package/dist/cdn/{HZEGDF6W.js → HN3ITVY4.js} +1 -1
  52. package/dist/cdn/{OPMACXLA.js → HPPHOWG7.js} +1 -1
  53. package/dist/cdn/{2B4DKL3R.js → IBMPLHXH.js} +1 -1
  54. package/dist/cdn/{HSIYQNVK.js → IGOJGDYE.js} +1 -1
  55. package/dist/cdn/{ZFHU5I2O.js → IJVOYQLH.js} +1 -1
  56. package/dist/cdn/{DLCJMSYG.js → JM6L3BZH.js} +1 -1
  57. package/dist/cdn/{COSE26XR.js → JMEPJL72.js} +1 -1
  58. package/dist/cdn/{RCAJJ24P.js → JSVAA6N4.js} +1 -1
  59. package/dist/cdn/{QBBUOEKF.js → KERMLQR2.js} +1 -1
  60. package/dist/cdn/{4QQRIMTI.js → KYESCAI2.js} +1 -1
  61. package/dist/cdn/{SBZKGQBV.js → KYOCE6FA.js} +1 -1
  62. package/dist/cdn/{HIVJRWLF.js → LZ7SW2R3.js} +1 -1
  63. package/dist/cdn/{SOR4DYKA.js → MQI4ZLAS.js} +1 -1
  64. package/dist/cdn/{RAJO727X.js → O4DFT4N4.js} +1 -1
  65. package/dist/cdn/{57PMXO2G.js → OKKEWHMB.js} +1 -1
  66. package/dist/cdn/{ULF3LG3W.js → OKZKKKY6.js} +1 -1
  67. package/dist/cdn/{JSPNXGH3.js → OURE3TA5.js} +1 -1
  68. package/dist/cdn/{LZ3ZRY2F.js → OVRV43B7.js} +1 -1
  69. package/dist/cdn/{KVWM73YN.js → PT2OG4W2.js} +1 -1
  70. package/dist/cdn/{SZNZAD56.js → QKUFLZC3.js} +1 -1
  71. package/dist/cdn/QO2RH3XB.js +3 -0
  72. package/dist/cdn/{62EUOXR7.js → QWVW4ZUT.js} +24 -24
  73. package/dist/cdn/{LKC6J4IQ.js → RD7TKIQS.js} +1 -1
  74. package/dist/cdn/{KZ4SCRQT.js → RNGQEQRO.js} +1 -1
  75. package/dist/cdn/{KPEBWOLJ.js → RQCFIEGS.js} +1 -1
  76. package/dist/cdn/{D5O2M65G.js → S6RBDFHP.js} +1 -1
  77. package/dist/cdn/{LJJPOUVA.js → SIHW3QVG.js} +1 -1
  78. package/dist/cdn/{NGGJIQHT.js → SS7GYFUD.js} +1 -1
  79. package/dist/cdn/{GVJF3VFV.js → SZSTCHLY.js} +1 -1
  80. package/dist/cdn/{BHJHX65O.js → SZYIWW3C.js} +1 -1
  81. package/dist/cdn/{N4XXKTCN.js → TJJ4LMYG.js} +1 -1
  82. package/dist/cdn/{LCJVASMQ.js → UCHQXTEC.js} +1 -1
  83. package/dist/cdn/{F66W272X.js → ULQSD4KK.js} +1 -1
  84. package/dist/cdn/UVESG7TY.js +2 -0
  85. package/dist/cdn/{SMTDJE55.js → VJNOQYPI.js} +1 -1
  86. package/dist/cdn/{F6VXAPTT.js → VMHDTE3U.js} +1 -1
  87. package/dist/cdn/{YX7WAUQZ.js → VWUW3HFU.js} +1 -1
  88. package/dist/cdn/{KYCNUCTQ.js → WOVEUX6R.js} +1 -1
  89. package/dist/cdn/{QFXCVZYG.js → WTMEWLUJ.js} +1 -1
  90. package/dist/cdn/{OCT2KA4Q.js → WTOK3YQI.js} +1 -1
  91. package/dist/cdn/{VVOQ4Q2X.js → WVOXFKFO.js} +1 -1
  92. package/dist/cdn/{CPDE3ZSY.js → XQ7JB6AU.js} +1 -1
  93. package/dist/cdn/{VBDLVCPP.js → YFMHKHFE.js} +1 -1
  94. package/dist/cdn/{BZIGQJAH.js → YGPTQ6U2.js} +1 -1
  95. package/dist/cdn/{L6IM34J7.js → YHC6WRNQ.js} +1 -1
  96. package/dist/cdn/{SQHEWY2J.js → ZDKUHFRX.js} +1 -1
  97. package/dist/cdn/{WPLJ5BXE.js → ZLARROJV.js} +1 -1
  98. package/dist/cdn/index.js +1 -1
  99. package/dist/cdn/model/shared/setup-utils.js +1 -1
  100. package/dist/chart-rendering/common/interfaces.d.ts +59 -47
  101. package/dist/chunks/axis-lines-symbol.js +1 -1
  102. package/dist/chunks/chart-model.js +1 -1
  103. package/dist/chunks/data-labels-symbol.js +1 -1
  104. package/dist/chunks/data-labels-visibility.js +1 -1
  105. package/dist/chunks/data.js +3 -3
  106. package/dist/chunks/gauge-model.js +1 -1
  107. package/dist/chunks/index.js +1208 -1256
  108. package/dist/chunks/index2.js +1 -1
  109. package/dist/chunks/index3.js +8 -8
  110. package/dist/chunks/index4.js +4 -4
  111. package/dist/chunks/model-setter.js +1 -1
  112. package/dist/chunks/pie-chart-data.js +1 -1
  113. package/dist/chunks/serial-chart-data.js +50 -50
  114. package/dist/chunks/series-length.js +1 -1
  115. package/dist/chunks/utils.js +2 -2
  116. package/dist/chunks/utils2.js +1 -1
  117. package/dist/chunks/web-component-utils.js +1 -1
  118. package/dist/chunks/x-bounds.js +1 -1
  119. package/dist/components/arcgis-chart/customElement.d.ts +156 -22
  120. package/dist/components/arcgis-chart/customElement.js +5544 -5580
  121. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
  122. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +1 -1
  123. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +11 -11
  124. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +1 -1
  125. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +1 -1
  126. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
  127. package/dist/components/arcgis-charts-config-create-flow/customElement.js +1 -1
  128. package/dist/components/arcgis-charts-config-guide/customElement.js +7 -7
  129. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +1 -1
  130. package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
  131. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +1 -1
  132. package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
  133. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +1 -1
  134. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
  135. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +23 -23
  136. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +1 -1
  137. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +1 -1
  138. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
  139. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
  140. package/dist/docs/api.json +1 -1
  141. package/dist/docs/docs.json +1 -1
  142. package/dist/docs/vscode.html-custom-data.json +1 -1
  143. package/dist/docs/web-types.json +1 -1
  144. package/dist/index.js +366 -364
  145. package/dist/loader.js +1 -1
  146. package/dist/spec/chart-object-literals.d.ts +3 -3
  147. package/dist/types/lumina.d.ts +1 -1
  148. package/dist/types/preact.d.ts +1 -1
  149. package/dist/types/react.d.ts +1 -1
  150. package/dist/types/stencil.d.ts +1 -1
  151. package/dist/utils/chart-config/converter/index.js +2 -2
  152. package/dist/utils/chart-config/utils/index.d.ts +1 -2
  153. package/dist/utils/data/categorical-data/index.d.ts +17 -1
  154. package/package.json +4 -4
  155. package/dist/cdn/CDWFPVYG.js +0 -2
  156. package/dist/cdn/IHDWXIBS.js +0 -3
package/dist/loader.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import { r as e } from "./chunks/runtime.js";
3
3
  import { makeDefineCustomElements as t } from "@arcgis/lumina";
4
4
  const r = t(e, {
5
- "arcgis-chart": [() => import("./components/arcgis-chart/customElement.js"), "_commonStrings:,_messages:,actionMode,allowUsingObjectIdStat,animationEnabled,aria:,autoDestroyDisabled,autoDisposeChart,autoInverseDataLabelTextColor,calciteThemingCSSVariables:,chartIndex,chartLimits:,chartWillRender:,configurationEnabled,cursorRange,dataLabelFormatter:,disableInteractions,disableTogglingLegendItems,enableBetaFeatures,enableConfiguration,enableResponsiveFeatures,errorPolicy,featureIndex,filterByExtent,filterBySelection,filterByViewExtent,gaugeInnerLabelFormatter:,guideTooltipFormatter:,hideEmptySeries,hideLicenseWatermark,hideLoaderAnimation,hideUIMessages,hideZeroCountCategories,ignoreSmoothRenderingLimit,ignoreViewExtent,interactionsDisabled,layer:,layerFieldsChangePolicy,layerFilterChangePolicy,layerItemId,layerRendererChangePolicy,legendPosition,legendValueLabelFormatter:,legendVisibility,loaderColors:,messageOverrides:,model:,nullAsValid,placeholder,popupTemplateFieldInfosEnabled,queueChartCreation,replaceNoValueCategoryWithZero,returnFeaturesExtent,returnSelectionIndexes,returnSelectionOIDs,rotated,rotation,runtimeDataFilters:,secondaryYAxisLabelFormatter:,selectionData:,selectionManager:,selectionTheme:,setTimeBinningInfoWhenNotProvided,showEmptySeries,showLicenseWatermark,showUIMessages,skipChartCreationQueue,syncChartsSelection,syncSelection,syncSelectionsBetweenChartAndLayerViewPolicy,syncViewSelection,syncViewTimeExtent,syncViewTimeZone,syncViewTimeZoneInclusionList:,timeZone,togglingLegendItemsDisabled,tooltipFormatter:,updateSplitBySeries:,useAnimatedCharts,usePopupTemplateFieldsInfo,view:,viewTimeExtentChangePolicy,xAxisLabelFormatter:,yAxisLabelFormatter:,zeroCountAsValid;clearSelection,destroy,errorAlert,exportAsCSV,exportAsImage,loadModel,notify,refresh,resetZoom,switchSelection;applySelectionFromSelectionManager"],
5
+ "arcgis-chart": [() => import("./components/arcgis-chart/customElement.js"), "_commonStrings:,_messages:,actionMode,allowUsingObjectIdStat,animationEnabled,aria:,autoDestroyDisabled,autoDisposeChart,autoInverseDataLabelTextColor,calciteThemingCSSVariables:,chartIndex,chartLimits:,chartWillRender:,configurationEnabled,cursorRange,dataLabelFormatter:,disableInteractions,disableTogglingLegendItems,enableBetaFeatures,enableConfiguration,enableResponsiveFeatures,errorPolicy,featureIndex,filterByExtent,filterBySelection,filterByViewExtent,gaugeInnerLabelFormatter:,guideTooltipFormatter:,hideEmptySeries,hideLicenseWatermark,hideLoaderAnimation,hideUIMessages,hideZeroCountCategories,ignoreSmoothRenderingLimit,ignoreViewExtent,interactionsDisabled,layer:,layerFieldsChangePolicy,layerFilterChangePolicy,layerItemId,layerRendererChangePolicy,legendInteractionsDisabled,legendPosition,legendValueLabelFormatter:,legendVisibility,loaderColors:,messageOverrides:,model:,nullAsValid,placeholder,popupTemplateFieldInfosEnabled,queueChartCreation,replaceNoValueCategoryWithZero,returnFeaturesExtent,returnSelectionIndexes,returnSelectionOIDs,rotated,rotation,runtimeDataFilters:,secondaryYAxisLabelFormatter:,selectionData:,selectionManager:,selectionTheme:,setTimeBinningInfoWhenNotProvided,showEmptySeries,showLicenseWatermark,showUIMessages,skipChartCreationQueue,syncChartsSelection,syncSelection,syncSelectionsBetweenChartAndLayerViewPolicy,syncViewSelection,syncViewTimeExtent,syncViewTimeZone,syncViewTimeZoneInclusionList:,timeZone,togglingLegendItemsDisabled,tooltipFormatter:,updateSplitBySeries:,useAnimatedCharts,usePopupTemplateFieldsInfo,view:,viewTimeExtentChangePolicy,xAxisLabelFormatter:,yAxisLabelFormatter:,zeroCountAsValid;clearSelection,destroy,errorAlert,exportAsCSV,exportAsImage,loadModel,notify,refresh,resetZoom,switchSelection;applySelectionFromSelectionManager"],
6
6
  "arcgis-charts-action-bar": [() => import("./components/arcgis-charts-action-bar/customElement.js"), "_messages:,actionBarSelectionMode,chartElement:,chartType,clearSelectionState,clearSelectionTitle,clearSelectionToggle,commonStrings:,csvExportExclusionList:,disableCSVExportForChartTypes:,editChartState,editChartTitle,editChartToggle,expanded,exportActionState,exportAsCSVState,exportAsCSVTitle,exportAsImageState,exportAsImageTitle,filterByExtentState,filterByExtentTitle,filterByExtentToggle,filterBySelectionState,filterBySelectionTitle,filterBySelectionToggle,forceDisableActions,fullExtentState,fullExtentTitle,fullExtentToggle,hiddenActions:,legendState,legendTitle,legendToggle,messageOverrides:,rotateChartState,rotateChartTitle,rotateChartToggle,selectionState,selectionTitle,selectionToggle,switchSelectionState,switchSelectionTitle,switchSelectionToggle,zoomState,zoomTitle,zoomToggle"],
7
7
  "arcgis-charts-config-axes": [() => import("./components/arcgis-charts-config-axes/customElement.js"), "calculatedDataMinMaxBounds:,calculatedMinMaxBounds:,messageOverrides:,model:,open,showEnableXLogOption,showEnableYLogOption,showMaxXBoundOption,showMaxYBoundOption,showMinXBoundOption,showMinYBoundOption"],
8
8
  "arcgis-charts-config-axis": [() => import("./components/arcgis-charts-config-axis/customElement.js"), "axisTitle,dataMaxValue,dataMinValue,initialMaxBound,initialMinBound,isXAxis,maxBoundMaxLimit,maxBoundMinLimit,messageOverrides:,minBoundMaxLimit,minBoundMinLimit,model:,showEnableLogOption,showMaxBoundOption,showMinBoundOption"],
@@ -226,7 +226,7 @@ export const WebChartRadarChartAxisLabelsOrientation: {
226
226
 
227
227
  export type WebChartRadarChartAxisLabelsOrientation = (typeof WebChartRadarChartAxisLabelsOrientation)[keyof typeof WebChartRadarChartAxisLabelsOrientation];
228
228
 
229
- /** The types of order assocated with chart data. */
229
+ /** The types of order associated with chart data. */
230
230
  export const WebChartOrderDataByTypes: {
231
231
  readonly YValue: "arcgis-charts-y-value";
232
232
  readonly Mean: "arcgis-charts-mean";
@@ -268,7 +268,7 @@ export interface WebChartDirectionalDataOrder {
268
268
  /**
269
269
  * Indicates whether to order data by the label or the value.
270
270
  *
271
- * For example, when a field has domain coded values or supbtypes, setting this property to `false` will order the data by the field value.
271
+ * For example, when a field has domain coded values or subtypes, setting this property to `false` will order the data by the field value.
272
272
  * Otherwise the domain description, subtypes description, or the alias of the field will be used to sort the data.
273
273
  *
274
274
  * @default true
@@ -290,7 +290,7 @@ export interface WebChartPredefinedLabelsDataOrder {
290
290
  /**
291
291
  * Indicates whether to order data by the label or the value.
292
292
  *
293
- * For example, when a field has domain coded values or supbtypes, setting this property to `false` will order the data by the field value.
293
+ * For example, when a field has domain coded values or subtypes, setting this property to `false` will order the data by the field value.
294
294
  * Otherwise the domain description, subtypes description, or the alias of the field will be used to sort the data.
295
295
  *
296
296
  * When the value is set to `true` or undefined, the `orderBy` property should contain a list of labels like domain descriptions, subtypes descriptions, or field aliases.
@@ -3,7 +3,7 @@ import type { ArcgisChart } from "../components/arcgis-chart/customElement.js";
3
3
  import type { ArcgisChartsActionBar } from "../components/arcgis-charts-action-bar/customElement.js";
4
4
  import type { h, EventHandler } from "@arcgis/lumina";
5
5
 
6
- interface LuminaArcgisChart extends Partial<Pick<ArcgisChart, "actionMode" | "allowUsingObjectIdStat" | "animationEnabled" | "aria" | "autoDestroyDisabled" | "autoDisposeChart" | "autoInverseDataLabelTextColor" | "calciteThemingCSSVariables" | "chartIndex" | "chartLimits" | "chartWillRender" | "configurationEnabled" | "cursorRange" | "dataLabelFormatter" | "disableInteractions" | "disableTogglingLegendItems" | "enableBetaFeatures" | "enableConfiguration" | "enableResponsiveFeatures" | "errorPolicy" | "featureIndex" | "filterByExtent" | "filterBySelection" | "filterByViewExtent" | "gaugeInnerLabelFormatter" | "guideTooltipFormatter" | "hideEmptySeries" | "hideLicenseWatermark" | "hideLoaderAnimation" | "hideUIMessages" | "hideZeroCountCategories" | "ignoreSmoothRenderingLimit" | "ignoreViewExtent" | "interactionsDisabled" | "layer" | "layerFieldsChangePolicy" | "layerFilterChangePolicy" | "layerItemId" | "layerRendererChangePolicy" | "legendPosition" | "legendValueLabelFormatter" | "legendVisibility" | "loaderColors" | "messageOverrides" | "model" | "nullAsValid" | "placeholder" | "popupTemplateFieldInfosEnabled" | "queueChartCreation" | "replaceNoValueCategoryWithZero" | "returnFeaturesExtent" | "returnSelectionIndexes" | "returnSelectionOIDs" | "rotated" | "rotation" | "runtimeDataFilters" | "secondaryYAxisLabelFormatter" | "selectionData" | "selectionManager" | "selectionTheme" | "setTimeBinningInfoWhenNotProvided" | "showEmptySeries" | "showLicenseWatermark" | "showUIMessages" | "skipChartCreationQueue" | "syncChartsSelection" | "syncSelection" | "syncSelectionsBetweenChartAndLayerViewPolicy" | "syncViewSelection" | "syncViewTimeExtent" | "syncViewTimeZone" | "syncViewTimeZoneInclusionList" | "timeZone" | "togglingLegendItemsDisabled" | "tooltipFormatter" | "updateSplitBySeries" | "useAnimatedCharts" | "usePopupTemplateFieldsInfo" | "view" | "viewTimeExtentChangePolicy" | "xAxisLabelFormatter" | "yAxisLabelFormatter" | "zeroCountAsValid">>, h.JSX.HTMLAttributes<ArcgisChart> {
6
+ interface LuminaArcgisChart extends Partial<Pick<ArcgisChart, "actionMode" | "allowUsingObjectIdStat" | "animationEnabled" | "aria" | "autoDestroyDisabled" | "autoDisposeChart" | "autoInverseDataLabelTextColor" | "calciteThemingCSSVariables" | "chartIndex" | "chartLimits" | "chartWillRender" | "configurationEnabled" | "cursorRange" | "dataLabelFormatter" | "disableInteractions" | "disableTogglingLegendItems" | "enableBetaFeatures" | "enableConfiguration" | "enableResponsiveFeatures" | "errorPolicy" | "featureIndex" | "filterByExtent" | "filterBySelection" | "filterByViewExtent" | "gaugeInnerLabelFormatter" | "guideTooltipFormatter" | "hideEmptySeries" | "hideLicenseWatermark" | "hideLoaderAnimation" | "hideUIMessages" | "hideZeroCountCategories" | "ignoreSmoothRenderingLimit" | "ignoreViewExtent" | "interactionsDisabled" | "layer" | "layerFieldsChangePolicy" | "layerFilterChangePolicy" | "layerItemId" | "layerRendererChangePolicy" | "legendInteractionsDisabled" | "legendPosition" | "legendValueLabelFormatter" | "legendVisibility" | "loaderColors" | "messageOverrides" | "model" | "nullAsValid" | "placeholder" | "popupTemplateFieldInfosEnabled" | "queueChartCreation" | "replaceNoValueCategoryWithZero" | "returnFeaturesExtent" | "returnSelectionIndexes" | "returnSelectionOIDs" | "rotated" | "rotation" | "runtimeDataFilters" | "secondaryYAxisLabelFormatter" | "selectionData" | "selectionManager" | "selectionTheme" | "setTimeBinningInfoWhenNotProvided" | "showEmptySeries" | "showLicenseWatermark" | "showUIMessages" | "skipChartCreationQueue" | "syncChartsSelection" | "syncSelection" | "syncSelectionsBetweenChartAndLayerViewPolicy" | "syncViewSelection" | "syncViewTimeExtent" | "syncViewTimeZone" | "syncViewTimeZoneInclusionList" | "timeZone" | "togglingLegendItemsDisabled" | "tooltipFormatter" | "updateSplitBySeries" | "useAnimatedCharts" | "usePopupTemplateFieldsInfo" | "view" | "viewTimeExtentChangePolicy" | "xAxisLabelFormatter" | "yAxisLabelFormatter" | "zeroCountAsValid">>, h.JSX.HTMLAttributes<ArcgisChart> {
7
7
  onarcgisAxesMinMaxChange?: EventHandler<ArcgisChart["arcgisAxesMinMaxChange"]>;
8
8
  onarcgisBadDataWarningRaise?: EventHandler<ArcgisChart["arcgisBadDataWarningRaise"]>;
9
9
  onarcgisChartNotFoundWarning?: EventHandler<ArcgisChart["arcgisChartNotFoundWarning"]>;
@@ -4,7 +4,7 @@ import type { ArcgisChartsActionBar } from "../components/arcgis-charts-action-b
4
4
  import { HTMLAttributes } from "preact";
5
5
  import type { EventHandler } from "@arcgis/lumina";
6
6
 
7
- interface PreactArcgisChart extends Partial<Pick<ArcgisChart, "actionMode" | "allowUsingObjectIdStat" | "animationEnabled" | "aria" | "autoDestroyDisabled" | "autoDisposeChart" | "autoInverseDataLabelTextColor" | "calciteThemingCSSVariables" | "chartIndex" | "chartLimits" | "chartWillRender" | "configurationEnabled" | "cursorRange" | "dataLabelFormatter" | "disableInteractions" | "disableTogglingLegendItems" | "enableBetaFeatures" | "enableConfiguration" | "enableResponsiveFeatures" | "errorPolicy" | "featureIndex" | "filterByExtent" | "filterBySelection" | "filterByViewExtent" | "gaugeInnerLabelFormatter" | "guideTooltipFormatter" | "hideEmptySeries" | "hideLicenseWatermark" | "hideLoaderAnimation" | "hideUIMessages" | "hideZeroCountCategories" | "ignoreSmoothRenderingLimit" | "ignoreViewExtent" | "interactionsDisabled" | "layer" | "layerFieldsChangePolicy" | "layerFilterChangePolicy" | "layerItemId" | "layerRendererChangePolicy" | "legendPosition" | "legendValueLabelFormatter" | "legendVisibility" | "loaderColors" | "messageOverrides" | "model" | "nullAsValid" | "placeholder" | "popupTemplateFieldInfosEnabled" | "queueChartCreation" | "replaceNoValueCategoryWithZero" | "returnFeaturesExtent" | "returnSelectionIndexes" | "returnSelectionOIDs" | "rotated" | "rotation" | "runtimeDataFilters" | "secondaryYAxisLabelFormatter" | "selectionData" | "selectionManager" | "selectionTheme" | "setTimeBinningInfoWhenNotProvided" | "showEmptySeries" | "showLicenseWatermark" | "showUIMessages" | "skipChartCreationQueue" | "syncChartsSelection" | "syncSelection" | "syncSelectionsBetweenChartAndLayerViewPolicy" | "syncViewSelection" | "syncViewTimeExtent" | "syncViewTimeZone" | "syncViewTimeZoneInclusionList" | "timeZone" | "togglingLegendItemsDisabled" | "tooltipFormatter" | "updateSplitBySeries" | "useAnimatedCharts" | "usePopupTemplateFieldsInfo" | "view" | "viewTimeExtentChangePolicy" | "xAxisLabelFormatter" | "yAxisLabelFormatter" | "zeroCountAsValid">>, HTMLAttributes<ArcgisChart> {
7
+ interface PreactArcgisChart extends Partial<Pick<ArcgisChart, "actionMode" | "allowUsingObjectIdStat" | "animationEnabled" | "aria" | "autoDestroyDisabled" | "autoDisposeChart" | "autoInverseDataLabelTextColor" | "calciteThemingCSSVariables" | "chartIndex" | "chartLimits" | "chartWillRender" | "configurationEnabled" | "cursorRange" | "dataLabelFormatter" | "disableInteractions" | "disableTogglingLegendItems" | "enableBetaFeatures" | "enableConfiguration" | "enableResponsiveFeatures" | "errorPolicy" | "featureIndex" | "filterByExtent" | "filterBySelection" | "filterByViewExtent" | "gaugeInnerLabelFormatter" | "guideTooltipFormatter" | "hideEmptySeries" | "hideLicenseWatermark" | "hideLoaderAnimation" | "hideUIMessages" | "hideZeroCountCategories" | "ignoreSmoothRenderingLimit" | "ignoreViewExtent" | "interactionsDisabled" | "layer" | "layerFieldsChangePolicy" | "layerFilterChangePolicy" | "layerItemId" | "layerRendererChangePolicy" | "legendInteractionsDisabled" | "legendPosition" | "legendValueLabelFormatter" | "legendVisibility" | "loaderColors" | "messageOverrides" | "model" | "nullAsValid" | "placeholder" | "popupTemplateFieldInfosEnabled" | "queueChartCreation" | "replaceNoValueCategoryWithZero" | "returnFeaturesExtent" | "returnSelectionIndexes" | "returnSelectionOIDs" | "rotated" | "rotation" | "runtimeDataFilters" | "secondaryYAxisLabelFormatter" | "selectionData" | "selectionManager" | "selectionTheme" | "setTimeBinningInfoWhenNotProvided" | "showEmptySeries" | "showLicenseWatermark" | "showUIMessages" | "skipChartCreationQueue" | "syncChartsSelection" | "syncSelection" | "syncSelectionsBetweenChartAndLayerViewPolicy" | "syncViewSelection" | "syncViewTimeExtent" | "syncViewTimeZone" | "syncViewTimeZoneInclusionList" | "timeZone" | "togglingLegendItemsDisabled" | "tooltipFormatter" | "updateSplitBySeries" | "useAnimatedCharts" | "usePopupTemplateFieldsInfo" | "view" | "viewTimeExtentChangePolicy" | "xAxisLabelFormatter" | "yAxisLabelFormatter" | "zeroCountAsValid">>, HTMLAttributes<ArcgisChart> {
8
8
  onarcgisAxesMinMaxChange?: EventHandler<ArcgisChart["arcgisAxesMinMaxChange"]>;
9
9
  onarcgisBadDataWarningRaise?: EventHandler<ArcgisChart["arcgisBadDataWarningRaise"]>;
10
10
  onarcgisChartNotFoundWarning?: EventHandler<ArcgisChart["arcgisChartNotFoundWarning"]>;
@@ -4,7 +4,7 @@ import type { ArcgisChartsActionBar } from "../components/arcgis-charts-action-b
4
4
  import type { HTMLProps } from 'react';
5
5
  import type { EventHandler } from "@arcgis/lumina";
6
6
 
7
- interface ReactArcgisChart extends Partial<Pick<ArcgisChart, "actionMode" | "allowUsingObjectIdStat" | "animationEnabled" | "aria" | "autoDestroyDisabled" | "autoDisposeChart" | "autoInverseDataLabelTextColor" | "calciteThemingCSSVariables" | "chartIndex" | "chartLimits" | "chartWillRender" | "configurationEnabled" | "cursorRange" | "dataLabelFormatter" | "disableInteractions" | "disableTogglingLegendItems" | "enableBetaFeatures" | "enableConfiguration" | "enableResponsiveFeatures" | "errorPolicy" | "featureIndex" | "filterByExtent" | "filterBySelection" | "filterByViewExtent" | "gaugeInnerLabelFormatter" | "guideTooltipFormatter" | "hideEmptySeries" | "hideLicenseWatermark" | "hideLoaderAnimation" | "hideUIMessages" | "hideZeroCountCategories" | "ignoreSmoothRenderingLimit" | "ignoreViewExtent" | "interactionsDisabled" | "layer" | "layerFieldsChangePolicy" | "layerFilterChangePolicy" | "layerItemId" | "layerRendererChangePolicy" | "legendPosition" | "legendValueLabelFormatter" | "legendVisibility" | "loaderColors" | "messageOverrides" | "model" | "nullAsValid" | "placeholder" | "popupTemplateFieldInfosEnabled" | "queueChartCreation" | "replaceNoValueCategoryWithZero" | "returnFeaturesExtent" | "returnSelectionIndexes" | "returnSelectionOIDs" | "rotated" | "rotation" | "runtimeDataFilters" | "secondaryYAxisLabelFormatter" | "selectionData" | "selectionManager" | "selectionTheme" | "setTimeBinningInfoWhenNotProvided" | "showEmptySeries" | "showLicenseWatermark" | "showUIMessages" | "skipChartCreationQueue" | "syncChartsSelection" | "syncSelection" | "syncSelectionsBetweenChartAndLayerViewPolicy" | "syncViewSelection" | "syncViewTimeExtent" | "syncViewTimeZone" | "syncViewTimeZoneInclusionList" | "timeZone" | "togglingLegendItemsDisabled" | "tooltipFormatter" | "updateSplitBySeries" | "useAnimatedCharts" | "usePopupTemplateFieldsInfo" | "view" | "viewTimeExtentChangePolicy" | "xAxisLabelFormatter" | "yAxisLabelFormatter" | "zeroCountAsValid">>, HTMLProps<ArcgisChart> {
7
+ interface ReactArcgisChart extends Partial<Pick<ArcgisChart, "actionMode" | "allowUsingObjectIdStat" | "animationEnabled" | "aria" | "autoDestroyDisabled" | "autoDisposeChart" | "autoInverseDataLabelTextColor" | "calciteThemingCSSVariables" | "chartIndex" | "chartLimits" | "chartWillRender" | "configurationEnabled" | "cursorRange" | "dataLabelFormatter" | "disableInteractions" | "disableTogglingLegendItems" | "enableBetaFeatures" | "enableConfiguration" | "enableResponsiveFeatures" | "errorPolicy" | "featureIndex" | "filterByExtent" | "filterBySelection" | "filterByViewExtent" | "gaugeInnerLabelFormatter" | "guideTooltipFormatter" | "hideEmptySeries" | "hideLicenseWatermark" | "hideLoaderAnimation" | "hideUIMessages" | "hideZeroCountCategories" | "ignoreSmoothRenderingLimit" | "ignoreViewExtent" | "interactionsDisabled" | "layer" | "layerFieldsChangePolicy" | "layerFilterChangePolicy" | "layerItemId" | "layerRendererChangePolicy" | "legendInteractionsDisabled" | "legendPosition" | "legendValueLabelFormatter" | "legendVisibility" | "loaderColors" | "messageOverrides" | "model" | "nullAsValid" | "placeholder" | "popupTemplateFieldInfosEnabled" | "queueChartCreation" | "replaceNoValueCategoryWithZero" | "returnFeaturesExtent" | "returnSelectionIndexes" | "returnSelectionOIDs" | "rotated" | "rotation" | "runtimeDataFilters" | "secondaryYAxisLabelFormatter" | "selectionData" | "selectionManager" | "selectionTheme" | "setTimeBinningInfoWhenNotProvided" | "showEmptySeries" | "showLicenseWatermark" | "showUIMessages" | "skipChartCreationQueue" | "syncChartsSelection" | "syncSelection" | "syncSelectionsBetweenChartAndLayerViewPolicy" | "syncViewSelection" | "syncViewTimeExtent" | "syncViewTimeZone" | "syncViewTimeZoneInclusionList" | "timeZone" | "togglingLegendItemsDisabled" | "tooltipFormatter" | "updateSplitBySeries" | "useAnimatedCharts" | "usePopupTemplateFieldsInfo" | "view" | "viewTimeExtentChangePolicy" | "xAxisLabelFormatter" | "yAxisLabelFormatter" | "zeroCountAsValid">>, HTMLProps<ArcgisChart> {
8
8
  onarcgisAxesMinMaxChange?: EventHandler<ArcgisChart["arcgisAxesMinMaxChange"]>;
9
9
  onarcgisBadDataWarningRaise?: EventHandler<ArcgisChart["arcgisBadDataWarningRaise"]>;
10
10
  onarcgisChartNotFoundWarning?: EventHandler<ArcgisChart["arcgisChartNotFoundWarning"]>;
@@ -4,7 +4,7 @@ import type { ArcgisChartsActionBar } from "../components/arcgis-charts-action-b
4
4
  import { JSXBase as StencilJsx } from "@stencil/core/internal";
5
5
  import type { EventHandler } from "@arcgis/lumina";
6
6
 
7
- interface StencilArcgisChart extends Partial<Pick<ArcgisChart, "actionMode" | "allowUsingObjectIdStat" | "animationEnabled" | "aria" | "autoDestroyDisabled" | "autoDisposeChart" | "autoInverseDataLabelTextColor" | "calciteThemingCSSVariables" | "chartIndex" | "chartLimits" | "chartWillRender" | "configurationEnabled" | "cursorRange" | "dataLabelFormatter" | "disableInteractions" | "disableTogglingLegendItems" | "enableBetaFeatures" | "enableConfiguration" | "enableResponsiveFeatures" | "errorPolicy" | "featureIndex" | "filterByExtent" | "filterBySelection" | "filterByViewExtent" | "gaugeInnerLabelFormatter" | "guideTooltipFormatter" | "hideEmptySeries" | "hideLicenseWatermark" | "hideLoaderAnimation" | "hideUIMessages" | "hideZeroCountCategories" | "ignoreSmoothRenderingLimit" | "ignoreViewExtent" | "interactionsDisabled" | "layer" | "layerFieldsChangePolicy" | "layerFilterChangePolicy" | "layerItemId" | "layerRendererChangePolicy" | "legendPosition" | "legendValueLabelFormatter" | "legendVisibility" | "loaderColors" | "messageOverrides" | "model" | "nullAsValid" | "placeholder" | "popupTemplateFieldInfosEnabled" | "queueChartCreation" | "replaceNoValueCategoryWithZero" | "returnFeaturesExtent" | "returnSelectionIndexes" | "returnSelectionOIDs" | "rotated" | "rotation" | "runtimeDataFilters" | "secondaryYAxisLabelFormatter" | "selectionData" | "selectionManager" | "selectionTheme" | "setTimeBinningInfoWhenNotProvided" | "showEmptySeries" | "showLicenseWatermark" | "showUIMessages" | "skipChartCreationQueue" | "syncChartsSelection" | "syncSelection" | "syncSelectionsBetweenChartAndLayerViewPolicy" | "syncViewSelection" | "syncViewTimeExtent" | "syncViewTimeZone" | "syncViewTimeZoneInclusionList" | "timeZone" | "togglingLegendItemsDisabled" | "tooltipFormatter" | "updateSplitBySeries" | "useAnimatedCharts" | "usePopupTemplateFieldsInfo" | "view" | "viewTimeExtentChangePolicy" | "xAxisLabelFormatter" | "yAxisLabelFormatter" | "zeroCountAsValid">>, StencilJsx.HTMLAttributes<ArcgisChart> {
7
+ interface StencilArcgisChart extends Partial<Pick<ArcgisChart, "actionMode" | "allowUsingObjectIdStat" | "animationEnabled" | "aria" | "autoDestroyDisabled" | "autoDisposeChart" | "autoInverseDataLabelTextColor" | "calciteThemingCSSVariables" | "chartIndex" | "chartLimits" | "chartWillRender" | "configurationEnabled" | "cursorRange" | "dataLabelFormatter" | "disableInteractions" | "disableTogglingLegendItems" | "enableBetaFeatures" | "enableConfiguration" | "enableResponsiveFeatures" | "errorPolicy" | "featureIndex" | "filterByExtent" | "filterBySelection" | "filterByViewExtent" | "gaugeInnerLabelFormatter" | "guideTooltipFormatter" | "hideEmptySeries" | "hideLicenseWatermark" | "hideLoaderAnimation" | "hideUIMessages" | "hideZeroCountCategories" | "ignoreSmoothRenderingLimit" | "ignoreViewExtent" | "interactionsDisabled" | "layer" | "layerFieldsChangePolicy" | "layerFilterChangePolicy" | "layerItemId" | "layerRendererChangePolicy" | "legendInteractionsDisabled" | "legendPosition" | "legendValueLabelFormatter" | "legendVisibility" | "loaderColors" | "messageOverrides" | "model" | "nullAsValid" | "placeholder" | "popupTemplateFieldInfosEnabled" | "queueChartCreation" | "replaceNoValueCategoryWithZero" | "returnFeaturesExtent" | "returnSelectionIndexes" | "returnSelectionOIDs" | "rotated" | "rotation" | "runtimeDataFilters" | "secondaryYAxisLabelFormatter" | "selectionData" | "selectionManager" | "selectionTheme" | "setTimeBinningInfoWhenNotProvided" | "showEmptySeries" | "showLicenseWatermark" | "showUIMessages" | "skipChartCreationQueue" | "syncChartsSelection" | "syncSelection" | "syncSelectionsBetweenChartAndLayerViewPolicy" | "syncViewSelection" | "syncViewTimeExtent" | "syncViewTimeZone" | "syncViewTimeZoneInclusionList" | "timeZone" | "togglingLegendItemsDisabled" | "tooltipFormatter" | "updateSplitBySeries" | "useAnimatedCharts" | "usePopupTemplateFieldsInfo" | "view" | "viewTimeExtentChangePolicy" | "xAxisLabelFormatter" | "yAxisLabelFormatter" | "zeroCountAsValid">>, StencilJsx.HTMLAttributes<ArcgisChart> {
8
8
  onArcgisAxesMinMaxChange?: EventHandler<ArcgisChart["arcgisAxesMinMaxChange"]>;
9
9
  onArcgisBadDataWarningRaise?: EventHandler<ArcgisChart["arcgisBadDataWarningRaise"]>;
10
10
  onArcgisChartNotFoundWarning?: EventHandler<ArcgisChart["arcgisChartNotFoundWarning"]>;
@@ -2,8 +2,8 @@
2
2
  import { getElementLocale as $e } from "@arcgis/toolkit/intl/dom";
3
3
  import { cloneDeep as n, isEmpty as B } from "lodash-es";
4
4
  import { DateTime as Ye } from "luxon";
5
- import { q as Qe, cf as se, bt as Ke, W as ne, aN as ae, cg as Xe, bC as Je, bD as Ze, p as O, bf as Ue, ch as b, ci as te, N as et, O as tt, w as Z, cj as rt, cc as it, ck as ot, Y as st } from "../../../chunks/index.js";
6
- import { a8 as nt, p as at, l as dt, a2 as lt, s as ct } from "../../../chunks/index3.js";
5
+ import { q as Qe, cf as se, bs as Ke, W as ne, aM as ae, cg as Xe, bC as Je, bD as Ze, p as O, be as Ue, ch as b, ci as te, N as et, O as tt, w as Z, cj as rt, cc as it, ck as ot, Y as st } from "../../../chunks/index.js";
6
+ import { a8 as nt, p as at, l as dt, a5 as lt, s as ct } from "../../../chunks/index3.js";
7
7
  import { i as ut } from "../../../chunks/type-guards.js";
8
8
  import { a as f, D as k, i as de } from "../../../chunks/index2.js";
9
9
  import { g as h, s as ft } from "../../../chunks/series-types.js";
@@ -1,5 +1,4 @@
1
1
  import type { DataOrderParameters } from "../../../chart-rendering/common/data/utils/summarize-data/interfaces.js";
2
- import type { ChartOptions } from "../../../chart-rendering/common/interfaces.js";
3
2
  import type { WebChartTypes, WebChartVersionStatus } from "../../../spec/chart-object-literals.js";
4
3
  import type { WebChartBin, WebChartDataItem } from "../../../spec/data-source.js";
5
4
  import type { RESTSymbolType } from "../../../spec/rest-js-object-literals.js";
@@ -447,7 +446,7 @@ export function doesConfigChangeRequireNewData(props: {
447
446
  fieldList?: IField[];
448
447
  queryObject?: QueryObject;
449
448
  filterBySelection?: boolean;
450
- selectionData?: ChartOptions["selectionData"];
449
+ selectionData?: SelectionData;
451
450
  setTimeBinningInfoWhenNotProvided?: boolean;
452
451
  chartLimits?: ChartElementLimit;
453
452
  }): {
@@ -1,3 +1,4 @@
1
+ import type { WebChartDataItem } from "../../../spec/data-source.js";
1
2
  import type { WebChartQuery } from "../../../spec/web-chart.js";
2
3
  import type { ChartElementLimit } from "../../defaults/interfaces.js";
3
4
  import type { QueryObject } from "../../layer/interfaces.js";
@@ -27,4 +28,19 @@ export function uniqueValues(props: {
27
28
  errorStrings: ErrorStrings;
28
29
  abortKey?: AbortControllerKeyType;
29
30
  abortSignal?: AbortSignal;
30
- }): Promise<(number | string)[]>;
31
+ }): Promise<(number | string)[]>;
32
+
33
+ /**
34
+ * Group a dataset over a x field
35
+ *
36
+ * Notes: we regroup the data for:
37
+ * - processed data on split-by bar and line charts
38
+ * - selection data on multi-series bar and line charts
39
+ *
40
+ * @param props - the input data to be grouped
41
+ */
42
+ export function groupDataByCategory(props: {
43
+ data: WebChartDataItem[];
44
+ x: string;
45
+ splitByField?: string;
46
+ }): WebChartDataItem[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/charts-components",
3
- "version": "5.2.0-next.93",
3
+ "version": "5.2.0-next.95",
4
4
  "description": "Reusable ArcGIS charting Web Components.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -30,8 +30,8 @@
30
30
  "dependencies": {
31
31
  "@amcharts/amcharts4": "^4.10.31",
32
32
  "@amcharts/amcharts5": "~5.20.3",
33
- "@arcgis/lumina": "5.2.0-next.93",
34
- "@arcgis/toolkit": "5.2.0-next.93",
33
+ "@arcgis/lumina": "5.2.0-next.95",
34
+ "@arcgis/toolkit": "5.2.0-next.95",
35
35
  "@esri/arcgis-html-sanitizer": "~4.1.0",
36
36
  "@lit/task": "^1.0.3",
37
37
  "@zumer/snapdom": "^2.24.1",
@@ -45,7 +45,7 @@
45
45
  "tslib": "^2.8.1"
46
46
  },
47
47
  "peerDependencies": {
48
- "@arcgis/core": "5.2.0-next.93",
48
+ "@arcgis/core": "5.2.0-next.95",
49
49
  "@esri/calcite-components": "^5.2.0-next.52"
50
50
  },
51
51
  "css.customData": [
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as P}from"./SOR4DYKA.js";import{a as k}from"./IHO3OLL3.js";import{h as a}from"./TENIFMA5.js";import{a as F}from"./BHJHX65O.js";import g from"./KZ4SCRQT.js";import e from"./IHDWXIBS.js";import{n as d}from"./VQU2TVX7.js";import"./WOGALV3T.js";import"./62GSQDTE.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./UZHQF5CV.js";import{A as c,B as C,C as o,F as u,H as b,g as f,i as s,n as h,z as n}from"./H2NVXIPH.js";import"./QP5UAIC6.js";import"./QYRHZJH3.js";import{b as v}from"./PWJBGZPW.js";import"./BYSUABOV.js";export default $arcgis.t(([{G:m,Mb:y},{h:$}])=>{var l={label:"label",fieldList:"field-list",fab:"fab"},E=f`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;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}.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}`,g=class extends C{constructor(){super(...arguments),this._messages=F(),this.pieChartPopover=null,this.sortOrderElement=n(),this.categoryElement=n(),this.numericFieldsElement=n(),this.onPieChartDataChange=e=>{try{if(e.detail!==null&&e.detail?.value!==void 0){let{contentKind:t}=e.detail,i=[...e.detail.value];switch(t){case a.aggregation:this.model.aggregationType=i[0]!==v.NoAggregation?i[0]:"";break;case a.category:{let r=i[0]?.trim()||"",p=this.model.numericFields;p.length>1&&r!==m&&(this.model.numericFields=[p[0]]),this.model.category=r,this.model.colorMatch=!0;break}case a.numericFields:i.length>1&&(this.model.category=m),this.model.numericFields=i;break;case a.sortOrder:this.model.setSortOrder(i[0]);break;default:break}}}catch(t){throw t instanceof Error&&this.arcgisChartsConfigDataChangeError.emit({error:t,model:this.model}),t}this.requestUpdate()},this.onModelConfigChange=()=>{this.requestUpdate()},this.popoverClose=e=>{this.pieChartPopover===e?.target&&this.removePieChartDataPopover()},this.layerFieldsInfo=[],this.arcgisChartsConfigDataChangeError=h(),this.arcgisChartsConfigPieChartDataNumericFieldValidate=h()}static{this.properties={messageOverrides:0,model:0,layerFieldsInfo:0}}static{this.styles=E}load(){this.modelChange(this.model),this.onModelConfigChange()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model"))}disconnectedCallback(){super.disconnectedCallback(),this.removePieChartDataPopover(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,t){t?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}buildNumericFieldItem(e){return P(e,s`<calcite-list-item .label=${d(this.layerFieldsInfo,e)} .value=${e} closable @calciteListItemClose=${this.onRemoveNumericField}></calcite-list-item>`)}onSortOrderSelect(e){this.contentKind=a.sortOrder,this.setupPopover(e)}onCategorySelect(e){this.contentKind=a.category,this.setupPopover(e)}onAddNumericFields(e){this.contentKind=a.numericFields,this.setupPopover(e)}onRemoveNumericField(e){let t=e.target.value;this.model.numericFields=this.model.numericFields.filter(i=>i!==t)}onShowDataLabelsChange(e){this.model.dataLabelsVisibility=e.target.checked}setupPopover(e){e.stopImmediatePropagation(),this.removePieChartDataPopover();let t,i,r;switch(this.contentKind){case a.category:t=this.categoryElement.value,i=this._messages.categoryHeader,r=this.model.category;break;case a.numericFields:t=this.numericFieldsElement.value,i=this._messages.numericFieldsMultipleHeader,r=this.model.numericFields;break;case a.sortOrder:t=this.sortOrderElement.value,i=this._messages.sortOrderHeader,r=this.model.getSortOrder();break}this.pieChartPopover=u(s`<arcgis-charts-config-pie-chart-popover .headingTitle=${i} .referenceElement=${t} open .contentKind=${this.contentKind} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${r} @arcgisChartsConfigPieChartDataPopoverChange=${this.onPieChartDataChange} @arcgisChartsConfigPopoverClose=${this.popoverClose}></arcgis-charts-config-pie-chart-popover>`),!document.body.contains(this.pieChartPopover)&&this.pieChartPopover!==null&&document.body.appendChild(this.pieChartPopover)}getCorrectedCategoryValue(){return $({fieldName:this.model.category,fieldList:this.layerFieldsInfo})?"":d(this.layerFieldsInfo,this.model.category)}removePieChartDataPopover(){this.pieChartPopover!==null&&(this.pieChartPopover.open=!1,this.pieChartPopover=k(this.pieChartPopover))}renderSorting(){return s`<arcgis-charts-config-field-picker .label=${this._messages[this.model.getSortOrder()]} @click=${this.onSortOrderSelect} ${c(this.sortOrderElement)}></arcgis-charts-config-field-picker>`}renderCategory(){let e=this.getCorrectedCategoryValue();return s`<arcgis-charts-config-field-picker .label=${e} @click=${this.onCategorySelect} ${c(this.categoryElement)}></arcgis-charts-config-field-picker>`}renderNumericFields(e){let t=y(this.model.layer).idField,i=[];for(let r of e)r!==t&&i.push(this.buildNumericFieldItem(r));return s`<calcite-list label class=${o(l.fieldList)} ${c(this.numericFieldsElement)}>${i}</calcite-list>`}render(){let e=this.renderCategory(),t=this.renderSorting(),i=this.renderNumericFields([...this.model.numericFields]);return s`<calcite-label class=${o(l.label)}>${this._messages.category}${e}</calcite-label>${[s`<calcite-label class=${o(l.label)}>${this._messages.numericFields}${i}</calcite-label>`,s`<div class=${o(l.fab)}><calcite-fab appearance=outline-fill kind=neutral scale=m .label=${this._messages.selectNumericFields} text-enabled .text=${this._messages.selectNumericFields} icon=plus @click=${this.onAddNumericFields}></calcite-fab></div>`]}<calcite-label class=${o(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=${o(l.label)}>${this._messages.sortOrder}${t}</calcite-label>`}};b("arcgis-charts-config-pie-chart-data",g);return g},e,g)