@arcgis/charts-components 5.2.0-next.10 → 5.2.0-next.12
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/26ESJ72L.js +2 -0
- package/dist/cdn/{2XYTPC2V.js → 2PFDGKA5.js} +1 -1
- package/dist/cdn/3MKY6UCO.js +2 -0
- package/dist/cdn/3SBYV6BW.js +2 -0
- package/dist/cdn/{4ETF22K6.js → 3T4NYRGX.js} +1 -1
- package/dist/cdn/{LOZOENFC.js → 3TBK72EK.js} +1 -1
- package/dist/cdn/3UFVHYX5.js +2 -0
- package/dist/cdn/{NKJC4MT7.js → 4LQHAOMY.js} +1 -1
- package/dist/cdn/5BADQJ64.js +2 -0
- package/dist/cdn/{CEE2QRZ5.js → 5F5N7ZZ6.js} +1 -1
- package/dist/cdn/{QM27URJR.js → 5PKMZMGG.js} +1 -1
- package/dist/cdn/{PZKRRAXW.js → 624WBDC3.js} +1 -1
- package/dist/cdn/{7EEYYP6X.js → 66GCPNDR.js} +1 -1
- package/dist/cdn/{5V3ADOWS.js → 6VVUN6AX.js} +1 -1
- package/dist/cdn/73JQ2I2Q.js +3 -0
- package/dist/cdn/7HUD5SQI.js +2 -0
- package/dist/cdn/A636YSNA.js +2 -0
- package/dist/cdn/AIFWLINL.js +2 -0
- package/dist/cdn/AQIB3VEP.js +2 -0
- package/dist/cdn/{BBURKBKE.js → AZY72Q7D.js} +1 -1
- package/dist/cdn/BJYCLLJL.js +2 -0
- package/dist/cdn/BXJZ4YYQ.js +2 -0
- package/dist/cdn/CRCAJAFA.js +2 -0
- package/dist/cdn/{F7Q3XDZH.js → CTE365PT.js} +1 -1
- package/dist/cdn/{PRPNJEPZ.js → CVF3NLTS.js} +1 -1
- package/dist/cdn/{RH4AC577.js → DKRPN24O.js} +1 -1
- package/dist/cdn/{M6JCOZIE.js → DL6PRHZT.js} +1 -1
- package/dist/cdn/{2PAVNZEM.js → DOVGECFB.js} +1 -1
- package/dist/cdn/DYNPQ2KT.js +2 -0
- package/dist/cdn/{SYIW6YJN.js → ECICE4SU.js} +1 -1
- package/dist/cdn/{GNC62GNV.js → EEFS6HU7.js} +1 -1
- package/dist/cdn/{2A7JZQX5.js → EYF75TH5.js} +1 -1
- package/dist/cdn/{H4B3ERFL.js → EYYQKOXI.js} +1 -1
- package/dist/cdn/{VMS7DT3M.js → GHLJNZ27.js} +1 -1
- package/dist/cdn/{XUT56VH6.js → HQONJQEW.js} +1 -1
- package/dist/cdn/{Z4HCNLCD.js → IBKS2NZ3.js} +1 -1
- package/dist/cdn/IDHDU3DJ.js +2 -0
- package/dist/cdn/{SPVZ5BND.js → IHHPUKGG.js} +1 -1
- package/dist/cdn/{QF4UBQYT.js → IM5PHXV3.js} +1 -1
- package/dist/cdn/ISSVKLHV.js +2 -0
- package/dist/cdn/{Z5VVIVR3.js → IYP3GZSC.js} +1 -1
- package/dist/cdn/{25YAWDIB.js → J2HYDDIW.js} +1 -1
- package/dist/cdn/{WBJ6NWHX.js → J47CNZCT.js} +1 -1
- package/dist/cdn/{PM6FCUUV.js → JHANH4UG.js} +1 -1
- package/dist/cdn/{CBHWMUGA.js → JKTF2L3L.js} +21 -21
- package/dist/cdn/JLWDVTJW.js +2 -0
- package/dist/cdn/JQX5EJZV.js +2 -0
- package/dist/cdn/{QF6LHQTR.js → K2P5RSE5.js} +1 -1
- package/dist/cdn/{ZIVPZF6E.js → KJPXY6NE.js} +1 -1
- package/dist/cdn/{3376CR53.js → KL33ETQG.js} +1 -1
- package/dist/cdn/{YDJPGFXU.js → KUUBYC33.js} +1 -1
- package/dist/cdn/{ICVAXCHZ.js → KZTGYTHS.js} +1 -1
- package/dist/cdn/{6SRJ2VKV.js → LA7COTN7.js} +1 -1
- package/dist/cdn/{HD4FP3ZK.js → LJDGLKFL.js} +1 -1
- package/dist/cdn/LL757OZ7.js +2 -0
- package/dist/cdn/{FTOYQNHN.js → LU5S2VRK.js} +1 -1
- package/dist/cdn/{NFANBMTU.js → MGMUUWSP.js} +1 -1
- package/dist/cdn/{LIPUN4CH.js → MPSRB65O.js} +1 -1
- package/dist/cdn/{OYCT7CFU.js → N5ZIF7M4.js} +1 -1
- package/dist/cdn/NVEIMJJ7.js +2 -0
- package/dist/cdn/{255TSQSE.js → O363DXQ4.js} +6 -6
- package/dist/cdn/O533LNDP.js +2 -0
- package/dist/cdn/ODWDODUY.js +2 -0
- package/dist/cdn/{N7NZHIGS.js → OEOAL6JO.js} +1 -1
- package/dist/cdn/{IHTJSWKK.js → PGHVUDMJ.js} +1 -1
- package/dist/cdn/{YSWV4FZE.js → PGWOWXHQ.js} +1 -1
- package/dist/cdn/{L6ZALCLC.js → PIONRTCB.js} +1 -1
- package/dist/cdn/{CSAUXIK2.js → QNT6HTFC.js} +1 -1
- package/dist/cdn/QSBAOCG4.js +2 -0
- package/dist/cdn/{KB76VF4V.js → QT3VTHUJ.js} +1 -1
- package/dist/cdn/{CHQDKVVQ.js → RIM4HLHN.js} +1 -1
- package/dist/cdn/{4J6UFQ2Q.js → RJSCJBFO.js} +1 -1
- package/dist/cdn/{GXC7VLYM.js → RMBD6ZSC.js} +1 -1
- package/dist/cdn/RMHGA6AU.js +2 -0
- package/dist/cdn/{KHNP4LWB.js → S5EYODWJ.js} +1 -1
- package/dist/cdn/S7Z4HRW7.js +2 -0
- package/dist/cdn/{RA3CZHC7.js → SMCXHMTP.js} +1 -1
- package/dist/cdn/{KKKCWW6G.js → SN2GPX3I.js} +1 -1
- package/dist/cdn/SNMFJ4CN.js +2 -0
- package/dist/cdn/{GBDEYCR6.js → SOOQD5FC.js} +1 -1
- package/dist/cdn/T2SFRF7I.js +2 -0
- package/dist/cdn/{5OKNLDIJ.js → TCS4HOSG.js} +1 -1
- package/dist/cdn/U7TKKTUC.js +2 -0
- package/dist/cdn/{TH4OHGTQ.js → V2UF2WVE.js} +1 -1
- package/dist/cdn/{XWZYTOHY.js → VFUFK3UT.js} +1 -1
- package/dist/cdn/VP42WLDX.js +2 -0
- package/dist/cdn/W4XQNHSD.js +4 -0
- package/dist/cdn/{LO6KKSE4.js → W55GZOYQ.js} +1 -1
- package/dist/cdn/{IKCVYV5L.js → WMXNQ5XH.js} +1 -1
- package/dist/cdn/WVV5DAII.js +2 -0
- package/dist/cdn/{3S3PN7AK.js → X5PNAE7T.js} +1 -1
- package/dist/cdn/XRLVJJBT.js +2 -0
- package/dist/cdn/{VW4GW2JT.js → YBN53S4C.js} +1 -1
- package/dist/cdn/{CDHUW42P.js → YCJIOFQR.js} +1 -1
- package/dist/cdn/{SZEYHOGG.js → Z2UG6CUL.js} +1 -1
- package/dist/cdn/{I5AALJRN.js → ZFK3D55V.js} +1 -1
- package/dist/cdn/ZP22BN3G.js +2 -0
- package/dist/cdn/ZW4PF3UK.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/data.js +68 -68
- package/dist/chunks/index2.js +218 -210
- package/dist/chunks/index3.js +1 -0
- package/dist/chunks/index4.js +21 -14
- package/dist/chunks/pie-chart-data.js +42 -36
- package/dist/chunks/pie-chart-model.js +175 -162
- package/dist/chunks/serial-chart-data.js +588 -569
- package/dist/chunks/time-zone.js +1 -1
- package/dist/chunks/web-component-utils.js +529 -508
- package/dist/components/arcgis-chart/customElement.d.ts +1 -1
- package/dist/components/arcgis-chart/customElement.js +4512 -4434
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +34 -36
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +28 -28
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +5 -8
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +34 -35
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +14 -17
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +14 -16
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +11 -11
- package/dist/components/arcgis-charts-config-format/customElement.js +25 -25
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +7 -10
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +8 -11
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +13 -14
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +25 -26
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +28 -30
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +4 -5
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +49 -56
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +37 -39
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +5 -8
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +11 -12
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +8 -10
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/json-schema/index.d.ts +9 -2
- package/dist/model/interfaces/common.d.ts +0 -2
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +2 -0
- package/dist/spec/rest-js-types.d.ts +22 -8
- package/dist/spec/web-chart.d.ts +2 -2
- package/dist/utils/chart-config/converter/index.js +264 -264
- package/dist/utils/chart-config/utils/index.d.ts +1 -0
- package/dist/utils/chart-config/validator/interfaces.d.ts +1 -3
- package/dist/utils/errors/index.d.ts +1 -1
- package/dist/utils/layer/inline-conversion/index.d.ts +0 -3
- package/dist/utils/layer/inline-conversion/interfaces.d.ts +0 -2
- package/dist/utils/misc/index.d.ts +2 -3
- package/dist/utils/types/index.d.ts +1 -5
- package/package.json +3 -3
- package/dist/cdn/2HTYRBIX.js +0 -2
- package/dist/cdn/3CFZUVMF.js +0 -2
- package/dist/cdn/3W2A4SAP.js +0 -2
- package/dist/cdn/4YJSRB7R.js +0 -2
- package/dist/cdn/5JNEJJU3.js +0 -2
- package/dist/cdn/6MF2R6DJ.js +0 -2
- package/dist/cdn/BER7FMK3.js +0 -2
- package/dist/cdn/BJRHNVLR.js +0 -2
- package/dist/cdn/CGYB5KPV.js +0 -2
- package/dist/cdn/DJ5OHPYW.js +0 -2
- package/dist/cdn/EK33HUAH.js +0 -2
- package/dist/cdn/GKPMAFU3.js +0 -2
- package/dist/cdn/HFJ4EPET.js +0 -2
- package/dist/cdn/JEH22SPH.js +0 -2
- package/dist/cdn/JMAVBKEZ.js +0 -2
- package/dist/cdn/JNNB2DIA.js +0 -2
- package/dist/cdn/JQYB4ZDY.js +0 -2
- package/dist/cdn/PJZVDHIF.js +0 -2
- package/dist/cdn/PNDFAGEB.js +0 -2
- package/dist/cdn/QAIY4AMN.js +0 -2
- package/dist/cdn/SHTFWNG3.js +0 -2
- package/dist/cdn/SXT5DNXJ.js +0 -4
- package/dist/cdn/U4COKMGA.js +0 -2
- package/dist/cdn/U6USPTQ5.js +0 -2
- package/dist/cdn/UHPAFBYO.js +0 -2
- package/dist/cdn/VL2G5M57.js +0 -2
- package/dist/cdn/VOTZAPI3.js +0 -2
- package/dist/cdn/VSPTNIIU.js +0 -2
- package/dist/cdn/X4BYDZDR.js +0 -2
- package/dist/cdn/XACXJMSF.js +0 -3
- package/dist/cdn/XJ2L7VN4.js +0 -2
- package/dist/cdn/XP5GZU4O.js +0 -2
- package/dist/cdn/XXXXO6OB.js +0 -2
- package/dist/cdn/YXWIKYN4.js +0 -2
|
@@ -5,15 +5,14 @@ import { m as h, U as s } from "../../chunks/chart-ui-utils2.js";
|
|
|
5
5
|
import { u as m } from "../../chunks/useT9n.js";
|
|
6
6
|
import { css as p, html as d } from "lit";
|
|
7
7
|
import { createRef as n, ref as l } from "lit/directives/ref.js";
|
|
8
|
-
import { LitElement as
|
|
9
|
-
import { e as
|
|
10
|
-
const
|
|
11
|
-
jsAppFlyout: "js-app-flyout",
|
|
8
|
+
import { LitElement as g, createEvent as r, safeClassMap as t } from "@arcgis/lumina";
|
|
9
|
+
import { e as v } from "../../chunks/popover-ui-utils.js";
|
|
10
|
+
const a = {
|
|
12
11
|
chartRenameComponent: "chart-rename-component",
|
|
13
12
|
renameLabelContainer: "rename-label-container",
|
|
14
13
|
renamePanel: "rename-panel"
|
|
15
|
-
},
|
|
16
|
-
class C extends
|
|
14
|
+
}, u = 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)}.chart-rename-component{width:var(--arcgis-charts-config-panel-width-medium);height:var(--arcgis-charts-config-panel-height)}:host{overflow-y:auto;width:min-content}.rename-label-container{display:flex;padding:0 1rem;margin-top:1rem}.rename-label-container calcite-label{flex:1 1 0px;display:flex;width:0px}.rename-panel{width:calc(var(--calcite-panel-width-multiplier) * 20vw);max-width:calc(var(--calcite-panel-width-multiplier) * 420px);min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}`;
|
|
15
|
+
class C extends g {
|
|
17
16
|
constructor() {
|
|
18
17
|
super(...arguments), this._messages = m(), this.characterLimitInputElement = n(), this.popoverElement = n(), this.isChartTitleInvalid = !1, this.changedName = "", this.name = "", this.open = !1, this.arcgisChartsConfigChartRenamePopoverChange = r(), this.arcgisChartsConfigPopoverClose = r();
|
|
19
18
|
}
|
|
@@ -21,19 +20,19 @@ class C extends u {
|
|
|
21
20
|
this.properties = { isChartTitleInvalid: 16, changedName: 16, messageOverrides: 0, name: 1, open: 5, referenceElement: 0 };
|
|
22
21
|
}
|
|
23
22
|
static {
|
|
24
|
-
this.styles =
|
|
23
|
+
this.styles = u;
|
|
25
24
|
}
|
|
26
25
|
async reposition() {
|
|
27
26
|
await this.popoverElement.value?.reposition();
|
|
28
27
|
}
|
|
29
|
-
willUpdate(
|
|
30
|
-
|
|
28
|
+
willUpdate(e) {
|
|
29
|
+
e.has("name") && (this.changedName = this.name);
|
|
31
30
|
}
|
|
32
31
|
updated() {
|
|
33
|
-
this.popoverElement.value?.reposition(),
|
|
32
|
+
this.popoverElement.value?.reposition(), v(this.popoverElement.value, this.open);
|
|
34
33
|
}
|
|
35
|
-
onNameChange(
|
|
36
|
-
const i =
|
|
34
|
+
onNameChange(e) {
|
|
35
|
+
const i = e.target.value;
|
|
37
36
|
this.changedName = i, this.isChartTitleInvalid = c(i.trim()), this.characterLimitInputElement.value && h({
|
|
38
37
|
inputElement: this.characterLimitInputElement.value,
|
|
39
38
|
status: this.isChartTitleInvalid ? s.INVALID : s.IDLE
|
|
@@ -49,10 +48,9 @@ class C extends u {
|
|
|
49
48
|
this.changedName = this.name, this.open = !1, this.arcgisChartsConfigPopoverClose.emit();
|
|
50
49
|
}
|
|
51
50
|
render() {
|
|
52
|
-
return d`<div class=${
|
|
53
|
-
[
|
|
54
|
-
|
|
55
|
-
})}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} @calcitePopoverClose=${this.popoverClose} .open=${this.open} placement=bottom label auto-close ${l(this.popoverElement)}><calcite-panel class=${a(e.renamePanel)} closable .closed=${!this.open} @calcitePanelClose=${this.popoverClose} .heading=${this._messages.renameChart}><div class=${a(e.renameLabelContainer)}><calcite-label>${this._messages.chartName}<calcite-input required type=text .value=${this.changedName} @calciteInputInput=${this.onNameChange} ${l(this.characterLimitInputElement)}></calcite-input><arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.emptyChartTitle} .isInvalid=${this.isChartTitleInvalid}></arcgis-charts-config-invalid-input-message></calcite-label></div><calcite-button slot=footer appearance=solid scale=m width=half @click=${this.onSubmitClick}>${this._messages.submit}</calcite-button><calcite-button slot=footer appearance=outline-fill scale=m width=half @click=${this.onCancelClick}>${this._messages.cancel}</calcite-button></calcite-panel></calcite-popover></div>`;
|
|
51
|
+
return d`<div class=${t({
|
|
52
|
+
[a.chartRenameComponent]: !0
|
|
53
|
+
})}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} @calcitePopoverClose=${this.popoverClose} .open=${this.open} placement=bottom label auto-close ${l(this.popoverElement)}><calcite-panel class=${t(a.renamePanel)} closable .closed=${!this.open} @calcitePanelClose=${this.popoverClose} .heading=${this._messages.renameChart}><div class=${t(a.renameLabelContainer)}><calcite-label>${this._messages.chartName}<calcite-input required type=text .value=${this.changedName} @calciteInputInput=${this.onNameChange} ${l(this.characterLimitInputElement)}></calcite-input><arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.emptyChartTitle} .isInvalid=${this.isChartTitleInvalid}></arcgis-charts-config-invalid-input-message></calcite-label></div><calcite-button slot=footer appearance=solid scale=m width=half @click=${this.onSubmitClick}>${this._messages.submit}</calcite-button><calcite-button slot=footer appearance=outline-fill scale=m width=half @click=${this.onCancelClick}>${this._messages.cancel}</calcite-button></calcite-panel></calcite-popover></div>`;
|
|
56
54
|
}
|
|
57
55
|
}
|
|
58
56
|
o("arcgis-charts-config-chart-rename-popover", C);
|
|
@@ -4,18 +4,18 @@ import { repeat as U } from "lit/directives/repeat.js";
|
|
|
4
4
|
import { keyed as b } from "lit/directives/keyed.js";
|
|
5
5
|
import { createModel as R } from "../../model/shared/setup-utils.js";
|
|
6
6
|
import { g as S, i as T, u as _, k as v, m as I } from "../../chunks/type-guards2.js";
|
|
7
|
-
import { i as
|
|
8
|
-
import { substitute as
|
|
7
|
+
import { i as z } from "../../chunks/rotated-state.js";
|
|
8
|
+
import { substitute as H } from "@arcgis/core/intl.js";
|
|
9
9
|
import { C as n } from "../../chunks/interfaces.js";
|
|
10
10
|
import { isEqual as D } from "lodash-es";
|
|
11
11
|
import { i as F } from "../../chunks/index4.js";
|
|
12
|
-
import { D as
|
|
12
|
+
import { D as k, w as E, F as O } from "../../chunks/index3.js";
|
|
13
13
|
import { LitElement as W, createEvent as f, renderElement as L, safeStyleMap as Z, safeClassMap as d } from "@arcgis/lumina";
|
|
14
14
|
import { css as G, html as h } from "lit";
|
|
15
15
|
import { createRef as X, ref as K } from "lit/directives/ref.js";
|
|
16
16
|
import { u as P } from "../../chunks/useT9n.js";
|
|
17
17
|
import { c as j, a as x, g as q } from "../../chunks/store.js";
|
|
18
|
-
import {
|
|
18
|
+
import { d2 as Y, _ as Q, d3 as J, K as ee, bZ as te } from "../../chunks/index2.js";
|
|
19
19
|
import { A as ae } from "../../chunks/axis-model-wrapper.js";
|
|
20
20
|
import { h as ie, f as y } from "../../chunks/web-component-utils.js";
|
|
21
21
|
import { a as se } from "../../chunks/chart-ui-utils2.js";
|
|
@@ -38,7 +38,7 @@ function w(m, e) {
|
|
|
38
38
|
}), t;
|
|
39
39
|
}
|
|
40
40
|
function ne(m, e, i) {
|
|
41
|
-
return m?.filter((t) =>
|
|
41
|
+
return m?.filter((t) => E(i, t.config) && t.layer?.id === e) ?? [];
|
|
42
42
|
}
|
|
43
43
|
function ce(m) {
|
|
44
44
|
const { modelList: e, layerList: i, activeLayerId: t, disableEditing: a } = m, s = /* @__PURE__ */ new Map();
|
|
@@ -73,14 +73,14 @@ function pe(m, e) {
|
|
|
73
73
|
const i = m;
|
|
74
74
|
if (i) {
|
|
75
75
|
let t = [...i.charts ?? []];
|
|
76
|
-
t =
|
|
76
|
+
t = k({
|
|
77
77
|
arrayA: t,
|
|
78
78
|
arrayB: e.map((a) => a.config),
|
|
79
79
|
getKey: (a) => a.id ?? a.title?.content.text ?? ""
|
|
80
80
|
}), i.charts = t;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
const me = G
|
|
83
|
+
const me = G`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;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 ue extends W {
|
|
85
85
|
constructor() {
|
|
86
86
|
super(), this.selectChartTypePopover = null, this.chartsListFlowItem = X(), this.supportedChartTypes = [
|
|
@@ -155,7 +155,7 @@ class ue extends W {
|
|
|
155
155
|
if (r)
|
|
156
156
|
switch (t) {
|
|
157
157
|
case "rotation":
|
|
158
|
-
typeof a == "boolean" &&
|
|
158
|
+
typeof a == "boolean" && z(r) && (r.rotated = a);
|
|
159
159
|
break;
|
|
160
160
|
case "legendPosition":
|
|
161
161
|
typeof a == "string" && v(r) && (r.legendPosition = a);
|
|
@@ -207,7 +207,7 @@ class ue extends W {
|
|
|
207
207
|
}
|
|
208
208
|
modelListReorderChangeListener(e) {
|
|
209
209
|
const { modelList: i } = e.detail;
|
|
210
|
-
if (this.modelList =
|
|
210
|
+
if (this.modelList = k({
|
|
211
211
|
arrayA: this.modelList,
|
|
212
212
|
arrayB: i,
|
|
213
213
|
getKey: (t) => t.chartId ?? t.titleText ?? ""
|
|
@@ -311,7 +311,7 @@ class ue extends W {
|
|
|
311
311
|
}
|
|
312
312
|
getPlacement() {
|
|
313
313
|
let e;
|
|
314
|
-
return this.popoverPlacement !== void 0 ? e = this.popoverPlacement : e = this.modelList?.filter((a) =>
|
|
314
|
+
return this.popoverPlacement !== void 0 ? e = this.popoverPlacement : e = this.modelList?.filter((a) => E(J, a.config)).length <= 2 ? "bottom" : "top", e;
|
|
315
315
|
}
|
|
316
316
|
onBackFlow() {
|
|
317
317
|
this.panelNumber -= 1;
|
|
@@ -410,7 +410,7 @@ class ue extends W {
|
|
|
410
410
|
}
|
|
411
411
|
renderTabs() {
|
|
412
412
|
const e = this.getModel(this.selectedChartId);
|
|
413
|
-
return b("chart-edit", h`<calcite-flow-item .selected=${this.panelNumber >= 1 && !this.disableEditing} @calciteFlowItemBack=${this.onBackFlow} .heading=${this._messages[this.selectedPanel ?? n.Data]} .description=${this.currentChartTypeText !== "" && this._messages.pageFlowTitle !== void 0 ?
|
|
413
|
+
return b("chart-edit", h`<calcite-flow-item .selected=${this.panelNumber >= 1 && !this.disableEditing} @calciteFlowItemBack=${this.onBackFlow} .heading=${this._messages[this.selectedPanel ?? n.Data]} .description=${this.currentChartTypeText !== "" && this._messages.pageFlowTitle !== void 0 ? H(this._messages.pageFlowTitle, {
|
|
414
414
|
chartName: e?.titleText ?? this.currentChartTypeText,
|
|
415
415
|
layerName: e?.layer?.title ?? ""
|
|
416
416
|
}) : ""}>${e?.chartType !== void 0 ? h`<calcite-action-bar class=${d(p.tabBar)} layout=horizontal expand-disabled><calcite-action class=${d(p.tab)} icon=configure scale=s alignment=center .active=${this.selectedPanel === n.Data || this.selectedPanel === void 0} @click=${() => {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as M } from "../../chunks/runtime.js";
|
|
3
3
|
import { ref as B } from "lit/directives/ref.js";
|
|
4
|
-
import { s as S, m as
|
|
4
|
+
import { s as S, m as d, k as h, j as T, e as V, u as w } from "../../chunks/type-guards2.js";
|
|
5
5
|
import { i as L } from "../../chunks/data-labels-symbol.js";
|
|
6
6
|
import { i as P, a as C, b as E } from "../../chunks/axis-lines-symbol.js";
|
|
7
7
|
import { isEmpty as f, cloneDeep as a, isArray as F, isObject as A, mergeWith as G } from "lodash-es";
|
|
8
8
|
import { h as W } from "../../chunks/chart-ui-utils2.js";
|
|
9
9
|
import { g as D, i as b } from "../../chunks/rest-js-object-literals.js";
|
|
10
10
|
import { u as N } from "../../chunks/useT9n.js";
|
|
11
|
-
import { css as
|
|
12
|
-
import { LitElement as
|
|
13
|
-
import { C as
|
|
11
|
+
import { css as z, html as u } from "lit";
|
|
12
|
+
import { LitElement as H, renderElement as j, safeClassMap as p } from "@arcgis/lumina";
|
|
13
|
+
import { C as I, F as i, L as n } from "../../chunks/common.js";
|
|
14
14
|
import { q as x, x as l } from "../../chunks/index5.js";
|
|
15
15
|
import { r as $ } from "../../chunks/popover-ui-utils.js";
|
|
16
16
|
import { u as r } from "../../chunks/chart-object-literals.js";
|
|
@@ -33,8 +33,8 @@ const v = {
|
|
|
33
33
|
element: "chart-element",
|
|
34
34
|
elementList: "element-list",
|
|
35
35
|
sectionLabel: "section-label"
|
|
36
|
-
},
|
|
37
|
-
class
|
|
36
|
+
}, 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}`;
|
|
37
|
+
class R extends H {
|
|
38
38
|
constructor() {
|
|
39
39
|
super(...arguments), this._messages = N(), this.formatPopover = null, this.selectableElements = [], this.textProperties = [], this.symbolProperties = [], this.symbolPropertyChange = (t) => {
|
|
40
40
|
const e = t;
|
|
@@ -77,7 +77,7 @@ class X extends j {
|
|
|
77
77
|
this.setFormatValue(s, e);
|
|
78
78
|
}), this.selectedElement = a(t.target.selectedElement);
|
|
79
79
|
}, this.updateBackground = (t) => {
|
|
80
|
-
this.setFormatValue(
|
|
80
|
+
this.setFormatValue(I.Background, t.detail), this.selectedElement = t.detail;
|
|
81
81
|
}, this.updateTextProps = (t) => {
|
|
82
82
|
const { font: e, color: s } = t.detail;
|
|
83
83
|
this.selectedTexts.forEach((o) => {
|
|
@@ -106,7 +106,7 @@ class X extends j {
|
|
|
106
106
|
this.properties = { selectedSymbols: 16, selectedTexts: 16, selectedBackground: 16, selectedElement: 16, messageOverrides: 0, model: 0 };
|
|
107
107
|
}
|
|
108
108
|
static {
|
|
109
|
-
this.styles =
|
|
109
|
+
this.styles = O;
|
|
110
110
|
}
|
|
111
111
|
load() {
|
|
112
112
|
this.modelChange(this.model);
|
|
@@ -150,7 +150,7 @@ class X extends j {
|
|
|
150
150
|
this.formatPopover = $(this.formatPopover);
|
|
151
151
|
const t = this.selectedElement;
|
|
152
152
|
t?.type === b.TS || t?.type === b.SLS || // To check if the selected element is background.
|
|
153
|
-
Array.isArray(this.selectedElement) ? (this.formatPopover =
|
|
153
|
+
Array.isArray(this.selectedElement) ? (this.formatPopover = j(u`<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();
|
|
154
154
|
}
|
|
155
155
|
removeFormatPopover() {
|
|
156
156
|
this.formatPopover !== null && (this.formatPopover.open = !1, this.formatPopover = $(this.formatPopover));
|
|
@@ -164,7 +164,7 @@ class X extends j {
|
|
|
164
164
|
case i.XAxisTitle:
|
|
165
165
|
return E(this.model) ? this.model.xAxisTitleSymbol : void 0;
|
|
166
166
|
case i.YAxisTitle:
|
|
167
|
-
return
|
|
167
|
+
return d(this.model) ? this.model.getAxisTitleSymbol(1) : void 0;
|
|
168
168
|
case i.AxisLabels:
|
|
169
169
|
return C(this.model) ? this.model.axisLabelsSymbol : void 0;
|
|
170
170
|
case i.GuideLabels:
|
|
@@ -175,11 +175,11 @@ class X extends j {
|
|
|
175
175
|
return h(this.model) ? this.model.legendTitleSymbol : void 0;
|
|
176
176
|
case i.DataLabels:
|
|
177
177
|
return L(this.model) ? this.model.dataLabelsSymbol : void 0;
|
|
178
|
-
case
|
|
178
|
+
case n.AxisLines:
|
|
179
179
|
return P(this.model) ? this.model.axisLinesSymbol : void 0;
|
|
180
|
-
case
|
|
181
|
-
return
|
|
182
|
-
case
|
|
180
|
+
case n.GridLines:
|
|
181
|
+
return d(this.model) ? this.model.getGridLinesSymbol() : void 0;
|
|
182
|
+
case n.LeaderLines:
|
|
183
183
|
return S(this.model) ? this.model.ticksSymbol : void 0;
|
|
184
184
|
case i.Background:
|
|
185
185
|
return this.model.backgroundColor;
|
|
@@ -199,7 +199,7 @@ class X extends j {
|
|
|
199
199
|
E(this.model) && l(e) && (this.model.xAxisTitleSymbol = e);
|
|
200
200
|
break;
|
|
201
201
|
case i.YAxisTitle:
|
|
202
|
-
|
|
202
|
+
d(this.model) && l(e) && this.model.setAxisTitleSymbol(e, 1);
|
|
203
203
|
break;
|
|
204
204
|
case i.AxisLabels:
|
|
205
205
|
C(this.model) && l(e) && (this.model.axisLabelsSymbol = e);
|
|
@@ -216,14 +216,14 @@ class X extends j {
|
|
|
216
216
|
case i.DataLabels:
|
|
217
217
|
L(this.model) && l(e) && (this.model.dataLabelsSymbol = e);
|
|
218
218
|
break;
|
|
219
|
-
case
|
|
219
|
+
case n.AxisLines:
|
|
220
220
|
P(this.model) && x(e) && (this.model.axisLinesSymbol = e);
|
|
221
221
|
break;
|
|
222
|
-
case
|
|
222
|
+
case n.GridLines:
|
|
223
223
|
if (x(e)) {
|
|
224
224
|
if (V(this.model))
|
|
225
225
|
this.model.setGridLinesSymbol(e);
|
|
226
|
-
else if (
|
|
226
|
+
else if (d(this.model)) {
|
|
227
227
|
const s = this.model.chartType;
|
|
228
228
|
let o = [];
|
|
229
229
|
switch (s) {
|
|
@@ -247,7 +247,7 @@ class X extends j {
|
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
break;
|
|
250
|
-
case
|
|
250
|
+
case n.LeaderLines:
|
|
251
251
|
S(this.model) && x(e) && (this.model.ticksSymbol = e);
|
|
252
252
|
break;
|
|
253
253
|
case i.Background:
|
|
@@ -259,7 +259,7 @@ class X extends j {
|
|
|
259
259
|
this.textProperties = [
|
|
260
260
|
i.Title,
|
|
261
261
|
...E(this.model) ? [i.XAxisTitle] : [],
|
|
262
|
-
...
|
|
262
|
+
...d(this.model) ? [i.YAxisTitle] : [],
|
|
263
263
|
...h(this.model) ? [i.LegendTitle] : [],
|
|
264
264
|
i.Description,
|
|
265
265
|
...h(this.model) ? [i.LegendText] : [],
|
|
@@ -268,9 +268,9 @@ class X extends j {
|
|
|
268
268
|
...L(this.model) && this.model.chartType !== r.HeatSeries && this.model.chartType !== r.BoxPlotSeries ? [i.DataLabels] : []
|
|
269
269
|
], w(this.model) && (this.textProperties = this.textProperties.filter((s) => s !== i.DataLabels)), this.symbolProperties = [
|
|
270
270
|
i.Background,
|
|
271
|
-
...P(this.model) && this.model.chartType !== r.HeatSeries ? [
|
|
272
|
-
...
|
|
273
|
-
...S(this.model) ? [
|
|
271
|
+
...P(this.model) && this.model.chartType !== r.HeatSeries ? [n.AxisLines] : [],
|
|
272
|
+
...d(this.model) ? [n.GridLines] : [],
|
|
273
|
+
...S(this.model) ? [n.LeaderLines] : []
|
|
274
274
|
];
|
|
275
275
|
const t = this.textProperties.map((s) => this.renderTextElement(s, this.textPropertyChange)), e = this.symbolProperties.map((s) => s === i.Background ? this.renderTextElement(s, this.backgroundChange) : this.renderTextElement(s, this.symbolPropertyChange));
|
|
276
276
|
return { textElements: t, symbolElements: e };
|
|
@@ -284,7 +284,7 @@ class X extends j {
|
|
|
284
284
|
return u`<div class=${p(g.sectionLabel)}>${this._messages.textElements}</div><calcite-list label class=${p(g.elementList)} selection-mode=multiple selection-appearance=border @calciteListChange=${this.correctTextElementSelection}>${t}</calcite-list><div class=${p(g.sectionLabel)}>${this._messages.symbolElements}</div><calcite-list label class=${p(g.elementList)} selection-mode=single selection-appearance=border>${e}</calcite-list>`;
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
|
-
M("arcgis-charts-config-format",
|
|
287
|
+
M("arcgis-charts-config-format", R);
|
|
288
288
|
export {
|
|
289
|
-
|
|
289
|
+
R as ArcgisChartsConfigFormat
|
|
290
290
|
};
|
|
@@ -3,13 +3,10 @@ import { c as i } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { html as o } from "lit";
|
|
4
4
|
import { u as a } from "../../chunks/useT9n.js";
|
|
5
5
|
import { createRef as l, ref as n } from "lit/directives/ref.js";
|
|
6
|
-
import { LitElement as c, createEvent as s
|
|
7
|
-
import { e as
|
|
6
|
+
import { LitElement as c, createEvent as s } from "@arcgis/lumina";
|
|
7
|
+
import { e as p } from "../../chunks/popover-ui-utils.js";
|
|
8
8
|
import { i as r } from "../../chunks/rest-js-object-literals.js";
|
|
9
|
-
|
|
10
|
-
jsAppFlyout: "js-app-flyout"
|
|
11
|
-
};
|
|
12
|
-
class m extends c {
|
|
9
|
+
class h extends c {
|
|
13
10
|
constructor() {
|
|
14
11
|
super(...arguments), this._messages = a(), this.popoverElement = l(), this.placement = "leading", this.open = !1, this.arcgisChartsConfigFormatPopoverColorChange = s(), this.arcgisChartsConfigFormatPopoverSymbolChange = s(), this.arcgisChartsConfigFormatPopoverTextChange = s(), this.arcgisChartsConfigPopoverClose = s();
|
|
15
12
|
}
|
|
@@ -20,7 +17,7 @@ class m extends c {
|
|
|
20
17
|
await this.popoverElement.value?.reposition();
|
|
21
18
|
}
|
|
22
19
|
updated() {
|
|
23
|
-
|
|
20
|
+
p(this.popoverElement.value, this.open);
|
|
24
21
|
}
|
|
25
22
|
closePopover() {
|
|
26
23
|
this.open = !1, this.arcgisChartsConfigPopoverClose.emit();
|
|
@@ -36,10 +33,10 @@ class m extends c {
|
|
|
36
33
|
}
|
|
37
34
|
render() {
|
|
38
35
|
const e = this.selectedElement, t = this.selectedElement;
|
|
39
|
-
return o`<div
|
|
36
|
+
return o`<div><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .open=${!this.open} label @calcitePopoverClose=${this.closePopover} pointer-disabled auto-close ${n(this.popoverElement)}>${Array.isArray(e) ? o`<arcgis-charts-config-color-style .header=${this._messages.backgroundElement} enable-close .open=${this.open} .selectedColor=${e} @arcgisChartsConfigColorStyleClose=${this.closePopover} @arcgisChartsConfigColorStyleChange=${this.updateColorProperties}></arcgis-charts-config-color-style>` : null}${t?.type === r.SLS ? o`<arcgis-charts-config-line-style .header=${this._messages.lineStyle} .open=${this.open} enable-close .lineStyle=${t} @arcgisChartsConfigLineStyleClose=${this.closePopover} @arcgisChartsConfigLineStyleChange=${this.updateSymbolProperties}></arcgis-charts-config-line-style>` : null}${t?.type === r.TS ? o`<arcgis-charts-config-font-style .header=${this._messages.textStyle} .open=${this.open} enable-close .fontStyle=${t} @arcgisChartsConfigFontStyleClose=${this.closePopover} @arcgisChartsConfigFontStyleChange=${this.updateTextProperties}></arcgis-charts-config-font-style>` : null}</calcite-popover></div>`;
|
|
40
37
|
}
|
|
41
38
|
}
|
|
42
|
-
i("arcgis-charts-config-format-popover",
|
|
39
|
+
i("arcgis-charts-config-format-popover", h);
|
|
43
40
|
export {
|
|
44
|
-
|
|
41
|
+
h as ArcgisChartsConfigFormatPopover
|
|
45
42
|
};
|
|
@@ -4,13 +4,10 @@ import { html as t } from "lit";
|
|
|
4
4
|
import { g as i } from "../../chunks/default.js";
|
|
5
5
|
import { u as l } from "../../chunks/useT9n.js";
|
|
6
6
|
import { createRef as a, ref as n } from "lit/directives/ref.js";
|
|
7
|
-
import { LitElement as
|
|
8
|
-
import { i as
|
|
9
|
-
import { e as
|
|
10
|
-
|
|
11
|
-
jsAppFlyout: "js-app-flyout"
|
|
12
|
-
};
|
|
13
|
-
class C extends p {
|
|
7
|
+
import { LitElement as c, createEvent as s } from "@arcgis/lumina";
|
|
8
|
+
import { i as p } from "../../chunks/rest-js-object-literals.js";
|
|
9
|
+
import { e as h } from "../../chunks/popover-ui-utils.js";
|
|
10
|
+
class m extends c {
|
|
14
11
|
constructor() {
|
|
15
12
|
super(...arguments), this._messages = l(), this.popoverElement = a(), this.placement = "leading", this.open = !1, this.arcgisChartsConfigGuidePopoverColorChange = s(), this.arcgisChartsConfigGuidePopoverSymbolChange = s(), this.arcgisChartsConfigPopoverClose = s();
|
|
16
13
|
}
|
|
@@ -21,7 +18,7 @@ class C extends p {
|
|
|
21
18
|
await this.popoverElement.value?.reposition();
|
|
22
19
|
}
|
|
23
20
|
updated() {
|
|
24
|
-
|
|
21
|
+
h(this.popoverElement.value, this.open);
|
|
25
22
|
}
|
|
26
23
|
guidePopoverClose() {
|
|
27
24
|
this.open = !1, this.arcgisChartsConfigPopoverClose.emit();
|
|
@@ -36,10 +33,10 @@ class C extends p {
|
|
|
36
33
|
}
|
|
37
34
|
render() {
|
|
38
35
|
const o = this.selectedElement, e = this.selectedElement;
|
|
39
|
-
return t`<div
|
|
36
|
+
return t`<div><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .open=${this.open} offset-distance=20 offset-skidding=60 label pointer-disabled @calcitePopoverClose=${this.guidePopoverClose} auto-close ${n(this.popoverElement)}>${Array.isArray(o) && t`<arcgis-charts-config-color-style .header=${this._messages.fillStyle} enable-close .open=${this.open} .selectedColor=${o} @arcgisChartsConfigColorStyleClose=${this.guidePopoverClose} @arcgisChartsConfigColorStyleChange=${this.updateColorProperties}></arcgis-charts-config-color-style>` || ""}${e?.type === p.SLS && t`<arcgis-charts-config-line-style .header=${this._messages.lineStyle} .open=${this.open} enable-close .lineStyle=${e} @arcgisChartsConfigLineStyleClose=${this.guidePopoverClose} @arcgisChartsConfigLineStyleChange=${this.updateSymbolProperties}></arcgis-charts-config-line-style>` || ""}</calcite-popover></div>`;
|
|
40
37
|
}
|
|
41
38
|
}
|
|
42
|
-
r("arcgis-charts-config-guide-popover",
|
|
39
|
+
r("arcgis-charts-config-guide-popover", m);
|
|
43
40
|
export {
|
|
44
|
-
|
|
41
|
+
m as ArcgisChartsConfigGuidePopover
|
|
45
42
|
};
|
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as w } from "../../chunks/runtime.js";
|
|
3
3
|
import { repeat as d } from "lit/directives/repeat.js";
|
|
4
|
-
import { css as
|
|
4
|
+
import { css as F, html as o } from "lit";
|
|
5
5
|
import { keyed as f } from "lit/directives/keyed.js";
|
|
6
6
|
import L from "@arcgis/core/Color.js";
|
|
7
7
|
import { LitElement as T, createEvent as h, safeClassMap as r, nothing as g, safeStyleMap as P } from "@arcgis/lumina";
|
|
8
8
|
import { createRef as u, ref as p } from "lit/directives/ref.js";
|
|
9
9
|
import { isEqual as S } from "lodash-es";
|
|
10
|
-
import { d as
|
|
10
|
+
import { d as D, F as b } from "../../chunks/index3.js";
|
|
11
11
|
import { u as v } from "../../chunks/useT9n.js";
|
|
12
12
|
import { e as c, W as $ } from "../../chunks/interfaces.js";
|
|
13
|
-
import { c as y, b as
|
|
13
|
+
import { c as y, b as A, e as m } from "../../chunks/chart-ui-utils2.js";
|
|
14
14
|
import { C as x, k } from "../../chunks/class-breaks.js";
|
|
15
15
|
import { R as E } from "../../chunks/rest-js-object-literals.js";
|
|
16
16
|
import { r as _, i as R, e as C } from "../../chunks/chart-object-literals.js";
|
|
17
17
|
import { e as B } from "../../chunks/popover-ui-utils.js";
|
|
18
18
|
import { t as N, aB as M } from "../../chunks/index.js";
|
|
19
19
|
import { bb as H, bk as O } from "../../chunks/index2.js";
|
|
20
|
-
const
|
|
21
|
-
jsAppFlyout: "js-app-flyout",
|
|
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}.pick-list-item-label{font-size:small}.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;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}.color-ramp-popover-footer{display:flex;padding:.5rem}.color-ramp-popover-footer calcite-button{flex:1}`, s = {
|
|
22
21
|
name: "bar-chart-data-popover",
|
|
23
22
|
header: "header",
|
|
24
23
|
pickListItemLabel: "pick-list-item-label",
|
|
@@ -35,7 +34,7 @@ const j = w`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.a
|
|
|
35
34
|
panelChildrenContainer: "panel-children-container",
|
|
36
35
|
colorRampPopoverFooter: "color-ramp-popover-footer"
|
|
37
36
|
};
|
|
38
|
-
class
|
|
37
|
+
class W extends T {
|
|
39
38
|
constructor() {
|
|
40
39
|
super(...arguments), this._messages = v(), this.commonStrings = v({ name: "common", blocking: !0 }), this.picklist = u(), this.popoverElement = u(), this.placement = "leading", this.offsetDistance = -200, this.availableColorRamps = [], this.selectedCategory = x.all, this.aggregationLabels = [], this.isFlipped = !1, this.open = !1, this.layerFieldsInfo = [], this.arcgisChartsConfigHeatChartColorRampChange = h(), this.arcgisChartsConfigHeatChartDataPopoverChange = h(), this.arcgisChartsConfigPopoverClose = h(), this.arcgisChartsConfigPopoverEmptyCellColorChange = h(), this.arcgisChartsConfigPopoverEmptyCellNameChange = h();
|
|
41
40
|
}
|
|
@@ -43,7 +42,7 @@ class q extends T {
|
|
|
43
42
|
this.properties = { availableColorRamps: 16, selectedColorRampName: 16, selectedCategory: 16, aggregationLabels: 16, isFlipped: 5, model: 0, messageOverrides: 0, headingTitle: 1, referenceElement: 0, open: 5, contentKind: 1, layerFieldsInfo: 0, selectedContent: 1, colorRamps: 0 };
|
|
44
43
|
}
|
|
45
44
|
static {
|
|
46
|
-
this.styles =
|
|
45
|
+
this.styles = q;
|
|
47
46
|
}
|
|
48
47
|
async reposition() {
|
|
49
48
|
await this.popoverElement.value?.reposition();
|
|
@@ -55,13 +54,13 @@ class q extends T {
|
|
|
55
54
|
updated() {
|
|
56
55
|
setTimeout(() => {
|
|
57
56
|
this.picklist.value?.setFocus();
|
|
58
|
-
},
|
|
57
|
+
}, A.PopoverTimer), B(this.popoverElement.value, this.open);
|
|
59
58
|
}
|
|
60
59
|
buildAggregationListItems() {
|
|
61
60
|
return d(y.filter((e) => e !== _.NoAggregation), (e) => e, (e, t) => o`<calcite-list-item .label=${this.aggregationLabels[t]} .value=${e} .selected=${m(e, this.selectedContent)}></calcite-list-item>`);
|
|
62
61
|
}
|
|
63
62
|
buildPickListItem(e) {
|
|
64
|
-
return f(e.name, o`<calcite-list-item .label=${
|
|
63
|
+
return f(e.name, o`<calcite-list-item .label=${D(this.layerFieldsInfo, e.name)} .value=${e.name} .selected=${m(e.name, this.selectedContent)}></calcite-list-item>`);
|
|
65
64
|
}
|
|
66
65
|
buildPickListItems(e) {
|
|
67
66
|
const t = this.layerFieldsInfo?.length ?? 0, a = [];
|
|
@@ -119,7 +118,7 @@ class q extends T {
|
|
|
119
118
|
typeof a == "string" && a.length && (t = a);
|
|
120
119
|
} else if (Array.isArray(e)) {
|
|
121
120
|
const [a, i, l, n] = e;
|
|
122
|
-
[a, i, l].every((
|
|
121
|
+
[a, i, l].every((I) => typeof I == "number") && (t = `rgba(${a},${i},${l},${n ?? 1})`);
|
|
123
122
|
} else if (typeof e == "object" && e) {
|
|
124
123
|
const { r: a, g: i, b: l, a: n } = e;
|
|
125
124
|
if (a != null && i != null && l != null)
|
|
@@ -261,10 +260,10 @@ class q extends T {
|
|
|
261
260
|
return o`<div><div class=${r(s.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${t} @calciteInputInput=${this.nameChange}></calcite-input></calcite-label></div><div class=${r(s.panelChildrenContainer)}><arcgis-charts-config-colors .heading=${this._messages?.symbolColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></div>`;
|
|
262
261
|
}
|
|
263
262
|
render() {
|
|
264
|
-
return o`<div
|
|
263
|
+
return o`<div><calcite-popover class=${r(s.name)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${p(this.popoverElement)}><calcite-panel class=${r(s.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${r(s.header)}>${this.headingTitle ?? ""}</div>${this.renderPopoverInfo()}${void 0}</calcite-panel></calcite-popover></div>`;
|
|
265
264
|
}
|
|
266
265
|
}
|
|
267
|
-
|
|
266
|
+
w("arcgis-charts-config-heat-chart-popover", W);
|
|
268
267
|
export {
|
|
269
|
-
|
|
268
|
+
W as ArcgisChartsConfigHeatChartPopover
|
|
270
269
|
};
|
|
@@ -1,30 +1,29 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as f } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as y, html as
|
|
3
|
+
import { css as y, html as t } from "lit";
|
|
4
4
|
import { keyed as c } from "lit/directives/keyed.js";
|
|
5
|
-
import { H as
|
|
5
|
+
import { H as i } from "../../chunks/interfaces.js";
|
|
6
6
|
import { b as v, o as C } from "../../chunks/chart-ui-utils2.js";
|
|
7
|
-
import { u } from "../../chunks/useT9n.js";
|
|
7
|
+
import { u as b } from "../../chunks/useT9n.js";
|
|
8
8
|
import { createRef as m, ref as h } from "lit/directives/ref.js";
|
|
9
|
-
import { LitElement as
|
|
9
|
+
import { LitElement as u, createEvent as p, safeClassMap as s } from "@arcgis/lumina";
|
|
10
10
|
import { i as $ } from "../../chunks/rest-js-object-literals.js";
|
|
11
|
-
import { g as
|
|
11
|
+
import { g as o } from "../../chunks/chart-object-literals.js";
|
|
12
12
|
import { e as P } from "../../chunks/popover-ui-utils.js";
|
|
13
13
|
import { d as S } from "../../chunks/index3.js";
|
|
14
14
|
import { bk as k } from "../../chunks/index2.js";
|
|
15
15
|
import { aB as L } from "../../chunks/index.js";
|
|
16
|
-
const
|
|
16
|
+
const l = {
|
|
17
17
|
symbolPropertyPopover: "symbol-property-popover",
|
|
18
18
|
colorPicker: "color-picker",
|
|
19
|
-
jsAppFlyout: "js-app-flyout",
|
|
20
19
|
header: "header",
|
|
21
20
|
pickListItemLabel: "pick-list-item-label",
|
|
22
21
|
fieldSelectPanel: "field-select-panel",
|
|
23
22
|
transformationPanel: "transformation-panel"
|
|
24
23
|
}, T = y`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.right{display:block;text-align:right}.inline{display:inline-flex;flex-wrap:wrap}.symbol-property-popover{min-width:300px}.symbol-property-popover .inline{align-items:center;margin-bottom:1rem;padding:0 1rem}.symbol-property-popover .inline calcite-action{margin-left:.2rem}.symbol-property-popover .inline input,.symbol-property-popover .inline select{width:4rem;margin-left:.5rem;height:24px}.symbol-property-popover .inline select{width:6rem}.symbol-property-popover .color calcite-icon{margin-left:.5rem}.symbol-property-popover .color .color-picker{padding:1rem}.header{margin:0;font-weight:bolder}.pick-list-item-label{font-size:small}.field-select-panel{max-height:60vh}.transformation-panel{width:calc(var(--calcite-panel-width-multiplier) * 12vw);max-width:calc(var(--calcite-panel-width-multiplier) * 300px);min-width:calc(var(--calcite-panel-width-multiplier) * 150px);min-width:calc(var(--calcite-panel-width-multiplier) * 170px)}`;
|
|
25
|
-
class F extends
|
|
24
|
+
class F extends u {
|
|
26
25
|
constructor() {
|
|
27
|
-
super(...arguments), this._messages =
|
|
26
|
+
super(...arguments), this._messages = b(), this.picklist = m(), this.popoverElement = m(), this.layerFieldsInfo = [], this.open = !1, this.arcgisChartsConfigHistogramPopoverChange = p(), this.arcgisChartsConfigHistogramPopoverSymbolChange = p(), this.arcgisChartsConfigPopoverClose = p();
|
|
28
27
|
}
|
|
29
28
|
static {
|
|
30
29
|
this.properties = { messageOverrides: 0, layerFieldsInfo: 0, headingTitle: 1, selectedNumericField: 1, selectedTransformationType: 1, selectedOverlaySymbol: 0, selectedBinColor: 0, referenceElement: 0, contentKind: 1, placement: 1, open: 5, selectedOverlaySymbolType: 1 };
|
|
@@ -42,23 +41,23 @@ class F extends b {
|
|
|
42
41
|
}
|
|
43
42
|
buildPickListItems(e) {
|
|
44
43
|
const n = [];
|
|
45
|
-
if (e ===
|
|
44
|
+
if (e === i.numericFields)
|
|
46
45
|
for (let r = 0; r < this.layerFieldsInfo?.length; r += 1) {
|
|
47
46
|
const a = this.layerFieldsInfo[r];
|
|
48
|
-
k(a) && n.push(c(a.name,
|
|
47
|
+
k(a) && n.push(c(a.name, t`<calcite-list-item .label=${S(this.layerFieldsInfo, a.name)} .value=${a.name} .selected=${this.selectedNumericField === a.name}></calcite-list-item>`));
|
|
49
48
|
}
|
|
50
49
|
else {
|
|
51
50
|
const r = [
|
|
52
|
-
c(
|
|
53
|
-
c(
|
|
54
|
-
c(
|
|
51
|
+
c(o.None, t`<calcite-list-item .label=${this._messages.none} .value=${o.None} .selected=${this.selectedTransformationType === o.None}></calcite-list-item>`),
|
|
52
|
+
c(o.Log, t`<calcite-list-item .label=${this._messages.log} .value=${o.Log} .selected=${this.selectedTransformationType === o.Log}></calcite-list-item>`),
|
|
53
|
+
c(o.Sqrt, t`<calcite-list-item .label=${this._messages.sqRt} .value=${o.Sqrt} .selected=${this.selectedTransformationType === o.Sqrt}></calcite-list-item>`)
|
|
55
54
|
];
|
|
56
55
|
n.push(...r);
|
|
57
56
|
}
|
|
58
57
|
return n;
|
|
59
58
|
}
|
|
60
59
|
getPopoverClass() {
|
|
61
|
-
return this.contentKind ===
|
|
60
|
+
return this.contentKind === i.fillSymbol || this.contentKind === i.lineSymbol ? l.symbolPropertyPopover : "";
|
|
62
61
|
}
|
|
63
62
|
closePopover() {
|
|
64
63
|
(this.open || this.popoverElement.value?.open === !1) && (this.open = !1, this.arcgisChartsConfigPopoverClose.emit());
|
|
@@ -80,31 +79,31 @@ class F extends b {
|
|
|
80
79
|
}), this.open = !1);
|
|
81
80
|
}
|
|
82
81
|
renderFillColor() {
|
|
83
|
-
return
|
|
82
|
+
return t`<arcgis-charts-config-color-style class=${s(l.colorPicker)} .header=${this.headingTitle ?? this._messages.fillColor} enable-close .open=${this.open} .selectedColor=${this.selectedBinColor?.color} @arcgisChartsConfigColorStyleChange=${this.fillColorChange} @arcgisChartsConfigColorStyleClose=${this.closePopover}></arcgis-charts-config-color-style>`;
|
|
84
83
|
}
|
|
85
84
|
renderOverlayStyle() {
|
|
86
|
-
return
|
|
85
|
+
return t`<arcgis-charts-config-line-style class=${s(l.colorPicker)} .open=${this.open} enable-close .header=${this.headingTitle ?? this._messages.lineStyle} .lineStyle=${this.selectedOverlaySymbol} @arcgisChartsConfigLineStyleClose=${this.closePopover} @arcgisChartsConfigLineStyleChange=${this.overlaySymbolChange}></arcgis-charts-config-line-style>`;
|
|
87
86
|
}
|
|
88
87
|
renderFieldSelect() {
|
|
89
|
-
const e = this.buildPickListItems(
|
|
90
|
-
return
|
|
88
|
+
const e = this.buildPickListItems(i.numericFields);
|
|
89
|
+
return t`<calcite-panel class=${s(l.fieldSelectPanel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${s(l.header)}>${this._messages.numericalFieldHeader}</div><calcite-list label selection-mode=single selection-appearance=border class=${s(l.pickListItemLabel)} filter-enabled @calciteListChange=${this.onPickListChange} ${h(this.picklist)}>${e}</calcite-list></calcite-panel>`;
|
|
91
90
|
}
|
|
92
91
|
renderTransformationSelect() {
|
|
93
|
-
const e = this.buildPickListItems(
|
|
94
|
-
return
|
|
92
|
+
const e = this.buildPickListItems(i.transformation);
|
|
93
|
+
return t`<calcite-panel class=${s(l.transformationPanel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${s(l.header)}>${this._messages.transformationHeader}</div><calcite-list label selection-mode=single selection-appearance=border class=${s(l.pickListItemLabel)} @calciteListChange=${this.onPickListChange}>${e}</calcite-list></calcite-panel>`;
|
|
95
94
|
}
|
|
96
95
|
render() {
|
|
97
|
-
return
|
|
96
|
+
return t`<div><calcite-popover class=${s(this.getPopoverClass())} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .open=${this.open} .offsetDistance=${C(this.placement)} label auto-close ${h(this.popoverElement)}>${this.renderContentType()}</calcite-popover></div>`;
|
|
98
97
|
}
|
|
99
98
|
renderContentType() {
|
|
100
99
|
switch (this.contentKind) {
|
|
101
|
-
case
|
|
100
|
+
case i.fillSymbol:
|
|
102
101
|
return this.renderFillColor();
|
|
103
|
-
case
|
|
102
|
+
case i.lineSymbol:
|
|
104
103
|
return this.renderOverlayStyle();
|
|
105
|
-
case
|
|
104
|
+
case i.numericFields:
|
|
106
105
|
return this.renderFieldSelect();
|
|
107
|
-
case
|
|
106
|
+
case i.transformation:
|
|
108
107
|
return this.renderTransformationSelect();
|
|
109
108
|
default:
|
|
110
109
|
return;
|