@arcgis/charts-components 5.0.0-next.160 → 5.0.0-next.162
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/{RZ6R7MN4.js → 277KZ5EH.js} +1 -1
- package/dist/cdn/{ZNEO3KDO.js → 35FGLAKV.js} +1 -1
- package/dist/cdn/{F4YTYW5V.js → 37TWMIC2.js} +1 -1
- package/dist/cdn/{ZRXBS332.js → 3TCYZ5OB.js} +19 -19
- package/dist/cdn/3UBEHDWK.js +2 -0
- package/dist/cdn/{OPLYTZOK.js → 4L3ESTCL.js} +1 -1
- package/dist/cdn/{FTVGPPNT.js → 53QDB3IL.js} +1 -1
- package/dist/cdn/{PN64D75Z.js → 62OZB7FK.js} +1 -1
- package/dist/cdn/{SWT4YIO7.js → 64DXX3FX.js} +1 -1
- package/dist/cdn/{VDGG6FNJ.js → 6AP262U4.js} +1 -1
- package/dist/cdn/{67GFPMNP.js → 7HCS3J2W.js} +1 -1
- package/dist/cdn/{6CXURON6.js → 7HDTPUIY.js} +1 -1
- package/dist/cdn/{HHE4YHFC.js → 7KAPOFBN.js} +1 -1
- package/dist/cdn/{RDBJ4EAL.js → 7LRO7RMI.js} +1 -1
- package/dist/cdn/{LTTLQY6M.js → 7WZV7AE3.js} +1 -1
- package/dist/cdn/{GOTYA4RS.js → 7XUX4ZTI.js} +1 -1
- package/dist/cdn/{BQRMDGR3.js → B5LXWQRU.js} +1 -1
- package/dist/cdn/{PBRZV4IF.js → BYAYB5LF.js} +1 -1
- package/dist/cdn/{665XYLCG.js → C72B5RSG.js} +1 -1
- package/dist/cdn/{MJRULOQL.js → CAXYDF5R.js} +1 -1
- package/dist/cdn/{IYF5UHWL.js → CBTHS6I5.js} +1 -1
- package/dist/cdn/{FO26BDGS.js → CIW6WMFK.js} +3 -3
- package/dist/cdn/{XGWFSBK7.js → CTDG3FOZ.js} +1 -1
- package/dist/cdn/{IWZKNPYZ.js → D2HQHUZF.js} +1 -1
- package/dist/cdn/{UR26ITDF.js → DACWGPLL.js} +1 -1
- package/dist/cdn/{LG32FAGS.js → DB3UL5LX.js} +1 -1
- package/dist/cdn/{VAXL6P2J.js → DHBBU7AG.js} +1 -1
- package/dist/cdn/{L7PMTZK6.js → DKC6E3QZ.js} +1 -1
- package/dist/cdn/{BNTX3CFT.js → DLT5ZL25.js} +1 -1
- package/dist/cdn/{QTV7HK2M.js → EYXP4YQW.js} +1 -1
- package/dist/cdn/{6YNI4VGB.js → FGMU7G6T.js} +1 -1
- package/dist/cdn/{PDPZOXDT.js → G7UITT5F.js} +1 -1
- package/dist/cdn/{XQG5VGS4.js → GB223HFN.js} +1 -1
- package/dist/cdn/{RGUQ44HW.js → GKUTVRCP.js} +1 -1
- package/dist/cdn/{SLX36JI6.js → GRUDYKUK.js} +1 -1
- package/dist/cdn/{MEXLQN6D.js → HAAT4GZV.js} +1 -1
- package/dist/cdn/{RKQXTPOC.js → IBDFXE7F.js} +1 -1
- package/dist/cdn/{UVFZBFUX.js → IBMHE4HG.js} +1 -1
- package/dist/cdn/{UR4FYTBG.js → IDMPL6T7.js} +1 -1
- package/dist/cdn/{HAS5TLQ3.js → IL22JCIC.js} +1 -1
- package/dist/cdn/{XJUEF5CF.js → ISB65KPT.js} +1 -1
- package/dist/cdn/{JGXIWN67.js → IYGUWGB6.js} +1 -1
- package/dist/cdn/{KGZ4OZTE.js → JASXULGK.js} +1 -1
- package/dist/cdn/{D26O56MQ.js → JBHDZEVD.js} +1 -1
- package/dist/cdn/{PWNEQTL7.js → KDGGKNBV.js} +1 -1
- package/dist/cdn/{M6Z5DNZU.js → KF4ILYWV.js} +1 -1
- package/dist/cdn/KHPBPGZW.js +2 -0
- package/dist/cdn/{X4EAJDXE.js → KLOSKKEF.js} +1 -1
- package/dist/cdn/{R7BXDBMM.js → KOC7VWEQ.js} +1 -1
- package/dist/cdn/{3WRKA6FV.js → KPBKHH3V.js} +1 -1
- package/dist/cdn/LRATJMH3.js +2 -0
- package/dist/cdn/{MG7QVBU6.js → MMVZJQGM.js} +1 -1
- package/dist/cdn/{JCKTUCRW.js → MSNUKDFY.js} +1 -1
- package/dist/cdn/{YV3ZTJIM.js → NLNJYC2E.js} +1 -1
- package/dist/cdn/{44H6FBHJ.js → NNTJCO7Q.js} +1 -1
- package/dist/cdn/{PKZLBYM2.js → OMR6RCJW.js} +1 -1
- package/dist/cdn/{KY27HRBB.js → OR2MF4BU.js} +1 -1
- package/dist/cdn/{CH42B5JL.js → OWTDESPZ.js} +1 -1
- package/dist/cdn/{PAYHZG5C.js → P3XTRZL3.js} +1 -1
- package/dist/cdn/{4PBJ7FUT.js → PQRPDV2N.js} +1 -1
- package/dist/cdn/{PPNZMZXU.js → PUO6TAT3.js} +1 -1
- package/dist/cdn/{4UKLAJSH.js → PZ5VL76M.js} +1 -1
- package/dist/cdn/{GBKRQ677.js → R7TVVBB7.js} +1 -1
- package/dist/cdn/{O73BKEVY.js → RKJFJ3VI.js} +1 -1
- package/dist/cdn/{2KLSYRIH.js → S3MAP4NY.js} +1 -1
- package/dist/cdn/{NCTDUS4J.js → SAKNSC4M.js} +1 -1
- package/dist/cdn/{7743VKV6.js → SW62HLGO.js} +1 -1
- package/dist/cdn/{VVKJ7NJ6.js → SW6ENGEK.js} +1 -1
- package/dist/cdn/{2BMO22B2.js → SZ2BB7ZG.js} +1 -1
- package/dist/cdn/{GJAATA35.js → TBYLHPGX.js} +1 -1
- package/dist/cdn/{A6KHSTDR.js → TCKDCNZ6.js} +1 -1
- package/dist/cdn/{L4YLTTHZ.js → TQRAYSWN.js} +1 -1
- package/dist/cdn/{XSF4MZ74.js → TUTT6I7D.js} +1 -1
- package/dist/cdn/{WQIYKKB6.js → UHB77RAE.js} +1 -1
- package/dist/cdn/{FQHGUWNW.js → UUZWRA5G.js} +1 -1
- package/dist/cdn/{IFGO4IOP.js → V65HT7NA.js} +1 -1
- package/dist/cdn/{PXVGQP6X.js → VMSL4CWI.js} +1 -1
- package/dist/cdn/{TO45SJXS.js → WCBXBXTZ.js} +1 -1
- package/dist/cdn/WNZXN6Y2.js +2 -0
- package/dist/cdn/{C7TDDQQD.js → WORQWDJQ.js} +1 -1
- package/dist/cdn/{B2VQPKK2.js → WTZ23CRY.js} +1 -1
- package/dist/cdn/{2KSPR6GE.js → XIFLK5EG.js} +1 -1
- package/dist/cdn/XNTLXVQF.js +2 -0
- package/dist/cdn/{UGPLQMQT.js → XQAUA2KI.js} +1 -1
- package/dist/cdn/{GGMJJ64F.js → Y7OQUVXC.js} +1 -1
- package/dist/cdn/{LX4URLJD.js → YHIJMVJQ.js} +1 -1
- package/dist/cdn/{WF4C6C2Y.js → YHVWLHT7.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/action-bar-utils.js +5 -5
- package/dist/chunks/axis-lines-symbol.js +14 -14
- package/dist/chunks/bar-chart-model.js +3 -3
- package/dist/chunks/box-plot-data.js +20 -20
- package/dist/chunks/box-plot-model.js +19 -19
- package/dist/chunks/chart-model.js +43 -43
- package/dist/chunks/chart-ui-utils2.js +3 -3
- package/dist/chunks/combo-bar-line-chart-model.js +7 -7
- package/dist/chunks/data-labels-symbol.js +1 -1
- package/dist/chunks/data.js +19 -19
- package/dist/chunks/gauge-model.js +16 -16
- package/dist/chunks/generate-x-axis-title.js +1 -1
- package/dist/chunks/heat-chart-model.js +12 -12
- package/dist/chunks/histogram-data.js +7 -7
- package/dist/chunks/histogram-model.js +4 -4
- package/dist/chunks/index.js +320 -318
- package/dist/chunks/index2.js +51 -51
- package/dist/chunks/index3.js +12 -12
- package/dist/chunks/line-chart-model.js +6 -6
- package/dist/chunks/model-setter.js +3 -3
- package/dist/chunks/model-with-guides.js +12 -12
- package/dist/chunks/model-with-tooltips.js +16 -16
- package/dist/chunks/model-with-y-guides.js +11 -11
- package/dist/chunks/negative-values-stacked-to-baseline.js +1 -1
- package/dist/chunks/pie-chart-data.js +25 -25
- package/dist/chunks/pie-chart-model.js +33 -33
- package/dist/chunks/radar-chart-model.js +4 -4
- package/dist/chunks/rotated-state.js +3 -3
- package/dist/chunks/scatterplot-model.js +18 -18
- package/dist/chunks/serial-chart-data.js +306 -300
- package/dist/chunks/serial-chart-model.js +13 -13
- package/dist/chunks/series-length.js +1 -1
- package/dist/chunks/series.js +7 -7
- package/dist/chunks/utils.js +36 -36
- package/dist/chunks/utils2.js +9 -9
- package/dist/chunks/web-component-utils.js +51 -51
- package/dist/components/arcgis-chart/customElement.js +1529 -1517
- package/dist/components/arcgis-charts-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +10 -10
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +8 -8
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +8 -8
- 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 +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +10 -10
- package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-general/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guide/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +5 -5
- 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-pie-chart-slices/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot/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/components/arcgis-charts-info-modal/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 +224 -223
- package/dist/utils/chart-config/utils/index.d.ts +8 -0
- package/package.json +3 -3
- package/dist/cdn/FIR7XZ4I.js +0 -2
- package/dist/cdn/GMI2B2TP.js +0 -2
- package/dist/cdn/IIQTQZRE.js +0 -2
- package/dist/cdn/V4BNMRTI.js +0 -2
- package/dist/cdn/YNDD5HWR.js +0 -2
|
@@ -12,7 +12,7 @@ import "@arcgis/toolkit/type";
|
|
|
12
12
|
import { W as I } from "../../chunks/series-types.js";
|
|
13
13
|
import { i as L } from "../../chunks/rotated-state.js";
|
|
14
14
|
import { A as t, a as o, D as e } from "../../chunks/index5.js";
|
|
15
|
-
import {
|
|
15
|
+
import { a3 as M } from "../../chunks/index.js";
|
|
16
16
|
function N(d) {
|
|
17
17
|
return d?.tagName.toLowerCase() === "arcgis-chart";
|
|
18
18
|
}
|
|
@@ -6,7 +6,7 @@ import "luxon";
|
|
|
6
6
|
import "d3-array";
|
|
7
7
|
import "@arcgis/toolkit/type";
|
|
8
8
|
import "../../chunks/series-types.js";
|
|
9
|
-
import {
|
|
9
|
+
import { bG as n, bI as c, bN as h } from "../../chunks/index.js";
|
|
10
10
|
import "@arcgis/core/Graphic.js";
|
|
11
11
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
12
12
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -5,7 +5,7 @@ import "@arcgis/toolkit/intl";
|
|
|
5
5
|
import { isEqual as f } from "lodash-es";
|
|
6
6
|
import "luxon";
|
|
7
7
|
import "d3-array";
|
|
8
|
-
import {
|
|
8
|
+
import { bL as I, bs as k, bt as O, b as D, cZ as y, c_ as E, dk as P, o as F, dh as B, bN as _, d4 as N } from "../../chunks/index.js";
|
|
9
9
|
import { a as g, i as A, W as p, m as b } from "../../chunks/series-types.js";
|
|
10
10
|
import "@arcgis/toolkit/type";
|
|
11
11
|
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
@@ -20,8 +20,8 @@ import { r as U } from "../../chunks/popover-ui-utils.js";
|
|
|
20
20
|
import { S as d } from "../../chunks/common.js";
|
|
21
21
|
import { repeat as V } from "lit/directives/repeat.js";
|
|
22
22
|
import { B as a, c as C } from "../../chunks/interfaces.js";
|
|
23
|
-
import { d as
|
|
24
|
-
import { a as
|
|
23
|
+
import { d as z, s as S, r as M, a as R } from "../../chunks/store.js";
|
|
24
|
+
import { a as K } from "../../chunks/chart-ui-utils2.js";
|
|
25
25
|
import { u as L } from "../../chunks/useT9n.js";
|
|
26
26
|
import { css as j, html as n, nothing as H } from "lit";
|
|
27
27
|
import { createRef as c, ref as m } from "lit/directives/ref.js";
|
|
@@ -39,13 +39,13 @@ const r = {
|
|
|
39
39
|
dimText: "dim-text",
|
|
40
40
|
intervalContainer: "interval-container"
|
|
41
41
|
}, G = j`.hide{display:none}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin);margin-top:var(--arcgis-charts-top-section-margin)}.label,.disabled-label{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-minor);justify-content:space-between}.time-binning-header{display:flex;font-weight:700;margin-left:.5rem;margin-right:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:auto}.disabled-label{pointer-events:none}.fab{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:1.5rem;justify-content:center}.link-container{display:flex;justify-content:flex-end}.list{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major)}.custom-sort-buttons{display:flex;justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}.mb-2{margin-bottom:var(--arcgis-charts-config-margin-minor)}.interval-container{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-minor)}`;
|
|
42
|
-
class
|
|
42
|
+
class J extends W {
|
|
43
43
|
constructor() {
|
|
44
44
|
super(...arguments), this._messages = L(), this.commonStrings = L({ name: "common", blocking: !0 }), this.barChartPopover = null, this.sortOrderElement = c(), this.aggregationElement = c(), this.categoryElement = c(), this.numericFieldsElement = c(), this.splitByFieldElement = c(), this.enableTimeBinningSwitch = c(), this.intervalAlignmentElement = c(), this.intervalElement = c(), this.originalCustomSortLabels = [], this.isCustomSortDisabled = !1, this.onBarChartDataChange = async (e) => {
|
|
45
45
|
try {
|
|
46
46
|
if (e.detail !== null && e.detail?.value !== void 0) {
|
|
47
47
|
const { contentKind: t } = e.detail, i = [...e.detail.value];
|
|
48
|
-
switch (
|
|
48
|
+
switch (z(S), t) {
|
|
49
49
|
case a.aggregation:
|
|
50
50
|
this.model.aggregationType = i[0] !== g.NoAggregation ? i[0] : g.NoAggregation;
|
|
51
51
|
break;
|
|
@@ -87,7 +87,7 @@ class Y extends W {
|
|
|
87
87
|
default:
|
|
88
88
|
break;
|
|
89
89
|
}
|
|
90
|
-
t !== a.interval && t !== a.intervalAlignment &&
|
|
90
|
+
t !== a.interval && t !== a.intervalAlignment && M(S);
|
|
91
91
|
}
|
|
92
92
|
} catch (t) {
|
|
93
93
|
throw this.arcgisChartsConfigDataChangeError.emit({ error: t, model: this.model }), t;
|
|
@@ -200,7 +200,7 @@ class Y extends W {
|
|
|
200
200
|
async updateCustomSortProps() {
|
|
201
201
|
const e = await this.model.getCustomSortValues();
|
|
202
202
|
this.originalCustomSortLabels = [...e];
|
|
203
|
-
const t = e.length >
|
|
203
|
+
const t = e.length > K.customSortLimit;
|
|
204
204
|
return t && (this.sortOrderElement.value && (this.sortOrderElement.value.label = this._messages.xAxisAsc), this.model.setSortOrder(d.xAxisAsc)), this.isCustomSortDisabled = t, e;
|
|
205
205
|
}
|
|
206
206
|
setupPopover(e) {
|
|
@@ -276,7 +276,7 @@ class Y extends W {
|
|
|
276
276
|
return t === p.CategoryAxisFormat && e === d.customSort && !this.isCustomSortDisabled ? n`<calcite-label class=${l(r.label)}><div class=${l(r.customSortButtons)}><div><calcite-button appearance=transparent .disabled=${i === 0 || i === -1 || this.selectedCustomSortItemId.trim() === ""} icon-start=arrow-bold-up id=${C.Up} kind=neutral scale=s @click=${this.onCustomSortItemMoved}></calcite-button><calcite-button appearance=transparent .disabled=${i === -1 || i === this.model.orderByList.length - 1 || this.selectedCustomSortItemId.trim() === ""} icon-start=arrow-bold-down id=${C.Down} kind=neutral scale=s @click=${this.onCustomSortItemMoved}></calcite-button></div><calcite-button @click=${this.resetToOriginalCustomSortLabels} .disabled=${f(this.model.orderByList, this.originalCustomSortLabels)} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button></div>${F(this.model.config.series ?? []) === B.BarAndLineFromFields ? this._messages.values : this._messages.category}${this.buildCustomSortList()}</calcite-label>` : null;
|
|
277
277
|
}
|
|
278
278
|
renderInterval() {
|
|
279
|
-
const e = (this.model.temporalBinningSize ?? 0) <= 0, t = this.model.temporalBinningSize ?? "", i = N(this.model.temporalBinningUnit ?? A.Second, this._messages) ?? "", s =
|
|
279
|
+
const e = (this.model.temporalBinningSize ?? 0) <= 0, t = this.model.temporalBinningSize ?? "", i = N(this.model.temporalBinningUnit ?? A.Second, this._messages) ?? "", s = R(S), o = {
|
|
280
280
|
size: this.model.temporalBinningSize,
|
|
281
281
|
unit: this.model.temporalBinningUnit
|
|
282
282
|
}, h = f(o, s);
|
|
@@ -297,7 +297,7 @@ class Y extends W {
|
|
|
297
297
|
return n`<calcite-label class=${l(r.label)}>${this._messages.category}${t}</calcite-label><calcite-label class=${l(r.label)}>${this._messages.aggregation}${e}</calcite-label><calcite-label class=${l(r.label)}>${this._messages.numericFields}${o}</calcite-label><div class=${l(r.fab)}><calcite-fab appearance=outline-fill kind=neutral scale=m .label=${this._messages.selectNumericFields} text-enabled .text=${this._messages.selectNumericFields} icon=plus @click=${this.onAddNumericFields}></calcite-fab></div><calcite-label class=${l(r.label)}><span class=${l(this.disableSplitBy ? r.dimText : "")}>${this._messages.splitBy}</span>${i}</calcite-label><div .hidden=${!this.shouldShowTimeBinning()}><h3 class=${l(r.timeBinningHeader)}>${this._messages.timeBinningOptions}</h3><calcite-label class=${l(r.label)} layout=inline-space-between>${this._messages.enableTemporalBinning}<calcite-switch .checked=${this.model.binTemporalData} @calciteSwitchChange=${this.onEnableTimeBinningChange} ${m(this.enableTimeBinningSwitch)}></calcite-switch></calcite-label><div .hidden=${!this.model.binTemporalData || !this.shouldShowTimeBinning()}><calcite-label class=${l(r.label)}>${this._messages.interval}${u}</calcite-label><calcite-label class=${l(r.label)}>${this._messages.intervalAlignment}${x}</calcite-label><calcite-label class=${l(r.label)} layout=inline-space-between>${this._messages.trimIncompleteInterval}<calcite-switch .checked=${this.model.trimIncompleteTimeInterval} @calciteSwitchChange=${this.onTrimIncompleteIntervalChange}></calcite-switch></calcite-label><calcite-label class=${l(r.label)}>${this._messages.emptyBins}${T}</calcite-label></div></div><calcite-label class=${l(r.label)} layout=inline-space-between>${this._messages.treatNullAsCategory}<calcite-switch .checked=${this.model.fetchNULLValues} @calciteSwitchChange=${this.onTreatNullAsCategoryChange}></calcite-switch></calcite-label><calcite-label class=${l(r.label)} layout=inline-space-between>${this._messages.showDataLabels}<calcite-switch .checked=${this.model.dataLabelsVisibility} @calciteSwitchChange=${this.onShowDataLabelsChange}></calcite-switch></calcite-label><calcite-label class=${l(this.model.getAxisValueFormat(0)?.type === p.DateAxisFormat ? r.disabledLabel : r.label)}>${this._messages.sortOrder}${s}</calcite-label>${h}`;
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
|
-
w("arcgis-charts-config-bar-chart-data",
|
|
300
|
+
w("arcgis-charts-config-bar-chart-data", J);
|
|
301
301
|
export {
|
|
302
|
-
|
|
302
|
+
J as ArcgisChartsConfigBarChartData
|
|
303
303
|
};
|
|
@@ -16,7 +16,7 @@ import { S as m } from "../../chunks/common.js";
|
|
|
16
16
|
import "@arcgis/toolkit/intl";
|
|
17
17
|
import "luxon";
|
|
18
18
|
import "d3-array";
|
|
19
|
-
import {
|
|
19
|
+
import { bs as E, bt as N, cO as z, cZ as w, bO as I, bN as B, bM as K, d4 as _ } from "../../chunks/index.js";
|
|
20
20
|
import "@arcgis/core/Graphic.js";
|
|
21
21
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
22
22
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -31,8 +31,8 @@ import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
|
31
31
|
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
32
32
|
import "@arcgis/core/time/TimeExtent.js";
|
|
33
33
|
import "@arcgis/core/core/promiseUtils.js";
|
|
34
|
-
import { e as
|
|
35
|
-
import { b as v, a as C, c as h, d as
|
|
34
|
+
import { e as O, p as H } from "../../chunks/popover-ui-utils.js";
|
|
35
|
+
import { b as v, a as C, c as h, d as M, e as U, s as j } from "../../chunks/chart-ui-utils2.js";
|
|
36
36
|
const W = x`.hide{display:none}.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}.pick-list-item-label{font-size:small}.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 = {
|
|
37
37
|
jsAppFlyout: "js-app-flyout",
|
|
38
38
|
name: "bar-chart-data-popover",
|
|
@@ -69,12 +69,12 @@ class R extends F {
|
|
|
69
69
|
updated() {
|
|
70
70
|
setTimeout(() => {
|
|
71
71
|
this.picklist.value?.setFocus();
|
|
72
|
-
}, C.PopoverTimer),
|
|
72
|
+
}, C.PopoverTimer), O(this.popoverElement.value, this.open), this.hasUpdated || setTimeout(() => {
|
|
73
73
|
this.popoverElement.value?.reposition();
|
|
74
74
|
}, C.PopoverTimer);
|
|
75
75
|
}
|
|
76
76
|
selectedContentChange(e, t) {
|
|
77
|
-
this.pickListHasChanged =
|
|
77
|
+
this.pickListHasChanged = H(e, t);
|
|
78
78
|
}
|
|
79
79
|
buildAggregationListItems() {
|
|
80
80
|
const e = this.isNoAggregationDisabled ? v.filter((t) => t !== T.NoAggregation) : v;
|
|
@@ -89,7 +89,7 @@ class R extends F {
|
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
destroyTooltip() {
|
|
92
|
-
|
|
92
|
+
M(this.tooltip);
|
|
93
93
|
}
|
|
94
94
|
buildSortOrder() {
|
|
95
95
|
const e = Object.keys(m);
|
|
@@ -162,7 +162,7 @@ class R extends F {
|
|
|
162
162
|
eventEmitter: this.arcgisChartsConfigBarChartDataPopoverChange,
|
|
163
163
|
contentKind: this.contentKind
|
|
164
164
|
};
|
|
165
|
-
|
|
165
|
+
U(e);
|
|
166
166
|
}
|
|
167
167
|
this.open = !1, this.arcgisChartsConfigPopoverClose.emit();
|
|
168
168
|
}
|
|
@@ -224,7 +224,7 @@ class R extends F {
|
|
|
224
224
|
p.Month,
|
|
225
225
|
p.Year
|
|
226
226
|
];
|
|
227
|
-
return a`<div><div class=${r(o.sizeSection)}><calcite-label scale=m>${this._messages.intervalSize}<calcite-input type=number scale=m min=1 step=any .value=${
|
|
227
|
+
return a`<div><div class=${r(o.sizeSection)}><calcite-label scale=m>${this._messages.intervalSize}<calcite-input type=number scale=m min=1 step=any .value=${j(e?.size, 1)} ${d(this.intervalSizeElement)}></calcite-input></calcite-label><calcite-label scale=m>${this._messages.intervalType}<calcite-select .label=${this._messages.intervalType ?? ""} ${d(this.intervalTypeElement)}>${t.map((i) => a`<calcite-option .value=${i} .label=${_(i, this._messages)} .selected=${e?.unit === i}></calcite-option>`)}</calcite-select></calcite-label><calcite-button class=${r(o.applyButton)} appearance=outline @click=${this.intervalChange}>${this._messages.apply}</calcite-button></div></div>`;
|
|
228
228
|
}
|
|
229
229
|
renderPopoverInfo() {
|
|
230
230
|
let e;
|
|
@@ -7,7 +7,7 @@ import "luxon";
|
|
|
7
7
|
import "d3-array";
|
|
8
8
|
import "@arcgis/toolkit/type";
|
|
9
9
|
import { e as r, a as u } from "../../chunks/series-types.js";
|
|
10
|
-
import {
|
|
10
|
+
import { dh as T, dk as C } from "../../chunks/index.js";
|
|
11
11
|
import "@arcgis/core/Graphic.js";
|
|
12
12
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
13
13
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import { c
|
|
3
|
-
import { css as
|
|
2
|
+
import { c } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as p, html as m } from "lit";
|
|
4
4
|
import "@arcgis/toolkit/intl";
|
|
5
5
|
import "lodash-es";
|
|
6
6
|
import "luxon";
|
|
7
7
|
import "d3-array";
|
|
8
8
|
import "@arcgis/toolkit/type";
|
|
9
9
|
import "../../chunks/series-types.js";
|
|
10
|
-
import {
|
|
10
|
+
import { aq as h } from "../../chunks/index.js";
|
|
11
11
|
import "@arcgis/core/Graphic.js";
|
|
12
12
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
13
13
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -33,7 +33,7 @@ import { LitElement as u, createEvent as o, safeClassMap as i } from "@arcgis/lu
|
|
|
33
33
|
const s = {
|
|
34
34
|
jsAppFlyout: "js-app-flyout",
|
|
35
35
|
panelChildrenContainer: "panel-children-container"
|
|
36
|
-
}, y =
|
|
36
|
+
}, y = p`.hide{display:none}.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{overflow-y:auto;width:min-content}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}`;
|
|
37
37
|
class x extends u {
|
|
38
38
|
constructor() {
|
|
39
39
|
super(...arguments), this._messages = C(), this.popoverElement = v(), this.arcgisChartsConfigPopoverClose = o(), this.arcgisChartsConfigSeriesPopoverColorChange = o(), this.arcgisChartsConfigSeriesPopoverNameChange = o();
|
|
@@ -72,7 +72,7 @@ class x extends u {
|
|
|
72
72
|
})}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${f(this.popoverElement)}><calcite-panel .heading=${this._messages.seriesElement} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div class=${i(s.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${t} @calciteInputInput=${this.seriesNameChange}></calcite-input></calcite-label></div><div class=${i(s.panelChildrenContainer)}><arcgis-charts-config-colors .heading=${this._messages.symbolColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></calcite-panel></calcite-popover></div>`;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
|
|
75
|
+
c("arcgis-charts-config-bar-chart-series-popover", x);
|
|
76
76
|
export {
|
|
77
77
|
x as ArcgisChartsConfigBarChartSeriesPopover
|
|
78
78
|
};
|
|
@@ -6,7 +6,7 @@ import "luxon";
|
|
|
6
6
|
import "d3-array";
|
|
7
7
|
import "@arcgis/toolkit/type";
|
|
8
8
|
import "../../chunks/series-types.js";
|
|
9
|
-
import {
|
|
9
|
+
import { bG as n, bI as c } from "../../chunks/index.js";
|
|
10
10
|
import "@arcgis/core/Graphic.js";
|
|
11
11
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
12
12
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -8,7 +8,7 @@ import "@arcgis/toolkit/intl";
|
|
|
8
8
|
import { isEqual as C } from "lodash-es";
|
|
9
9
|
import "luxon";
|
|
10
10
|
import "d3-array";
|
|
11
|
-
import {
|
|
11
|
+
import { ax as d, c_ as S, cZ as g } from "../../chunks/index.js";
|
|
12
12
|
import "@arcgis/core/Graphic.js";
|
|
13
13
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
14
14
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -10,11 +10,11 @@ import "@arcgis/toolkit/intl";
|
|
|
10
10
|
import "lodash-es";
|
|
11
11
|
import "luxon";
|
|
12
12
|
import "d3-array";
|
|
13
|
-
import {
|
|
13
|
+
import { cZ as $, bO as g, bM as y, cO as F } from "../../chunks/index.js";
|
|
14
14
|
import "@arcgis/core/Graphic.js";
|
|
15
15
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
16
16
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
17
|
-
import { substitute as
|
|
17
|
+
import { substitute as L } from "@arcgis/core/intl.js";
|
|
18
18
|
import "@arcgis/core/layers/support/FeatureFilter.js";
|
|
19
19
|
import "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
20
20
|
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
@@ -44,8 +44,8 @@ const o = {
|
|
|
44
44
|
sortMedian: "sort-median",
|
|
45
45
|
sortOrderPickList: "sort-order-pick-list",
|
|
46
46
|
panel: "panel"
|
|
47
|
-
},
|
|
48
|
-
class
|
|
47
|
+
}, M = T`.hide{display:none}.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}.pick-list-item-label{font-size:small}.sort-icon-color{color:#000}.sort-mean,.sort-median{transform:rotate(90deg)}.sort-order-pick-list{overflow-y:hidden}.panel{max-height:60vh}`;
|
|
48
|
+
class N extends E {
|
|
49
49
|
constructor() {
|
|
50
50
|
super(...arguments), this._messages = S(), this.picklist = b(), this.placement = "leading", this.popoverElement = b(), this.offsetDistance = -200, this.pickListHasChanged = !1, this.layerFieldsInfo = [], this.isCustomSortDisabled = !1, this.arcgisChartsConfigBoxPlotDataPopoverChange = C(), this.arcgisChartsConfigPopoverClose = C();
|
|
51
51
|
}
|
|
@@ -53,7 +53,7 @@ class K extends E {
|
|
|
53
53
|
this.properties = { messageOverrides: 0, headingTitle: 1, referenceElement: 0, open: 5, contentKind: 1, layerFieldsInfo: 0, isCustomSortDisabled: 5, selectedContent: 1 };
|
|
54
54
|
}
|
|
55
55
|
static {
|
|
56
|
-
this.styles =
|
|
56
|
+
this.styles = M;
|
|
57
57
|
}
|
|
58
58
|
async reposition() {
|
|
59
59
|
await this.popoverElement.value?.reposition();
|
|
@@ -169,7 +169,7 @@ class K extends E {
|
|
|
169
169
|
}
|
|
170
170
|
createTooltip(e) {
|
|
171
171
|
if (e.target?.label === this._messages.customSort && this.isCustomSortDisabled) {
|
|
172
|
-
const t = e.target, i =
|
|
172
|
+
const t = e.target, i = F(t), a = new Intl.NumberFormat(i).format(h.customSortLimit), c = L(this._messages.customSortLimit ?? "", {
|
|
173
173
|
totalLimit: a
|
|
174
174
|
});
|
|
175
175
|
this.tooltip = w(n`<calcite-tooltip style=${B({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${t} open placement=top>${c}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
|
|
@@ -217,7 +217,7 @@ class K extends E {
|
|
|
217
217
|
return this.contentKind === l.numericFields && (e = n`<div slot=footer><calcite-fab class=${m(o.fab)} appearance=outline-fill kind=neutral .icon=${void 0} .label=${this._messages.selectionDone} scale=s text-enabled .text=${this._messages.selectionDone} @click=${this.onNumericFieldSelectionDone}></calcite-fab></div>`), n`<div class=${m(o.jsAppFlyout)}><calcite-popover class=${m(o.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=${m(o.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${m(o.header)}>${this.headingTitle ?? ""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`;
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
|
-
k("arcgis-charts-config-box-plot-popover",
|
|
220
|
+
k("arcgis-charts-config-box-plot-popover", N);
|
|
221
221
|
export {
|
|
222
|
-
|
|
222
|
+
N as ArcgisChartsConfigBoxPlotPopover
|
|
223
223
|
};
|
|
@@ -8,7 +8,7 @@ import "luxon";
|
|
|
8
8
|
import "d3-array";
|
|
9
9
|
import "@arcgis/toolkit/type";
|
|
10
10
|
import { f as d } from "../../chunks/series-types.js";
|
|
11
|
-
import {
|
|
11
|
+
import { dh as S } from "../../chunks/index.js";
|
|
12
12
|
import "@arcgis/core/Graphic.js";
|
|
13
13
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
14
14
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -8,7 +8,7 @@ import "d3-array";
|
|
|
8
8
|
import "@arcgis/toolkit/type";
|
|
9
9
|
import "../../chunks/series-types.js";
|
|
10
10
|
import { f as v } from "../../chunks/rest-js-object-literals.js";
|
|
11
|
-
import {
|
|
11
|
+
import { aq as d } from "../../chunks/index.js";
|
|
12
12
|
import "@arcgis/core/Graphic.js";
|
|
13
13
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
14
14
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -8,7 +8,7 @@ import { i as H } from "../../chunks/rotated-state.js";
|
|
|
8
8
|
import "@arcgis/toolkit/intl";
|
|
9
9
|
import { isEqual as w } from "lodash-es";
|
|
10
10
|
import "luxon";
|
|
11
|
-
import {
|
|
11
|
+
import { _ as D, de as k, d0 as F, dk as z, dm as O, ag as R } from "../../chunks/index.js";
|
|
12
12
|
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
13
13
|
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
14
14
|
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
@@ -19,7 +19,7 @@ import "@arcgis/core/Graphic.js";
|
|
|
19
19
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
20
20
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
21
21
|
import "d3-array";
|
|
22
|
-
import { substitute as
|
|
22
|
+
import { substitute as G } from "@arcgis/core/intl.js";
|
|
23
23
|
import "@arcgis/core/layers/support/FeatureFilter.js";
|
|
24
24
|
import "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
25
25
|
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
@@ -30,10 +30,10 @@ import "@arcgis/core/core/promiseUtils.js";
|
|
|
30
30
|
import "@arcgis/toolkit/dom";
|
|
31
31
|
import { C as f } from "../../chunks/index5.js";
|
|
32
32
|
import { a as L } from "../../chunks/chart-ui-utils.js";
|
|
33
|
-
import { r as
|
|
33
|
+
import { r as X } from "../../chunks/popover-ui-utils.js";
|
|
34
34
|
import { C as l } from "../../chunks/interfaces.js";
|
|
35
|
-
import { LitElement as
|
|
36
|
-
import { css as
|
|
35
|
+
import { LitElement as Z, createEvent as y, renderElement as I, safeStyleMap as K, safeClassMap as d } from "@arcgis/lumina";
|
|
36
|
+
import { css as j, html as h } from "lit";
|
|
37
37
|
import { createRef as q, ref as Y } from "lit/directives/ref.js";
|
|
38
38
|
import { u as P } from "../../chunks/useT9n.js";
|
|
39
39
|
import { b as Q, s as x, g as J } from "../../chunks/store.js";
|
|
@@ -96,8 +96,8 @@ function ne(p, e) {
|
|
|
96
96
|
}), i.charts = t;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
const ce =
|
|
100
|
-
class he extends
|
|
99
|
+
const ce = j`: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}`;
|
|
100
|
+
class he extends Z {
|
|
101
101
|
constructor() {
|
|
102
102
|
super(), this.selectChartTypePopover = null, this.chartsListFlowItem = q(), this.supportedChartTypes = [
|
|
103
103
|
r.BarSeries,
|
|
@@ -344,7 +344,7 @@ class he extends X {
|
|
|
344
344
|
return this.modelList?.find((i) => i.chartId === e);
|
|
345
345
|
}
|
|
346
346
|
removeSelectChartTypePopover() {
|
|
347
|
-
this.selectChartTypePopover !== void 0 && (this.selectChartTypePopover?.remove(), this.selectChartTypePopover =
|
|
347
|
+
this.selectChartTypePopover !== void 0 && (this.selectChartTypePopover?.remove(), this.selectChartTypePopover = X(this.selectChartTypePopover));
|
|
348
348
|
}
|
|
349
349
|
clearPartialModels() {
|
|
350
350
|
this.modelList = this.modelList.filter((e) => !D(e.config));
|
|
@@ -402,7 +402,7 @@ class he extends X {
|
|
|
402
402
|
t = "";
|
|
403
403
|
break;
|
|
404
404
|
}
|
|
405
|
-
this.tooltip = I(h`<calcite-tooltip style=${
|
|
405
|
+
this.tooltip = I(h`<calcite-tooltip style=${K({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${i} open placement=top>${t}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
|
|
406
406
|
}
|
|
407
407
|
destroyTooltip() {
|
|
408
408
|
ie(this.tooltip);
|
|
@@ -421,7 +421,7 @@ class he extends X {
|
|
|
421
421
|
}
|
|
422
422
|
renderTabs() {
|
|
423
423
|
const e = this.getModel(this.selectedChartId);
|
|
424
|
-
return $("chart-edit", h`<calcite-flow-item .selected=${this.panelNumber >= 1 && !this.disableEditing} @calciteFlowItemBack=${this.onBackFlow} .heading=${this._messages[this.selectedPanel ?? l.Data]} .description=${this.currentChartTypeText !== "" && this._messages.pageFlowTitle !== void 0 ?
|
|
424
|
+
return $("chart-edit", h`<calcite-flow-item .selected=${this.panelNumber >= 1 && !this.disableEditing} @calciteFlowItemBack=${this.onBackFlow} .heading=${this._messages[this.selectedPanel ?? l.Data]} .description=${this.currentChartTypeText !== "" && this._messages.pageFlowTitle !== void 0 ? G(this._messages.pageFlowTitle, {
|
|
425
425
|
chartName: e?.titleText ?? this.currentChartTypeText,
|
|
426
426
|
layerName: e?.layer?.title ?? ""
|
|
427
427
|
}) : ""}>${e?.chartType !== void 0 ? h`<calcite-action-bar class=${d(m.tabBar)} layout=horizontal expand-disabled><calcite-action class=${d(m.tab)} icon=configure scale=s alignment=center .active=${this.selectedPanel === l.Data || this.selectedPanel === void 0} @click=${() => {
|
|
@@ -8,7 +8,7 @@ import "d3-array";
|
|
|
8
8
|
import "@arcgis/toolkit/type";
|
|
9
9
|
import "../../chunks/series-types.js";
|
|
10
10
|
import { f as u, h as s, g as c, i as r } from "../../chunks/rest-js-object-literals.js";
|
|
11
|
-
import {
|
|
11
|
+
import { aI as d } from "../../chunks/index.js";
|
|
12
12
|
import "@arcgis/core/Graphic.js";
|
|
13
13
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
14
14
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -13,7 +13,7 @@ import { LitElement as v, safeClassMap as i } from "@arcgis/lumina";
|
|
|
13
13
|
import "@arcgis/toolkit/intl";
|
|
14
14
|
import "luxon";
|
|
15
15
|
import "d3-array";
|
|
16
|
-
import {
|
|
16
|
+
import { _ as y } from "../../chunks/index.js";
|
|
17
17
|
import "@arcgis/core/Graphic.js";
|
|
18
18
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
19
19
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -5,7 +5,7 @@ import "@arcgis/toolkit/intl";
|
|
|
5
5
|
import { cloneDeep as E } from "lodash-es";
|
|
6
6
|
import "luxon";
|
|
7
7
|
import "d3-array";
|
|
8
|
-
import { i as p,
|
|
8
|
+
import { i as p, cK as N, cL as k, cM as F, aK as Z } from "../../chunks/index.js";
|
|
9
9
|
import "@esri/arcgis-html-sanitizer";
|
|
10
10
|
import { W as q } from "../../chunks/series-types.js";
|
|
11
11
|
import "@arcgis/toolkit/type";
|
|
@@ -22,10 +22,10 @@ import { r as V } from "../../chunks/popover-ui-utils.js";
|
|
|
22
22
|
import { m as G, d as W, g as U, h as L, U as S } from "../../chunks/chart-ui-utils2.js";
|
|
23
23
|
import { d as M } from "../../chunks/default.js";
|
|
24
24
|
import { g as Y } from "../../chunks/resource.js";
|
|
25
|
-
import { u as
|
|
25
|
+
import { u as K } from "../../chunks/useT9n.js";
|
|
26
26
|
import { css as j, html as c } from "lit";
|
|
27
27
|
import { createRef as h, ref as m } from "lit/directives/ref.js";
|
|
28
|
-
import { LitElement as H, createEvent as
|
|
28
|
+
import { LitElement as H, createEvent as J, renderElement as A, safeStyleMap as _, safeClassMap as o } from "@arcgis/lumina";
|
|
29
29
|
import { G as b } from "../../chunks/common.js";
|
|
30
30
|
import { l as Q, p as ee, q as te } from "../../chunks/type-guards.js";
|
|
31
31
|
const n = {
|
|
@@ -35,7 +35,7 @@ const n = {
|
|
|
35
35
|
}, ie = j`.hide{display:none}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column}.row{display:flex;flex-direction:row;column-gap:var(--arcgis-charts-inter-section-margin)}.column{display:flex;flex-direction:column;flex-wrap:wrap;flex-grow:1}.column>calcite-input{margin-bottom:.5rem;flex-grow:2}.column>calcite-input[type=number]{margin-bottom:.5rem}input{padding:.5rem}.label{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:var(--arcgis-charts-intra-section-margin);flex-grow:1}.color-picker{border:1px solid var(--calcite-color-border-2);box-shadow:none;margin-bottom:var(--arcgis-charts-inter-section-margin)}.delete-guide{display:flex;flex-direction:row-reverse;height:2rem;margin:0 1rem;font-weight:550}.delete-guide:dir(rtl){flex-direction:row}`;
|
|
36
36
|
class se extends H {
|
|
37
37
|
constructor() {
|
|
38
|
-
super(...arguments), this._messages =
|
|
38
|
+
super(...arguments), this._messages = K(), this.startCalciteInput = h(), this.endCalciteInput = h(), this.startDateCalciteInput = h(), this.endDateCalciteInput = h(), this.startTimeCalciteInput = h(), this.endTimeCalciteInput = h(), this.colorElement = h(), this.colorChange = (e) => {
|
|
39
39
|
const t = e.detail, i = this.model.getGuideStart(this.index, this.orientation), a = this.model.getGuideEnd(this.index, this.orientation);
|
|
40
40
|
if (p(i, a) === u.SLS) {
|
|
41
41
|
const l = E(M.style), s = this.model.getGuideStyle(this.index, this.orientation), r = {
|
|
@@ -58,7 +58,7 @@ class se extends H {
|
|
|
58
58
|
} else t?.color !== void 0 && this.setColor(t.color);
|
|
59
59
|
}, this.onModelConfigChange = () => {
|
|
60
60
|
this.requestUpdate();
|
|
61
|
-
}, this.guidePopover = null, this.latestGuidePosition = 0, this.arcgisChartsConfigGuideChange =
|
|
61
|
+
}, this.guidePopover = null, this.latestGuidePosition = 0, this.arcgisChartsConfigGuideChange = J();
|
|
62
62
|
}
|
|
63
63
|
static {
|
|
64
64
|
this.properties = { guidePopover: 16, messageOverrides: 0, model: 0, timeZone: 1, calculatedMinMaxBounds: 0, index: 9, orientation: 1, latestGuidePosition: 9 };
|
|
@@ -9,7 +9,7 @@ import "luxon";
|
|
|
9
9
|
import "d3-array";
|
|
10
10
|
import "@arcgis/toolkit/type";
|
|
11
11
|
import "../../chunks/series-types.js";
|
|
12
|
-
import {
|
|
12
|
+
import { bG as m, bI as c } from "../../chunks/index.js";
|
|
13
13
|
import "@arcgis/core/Graphic.js";
|
|
14
14
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
15
15
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -3,13 +3,13 @@ import { c as A } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { createClassBreaksRenderer as E } from "@arcgis/core/smartMapping/renderers/color.js";
|
|
4
4
|
import { getSchemes as M } from "@arcgis/core/smartMapping/symbology/color.js";
|
|
5
5
|
import * as I from "@arcgis/core/smartMapping/symbology/support/colorRamps.js";
|
|
6
|
-
import { LitElement as P, createEvent as w, renderElement as
|
|
7
|
-
import { getElementLocale as
|
|
6
|
+
import { LitElement as P, createEvent as w, renderElement as _, safeClassMap as n, safeStyleMap as $ } from "@arcgis/lumina";
|
|
7
|
+
import { getElementLocale as O, normalizeLocale as H, defaultLocale as L } from "@arcgis/toolkit/intl";
|
|
8
8
|
import { css as N, html as r } from "lit";
|
|
9
9
|
import { createRef as p, ref as g } from "lit/directives/ref.js";
|
|
10
10
|
import { isEqual as B, cloneDeep as U, parseInt as W, camelCase as V } from "lodash-es";
|
|
11
11
|
import { DateTime as K } from "luxon";
|
|
12
|
-
import {
|
|
12
|
+
import { bL as z, _ as q, bs as j, dn as X, ay as k, cZ as x, d8 as Z, dk as Y, az as C } from "../../chunks/index.js";
|
|
13
13
|
import { u as R } from "../../chunks/useT9n.js";
|
|
14
14
|
import { d as i, W as v } from "../../chunks/interfaces.js";
|
|
15
15
|
import { H as G } from "../../chunks/common.js";
|
|
@@ -57,7 +57,7 @@ class me extends P {
|
|
|
57
57
|
this.model.xAxisField = t, this.setDefaultPropertiesForCalendarHeatChart();
|
|
58
58
|
break;
|
|
59
59
|
case i.numericFields:
|
|
60
|
-
this.model.numericFields = [t.trim() || ""], (this.model.numericFields ?? []).length > 0 && this.model.aggregationType === y.Count && this.model.numericFields[0] !==
|
|
60
|
+
this.model.numericFields = [t.trim() || ""], (this.model.numericFields ?? []).length > 0 && this.model.aggregationType === y.Count && this.model.numericFields[0] !== z(this.model.layer).idField && (this.model.aggregationType = y.Sum);
|
|
61
61
|
break;
|
|
62
62
|
case i.calendarType: {
|
|
63
63
|
switch (t) {
|
|
@@ -85,7 +85,7 @@ class me extends P {
|
|
|
85
85
|
}, l = {
|
|
86
86
|
type: h.CalendarDateParts,
|
|
87
87
|
unit: u.DayOfWeek
|
|
88
|
-
}, { lang: o } =
|
|
88
|
+
}, { lang: o } = O(this.el ?? document.documentElement), m = H(o), d = K.local().setLocale(o).startOf("week", { useLocaleWeeks: m !== L }).weekday;
|
|
89
89
|
this.model.firstDayOfWeek = d, this.model.xTemporalBinning = s, this.model.setAxisValueFormat(0, {
|
|
90
90
|
type: h.DateAxisFormat,
|
|
91
91
|
intlOptions: { hour: "numeric", hour12: !0 }
|
|
@@ -161,7 +161,7 @@ class me extends P {
|
|
|
161
161
|
this.modelChange(this.model), this.onModelConfigChange();
|
|
162
162
|
}
|
|
163
163
|
willUpdate(e) {
|
|
164
|
-
e.has("model") && this.modelChange(this.model, e.get("model")), this.aggregationLabel =
|
|
164
|
+
e.has("model") && this.modelChange(this.model, e.get("model")), this.aggregationLabel = j(this.model.aggregationType, this.commonStrings), e.has("chartData") && (this.updateChartRenderer = this.model.chartRenderer === void 0 || X(this.model.chartRenderer) === ee.ClassBreaks);
|
|
165
165
|
}
|
|
166
166
|
updated(e) {
|
|
167
167
|
e.has("updateChartRenderer") && this.updateChartRenderer && this.generateAndUpdateClassBreaks();
|
|
@@ -259,7 +259,7 @@ class me extends P {
|
|
|
259
259
|
}
|
|
260
260
|
onBreaksCountChange(e) {
|
|
261
261
|
let a = W(e.target.value);
|
|
262
|
-
a < C.min ? a = C.min : a > C.max && (a = C.max),
|
|
262
|
+
a < C.min ? a = C.min : a > C.max && (a = C.max), Z(a) && (this.breaksCountElement.value && (this.breaksCountElement.value.value = a.toString()), this.model.breaksCount = a, this.updateChartRenderer = !0);
|
|
263
263
|
}
|
|
264
264
|
onAggregationSelect(e) {
|
|
265
265
|
this.contentKind = i.aggregation, this.setupPopover(e);
|
|
@@ -307,7 +307,7 @@ class me extends P {
|
|
|
307
307
|
a = e.target, t = this._messages.null;
|
|
308
308
|
break;
|
|
309
309
|
}
|
|
310
|
-
this.heatChartPopover =
|
|
310
|
+
this.heatChartPopover = _(r`<arcgis-charts-config-heat-chart-popover .headingTitle=${t} .referenceElement=${a} open .contentKind=${this.contentKind} .model=${this.model} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${s} @arcgisChartsConfigHeatChartDataPopoverChange=${this.onHeatChartDataPopoverChange} @arcgisChartsConfigPopoverClose=${this.popoverClose} .colorRamps=${this.availableColorRamps} @arcgisChartsConfigHeatChartColorRampChange=${this.onColorRampSelection} @arcgisChartsConfigPopoverEmptyCellColorChange=${this.onEmptyCellColorChange} @arcgisChartsConfigPopoverEmptyCellNameChange=${this.onEmptyCellNameChange} .isFlipped=${l}></arcgis-charts-config-heat-chart-popover>`), !document.body.contains(this.heatChartPopover) && this.heatChartPopover !== null && document.body.appendChild(this.heatChartPopover);
|
|
311
311
|
}
|
|
312
312
|
removeHeatChartDataPopover() {
|
|
313
313
|
this.heatChartPopover !== null && (this.heatChartPopover.open = !1, this.heatChartPopover = le(this.heatChartPopover));
|
|
@@ -370,7 +370,7 @@ class me extends P {
|
|
|
370
370
|
return r`<calcite-table caption="Simple table"><calcite-table-row slot=table-header><calcite-table-header .heading=${this._messages.symbol}></calcite-table-header><calcite-table-header .heading=${this._messages.upperValue}></calcite-table-header></calcite-table-row>${e.map((a) => r`<calcite-table-row><calcite-table-cell><calcite-swatch label scale=m .color=${`rgba(${a.symbol.color?.[0]}, ${a.symbol.color?.[1]}, ${a.symbol.color?.[2]}, ${a.symbol.color?.[3] / 255})`}></calcite-swatch></calcite-table-cell><calcite-table-cell>${a.label}</calcite-table-cell></calcite-table-row>`)}</calcite-table>`;
|
|
371
371
|
}
|
|
372
372
|
renderNullUI() {
|
|
373
|
-
const e = this.model.emptyCell, a = this._messages.null, t = e?.symbol?.color ??
|
|
373
|
+
const e = this.model.emptyCell, a = this._messages.null, t = e?.symbol?.color ?? Y.grayColor, [s, l, o, m] = [...t], d = `rgba(${s},${l},${o},${m / 255})`;
|
|
374
374
|
return r`<calcite-list label class=${n(c.list)} selection-mode=none ${g(this.nullElement)}><calcite-list-item .label=${a} .value=${a} @calciteListItemSelect=${this.onNullSelect}><calcite-icon icon=square-f style=${$({ color: d })} slot=content-end></calcite-icon></calcite-list-item></calcite-list>`;
|
|
375
375
|
}
|
|
376
376
|
renderEmptyBins() {
|
|
@@ -7,7 +7,7 @@ import L from "@arcgis/core/Color.js";
|
|
|
7
7
|
import { LitElement as P, createEvent as h, safeClassMap as r, nothing as g, safeStyleMap as S } from "@arcgis/lumina";
|
|
8
8
|
import { createRef as u, ref as p } from "lit/directives/ref.js";
|
|
9
9
|
import { isEqual as A } from "lodash-es";
|
|
10
|
-
import {
|
|
10
|
+
import { bs as D, cZ as E, bN as _, bM as N, dk as b, aq as M } from "../../chunks/index.js";
|
|
11
11
|
import { u as v } from "../../chunks/useT9n.js";
|
|
12
12
|
import { d as c, W as $ } from "../../chunks/interfaces.js";
|
|
13
13
|
import "@arcgis/toolkit/type";
|
|
@@ -32,10 +32,10 @@ import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
|
32
32
|
import "@arcgis/core/time/TimeExtent.js";
|
|
33
33
|
import "@arcgis/core/core/promiseUtils.js";
|
|
34
34
|
import "@arcgis/toolkit/dom";
|
|
35
|
-
import { e as
|
|
35
|
+
import { e as O } from "../../chunks/popover-ui-utils.js";
|
|
36
36
|
import { b as x, a as k, c as m } from "../../chunks/chart-ui-utils2.js";
|
|
37
37
|
import { C as R, a as I } from "../../chunks/class-breaks.js";
|
|
38
|
-
const
|
|
38
|
+
const j = F`.hide{display:none}.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 = {
|
|
39
39
|
jsAppFlyout: "js-app-flyout",
|
|
40
40
|
name: "bar-chart-data-popover",
|
|
41
41
|
header: "header",
|
|
@@ -61,7 +61,7 @@ class q extends P {
|
|
|
61
61
|
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 };
|
|
62
62
|
}
|
|
63
63
|
static {
|
|
64
|
-
this.styles =
|
|
64
|
+
this.styles = j;
|
|
65
65
|
}
|
|
66
66
|
async reposition() {
|
|
67
67
|
await this.popoverElement.value?.reposition();
|
|
@@ -73,7 +73,7 @@ class q extends P {
|
|
|
73
73
|
updated() {
|
|
74
74
|
setTimeout(() => {
|
|
75
75
|
this.picklist.value?.setFocus();
|
|
76
|
-
}, k.PopoverTimer),
|
|
76
|
+
}, k.PopoverTimer), O(this.popoverElement.value, this.open), this.hasUpdated || setTimeout(() => {
|
|
77
77
|
this.popoverElement.value?.reposition();
|
|
78
78
|
}, k.PopoverTimer);
|
|
79
79
|
}
|
|
@@ -91,7 +91,7 @@ class q extends P {
|
|
|
91
91
|
a.push(i);
|
|
92
92
|
for (let o = 0; o < t; o += 1) {
|
|
93
93
|
const n = this.layerFieldsInfo?.[o];
|
|
94
|
-
n &&
|
|
94
|
+
n && N(n) && a.push(this.buildPickListItem(n));
|
|
95
95
|
}
|
|
96
96
|
break;
|
|
97
97
|
}
|
|
@@ -184,7 +184,7 @@ class q extends P {
|
|
|
184
184
|
this.model.emptyCellText !== t && (this.model.emptyCellText = t, this.arcgisChartsConfigPopoverEmptyCellNameChange.emit({ name: t }));
|
|
185
185
|
}
|
|
186
186
|
colorChange(e) {
|
|
187
|
-
const t = e instanceof CustomEvent ? e.detail : e, [a, i, o] = t, n =
|
|
187
|
+
const t = e instanceof CustomEvent ? e.detail : e, [a, i, o] = t, n = M * 255;
|
|
188
188
|
this.arcgisChartsConfigPopoverEmptyCellColorChange.emit({ color: [a, i, o, n] });
|
|
189
189
|
}
|
|
190
190
|
renderAggregationType() {
|
|
@@ -6,7 +6,7 @@ import "luxon";
|
|
|
6
6
|
import "d3-array";
|
|
7
7
|
import "@arcgis/toolkit/type";
|
|
8
8
|
import "../../chunks/series-types.js";
|
|
9
|
-
import {
|
|
9
|
+
import { bG as n, bI as h } from "../../chunks/index.js";
|
|
10
10
|
import "@arcgis/core/Graphic.js";
|
|
11
11
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
12
12
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|