@arcgis/charts-components 5.2.0-next.125 → 5.2.0-next.127
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/{WQQMTR5J.js → 2BLR6LKU.js} +1 -1
- package/dist/cdn/{KIUBFEUI.js → 2FX7HMA2.js} +1 -1
- package/dist/cdn/{2FYXFIR4.js → 2IGXLFRI.js} +1 -1
- package/dist/cdn/{HDHS7RTZ.js → 2Q2NNE2E.js} +1 -1
- package/dist/cdn/{4RLQLQVB.js → 2YBRQEHS.js} +1 -1
- package/dist/cdn/{7OESRD4R.js → 334POAQ3.js} +1 -1
- package/dist/cdn/{G6DJZSMC.js → 375FEZQ5.js} +1 -1
- package/dist/cdn/{KAVJHTFB.js → 376GFRZL.js} +1 -1
- package/dist/cdn/{WDWOAIWE.js → 3RDYU4CX.js} +1 -1
- package/dist/cdn/4F6DKNCU.js +3 -0
- package/dist/cdn/{7PKJNQL7.js → 4ZEVGEUR.js} +1 -1
- package/dist/cdn/{LHQ5R7PX.js → 53DLKKX7.js} +1 -1
- package/dist/cdn/{CSN6MJ4B.js → 5MPUVSSI.js} +1 -1
- package/dist/cdn/{LQL7VPXH.js → 5SHZ5RBA.js} +1 -1
- package/dist/cdn/{PZRHKUTQ.js → 664RSE7L.js} +1 -1
- package/dist/cdn/{QL5M6E2E.js → 7LEWHR3Q.js} +1 -1
- package/dist/cdn/{54265YSL.js → 7LFTV63Q.js} +1 -1
- package/dist/cdn/{H5QMZ65D.js → 7O2ABH2O.js} +1 -1
- package/dist/cdn/{J65VM5UV.js → 7TPUUEPX.js} +1 -1
- package/dist/cdn/{OUDFAIXR.js → A4BJ3NJD.js} +1 -1
- package/dist/cdn/{P7PD3PBN.js → A7F727QE.js} +1 -1
- package/dist/cdn/AGQVZOVL.js +2 -0
- package/dist/cdn/{ETDHU5U4.js → AIXWFRR4.js} +22 -22
- package/dist/cdn/{VJG6ZEH4.js → ARWJ6M4M.js} +1 -1
- package/dist/cdn/{77VLHOOC.js → BFY23RQL.js} +1 -1
- package/dist/cdn/{F2WEYOKD.js → BJDMP3WZ.js} +1 -1
- package/dist/cdn/BQPKHSH4.js +2 -0
- package/dist/cdn/{56INS6ML.js → BTIQHZCI.js} +1 -1
- package/dist/cdn/{VSMUBBEN.js → C4SI4UTD.js} +1 -1
- package/dist/cdn/{DPRUAGVZ.js → CFR5LTRT.js} +1 -1
- package/dist/cdn/{B5XYZKLU.js → CLA5QG6H.js} +1 -1
- package/dist/cdn/CQADACRW.js +3 -0
- package/dist/cdn/{XQ5Q4AMB.js → CSDFCGJY.js} +1 -1
- package/dist/cdn/{MRN3GTKF.js → D37G7ULI.js} +1 -1
- package/dist/cdn/{QZNI3BD3.js → DA2DRI66.js} +1 -1
- package/dist/cdn/{RBTEJMJT.js → DC4Z6SV3.js} +1 -1
- package/dist/cdn/{POSJMG3Z.js → DJI3JWXH.js} +1 -1
- package/dist/cdn/{QHGSGGGJ.js → DKHJVESD.js} +1 -1
- package/dist/cdn/{W6SZDF5T.js → E7IR37BS.js} +1 -1
- package/dist/cdn/{3GN7VR32.js → EHPRMIGU.js} +1 -1
- package/dist/cdn/{SF3FTQP5.js → EQN5SLMX.js} +1 -1
- package/dist/cdn/{ZD4GMDVL.js → EWO4KNLN.js} +1 -1
- package/dist/cdn/{5XXBOV4Q.js → EYU2FEWB.js} +1 -1
- package/dist/cdn/{YEAARWKU.js → FHOUXGMO.js} +1 -1
- package/dist/cdn/{YMAI2PRA.js → FSP2N2BP.js} +1 -1
- package/dist/cdn/{SLKGXWIE.js → FZNCVGVR.js} +1 -1
- package/dist/cdn/{N75HEDSD.js → GZBPHJ7H.js} +1 -1
- package/dist/cdn/{W2QXMYBG.js → HQ47ZXN2.js} +1 -1
- package/dist/cdn/{B44MEIQW.js → I45GQK3M.js} +1 -1
- package/dist/cdn/{F3UFKEVT.js → ICZSZBA3.js} +1 -1
- package/dist/cdn/{2QWB5XRH.js → IMB2RGHX.js} +1 -1
- package/dist/cdn/{OCCBK5S7.js → IYWKTFGB.js} +1 -1
- package/dist/cdn/{N26FS3KG.js → J2QFNFBN.js} +1 -1
- package/dist/cdn/{KCEJQPTE.js → JTKDMKW6.js} +1 -1
- package/dist/cdn/{LYVV7FBJ.js → K56BTXNK.js} +1 -1
- package/dist/cdn/{2FQ6G6B6.js → KVKWGTCH.js} +1 -1
- package/dist/cdn/{VPCAPPIP.js → L4NJDPAN.js} +1 -1
- package/dist/cdn/{6H4PWDET.js → LFYVQQCR.js} +1 -1
- package/dist/cdn/{PUXBUCDR.js → M2ZKATSW.js} +1 -1
- package/dist/cdn/{C3PVEL66.js → M4JMQVOW.js} +1 -1
- package/dist/cdn/{3W4HHL2V.js → NWITMWCT.js} +1 -1
- package/dist/cdn/{KKHTRL5K.js → O3QNNSPD.js} +1 -1
- package/dist/cdn/O4XG2WHA.js +2 -0
- package/dist/cdn/O6FFCCEN.js +2 -0
- package/dist/cdn/{2VX44HPW.js → O6UAGUCM.js} +1 -1
- package/dist/cdn/{S2PTOBDF.js → OQJS4S7W.js} +1 -1
- package/dist/cdn/{77YJOTCX.js → OXNIW3Q4.js} +1 -1
- package/dist/cdn/{UYNE67O2.js → P5QBGJ75.js} +1 -1
- package/dist/cdn/{WG2TWSUV.js → PABVNO3N.js} +1 -1
- package/dist/cdn/{X7OXNUXM.js → PPRYBWCL.js} +1 -1
- package/dist/cdn/{ZLUIF2K7.js → QXTIAJBT.js} +1 -1
- package/dist/cdn/{ENG2F3IQ.js → RCUNGWMS.js} +1 -1
- package/dist/cdn/{FH66KPN5.js → RKUYNM5K.js} +1 -1
- package/dist/cdn/{MUFEV5ZR.js → RQ3JFQIF.js} +1 -1
- package/dist/cdn/{KHFNTBX4.js → T4455CTF.js} +1 -1
- package/dist/cdn/{HPO7UHSN.js → T4I6RQBL.js} +1 -1
- package/dist/cdn/{5E6TR5OW.js → TAH7RJAD.js} +1 -1
- package/dist/cdn/{TLYVHR5K.js → TYA3HM4I.js} +1 -1
- package/dist/cdn/{EU6AJ57R.js → UUI4JRAP.js} +1 -1
- package/dist/cdn/{JPDI5NK6.js → UY6H4LX7.js} +1 -1
- package/dist/cdn/{6462KIIY.js → V2D3WUU5.js} +1 -1
- package/dist/cdn/{EP5BMXUY.js → V6IB4JKW.js} +1 -1
- package/dist/cdn/{6ESCKCYY.js → W55DHSL2.js} +1 -1
- package/dist/cdn/{FASMW7S2.js → WHLIG2UP.js} +1 -1
- package/dist/cdn/{IMQYTRSY.js → X4IUQKA3.js} +1 -1
- package/dist/cdn/{OLRPPTEO.js → X5IJFDLG.js} +1 -1
- package/dist/cdn/{JSJ2OXVP.js → XSKN27NO.js} +2 -2
- package/dist/cdn/{Z5ZBVJ2L.js → Y2C4JNPJ.js} +1 -1
- package/dist/cdn/{4SNP6HTM.js → Y62HYU6W.js} +1 -1
- package/dist/cdn/{JSUH5PFI.js → Y6IIGQGN.js} +1 -1
- package/dist/cdn/{KHV5W5KY.js → YIG6OTNW.js} +1 -1
- package/dist/cdn/{5434ASC3.js → YNHYJOH7.js} +1 -1
- package/dist/cdn/{Z5KG3KRT.js → YPPTTXOS.js} +1 -1
- package/dist/cdn/{XZAXZDTP.js → YWPZICTG.js} +1 -1
- package/dist/cdn/{F2MSD3QS.js → ZAHELPTS.js} +1 -1
- package/dist/cdn/{QHRYG4SP.js → ZISTDZXP.js} +1 -1
- package/dist/cdn/{PAHQAFMT.js → ZOXCNZCT.js} +1 -1
- package/dist/cdn/{KDMYI6HZ.js → ZZHMWOE6.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 +1 -1
- 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 +1 -1
- package/dist/chunks/heat-chart-model.js +9 -0
- package/dist/chunks/index.js +1592 -1576
- package/dist/chunks/index2.js +6 -0
- package/dist/chunks/index4.js +1 -1
- package/dist/chunks/model-setter.js +7 -7
- package/dist/chunks/negative-values-stacked-to-baseline.js +2 -2
- package/dist/chunks/pie-chart-model.js +102 -84
- package/dist/chunks/rounded-corners.js +1 -1
- package/dist/chunks/scatterplot-model.js +1 -1
- package/dist/chunks/serial-chart-data.js +41 -41
- package/dist/chunks/serial-chart-model.js +4 -4
- package/dist/chunks/utils.js +30 -30
- package/dist/chunks/web-component-utils.js +1 -1
- package/dist/chunks/x-bounds.js +5 -5
- package/dist/components/arcgis-chart/customElement.d.ts +45 -12
- package/dist/components/arcgis-chart/customElement.js +5018 -4867
- package/dist/components/arcgis-charts-config-axis/customElement.js +52 -42
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +5 -5
- 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 +9 -9
- package/dist/components/arcgis-charts-config-format/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-guide/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +47 -56
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +4 -4
- 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/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +376 -373
- package/dist/interfaces.d.ts +3 -2
- 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/heat-chart-model/heat-chart-model.d.ts +7 -1
- 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/pie-chart-model/pie-chart-model.d.ts +13 -1
- package/dist/model/properties/series/negative-values-stacked-to-baseline.d.ts +2 -2
- package/dist/utils/chart-config/converter/index.js +25 -25
- package/dist/utils/chart-config/utils/index.d.ts +32 -0
- package/package.json +5 -5
- package/dist/cdn/4PUOMS4A.js +0 -2
- package/dist/cdn/J5E4KON6.js +0 -3
- package/dist/cdn/MDKLQ2IS.js +0 -3
- package/dist/cdn/NMAG7AL2.js +0 -2
- package/dist/cdn/PIOFHDMU.js +0 -2
- package/dist/cdn/ZZAJQVXL.js +0 -2
- /package/dist/cdn/{IJPD3GVL.js → UE4KTI5X.js} +0 -0
|
@@ -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, bJ as u, bK as C, bg 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() {
|
|
@@ -10,9 +10,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,
|
|
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, bH as j, p as L, aR as H } from "../../chunks/index.js";
|
|
16
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";
|
|
@@ -181,7 +181,7 @@ class J 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 J 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);
|
|
@@ -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";
|
|
@@ -15,7 +15,7 @@ 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
17
|
import { I as K, J as _ } from "../../chunks/index3.js";
|
|
18
|
-
import { D as O,
|
|
18
|
+
import { D as O, bI as I, aR as H, 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) || H(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 { bJ as d, bK 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 { bI 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 = {
|
|
@@ -11,11 +11,11 @@ import { isEqual as D, cloneDeep as W } from "es-toolkit/compat";
|
|
|
11
11
|
import { i as k } from "../../chunks/index4.js";
|
|
12
12
|
import { q as F, r as E, C as G } from "../../chunks/index2.js";
|
|
13
13
|
import { LitElement as X, createEvent as f, renderElement as v, safeStyleMap as Z, safeClassMap as d } from "@arcgis/lumina";
|
|
14
|
-
import { css as
|
|
15
|
-
import { createRef as
|
|
14
|
+
import { css as j, html as h } from "lit";
|
|
15
|
+
import { createRef as q, ref as K } from "lit/directives/ref.js";
|
|
16
16
|
import { u as I } from "../../chunks/useT9n.js";
|
|
17
|
-
import { c as Y, a as b, g as
|
|
18
|
-
import {
|
|
17
|
+
import { c as Y, a as b, g as Q } from "../../chunks/store.js";
|
|
18
|
+
import { bL as J, ai as ee, bM as te, bN as ae, bO 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";
|
|
@@ -80,10 +80,10 @@ function pe(p, e) {
|
|
|
80
80
|
}), t.charts = a;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
const ue =
|
|
83
|
+
const ue = j`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;flex:1 1 auto;overflow:hidden;height:inherit;max-height:100%}.chart-ui-component{overflow-y:auto;overflow-x:hidden}.label{display:flex;margin-left:1rem;margin-bottom:.5rem;justify-content:space-between}.text{display:flex;margin-left:1rem;width:calc(100% - 1.5rem);height:2rem;margin-bottom:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:scroll}.row{padding:.5rem}.bin-count-container{display:flex;width:calc(100% - 1rem);padding:.5rem}.bin-count-slider{margin-left:1rem;width:calc(90% - 1rem)}.bin-count-input{margin-left:1rem;height:2rem;width:2rem}.bin-row{padding:.5rem 0 .5rem .5rem}.tab-bar{display:flex}.tab{flex:1;height:2.5rem}`;
|
|
84
84
|
class ge extends X {
|
|
85
85
|
constructor() {
|
|
86
|
-
super(), this.selectChartTypePopover = null, this.chartsListFlowItem =
|
|
86
|
+
super(), this.selectChartTypePopover = null, this.chartsListFlowItem = q(), this.supportedChartTypes = [
|
|
87
87
|
o.BarSeries,
|
|
88
88
|
o.BoxPlotSeries,
|
|
89
89
|
o.LineSeries,
|
|
@@ -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) => {
|
|
@@ -307,7 +307,7 @@ 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()
|
|
@@ -420,7 +420,7 @@ class ge extends X {
|
|
|
420
420
|
return V(e, (t) => t.id, (t) => h`<arcgis-charts-config-view-charts .noGroup=${this.activeLayerId !== void 0} .modelList=${ce(this.modelList, t.id.toString(), B(t.type) ? ie : this.supportedChartTypes)} .selectedChartId=${this.selectedChartId ?? ""} .layer=${t} .disableEditing=${this.disableEditing} @arcgisChartsConfigViewChartSelect=${this.onViewChartsSelect} @arcgisChartsConfigViewChartEdit=${this.onViewChartsEdit} @arcgisChartsConfigViewChartDelete=${this.onViewChartDelete} @arcgisChartsConfigViewChartAddChart=${this.onAddChartClick}></arcgis-charts-config-view-charts>`);
|
|
421
421
|
}
|
|
422
422
|
render() {
|
|
423
|
-
return this.close ? null : h`<calcite-flow>${S("charts-list", h`<calcite-flow-item .selected=${this.panelNumber === 0 || this.disableEditing} .heading=${this.headerTitle ?? this._messages.defaultHeaderTitle} closable @calciteFlowItemClose=${this.onViewChartClose} ${
|
|
423
|
+
return this.close ? null : h`<calcite-flow>${S("charts-list", h`<calcite-flow-item .selected=${this.panelNumber === 0 || this.disableEditing} .heading=${this.headerTitle ?? this._messages.defaultHeaderTitle} closable @calciteFlowItemClose=${this.onViewChartClose} ${K(this.chartsListFlowItem)}>${this.renderViewCharts()}</calcite-flow-item>`)}${this.panelNumber >= 1 && !this.disableEditing ? this.renderTabs() : null}</calcite-flow>`;
|
|
424
424
|
}
|
|
425
425
|
renderTabs() {
|
|
426
426
|
const e = this.getModel(this.selectedChartId);
|
|
@@ -9,11 +9,11 @@ import { h as G } from "../../chunks/chart-ui-utils.js";
|
|
|
9
9
|
import { R as W, b } from "../../chunks/rest-js-object-literals.js";
|
|
10
10
|
import { u as N } from "../../chunks/useT9n.js";
|
|
11
11
|
import { css as z, html as f } from "lit";
|
|
12
|
-
import { LitElement as H, renderElement as
|
|
13
|
-
import { C as
|
|
14
|
-
import { b as u,
|
|
12
|
+
import { LitElement as H, renderElement as R, safeClassMap as p } from "@arcgis/lumina";
|
|
13
|
+
import { C as j, F as i, L as m } from "../../chunks/common.js";
|
|
14
|
+
import { b as u, bQ as r } from "../../chunks/index.js";
|
|
15
15
|
import { r as $ } from "../../chunks/popover-ui-utils.js";
|
|
16
|
-
import { C as
|
|
16
|
+
import { C as I } from "../../chunks/index2.js";
|
|
17
17
|
import { a } from "../../chunks/chart-object-literals.js";
|
|
18
18
|
const v = {
|
|
19
19
|
type: b.TS,
|
|
@@ -34,7 +34,7 @@ const v = {
|
|
|
34
34
|
element: "chart-element",
|
|
35
35
|
elementList: "element-list",
|
|
36
36
|
sectionLabel: "section-label"
|
|
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
40
|
super(...arguments), this._messages = N(), this.formatPopover = null, this.selectableElements = [], this.textProperties = [], this.symbolProperties = [], this.symbolPropertyChange = (t) => {
|
|
@@ -74,7 +74,7 @@ class X extends H {
|
|
|
74
74
|
if (e.target?.localName === "calcite-list-item" ? s = e.target?.value : s = e.target?.parentNode?.value, this.selectedSymbols = [], this.selectedTexts = [], this.selectedBackground.includes(s))
|
|
75
75
|
this.selectedBackground = [], this.selectedElement = void 0;
|
|
76
76
|
else {
|
|
77
|
-
const o = this.getFormatValue(s), l = [...
|
|
77
|
+
const o = this.getFormatValue(s), l = [...I.backgroundColor];
|
|
78
78
|
this.selectedBackground = [s], this.selectedElement = o ?? l;
|
|
79
79
|
}
|
|
80
80
|
this.setupFormatPopover();
|
|
@@ -84,7 +84,7 @@ class X extends H {
|
|
|
84
84
|
this.setFormatValue(s, e);
|
|
85
85
|
}), this.selectedElement = n(t.target.selectedElement);
|
|
86
86
|
}, this.updateBackground = (t) => {
|
|
87
|
-
this.setFormatValue(
|
|
87
|
+
this.setFormatValue(j.Background, t.detail), this.selectedElement = t.detail;
|
|
88
88
|
}, this.updateTextProps = (t) => {
|
|
89
89
|
const { font: e, color: s } = t.detail;
|
|
90
90
|
this.selectedTexts.forEach((o) => {
|
|
@@ -113,7 +113,7 @@ class X extends H {
|
|
|
113
113
|
this.properties = { selectedSymbols: 16, selectedTexts: 16, selectedBackground: 16, selectedElement: 16, messageOverrides: 0, model: 0 };
|
|
114
114
|
}
|
|
115
115
|
static {
|
|
116
|
-
this.styles =
|
|
116
|
+
this.styles = O;
|
|
117
117
|
}
|
|
118
118
|
load() {
|
|
119
119
|
this.modelChange(this.model);
|
|
@@ -157,7 +157,7 @@ class X extends H {
|
|
|
157
157
|
this.formatPopover = $(this.formatPopover);
|
|
158
158
|
const t = this.selectedElement;
|
|
159
159
|
t?.type === b.TS || t?.type === b.SLS || // To check if the selected element is background.
|
|
160
|
-
Array.isArray(this.selectedElement) ? (this.formatPopover =
|
|
160
|
+
Array.isArray(this.selectedElement) ? (this.formatPopover = R(f`<arcgis-charts-config-format-popover .selectedElement=${this.selectedElement} .referenceElement=${this.el} @arcgisChartsConfigFormatPopoverSymbolChange=${this.updateSymbolProps} @arcgisChartsConfigFormatPopoverTextChange=${this.updateTextProps} @arcgisChartsConfigFormatPopoverColorChange=${this.updateBackground} placement=auto @arcgisChartsConfigPopoverClose=${this.formatPopoverClose} open></arcgis-charts-config-format-popover>`), this.formatPopover !== null && !document.body.contains(this.formatPopover) && document.body.appendChild(this.formatPopover)) : this.removeFormatPopover();
|
|
161
161
|
}
|
|
162
162
|
removeFormatPopover() {
|
|
163
163
|
this.formatPopover !== null && (this.formatPopover.open = !1, this.formatPopover = $(this.formatPopover));
|
|
@@ -10,9 +10,9 @@ import { css as O, html as c } from "lit";
|
|
|
10
10
|
import { createRef as h, ref as u } from "lit/directives/ref.js";
|
|
11
11
|
import { LitElement as V, createEvent as U, renderElement as L, safeStyleMap as M, safeClassMap as o } from "@arcgis/lumina";
|
|
12
12
|
import { l as W, q as Y, r as j } from "../../chunks/type-guards2.js";
|
|
13
|
-
import {
|
|
14
|
-
import { t as
|
|
15
|
-
import { r as
|
|
13
|
+
import { bR as p, b as m, bo as H, bS as A, bT as _, i as J } from "../../chunks/index.js";
|
|
14
|
+
import { t as K } from "../../chunks/index3.js";
|
|
15
|
+
import { r as Q } from "../../chunks/popover-ui-utils.js";
|
|
16
16
|
import { b as g, R as ee } from "../../chunks/rest-js-object-literals.js";
|
|
17
17
|
import { a as te } from "../../chunks/chart-object-literals.js";
|
|
18
18
|
import { G as b } from "../../chunks/common.js";
|
|
@@ -101,14 +101,14 @@ class se extends V {
|
|
|
101
101
|
})), this.guidePopover?.open === !0 && this.removeGuidePopover();
|
|
102
102
|
}
|
|
103
103
|
setGuideDateTimeRange() {
|
|
104
|
-
const e = this.calculatedMinMaxBounds?.find((d) => d.isXAxis)?.minimum, t = this.calculatedMinMaxBounds?.find((d) => d.isXAxis)?.maximum, i = typeof e == "number" ? new Date(e) : /* @__PURE__ */ new Date(), a = typeof t == "number" ? new Date(t) : /* @__PURE__ */ new Date(), l = new window.Intl.DateTimeFormat().resolvedOptions().timeZone, s = H(this.timeZone) ?? l, r = A(i, s), v = _(i, s), f = A(a, s), R = _(a, s), T = this.startDateCalciteInput.value?.value ?? "", C = T === "" ? r : T, D = this.startTimeCalciteInput.value?.value ?? "", I = D === "" ? v : D, x = this.endDateCalciteInput.value?.value ?? "", y = x === "" ? f : x,
|
|
104
|
+
const e = this.calculatedMinMaxBounds?.find((d) => d.isXAxis)?.minimum, t = this.calculatedMinMaxBounds?.find((d) => d.isXAxis)?.maximum, i = typeof e == "number" ? new Date(e) : /* @__PURE__ */ new Date(), a = typeof t == "number" ? new Date(t) : /* @__PURE__ */ new Date(), l = new window.Intl.DateTimeFormat().resolvedOptions().timeZone, s = H(this.timeZone) ?? l, r = A(i, s), v = _(i, s), f = A(a, s), R = _(a, s), T = this.startDateCalciteInput.value?.value ?? "", C = T === "" ? r : T, D = this.startTimeCalciteInput.value?.value ?? "", I = D === "" ? v : D, x = this.endDateCalciteInput.value?.value ?? "", y = x === "" ? f : x, w = this.endTimeCalciteInput.value?.value ?? "", P = w === "" ? R : w;
|
|
105
105
|
let $ = !1;
|
|
106
106
|
if (!Array.isArray(C) && C !== void 0 && I !== void 0) {
|
|
107
107
|
const d = `${C}T${I}`;
|
|
108
108
|
this.model.setGuideStart(d, this.index, this.orientation), $ = !0;
|
|
109
109
|
}
|
|
110
|
-
if (!Array.isArray(y) && y !== void 0 &&
|
|
111
|
-
const d = x === "" ? void 0 : `${y}T${
|
|
110
|
+
if (!Array.isArray(y) && y !== void 0 && P !== void 0) {
|
|
111
|
+
const d = x === "" ? void 0 : `${y}T${P}`;
|
|
112
112
|
this.model.setGuideEnd(d, this.index, this.orientation), $ = !0;
|
|
113
113
|
}
|
|
114
114
|
$ && (this.symbolChange(), this.arcgisChartsConfigGuideChange.emit({
|
|
@@ -161,11 +161,11 @@ class se extends V {
|
|
|
161
161
|
Array.isArray(t?.color) ? (this.guidePopover = L(c`<arcgis-charts-config-guide-popover .referenceElement=${s} open .selectedElement=${l} @arcgisChartsConfigGuidePopoverColorChange=${this.colorChange} @arcgisChartsConfigGuidePopoverSymbolChange=${this.symbolChange} @arcgisChartsConfigPopoverClose=${this.removeGuidePopover}></arcgis-charts-config-guide-popover>`), this.guidePopover !== void 0 && !document.body.contains(this.guidePopover) && document.body.appendChild(this.guidePopover)) : this.removeGuidePopover();
|
|
162
162
|
}
|
|
163
163
|
removeGuidePopover() {
|
|
164
|
-
this.guidePopover !== null && this.guidePopover !== void 0 && (this.guidePopover =
|
|
164
|
+
this.guidePopover !== null && this.guidePopover !== void 0 && (this.guidePopover = Q(this.guidePopover));
|
|
165
165
|
}
|
|
166
166
|
setColor(e) {
|
|
167
|
-
const t =
|
|
168
|
-
...
|
|
167
|
+
const t = K({ opacity: 0 }), i = this.model.getGuideStyle(this.index, this.orientation), a = {
|
|
168
|
+
...J(i) ? i : {},
|
|
169
169
|
type: g.SFS,
|
|
170
170
|
color: e,
|
|
171
171
|
outline: t
|
|
@@ -4,7 +4,7 @@ import { LitElement as l } from "@arcgis/lumina";
|
|
|
4
4
|
import { css as n, html as i } from "lit";
|
|
5
5
|
import { C as s } from "../../chunks/interfaces.js";
|
|
6
6
|
import { isEqual as d } from "es-toolkit/compat";
|
|
7
|
-
import {
|
|
7
|
+
import { bJ as h, bK as c, t as f } from "../../chunks/index.js";
|
|
8
8
|
const p = n`:host{margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
9
9
|
class m extends l {
|
|
10
10
|
static {
|