@arcgis/charts-components 6.0.0-next.0 → 6.0.0-next.1
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/{54DSGXZ4.js → 2JIOGP7R.js} +1 -1
- package/dist/cdn/{ZMWTAWSP.js → 32URMI5E.js} +1 -1
- package/dist/cdn/3C5377V2.js +2 -0
- package/dist/cdn/{JU7EYMOJ.js → 3EOTHJWP.js} +1 -1
- package/dist/cdn/{Q5RYOZ3L.js → 3U6UEUC3.js} +1 -1
- package/dist/cdn/{K63HGT6O.js → 3V7MD72Y.js} +1 -1
- package/dist/cdn/{BWOIRNCD.js → 4IZR4ZL4.js} +1 -1
- package/dist/cdn/{SXRIEUIN.js → 4R6YXEBJ.js} +1 -1
- package/dist/cdn/{FRFHLGO7.js → 53QW4BYR.js} +1 -1
- package/dist/cdn/{XAUKPCFO.js → 5CXU3NKH.js} +1 -1
- package/dist/cdn/{KK3WP5IA.js → 5DHZV7X2.js} +1 -1
- package/dist/cdn/{JCLUY2EI.js → 64VXZM5A.js} +1 -1
- package/dist/cdn/{O4NXWUXR.js → 6RB4RYGN.js} +1 -1
- package/dist/cdn/{PF5QGO7P.js → 7TK4GSLV.js} +1 -1
- package/dist/cdn/{THXGBWDW.js → A5EZTVKV.js} +1 -1
- package/dist/cdn/{AHFXCORG.js → AKW3NHSY.js} +1 -1
- package/dist/cdn/{AQQSX6MB.js → AL6ZEHZK.js} +1 -1
- package/dist/cdn/{Y5JSJPHW.js → AX6KSFYK.js} +1 -1
- package/dist/cdn/{WQAPQIKI.js → B5SRZGC2.js} +1 -1
- package/dist/cdn/{XOCPNNLY.js → BF2W5NTN.js} +1 -1
- package/dist/cdn/{ANVRAFUS.js → BRBAHSCB.js} +1 -1
- package/dist/cdn/{EE7HRPYS.js → BRW7VZ2C.js} +1 -1
- package/dist/cdn/{7YFEZ5NG.js → C7WUBEMI.js} +1 -1
- package/dist/cdn/{BZLDCR76.js → CB6RALFJ.js} +1 -1
- package/dist/cdn/{METVD2N2.js → CE2OEL6G.js} +1 -1
- package/dist/cdn/DA5DYK4X.js +2 -0
- package/dist/cdn/DP3ALDSI.js +2 -0
- package/dist/cdn/{4LJXFMPL.js → DPXBPL2Y.js} +1 -1
- package/dist/cdn/{SNUNNPBG.js → DUIC7PGW.js} +1 -1
- package/dist/cdn/{6UH6D4P7.js → EETR5IRC.js} +1 -1
- package/dist/cdn/{FAPVUQXJ.js → EHD6HNUK.js} +1 -1
- package/dist/cdn/{NG66OGBO.js → EJAZWHRG.js} +1 -1
- package/dist/cdn/{MNR7SALB.js → EWFT2JV5.js} +1 -1
- package/dist/cdn/{PLGLTSHE.js → EWS4XDX5.js} +1 -1
- package/dist/cdn/{P2WGODPL.js → FI67QJAR.js} +1 -1
- package/dist/cdn/{K6EMFLBK.js → FTR2IWDM.js} +1 -1
- package/dist/cdn/{WONOW5WD.js → G2T43FGA.js} +1 -1
- package/dist/cdn/{KMB4KGP7.js → GPFDXMZV.js} +1 -1
- package/dist/cdn/{CRYNT7GM.js → GUU5K7KZ.js} +1 -1
- package/dist/cdn/{GBC7DUU3.js → HGCITTOQ.js} +1 -1
- package/dist/cdn/{HXUOAXW6.js → HPZNKDNN.js} +1 -1
- package/dist/cdn/{VMMRXTAY.js → HRYM365L.js} +1 -1
- package/dist/cdn/{RL2LPFWQ.js → IJGJ7LW4.js} +1 -1
- package/dist/cdn/{PIXQELBO.js → J24X7IAD.js} +1 -1
- package/dist/cdn/{XHCJKB27.js → J7CDASEM.js} +1 -1
- package/dist/cdn/{65FYSCF2.js → JBGGX4GF.js} +1 -1
- package/dist/cdn/{N2EY7RDB.js → JC3KQC4M.js} +1 -1
- package/dist/cdn/{4KVE3AGY.js → JCSGUVJN.js} +1 -1
- package/dist/cdn/{RBXMEHR5.js → JZCSDGTO.js} +1 -1
- package/dist/cdn/{LALIPDHB.js → K7KTLLN3.js} +1 -1
- package/dist/cdn/{NKYFX3GN.js → KCJ3UIVJ.js} +1 -1
- package/dist/cdn/{KCBT3VDQ.js → KFS2IDLJ.js} +1 -1
- package/dist/cdn/{F2W66ULA.js → KOPGJ6GL.js} +1 -1
- package/dist/cdn/{TBOCYB3D.js → KWJG3BJA.js} +1 -1
- package/dist/cdn/{VZUSTDAS.js → L6ACX7PK.js} +2 -2
- package/dist/cdn/{ILJVVN6I.js → L6AHDF5D.js} +1 -1
- package/dist/cdn/{KTYMZ5LM.js → L7USVDCR.js} +1 -1
- package/dist/cdn/{PPBZHYSA.js → M4G56EOH.js} +1 -1
- package/dist/cdn/{DGD5IYSW.js → NNIAFAEK.js} +1 -1
- package/dist/cdn/{ARNTHMJA.js → O3VCA2HA.js} +1 -1
- package/dist/cdn/{E2KUCER2.js → O7QPA3NH.js} +1 -1
- package/dist/cdn/{LYKIQ7DH.js → ORTPYOO7.js} +1 -1
- package/dist/cdn/{BMH7K2GR.js → OWAETVFH.js} +1 -1
- package/dist/cdn/{WZBDHR5B.js → PXKD656W.js} +1 -1
- package/dist/cdn/{6TELFJWN.js → QKPEMJRH.js} +1 -1
- package/dist/cdn/{2VXXSM6V.js → QXIFJISA.js} +1 -1
- package/dist/cdn/{N7UJDGTB.js → R44U46BF.js} +1 -1
- package/dist/cdn/{HYOZOWIV.js → RB2DJJAF.js} +1 -1
- package/dist/cdn/{FJR2CXBV.js → RV2J4OPJ.js} +1 -1
- package/dist/cdn/{B7EFM4EC.js → TLPP547P.js} +1 -1
- package/dist/cdn/{2V5NOKVR.js → TOFHR6G7.js} +1 -1
- package/dist/cdn/{Y4D3RT7S.js → TPFFIATK.js} +1 -1
- package/dist/cdn/{QOCXO3SH.js → U64ICCSZ.js} +1 -1
- package/dist/cdn/{QHYCUUOS.js → UW35QKDS.js} +2 -2
- package/dist/cdn/{UTDG54SS.js → VB6XKC4W.js} +1 -1
- package/dist/cdn/{YPOUCQL3.js → VCER6DFQ.js} +1 -1
- package/dist/cdn/{LXJ5MUWA.js → W5Z2EI2D.js} +1 -1
- package/dist/cdn/{3THTYYIE.js → WAUIROBC.js} +1 -1
- package/dist/cdn/{53BLOO76.js → WYDO2IF4.js} +1 -1
- package/dist/cdn/{45W7WOG7.js → XE6MQ6IR.js} +1 -1
- package/dist/cdn/{IRONVMYK.js → XEUHT7JB.js} +14 -14
- package/dist/cdn/{GONLVB3N.js → ZLI33FIZ.js} +1 -1
- package/dist/cdn/{ET6ADBCU.js → ZQPCVZ2Z.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 +58 -56
- package/dist/chunks/box-plot-data.js +1 -1
- package/dist/chunks/box-plot-model.js +1 -1
- package/dist/chunks/chart-ui-utils.js +1 -1
- package/dist/chunks/class-breaks.js +1 -1
- package/dist/chunks/combo-bar-line-chart-model.js +1 -1
- package/dist/chunks/data.js +23 -23
- package/dist/chunks/index.js +164 -157
- package/dist/chunks/index4.js +1 -1
- package/dist/chunks/model-setter.js +5 -5
- package/dist/chunks/negative-values-stacked-to-baseline.js +1 -1
- package/dist/chunks/radar-chart-model.js +35 -22
- package/dist/chunks/rounded-corners.js +1 -1
- package/dist/chunks/scatterplot-model.js +5 -5
- package/dist/chunks/serial-chart-data.js +29 -29
- package/dist/chunks/serial-chart-model.js +5 -5
- package/dist/chunks/type-guards.js +7 -7
- package/dist/chunks/utils.js +7 -7
- package/dist/chunks/web-component-utils.js +41 -41
- package/dist/chunks/x-bounds.js +5 -5
- package/dist/components/arcgis-chart/customElement.js +460 -460
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +10 -10
- package/dist/components/arcgis-charts-config-format/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guide/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-aoi/customElement.js +39 -27
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/index.js +253 -252
- package/dist/model/radar-chart-model/radar-chart-model.d.ts +6 -0
- package/dist/utils/chart-config/converter/index.js +20 -20
- package/dist/utils/chart-config/utils/index.d.ts +10 -1
- package/package.json +4 -4
- package/dist/cdn/AEJUKKCS.js +0 -2
- package/dist/cdn/IKQYLTZL.js +0 -2
- package/dist/cdn/VB2SRFYU.js +0 -2
|
@@ -4,7 +4,7 @@ import { LitElement as g, createEvent as f } from "@arcgis/lumina";
|
|
|
4
4
|
import { css as m, html as s } from "lit";
|
|
5
5
|
import { isEqual as d } from "es-toolkit/compat";
|
|
6
6
|
import { C as t } from "../../chunks/interfaces.js";
|
|
7
|
-
import { i as c, ar as p,
|
|
7
|
+
import { i as c, ar as p, bM as u, bN as C, bg as y, u as F, aR as v } from "../../chunks/index.js";
|
|
8
8
|
const b = m`:host{margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
9
9
|
class I extends g {
|
|
10
10
|
constructor() {
|
|
@@ -10,9 +10,9 @@ import { u as F } from "../../chunks/useT9n.js";
|
|
|
10
10
|
import { css as _, html as n, nothing as N } from "lit";
|
|
11
11
|
import { createRef as c, ref as m } from "lit/directives/ref.js";
|
|
12
12
|
import { LitElement as U, createEvent as v, safeClassMap as l, renderElement as V } from "@arcgis/lumina";
|
|
13
|
-
import { b as $, o as z, C as
|
|
13
|
+
import { b as $, o as z, C as K, a as B, p as M } from "../../chunks/index2.js";
|
|
14
14
|
import { x as R } from "../../chunks/data.js";
|
|
15
|
-
import { t as A,
|
|
15
|
+
import { t as A, bK as j, q as L, aR as H } from "../../chunks/index.js";
|
|
16
16
|
import { J as q, K as W } from "../../chunks/index3.js";
|
|
17
17
|
import { r as Z } from "../../chunks/popover-ui-utils.js";
|
|
18
18
|
import { d as h, e as x, a as f, h as y } from "../../chunks/chart-object-literals.js";
|
|
@@ -28,8 +28,8 @@ const r = {
|
|
|
28
28
|
customSortButtons: "custom-sort-buttons",
|
|
29
29
|
dimText: "dim-text",
|
|
30
30
|
intervalContainer: "interval-container"
|
|
31
|
-
},
|
|
32
|
-
class
|
|
31
|
+
}, G = _`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;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);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)}.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)}`;
|
|
32
|
+
class J extends U {
|
|
33
33
|
constructor() {
|
|
34
34
|
super(...arguments), this._messages = F(), this.commonStrings = F({ 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) => {
|
|
35
35
|
try {
|
|
@@ -95,7 +95,7 @@ class G extends U {
|
|
|
95
95
|
this.properties = { selectedCustomSortItemId: 16, aggregationLabel: 16, timeAggregationLabel: 16, disableSplitBy: 16, sortOrderResetCounter: 16, messageOverrides: 0, model: 0, layerFieldsInfo: 0, open: 5 };
|
|
96
96
|
}
|
|
97
97
|
static {
|
|
98
|
-
this.styles =
|
|
98
|
+
this.styles = G;
|
|
99
99
|
}
|
|
100
100
|
load() {
|
|
101
101
|
this.modelChange(this.model), this.onModelConfigChange(), this.currentDataFilter = this.model.getDataFilters(), this.updateCustomSortProps();
|
|
@@ -142,7 +142,7 @@ class G extends U {
|
|
|
142
142
|
}
|
|
143
143
|
buildCustomSortListItems() {
|
|
144
144
|
return w(this.model.orderByList, (t) => t, (t) => {
|
|
145
|
-
const i = z(this.layerFieldsInfo, t), o = this.model.nullCategory !== void 0 && t.trim() ===
|
|
145
|
+
const i = z(this.layerFieldsInfo, t), o = this.model.nullCategory !== void 0 && t.trim() === K.nullCategory?.text?.trim();
|
|
146
146
|
return n`<calcite-list-item id=${t ?? N} .label=${t} .closed=${o} .description=${i} .value=${t} .selected=${this.selectedCustomSortItemId === t} @calciteListItemSelect=${this.onCustomSortItemSelected}><calcite-icon slot=content-end></calcite-icon></calcite-list-item>`;
|
|
147
147
|
});
|
|
148
148
|
}
|
|
@@ -271,7 +271,7 @@ class G extends U {
|
|
|
271
271
|
return t === f.CategoryAxisFormat && e === g.customSort && !this.isCustomSortDisabled ? n`<calcite-label class=${l(r.label)}><div class=${l(r.customSortButtons)}><div><calcite-button appearance=transparent .disabled=${i === 0 || i === -1 || this.selectedCustomSortItemId.trim() === ""} icon-start=arrow-bold-up id=${C.Up} kind=neutral scale=s @click=${this.onCustomSortItemMoved}></calcite-button><calcite-button appearance=transparent .disabled=${i === -1 || i === this.model.orderByList.length - 1 || this.selectedCustomSortItemId.trim() === ""} icon-start=arrow-bold-down id=${C.Down} kind=neutral scale=s @click=${this.onCustomSortItemMoved}></calcite-button></div><calcite-button @click=${this.resetToOriginalCustomSortLabels} .disabled=${S(this.model.orderByList, this.originalCustomSortLabels)} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button></div>${L(this.model.config.series ?? []) === B.BarAndLineFromFields ? this._messages.values : this._messages.category}${this.buildCustomSortList()}</calcite-label>` : null;
|
|
272
272
|
}
|
|
273
273
|
renderInterval() {
|
|
274
|
-
const e = (this.model.temporalBinningSize ?? 0) <= 0, t = this.model.temporalBinningSize ?? "", i =
|
|
274
|
+
const e = (this.model.temporalBinningSize ?? 0) <= 0, t = this.model.temporalBinningSize ?? "", i = M(this.model.temporalBinningUnit ?? x.Second, this._messages) ?? "", s = E(d), o = {
|
|
275
275
|
size: this.model.temporalBinningSize,
|
|
276
276
|
unit: this.model.temporalBinningUnit
|
|
277
277
|
}, u = S(o, s);
|
|
@@ -292,7 +292,7 @@ class G extends U {
|
|
|
292
292
|
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}${b}</calcite-label><calcite-label class=${l(r.label)}>${this._messages.intervalAlignment}${k}</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>${this.model.aggregationType !== h.Count ? n`<calcite-label class=${l(r.label)}>${this._messages.emptyBins}${T}</calcite-label>` : null}</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 === f.DateAxisFormat ? r.disabledLabel : r.label)}>${this._messages.sortOrder}${s}</calcite-label>${u}`;
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
|
-
D("arcgis-charts-config-bar-chart-data",
|
|
295
|
+
D("arcgis-charts-config-bar-chart-data", J);
|
|
296
296
|
export {
|
|
297
|
-
|
|
297
|
+
J as ArcgisChartsConfigBarChartData
|
|
298
298
|
};
|
|
@@ -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/index3.js";
|
|
18
|
-
import { E as O,
|
|
18
|
+
import { E as O, bL as P, aR as H, a_ as M, aQ as U } from "../../chunks/index.js";
|
|
19
19
|
import { b as W, p as j } from "../../chunks/index2.js";
|
|
20
20
|
const R = 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 = {
|
|
21
21
|
name: "bar-chart-data-popover",
|
|
@@ -4,7 +4,7 @@ import { LitElement as n } from "@arcgis/lumina";
|
|
|
4
4
|
import { css as c, html as t } from "lit";
|
|
5
5
|
import { isEqual as l } from "es-toolkit/compat";
|
|
6
6
|
import { C as a } from "../../chunks/interfaces.js";
|
|
7
|
-
import {
|
|
7
|
+
import { bM as d, bN as h, u as f } from "../../chunks/index.js";
|
|
8
8
|
const g = c`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
9
9
|
class m extends n {
|
|
10
10
|
constructor() {
|
|
@@ -5,13 +5,13 @@ import { repeat as k } from "lit/directives/repeat.js";
|
|
|
5
5
|
import { substitute as $ } from "@arcgis/core/intl.js";
|
|
6
6
|
import { b as l } from "../../chunks/interfaces.js";
|
|
7
7
|
import { b as f, f as y, e as h, a as P } from "../../chunks/chart-ui-utils.js";
|
|
8
|
-
import { u as
|
|
9
|
-
import { css as
|
|
8
|
+
import { u as L } from "../../chunks/useT9n.js";
|
|
9
|
+
import { css as F, html as n } from "lit";
|
|
10
10
|
import { createRef as u, ref as m } from "lit/directives/ref.js";
|
|
11
11
|
import { LitElement as x, createEvent as g, renderElement as I, safeStyleMap as D, safeClassMap as d } from "@arcgis/lumina";
|
|
12
12
|
import { B as r } from "../../chunks/common.js";
|
|
13
13
|
import { e as S, p as T } from "../../chunks/popover-ui-utils.js";
|
|
14
|
-
import {
|
|
14
|
+
import { bL as b, aQ as E, E as w } from "../../chunks/index.js";
|
|
15
15
|
import { b as B } from "../../chunks/index2.js";
|
|
16
16
|
import { d as C } from "../../chunks/rest-js-object-literals.js";
|
|
17
17
|
const o = {
|
|
@@ -23,16 +23,16 @@ const o = {
|
|
|
23
23
|
sortMedian: "sort-median",
|
|
24
24
|
sortOrderPickList: "sort-order-pick-list",
|
|
25
25
|
panel: "panel"
|
|
26
|
-
},
|
|
27
|
-
class
|
|
26
|
+
}, N = 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}.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-mean,.sort-median{transform:rotate(90deg)}.sort-order-pick-list{overflow-y:hidden}.panel{max-height:60vh}`;
|
|
27
|
+
class K extends x {
|
|
28
28
|
constructor() {
|
|
29
|
-
super(...arguments), this._messages =
|
|
29
|
+
super(...arguments), this._messages = L(), this.picklist = u(), this.placement = "leading", this.popoverElement = u(), this.offsetDistance = -200, this.pickListHasChanged = !1, this.open = !1, this.layerFieldsInfo = [], this.isCustomSortDisabled = !1, this.arcgisChartsConfigBoxPlotDataPopoverChange = g(), this.arcgisChartsConfigPopoverClose = g();
|
|
30
30
|
}
|
|
31
31
|
static {
|
|
32
32
|
this.properties = { messageOverrides: 0, headingTitle: 1, referenceElement: 0, open: 5, contentKind: 1, layerFieldsInfo: 0, isCustomSortDisabled: 5, selectedContent: 1 };
|
|
33
33
|
}
|
|
34
34
|
static {
|
|
35
|
-
this.styles =
|
|
35
|
+
this.styles = N;
|
|
36
36
|
}
|
|
37
37
|
async reposition() {
|
|
38
38
|
await this.popoverElement.value?.reposition();
|
|
@@ -194,7 +194,7 @@ class N extends x {
|
|
|
194
194
|
return this.contentKind === l.numericFields && (e = n`<div slot=footer><calcite-fab class=${d(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><calcite-popover class=${d(o.name)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${m(this.popoverElement)}><calcite-panel class=${d(o.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${d(o.header)}>${this.headingTitle ?? ""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`;
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
v("arcgis-charts-config-box-plot-popover",
|
|
197
|
+
v("arcgis-charts-config-box-plot-popover", K);
|
|
198
198
|
export {
|
|
199
|
-
|
|
199
|
+
K as ArcgisChartsConfigBoxPlotPopover
|
|
200
200
|
};
|
|
@@ -3,7 +3,7 @@ import { c as N } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { repeat as V } from "lit/directives/repeat.js";
|
|
4
4
|
import { keyed as S } from "lit/directives/keyed.js";
|
|
5
5
|
import { createModel as _ } from "../../model/shared/setup-utils.js";
|
|
6
|
-
import { f as $, e as
|
|
6
|
+
import { f as $, e as R, k as U, j as x, l as T, m as z } from "../../chunks/type-guards2.js";
|
|
7
7
|
import { i as H } from "../../chunks/rotated-state.js";
|
|
8
8
|
import { substitute as O } from "@arcgis/core/intl.js";
|
|
9
9
|
import { C as c } from "../../chunks/interfaces.js";
|
|
@@ -14,14 +14,14 @@ import { LitElement as X, createEvent as f, renderElement as v, safeStyleMap as
|
|
|
14
14
|
import { css as j, html as h } from "lit";
|
|
15
15
|
import { createRef as q, ref as K } from "lit/directives/ref.js";
|
|
16
16
|
import { u as I } from "../../chunks/useT9n.js";
|
|
17
|
-
import { c as Q, a as
|
|
18
|
-
import {
|
|
17
|
+
import { c as Q, a as b, g as Y } from "../../chunks/store.js";
|
|
18
|
+
import { bO as J, aj as ee, bP as te, bQ as ae, bR as ie } from "../../chunks/index.js";
|
|
19
19
|
import { A as se } from "../../chunks/axis-model-wrapper.js";
|
|
20
20
|
import { h as re, f as y } from "../../chunks/web-component-utils.js";
|
|
21
21
|
import { a as oe } from "../../chunks/chart-ui-utils.js";
|
|
22
|
-
import { C as
|
|
22
|
+
import { C as M } from "../../chunks/index5.js";
|
|
23
23
|
import { g as L } from "../../chunks/chart-ui-utils2.js";
|
|
24
|
-
import { i as P,
|
|
24
|
+
import { i as P, c as B } from "../../chunks/type-guards.js";
|
|
25
25
|
import { r as le } from "../../chunks/popover-ui-utils.js";
|
|
26
26
|
import { a as o, e as ne } from "../../chunks/chart-object-literals.js";
|
|
27
27
|
const m = {
|
|
@@ -108,13 +108,13 @@ class ge extends X {
|
|
|
108
108
|
case o.ScatterSeries: {
|
|
109
109
|
const n = a, { dataItems: l, r2: g, aggregated: u } = n;
|
|
110
110
|
let C = g;
|
|
111
|
-
Number.isFinite(g) || (C = void 0), this.r2 = C,
|
|
111
|
+
Number.isFinite(g) || (C = void 0), this.r2 = C, U(i) && (i.dataStore.r2 = C, i.dataStore.aggregated = u, u && (i.additionalTooltipField = void 0)), this.calculatedDataMinMaxBounds = this.getDataExtent(l), i && (i.dataStore.calculatedDataMinMaxBounds = this.calculatedDataMinMaxBounds);
|
|
112
112
|
break;
|
|
113
113
|
}
|
|
114
114
|
case o.LineSeries:
|
|
115
115
|
case o.BarSeries: {
|
|
116
116
|
const { dataItems: n, timeIntervalInfo: l } = a;
|
|
117
|
-
($(s) ||
|
|
117
|
+
($(s) || R(s) && s.binTemporalData) && (l?.size !== void 0 && s.temporalBinningSize !== l?.size && (s.temporalBinningSize = l?.size), l?.unit !== void 0 && s.temporalBinningUnit !== l?.unit && l?.unit !== ne.Quarter && (s.temporalBinningUnit = l?.unit), l?.size !== void 0 && l?.unit !== void 0 && Q(b, { size: l.size, unit: l.unit })), this.calculatedDataMinMaxBounds = this.getDataExtent(n), i && (i.dataStore.calculatedDataMinMaxBounds = this.calculatedDataMinMaxBounds);
|
|
118
118
|
break;
|
|
119
119
|
}
|
|
120
120
|
}
|
|
@@ -277,7 +277,7 @@ class ge extends X {
|
|
|
277
277
|
chartType: t.chartType,
|
|
278
278
|
commonStrings: this.commonStrings,
|
|
279
279
|
config: t.config
|
|
280
|
-
}) : "", e !== void 0 && e !==
|
|
280
|
+
}) : "", e !== void 0 && e !== b.selectedChartId && (b.selectedChartId = e), this.allowChartSyncing = !0, this.arcgisChartsConfigSelectedChartChange.emit({
|
|
281
281
|
key: "key",
|
|
282
282
|
model: t
|
|
283
283
|
});
|
|
@@ -286,7 +286,7 @@ class ge extends X {
|
|
|
286
286
|
e === 0 ? this.clearPartialModels() : e === 1 && this.removeSelectChartTypePopover(), this.arcgisChartsConfigPanelNumberChange.emit({ panelNumber: e, modelList: this.modelList });
|
|
287
287
|
}
|
|
288
288
|
addChartEventListeners() {
|
|
289
|
-
this.listenOn(document,
|
|
289
|
+
this.listenOn(document, M.DataProcessComplete, this.chartDataProcessComplete), this.listenOn(document, M.AxesMinMaxChange, this.chartAxesMinMaxChange), this.listenOn(document, M.SeriesColorChange, this.chartSeriesColorChange), this.listenOn(document, M.NoRenderPropChange, this.chartNoRenderPropChange), this.listenOn(document, M.LegendItemVisibilityChange, this.chartLegendItemVisibilityChange);
|
|
290
290
|
}
|
|
291
291
|
getDataExtent(e) {
|
|
292
292
|
const t = this.getModel(this.selectedChartId)?.config;
|
|
@@ -311,7 +311,7 @@ class ge extends X {
|
|
|
311
311
|
chartId: this.selectedChartId,
|
|
312
312
|
isXAxis: a,
|
|
313
313
|
isLogarithmic: n.getLogarithmic()
|
|
314
|
-
}), g =
|
|
314
|
+
}), g = b.chartAxesBoundDataMap;
|
|
315
315
|
g[this.selectedChartId] === void 0 && (g[this.selectedChartId] = {});
|
|
316
316
|
const u = g[this.selectedChartId]?.[l], C = {
|
|
317
317
|
defaultMinBound: u?.defaultMinBound === u?.currMinBound ? s : u?.defaultMinBound,
|
|
@@ -11,7 +11,7 @@ import { u as N } from "../../chunks/useT9n.js";
|
|
|
11
11
|
import { css as z, html as f } from "lit";
|
|
12
12
|
import { LitElement as H, renderElement as R, safeClassMap as p } from "@arcgis/lumina";
|
|
13
13
|
import { C as j, F as i, L as m } from "../../chunks/common.js";
|
|
14
|
-
import { b as u,
|
|
14
|
+
import { b as u, bT as r } from "../../chunks/index.js";
|
|
15
15
|
import { r as $ } from "../../chunks/popover-ui-utils.js";
|
|
16
16
|
import { C as I } from "../../chunks/index2.js";
|
|
17
17
|
import { a } from "../../chunks/chart-object-literals.js";
|
|
@@ -10,7 +10,7 @@ import { css as z, html as d } from "lit";
|
|
|
10
10
|
import { createRef as h, ref as u } from "lit/directives/ref.js";
|
|
11
11
|
import { LitElement as O, createEvent as U, renderElement as M, safeStyleMap as L, safeClassMap as n } from "@arcgis/lumina";
|
|
12
12
|
import { l as W, q as Y, r as j } from "../../chunks/type-guards2.js";
|
|
13
|
-
import {
|
|
13
|
+
import { bU as p, b as m, bo as H, bV as A, bW as _, i as J } from "../../chunks/index.js";
|
|
14
14
|
import { t as K } from "../../chunks/index3.js";
|
|
15
15
|
import { r as Q } from "../../chunks/popover-ui-utils.js";
|
|
16
16
|
import { b as g, R as ee } from "../../chunks/rest-js-object-literals.js";
|
|
@@ -4,7 +4,7 @@ import { LitElement as l } from "@arcgis/lumina";
|
|
|
4
4
|
import { css as n, html as i } from "lit";
|
|
5
5
|
import { C as s } from "../../chunks/interfaces.js";
|
|
6
6
|
import { isEqual as d } from "es-toolkit/compat";
|
|
7
|
-
import {
|
|
7
|
+
import { bM as h, bN as c, u as f } from "../../chunks/index.js";
|
|
8
8
|
const p = n`:host{margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
9
9
|
class m extends l {
|
|
10
10
|
static {
|
|
@@ -4,7 +4,7 @@ import { isEqual as r } from "es-toolkit/compat";
|
|
|
4
4
|
import { LitElement as n } from "@arcgis/lumina";
|
|
5
5
|
import { css as h, html as i } from "lit";
|
|
6
6
|
import { C as o } from "../../chunks/interfaces.js";
|
|
7
|
-
import { i as d,
|
|
7
|
+
import { i as d, bM as c, bN as m, bg as f, cf as g, u as p } from "../../chunks/index.js";
|
|
8
8
|
import { i as u } from "../../chunks/type-guards.js";
|
|
9
9
|
const C = h`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
10
10
|
class y extends n {
|
|
@@ -4,7 +4,7 @@ import { isEqual as a } from "es-toolkit/compat";
|
|
|
4
4
|
import { LitElement as n, createEvent as d } from "@arcgis/lumina";
|
|
5
5
|
import { css as h, html as o } from "lit";
|
|
6
6
|
import { C as s } from "../../chunks/interfaces.js";
|
|
7
|
-
import {
|
|
7
|
+
import { bM as c, bN as m, u as f, aQ as g, aR as p } from "../../chunks/index.js";
|
|
8
8
|
const u = h`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
9
9
|
class C extends n {
|
|
10
10
|
constructor() {
|
|
@@ -14,7 +14,7 @@ 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/index3.js";
|
|
16
16
|
import { b as z, p as w } from "../../chunks/index2.js";
|
|
17
|
-
import {
|
|
17
|
+
import { bL as N, aQ as L, aR as K, a_ as B } from "../../chunks/index.js";
|
|
18
18
|
const _ = P`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.fab{display:flex;justify-content:stretch}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.sort-icon-color{color:#000}.sort-y-axis{transform:rotate(90deg)}calcite-panel{max-height:60vh}calcite-panel .size-section{width:19rem;margin:1rem 0;display:flex;flex-wrap:wrap;justify-content:space-evenly}calcite-panel .size-section calcite-label{width:8rem;margin-bottom:.25rem}calcite-panel .apply-button{width:17rem}`, r = {
|
|
19
19
|
name: "line-chart-data-popover",
|
|
20
20
|
header: "header",
|
|
@@ -74,7 +74,7 @@ class H extends k {
|
|
|
74
74
|
case a.xAxisField: {
|
|
75
75
|
for (let l = 0; l < t; l += 1) {
|
|
76
76
|
const i = this.layerFieldsInfo?.[l];
|
|
77
|
-
i && (L(i) ||
|
|
77
|
+
i && (L(i) || K(i) || B(i)) && s.push(this.buildPickListItem(i));
|
|
78
78
|
}
|
|
79
79
|
break;
|
|
80
80
|
}
|
|
@@ -83,7 +83,7 @@ class H extends k {
|
|
|
83
83
|
s.push(l);
|
|
84
84
|
for (let i = 0; i < t; i += 1) {
|
|
85
85
|
const m = this.layerFieldsInfo?.[i];
|
|
86
|
-
m && (
|
|
86
|
+
m && (N(m) || m.type === x.String) && s.push(this.buildPickListItem(m));
|
|
87
87
|
}
|
|
88
88
|
break;
|
|
89
89
|
}
|
|
@@ -4,10 +4,10 @@ import { isEqual as n, cloneDeep as h } from "es-toolkit/compat";
|
|
|
4
4
|
import { LitElement as C, createEvent as m } from "@arcgis/lumina";
|
|
5
5
|
import { css as y, html as c } from "lit";
|
|
6
6
|
import { C as d } from "../../chunks/interfaces.js";
|
|
7
|
-
import {
|
|
7
|
+
import { bM as I, bN as F, u as v } from "../../chunks/index.js";
|
|
8
8
|
import { b } from "../../chunks/rest-js-object-literals.js";
|
|
9
|
-
const
|
|
10
|
-
class
|
|
9
|
+
const S = y`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
10
|
+
class L extends C {
|
|
11
11
|
constructor() {
|
|
12
12
|
super(...arguments), this.onModelConfigChange = async (e) => {
|
|
13
13
|
const s = e?.detail.config ?? this.model.config;
|
|
@@ -18,7 +18,7 @@ class S extends C {
|
|
|
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 = S;
|
|
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);
|
|
@@ -80,7 +80,7 @@ class S extends C {
|
|
|
80
80
|
return e;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
u("arcgis-charts-config-pie-chart",
|
|
83
|
+
u("arcgis-charts-config-pie-chart", L);
|
|
84
84
|
export {
|
|
85
|
-
|
|
85
|
+
L as ArcgisChartsConfigPieChart
|
|
86
86
|
};
|
|
@@ -12,7 +12,7 @@ import { LitElement as y, createEvent as b, safeClassMap as l } from "@arcgis/lu
|
|
|
12
12
|
import { e as F, p as I } from "../../chunks/popover-ui-utils.js";
|
|
13
13
|
import { J as D } from "../../chunks/index3.js";
|
|
14
14
|
import { b as x } from "../../chunks/index2.js";
|
|
15
|
-
import {
|
|
15
|
+
import { bL as S, aQ as T } from "../../chunks/index.js";
|
|
16
16
|
import { d as E } from "../../chunks/rest-js-object-literals.js";
|
|
17
17
|
import { a as r } from "../../chunks/common.js";
|
|
18
18
|
const s = {
|
|
@@ -24,7 +24,7 @@ const s = {
|
|
|
24
24
|
sortOrderPickList: "sort-order-pick-list",
|
|
25
25
|
panel: "panel"
|
|
26
26
|
}, w = L`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.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-counter-clockwise{transform:scaleX(-1)}.sort-order-pick-list{overflow-y:hidden}.panel{max-height:60vh}`;
|
|
27
|
-
class
|
|
27
|
+
class A extends y {
|
|
28
28
|
constructor() {
|
|
29
29
|
super(...arguments), this._messages = u(), this.commonStrings = u({ name: "common", blocking: !0 }), this.picklist = C(), this.popoverElement = C(), this.placement = "leading", this.offsetDistance = -200, this.pickListHasChanged = !1, this.aggregationLabels = [], this.open = !1, this.layerFieldsInfo = [], this.arcgisChartsConfigPieChartDataPopoverChange = b(), this.arcgisChartsConfigPopoverClose = b();
|
|
30
30
|
}
|
|
@@ -167,7 +167,7 @@ class K extends y {
|
|
|
167
167
|
return this.contentKind === o.numericFields && (e = n`<div slot=footer><calcite-fab class=${l(s.fab)} appearance=outline-fill kind=neutral .icon=${void 0} .label=${this._messages.selectionDone} scale=s text-enabled .text=${this._messages.selectionDone} @click=${this.onNumericFieldSelectionDone}></calcite-fab></div>`), n`<div><calcite-popover class=${l(s.name)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .offsetDistance=${this.offsetDistance} .open=${this.open} label auto-close ${m(this.popoverElement)}><calcite-panel class=${l(s.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${l(s.header)}>${this.headingTitle ?? ""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`;
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
|
-
v("arcgis-charts-config-pie-chart-popover",
|
|
170
|
+
v("arcgis-charts-config-pie-chart-popover", A);
|
|
171
171
|
export {
|
|
172
|
-
|
|
172
|
+
A as ArcgisChartsConfigPieChartPopover
|
|
173
173
|
};
|
|
@@ -4,7 +4,7 @@ import { isEqual as l } from "es-toolkit/compat";
|
|
|
4
4
|
import { LitElement as n, createEvent as d } from "@arcgis/lumina";
|
|
5
5
|
import { css as c, html as s } from "lit";
|
|
6
6
|
import { C as o } from "../../chunks/interfaces.js";
|
|
7
|
-
import {
|
|
7
|
+
import { bM as h, bN as p, bg as f, cf as g, u as m, aT as u } from "../../chunks/index.js";
|
|
8
8
|
import { i as y } from "../../chunks/type-guards.js";
|
|
9
9
|
const b = c`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
10
10
|
class F extends n {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { html as
|
|
4
|
-
import { LitElement as
|
|
5
|
-
import
|
|
6
|
-
import { u as
|
|
7
|
-
import {
|
|
2
|
+
import { c as h } from "../../chunks/runtime.js";
|
|
3
|
+
import { html as d } from "lit";
|
|
4
|
+
import { LitElement as g, createEvent as m, nothing as o } from "@arcgis/lumina";
|
|
5
|
+
import y from "@arcgis/core/widgets/Sketch/SketchViewModel.js";
|
|
6
|
+
import { u as a } from "../../chunks/useT9n.js";
|
|
7
|
+
import { cz as r, cA as n } from "../../chunks/index.js";
|
|
8
8
|
const e = {
|
|
9
9
|
Circle: "circle",
|
|
10
10
|
FreehandPolygon: "freehandPolygon",
|
|
@@ -12,22 +12,22 @@ const e = {
|
|
|
12
12
|
Polyline: "polyline",
|
|
13
13
|
Rectangle: "rectangle"
|
|
14
14
|
};
|
|
15
|
-
class
|
|
15
|
+
class p extends g {
|
|
16
16
|
constructor() {
|
|
17
|
-
super(...arguments), this._messages =
|
|
18
|
-
this.selectedTool
|
|
19
|
-
}, this.arcgisImageryScatterplotAoiChange =
|
|
17
|
+
super(...arguments), this._messages = a({ blocking: !0 }), this.commonStrings = a({ name: "common", blocking: !0 }), this.handleAoiToolClick = async (t) => {
|
|
18
|
+
this.view?.map && t && (this.selectedTool === t ? this.deactivateAoiSketch() : await this.startAoiSketch(t));
|
|
19
|
+
}, this.arcgisImageryScatterplotAoiChange = m();
|
|
20
20
|
}
|
|
21
21
|
static {
|
|
22
22
|
this.properties = { selectedTool: 16, messageOverrides: 0, view: 0 };
|
|
23
23
|
}
|
|
24
24
|
disconnectedCallback() {
|
|
25
|
-
this.sketchListenerHandle && this.sketchListenerHandle.remove(), this.sketchViewModel && (this.sketchViewModel.destroy(), this.sketchViewModel = void 0), super.disconnectedCallback();
|
|
25
|
+
this.sketchListenerHandle && this.sketchListenerHandle.remove(), this.sketchViewModel && (this.sketchViewModel.destroy(), this.sketchViewModel = void 0), this.selectedTool = void 0, super.disconnectedCallback();
|
|
26
26
|
}
|
|
27
27
|
async startAoiSketch(t) {
|
|
28
|
-
if (this.view?.map
|
|
29
|
-
const i =
|
|
30
|
-
this.sketchViewModel ? this.sketchViewModel.cancel() : (this.sketchViewModel = new
|
|
28
|
+
if (this.view?.map) {
|
|
29
|
+
const i = r(this.view) ?? n(this.view);
|
|
30
|
+
this.sketchViewModel ? (this.sketchViewModel.cancel(), this.sketchViewModel.layer !== i && (this.sketchViewModel.layer = i)) : (this.sketchViewModel = new y({
|
|
31
31
|
view: this.view,
|
|
32
32
|
layer: i,
|
|
33
33
|
activeFillSymbol: {
|
|
@@ -41,30 +41,42 @@ class m extends n {
|
|
|
41
41
|
color: [0, 255, 255],
|
|
42
42
|
width: 1
|
|
43
43
|
},
|
|
44
|
-
|
|
44
|
+
creationMode: "continuous",
|
|
45
45
|
updateOnGraphicClick: !1
|
|
46
|
-
}), this.addAoiSketchListener()), await this.sketchViewModel.create(t);
|
|
46
|
+
}), this.addAoiSketchListener()), this.selectedTool = t, await this.sketchViewModel.create(t);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
+
deactivateAoiSketch() {
|
|
50
|
+
this.sketchViewModel?.cancel(), this.selectedTool = void 0;
|
|
51
|
+
}
|
|
49
52
|
addAoiSketchListener() {
|
|
50
53
|
if (this.sketchViewModel) {
|
|
51
|
-
const t = this.sketchViewModel.on("create", (
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
const t = this.sketchViewModel, i = t.on("create", (s) => {
|
|
55
|
+
switch (s.state) {
|
|
56
|
+
case "cancel":
|
|
57
|
+
this.deactivateAoiSketch();
|
|
58
|
+
break;
|
|
59
|
+
case "complete":
|
|
60
|
+
const c = s.graphic?.geometry;
|
|
61
|
+
if (c?.type === "polygon" || c?.type === "polyline") {
|
|
62
|
+
this.arcgisImageryScatterplotAoiChange.emit({
|
|
63
|
+
tool: this.selectedTool ?? c.type,
|
|
64
|
+
newGeometry: c.toJSON()
|
|
65
|
+
});
|
|
66
|
+
const l = r(this.view);
|
|
67
|
+
l?.remove(s.graphic), this.isConnected && (t.layer = l ?? n(this.view));
|
|
68
|
+
}
|
|
69
|
+
break;
|
|
58
70
|
}
|
|
59
71
|
});
|
|
60
|
-
this.sketchListenerHandle?.remove(), this.sketchListenerHandle =
|
|
72
|
+
this.sketchListenerHandle?.remove(), this.sketchListenerHandle = i;
|
|
61
73
|
}
|
|
62
74
|
}
|
|
63
75
|
render() {
|
|
64
|
-
return
|
|
76
|
+
return d`<calcite-action-group layout=horizontal id=charts-config-scatter-plot-aoi-action-group><calcite-action id=charts-config-scatter-plot-aoi-line icon=line .text=${this.commonStrings.imageryAoiToolsStrings.polyline} title=${this._messages.draw.polyline ?? o} .active=${this.selectedTool === e.Polyline} @click=${() => this.handleAoiToolClick(e.Polyline)}></calcite-action><calcite-action id=charts-config-scatter-plot-aoi-circle icon=circle .text=${this.commonStrings.imageryAoiToolsStrings.circle} title=${this._messages.draw.circle ?? o} .active=${this.selectedTool === e.Circle} @click=${() => this.handleAoiToolClick(e.Circle)}></calcite-action><calcite-action id=charts-config-scatter-plot-aoi-rectangle icon=rectangle .text=${this.commonStrings.imageryAoiToolsStrings.rectangle} title=${this._messages.draw.rectangle ?? o} .active=${this.selectedTool === e.Rectangle} @click=${() => this.handleAoiToolClick(e.Rectangle)}></calcite-action><calcite-action id=charts-config-scatter-plot-aoi-polygon icon=polygon .text=${this.commonStrings.imageryAoiToolsStrings.polygon} title=${this._messages.draw.polygon ?? o} .active=${this.selectedTool === e.Polygon} @click=${() => this.handleAoiToolClick(e.Polygon)}></calcite-action><calcite-action id=charts-config-scatter-plot-aoi-freehand-area icon=freehand-area .text=${this.commonStrings.imageryAoiToolsStrings.freehandPolygon} title=${this._messages.draw.freehandPolygon ?? o} .active=${this.selectedTool === e.FreehandPolygon} @click=${() => this.handleAoiToolClick(e.FreehandPolygon)}></calcite-action></calcite-action-group>`;
|
|
65
77
|
}
|
|
66
78
|
}
|
|
67
|
-
|
|
79
|
+
h("arcgis-charts-config-scatter-plot-aoi", p);
|
|
68
80
|
export {
|
|
69
|
-
|
|
81
|
+
p as ArcgisChartsConfigScatterplotAoi
|
|
70
82
|
};
|
|
@@ -5,11 +5,11 @@ 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 y, n as L, D as w, s as u } from "../../chunks/chart-ui-utils.js";
|
|
7
7
|
import { i as $ } from "../../chunks/type-guards.js";
|
|
8
|
-
import { u as
|
|
8
|
+
import { u as I } from "../../chunks/useT9n.js";
|
|
9
9
|
import { css as _, html as r } from "lit";
|
|
10
10
|
import { createRef as h, ref as c } from "lit/directives/ref.js";
|
|
11
|
-
import { LitElement as V, createEvent as
|
|
12
|
-
import {
|
|
11
|
+
import { LitElement as V, createEvent as x, renderElement as D, safeClassMap as t, safeStyleMap as C } from "@arcgis/lumina";
|
|
12
|
+
import { cB as N } from "../../chunks/index.js";
|
|
13
13
|
import { ah as R, E, r as G } from "../../chunks/index3.js";
|
|
14
14
|
import { b } from "../../chunks/index2.js";
|
|
15
15
|
import { r as T } from "../../chunks/popover-ui-utils.js";
|
|
@@ -27,10 +27,10 @@ const s = {
|
|
|
27
27
|
dimText: "dim-text",
|
|
28
28
|
aoiTools: "aoi-tools",
|
|
29
29
|
currentAoiBlock: "current-aoi-block"
|
|
30
|
-
}, 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)}:host .number-input{margin-bottom:.5rem;display:flex}:host .number-input>div{width:100%}calcite-list-item{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor)}calcite-slider{margin-top:-1.5rem}.r2{margin:var(--arcgis-charts-config-margin-major) var(--arcgis-charts-config-margin-minor)}.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}.section-container{display:flex;flex-direction:column}.icon-select{cursor:pointer}.section-label{display:flex;margin:var(--arcgis-charts-config-margin-major) var(--arcgis-charts-config-margin-minor);justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}.switch-element{margin-right:var(--arcgis-charts-config-margin-minor)}.multi-input-section{display:flex;justify-content:space-between;align-items:center}.aoi-tools{margin-top:0;margin-bottom:var(--arcgis-charts-config-margin-
|
|
30
|
+
}, 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)}:host .number-input{margin-bottom:.5rem;display:flex}:host .number-input>div{width:100%}calcite-list-item{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor)}calcite-slider{margin-top:-1.5rem}.r2{margin:var(--arcgis-charts-config-margin-major) var(--arcgis-charts-config-margin-minor)}.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}.section-container{display:flex;flex-direction:column}.icon-select{cursor:pointer}.section-label{display:flex;margin:var(--arcgis-charts-config-margin-major) var(--arcgis-charts-config-margin-minor);justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}.switch-element{margin-right:var(--arcgis-charts-config-margin-minor)}.multi-input-section{display:flex;justify-content:space-between;align-items:center}.aoi-tools{margin-top:0;margin-bottom:var(--arcgis-charts-config-margin-major);margin-inline:var(--arcgis-charts-config-margin-minor);background:var(--calcite-color-foreground-1)}.current-aoi-block{margin:var(--arcgis-charts-config-calcite-block-default-margin)}`;
|
|
31
31
|
class O extends V {
|
|
32
32
|
constructor() {
|
|
33
|
-
super(...arguments), this._messages =
|
|
33
|
+
super(...arguments), this._messages = I(), this.commonStrings = I({ name: "common", blocking: !0 }), this.scatterplotPopover = null, this.selectColorElement = h(), this.selectTrendLineElement = h(), this.xAxisElement = h(), this.yAxisElement = h(), this.tooltipFieldElement = h(), this.sizeVariableElement = h(), this.colorModeElement = h(), this.symbolSizeModeElement = h(), this.minSizeInputElement = h(), this.maxSizeInputElement = h(), this.items = [], this.setTrendLineSymbol = (e) => {
|
|
34
34
|
const i = e.detail;
|
|
35
35
|
this.model.linearTrendSymbol = A(i);
|
|
36
36
|
}, this.setFixedSymbolRGBAColor = (e) => {
|
|
@@ -85,7 +85,7 @@ class O extends V {
|
|
|
85
85
|
}, this.segmentedControlRef = (e) => {
|
|
86
86
|
e && (e.focus = () => {
|
|
87
87
|
}, this.items.push(e));
|
|
88
|
-
}, this.isAoiEnabled = !1, this.isFixedSymbolSizeInvalid = !1, this.isMaxSizeInvalid = !1, this.isMinSizeInvalid = !1, this.layerFieldsInfo = [], this.isTableLayer = !1, this.arcgisChartsConfigDataChangeError =
|
|
88
|
+
}, this.isAoiEnabled = !1, this.isFixedSymbolSizeInvalid = !1, this.isMaxSizeInvalid = !1, this.isMinSizeInvalid = !1, this.layerFieldsInfo = [], this.isTableLayer = !1, this.arcgisChartsConfigDataChangeError = x(), this.arcgisChartsConfigScatterplotPopoverChange = x();
|
|
89
89
|
}
|
|
90
90
|
static {
|
|
91
91
|
this.properties = { selectedElement: 16, selectedSizeType: 16, aoiGeometry: 16, aoiTool: 16, isAoiEnabled: 16, isFixedSymbolSizeInvalid: 16, isMaxSizeInvalid: 16, isMinSizeInvalid: 16, messageOverrides: 0, view: 0, model: 0, r2: 9, layerFieldsInfo: 0, isTableLayer: 5 };
|
|
@@ -5,7 +5,7 @@ import { u as r } from "../../chunks/useT9n.js";
|
|
|
5
5
|
import { createRef as n, ref as h } from "lit/directives/ref.js";
|
|
6
6
|
import { LitElement as p, createEvent as a, safeClassMap as s } from "@arcgis/lumina";
|
|
7
7
|
import { e as m } from "../../chunks/popover-ui-utils.js";
|
|
8
|
-
import {
|
|
8
|
+
import { c as d } from "../../chunks/type-guards.js";
|
|
9
9
|
import { M as e } from "../../chunks/common.js";
|
|
10
10
|
const c = {
|
|
11
11
|
selectChartComponent: "select-chart-component",
|