@arcgis/charts-components 5.2.0-next.126 → 5.2.0-next.128
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/{GZWV22RE.js → 252LEJ7U.js} +1 -1
- package/dist/cdn/{CW4JPG3J.js → 26WEYDNB.js} +1 -1
- package/dist/cdn/{WQQMTR5J.js → 2BLR6LKU.js} +1 -1
- package/dist/cdn/{6AKXJHB7.js → 2ISGHAUI.js} +1 -1
- package/dist/cdn/{E5JWMNIW.js → 2ISUP2EC.js} +1 -1
- package/dist/cdn/{JZ6V5FKE.js → 2Q2NNE2E.js} +1 -1
- package/dist/cdn/{4U3OAZA7.js → 2ZAC3R6J.js} +1 -1
- package/dist/cdn/{7OESRD4R.js → 334POAQ3.js} +1 -1
- package/dist/cdn/4F6DKNCU.js +3 -0
- package/dist/cdn/{TPTH224R.js → 4KJXVTKT.js} +1 -1
- package/dist/cdn/{YUN3KGXG.js → 4NRY2KO2.js} +1 -1
- package/dist/cdn/{YQDW3D4E.js → 56CO5V5Y.js} +1 -1
- package/dist/cdn/{UPEMQGFY.js → 5A75STHJ.js} +1 -1
- package/dist/cdn/{IJAURACW.js → 5DI4FWSJ.js} +1 -1
- package/dist/cdn/{Z5VGMG7G.js → 5J5N5EH4.js} +1 -1
- package/dist/cdn/{M2WD5JN6.js → 5Z5C5L7O.js} +1 -1
- package/dist/cdn/{KW4KLLTK.js → 6AUVDB2X.js} +1 -1
- package/dist/cdn/{6GTMALBB.js → 6K25LYBM.js} +1 -1
- package/dist/cdn/{PEHD5Y4I.js → 6SLQ6E2L.js} +1 -1
- package/dist/cdn/{ONKX4PWR.js → 6WUMG4P2.js} +1 -1
- package/dist/cdn/{RPMGP2UN.js → A6IGTXFA.js} +1 -1
- package/dist/cdn/{YSZKMYYU.js → AA7OBKIP.js} +1 -1
- package/dist/cdn/{VJG6ZEH4.js → ARWJ6M4M.js} +1 -1
- package/dist/cdn/{VSMUBBEN.js → C4SI4UTD.js} +1 -1
- package/dist/cdn/{5MDZB2JE.js → C7BCDEO7.js} +1 -1
- package/dist/cdn/{AMVJMEWD.js → CDTABNYS.js} +1 -1
- package/dist/cdn/{6MHADUGC.js → CFDZTXBV.js} +1 -1
- package/dist/cdn/{763Z5IGF.js → CHMEYQRU.js} +1 -1
- package/dist/cdn/{56LNZVTX.js → CTV66EX6.js} +1 -1
- package/dist/cdn/{4VFEZCIA.js → CYEBSDUO.js} +1 -1
- package/dist/cdn/{MRN3GTKF.js → D37G7ULI.js} +1 -1
- package/dist/cdn/{RBTEJMJT.js → DC4Z6SV3.js} +1 -1
- package/dist/cdn/{YHQ5JR63.js → E2M4D7OW.js} +1 -1
- package/dist/cdn/{HQMCT3VB.js → E346UZ4Y.js} +1 -1
- package/dist/cdn/{A5P6WB3G.js → E4HQCLE5.js} +1 -1
- package/dist/cdn/{AOKEN5ZO.js → EYH2BIAD.js} +1 -1
- package/dist/cdn/{KS4EBLYJ.js → FCA7RGLN.js} +19 -19
- package/dist/cdn/{HKFQANWN.js → G5YKCSBP.js} +1 -1
- package/dist/cdn/{2PJPH3IO.js → G65D4QU4.js} +1 -1
- package/dist/cdn/{AOO37P5T.js → GOTXZDTB.js} +1 -1
- package/dist/cdn/{B5VRC7DP.js → GQRUVGUK.js} +1 -1
- package/dist/cdn/{N75HEDSD.js → GZBPHJ7H.js} +1 -1
- package/dist/cdn/{5BNYRPXI.js → H56BSQEW.js} +1 -1
- package/dist/cdn/{SKRBORPC.js → HJE3XLSD.js} +1 -1
- package/dist/cdn/{W2QXMYBG.js → HQ47ZXN2.js} +1 -1
- package/dist/cdn/{UYFTXYBR.js → HTZY6BFK.js} +1 -1
- package/dist/cdn/{F3UFKEVT.js → ICZSZBA3.js} +1 -1
- package/dist/cdn/{2IW2QZFJ.js → IL2XQ7JA.js} +1 -1
- package/dist/cdn/JRLMTZJ6.js +3 -0
- package/dist/cdn/{4MAJ24GS.js → JTLT34BE.js} +1 -1
- package/dist/cdn/{UEAU7YQZ.js → KFTX2TQU.js} +1 -1
- package/dist/cdn/{EX2R2B4U.js → KVNHQH7O.js} +1 -1
- package/dist/cdn/{LV3GHN5L.js → KYQPEMTU.js} +1 -1
- package/dist/cdn/{SL3ZM7G5.js → LHIWT7XJ.js} +1 -1
- package/dist/cdn/{6QIL7VBD.js → LKYUP362.js} +1 -1
- package/dist/cdn/{QZHRLUXI.js → LZXH65ES.js} +1 -1
- package/dist/cdn/{WOENRIAM.js → MDNFAO3M.js} +1 -1
- package/dist/cdn/{ANSNUR3I.js → MLR6CWHN.js} +1 -1
- package/dist/cdn/{LHGIUJ6U.js → NFRZPT5W.js} +1 -1
- package/dist/cdn/{7KZO2XXD.js → NKSGWA4X.js} +1 -1
- package/dist/cdn/{YSLCFR5X.js → NLCAS2S3.js} +1 -1
- package/dist/cdn/{LE2B3JXK.js → NPSI5JGI.js} +1 -1
- package/dist/cdn/{VT2XOG5Y.js → NUM2NK7X.js} +1 -1
- package/dist/cdn/{3W4HHL2V.js → NWITMWCT.js} +1 -1
- package/dist/cdn/{6664UEHL.js → OOB4AL5B.js} +1 -1
- package/dist/cdn/{WG2TWSUV.js → PABVNO3N.js} +1 -1
- package/dist/cdn/{IYI6DUGL.js → PE74EWN6.js} +1 -1
- package/dist/cdn/{TCYUL3JC.js → PUGPG7TG.js} +1 -1
- package/dist/cdn/{UY4AKYFU.js → QSQ4WWNZ.js} +1 -1
- package/dist/cdn/{GMP2UWJG.js → RLBQSLCM.js} +1 -1
- package/dist/cdn/{DX7M2EXK.js → RYFKSZCM.js} +1 -1
- package/dist/cdn/{TRR5AXW7.js → RYPF3XVE.js} +1 -1
- package/dist/cdn/{RS2T6377.js → SCMJVUZF.js} +1 -1
- package/dist/cdn/{NNRSK2LV.js → TB7TL34T.js} +1 -1
- package/dist/cdn/{SYSQA3IG.js → TBWNZHUY.js} +1 -1
- package/dist/cdn/{T6RCABY5.js → TCKL6CRO.js} +2 -2
- package/dist/cdn/{V3HNAMD7.js → TFEXNOQT.js} +1 -1
- package/dist/cdn/{K3R6EK3N.js → TGVSWL53.js} +1 -1
- package/dist/cdn/{57SE2XVZ.js → TVN5AANS.js} +1 -1
- package/dist/cdn/{QELGEYXU.js → UKGGXTFF.js} +1 -1
- package/dist/cdn/{IS2A63E6.js → UUIPQQJC.js} +1 -1
- package/dist/cdn/{CD3XMKTK.js → UXUJZXY6.js} +1 -1
- package/dist/cdn/{IBLYUVF2.js → V5BQ7JEF.js} +1 -1
- package/dist/cdn/{G4MIOOVR.js → V6QPNC6H.js} +1 -1
- package/dist/cdn/{5BMODU2D.js → VQV4WP3Q.js} +1 -1
- package/dist/cdn/{TIVS64YH.js → VRAKXFLS.js} +1 -1
- package/dist/cdn/{DAB3SJBG.js → VTEYNOVM.js} +1 -1
- package/dist/cdn/{CRDOGPB7.js → W5RIMXON.js} +1 -1
- package/dist/cdn/{YRWKRJU4.js → W6ZTJ5F4.js} +1 -1
- package/dist/cdn/{FASMW7S2.js → WHLIG2UP.js} +1 -1
- package/dist/cdn/{EJXBVT5O.js → WYKOFBBC.js} +1 -1
- package/dist/cdn/{WW7WSQXS.js → XNTW3FJJ.js} +1 -1
- package/dist/cdn/{DXWP65HI.js → Y343Z32K.js} +1 -1
- package/dist/cdn/{JOEBZXL4.js → Y5OM2HDA.js} +1 -1
- package/dist/cdn/{JSUH5PFI.js → Y6IIGQGN.js} +1 -1
- package/dist/cdn/{5434ASC3.js → YNHYJOH7.js} +1 -1
- package/dist/cdn/{5R7ZWTMY.js → YRQUJSIP.js} +1 -1
- package/dist/cdn/{VFVOONAN.js → YWEEKBTH.js} +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 +1 -1
- package/dist/chunks/box-plot-model.js +2 -2
- package/dist/chunks/chart-ui-utils.js +5 -5
- package/dist/chunks/class-breaks.js +1 -1
- package/dist/chunks/combo-bar-line-chart-model.js +2 -1
- package/dist/chunks/data-labels-visibility.js +2 -4
- package/dist/chunks/data.js +2 -2
- package/dist/chunks/index.js +2125 -2088
- package/dist/chunks/index4.js +1 -1
- package/dist/chunks/model-setter.js +5 -5
- package/dist/chunks/negative-values-stacked-to-baseline.js +2 -2
- package/dist/chunks/rounded-corners.js +1 -1
- package/dist/chunks/scatterplot-model.js +1 -1
- package/dist/chunks/serial-chart-data.js +35 -35
- package/dist/chunks/serial-chart-model.js +7 -7
- package/dist/chunks/utils.js +10 -10
- package/dist/chunks/web-component-utils.js +1 -1
- package/dist/chunks/x-bounds.js +14 -14
- package/dist/components/arcgis-chart/customElement.d.ts +45 -12
- package/dist/components/arcgis-chart/customElement.js +2980 -2943
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-format/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guide/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +4 -4
- 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/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +251 -250
- package/dist/model/bar-chart-model/bar-chart-model.d.ts +2 -2
- package/dist/model/box-plot-model/box-plot-model.d.ts +1 -1
- package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +3 -0
- package/dist/model/mixins/model-with-line-marker-styling.d.ts +1 -1
- package/dist/model/mixins/model-with-tooltips.d.ts +4 -8
- package/dist/model/properties/series/negative-values-stacked-to-baseline.d.ts +2 -2
- package/dist/utils/chart-config/converter/index.js +20 -20
- package/dist/utils/chart-config/utils/index.d.ts +12 -0
- package/package.json +5 -5
- package/dist/cdn/ASBXNQOS.js +0 -3
- package/dist/cdn/I3LNZVEA.js +0 -3
- /package/dist/cdn/{IJPD3GVL.js → UE4KTI5X.js} +0 -0
package/dist/chunks/index4.js
CHANGED
|
@@ -4,7 +4,7 @@ import P from "ajv";
|
|
|
4
4
|
import { g as k } from "./runtime.js";
|
|
5
5
|
import { fetchT9nStringsBundle as B } from "@arcgis/toolkit/intl";
|
|
6
6
|
import { getElementLocale as N } from "@arcgis/toolkit/intl/dom";
|
|
7
|
-
import {
|
|
7
|
+
import { cb as u, q as E, aT as M, av as C, bL as V, p as v, w as T, by as z, cc as G, t as x, bY as W, aQ as U, bt as F, cd as H, bl as J, W as _, ce as K, bH as Q, y as Z, cf as X, M as Y, N as ee } from "./index.js";
|
|
8
8
|
import { l as te, q as ie } from "./index3.js";
|
|
9
9
|
import { i as I, a as h, D as re } from "./index2.js";
|
|
10
10
|
import { g as S } from "./series-types.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { fetchT9nStringsBundle as
|
|
2
|
+
import { fetchT9nStringsBundle as f } from "@arcgis/toolkit/intl";
|
|
3
3
|
import { getElementLocale as l } from "@arcgis/toolkit/intl/dom";
|
|
4
4
|
import { g as m } from "./runtime.js";
|
|
5
5
|
import { convertChartSpec as y } from "../utils/chart-config/converter/index.js";
|
|
6
6
|
import { a6 as p } from "./index3.js";
|
|
7
|
-
import {
|
|
7
|
+
import { bK as o, bg as u, t as _, r as C } from "./index.js";
|
|
8
8
|
import { cloneDeep as U } from "es-toolkit/compat";
|
|
9
9
|
const h = 30;
|
|
10
10
|
function v(r, e, t, i) {
|
|
@@ -78,7 +78,7 @@ class x extends EventTarget {
|
|
|
78
78
|
*/
|
|
79
79
|
async loadConfigFromLayer(e) {
|
|
80
80
|
const { layer: t, iLayer: i, config: s, commonStrings: n, chartLimits: c } = e;
|
|
81
|
-
this._chartLimits = c, this.commonStrings = n ?? await
|
|
81
|
+
this._chartLimits = c, this.commonStrings = n ?? await f(
|
|
82
82
|
l(document.documentElement).t9nLocale,
|
|
83
83
|
m("./assets/common/t9n"),
|
|
84
84
|
"messages."
|
|
@@ -86,11 +86,11 @@ class x extends EventTarget {
|
|
|
86
86
|
let a = t;
|
|
87
87
|
if (!a && i ? a = await o(i) : !a && s?.iLayer && (a = await o(s.iLayer)), a) {
|
|
88
88
|
await u(a);
|
|
89
|
-
const d = _(a, !0),
|
|
89
|
+
const d = _(a, !0), g = C(a).idField;
|
|
90
90
|
this.layerInfo = {
|
|
91
91
|
layer: a,
|
|
92
92
|
layerFieldsInfo: d,
|
|
93
|
-
objectIdField:
|
|
93
|
+
objectIdField: g
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
96
|
this._config = s ? await y(s) : this.generateDefaultConfig(), this._config.legend !== void 0 && this._config.legend?.title === void 0 && (this._config.legend.title = p().title), i && (this._config.iLayer = i);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { g as k, b as S, s as b, a as v } from "./series.js";
|
|
3
3
|
import { n } from "./index3.js";
|
|
4
|
-
import {
|
|
4
|
+
import { c8 as i, c9 as o } from "./index.js";
|
|
5
5
|
import { C as y, m as h } from "./model-setter.js";
|
|
6
6
|
const l = (s) => {
|
|
7
7
|
const { config: e, seriesIndex: a, callback: t } = s;
|
|
@@ -105,7 +105,7 @@ class p extends y {
|
|
|
105
105
|
/**
|
|
106
106
|
* Specify how negative values are treated in stacked series.
|
|
107
107
|
*
|
|
108
|
-
* **Note:** If true
|
|
108
|
+
* **Note:** If `true`, negative values will be stacked on the base line. If `false`, negative values will be stacked in relation to their previous values in the stack.
|
|
109
109
|
*
|
|
110
110
|
* @param seriesIndex - The index of the series.
|
|
111
111
|
*/
|
|
@@ -6,7 +6,7 @@ import { g as z } from "./series-length.js";
|
|
|
6
6
|
import { g as b } from "./utils2.js";
|
|
7
7
|
import { aB as m, B as w, az as k } from "./index3.js";
|
|
8
8
|
import { b as y } from "./index2.js";
|
|
9
|
-
import {
|
|
9
|
+
import { bI as E } from "./index.js";
|
|
10
10
|
import { i as T } from "./index4.js";
|
|
11
11
|
import { C as V } from "./chart-model.js";
|
|
12
12
|
import { M as B, a as G, W as U, b as j } from "./data-labels-visibility.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { substitute as M } from "@arcgis/core/intl.js";
|
|
3
3
|
import { cloneDeep as te, memoize as Xe, isEmpty as He, isEqual as Ue } from "es-toolkit/compat";
|
|
4
4
|
import { S as ce } from "./common.js";
|
|
5
|
-
import { Y as L, aP as W, bo as je,
|
|
5
|
+
import { Y as L, aP as W, bo as je, bU as Ze, bV as _e, bJ as De, f as Ke, p as ie, W as Qe, V as ze, bW as Ge, O as ge, a$ as Je, bX as et, N as tt, t as it, bY as st, aQ as at, Q as rt, bZ as nt, _ as ot, bC as lt, b_ as ct, b$ as Se, c0 as ut, c1 as dt, c2 as yt, P as mt, c3 as Fe, c4 as Q, bL as gt, aR as k, a_ as z, M as pt, r as Z, a1 as Ne, c5 as Y, bH as j, c6 as ft, c7 as St, c8 as O, c9 as V, ca as he, bI as Te } from "./index.js";
|
|
6
6
|
import { u as $, s as Oe, g as pe, a as Ve, b as Ft, c as ht, d as G, e as xe } from "./utils.js";
|
|
7
7
|
import { a as w, s as fe, g as se, b as Be, c as Tt } from "./data.js";
|
|
8
8
|
import { a as x, d as I, f as xt, l as q, t as N, h as X, g as Bt, b as Ct, e as ue } from "./chart-object-literals.js";
|
|
@@ -75,7 +75,7 @@ const jt = (i) => {
|
|
|
75
75
|
(a.type === x.BarSeries || a.type === x.RadarSeries || a.type === x.LineSeries) && (i ? (a.temporalBinning ??= {}, a.temporalBinning.outTimeZone = t) : a.temporalBinning && delete a.temporalBinning.outTimeZone);
|
|
76
76
|
}), e?.axes?.[0]?.valueFormat.type === x.DateAxisFormat && (i ? e.axes[0].valueFormat.intlOptions.timeZone = t : delete e.axes[0].valueFormat.intlOptions.timeZone);
|
|
77
77
|
};
|
|
78
|
-
class
|
|
78
|
+
class Zt extends kt {
|
|
79
79
|
/**
|
|
80
80
|
* Gets the time zone for the chart.
|
|
81
81
|
*/
|
|
@@ -88,7 +88,7 @@ class Kt extends kt {
|
|
|
88
88
|
}
|
|
89
89
|
Ut([
|
|
90
90
|
qt
|
|
91
|
-
],
|
|
91
|
+
], Zt.prototype, "timeZone");
|
|
92
92
|
function $i(i, e) {
|
|
93
93
|
let t;
|
|
94
94
|
return e !== void 0 && (t = { ...e }, t.legend !== void 0 && (t.legend.position = i)), t;
|
|
@@ -101,7 +101,7 @@ function Xi(i, e) {
|
|
|
101
101
|
let t;
|
|
102
102
|
return e !== void 0 && (t = { ...e, rotated: i }), t;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function _t(i) {
|
|
105
105
|
let e;
|
|
106
106
|
return i !== void 0 && (e = { ...i }, delete e.axes?.[0]?.minimum, delete e.axes?.[0]?.maximum, delete e.axes?.[1]?.minimum, delete e.axes?.[1]?.maximum), e;
|
|
107
107
|
}
|
|
@@ -111,9 +111,9 @@ function Hi(i, e) {
|
|
|
111
111
|
async function Ui(i) {
|
|
112
112
|
const { config: e, layer: t, abortSignal: a } = i;
|
|
113
113
|
let s = !1;
|
|
114
|
-
return ye(t) || Pt(e) ? e && ye(t) && (s = await
|
|
114
|
+
return ye(t) || Pt(e) ? e && ye(t) && (s = await _e({ config: e, layer: t, abortSignal: a })) : s = !0, s;
|
|
115
115
|
}
|
|
116
|
-
async function
|
|
116
|
+
async function Kt(i) {
|
|
117
117
|
const {
|
|
118
118
|
queryObject: e,
|
|
119
119
|
chartConfig: t,
|
|
@@ -265,7 +265,7 @@ async function Jt(i) {
|
|
|
265
265
|
t.series.length === 0 && p !== void 0 && t.series.push(p);
|
|
266
266
|
const y = ie(t.series);
|
|
267
267
|
if (y === P.BoxPlotC5MonoFieldAndSplitBy || y === P.BoxPlotC6MultiFieldsAndSplitBy || y === P.BoxPlotC7MonoFieldAndCategoryAndSplitBy || y === P.BarAndLineSplitBy || y === P.BarAndLineSplitByNoAggregation) {
|
|
268
|
-
const m = tt(t.series[0]?.query?.where), F = it(a), S = st(m, F), h = S ? at(S) : !1, b = await
|
|
268
|
+
const m = tt(t.series[0]?.query?.where), F = it(a), S = st(m, F), h = S ? at(S) : !1, b = await Kt({
|
|
269
269
|
queryObject: a,
|
|
270
270
|
chartConfig: t,
|
|
271
271
|
splitByField: m,
|
|
@@ -335,7 +335,7 @@ async function ji(i) {
|
|
|
335
335
|
returnFeaturesExtent: f,
|
|
336
336
|
returnStatisticsAggregatedIds: p,
|
|
337
337
|
chartLimits: u
|
|
338
|
-
})), m =
|
|
338
|
+
})), m = Ze(m, r), Re(d, m)), { alteredConfig: m, preFetchedQueryResponse: F };
|
|
339
339
|
}
|
|
340
340
|
function ti(i, e) {
|
|
341
341
|
let t = !1;
|
|
@@ -345,11 +345,11 @@ function ti(i, e) {
|
|
|
345
345
|
}
|
|
346
346
|
return t;
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function Zi(i) {
|
|
349
349
|
const { data: e, config: t, showEmptySeries: a } = i, s = t.series.length, r = te(t);
|
|
350
350
|
let n = !1;
|
|
351
351
|
if (!a && s > 1 && e) {
|
|
352
|
-
const o =
|
|
352
|
+
const o = Ke(e), l = qe(t?.series), c = ie(t?.series), g = /* @__PURE__ */ new Set();
|
|
353
353
|
switch (l) {
|
|
354
354
|
case x.ComboLineAndBarSeries:
|
|
355
355
|
case x.BarSeries:
|
|
@@ -394,7 +394,7 @@ function Ki(i) {
|
|
|
394
394
|
}
|
|
395
395
|
return { seriesFilteredOut: n, filteredConfig: r };
|
|
396
396
|
}
|
|
397
|
-
const
|
|
397
|
+
const _i = (i) => i.hideEmptyRowsAndColumns, Ki = (i, e) => {
|
|
398
398
|
i.hideEmptyRowsAndColumns = e;
|
|
399
399
|
}, Qi = (i, e) => {
|
|
400
400
|
const t = i.series[0];
|
|
@@ -405,7 +405,7 @@ const Zi = (i) => i.hideEmptyRowsAndColumns, _i = (i, e) => {
|
|
|
405
405
|
}, Ji = (i) => i.series[0].gradientRules, es = (i) => {
|
|
406
406
|
const { yField: e, config: t, layerInfo: a, commonStrings: s } = i, { layerFieldsInfo: r } = a, n = re(1, t), o = ii(t), l = ae(t), c = t.series[0];
|
|
407
407
|
if (typeof e == "string" && o !== e && c) {
|
|
408
|
-
if (c.y = e,
|
|
408
|
+
if (c.y = e, _t(t), o === n || l) {
|
|
409
409
|
const g = R(r, e);
|
|
410
410
|
$(t, 1, g);
|
|
411
411
|
}
|
|
@@ -451,10 +451,10 @@ const Zi = (i) => i.hideEmptyRowsAndColumns, _i = (i, e) => {
|
|
|
451
451
|
statisticType: I.Count
|
|
452
452
|
}
|
|
453
453
|
]
|
|
454
|
-
}, n && t.title && (t.title.content.text =
|
|
454
|
+
}, n && t.title && (t.title.content.text = _(t, a, s));
|
|
455
455
|
}, ds = (i) => i.series[0].query?.outStatistics?.[0].statisticType ?? I.Count, ys = (i) => {
|
|
456
456
|
const { aggregationType: e, config: t, layerInfo: a, commonStrings: s } = i, r = t.series[0]?.query?.outStatistics?.[0], n = le(t, a, s);
|
|
457
|
-
r && e !== I.NoAggregation && (r.statisticType = e, r.outStatisticFieldName = `${e}_${r.onStatisticField}`), (e === I.Count || e === I.Sum) && ni(X.Zero, t), n && t.title && (t.title.content.text =
|
|
457
|
+
r && e !== I.NoAggregation && (r.statisticType = e, r.outStatisticFieldName = `${e}_${r.onStatisticField}`), (e === I.Count || e === I.Sum) && ni(X.Zero, t), n && t.title && (t.title.content.text = _(t, a, s));
|
|
458
458
|
}, ms = (i) => i.nullPolicy, ni = (i, e) => {
|
|
459
459
|
e.nullPolicy = i;
|
|
460
460
|
}, gs = (i) => i.series[0].emptyCells, ps = (i, e) => {
|
|
@@ -605,7 +605,7 @@ function ui(i) {
|
|
|
605
605
|
}), e.text || e.fillSymbol || e.markerSymbol ? e : void 0;
|
|
606
606
|
}
|
|
607
607
|
function ne(i) {
|
|
608
|
-
const { seriesIndex: e, xAxisField: t, aggregationType: a, config: s, layerInfo: r, commonStrings: n } = i, o =
|
|
608
|
+
const { seriesIndex: e, xAxisField: t, aggregationType: a, config: s, layerInfo: r, commonStrings: n } = i, o = Z(r?.layer).idField;
|
|
609
609
|
let l;
|
|
610
610
|
const c = s.series[e ?? 0];
|
|
611
611
|
let g = !1, f = !1, p = !1;
|
|
@@ -666,8 +666,8 @@ function ne(i) {
|
|
|
666
666
|
}
|
|
667
667
|
return te(C);
|
|
668
668
|
}
|
|
669
|
-
function
|
|
670
|
-
const { layerFieldsInfo: a } = e, { idField: s, isTraditionalTypeOID: r } =
|
|
669
|
+
function _(i, e, t) {
|
|
670
|
+
const { layerFieldsInfo: a } = e, { idField: s, isTraditionalTypeOID: r } = Z(e.layer), n = w(i), o = U(i), l = oe(i), c = K(i), g = r && (o.length === 0 || o.includes(s)), f = vt(l, t), p = g ? "" : o.map((h) => R(a ?? [], h)).join(", "), u = R(a ?? [], n), d = R(a ?? [], c), y = i.series.some((h) => Y(h)), m = y ? "category" : "xAxisField", F = u;
|
|
671
671
|
let S = "";
|
|
672
672
|
if (fe({
|
|
673
673
|
fieldName: n,
|
|
@@ -731,7 +731,7 @@ const we = (i) => ge({
|
|
|
731
731
|
where: i.query?.where,
|
|
732
732
|
normalize: !1,
|
|
733
733
|
escape: !1
|
|
734
|
-
}) ?? "", oe = (i) => i?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? I.NoAggregation,
|
|
734
|
+
}) ?? "", oe = (i) => i?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? I.NoAggregation, K = Xe(
|
|
735
735
|
(i) => {
|
|
736
736
|
const e = i?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
|
|
737
737
|
return pt(i?.series?.[0]?.query?.where) ? "" : e;
|
|
@@ -739,7 +739,7 @@ const we = (i) => ge({
|
|
|
739
739
|
(i) => i?.series?.[0]?.query?.where
|
|
740
740
|
), U = (i) => {
|
|
741
741
|
let e = [];
|
|
742
|
-
if (
|
|
742
|
+
if (K(i) === "")
|
|
743
743
|
e = i?.series.map((t) => {
|
|
744
744
|
const a = t.query?.outStatistics?.map((s) => s.onStatisticField) ?? [];
|
|
745
745
|
return a?.length > 0 ? a : t.y;
|
|
@@ -751,7 +751,7 @@ const we = (i) => ge({
|
|
|
751
751
|
return e.filter((t) => t !== "");
|
|
752
752
|
};
|
|
753
753
|
function Ee(i) {
|
|
754
|
-
const { splitByField: e, numericFields: t, layer: a, seriesIndex: s } = i, r =
|
|
754
|
+
const { splitByField: e, numericFields: t, layer: a, seriesIndex: s } = i, r = Z(a).idField ?? "";
|
|
755
755
|
return e === "" ? t[s] ?? r : t[0] ?? r;
|
|
756
756
|
}
|
|
757
757
|
function di(i) {
|
|
@@ -817,7 +817,7 @@ function yi(i) {
|
|
|
817
817
|
return F.query = { outStatistics: S }, s.series.length === 1 && ((O(F) || V(F)) && $e(F, s.series[0]), Y(F) ? F.fillSymbol = s.series[0].fillSymbol : (O(F) || V(F)) && (F.lineSymbol = s.series[0].lineSymbol, F.markerSymbol = s.series[0].markerSymbol)), [F];
|
|
818
818
|
}
|
|
819
819
|
function Ye(i) {
|
|
820
|
-
const { xAxisField: e, numericFields: t, aggregationType: a, config: s, layerInfo: r, commonStrings: n } = i, { layerFieldsInfo: o } = r, l =
|
|
820
|
+
const { xAxisField: e, numericFields: t, aggregationType: a, config: s, layerInfo: r, commonStrings: n } = i, { layerFieldsInfo: o } = r, l = Z(r.layer).idField, c = [];
|
|
821
821
|
for (let d = 0; d < t.length; d += 1) {
|
|
822
822
|
const y = ne({
|
|
823
823
|
config: s,
|
|
@@ -859,7 +859,7 @@ function Ye(i) {
|
|
|
859
859
|
return p.length === 1 && g.length === 1 && Y(p[0]) && Y(g[0]) && (g[0].fillSymbol = p[0].fillSymbol), u.length === 1 && f.length === 1 && ((O(u[0]) && O(f[0]) || V(u[0]) && V(f[0])) && $e(f[0], u[0]), (O(u[0]) && O(f[0]) || V(u[0]) && V(f[0])) && (f[0].lineSymbol = u[0].lineSymbol, f[0].markerSymbol = u[0].markerSymbol)), c;
|
|
860
860
|
}
|
|
861
861
|
function qs(i) {
|
|
862
|
-
const { aggregationType: e, config: t, layerInfo: a, commonStrings: s } = i, { layerFieldsInfo: r, layer: n } = a, o = w(t), l = U(t), c =
|
|
862
|
+
const { aggregationType: e, config: t, layerInfo: a, commonStrings: s } = i, { layerFieldsInfo: r, layer: n } = a, o = w(t), l = U(t), c = K(t), g = oe(t), f = le(t, a, s), p = We(t, a, s);
|
|
863
863
|
if (t.series.forEach((u, d) => {
|
|
864
864
|
const y = se({
|
|
865
865
|
config: t,
|
|
@@ -890,7 +890,7 @@ function qs(i) {
|
|
|
890
890
|
}
|
|
891
891
|
]
|
|
892
892
|
}, "temporalBinning" in u && u.temporalBinning !== void 0 && (u.temporalBinning.nullPolicy = e === I.NoAggregation ? X.Interpolate : X.Null), e === I.NoAggregation && Wt(t);
|
|
893
|
-
}), f && t.title && (t.title.content.text =
|
|
893
|
+
}), f && t.title && (t.title.content.text = _(t, a, s)), p && t.series[0].type !== x.HeatSeries) {
|
|
894
894
|
const u = pe({
|
|
895
895
|
config: t,
|
|
896
896
|
layerInfo: a,
|
|
@@ -986,7 +986,7 @@ const Rs = (i) => {
|
|
|
986
986
|
layerInfo: n,
|
|
987
987
|
commonStrings: o,
|
|
988
988
|
splitByFieldInfos: l
|
|
989
|
-
} = i, { layerFieldsInfo: c } = n ?? {}, g = te(r), f = wt(r), p = w(g), u =
|
|
989
|
+
} = i, { layerFieldsInfo: c } = n ?? {}, g = te(r), f = wt(r), p = w(g), u = K(g), d = oe(g), y = c.find((B) => B.name === p), m = r.series[0]?.query === void 0, F = U(g), S = c.find((B) => B.name === e), h = le(g, n, o), b = We(g, n, o), C = gi({ config: g, layerInfo: n, commonStrings: o });
|
|
990
990
|
let T = Ve(r);
|
|
991
991
|
const A = g.series.some((B) => Y(B)), v = ft(g.series), E = St(g.series), D = k(y) || k(S);
|
|
992
992
|
if (Q(S) ? T = de() : !z(y) && z(S) ? T = J() : !k(y) && k(S) ? T = J() : k(y) && !k(S) && (A ? T = de() : T = Ot()), T !== void 0 && ht(r, o, T), f === 0 && (r.series = [
|
|
@@ -1034,7 +1034,7 @@ const Rs = (i) => {
|
|
|
1034
1034
|
});
|
|
1035
1035
|
$(r, 1, B);
|
|
1036
1036
|
}
|
|
1037
|
-
if (h && r.title && (r.title.content.text =
|
|
1037
|
+
if (h && r.title && (r.title.content.text = _(r, n, o)), p === e && u === t && d === s && Ue(F, a) || Me(r), di({ numericFields: a, aggregationType: s, config: r, layerInfo: n }), (v || E) && (G({ config: r, value: null, axisIndex: 0, isMax: !1 }), G({ config: r, value: null, axisIndex: 0, isMax: !0 }), D && s !== I.NoAggregation && !W(g))) {
|
|
1038
1038
|
const B = k(S) ? X.Null : X.Interpolate;
|
|
1039
1039
|
$t(B, r);
|
|
1040
1040
|
}
|
|
@@ -1047,13 +1047,13 @@ const Rs = (i) => {
|
|
|
1047
1047
|
color: i.markerSymbol?.color
|
|
1048
1048
|
});
|
|
1049
1049
|
}, Ps = (i) => {
|
|
1050
|
-
const { config: e, seriesIndex: t, layerInfo: a, commonStrings: s } = i, r = e.series?.[t], n =
|
|
1050
|
+
const { config: e, seriesIndex: t, layerInfo: a, commonStrings: s } = i, r = e.series?.[t], n = K(e);
|
|
1051
1051
|
let o;
|
|
1052
1052
|
if (ie(e.series) === P.BarAndLineFromFields)
|
|
1053
1053
|
o = s.axisLabels.values;
|
|
1054
1054
|
else if (He(n)) {
|
|
1055
1055
|
const c = r.query?.outStatistics?.[0]?.onStatisticField;
|
|
1056
|
-
c !== void 0 && c !==
|
|
1056
|
+
c !== void 0 && c !== Z(a.layer).idField && (o = R(a.layerFieldsInfo, c));
|
|
1057
1057
|
} else {
|
|
1058
1058
|
const c = String(we(r)).trim().replace(/'/gu, "");
|
|
1059
1059
|
o = Ne({
|
|
@@ -1085,7 +1085,7 @@ const Rs = (i) => {
|
|
|
1085
1085
|
}))), l;
|
|
1086
1086
|
};
|
|
1087
1087
|
function le(i, e, t) {
|
|
1088
|
-
const a =
|
|
1088
|
+
const a = _(i, e, t), s = Et(i), r = ae(i);
|
|
1089
1089
|
return a === s || r;
|
|
1090
1090
|
}
|
|
1091
1091
|
function We(i, e, t) {
|
|
@@ -1123,7 +1123,7 @@ export {
|
|
|
1123
1123
|
Rs as C,
|
|
1124
1124
|
Ms as D,
|
|
1125
1125
|
Ys as E,
|
|
1126
|
-
|
|
1126
|
+
_ as F,
|
|
1127
1127
|
Pe as G,
|
|
1128
1128
|
ii as H,
|
|
1129
1129
|
es as I,
|
|
@@ -1140,10 +1140,10 @@ export {
|
|
|
1140
1140
|
Ns as T,
|
|
1141
1141
|
Os as U,
|
|
1142
1142
|
Vs as V,
|
|
1143
|
-
|
|
1143
|
+
Zt as W,
|
|
1144
1144
|
ks as X,
|
|
1145
|
-
|
|
1146
|
-
|
|
1145
|
+
_i as Y,
|
|
1146
|
+
Ki as Z,
|
|
1147
1147
|
as as _,
|
|
1148
1148
|
Hi as a,
|
|
1149
1149
|
ns as a0,
|
|
@@ -1173,8 +1173,8 @@ export {
|
|
|
1173
1173
|
$i as b,
|
|
1174
1174
|
Wi as c,
|
|
1175
1175
|
U as d,
|
|
1176
|
-
|
|
1177
|
-
|
|
1176
|
+
K as e,
|
|
1177
|
+
Zi as f,
|
|
1178
1178
|
oe as g,
|
|
1179
1179
|
Ps as h,
|
|
1180
1180
|
Ui as i,
|
|
@@ -1186,7 +1186,7 @@ export {
|
|
|
1186
1186
|
Mi as o,
|
|
1187
1187
|
ji as p,
|
|
1188
1188
|
Pi as q,
|
|
1189
|
-
|
|
1189
|
+
_t as r,
|
|
1190
1190
|
Re as s,
|
|
1191
1191
|
Yi as t,
|
|
1192
1192
|
Xi as u,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { isEqual as u } from "es-toolkit/compat";
|
|
3
3
|
import { a as S, c as b, d as f } from "./chart-object-literals.js";
|
|
4
|
-
import {
|
|
4
|
+
import { c5 as v, c8 as L, bH as p, r as M } from "./index.js";
|
|
5
5
|
import { i as P } from "./index4.js";
|
|
6
6
|
import { m as o } from "./model-setter.js";
|
|
7
7
|
import { S as V } from "./common.js";
|
|
8
8
|
import { M as N, a as k, W as R, b as E } from "./data-labels-visibility.js";
|
|
9
9
|
import { M as U, a as j } from "./model-with-y-guides.js";
|
|
10
10
|
import { C as O } from "./chart-model.js";
|
|
11
|
-
import { g as d, d as y, j as X, k as Y, l as w, m as z, n as
|
|
11
|
+
import { g as d, d as y, j as X, k as Y, l as w, m as z, n as K, o as q, q as G, t as $, v as H, w as Z, x as J, y as Q, z as _, A as x, B as T, C as m, D as ee, E as ie, e as te, F as se, W as re } from "./serial-chart-data.js";
|
|
12
12
|
import { M as oe } from "./model-with-x-guides.js";
|
|
13
13
|
import { W as ne, c as ae, d as le } from "./axis-lines-symbol.js";
|
|
14
14
|
import { W as ge, c as ce, d as he } from "./generate-x-axis-title.js";
|
|
@@ -96,16 +96,16 @@ class c extends O {
|
|
|
96
96
|
* Time aggregation type for a temporal bar chart or line chart.
|
|
97
97
|
*/
|
|
98
98
|
get timeAggregationType() {
|
|
99
|
-
return
|
|
99
|
+
return K(this._config);
|
|
100
100
|
}
|
|
101
101
|
set timeAggregationType(e) {
|
|
102
|
-
|
|
102
|
+
q(e, this._config);
|
|
103
103
|
}
|
|
104
104
|
/**
|
|
105
105
|
* Whether to trim incomplete time intervals for a temporal bar chart or line chart.
|
|
106
106
|
*/
|
|
107
107
|
get trimIncompleteTimeInterval() {
|
|
108
|
-
return
|
|
108
|
+
return G(this._config);
|
|
109
109
|
}
|
|
110
110
|
set trimIncompleteTimeInterval(e) {
|
|
111
111
|
$(e, this._config);
|
|
@@ -120,10 +120,10 @@ class c extends O {
|
|
|
120
120
|
* - Line series: connects the lines across null values.
|
|
121
121
|
*/
|
|
122
122
|
get nullPolicy() {
|
|
123
|
-
return
|
|
123
|
+
return H(this._config);
|
|
124
124
|
}
|
|
125
125
|
set nullPolicy(e) {
|
|
126
|
-
|
|
126
|
+
Z(e, this._config);
|
|
127
127
|
}
|
|
128
128
|
resetTimeInterval() {
|
|
129
129
|
J(this._config);
|
package/dist/chunks/utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as $, a as n, d as
|
|
3
|
-
import { r as B, aj as T,
|
|
2
|
+
import { c as $, a as n, d as A, g as U } from "./chart-object-literals.js";
|
|
3
|
+
import { r as B, aj as T, ci as X, cj as j, ck as D, cl as k, O as H, a1 as I } from "./index.js";
|
|
4
4
|
import { I as K, a0 as G, a1 as Q, X as Y, a7 as z, a2 as J, H as Z } from "./index3.js";
|
|
5
5
|
import { i as q } from "./type-guards.js";
|
|
6
6
|
import { f as _, b as N, i as ee, q as te } from "./index2.js";
|
|
@@ -37,11 +37,11 @@ function ge(s) {
|
|
|
37
37
|
o = N(i.layerFieldsInfo, e.series[0].y);
|
|
38
38
|
else if (a.length === 1) {
|
|
39
39
|
const x = N(i.layerFieldsInfo, a[0]), l = B(i.layer).idField;
|
|
40
|
-
r ===
|
|
40
|
+
r === A.NoAggregation ? o = x : r === A.Count && l !== void 0 && a[0] === l ? o = t.utilsStrings.statistics.count : o = O(t.axisLabels.aggregationOfFieldName, {
|
|
41
41
|
aggregation: f,
|
|
42
42
|
fieldName: x
|
|
43
43
|
});
|
|
44
|
-
} else a.length > 1 && (r ===
|
|
44
|
+
} else a.length > 1 && (r === A.NoAggregation ? o = t.axisLabels.values : o = O(t.axisLabels.aggregationOfValues, {
|
|
45
45
|
aggregation: f
|
|
46
46
|
}));
|
|
47
47
|
}
|
|
@@ -83,7 +83,7 @@ const E = (s, e, i) => s.axes?.[e] ?? z(i, s.type)[e], M = (s) => {
|
|
|
83
83
|
let i;
|
|
84
84
|
const t = e.axes?.[s]?.valueFormat;
|
|
85
85
|
return (s === 0 || s >= 1 && T(t)) && (i = t), i;
|
|
86
|
-
},
|
|
86
|
+
}, Ae = (s) => {
|
|
87
87
|
const { config: e, commonStrings: i, valueFormat: t, axisIndex: a = 0 } = s, r = E(e, a, i);
|
|
88
88
|
if (r !== void 0 && t !== void 0) {
|
|
89
89
|
const o = {
|
|
@@ -96,7 +96,7 @@ const E = (s, e, i) => s.axes?.[e] ?? z(i, s.type)[e], M = (s) => {
|
|
|
96
96
|
axisIndex: a
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
-
},
|
|
99
|
+
}, he = (s, e) => s.axes?.[e]?.isLogarithmic ?? !1, be = (s) => {
|
|
100
100
|
const { config: e, isLogarithmic: i, axisIndex: t } = s, a = e.axes?.[t];
|
|
101
101
|
a && (a.isLogarithmic = i, C({ config: e, value: null, axisIndex: t, isMax: !0 }), C({ config: e, value: null, axisIndex: t, isMax: !1 }));
|
|
102
102
|
}, ve = (s) => {
|
|
@@ -114,7 +114,7 @@ async function Le(s) {
|
|
|
114
114
|
fetchNullValues: d,
|
|
115
115
|
chartLimits: f,
|
|
116
116
|
errorStrings: x
|
|
117
|
-
} = s, m = r.filter((S) => S.name === a)[0]?.type, c = d !== !0 ? `${a} IS NOT NULL` : "", p = t && d !== !0 ? `${t} IS NOT NULL` : "",
|
|
117
|
+
} = s, m = r.filter((S) => S.name === a)[0]?.type, c = d !== !0 ? `${a} IS NOT NULL` : "", p = t && d !== !0 ? `${t} IS NOT NULL` : "", h = w(e?.series), { where: P } = e?.dataFilters ?? {}, R = {
|
|
118
118
|
where: j([P, c, p]),
|
|
119
119
|
// excluding the null values from the list
|
|
120
120
|
orderByFields: ee(a) ? [] : [`${a} ${U.Ascending}`],
|
|
@@ -139,7 +139,7 @@ async function Le(s) {
|
|
|
139
139
|
[n.BoxPlotSeries]: y.maxBoxPlotSeriesCount,
|
|
140
140
|
[n.LineSeries]: y.maxLineChartSeriesCount,
|
|
141
141
|
[n.RadarSeries]: y.maxRadarChartSeriesCount
|
|
142
|
-
}, b = (
|
|
142
|
+
}, b = (h ? W[h] : void 0) ?? y.serialChart.series, v = g.length, L = v > b;
|
|
143
143
|
if (L && (g = g.slice(0, b)), e) {
|
|
144
144
|
const S = e?.series.map((u) => H({ where: u.query?.where })?.toString() ?? "").filter((u) => u !== void 0 && u !== "");
|
|
145
145
|
g = te({
|
|
@@ -234,10 +234,10 @@ export {
|
|
|
234
234
|
fe as m,
|
|
235
235
|
me as n,
|
|
236
236
|
V as o,
|
|
237
|
-
|
|
237
|
+
he as p,
|
|
238
238
|
be as q,
|
|
239
239
|
Se as r,
|
|
240
|
-
|
|
240
|
+
Ae as s,
|
|
241
241
|
ve as t,
|
|
242
242
|
xe as u
|
|
243
243
|
};
|
|
@@ -7,7 +7,7 @@ import { g as me, a as de, b as ye } from "./pie-chart-data.js";
|
|
|
7
7
|
import { a as ie } from "./series-length.js";
|
|
8
8
|
import { g as re, d as le, e as ge } from "./serial-chart-data.js";
|
|
9
9
|
import { g as z, a as pe } from "./data.js";
|
|
10
|
-
import { p as U, r as be, q as xe, U as E, H as Fe, P, a1 as Ce, aR as De,
|
|
10
|
+
import { p as U, r as be, q as xe, U as E, H as Fe, P, a1 as Ce, aR as De, bP as Se } from "./index.js";
|
|
11
11
|
import { i as Y, K as $, l as R, M as ve, N as Be, O as Q } from "./index3.js";
|
|
12
12
|
import { i as K, a as g, C as A } from "./index2.js";
|
|
13
13
|
import { g as he } from "./series-types.js";
|
package/dist/chunks/x-bounds.js
CHANGED
|
@@ -5,7 +5,7 @@ import { G as c } from "./common.js";
|
|
|
5
5
|
import { b as g } from "./rest-js-object-literals.js";
|
|
6
6
|
import { a as x } from "./chart-object-literals.js";
|
|
7
7
|
import { P as S, a1 as L, a2 as b, t as T } from "./index3.js";
|
|
8
|
-
import {
|
|
8
|
+
import { bR as X, b as C, i as B } from "./index.js";
|
|
9
9
|
import { m as r, C as f } from "./model-setter.js";
|
|
10
10
|
import { f as A, e as M } from "./utils2.js";
|
|
11
11
|
import { n as y, d as v, h as O } from "./utils.js";
|
|
@@ -67,13 +67,13 @@ const V = (t) => {
|
|
|
67
67
|
}, Y = (t) => {
|
|
68
68
|
const { axis: e, index: i } = a(t);
|
|
69
69
|
return e?.guides?.[i]?.above ?? !1;
|
|
70
|
-
},
|
|
70
|
+
}, U = (t) => {
|
|
71
71
|
const { above: e, axis: i, index: s } = a(t);
|
|
72
72
|
i?.guides?.[s] !== void 0 && (i.guides[s].above = e);
|
|
73
|
-
},
|
|
73
|
+
}, q = (t) => {
|
|
74
74
|
const { axis: e, index: i } = a(t);
|
|
75
75
|
return e?.guides?.[i]?.style;
|
|
76
|
-
},
|
|
76
|
+
}, z = (t) => {
|
|
77
77
|
const { style: e, axis: i, index: s } = a(t);
|
|
78
78
|
i?.guides?.[s] !== void 0 && (i.guides[s].style = e);
|
|
79
79
|
}, Ge = (t) => {
|
|
@@ -91,19 +91,19 @@ const V = (t) => {
|
|
|
91
91
|
}, pe = (t) => {
|
|
92
92
|
const { config: e, index: i, orientation: s } = t, o = s === c.X ? e.axes?.[0] : e.axes?.[1];
|
|
93
93
|
o?.guides !== void 0 && (i !== void 0 && i < o.guides.length ? o.guides.splice(i, 1) : o.guides.pop());
|
|
94
|
-
},
|
|
94
|
+
}, H = (t) => {
|
|
95
95
|
const { axis: e, index: i } = a(t);
|
|
96
96
|
return e?.guides?.[i]?.tooltipReverseColor ?? !1;
|
|
97
|
-
},
|
|
97
|
+
}, J = (t) => {
|
|
98
98
|
const i = (t.orientation ?? c.Y) === c.X ? t.config.axes?.[0] : t.config.axes?.[1];
|
|
99
99
|
[t.index !== void 0 ? i?.guides?.[t.index] : i?.guides].flat().forEach((s) => {
|
|
100
100
|
s !== void 0 && (s.tooltipReverseColor = t.reverseColor);
|
|
101
101
|
});
|
|
102
102
|
};
|
|
103
|
-
var
|
|
104
|
-
for (var o =
|
|
103
|
+
var K = Object.defineProperty, Q = Object.getOwnPropertyDescriptor, l = (t, e, i, s) => {
|
|
104
|
+
for (var o = Q(e, i), n = t.length - 1, d; n >= 0; n--)
|
|
105
105
|
(d = t[n]) && (o = d(e, i, o) || o);
|
|
106
|
-
return o &&
|
|
106
|
+
return o && K(e, i, o), o;
|
|
107
107
|
};
|
|
108
108
|
class u extends h {
|
|
109
109
|
/**
|
|
@@ -185,7 +185,7 @@ class u extends h {
|
|
|
185
185
|
return Y({ config: this._config, index: e, orientation: i });
|
|
186
186
|
}
|
|
187
187
|
setGuideAbove(e, i, s) {
|
|
188
|
-
|
|
188
|
+
U({ above: e, config: this._config, index: i, orientation: s });
|
|
189
189
|
}
|
|
190
190
|
/**
|
|
191
191
|
* Gets the guide style.
|
|
@@ -194,10 +194,10 @@ class u extends h {
|
|
|
194
194
|
* @param orientation - Default `y`. The axis orientation of the guide.
|
|
195
195
|
*/
|
|
196
196
|
getGuideStyle(e, i) {
|
|
197
|
-
return
|
|
197
|
+
return q({ config: this._config, index: e, orientation: i });
|
|
198
198
|
}
|
|
199
199
|
setGuideStyle(e, i, s) {
|
|
200
|
-
|
|
200
|
+
z({ style: e, config: this._config, index: i, orientation: s });
|
|
201
201
|
}
|
|
202
202
|
/**
|
|
203
203
|
* Gets whether the tooltip text color should be reversed for a guide.
|
|
@@ -206,10 +206,10 @@ class u extends h {
|
|
|
206
206
|
* @param orientation - The axis orientation of the guide.
|
|
207
207
|
*/
|
|
208
208
|
getTooltipReverseColor(e, i) {
|
|
209
|
-
return
|
|
209
|
+
return H({ config: this._config, index: e, orientation: i });
|
|
210
210
|
}
|
|
211
211
|
setTooltipReverseColor(e, i, s) {
|
|
212
|
-
|
|
212
|
+
J({ reverseColor: e, config: this._config, index: i, orientation: s });
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
l([
|