@arcgis/charts-components 5.2.0-next.125 → 5.2.0-next.126
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{X7OXNUXM.js → 2IW2QZFJ.js} +1 -1
- package/dist/cdn/{QZNI3BD3.js → 2PJPH3IO.js} +1 -1
- package/dist/cdn/{W6SZDF5T.js → 4MAJ24GS.js} +1 -1
- package/dist/cdn/{EU6AJ57R.js → 4U3OAZA7.js} +1 -1
- package/dist/cdn/{B5XYZKLU.js → 4VFEZCIA.js} +1 -1
- package/dist/cdn/{XQ5Q4AMB.js → 56LNZVTX.js} +1 -1
- package/dist/cdn/{F2MSD3QS.js → 57SE2XVZ.js} +1 -1
- package/dist/cdn/{F2WEYOKD.js → 5BMODU2D.js} +1 -1
- package/dist/cdn/{POSJMG3Z.js → 5BNYRPXI.js} +1 -1
- package/dist/cdn/{4SNP6HTM.js → 5MDZB2JE.js} +1 -1
- package/dist/cdn/{JPDI5NK6.js → 5R7ZWTMY.js} +1 -1
- package/dist/cdn/{7PKJNQL7.js → 6664UEHL.js} +1 -1
- package/dist/cdn/{5E6TR5OW.js → 6AKXJHB7.js} +1 -1
- package/dist/cdn/{LYVV7FBJ.js → 6GTMALBB.js} +1 -1
- package/dist/cdn/{ZD4GMDVL.js → 6MHADUGC.js} +1 -1
- package/dist/cdn/{QHGSGGGJ.js → 6QIL7VBD.js} +1 -1
- package/dist/cdn/{OUDFAIXR.js → 763Z5IGF.js} +1 -1
- package/dist/cdn/{77VLHOOC.js → 7KZO2XXD.js} +1 -1
- package/dist/cdn/{J65VM5UV.js → A5P6WB3G.js} +1 -1
- package/dist/cdn/{XZAXZDTP.js → AMVJMEWD.js} +1 -1
- package/dist/cdn/{G6DJZSMC.js → ANSNUR3I.js} +1 -1
- package/dist/cdn/{KHFNTBX4.js → AOKEN5ZO.js} +1 -1
- package/dist/cdn/{6H4PWDET.js → AOO37P5T.js} +1 -1
- package/dist/cdn/{J5E4KON6.js → ASBXNQOS.js} +1 -1
- package/dist/cdn/{56INS6ML.js → B5VRC7DP.js} +1 -1
- package/dist/cdn/{54265YSL.js → CD3XMKTK.js} +1 -1
- package/dist/cdn/{KIUBFEUI.js → CRDOGPB7.js} +1 -1
- package/dist/cdn/{OCCBK5S7.js → CW4JPG3J.js} +1 -1
- package/dist/cdn/DAB3SJBG.js +2 -0
- package/dist/cdn/{CSN6MJ4B.js → DX7M2EXK.js} +1 -1
- package/dist/cdn/{6ESCKCYY.js → DXWP65HI.js} +1 -1
- package/dist/cdn/{N26FS3KG.js → E5JWMNIW.js} +1 -1
- package/dist/cdn/{3GN7VR32.js → EJXBVT5O.js} +1 -1
- package/dist/cdn/{YMAI2PRA.js → EX2R2B4U.js} +1 -1
- package/dist/cdn/{KAVJHTFB.js → G4MIOOVR.js} +1 -1
- package/dist/cdn/{UYNE67O2.js → GMP2UWJG.js} +1 -1
- package/dist/cdn/{ENG2F3IQ.js → GZWV22RE.js} +1 -1
- package/dist/cdn/{5XXBOV4Q.js → HKFQANWN.js} +1 -1
- package/dist/cdn/{SLKGXWIE.js → HQMCT3VB.js} +1 -1
- package/dist/cdn/I3LNZVEA.js +3 -0
- package/dist/cdn/{2VX44HPW.js → IBLYUVF2.js} +1 -1
- package/dist/cdn/{DPRUAGVZ.js → IJAURACW.js} +1 -1
- package/dist/cdn/{LHQ5R7PX.js → IS2A63E6.js} +1 -1
- package/dist/cdn/{QHRYG4SP.js → IYI6DUGL.js} +1 -1
- package/dist/cdn/{77YJOTCX.js → JOEBZXL4.js} +1 -1
- package/dist/cdn/{HDHS7RTZ.js → JZ6V5FKE.js} +1 -1
- package/dist/cdn/{C3PVEL66.js → K3R6EK3N.js} +1 -1
- package/dist/cdn/{ETDHU5U4.js → KS4EBLYJ.js} +22 -22
- package/dist/cdn/{PAHQAFMT.js → KW4KLLTK.js} +1 -1
- package/dist/cdn/{MUFEV5ZR.js → LE2B3JXK.js} +1 -1
- package/dist/cdn/{TLYVHR5K.js → LHGIUJ6U.js} +1 -1
- package/dist/cdn/{VPCAPPIP.js → LV3GHN5L.js} +1 -1
- package/dist/cdn/{FH66KPN5.js → M2WD5JN6.js} +1 -1
- package/dist/cdn/{SF3FTQP5.js → NNRSK2LV.js} +1 -1
- package/dist/cdn/{6462KIIY.js → ONKX4PWR.js} +1 -1
- package/dist/cdn/{LQL7VPXH.js → PEHD5Y4I.js} +1 -1
- package/dist/cdn/{EP5BMXUY.js → QELGEYXU.js} +1 -1
- package/dist/cdn/QZHRLUXI.js +2 -0
- package/dist/cdn/{S2PTOBDF.js → RPMGP2UN.js} +1 -1
- package/dist/cdn/{ZLUIF2K7.js → RS2T6377.js} +1 -1
- package/dist/cdn/SKRBORPC.js +2 -0
- package/dist/cdn/{Z5KG3KRT.js → SL3ZM7G5.js} +1 -1
- package/dist/cdn/{HPO7UHSN.js → SYSQA3IG.js} +1 -1
- package/dist/cdn/{JSJ2OXVP.js → T6RCABY5.js} +1 -1
- package/dist/cdn/{QL5M6E2E.js → TCYUL3JC.js} +1 -1
- package/dist/cdn/{PUXBUCDR.js → TIVS64YH.js} +1 -1
- package/dist/cdn/{P7PD3PBN.js → TPTH224R.js} +1 -1
- package/dist/cdn/{KDMYI6HZ.js → TRR5AXW7.js} +1 -1
- package/dist/cdn/{Z5ZBVJ2L.js → UEAU7YQZ.js} +1 -1
- package/dist/cdn/{B44MEIQW.js → UPEMQGFY.js} +1 -1
- package/dist/cdn/{KCEJQPTE.js → UY4AKYFU.js} +1 -1
- package/dist/cdn/{PZRHKUTQ.js → UYFTXYBR.js} +1 -1
- package/dist/cdn/{KKHTRL5K.js → V3HNAMD7.js} +1 -1
- package/dist/cdn/{WDWOAIWE.js → VFVOONAN.js} +1 -1
- package/dist/cdn/{4RLQLQVB.js → VT2XOG5Y.js} +1 -1
- package/dist/cdn/{2FYXFIR4.js → WOENRIAM.js} +1 -1
- package/dist/cdn/{YEAARWKU.js → WW7WSQXS.js} +1 -1
- package/dist/cdn/{KHV5W5KY.js → YHQ5JR63.js} +1 -1
- package/dist/cdn/{2QWB5XRH.js → YQDW3D4E.js} +1 -1
- package/dist/cdn/{IMQYTRSY.js → YRWKRJU4.js} +1 -1
- package/dist/cdn/{OLRPPTEO.js → YSLCFR5X.js} +1 -1
- package/dist/cdn/{2FQ6G6B6.js → YSZKMYYU.js} +1 -1
- package/dist/cdn/{H5QMZ65D.js → YUN3KGXG.js} +1 -1
- package/dist/cdn/Z5VGMG7G.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/box-plot-data.js +1 -1
- package/dist/chunks/box-plot-model.js +1 -1
- package/dist/chunks/chart-ui-utils.js +5 -5
- package/dist/chunks/class-breaks.js +1 -1
- package/dist/chunks/combo-bar-line-chart-model.js +1 -1
- package/dist/chunks/data.js +2 -2
- package/dist/chunks/heat-chart-model.js +9 -0
- package/dist/chunks/index.js +1589 -1574
- package/dist/chunks/index2.js +6 -0
- package/dist/chunks/index4.js +1 -1
- package/dist/chunks/model-setter.js +5 -5
- package/dist/chunks/negative-values-stacked-to-baseline.js +1 -1
- package/dist/chunks/pie-chart-model.js +102 -84
- package/dist/chunks/rounded-corners.js +1 -1
- package/dist/chunks/scatterplot-model.js +1 -1
- package/dist/chunks/serial-chart-data.js +70 -70
- package/dist/chunks/serial-chart-model.js +5 -5
- package/dist/chunks/utils.js +24 -24
- package/dist/chunks/web-component-utils.js +1 -1
- package/dist/chunks/x-bounds.js +18 -18
- package/dist/components/arcgis-chart/customElement.js +4763 -4646
- package/dist/components/arcgis-charts-config-axis/customElement.js +52 -42
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-format/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-guide/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +47 -56
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +365 -363
- package/dist/interfaces.d.ts +3 -2
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +7 -1
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +13 -1
- package/dist/utils/chart-config/converter/index.js +40 -40
- package/dist/utils/chart-config/utils/index.d.ts +20 -0
- package/package.json +4 -4
- package/dist/cdn/4PUOMS4A.js +0 -2
- package/dist/cdn/MDKLQ2IS.js +0 -3
- package/dist/cdn/NMAG7AL2.js +0 -2
- package/dist/cdn/PIOFHDMU.js +0 -2
- package/dist/cdn/ZZAJQVXL.js +0 -2
package/dist/interfaces.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export type ChartLayer = Layer
|
|
|
32
32
|
url?: FeatureLayer["url"];
|
|
33
33
|
fields: FeatureLayer["fields"];
|
|
34
34
|
fieldsIndex: FeatureLayer["fieldsIndex"];
|
|
35
|
-
capabilities
|
|
35
|
+
capabilities?: FeatureLayer["capabilities"] | null;
|
|
36
36
|
sourceJSON?: FeatureLayer["sourceJSON"];
|
|
37
37
|
objectIdField: FeatureLayer["objectIdField"];
|
|
38
38
|
outFields: FeatureLayer["outFields"];
|
|
@@ -40,7 +40,7 @@ export type ChartLayer = Layer
|
|
|
40
40
|
queryFeatures: FeatureLayer["queryFeatures"];
|
|
41
41
|
queryFeatureCount: FeatureLayer["queryFeatureCount"];
|
|
42
42
|
queryObjectIds: FeatureLayer["queryObjectIds"];
|
|
43
|
-
queryAttributeBins
|
|
43
|
+
queryAttributeBins?: FeatureLayer["queryAttributeBins"];
|
|
44
44
|
createQuery: FeatureLayer["createQuery"];
|
|
45
45
|
getFieldDomain?: FeatureLayer["getFieldDomain"];
|
|
46
46
|
renderer?: FeatureLayer["renderer"];
|
|
@@ -67,6 +67,7 @@ export type ChartLayerInputSansView = Exclude<ChartLayerInput, ChartLayerView>;
|
|
|
67
67
|
export interface ChartLayerView {
|
|
68
68
|
get layer(): ChartLayer;
|
|
69
69
|
view: FeatureLikeLayerView["view"];
|
|
70
|
+
queryAttributeBins?: FeatureLikeLayerView["queryAttributeBins"];
|
|
70
71
|
queryObjectIds: FeatureLikeLayerView["queryObjectIds"];
|
|
71
72
|
queryFeatureCount: FeatureLikeLayerView["queryFeatureCount"];
|
|
72
73
|
queryFeatures: FeatureLikeLayerView["queryFeatures"];
|
|
@@ -32,7 +32,13 @@ export class HeatChartModel extends SerialChartModel {
|
|
|
32
32
|
accessor classificationMethod: WebChartClassBreakTypes | undefined;
|
|
33
33
|
/** The name of the color ramp used by the heat chart. */
|
|
34
34
|
accessor colorRampName: string | undefined;
|
|
35
|
-
/**
|
|
35
|
+
/**
|
|
36
|
+
* Gets the heat chart's empty cell configuration
|
|
37
|
+
*
|
|
38
|
+
* @deprecated
|
|
39
|
+
* since 5.2 Use [emptyCellText](https://developers.arcgis.com/javascript/latest/references/charts-components/model/heat-chart-model/heat-chart-model/#emptyCellText) or [emptyCellSymbol](https://developers.arcgis.com/javascript/latest/references/charts-components/model/heat-chart-model/heat-chart-model/#emptyCellSymbol) to retrieve the text or symbol for an empty heat chart cell instead.
|
|
40
|
+
* This property will be removed from `HeatChartModel` in 6.0
|
|
41
|
+
*/
|
|
36
42
|
accessor emptyCell: WebChartHeatChartEmptyCell | undefined;
|
|
37
43
|
/** The heat chart's empty cell symbol. */
|
|
38
44
|
accessor emptyCellSymbol: ISimpleFillSymbol | undefined;
|
|
@@ -78,7 +78,19 @@ export class PieChartModel extends PieChartModelSuperclass {
|
|
|
78
78
|
accessor groupedSliceIds: string[];
|
|
79
79
|
/** Threshold below which slices will be grouped. */
|
|
80
80
|
accessor groupingThreshold: number;
|
|
81
|
-
/**
|
|
81
|
+
/**
|
|
82
|
+
* Inner radius of the pie chart.
|
|
83
|
+
*
|
|
84
|
+
* @since 5.2
|
|
85
|
+
*/
|
|
86
|
+
accessor innerRadius: number;
|
|
87
|
+
/**
|
|
88
|
+
* Inner radius size for the pie chart.
|
|
89
|
+
*
|
|
90
|
+
* @deprecated
|
|
91
|
+
* since 5.2. Use [innerRadius](https://developers.arcgis.com/javascript/latest/references/charts-components/model/pie-chart-model/pie-chart-model/#innerRadius) instead.
|
|
92
|
+
* This property will be removed from `PieChartModel` in 6.0.
|
|
93
|
+
*/
|
|
82
94
|
accessor innerRadiusSize: number;
|
|
83
95
|
/** Character limit for the slice labels. */
|
|
84
96
|
accessor labelCharacterLimit: number | null;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { getElementLocale as $e } from "@arcgis/toolkit/intl/dom";
|
|
3
3
|
import { cloneDeep as n, isEmpty as B } from "es-toolkit/compat";
|
|
4
4
|
import { DateTime as Ye } from "luxon";
|
|
5
|
-
import { q as Qe,
|
|
5
|
+
import { q as Qe, cl as se, by as Je, W as ne, aP as ae, cm as Ke, bI as Xe, bJ as Ze, p as T, bk as Ue, cn as b, co as te, N as et, O as tt, w as Z, cp as rt, ci as it, cq as ot, Y as st } from "../../../chunks/index.js";
|
|
6
6
|
import { a8 as nt, p as at, l as lt, a5 as dt, s as ct } from "../../../chunks/index3.js";
|
|
7
7
|
import { i as ut } from "../../../chunks/type-guards.js";
|
|
8
8
|
import { a as u, D as k, i as le } from "../../../chunks/index2.js";
|
|
@@ -83,11 +83,11 @@ async function fe(r) {
|
|
|
83
83
|
const { configToUpdate: e, layer: i, abortSignal: t } = r, o = { ...e };
|
|
84
84
|
let s = i;
|
|
85
85
|
if (!s) {
|
|
86
|
-
const a =
|
|
86
|
+
const a = Xe(e) ? e.iLayer : e.dataSource?.layer;
|
|
87
87
|
a && (s = await Ze(a, t));
|
|
88
88
|
}
|
|
89
89
|
if (s) {
|
|
90
|
-
const a =
|
|
90
|
+
const a = T(o.series), f = h(o.series), y = o.series && o.series.length > 0 && o.series[0].x.trim() === "" || f === c.GaugeSeries && !Ue(e) || a === u.PieFromFields || a === u.BarAndLineFromFields || a === u.BoxPlotC1MonoField || a === u.BoxPlotC5MonoFieldAndSplitBy || a === u.BoxPlotC2MultiFields || a === u.BoxPlotC6MultiFieldsAndSplitBy, He = f === c.ScatterSeries || f === c.HeatSeries || a === u.BarAndLineNoAggregation || a === u.BarAndLineSplitByNoAggregation || a === u.BoxPlotC1MonoField || a === u.BoxPlotC5MonoFieldAndSplitBy || a === u.BoxPlotC3MonoFieldAndCategory || a === u.BoxPlotC7MonoFieldAndCategoryAndSplitBy || a === u.PieNoAggregation;
|
|
91
91
|
if (o.series = e.series.map((d) => {
|
|
92
92
|
const l = { ...d };
|
|
93
93
|
if (y || (l.x = b({ queryObject: s, fieldToMatch: d.x })), "y" in l && He) {
|
|
@@ -102,19 +102,19 @@ async function fe(r) {
|
|
|
102
102
|
}
|
|
103
103
|
if (d.query !== void 0) {
|
|
104
104
|
let { where: m, groupByFieldsForStatistics: S, outStatistics: g } = d.query;
|
|
105
|
-
if (S = te({ fieldsList: S, queryObject: s }), g !== void 0 && (g = g.map((
|
|
106
|
-
const O = { ...
|
|
105
|
+
if (S = te({ fieldsList: S, queryObject: s }), g !== void 0 && (g = g.map((x) => {
|
|
106
|
+
const O = { ...x };
|
|
107
107
|
return O.onStatisticField = b({
|
|
108
108
|
queryObject: s,
|
|
109
|
-
fieldToMatch:
|
|
109
|
+
fieldToMatch: x.onStatisticField
|
|
110
110
|
}), O;
|
|
111
111
|
})), m !== void 0 && a === u.BarAndLineSplitBy) {
|
|
112
|
-
const
|
|
112
|
+
const x = et(d.query?.where), O = tt({
|
|
113
113
|
where: d.query?.where,
|
|
114
114
|
normalize: !1,
|
|
115
115
|
escape: !1
|
|
116
116
|
});
|
|
117
|
-
m = `${b({ queryObject: s, fieldToMatch:
|
|
117
|
+
m = `${b({ queryObject: s, fieldToMatch: x })}=${O}`;
|
|
118
118
|
}
|
|
119
119
|
l.query !== void 0 && (m !== void 0 && (l.query.where = m), S !== void 0 && (l.query.groupByFieldsForStatistics = S), g !== void 0 && (l.query.outStatistics = g));
|
|
120
120
|
}
|
|
@@ -177,7 +177,7 @@ function me(r) {
|
|
|
177
177
|
function Se(r) {
|
|
178
178
|
const e = n(r);
|
|
179
179
|
if (!B(e.series) && h(r.series) === c.BoxPlotSeries) {
|
|
180
|
-
const t =
|
|
180
|
+
const t = T(r.series);
|
|
181
181
|
if (e.orderOptions?.data === void 0 && t !== u.BoxPlotC2MultiFields && t !== u.BoxPlotC1MonoField) {
|
|
182
182
|
const o = ye(r.series[0]);
|
|
183
183
|
o.orderType !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = {
|
|
@@ -240,7 +240,7 @@ function Ce(r) {
|
|
|
240
240
|
}
|
|
241
241
|
function be(r) {
|
|
242
242
|
const e = n(r);
|
|
243
|
-
return e?.orderOptions?.orderByFields !== void 0 &&
|
|
243
|
+
return e?.orderOptions?.orderByFields !== void 0 && T(r.series) === u.PieFromFields && (e.orderOptions.orderByFields = r?.orderOptions?.orderByFields?.map(
|
|
244
244
|
(i) => {
|
|
245
245
|
let t = n(i);
|
|
246
246
|
return i !== void 0 && i.includes("arcgis_charts_pie_category_from_fields_name") && (t = i.replace(
|
|
@@ -258,7 +258,7 @@ function Fe(r) {
|
|
|
258
258
|
}
|
|
259
259
|
return e;
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function Te(r) {
|
|
262
262
|
const e = n(r), { extent: i } = e.series[0]?.query ?? {};
|
|
263
263
|
return i !== void 0 && (e.dataFilters = {
|
|
264
264
|
...e.dataFilters,
|
|
@@ -273,7 +273,7 @@ function U(r) {
|
|
|
273
273
|
i.rotated !== void 0 && delete i.rotated;
|
|
274
274
|
})), e;
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function xe(r) {
|
|
277
277
|
const e = n(r), i = r.dataSource;
|
|
278
278
|
return "dataSource" in e && !B(i) && (i.type === "featureLayer" && e.dataSource !== void 0 && (e.dataSource.type = "layer"), "featureLayer" in i && (e.dataSource.layer = i.featureLayer, delete e.dataSource.featureLayer)), e;
|
|
279
279
|
}
|
|
@@ -388,7 +388,7 @@ function Ie(r) {
|
|
|
388
388
|
function P(r) {
|
|
389
389
|
let e, i = r.orderOptions?.orderByFields?.[0];
|
|
390
390
|
if (r.series?.length > 0) {
|
|
391
|
-
const t = h(r.series), o =
|
|
391
|
+
const t = h(r.series), o = T(r.series);
|
|
392
392
|
if (t !== c.PieSeries && o !== u.BarAndLineFromFields && o !== u.BoxPlotC2MultiFields && (i = i ?? r.series[0].x), i && !le(i)) {
|
|
393
393
|
const { fieldToSort: s, orderBy: a } = k(i);
|
|
394
394
|
let f;
|
|
@@ -430,7 +430,7 @@ function We(r) {
|
|
|
430
430
|
function qe(r) {
|
|
431
431
|
const e = n(r);
|
|
432
432
|
if (e) {
|
|
433
|
-
const i =
|
|
433
|
+
const i = T(e.series);
|
|
434
434
|
if ((i === u.BarAndLineFromFields || i === u.PieFromFields) && e.orderOptions?.data === void 0 && e.orderOptions?.orderByFields !== void 0) {
|
|
435
435
|
const t = P(e);
|
|
436
436
|
t !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = t, delete e.orderOptions.orderByFields);
|
|
@@ -502,7 +502,7 @@ function _e(r) {
|
|
|
502
502
|
type: c.CalendarDateParts
|
|
503
503
|
}), e;
|
|
504
504
|
}
|
|
505
|
-
function
|
|
505
|
+
function ze(r) {
|
|
506
506
|
let e = n(r);
|
|
507
507
|
return e = be(e), e;
|
|
508
508
|
}
|
|
@@ -512,7 +512,7 @@ function w(r) {
|
|
|
512
512
|
}
|
|
513
513
|
function A(r) {
|
|
514
514
|
let e = n(r);
|
|
515
|
-
return e =
|
|
515
|
+
return e = Te(e), e;
|
|
516
516
|
}
|
|
517
517
|
function D(r) {
|
|
518
518
|
let e = n(r);
|
|
@@ -520,7 +520,7 @@ function D(r) {
|
|
|
520
520
|
}
|
|
521
521
|
function M(r) {
|
|
522
522
|
let e = n(r);
|
|
523
|
-
return e =
|
|
523
|
+
return e = xe(e), e;
|
|
524
524
|
}
|
|
525
525
|
function I(r) {
|
|
526
526
|
let e = n(r);
|
|
@@ -554,10 +554,10 @@ function G(r) {
|
|
|
554
554
|
function _(r) {
|
|
555
555
|
return ve(r);
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function z(r) {
|
|
558
558
|
return qe(r);
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function j(r) {
|
|
561
561
|
return Ne(r);
|
|
562
562
|
}
|
|
563
563
|
function H(r) {
|
|
@@ -574,22 +574,22 @@ function Q(r) {
|
|
|
574
574
|
let e = n(r);
|
|
575
575
|
return e = Ge(e), e;
|
|
576
576
|
}
|
|
577
|
-
function
|
|
577
|
+
function J(r) {
|
|
578
578
|
let e = n(r);
|
|
579
579
|
return e = _e(e), e;
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function K(r) {
|
|
582
582
|
let e = n(r);
|
|
583
583
|
return e = Bt(e), e;
|
|
584
584
|
}
|
|
585
|
-
function
|
|
585
|
+
function X(r) {
|
|
586
586
|
let e = n(r);
|
|
587
587
|
return h(e.series) === c.BarSeries && (e = Ce(e)), e;
|
|
588
588
|
}
|
|
589
|
-
function
|
|
589
|
+
function je(r) {
|
|
590
590
|
const { versionsToConvert: e, configToUpdate: i } = r;
|
|
591
591
|
let t = n(i);
|
|
592
|
-
return e.length > 0 && t !== void 0 && (t = Ie(t), e.includes(se) || e.includes(
|
|
592
|
+
return e.length > 0 && t !== void 0 && (t = Ie(t), e.includes(se) || e.includes(Ke) ? (t = ze(t), t = w(t), t = A(t), t = D(t), t = M(t), t = I(t), t = W(t), t = q(t), t = N(t), t = R(t), t = E(t), t = V(t), t = G(t), t = _(t), t = z(t), t = j(t), t = H(t), t = $(t), t = Y(t), t = Q(t), t = J(t), t = K(t), t = X(t)) : e.forEach((o) => {
|
|
593
593
|
if (t !== void 0)
|
|
594
594
|
switch (o) {
|
|
595
595
|
case "1.0.1":
|
|
@@ -632,10 +632,10 @@ function ze(r) {
|
|
|
632
632
|
t = _(t);
|
|
633
633
|
break;
|
|
634
634
|
case "16.1.0":
|
|
635
|
-
t =
|
|
635
|
+
t = z(t);
|
|
636
636
|
break;
|
|
637
637
|
case "18.1.3":
|
|
638
|
-
t =
|
|
638
|
+
t = j(t);
|
|
639
639
|
break;
|
|
640
640
|
case "20.1.0":
|
|
641
641
|
t = H(t);
|
|
@@ -650,13 +650,13 @@ function ze(r) {
|
|
|
650
650
|
t = Q(t);
|
|
651
651
|
break;
|
|
652
652
|
case "24.8.0":
|
|
653
|
-
t =
|
|
653
|
+
t = J(t);
|
|
654
654
|
break;
|
|
655
655
|
case "25.0.0":
|
|
656
|
-
t =
|
|
656
|
+
t = K(t);
|
|
657
657
|
break;
|
|
658
658
|
case "25.1.0":
|
|
659
|
-
t =
|
|
659
|
+
t = X(t);
|
|
660
660
|
break;
|
|
661
661
|
}
|
|
662
662
|
}), t.version = nt), t;
|
|
@@ -666,8 +666,8 @@ async function Dt(r, e, i, t) {
|
|
|
666
666
|
if (r) {
|
|
667
667
|
const s = Qe(e);
|
|
668
668
|
await s?.load({ signal: t }), o = await he({ configToUpdate: r, layer: s, chartContainer: i, abortSignal: t });
|
|
669
|
-
const a = r.version ?? se, { versionStatus: f, versions: y } =
|
|
670
|
-
(f === re.Older || f === re.Unrecognized) && (o =
|
|
669
|
+
const a = r.version ?? se, { versionStatus: f, versions: y } = Je(a);
|
|
670
|
+
(f === re.Older || f === re.Unrecognized) && (o = je({
|
|
671
671
|
versionsToConvert: y,
|
|
672
672
|
configToUpdate: o
|
|
673
673
|
}));
|
|
@@ -679,9 +679,9 @@ const Mt = {
|
|
|
679
679
|
adjustSeries: ue,
|
|
680
680
|
matchChartFieldsToLayerFields: fe,
|
|
681
681
|
resetLegendMaxHeight: ge,
|
|
682
|
-
moveSeriesQueryExtent:
|
|
682
|
+
moveSeriesQueryExtent: Te,
|
|
683
683
|
moveSeriesRotatedPropToChart: U,
|
|
684
|
-
renameDataSourceProperties:
|
|
684
|
+
renameDataSourceProperties: xe,
|
|
685
685
|
copyDataSourceFilterToConfig: Oe,
|
|
686
686
|
adjustPieFromFieldsDefaultNameAndValue: be,
|
|
687
687
|
removeSpacingPropertyFromGauge: Fe,
|
|
@@ -707,7 +707,7 @@ const Mt = {
|
|
|
707
707
|
convertRESTStatisticTypeToWebChartStatisticType: Ee,
|
|
708
708
|
renameChartSubtitle: Ve,
|
|
709
709
|
applyMandatoryConversions: he,
|
|
710
|
-
convertTo1x0x1:
|
|
710
|
+
convertTo1x0x1: ze,
|
|
711
711
|
convertTo2x0x0: w,
|
|
712
712
|
convertTo3x5x0: A,
|
|
713
713
|
convertTo4x0x1: D,
|
|
@@ -721,18 +721,18 @@ const Mt = {
|
|
|
721
721
|
convertTo12x0x0: V,
|
|
722
722
|
convertTo15x0x0: G,
|
|
723
723
|
convertTo16x1x0: _,
|
|
724
|
-
convertTo16x1x1:
|
|
725
|
-
convertTo19x0x0:
|
|
724
|
+
convertTo16x1x1: z,
|
|
725
|
+
convertTo19x0x0: j,
|
|
726
726
|
convertTo20x2x0: H,
|
|
727
727
|
convertTo21x1x0: $,
|
|
728
728
|
convertTo23x3x0: Y,
|
|
729
729
|
convertTo24x8x0: Q,
|
|
730
|
-
convertTo25x0x0:
|
|
731
|
-
convertTo25x1x0:
|
|
732
|
-
convertTo25x2x0:
|
|
730
|
+
convertTo25x0x0: J,
|
|
731
|
+
convertTo25x1x0: K,
|
|
732
|
+
convertTo25x2x0: X,
|
|
733
733
|
convertTemporalBinningProps2: Ge,
|
|
734
734
|
transformPropsInHeatChart: _e,
|
|
735
|
-
applyConversions:
|
|
735
|
+
applyConversions: je,
|
|
736
736
|
convertDataSourceToILayer: ve,
|
|
737
737
|
applyDefaultFirstDayOfWeek: de,
|
|
738
738
|
convertWebChartNullCategoryProps: Ce
|
|
@@ -377,6 +377,26 @@ export function hasAnyGuideAboveChanged(oldConfig: WebChart, newConfig: WebChart
|
|
|
377
377
|
*/
|
|
378
378
|
export function hasRotationChanged(oldConfig: WebChart, newConfig: WebChart): boolean;
|
|
379
379
|
|
|
380
|
+
/**
|
|
381
|
+
* Returns true if any series has data labels visible.
|
|
382
|
+
* Matches the visibility check used when computing rotated data-label padding.
|
|
383
|
+
*
|
|
384
|
+
* @param config - the chart config
|
|
385
|
+
* @returns True when at least one series has visible data labels
|
|
386
|
+
* @internal
|
|
387
|
+
*/
|
|
388
|
+
export function areDataLabelsVisible(config: WebChart | undefined): boolean;
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Returns true if series data-label visibility changed since the previous update.
|
|
392
|
+
*
|
|
393
|
+
* @param oldConfig - the old chart config
|
|
394
|
+
* @param newConfig - the new chart config
|
|
395
|
+
* @returns True when effective data-label visibility differs between configs
|
|
396
|
+
* @internal
|
|
397
|
+
*/
|
|
398
|
+
export function hasDataLabelsVisibilityChanged(oldConfig: WebChart | undefined, newConfig: WebChart | undefined): boolean;
|
|
399
|
+
|
|
380
400
|
/**
|
|
381
401
|
* Returns true if the rotated property changed since the previous update.
|
|
382
402
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/charts-components",
|
|
3
|
-
"version": "5.2.0-next.
|
|
3
|
+
"version": "5.2.0-next.126",
|
|
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.8",
|
|
33
|
-
"@arcgis/lumina": "5.2.0-next.
|
|
34
|
-
"@arcgis/toolkit": "5.2.0-next.
|
|
33
|
+
"@arcgis/lumina": "5.2.0-next.126",
|
|
34
|
+
"@arcgis/toolkit": "5.2.0-next.126",
|
|
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.
|
|
48
|
+
"@arcgis/core": "5.2.0-next.126",
|
|
49
49
|
"@esri/calcite-components": "^5.2.0-next.80"
|
|
50
50
|
},
|
|
51
51
|
"css.customData": [
|
package/dist/cdn/4PUOMS4A.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as ae}from"./RP6LD7CU.js";import{a as Q,h as J}from"./OBPAQN4H.js";import j from"./JPDI5NK6.js";import{l as s,m as y}from"./TENIFMA5.js";import{a as P}from"./MRN3GTKF.js";import i from"./6462KIIY.js";import g from"./N26FS3KG.js";import e from"./KCEJQPTE.js";import b from"./2QWB5XRH.js";import a from"./MDKLQ2IS.js";import{c as x,n as R,y as U}from"./J5E4KON6.js";import"./WOGALV3T.js";import{q as K,s as d,za as W}from"./ZUN46CYQ.js";import{f as q}from"./KX7KGXKQ.js";import{m as O,s as L}from"./NGXRBJKL.js";import{d as _,g as N,i as I}from"./FASMW7S2.js";import{A as c,B as T,C as o,D as B,F as w,H as D,g as A,i as l,n as M,z as n}from"./IJPD3GVL.js";import{c as X}from"./QP5UAIC6.js";import"./QYRHZJH3.js";import{a as p,b as m,l as u,m as C,n as h,w as H,x as f}from"./PWJBGZPW.js";import"./BYSUABOV.js";export default $arcgis.t(([{Rb:S,a:V},,{b:Z,g:G,h:b,i:z},{d:j},{h:Y},{g:ee,s:k}])=>{var se=A`.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{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}.color-ramp{width:100%;height:20px;overflow:hidden;border-radius:0}.color-ramp-segment{height:100%;display:inline-block}.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)}.accordion{margin-top:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major)}`,r={label:"label",colorRamp:"color-ramp",colorRampSegment:"color-ramp-segment",list:"list",accordion:"accordion"},E=class extends T{constructor(){super(...arguments),this._messages=P(),this.commonStrings=P({name:"common",blocking:!0}),this.heatChartPopover=null,this.xAxisFieldElement=n(),this.aggregationElement=n(),this.numericFieldsElement=n(),this.calendarTypeElement=n(),this.calendarViewTypeElement=n(),this.classBreakMethodElement=n(),this.nullElement=n(),this.breaksCountElement=n(),this.colorSchemeElement=n(),this.onHeatChartDataPopoverChange=async e=>{try{if(e.detail?.value!==void 0){let{contentKind:a}=e.detail,t=e.detail.value;switch(a){case s.aggregation:this.model.aggregationType=t,t===m.Count||t===m.Sum?this.model.nullPolicy=h.Zero:this.model.nullPolicy=h.Null;break;case s.xAxisField:this.model.xAxisField=t,this.setDefaultPropertiesForCalendarHeatChart();break;case s.numericFields:this.model.numericFields=[t.trim()||""],(this.model.numericFields??[]).length>0&&this.model.aggregationType===m.Count&&this.model.numericFields[0]!==S(this.model.layer).idField&&(this.model.aggregationType=m.Sum);break;case s.calendarType:{this.applyCalendarTypePreset(t);break}case s.calendarViewType:{this.model.viewType=t;break}case s.classBreakMethod:{this.model.classificationMethod=t,await this.generateAndUpdateClassBreaks();break}default:break}}}catch(a){throw this.arcgisChartsConfigDataChangeError.emit({error:a,model:this.model}),a}this.removeHeatChartDataPopover(),this.requestUpdate()},this.popoverClose=e=>{this.heatChartPopover===e?.target&&this.removeHeatChartDataPopover()},this.onModelConfigChange=()=>{this.requestUpdate()},this.allColorRamps=[],this.onColorRampSelection=async e=>{let{isFlipped:a,rampName:t}=e.detail,i=this.model.colorRampName!==t,g=this.model.isColorRampFlipped!==a;this.model.colorRampName=t,this.model.isColorRampFlipped=a,(i||g)&&await this.generateAndUpdateClassBreaks(!0)},this.onEmptyCellNameChange=e=>{let{name:a}=e.detail;if(a!==void 0){let t={...this.model.emptyCell,name:a};this.model.emptyCell=t}},this.onEmptyCellColorChange=e=>{let{color:a}=e.detail;if(a!==void 0){let t=this.model.emptyCell,i={...t,symbol:{...t?.symbol,type:q.SFS,color:a,outline:t?.symbol?.outline&&{...t.symbol.outline,color:a}}};this.model.emptyCell=i}},this.availableColorRamps=[],this.layerFieldsInfo=[],this.open=!1,this.arcgisChartsConfigDataChangeError=M()}static{this.properties={availableColorRamps:16,aggregationLabel:16,messageOverrides:0,model:0,layerFieldsInfo:0,open:5}}static{this.styles=se}connectedCallback(){super.connectedCallback(),this.loadColorRampFromArcGIS()}load(){this.modelChange(this.model),this.onModelConfigChange()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),this.aggregationLabel=W(this.model.aggregationType,this.commonStrings)}disconnectedCallback(){super.disconnectedCallback(),this.model?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}loadColorRampFromArcGIS(){let e=b.esriColorRamps;this.allColorRamps=e,this.availableColorRamps=this.allColorRamps}getSelectedOrDefaultColorRampName(){return this.model.colorRampName??(j(this.model?.config)?b.defaultColorRampForCharts?.name:void 0)}getRequestedBreaksCount(){return this.requestedBreaksCount??this.model.breaksCount??x.classBreaks.breaksCount}getFirstDayOfWeek(){let{lang:e}=_(this.el??document.documentElement),a=I(e);return V.local().setLocale(e).startOf("week",{useLocaleWeeks:a!==N}).weekday}applyCalendarTypePreset(e){switch(e){case y.YearByMonthAndDayOfMonth:{let a={type:p.CalendarDateParts,unit:u.DayOfMonth},t={type:p.CalendarDateParts,unit:u.MonthOfYear};this.model.xTemporalBinning=a,this.model.yTemporalBinning=t;break}case y.WeekByDayOfWeekAndHourOfDay:{let a={type:p.CalendarDateParts,unit:u.HourOfDay},t={type:p.CalendarDateParts,unit:u.DayOfWeek};this.model.firstDayOfWeek=this.getFirstDayOfWeek(),this.model.xTemporalBinning=a,this.model.yTemporalBinning=t;break}}}async generateClassBreaks(e=!1){let a=[],t=this.model.chartRenderer?.classBreakInfos,i=J(Q);return i&&(a=await G({data:i,xAxisField:this.model.xAxisField,classificationMethod:this.model.classificationMethod,breaksCount:this.model.breaksCount,colorRampName:this.model.colorRampName,availableColorRamps:this.availableColorRamps,existingClassBreakInfos:t,useExistingColors:!e,isColorRampFlipped:this.model.isColorRampFlipped})),a}applyGeneratedClassBreaks(e,a){if(this.model.chartRenderer={type:"classBreaks",field:K.valueField,classBreakInfos:e},this.model.heatRulesType!==C.Renderer&&(this.model.heatRulesType=C.Renderer),this.model.classificationMethod!==f.manual){let t=e.length||a;this.model.breaksCount!==t&&(this.model.breaksCount=t)}}async generateAndUpdateClassBreaks(e=!1){let a=this.getRequestedBreaksCount(),t=await this.generateClassBreaks(e);z({currentBreaks:t,configBreaks:this.model.chartRenderer?.classBreakInfos??[],treatReversedColorsAsEqual:!e})&&this.applyGeneratedClassBreaks(t,a)}modelChange(e,a){a?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}getCorrectedXAxisFieldValue(){return Y({fieldName:this.model.xAxisField,fieldList:this.layerFieldsInfo})?"":R(this.layerFieldsInfo,this.model.xAxisField)}onXAxisFieldSelect(e){this.contentKind=s.xAxisField,this.setupPopover(e)}onNumericFieldSelect(e){this.contentKind=s.numericFields,this.setupPopover(e)}onCalendarTypeSelect(e){this.contentKind=s.calendarType,this.setupPopover(e)}onClassBreakMethodSelect(e){this.contentKind=s.classBreakMethod,this.setupPopover(e)}onColorSchemeSelect(e){this.contentKind=s.colorScheme,this.setupPopover(e)}async onBreaksCountChange(e){let a=O(e.target.value);a<d.min?a=d.min:a>d.max&&(a=d.max),U(a)&&(this.breaksCountElement.value&&(this.breaksCountElement.value.value=a.toString()),this.requestedBreaksCount=a,this.model.breaksCount=a,await this.generateAndUpdateClassBreaks())}onAggregationSelect(e){this.contentKind=s.aggregation,this.setupPopover(e)}onNullSelect(e){this.contentKind=s.null,this.setupPopover(e)}onIncludeLeapDayChange(e){let a=e.target.checked;this.model.includeLeapDay=a}onNullPolicyChange(e){this.model.nullPolicy=e.target.selectedItem?.value}setupPopover(e){e.stopImmediatePropagation(),this.removeHeatChartDataPopover();let a,t,i;switch(this.contentKind){case s.aggregation:a=this.aggregationElement.value,t=this._messages.aggregationHeader,i=this.model.aggregationType;break;case s.xAxisField:a=this.xAxisFieldElement.value,t=this._messages.xAxisField,i=this.model.xAxisField;break;case s.numericFields:a=this.numericFieldsElement.value,t=this._messages.numericField,i=this.model.numericFields?.[0];break;case s.calendarType:a=this.calendarTypeElement.value,t=this._messages.calendarType,i=k(this.model);break;case s.calendarViewType:a=this.calendarViewTypeElement.value,t=this._messages.viewType,i=this.model.viewType;break;case s.classBreakMethod:a=this.classBreakMethodElement.value,t=this._messages.method,i=this.model.classificationMethod;break;case s.colorScheme:a=this.colorSchemeElement.value,t=this._messages.colorScheme,i=this.getSelectedOrDefaultColorRampName();break;case s.null:a=e.target,t=this._messages.null;break}this.heatChartPopover=w(l`<arcgis-charts-config-heat-chart-popover .headingTitle=${t} .referenceElement=${a} open .contentKind=${this.contentKind} .model=${this.model} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${i} @arcgisChartsConfigHeatChartDataPopoverChange=${this.onHeatChartDataPopoverChange} @arcgisChartsConfigPopoverClose=${this.popoverClose} .colorRamps=${this.availableColorRamps} @arcgisChartsConfigHeatChartColorRampChange=${this.onColorRampSelection} @arcgisChartsConfigPopoverEmptyCellColorChange=${this.onEmptyCellColorChange} @arcgisChartsConfigPopoverEmptyCellNameChange=${this.onEmptyCellNameChange} .isFlipped=${this.model.isColorRampFlipped}></arcgis-charts-config-heat-chart-popover>`),!document.body.contains(this.heatChartPopover)&&this.heatChartPopover!==null&&document.body.appendChild(this.heatChartPopover)}removeHeatChartDataPopover(){this.heatChartPopover!==null&&(this.heatChartPopover.open=!1,this.heatChartPopover=ae(this.heatChartPopover))}setDefaultPropertiesForCalendarHeatChart(){this.model.yAxisField=this.model.xAxisField,this.model.setYAxisSortOrder(X.Desc),this.model.classificationMethod===void 0&&(this.model.classificationMethod=f.naturalBreaks),this.model.heatRulesType!==C.Renderer&&(this.model.heatRulesType=C.Renderer),this.model.viewType===void 0&&(this.model.viewType=H.singleCalendarView),(this.model.aggregationType===m.Count||this.model.aggregationType===m.Sum)&&this.model.nullPolicy!==h.Zero&&(this.model.nullPolicy=h.Zero),this.model.colorRampName===void 0&&(this.model.colorRampName=b.defaultColorRampForCharts?.name)}renderXAxisFieldSelect(){let e=this.getCorrectedXAxisFieldValue();return l`<arcgis-charts-config-field-picker .label=${e} @click=${this.onXAxisFieldSelect} ${c(this.xAxisFieldElement)}></arcgis-charts-config-field-picker>`}renderAggregation(){return l`<arcgis-charts-config-field-picker .label=${this.model.aggregationType===m.NoAggregation?this._messages.noAggregation:this.aggregationLabel} @click=${this.onAggregationSelect} ${c(this.aggregationElement)}></arcgis-charts-config-field-picker>`}renderNumericFieldsSelect(){let e=this.model.numericFields?.[0]===S(this.model.layer).idField?"":R(this.layerFieldsInfo,this.model.numericFields?.[0]);return l`<arcgis-charts-config-field-picker .label=${e} @click=${this.onNumericFieldSelect} ${c(this.numericFieldsElement)}></arcgis-charts-config-field-picker>`}renderCalendarTypeSelect(){let e=k(this.model)??"",a={weekByDayOfWeekAndHourOfDay:this._messages.weekByDayOfWeekAndHourOfDay,yearByMonthAndDayOfMonth:this._messages.yearByMonthAndDayOfMonth},t=e?a[e]??"":"";return l`<arcgis-charts-config-field-picker .label=${t} @click=${this.onCalendarTypeSelect} ${c(this.calendarTypeElement)}></arcgis-charts-config-field-picker>`}renderClassBreakMethodSelect(){let e={equalInterval:this._messages.classBreaksMethod?.equalInterval,manual:this._messages.classBreaksMethod?.manual,naturalBreaks:this._messages.classBreaksMethod?.naturalBreaks,quantile:this._messages.classBreaksMethod?.quantile},a=this.model.classificationMethod?e[L(this.model.classificationMethod)]??"":"";return l`<arcgis-charts-config-field-picker .label=${a} @click=${this.onClassBreakMethodSelect} ${c(this.classBreakMethodElement)}></arcgis-charts-config-field-picker>`}renderColorRampSelect(){let e=this.model.chartRenderer?.classBreakInfos?.map(a=>{let t=a!==void 0?Z(a.symbol.color):"#FFFFFF";return l`<div class=${o(r.colorRampSegment)} style=${B({backgroundColor:t,width:`${100/this.model.breaksCount}%`})}></div>`});return l`<arcgis-charts-config-field-picker label @click=${this.onColorSchemeSelect} ${c(this.colorSchemeElement)}><div slot=fieldPickerSlot class=${o(r.colorRamp)}>${e}</div></arcgis-charts-config-field-picker>`}renderClassBreaksTable(){let e=this.model.chartRenderer?.classBreakInfos??[];return l`<calcite-table caption="Simple table"><calcite-table-row slot=table-header><calcite-table-header .heading=${this._messages.symbol}></calcite-table-header><calcite-table-header .heading=${this._messages.upperValue}></calcite-table-header></calcite-table-row>${e.map(a=>l`<calcite-table-row><calcite-table-cell><calcite-swatch label scale=m .color=${`rgba(${a.symbol.color?.[0]}, ${a.symbol.color?.[1]}, ${a.symbol.color?.[2]}, ${a.symbol.color?.[3]/255})`}></calcite-swatch></calcite-table-cell><calcite-table-cell>${a.label}</calcite-table-cell></calcite-table-row>`)}</calcite-table>`}renderNullUI(){let e=this.model.emptyCell,a=this._messages.null,t=e?.symbol?.color??x.grayColor,[i,g,v,$]=[...t],F=`rgba(${i},${g},${v},${$/255})`;return l`<calcite-list label class=${o(r.list)} selection-mode=none ${c(this.nullElement)}><calcite-list-item .label=${a} .value=${a} @calciteListItemSelect=${this.onNullSelect}><calcite-icon icon=square-f style=${B({color:F})} slot=content-end></calcite-icon></calcite-list-item></calcite-list>`}renderEmptyBins(){return l`<calcite-radio-button-group name=empty-bins layout=vertical @calciteRadioButtonGroupChange=${this.onNullPolicyChange}><calcite-label layout=inline><calcite-radio-button .value=${h.Zero} .checked=${this.model.nullPolicy===h.Zero}></calcite-radio-button>${this._messages.treatAsZero}</calcite-label><calcite-label layout=inline><calcite-radio-button .value=${h.Null} .checked=${this.model.nullPolicy===h.Null}></calcite-radio-button>${this._messages.treatAsNull}</calcite-label></calcite-radio-button-group>`}render(){let e=this.renderXAxisFieldSelect(),a=this.renderAggregation(),t=this.renderNumericFieldsSelect(),i=this.renderCalendarTypeSelect(),g=this.renderClassBreakMethodSelect(),v=this.renderColorRampSelect(),$=this.renderClassBreaksTable(),F=this.renderNullUI(),te=this.renderEmptyBins();return l`<calcite-label class=${o(r.label)}>${this._messages.dateRequired}${e}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.calendarType}${i}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.aggregation}${a}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.numericField}${t}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.method}${g}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.numberOfClasses}<calcite-input type=number .min=${d.min} .max=${d.max} .disabled=${this.model.classificationMethod===void 0||this.model.classificationMethod===f.manual} step=1 .value=${ee(this.model.breaksCount,5)} @calciteInputInput=${this.onBreaksCountChange} ${c(this.breaksCountElement)}></calcite-input></calcite-label><calcite-label class=${o(r.label)}>${this._messages.colorScheme}${v}</calcite-label>${F}<calcite-accordion class=${o(r.accordion)} appearance=transparent selection-mode=single><calcite-accordion-item .heading=${this._messages.classBreaks}>${$}</calcite-accordion-item></calcite-accordion><calcite-label class=${o(r.label)}>${this._messages.emptyBins}${te}</calcite-label>${k(this.model)===y.YearByMonthAndDayOfMonth?l`<calcite-label class=${o(r.label)} layout=inline-space-between>${this._messages.includeLeapDay}<calcite-switch .checked=${this.model.includeLeapDay} @calciteSwitchChange=${this.onIncludeLeapDayChange}></calcite-switch></calcite-label>`:null}`}};D("arcgis-charts-config-heat-chart-data",E);return E},a,b,e,g,i,j)
|