@arcgis/charts-components 5.2.0-next.54 → 5.2.0-next.56
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/{BUOEEUYK.js → 2B7R5EPU.js} +1 -1
- package/dist/cdn/{4CNIERJX.js → 2DHUAIBZ.js} +1 -1
- package/dist/cdn/{QM25LJL6.js → 2EDBRZSQ.js} +1 -1
- package/dist/cdn/2ULHNXRJ.js +2 -0
- package/dist/cdn/37UC5ORG.js +2 -0
- package/dist/cdn/{3WDEAWZX.js → 3MGWFTQH.js} +1 -1
- package/dist/cdn/{OZ5I3KXC.js → 3Z4FG2HV.js} +1 -1
- package/dist/cdn/{4N76NKSQ.js → 4B5XCGIW.js} +1 -1
- package/dist/cdn/{KNN4G3JB.js → 4L2YTJ24.js} +1 -1
- package/dist/cdn/{6EGZEBLQ.js → 4MQOMRB6.js} +1 -1
- package/dist/cdn/{KNP746RO.js → 4PMNY6J6.js} +1 -1
- package/dist/cdn/{LBPN3OKH.js → 4SFDTXQJ.js} +1 -1
- package/dist/cdn/{VPREA6CX.js → 53DFPXFT.js} +1 -1
- package/dist/cdn/{OYWI5PAE.js → 5GXB34LE.js} +1 -1
- package/dist/cdn/{B5MGM6AD.js → 5PAOUYHV.js} +2 -2
- package/dist/cdn/{EKBZUXYB.js → 5WIDEL4K.js} +1 -1
- package/dist/cdn/{EZNGHLSR.js → 6HFL4FZL.js} +1 -1
- package/dist/cdn/{ORKE6J33.js → 6Z7SZ44K.js} +1 -1
- package/dist/cdn/7IK6J5VF.js +2 -0
- package/dist/cdn/{ZZOKDSTD.js → A34ROM33.js} +1 -1
- package/dist/cdn/A6QLIVFM.js +45 -0
- package/dist/cdn/{LMN4NECB.js → ALOMPW5P.js} +1 -1
- package/dist/cdn/{J7XMDEFX.js → BGTNSGMQ.js} +1 -1
- package/dist/cdn/{LGBVDWMK.js → BM62ZXFE.js} +1 -1
- package/dist/cdn/{4UJL6VJ3.js → BNBZEIMG.js} +1 -1
- package/dist/cdn/{23WDH4FI.js → C3YMGEUW.js} +1 -1
- package/dist/cdn/{43DN7ID6.js → C64W7ELG.js} +1 -1
- package/dist/cdn/{4HW6IYHV.js → CB6BIIF2.js} +1 -1
- package/dist/cdn/{ZO4IZDFT.js → CD2NGAV3.js} +1 -1
- package/dist/cdn/{JKHGXCTI.js → CPRSIFTK.js} +1 -1
- package/dist/cdn/{5LFGIBZK.js → DRHDCMI3.js} +1 -1
- package/dist/cdn/{KMJ2IQP7.js → DTNHSQRD.js} +1 -1
- package/dist/cdn/DUAMGCAK.js +2 -0
- package/dist/cdn/{BSQZDV2P.js → E4T5VUXT.js} +1 -1
- package/dist/cdn/EDYZLWGW.js +3 -0
- package/dist/cdn/{LF3I5SMX.js → EKWX6BR7.js} +1 -1
- package/dist/cdn/{4WTYDOTA.js → EQXKSMAG.js} +1 -1
- package/dist/cdn/{H6B2SK7Y.js → EZ6DGROJ.js} +1 -1
- package/dist/cdn/{WLMD3CUK.js → F64XESDA.js} +1 -1
- package/dist/cdn/{LDMINI6S.js → FJPWWKHZ.js} +1 -1
- package/dist/cdn/{QIUSAIXS.js → FQ6B5P53.js} +1 -1
- package/dist/cdn/{W6FPVGPJ.js → G5DDARQJ.js} +1 -1
- package/dist/cdn/G5FTVXQF.js +2 -0
- package/dist/cdn/{54B66D3D.js → GHTCOHC2.js} +1 -1
- package/dist/cdn/{3OOV2HEE.js → GSD4ZLN6.js} +1 -1
- package/dist/cdn/{STE7V4ZZ.js → GVUHKCSZ.js} +1 -1
- package/dist/cdn/GXGUKV7H.js +2 -0
- package/dist/cdn/{223CX3CX.js → HDCSZ2BJ.js} +2 -2
- package/dist/cdn/{FZUKEGI7.js → I6LYDJKQ.js} +1 -1
- package/dist/cdn/{JI3UI5FQ.js → IDAMYFLT.js} +1 -1
- package/dist/cdn/IH2BBWAQ.js +2 -0
- package/dist/cdn/{HQ4XATLY.js → J4C4QWY4.js} +1 -1
- package/dist/cdn/{IZMUEFG7.js → JXZJXDU5.js} +3 -3
- package/dist/cdn/{W65LLW5X.js → JYROXMJN.js} +1 -1
- package/dist/cdn/{JOXPPBNA.js → KI2XMATI.js} +1 -1
- package/dist/cdn/{IIRJV7HP.js → LDBJRKCM.js} +1 -1
- package/dist/cdn/{JT5VM5N6.js → LOEMTYZB.js} +1 -1
- package/dist/cdn/M5K6IJLD.js +2 -0
- package/dist/cdn/{IL4TO3HW.js → M7ZANON3.js} +1 -1
- package/dist/cdn/{UVHDF33O.js → MCJTQ4YF.js} +1 -1
- package/dist/cdn/{WV7XTPHK.js → MEQOANO2.js} +1 -1
- package/dist/cdn/MLA3N4MI.js +2 -0
- package/dist/cdn/{CQRB56BW.js → MR7KELUF.js} +1 -1
- package/dist/cdn/{PZZLUH6L.js → MY2W3RH7.js} +1 -1
- package/dist/cdn/{7RRVJPTW.js → MYK7BBLS.js} +1 -1
- package/dist/cdn/{WSHLYTT6.js → N7D4B5LO.js} +1 -1
- package/dist/cdn/{CI7R2F5C.js → NFU76HOO.js} +1 -1
- package/dist/cdn/{2BGSZGPZ.js → NZVEN4LR.js} +1 -1
- package/dist/cdn/{JMV4L7WL.js → OEYB3NZZ.js} +1 -1
- package/dist/cdn/{U274OJKG.js → OKK5OJ6S.js} +1 -1
- package/dist/cdn/{LYGQJLFB.js → OS5TUH4X.js} +1 -1
- package/dist/cdn/PHUJHKPW.js +2 -0
- package/dist/cdn/{R3RNZJIN.js → PXTV6Y3K.js} +1 -1
- package/dist/cdn/{4S3UBB4K.js → QMJ75W7D.js} +1 -1
- package/dist/cdn/{CA5SZB65.js → QRJMT2DB.js} +1 -1
- package/dist/cdn/{KB5UMMBY.js → RKGAXZQB.js} +1 -1
- package/dist/cdn/{LVGR5T3E.js → RP2TRPHY.js} +1 -1
- package/dist/cdn/{UFB3GU6S.js → TT6WOAKC.js} +1 -1
- package/dist/cdn/{KVDM5PYB.js → UGOWEOTC.js} +1 -1
- package/dist/cdn/{3UBK3J76.js → UIU5UYBO.js} +1 -1
- package/dist/cdn/{YUZVGY4R.js → UYQBMPSN.js} +1 -1
- package/dist/cdn/V23GYHYZ.js +2 -0
- package/dist/cdn/{HZDQYG6D.js → VPJVWP7S.js} +1 -1
- package/dist/cdn/{AV73HH5X.js → XWJ4GDXQ.js} +1 -1
- package/dist/cdn/{OK4I2WDK.js → ZAAMSMQB.js} +1 -1
- package/dist/cdn/{HFPPW74G.js → ZCACFAKY.js} +1 -1
- package/dist/cdn/{SX4X3IVG.js → ZKZOXEXY.js} +1 -1
- package/dist/cdn/{EXCIMJOH.js → ZMBNBTJQ.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chart-rendering/common/interfaces.d.ts +0 -5
- package/dist/chunks/{type-guards3.js → action-bar-utils.js} +25 -33
- package/dist/chunks/axis-lines-symbol.js +7 -7
- package/dist/chunks/bar-chart-model.js +5 -5
- package/dist/chunks/box-plot-data.js +19 -19
- package/dist/chunks/box-plot-model.js +16 -16
- package/dist/chunks/chart-model.js +9 -9
- package/dist/chunks/combo-bar-line-chart-model.js +7 -7
- package/dist/chunks/data-labels-symbol.js +1 -1
- package/dist/chunks/data-labels-visibility.js +19 -19
- package/dist/chunks/gauge-model.js +13 -13
- package/dist/chunks/heat-chart-model.js +7 -7
- package/dist/chunks/histogram-data.js +26 -26
- package/dist/chunks/histogram-model.js +7 -7
- package/dist/chunks/index.js +174 -165
- package/dist/chunks/index2.js +1910 -1821
- package/dist/chunks/index3.js +17 -19
- package/dist/chunks/index4.js +38 -2
- package/dist/chunks/line-chart-model.js +4 -4
- package/dist/chunks/model-setter.js +1 -1
- package/dist/chunks/model-with-y-guides.js +23 -23
- package/dist/chunks/negative-values-stacked-to-baseline.js +12 -12
- package/dist/chunks/pie-chart-data.js +14 -14
- package/dist/chunks/pie-chart-model.js +17 -17
- package/dist/chunks/radar-chart-model.js +4 -4
- package/dist/chunks/scatterplot-model.js +13 -13
- package/dist/chunks/serial-chart-data.js +2 -2
- package/dist/chunks/serial-chart-model.js +18 -18
- package/dist/chunks/series-length.js +1 -1
- package/dist/chunks/series.js +1 -1
- package/dist/chunks/utils.js +13 -13
- package/dist/chunks/utils2.js +1 -1
- package/dist/chunks/web-component-utils.js +11 -11
- package/dist/chunks/x-bounds.js +15 -15
- package/dist/components/arcgis-chart/customElement.js +4997 -5137
- package/dist/components/arcgis-charts-action-bar/customElement.js +32 -29
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +113 -113
- package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guide/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-popover/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-line-chart-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +1 -1
- package/dist/components/arcgis-charts-info-modal/customElement.js +6 -6
- 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 +459 -457
- package/dist/json-schema/index.d.ts +35 -4
- package/dist/model/mixins/model-with-multi-axes.d.ts +1 -1
- package/dist/spec/data-source.d.ts +9 -2
- package/dist/utils/chart-config/converter/index.js +40 -40
- package/dist/utils/chart-config/utils/index.d.ts +2 -2
- package/dist/utils/data/interfaces.d.ts +4 -3
- package/dist/utils/defaults/index.d.ts +8 -1
- package/dist/utils/defaults/interfaces.d.ts +6 -1
- package/dist/utils/layer/query-parser/index.d.ts +1 -0
- package/dist/utils/type-guards/chart-types.d.ts +10 -0
- package/package.json +4 -4
- package/dist/cdn/2GEIEFIX.js +0 -2
- package/dist/cdn/35R7YJXM.js +0 -3
- package/dist/cdn/4NKFXLHB.js +0 -2
- package/dist/cdn/6ZIFXUKN.js +0 -45
- package/dist/cdn/D6WL3G34.js +0 -2
- package/dist/cdn/DYCCUVNT.js +0 -2
- package/dist/cdn/FDXN5BIJ.js +0 -2
- package/dist/cdn/GJKX6UCH.js +0 -2
- package/dist/cdn/KTRSRC2A.js +0 -2
- package/dist/cdn/O3N5YFJC.js +0 -2
- package/dist/cdn/OQ56CBAK.js +0 -2
- package/dist/cdn/RZRAOK3W.js +0 -2
- package/dist/cdn/UWAFXDFW.js +0 -2
- /package/dist/cdn/{HRUQXEFI.js → 22WGB4CQ.js} +0 -0
- /package/dist/cdn/{C4O77AVT.js → 3CGAUDYD.js} +0 -0
- /package/dist/cdn/{K25GJKPH.js → 3FZCVKWJ.js} +0 -0
- /package/dist/cdn/{4ASVJDBN.js → 3GVTYZ2I.js} +0 -0
- /package/dist/cdn/{RTVU7ANC.js → 4EBMUPEV.js} +0 -0
- /package/dist/cdn/{OZSAA5YQ.js → 4VL2SBHK.js} +0 -0
- /package/dist/cdn/{Q3ZQR5JF.js → 7WVTY3XI.js} +0 -0
- /package/dist/cdn/{VEXNULZX.js → A2NFOGT2.js} +0 -0
- /package/dist/cdn/{SWEIMWH2.js → ASZ6YFIL.js} +0 -0
- /package/dist/cdn/{7CGAXWPM.js → AZKX3FMB.js} +0 -0
- /package/dist/cdn/{O25MQAZU.js → AZMQPJO3.js} +0 -0
- /package/dist/cdn/{6RG6AF7N.js → CDJRYMBP.js} +0 -0
- /package/dist/cdn/{ZCAHK6VZ.js → CHMLTTRN.js} +0 -0
- /package/dist/cdn/{BAPR67OA.js → CL5G6D6W.js} +0 -0
- /package/dist/cdn/{WWIRRYDD.js → CMGCZ4MF.js} +0 -0
- /package/dist/cdn/{Q5E66RNY.js → CVJSVWF3.js} +0 -0
- /package/dist/cdn/{MDPDU2BA.js → D3KIBJKD.js} +0 -0
- /package/dist/cdn/{GZZJATH3.js → DJPMW6UC.js} +0 -0
- /package/dist/cdn/{2R5BXKVB.js → EXS2KOEA.js} +0 -0
- /package/dist/cdn/{ZYK5XBZK.js → GP3LPIRJ.js} +0 -0
- /package/dist/cdn/{57VIC2YX.js → HBOYEK6P.js} +0 -0
- /package/dist/cdn/{GEHO65XE.js → HQMOMCWF.js} +0 -0
- /package/dist/cdn/{7MEYUIY2.js → HSQ32NUA.js} +0 -0
- /package/dist/cdn/{DGJATKEL.js → IUOORM26.js} +0 -0
- /package/dist/cdn/{R6XIGSQS.js → JZ5HUNM5.js} +0 -0
- /package/dist/cdn/{RLCLIRL6.js → KOCZJFY6.js} +0 -0
- /package/dist/cdn/{XVK4ONRA.js → LHDBHPXR.js} +0 -0
- /package/dist/cdn/{YS73YUW5.js → MVCB4RM7.js} +0 -0
- /package/dist/cdn/{TQLMPVI5.js → MZ2RZ62O.js} +0 -0
- /package/dist/cdn/{F7IPTEHX.js → OSUM4CWA.js} +0 -0
- /package/dist/cdn/{AFE4UMQE.js → PAQGR4DD.js} +0 -0
- /package/dist/cdn/{HWHKCIYW.js → PEEVY5UG.js} +0 -0
- /package/dist/cdn/{XWLP2CHH.js → TGEHTOWR.js} +0 -0
- /package/dist/cdn/{3UDKG6TV.js → TSSN2OW3.js} +0 -0
- /package/dist/cdn/{L5J4TYCU.js → UB36FUCN.js} +0 -0
- /package/dist/cdn/{JEW6MSOC.js → V7AEHY25.js} +0 -0
- /package/dist/cdn/{JNFMKAES.js → VNNTABNO.js} +0 -0
- /package/dist/cdn/{X6QMN2HV.js → VT6X6QMA.js} +0 -0
- /package/dist/cdn/{R6T7WJQJ.js → WKQB6Z7Z.js} +0 -0
|
@@ -4949,15 +4949,24 @@
|
|
|
4949
4949
|
WebChartDataItemValue: {
|
|
4950
4950
|
anyOf: ({
|
|
4951
4951
|
type: string;
|
|
4952
|
-
|
|
4952
|
+
items: {
|
|
4953
|
+
type: string[];
|
|
4954
|
+
$ref?: undefined;
|
|
4955
|
+
};
|
|
4956
|
+
format?: undefined;
|
|
4953
4957
|
$ref?: undefined;
|
|
4958
|
+
not?: undefined;
|
|
4959
|
+
} | {
|
|
4960
|
+
type: string;
|
|
4961
|
+
format: string;
|
|
4954
4962
|
items?: undefined;
|
|
4963
|
+
$ref?: undefined;
|
|
4955
4964
|
not?: undefined;
|
|
4956
4965
|
} | {
|
|
4957
4966
|
$ref: string;
|
|
4958
4967
|
type?: undefined;
|
|
4959
|
-
format?: undefined;
|
|
4960
4968
|
items?: undefined;
|
|
4969
|
+
format?: undefined;
|
|
4961
4970
|
not?: undefined;
|
|
4962
4971
|
} | {
|
|
4963
4972
|
type: string;
|
|
@@ -4979,16 +4988,16 @@
|
|
|
4979
4988
|
not?: undefined;
|
|
4980
4989
|
} | {
|
|
4981
4990
|
type: string;
|
|
4991
|
+
items?: undefined;
|
|
4982
4992
|
format?: undefined;
|
|
4983
4993
|
$ref?: undefined;
|
|
4984
|
-
items?: undefined;
|
|
4985
4994
|
not?: undefined;
|
|
4986
4995
|
} | {
|
|
4987
4996
|
not: {};
|
|
4988
4997
|
type?: undefined;
|
|
4998
|
+
items?: undefined;
|
|
4989
4999
|
format?: undefined;
|
|
4990
5000
|
$ref?: undefined;
|
|
4991
|
-
items?: undefined;
|
|
4992
5001
|
})[];
|
|
4993
5002
|
title: string;
|
|
4994
5003
|
};
|
|
@@ -5068,6 +5077,28 @@
|
|
|
5068
5077
|
description: string;
|
|
5069
5078
|
title: string;
|
|
5070
5079
|
};
|
|
5080
|
+
WebChartGaugeChartDataItem: {
|
|
5081
|
+
type: string;
|
|
5082
|
+
properties: {
|
|
5083
|
+
dataItems: {
|
|
5084
|
+
type: string;
|
|
5085
|
+
items: {
|
|
5086
|
+
$ref: string;
|
|
5087
|
+
};
|
|
5088
|
+
};
|
|
5089
|
+
calculatedAxisMinimum: {
|
|
5090
|
+
type: string;
|
|
5091
|
+
};
|
|
5092
|
+
calculatedAxisMaximum: {
|
|
5093
|
+
type: string;
|
|
5094
|
+
};
|
|
5095
|
+
gaugeValue: {
|
|
5096
|
+
type: string;
|
|
5097
|
+
};
|
|
5098
|
+
};
|
|
5099
|
+
required: string[];
|
|
5100
|
+
title: string;
|
|
5101
|
+
};
|
|
5071
5102
|
ScatterplotTrendLineData: {
|
|
5072
5103
|
type: string;
|
|
5073
5104
|
properties: {
|
|
@@ -240,7 +240,7 @@ export abstract class ModelWithMultiAxes extends ChartModel {
|
|
|
240
240
|
* **Note:** To set the grid lines symbol for the secondary Y-axis (axisIndex 2), ensure there is a second Y-axis in the chart by using the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
|
|
241
241
|
*
|
|
242
242
|
* @param linesSymbol - The grid lines symbol.
|
|
243
|
-
* @param axisIndices - The indices of the axes to set the grid lines symbol for.
|
|
243
|
+
* @param axisIndices - The indices of the axes to set the grid lines symbol for. If omitted, the symbol is applied to all axes.
|
|
244
244
|
*/
|
|
245
245
|
setGridLinesSymbol(linesSymbol: ISimpleLineSymbol | undefined, axisIndices?: number[]): void;
|
|
246
246
|
/**
|
|
@@ -28,7 +28,7 @@ export type IRendererSymbol = ISymbol
|
|
|
28
28
|
|
|
29
29
|
export type WebChartDataItemColor = Color | RGBArray | RGBObject | string;
|
|
30
30
|
|
|
31
|
-
export type WebChartDataItemValue = Date | IExtent | IRendererSymbol | number[] | string[] | WebChartDataItem[] | WebChartDataItemColor | boolean | number | string | null | undefined;
|
|
31
|
+
export type WebChartDataItemValue = (number | string)[] | Date | IExtent | IRendererSymbol | number[] | string[] | WebChartDataItem[] | WebChartDataItemColor | boolean | number | string | null | undefined;
|
|
32
32
|
|
|
33
33
|
/** JSON representation of a typical data item. */
|
|
34
34
|
export type WebChartDataItem = Record<string, WebChartDataItemValue>;
|
|
@@ -47,6 +47,13 @@ export interface WebChartHeatChartDataItem {
|
|
|
47
47
|
heatChartAxesData?: WebHeatChartAxesData;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
+
export interface WebChartGaugeChartDataItem {
|
|
51
|
+
dataItems: WebChartDataItem[];
|
|
52
|
+
calculatedAxisMinimum?: number;
|
|
53
|
+
calculatedAxisMaximum?: number;
|
|
54
|
+
gaugeValue?: number;
|
|
55
|
+
}
|
|
56
|
+
|
|
50
57
|
/** JSON representation of the processed data for a scatterplot trend line. */
|
|
51
58
|
export interface ScatterplotTrendLineData {
|
|
52
59
|
r2?: number;
|
|
@@ -117,6 +124,6 @@ export interface WebChartHistogramDataItem {
|
|
|
117
124
|
bins: WebChartBin[];
|
|
118
125
|
}
|
|
119
126
|
|
|
120
|
-
export type WebChartDataTypes = WebChartBoxPlotDataItem | WebChartGenericDataItem | WebChartHeatChartDataItem | WebChartHistogramDataItem | WebChartScatterplotDataItem;
|
|
127
|
+
export type WebChartDataTypes = WebChartBoxPlotDataItem | WebChartGaugeChartDataItem | WebChartGenericDataItem | WebChartHeatChartDataItem | WebChartHistogramDataItem | WebChartScatterplotDataItem;
|
|
121
128
|
|
|
122
129
|
export type RGBArray = [number, number, number];
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { getElementLocale as
|
|
3
|
-
import { cloneDeep as n, isEmpty as
|
|
2
|
+
import { getElementLocale as ze } from "@arcgis/toolkit/intl/dom";
|
|
3
|
+
import { cloneDeep as n, isEmpty as B } from "lodash-es";
|
|
4
4
|
import { DateTime as He } from "luxon";
|
|
5
|
-
import { af as $e, Q as oe, Z as Qe,
|
|
6
|
-
import { W as tt,
|
|
5
|
+
import { af as $e, Q as oe, Z as Qe, ct as se, cU as ne, c3 as Ye, ac as Ke, Y as O, bg as Xe, O as b, bF as ee, aG as Ze, aH as Je, m as Z, h as Ue, w as et } from "../../../chunks/index2.js";
|
|
6
|
+
import { W as tt, aB as rt, g as it, G as ot, ag as st } from "../../../chunks/index.js";
|
|
7
7
|
import { d as nt } from "../../../chunks/type-guards.js";
|
|
8
8
|
import { C as f, h as k, q as ae } from "../../../chunks/index3.js";
|
|
9
9
|
import { h as at, o as dt, s as lt } from "../../../chunks/index5.js";
|
|
10
|
-
import { g as
|
|
10
|
+
import { g as h } from "../../../chunks/series-types.js";
|
|
11
11
|
import { v as te, u as c, r as F, n as p, p as v, f as ct, j as re, s as C } from "../../../chunks/chart-object-literals.js";
|
|
12
12
|
import { p as ut, e as ft, f as pt, h as yt } from "../../../chunks/class-breaks.js";
|
|
13
13
|
var L = /* @__PURE__ */ ((r) => (r.NONE = "none", r.ROTATE = "rotate", r.STAGGER = "stagger", r.WRAP = "wrap", r))(L || {});
|
|
14
14
|
function de(r) {
|
|
15
15
|
const { configToUpdate: e, chartContainer: i, layer: t } = r, o = n(e);
|
|
16
16
|
if (t?.capabilities?.queryAttributeBins?.supportsFirstDayOfWeek === !0 && (!("firstDayOfWeek" in e) || e.firstDayOfWeek === void 0 || e.firstDayOfWeek === null)) {
|
|
17
|
-
const { lang: s } =
|
|
17
|
+
const { lang: s } = ze(i ?? document.documentElement);
|
|
18
18
|
try {
|
|
19
19
|
o.firstDayOfWeek = He.local().setLocale(s.replaceAll("_", "-")).startOf("week", { useLocaleWeeks: !0 }).weekday;
|
|
20
20
|
} catch {
|
|
@@ -42,17 +42,17 @@ function mt(r) {
|
|
|
42
42
|
}
|
|
43
43
|
function le(r) {
|
|
44
44
|
const e = n(r);
|
|
45
|
-
return
|
|
45
|
+
return B(r.axes) || (e.axes = r.axes?.map((i) => {
|
|
46
46
|
const t = i;
|
|
47
47
|
return delete t.calculateAutomaticMaximum, delete t.calculateAutomaticMinimum, t.title?.content.font?.style !== void 0 && (t.title.content.font.style = t.title.content.font.style.toLowerCase()), t;
|
|
48
48
|
})), e;
|
|
49
49
|
}
|
|
50
50
|
function ce(r) {
|
|
51
51
|
const e = n(r);
|
|
52
|
-
return
|
|
52
|
+
return B(r.series) || (e.series = r.series.map((i, t) => {
|
|
53
53
|
const o = i;
|
|
54
54
|
i.id === void 0 && (o.id = `Series ${Date.now()}-${t}`);
|
|
55
|
-
const s =
|
|
55
|
+
const s = h(r.series, t);
|
|
56
56
|
return (s === c.BarSeries || s === c.LineSeries || s === c.RadarSeries) && o.query?.outStatistics?.[0]?.statisticType === "median" && (o.query.outStatistics[0].statisticType = F.ContinuousPercentile), s === c.BarSeries && o.multipleBarType !== void 0 && (o.stackedType = o.multipleBarType, delete o.multipleBarType), s === c.PieSeries && o.sliceGrouping !== void 0 && (o.sliceGrouping.sliceId = rt.defaultGroupOfSlicesId, o.sliceGrouping.groupName !== void 0 && (o.sliceGrouping = {
|
|
57
57
|
...o.sliceGrouping,
|
|
58
58
|
label: o.sliceGrouping.groupName
|
|
@@ -87,10 +87,10 @@ async function ue(r) {
|
|
|
87
87
|
a && (s = await Ke(a, t));
|
|
88
88
|
}
|
|
89
89
|
if (s) {
|
|
90
|
-
const a = O(o.series), u =
|
|
90
|
+
const a = O(o.series), u = h(o.series), y = o.series && o.series.length > 0 && o.series[0].x.trim() === "" || u === c.GaugeSeries && !Xe(e) || a === f.PieFromFields || a === f.BarAndLineFromFields || a === f.BoxPlotMonoField || a === f.BoxPlotMonoFieldAndSplitBy || a === f.BoxPlotMultiFields || a === f.BoxPlotMultiFieldsAndSplitBy, je = u === c.ScatterSeries || u === c.HeatSeries || a === f.BarAndLineNoAggregation || a === f.BarAndLineSplitByNoAggregation || a === f.BoxPlotMonoField || a === f.BoxPlotMonoFieldAndSplitBy || a === f.BoxPlotMonoFieldAndCategory || a === f.BoxPlotMonoFieldAndCategoryAndSplitBy || a === f.PieNoAggregation;
|
|
91
91
|
if (o.series = e.series.map((l) => {
|
|
92
92
|
const d = { ...l };
|
|
93
|
-
if (y || (d.x = b({ queryObject: s, fieldToMatch: l.x })), "y" in d &&
|
|
93
|
+
if (y || (d.x = b({ queryObject: s, fieldToMatch: l.x })), "y" in d && je) {
|
|
94
94
|
const m = d.y;
|
|
95
95
|
if (Array.isArray(m)) {
|
|
96
96
|
const S = ee({
|
|
@@ -152,7 +152,7 @@ async function ue(r) {
|
|
|
152
152
|
}
|
|
153
153
|
function fe(r) {
|
|
154
154
|
const e = n(r);
|
|
155
|
-
if (!
|
|
155
|
+
if (!B(r.series) && h(r.series) === c.BoxPlotSeries) {
|
|
156
156
|
const t = e.series[0];
|
|
157
157
|
t && (t.showOutliers !== void 0 && (r.showOutliers === void 0 && (e.showOutliers = t.showOutliers), delete t.showOutliers), t.standardizeValues !== void 0 && (r.standardizeValues === void 0 && (e.standardizeValues = t.standardizeValues), delete t.standardizeValues), t.showMean !== void 0 && (r.showMean === void 0 && (e.showMean = t.showMean), delete t.showMean));
|
|
158
158
|
}
|
|
@@ -176,7 +176,7 @@ function ye(r) {
|
|
|
176
176
|
}
|
|
177
177
|
function me(r) {
|
|
178
178
|
const e = n(r);
|
|
179
|
-
if (!
|
|
179
|
+
if (!B(e.series) && h(r.series) === c.BoxPlotSeries) {
|
|
180
180
|
if (e.orderOptions?.data === void 0) {
|
|
181
181
|
const t = pe(r.series[0]);
|
|
182
182
|
t.orderType !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = {
|
|
@@ -186,7 +186,7 @@ function me(r) {
|
|
|
186
186
|
}
|
|
187
187
|
if (e.series = r.series.map((t) => {
|
|
188
188
|
const o = t;
|
|
189
|
-
return
|
|
189
|
+
return B(o.x?.trim()) && (o.x = it), delete o.query?.orderByFields, o;
|
|
190
190
|
}), ye(e)) {
|
|
191
191
|
e.showMean = !0;
|
|
192
192
|
const t = e.series.find(
|
|
@@ -218,7 +218,7 @@ function ve(r) {
|
|
|
218
218
|
i.has(s) && (s = `${s}_${Date.now()}`, o.id = s), i.add(s);
|
|
219
219
|
}), e;
|
|
220
220
|
}
|
|
221
|
-
async function
|
|
221
|
+
async function Be(r) {
|
|
222
222
|
const { configToUpdate: e, layer: i, chartContainer: t, abortSignal: o } = r;
|
|
223
223
|
let s = n(e);
|
|
224
224
|
if (s = le(s), s = ce(s), s = await ue({ configToUpdate: s, layer: i, abortSignal: o }), se(s)) {
|
|
@@ -227,7 +227,7 @@ async function he(r) {
|
|
|
227
227
|
}
|
|
228
228
|
return s = Se(s), s = ve(s), ne(s) && !nt(i) && (s = de({ configToUpdate: s, chartContainer: t, layer: i })), s;
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function he(r) {
|
|
231
231
|
const e = n(r);
|
|
232
232
|
return e?.orderOptions?.orderByFields !== void 0 && O(r.series) === f.PieFromFields && (e.orderOptions.orderByFields = r?.orderOptions?.orderByFields?.map(
|
|
233
233
|
(i) => {
|
|
@@ -241,7 +241,7 @@ function Be(r) {
|
|
|
241
241
|
}
|
|
242
242
|
function Ce(r) {
|
|
243
243
|
const e = n(r);
|
|
244
|
-
if (!
|
|
244
|
+
if (!B(r.series) && e.axes?.[0] !== void 0 && h(r.series) === c.GaugeSeries && r.axes?.[0] !== void 0) {
|
|
245
245
|
const t = r.axes[0];
|
|
246
246
|
t.ticks !== void 0 && Object.hasOwn(t.ticks, "spacing") && delete t.ticks.spacing, e.axes[0] = t;
|
|
247
247
|
}
|
|
@@ -258,13 +258,13 @@ function be(r) {
|
|
|
258
258
|
}
|
|
259
259
|
function J(r) {
|
|
260
260
|
const e = n(r);
|
|
261
|
-
return
|
|
261
|
+
return B(r.series) || (dt(r) && r.rotated === void 0 && (e.rotated = r.series[0].rotated ?? ot()), e.series.forEach((i) => {
|
|
262
262
|
i.rotated !== void 0 && delete i.rotated;
|
|
263
263
|
})), e;
|
|
264
264
|
}
|
|
265
265
|
function Fe(r) {
|
|
266
266
|
const e = n(r), i = r.dataSource;
|
|
267
|
-
return "dataSource" in e && !
|
|
267
|
+
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;
|
|
268
268
|
}
|
|
269
269
|
function Te(r) {
|
|
270
270
|
const e = n(r);
|
|
@@ -300,7 +300,7 @@ function U(r) {
|
|
|
300
300
|
}
|
|
301
301
|
function Oe(r) {
|
|
302
302
|
const e = n(r);
|
|
303
|
-
if (!
|
|
303
|
+
if (!B(r.series) && h(r.series) === c.PieSeries) {
|
|
304
304
|
const t = e.series[0];
|
|
305
305
|
if (t) {
|
|
306
306
|
if (t.sortLabelsBy === "originalValue")
|
|
@@ -316,7 +316,7 @@ function Oe(r) {
|
|
|
316
316
|
}
|
|
317
317
|
function ke(r) {
|
|
318
318
|
const e = n(r);
|
|
319
|
-
return
|
|
319
|
+
return B(r.series) || (lt(r) && r.stackedType === void 0 && (e.stackedType = r.series[0].stackedType ?? st()), e.series.forEach((i) => {
|
|
320
320
|
"stackedType" in i && delete i.stackedType;
|
|
321
321
|
})), e;
|
|
322
322
|
}
|
|
@@ -377,7 +377,7 @@ function De(r) {
|
|
|
377
377
|
function P(r) {
|
|
378
378
|
let e, i = r.orderOptions?.orderByFields?.[0];
|
|
379
379
|
if (r.series?.length > 0) {
|
|
380
|
-
const t =
|
|
380
|
+
const t = h(r.series), o = O(r.series);
|
|
381
381
|
if (t !== c.PieSeries && o !== f.BarAndLineFromFields && (i = i ?? r.series[0].x), i && !ae(i)) {
|
|
382
382
|
const { fieldToSort: s, orderBy: a } = k(i);
|
|
383
383
|
let u;
|
|
@@ -400,7 +400,7 @@ function Me(r) {
|
|
|
400
400
|
}), t.sortLabelsBy === "originalValue" || s.orderOptions?.data?.preferDataLabel === !1 || a.orderOptions?.data?.preferLabel === !1)
|
|
401
401
|
e.orderOptions?.data && delete e.orderOptions.data;
|
|
402
402
|
else if (e.orderOptions?.data === void 0)
|
|
403
|
-
if (
|
|
403
|
+
if (h(e.series) === c.BoxPlotSeries) {
|
|
404
404
|
if (t.sortLabelsBy || o.sortOptions?.sortDataBy !== void 0) {
|
|
405
405
|
const y = U(o.sortOptions?.sortDataBy?.sortType);
|
|
406
406
|
y && y !== p.MultiAxes && (e.orderOptions ??= {}, e.orderOptions.data = {
|
|
@@ -493,7 +493,7 @@ function Ve(r) {
|
|
|
493
493
|
}
|
|
494
494
|
function Ge(r) {
|
|
495
495
|
let e = n(r);
|
|
496
|
-
return e =
|
|
496
|
+
return e = he(e), e;
|
|
497
497
|
}
|
|
498
498
|
function w(r) {
|
|
499
499
|
let e = n(r);
|
|
@@ -540,13 +540,13 @@ function V(r) {
|
|
|
540
540
|
function G(r) {
|
|
541
541
|
return Me(r);
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function _(r) {
|
|
544
544
|
return ge(r);
|
|
545
545
|
}
|
|
546
|
-
function
|
|
546
|
+
function j(r) {
|
|
547
547
|
return Ie(r);
|
|
548
548
|
}
|
|
549
|
-
function
|
|
549
|
+
function z(r) {
|
|
550
550
|
return We(r);
|
|
551
551
|
}
|
|
552
552
|
function H(r) {
|
|
@@ -571,10 +571,10 @@ function X(r) {
|
|
|
571
571
|
let e = n(r);
|
|
572
572
|
return e = mt(e), e;
|
|
573
573
|
}
|
|
574
|
-
function
|
|
574
|
+
function _e(r) {
|
|
575
575
|
const { versionsToConvert: e, configToUpdate: i } = r;
|
|
576
576
|
let t = n(i);
|
|
577
|
-
return e.length > 0 && t !== void 0 && (t = De(t), e.includes(oe) || e.includes(Ye) ? (t = Ge(t), t = w(t), t = A(t), t = D(t), t = M(t), t = I(t), t = W(t), t = q(t), t = R(t), t = E(t), t = N(t), t = V(t), t = G(t), t =
|
|
577
|
+
return e.length > 0 && t !== void 0 && (t = De(t), e.includes(oe) || e.includes(Ye) ? (t = Ge(t), t = w(t), t = A(t), t = D(t), t = M(t), t = I(t), t = W(t), t = q(t), t = R(t), t = E(t), t = N(t), t = V(t), t = G(t), t = _(t), t = j(t), t = z(t), t = H(t), t = $(t), t = Q(t), t = Y(t), t = K(t), t = X(t)) : e.forEach((o) => {
|
|
578
578
|
if (t !== void 0)
|
|
579
579
|
switch (o) {
|
|
580
580
|
case "1.0.1":
|
|
@@ -614,13 +614,13 @@ function ze(r) {
|
|
|
614
614
|
t = G(t);
|
|
615
615
|
break;
|
|
616
616
|
case "16.0.0":
|
|
617
|
-
t =
|
|
617
|
+
t = _(t);
|
|
618
618
|
break;
|
|
619
619
|
case "16.1.0":
|
|
620
|
-
t =
|
|
620
|
+
t = j(t);
|
|
621
621
|
break;
|
|
622
622
|
case "18.1.3":
|
|
623
|
-
t =
|
|
623
|
+
t = z(t);
|
|
624
624
|
break;
|
|
625
625
|
case "20.1.0":
|
|
626
626
|
t = H(t);
|
|
@@ -647,9 +647,9 @@ async function Pt(r, e, i, t) {
|
|
|
647
647
|
let o = r;
|
|
648
648
|
if (r) {
|
|
649
649
|
const s = $e(e);
|
|
650
|
-
await s?.load({ signal: t }), o = await
|
|
650
|
+
await s?.load({ signal: t }), o = await Be({ configToUpdate: r, layer: s, chartContainer: i, abortSignal: t });
|
|
651
651
|
const a = r.version ?? oe, { versionStatus: u, versions: y } = Qe(a);
|
|
652
|
-
(u === te.Older || u === te.Unrecognized) && (o =
|
|
652
|
+
(u === te.Older || u === te.Unrecognized) && (o = _e({
|
|
653
653
|
versionsToConvert: y,
|
|
654
654
|
configToUpdate: o
|
|
655
655
|
}));
|
|
@@ -665,7 +665,7 @@ const Lt = {
|
|
|
665
665
|
moveSeriesRotatedPropToChart: J,
|
|
666
666
|
renameDataSourceProperties: Fe,
|
|
667
667
|
copyDataSourceFilterToConfig: Te,
|
|
668
|
-
adjustPieFromFieldsDefaultNameAndValue:
|
|
668
|
+
adjustPieFromFieldsDefaultNameAndValue: he,
|
|
669
669
|
removeSpacingPropertyFromGauge: Ce,
|
|
670
670
|
moveBoxPlotSeriesPropsToChart: fe,
|
|
671
671
|
movePieSeriesSortLabelsPropToChart: Oe,
|
|
@@ -688,7 +688,7 @@ const Lt = {
|
|
|
688
688
|
convertTemporalBinningProps: qe,
|
|
689
689
|
convertRESTStatisticTypeToWebChartStatisticType: Re,
|
|
690
690
|
renameChartSubtitle: Ee,
|
|
691
|
-
applyMandatoryConversions:
|
|
691
|
+
applyMandatoryConversions: Be,
|
|
692
692
|
convertTo1x0x1: Ge,
|
|
693
693
|
convertTo2x0x0: w,
|
|
694
694
|
convertTo3x5x0: A,
|
|
@@ -702,9 +702,9 @@ const Lt = {
|
|
|
702
702
|
convertTo11x0x0: N,
|
|
703
703
|
convertTo12x0x0: V,
|
|
704
704
|
convertTo15x0x0: G,
|
|
705
|
-
convertTo16x1x0:
|
|
706
|
-
convertTo16x1x1:
|
|
707
|
-
convertTo19x0x0:
|
|
705
|
+
convertTo16x1x0: _,
|
|
706
|
+
convertTo16x1x1: j,
|
|
707
|
+
convertTo19x0x0: z,
|
|
708
708
|
convertTo20x2x0: H,
|
|
709
709
|
convertTo21x1x0: $,
|
|
710
710
|
convertTo23x3x0: Q,
|
|
@@ -713,7 +713,7 @@ const Lt = {
|
|
|
713
713
|
convertTo25x1x0: X,
|
|
714
714
|
convertTemporalBinningProps2: Ne,
|
|
715
715
|
transformPropsInHeatChart: Ve,
|
|
716
|
-
applyConversions:
|
|
716
|
+
applyConversions: _e,
|
|
717
717
|
convertDataSourceToILayer: ge,
|
|
718
718
|
applyDefaultFirstDayOfWeek: de
|
|
719
719
|
};
|
|
@@ -1,5 +1,7 @@
|
|
|
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";
|
|
2
3
|
import type { WebChartTypes, WebChartVersionStatus } from "../../../spec/chart-object-literals.js";
|
|
4
|
+
import type { WebChartBin, WebChartDataItem } from "../../../spec/data-source.js";
|
|
3
5
|
import type { RESTSymbolType } from "../../../spec/rest-js-object-literals.js";
|
|
4
6
|
import type { IField } from "../../../spec/rest-js-types.js";
|
|
5
7
|
import type { WebBoxPlot, WebChart, WebChartLegend, WebChartSeriesType, WebHeatChart } from "../../../spec/web-chart.js";
|
|
@@ -8,8 +10,6 @@ import type { ChartElementLimit } from "../../defaults/interfaces.js";
|
|
|
8
10
|
import type { QueryObjectOrRaster as QueryObject } from "../../layer/interfaces.js";
|
|
9
11
|
import type { ChartSubType, SelectionData } from "../../misc/interfaces.js";
|
|
10
12
|
import type { WebChartSeriesSupportingTemporalBinning } from "./interfaces.js";
|
|
11
|
-
import type { ChartOptions } from "../../../chart-rendering/common/interfaces.js";
|
|
12
|
-
import type { WebChartBin, WebChartDataItem } from "../../../spec/data-source.js";
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Retrieve and construct chart version information based on the input version and the currently supported ArcGIS Chart versions
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { GaugeMinMaxFromData } from "../../chart-rendering/common/interfaces.js";
|
|
2
1
|
import type { WebChartDataTypes } from "../../spec/data-source.js";
|
|
3
2
|
import type { WebChartQuery } from "../../spec/web-chart.js";
|
|
4
3
|
import type { DataWarningKeywords } from "../chart-config/validator/interfaces.js";
|
|
@@ -19,7 +18,6 @@ export interface DataInfo {
|
|
|
19
18
|
count?: number;
|
|
20
19
|
data?: WebChartDataTypes;
|
|
21
20
|
queryConfig?: WebChartQuery;
|
|
22
|
-
gaugeMinMaxFromData?: GaugeMinMaxFromData;
|
|
23
21
|
}
|
|
24
22
|
|
|
25
23
|
/** @internal */
|
|
@@ -65,7 +63,10 @@ export interface DataUpdateDetails {
|
|
|
65
63
|
valueFormatChangeRequiresNewData?: boolean;
|
|
66
64
|
};
|
|
67
65
|
histogram?: { dataPropsChanged?: boolean; };
|
|
68
|
-
gauge?: {
|
|
66
|
+
gauge?: {
|
|
67
|
+
valueConversionChanged?: boolean;
|
|
68
|
+
minMaxFromFieldsChanged?: boolean;
|
|
69
|
+
};
|
|
69
70
|
boxPlot?: { showMeanChanged?: boolean; };
|
|
70
71
|
heatChart?: {
|
|
71
72
|
binningChanged?: boolean;
|
|
@@ -2,7 +2,7 @@ import type { WebChartStackedKinds, WebChartTypes } from "../../spec/chart-objec
|
|
|
2
2
|
import type { Color, IFont, ISimpleFillSymbol, ISimpleLineSymbol, ISimpleMarkerSymbol } from "../../spec/rest-js-types.js";
|
|
3
3
|
import type { CategoryFormatOptions, DateTimeFormatOptions, HistogramOverlays, NumberFormatOptions, ScatterplotOverlays, SizePolicy, WebBoxPlot, WebChart, WebChartAxis, WebChartBarChartSeries, WebChartBoxPlotSeries, WebChartCursorCrosshair, WebChartGaugeAxis, WebChartGaugeSeries, WebChartHeatChartSeries, WebChartHistogramSeries, WebChartLegend, WebChartLineChartSeries, WebChartNeedle, WebChartOverlay, WebChartPieChartSeries, WebChartPieChartTick, WebChartRadarChartSeries, WebChartScatterplotSeries, WebChartText, WebChartTextSymbol, WebGaugeChart, WebHeatChart } from "../../spec/web-chart.js";
|
|
4
4
|
import type { CommonStrings } from "../localization/interfaces.js";
|
|
5
|
-
import type { ChartElementLimit, ChartElementTechnicalLimit, ChartTextProps, QueryDefaults, TextElements } from "./interfaces.js";
|
|
5
|
+
import type { ChartElementLimit, ChartElementTechnicalLimit, ChartTextProps, GaugeChartDefaults, QueryDefaults, TextElements } from "./interfaces.js";
|
|
6
6
|
|
|
7
7
|
/** @internal */
|
|
8
8
|
export const histogramBinCount: 32;
|
|
@@ -64,6 +64,13 @@ export const defaultHeatChartNumberOfBreaks: {
|
|
|
64
64
|
max: number;
|
|
65
65
|
};
|
|
66
66
|
|
|
67
|
+
export const gaugeDefaults: GaugeChartDefaults;
|
|
68
|
+
|
|
69
|
+
export const gaugeSpecialIds: {
|
|
70
|
+
gaugeFirstLabelId: string;
|
|
71
|
+
gaugeLastLabelId: string;
|
|
72
|
+
};
|
|
73
|
+
|
|
67
74
|
/**
|
|
68
75
|
* default color set from Pro
|
|
69
76
|
*
|
|
@@ -79,4 +79,9 @@ export const TextElements: {
|
|
|
79
79
|
};
|
|
80
80
|
|
|
81
81
|
/** @internal */
|
|
82
|
-
export type TextElements = (typeof TextElements)[keyof typeof TextElements];
|
|
82
|
+
export type TextElements = (typeof TextElements)[keyof typeof TextElements];
|
|
83
|
+
|
|
84
|
+
export interface GaugeChartDefaults {
|
|
85
|
+
axisMinimum: number;
|
|
86
|
+
axisMaximum: number;
|
|
87
|
+
}
|
|
@@ -86,6 +86,7 @@ export function mapAttributeBinsQueryForTemporalData(props: {
|
|
|
86
86
|
dateField: string;
|
|
87
87
|
splitByField?: string;
|
|
88
88
|
axisTimeZone?: string;
|
|
89
|
+
returnStatisticsAggregatedIds: boolean;
|
|
89
90
|
view?: ChartOptions["view"];
|
|
90
91
|
syncViewTimeZone?: ChartOptions["syncViewTimeZone"];
|
|
91
92
|
}): AttributeBinsQuery;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { WebChart } from "../../spec/web-chart.js";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Check the `subType` in the chart config to determine whether the chart is a gauge by feature.
|
|
5
|
+
* If `subType` is not defined, the chart is defaulted to be a statistic gauge.
|
|
6
|
+
*
|
|
7
|
+
* @param config - the chart config
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export function isGaugeByFeature(config: WebChart): boolean;
|
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.56",
|
|
4
4
|
"description": "Reusable ArcGIS charting Web Components.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@amcharts/amcharts4": "^4.10.31",
|
|
32
|
-
"@amcharts/amcharts5": "~5.
|
|
32
|
+
"@amcharts/amcharts5": "~5.20.0",
|
|
33
33
|
"@esri/arcgis-html-sanitizer": "~4.1.0",
|
|
34
34
|
"@lit/task": "^1.0.3",
|
|
35
35
|
"@zumer/snapdom": "^2.12.9",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"luxon": "~3.7.2",
|
|
42
42
|
"simple-statistics": "^7.8.8",
|
|
43
43
|
"tslib": "^2.8.1",
|
|
44
|
-
"@arcgis/
|
|
45
|
-
"@arcgis/
|
|
44
|
+
"@arcgis/lumina": "5.2.0-next.56",
|
|
45
|
+
"@arcgis/toolkit": "5.2.0-next.56"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"@arcgis/core": "^5.2.0-next",
|
package/dist/cdn/2GEIEFIX.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import u from"./LYGQJLFB.js";import{a as ae}from"./L7CMLBHB.js";import{a as ie}from"./AZHBGLOD.js";import{a as k}from"./CHZMNR2R.js";import{a as se}from"./IHO3OLL3.js";import t from"./B5MGM6AD.js";import{a as $,b as W,e as ee}from"./OBPAQN4H.js";import{a as f}from"./IVLVCLDE.js";import s from"./WV7XTPHK.js";import{d as n}from"./JYC77MVD.js";import{a as P}from"./MBL6ZAKF.js";import r from"./QM25LJL6.js";import q from"./YUZVGY4R.js";import p from"./OQ56CBAK.js";import{a as J}from"./4CNIERJX.js";import m from"./UWAFXDFW.js";import l from"./JT5VM5N6.js";import j from"./ORKE6J33.js";import i from"./IZMUEFG7.js";import{b as B,c as L,i as Y,l as w,p as D}from"./QYNNPEED.js";import g from"./4N76NKSQ.js";import"./4HW6IYHV.js";import e from"./3WDEAWZX.js";import d from"./H6B2SK7Y.js";import b from"./O3N5YFJC.js";import"./ZALJA7E5.js";import a from"./35R7YJXM.js";import{C as v,c as R,q as T}from"./223CX3CX.js";import{d as x,e as O}from"./BGOWDCTO.js";import"./FDXN5BIJ.js";import"./KX7KGXKQ.js";import{l as S}from"./SP2IPHWF.js";import"./HMBXRL4X.js";import{A as V,B as _,C as h,D as z,F as M,H as U,g as N,i as c,n as C,z as A}from"./5DUKB563.js";import"./NYFHPR6N.js";import"./QP5UAIC6.js";import"./QJMUS3VS.js";import{a as o,k as H}from"./K4APZJ2O.js";import"./BYSUABOV.js";export default $arcgis.t(([{substitute:le},{F:X,Ob:K,nc:j,oa:G,sa:Z},,,,,{b:I},,{a:Q},,,,,{r:te},{e:y,f:q},{b:E}])=>{var d={chartUIComponent:"chart-ui-component",tabBar:"tab-bar",tab:"tab"};function re(m,e){let i=new Set,t=e;return m?.forEach((a,s)=>{let r=a.chartId;(i.has(r)||r===void 0||r==="")&&(a.chartId=`Chart_${Date.now()}_${s}`,e===r&&(t=a.chartId)),i.add(r)}),t}function ne(m,e,i){return m?.filter(t=>T(i,t.config)&&t.layer?.id===e)??[]}function ce(m){let{modelList:e,layerList:i,activeLayerId:t,disableEditing:a}=m,s=new Map;return e?.forEach(r=>{let l=r.layer;l&&s.set(l.id,l)}),a||i.forEach(r=>s.set(r.id,r)),Array.from(s.values()).filter(r=>!t||r.id===t)}function he(m,e){m.forEach(i=>{e.forEach(t=>{i?.id===t.layer?.id&&oe(i,t)})})}function oe(m,e){let i=m;if(i){let t=[...i?.charts??[]],a=t?.findIndex(r=>r.id===e.chartId),s=!1;a!==void 0&&a>-1?(s=!S(t[a],e.config),t[a]=e.config):i&&!I(e.config)&&(s=!0,t.push(e.config)),s&&(i.charts=t)}}function de(m,e){let i=m;if(i){let t=[...i.charts??[]],a=t.findIndex(s=>s.id===e);a>-1&&(t.splice(a,1),i.charts=t)}}function me(m,e){let i=m;if(i){let t=[...i.charts??[]];t=v({arrayA:t,arrayB:e.map(a=>a.config),getKey:a=>a.id??a.title?.content.text??""}),i.charts=t}}var pe=N`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;flex:1 1 auto;overflow:hidden;height:inherit;max-height:100%}.chart-ui-component{overflow-y:auto;overflow-x:hidden}.label{display:flex;margin-left:1rem;margin-bottom:.5rem;justify-content:space-between}.text{display:flex;margin-left:1rem;width:calc(100% - 1.5rem);height:2rem;margin-bottom:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:scroll}.row{padding:.5rem}.bin-count-container{display:flex;width:calc(100% - 1rem);padding:.5rem}.bin-count-slider{margin-left:1rem;width:calc(90% - 1rem)}.bin-count-input{margin-left:1rem;height:2rem;width:2rem}.bin-row{padding:.5rem 0 .5rem .5rem}.tab-bar{display:flex}.tab{flex:1;height:2.5rem}`,F=class extends _{constructor(){super(),this.selectChartTypePopover=null,this.chartsListFlowItem=A(),this.supportedChartTypes=[o.BarSeries,o.BoxPlotSeries,o.LineSeries,o.PieSeries,o.HistogramSeries,o.ScatterSeries,o.HeatSeries],this._messages=P(),this.commonStrings=P({name:"common",blocking:!0}),this.chartDataProcessComplete=e=>{let i=e,{chartData:t,model:a}=i.detail,s=this.getModel(this.selectedChartId);if(a?.isSameChartAs(s))switch(s?.chartType){case o.HistogramSeries:if(this.chartData=t,a&&(a.dataStore.chartData=t,O(a.layer))){let r=a,l=t?.bins?.length;l!==void 0&&r.binCount!==l&&(r.binCount=l)}break;case o.PieSeries:{this.chartData=t,a&&(a.dataStore.chartData=t);break}case o.ScatterSeries:{let r=t,{dataItems:l,r2:g,aggregated:u}=r,p=g;Number.isFinite(g)||(p=void 0),this.r2=p,Y(a)&&(a.dataStore.r2=p,a.dataStore.aggregated=u,u&&(a.additionalTooltipField=void 0)),this.calculatedDataMinMaxBounds=this.getDataExtent(l),a&&(a.dataStore.calculatedDataMinMaxBounds=this.calculatedDataMinMaxBounds);break}case o.LineSeries:case o.BarSeries:{let{dataItems:r,timeIntervalInfo:l}=t;if((L(s)||B(s)&&s.binTemporalData)&&(l?.size!==void 0&&s.temporalBinningSize!==l?.size&&(s.temporalBinningSize=l?.size),l?.unit!==void 0&&s.temporalBinningUnit!==l?.unit&&l?.unit!==H.Quarter&&(s.temporalBinningUnit=l?.unit),l?.size!==void 0&&l?.unit!==void 0&&ee($,{size:l.size,unit:l.unit})),this.calculatedDataMinMaxBounds=this.getDataExtent(r),a&&(a.dataStore.calculatedDataMinMaxBounds=this.calculatedDataMinMaxBounds),B(s)){let g=s.xAxisField,u=r.some(b=>b[g]===null),p=s.nullCategory;u&&p===void 0&&(s.nullCategory=R.nullCategory)}break}}},this.chartAxesMinMaxChange=e=>{let i=e,{bounds:t,model:a}=i.detail,s=this.getModel(this.selectedChartId),r=a?.isSameChartAs(s),l=s?.chartType;if(r)switch(l){case o.BarSeries:case o.BoxPlotSeries:case o.LineSeries:case o.HistogramSeries:case o.ScatterSeries:this.calculatedMinMaxBounds=t,a&&(a.dataStore.calculatedMinMaxBounds=t),this.updateAxesBoundsInAppState(t);break}},this.chartSeriesColorChange=e=>{let i=e,{data:t,model:a}=i.detail,s=this.getModel(this.selectedChartId);if(a?.isSameChartAs(s))switch(s?.chartType){case o.BarSeries:case o.BoxPlotSeries:case o.LineSeries:case o.HistogramSeries:this.seriesColor=t,a&&(a.dataStore.seriesColor=t);break;case o.PieSeries:{let r=new Map([[0,t]]);this.seriesColor=r,a&&(a.dataStore.seriesColor=r);break}case o.ScatterSeries:}},this.chartNoRenderPropChange=e=>{let i=e,{propName:t,value:a,model:s}=i.detail,r=this.modelList.find(l=>s?.isSameChartAs(l));if(r)switch(t){case"rotation":typeof a=="boolean"&&Q(r)&&(r.rotated=a);break;case"legendPosition":typeof a=="string"&&D(r)&&(r.legendPosition=a);break;case"legendVisibility":typeof a=="boolean"&&D(r)&&(r.legendVisibility=a);break}},this.chartLegendItemVisibilityChange=e=>{let i=e,{legendItemVisibility:t,model:a}=i.detail,s=this.modelList.find(r=>a?.isSameChartAs(r));s?.setSeriesVisibility(t),w(s)&&((s.getMinBound(1)===null||Number.isNaN(s.getMinBound(1)))&&s.setMinBound(null,1),(s.getMaxBound(1)===null||Number.isNaN(s.getMaxBound(1)))&&s.setMaxBound(null,1),L(s)&&((s.getMinBound(0)===null||Number.isNaN(s.getMinBound(0)))&&s.setMinBound(null,0),(s.getMaxBound(0)===null||Number.isNaN(s.getMaxBound(0)))&&s.setMaxBound(null,0)))},this.onSelectChartTypeChange=e=>{this.currentChartTypeText="",this.calculatedDataMinMaxBounds=void 0,this.calculatedMinMaxBounds=void 0,this.removeSelectChartTypePopover();let{selectedModelType:i,layerId:t}=e.target;i!==void 0&&(this.allowChartSyncing=!0,this.arcgisChartsConfigNewChart.emit({key:"key",chartType:i,layerId:t}))},this.onAddChartClose=()=>{this.removeSelectChartTypePopover()},this.onModelConfigChange=e=>{if(this.syncChartsToLayers&&this.allowChartSyncing){let i=e.target;oe(i?.layer,i)}this.requestUpdate()},this.allowChartSyncing=!1,this.currentChartTypeText="",this.modelList=[],this.layerList=[],this.disableEditing=!1,this.syncChartsToLayers=!1,this.close=!1,this.usePopupTemplateFieldsInfo=!1,this.panelNumber=0,this.filterBySelection=!1,this.arcgisChartsConfigChartViewChartClose=C(),this.arcgisChartsConfigModelListChange=C(),this.arcgisChartsConfigNewChart=C(),this.arcgisChartsConfigPanelNumberChange=C(),this.arcgisChartsConfigSelectedChartChange=C(),this.addChartEventListeners(),this.listen("arcgisChartsConfigModelListReorder",this.modelListReorderChangeListener)}static{this.properties={selectedPanel:16,currentChartTypeText:16,messageOverrides:0,modelList:[0,{hasChanged:y}],layerList:[0,{hasChanged:y}],selectedChartId:1,activeLayerId:1,disableEditing:5,syncChartsToLayers:5,timeZone:1,headerTitle:1,close:5,chartData:[0,{hasChanged:y}],r2:9,calculatedDataMinMaxBounds:[0,{hasChanged:y}],calculatedMinMaxBounds:[0,{hasChanged:y}],seriesColor:[0,{hasChanged:q}],popoverPlacement:1,usePopupTemplateFieldsInfo:5,popupTemplateFieldInfosEnabled:5,panelNumber:9,filterBySelection:5}}static{this.styles=pe}async setFocus(){await this.chartsListFlowItem.value?.setFocus()}async load(){await this.layerListChange();let e=this.getModel(this.selectedChartId);this.setEventBasedPropsFromModelData(e)}willUpdate(e){e.has("layerList")&&this.layerListChange(),e.has("panelNumber")&&this.panelNumberChange(this.panelNumber),e.has("modelList")&&this.modelListChange(this.modelList,e.get("modelList")),e.has("selectedChartId")&&this.selectedChartIdChange(this.selectedChartId)}disconnectedCallback(){super.disconnectedCallback(),this.clearPartialModels(),this.removeSelectChartTypePopover()}modelListReorderChangeListener(e){let{modelList:i}=e.detail;if(this.modelList=v({arrayA:this.modelList,arrayB:i,getKey:t=>t.chartId??t.titleText??""}),this.syncChartsToLayers){let t=i.find(a=>a.layer?.id!==void 0)?.layer?.id;if(t){let a=this.layerList.find(s=>s.id.toString()===t);a&&me(a,i)}}}async layerListChange(){let e=[],i=this.layerList.map(a=>a.id.toString()),t=[...this.modelList.filter(a=>i.includes(a.layer?.id??""))];for(let a of this.layerList??[]){if(a.type==="sublayer"){let r=await a.createFeatureLayer();if(!r)continue;a=r}let s=a.charts;for(let r of s??[]){let l=await J({layer:a,config:r,commonStrings:this.commonStrings});l!==void 0&&e.push(l)}}re(e),e.forEach(a=>{t.find(s=>s.isSameChartAs(a))===void 0&&t.push(a)}),t=t.filter(a=>!K(a.config)),this.modelList=t}modelListChange(e,i){this.selectedChartId=re(e,this.selectedChartId),i?.forEach(a=>{a.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}),e.forEach(a=>{a.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)});let t=this.getModel(this.selectedChartId);this.currentChartTypeText=t?.chartType!==void 0?E({chartType:t.chartType,commonStrings:this.commonStrings,config:t.config}):"",this.syncChartsToLayers&&this.allowChartSyncing&&he(this.layerList,e),this.arcgisChartsConfigModelListChange.emit({modelList:e})}selectedChartIdChange(e){this.selectedChartId===void 0&&(this.panelNumber=0),this.selectedPanel=n.Data;let i=this.getModel(e);this.setEventBasedPropsFromModelData(i),this.currentChartTypeText=i?.chartType!==void 0?E({chartType:i.chartType,commonStrings:this.commonStrings,config:i.config}):"",e!==void 0&&e!==$.selectedChartId&&($.selectedChartId=e),this.allowChartSyncing=!0,this.arcgisChartsConfigSelectedChartChange.emit({key:"key",model:i})}panelNumberChange(e){e===0?this.clearPartialModels():e===1&&this.removeSelectChartTypePopover(),this.arcgisChartsConfigPanelNumberChange.emit({panelNumber:e,modelList:this.modelList})}addChartEventListeners(){this.listenOn(document,f.DataProcessComplete,this.chartDataProcessComplete),this.listenOn(document,f.AxesMinMaxChange,this.chartAxesMinMaxChange),this.listenOn(document,f.SeriesColorChange,this.chartSeriesColorChange),this.listenOn(document,f.NoRenderPropChange,this.chartNoRenderPropChange),this.listenOn(document,f.LegendItemVisibilityChange,this.chartLegendItemVisibilityChange)}getDataExtent(e){let i=this.getModel(this.selectedChartId)?.config,t=[];if(i!==void 0&&e!==void 0){let a=j({chartConfig:i,chartData:e}),{minY:s,maxY:r,minX:l,maxX:g}=a;t=[{isXAxis:!0,minimum:l,maximum:g},{isXAxis:!1,minimum:s,maximum:r}]}return t}updateAxesBoundsInAppState(e){e?.forEach(i=>{let{isXAxis:t,maximum:a,minimum:s}=i,r=this.getModel(this.selectedChartId);if(r!==void 0&&w(r)&&this.selectedChartId!==void 0){let l=new ae(r,t),g=W({chartId:this.selectedChartId,isXAxis:t,isLogarithmic:l.getLogarithmic()}),u=$.chartAxesBoundDataMap;u[this.selectedChartId]===void 0&&(u[this.selectedChartId]={});let p=u[this.selectedChartId]?.[g],b={defaultMinBound:p?.defaultMinBound===p?.currMinBound?s:p?.defaultMinBound,currMinBound:s,defaultMaxBound:p?.defaultMaxBound===p?.currMaxBound?a:p?.defaultMaxBound,currMaxBound:a};!S(p,b)&&this.selectedChartId!==void 0&&u?.[this.selectedChartId]!==void 0&&(u[this.selectedChartId][g]=b)}})}getPlacement(){let e;return this.popoverPlacement!==void 0?e=this.popoverPlacement:e=this.modelList?.filter(i=>T(X,i.config)).length<=2?"bottom":"top",e}onBackFlow(){this.panelNumber-=1}async onAddChartClick(e){let{referenceElement:i,layerId:t,layerType:a}=e.detail,s=!0;if(x(a)&&t){let r=this.layerList.find(l=>l.id===t);x(r?.type)&&(s=!!(await Z(r))?.attributeTable)}this.setupSelectChartTypePopover(i,t,a,s)}setupSelectChartTypePopover(e,i,t,a=!0){let s=this.getPlacement();this.removeSelectChartTypePopover(),this.selectChartTypePopover=M(c`<arcgis-charts-config-select-chart-type-popover .referenceElement=${e} open .layerId=${i} .layerType=${t} .isRasterBarChartSupported=${a} .popoverPlacement=${s} @arcgisChartsConfigPopoverClose=${this.onAddChartClose} @arcgisChartsConfigSelectChartTypeChange=${this.onSelectChartTypeChange}></arcgis-charts-config-select-chart-type-popover>`),!document.body.contains(this.selectChartTypePopover)&&this.selectChartTypePopover!==null&&document.body.appendChild(this.selectChartTypePopover)}getModel(e){return this.modelList?.find(i=>i.chartId===e)}removeSelectChartTypePopover(){this.selectChartTypePopover!==void 0&&(this.selectChartTypePopover?.remove(),this.selectChartTypePopover=se(this.selectChartTypePopover))}clearPartialModels(){this.modelList=this.modelList.filter(e=>!I(e.config))}onViewChartDelete(e){let{chartId:i}=e.detail;if(i!==void 0){let t=this.modelList.find(s=>s.chartId===i),a=this.layerList.find(s=>s.id===t?.layer?.id);this.modelList=[...this.modelList.filter(s=>s.chartId!==i)],a&&this.syncChartsToLayers&&this.allowChartSyncing&&de(a,i)}}onViewChartsSelect(e){this.selectedChartId===e.detail.chartId&&(this.allowChartSyncing=!0,this.arcgisChartsConfigSelectedChartChange.emit({key:"key",model:this.getModel(this.selectedChartId)})),this.selectedChartId=e.detail.chartId}onViewChartsEdit(e){this.onViewChartsSelect(e),this.panelNumber=1}onViewChartClose(){this.close=!0,this.removeSelectChartTypePopover(),this.arcgisChartsConfigChartViewChartClose.emit()}setEventBasedPropsFromModelData(e){this.chartData=e?.dataStore.chartData,this.r2=e?.dataStore.r2,this.seriesColor=e?.dataStore.seriesColor,this.calculatedMinMaxBounds=e?.dataStore.calculatedMinMaxBounds,this.calculatedDataMinMaxBounds=e?.dataStore.calculatedDataMinMaxBounds}createTooltip(e){let i=e.target,t="";switch(i.icon){case"configure":t=this._messages.data??"";break;case"graph-bar-stacked":case"graph-line-series":case"box-chart-series":t=this._messages.series??"";break;case"graph-pie-slice":t=this._messages.slices??"";break;case"graph-axis":t=this._messages.axes??"";break;case"graph-guides":t=this._messages.guides??"";break;case"palette":t=this._messages.format??"";break;case"text":t=this._messages.general??"";break;default:t="";break}this.tooltip=M(c`<calcite-tooltip style=${z({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${i} open placement=top>${t}</calcite-tooltip>`),document.body.appendChild(this.tooltip)}destroyTooltip(){te(this.tooltip)}renderViewCharts(){let e=ce({modelList:this.modelList,layerList:this.layerList,activeLayerId:this.activeLayerId,disableEditing:this.disableEditing});return ie(e,i=>i.id,i=>c`<arcgis-charts-config-view-charts .noGroup=${this.activeLayerId!==void 0} .modelList=${ne(this.modelList,i.id.toString(),x(i.type)?G:this.supportedChartTypes)} .selectedChartId=${this.selectedChartId??""} .layer=${i} .disableEditing=${this.disableEditing} @arcgisChartsConfigViewChartSelect=${this.onViewChartsSelect} @arcgisChartsConfigViewChartEdit=${this.onViewChartsEdit} @arcgisChartsConfigViewChartDelete=${this.onViewChartDelete} @arcgisChartsConfigViewChartAddChart=${this.onAddChartClick}></arcgis-charts-config-view-charts>`)}render(){return this.close?null:c`<calcite-flow>${k("charts-list",c`<calcite-flow-item .selected=${this.panelNumber===0||this.disableEditing} .heading=${this.headerTitle??this._messages.defaultHeaderTitle} closable @calciteFlowItemClose=${this.onViewChartClose} ${V(this.chartsListFlowItem)}>${this.renderViewCharts()}</calcite-flow-item>`)}${this.panelNumber>=1&&!this.disableEditing?this.renderTabs():null}</calcite-flow>`}renderTabs(){let e=this.getModel(this.selectedChartId);return k("chart-edit",c`<calcite-flow-item .selected=${this.panelNumber>=1&&!this.disableEditing} @calciteFlowItemBack=${this.onBackFlow} .heading=${this._messages[this.selectedPanel??n.Data]} .description=${this.currentChartTypeText!==""&&this._messages.pageFlowTitle!==void 0?le(this._messages.pageFlowTitle,{chartName:e?.titleText??this.currentChartTypeText,layerName:e?.layer?.title??""}):""}>${e?.chartType!==void 0?c`<calcite-action-bar class=${h(d.tabBar)} layout=horizontal expand-disabled><calcite-action class=${h(d.tab)} icon=configure scale=s alignment=center .active=${this.selectedPanel===n.Data||this.selectedPanel===void 0} @click=${()=>{this.selectedPanel=n.Data}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>${e?.chartType===o.BarSeries?c`<calcite-action class=${h(d.tab)} icon=graph-bar-stacked scale=s alignment=center .active=${this.selectedPanel===n.Series} @click=${()=>{this.selectedPanel=n.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType===o.LineSeries?c`<calcite-action class=${h(d.tab)} icon=graph-line-series scale=s alignment=center .active=${this.selectedPanel===n.Series} @click=${()=>{this.selectedPanel=n.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType===o.BoxPlotSeries?c`<calcite-action class=${h(d.tab)} icon=box-chart-series scale=s alignment=center .active=${this.selectedPanel===n.Series} @click=${()=>{this.selectedPanel=n.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType===o.PieSeries?c`<calcite-action class=${h(d.tab)} icon=graph-pie-slice scale=s alignment=center .active=${this.selectedPanel===n.Slices} @click=${()=>{this.selectedPanel=n.Slices}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType!==o.PieSeries&&e?.chartType!==o.HeatSeries?c`<calcite-action class=${h(d.tab)} icon=graph-axis scale=s alignment=center .active=${this.selectedPanel===n.Axes} @click=${()=>{this.selectedPanel=n.Axes}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}${e?.chartType!==o.PieSeries&&e?.chartType!==o.HeatSeries?c`<calcite-action class=${h(d.tab)} icon=graph-guides scale=s alignment=center .active=${this.selectedPanel===n.Guides} @click=${()=>{this.selectedPanel=n.Guides}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>`:null}<calcite-action class=${h(d.tab)} icon=palette scale=s alignment=center .active=${this.selectedPanel===n.Format} @click=${()=>{this.selectedPanel=n.Format}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action><calcite-action class=${h(d.tab)} icon=text scale=s alignment=center .active=${this.selectedPanel===n.General} @click=${()=>{this.selectedPanel=n.General}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action></calcite-action-bar>`:null}${this.renderChartUIComponent()}</calcite-flow-item>`)}renderChartUIComponent(){let e=this.getModel(this.selectedChartId),i=e?.layer,t=null;if(e!==void 0&&!this.disableEditing)switch(e?.chartType){case o.BarSeries:t=c`<arcgis-charts-config-bar-chart class=${h(d.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${i} .page=${this.selectedPanel??n.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-bar-chart>`;break;case o.LineSeries:t=c`<arcgis-charts-config-line-chart class=${h(d.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${i} .page=${this.selectedPanel??n.Data} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-line-chart>`;break;case o.PieSeries:t=c`<arcgis-charts-config-pie-chart class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${i} .chartData=${this.chartData} .page=${this.selectedPanel??n.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor} .filterBySelection=${this.filterBySelection}></arcgis-charts-config-pie-chart>`;break;case o.HistogramSeries:t=c`<arcgis-charts-config-histogram class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${i} .page=${this.selectedPanel??n.Data} .chartData=${this.chartData} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-histogram>`;break;case o.ScatterSeries:t=c`<arcgis-charts-config-scatter-plot class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${i} .page=${this.selectedPanel??n.Data} .r2=${this.r2} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-scatter-plot>`;break;case o.BoxPlotSeries:t=c`<arcgis-charts-config-box-plot class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${i} .page=${this.selectedPanel??n.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-box-plot>`;break;case o.HeatSeries:t=c`<arcgis-charts-config-heat-chart class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${i} .page=${this.selectedPanel??n.Data}></arcgis-charts-config-heat-chart>`;break}return t}};U("arcgis-charts-config-create-flow",F);return F},"intl",a,b,d,e,g,i,j,l,m,p,q,r,s,t,u)
|