@arcgis/charts-components 6.0.0-next.25 → 6.0.0-next.27
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/{IOK2V3P4.js → 2KXO7BVA.js} +1 -1
- package/dist/cdn/{BR46WAT3.js → 3743KVSR.js} +1 -1
- package/dist/cdn/{2GQTW4NH.js → 3AKXBLFC.js} +1 -1
- package/dist/cdn/{OM6QKWFE.js → 3FIQJ5AJ.js} +1 -1
- package/dist/cdn/{UYGZNX3E.js → 3OSMCMAY.js} +1 -1
- package/dist/cdn/{6ZD3Z5YL.js → 3RBTYR2Q.js} +1 -1
- package/dist/cdn/{TDD6C2FX.js → 46KP2NAT.js} +1 -1
- package/dist/cdn/{IUUDE4X5.js → 4PI4S77J.js} +1 -1
- package/dist/cdn/{OU7UWTYV.js → 4SVGCZGT.js} +1 -1
- package/dist/cdn/{BYG7ZIX2.js → 4XO4WT4X.js} +1 -1
- package/dist/cdn/{JXF3DDAB.js → 5DX4ZJZH.js} +1 -1
- package/dist/cdn/{GTLHXKAJ.js → 5GPRNPT5.js} +1 -1
- package/dist/cdn/{HU4OMSST.js → 5R46GNW4.js} +1 -1
- package/dist/cdn/{SNIJO2GO.js → 63Z4SXIB.js} +1 -1
- package/dist/cdn/{23PFUSK3.js → 6GBCPR5J.js} +1 -1
- package/dist/cdn/{ZDG7DMVN.js → 6KNVSKJI.js} +1 -1
- package/dist/cdn/{LRTY76E6.js → 6N2ITD57.js} +1 -1
- package/dist/cdn/{IQRQDZJC.js → 6PR6HVS4.js} +1 -1
- package/dist/cdn/{JWZGF724.js → 6SLVQTPT.js} +1 -1
- package/dist/cdn/{U6Y4QVXC.js → 6SVLCTQS.js} +1 -1
- package/dist/cdn/{EEZVAVKC.js → 73MVUX4G.js} +1 -1
- package/dist/cdn/{CLFK7CD2.js → 7K2QJPID.js} +1 -1
- package/dist/cdn/{FP2GSJQA.js → 7YCQRD34.js} +1 -1
- package/dist/cdn/{XGBIB7YB.js → BJT6BND6.js} +1 -1
- package/dist/cdn/{HEI543JI.js → BUV56OZA.js} +1 -1
- package/dist/cdn/{4V743NL4.js → BVZHUYBA.js} +1 -1
- package/dist/cdn/{ZCH46ONB.js → C7XGSAHJ.js} +1 -1
- package/dist/cdn/{SBCL24E4.js → CJC5VBVK.js} +1 -1
- package/dist/cdn/{H4SA3N6O.js → COMLINH3.js} +1 -1
- package/dist/cdn/{QYD2FVPD.js → DW6UJMMR.js} +1 -1
- package/dist/cdn/{7UVDQBL4.js → DX6YJH7X.js} +1 -1
- package/dist/cdn/{7QBDOZRN.js → E3PHUIRR.js} +1 -1
- package/dist/cdn/{5N5ZQZJO.js → EV3CQVBK.js} +1 -1
- package/dist/cdn/{3RQW57SE.js → FFU63U6V.js} +1 -1
- package/dist/cdn/{OMJYE2MJ.js → FJZM4Z5A.js} +1 -1
- package/dist/cdn/{TUIIWKKJ.js → GCGR7MCD.js} +1 -1
- package/dist/cdn/{JANDMZGE.js → GUSZROQX.js} +1 -1
- package/dist/cdn/{7GGX5UIB.js → H4L55FYO.js} +1 -1
- package/dist/cdn/{GD5JTE7A.js → HBNQH2S5.js} +1 -1
- package/dist/cdn/{LZPKYDMH.js → HLRLMWH2.js} +1 -1
- package/dist/cdn/{VSYGSI4Q.js → HOC57UTH.js} +1 -1
- package/dist/cdn/{COM3OWDH.js → I7PQFCMM.js} +1 -1
- package/dist/cdn/{Q43ORQKU.js → J54UY7G2.js} +1 -1
- package/dist/cdn/{RE3I2Z2X.js → J7XSWIFQ.js} +1 -1
- package/dist/cdn/JMQQBJED.js +2 -0
- package/dist/cdn/{SDPOEKHS.js → JONMEE36.js} +1 -1
- package/dist/cdn/{C2WLLAJA.js → JTR5G6A2.js} +1 -1
- package/dist/cdn/{E6ZQGTYB.js → K22ZRVEO.js} +1 -1
- package/dist/cdn/{M5AZLAGG.js → K4S5SYYR.js} +1 -1
- package/dist/cdn/{6OPPM5V2.js → KPWDKZSM.js} +1 -1
- package/dist/cdn/{LXGEIC5F.js → KW3N46DO.js} +1 -1
- package/dist/cdn/{DET6MJ7X.js → KXLQAS77.js} +1 -1
- package/dist/cdn/{QUVP5IS5.js → L6QW6IG6.js} +1 -1
- package/dist/cdn/{SX66PI5D.js → LBMQ3QJL.js} +1 -1
- package/dist/cdn/LVKJLRNO.js +2 -0
- package/dist/cdn/{NF3BLC5K.js → LX34U5I3.js} +1 -1
- package/dist/cdn/{O7O57T65.js → MHXTSVI4.js} +1 -1
- package/dist/cdn/{ROVVD6IW.js → MOBIKG3E.js} +1 -1
- package/dist/cdn/{YZJKK62F.js → NRMNO4T3.js} +1 -1
- package/dist/cdn/{D6XAU7NT.js → NUNLOL2L.js} +1 -1
- package/dist/cdn/{HBCVYIHS.js → OLXXAT2G.js} +1 -1
- package/dist/cdn/{XOXPFTIJ.js → ONC6OG57.js} +1 -1
- package/dist/cdn/{FNP7YROZ.js → PFFBO5QH.js} +1 -1
- package/dist/cdn/{QBHNXPDC.js → PHJ7GZH3.js} +1 -1
- package/dist/cdn/{JGXLPTT7.js → PJTTQKN3.js} +1 -1
- package/dist/cdn/{W6ND5MS4.js → PPLWWHA5.js} +1 -1
- package/dist/cdn/{J4V3WB5U.js → PQSQFDAH.js} +1 -1
- package/dist/cdn/{JIT5WKEB.js → PRAARRF4.js} +1 -1
- package/dist/cdn/{6R62GKMO.js → QDYZSNRJ.js} +1 -1
- package/dist/cdn/{4GEBMO7W.js → QFTCHFGK.js} +1 -1
- package/dist/cdn/{MSKHAI5B.js → QI4CG6OT.js} +1 -1
- package/dist/cdn/{VGOKYLOA.js → RWNXS76V.js} +1 -1
- package/dist/cdn/{HB4SJQ4W.js → RZV4XMXX.js} +1 -1
- package/dist/cdn/{QITW2GVD.js → SLJ5AKS3.js} +1 -1
- package/dist/cdn/{CLPZTMER.js → T4CM3KAQ.js} +1 -1
- package/dist/cdn/{TTW6WNUD.js → TFPUAMUR.js} +1 -1
- package/dist/cdn/TZETTYBC.js +2 -0
- package/dist/cdn/{R2THCQP5.js → U2EEQAJL.js} +1 -1
- package/dist/cdn/{QNEORRGV.js → UEASPEPR.js} +1 -1
- package/dist/cdn/{FKJRQZAC.js → UGTDUBXW.js} +1 -1
- package/dist/cdn/{KZ6LW4NP.js → VIDDAXQL.js} +1 -1
- package/dist/cdn/{3Q47Q67R.js → VP7LDWG5.js} +1 -1
- package/dist/cdn/{2ALROQCB.js → VR4L45AN.js} +24 -24
- package/dist/cdn/{HJCXMK5U.js → WXL6Q3TB.js} +1 -1
- package/dist/cdn/{XSZAO4QH.js → XPZRQZTJ.js} +1 -1
- package/dist/cdn/{TRJRLHIN.js → XU7FEXG2.js} +1 -1
- package/dist/cdn/{DUYJILM6.js → YAYID5AJ.js} +1 -1
- package/dist/cdn/{UNFDJW5A.js → YKSQH65V.js} +1 -1
- package/dist/cdn/{QXY7MRR7.js → ZANJLH52.js} +1 -1
- package/dist/cdn/{6HUXP73R.js → ZHMYNWSY.js} +1 -1
- package/dist/cdn/{WCQX5APN.js → ZOJZNQML.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/data.js +13 -13
- package/dist/chunks/generate-x-axis-title.js +9 -9
- package/dist/chunks/histogram-data.js +10 -10
- package/dist/chunks/index.js +5 -5
- package/dist/chunks/index3.js +1 -1
- package/dist/chunks/pie-chart-data.js +1 -1
- package/dist/chunks/pie-chart-model.js +162 -162
- package/dist/chunks/scatterplot-model.js +1 -1
- package/dist/chunks/serial-chart-data.js +1 -1
- package/dist/chunks/utils.js +1 -1
- package/dist/chunks/web-component-utils.js +1 -1
- package/dist/components/arcgis-chart/customElement.js +2446 -2424
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-invalid-input-message/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +38 -34
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-data/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 +1 -1
- package/dist/utils/chart-config/converter/index.js +18 -18
- package/package.json +5 -5
- package/dist/cdn/DVS6MZT5.js +0 -2
- package/dist/cdn/NK2I335H.js +0 -2
- package/dist/cdn/V3U7CLL3.js +0 -2
- /package/dist/cdn/{NX3KK4IQ.js → L2G4TISY.js} +0 -0
|
@@ -10,7 +10,7 @@ import { u as F } from "../../chunks/useT9n.js";
|
|
|
10
10
|
import { css as _, html as n, nothing as U } from "lit";
|
|
11
11
|
import { createRef as c, ref as m } from "lit/directives/ref.js";
|
|
12
12
|
import { LitElement as N, createEvent as C, safeClassMap as l, renderElement as V } from "@arcgis/lumina";
|
|
13
|
-
import { u as A, c6 as M,
|
|
13
|
+
import { u as A, c6 as M, x as $, c7 as z, C as K, r as L, y as x, b5 as R, c8 as H } from "../../chunks/index.js";
|
|
14
14
|
import { x as j } from "../../chunks/data.js";
|
|
15
15
|
import { J as q, K as W } from "../../chunks/index2.js";
|
|
16
16
|
import { r as Z } from "../../chunks/popover-ui-utils.js";
|
|
@@ -15,7 +15,7 @@ import { b as u, d as z, e as p } from "../../chunks/chart-object-literals.js";
|
|
|
15
15
|
import { S as m } from "../../chunks/common.js";
|
|
16
16
|
import { e as N, p as B } from "../../chunks/popover-ui-utils.js";
|
|
17
17
|
import { J as K, K as _ } from "../../chunks/index2.js";
|
|
18
|
-
import { J as O,
|
|
18
|
+
import { J as O, x as H, c9 as P, b5 as M, bj as U, b4 as j, c8 as W } from "../../chunks/index.js";
|
|
19
19
|
const J = D`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.fab{display:flex;justify-content:stretch}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.sort-icon-color{color:#000}.sort-y-axis{transform:rotate(90deg)}.sort-order-pick-list{overflow-y:hidden}.panel{max-height:60vh}.panel .size-section{width:19rem;margin:1rem 0;display:flex;flex-wrap:wrap;justify-content:space-evenly}.panel .size-section calcite-label{width:8rem;margin-bottom:.25rem}.panel .apply-button{width:17rem}`, o = {
|
|
20
20
|
name: "bar-chart-data-popover",
|
|
21
21
|
header: "header",
|
|
@@ -6,7 +6,7 @@ import { u as L } from "../../chunks/useT9n.js";
|
|
|
6
6
|
import { css as N, html as a } from "lit";
|
|
7
7
|
import { LitElement as M, createEvent as O, renderElement as C, safeStyleMap as h, safeClassMap as r } from "@arcgis/lumina";
|
|
8
8
|
import { a as _ } from "../../chunks/chart-ui-utils.js";
|
|
9
|
-
import { aH as g,
|
|
9
|
+
import { aH as g, y as E, C as v } from "../../chunks/index.js";
|
|
10
10
|
import { r as S } from "../../chunks/popover-ui-utils.js";
|
|
11
11
|
import { c as n, d as f } from "../../chunks/chart-object-literals.js";
|
|
12
12
|
const w = {
|
|
@@ -111,7 +111,7 @@ class z extends M {
|
|
|
111
111
|
}
|
|
112
112
|
buildMultipleBarTypeList() {
|
|
113
113
|
const e = this.shouldDisableStacking();
|
|
114
|
-
return e && this.model.stackedType !== n.Side && (this.model.stackedType = n.Side), a`<calcite-list label id=${w.stackedType} class=${r(l.list)} selection-mode=single-persist selection-appearance=border @click=${this.onMultipleBarSelect}><calcite-list-item .label=${this._messages.sideBySide} .value=${n.Side} .selected=${this.model.stackedType === void 0 || this.model.stackedType === n.Side}><calcite-icon scale=l icon=graph-bar-side-by-side slot=content-start></calcite-icon></calcite-list-item><calcite-list-item class=${r(e ? l.disabledStackingOption : "")} .label=${this._messages.stacked} .value=${n.Stacked} .selected=${this.model.stackedType === n.Stacked}><calcite-icon scale=l icon=graph-bar-stacked slot=content-start></calcite-icon>${e && a`<calcite-icon class=${r(l.disabledInfo)} slot=content-end icon=information scale=s flip-rtl @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-icon>` || ""}</calcite-list-item><calcite-list-item class=${r(e ? l.disabledStackingOption : "")} .label=${this._messages.stacked100} .value=${n.Stacked100} .selected=${this.model.stackedType === n.Stacked100}><calcite-icon scale=l icon=graph-
|
|
114
|
+
return e && this.model.stackedType !== n.Side && (this.model.stackedType = n.Side), a`<calcite-list label id=${w.stackedType} class=${r(l.list)} selection-mode=single-persist selection-appearance=border @click=${this.onMultipleBarSelect}><calcite-list-item .label=${this._messages.sideBySide} .value=${n.Side} .selected=${this.model.stackedType === void 0 || this.model.stackedType === n.Side}><calcite-icon scale=l icon=graph-bar-side-by-side slot=content-start></calcite-icon></calcite-list-item><calcite-list-item class=${r(e ? l.disabledStackingOption : "")} .label=${this._messages.stacked} .value=${n.Stacked} .selected=${this.model.stackedType === n.Stacked}><calcite-icon scale=l icon=graph-bar-stacked slot=content-start></calcite-icon>${e && a`<calcite-icon class=${r(l.disabledInfo)} slot=content-end icon=information scale=s flip-rtl @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-icon>` || ""}</calcite-list-item><calcite-list-item class=${r(e ? l.disabledStackingOption : "")} .label=${this._messages.stacked100} .value=${n.Stacked100} .selected=${this.model.stackedType === n.Stacked100}><calcite-icon scale=l icon=graph-bar-100-stacked slot=content-start></calcite-icon>${e && a`<calcite-icon class=${r(l.disabledInfo)} slot=content-end icon=information scale=s flip-rtl @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-icon>` || ""}</calcite-list-item></calcite-list>`;
|
|
115
115
|
}
|
|
116
116
|
resetSeriesOriginal() {
|
|
117
117
|
this.selectedSeriesId = void 0, this.model.resetSeriesStyling(), this.seriesOrderResetCounter += 1;
|
|
@@ -6,14 +6,14 @@ import { repeat as S } from "lit/directives/repeat.js";
|
|
|
6
6
|
import { b as a, a as c } from "../../chunks/interfaces.js";
|
|
7
7
|
import { d as v, a as $ } from "../../chunks/store.js";
|
|
8
8
|
import { b as g } from "../../chunks/chart-ui-utils.js";
|
|
9
|
-
import { u as
|
|
10
|
-
import { css as
|
|
9
|
+
import { u as x } from "../../chunks/useT9n.js";
|
|
10
|
+
import { css as F, nothing as I, html as l } from "lit";
|
|
11
11
|
import { createRef as d, ref as m } from "lit/directives/ref.js";
|
|
12
12
|
import { LitElement as B, createEvent as w, safeClassMap as o, renderElement as L } from "@arcgis/lumina";
|
|
13
13
|
import { x as P } from "../../chunks/data.js";
|
|
14
14
|
import { B as h } from "../../chunks/common.js";
|
|
15
15
|
import { l as u } from "../../chunks/index2.js";
|
|
16
|
-
import { c7 as O,
|
|
16
|
+
import { c7 as O, x as p } from "../../chunks/index.js";
|
|
17
17
|
import { r as C } from "../../chunks/popover-ui-utils.js";
|
|
18
18
|
import { a as k } from "../../chunks/chart-object-literals.js";
|
|
19
19
|
const r = {
|
|
@@ -23,10 +23,10 @@ const r = {
|
|
|
23
23
|
dimText: "dim-text",
|
|
24
24
|
list: "list",
|
|
25
25
|
customSortButtons: "custom-sort-buttons"
|
|
26
|
-
}, D =
|
|
26
|
+
}, D = 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)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin);margin-top:var(--arcgis-charts-top-section-margin)}.label,.disabled-label{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-minor);justify-content:space-between}.field-list{max-height:50vh;overflow-y:auto}.disabled-label{pointer-events:none}.fab{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:1.5rem;justify-content:center}.fab>calcite-button{--calcite-button-shadow: var(--calcite-shadow-md)}.fab span{white-space:normal;overflow-wrap:anywhere}.list{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major);max-height:400px;overflow-y:auto}.custom-sort-buttons{display:flex;justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}`;
|
|
27
27
|
class E extends B {
|
|
28
28
|
constructor() {
|
|
29
|
-
super(...arguments), this._messages =
|
|
29
|
+
super(...arguments), this._messages = x(), this.boxPlotPopover = null, this.categoryElement = d(), this.numericFieldsElement = d(), this.splitByFieldElement = d(), this.sortOrderElement = d(), this.originalCustomSortLabels = [], this.isCustomSortDisabled = !1, this.onModelConfigChange = () => {
|
|
30
30
|
this.requestUpdate();
|
|
31
31
|
}, this.onModelDataChange = async () => {
|
|
32
32
|
if (this.model.getDataSortOrder() === h.customSort) {
|
|
@@ -11,7 +11,7 @@ import { createRef as f, ref as m } from "lit/directives/ref.js";
|
|
|
11
11
|
import { LitElement as x, createEvent as g, renderElement as I, safeStyleMap as D, safeClassMap as d } from "@arcgis/lumina";
|
|
12
12
|
import { B as r } from "../../chunks/common.js";
|
|
13
13
|
import { e as S, p as T } from "../../chunks/popover-ui-utils.js";
|
|
14
|
-
import {
|
|
14
|
+
import { x as E, c9 as b, b4 as w, J as B } from "../../chunks/index.js";
|
|
15
15
|
import { d as C } from "../../chunks/rest-js-object-literals.js";
|
|
16
16
|
const o = {
|
|
17
17
|
name: "bar-chart-data-popover",
|
|
@@ -6,7 +6,7 @@ import { repeat as M } from "lit/directives/repeat.js";
|
|
|
6
6
|
import { u as O } from "../../chunks/useT9n.js";
|
|
7
7
|
import { LitElement as B, renderElement as d, safeStyleMap as h, safeClassMap as a } from "@arcgis/lumina";
|
|
8
8
|
import { a as w } from "../../chunks/chart-ui-utils.js";
|
|
9
|
-
import {
|
|
9
|
+
import { y as S } from "../../chunks/index.js";
|
|
10
10
|
import { r as f } from "../../chunks/popover-ui-utils.js";
|
|
11
11
|
import { p as m } from "../../chunks/chart-object-literals.js";
|
|
12
12
|
const l = {
|
|
@@ -7,7 +7,7 @@ import { css as N, html as i } from "lit";
|
|
|
7
7
|
import { createRef as n, ref as c } from "lit/directives/ref.js";
|
|
8
8
|
import { parseInt as _, camelCase as H } from "es-toolkit/compat";
|
|
9
9
|
import { DateTime as L } from "luxon";
|
|
10
|
-
import { u as
|
|
10
|
+
import { u as x, x as T, cl as O, C as U } from "../../chunks/index.js";
|
|
11
11
|
import { u as R } from "../../chunks/useT9n.js";
|
|
12
12
|
import { c as s, W as k } from "../../chunks/interfaces.js";
|
|
13
13
|
import { x as W } from "../../chunks/data.js";
|
|
@@ -41,7 +41,7 @@ class le extends E {
|
|
|
41
41
|
this.model.xAxisField = t, this.setDefaultPropertiesForCalendarHeatChart();
|
|
42
42
|
break;
|
|
43
43
|
case s.numericFields:
|
|
44
|
-
this.model.numericFields = [t.trim() || ""], (this.model.numericFields ?? []).length > 0 && this.model.aggregationType === d.Count && this.model.numericFields[0] !==
|
|
44
|
+
this.model.numericFields = [t.trim() || ""], (this.model.numericFields ?? []).length > 0 && this.model.aggregationType === d.Count && this.model.numericFields[0] !== x(this.model.layer).idField && (this.model.aggregationType = d.Sum);
|
|
45
45
|
break;
|
|
46
46
|
case s.calendarType: {
|
|
47
47
|
this.applyCalendarTypePreset(t);
|
|
@@ -185,7 +185,7 @@ class le extends E {
|
|
|
185
185
|
return W({
|
|
186
186
|
fieldName: this.model.xAxisField,
|
|
187
187
|
fieldList: this.layerFieldsInfo
|
|
188
|
-
}) ? "" :
|
|
188
|
+
}) ? "" : T(this.layerFieldsInfo, this.model.xAxisField);
|
|
189
189
|
}
|
|
190
190
|
onXAxisFieldSelect(e) {
|
|
191
191
|
this.contentKind = s.xAxisField, this.setupPopover(e);
|
|
@@ -264,7 +264,7 @@ class le extends E {
|
|
|
264
264
|
return i`<arcgis-charts-config-field-picker .label=${this.model.aggregationType === d.NoAggregation ? this._messages.noAggregation : this.aggregationLabel} @click=${this.onAggregationSelect} ${c(this.aggregationElement)}></arcgis-charts-config-field-picker>`;
|
|
265
265
|
}
|
|
266
266
|
renderNumericFieldsSelect() {
|
|
267
|
-
const e = this.model.numericFields?.[0] ===
|
|
267
|
+
const e = this.model.numericFields?.[0] === x(this.model.layer).idField ? "" : T(this.layerFieldsInfo, this.model.numericFields?.[0]);
|
|
268
268
|
return i`<arcgis-charts-config-field-picker .label=${e} @click=${this.onNumericFieldSelect} ${c(this.numericFieldsElement)}></arcgis-charts-config-field-picker>`;
|
|
269
269
|
}
|
|
270
270
|
renderCalendarTypeSelect() {
|
|
@@ -7,13 +7,13 @@ import P from "@arcgis/core/Color.js";
|
|
|
7
7
|
import { LitElement as I, createEvent as h, safeClassMap as r, nothing as g, safeStyleMap as L } from "@arcgis/lumina";
|
|
8
8
|
import { createRef as u, ref as p } from "lit/directives/ref.js";
|
|
9
9
|
import { isEqual as S } from "es-toolkit/compat";
|
|
10
|
-
import {
|
|
10
|
+
import { x as D, b5 as A, b4 as E, C as v } from "../../chunks/index.js";
|
|
11
11
|
import { u as b } from "../../chunks/useT9n.js";
|
|
12
12
|
import { c, W as $ } from "../../chunks/interfaces.js";
|
|
13
13
|
import { c as y, b as _, e as m } from "../../chunks/chart-ui-utils.js";
|
|
14
14
|
import { C as x, d as k } from "../../chunks/class-breaks.js";
|
|
15
|
-
import { d as
|
|
16
|
-
import { d as
|
|
15
|
+
import { d as N } from "../../chunks/rest-js-object-literals.js";
|
|
16
|
+
import { d as B, r as R, q as C } from "../../chunks/chart-object-literals.js";
|
|
17
17
|
import { e as M } from "../../chunks/popover-ui-utils.js";
|
|
18
18
|
import { J as H, r as O } from "../../chunks/index2.js";
|
|
19
19
|
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 = {
|
|
@@ -56,7 +56,7 @@ class W extends I {
|
|
|
56
56
|
}, _.PopoverTimer), M(this.popoverElement.value, this.open);
|
|
57
57
|
}
|
|
58
58
|
buildAggregationListItems() {
|
|
59
|
-
return d(y.filter((e) => e !==
|
|
59
|
+
return d(y.filter((e) => e !== B.NoAggregation), (e) => e, (e, t) => l`<calcite-list-item .label=${this.aggregationLabels[t]} .value=${e} .selected=${m(e, this.selectedContent)}></calcite-list-item>`);
|
|
60
60
|
}
|
|
61
61
|
buildPickListItem(e) {
|
|
62
62
|
return f(e.name, l`<calcite-list-item .label=${D(this.layerFieldsInfo, e.name)} .value=${e.name} .selected=${m(e.name, this.selectedContent)}></calcite-list-item>`);
|
|
@@ -178,7 +178,7 @@ class W extends I {
|
|
|
178
178
|
return l`<calcite-list label class=${r(s.popoverPickList)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`;
|
|
179
179
|
}
|
|
180
180
|
renderCalendarType() {
|
|
181
|
-
const e = this.layerFieldsInfo.find((i) => i.name === this.model.xAxisField), t = Object.values($).filter((i) => i !== $.WeekByDayOfWeekAndHourOfDay || e?.type !==
|
|
181
|
+
const e = this.layerFieldsInfo.find((i) => i.name === this.model.xAxisField), t = Object.values($).filter((i) => i !== $.WeekByDayOfWeekAndHourOfDay || e?.type !== N.DateOnly), a = d(t, (i) => i, (i) => {
|
|
182
182
|
const o = this._messages[i];
|
|
183
183
|
return l`<calcite-list-item .label=${o} .value=${i} .selected=${m(i, this.selectedContent)}></calcite-list-item>`;
|
|
184
184
|
});
|
|
@@ -4,13 +4,13 @@ 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
6
|
import { i as k, m as C, U as S, b as $, n as L, s as V, D as T } from "../../chunks/chart-ui-utils.js";
|
|
7
|
-
import { d as
|
|
7
|
+
import { d as x, a as P } from "../../chunks/store.js";
|
|
8
8
|
import { u as B } from "../../chunks/useT9n.js";
|
|
9
9
|
import { css as N, html as c } from "lit";
|
|
10
10
|
import { createRef as u, ref as v } from "lit/directives/ref.js";
|
|
11
11
|
import { LitElement as F, createEvent as D, renderElement as _, safeStyleMap as O, safeClassMap as o } from "@arcgis/lumina";
|
|
12
12
|
import { S as H, E as K } from "../../chunks/index2.js";
|
|
13
|
-
import {
|
|
13
|
+
import { x as A, l as U } from "../../chunks/index.js";
|
|
14
14
|
import { r as z } from "../../chunks/popover-ui-utils.js";
|
|
15
15
|
import { b as R } from "../../chunks/rest-js-object-literals.js";
|
|
16
16
|
import { s as b } from "../../chunks/chart-object-literals.js";
|
|
@@ -47,7 +47,7 @@ class q extends F {
|
|
|
47
47
|
try {
|
|
48
48
|
if (e.detail !== null && e.detail !== void 0) {
|
|
49
49
|
const { contentKind: t } = e.detail, { value: i } = e.detail;
|
|
50
|
-
switch (P
|
|
50
|
+
switch (x(P), t) {
|
|
51
51
|
case d.transformation:
|
|
52
52
|
this.model.dataTransformationType = i ?? b.None;
|
|
53
53
|
break;
|
|
@@ -10,7 +10,7 @@ import { LitElement as b, createEvent as p, safeClassMap as o } from "@arcgis/lu
|
|
|
10
10
|
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
|
-
import { b4 as S,
|
|
13
|
+
import { b4 as S, x as k } from "../../chunks/index.js";
|
|
14
14
|
import { r as T } from "../../chunks/index2.js";
|
|
15
15
|
const l = {
|
|
16
16
|
symbolPropertyPopover: "symbol-property-popover",
|
|
@@ -19,8 +19,8 @@ const l = {
|
|
|
19
19
|
popoverPickList: "popover-pick-list",
|
|
20
20
|
fieldSelectPanel: "field-select-panel",
|
|
21
21
|
transformationPanel: "transformation-panel"
|
|
22
|
-
},
|
|
23
|
-
class
|
|
22
|
+
}, x = v`.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}.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 .inline{padding:0 1rem}.symbol-property-popover .color calcite-icon{margin-left:.5rem}.symbol-property-popover .color .color-picker{padding:1rem}.header{margin:0;font-weight:bolder}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.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)}`;
|
|
23
|
+
class w extends b {
|
|
24
24
|
constructor() {
|
|
25
25
|
super(...arguments), this._messages = u(), this.picklist = m(), this.popoverElement = m(), this.layerFieldsInfo = [], this.open = !1, this.arcgisChartsConfigHistogramPopoverChange = p(), this.arcgisChartsConfigHistogramPopoverSymbolChange = p(), this.arcgisChartsConfigPopoverClose = p();
|
|
26
26
|
}
|
|
@@ -28,7 +28,7 @@ class x extends b {
|
|
|
28
28
|
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 };
|
|
29
29
|
}
|
|
30
30
|
static {
|
|
31
|
-
this.styles =
|
|
31
|
+
this.styles = x;
|
|
32
32
|
}
|
|
33
33
|
async reposition() {
|
|
34
34
|
await this.popoverElement.value?.reposition();
|
|
@@ -109,7 +109,7 @@ class x extends b {
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
f("arcgis-charts-config-histogram-popover",
|
|
112
|
+
f("arcgis-charts-config-histogram-popover", w);
|
|
113
113
|
export {
|
|
114
|
-
|
|
114
|
+
w as ArcgisChartsConfigHistogramPopover
|
|
115
115
|
};
|
|
@@ -11,7 +11,7 @@ class a extends e {
|
|
|
11
11
|
this.properties = { invalidInputMessage: 1, isInvalid: 5 };
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return this.isInvalid ? s`<calcite-input-message .status=${t.INVALID} icon=
|
|
14
|
+
return this.isInvalid ? s`<calcite-input-message .status=${t.INVALID} icon=exclamation-mark-triangle .hidden=${!this.isInvalid}>${this.invalidInputMessage}</calcite-input-message>` : null;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
i("arcgis-charts-config-invalid-input-message", a);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { c as A } from "../../chunks/runtime.js";
|
|
3
|
-
import { keyed as
|
|
4
|
-
import { LitElement as
|
|
3
|
+
import { keyed as x } from "lit/directives/keyed.js";
|
|
4
|
+
import { LitElement as I, createEvent as u, renderElement as B, safeClassMap as s } from "@arcgis/lumina";
|
|
5
5
|
import { css as k, html as r } from "lit";
|
|
6
6
|
import { createRef as h, ref as m } from "lit/directives/ref.js";
|
|
7
7
|
import { u as f } from "../../chunks/useT9n.js";
|
|
@@ -11,7 +11,7 @@ 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
13
|
import { J as L, K as P } from "../../chunks/index2.js";
|
|
14
|
-
import { u as $,
|
|
14
|
+
import { u as $, x as b, b5 as w, c8 as _ } from "../../chunks/index.js";
|
|
15
15
|
import { r as D } from "../../chunks/popover-ui-utils.js";
|
|
16
16
|
const N = 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:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:1.5rem;justify-content:center}.fab>calcite-button{--calcite-button-shadow: var(--calcite-shadow-md)}.fab span{white-space:normal;overflow-wrap:anywhere}.link-container{display:flex;justify-content:flex-end}`, n = {
|
|
17
17
|
label: "label",
|
|
@@ -21,7 +21,7 @@ const N = k`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.a
|
|
|
21
21
|
linkContainer: "link-container",
|
|
22
22
|
dimText: "dim-text"
|
|
23
23
|
};
|
|
24
|
-
class U extends
|
|
24
|
+
class U extends I {
|
|
25
25
|
constructor() {
|
|
26
26
|
super(...arguments), this._messages = f(), this.commonStrings = f({ name: "common", blocking: !0 }), this.lineChartPopover = null, this.aggregationElement = h(), this.xAxisFieldElement = h(), this.numericFieldsElement = h(), this.splitByFieldElement = h(), this.intervalAlignmentElement = h(), this.intervalElement = h(), this.onLineChartDataChange = (e) => {
|
|
27
27
|
try {
|
|
@@ -88,7 +88,7 @@ class U extends x {
|
|
|
88
88
|
t?.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange), e?.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
89
89
|
}
|
|
90
90
|
buildNumericFieldItem(e) {
|
|
91
|
-
return
|
|
91
|
+
return x(e, r`<calcite-list-item .label=${b(this.layerFieldsInfo, e)} .value=${e} closable @calciteListItemClose=${this.onRemoveNumericField}></calcite-list-item>`);
|
|
92
92
|
}
|
|
93
93
|
resetTimeIntervalOriginal(e) {
|
|
94
94
|
this.popoverClose(e), this.model.resetTimeInterval !== void 0 && (this.model.resetTimeInterval(), this.arcgisChartsConfigResetTimeInterval.emit());
|
|
@@ -8,12 +8,12 @@ import { createRef as h, ref as p } from "lit/directives/ref.js";
|
|
|
8
8
|
import { isEqual as b } from "es-toolkit/compat";
|
|
9
9
|
import { u as C } from "../../chunks/useT9n.js";
|
|
10
10
|
import { L as a } from "../../chunks/interfaces.js";
|
|
11
|
-
import { c as $, b as F, e as d, f as I, s as
|
|
12
|
-
import { d as
|
|
11
|
+
import { c as $, b as F, e as d, f as I, s as x } from "../../chunks/chart-ui-utils.js";
|
|
12
|
+
import { d as T } 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
15
|
import { J as E, K as S } from "../../chunks/index2.js";
|
|
16
|
-
import {
|
|
16
|
+
import { x as z, c9 as w, b4 as L, b5 as N, bj as K, c8 as B } from "../../chunks/index.js";
|
|
17
17
|
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 = {
|
|
18
18
|
name: "line-chart-data-popover",
|
|
19
19
|
header: "header",
|
|
@@ -82,7 +82,7 @@ class H extends k {
|
|
|
82
82
|
s.push(l);
|
|
83
83
|
for (let i = 0; i < t; i += 1) {
|
|
84
84
|
const m = this.layerFieldsInfo?.[i];
|
|
85
|
-
m && (w(m) || m.type ===
|
|
85
|
+
m && (w(m) || m.type === T.String) && s.push(this.buildPickListItem(m));
|
|
86
86
|
}
|
|
87
87
|
break;
|
|
88
88
|
}
|
|
@@ -151,7 +151,7 @@ class H extends k {
|
|
|
151
151
|
c.Month,
|
|
152
152
|
c.Year
|
|
153
153
|
];
|
|
154
|
-
return n`<div><div class=${o(r.sizeSection)}><calcite-label scale=m>${this._messages.intervalSize}<calcite-input type=number scale=m min=1 step=any .value=${
|
|
154
|
+
return n`<div><div class=${o(r.sizeSection)}><calcite-label scale=m>${this._messages.intervalSize}<calcite-input type=number scale=m min=1 step=any .value=${x(e?.size, 1)} ${p(this.intervalSizeElement)}></calcite-input></calcite-label><calcite-label scale=m>${this._messages.intervalType}<calcite-select .label=${this._messages.intervalType ?? ""} ${p(this.intervalTypeElement)}>${t.map((s) => n`<calcite-option .value=${s} .label=${B(s, this._messages)} .selected=${e?.unit === s}></calcite-option>`)}</calcite-select></calcite-label><calcite-button class=${o(r.applyButton)} appearance=outline @click=${this.intervalChange}>${this._messages.apply}</calcite-button></div></div>`;
|
|
155
155
|
}
|
|
156
156
|
renderPopoverInfo() {
|
|
157
157
|
let e;
|
|
@@ -3,15 +3,15 @@ import { c as f } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { keyed as u } from "lit/directives/keyed.js";
|
|
4
4
|
import { LitElement as I, renderElement as P, safeStyleMap as $ } from "@arcgis/lumina";
|
|
5
5
|
import { css as L, html as o } from "lit";
|
|
6
|
-
import { repeat as
|
|
7
|
-
import { u as
|
|
6
|
+
import { repeat as y } from "lit/directives/repeat.js";
|
|
7
|
+
import { u as x } from "../../chunks/useT9n.js";
|
|
8
8
|
import { j as b } from "../../chunks/chart-ui-utils.js";
|
|
9
|
-
import {
|
|
9
|
+
import { y as M } from "../../chunks/index.js";
|
|
10
10
|
import { r as a } from "../../chunks/popover-ui-utils.js";
|
|
11
11
|
const O = L`:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}`;
|
|
12
12
|
class k extends I {
|
|
13
13
|
constructor() {
|
|
14
|
-
super(...arguments), this._messages =
|
|
14
|
+
super(...arguments), this._messages = x(), this.seriesPopover = null, this.open = !1, this.seriesNameChange = (e) => {
|
|
15
15
|
if (e.detail !== null || e.detail !== void 0) {
|
|
16
16
|
const s = e.detail?.name, i = this.selectedSeriesIndex;
|
|
17
17
|
i !== void 0 && i >= 0 && this.model.setSeriesName(s, i);
|
|
@@ -69,7 +69,7 @@ class k extends I {
|
|
|
69
69
|
}
|
|
70
70
|
buildSeriesListItems() {
|
|
71
71
|
const e = this.model.seriesLength, s = Array.from({ length: e }, (t, r) => r);
|
|
72
|
-
return
|
|
72
|
+
return y(s, (t) => this.model.getSeriesId(t), (t) => {
|
|
73
73
|
const r = this.model.getSeriesId(t), l = this.model.getSeriesColor(t), h = this.model.getSeriesName(t), c = this.model.chartSubType === M.BarAndLineFromFields ? this._messages.series : r, m = this.model.getSeriesLineStyle(t), g = b(m);
|
|
74
74
|
let n = "#CCCCCC", d = "minus-circle";
|
|
75
75
|
if ((e > 1 || !this.activeColorMatch) && l !== void 0) {
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { c as u } from "../../chunks/runtime.js";
|
|
3
|
-
import { isEqual as
|
|
4
|
-
import { LitElement as C, createEvent as
|
|
5
|
-
import { css as y, html as
|
|
6
|
-
import { C as
|
|
7
|
-
import { ca as I, cb as
|
|
8
|
-
import { b } from "../../chunks/rest-js-object-literals.js";
|
|
9
|
-
const
|
|
10
|
-
class
|
|
3
|
+
import { isEqual as c, cloneDeep as p } from "es-toolkit/compat";
|
|
4
|
+
import { LitElement as C, createEvent as g } from "@arcgis/lumina";
|
|
5
|
+
import { css as y, html as d } from "lit";
|
|
6
|
+
import { C as h } from "../../chunks/interfaces.js";
|
|
7
|
+
import { ca as I, cb as b, v as F } from "../../chunks/index.js";
|
|
8
|
+
import { b as v } from "../../chunks/rest-js-object-literals.js";
|
|
9
|
+
const L = 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
|
+
class S extends C {
|
|
11
11
|
constructor() {
|
|
12
12
|
super(...arguments), this.onModelConfigChange = async (e) => {
|
|
13
13
|
const s = e?.detail.config ?? this.model.config;
|
|
14
14
|
this.layer === void 0 && await this.updateFetchLayerFieldsInfo(s);
|
|
15
|
-
}, this.popoverPlacement = "leading", this.usePopupTemplateFieldsInfo = !1, this.filterBySelection = !1, this.arcgisChartsConfigNoSeriesUpdate =
|
|
15
|
+
}, this.popoverPlacement = "leading", this.usePopupTemplateFieldsInfo = !1, this.filterBySelection = !1, this.arcgisChartsConfigNoSeriesUpdate = g(), this.arcgisChartsConfigWebChartChange = g();
|
|
16
16
|
}
|
|
17
17
|
static {
|
|
18
18
|
this.properties = { layerFieldsInfo: 16, model: 0, popoverPlacement: 1, seriesColor: 0, calculatedMinMaxBounds: 0, page: 1, layer: 0, usePopupTemplateFieldsInfo: 5, popupTemplateFieldInfosEnabled: 5, filterBySelection: 5, chartData: 0 };
|
|
19
19
|
}
|
|
20
20
|
static {
|
|
21
|
-
this.styles =
|
|
21
|
+
this.styles = L;
|
|
22
22
|
}
|
|
23
23
|
async load() {
|
|
24
24
|
this.seriesColor !== void 0 && this.seriesColorChange(this.seriesColor), await this.updateFetchLayerFieldsInfo(this.model?.config), this.modelChange(this.model);
|
|
25
25
|
}
|
|
26
26
|
willUpdate(e) {
|
|
27
27
|
let i = !1;
|
|
28
|
-
e.has("model") && this.modelChange(this.model, e.get("model")), e.has("layer") && this.layer !== void 0 && !
|
|
28
|
+
e.has("model") && this.modelChange(this.model, e.get("model")), e.has("layer") && this.layer !== void 0 && !c(e.get("layer"), this.layer) && (i = !0), (e.has("usePopupTemplateFieldsInfo") && this.usePopupTemplateFieldsInfo !== e.get("usePopupTemplateFieldsInfo") || e.has("popupTemplateFieldInfosEnabled") && this.popupTemplateFieldInfosEnabled !== e.get("popupTemplateFieldInfosEnabled")) && (i = !0), e.has("seriesColor") && this.seriesColorChange(this.seriesColor), this.layerFieldsInfo === void 0 && (i = !0), i && this.updateFetchLayerFieldsInfo();
|
|
29
29
|
}
|
|
30
30
|
disconnectedCallback() {
|
|
31
31
|
super.disconnectedCallback(), this.model.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
@@ -34,44 +34,48 @@ class L extends C {
|
|
|
34
34
|
i?.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange), e?.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
35
35
|
}
|
|
36
36
|
seriesColorChange(e) {
|
|
37
|
-
const { slices: i, groupedSlices: s, groupOfSlices:
|
|
38
|
-
let
|
|
39
|
-
this.filterBySelection ?
|
|
40
|
-
const
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
37
|
+
const { slices: i, groupedSlices: s, groupOfSlices: l } = e?.get(0) ?? {};
|
|
38
|
+
let t = [];
|
|
39
|
+
this.filterBySelection ? t = this.model.slices?.map((o) => i?.find((a) => a.sliceId === o.sliceId) ?? s?.find((a) => a.sliceId === o.sliceId) ?? o) ?? [] : t = (i ?? []).concat(s ?? []), t.forEach((o, a) => {
|
|
40
|
+
const n = this.model.slices?.find((f) => f.sliceId === o.sliceId);
|
|
41
|
+
if (n) {
|
|
42
|
+
t[a] = { ...o, ...n };
|
|
43
|
+
const f = n.label !== n.originalLabel;
|
|
44
|
+
t[a].label = f ? n.label : o.label, t[a].originalLabel = o.originalLabel;
|
|
45
|
+
}
|
|
46
|
+
const r = t[a].fillSymbol;
|
|
47
|
+
r !== void 0 && !c(r?.outline?.color, r?.color) && (r.outline = {
|
|
44
48
|
...r.outline ?? {},
|
|
45
|
-
type:
|
|
49
|
+
type: v.SLS,
|
|
46
50
|
color: r.color
|
|
47
51
|
});
|
|
48
52
|
});
|
|
49
|
-
const
|
|
50
|
-
s !== void 0 && !
|
|
53
|
+
const m = (s ?? []).map((o) => o.sliceId);
|
|
54
|
+
s !== void 0 && !c(m, this.model.groupedSliceIds) && (this.model.groupedSliceIds = p(m)), c(t, this.model.slices) || (this.model.slices = p(t)), l !== void 0 && !c(l, this.model.sliceGrouping) && (this.model.sliceGrouping = p(l));
|
|
51
55
|
}
|
|
52
56
|
async updateFetchLayerFieldsInfo(e) {
|
|
53
57
|
const i = e ?? this.model.config;
|
|
54
58
|
let s = this.layer;
|
|
55
59
|
if (!s) {
|
|
56
|
-
const
|
|
57
|
-
|
|
60
|
+
const l = I(i) ? i.iLayer : void 0;
|
|
61
|
+
l && (s = await b(l));
|
|
58
62
|
}
|
|
59
|
-
s && (await s.load(), this.layerFieldsInfo =
|
|
63
|
+
s && (await s.load(), this.layerFieldsInfo = F(s, this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled));
|
|
60
64
|
}
|
|
61
65
|
render() {
|
|
62
66
|
let e;
|
|
63
67
|
switch (this.page) {
|
|
64
|
-
case
|
|
65
|
-
e =
|
|
68
|
+
case h.Data:
|
|
69
|
+
e = d`<arcgis-charts-config-pie-chart-data .model=${this.model} .layerFieldsInfo=${this.layerFieldsInfo}></arcgis-charts-config-pie-chart-data>`;
|
|
66
70
|
break;
|
|
67
|
-
case
|
|
68
|
-
e =
|
|
71
|
+
case h.Slices:
|
|
72
|
+
e = d`<arcgis-charts-config-pie-chart-slices .model=${this.model} .chartData=${this.chartData} .popoverPlacement=${this.popoverPlacement}></arcgis-charts-config-pie-chart-slices>`;
|
|
69
73
|
break;
|
|
70
|
-
case
|
|
71
|
-
e =
|
|
74
|
+
case h.Format:
|
|
75
|
+
e = d`<arcgis-charts-config-format .model=${this.model}></arcgis-charts-config-format>`;
|
|
72
76
|
break;
|
|
73
|
-
case
|
|
74
|
-
e =
|
|
77
|
+
case h.General:
|
|
78
|
+
e = d`<arcgis-charts-config-general .model=${this.model}></arcgis-charts-config-general>`;
|
|
75
79
|
break;
|
|
76
80
|
default:
|
|
77
81
|
e = "";
|
|
@@ -80,7 +84,7 @@ class L extends C {
|
|
|
80
84
|
return e;
|
|
81
85
|
}
|
|
82
86
|
}
|
|
83
|
-
u("arcgis-charts-config-pie-chart",
|
|
87
|
+
u("arcgis-charts-config-pie-chart", S);
|
|
84
88
|
export {
|
|
85
|
-
|
|
89
|
+
S as ArcgisChartsConfigPieChart
|
|
86
90
|
};
|
|
@@ -7,7 +7,7 @@ import { css as C, html as s } from "lit";
|
|
|
7
7
|
import { createRef as n, ref as c } from "lit/directives/ref.js";
|
|
8
8
|
import { LitElement as b, createEvent as d, renderElement as v, safeClassMap as o } from "@arcgis/lumina";
|
|
9
9
|
import { x as y } from "../../chunks/data.js";
|
|
10
|
-
import {
|
|
10
|
+
import { B as m, x as g, u as F } from "../../chunks/index.js";
|
|
11
11
|
import { r as P } from "../../chunks/popover-ui-utils.js";
|
|
12
12
|
import { d as $ } from "../../chunks/chart-object-literals.js";
|
|
13
13
|
const l = {
|
|
@@ -11,7 +11,7 @@ import { createRef as C, ref as h } 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
13
|
import { J as D } from "../../chunks/index2.js";
|
|
14
|
-
import {
|
|
14
|
+
import { x, c9 as S, b4 as T } from "../../chunks/index.js";
|
|
15
15
|
import { d as E } from "../../chunks/rest-js-object-literals.js";
|
|
16
16
|
import { a as r } from "../../chunks/common.js";
|
|
17
17
|
const s = {
|
|
@@ -4,7 +4,7 @@ import { cloneDeep as A, isEmpty as k, toNumber as z } from "es-toolkit/compat";
|
|
|
4
4
|
import { f as n, g as d } from "../../chunks/interfaces.js";
|
|
5
5
|
import { d as M, a as m } from "../../chunks/store.js";
|
|
6
6
|
import { i as v, m as g, U as u, n as L, D as w, s as y } from "../../chunks/chart-ui-utils.js";
|
|
7
|
-
import { l as $,
|
|
7
|
+
import { l as $, x as b, d3 as _ } from "../../chunks/index.js";
|
|
8
8
|
import { u as I } from "../../chunks/useT9n.js";
|
|
9
9
|
import { css as V, html as r } from "lit";
|
|
10
10
|
import { createRef as h, ref as c } from "lit/directives/ref.js";
|
|
@@ -9,7 +9,7 @@ import { createRef as h, ref as d } from "lit/directives/ref.js";
|
|
|
9
9
|
import { LitElement as S, createEvent as l, safeClassMap as r } from "@arcgis/lumina";
|
|
10
10
|
import { b as m } from "../../chunks/rest-js-object-literals.js";
|
|
11
11
|
import { e as $ } from "../../chunks/popover-ui-utils.js";
|
|
12
|
-
import { b4 as P,
|
|
12
|
+
import { b4 as P, x as b } from "../../chunks/index.js";
|
|
13
13
|
const n = {
|
|
14
14
|
scatterplotPopover: "scatter-plot-popover",
|
|
15
15
|
fillColor: "fill-color",
|