@arcgis/charts-components 5.2.0-next.120 → 5.2.0-next.121
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/{S5QSKGOD.js → 22GEDSID.js} +1 -1
- package/dist/cdn/{4ETHEVDM.js → 2DSJEDV6.js} +1 -1
- package/dist/cdn/{65WBRNOB.js → 2IMGLB5P.js} +1 -1
- package/dist/cdn/{EB5Z3G6D.js → 2MG6R4WZ.js} +1 -1
- package/dist/cdn/{SDDU5POB.js → 346W6JSX.js} +1 -1
- package/dist/cdn/{N7E2X5IX.js → 3JFIDJNK.js} +1 -1
- package/dist/cdn/3QIWL4Y6.js +2 -0
- package/dist/cdn/{ZAW4TN54.js → 4UPY7IZR.js} +1 -1
- package/dist/cdn/{CZGKNCIX.js → 55HD5ASD.js} +1 -1
- package/dist/cdn/{C22JKC32.js → 5NGZOXPZ.js} +1 -1
- package/dist/cdn/{P3VQFUQZ.js → 5NRVL7NV.js} +1 -1
- package/dist/cdn/{EAQZOXHL.js → 5OKYID5L.js} +1 -1
- package/dist/cdn/{UGJ6ZOQG.js → 5VU34FMQ.js} +1 -1
- package/dist/cdn/{U3W5ZPMZ.js → 6BYOOUOD.js} +1 -1
- package/dist/cdn/{FC6VMJIM.js → 6ESJJXFR.js} +1 -1
- package/dist/cdn/{WI4ABUKJ.js → 6IREEVIJ.js} +1 -1
- package/dist/cdn/{UQP6Q7H2.js → 72NDGOVB.js} +1 -1
- package/dist/cdn/{XNGFPEGT.js → 73RZMSJU.js} +1 -1
- package/dist/cdn/{7XTX3KFW.js → 74GBWUON.js} +1 -1
- package/dist/cdn/{JPCSR3D6.js → 7CVC24HH.js} +1 -1
- package/dist/cdn/{HBNL5LOO.js → 7MZUUBLN.js} +1 -1
- package/dist/cdn/{QJL354WC.js → A5JPFNVL.js} +1 -1
- package/dist/cdn/{V7JCHSX7.js → AAVHXU5D.js} +1 -1
- package/dist/cdn/BPEDCIDB.js +2 -0
- package/dist/cdn/{WFMMHYSH.js → CBSDCSFV.js} +1 -1
- package/dist/cdn/{6UUPPMVB.js → CFMJKZLO.js} +1 -1
- package/dist/cdn/{5NMUWLMG.js → CR5FDXHH.js} +1 -1
- package/dist/cdn/{OKH3U3GN.js → CSSKK7IZ.js} +1 -1
- package/dist/cdn/{J6RFRXEU.js → CXWIF2KU.js} +1 -1
- package/dist/cdn/{2LE4U3GT.js → DFR64RQY.js} +1 -1
- package/dist/cdn/{FF547HMW.js → ELRXUJGD.js} +1 -1
- package/dist/cdn/{XA4KE5YW.js → EWRTR7X6.js} +1 -1
- package/dist/cdn/{OQEUNYYG.js → F5DTLXOB.js} +1 -1
- package/dist/cdn/{VIQEFX6O.js → FUBHLZ4H.js} +1 -1
- package/dist/cdn/{VVWD3AMY.js → FZVZ5MJE.js} +1 -1
- package/dist/cdn/{FNDN7EW7.js → G5ND4PUZ.js} +1 -1
- package/dist/cdn/GSF5JMAE.js +2 -0
- package/dist/cdn/{ASQ2GJVW.js → GXCZ6WXB.js} +1 -1
- package/dist/cdn/{UVKFQG23.js → HDPGUTTH.js} +1 -1
- package/dist/cdn/{HXB7PSCG.js → HQO53B54.js} +1 -1
- package/dist/cdn/{RWAKKYLM.js → IGCN2436.js} +1 -1
- package/dist/cdn/INWA5VAO.js +2 -0
- package/dist/cdn/{7WZGORIO.js → K3VIGXRU.js} +24 -24
- package/dist/cdn/{XZ37Y4W5.js → K7OSRGWZ.js} +1 -1
- package/dist/cdn/{4YFDRBNS.js → KDIC74D5.js} +1 -1
- package/dist/cdn/{OMLLMMVS.js → LYOBJZHA.js} +1 -1
- package/dist/cdn/{5LI7FA5C.js → MHHVGZZG.js} +1 -1
- package/dist/cdn/{O5QM6RFL.js → MKCJDMSH.js} +1 -1
- package/dist/cdn/{BYRJMIXU.js → MV4GOTGG.js} +1 -1
- package/dist/cdn/NE2LIVPM.js +2 -0
- package/dist/cdn/{FTTD7LG7.js → O23HS34R.js} +1 -1
- package/dist/cdn/{NNCCPCL2.js → ONW2IT27.js} +1 -1
- package/dist/cdn/{PENUTMVD.js → OVXUFZCS.js} +1 -1
- package/dist/cdn/{3QSV7I2J.js → PQDWXZQQ.js} +1 -1
- package/dist/cdn/{NI5E2OS4.js → QNW7XSUO.js} +1 -1
- package/dist/cdn/{ZOOL6KEW.js → QXDNKTZG.js} +1 -1
- package/dist/cdn/{HPJM5ZOD.js → S6P4Y54X.js} +1 -1
- package/dist/cdn/SAQBQSQJ.js +2 -0
- package/dist/cdn/{4QQPANET.js → SZ5CW7OV.js} +1 -1
- package/dist/cdn/{ZXW6JPMX.js → T34EUD7U.js} +1 -1
- package/dist/cdn/T7I3TS7D.js +2 -0
- package/dist/cdn/{PO2ZDNTQ.js → UELAD6BI.js} +1 -1
- package/dist/cdn/{JQ7S563J.js → UQ2QHPXB.js} +1 -1
- package/dist/cdn/{SZHJZL2A.js → URI7A66F.js} +1 -1
- package/dist/cdn/{STJ2HTKL.js → V7YFMMPW.js} +1 -1
- package/dist/cdn/{T3VRQEKN.js → VTVZQCHN.js} +1 -1
- package/dist/cdn/{S2G75NCQ.js → VWLVU22M.js} +1 -1
- package/dist/cdn/{DPICOEXC.js → WAZUL35Q.js} +1 -1
- package/dist/cdn/{HI7Z5QTR.js → WSU3OSWJ.js} +1 -1
- package/dist/cdn/{BG65SP3R.js → X25OSCFT.js} +1 -1
- package/dist/cdn/{X2R5WPB4.js → XXMGWWQ4.js} +1 -1
- package/dist/cdn/{7QDL4TE3.js → Y5TN6VKQ.js} +2 -2
- package/dist/cdn/{V6MI3KKW.js → Y6NNKV6H.js} +1 -1
- package/dist/cdn/{7SE3B7E2.js → Y6UMC7NU.js} +1 -1
- package/dist/cdn/{WGGNHZDW.js → Y6WT7UDU.js} +1 -1
- package/dist/cdn/{LGS2QMGB.js → YQN5N3XC.js} +1 -1
- package/dist/cdn/{HQX6SMWC.js → YWFQXN7J.js} +1 -1
- package/dist/cdn/{JTO6MPTF.js → ZDDZVKMH.js} +1 -1
- package/dist/cdn/{LQKGTJZ6.js → ZDJAMFJK.js} +1 -1
- package/dist/cdn/{POB26WCE.js → ZMS2AX7K.js} +1 -1
- package/dist/cdn/{LE4F6FBR.js → ZPZQIWBB.js} +1 -1
- package/dist/cdn/{BIUADXHB.js → ZUVDEUDH.js} +1 -1
- package/dist/cdn/assets/charts-config-general/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/box-plot-data.js +2 -2
- package/dist/chunks/box-plot-model.js +1 -1
- package/dist/chunks/chart-ui-utils.js +13 -13
- package/dist/chunks/class-breaks.js +1 -1
- package/dist/chunks/combo-bar-line-chart-model.js +7 -7
- package/dist/chunks/data-labels-visibility.js +2 -2
- package/dist/chunks/data.js +12 -12
- package/dist/chunks/histogram-data.js +1 -1
- package/dist/chunks/index.js +1167 -1119
- package/dist/chunks/index4.js +7 -7
- package/dist/chunks/model-setter.js +3 -3
- package/dist/chunks/model-with-y-guides.js +1 -1
- package/dist/chunks/negative-values-stacked-to-baseline.js +1 -1
- package/dist/chunks/pie-chart-model.js +1 -1
- package/dist/chunks/rounded-corners.js +1 -1
- package/dist/chunks/scatterplot-model.js +6 -6
- package/dist/chunks/serial-chart-data.js +701 -708
- package/dist/chunks/serial-chart-model.js +15 -15
- package/dist/chunks/utils.js +6 -6
- package/dist/chunks/utils2.js +1 -1
- package/dist/chunks/web-component-utils.js +7 -7
- package/dist/chunks/x-bounds.js +44 -42
- package/dist/components/arcgis-chart/customElement.js +3085 -3010
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +52 -47
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +10 -7
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-format/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-guide/customElement.js +21 -21
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +41 -39
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot/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 +351 -347
- package/dist/model/mixins/model-with-guides.d.ts +2 -2
- package/dist/utils/chart-config/converter/index.js +20 -20
- package/dist/utils/data/index.d.ts +47 -1
- package/package.json +5 -5
- package/dist/cdn/27DMKFXK.js +0 -2
- package/dist/cdn/7DMHLVYX.js +0 -2
- package/dist/cdn/FVYM4LYH.js +0 -2
- package/dist/cdn/WQ5MRC4U.js +0 -2
- package/dist/cdn/YM3BNPLM.js +0 -2
- package/dist/cdn/ZDQWQTZE.js +0 -2
- package/dist/cdn/ZYWOR5AX.js +0 -2
|
@@ -133,8 +133,8 @@ export abstract class ModelWithGuides extends ChartModel {
|
|
|
133
133
|
* Sets whether the tooltip text color should be reversed for a guide.
|
|
134
134
|
*
|
|
135
135
|
* @param reverseColor - New reverseColor boolean to set.
|
|
136
|
-
* @param index - The index of the guide in the list of guides for the given axis orientation.
|
|
136
|
+
* @param index - The index of the guide in the list of guides for the given axis orientation. If omitted, all guides for the orientation will be updated.
|
|
137
137
|
* @param orientation - The axis orientation of the guide.
|
|
138
138
|
*/
|
|
139
|
-
setTooltipReverseColor(reverseColor: boolean, index
|
|
139
|
+
setTooltipReverseColor(reverseColor: boolean, index?: number, orientation?: GuideOrientation): void;
|
|
140
140
|
}
|
|
@@ -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 "lodash-es";
|
|
4
4
|
import { DateTime as Ye } from "luxon";
|
|
5
|
-
import { q as Qe,
|
|
5
|
+
import { q as Qe, cj as se, bw as Ke, W as ne, aO as ae, ck as Xe, bG as Je, bH as Ze, p as T, bi as Ue, cl as b, cm as te, N as et, O as tt, w as Z, cn as rt, cg as it, co 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";
|
|
@@ -438,11 +438,11 @@ function qe(r) {
|
|
|
438
438
|
}
|
|
439
439
|
return e;
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function Ne(r) {
|
|
442
442
|
const e = n(r);
|
|
443
443
|
return e.horizontalAxisLabelsBehavior === L.NONE && (e.horizontalAxisLabelsBehavior = ie.Hide), e.verticalAxisLabelsBehavior === L.NONE && (e.verticalAxisLabelsBehavior = ie.Hide), e;
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function Re(r) {
|
|
446
446
|
const e = n(r), i = e.series[0];
|
|
447
447
|
if (i && !i.temporalBinning && st(e.series[0]) && ("timeIntervalSize" in i || "timeIntervalUnits" in i || "timeAggregationType" in i || "trimIncompleteTimeInterval" in i || "nullPolicy" in i)) {
|
|
448
448
|
if (i.temporalBinning = {}, i.timeIntervalSize !== void 0 && (i.temporalBinning.size = i.timeIntervalSize, delete i.timeIntervalSize), i.timeIntervalUnits) {
|
|
@@ -476,7 +476,7 @@ function Ne(r) {
|
|
|
476
476
|
}
|
|
477
477
|
return e;
|
|
478
478
|
}
|
|
479
|
-
function
|
|
479
|
+
function Ee(r) {
|
|
480
480
|
const e = n(r);
|
|
481
481
|
return e.series.forEach((i) => {
|
|
482
482
|
i.query?.outStatistics?.forEach((t) => {
|
|
@@ -534,14 +534,14 @@ function q(r) {
|
|
|
534
534
|
let e = n(r);
|
|
535
535
|
return e = we(e), e;
|
|
536
536
|
}
|
|
537
|
-
function
|
|
537
|
+
function N(r) {
|
|
538
538
|
let e = n(r);
|
|
539
539
|
return e = Ae(e), e;
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function R(r) {
|
|
542
542
|
return Me(r);
|
|
543
543
|
}
|
|
544
|
-
function
|
|
544
|
+
function E(r) {
|
|
545
545
|
let e = n(r);
|
|
546
546
|
return ne(e) && (e = De(e)), e;
|
|
547
547
|
}
|
|
@@ -558,13 +558,13 @@ function j(r) {
|
|
|
558
558
|
return qe(r);
|
|
559
559
|
}
|
|
560
560
|
function z(r) {
|
|
561
|
-
return
|
|
561
|
+
return Ne(r);
|
|
562
562
|
}
|
|
563
563
|
function H(r) {
|
|
564
|
-
return
|
|
564
|
+
return Re(r);
|
|
565
565
|
}
|
|
566
566
|
function $(r) {
|
|
567
|
-
return
|
|
567
|
+
return Ee(r);
|
|
568
568
|
}
|
|
569
569
|
function Y(r) {
|
|
570
570
|
let e = n(r);
|
|
@@ -589,7 +589,7 @@ function J(r) {
|
|
|
589
589
|
function ze(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(Xe) ? (t = je(t), t = w(t), t = A(t), t = D(t), t = M(t), t = I(t), t = W(t), t = q(t), t =
|
|
592
|
+
return e.length > 0 && t !== void 0 && (t = Ie(t), e.includes(se) || e.includes(Xe) ? (t = je(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 = j(t), t = z(t), t = H(t), t = $(t), t = Y(t), t = Q(t), t = K(t), t = X(t), t = J(t)) : e.forEach((o) => {
|
|
593
593
|
if (t !== void 0)
|
|
594
594
|
switch (o) {
|
|
595
595
|
case "1.0.1":
|
|
@@ -614,13 +614,13 @@ function ze(r) {
|
|
|
614
614
|
t = q(t);
|
|
615
615
|
break;
|
|
616
616
|
case "9.2.0":
|
|
617
|
-
t =
|
|
617
|
+
t = N(t);
|
|
618
618
|
break;
|
|
619
619
|
case "9.7.0":
|
|
620
|
-
t =
|
|
620
|
+
t = R(t);
|
|
621
621
|
break;
|
|
622
622
|
case "10.0.0":
|
|
623
|
-
t =
|
|
623
|
+
t = E(t);
|
|
624
624
|
break;
|
|
625
625
|
case "11.0.0":
|
|
626
626
|
t = V(t);
|
|
@@ -700,11 +700,11 @@ const Mt = {
|
|
|
700
700
|
getDataOrderFromOrderByFields: P,
|
|
701
701
|
convertWebChartDataValueTypes: ke,
|
|
702
702
|
moveOrConvertSeriesOrderByFieldsToChartOrderOptions: Ie,
|
|
703
|
-
convertWebChartLabelBehaviorNoneToHide:
|
|
703
|
+
convertWebChartLabelBehaviorNoneToHide: Ne,
|
|
704
704
|
handleOrderOptionsChanges: We,
|
|
705
705
|
applyDataOrderInstructionForFromFieldsCharts: qe,
|
|
706
|
-
convertTemporalBinningProps:
|
|
707
|
-
convertRESTStatisticTypeToWebChartStatisticType:
|
|
706
|
+
convertTemporalBinningProps: Re,
|
|
707
|
+
convertRESTStatisticTypeToWebChartStatisticType: Ee,
|
|
708
708
|
renameChartSubtitle: Ve,
|
|
709
709
|
applyMandatoryConversions: he,
|
|
710
710
|
convertTo1x0x1: je,
|
|
@@ -715,9 +715,9 @@ const Mt = {
|
|
|
715
715
|
convertTo7x0x0: I,
|
|
716
716
|
convertTo7x6x0: W,
|
|
717
717
|
convertTo8x0x1: q,
|
|
718
|
-
convertTo9x3x0:
|
|
719
|
-
convertTo10x0x0:
|
|
720
|
-
convertTo11x0x0:
|
|
718
|
+
convertTo9x3x0: N,
|
|
719
|
+
convertTo10x0x0: R,
|
|
720
|
+
convertTo11x0x0: E,
|
|
721
721
|
convertTo12x0x0: V,
|
|
722
722
|
convertTo15x0x0: G,
|
|
723
723
|
convertTo16x1x0: _,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ChartOptions } from "../../chart-rendering/common/interfaces.js";
|
|
2
|
-
import type { WebChartStatisticType } from "../../spec/chart-object-literals.js";
|
|
2
|
+
import type { WebChartStackedKinds, WebChartStatisticType } from "../../spec/chart-object-literals.js";
|
|
3
3
|
import type { WebChartBin, WebChartDataItem, WebChartDataTypes } from "../../spec/data-source.js";
|
|
4
4
|
import type { WebChart, WebChartDataFilters, WebChartSeriesType, WebGaugeChart } from "../../spec/web-chart.js";
|
|
5
5
|
import type { ChartElementLimit } from "../defaults/interfaces.js";
|
|
@@ -129,16 +129,62 @@ export function isEmptyDataset(props: {
|
|
|
129
129
|
*/
|
|
130
130
|
export function getYListPerSeriesType(seriesConfig: WebChartSeriesType[], filteredSeriesIds?: string[]): Map<string, string[]>;
|
|
131
131
|
|
|
132
|
+
/**
|
|
133
|
+
* Sums finite series field values for a single category (data item).
|
|
134
|
+
* Shared by sorting percent calculation and stacked100 axis bounds.
|
|
135
|
+
* Persistence of `technicalSortingFieldBySum` for sorting is done by `calculateSeriesPercent`.
|
|
136
|
+
*
|
|
137
|
+
* @param dataItem - The category data item
|
|
138
|
+
* @param yList - The series y field names to include
|
|
139
|
+
* @returns The sum of finite numeric values for the given fields
|
|
140
|
+
*/
|
|
141
|
+
export function getCategorySeriesSum(dataItem: WebChartDataItem, yList: string[]): number;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Returns a series value as a fraction of its category total (0-1).
|
|
145
|
+
*
|
|
146
|
+
* @param value - The series value for the category
|
|
147
|
+
* @param categoryTotal - The sum of series values in the category
|
|
148
|
+
* @returns The series fraction of the category total (0-1), or undefined when it cannot be computed
|
|
149
|
+
*/
|
|
150
|
+
export function getSeriesPercentOfCategory(value: number, categoryTotal: number): number | undefined;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Finds the smallest positive numeric value across the given field names in the chart data.
|
|
154
|
+
* Used when a logarithmic axis min resolves to 0 (or below) because zeros are present alongside tiny positives.
|
|
155
|
+
*
|
|
156
|
+
* @param dataItems - The chart data items
|
|
157
|
+
* @param fieldNames - The field names to scan
|
|
158
|
+
* @returns The smallest positive value found, or undefined when none are found
|
|
159
|
+
*/
|
|
160
|
+
export function getSmallestPositiveFieldValue(dataItems: WebChartDataItem[], fieldNames: string[]): number | undefined;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Finds the smallest positive 100%-stacked contribution (0-100) across categories and series.
|
|
164
|
+
* Matches amcharts `valueYTotalPercent` / `valueXTotalPercent` units used for stacked100 rendering.
|
|
165
|
+
* Uses `getCategorySeriesSum` for each category total.
|
|
166
|
+
*
|
|
167
|
+
* @param props - The chart data items
|
|
168
|
+
* @returns The smallest positive percent contribution (0-100), or undefined when none are found
|
|
169
|
+
*/
|
|
170
|
+
export function getSmallestPositiveStacked100PercentContribution(props: {
|
|
171
|
+
dataItems: WebChartDataItem[];
|
|
172
|
+
seriesConfig: WebChartSeriesType[];
|
|
173
|
+
filteredSeriesIds?: string[];
|
|
174
|
+
}): number | undefined;
|
|
175
|
+
|
|
132
176
|
/**
|
|
133
177
|
* Gets the data min and max values for a stacked series; also an indicator whether the data has negative values.
|
|
134
178
|
*
|
|
135
179
|
* @param props - The config for the series
|
|
180
|
+
* @returns The stacked y min/max and whether any negative values were found
|
|
136
181
|
* @internal
|
|
137
182
|
*/
|
|
138
183
|
export function getDataMinMaxFromStackedSeries(props: {
|
|
139
184
|
seriesConfig: WebChartSeriesType[];
|
|
140
185
|
filteredSeriesIds?: string[];
|
|
141
186
|
filteredData: WebChartBin[] | WebChartDataItem[];
|
|
187
|
+
stackedType?: WebChartStackedKinds;
|
|
142
188
|
}): {
|
|
143
189
|
stackedMinY: number;
|
|
144
190
|
stackedMaxY: number;
|
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.121",
|
|
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.7",
|
|
33
|
-
"@arcgis/lumina": "5.2.0-next.
|
|
34
|
-
"@arcgis/toolkit": "5.2.0-next.
|
|
33
|
+
"@arcgis/lumina": "5.2.0-next.121",
|
|
34
|
+
"@arcgis/toolkit": "5.2.0-next.121",
|
|
35
35
|
"@esri/arcgis-html-sanitizer": "~4.1.0",
|
|
36
36
|
"@lit/task": "^1.0.3",
|
|
37
37
|
"@zumer/snapdom": "^2.24.1",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"tslib": "^2.8.1"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@arcgis/core": "5.2.0-next.
|
|
49
|
-
"@esri/calcite-components": "^5.2.0-next.
|
|
48
|
+
"@arcgis/core": "5.2.0-next.121",
|
|
49
|
+
"@esri/calcite-components": "^5.2.0-next.80"
|
|
50
50
|
},
|
|
51
51
|
"css.customData": [
|
|
52
52
|
"dist/docs/vscode.css-custom-data.json"
|
package/dist/cdn/27DMKFXK.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as E}from"./7TM4LYGN.js";import{a as C}from"./MQI4ZLAS.js";import{a as p}from"./IHO3OLL3.js";import{a as w,c as L}from"./OBPAQN4H.js";import j from"./PENUTMVD.js";import{k as l,o as g}from"./TENIFMA5.js";import{a as P}from"./SZYIWW3C.js";import i from"./7DMHLVYX.js";import f from"./OQEUNYYG.js";import e from"./7QDL4TE3.js";import{n as u,o as O}from"./WIIKUAWF.js";import"./WOGALV3T.js";import{p as h}from"./ZTVR6KBG.js";import"./KX7KGXKQ.js";import{l as b}from"./SP2IPHWF.js";import"./5SYHQWPP.js";import{A as m,B as $,C as o,F,H as x,g as y,i as a,k as S,n as v,z as d}from"./225VUGML.js";import{b as c}from"./QP5UAIC6.js";import"./QYRHZJH3.js";import{a as I}from"./PWJBGZPW.js";import"./BYSUABOV.js";export default $arcgis.t(([,,{h:B},{a:k}])=>{var r={label:"label",fieldList:"field-list",fab:"fab",dimText:"dim-text",list:"list",customSortButtons:"custom-sort-buttons"},_=y`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin);margin-top:var(--arcgis-charts-top-section-margin)}.label,.disabled-label{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-minor);justify-content:space-between}.field-list{max-height:50vh;overflow-y:auto}.disabled-label{pointer-events:none}.fab{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:1.5rem;justify-content:center}.list{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major);max-height:400px;overflow-y:auto}.custom-sort-buttons{display:flex;justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}`,f=class extends ${constructor(){super(...arguments),this._messages=P(),this.boxPlotPopover=null,this.categoryElement=d(),this.numericFieldsElement=d(),this.splitByFieldElement=d(),this.sortOrderElement=d(),this.originalCustomSortLabels=[],this.isCustomSortDisabled=!1,this.onModelConfigChange=()=>{this.requestUpdate()},this.popoverClose=e=>{this.boxPlotPopover===e?.target&&(this.boxPlotPopover=p(this.boxPlotPopover))},this.onBoxPlotDataChange=async e=>{try{if(e.detail!==null&&e.detail?.value!==void 0){let{contentKind:t}=e.detail,s=[...e.detail.value];switch(L(w),t){case l.category:{let i=s[0]?.trim()||h;if(this.model.category=i,this.model.getSortOrder()===c.customSort){let n=await this.updateCustomSortProps();this.model.orderByList=n,this.sortOrderResetCounter+=1}break}case l.numericFields:{this.model.numericFields=s;let i=s.length>1;if(this.model.standardizeValues=i,this.model.getSortOrder()===c.customSort){let n=await this.updateCustomSortProps();this.model.orderByList=n,this.sortOrderResetCounter+=1}break}case l.splitByField:{let i=s[0]?.trim()||"";this.model.splitByField=i;break}case l.sortOrder:{let i=s[0];if(i===c.customSort){let n=await this.updateCustomSortProps();this.model.setSortOrder(i,n)}else this.model.setSortOrder(i);this.sortOrderResetCounter+=1}break;default:break}}}catch(t){throw t instanceof Error&&this.arcgisChartsConfigDataChangeError.emit({error:t,model:this.model}),t}this.requestUpdate()},this.selectedCustomSortItemId="",this.sortOrderResetCounter=0,this.layerFieldsInfo=[],this.arcgisChartsConfigDataChangeError=v()}static{this.properties={selectedCustomSortItemId:16,sortOrderResetCounter:16,messageOverrides:0,model:0,layerFieldsInfo:0}}static{this.styles=_}load(){this.modelChange(this.model),this.onModelConfigChange(),this.currentDataFilter=this.model.getDataFilters(),this.updateCustomSortProps()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),b(this.model.getDataFilters(),this.currentDataFilter)||(this.updateCustomSortProps(),this.currentDataFilter=this.model.getDataFilters()),this.disableSplitBy=this.model.numericFields.length===0||this.model.numericFields.length>1&&this.model.category!==h}disconnectedCallback(){super.disconnectedCallback(),this.boxPlotPopover=p(this.boxPlotPopover),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,t){t?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}onCalciteListOrderChange(e){if(e.detail!==null&&e.detail!==void 0){let{newIndex:t,oldIndex:s}=e.detail;this.model.moveCustomSortValuesInOrderByList(s??0,t??s??0)}}onCustomSortItemSelected(e){let{id:t}=e.target;this.selectedCustomSortItemId=this.selectedCustomSortItemId===t?"":t}onCustomSortItemMoved(e){let{id:t}=e.target,s=this.model.orderByList.length,i=this.model.orderByList.indexOf(this.selectedCustomSortItemId);t===g.Up?s=i-1:t===g.Down&&(s=i+1),i>=0&&s>=0&&s<this.model.orderByList.length&&(this.model.moveCustomSortValuesInOrderByList(i,s),this.sortOrderResetCounter+=1)}buildCustomSortListItems(){return E(this.model.orderByList,e=>e,e=>{let t=O(this.layerFieldsInfo,e);return a`<calcite-list-item id=${e??S} .label=${e??""} .description=${t} .value=${e} .selected=${this.selectedCustomSortItemId===e} @calciteListItemSelect=${this.onCustomSortItemSelected}><calcite-icon slot=content-end></calcite-icon></calcite-list-item>`})}buildCustomSortList(){return C(this.sortOrderResetCounter,a`<calcite-list label class=${o(r.list)} drag-enabled selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildCustomSortListItems()}</calcite-list>`)}buildNumericFieldItem(e){return C(e,a`<calcite-list-item .label=${u(this.layerFieldsInfo,e)} .value=${e} closable @calciteListItemClose=${this.onRemoveNumericField}></calcite-list-item>`)}onCategorySelect(e){this.categoryElement.value&&!this.categoryElement.value.disabled&&(this.contentKind=l.category,this.setupPopover(e))}async onRemoveNumericField(e){let t=e.target.value;if(this.model.numericFields=this.model.numericFields.filter(s=>s!==t),this.model.numericFields.length===0&&this.model.resetConfig(),this.model.getSortOrder()===c.customSort){let s=await this.updateCustomSortProps();this.model.orderByList=s,this.sortOrderResetCounter+=1}}async updateCustomSortProps(){let e=await this.model.getCustomSortValues();this.originalCustomSortLabels=[...e];let t=e.length>k.customSortLimit;return t&&(this.sortOrderElement.value&&(this.sortOrderElement.value.label=this._messages.xAxisAsc),this.model.setSortOrder(c.xAxisAsc)),this.isCustomSortDisabled=t,e}onStandardizeValuesChange(e){this.model.standardizeValues=e.target.checked}onShowOutliersChange(e){this.model.showOutliers=e.target.checked}onSplitBySelect(e){this.splitByFieldElement.value&&!this.splitByFieldElement.value.disabled&&(this.contentKind=l.splitByField,this.setupPopover(e))}onSortOrderSelect(e){this.contentKind=l.sortOrder,this.setupPopover(e)}setupPopover(e){e.stopImmediatePropagation(),this.boxPlotPopover=p(this.boxPlotPopover);let t,s,i,n=!1;switch(this.contentKind){case l.category:t=this.categoryElement.value,s=this._messages.categoryHeader,i=this.model.category===h?"":this.model.category;break;case l.numericFields:t=this.numericFieldsElement.value,s=this._messages.numericFieldsHeader,i=this.model.numericFields;break;case l.splitByField:t=this.splitByFieldElement.value,s=this._messages.splitByFieldHeader,i=this.model.splitByField;break;case l.sortOrder:t=this.sortOrderElement.value,s=this._messages.selectSortOrder,i=this.model.getSortOrder(),n=this.isCustomSortDisabled;break}this.boxPlotPopover=F(a`<arcgis-charts-config-box-plot-popover .headingTitle=${s} .referenceElement=${t} open .contentKind=${this.contentKind} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${i} .isCustomSortDisabled=${n} @arcgisChartsConfigBoxPlotDataPopoverChange=${this.onBoxPlotDataChange} @arcgisChartsConfigPopoverClose=${this.popoverClose}></arcgis-charts-config-box-plot-popover>`),!document.body.contains(this.boxPlotPopover)&&this.boxPlotPopover!==null&&document.body.appendChild(this.boxPlotPopover)}onAddNumericFields(e){this.contentKind=l.numericFields,this.setupPopover(e)}getCorrectedSplitByValue(){return this.model.splitByField?.trim()===""?"":u(this.layerFieldsInfo,this.model.splitByField)}getCorrectedCategoryValue(){return B({fieldName:this.model.category,fieldList:this.layerFieldsInfo})?"":u(this.layerFieldsInfo,this.model.category)}resetToOriginalCustomSortLabels(){this.selectedCustomSortItemId="",this.model.orderByList=[...this.originalCustomSortLabels],this.sortOrderResetCounter+=1}renderCustomSortUI(){let e=this.model.getSortOrder(),t=this.model.getAxisValueFormat(0)?.type,s=this.model.orderByList.indexOf(this.selectedCustomSortItemId);return t===I.CategoryAxisFormat&&e===c.customSort&&!this.isCustomSortDisabled?a`<calcite-label class=${o(r.label)}><div class=${o(r.customSortButtons)}><div><calcite-button appearance=transparent .disabled=${s===0||s===-1||this.selectedCustomSortItemId.trim()===""} icon-start=arrow-bold-up id=${g.Up} kind=neutral scale=s @click=${this.onCustomSortItemMoved}></calcite-button><calcite-button appearance=transparent .disabled=${s===-1||s===this.model.orderByList.length-1||this.selectedCustomSortItemId.trim()===""} icon-start=arrow-bold-down id=${g.Down} kind=neutral scale=s @click=${this.onCustomSortItemMoved}></calcite-button></div><calcite-button @click=${this.resetToOriginalCustomSortLabels} .disabled=${b(this.model.orderByList,this.originalCustomSortLabels)} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button></div>${this.model.category===h?this._messages.values:this._messages.category}${this.buildCustomSortList()}</calcite-label>`:null}renderNumericFields(e){let t=[];for(let s of e)t.push(this.buildNumericFieldItem(s));return a`<calcite-list label class=${o(r.fieldList)} ${m(this.numericFieldsElement)}>${t}</calcite-list>`}renderCategory(){let e=this.getCorrectedCategoryValue(),t=this.model.numericFields.length===0||(this.model.numericFields??[]).length>1&&this.model.splitByField!=="";return a`<arcgis-charts-config-field-picker .label=${e} .disabled=${t} @click=${this.onCategorySelect} ${m(this.categoryElement)}></arcgis-charts-config-field-picker>`}renderSplitBy(){let e=this.getCorrectedSplitByValue();return a`<arcgis-charts-config-field-picker .label=${e} .disabled=${this.disableSplitBy} @click=${this.onSplitBySelect} ${m(this.splitByFieldElement)}></arcgis-charts-config-field-picker>`}renderSorting(){return a`<arcgis-charts-config-field-picker .label=${this._messages[this.model.getSortOrder()]} @click=${this.onSortOrderSelect} ${m(this.sortOrderElement)}></arcgis-charts-config-field-picker>`}render(){let e=this.renderCategory(),t=this.renderNumericFields([...this.model.numericFields??[]]),s=this.renderSplitBy(),i=this.renderSorting(),n=this.renderCustomSortUI();return a`<calcite-label class=${o(r.label)}>${this._messages.numericFields}${t}</calcite-label><div class=${o(r.fab)}><calcite-fab appearance=outline-fill kind=neutral scale=m .label=${this._messages.selectNumericFields} text-enabled .text=${this._messages.selectNumericFields} icon=plus @click=${this.onAddNumericFields}></calcite-fab></div><calcite-label class=${o(r.label)}><div>${this._messages.category} <span class=${o(r.dimText)}>(${this._messages.optional})</span></div>${e}</calcite-label><calcite-label class=${o(r.label)}><div class=${o(this.disableSplitBy?r.dimText:"")}>${this._messages.splitBy} <span class=${o(r.dimText)}>(${this._messages.optional})</span></div>${s}</calcite-label><div>${(this.model.numericFields??[]).length>1?a`<calcite-label class=${o(r.label)} layout=inline-space-between>${this._messages.standardizeValues}<calcite-switch .checked=${this.model.standardizeValues} @calciteSwitchChange=${this.onStandardizeValuesChange}></calcite-switch></calcite-label>`:null}</div><calcite-label class=${o(r.label)} layout=inline-space-between>${this._messages.showOutliers}<calcite-switch .checked=${this.model.showOutliers} @calciteSwitchChange=${this.onShowOutliersChange}></calcite-switch></calcite-label><calcite-label class=${o(r.label)}>${this._messages.sortOrder}${i}</calcite-label>${n}`}};x("arcgis-charts-config-box-plot-data",f);return f},e,f,i,j)
|
package/dist/cdn/7DMHLVYX.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import b from"./7QDL4TE3.js";import{d as B}from"./WIIKUAWF.js";import{e as $}from"./WOGALV3T.js";import{p as C}from"./ZTVR6KBG.js";import{e as g}from"./SP2IPHWF.js";import{a,c as f,e as I}from"./QP5UAIC6.js";import{a as O}from"./QYRHZJH3.js";import{a as n,b as m,h as c,v as d}from"./PWJBGZPW.js";export default $arcgis.t(([{Eb:_,G:L,H:T,I:D,J:N,Nb:h,S:b,Yb:S,pc:v,v:F}])=>{function k(e,r){let s;return r===d.Category&&Array.isArray(e)?s=a.customSort:r===d.Category?s=e===c.Ascending?a.xAxisAsc:a.xAxisDesc:e===c.Ascending?s=a.yAxisAsc:s=a.yAxisDesc,s}function Q(e,r){let s;return r===d.Category&&Array.isArray(e)?s=f.customSort:s=e===c.Ascending?f.Asc:f.Desc,s}var R=e=>{let r=e.orderOptions?.data&&"orderBy"in e.orderOptions.data?e.orderOptions.data.orderBy:c.Ascending;return k(r,e.orderOptions?.data?.orderType??d.Category)},V=e=>{let r=O(e.series),s=!1;return(r===n.BarSeries||r===n.LineSeries)&&(s=R(e)===a.customSort),s},ee=e=>{let r=[],s=e.orderOptions?.data?.orderType;return V(e)&&s===d.Category&&(r=e.orderOptions?.data?.orderBy),r},re=(e,r,s,i)=>{let t=O(r.series),A=b(r);r.orderOptions??={};let o=A?[""]:c.Ascending;if(A)e===f.customSort&&s!==void 0?o=[...s]:o=e===f.Desc?c.Descending:c.Ascending,i?r.orderOptions.data={...r.orderOptions.data,orderByY:o,orderType:d.MultiAxes}:r.orderOptions.data={...r.orderOptions.data,orderByX:o,orderType:d.MultiAxes};else if(t===n.BarSeries||t===n.LineSeries){let p=d.Category;e===a.customSort&&s!==void 0?(o=[...s],r.orderOptions.data={orderType:p,orderBy:o}):(p=e===a.xAxisAsc||e===a.xAxisDesc?d.Category:d.YValue,o=e===a.xAxisAsc||e===a.yAxisAsc?c.Ascending:c.Descending,r.orderOptions.data={orderType:p,orderBy:o})}},se=e=>e?.series?.[0]?.x??"",ie=e=>{let{config:r,xAxisField:s,numericFields:i,aggregationType:t,mode:A,layer:o,numericFieldIndex:p,seriesIndex:U,splitByField:w="",fieldList:H}=e,M=O(r.series),P=v(r.series),u;if($(o)){let y=_(o);u=i.length===1&&i[0]===y}else{let{idField:y,isTraditionalTypeOID:Y}=h(F(o));u=Y&&i.length===1&&i[0]===y}let l="y",x="y";switch(M){case n.PieSeries:{t!==m.NoAggregation?A===I.Category?(l=`${t}_${i[0]}_0`.toUpperCase(),x=u?g(m.Count):g(`${t} of ${i[0]}`)):l=T:l=i[0];break}case n.BarSeries:case n.LineSeries:case n.ComboLineAndBarSeries:case n.RadarSeries:case n.HeatSeries:{if(w===""||i.length>1)q({fieldName:s,numericFields:i,fieldList:H??[]})||P===B.BarAndLineFromFields?l=N:(l=t!==m.NoAggregation?`${t}_${i[p??0]}_${p??0}`.toUpperCase():i[p??0],x=u?g(m.Count):g(`${t} of ${i[p??0]}`));else{let y=i[0];l=t!==m.NoAggregation?`${t}_${y}_${U??0}`.toUpperCase():y,x=u?g(m.Count):g(`${t} of ${y}`)}break}}return{name:l,description:x}};function j(e){let{fieldName:r,fieldList:s}=e,i=S(s??[],r);return r===D||r===L||r===C||r===void 0||r.trim()===""||i===void 0}function q(e){let{fieldName:r,fieldList:s,numericFields:i}=e,t=i.filter(A=>S(s??[],A)?.type!=="esriFieldTypeOID");return j({fieldName:r,fieldList:s})&&(t?.length??0)>0}return{a:k,b:Q,c:R,d:ee,e:re,f:se,g:ie,h:j,i:q}},b)
|
package/dist/cdn/FVYM4LYH.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as w}from"./MQI4ZLAS.js";import{a as N}from"./IHO3OLL3.js";import{a as u,c as P,d as T,f as _}from"./OBPAQN4H.js";import{f as l}from"./TENIFMA5.js";import{a as C}from"./SZYIWW3C.js";import e from"./7DMHLVYX.js";import a from"./7QDL4TE3.js";import{n as p,u as S}from"./WIIKUAWF.js";import"./WOGALV3T.js";import{Aa as B,za as I}from"./ZTVR6KBG.js";import"./KX7KGXKQ.js";import{l as k}from"./SP2IPHWF.js";import"./5SYHQWPP.js";import{A as d,B as F,C as s,F as x,H as A,g as y,i as r,n as g,z as h}from"./225VUGML.js";import"./QP5UAIC6.js";import"./QYRHZJH3.js";import{b as c,k as b,n as m}from"./PWJBGZPW.js";import"./BYSUABOV.js";export default $arcgis.t(([{Nb:f,Pb:E},{h:L}])=>{var z=y`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin);margin-top:var(--arcgis-charts-top-section-margin)}.label,.disabled-label{display:flex;margin-left:.5rem;margin-right:.5rem;margin-bottom:.5rem;justify-content:space-between}.time-binning-header{display:flex;font-weight:700;margin-left:.5rem;margin-right:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:auto}.disabled-label{pointer-events:none}.fab{display:flex;margin-left:.5rem;margin-right:.5rem;margin-bottom:1.5rem;justify-content:center}.link-container{display:flex;justify-content:flex-end}`,n={label:"label",fieldList:"field-list",fab:"fab",timeBinningHeader:"time-binning-header",linkContainer:"link-container",dimText:"dim-text"},$=class extends F{constructor(){super(...arguments),this._messages=C(),this.commonStrings=C({name:"common",blocking:!0}),this.lineChartPopover=null,this.aggregationElement=h(),this.xAxisFieldElement=h(),this.numericFieldsElement=h(),this.splitByFieldElement=h(),this.intervalAlignmentElement=h(),this.intervalElement=h(),this.onLineChartDataChange=e=>{try{if(e.detail!==null&&e.detail?.value!==void 0){let{contentKind:t}=e.detail,i=[...e.detail.value];switch(P(u),t){case l.aggregation:this.model.aggregationType=i[0]!==c.NoAggregation?i[0]:c.NoAggregation;break;case l.xAxisField:{let a=i[0]?.trim()||"";this.model.xAxisField=a;break}case l.numericFields:this.model.numericFields=i,this.model.numericFields.length>0&&this.model.aggregationType===c.Count&&this.model.numericFields[0]!==f(this.model.layer).idField&&(this.model.aggregationType=c.Sum);break;case l.splitByField:{let a=i[0]?.trim()||"";this.model.splitByField=a,this.model.colorMatch=!0;break}case l.interval:this.model.temporalBinningSize=i[0]?.intervalSize,this.model.temporalBinningUnit=i[0]?.intervalUnits,this.arcgisChartsConfigCustomizedTimeInterval.emit();break;case l.intervalAlignment:this.model.timeAggregationType=i[0]??"";break;default:break}t!==l.interval&&t!==l.intervalAlignment&&_(u)}}catch(t){throw t instanceof Error&&this.arcgisChartsConfigDataChangeError.emit({error:t,model:this.model}),t}this.removeLineChartDataPopover(),this.requestUpdate()},this.onModelConfigChange=()=>{this.requestUpdate()},this.popoverClose=e=>{this.lineChartPopover===e?.target&&this.removeLineChartDataPopover()},this.layerFieldsInfo=[],this.arcgisChartsConfigCustomizedTimeInterval=g(),this.arcgisChartsConfigDataChangeError=g(),this.arcgisChartsConfigLineChartDataNumericFieldValidate=g(),this.arcgisChartsConfigResetTimeInterval=g()}static{this.properties={aggregationLabel:16,timeAggregationLabel:16,disableSplitBy:16,messageOverrides:0,model:0,resetTimeInterval:0,layerFieldsInfo:0}}static{this.styles=z}load(){this.modelChange(this.model),this.onModelConfigChange()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),this.aggregationLabel=I(this.model.aggregationType,this.commonStrings);let t=this.model.timeAggregationType;t!==void 0&&(this.timeAggregationLabel=B(t,this.commonStrings)),this.disableSplitBy=this.model.numericFields.length>1}disconnectedCallback(){super.disconnectedCallback(),this.removeLineChartDataPopover(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,t){t?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}buildNumericFieldItem(e){return w(e,r`<calcite-list-item .label=${p(this.layerFieldsInfo,e)} .value=${e} closable @calciteListItemClose=${this.onRemoveNumericField}></calcite-list-item>`)}resetTimeIntervalOriginal(e){this.popoverClose(e),this.model.resetTimeInterval!==void 0&&(this.model.resetTimeInterval(),this.arcgisChartsConfigResetTimeInterval.emit())}onAggregationSelect(e){this.contentKind=l.aggregation,this.setupPopover(e)}onXAxisFieldSelect(e){this.contentKind=l.xAxisField,this.setupPopover(e)}onSplitBySelect(e){this.splitByFieldElement.value&&!this.splitByFieldElement.value.disabled&&(this.contentKind=l.splitByField,this.setupPopover(e))}onAddNumericFields(e){this.contentKind=l.numericFields,this.setupPopover(e)}onRemoveNumericField(e){let t=e.target.value;this.model.numericFields=this.model.numericFields.filter(i=>i!==t)}onIntervalAlignmentSelect(e){this.intervalAlignmentElement.value&&!this.intervalAlignmentElement.value.disabled&&(this.contentKind=l.intervalAlignment,this.setupPopover(e))}onIntervalSelect(e){this.intervalElement.value&&!this.intervalElement.value.disabled&&(this.contentKind=l.interval,this.setupPopover(e))}getCorrectedSplitByValue(){return this.model.splitByField===""||this.model.numericFields.length>1?"":p(this.layerFieldsInfo,this.model.splitByField)}getCorrectedXAxisValue(){return L({fieldName:this.model.xAxisField,fieldList:this.layerFieldsInfo})?"":p(this.layerFieldsInfo,this.model.xAxisField)}onShowDataLabelsChange(e){this.model.dataLabelsVisibility=e.target.checked}onTrimIncompleteIntervalChange(e){this.model.trimIncompleteTimeInterval=e.target.checked}onNullPolicyChange(e){this.model.nullPolicy=e.target.selectedItem?.value}shouldShowTimeBinning(){let e=this.layerFieldsInfo.find(i=>i.name===this.model.xAxisField),t=this.model.aggregationType!==c.NoAggregation;return e!==void 0&&E(e)&&t}setupPopover(e){e.stopImmediatePropagation(),this.removeLineChartDataPopover();let t={size:this.model.temporalBinningSize??1,unit:this.model.temporalBinningUnit??b.Second},i,a,o;switch(this.contentKind){case l.aggregation:i=this.aggregationElement.value,a=this._messages.aggregationHeader,o=this.model.aggregationType;break;case l.xAxisField:i=this.xAxisFieldElement.value,a=this._messages.xAxisFieldHeader,o=this.model.xAxisField;break;case l.numericFields:i=this.numericFieldsElement.value,a=this._messages.numericFieldsHeader,o=this.model.numericFields;break;case l.splitByField:i=this.splitByFieldElement.value,a=this._messages.splitByFieldHeader,o=this.model.splitByField;break;case l.interval:i=this.intervalElement.value,a=this._messages.editInterval,o=t;break;case l.intervalAlignment:i=this.intervalAlignmentElement.value,a=this._messages.intervalAlignment,o=this.model.timeAggregationType??"";break}this.lineChartPopover=x(r`<arcgis-charts-config-line-chart-popover .headingTitle=${a} .referenceElement=${i} open .contentKind=${this.contentKind} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${o} @arcgisChartsConfigLineChartDataPopoverChange=${this.onLineChartDataChange} @arcgisChartsConfigLineChartPopoverClose=${this.popoverClose}></arcgis-charts-config-line-chart-popover>`),!document.body.contains(this.lineChartPopover)&&this.lineChartPopover!==null&&document.body.appendChild(this.lineChartPopover)}removeLineChartDataPopover(){this.lineChartPopover!==null&&(this.lineChartPopover.open=!1,this.lineChartPopover=N(this.lineChartPopover))}renderAggregation(){return r`<arcgis-charts-config-field-picker .label=${this.model.aggregationType===c.NoAggregation?this._messages.noAggregation:this.aggregationLabel} @click=${this.onAggregationSelect} ${d(this.aggregationElement)}></arcgis-charts-config-field-picker>`}renderXAxisField(){let e=this.getCorrectedXAxisValue();return r`<arcgis-charts-config-field-picker .label=${e} @click=${this.onXAxisFieldSelect} ${d(this.xAxisFieldElement)}></arcgis-charts-config-field-picker>`}renderSplitBy(){let e=this.getCorrectedSplitByValue();return r`<arcgis-charts-config-field-picker .label=${e} .disabled=${this.disableSplitBy} @click=${this.onSplitBySelect} ${d(this.splitByFieldElement)}></arcgis-charts-config-field-picker>`}renderNumericFields(e){let t=f(this.model.layer).idField,i=[];for(let a of e)a!==t&&i.push(this.buildNumericFieldItem(a));return r`<calcite-list label class=${s(n.fieldList)} ${d(this.numericFieldsElement)}>${i}</calcite-list>`}renderInterval(){let e=(this.model.temporalBinningSize??0)<=0,t=this.model.temporalBinningSize??"",i=S(this.model.temporalBinningUnit??b.Second,this._messages)??"",a=T(u),o={size:this.model.temporalBinningSize,unit:this.model.temporalBinningUnit},v=k(o,a);return[r`<calcite-list label selection-appearance=border><calcite-list-item .value=${e?"":`${t} ${i}`} .label=${e?"":`${t} ${i}`} @click=${e?()=>{}:this.onIntervalSelect} ${d(this.intervalElement)}><calcite-icon slot=content-end icon=pencil></calcite-icon></calcite-list-item></calcite-list>`,r`<div class=${s(n.linkContainer)}><calcite-button .disabled=${v} appearance=transparent scale=s icon-end=reset @click=${this.resetTimeIntervalOriginal}>${this._messages.reset}</calcite-button></div>`]}renderIntervalAlignment(){return r`<arcgis-charts-config-field-picker .label=${this.timeAggregationLabel} @click=${this.onIntervalAlignmentSelect} ${d(this.intervalAlignmentElement)}></arcgis-charts-config-field-picker>`}renderEmptyBins(){return r`<calcite-radio-button-group name=empty-bins layout=vertical @calciteRadioButtonGroupChange=${this.onNullPolicyChange}><calcite-label layout=inline><calcite-radio-button .value=${m.Zero} .checked=${this.model.nullPolicy===m.Zero}></calcite-radio-button>${this._messages.treatAsZero}</calcite-label><calcite-label layout=inline><calcite-radio-button .value=${m.Interpolate} .checked=${this.model.nullPolicy===m.Interpolate}></calcite-radio-button>${this._messages.connectLine}</calcite-label><calcite-label layout=inline><calcite-radio-button .value=${m.Null} .checked=${this.model.nullPolicy===m.Null}></calcite-radio-button>${this._messages.breakLine}</calcite-label></calcite-radio-button-group>`}render(){let e=this.renderAggregation(),t=this.renderXAxisField(),i=this.renderSplitBy(),a=this.renderNumericFields([...this.model.numericFields]),o=this.renderInterval(),v=this.renderIntervalAlignment(),D=this.renderEmptyBins();return r`<calcite-label class=${s(n.label)}>${this._messages.xAxisField}${t}</calcite-label><calcite-label class=${s(n.label)}>${this._messages.aggregation}${e}</calcite-label><calcite-label class=${s(n.label)}>${this._messages.numericFields}${a}</calcite-label><div class=${s(n.fab)}><calcite-fab appearance=outline-fill kind=neutral scale=m .label=${this._messages.selectNumericFields} text-enabled .text=${this._messages.selectNumericFields} icon=plus @click=${this.onAddNumericFields}></calcite-fab></div><calcite-label class=${s(n.label)}><span class=${s(this.disableSplitBy?n.dimText:"")}>${this._messages.splitBy}</span>${i}</calcite-label><div .hidden=${!this.shouldShowTimeBinning()}><h3 class=${s(n.timeBinningHeader)}>${this._messages.timeBinningOptions}</h3><calcite-label class=${s(n.label)}>${this._messages.interval}${o}</calcite-label><calcite-label class=${s(n.label)}>${this._messages.intervalAlignment}${v}</calcite-label><calcite-label class=${s(n.label)} layout=inline-space-between>${this._messages.trimIncompleteInterval}<calcite-switch .checked=${this.model.trimIncompleteTimeInterval} @calciteSwitchChange=${this.onTrimIncompleteIntervalChange}></calcite-switch></calcite-label>${this.model.aggregationType!==c.Count?r`<calcite-label class=${s(n.label)}>${this._messages.emptyBins}${D}</calcite-label>`:null}</div><calcite-label class=${s(n.label)} layout=inline-space-between>${this._messages.showDataLabels}<calcite-switch .checked=${this.model.dataLabelsVisibility} @calciteSwitchChange=${this.onShowDataLabelsChange}></calcite-switch></calcite-label>`}};A("arcgis-charts-config-line-chart-data",$);return $},a,e)
|
package/dist/cdn/WQ5MRC4U.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as q}from"./7TM4LYGN.js";import{a as k}from"./MQI4ZLAS.js";import{a as Z}from"./IHO3OLL3.js";import{a as $,c as M,d as K,f as H}from"./OBPAQN4H.js";import j from"./PENUTMVD.js";import{g as a,o as C}from"./TENIFMA5.js";import{a as A}from"./SZYIWW3C.js";import i from"./7DMHLVYX.js";import g from"./OQEUNYYG.js";import e from"./7QDL4TE3.js";import{c as _,d as F,n as y,o as N,u as V}from"./WIIKUAWF.js";import"./WOGALV3T.js";import{Aa as D,za as P}from"./ZTVR6KBG.js";import"./KX7KGXKQ.js";import{l as f}from"./SP2IPHWF.js";import"./5SYHQWPP.js";import{A as m,B as O,C as r,F as E,H as T,g as L,i as o,k as w,n as u,z as c}from"./225VUGML.js";import{a as h}from"./QP5UAIC6.js";import"./QYRHZJH3.js";import{a as p,b as d,k as S,n as b}from"./PWJBGZPW.js";import"./BYSUABOV.js";export default $arcgis.t(([{I:z,Nb:B,Pb:R,pc:I},,{h:U},{a:j}])=>{var l={label:"label",fieldList:"field-list",fab:"fab",disabledLabel:"disabled-label",timeBinningHeader:"time-binning-header",linkContainer:"link-container",list:"list",customSortButtons:"custom-sort-buttons",dimText:"dim-text",intervalContainer:"interval-container"},J=L`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin);margin-top:var(--arcgis-charts-top-section-margin)}.label,.disabled-label{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-minor);justify-content:space-between}.time-binning-header{display:flex;font-weight:700;margin-left:.5rem;margin-right:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:auto}.disabled-label{pointer-events:none}.fab{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:1.5rem;justify-content:center}.link-container{display:flex;justify-content:flex-end}.list{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major);max-height:400px;overflow-y:auto}.custom-sort-buttons{display:flex;justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}.mb-2{margin-bottom:var(--arcgis-charts-config-margin-minor)}.interval-container{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-minor)}`,x=class extends O{constructor(){super(...arguments),this._messages=A(),this.commonStrings=A({name:"common",blocking:!0}),this.barChartPopover=null,this.sortOrderElement=c(),this.aggregationElement=c(),this.categoryElement=c(),this.numericFieldsElement=c(),this.splitByFieldElement=c(),this.enableTimeBinningSwitch=c(),this.intervalAlignmentElement=c(),this.intervalElement=c(),this.originalCustomSortLabels=[],this.isCustomSortDisabled=!1,this.onBarChartDataChange=async e=>{try{if(e.detail!==null&&e.detail?.value!==void 0){let{contentKind:i}=e.detail,t=[...e.detail.value];switch(M($),i){case a.aggregation:this.model.aggregationType=t[0]!==d.NoAggregation?t[0]:d.NoAggregation;break;case a.category:{let s=t[0]?.trim()||"";if(this.model.xAxisField=s,this.model.getSortOrder()===h.customSort){let n=await this.updateCustomSortProps();this.model.orderByList=n,this.sortOrderResetCounter+=1}break}case a.numericFields:if(this.model.numericFields=t,(this.model.numericFields??[]).length>0&&this.model.aggregationType===d.Count&&this.model.numericFields[0]!==B(this.model.layer).idField&&(this.model.aggregationType=d.Sum),this.model.getSortOrder()===h.customSort){let s=await this.updateCustomSortProps();this.model.orderByList=s,this.sortOrderResetCounter+=1}break;case a.splitByField:{let s=t[0]?.trim()||"";this.model.splitByField=s,this.model.colorMatch=!0;break}case a.sortOrder:{let s=t[0];if(s===h.customSort){let n=await this.updateCustomSortProps();this.model.setSortOrder(s,n)}else this.model.setSortOrder(s);this.sortOrderResetCounter+=1;break}case a.interval:this.model.temporalBinningSize=t[0]?.intervalSize,this.model.temporalBinningUnit=t[0]?.intervalUnits,this.arcgisChartsConfigCustomizedTimeInterval.emit();break;case a.intervalAlignment:this.model.timeAggregationType=t[0]??"";break;default:break}i!==a.interval&&i!==a.intervalAlignment&&H($)}}catch(i){throw this.arcgisChartsConfigDataChangeError.emit({error:i,model:this.model}),i}this.removeBarChartDataPopover(),this.requestUpdate()},this.onModelConfigChange=()=>{this.requestUpdate()},this.popoverClose=e=>{this.barChartPopover===e?.target&&this.removeBarChartDataPopover()},this.selectedCustomSortItemId="",this.sortOrderResetCounter=0,this.layerFieldsInfo=[],this.open=!1,this.arcgisChartsConfigBarChartDataNumericFieldValidate=u(),this.arcgisChartsConfigDataChangeError=u(),this.arcgisChartsConfigResetTimeInterval=u(),this.arcgisChartsConfigCustomizedTimeInterval=u()}static{this.properties={selectedCustomSortItemId:16,aggregationLabel:16,timeAggregationLabel:16,disableSplitBy:16,sortOrderResetCounter:16,messageOverrides:0,model:0,layerFieldsInfo:0,open:5}}static{this.styles=J}load(){this.modelChange(this.model),this.onModelConfigChange(),this.currentDataFilter=this.model.getDataFilters(),this.updateCustomSortProps()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),this.aggregationLabel=P(this.model.aggregationType,this.commonStrings),f(this.model.getDataFilters(),this.currentDataFilter)||(this.model.getSortOrder()===h.customSort&&this.updateCustomSortProps(),this.currentDataFilter=this.model.getDataFilters());let i=this.model.timeAggregationType;i!==void 0&&(this.timeAggregationLabel=D(i,this.commonStrings)),this.disableSplitBy=this.model.numericFields.length>1||this.model.xAxisField===""||this.model.xAxisField===z}disconnectedCallback(){super.disconnectedCallback(),this.removeBarChartDataPopover(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,i){i?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}onCalciteListOrderChange(e){if(e.detail!==null&&e.detail!==void 0){let{newIndex:i,oldIndex:t}=e.detail;this.model.moveCustomSortValuesInOrderByList(t??0,i??t??0)}}onCustomSortItemSelected(e){let{id:i}=e.target;this.selectedCustomSortItemId=this.selectedCustomSortItemId===i?"":i}onCustomSortItemMoved(e){let{id:i}=e.target,t=this.model.orderByList.length,s=this.model.orderByList.indexOf(this.selectedCustomSortItemId);i===C.Up?t=s-1:i===C.Down&&(t=s+1),s>=0&&t>=0&&t<this.model.orderByList.length&&(this.model.moveCustomSortValuesInOrderByList(s,t),this.sortOrderResetCounter+=1)}onEnableTimeBinningChange(e){let i=e.target.checked;this.model.binTemporalData=i,this.requestUpdate()}buildNumericFieldItem(e){return k(e,o`<calcite-list-item .label=${y(this.layerFieldsInfo,e)} .value=${e} closable @calciteListItemClose=${this.onRemoveNumericField}></calcite-list-item>`)}resetTimeIntervalOriginal(e){this.popoverClose(e),this.model.resetTimeInterval!==void 0&&(this.model.resetTimeInterval(),this.arcgisChartsConfigResetTimeInterval.emit())}buildCustomSortListItems(){return q(this.model.orderByList,e=>e,e=>{let i=N(this.layerFieldsInfo,e),t=this.model.nullCategory!==void 0&&e.trim()===_.nullCategory?.text?.trim();return o`<calcite-list-item id=${e??w} .label=${e} .closed=${t} .description=${i} .value=${e} .selected=${this.selectedCustomSortItemId===e} @calciteListItemSelect=${this.onCustomSortItemSelected}><calcite-icon slot=content-end></calcite-icon></calcite-list-item>`})}buildCustomSortList(){return k(this.sortOrderResetCounter,o`<calcite-list label class=${r(l.list)} drag-enabled selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildCustomSortListItems()}</calcite-list>`)}onAggregationSelect(e){this.contentKind=a.aggregation,this.setupPopover(e)}onSortOrderSelect(e){this.contentKind=a.sortOrder,this.setupPopover(e)}onCategorySelect(e){this.contentKind=a.category,this.setupPopover(e)}onSplitBySelect(e){this.splitByFieldElement.value&&!this.splitByFieldElement.value.disabled&&(this.contentKind=a.splitByField,this.setupPopover(e))}onAddNumericFields(e){this.contentKind=a.numericFields,this.setupPopover(e)}async onRemoveNumericField(e){let i=e.target.value;if(this.model.numericFields=this.model.numericFields.filter(t=>t!==i),this.model.getSortOrder()===h.customSort){let t=await this.updateCustomSortProps();this.model.orderByList=t,this.sortOrderResetCounter+=1}}onIntervalAlignmentSelect(e){this.intervalAlignmentElement.value&&!this.intervalAlignmentElement.value.disabled&&(this.contentKind=a.intervalAlignment,this.setupPopover(e))}onIntervalSelect(e){this.intervalElement.value&&!this.intervalElement.value.disabled&&(this.contentKind=a.interval,this.setupPopover(e))}getCorrectedSplitByValue(){return this.model.splitByField===""||(this.model.numericFields??[]).length>1?"":y(this.layerFieldsInfo,this.model.splitByField)}getCorrectedCategoryValue(){return U({fieldName:this.model.xAxisField,fieldList:this.layerFieldsInfo})?"":y(this.layerFieldsInfo,this.model.xAxisField)}onShowDataLabelsChange(e){this.model.dataLabelsVisibility=e.target.checked}onTreatNullAsCategoryChange(e){this.model.fetchNULLValues=e.target.checked}async updateCustomSortProps(){let e=await this.model.getCustomSortValues();this.originalCustomSortLabels=[...e];let i=e.length>j.customSortLimit;return i&&(this.sortOrderElement.value&&(this.sortOrderElement.value.label=this._messages.xAxisAsc),this.model.setSortOrder(h.xAxisAsc)),this.isCustomSortDisabled=i,e}setupPopover(e){e.stopImmediatePropagation(),this.removeBarChartDataPopover();let i={size:this.model.temporalBinningSize??1,unit:this.model.temporalBinningUnit??S.Second},t,s,n,g=!1,v=!1;switch(this.contentKind){case a.aggregation:t=this.aggregationElement.value,s=this._messages.aggregationHeader,g=I(this.model.config.series??[])===F.BarAndLineFromFields,n=this.model.aggregationType;break;case a.category:t=this.categoryElement.value,s=this._messages.categoryHeader,n=this.model.xAxisField;break;case a.numericFields:t=this.numericFieldsElement.value,s=this._messages.numericFieldsHeader,n=this.model.numericFields;break;case a.splitByField:t=this.splitByFieldElement.value,s=this._messages.splitByFieldHeader,n=this.model.splitByField;break;case a.sortOrder:t=this.sortOrderElement.value,s=this._messages.sortOrderHeader,n=this.model.getSortOrder(),v=this.isCustomSortDisabled;break;case a.interval:t=this.intervalElement.value,s=this._messages.editInterval,n=i;break;case a.intervalAlignment:t=this.intervalAlignmentElement.value,s=this._messages.intervalAlignment,n=this.model.timeAggregationType??"";break}this.barChartPopover=E(o`<arcgis-charts-config-bar-chart-popover .headingTitle=${s} .referenceElement=${t} open .contentKind=${this.contentKind} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${n} .isCustomSortDisabled=${v} .isNoAggregationDisabled=${g} @arcgisChartsConfigBarChartDataPopoverChange=${this.onBarChartDataChange} @arcgisChartsConfigPopoverClose=${this.popoverClose}></arcgis-charts-config-bar-chart-popover>`),!document.body.contains(this.barChartPopover)&&this.barChartPopover!==null&&document.body.appendChild(this.barChartPopover)}removeBarChartDataPopover(){this.barChartPopover!==null&&(this.barChartPopover.open=!1,this.barChartPopover=Z(this.barChartPopover))}resetToOriginalCustomSortLabels(){this.selectedCustomSortItemId="",this.model.orderByList=[...this.originalCustomSortLabels],this.sortOrderResetCounter+=1}onTrimIncompleteIntervalChange(e){this.model.trimIncompleteTimeInterval=e.target.checked}onNullPolicyChange(e){this.model.nullPolicy=e.target.selectedItem?.value}shouldShowTimeBinning(){let e=this.layerFieldsInfo.find(t=>t.name===this.model.xAxisField),i=this.model.aggregationType!==d.NoAggregation;return e!==void 0&&R(e)&&i}renderSorting(){return o`<arcgis-charts-config-field-picker .disabled=${this.model.getAxisValueFormat(0)?.type===p.DateAxisFormat} .label=${this.model.getAxisValueFormat(0)?.type===p.DateAxisFormat?this._messages.xAxisAsc:this._messages[this.model.getSortOrder()]} @click=${this.onSortOrderSelect} ${m(this.sortOrderElement)}></arcgis-charts-config-field-picker>`}renderAggregation(){return o`<arcgis-charts-config-field-picker .label=${this.model.aggregationType===d.NoAggregation?this._messages.noAggregation:this.aggregationLabel} @click=${this.onAggregationSelect} ${m(this.aggregationElement)}></arcgis-charts-config-field-picker>`}renderCategory(){let e=this.getCorrectedCategoryValue();return o`<arcgis-charts-config-field-picker .label=${e} @click=${this.onCategorySelect} ${m(this.categoryElement)}></arcgis-charts-config-field-picker>`}renderSplitBy(){let e=this.getCorrectedSplitByValue();return o`<arcgis-charts-config-field-picker .label=${e} .disabled=${this.disableSplitBy} @click=${this.onSplitBySelect} ${m(this.splitByFieldElement)}></arcgis-charts-config-field-picker>`}renderNumericFields(e){let i=B(this.model.layer).idField,t=[];for(let s of e)s!==i&&t.push(this.buildNumericFieldItem(s));return o`<calcite-list label class=${r(l.fieldList)} ${m(this.numericFieldsElement)}>${t}</calcite-list>`}renderCustomSortUI(){let e=this.model.getSortOrder(),i=this.model.getAxisValueFormat(0)?.type,t=this.model.orderByList.indexOf(this.selectedCustomSortItemId);return i===p.CategoryAxisFormat&&e===h.customSort&&!this.isCustomSortDisabled?o`<calcite-label class=${r(l.label)}><div class=${r(l.customSortButtons)}><div><calcite-button appearance=transparent .disabled=${t===0||t===-1||this.selectedCustomSortItemId.trim()===""} icon-start=arrow-bold-up id=${C.Up} kind=neutral scale=s @click=${this.onCustomSortItemMoved}></calcite-button><calcite-button appearance=transparent .disabled=${t===-1||t===this.model.orderByList.length-1||this.selectedCustomSortItemId.trim()===""} icon-start=arrow-bold-down id=${C.Down} kind=neutral scale=s @click=${this.onCustomSortItemMoved}></calcite-button></div><calcite-button @click=${this.resetToOriginalCustomSortLabels} .disabled=${f(this.model.orderByList,this.originalCustomSortLabels)} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button></div>${I(this.model.config.series??[])===F.BarAndLineFromFields?this._messages.values:this._messages.category}${this.buildCustomSortList()}</calcite-label>`:null}renderInterval(){let e=(this.model.temporalBinningSize??0)<=0,i=this.model.temporalBinningSize??"",t=V(this.model.temporalBinningUnit??S.Second,this._messages)??"",s=K($),n={size:this.model.temporalBinningSize,unit:this.model.temporalBinningUnit},g=f(n,s);return[o`<calcite-list label selection-appearance=border class=${r(l.intervalContainer)}><calcite-list-item .value=${e?"":`${i} ${t}`} .label=${e?"":`${i} ${t}`} @click=${e?()=>{}:this.onIntervalSelect} ${m(this.intervalElement)}><calcite-icon slot=content-end icon=pencil></calcite-icon></calcite-list-item></calcite-list>`,o`<div class=${r(l.linkContainer)}><calcite-button .disabled=${g} appearance=transparent scale=s icon-end=reset @click=${this.resetTimeIntervalOriginal}>${this._messages.reset}</calcite-button></div>`]}renderIntervalAlignment(){return o`<arcgis-charts-config-field-picker .label=${this.timeAggregationLabel} @click=${this.onIntervalAlignmentSelect} ${m(this.intervalAlignmentElement)}></arcgis-charts-config-field-picker>`}renderEmptyBins(){return o`<calcite-radio-button-group name=empty-bins layout=vertical @calciteRadioButtonGroupChange=${this.onNullPolicyChange}><calcite-label layout=inline><calcite-radio-button .value=${b.Zero} .checked=${this.model.nullPolicy===b.Zero}></calcite-radio-button>${this._messages.treatAsZero}</calcite-label><calcite-label layout=inline><calcite-radio-button .value=${b.Null} .checked=${this.model.nullPolicy===b.Null}></calcite-radio-button>${this._messages.treatAsNull}</calcite-label></calcite-radio-button-group>`}render(){let e=this.renderAggregation(),i=this.renderCategory(),t=this.renderSplitBy(),s=this.renderSorting(),n=this.renderNumericFields([...this.model.numericFields??[]]),g=this.renderCustomSortUI(),v=this.renderInterval(),G=this.renderIntervalAlignment(),W=this.renderEmptyBins();return o`<calcite-label class=${r(l.label)}>${this._messages.category}${i}</calcite-label><calcite-label class=${r(l.label)}>${this._messages.aggregation}${e}</calcite-label><calcite-label class=${r(l.label)}>${this._messages.numericFields}${n}</calcite-label><div class=${r(l.fab)}><calcite-fab appearance=outline-fill kind=neutral scale=m .label=${this._messages.selectNumericFields} text-enabled .text=${this._messages.selectNumericFields} icon=plus @click=${this.onAddNumericFields}></calcite-fab></div><calcite-label class=${r(l.label)}><span class=${r(this.disableSplitBy?l.dimText:"")}>${this._messages.splitBy}</span>${t}</calcite-label><div .hidden=${!this.shouldShowTimeBinning()}><h3 class=${r(l.timeBinningHeader)}>${this._messages.timeBinningOptions}</h3><calcite-label class=${r(l.label)} layout=inline-space-between>${this._messages.enableTemporalBinning}<calcite-switch .checked=${this.model.binTemporalData} @calciteSwitchChange=${this.onEnableTimeBinningChange} ${m(this.enableTimeBinningSwitch)}></calcite-switch></calcite-label><div .hidden=${!this.model.binTemporalData||!this.shouldShowTimeBinning()}><calcite-label class=${r(l.label)}>${this._messages.interval}${v}</calcite-label><calcite-label class=${r(l.label)}>${this._messages.intervalAlignment}${G}</calcite-label><calcite-label class=${r(l.label)} layout=inline-space-between>${this._messages.trimIncompleteInterval}<calcite-switch .checked=${this.model.trimIncompleteTimeInterval} @calciteSwitchChange=${this.onTrimIncompleteIntervalChange}></calcite-switch></calcite-label>${this.model.aggregationType!==d.Count?o`<calcite-label class=${r(l.label)}>${this._messages.emptyBins}${W}</calcite-label>`:null}</div></div><calcite-label class=${r(l.label)} layout=inline-space-between>${this._messages.treatNullAsCategory}<calcite-switch .checked=${this.model.fetchNULLValues} @calciteSwitchChange=${this.onTreatNullAsCategoryChange}></calcite-switch></calcite-label><calcite-label class=${r(l.label)} layout=inline-space-between>${this._messages.showDataLabels}<calcite-switch .checked=${this.model.dataLabelsVisibility} @calciteSwitchChange=${this.onShowDataLabelsChange}></calcite-switch></calcite-label><calcite-label class=${r(this.model.getAxisValueFormat(0)?.type===p.DateAxisFormat?l.disabledLabel:l.label)}>${this._messages.sortOrder}${s}</calcite-label>${g}`}};T("arcgis-charts-config-bar-chart-data",x);return x},e,g,i,j)
|
package/dist/cdn/YM3BNPLM.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import f from"./LQKGTJZ6.js";import e from"./ZXW6JPMX.js";import d from"./VIQEFX6O.js";import c from"./OQEUNYYG.js";import a from"./7QDL4TE3.js";import{F as _,G as S,I as L,c as v}from"./ZTVR6KBG.js";import{f as u}from"./KX7KGXKQ.js";import{g as G}from"./SP2IPHWF.js";import{j as x}from"./QP5UAIC6.js";import{a as b}from"./PWJBGZPW.js";export default $arcgis.t(([{ja:C,ka:O,lc:X},{e:y,f:m,s:A},{d:l,e:a},{a:T,b:j},B])=>{var D=t=>{for(let e of t.axes??[])for(let i of e?.guides??[])if(i.label!==void 0)return i.label},F=(t,e)=>{for(let i of e.axes??[])for(let s of i?.guides??[]){let o=s.label?.text??"";s.label=G(t),s.label!==void 0&&(s.label.text=o)}};function r(t){return{...t,axis:t.orientation===x.X?t.config.axes?.[0]:t.config.axes?.[1],index:t.index??0,orientation:t.orientation??x.Y}}var I=t=>{let{axis:e,index:i}=r(t);return e?.guides?.[i]?.visible??!0},M=t=>{let e=(t.orientation??x.Y)===x.X?t.config.axes?.[0]:t.config.axes?.[1];t.index!==void 0?e?.guides?.[t.index]!==void 0&&(e.guides[t.index].visible=t.visible):e?.guides?.forEach(i=>{i.visible=t.visible})},V=t=>{let e=X(t.start,t.end);O(t.style)&&e===u.SFS?t.style={type:u.SFS,color:t.style.color}:C(t.style)&&e===u.SLS&&(t.style={type:u.SLS,color:t.style.color})},R=t=>{let{axis:e,index:i}=r(t);return e?.guides?.[i]?.start??null},w=t=>{let{start:e,axis:i,index:s}=r(t);i?.guides?.[s]!==void 0&&(i.guides[s].start=e,V(i.guides[s]))},E=t=>{let{axis:e,index:i}=r(t);return e?.guides?.[i]?.end},N=t=>{let{end:e,axis:i,index:s}=r(t);i?.guides?.[s]!==void 0&&(i.guides[s].end=e,V(i.guides[s]))},Y=t=>{let{axis:e,index:i}=r(t);return e?.guides?.[i]?.name},U=t=>{let{name:e,axis:i,index:s}=r(t);i?.guides?.[s]!==void 0&&(i.guides[s].name=e)},W=t=>{let{axis:e,index:i}=r(t);return e?.guides?.[i]?.label?.text},k=t=>{let{labelText:e,axis:i,index:s}=r(t),o=i?.guides?.[s]?.label??S(e,_(v.GuideLabel),v.GuideLabel);i?.guides?.[s]!==void 0&&(i.guides[s].label={...o,text:e})},q=t=>{let{axis:e,index:i}=r(t);return e?.guides?.[i]?.above??!1},z=t=>{let{above:e,axis:i,index:s}=r(t);i?.guides?.[s]!==void 0&&(i.guides[s].above=e)},H=t=>{let{axis:e,index:i}=r(t);return e?.guides?.[i]?.style},J=t=>{let{style:e,axis:i,index:s}=r(t);i?.guides?.[s]!==void 0&&(i.guides[s].style=e)},he=t=>{let{config:e,name:i,index:s,orientation:o}=t,n=o===x.X?e.axes?.[0]:e.axes?.[1];if(n!==void 0){n.guides=n.guides??[];let d={type:b.Guide,name:i,start:n.valueFormat.type===b.DateAxisFormat?"":0,style:L()};s!==void 0&&s<n.guides.length?n.guides.splice(s,0,d):n.guides.push(d)}},Ge=t=>{let{config:e,index:i,orientation:s}=t,o=s===x.X?e.axes?.[0]:e.axes?.[1];o?.guides!==void 0&&(i!==void 0&&i<o.guides.length?o.guides.splice(i,1):o.guides.pop())},K=t=>{let{axis:e,index:i}=r(t);return e?.guides?.[i]?.tooltipReverseColor??!1},Q=t=>{let{reverseColor:e,axis:i,index:s}=r(t);i?.guides?.[s]!==void 0&&(i.guides[s].tooltipReverseColor=e)},Z=Object.defineProperty,$=Object.getOwnPropertyDescriptor,c=(t,e,i,s)=>{for(var o=$(e,i),n=t.length-1,d;n>=0;n--)(d=t[n])&&(o=d(e,i,o)||o);return o&&Z(e,i,o),o},g=class extends B{get guideLabelsSymbol(){return D(this._config)}set guideLabelsSymbol(e){F(e,this._config)}getGuideVisibility(e,i){return I({config:this._config,index:e,orientation:i})}setGuideVisibility(e,i,s){M({visible:e,config:this._config,index:i,orientation:s})}getGuideStart(e,i){return R({config:this._config,index:e,orientation:i})}setGuideStart(e,i,s){w({start:e,config:this._config,index:i,orientation:s})}getGuideEnd(e,i){return E({config:this._config,index:e,orientation:i})}setGuideEnd(e,i,s){N({end:e,config:this._config,index:i,orientation:s})}getGuideName(e,i){return Y({config:this._config,index:e,orientation:i})}setGuideName(e,i,s){U({name:e,config:this._config,index:i,orientation:s})}getGuideLabelText(e,i){return W({config:this._config,index:e,orientation:i})}setGuideLabelText(e,i,s){k({labelText:e,config:this._config,index:i,orientation:s})}getGuideAbove(e,i){return q({config:this._config,index:e,orientation:i})}setGuideAbove(e,i,s){z({above:e,config:this._config,index:i,orientation:s})}getGuideStyle(e,i){return H({config:this._config,index:e,orientation:i})}setGuideStyle(e,i,s){J({style:e,config:this._config,index:i,orientation:s})}getTooltipReverseColor(e,i){return K({config:this._config,index:e,orientation:i})}setTooltipReverseColor(e,i,s){Q({reverseColor:e,config:this._config,index:i,orientation:s})}};c([a],g.prototype,"guideLabelsSymbol");c([a],g.prototype,"setGuideVisibility");c([a],g.prototype,"setGuideStart");c([a],g.prototype,"setGuideEnd");c([a],g.prototype,"setGuideName");c([a],g.prototype,"setGuideLabelText");c([a],g.prototype,"setGuideAbove");c([a],g.prototype,"setGuideStyle");c([a],g.prototype,"setTooltipReverseColor");var P=class extends l{get xAxisLabelsVisibility(){return T(0,this._config)}set xAxisLabelsVisibility(e){this.guardSetterFromAsyncOverwrite(()=>{j({visibility:e,axisIndex:0,config:this._config}),this.emitConfigUpdate("xAxisLabelsVisibility")})}},ee=Object.defineProperty,ie=Object.getOwnPropertyDescriptor,te=(t,e,i,s)=>{for(var o=ie(e,i),n=t.length-1,d;n>=0;n--)(d=t[n])&&(o=d(e,i,o)||o);return o&&ee(e,i,o),o},se=t=>y({config:t,axisIndex:0,isMax:!0}),oe=(t,e)=>{m({config:t,value:e,axisIndex:0,isMax:!0})},f=class extends l{get maxXBound(){return se(this._config)}set maxXBound(e){oe(this._config,e)}};te([a],f.prototype,"maxXBound");var ne=Object.defineProperty,re=Object.getOwnPropertyDescriptor,ae=(t,e,i,s)=>{for(var o=re(e,i),n=t.length-1,d;n>=0;n--)(d=t[n])&&(o=d(e,i,o)||o);return o&&ne(e,i,o),o},de=t=>y({config:t,axisIndex:0,isMax:!1}),ge=(t,e)=>{m({config:t,value:e,axisIndex:0,isMax:!1})},p=class extends l{get minXBound(){return de(this._config)}set minXBound(e){ge(this._config,e)}};ae([a],p.prototype,"minXBound");var h=class extends l{};A(h,[f,p]);return{a:he,b:Ge,c:g,d:P,e:h}},a,c,d,e,f)
|
package/dist/cdn/ZDQWQTZE.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import a from"./7QDL4TE3.js";import{q as R}from"./ZTVR6KBG.js";import{a as k,b as g,d as h,f as C}from"./KX7KGXKQ.js";import{d as z,g as q,j as L,l as D,r as W}from"./SP2IPHWF.js";import{a as G}from"./PWJBGZPW.js";export default $arcgis.t(([X,{createClassBreaksRenderer:Z},{getSchemes:ee},H,{Ib:J,ob:A}])=>{function te(e){let a;switch(e.length){case 4:{let t=e.match(/^#?([\da-f]{1})([\da-f]{1})([\da-f]{1})$/iu);t&&(a=[Number.parseInt(`${t[1]}${t[1]}`,16),Number.parseInt(`${t[2]}${t[2]}`,16),Number.parseInt(`${t[3]}${t[3]}`,16),255]);break}case 5:{let t=e.match(/^#?([\da-f]{1})([\da-f]{1})([\da-f]{1})([\da-f]{1})$/iu);t&&(a=[Number.parseInt(`${t[1]}${t[1]}`,16),Number.parseInt(`${t[2]}${t[2]}`,16),Number.parseInt(`${t[3]}${t[3]}`,16),Number.parseInt(`${t[4]}${t[4]}`,16)]);break}case 7:{let t=e.match(/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/iu);t&&(a=[Number.parseInt(t[1],16),Number.parseInt(t[2],16),Number.parseInt(t[3],16),255]);break}case 9:{let t=e.match(/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})([\da-f]{2})$/iu);t&&(a=[Number.parseInt(t[1],16),Number.parseInt(t[2],16),Number.parseInt(t[3],16),Number.parseInt(t[4],16)]);break}}return a}function _(e){let a;if(typeof e=="string"&&e.startsWith("#")){let t=te(e);t&&(a=t)}else Array.isArray(e)&&e.every(t=>typeof t=="number")&&(e.length===4?a=e:e.length===3&&(a=[...e,255]));return a}function K(e){return e===h.BackwardDiagonal||e===h.Cross||e===h.DiagonalCross||e===h.ForwardDiagonal||e===h.Horizontal||e===h.Null||e===h.Solid||e===h.Vertical}function v(e){return e===g.Dash||e===g.DashDot||e===g.DashDotDot||e===g.Dot||e===g.Null||e===g.Solid}function ae(e){let{categoryField:a,numericFields:t,configFields:r,inlineData:c}=e,o={};return r&&Object.keys(r).length>0&&"dataItems"in c&&(o={type:"uniqueValue",field1:a,uniqueValueInfos:[]},c.dataItems.forEach(s=>{let l=s[a];if(l!=null){let n={value:l};t.forEach(i=>{let u=_(s[`${r.fillColor}_${i}`]),m=s[`${r.fillOpacity}_${i}`],f=s[`${r.fillStyle}_${i}`],p=s[`${r.markerSize}_${i}`],d=_(s[`${r.outlineColor}_${i}`]),$=s[`${r.outlineOpacity}_${i}`],F=s[`${r.outlineWidth}_${i}`],O=s[`${r.outlineStyle}_${i}`],S=_(s[`${r.lineColor}_${i}`]),x=s[`${r.lineOpacity}_${i}`],I=s[`${r.lineWidth}_${i}`],N=s[`${r.lineStyle}_${i}`],j=s[`${r.displayLabel}_${i}`];if(typeof j=="string"&&(n={...n,label:j}),p!=null){let y={type:C.SMS};p&&typeof p=="number"&&(y.size=p),n.symbol=y}if(u||K(f)){let y=n.symbol?.type===C.SMS?n.symbol:{type:C.SFS};if(u&&(m&&typeof m=="number"&&(u[3]=m),y.color=u),K(f)&&(y.style=f),n.symbol=y,d||F!=null||v(O)){let B={type:C.SLS};d&&($&&typeof $=="number"&&(d[3]=$),B.color=d),v(O)&&(B.style=O),F&&typeof F=="number"&&(B.width=F),n.symbol.outline=B}}else if(S||I!=null||v(N)){let y={type:C.SLS};S&&(x&&typeof x=="number"&&(S[3]=x),y.color=S),v(N)&&(y.style=N),I!=null&&typeof I=="number"&&(y.width=I),n.symbol=y}}),(n.label||n.symbol)&&o.uniqueValueInfos.push(n)}})),o}function re(e){let{numericFields:a,configFields:t,inlineData:r}=e,c=r;return"dataItems"in r&&Object.entries(t).forEach(([o,s])=>{a.forEach(l=>{let n=`${s}_${l}`;r.dataItems.forEach(i=>{n in i&&delete i[n]})})}),c}function se(e){let{categoryField:a,categoryType:t,numericFields:r,inlineData:c}=e,o;if("dataItems"in c){let{dataItems:s}=c,l=[],n="OBJECTID",i=s.map((m,f)=>{let p={...m};return"FID"in m?n="FID":"ObjectId"in m&&(n="ObjectId"),p[n]||(p[n]=f),{attributes:p}});l.push({type:"esriFieldTypeOID",name:n});let u;switch(t){case"dateOnly":u=k.DateOnly;break;case"timeStampOffset":u=k.TimestampOffset;break;case"date":u=k.Date;break;case"number":u=k.Double;break;default:u=k.String;break}l.push({type:u,name:a}),r.forEach(m=>{l.push({type:k.Double,name:m})}),o={id:"",layerType:"ArcGISFeatureLayer",featureCollection:{layers:[{layerDefinition:{fields:l},featureSet:{features:i}}]}}}return o}async function oe(e){let{categoryField:a,categoryType:t,numericFields:r,configFields:c,inlineData:o}=e,s,l,n=q(o);c&&(s=ae({categoryField:a,numericFields:r,configFields:c,inlineData:n}),n=re({numericFields:r,configFields:c,inlineData:n}));let i=se({categoryField:a,categoryType:t,numericFields:r,inlineData:n});return i&&(l=await J(i)),{chartRenderer:s,iLayer:i,layer:l}}var E=H.all(),ne=ee({geometryType:"point",theme:"high-to-low"});function P(e,a,t){let r=Math.max(0,Math.min(1,t));return[Math.round(e[0]+(a[0]-e[0])*r),Math.round(e[1]+(a[1]-e[1])*r),Math.round(e[2]+(a[2]-e[2])*r),Math.round(e[3]+(a[3]-e[3])*r)]}function le(e,a){return a?.length===e?a:[]}function ie(e){let{numberOfClassBreaks:a,baseColors:t,fallbackStartColor:r=[237,248,251,255],fallbackEndColor:c=[136,65,157,255]}=e,o=[];if(a>0){let s=t?.[0]??r,l=t&&t.length>1?t[t.length-1]:c;if(a===1)o=[s];else for(let n=0;n<a;n++){let i=n/(a-1);o.push(P(s,l,i))}}return o}function Y(e){let{colorRamp:a,numberOfClassBreaks:t,isFlipped:r}=e,c=[],o=!1;if(a.colorsForClassBreaks&&a.colorsForClassBreaks.length>0){let s=a.colorsForClassBreaks.find(l=>l.numClasses===t);if(s?.colors?.length===t){let l=s.colors.map(n=>M(n));l.every(n=>n!==void 0)&&(c=r?l.reverse():l,o=!0)}}if(!o){let s=a.colors||[];if(s.length>0){let l=s.map(M).filter(i=>i!==void 0);r&&(l=l.reverse());let n=[];for(let i=0;i<t;i++){let u=t>1?i/(t-1):0,m=Math.floor(u*(l.length-1)),f=Math.min(m+1,l.length-1),p=l[m],d=l[f];if(!p||!d){c=[];break}let $=u*(l.length-1)-m,F=P(p,d,$);n.push(F)}c=n}}return c}function Q(e){let{numberOfClassBreaks:a,selectedColorRamp:t,colorRamp:r,isFlipped:c=!1}=e,o=le(a,r),s=t?Y({colorRamp:t,numberOfClassBreaks:a,isFlipped:c}):[];return o.length!==a&&(o=s),o.length!==a&&(o=ie({numberOfClassBreaks:a,baseColors:s.length>0?s:r})),o}function U(e,a=2){return e%1===0?e.toString():e.toFixed(a)}function ce(e,a=2){return`\u2264 ${U(e,a)}`}function Re(e){let a="#000000";if(e&&Array.isArray(e)&&e.length>=3){let t=b(e[0]||0),r=b(e[1]||0),c=b(e[2]||0),o=t.toString(16).padStart(2,"0"),s=r.toString(16).padStart(2,"0"),l=c.toString(16).padStart(2,"0");a=`#${o}${s}${l}`}return a}var ve={all:["*"],light:["light"],dark:["dark"],redsAndYellows:["oranges","reds","yellows"],greens:["greens"],blues:["blues"],purplesAndPinks:["purples","pinks"],browns:["browns"],grays:["grays"],bright:["bright"],subdued:["subdued"],colorblindFriendly:["colorblind-friendly"]},we={all:"all"},ue=e=>{let a=0,t=o=>{let s=0;return o.forEach(l=>{let n=l.toString().split(".")[1];n&&(s=Math.max(s,n.length))}),s},r=[...e].sort((o,s)=>o-s),c=t(r);for(;a<=c&&r.some((o,s)=>s>0&&A(o,a)<=A(r[s-1],a));)a++;return Math.min(a,c)};function b(e){return Math.max(0,Math.min(255,Math.round(e)))}function M(e){let a;if(e instanceof X){let t=e.toRgba();a=[b(t[0]),b(t[1]),b(t[2]),b(t[3]*255)]}else if(Array.isArray(e)&&e.every(t=>typeof t=="number")&&e.length===4){let t=e.length>=4?e[3]??255:255,r=b(t<=1?t*255:t);a=[b(e[0]??0),b(e[1]??0),b(e[2]??0),r]}return a}function w(e){let a=[];for(let t of e){let r=M(t);r&&a.push(r)}return a}function V(e,a){let t=0,r=e.size<=a.size?e:a,c=r===e?a:e;for(let o of r)c.has(o)&&t++;return t}function me(e){return[...e.colors??[],...L(e.colorsForClassBreaks??[],a=>a.colors??[])]}function fe(e){let{ramp:a,breakKeys:t,breakCount:r,weights:c}=e,o=d=>d.join(","),s=a.colorsForClassBreaks?.find(d=>d.numClasses===r)?.colors??[],l=new Set(w(s).map(o)),n=V(t,l),i=new Set(w(Q({numberOfClassBreaks:r,selectedColorRamp:a})).map(o)),u=V(t,i),m=me(a).filter(d=>!!d),f=new Set(w(m).map(o)),p=V(t,f);return n*c.exactN+u*c.generated+p*c.anyOverlap}function Me(e,a){let t={exactN:100,generated:10,anyOverlap:1},r=o=>o.join(","),c;if(e?.length){let o=w(e.map(u=>u.symbol?.color)),s=new Set(o.map(r)),l=o.length,n=a.map(u=>{let m=fe({ramp:u,breakKeys:s,breakCount:l,weights:t});return{ramp:u,score:m}}),i=W(n,[u=>-u.score,u=>u.ramp.name]);i[0]?.score>0&&(c=i[0].ramp)}return c}function Oe(e,a){let t=!0;if(!e?.length||a.length<2)t=!1;else{let r=e.map(M),c=a.map(o=>o.symbol.color);if(r.length!==c.length)t=!1;else{let o=(n,i)=>!!n&&!!i&&n.length===i.length&&n.every((u,m)=>u===i[m]),s=0,l=c.length-1;for(;s<r.length&&l>=0;){if(!o(r[s],c[l])){t=!1;break}s++,l--}}}return t}function pe(e){let a=new Set(e.dataItems.map(r=>r[R.valueField])),[t]=a;return a.size===1?t:void 0}function de(e,a){let t=Y({colorRamp:T.defaultColorRampForCharts,numberOfClassBreaks:1})[0];return{classMinValue:0,classMaxValue:e,label:U(e),symbol:{type:C.SFS,style:h.Solid,color:a??t??[0,0,0,255],outline:{style:g.Solid,width:.5,color:[50,50,50,.6]}}}}async function ye(e){let{data:a,breaksCount:t,classificationMethod:r,xAxisField:c,colorsForClassBreaks:o}=e,s=[],l=pe(a);if(l!==void 0)s=[de(l,o?.[0])];else{let n=await oe({categoryField:c??"",categoryType:G.DateAxisFormat,numericFields:[R.valueField],inlineData:a});if(n.layer){let i=ne?.primaryScheme,u=await Z({layer:n.layer,field:R.valueField,classificationMethod:r,numClasses:t,colorScheme:i});if(u?.classBreaksResult?.classBreakInfos?.length){let m=ue(u.classBreaksResult.classBreakInfos.map(f=>f.maxValue));s=u.classBreaksResult.classBreakInfos.map((f,p)=>({classMinValue:f.minValue,classMaxValue:f.maxValue,label:ce(f.maxValue,m),symbol:{type:C.SFS,style:h.Solid,color:o?.[p]||[0,0,0,255],outline:{style:g.Solid,width:.5,color:[50,50,50,.6]}}}))}}}return s}function he(e){return e?.length?e:T.esriColorRamps}function be(e,a){return e?he(a).find(t=>t.name===e):void 0}function ge(e){let{colorRampName:a,availableColorRamps:t}=e;return be(a,t)??T.defaultColorRampForCharts}var xe=z(async e=>{let{data:a,breaksCount:t,classificationMethod:r,xAxisField:c,colorRampName:o,availableColorRamps:s,existingClassBreakInfos:l,useExistingColors:n,isColorRampFlipped:i}=e,u=ge({colorRampName:o,availableColorRamps:s}),m=i??!1,f=Q({numberOfClassBreaks:t,selectedColorRamp:u,colorRamp:n?l?.map(p=>p.symbol?.color):void 0,isFlipped:m});return await ye({data:a,classificationMethod:r,breaksCount:t,xAxisField:c,colorsForClassBreaks:f})},e=>JSON.stringify(e)),T={esriColorRamps:E,defaultColorRampForCharts:E.find(e=>e.name==="Blue 3")??E[0]};function Ne({currentBreaks:e,configBreaks:a,treatReversedColorsAsEqual:t=!0}){let r=!0;if(Array.isArray(e)&&Array.isArray(a)){let c=o=>o.map(({symbol:s,...l})=>l);if(D(c(e),c(a))){let o=e.map(i=>i.symbol?.color),s=a.map(i=>i.symbol?.color),l=D(o,s),n=D(o,[...s].reverse());r=t?!(l||n):!l}}return r}return{a:Q,b:Re,c:ve,d:we,e:Me,f:Oe,g:xe,h:T,i:Ne}},"Color","smartMapping/renderers/color","smartMapping/symbology/color","smartMapping/symbology/support/colorRamps",a)
|
package/dist/cdn/ZYWOR5AX.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import h from"./7DMHLVYX.js";import g from"./SDDU5POB.js";import f from"./VVWD3AMY.js";import e from"./ZXW6JPMX.js";import d from"./VIQEFX6O.js";import c from"./OQEUNYYG.js";import a from"./7QDL4TE3.js";import{c as W,d as V,n as D}from"./WIIKUAWF.js";import{e as ne,f as We}from"./WOGALV3T.js";import{J as re,K as U,L as Re,Y as Ee,ba as Ve,ca as Me,ea as Pe,f as De,za as je}from"./ZTVR6KBG.js";import{a as de,f as Le}from"./KX7KGXKQ.js";import{d as qe,g as Q,k as ke}from"./SP2IPHWF.js";import{a as oe}from"./QP5UAIC6.js";import{a as fe,c as $e}from"./QYRHZJH3.js";import{a as b,b as T,e as Oe,h as Ne,k as se,l as L,n as $,o as we,v as k}from"./PWJBGZPW.js";export default $arcgis.t(([{substitute:_},{$a:ti,A:Ue,Db:ai,Ha:Ke,I:X,Ja:ei,Lb:oi,Mb:li,Nb:Y,Ob:ci,Pb:R,Qb:H,Rb:z,S:Z,Sb:xe,Sc:di,T:He,Vb:Fe,Ya:ii,Yb:Be,Z:ze,_b:gi,ac:be,bb:si,cb:ri,d:Ze,fb:ni,k:_e,mc:ui,na:pe,nc:ae,oc:yi,pa:N,pc:J,qa:w,ra:P,sa:Se,sc:mi,t:Xe,ta:Je,tc:q,ua:Ge,w:Ye,y:Qe},{c:j,d:le,f:O,g:he,h:fi,i:ve,l:Ie,t:pi},{a:Si,d:xi,e:Fi},{c:G},{a:Bi,e:bi},{d:ee},{a:hi,b:Te,f:M,g:K,i:ce}])=>{var kt=t=>{let e,i=t.series[0];return q(i)&&(e=i.temporalBinning?.size),e},Vi=t=>{let e,i=t.series[0];return q(i)&&(e=i.temporalBinning?.unit),e},Ot=t=>{let e,i=t.series[0];return q(i)&&(e=i.temporalBinning?.timeAggregationType),e},Nt=t=>{let e,i=t.series[0];return q(i)&&(e=i.temporalBinning?.trimIncompleteTimeInterval),e},wt=t=>{let e,i=t.series[0];return q(i)&&(e=i.temporalBinning?.nullPolicy),e},Mi=(t,e)=>{e?.series?.forEach(i=>{q(i)&&(i.temporalBinning??={},i.temporalBinning.size=t)})},Pi=(t,e)=>{e?.series?.forEach(i=>{q(i)&&(i.temporalBinning??={},i.temporalBinning.nullPolicy=t)}),O({config:e,value:null,axisIndex:1,isMax:!1}),O({config:e,value:null,axisIndex:1,isMax:!0})},Lt=(t,e)=>{e.series?.forEach(i=>{q(i)&&(i.temporalBinning??={},i.temporalBinning.unit=t)}),O({config:e,value:null,axisIndex:1,isMax:!1}),O({config:e,value:null,axisIndex:1,isMax:!0})},Dt=(t,e)=>{e.series?.forEach(i=>{q(i)&&(i.temporalBinning??={},i.temporalBinning.timeAggregationType=t)}),O({config:e,value:null,axisIndex:1,isMax:!1}),O({config:e,value:null,axisIndex:1,isMax:!0})},Rt=(t,e)=>{e.series?.forEach(i=>{q(i)&&(i.temporalBinning??={},i.temporalBinning.trimIncompleteTimeInterval=t)}),O({config:e,value:null,axisIndex:1,isMax:!1}),O({config:e,value:null,axisIndex:1,isMax:!0})},ji=t=>{Mi(0,t)},$i=Object.defineProperty,Wi=Object.getOwnPropertyDescriptor,Zi=(t,e,i,n)=>{for(var s=Wi(e,i),r=t.length-1,a;r>=0;r--)(a=t[r])&&(s=a(e,i,s)||s);return s&&$i(e,i,s),s},_i=t=>{let e;return Z(t)?e=t.outTimeZone:t?.series.forEach(i=>{(i.type===b.BarSeries||i.type===b.RadarSeries||i.type===b.LineSeries)&&i.temporalBinning&&(e=i.temporalBinning.outTimeZone)}),e||(e=t?.axes?.[0]?.valueFormat.type===b.DateAxisFormat?t.axes[0].valueFormat.intlOptions.timeZone:void 0),e},ki=(t,e)=>{let i=ei(t);Z(e)?t?e.outTimeZone=i:delete e.outTimeZone:e?.series.forEach(n=>{(n.type===b.BarSeries||n.type===b.RadarSeries||n.type===b.LineSeries)&&(t?(n.temporalBinning??={},n.temporalBinning.outTimeZone=i):n.temporalBinning&&delete n.temporalBinning.outTimeZone)}),e?.axes?.[0]?.valueFormat.type===b.DateAxisFormat&&(t?e.axes[0].valueFormat.intlOptions.timeZone=i:delete e.axes[0].valueFormat.intlOptions.timeZone)},Ce=class extends xi{get timeZone(){return _i(this._config)}set timeZone(e){ki(e,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}};Zi([Fi],Ce.prototype,"timeZone");function Et(t,e){let i;return e!==void 0&&(i={...e},i.legend!==void 0&&(i.legend.position=t)),i}function Vt(t,e){let i;return e!==void 0&&(i={...e},i.legend!==void 0&&(i.legend.visible=t)),i}function Mt(t,e){let i;return e!==void 0&&(i={...e,rotated:t}),i}function Xi(t){let e;return t!==void 0&&(e={...t},delete e.axes?.[0]?.minimum,delete e.axes?.[0]?.maximum,delete e.axes?.[1]?.minimum,delete e.axes?.[1]?.maximum),e}function Pt(t,e){return e!=null||pe(t)}async function jt(t){let{config:e,layer:i,abortSignal:n}=t,s=!1;return ne(i)||We(e)?e&&ne(i)&&(s=await ai({config:e,layer:i,abortSignal:n})):s=!0,s}async function Yi(t){let{queryObject:e,chartConfig:i,splitByField:n,errorStrings:s,abortSignal:r,runtimeDataFilters:a,ignoreViewExtent:o,setTimeBinningInfoWhenNotProvided:l,returnFeaturesExtent:m,returnStatisticsAggregatedIds:f,chartLimits:p}=t,g=[],d,u=Q(i),y=u.series[0],c=gi({queryObject:e,chartConfig:u,runtimeDataFilters:a,ignoreViewExtent:o});if(c.outStatistics?.[0]?.outStatisticFieldName&&(c.outStatistics[0].outStatisticFieldName=De.outStatistics.outStatisticFieldName),q(y)&&mi({xAxisValueFormatType:Ze(u),setTimeBinningInfoWhenNotProvided:l,seriesConfig:y,queryObject:e})&&Xe(n,e)){let{temporalBinning:F,x}=y,{uniqueQuery:S}=be({chartConfig:u,queryConfig:c,queryObject:e,setTimeBinningInfoWhenNotProvided:l,returnFeaturesExtent:m,chartLimits:p}),C=i.axes?.[0].valueFormat.type===b.DateAxisFormat?i.axes[0].valueFormat.intlOptions.timeZone:void 0;d=await Ue({queryObject:e,dateField:x,splitByField:n,queryConfig:S,axisTimeZone:C,temporalBinning:F,returnStatisticsAggregatedIds:f,errorStrings:s,abortSignal:r}),g=Array.from(new Set(d.flatMap(v=>{let{stackedAttributes:h}=v,A=[];return h&&(A=h.map(I=>I[n]).filter(I=>I!==void 0)),A})).values())}else{let{uniqueQuery:F}=be({chartConfig:u,queryObject:e,queryConfig:c,setTimeBinningInfoWhenNotProvided:l,returnFeaturesExtent:m,chartLimits:p}),{elementCount:x}=await ii({chartConfig:u,queryObject:e,queryConfig:c,behaviorAfterLimit:p?.behaviorAfterLimit,numberMaxOfFeaturesToFetch:F.num,abortSignal:r});d=await Qe({queryObject:e,queryConfig:F,featureCount:x,returnStatisticsAggregatedIds:f,errorStrings:s,abortSignal:r}),g=Array.from(new Set(d.map(S=>S.attributes[n]).filter(S=>S!==void 0)).values())}return{allValues:g,preFetchedQueryResponse:d}}function Qi(t,e){let i=new Map;return t.series.forEach(n=>{let s=ae({where:n.query?.where,normalize:!0,escape:!1});e&&s!==null&&(s=Number(s));let r=fe([n]);r!==void 0&&i.set(r,[...i.get(r)??[],s])}),i}function Ui(t){let{allValues:e,configUniqueValuesPerSeriesType:i,initialConfigWasEmpty:n}=t,s=new Map;return Array.from(i.keys()).forEach(r=>{let a=i.get(r)??[],o=[];n?o=e:e.forEach(l=>{a.includes(l)||o.push(l)}),s.set(r,o)}),s}function Hi(t){let{chartConfig:e,missingValue:i,splitByField:n,seriesTemplate:s}=t,r=JSON.parse(JSON.stringify({...e.series[0],...s}));if(r.query){if(i===null?r.id=W.nullValue:i===""?r.id=W.emptyStringValue:r.id=`${i}`,r.name=`${i}`,r.query.outStatistics?.[0]!==void 0){let o=r.id;r.query.outStatistics[0].outStatisticFieldName=o,"y"in r&&(r.y=o)}let a=typeof i=="number"||i===null?i:`'${i}'`;r.query.where=`${n}=${a}`}return r}async function zi(t){let{updateSplitBySeries:e,config:i,queryObject:n,errorStrings:s,abortSignal:r,runtimeDataFilters:a,ignoreViewExtent:o,setTimeBinningInfoWhenNotProvided:l,returnFeaturesExtent:m,returnStatisticsAggregatedIds:f,chartLimits:p}=t,{seriesTemplate:g}=e??{},d;if(n&&!ne(n)&&e!==void 0&&i!==void 0&&(i.series.length>0||g!==void 0)&&e.addMissingSeries){let u=i.series.length===0;i.series.length===0&&g!==void 0&&i.series.push(g);let y=J(i.series);if(y===V.BoxPlotC5MonoFieldAndSplitBy||y===V.BoxPlotC6MultiFieldsAndSplitBy||y===V.BoxPlotC7MonoFieldAndCategoryAndSplitBy||y===V.BarAndLineSplitBy||y===V.BarAndLineSplitByNoAggregation){let c=ui(i.series[0]?.query?.where),F=oi(n),x=li(c,F),S=x?ci(x):!1,C=await Yi({queryObject:n,chartConfig:i,splitByField:c,abortSignal:r,runtimeDataFilters:a,ignoreViewExtent:o,setTimeBinningInfoWhenNotProvided:l,returnFeaturesExtent:m,returnStatisticsAggregatedIds:f,chartLimits:p,errorStrings:s}),{allValues:v}=C;if({preFetchedQueryResponse:d}=C,v.length>0){let h=Qi(i,S),A=Ui({allValues:v,configUniqueValuesPerSeriesType:h,initialConfigWasEmpty:u});Array.from(A.keys()).forEach(I=>{(A.get(I)??[]).forEach(B=>{i.series.push(Hi({chartConfig:i,seriesTemplate:g,missingValue:B,splitByField:c}))}),u&&i.series.shift()})}}}return d}function Ji(t,e){e&&!pe(e)&&(e=Ye({chartConfig:e,queryObject:t}))}async function $t(t){let{configToAlter:e,layer:i,addMissingSeries:n,updateSplitBySeries:s,chartContainer:r,queryObject:a,abortSignal:o,runtimeDataFilters:l,ignoreViewExtent:m,setTimeBinningInfoWhenNotProvided:f,returnFeaturesExtent:p,returnStatisticsAggregatedIds:g,chartLimits:d,timeZone:u,errorStrings:y}=t,c=e,F;return c&&(Ji(i,c),c=await Si(c,i,void 0,o),n&&a&&(F=await zi({updateSplitBySeries:s,config:c,queryObject:a,errorStrings:y,abortSignal:o,runtimeDataFilters:l,ignoreViewExtent:m,setTimeBinningInfoWhenNotProvided:f,returnFeaturesExtent:p,returnStatisticsAggregatedIds:g,chartLimits:d})),c=di(c,r),ki(u,c)),{alteredConfig:c,preFetchedQueryResponse:F}}function Gi(t,e){let i=!1;if(e!==void 0){let n=si({key:_e.Average,splitBy:e});i=Number.isFinite(t[n])}return i}function Wt(t){let{data:e,config:i,showEmptySeries:n}=t,s=i.series.length,r=Q(i),a=!1;if(!n&&s>1&&e){let o=ti(e),l=fe(i?.series),m=J(i?.series),f=new Set;switch(l){case b.ComboLineAndBarSeries:case b.BarSeries:case b.RadarSeries:case b.LineSeries:{r.series.forEach(g=>{if(Array.isArray(o)){let d="";"y"in g&&(d=Array.isArray(g.y)?g.y[0]:g.y,m===V.BarAndLineSplitByNoAggregation&&(d=`${d}_${ae({where:g.query?.where,keepSurroundingQuotes:!1,escape:!1})}`),o.some(u=>ni({dataItem:u,x:g.x,y:d,aggregationType:i.series[0].query?.outStatistics?.[0]?.statisticType}))&&f.add(g))}});break}case b.BoxPlotSeries:{if(He(i)){let g=ze(i);i.series.forEach(d=>{let u,y;d.type===b.BoxPlotSeries?(u=e.dataItems,y=u?.some(c=>ri({dataItem:c,splitBy:d.query?.where,showOutliers:g}))):d.type===b.LineSeries&&(u=e.meanLines,y=u?.some(c=>Gi(c,d.query?.where))),y&&f.add(d)})}break}}let p=Array.from(f.values());a=p.length>0&&p.length<s,a&&(r.series=p)}return{seriesFilteredOut:a,filteredConfig:r}}var Zt=t=>t.hideEmptyRowsAndColumns,_t=(t,e)=>{t.hideEmptyRowsAndColumns=e},Xt=(t,e)=>{let i=t.series[0];i.heatRulesType=e},Yt=t=>t.series[0].heatRulesType,Qt=(t,e)=>{let i=t.series[0];i.gradientRules=e},Ut=t=>t.series[0].gradientRules,Ht=t=>{let{yField:e,config:i,layerInfo:n,commonStrings:s}=t,{layerFieldsInfo:r}=n,a=G(1,i),o=Ki(i),l=ee(i),m=i.series[0];if(typeof e=="string"&&o!==e&&m){if(m.y=e,Xi(i),o===a||l){let f=D(r,e);j(i,1,f)}Oi({commonStrings:s,config:i,layerInfo:n})}},Ki=t=>t.series[0].y??"",zt=t=>{let{binning:e,config:i,commonStrings:n}=t,s=i.series[0];if(s.xTemporalBinning=e,e?.unit!==void 0&&e.unit in n.utilsStrings.heatChartCalendarDatePartsUnits){let r=n.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];j(i,0,r)}ge({axisIndex:0,commonStrings:n,config:i})},et=t=>t.series[0].xTemporalBinning,Jt=t=>{let{binning:e,config:i,commonStrings:n}=t,s=i.series[0];if(s.yTemporalBinning=e,e?.unit!==void 0&&e.unit in n.utilsStrings.heatChartCalendarDatePartsUnits){let r=n.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];j(i,1,r)}ge({axisIndex:1,commonStrings:n,config:i})},it=t=>t.series[0].yTemporalBinning,tt=(t,e)=>{e.orderOptions??={};let i=e.axes?.[0]?.valueFormat?.type==="category"?k.Category:k.YValue,n=Ae(e)[0],s=e.axes?.[1]?.valueFormat?.type==="category"?k.Category:k.YValue,r=Ae(e)[1],a={...e.orderOptions.data??{},orderType:k.MultiAxes};n===oe.customSort&&i===k.Category&&(a.orderByX=[...t]),r===oe.customSort&&s===k.Category&&(a.orderByY=[...t]),Object.keys(a).length>1&&(e.orderOptions.data=a)},Gt=(t,e)=>{let i=e.series[0];i.gridLine&&(i.gridLine.width=t)},Kt=t=>t.series[0].gridLine?.width,es=(t,e)=>{let i=e.series[0],n=t?.length===4&&t.every(s=>typeof s=="number");i.gridLine&&n&&(i.gridLine.color=t)},is=t=>t.series[0].gridLine?.color,ts=(t,e)=>{let i=e.legend;i&&(i.position=t)},ss=t=>t.legend?.position??Oe.Bottom,rs=t=>t.series[0].query?.outStatistics?.[0]?.onStatisticField,ns=t=>{let{field:e,config:i,layerInfo:n,commonStrings:s}=t,r=i.series[0].query?.outStatistics?.[0],a=me(i,n,s);r?(r.onStatisticField=e,r.outStatisticFieldName=`${r.statisticType}_${e}`):i.series[0].query={outStatistics:[{onStatisticField:e,outStatisticFieldName:`${T.Count}_${e}`,statisticType:T.Count}]},a&&i.title&&(i.title.content.text=ie(i,n,s))},as=t=>t.series[0].query?.outStatistics?.[0].statisticType??T.Count,os=t=>{let{aggregationType:e,config:i,layerInfo:n,commonStrings:s}=t,r=i.series[0]?.query?.outStatistics?.[0],a=me(i,n,s);r&&e!==T.NoAggregation&&(r.statisticType=e,r.outStatisticFieldName=`${e}_${r.onStatisticField}`),(e===T.Count||e===T.Sum)&&st($.Zero,i),a&&i.title&&(i.title.content.text=ie(i,n,s))},ls=t=>t.nullPolicy,st=(t,e)=>{e.nullPolicy=t},cs=t=>t.series[0].emptyCells,gs=(t,e)=>{e.series[0].emptyCells=t},us=t=>t.series[0].emptyCells?.text,ys=(t,e)=>{e.series[0].emptyCells?e.series[0].emptyCells.text=t:e.series[0].emptyCells={text:t}},ms=t=>t.includeLeapDay,ds=(t,e)=>{e.includeLeapDay=t},fs=t=>t.series[0].emptyCells?.symbol,ps=(t,e)=>{e.series[0].emptyCells?e.series[0].emptyCells.symbol=t:e.series[0].emptyCells={symbol:t}};function Ss(t){return t.viewType}function xs(t,e){Ke(e)||(e.viewType=t)}function Fs(t){return t.series[0].classBreaksRules?.breaksCount??W.classBreaks.breaksCount}function Bs(t,e){e.series[0].classBreaksRules!==void 0?e.series[0].classBreaksRules.breaksCount=t??W.classBreaks.breaksCount:e.series[0].classBreaksRules={breaksCount:t??W.classBreaks.breaksCount}}function bs(t){return t.series[0].classBreaksRules?.classificationMethod}function hs(t,e){e.series[0].classBreaksRules!==void 0?e.series[0].classBreaksRules.classificationMethod=t:e.series[0].classBreaksRules={classificationMethod:t},e.series[0].classBreaksRules.breaksCount=e.series[0].classBreaksRules.breaksCount??W.classBreaks.breaksCount}function vs(t,e){e.firstDayOfWeek=t}function Is(t){return t.firstDayOfWeek}function Ts(t){return t.series[0].classBreaksRules?.colorRampInfo?.name}function Cs(t,e){e.series[0].classBreaksRules!==void 0?e.series[0].classBreaksRules.colorRampInfo={...e.series[0].classBreaksRules.colorRampInfo,name:t}:e.series[0].classBreaksRules={colorRampInfo:{name:t,flipped:!1}}}function As(t){return t.series[0].classBreaksRules?.colorRampInfo?.flipped??!1}function qs(t,e){e.series[0].classBreaksRules!==void 0?e.series[0].classBreaksRules.colorRampInfo={...e.series[0].classBreaksRules.colorRampInfo,flipped:t}:e.series[0].classBreaksRules={colorRampInfo:{flipped:t}}}var rt=[L.DayOfMonth,L.MonthOfYear],vi=t=>{let e;return H(t)?e=re():(R(t)||z(t))&&(e=U()),e},Ii=t=>R(t)||z(t),Ti=t=>{let{axisIndex:e,commonStrings:i,config:n,valueFormat:s}=t,r=n.axes?.[e]?.valueFormat;s!==void 0&&r?.type!==s.type&&Ie({config:n,commonStrings:i,valueFormat:s,axisIndex:e})},nt=(t,e)=>{let i;return e===0?i=t.series[0]?.xTemporalBinning:e===1&&(i=t.series[0]?.yTemporalBinning),i},Ci=(t,e)=>t.utilsStrings.heatChartCalendarDatePartsUnits[e]??"",Ai=(t,e)=>{let i=rt[t];return t===0&&e?.unit===L.DayOfWeek?i=L.HourOfDay:t===1&&e?.unit===L.HourOfDay&&(i=L.DayOfWeek),{type:b.CalendarDateParts,unit:i}},at=t=>{let e={};switch(t.unit){case L.DayOfMonth:e={day:"2-digit"};break;case L.DayOfWeek:e={weekday:"short"};break;case L.HourOfDay:e={hour:"numeric",hour12:!1};break;case L.MonthOfYear:e={month:"short"};break;default:e=U().intlOptions;break}return{type:b.DateAxisFormat,intlOptions:e}},qi=t=>{let{axisIndex:e,binning:i,commonStrings:n,config:s,fieldName:r,layerInfo:a}=t,o=s.series[0],l=G(e,s),m=D(a.layerFieldsInfo,r);e===0?o.xTemporalBinning=i:e===1&&(o.yTemporalBinning=i),i!==void 0&&(l===""||l===m||l===Ci(n,i.unit)||l===n.xAxis)&&j(s,e,Ci(n,i.unit))},ge=t=>{let{axisIndex:e,commonStrings:i,config:n}=t,s=nt(n,e),r=s?at(s):void 0;Ie({config:n,commonStrings:i,valueFormat:r,axisIndex:e})},Oi=t=>{let{commonStrings:e,config:i,layerInfo:n}=t,s=i.series[0]?.x??"",r=i.series[0]?.y??"",a=Be(n.layerFieldsInfo,s),o=Be(n.layerFieldsInfo,r),l=vi(a),m=vi(o),f=Ii(a)&&Ii(o),p=H(a)&&H(o);if(Ti({axisIndex:0,commonStrings:e,config:i,valueFormat:l}),Ti({axisIndex:1,commonStrings:e,config:i,valueFormat:m}),f){let g=et(i)===void 0,d=it(i)===void 0;g&&(qi({axisIndex:0,binning:Ai(0,i.series[0].yTemporalBinning),commonStrings:e,config:i,fieldName:s,layerInfo:n}),ge({axisIndex:0,commonStrings:e,config:i})),d&&(qi({axisIndex:1,binning:Ai(1,i.series[0].xTemporalBinning),commonStrings:e,config:i,fieldName:r,layerInfo:n}),ge({axisIndex:1,commonStrings:e,config:i}))}p&&(i.series[0].xTemporalBinning=void 0,i.series[0].yTemporalBinning=void 0)};function ot(t){let e={};return t.series.forEach(i=>{$e(i)&&"nullCategory"in i&&i.nullCategory!==void 0&&(e.text??=i.nullCategory.text,i.type===b.BarSeries?e.fillSymbol??=i.nullCategory.fillSymbol:e.markerSymbol??=i.nullCategory.markerSymbol)}),e.text||e.fillSymbol||e.markerSymbol?e:void 0}function ue(t){let{seriesIndex:e,xAxisField:i,aggregationType:n,config:s,layerInfo:r,commonStrings:a}=t,o=Y(r?.layer).idField,l,m=s.series[e??0],f=!1,p=!1,g=!1;if(m===void 0){let h=s.series;f=h.slice(0,e).every(A=>N(A)),p=h.slice(0,e).every(A=>w(A)),g=h.slice(0,e).every(A=>Se(A))}else f=N(m),p=w(m),g=Se(m);f?l=Ve({commonStrings:a,seriesIndex:e,objectIDField:o}):p?l=Me({commonStrings:a,seriesIndex:e,objectIDField:o}):g?l=Ee(a,o):l=Pe({seriesIndex:e,objectIDField:o,commonStrings:a});let d=s.series[0]?.dataLabels,u="nullCategory"in s.series[0]?ot(s):void 0,y="binTemporalData"in s.series[0]?s.series[0].binTemporalData:void 0,c="classBreakRules"in s.series[0]?s.series[0].classBreakRules:void 0,F="xTemporalBinning"in s.series[0]?s.series[0].xTemporalBinning:void 0,x="yTemporalBinning"in s.series[0]?s.series[0].yTemporalBinning:void 0,S="emptyCells"in s.series[0]?s.series[0].emptyCells:void 0,C=s.series[0].query&&"fetchNullValues"in s.series[0].query?s.series[0].query?.fetchNullValues:void 0,v={...l,x:i,y:"",dataLabels:{...l.dataLabels,type:l.dataLabels?.type??b.Text,content:{...l.dataLabels?.content,...d?.content,type:Le.TS},visible:d?.visible??!1},...u!==void 0?{nullCategory:u}:{},...y!==void 0?{binTemporalData:y}:{},...c!==void 0?{classBreakRules:c}:{},...F!==void 0?{xTemporalBinning:F}:{},...x!==void 0?{yTemporalBinning:x}:{},...S!==void 0?{emptyCells:S}:{}};if(v.query={groupByFieldsForStatistics:[i],...C!==void 0?{fetchNullValues:C}:{}},n!==T.NoAggregation&&o!==void 0){let h=`${n}_${o}_0`.toUpperCase();v.y=h,v.query.outStatistics=[{statisticType:n,onStatisticField:o,outStatisticFieldName:h}]}if(q(s.series[0])&&q(v)){let h=Vi(s);h===se.Quarter&&(h=se.Month),v.temporalBinning={...s.series[0]?.temporalBinning,unit:h}}return Q(v)}function ie(t,e,i){let{layerFieldsInfo:n}=e,{idField:s,isTraditionalTypeOID:r}=Y(e.layer),a=M(t),o=te(t),l=wi(t),m=ye(t),f=r&&(o.length===0||o.includes(s)),p=je(l,i),g=f?"":o.map(S=>D(n??[],S)).join(", "),d=D(n??[],a),u=D(n??[],m),y=t.series.some(S=>P(S)),c=y?"category":"xAxisField",F=d,x="";if(ce({fieldName:a,numericFields:o,fieldList:n}))x=_(i.titleLabels.aggrTypeOfAggrFields,{aggregationType:p,aggregationFields:g});else if(l===T.NoAggregation){let S=f?s:g;if(m===""){let C=y?"aggrTypeCategory":"aggrTypeXAxisField";x=_(i.titleLabels[C],{aggregationType:S,[c]:F})}else{let C=y?"aggrTypeCategoryBySplitBy":"aggrTypeXAxisFieldBySplitBy";x=_(i.titleLabels[C],{aggregationType:S,[c]:F,splitByField:u})}}else if(l===T.Count)if(m===""){let S=y?"aggrTypeCategory":"aggrTypeXAxisField";x=_(i.titleLabels[S],{aggregationType:p,[c]:F})}else{let S=y?"aggrTypeCategoryBySplitBy":"aggrTypeXAxisFieldBySplitBy";x=_(i.titleLabels[S],{aggregationType:p,[c]:F,splitByField:u})}else if(m!==""){let S=y?"aggrTypeOfAggrFieldByCategoryBySplitByField":"aggrTypeOfAggrFieldByXAxisFieldBySplitByField";x=_(i.titleLabels[S],{aggregationType:p,aggregationField:g,[c]:F,splitByField:u})}else if(o.length>0){let S=y?"aggrTypeOfAggrFieldsByCategory":"aggrTypeOfAggrFieldsByXAxisField";x=_(i.titleLabels[S],{aggregationType:p,aggregationFields:g,[c]:F})}return x}var Ni=t=>ae({where:t.query?.where,normalize:!1,escape:!1})??"",wi=t=>t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType??T.NoAggregation,ye=qe(t=>{let e=t?.series?.[0]?.query?.where?.split("=")[0].trim()??"";return yi(t?.series?.[0]?.query?.where)?"":e},t=>t?.series?.[0]?.query?.where),te=t=>{let e=[];if(ye(t)==="")e=t?.series.map(i=>{let n=i.query?.outStatistics?.map(s=>s.onStatisticField)??[];return n?.length>0?n:i.y}).flat()??[];else{let i=t?.series?.[0],n=i?.query?.outStatistics?.[0]?.onStatisticField??[i?.y].flat()[0];e=n!==void 0?[n]:[]}return e.filter(i=>i!=="")};function Li(t){let{splitByField:e,numericFields:i,layer:n,seriesIndex:s}=t,r=Y(n).idField??"";return e===""?i[s]??r:i[0]??r}function lt(t){let{numericFields:e,aggregationType:i,config:n,layerInfo:s}=t,r=!1;i===T.Count?r=!0:i===T.NoAggregation&&(r=e.every(l=>{let m=s.layerFieldsInfo.find(f=>f.name===l);return m!==void 0?xe(m):!1})),ve(n,1,r);let a=n.series.some(l=>N(l)),o=n.series.some(l=>w(l));if(a||o){let l=M(n),m=s.layerFieldsInfo.find(p=>p.name===l),f=m!==void 0&&xe(m);ve(n,0,f)}}var Ae=t=>{let e;if(Z(t)){let i=t.orderOptions?.data?.orderByX??[""],n=t.orderOptions?.data?.orderByY??[""],s=t.axes?.[0]?.valueFormat?.type==="category"?k.Category:k.YValue,r=t.axes?.[1]?.valueFormat?.type==="category"?k.Category:k.YValue;e=[Te(i,s),Te(n,r)]}else{let i=t.orderOptions?.data?.orderType??k.Category,n=t.orderOptions?.data&&"orderBy"in t.orderOptions.data?t.orderOptions.data.orderBy:Ne.Ascending;e=[hi(n,i)]}return e};function ct(t){let{xAxisField:e,numericFields:i,aggregationType:n,config:s,layerInfo:r,commonStrings:a}=t,{layerFieldsInfo:o}=r,l=ue({config:s,xAxisField:e,aggregationType:n,layerInfo:r,seriesIndex:0,commonStrings:a}),m=K({config:s,xAxisField:e,numericFields:i,aggregationType:n,layer:r.layer,fieldList:o}).name,f=M(s),p=te(s),g=ce({fieldName:f,numericFields:p,fieldList:o})?s.series[0]:void 0,d=`series_${Date.now()}`,u=g?.id??d,y=g?.name??a.axisLabels.values,c={...g??l,id:u,name:y,x:X,y:m},F=[];for(let x of i)F.push({onStatisticField:x,outStatisticFieldName:`${x}_0`.toUpperCase(),statisticType:n});return c.query={outStatistics:F},s.series.length===1&&((N(c)||w(c))&&Ri(c,s.series[0]),P(c)?c.fillSymbol=s.series[0].fillSymbol:(N(c)||w(c))&&(c.lineSymbol=s.series[0].lineSymbol,c.markerSymbol=s.series[0].markerSymbol)),[c]}function Di(t){let{xAxisField:e,numericFields:i,aggregationType:n,config:s,layerInfo:r,commonStrings:a}=t,{layerFieldsInfo:o}=r,l=Y(r.layer).idField,m=[];for(let u=0;u<i.length;u+=1){let y=ue({config:s,xAxisField:e,aggregationType:n,layerInfo:r,seriesIndex:u,commonStrings:a}),c=s.series[u]?.y,F=typeof c=="string"&&c.trim()!==""&&!o.find(E=>E.name===c)?c:K({config:s,xAxisField:e,numericFields:i,aggregationType:n,layer:r.layer,numericFieldIndex:u,fieldList:o}).name,x=i[u],S=s.series.find(E=>E.query?.where===void 0&&(E.query?.outStatistics?.length===1&&E.query?.outStatistics?.[0]?.onStatisticField===x||E.query?.outStatistics===void 0&&(E.y===x||E.x===x))),C=x!==l?x:y.id,v=S?.id??C,h=S?.name??D(o,x)??v,A=S??y,I={...A,id:v,name:h},B=x;I.query!==void 0&&(n!==T.NoAggregation?(B=I.type===b.HeatSeries&&S?.type===b.HeatSeries?x:F,I.query.outStatistics=[{...A.query?.outStatistics?.[0]??{},onStatisticField:x,outStatisticFieldName:F,statisticType:n}]):delete I.query.outStatistics),I.y=B,m.push(I)}let f=m.filter(u=>P(u)),p=m.filter(u=>N(u)||w(u)),g=s.series.filter(u=>P(u)),d=s.series.filter(u=>N(u)||w(u));return g.length===1&&f.length===1&&P(g[0])&&P(f[0])&&(f[0].fillSymbol=g[0].fillSymbol),d.length===1&&p.length===1&&((N(d[0])&&N(p[0])||w(d[0])&&w(p[0]))&&Ri(p[0],d[0]),(N(d[0])&&N(p[0])||w(d[0])&&w(p[0]))&&(p[0].lineSymbol=d[0].lineSymbol,p[0].markerSymbol=d[0].markerSymbol)),m}function ks(t){let{aggregationType:e,config:i,layerInfo:n,commonStrings:s}=t,{layerFieldsInfo:r,layer:a}=n,o=M(i),l=te(i),m=ye(i),f=me(i,n,s),p=Ei(i,n,s);if(i.series.forEach((g,d)=>{let u=K({config:i,xAxisField:o,numericFields:l,aggregationType:e,splitByField:m,layer:a,seriesIndex:d,numericFieldIndex:d,fieldList:r}).name;g.y=u;let y=Li({splitByField:m,numericFields:l,layer:a,seriesIndex:d}),c=g.query?.outStatistics?.[0]?.onStatisticField??y;g.query={...g.query,outStatistics:e===T.NoAggregation?void 0:[{...g.query?.outStatistics?.[0],outStatisticFieldName:u,statisticType:e,onStatisticField:c}]},"temporalBinning"in g&&g.temporalBinning!==void 0&&(g.temporalBinning.nullPolicy=e===T.NoAggregation?$.Interpolate:$.Null),e===T.NoAggregation&&ji(i)}),f&&i.title&&(i.title.content.text=ie(i,n,s)),p&&i.series[0].type!==b.HeatSeries){let g=le({config:i,layerInfo:n,commonStrings:s,numericFields:l,aggregationType:e});j(i,1,g)}}function gt(t){let{splitByField:e,xAxisField:i,numericFields:n,aggregationType:s,config:r,layerInfo:a,commonStrings:o,splitByFieldInfos:l}=t,{layer:m,layerFieldsInfo:f}=a,{categoriesArray:p,splitByFieldType:g}=l,d=Li({splitByField:e,numericFields:n,layer:m,seriesIndex:0}),u=[];if(p.length===0){u=Di({xAxisField:i,numericFields:n,aggregationType:s,config:r,layerInfo:a,commonStrings:o});for(let y of u)y.query&&(y.query.where=`${e}=''`)}else for(let y=0;y<p.length;y+=1){let c=p[y],F=K({config:r,xAxisField:i,numericFields:n,aggregationType:s,layer:a.layer,seriesIndex:y,splitByField:e,fieldList:f}).name,x=ue({config:r,xAxisField:i,aggregationType:s,layerInfo:a,seriesIndex:y,commonStrings:o}),S=Fe({queryObject:a.layer,fieldName:e,fieldValue:c??""}),C=`${c}`,v=r.series.find(E=>String(Ni(E)).trim().replace(/'/gu,"")===C),h=v?.id??C,A=v?.name??S??h,I=v??x,B={...I,id:h,name:A,y:F,query:{...I.query,where:`${e}=${g===de.String&&c!==null?`'${c}'`:c}`,outStatistics:s!==T.NoAggregation?[{...I.query?.outStatistics?.[0]??{},onStatisticField:d,outStatisticFieldName:F,statisticType:s}]:void 0}};u.push(B)}return u}var Os=t=>{let{xAxisFieldName:e,splitByField:i,numericFields:n,aggregationType:s,config:r,layerInfo:a,commonStrings:o,splitByFieldInfos:l}=t,{layerFieldsInfo:m}=a??{},f=Q(r),p=bi(r),g=M(f),d=m.find(B=>B.name===g),u=r.series[0]?.query===void 0,y=m.find(B=>B.name===e),c=me(f,a,o),F=Ei(f,a,o),x=ut({config:f,layerInfo:a,commonStrings:o}),S=he(r),C=f.series.some(B=>P(B)),v=Je(f.series),h=Ge(f.series),A=R(d)||R(y);if(H(y)?S=re():!z(d)&&z(y)?S=U():!R(d)&&R(y)?S=U():R(d)&&!R(y)&&(C?S=re():S=Re()),S!==void 0&&fi(r,o,S),p===0&&(r.series=[ue({config:r,xAxisField:e,aggregationType:s,layerInfo:a,commonStrings:o})]),r.series.forEach(B=>{B.x=e,B.query!==void 0&&(B.query.groupByFieldsForStatistics=[e])}),i===""||n.length>1?ce({fieldName:e,numericFields:n,fieldList:m})?r.series=ct({config:r,layerInfo:a,xAxisField:e,numericFields:n,aggregationType:s,commonStrings:o}):r.series=Di({config:r,layerInfo:a,xAxisField:e,numericFields:n,aggregationType:s,commonStrings:o}):l&&(r.series=gt({config:r,layerInfo:a,splitByField:i,xAxisField:e,numericFields:n,aggregationType:s,commonStrings:o,splitByFieldInfos:l})),x&&e!==X&&r.series[0].type!==b.HeatSeries){let B=D(m,e);j(r,0,B)}if(F&&r.series[0].type!==b.HeatSeries){let B=le({config:r,layerInfo:a,commonStrings:o,numericFields:n,aggregationType:s});j(r,1,B)}c&&r.title&&(r.title.content.text=ie(r,a,o));let I=g===e;if(O({config:r,value:I?r.axes?.[1]?.minimum??null:null,axisIndex:1,isMax:!1}),O({config:r,value:I?r.axes?.[1]?.maximum??null:null,axisIndex:1,isMax:!0}),lt({numericFields:n,aggregationType:s,config:r,layerInfo:a}),(v||h)&&(O({config:r,value:null,axisIndex:0,isMax:!1}),O({config:r,value:null,axisIndex:0,isMax:!0}),A&&s!==T.NoAggregation&&!Z(f))){let B=R(y)?$.Null:$.Interpolate;Pi(B,r)}Z(r)&&Oi({commonStrings:o,config:r,layerInfo:a}),r.series.forEach(B=>{u&&delete B.query,g!==e&&q(B)&&(y?.type===de.TimeOnly?B.binTemporalData=!1:B.binTemporalData=B.type===b.LineSeries&&R(y))})},Ri=(t,e)=>{t.markerVisible=e.markerVisible,t.lineSmoothed=e.lineSmoothed,t.showArea=e.showArea,t.areaColor=e.areaColor,t.stackNegativeValuesToBaseline=e.stackNegativeValuesToBaseline,e.lineSymbol&&(t.lineSymbol={...e.lineSymbol,color:t.lineSymbol?.color}),e.markerSymbol&&(t.markerSymbol={...e.markerSymbol,color:t.markerSymbol?.color})},Ns=t=>{let{config:e,seriesIndex:i,layerInfo:n,commonStrings:s}=t,r=e.series?.[i],a=ye(e),o;if(J(e.series)===V.BarAndLineFromFields)o=s.axisLabels.values;else if(ke(a)){let l=r.query?.outStatistics?.[0]?.onStatisticField;l!==void 0&&l!==Y(n.layer).idField&&(o=D(n.layerFieldsInfo,l))}else{let l=String(Ni(r)).trim().replace(/'/gu,"");o=Fe({queryObject:n.layer,fieldName:a,fieldValue:l??""})??l}return o??r.id},ws=(t,e)=>{if(Z(e))tt(t,e);else{e.orderOptions??={};let i=e.orderOptions?.data?.orderType;Ae(e)[0]===oe.customSort&&i===k.Category&&(e.orderOptions.data={orderType:k.Category,orderBy:[...t]})}},Ls=async t=>{let{config:e,layerInfo:i,errorStrings:n}=t,s=M(e),r=he(e)?.type,a=te(e),o=J(e.series),l=[];return r===b.CategoryAxisFormat&&(o===V.BarAndLineFromFields||s===X?l=a.map(m=>D(i?.layerFieldsInfo,m)):s.trim()!==""&&s!==X&&i!==void 0&&(l=await pi({layerInfo:i,config:e,category:s,errorStrings:n}))),l};function me(t,e,i){let n=ie(t,e,i),s=Bi(t),r=ee(t);return n===s||r}function Ei(t,e,i){let n=le({config:t,layerInfo:e,commonStrings:i,numericFields:te(t),aggregationType:wi(t)}),s=G(1,t),r=ee(t);return n===s||r}function ut(t){let{config:e,layerInfo:i,commonStrings:n}=t,s=D(i.layerFieldsInfo,M(e)),r=G(0,e),a=ee(e),o=M(e)===X&&(r===""||r===n.xAxis);return s===r||a||o}function Ds(t){return q(t.series[0])?t.series[0].binTemporalData??!0:!1}function Rs(t,e){e?.series.forEach(i=>{q(i)&&(i.binTemporalData=t,t?i.temporalBinning={unit:se.Day,size:0,timeAggregationType:we.Start,trimIncompleteTimeInterval:!0,nullPolicy:$.Null}:delete i.temporalBinning)})}return{a:kt,b:Vi,c:Ot,d:Nt,e:wt,f:Mi,g:Pi,h:Lt,i:Dt,j:Rt,k:ji,l:ki,m:Ce,n:Et,o:Vt,p:Mt,q:Xi,r:Pt,s:jt,t:$t,u:Wt,v:Zt,w:_t,x:Xt,y:Yt,z:Qt,A:Ut,B:Ht,C:Ki,D:zt,E:et,F:Jt,G:it,H:Gt,I:Kt,J:es,K:is,L:ts,M:ss,N:rs,O:ns,P:as,Q:os,R:ls,S:st,T:cs,U:gs,V:us,W:ys,X:ms,Y:ds,Z:fs,_:ps,$:Ss,aa:xs,ba:Fs,ca:Bs,da:bs,ea:hs,fa:vs,ga:Is,ha:Ts,ia:Cs,ja:As,ka:qs,la:Oi,ma:ie,na:wi,oa:ye,pa:te,qa:Ae,ra:ks,sa:Os,ta:Ns,ua:ws,va:Ls,wa:Ds,xa:Rs}},"intl",a,c,d,e,f,g,h)
|