@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
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import { c as B } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as X } from "lit/directives/keyed.js";
|
|
4
4
|
import { cloneDeep as E } from "es-toolkit/compat";
|
|
5
|
-
import { m as G, U as S, a as N, j as
|
|
5
|
+
import { m as G, U as S, a as N, j as Z, k } from "../../chunks/chart-ui-utils.js";
|
|
6
6
|
import { d as F } from "../../chunks/default.js";
|
|
7
|
-
import { g as
|
|
7
|
+
import { g as q } from "../../chunks/resource.js";
|
|
8
8
|
import { u as z } from "../../chunks/useT9n.js";
|
|
9
|
-
import { css as
|
|
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
|
-
import { LitElement as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
11
|
+
import { LitElement as V, createEvent as U, renderElement as L, safeStyleMap as M, safeClassMap as o } from "@arcgis/lumina";
|
|
12
|
+
import { l as W, q as Y, r as j } from "../../chunks/type-guards2.js";
|
|
13
|
+
import { bQ as p, b as m, bo as H, bR as A, bS as _, i as Q } from "../../chunks/index.js";
|
|
14
14
|
import { t as J } from "../../chunks/index3.js";
|
|
15
15
|
import { r as K } from "../../chunks/popover-ui-utils.js";
|
|
16
16
|
import { b as g, R as ee } from "../../chunks/rest-js-object-literals.js";
|
|
@@ -20,8 +20,8 @@ const n = {
|
|
|
20
20
|
row: "row",
|
|
21
21
|
column: "column",
|
|
22
22
|
colorPicker: "color-picker"
|
|
23
|
-
}, ie =
|
|
24
|
-
class se extends
|
|
23
|
+
}, ie = O`.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}.row{display:flex;flex-direction:row;column-gap:var(--arcgis-charts-inter-section-margin)}.column{display:flex;flex-direction:column;flex-wrap:wrap;flex-grow:1}.column>calcite-input{margin-bottom:.5rem;flex-grow:2}.column>calcite-input[type=number]{margin-bottom:.5rem}input{padding:.5rem}.label{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:var(--arcgis-charts-intra-section-margin);flex-grow:1}.color-picker{border:1px solid var(--calcite-color-border-2);box-shadow:none;margin-bottom:var(--arcgis-charts-inter-section-margin)}.delete-guide{display:flex;flex-direction:row-reverse;height:2rem;margin:0 1rem;font-weight:550}.delete-guide:dir(rtl){flex-direction:row}`;
|
|
24
|
+
class se extends V {
|
|
25
25
|
constructor() {
|
|
26
26
|
super(...arguments), this._messages = z(), this.startCalciteInput = h(), this.endCalciteInput = h(), this.startDateCalciteInput = h(), this.endDateCalciteInput = h(), this.startTimeCalciteInput = h(), this.endTimeCalciteInput = h(), this.colorElement = h(), this.colorChange = (e) => {
|
|
27
27
|
const t = e.detail, i = this.model.getGuideStart(this.index, this.orientation), a = this.model.getGuideEnd(this.index, this.orientation);
|
|
@@ -101,14 +101,14 @@ class se extends q {
|
|
|
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({
|
|
@@ -206,19 +206,19 @@ class se extends q {
|
|
|
206
206
|
N(this.tooltip);
|
|
207
207
|
}
|
|
208
208
|
deleteGuide() {
|
|
209
|
-
this.destroyTooltip(), this.orientation === b.X &&
|
|
209
|
+
this.destroyTooltip(), this.orientation === b.X && Y(this.model) ? this.model.deleteXAxisGuide(this.index) : this.orientation === b.Y && j(this.model) && this.model.deleteYAxisGuide(this.index), this.arcgisChartsConfigGuideChange.emit({
|
|
210
210
|
index: this.index,
|
|
211
211
|
orientation: this.orientation,
|
|
212
212
|
isDelete: !0
|
|
213
213
|
});
|
|
214
214
|
}
|
|
215
215
|
renderColorElement() {
|
|
216
|
-
const e = this.model.getGuideStyle(this.index, this.orientation), [t, i, a, l] = [...e?.color ?? [1, 1, 1, 255]], s = this.model.getGuideStart(this.index, this.orientation), r = this.model.getGuideEnd(this.index, this.orientation), v = m(e) ?
|
|
216
|
+
const e = this.model.getGuideStyle(this.index, this.orientation), [t, i, a, l] = [...e?.color ?? [1, 1, 1, 255]], s = this.model.getGuideStart(this.index, this.orientation), r = this.model.getGuideEnd(this.index, this.orientation), v = m(e) ? Z(e.style) : ee.Solid, f = p(s, r) === g.SLS ? `line-${v}` : "square-f";
|
|
217
217
|
return c`<calcite-list label selection-mode=single selection-appearance=border><calcite-list-item .value=${this._messages.style} class=${o(n.colorPicker)} .label=${this._messages.style} .selected=${this.guidePopover?.open} @click=${this.onColorElementSelect} ${u(this.colorElement)}><calcite-icon slot=content-end .icon=${f} style=${M({ color: `rgba(${t},${i},${a},${l / 255})` })}></calcite-icon></calcite-list-item></calcite-list>`;
|
|
218
218
|
}
|
|
219
219
|
render() {
|
|
220
220
|
const e = this.model.getGuideStart(this.index, this.orientation), t = this.model.getGuideEnd(this.index, this.orientation), i = this.model.getGuideName(this.index, this.orientation), a = this.model.getGuideLabelText(this.index, this.orientation), l = this.model.getGuideAbove(this.index, this.orientation), s = this.model.getGuideVisibility(this.index, this.orientation), r = this.isXAxisDateField;
|
|
221
|
-
return c`<calcite-block .heading=${i ?? ""} .expanded=${this.latestGuidePosition ===
|
|
221
|
+
return c`<calcite-block .heading=${i ?? ""} .expanded=${this.latestGuidePosition === q(this.index, this.orientation, this.model)} collapsible .messageOverrides=${{
|
|
222
222
|
expand: this._messages.expand,
|
|
223
223
|
collapse: this._messages.collapse
|
|
224
224
|
}}><calcite-action slot=actions-end text .icon=${s ? "view-visible" : "view-hide"} @click=${this.toggleGuide} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-action><calcite-action slot=actions-end text icon=trash @click=${this.deleteGuide} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-action><div class=${o(n.row)}><calcite-label class=${o(n.column)}>${this._messages.start}${r ? c`<calcite-input-date-picker .value=${this.getDateStringFromBound(e)} required scale=s placement=bottom-end @calciteInputDatePickerChange=${this.setGuideDateTimeRange} ${u(this.startDateCalciteInput)}></calcite-input-date-picker>` : c`<calcite-input type=number required @calciteInputInput=${this.setGuideStart} @keydown=${k} number-button-type=none .value=${e?.toString()} ${u(this.startCalciteInput)}></calcite-input>`}</calcite-label><calcite-label class=${o(n.column)}>${this._messages.end}${r ? c`<calcite-input-date-picker .value=${this.getDateStringFromBound(t)} scale=s placement=bottom-end @calciteInputDatePickerChange=${this.setGuideDateTimeRange} ${u(this.endDateCalciteInput)}></calcite-input-date-picker>` : c`<calcite-input type=number @calciteInputInput=${this.setGuideEnd} @keydown=${k} number-button-type=none .value=${t?.toString()} ${u(this.endCalciteInput)}></calcite-input>`}</calcite-label></div>${r ? X("time-picker-row", c`<div class=${o(n.row)}>${e != null ? c`<calcite-label class=${o(n.column)}><calcite-input-time-picker .value=${this.getTimeStringFromBound(e)} scale=s @calciteInputTimePickerChange=${this.setGuideDateTimeRange} ${u(this.startTimeCalciteInput)}></calcite-input-time-picker></calcite-label>` : null}${t != null ? c`<calcite-label class=${o(n.column)}><calcite-input-time-picker .value=${this.getTimeStringFromBound(t)} scale=s @calciteInputTimePickerChange=${this.setGuideDateTimeRange} ${u(this.endTimeCalciteInput)}></calcite-input-time-picker></calcite-label>` : null}</div>`) : null}<div class=${o(n.row)}><div class=${o(n.column)}>${this.renderColorElement()}</div></div><div class=${o(n.row)}><calcite-label class=${o(n.column)}>${this._messages.guideName}<calcite-input type=text .value=${i} @calciteInputInput=${this.setGuideName}></calcite-input></calcite-label></div><div class=${o(n.row)}><calcite-label class=${o(n.column)}>${this._messages.guideLabel}<calcite-input type=text .value=${a} @calciteInputInput=${this.setGuideLabel}></calcite-input></calcite-label></div><div class=${o(n.row)}><calcite-label class=${o(n.column)}>${this._messages.display}<calcite-segmented-control @calciteSegmentedControlChange=${this.setGuideRendered} scale=s><calcite-segmented-control-item .checked=${l} .value=${this._messages.inFront}>${this._messages.inFront}</calcite-segmented-control-item><calcite-segmented-control-item .checked=${!l} .value=${this._messages.inBack}>${this._messages.inBack}</calcite-segmented-control-item></calcite-segmented-control></calcite-label></div></calcite-block>`;
|
|
@@ -7,7 +7,7 @@ import { u as f } from "../../chunks/useT9n.js";
|
|
|
7
7
|
import { css as A, html as a } from "lit";
|
|
8
8
|
import { createRef as x, ref as C } from "lit/directives/ref.js";
|
|
9
9
|
import { LitElement as b, renderElement as v, safeClassMap as c } from "@arcgis/lumina";
|
|
10
|
-
import {
|
|
10
|
+
import { q as h, r as u } from "../../chunks/type-guards2.js";
|
|
11
11
|
import { G as s } from "../../chunks/common.js";
|
|
12
12
|
const P = A`:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}.add-guide{display:flex;justify-content:center;padding:.5rem}.add-guide-btn{width:100%}.no-guides{border-radius:2rem}.no-messages{text-align:center}.guide-icon{padding-left:.5rem;padding-top:.5rem;width:1.5rem;height:1.5rem}`;
|
|
13
13
|
class $ extends b {
|
|
@@ -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 { bI as h, bJ 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 {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as E } from "../../chunks/runtime.js";
|
|
3
3
|
import { LitElement as A, createEvent as D, renderElement as M, safeClassMap as o, safeStyleMap as B } from "@arcgis/lumina";
|
|
4
4
|
import { normalizeLocale as w, defaultLocale as I } from "@arcgis/toolkit/intl";
|
|
5
5
|
import { getElementLocale as N } from "@arcgis/toolkit/intl/dom";
|
|
6
6
|
import { css as _, html as i } from "lit";
|
|
7
7
|
import { createRef as n, ref as c } from "lit/directives/ref.js";
|
|
8
|
-
import { parseInt as H, camelCase as
|
|
9
|
-
import { DateTime as
|
|
8
|
+
import { parseInt as H, camelCase as L } from "es-toolkit/compat";
|
|
9
|
+
import { DateTime as O } from "luxon";
|
|
10
10
|
import { C as T, b as x, t as U } from "../../chunks/index2.js";
|
|
11
11
|
import { u as R } from "../../chunks/useT9n.js";
|
|
12
|
-
import { c as
|
|
12
|
+
import { c as s, W as k } from "../../chunks/interfaces.js";
|
|
13
13
|
import { x as W } from "../../chunks/data.js";
|
|
14
14
|
import { l as v, s as q } from "../../chunks/chart-ui-utils.js";
|
|
15
15
|
import { c as $, g as K, a as V, b as z } from "../../chunks/class-breaks.js";
|
|
@@ -17,7 +17,7 @@ import { e as X, a as Z } from "../../chunks/store.js";
|
|
|
17
17
|
import { H as G } from "../../chunks/common.js";
|
|
18
18
|
import { b as j } from "../../chunks/rest-js-object-literals.js";
|
|
19
19
|
import { d as m, h, l as p, a as C, n as u, q as F, r as Y } from "../../chunks/chart-object-literals.js";
|
|
20
|
-
import {
|
|
20
|
+
import { I as Q, i as J, Q as d } from "../../chunks/index3.js";
|
|
21
21
|
import { r as S } from "../../chunks/index.js";
|
|
22
22
|
import { i as ee } from "../../chunks/index4.js";
|
|
23
23
|
import { r as ae } from "../../chunks/popover-ui-utils.js";
|
|
@@ -35,24 +35,24 @@ class se extends A {
|
|
|
35
35
|
if (e.detail?.value !== void 0) {
|
|
36
36
|
const { contentKind: a } = e.detail, t = e.detail.value;
|
|
37
37
|
switch (a) {
|
|
38
|
-
case
|
|
38
|
+
case s.aggregation:
|
|
39
39
|
this.model.aggregationType = t, t === m.Count || t === m.Sum ? this.model.nullPolicy = h.Zero : this.model.nullPolicy = h.Null;
|
|
40
40
|
break;
|
|
41
|
-
case
|
|
41
|
+
case s.xAxisField:
|
|
42
42
|
this.model.xAxisField = t, this.setDefaultPropertiesForCalendarHeatChart();
|
|
43
43
|
break;
|
|
44
|
-
case
|
|
44
|
+
case s.numericFields:
|
|
45
45
|
this.model.numericFields = [t.trim() || ""], (this.model.numericFields ?? []).length > 0 && this.model.aggregationType === m.Count && this.model.numericFields[0] !== S(this.model.layer).idField && (this.model.aggregationType = m.Sum);
|
|
46
46
|
break;
|
|
47
|
-
case
|
|
47
|
+
case s.calendarType: {
|
|
48
48
|
this.applyCalendarTypePreset(t);
|
|
49
49
|
break;
|
|
50
50
|
}
|
|
51
|
-
case
|
|
51
|
+
case s.calendarViewType: {
|
|
52
52
|
this.model.viewType = t;
|
|
53
53
|
break;
|
|
54
54
|
}
|
|
55
|
-
case
|
|
55
|
+
case s.classBreakMethod: {
|
|
56
56
|
this.model.classificationMethod = t, await this.generateAndUpdateClassBreaks();
|
|
57
57
|
break;
|
|
58
58
|
}
|
|
@@ -69,30 +69,21 @@ class se extends A {
|
|
|
69
69
|
}, this.onModelConfigChange = () => {
|
|
70
70
|
this.requestUpdate();
|
|
71
71
|
}, this.allColorRamps = [], this.onColorRampSelection = async (e) => {
|
|
72
|
-
const { isFlipped: a, rampName: t } = e.detail,
|
|
73
|
-
this.model.colorRampName = t, this.model.isColorRampFlipped = a, (
|
|
72
|
+
const { isFlipped: a, rampName: t } = e.detail, l = this.model.colorRampName !== t, g = this.model.isColorRampFlipped !== a;
|
|
73
|
+
this.model.colorRampName = t, this.model.isColorRampFlipped = a, (l || g) && await this.generateAndUpdateClassBreaks(!0);
|
|
74
74
|
}, this.onEmptyCellNameChange = (e) => {
|
|
75
75
|
const { name: a } = e.detail;
|
|
76
|
-
|
|
77
|
-
const s = {
|
|
78
|
-
...this.model.emptyCell,
|
|
79
|
-
name: a
|
|
80
|
-
};
|
|
81
|
-
this.model.emptyCell = s;
|
|
82
|
-
}
|
|
76
|
+
a !== void 0 && (this.model.emptyCellText = a);
|
|
83
77
|
}, this.onEmptyCellColorChange = (e) => {
|
|
84
78
|
const { color: a } = e.detail;
|
|
85
79
|
if (a !== void 0) {
|
|
86
|
-
const t = this.model.
|
|
80
|
+
const t = this.model.emptyCellSymbol, l = {
|
|
87
81
|
...t,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
color: a,
|
|
92
|
-
outline: t?.symbol?.outline && { ...t.symbol.outline, color: a }
|
|
93
|
-
}
|
|
82
|
+
type: j.SFS,
|
|
83
|
+
color: a,
|
|
84
|
+
outline: t?.outline && { ...t.outline, color: a }
|
|
94
85
|
};
|
|
95
|
-
this.model.
|
|
86
|
+
this.model.emptyCellSymbol = l;
|
|
96
87
|
}
|
|
97
88
|
}, this.availableColorRamps = [], this.layerFieldsInfo = [], this.open = !1, this.arcgisChartsConfigDataChangeError = D();
|
|
98
89
|
}
|
|
@@ -109,7 +100,7 @@ class se extends A {
|
|
|
109
100
|
this.modelChange(this.model), this.onModelConfigChange();
|
|
110
101
|
}
|
|
111
102
|
willUpdate(e) {
|
|
112
|
-
e.has("model") && this.modelChange(this.model, e.get("model")), this.aggregationLabel =
|
|
103
|
+
e.has("model") && this.modelChange(this.model, e.get("model")), this.aggregationLabel = Q(this.model.aggregationType, this.commonStrings);
|
|
113
104
|
}
|
|
114
105
|
disconnectedCallback() {
|
|
115
106
|
super.disconnectedCallback(), this.model?.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
@@ -126,7 +117,7 @@ class se extends A {
|
|
|
126
117
|
}
|
|
127
118
|
getFirstDayOfWeek() {
|
|
128
119
|
const { lang: e } = N(this.el ?? document.documentElement), a = w(e);
|
|
129
|
-
return
|
|
120
|
+
return O.local().setLocale(e).startOf("week", { useLocaleWeeks: a !== I }).weekday;
|
|
130
121
|
}
|
|
131
122
|
applyCalendarTypePreset(e) {
|
|
132
123
|
switch (e) {
|
|
@@ -156,9 +147,9 @@ class se extends A {
|
|
|
156
147
|
}
|
|
157
148
|
async generateClassBreaks(e = !1) {
|
|
158
149
|
let a = [];
|
|
159
|
-
const t = this.model.chartRenderer?.classBreakInfos,
|
|
160
|
-
return
|
|
161
|
-
data:
|
|
150
|
+
const t = this.model.chartRenderer?.classBreakInfos, l = X(Z);
|
|
151
|
+
return l && (a = await K({
|
|
152
|
+
data: l,
|
|
162
153
|
xAxisField: this.model.xAxisField,
|
|
163
154
|
classificationMethod: this.model.classificationMethod,
|
|
164
155
|
breaksCount: this.model.breaksCount,
|
|
@@ -173,7 +164,7 @@ class se extends A {
|
|
|
173
164
|
applyGeneratedClassBreaks(e, a) {
|
|
174
165
|
if (this.model.chartRenderer = {
|
|
175
166
|
type: "classBreaks",
|
|
176
|
-
field:
|
|
167
|
+
field: J.valueField,
|
|
177
168
|
classBreakInfos: e
|
|
178
169
|
}, this.model.heatRulesType !== u.Renderer && (this.model.heatRulesType = u.Renderer), this.model.classificationMethod !== F.manual) {
|
|
179
170
|
const t = e.length || a;
|
|
@@ -198,29 +189,29 @@ class se extends A {
|
|
|
198
189
|
}) ? "" : x(this.layerFieldsInfo, this.model.xAxisField);
|
|
199
190
|
}
|
|
200
191
|
onXAxisFieldSelect(e) {
|
|
201
|
-
this.contentKind =
|
|
192
|
+
this.contentKind = s.xAxisField, this.setupPopover(e);
|
|
202
193
|
}
|
|
203
194
|
onNumericFieldSelect(e) {
|
|
204
|
-
this.contentKind =
|
|
195
|
+
this.contentKind = s.numericFields, this.setupPopover(e);
|
|
205
196
|
}
|
|
206
197
|
onCalendarTypeSelect(e) {
|
|
207
|
-
this.contentKind =
|
|
198
|
+
this.contentKind = s.calendarType, this.setupPopover(e);
|
|
208
199
|
}
|
|
209
200
|
onClassBreakMethodSelect(e) {
|
|
210
|
-
this.contentKind =
|
|
201
|
+
this.contentKind = s.classBreakMethod, this.setupPopover(e);
|
|
211
202
|
}
|
|
212
203
|
onColorSchemeSelect(e) {
|
|
213
|
-
this.contentKind =
|
|
204
|
+
this.contentKind = s.colorScheme, this.setupPopover(e);
|
|
214
205
|
}
|
|
215
206
|
async onBreaksCountChange(e) {
|
|
216
207
|
let a = H(e.target.value);
|
|
217
208
|
a < d.min ? a = d.min : a > d.max && (a = d.max), U(a) && (this.breaksCountElement.value && (this.breaksCountElement.value.value = a.toString()), this.requestedBreaksCount = a, this.model.breaksCount = a, await this.generateAndUpdateClassBreaks());
|
|
218
209
|
}
|
|
219
210
|
onAggregationSelect(e) {
|
|
220
|
-
this.contentKind =
|
|
211
|
+
this.contentKind = s.aggregation, this.setupPopover(e);
|
|
221
212
|
}
|
|
222
213
|
onNullSelect(e) {
|
|
223
|
-
this.contentKind =
|
|
214
|
+
this.contentKind = s.null, this.setupPopover(e);
|
|
224
215
|
}
|
|
225
216
|
onIncludeLeapDayChange(e) {
|
|
226
217
|
const a = e.target.checked;
|
|
@@ -231,34 +222,34 @@ class se extends A {
|
|
|
231
222
|
}
|
|
232
223
|
setupPopover(e) {
|
|
233
224
|
e.stopImmediatePropagation(), this.removeHeatChartDataPopover();
|
|
234
|
-
let a, t,
|
|
225
|
+
let a, t, l;
|
|
235
226
|
switch (this.contentKind) {
|
|
236
|
-
case
|
|
237
|
-
a = this.aggregationElement.value, t = this._messages.aggregationHeader,
|
|
227
|
+
case s.aggregation:
|
|
228
|
+
a = this.aggregationElement.value, t = this._messages.aggregationHeader, l = this.model.aggregationType;
|
|
238
229
|
break;
|
|
239
|
-
case
|
|
240
|
-
a = this.xAxisFieldElement.value, t = this._messages.xAxisField,
|
|
230
|
+
case s.xAxisField:
|
|
231
|
+
a = this.xAxisFieldElement.value, t = this._messages.xAxisField, l = this.model.xAxisField;
|
|
241
232
|
break;
|
|
242
|
-
case
|
|
243
|
-
a = this.numericFieldsElement.value, t = this._messages.numericField,
|
|
233
|
+
case s.numericFields:
|
|
234
|
+
a = this.numericFieldsElement.value, t = this._messages.numericField, l = this.model.numericFields?.[0];
|
|
244
235
|
break;
|
|
245
|
-
case
|
|
246
|
-
a = this.calendarTypeElement.value, t = this._messages.calendarType,
|
|
236
|
+
case s.calendarType:
|
|
237
|
+
a = this.calendarTypeElement.value, t = this._messages.calendarType, l = v(this.model);
|
|
247
238
|
break;
|
|
248
|
-
case
|
|
249
|
-
a = this.calendarViewTypeElement.value, t = this._messages.viewType,
|
|
239
|
+
case s.calendarViewType:
|
|
240
|
+
a = this.calendarViewTypeElement.value, t = this._messages.viewType, l = this.model.viewType;
|
|
250
241
|
break;
|
|
251
|
-
case
|
|
252
|
-
a = this.classBreakMethodElement.value, t = this._messages.method,
|
|
242
|
+
case s.classBreakMethod:
|
|
243
|
+
a = this.classBreakMethodElement.value, t = this._messages.method, l = this.model.classificationMethod;
|
|
253
244
|
break;
|
|
254
|
-
case
|
|
255
|
-
a = this.colorSchemeElement.value, t = this._messages.colorScheme,
|
|
245
|
+
case s.colorScheme:
|
|
246
|
+
a = this.colorSchemeElement.value, t = this._messages.colorScheme, l = this.getSelectedOrDefaultColorRampName();
|
|
256
247
|
break;
|
|
257
|
-
case
|
|
248
|
+
case s.null:
|
|
258
249
|
a = e.target, t = this._messages.null;
|
|
259
250
|
break;
|
|
260
251
|
}
|
|
261
|
-
this.heatChartPopover = M(i`<arcgis-charts-config-heat-chart-popover .headingTitle=${t} .referenceElement=${a} open .contentKind=${this.contentKind} .model=${this.model} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${
|
|
252
|
+
this.heatChartPopover = M(i`<arcgis-charts-config-heat-chart-popover .headingTitle=${t} .referenceElement=${a} open .contentKind=${this.contentKind} .model=${this.model} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${l} @arcgisChartsConfigHeatChartDataPopoverChange=${this.onHeatChartDataPopoverChange} @arcgisChartsConfigPopoverClose=${this.popoverClose} .colorRamps=${this.availableColorRamps} @arcgisChartsConfigHeatChartColorRampChange=${this.onColorRampSelection} @arcgisChartsConfigPopoverEmptyCellColorChange=${this.onEmptyCellColorChange} @arcgisChartsConfigPopoverEmptyCellNameChange=${this.onEmptyCellNameChange} .isFlipped=${this.model.isColorRampFlipped}></arcgis-charts-config-heat-chart-popover>`), !document.body.contains(this.heatChartPopover) && this.heatChartPopover !== null && document.body.appendChild(this.heatChartPopover);
|
|
262
253
|
}
|
|
263
254
|
removeHeatChartDataPopover() {
|
|
264
255
|
this.heatChartPopover !== null && (this.heatChartPopover.open = !1, this.heatChartPopover = ae(this.heatChartPopover));
|
|
@@ -290,7 +281,7 @@ class se extends A {
|
|
|
290
281
|
manual: this._messages.classBreaksMethod?.manual,
|
|
291
282
|
naturalBreaks: this._messages.classBreaksMethod?.naturalBreaks,
|
|
292
283
|
quantile: this._messages.classBreaksMethod?.quantile
|
|
293
|
-
}, a = this.model.classificationMethod ? e[
|
|
284
|
+
}, a = this.model.classificationMethod ? e[L(this.model.classificationMethod)] ?? "" : "";
|
|
294
285
|
return i`<arcgis-charts-config-field-picker .label=${a} @click=${this.onClassBreakMethodSelect} ${c(this.classBreakMethodElement)}></arcgis-charts-config-field-picker>`;
|
|
295
286
|
}
|
|
296
287
|
renderColorRampSelect() {
|
|
@@ -305,18 +296,18 @@ class se extends A {
|
|
|
305
296
|
return i`<calcite-table caption="Simple table"><calcite-table-row slot=table-header><calcite-table-header .heading=${this._messages.symbol}></calcite-table-header><calcite-table-header .heading=${this._messages.upperValue}></calcite-table-header></calcite-table-row>${e.map((a) => i`<calcite-table-row><calcite-table-cell><calcite-swatch label scale=m .color=${`rgba(${a.symbol.color?.[0]}, ${a.symbol.color?.[1]}, ${a.symbol.color?.[2]}, ${a.symbol.color?.[3] / 255})`}></calcite-swatch></calcite-table-cell><calcite-table-cell>${a.label}</calcite-table-cell></calcite-table-row>`)}</calcite-table>`;
|
|
306
297
|
}
|
|
307
298
|
renderNullUI() {
|
|
308
|
-
const e = this.model.emptyCell, a = this._messages.null, t = e?.symbol?.color ?? T.grayColor, [
|
|
299
|
+
const e = this.model.emptyCell, a = this._messages.null, t = e?.symbol?.color ?? this.model.emptyCellSymbol?.color ?? T.grayColor, [l, g, f, y] = [...t], b = `rgba(${l},${g},${f},${y / 255})`;
|
|
309
300
|
return i`<calcite-list label class=${o(r.list)} selection-mode=none ${c(this.nullElement)}><calcite-list-item .label=${a} .value=${a} @calciteListItemSelect=${this.onNullSelect}><calcite-icon icon=square-f style=${B({ color: b })} slot=content-end></calcite-icon></calcite-list-item></calcite-list>`;
|
|
310
301
|
}
|
|
311
302
|
renderEmptyBins() {
|
|
312
303
|
return i`<calcite-radio-button-group name=empty-bins layout=vertical @calciteRadioButtonGroupChange=${this.onNullPolicyChange}><calcite-label layout=inline><calcite-radio-button .value=${h.Zero} .checked=${this.model.nullPolicy === h.Zero}></calcite-radio-button>${this._messages.treatAsZero}</calcite-label><calcite-label layout=inline><calcite-radio-button .value=${h.Null} .checked=${this.model.nullPolicy === h.Null}></calcite-radio-button>${this._messages.treatAsNull}</calcite-label></calcite-radio-button-group>`;
|
|
313
304
|
}
|
|
314
305
|
render() {
|
|
315
|
-
const e = this.renderXAxisFieldSelect(), a = this.renderAggregation(), t = this.renderNumericFieldsSelect(),
|
|
316
|
-
return i`<calcite-label class=${o(r.label)}>${this._messages.dateRequired}${e}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.calendarType}${
|
|
306
|
+
const e = this.renderXAxisFieldSelect(), a = this.renderAggregation(), t = this.renderNumericFieldsSelect(), l = this.renderCalendarTypeSelect(), g = this.renderClassBreakMethodSelect(), f = this.renderColorRampSelect(), y = this.renderClassBreaksTable(), b = this.renderNullUI(), P = this.renderEmptyBins();
|
|
307
|
+
return i`<calcite-label class=${o(r.label)}>${this._messages.dateRequired}${e}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.calendarType}${l}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.aggregation}${a}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.numericField}${t}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.method}${g}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.numberOfClasses}<calcite-input type=number .min=${d.min} .max=${d.max} .disabled=${this.model.classificationMethod === void 0 || this.model.classificationMethod === F.manual} step=1 .value=${q(this.model.breaksCount, 5)} @calciteInputInput=${this.onBreaksCountChange} ${c(this.breaksCountElement)}></calcite-input></calcite-label><calcite-label class=${o(r.label)}>${this._messages.colorScheme}${f}</calcite-label>${b}<calcite-accordion class=${o(r.accordion)} appearance=transparent selection-mode=single><calcite-accordion-item .heading=${this._messages.classBreaks}>${y}</calcite-accordion-item></calcite-accordion><calcite-label class=${o(r.label)}>${this._messages.emptyBins}${P}</calcite-label>${v(this.model) === k.YearByMonthAndDayOfMonth ? i`<calcite-label class=${o(r.label)} layout=inline-space-between>${this._messages.includeLeapDay}<calcite-switch .checked=${this.model.includeLeapDay} @calciteSwitchChange=${this.onIncludeLeapDayChange}></calcite-switch></calcite-label>` : null}`;
|
|
317
308
|
}
|
|
318
309
|
}
|
|
319
|
-
|
|
310
|
+
E("arcgis-charts-config-heat-chart-data", se);
|
|
320
311
|
export {
|
|
321
312
|
se as ArcgisChartsConfigHeatChartData
|
|
322
313
|
};
|
|
@@ -15,8 +15,8 @@ import { C as x, d as k } from "../../chunks/class-breaks.js";
|
|
|
15
15
|
import { d as E } from "../../chunks/rest-js-object-literals.js";
|
|
16
16
|
import { d as _, r as R, q as C } from "../../chunks/chart-object-literals.js";
|
|
17
17
|
import { e as N } from "../../chunks/popover-ui-utils.js";
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
18
|
+
import { I as B, r as M } from "../../chunks/index3.js";
|
|
19
|
+
import { aR as H, aQ as O } from "../../chunks/index.js";
|
|
20
20
|
const q = F`.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}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.panel{max-height:60vh}.color-ramp-popover{display:flex;flex-direction:column;gap:.75rem;min-width:320px;max-width:480px}.color-ramp-toolbar{display:flex;gap:.5rem;align-items:center;padding:5px 5px 0}.ramp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:.5rem;max-height:300px;overflow:auto;padding:.25rem}.ramp-item{display:flex;flex-direction:column;border:1px solid var(--calcite-color-foreground-3);background:var(--calcite-color-foreground-1);cursor:pointer;box-shadow:inset 0 0 0 1px transparent;transition:box-shadow .12s;border-radius:2px;min-height:56px;padding:4px}.ramp-item:hover{box-shadow:inset 0 0 0 1px var(--calcite-color-foreground-3)}.ramp-name{font-size:.625rem;line-height:1;padding:2px 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--calcite-color-text-3)}.ramp-item.selected{background-color:var(--calcite-color-brand)!important;border-color:var(--calcite-color-brand)!important;outline:2px solid var(--calcite-color-brand)!important;color:var(--calcite-color-foreground-1)}.ramp-item.selected .ramp-name{color:var(--calcite-color-foreground-1)}.ramp-item.selected .ramp-strip{box-shadow:none;border:none}.ramp-strips{display:flex;flex:1;height:28px;width:100%;overflow:hidden}.ramp-strip{flex:1;min-width:0}.ramp-strip-fallback{background:repeating-linear-gradient(45deg,var(--calcite-color-foreground-3) 0,var(--calcite-color-foreground-3) 5px,var(--calcite-color-foreground-2) 5px,var(--calcite-color-foreground-2) 10px)}.ramp-empty{grid-column:1/-1;font-size:.75rem;color:var(--calcite-color-text-3)}.panel-children-container{display:flex}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}.panel-children-container{padding:0 1rem;margin-top:1rem}.color-ramp-popover-footer{display:flex;padding:.5rem}.color-ramp-popover-footer calcite-button{flex:1}`, s = {
|
|
21
21
|
name: "bar-chart-data-popover",
|
|
22
22
|
header: "header",
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { c as l } from "../../chunks/runtime.js";
|
|
3
3
|
import { isEqual as r } from "es-toolkit/compat";
|
|
4
4
|
import { LitElement as n } from "@arcgis/lumina";
|
|
5
|
-
import { css as
|
|
5
|
+
import { css as h, html as i } from "lit";
|
|
6
6
|
import { C as o } from "../../chunks/interfaces.js";
|
|
7
|
-
import { i as
|
|
7
|
+
import { i as d, bI as c, bJ as m, be as f, cb as g, t as p } from "../../chunks/index.js";
|
|
8
8
|
import { i as u } from "../../chunks/type-guards.js";
|
|
9
|
-
const C =
|
|
9
|
+
const C = h`: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%}`;
|
|
10
10
|
class y extends n {
|
|
11
11
|
constructor() {
|
|
12
12
|
super(...arguments), this.onModelConfigChange = async (e) => {
|
|
@@ -35,7 +35,7 @@ class y extends n {
|
|
|
35
35
|
}
|
|
36
36
|
seriesColorChange(e) {
|
|
37
37
|
this.model.colorMatch && e?.forEach((a) => {
|
|
38
|
-
|
|
38
|
+
d(a) && e?.get(0) !== void 0 && !r(this.model.binSymbol, a) && (this.model.binSymbol = a);
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
async updateFetchLayerFieldsInfo(e) {
|
|
@@ -3,17 +3,17 @@ import { c as M } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { keyed as y } from "lit/directives/keyed.js";
|
|
4
4
|
import { debounce as f } from "es-toolkit/compat";
|
|
5
5
|
import { d, e as a, H as s } from "../../chunks/interfaces.js";
|
|
6
|
-
import { i as I, m as C, U as S, b as D, n as L, s as V, D as
|
|
7
|
-
import { d as
|
|
6
|
+
import { i as I, m as C, U as S, b as D, n as L, s as V, D as T } from "../../chunks/chart-ui-utils.js";
|
|
7
|
+
import { d as P, a as x } from "../../chunks/store.js";
|
|
8
8
|
import { u as N } from "../../chunks/useT9n.js";
|
|
9
9
|
import { css as F, html as c } from "lit";
|
|
10
10
|
import { createRef as b, ref as v } from "lit/directives/ref.js";
|
|
11
11
|
import { LitElement as B, createEvent as $, renderElement as _, safeStyleMap as O, safeClassMap as o } from "@arcgis/lumina";
|
|
12
|
-
import {
|
|
12
|
+
import { R as H, E as K } from "../../chunks/index3.js";
|
|
13
13
|
import { b as A } from "../../chunks/index2.js";
|
|
14
14
|
import { i as U } from "../../chunks/type-guards.js";
|
|
15
|
-
import { r as
|
|
16
|
-
import { b as
|
|
15
|
+
import { r as R } from "../../chunks/popover-ui-utils.js";
|
|
16
|
+
import { b as z } from "../../chunks/rest-js-object-literals.js";
|
|
17
17
|
import { s as u } from "../../chunks/chart-object-literals.js";
|
|
18
18
|
const l = {
|
|
19
19
|
label: "label",
|
|
@@ -48,7 +48,7 @@ class q extends B {
|
|
|
48
48
|
try {
|
|
49
49
|
if (e.detail !== null && e.detail !== void 0) {
|
|
50
50
|
const { contentKind: t } = e.detail, { value: i } = e.detail;
|
|
51
|
-
switch (
|
|
51
|
+
switch (P(x), t) {
|
|
52
52
|
case d.transformation:
|
|
53
53
|
this.model.dataTransformationType = i ?? u.None;
|
|
54
54
|
break;
|
|
@@ -110,7 +110,7 @@ class q extends B {
|
|
|
110
110
|
t?.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange), e?.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
111
111
|
}
|
|
112
112
|
removeHistogramDataPopover() {
|
|
113
|
-
this.histogramPopover !== null && (this.histogramPopover =
|
|
113
|
+
this.histogramPopover !== null && (this.histogramPopover = R(this.histogramPopover));
|
|
114
114
|
}
|
|
115
115
|
getDataTransformationLabel() {
|
|
116
116
|
let e;
|
|
@@ -164,7 +164,7 @@ class q extends B {
|
|
|
164
164
|
t = void 0;
|
|
165
165
|
break;
|
|
166
166
|
}
|
|
167
|
-
return L(t,
|
|
167
|
+
return L(t, T);
|
|
168
168
|
}
|
|
169
169
|
binCountChange(e) {
|
|
170
170
|
const t = Number.parseInt(e);
|
|
@@ -174,7 +174,7 @@ class q extends B {
|
|
|
174
174
|
}));
|
|
175
175
|
}
|
|
176
176
|
onColorElementSelect(e, t, i) {
|
|
177
|
-
this.binColorSelected = i === void 0, e.type ===
|
|
177
|
+
this.binColorSelected = i === void 0, e.type === z.SFS ? (this.selectedOverlaySymbol = void 0, this.selectedBinColorSymbol = e, this.contentKind = d.fillSymbol) : (this.selectedBinColorSymbol = void 0, this.selectedOverlaySymbol = e, this.overlaySectionElement = i, this.contentKind = d.lineSymbol), this.popoverHeading = t, this.setupPopover();
|
|
178
178
|
}
|
|
179
179
|
onNumericFieldSelect(e) {
|
|
180
180
|
e.stopImmediatePropagation(), this.selectedNumericalField = this.model.numericField, this.contentKind = d.numericFields, this.setupPopover();
|
|
@@ -11,7 +11,7 @@ import { b as $ } from "../../chunks/rest-js-object-literals.js";
|
|
|
11
11
|
import { s } from "../../chunks/chart-object-literals.js";
|
|
12
12
|
import { e as P } from "../../chunks/popover-ui-utils.js";
|
|
13
13
|
import { b as S } from "../../chunks/index2.js";
|
|
14
|
-
import {
|
|
14
|
+
import { aQ as k } from "../../chunks/index.js";
|
|
15
15
|
import { r as T } from "../../chunks/index3.js";
|
|
16
16
|
const l = {
|
|
17
17
|
symbolPropertyPopover: "symbol-property-popover",
|
|
@@ -4,7 +4,7 @@ import { isEqual as a } from "es-toolkit/compat";
|
|
|
4
4
|
import { LitElement as n, createEvent as d } from "@arcgis/lumina";
|
|
5
5
|
import { css as h, html as o } from "lit";
|
|
6
6
|
import { C as s } from "../../chunks/interfaces.js";
|
|
7
|
-
import {
|
|
7
|
+
import { bI as c, bJ as m, t as f, aQ as g, aR as p } from "../../chunks/index.js";
|
|
8
8
|
const u = h`: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 C extends n {
|
|
10
10
|
constructor() {
|
|
@@ -10,9 +10,9 @@ import { d as p, a as c, r as C, b as T } from "../../chunks/store.js";
|
|
|
10
10
|
import { isEqual as S } from "es-toolkit/compat";
|
|
11
11
|
import { x as E } from "../../chunks/data.js";
|
|
12
12
|
import { d, e as y, h as g } from "../../chunks/chart-object-literals.js";
|
|
13
|
-
import {
|
|
13
|
+
import { I as L, J as P } from "../../chunks/index3.js";
|
|
14
14
|
import { b, p as w } from "../../chunks/index2.js";
|
|
15
|
-
import { r as $,
|
|
15
|
+
import { r as $, aR as _ } from "../../chunks/index.js";
|
|
16
16
|
import { r as N } from "../../chunks/popover-ui-utils.js";
|
|
17
17
|
const D = k`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin);margin-top:var(--arcgis-charts-top-section-margin)}.label,.disabled-label{display:flex;margin-left:.5rem;margin-right:.5rem;margin-bottom:.5rem;justify-content:space-between}.time-binning-header{display:flex;font-weight:700;margin-left:.5rem;margin-right:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:auto}.disabled-label{pointer-events:none}.fab{display:flex;margin-left:.5rem;margin-right:.5rem;margin-bottom:1.5rem;justify-content:center}.link-container{display:flex;justify-content:flex-end}`, n = {
|
|
18
18
|
label: "label",
|
|
@@ -12,10 +12,10 @@ import { c as $, b as F, e as d, f as I, s as T } from "../../chunks/chart-ui-ut
|
|
|
12
12
|
import { d as x } from "../../chunks/rest-js-object-literals.js";
|
|
13
13
|
import { b as g, e as c } from "../../chunks/chart-object-literals.js";
|
|
14
14
|
import { e as A, p as D } from "../../chunks/popover-ui-utils.js";
|
|
15
|
-
import {
|
|
15
|
+
import { I as E, J as S } from "../../chunks/index3.js";
|
|
16
16
|
import { b as z, p as w } from "../../chunks/index2.js";
|
|
17
|
-
import {
|
|
18
|
-
const
|
|
17
|
+
import { bH as N, aQ as L, aR as K, a_ as B } from "../../chunks/index.js";
|
|
18
|
+
const _ = P`.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)}calcite-panel{max-height:60vh}calcite-panel .size-section{width:19rem;margin:1rem 0;display:flex;flex-wrap:wrap;justify-content:space-evenly}calcite-panel .size-section calcite-label{width:8rem;margin-bottom:.25rem}calcite-panel .apply-button{width:17rem}`, r = {
|
|
19
19
|
name: "line-chart-data-popover",
|
|
20
20
|
header: "header",
|
|
21
21
|
fab: "fab",
|
|
@@ -23,7 +23,7 @@ const H = P`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.a
|
|
|
23
23
|
sizeSection: "size-section",
|
|
24
24
|
applyButton: "apply-button"
|
|
25
25
|
};
|
|
26
|
-
class
|
|
26
|
+
class H extends k {
|
|
27
27
|
constructor() {
|
|
28
28
|
super(...arguments), this._messages = C(), this.commonStrings = C({ name: "common", blocking: !0 }), this.picklist = h(), this.intervalSizeElement = h(), this.intervalTypeElement = h(), this.popoverElement = h(), this.placement = "leading", this.offsetDistance = -200, this.pickListHasChanged = !1, this.open = !1, this.layerFieldsInfo = [], this.arcgisChartsConfigLineChartDataPopoverChange = v(), this.arcgisChartsConfigLineChartPopoverClose = v();
|
|
29
29
|
}
|
|
@@ -31,7 +31,7 @@ class _ extends k {
|
|
|
31
31
|
this.properties = { aggregationLabels: 16, timeAggregationLabels: 16, messageOverrides: 0, headingTitle: 1, referenceElement: 0, open: 5, contentKind: 1, layerFieldsInfo: 0, selectedContent: 1 };
|
|
32
32
|
}
|
|
33
33
|
static {
|
|
34
|
-
this.styles =
|
|
34
|
+
this.styles = _;
|
|
35
35
|
}
|
|
36
36
|
async reposition() {
|
|
37
37
|
await this.popoverElement.value?.reposition();
|
|
@@ -183,7 +183,7 @@ class _ extends k {
|
|
|
183
183
|
return this.contentKind === a.numericFields && (e = n`<div slot=footer><calcite-fab class=${o(r.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>`), n`<div><calcite-popover class=${o(r.name)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} @calcitePopoverClose=${this.closePopover} .open=${this.open} label auto-close ${p(this.popoverElement)}><calcite-panel closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${o(r.header)}>${this.headingTitle ?? ""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`;
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
-
y("arcgis-charts-config-line-chart-popover",
|
|
186
|
+
y("arcgis-charts-config-line-chart-popover", H);
|
|
187
187
|
export {
|
|
188
|
-
|
|
188
|
+
H as ArcgisChartsConfigLineChartPopover
|
|
189
189
|
};
|
|
@@ -4,7 +4,7 @@ import { isEqual as n, cloneDeep as h } from "es-toolkit/compat";
|
|
|
4
4
|
import { LitElement as C, createEvent as m } from "@arcgis/lumina";
|
|
5
5
|
import { css as y, html as c } from "lit";
|
|
6
6
|
import { C as d } from "../../chunks/interfaces.js";
|
|
7
|
-
import {
|
|
7
|
+
import { bI as I, bJ as F, t as v } from "../../chunks/index.js";
|
|
8
8
|
import { b } from "../../chunks/rest-js-object-literals.js";
|
|
9
9
|
const S = y`: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%}`;
|
|
10
10
|
class L extends C {
|
|
@@ -10,9 +10,9 @@ import { css as L, html as n } from "lit";
|
|
|
10
10
|
import { createRef as C, ref as m } from "lit/directives/ref.js";
|
|
11
11
|
import { LitElement as y, createEvent as b, safeClassMap as l } from "@arcgis/lumina";
|
|
12
12
|
import { e as F, p as I } from "../../chunks/popover-ui-utils.js";
|
|
13
|
-
import {
|
|
13
|
+
import { I as D } from "../../chunks/index3.js";
|
|
14
14
|
import { b as x } from "../../chunks/index2.js";
|
|
15
|
-
import {
|
|
15
|
+
import { bH as S, aQ as T } from "../../chunks/index.js";
|
|
16
16
|
import { d as E } from "../../chunks/rest-js-object-literals.js";
|
|
17
17
|
import { a as r } from "../../chunks/common.js";
|
|
18
18
|
const s = {
|