@arcgis/charts-components 5.2.0-next.124 → 5.2.0-next.126
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{4UYG2V6P.js → 2IW2QZFJ.js} +1 -1
- package/dist/cdn/{CB3BW4H5.js → 2PJPH3IO.js} +1 -1
- package/dist/cdn/{WTMEWLUJ.js → 3W4HHL2V.js} +1 -1
- package/dist/cdn/{32RVL6OQ.js → 4MAJ24GS.js} +1 -1
- package/dist/cdn/4U3OAZA7.js +2 -0
- package/dist/cdn/{BQMUOJL7.js → 4VFEZCIA.js} +1 -1
- package/dist/cdn/{MQI4ZLAS.js → 5434ASC3.js} +1 -1
- package/dist/cdn/{NCOXA4CE.js → 56LNZVTX.js} +1 -1
- package/dist/cdn/{HFFXDWQL.js → 57SE2XVZ.js} +1 -1
- package/dist/cdn/{DYCZXSJG.js → 5BMODU2D.js} +1 -1
- package/dist/cdn/{BQMDOKAK.js → 5BNYRPXI.js} +1 -1
- package/dist/cdn/{H4UKMJ3M.js → 5MDZB2JE.js} +1 -1
- package/dist/cdn/{VP5MGMQP.js → 5R7ZWTMY.js} +1 -1
- package/dist/cdn/6664UEHL.js +2 -0
- package/dist/cdn/{N4YN5XHL.js → 6AKXJHB7.js} +1 -1
- package/dist/cdn/{CQORXOQS.js → 6GTMALBB.js} +1 -1
- package/dist/cdn/{YW6WBDZV.js → 6MHADUGC.js} +1 -1
- package/dist/cdn/{XIVGFLZQ.js → 6QIL7VBD.js} +1 -1
- package/dist/cdn/{GZA5OPRD.js → 763Z5IGF.js} +1 -1
- package/dist/cdn/7KZO2XXD.js +2 -0
- package/dist/cdn/{KYQWN5DR.js → 7OESRD4R.js} +1 -1
- package/dist/cdn/{UDQP2AFN.js → A5P6WB3G.js} +1 -1
- package/dist/cdn/{FK7MIBNE.js → AMVJMEWD.js} +1 -1
- package/dist/cdn/{A5CQKJHA.js → ANSNUR3I.js} +1 -1
- package/dist/cdn/{RDCTBV2Q.js → AOKEN5ZO.js} +1 -1
- package/dist/cdn/{EXCMERSU.js → AOO37P5T.js} +1 -1
- package/dist/cdn/{4GHJREG3.js → ASBXNQOS.js} +2 -2
- package/dist/cdn/{GCPA466R.js → B5VRC7DP.js} +1 -1
- package/dist/cdn/{RPUEIRTH.js → BGIUDL2K.js} +1 -1
- package/dist/cdn/{OO4U6KKQ.js → CD3XMKTK.js} +1 -1
- package/dist/cdn/{5V33DFCG.js → CRDOGPB7.js} +1 -1
- package/dist/cdn/{KILQBDSV.js → CW4JPG3J.js} +1 -1
- package/dist/cdn/DAB3SJBG.js +2 -0
- package/dist/cdn/{IJR65YQB.js → DX7M2EXK.js} +1 -1
- package/dist/cdn/{BUXZ2NBS.js → DXWP65HI.js} +1 -1
- package/dist/cdn/{6H6ZTNGY.js → E5JWMNIW.js} +1 -1
- package/dist/cdn/{IKH7UGJM.js → EJXBVT5O.js} +1 -1
- package/dist/cdn/{ITFMAKY3.js → EX2R2B4U.js} +1 -1
- package/dist/cdn/{WSSQILRB.js → F3UFKEVT.js} +1 -1
- package/dist/cdn/{5SYHQWPP.js → FASMW7S2.js} +1 -1
- package/dist/cdn/{WXO3YJ3T.js → G4MIOOVR.js} +1 -1
- package/dist/cdn/{MVJKABXP.js → GMP2UWJG.js} +1 -1
- package/dist/cdn/{O7NFMOTE.js → GZWV22RE.js} +1 -1
- package/dist/cdn/{STFT35NP.js → HKFQANWN.js} +1 -1
- package/dist/cdn/{3HZFE5JC.js → HQMCT3VB.js} +1 -1
- package/dist/cdn/I3LNZVEA.js +3 -0
- package/dist/cdn/{ZRYPRUVT.js → IBLYUVF2.js} +1 -1
- package/dist/cdn/{CR2U5KNC.js → IJAURACW.js} +1 -1
- package/dist/cdn/{C6YIO7EV.js → IS2A63E6.js} +1 -1
- package/dist/cdn/{PX7QCMDX.js → IYI6DUGL.js} +1 -1
- package/dist/cdn/{Q4HYSXEK.js → JOEBZXL4.js} +1 -1
- package/dist/cdn/{IGOJGDYE.js → JSUH5PFI.js} +1 -1
- package/dist/cdn/{JO4YQAFF.js → JZ6V5FKE.js} +1 -1
- package/dist/cdn/{IJKFUMKC.js → K3R6EK3N.js} +1 -1
- package/dist/cdn/{3IXFIA6D.js → KS4EBLYJ.js} +22 -22
- package/dist/cdn/{BF2U4V7S.js → KW4KLLTK.js} +1 -1
- package/dist/cdn/{W7HVSUF2.js → LE2B3JXK.js} +1 -1
- package/dist/cdn/{V4N4EY2E.js → LHGIUJ6U.js} +1 -1
- package/dist/cdn/{JNRJSGDP.js → LV3GHN5L.js} +1 -1
- package/dist/cdn/{JFXCJ6HT.js → M2WD5JN6.js} +1 -1
- package/dist/cdn/{SZYIWW3C.js → MRN3GTKF.js} +1 -1
- package/dist/cdn/{CKD62DZ4.js → N75HEDSD.js} +1 -1
- package/dist/cdn/{OCABBLZ7.js → NNRSK2LV.js} +1 -1
- package/dist/cdn/ONKX4PWR.js +2 -0
- package/dist/cdn/{3LEJV2CC.js → OR765GRF.js} +1 -1
- package/dist/cdn/{V4VQT6A6.js → PEHD5Y4I.js} +1 -1
- package/dist/cdn/{JSFNIFWE.js → QELGEYXU.js} +1 -1
- package/dist/cdn/QZHRLUXI.js +2 -0
- package/dist/cdn/{DPEEMYYB.js → RBTEJMJT.js} +1 -1
- package/dist/cdn/RD2OZ5DF.js +2 -0
- package/dist/cdn/{EFFUZV52.js → RPMGP2UN.js} +1 -1
- package/dist/cdn/{H3JLQ2R3.js → RS2T6377.js} +1 -1
- package/dist/cdn/SKRBORPC.js +2 -0
- package/dist/cdn/SL3ZM7G5.js +2 -0
- package/dist/cdn/{353KIT3L.js → SYSQA3IG.js} +1 -1
- package/dist/cdn/{IS7KQGMM.js → T6RCABY5.js} +1 -1
- package/dist/cdn/{TV3FXQVK.js → TCYUL3JC.js} +1 -1
- package/dist/cdn/{MOL3RVAG.js → TIVS64YH.js} +1 -1
- package/dist/cdn/{O34ACKBX.js → TPTH224R.js} +1 -1
- package/dist/cdn/{DCIQMSQ2.js → TRR5AXW7.js} +1 -1
- package/dist/cdn/{LUFRX5TB.js → UEAU7YQZ.js} +1 -1
- package/dist/cdn/{ZP4T262N.js → UPEMQGFY.js} +1 -1
- package/dist/cdn/{6CPDF77P.js → UY4AKYFU.js} +1 -1
- package/dist/cdn/{MDMJT2VS.js → UYFTXYBR.js} +1 -1
- package/dist/cdn/{M6L3GCVZ.js → V3HNAMD7.js} +1 -1
- package/dist/cdn/{QOZYAJXQ.js → VFVOONAN.js} +1 -1
- package/dist/cdn/{WVOXFKFO.js → VJG6ZEH4.js} +1 -1
- package/dist/cdn/{IW27UN5J.js → VSMUBBEN.js} +1 -1
- package/dist/cdn/{U2O4NGY5.js → VT2XOG5Y.js} +1 -1
- package/dist/cdn/{IJ3OJVJQ.js → W2QXMYBG.js} +1 -1
- package/dist/cdn/{7TM4LYGN.js → WG2TWSUV.js} +1 -1
- package/dist/cdn/{IYVSAR3D.js → WOENRIAM.js} +1 -1
- package/dist/cdn/{PETPI6FO.js → WQQMTR5J.js} +1 -1
- package/dist/cdn/{OY5HRHVW.js → WW7WSQXS.js} +1 -1
- package/dist/cdn/{MFJINTU5.js → YHQ5JR63.js} +1 -1
- package/dist/cdn/YQDW3D4E.js +2 -0
- package/dist/cdn/{METDO2QG.js → YRWKRJU4.js} +1 -1
- package/dist/cdn/{U2VHNPRE.js → YSLCFR5X.js} +1 -1
- package/dist/cdn/{CQLILZFZ.js → YSZKMYYU.js} +1 -1
- package/dist/cdn/{QSJV77RB.js → YUN3KGXG.js} +1 -1
- package/dist/cdn/Z5VGMG7G.js +2 -0
- package/dist/cdn/{ZTVR6KBG.js → ZUN46CYQ.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/action-bar-utils.js +1 -1
- package/dist/chunks/box-plot-data.js +1 -1
- package/dist/chunks/box-plot-model.js +173 -117
- package/dist/chunks/chart-ui-utils.js +11 -11
- package/dist/chunks/class-breaks.js +1 -1
- package/dist/chunks/combo-bar-line-chart-model.js +1 -1
- package/dist/chunks/data.js +9 -9
- package/dist/chunks/generate-x-axis-title.js +15 -15
- package/dist/chunks/heat-chart-model.js +9 -0
- package/dist/chunks/index.js +1590 -1574
- package/dist/chunks/index2.js +7 -1
- package/dist/chunks/index3.js +15 -15
- package/dist/chunks/index4.js +7 -7
- package/dist/chunks/model-setter.js +21 -21
- package/dist/chunks/negative-values-stacked-to-baseline.js +1 -1
- package/dist/chunks/pie-chart-data.js +4 -4
- package/dist/chunks/pie-chart-model.js +102 -84
- package/dist/chunks/resource.js +1 -1
- package/dist/chunks/rounded-corners.js +1 -1
- package/dist/chunks/scatterplot-model.js +1 -1
- package/dist/chunks/serial-chart-data.js +71 -71
- package/dist/chunks/serial-chart-model.js +134 -79
- package/dist/chunks/type-guards2.js +17 -17
- package/dist/chunks/utils.js +123 -107
- package/dist/chunks/web-component-utils.js +9 -9
- package/dist/chunks/x-bounds.js +21 -21
- package/dist/components/arcgis-chart/customElement.js +4775 -4653
- package/dist/components/arcgis-charts-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-axis/customElement.js +52 -42
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +11 -11
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +10 -10
- package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-format/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-general/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guide/customElement.js +14 -14
- package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +54 -63
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-histogram/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +368 -366
- package/dist/interfaces.d.ts +3 -2
- package/dist/model/box-plot-model/box-plot-model.d.ts +20 -1
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +7 -1
- package/dist/model/interfaces/chart-interfaces.d.ts +3 -0
- package/dist/model/interfaces/common.d.ts +2 -0
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +13 -1
- package/dist/model/serial-chart-model/serial-chart-model.d.ts +20 -1
- package/dist/model/shared/setup-utils.d.ts +2 -0
- package/dist/model/shared/setup-utils.js +37 -36
- package/dist/utils/chart-config/converter/index.js +48 -48
- package/dist/utils/chart-config/utils/index.d.ts +20 -0
- package/dist/utils/data/interfaces.d.ts +1 -0
- package/package.json +4 -4
- package/dist/cdn/2TV4NKY2.js +0 -2
- package/dist/cdn/4YOIC4P4.js +0 -2
- package/dist/cdn/ELXF6XQQ.js +0 -2
- package/dist/cdn/EXLX4SJG.js +0 -2
- package/dist/cdn/GTBT4ACW.js +0 -2
- package/dist/cdn/HH5B6KCV.js +0 -2
- package/dist/cdn/KRNF2XCU.js +0 -2
- package/dist/cdn/KZBUDNHW.js +0 -2
- package/dist/cdn/KZSCAJDG.js +0 -2
- package/dist/cdn/LBX6U6EK.js +0 -3
- package/dist/cdn/Q4GIMFJ2.js +0 -2
- package/dist/cdn/XOTHROVZ.js +0 -2
- /package/dist/cdn/{225VUGML.js → IJPD3GVL.js} +0 -0
|
@@ -11,7 +11,7 @@ import { i as F } from "../../chunks/rotated-state.js";
|
|
|
11
11
|
import { A as t, c as l, D as e } from "../../chunks/index5.js";
|
|
12
12
|
import { A as k } from "../../chunks/index2.js";
|
|
13
13
|
import { a as I } from "../../chunks/chart-object-literals.js";
|
|
14
|
-
import { i as r,
|
|
14
|
+
import { i as r, j as w } from "../../chunks/type-guards2.js";
|
|
15
15
|
function N(d) {
|
|
16
16
|
return d?.tagName.toLowerCase() === "arcgis-chart";
|
|
17
17
|
}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as I } from "../../chunks/runtime.js";
|
|
3
3
|
import { debounce as g } from "es-toolkit/compat";
|
|
4
|
-
import { g as
|
|
5
|
-
import { i as
|
|
4
|
+
import { g as E, a as C } from "../../chunks/store.js";
|
|
5
|
+
import { i as p, m as h, U as i, b, s as r } from "../../chunks/chart-ui-utils.js";
|
|
6
6
|
import { A as f } from "../../chunks/axis-model-wrapper.js";
|
|
7
7
|
import { u as N } from "../../chunks/useT9n.js";
|
|
8
8
|
import { css as L, html as o } from "lit";
|
|
9
|
-
import { createRef as
|
|
10
|
-
import { LitElement as S, renderElement as
|
|
11
|
-
import { a as
|
|
9
|
+
import { createRef as x, ref as B } from "lit/directives/ref.js";
|
|
10
|
+
import { LitElement as S, renderElement as A, safeClassMap as m } from "@arcgis/lumina";
|
|
11
|
+
import { a as c } from "../../chunks/chart-object-literals.js";
|
|
12
12
|
const l = {
|
|
13
13
|
linkContainer: "link-container",
|
|
14
14
|
label: "label",
|
|
15
15
|
mb2: "mb-2"
|
|
16
|
-
},
|
|
17
|
-
class
|
|
16
|
+
}, D = 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)}calcite-block{width:var(--arcgis-charts-config-calcite-block-width, var(--arcgis-charts-config-calcite-block-default-width));height:var(--arcgis-charts-config-calcite-block-height, var(--arcgis-charts-config-calcite-block-default-height));border:0px;-webkit-box-shadow:0 0 0 0;box-shadow:0 0}.label{display:flex;justify-content:space-between}.mb-2{margin-bottom:var(--arcgis-charts-config-margin-minor)}.link-container{display:flex;justify-content:flex-end;margin-top:-.75rem}`;
|
|
17
|
+
class w extends S {
|
|
18
18
|
constructor() {
|
|
19
|
-
super(...arguments), this._messages = N(), this.commonStrings = N({ name: "common", blocking: !0 }), this.axisModel = new f(), this.minBoundInputElement =
|
|
19
|
+
super(...arguments), this._messages = N(), this.commonStrings = N({ name: "common", blocking: !0 }), this.axisModel = new f(), this.minBoundInputElement = x(), this.maxBoundInputElement = x(), this.showLogScaleSwitch = x(), this.defaultMinBound = Number.NaN, this.defaultMaxBound = Number.NaN, this.onMaxBoundsChange = () => {
|
|
20
20
|
const t = this.maxBoundInputElement.value?.value;
|
|
21
21
|
let e = this.maxBoundInputElement.value?.status;
|
|
22
22
|
if (t !== void 0 && t !== "") {
|
|
23
|
-
const n = this.axisModel.getMinBound(), u = this.axisModel.getMaxBound(), s = Number.isFinite(n) ? n : this.initialMinBound,
|
|
24
|
-
if (a !== s &&
|
|
23
|
+
const n = this.axisModel.getMinBound(), u = this.axisModel.getMaxBound(), s = Number.isFinite(n) ? n : this.initialMinBound, M = this.maxBoundInputElement.value?.min === void 0 ? s : Math.max(this.maxBoundInputElement.value.min, s ?? Number.NaN), a = Number.parseFloat(t);
|
|
24
|
+
if (a !== s && p(a, M, this.maxBoundInputElement.value?.max)) {
|
|
25
25
|
if (a !== u) {
|
|
26
26
|
this.axisModel.setMaxBound(a);
|
|
27
27
|
const d = this.getAxisBoundsFromStateStore();
|
|
@@ -32,16 +32,16 @@ class $ extends S {
|
|
|
32
32
|
e = i.INVALID;
|
|
33
33
|
} else
|
|
34
34
|
e = i.IDLE;
|
|
35
|
-
this.maxBoundInputElement.value &&
|
|
35
|
+
this.maxBoundInputElement.value && h({
|
|
36
36
|
inputElement: this.maxBoundInputElement.value,
|
|
37
37
|
status: e
|
|
38
38
|
}), e !== i.INVALID && this.minBoundInputElement.value?.status === i.INVALID && this.onMinBoundsChange(), this.requestUpdate();
|
|
39
|
-
}, this.onMaxBoundsChangeDebounced = g(this.onMaxBoundsChange,
|
|
39
|
+
}, this.onMaxBoundsChangeDebounced = g(this.onMaxBoundsChange, b.DebounceTimer), this.onMinBoundsChange = () => {
|
|
40
40
|
const t = this.minBoundInputElement.value?.value;
|
|
41
41
|
let e = this.minBoundInputElement.value?.status;
|
|
42
42
|
if (t !== void 0 && t !== "") {
|
|
43
|
-
const n = this.axisModel.getMinBound(), u = this.axisModel.getMaxBound(), s = Number.isFinite(u) ? u : this.initialMaxBound,
|
|
44
|
-
if (a !== s &&
|
|
43
|
+
const n = this.axisModel.getMinBound(), u = this.axisModel.getMaxBound(), s = Number.isFinite(u) ? u : this.initialMaxBound, M = this.minBoundInputElement.value?.max === void 0 ? s : Math.min(this.minBoundInputElement.value.max, s ?? Number.NaN), a = Number.parseFloat(t);
|
|
44
|
+
if (a !== s && p(a, this.minBoundInputElement.value?.min, M)) {
|
|
45
45
|
if (a !== n) {
|
|
46
46
|
this.axisModel.setMinBound(a);
|
|
47
47
|
const d = this.getAxisBoundsFromStateStore();
|
|
@@ -52,11 +52,11 @@ class $ extends S {
|
|
|
52
52
|
e = i.INVALID;
|
|
53
53
|
} else
|
|
54
54
|
e = i.IDLE;
|
|
55
|
-
this.minBoundInputElement.value &&
|
|
55
|
+
this.minBoundInputElement.value && h({
|
|
56
56
|
inputElement: this.minBoundInputElement.value,
|
|
57
57
|
status: e
|
|
58
58
|
}), e !== i.INVALID && this.maxBoundInputElement.value?.status === i.INVALID && this.onMaxBoundsChange(), this.updateEnableLogarithmic(this.axisModel.getLogarithmic() && (this.dataMinValue ?? Number.NaN) > 0), this.requestUpdate();
|
|
59
|
-
}, this.onMinBoundsChangeDebounced = g(this.onMinBoundsChange,
|
|
59
|
+
}, this.onMinBoundsChangeDebounced = g(this.onMinBoundsChange, b.DebounceTimer), this.onModelConfigChange = () => {
|
|
60
60
|
this.requestUpdate();
|
|
61
61
|
}, this.disableMaxBoundResetBtn = !0, this.disableMinBoundResetBtn = !0, this.isXAxis = !1, this.axisTitle = "", this.showMaxBoundOption = !1, this.showMinBoundOption = !1, this.showEnableLogOption = !1;
|
|
62
62
|
}
|
|
@@ -64,7 +64,7 @@ class $ extends S {
|
|
|
64
64
|
this.properties = { disableMaxBoundResetBtn: 16, disableMinBoundResetBtn: 16, messageOverrides: 0, model: 0, isXAxis: 5, axisTitle: 1, maxBoundMaxLimit: 9, maxBoundMinLimit: 9, minBoundMinLimit: 9, minBoundMaxLimit: 9, showMaxBoundOption: 5, showMinBoundOption: 5, showEnableLogOption: 5, dataMaxValue: 9, dataMinValue: 9, initialMaxBound: 9, initialMinBound: 9 };
|
|
65
65
|
}
|
|
66
66
|
static {
|
|
67
|
-
this.styles =
|
|
67
|
+
this.styles = D;
|
|
68
68
|
}
|
|
69
69
|
load() {
|
|
70
70
|
this.modelChange(this.model), this.dataMinValue !== void 0 && this.dataMinValueChange(this.dataMinValue, Number.NaN), this.dataMaxValue !== void 0 && this.dataMaxValueChange(this.dataMaxValue, Number.NaN);
|
|
@@ -95,9 +95,9 @@ class $ extends S {
|
|
|
95
95
|
}
|
|
96
96
|
getAxisBoundsFromStateStore() {
|
|
97
97
|
let t;
|
|
98
|
-
const e =
|
|
98
|
+
const e = C.chartAxesBoundDataMap, n = this.model.chartId;
|
|
99
99
|
if (n) {
|
|
100
|
-
const u =
|
|
100
|
+
const u = E({
|
|
101
101
|
chartId: n,
|
|
102
102
|
isXAxis: this.isXAxis,
|
|
103
103
|
isLogarithmic: this.axisModel.getLogarithmic()
|
|
@@ -108,10 +108,10 @@ class $ extends S {
|
|
|
108
108
|
}
|
|
109
109
|
disableResetButtons() {
|
|
110
110
|
const t = this.getAxisBoundsFromStateStore();
|
|
111
|
-
t && (this.disableMaxBoundResetBtn = t.defaultMaxBound === t.currMaxBound, this.disableMinBoundResetBtn = t.defaultMinBound === t.currMinBound);
|
|
111
|
+
t && (this.disableMaxBoundResetBtn = t.defaultMaxBound === t.currMaxBound && this.maxBoundInputElement.value?.status !== i.INVALID && this.maxBoundInputElement.value?.value.trim() !== "", this.disableMinBoundResetBtn = t.defaultMinBound === t.currMinBound && this.minBoundInputElement.value?.status !== i.INVALID && this.minBoundInputElement.value?.value.trim() !== "");
|
|
112
112
|
}
|
|
113
113
|
onShowLogScaleMouseEnter() {
|
|
114
|
-
this.showLogScaleTooltip?.remove(), this.showLogScaleSwitch.value?.disabled && (this.showLogScaleTooltip =
|
|
114
|
+
this.showLogScaleTooltip?.remove(), this.showLogScaleSwitch.value?.disabled && (this.showLogScaleTooltip = A(o`<calcite-tooltip .referenceElement=${this.showLogScaleSwitch.value ?? document.body} open>${this.commonStrings.utilsStrings.tooltips?.logDisabled ?? ""}</calcite-tooltip>`), document.body.appendChild(this.showLogScaleTooltip));
|
|
115
115
|
}
|
|
116
116
|
onShowLogScaleMouseLeave() {
|
|
117
117
|
this.showLogScaleTooltip?.remove();
|
|
@@ -124,43 +124,53 @@ class $ extends S {
|
|
|
124
124
|
}
|
|
125
125
|
onNumberFormatChange(t) {
|
|
126
126
|
this.axisModel.setValueFormat({
|
|
127
|
-
type:
|
|
127
|
+
type: c.NumberAxisFormat,
|
|
128
128
|
intlOptions: t.detail
|
|
129
129
|
}), this.requestUpdate();
|
|
130
130
|
}
|
|
131
131
|
onRevertMaxBoundsToDefault() {
|
|
132
|
-
if (this.maxBoundInputElement.value?.status === i.INVALID ||
|
|
132
|
+
if (this.maxBoundInputElement.value?.status === i.INVALID || // an empty value does not update the model, so it must explicitly allow Reset.
|
|
133
|
+
this.maxBoundInputElement.value?.value.trim() === "" || this.axisModel.getMaxBound() !== this.defaultMaxBound) {
|
|
134
|
+
this.onMaxBoundsChangeDebounced.cancel();
|
|
133
135
|
const t = this.getAxisBoundsFromStateStore();
|
|
134
|
-
this.axisModel.getMinBound() > this.defaultMaxBound && this.axisModel.setMinBound(t?.defaultMinBound ?? Number.NaN), this.axisModel.setMaxBound(t?.defaultMaxBound ?? Number.NaN), this.maxBoundInputElement.value &&
|
|
136
|
+
this.axisModel.getMinBound() > this.defaultMaxBound && this.axisModel.setMinBound(t?.defaultMinBound ?? Number.NaN), this.axisModel.setMaxBound(t?.defaultMaxBound ?? Number.NaN), this.maxBoundInputElement.value && (this.maxBoundInputElement.value.value = r(t?.defaultMaxBound, this.initialMaxBound) ?? "", h({
|
|
135
137
|
inputElement: this.maxBoundInputElement.value,
|
|
136
138
|
status: i.IDLE
|
|
137
|
-
}), this.requestUpdate();
|
|
139
|
+
})), this.requestUpdate();
|
|
138
140
|
}
|
|
139
141
|
}
|
|
140
142
|
onRevertMinBoundsToDefault() {
|
|
141
|
-
(this.minBoundInputElement.value?.status === i.INVALID ||
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
143
|
+
if (this.minBoundInputElement.value?.status === i.INVALID || // an empty value does not update the model, so it must explicitly allow Reset.
|
|
144
|
+
this.minBoundInputElement.value?.value.trim() === "" || this.axisModel.getMinBound() !== this.defaultMinBound) {
|
|
145
|
+
this.onMinBoundsChangeDebounced.cancel();
|
|
146
|
+
const t = this.getAxisBoundsFromStateStore();
|
|
147
|
+
this.axisModel.getMaxBound() < this.defaultMinBound && (this.onMaxBoundsChangeDebounced.cancel(), this.axisModel.setMaxBound(Number.NaN), this.maxBoundInputElement.value && (this.maxBoundInputElement.value.value = r(Number.NaN, this.initialMaxBound) ?? "", h({
|
|
148
|
+
inputElement: this.maxBoundInputElement.value,
|
|
149
|
+
status: i.IDLE
|
|
150
|
+
}))), this.axisModel.setMinBound(Number.NaN), this.minBoundInputElement.value && (this.minBoundInputElement.value.value = r(t?.defaultMinBound, this.initialMinBound) ?? "", h({
|
|
151
|
+
inputElement: this.minBoundInputElement.value,
|
|
152
|
+
status: i.IDLE
|
|
153
|
+
})), this.requestUpdate();
|
|
154
|
+
}
|
|
145
155
|
}
|
|
146
156
|
enableLogScale(t) {
|
|
147
157
|
const { checked: e } = t.target;
|
|
148
158
|
this.axisModel.setLogarithmic(e && (this.dataMinValue ?? Number.NaN) > 0), this.requestUpdate();
|
|
149
159
|
}
|
|
150
160
|
render() {
|
|
151
|
-
return o`<calcite-block .hidden=${this.axisModel.getValueFormat()?.type ===
|
|
161
|
+
return o`<calcite-block .hidden=${this.axisModel.getValueFormat()?.type === c.DateAxisFormat} expanded .heading=${this.axisTitle}>${this.renderAxis()}</calcite-block>`;
|
|
152
162
|
}
|
|
153
163
|
renderAxis() {
|
|
154
164
|
let t = null;
|
|
155
165
|
const e = { ...this.axisModel.getValueFormat() };
|
|
156
166
|
switch (this.axisModel.getValueFormat()?.type) {
|
|
157
|
-
case
|
|
167
|
+
case c.CategoryAxisFormat:
|
|
158
168
|
t = o`<arcgis-charts-config-category-format .categoryFormat=${e} @arcgisChartsConfigCategoryFormatChange=${this.onCategoryFormatChange}></arcgis-charts-config-category-format>`;
|
|
159
169
|
break;
|
|
160
|
-
case
|
|
170
|
+
case c.NumberAxisFormat:
|
|
161
171
|
t = o`<div>${this.renderShowLogScale()}${this.renderMinBound()}${this.renderMaxBound()}<arcgis-charts-config-number-format .numberFormat=${{ ...e.intlOptions }} @arcgisChartsConfigNumberFormatChange=${this.onNumberFormatChange}></arcgis-charts-config-number-format></div>`;
|
|
162
172
|
break;
|
|
163
|
-
case
|
|
173
|
+
case c.DateAxisFormat:
|
|
164
174
|
t = null;
|
|
165
175
|
break;
|
|
166
176
|
}
|
|
@@ -171,8 +181,8 @@ class $ extends S {
|
|
|
171
181
|
if (!this.showMaxBoundOption)
|
|
172
182
|
t = null;
|
|
173
183
|
else {
|
|
174
|
-
const e =
|
|
175
|
-
t = o`<div><calcite-label class=${
|
|
184
|
+
const e = r(this.axisModel.getMaxBound(), this.initialMaxBound);
|
|
185
|
+
t = o`<div><calcite-label class=${m(l.label)}>${this._messages.maxBounds}<calcite-input type=number number-button-type=none .min=${this.maxBoundMinLimit ?? Number.MIN_SAFE_INTEGER} .max=${this.maxBoundMaxLimit ?? Number.MAX_SAFE_INTEGER} step=any .value=${e} @calciteInputInput=${this.onMaxBoundsChangeDebounced} ${B(this.maxBoundInputElement)}></calcite-input></calcite-label><div class=${m(l.linkContainer)}><calcite-button .disabled=${this.disableMaxBoundResetBtn} @click=${this.onRevertMaxBoundsToDefault} appearance=transparent icon-end=reset>${this._messages.revertToDefault}</calcite-button></div></div>`;
|
|
176
186
|
}
|
|
177
187
|
return t;
|
|
178
188
|
}
|
|
@@ -181,20 +191,20 @@ class $ extends S {
|
|
|
181
191
|
if (!this.showMinBoundOption)
|
|
182
192
|
t = null;
|
|
183
193
|
else {
|
|
184
|
-
const e =
|
|
185
|
-
t = o`<div><calcite-label class=${
|
|
194
|
+
const e = this.getAxisBoundsFromStateStore(), n = r(this.axisModel.getMinBound(), e?.defaultMinBound ?? this.initialMinBound);
|
|
195
|
+
t = o`<div><calcite-label class=${m(l.label)}>${this._messages.minBounds}<calcite-input type=number number-button-type=none .min=${this.minBoundMinLimit ?? Number.MIN_SAFE_INTEGER} .max=${this.minBoundMaxLimit ?? Number.MAX_SAFE_INTEGER} step=any .value=${n} @calciteInputInput=${this.onMinBoundsChangeDebounced} ${B(this.minBoundInputElement)}></calcite-input></calcite-label><div class=${m(l.linkContainer)}><calcite-button .disabled=${this.disableMinBoundResetBtn} appearance=transparent icon-end=reset @click=${this.onRevertMinBoundsToDefault}>${this._messages.revertToDefault}</calcite-button></div></div>`;
|
|
186
196
|
}
|
|
187
197
|
return t;
|
|
188
198
|
}
|
|
189
199
|
renderShowLogScale() {
|
|
190
200
|
let t;
|
|
191
|
-
return this.showEnableLogOption && (t = o`<calcite-label layout=inline-space-between class=${
|
|
201
|
+
return this.showEnableLogOption && (t = o`<calcite-label layout=inline-space-between class=${m({
|
|
192
202
|
[l.label]: !0,
|
|
193
203
|
[l.mb2]: !0
|
|
194
|
-
})}>${this._messages.logScale}<div @mouseenter=${this.onShowLogScaleMouseEnter} @mouseleave=${this.onShowLogScaleMouseLeave}><calcite-switch .checked=${this.axisModel.getLogarithmic() && (this.dataMinValue ?? Number.NaN) > 0} .disabled=${(this.dataMinValue ?? Number.NaN) <= 0} @calciteSwitchChange=${this.enableLogScale} ${
|
|
204
|
+
})}>${this._messages.logScale}<div @mouseenter=${this.onShowLogScaleMouseEnter} @mouseleave=${this.onShowLogScaleMouseLeave}><calcite-switch .checked=${this.axisModel.getLogarithmic() && (this.dataMinValue ?? Number.NaN) > 0} .disabled=${(this.dataMinValue ?? Number.NaN) <= 0} @calciteSwitchChange=${this.enableLogScale} ${B(this.showLogScaleSwitch)}></calcite-switch></div></calcite-label>`), t;
|
|
195
205
|
}
|
|
196
206
|
}
|
|
197
|
-
|
|
207
|
+
I("arcgis-charts-config-axis", w);
|
|
198
208
|
export {
|
|
199
|
-
|
|
209
|
+
w as ArcgisChartsConfigAxis
|
|
200
210
|
};
|
|
@@ -4,7 +4,7 @@ import { LitElement as g, createEvent as f } from "@arcgis/lumina";
|
|
|
4
4
|
import { css as m, html as s } from "lit";
|
|
5
5
|
import { isEqual as d } from "es-toolkit/compat";
|
|
6
6
|
import { C as t } from "../../chunks/interfaces.js";
|
|
7
|
-
import { i as c, aq as p,
|
|
7
|
+
import { i as c, aq as p, bI as u, bJ as C, be as y, t as F, aR as v } from "../../chunks/index.js";
|
|
8
8
|
const b = m`:host{margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
9
9
|
class I extends g {
|
|
10
10
|
constructor() {
|
|
@@ -4,16 +4,16 @@ import { keyed as I } from "lit/directives/keyed.js";
|
|
|
4
4
|
import { isEqual as S } from "es-toolkit/compat";
|
|
5
5
|
import { repeat as D } from "lit/directives/repeat.js";
|
|
6
6
|
import { B as a, a as C } from "../../chunks/interfaces.js";
|
|
7
|
-
import { d as p, a as d, r as
|
|
7
|
+
import { d as p, a as d, r as O, b as E } from "../../chunks/store.js";
|
|
8
8
|
import { b as P } from "../../chunks/chart-ui-utils.js";
|
|
9
9
|
import { u as F } from "../../chunks/useT9n.js";
|
|
10
10
|
import { css as _, html as n, nothing as N } from "lit";
|
|
11
11
|
import { createRef as c, ref as m } from "lit/directives/ref.js";
|
|
12
12
|
import { LitElement as U, createEvent as v, safeClassMap as l, renderElement as V } from "@arcgis/lumina";
|
|
13
|
-
import { b as $, o as z, C as M, a as B, p as
|
|
14
|
-
import { x as
|
|
15
|
-
import { r as A,
|
|
16
|
-
import {
|
|
13
|
+
import { b as $, o as z, C as M, a as B, p as R } from "../../chunks/index2.js";
|
|
14
|
+
import { x as K } from "../../chunks/data.js";
|
|
15
|
+
import { r as A, bG as j, p as L, aR as H } from "../../chunks/index.js";
|
|
16
|
+
import { I as q, J as W } from "../../chunks/index3.js";
|
|
17
17
|
import { r as Z } from "../../chunks/popover-ui-utils.js";
|
|
18
18
|
import { d as h, e as x, a as f, h as y } from "../../chunks/chart-object-literals.js";
|
|
19
19
|
import { S as g } from "../../chunks/common.js";
|
|
@@ -29,7 +29,7 @@ const r = {
|
|
|
29
29
|
dimText: "dim-text",
|
|
30
30
|
intervalContainer: "interval-container"
|
|
31
31
|
}, G = _`.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)}`;
|
|
32
|
-
class
|
|
32
|
+
class J extends U {
|
|
33
33
|
constructor() {
|
|
34
34
|
super(...arguments), this._messages = F(), this.commonStrings = F({ 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) => {
|
|
35
35
|
try {
|
|
@@ -79,7 +79,7 @@ class Q extends U {
|
|
|
79
79
|
default:
|
|
80
80
|
break;
|
|
81
81
|
}
|
|
82
|
-
t !== a.interval && t !== a.intervalAlignment &&
|
|
82
|
+
t !== a.interval && t !== a.intervalAlignment && O(d);
|
|
83
83
|
}
|
|
84
84
|
} catch (t) {
|
|
85
85
|
throw this.arcgisChartsConfigDataChangeError.emit({ error: t, model: this.model }), t;
|
|
@@ -181,7 +181,7 @@ class Q extends U {
|
|
|
181
181
|
return this.model.splitByField === "" || (this.model.numericFields ?? []).length > 1 ? "" : $(this.layerFieldsInfo, this.model.splitByField);
|
|
182
182
|
}
|
|
183
183
|
getCorrectedCategoryValue() {
|
|
184
|
-
return
|
|
184
|
+
return K({
|
|
185
185
|
fieldName: this.model.xAxisField,
|
|
186
186
|
fieldList: this.layerFieldsInfo
|
|
187
187
|
}) ? "" : $(this.layerFieldsInfo, this.model.xAxisField);
|
|
@@ -271,7 +271,7 @@ class Q extends U {
|
|
|
271
271
|
return t === f.CategoryAxisFormat && e === g.customSort && !this.isCustomSortDisabled ? n`<calcite-label class=${l(r.label)}><div class=${l(r.customSortButtons)}><div><calcite-button appearance=transparent .disabled=${i === 0 || i === -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=${i === -1 || i === 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=${S(this.model.orderByList, this.originalCustomSortLabels)} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button></div>${L(this.model.config.series ?? []) === B.BarAndLineFromFields ? this._messages.values : this._messages.category}${this.buildCustomSortList()}</calcite-label>` : null;
|
|
272
272
|
}
|
|
273
273
|
renderInterval() {
|
|
274
|
-
const e = (this.model.temporalBinningSize ?? 0) <= 0, t = this.model.temporalBinningSize ?? "", i =
|
|
274
|
+
const e = (this.model.temporalBinningSize ?? 0) <= 0, t = this.model.temporalBinningSize ?? "", i = R(this.model.temporalBinningUnit ?? x.Second, this._messages) ?? "", s = E(d), o = {
|
|
275
275
|
size: this.model.temporalBinningSize,
|
|
276
276
|
unit: this.model.temporalBinningUnit
|
|
277
277
|
}, u = S(o, s);
|
|
@@ -292,7 +292,7 @@ class Q extends U {
|
|
|
292
292
|
return n`<calcite-label class=${l(r.label)}>${this._messages.category}${t}</calcite-label><calcite-label class=${l(r.label)}>${this._messages.aggregation}${e}</calcite-label><calcite-label class=${l(r.label)}>${this._messages.numericFields}${o}</calcite-label><div class=${l(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=${l(r.label)}><span class=${l(this.disableSplitBy ? r.dimText : "")}>${this._messages.splitBy}</span>${i}</calcite-label><div .hidden=${!this.shouldShowTimeBinning()}><h3 class=${l(r.timeBinningHeader)}>${this._messages.timeBinningOptions}</h3><calcite-label class=${l(r.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=${l(r.label)}>${this._messages.interval}${b}</calcite-label><calcite-label class=${l(r.label)}>${this._messages.intervalAlignment}${k}</calcite-label><calcite-label class=${l(r.label)} layout=inline-space-between>${this._messages.trimIncompleteInterval}<calcite-switch .checked=${this.model.trimIncompleteTimeInterval} @calciteSwitchChange=${this.onTrimIncompleteIntervalChange}></calcite-switch></calcite-label>${this.model.aggregationType !== h.Count ? n`<calcite-label class=${l(r.label)}>${this._messages.emptyBins}${T}</calcite-label>` : null}</div></div><calcite-label class=${l(r.label)} layout=inline-space-between>${this._messages.treatNullAsCategory}<calcite-switch .checked=${this.model.fetchNULLValues} @calciteSwitchChange=${this.onTreatNullAsCategoryChange}></calcite-switch></calcite-label><calcite-label class=${l(r.label)} layout=inline-space-between>${this._messages.showDataLabels}<calcite-switch .checked=${this.model.dataLabelsVisibility} @calciteSwitchChange=${this.onShowDataLabelsChange}></calcite-switch></calcite-label><calcite-label class=${l(this.model.getAxisValueFormat(0)?.type === f.DateAxisFormat ? r.disabledLabel : r.label)}>${this._messages.sortOrder}${s}</calcite-label>${u}`;
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
|
-
w("arcgis-charts-config-bar-chart-data",
|
|
295
|
+
w("arcgis-charts-config-bar-chart-data", J);
|
|
296
296
|
export {
|
|
297
|
-
|
|
297
|
+
J as ArcgisChartsConfigBarChartData
|
|
298
298
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as P } from "../../chunks/runtime.js";
|
|
3
3
|
import { repeat as b } from "lit/directives/repeat.js";
|
|
4
4
|
import { keyed as f } from "lit/directives/keyed.js";
|
|
5
5
|
import { LitElement as S, createEvent as C, renderElement as T, safeStyleMap as F, safeClassMap as c } from "@arcgis/lumina";
|
|
@@ -14,8 +14,8 @@ import { d as L } from "../../chunks/rest-js-object-literals.js";
|
|
|
14
14
|
import { b as u, d as z, e as p } from "../../chunks/chart-object-literals.js";
|
|
15
15
|
import { S as m } from "../../chunks/common.js";
|
|
16
16
|
import { e as N, p as B } from "../../chunks/popover-ui-utils.js";
|
|
17
|
-
import {
|
|
18
|
-
import { D as H,
|
|
17
|
+
import { I as K, J as _ } from "../../chunks/index3.js";
|
|
18
|
+
import { D as H, bH as I, aR as O, a_ as M, aQ as U } from "../../chunks/index.js";
|
|
19
19
|
import { b as W, p as j } from "../../chunks/index2.js";
|
|
20
20
|
const R = A`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.fab{display:flex;justify-content:stretch}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.sort-icon-color{color:#000}.sort-y-axis{transform:rotate(90deg)}.sort-order-pick-list{overflow-y:hidden}.panel{max-height:60vh}.panel .size-section{width:19rem;margin:1rem 0;display:flex;flex-wrap:wrap;justify-content:space-evenly}.panel .size-section calcite-label{width:8rem;margin-bottom:.25rem}.panel .apply-button{width:17rem}`, o = {
|
|
21
21
|
name: "bar-chart-data-popover",
|
|
@@ -119,7 +119,7 @@ class q extends S {
|
|
|
119
119
|
i.push(l);
|
|
120
120
|
for (let s = 0; s < t; s += 1) {
|
|
121
121
|
const r = this.layerFieldsInfo?.[s];
|
|
122
|
-
r && (r.type === L.String ||
|
|
122
|
+
r && (r.type === L.String || I(r) || O(r) || M(r)) && i.push(this.buildPickListItem(r));
|
|
123
123
|
}
|
|
124
124
|
break;
|
|
125
125
|
}
|
|
@@ -128,7 +128,7 @@ class q extends S {
|
|
|
128
128
|
i.push(l);
|
|
129
129
|
for (let s = 0; s < t; s += 1) {
|
|
130
130
|
const r = this.layerFieldsInfo?.[s];
|
|
131
|
-
r && (
|
|
131
|
+
r && (I(r) || r.type === L.String) && i.push(this.buildPickListItem(r));
|
|
132
132
|
}
|
|
133
133
|
break;
|
|
134
134
|
}
|
|
@@ -238,7 +238,7 @@ class q extends S {
|
|
|
238
238
|
return this.contentKind === n.numericFields && (e = a`<div slot=footer><calcite-fab class=${c(o.fab)} appearance=outline-fill kind=neutral .icon=${void 0} .label=${this._messages.selectionDone} scale=s text-enabled .text=${this._messages.selectionDone} @click=${this.onNumericFieldSelectionDone}></calcite-fab></div>`), a`<div><calcite-popover class=${c(o.name)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${d(this.popoverElement)}><calcite-panel class=${c(o.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${c(o.header)}>${this.headingTitle ?? ""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`;
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
|
-
|
|
241
|
+
P("arcgis-charts-config-bar-chart-popover", q);
|
|
242
242
|
export {
|
|
243
243
|
q as ArcgisChartsConfigBarChartPopover
|
|
244
244
|
};
|
|
@@ -4,7 +4,7 @@ import { LitElement as n } from "@arcgis/lumina";
|
|
|
4
4
|
import { css as c, html as t } from "lit";
|
|
5
5
|
import { isEqual as l } from "es-toolkit/compat";
|
|
6
6
|
import { C as a } from "../../chunks/interfaces.js";
|
|
7
|
-
import {
|
|
7
|
+
import { bI as d, bJ as h, t as f } from "../../chunks/index.js";
|
|
8
8
|
const g = c`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
9
9
|
class m extends n {
|
|
10
10
|
constructor() {
|
|
@@ -11,7 +11,7 @@ import { createRef as u, ref as m } from "lit/directives/ref.js";
|
|
|
11
11
|
import { LitElement as x, createEvent as g, renderElement as I, safeStyleMap as D, safeClassMap as d } from "@arcgis/lumina";
|
|
12
12
|
import { B as r } from "../../chunks/common.js";
|
|
13
13
|
import { e as S, p as T } from "../../chunks/popover-ui-utils.js";
|
|
14
|
-
import {
|
|
14
|
+
import { bH as b, aQ as E, D as w } from "../../chunks/index.js";
|
|
15
15
|
import { b as B } from "../../chunks/index2.js";
|
|
16
16
|
import { d as C } from "../../chunks/rest-js-object-literals.js";
|
|
17
17
|
const o = {
|
|
@@ -3,7 +3,7 @@ import { c as N } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { repeat as V } from "lit/directives/repeat.js";
|
|
4
4
|
import { keyed as S } from "lit/directives/keyed.js";
|
|
5
5
|
import { createModel as _ } from "../../model/shared/setup-utils.js";
|
|
6
|
-
import {
|
|
6
|
+
import { f as $, e as U, k as R, j as x, l as T, m as z } from "../../chunks/type-guards2.js";
|
|
7
7
|
import { i as H } from "../../chunks/rotated-state.js";
|
|
8
8
|
import { substitute as O } from "@arcgis/core/intl.js";
|
|
9
9
|
import { C as c } from "../../chunks/interfaces.js";
|
|
@@ -14,12 +14,12 @@ import { LitElement as X, createEvent as f, renderElement as v, safeStyleMap as
|
|
|
14
14
|
import { css as K, html as h } from "lit";
|
|
15
15
|
import { createRef as j, ref as q } from "lit/directives/ref.js";
|
|
16
16
|
import { u as I } from "../../chunks/useT9n.js";
|
|
17
|
-
import { c as Y, a as
|
|
18
|
-
import {
|
|
17
|
+
import { c as Y, a as b, g as Q } from "../../chunks/store.js";
|
|
18
|
+
import { bK as J, ai as ee, bL as te, bM as ae, bN as ie } from "../../chunks/index.js";
|
|
19
19
|
import { A as se } from "../../chunks/axis-model-wrapper.js";
|
|
20
20
|
import { h as re, f as y } from "../../chunks/web-component-utils.js";
|
|
21
21
|
import { a as oe } from "../../chunks/chart-ui-utils.js";
|
|
22
|
-
import { C as
|
|
22
|
+
import { C as M } from "../../chunks/index5.js";
|
|
23
23
|
import { g as L } from "../../chunks/chart-ui-utils2.js";
|
|
24
24
|
import { i as P, b as B } from "../../chunks/type-guards.js";
|
|
25
25
|
import { r as le } from "../../chunks/popover-ui-utils.js";
|
|
@@ -114,7 +114,7 @@ class ge extends X {
|
|
|
114
114
|
case o.LineSeries:
|
|
115
115
|
case o.BarSeries: {
|
|
116
116
|
const { dataItems: n, timeIntervalInfo: l } = a;
|
|
117
|
-
($(s) || U(s) && s.binTemporalData) && (l?.size !== void 0 && s.temporalBinningSize !== l?.size && (s.temporalBinningSize = l?.size), l?.unit !== void 0 && s.temporalBinningUnit !== l?.unit && l?.unit !== ne.Quarter && (s.temporalBinningUnit = l?.unit), l?.size !== void 0 && l?.unit !== void 0 && Y(
|
|
117
|
+
($(s) || U(s) && s.binTemporalData) && (l?.size !== void 0 && s.temporalBinningSize !== l?.size && (s.temporalBinningSize = l?.size), l?.unit !== void 0 && s.temporalBinningUnit !== l?.unit && l?.unit !== ne.Quarter && (s.temporalBinningUnit = l?.unit), l?.size !== void 0 && l?.unit !== void 0 && Y(b, { size: l.size, unit: l.unit })), this.calculatedDataMinMaxBounds = this.getDataExtent(n), i && (i.dataStore.calculatedDataMinMaxBounds = this.calculatedDataMinMaxBounds);
|
|
118
118
|
break;
|
|
119
119
|
}
|
|
120
120
|
}
|
|
@@ -255,7 +255,7 @@ class ge extends X {
|
|
|
255
255
|
}
|
|
256
256
|
w(e), e.forEach((i) => {
|
|
257
257
|
a.find((r) => r.isSameChartAs(i)) === void 0 && a.push(i);
|
|
258
|
-
}), a = a.filter((i) => !
|
|
258
|
+
}), a = a.filter((i) => !J(i.config)), this.modelList = a;
|
|
259
259
|
}
|
|
260
260
|
modelListChange(e, t) {
|
|
261
261
|
this.selectedChartId = w(e, this.selectedChartId), t?.forEach((i) => {
|
|
@@ -277,7 +277,7 @@ class ge extends X {
|
|
|
277
277
|
chartType: t.chartType,
|
|
278
278
|
commonStrings: this.commonStrings,
|
|
279
279
|
config: t.config
|
|
280
|
-
}) : "", e !== void 0 && e !==
|
|
280
|
+
}) : "", e !== void 0 && e !== b.selectedChartId && (b.selectedChartId = e), this.allowChartSyncing = !0, this.arcgisChartsConfigSelectedChartChange.emit({
|
|
281
281
|
key: "key",
|
|
282
282
|
model: t
|
|
283
283
|
});
|
|
@@ -286,7 +286,7 @@ class ge extends X {
|
|
|
286
286
|
e === 0 ? this.clearPartialModels() : e === 1 && this.removeSelectChartTypePopover(), this.arcgisChartsConfigPanelNumberChange.emit({ panelNumber: e, modelList: this.modelList });
|
|
287
287
|
}
|
|
288
288
|
addChartEventListeners() {
|
|
289
|
-
this.listenOn(document,
|
|
289
|
+
this.listenOn(document, M.DataProcessComplete, this.chartDataProcessComplete), this.listenOn(document, M.AxesMinMaxChange, this.chartAxesMinMaxChange), this.listenOn(document, M.SeriesColorChange, this.chartSeriesColorChange), this.listenOn(document, M.NoRenderPropChange, this.chartNoRenderPropChange), this.listenOn(document, M.LegendItemVisibilityChange, this.chartLegendItemVisibilityChange);
|
|
290
290
|
}
|
|
291
291
|
getDataExtent(e) {
|
|
292
292
|
const t = this.getModel(this.selectedChartId)?.config;
|
|
@@ -307,11 +307,11 @@ class ge extends X {
|
|
|
307
307
|
e?.forEach((t) => {
|
|
308
308
|
const { isXAxis: a, maximum: i, minimum: s } = t, r = this.getModel(this.selectedChartId);
|
|
309
309
|
if (r !== void 0 && T(r) && this.selectedChartId !== void 0) {
|
|
310
|
-
const n = new se(r, a), l =
|
|
310
|
+
const n = new se(r, a), l = Q({
|
|
311
311
|
chartId: this.selectedChartId,
|
|
312
312
|
isXAxis: a,
|
|
313
313
|
isLogarithmic: n.getLogarithmic()
|
|
314
|
-
}), g =
|
|
314
|
+
}), g = b.chartAxesBoundDataMap;
|
|
315
315
|
g[this.selectedChartId] === void 0 && (g[this.selectedChartId] = {});
|
|
316
316
|
const u = g[this.selectedChartId]?.[l], C = {
|
|
317
317
|
defaultMinBound: u?.defaultMinBound === u?.currMinBound ? s : u?.defaultMinBound,
|
|
@@ -6,7 +6,7 @@ import { i as p, m as c, U as r, s as y } from "../../chunks/chart-ui-utils.js";
|
|
|
6
6
|
import { u } from "../../chunks/useT9n.js";
|
|
7
7
|
import { createRef as S, ref as d } from "lit/directives/ref.js";
|
|
8
8
|
import { LitElement as g, createEvent as f, safeClassMap as n } from "@arcgis/lumina";
|
|
9
|
-
import {
|
|
9
|
+
import { P as b } from "../../chunks/index3.js";
|
|
10
10
|
import { b as v } from "../../chunks/rest-js-object-literals.js";
|
|
11
11
|
const C = {
|
|
12
12
|
arial: "Arial",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as B } from "../../chunks/runtime.js";
|
|
3
3
|
import { ref as M } from "lit/directives/ref.js";
|
|
4
|
-
import {
|
|
4
|
+
import { n as y, l as d, j as h, o as S, c as V, k as w } from "../../chunks/type-guards2.js";
|
|
5
5
|
import { i as T } from "../../chunks/data-labels-symbol.js";
|
|
6
6
|
import { i as C, a as L, b as P } from "../../chunks/axis-lines-symbol.js";
|
|
7
7
|
import { cloneDeep as n, isArray as F, isObject as A, mergeWith as D, isEmpty as E } from "es-toolkit/compat";
|
|
8
8
|
import { h as G } from "../../chunks/chart-ui-utils.js";
|
|
9
|
-
import { R as
|
|
10
|
-
import { u as
|
|
9
|
+
import { R as W, b } from "../../chunks/rest-js-object-literals.js";
|
|
10
|
+
import { u as N } from "../../chunks/useT9n.js";
|
|
11
11
|
import { css as z, html as f } from "lit";
|
|
12
12
|
import { LitElement as H, renderElement as R, safeClassMap as p } from "@arcgis/lumina";
|
|
13
13
|
import { C as j, F as i, L as m } from "../../chunks/common.js";
|
|
14
|
-
import { b as u,
|
|
14
|
+
import { b as u, bP as r } from "../../chunks/index.js";
|
|
15
15
|
import { r as $ } from "../../chunks/popover-ui-utils.js";
|
|
16
16
|
import { C as I } from "../../chunks/index2.js";
|
|
17
17
|
import { a } from "../../chunks/chart-object-literals.js";
|
|
@@ -28,7 +28,7 @@ const v = {
|
|
|
28
28
|
}, k = {
|
|
29
29
|
type: b.SLS,
|
|
30
30
|
color: [1, 1, 1, 255],
|
|
31
|
-
style:
|
|
31
|
+
style: W.Solid,
|
|
32
32
|
width: 2
|
|
33
33
|
}, g = {
|
|
34
34
|
element: "chart-element",
|
|
@@ -37,7 +37,7 @@ const v = {
|
|
|
37
37
|
}, O = z`.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{width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}.section-label{display:flex;margin:var(--arcgis-charts-config-margin-major) var(--arcgis-charts-config-margin-minor);justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}.element-list{margin:var(--arcgis-charts-config-margin-minor)}.element{user-select:none}`;
|
|
38
38
|
class X extends H {
|
|
39
39
|
constructor() {
|
|
40
|
-
super(...arguments), this._messages =
|
|
40
|
+
super(...arguments), this._messages = N(), this.formatPopover = null, this.selectableElements = [], this.textProperties = [], this.symbolProperties = [], this.symbolPropertyChange = (t) => {
|
|
41
41
|
const e = t;
|
|
42
42
|
e.stopImmediatePropagation();
|
|
43
43
|
let s;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as T } from "../../chunks/runtime.js";
|
|
3
|
-
import {
|
|
3
|
+
import { l as n, p as r, j as c } from "../../chunks/type-guards2.js";
|
|
4
4
|
import { i as h, a as m, b as g } from "../../chunks/generate-x-axis-title.js";
|
|
5
5
|
import { isEmpty as x } from "es-toolkit/compat";
|
|
6
6
|
import { m as u, U as b } from "../../chunks/chart-ui-utils.js";
|