@arcgis/charts-components 5.1.0-next.82 → 5.1.0-next.83
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/{BHFEFC6X.js → 2C53KAFV.js} +1 -1
- package/dist/cdn/{GEXUXKE2.js → 2DACBEJH.js} +1 -1
- package/dist/cdn/2F63MBYD.js +2 -0
- package/dist/cdn/{CJ7NTZVC.js → 2ZCJSPOP.js} +1 -1
- package/dist/cdn/{UC2KHUNN.js → 3PGPIXWL.js} +1 -1
- package/dist/cdn/{UOC3SKN2.js → 4EULL7VO.js} +1 -1
- package/dist/cdn/4SZOVAC4.js +2 -0
- package/dist/cdn/{WFGGTYWP.js → 4VAAS2W5.js} +1 -1
- package/dist/cdn/{7R3FEB3R.js → 52IYTDZC.js} +1 -1
- package/dist/cdn/5GXFNW3H.js +2 -0
- package/dist/cdn/{BJAQIZB3.js → 5TEAPXIJ.js} +1 -1
- package/dist/cdn/{VDZ5R7WX.js → 5ZH65PNZ.js} +1 -1
- package/dist/cdn/64HBWFA3.js +2 -0
- package/dist/cdn/{TITJWWP7.js → 6TS7TXG7.js} +1 -1
- package/dist/cdn/{ZC6NYZDM.js → 74U7XXHV.js} +1 -1
- package/dist/cdn/7KD5V3MH.js +2 -0
- package/dist/cdn/{B7RU4X5Z.js → AAM5VKBK.js} +1 -1
- package/dist/cdn/{GVBLRXKE.js → AAV66WVS.js} +1 -1
- package/dist/cdn/{PSCAEQLN.js → AXCA6ASP.js} +1 -1
- package/dist/cdn/{AZLVOWWT.js → CGNK5OP4.js} +3 -3
- package/dist/cdn/{UR6A4VM5.js → CMWMYS2K.js} +1 -1
- package/dist/cdn/CUQNQICY.js +2 -0
- package/dist/cdn/{3G26ZRB7.js → DCZD5KWR.js} +1 -1
- package/dist/cdn/{O4645DWG.js → DMSWFKFP.js} +1 -1
- package/dist/cdn/{OWRWKXFL.js → DTQAQIJM.js} +1 -1
- package/dist/cdn/DZSS337I.js +2 -0
- package/dist/cdn/E4Y6N6PF.js +2 -0
- package/dist/cdn/{623QYMIQ.js → EOUHXPEA.js} +1 -1
- package/dist/cdn/{FUHOULT2.js → F7CR2AY4.js} +1 -1
- package/dist/cdn/{QILOZFO7.js → FBG5ZTTQ.js} +8 -8
- package/dist/cdn/FEDPGCQC.js +2 -0
- package/dist/cdn/{YUN4XIA2.js → FITORE2C.js} +1 -1
- package/dist/cdn/{7QYOWBFU.js → FRYQRMDP.js} +1 -1
- package/dist/cdn/{N2RUZDL5.js → FUA7KDU7.js} +1 -1
- package/dist/cdn/{J6J3DXQC.js → G27LJ5W2.js} +1 -1
- package/dist/cdn/{WY264B2J.js → GRSM3NBO.js} +1 -1
- package/dist/cdn/H7EXVEYQ.js +2 -0
- package/dist/cdn/HBW4NM4H.js +2 -0
- package/dist/cdn/{S5FXOTG4.js → HKW5AON4.js} +1 -1
- package/dist/cdn/{IEPVBL2M.js → HTESG4KU.js} +1 -1
- package/dist/cdn/{LYZNGXSF.js → IFHTUSGS.js} +1 -1
- package/dist/cdn/{XR44W6VF.js → IIAYXAK2.js} +1 -1
- package/dist/cdn/{EFXQZRUY.js → ITWL3DEC.js} +1 -1
- package/dist/cdn/{OTMPMNL4.js → IV56BISU.js} +1 -1
- package/dist/cdn/{RN72ZH7K.js → IYTHLK7D.js} +1 -1
- package/dist/cdn/{MUHGSAN5.js → JC3YR2FM.js} +1 -1
- package/dist/cdn/JJ7N2BFD.js +2 -0
- package/dist/cdn/JVLIBFGJ.js +2 -0
- package/dist/cdn/KFYUW7H7.js +2 -0
- package/dist/cdn/KHN7AZBU.js +2 -0
- package/dist/cdn/LB6JRSLI.js +2 -0
- package/dist/cdn/{G63R4TEN.js → LDZK3TBM.js} +1 -1
- package/dist/cdn/LQ7U4J5D.js +2 -0
- package/dist/cdn/{5U2X7LKH.js → M7SNGANA.js} +1 -1
- package/dist/cdn/MNYJ2GYM.js +2 -0
- package/dist/cdn/MV6H65JZ.js +2 -0
- package/dist/cdn/{S2H4RCXL.js → N4OXGGCA.js} +1 -1
- package/dist/cdn/{CV3MN2OB.js → NESORWBG.js} +1 -1
- package/dist/cdn/{LJU5JLT7.js → NUGJT3MO.js} +1 -1
- package/dist/cdn/NVCMDHE6.js +2 -0
- package/dist/cdn/NWBQZSJH.js +2 -0
- package/dist/cdn/OED52OID.js +2 -0
- package/dist/cdn/QHZQKJJO.js +2 -0
- package/dist/cdn/{OOHBEF67.js → QZOROYMP.js} +1 -1
- package/dist/cdn/{4SRUJNYL.js → R4B3CB3N.js} +1 -1
- package/dist/cdn/{FUOCURYO.js → R6YWDKWN.js} +1 -1
- package/dist/cdn/RJZTG6BJ.js +2 -0
- package/dist/cdn/S64CBDJB.js +2 -0
- package/dist/cdn/{2BAQEPCK.js → SH37YJOP.js} +1 -1
- package/dist/cdn/SPJK6GM3.js +2 -0
- package/dist/cdn/{R2BGMXLL.js → SR5JGIZ4.js} +1 -1
- package/dist/cdn/{NWRE6XI6.js → SRVDVLIK.js} +1 -1
- package/dist/cdn/{WG43MAVJ.js → TUERF5XO.js} +1 -1
- package/dist/cdn/TVNJKFSE.js +2 -0
- package/dist/cdn/{VPVFOEEH.js → U2C7US5M.js} +1 -1
- package/dist/cdn/{KGLVHBMW.js → UDCTDYWY.js} +1 -1
- package/dist/cdn/UEWINO5H.js +2 -0
- package/dist/cdn/{HKGGDNSY.js → URXBOBYP.js} +1 -1
- package/dist/cdn/{YCXOS27R.js → VFNM4LQT.js} +1 -1
- package/dist/cdn/VS6WXU6Z.js +2 -0
- package/dist/cdn/{UBI26YGI.js → VWTWH44G.js} +1 -1
- package/dist/cdn/{4ASFVM5K.js → WD7BCM2T.js} +1 -1
- package/dist/cdn/{RS6N2KGI.js → WQHYVWTM.js} +1 -1
- package/dist/cdn/X24IXIYO.js +2 -0
- package/dist/cdn/{PQZYONXN.js → X3YHAZMZ.js} +1 -1
- package/dist/cdn/{XHVWL7MY.js → XPQKK4JT.js} +1 -1
- package/dist/cdn/YBXJYVTG.js +2 -0
- package/dist/cdn/{TCGJR6OG.js → YCE3GAGK.js} +1 -1
- package/dist/cdn/{FX754GOP.js → YFNVAJP6.js} +1 -1
- package/dist/cdn/{6OUQ7ORF.js → YVCUDFXA.js} +1 -1
- package/dist/cdn/ZISQPBKD.js +2 -0
- package/dist/cdn/assets/charts-config-line-style/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chart-rendering/common/interfaces.d.ts +23 -7
- package/dist/chunks/index.js +875 -875
- package/dist/chunks/serial-chart-data.js +25 -25
- package/dist/components/arcgis-chart/customElement.d.ts +76 -24
- package/dist/components/arcgis-chart/customElement.js +893 -891
- package/dist/components/arcgis-charts-config-axes/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-axis/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 +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-series-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 +1 -1
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +13 -13
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-color-style/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +58 -58
- package/dist/components/arcgis-charts-config-font-style/customElement.js +8 -8
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guides/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +12 -12
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +1 -1
- 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 +17 -17
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-style/customElement.js +15 -15
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-pie-chart-popover/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 +2 -2
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +6 -6
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +2 -2
- package/dist/types/lumina.d.ts +1 -2
- package/dist/types/preact.d.ts +1 -2
- package/dist/types/react.d.ts +1 -2
- package/dist/types/stencil.d.ts +1 -2
- package/package.json +4 -4
- package/dist/cdn/2ADFKCPA.js +0 -2
- package/dist/cdn/5GD3PE32.js +0 -2
- package/dist/cdn/6AUW6C3P.js +0 -2
- package/dist/cdn/7CVRX5TJ.js +0 -2
- package/dist/cdn/7ZK3YGN6.js +0 -2
- package/dist/cdn/AVUM7BWA.js +0 -2
- package/dist/cdn/BO7RCJZB.js +0 -2
- package/dist/cdn/D5EMJRBB.js +0 -2
- package/dist/cdn/DS42P2EG.js +0 -2
- package/dist/cdn/EE7MSNVY.js +0 -2
- package/dist/cdn/EQ3IZDDQ.js +0 -2
- package/dist/cdn/FK52K255.js +0 -2
- package/dist/cdn/FUFEC4JX.js +0 -2
- package/dist/cdn/HJRYXAVR.js +0 -2
- package/dist/cdn/IY7457CX.js +0 -2
- package/dist/cdn/K4DKNVD7.js +0 -2
- package/dist/cdn/K76KZ3TY.js +0 -2
- package/dist/cdn/KZOJBRI6.js +0 -2
- package/dist/cdn/L4Y3GEOG.js +0 -2
- package/dist/cdn/PMFA3GVU.js +0 -2
- package/dist/cdn/PWCAXPNP.js +0 -2
- package/dist/cdn/QOJZM6EZ.js +0 -2
- package/dist/cdn/RCAB2G52.js +0 -2
- package/dist/cdn/SZKVED6M.js +0 -2
- package/dist/cdn/TKTNTVES.js +0 -2
- package/dist/cdn/UMXNCRW5.js +0 -2
- package/dist/cdn/UWIRHZ3N.js +0 -2
- package/dist/cdn/V7CMOKQQ.js +0 -2
- package/dist/cdn/XBBP6DN4.js +0 -2
- package/dist/cdn/YGCLG2LA.js +0 -2
- package/dist/cdn/YWFHR2KJ.js +0 -2
- package/dist/cdn/ZKVDUGFR.js +0 -2
|
@@ -3,16 +3,16 @@ import { c as t } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { css as o, html as n } from "lit";
|
|
4
4
|
import { u as e } from "../../chunks/useT9n.js";
|
|
5
5
|
import { LitElement as d } from "@arcgis/lumina";
|
|
6
|
-
const
|
|
7
|
-
class
|
|
6
|
+
const l = o`:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width)}`;
|
|
7
|
+
class u extends d {
|
|
8
8
|
constructor() {
|
|
9
|
-
super(...arguments), this._messages = e(), this.open = !1;
|
|
9
|
+
super(...arguments), this._messages = e(), this.open = !1, this.showMinXBoundOption = !1, this.showMaxXBoundOption = !1, this.showMinYBoundOption = !1, this.showMaxYBoundOption = !1, this.showEnableXLogOption = !1, this.showEnableYLogOption = !1;
|
|
10
10
|
}
|
|
11
11
|
static {
|
|
12
12
|
this.properties = { messageOverrides: 0, model: 0, calculatedDataMinMaxBounds: 0, open: 5, showMinXBoundOption: 5, showMaxXBoundOption: 5, showMinYBoundOption: 5, showMaxYBoundOption: 5, showEnableXLogOption: 5, showEnableYLogOption: 5, calculatedMinMaxBounds: 0 };
|
|
13
13
|
}
|
|
14
14
|
static {
|
|
15
|
-
this.styles =
|
|
15
|
+
this.styles = l;
|
|
16
16
|
}
|
|
17
17
|
getMinFromCalculatedDataBounds(i) {
|
|
18
18
|
return this.calculatedDataMinMaxBounds?.find((a) => a.isXAxis === i)?.minimum ?? Number.NaN;
|
|
@@ -25,7 +25,7 @@ class l extends d {
|
|
|
25
25
|
return n`<arcgis-charts-config-axis .model=${this.model} is-x-axis .axisTitle=${this._messages.xAxis} .showMinBoundOption=${this.showMinXBoundOption} .showMaxBoundOption=${this.showMaxXBoundOption} .showEnableLogOption=${this.showEnableXLogOption} .dataMinValue=${this.getMinFromCalculatedDataBounds(!0)} .dataMaxValue=${this.getMaxFromCalculatedDataBounds(!0)} .initialMaxBound=${i?.maximum} .initialMinBound=${i?.minimum}></arcgis-charts-config-axis><arcgis-charts-config-axis .model=${this.model} .axisTitle=${this._messages.yAxis} .showMinBoundOption=${this.showMinYBoundOption} .showMaxBoundOption=${this.showMaxYBoundOption} .showEnableLogOption=${this.showEnableYLogOption} .dataMinValue=${this.getMinFromCalculatedDataBounds(!1)} .dataMaxValue=${this.getMaxFromCalculatedDataBounds(!1)} .initialMaxBound=${s?.maximum} .initialMinBound=${s?.minimum}></arcgis-charts-config-axis>`;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
t("arcgis-charts-config-axes",
|
|
28
|
+
t("arcgis-charts-config-axes", u);
|
|
29
29
|
export {
|
|
30
|
-
|
|
30
|
+
u as ArcgisChartsConfigAxes
|
|
31
31
|
};
|
|
@@ -59,7 +59,7 @@ class L extends C {
|
|
|
59
59
|
}), e !== a.INVALID && this.maxBoundInputElement.value?.status === a.INVALID && this.onMaxBoundsChange(), this.updateEnableLogarithmic(this.axisModel.getLogarithmic() && (this.dataMinValue ?? Number.NaN) > 0), this.requestUpdate();
|
|
60
60
|
}, this.onMinBoundsChangeDebounced = m(this.onMinBoundsChange, x.DebounceTimer), this.onModelConfigChange = () => {
|
|
61
61
|
this.requestUpdate();
|
|
62
|
-
}, this.disableMaxBoundResetBtn = !0, this.disableMinBoundResetBtn = !0, this.isXAxis = !1, this.axisTitle = "";
|
|
62
|
+
}, this.disableMaxBoundResetBtn = !0, this.disableMinBoundResetBtn = !0, this.isXAxis = !1, this.axisTitle = "", this.showMaxBoundOption = !1, this.showMinBoundOption = !1, this.showEnableLogOption = !1;
|
|
63
63
|
}
|
|
64
64
|
static {
|
|
65
65
|
this.properties = { disableMaxBoundResetBtn: 16, disableMinBoundResetBtn: 16, messageOverrides: 0, model: 0, isXAxis: 5, axisTitle: 1, maxBoundMaxLimit: 9, maxBoundMinLimit: 9, minBoundMinLimit: 9, minBoundMaxLimit: 9, showMaxBoundOption: 5, showMinBoundOption: 5, showEnableLogOption: 5, dataMaxValue: 9, dataMinValue: 9, initialMaxBound: 9, initialMinBound: 9 };
|
|
@@ -39,7 +39,7 @@ class C extends p {
|
|
|
39
39
|
super(...arguments), this.onModelConfigChange = async (e) => {
|
|
40
40
|
const i = e?.detail.config ?? this.model.config;
|
|
41
41
|
this.layer === void 0 && await this.updateFetchLayerFieldsInfo(i);
|
|
42
|
-
}, this.activeColorMatch = !1, this.popoverPlacement = "leading", this.arcgisChartsConfigNoSeriesUpdate = g();
|
|
42
|
+
}, this.activeColorMatch = !1, this.popoverPlacement = "leading", this.usePopupTemplateFieldsInfo = !1, this.arcgisChartsConfigNoSeriesUpdate = g();
|
|
43
43
|
}
|
|
44
44
|
static {
|
|
45
45
|
this.properties = { layerFieldsInfo: 16, activeColorMatch: 16, model: 0, timeZone: 1, popoverPlacement: 1, seriesColor: 0, calculatedMinMaxBounds: 0, page: 1, layer: 0, usePopupTemplateFieldsInfo: 5 };
|
|
@@ -110,7 +110,7 @@ class J extends q {
|
|
|
110
110
|
this.requestUpdate();
|
|
111
111
|
}, this.popoverClose = (e) => {
|
|
112
112
|
this.barChartPopover === e?.target && this.removeBarChartDataPopover();
|
|
113
|
-
}, this.selectedCustomSortItemId = "", this.sortOrderResetCounter = 0, this.layerFieldsInfo = [], this.arcgisChartsConfigBarChartDataNumericFieldValidate = v(), this.arcgisChartsConfigDataChangeError = v(), this.arcgisChartsConfigResetTimeInterval = v(), this.arcgisChartsConfigCustomizedTimeInterval = v();
|
|
113
|
+
}, this.selectedCustomSortItemId = "", this.sortOrderResetCounter = 0, this.layerFieldsInfo = [], this.open = !1, this.arcgisChartsConfigBarChartDataNumericFieldValidate = v(), this.arcgisChartsConfigDataChangeError = v(), this.arcgisChartsConfigResetTimeInterval = v(), this.arcgisChartsConfigCustomizedTimeInterval = v();
|
|
114
114
|
}
|
|
115
115
|
static {
|
|
116
116
|
this.properties = { selectedCustomSortItemId: 16, aggregationLabel: 16, timeAggregationLabel: 16, disableSplitBy: 16, sortOrderResetCounter: 16, messageOverrides: 0, model: 0, layerFieldsInfo: 0, open: 5 };
|
|
@@ -53,7 +53,7 @@ const R = x`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.a
|
|
|
53
53
|
};
|
|
54
54
|
class q extends T {
|
|
55
55
|
constructor() {
|
|
56
|
-
super(...arguments), this._messages = L(), this.commonStrings = L({ name: "common", blocking: !0 }), this.picklist = u(), this.intervalSizeElement = u(), this.intervalTypeElement = u(), this.popoverElement = u(), this.placement = "leading", this.offsetDistance = -200, this.pickListHasChanged = !1, this.aggregationLabels = [], this.layerFieldsInfo = [], this.isCustomSortDisabled = !1, this.isNoAggregationDisabled = !1, this.arcgisChartsConfigBarChartDataPopoverChange = y(), this.arcgisChartsConfigPopoverClose = y();
|
|
56
|
+
super(...arguments), this._messages = L(), this.commonStrings = L({ name: "common", blocking: !0 }), this.picklist = u(), this.intervalSizeElement = u(), this.intervalTypeElement = u(), this.popoverElement = u(), this.placement = "leading", this.offsetDistance = -200, this.pickListHasChanged = !1, this.aggregationLabels = [], this.open = !1, this.layerFieldsInfo = [], this.isCustomSortDisabled = !1, this.isNoAggregationDisabled = !1, this.arcgisChartsConfigBarChartDataPopoverChange = y(), this.arcgisChartsConfigPopoverClose = y();
|
|
57
57
|
}
|
|
58
58
|
static {
|
|
59
59
|
this.properties = { aggregationLabels: 16, timeAggregationLabels: 16, messageOverrides: 0, headingTitle: 1, referenceElement: 0, open: 5, contentKind: 1, layerFieldsInfo: 0, selectedContent: 1, isCustomSortDisabled: 5, isNoAggregationDisabled: 5 };
|
|
@@ -40,7 +40,7 @@ const r = {
|
|
|
40
40
|
}, u = p`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}: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}`;
|
|
41
41
|
class y extends f {
|
|
42
42
|
constructor() {
|
|
43
|
-
super(...arguments), this._messages = g(), this.popoverElement = C(), this.arcgisChartsConfigPopoverClose = o(), this.arcgisChartsConfigSeriesPopoverColorChange = o(), this.arcgisChartsConfigSeriesPopoverNameChange = o();
|
|
43
|
+
super(...arguments), this._messages = g(), this.popoverElement = C(), this.open = !1, this.arcgisChartsConfigPopoverClose = o(), this.arcgisChartsConfigSeriesPopoverColorChange = o(), this.arcgisChartsConfigSeriesPopoverNameChange = o();
|
|
44
44
|
}
|
|
45
45
|
static {
|
|
46
46
|
this.properties = { messageOverrides: 0, referenceElement: 0, selectedName: 1, selectedColor: 0, selectedSeriesIndex: 9, placement: 1, open: 5, nullCategory: 0 };
|
|
@@ -39,7 +39,7 @@ class f extends d {
|
|
|
39
39
|
super(...arguments), this.onModelConfigChange = async (e) => {
|
|
40
40
|
const o = e?.detail.config ?? this.model.config;
|
|
41
41
|
this.layer === void 0 && await this.updateFetchLayerFieldsInfo(o);
|
|
42
|
-
}, this.activeColorMatch = !1, this.popoverPlacement = "leading";
|
|
42
|
+
}, this.activeColorMatch = !1, this.popoverPlacement = "leading", this.usePopupTemplateFieldsInfo = !1;
|
|
43
43
|
}
|
|
44
44
|
static {
|
|
45
45
|
this.properties = { layerFieldsInfo: 16, activeColorMatch: 16, model: 0, popoverPlacement: 1, seriesColor: 0, page: 1, calculatedMinMaxBounds: 0, layer: 0, usePopupTemplateFieldsInfo: 5 };
|
|
@@ -52,7 +52,7 @@ const o = {
|
|
|
52
52
|
}, N = T`.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}.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}`;
|
|
53
53
|
class K extends E {
|
|
54
54
|
constructor() {
|
|
55
|
-
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();
|
|
55
|
+
super(...arguments), this._messages = S(), this.picklist = b(), this.placement = "leading", this.popoverElement = b(), this.offsetDistance = -200, this.pickListHasChanged = !1, this.open = !1, this.layerFieldsInfo = [], this.isCustomSortDisabled = !1, this.arcgisChartsConfigBoxPlotDataPopoverChange = C(), this.arcgisChartsConfigPopoverClose = C();
|
|
56
56
|
}
|
|
57
57
|
static {
|
|
58
58
|
this.properties = { messageOverrides: 0, headingTitle: 1, referenceElement: 0, open: 5, contentKind: 1, layerFieldsInfo: 0, isCustomSortDisabled: 5, selectedContent: 1 };
|
|
@@ -38,16 +38,16 @@ import { LitElement as $, createEvent as l, safeClassMap as n } from "@arcgis/lu
|
|
|
38
38
|
const c = {
|
|
39
39
|
jsAppFlyout: "js-app-flyout",
|
|
40
40
|
panelChildrenContainer: "panel-children-container"
|
|
41
|
-
},
|
|
42
|
-
class
|
|
41
|
+
}, L = C`.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{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}`;
|
|
42
|
+
class P extends $ {
|
|
43
43
|
constructor() {
|
|
44
|
-
super(...arguments), this._messages = S(), this.popoverElement = u(), this.isLineSymbol = !1, this.arcgisChartsConfigPopoverClose = l(), this.arcgisChartsConfigSeriesPopoverColorChange = l(), this.arcgisChartsConfigSeriesPopoverLineStyleChange = l(), this.arcgisChartsConfigSeriesPopoverLineWidthChange = l(), this.arcgisChartsConfigSeriesPopoverNameChange = l();
|
|
44
|
+
super(...arguments), this._messages = S(), this.popoverElement = u(), this.isLineSymbol = !1, this.open = !1, this.labelCanBeConfigured = !1, this.arcgisChartsConfigPopoverClose = l(), this.arcgisChartsConfigSeriesPopoverColorChange = l(), this.arcgisChartsConfigSeriesPopoverLineStyleChange = l(), this.arcgisChartsConfigSeriesPopoverLineWidthChange = l(), this.arcgisChartsConfigSeriesPopoverNameChange = l();
|
|
45
45
|
}
|
|
46
46
|
static {
|
|
47
47
|
this.properties = { messageOverrides: 0, referenceElement: 0, selectedName: 1, selectedColor: 0, selectedLineStyle: 1, selectedLineWidth: 9, selectedSeriesIndex: 9, isLineSymbol: 5, placement: 1, open: 5, labelCanBeConfigured: 5 };
|
|
48
48
|
}
|
|
49
49
|
static {
|
|
50
|
-
this.styles =
|
|
50
|
+
this.styles = L;
|
|
51
51
|
}
|
|
52
52
|
async reposition() {
|
|
53
53
|
await this.popoverElement.value?.reposition();
|
|
@@ -56,29 +56,29 @@ class L extends $ {
|
|
|
56
56
|
y(this.popoverElement.value, this.open);
|
|
57
57
|
}
|
|
58
58
|
seriesNameChange(e) {
|
|
59
|
-
const
|
|
60
|
-
this.selectedName !==
|
|
59
|
+
const i = e.target.value;
|
|
60
|
+
this.selectedName !== i && (this.selectedName = i, this.arcgisChartsConfigSeriesPopoverNameChange.emit({ name: i }));
|
|
61
61
|
}
|
|
62
62
|
closePopover() {
|
|
63
63
|
this.open = !1, this.arcgisChartsConfigPopoverClose.emit();
|
|
64
64
|
}
|
|
65
65
|
colorChange(e) {
|
|
66
|
-
const
|
|
67
|
-
this.selectedColor = [s,
|
|
66
|
+
const i = e instanceof CustomEvent ? e.detail : e, [s, t, o] = i, r = d * 255;
|
|
67
|
+
this.selectedColor = [s, t, o, r], this.arcgisChartsConfigSeriesPopoverColorChange.emit({ color: [s, t, o, r] });
|
|
68
68
|
}
|
|
69
69
|
lineSymbolChange(e) {
|
|
70
|
-
const { lineStyle:
|
|
70
|
+
const { lineStyle: i } = e.target, { color: s, style: t, width: o } = i;
|
|
71
71
|
if (s !== void 0 && !f(s, this.selectedColor)) {
|
|
72
72
|
const [r, p, h] = s, m = d * 255;
|
|
73
73
|
this.selectedColor = [r, p, h, m], this.arcgisChartsConfigSeriesPopoverColorChange.emit({ color: [r, p, h, m] });
|
|
74
74
|
}
|
|
75
|
-
|
|
75
|
+
t !== void 0 && t !== this.selectedLineStyle && (this.selectedLineStyle = t, this.arcgisChartsConfigSeriesPopoverLineStyleChange.emit({ style: t })), o !== void 0 && o !== this.selectedLineWidth && (this.selectedLineWidth = o, this.arcgisChartsConfigSeriesPopoverLineWidthChange.emit({ width: o }));
|
|
76
76
|
}
|
|
77
77
|
render() {
|
|
78
78
|
const e = this.selectedColor;
|
|
79
79
|
return a`<div class=${n({
|
|
80
80
|
[c.jsAppFlyout]: !0
|
|
81
|
-
})}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${b(this.popoverElement)}><calcite-panel .heading=${this._messages.seriesElement} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}>${this.labelCanBeConfigured ? a`<div class=${n(c.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${this.selectedName} @calciteInputInput=${this.seriesNameChange}></calcite-input></calcite-label></div>` : null}<div class=${n(c.panelChildrenContainer)}>${this.isLineSymbol ? a`<arcgis-charts-config-line-style .open=${this.open} enable-close .lineStyle=${{
|
|
81
|
+
})}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${b(this.popoverElement)}><calcite-panel .heading=${this._messages.seriesElement} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}>${this.labelCanBeConfigured ? a`<div class=${n(c.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${this.selectedName} @calciteInputInput=${this.seriesNameChange}></calcite-input></calcite-label></div>` : null}<div class=${n(this.isLineSymbol ? "" : c.panelChildrenContainer)}>${this.isLineSymbol ? a`<arcgis-charts-config-line-style .open=${this.open} enable-close .lineStyle=${{
|
|
82
82
|
type: v.SLS,
|
|
83
83
|
style: this.selectedLineStyle,
|
|
84
84
|
width: this.selectedLineWidth,
|
|
@@ -86,7 +86,7 @@ class L extends $ {
|
|
|
86
86
|
}} @arcgisChartsConfigLineStyleClose=${this.closePopover} @arcgisChartsConfigLineStyleChange=${this.lineSymbolChange}></arcgis-charts-config-line-style>` : a`<arcgis-charts-config-colors .heading=${this._messages.symbolColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors>`}</div></calcite-panel></calcite-popover></div>`;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
g("arcgis-charts-config-box-plot-series-popover",
|
|
89
|
+
g("arcgis-charts-config-box-plot-series-popover", P);
|
|
90
90
|
export {
|
|
91
|
-
|
|
91
|
+
P as ArcgisChartsConfigBoxPlotSeriesPopover
|
|
92
92
|
};
|
|
@@ -43,7 +43,7 @@ const e = {
|
|
|
43
43
|
}, v = 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)}.chart-rename-component{width:var(--arcgis-charts-config-panel-width-medium);height:var(--arcgis-charts-config-panel-height)}:host{overflow-y:auto;width:min-content}.rename-label-container{display:flex;padding:0 1rem;margin-top:1rem}.rename-label-container calcite-label{flex:1 1 0px;display:flex;width:0px}.rename-panel{width:calc(var(--calcite-panel-width-multiplier) * 20vw);max-width:calc(var(--calcite-panel-width-multiplier) * 420px);min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}`;
|
|
44
44
|
class C extends g {
|
|
45
45
|
constructor() {
|
|
46
|
-
super(...arguments), this._messages = h(), this.characterLimitInputElement = r(), this.popoverElement = r(), this.isChartTitleInvalid = !1, this.changedName = "", this.name = "", this.arcgisChartsConfigChartRenamePopoverChange = o(), this.arcgisChartsConfigPopoverClose = o();
|
|
46
|
+
super(...arguments), this._messages = h(), this.characterLimitInputElement = r(), this.popoverElement = r(), this.isChartTitleInvalid = !1, this.changedName = "", this.name = "", this.open = !1, this.arcgisChartsConfigChartRenamePopoverChange = o(), this.arcgisChartsConfigPopoverClose = o();
|
|
47
47
|
}
|
|
48
48
|
static {
|
|
49
49
|
this.properties = { isChartTitleInvalid: 16, changedName: 16, messageOverrides: 0, name: 1, open: 5, referenceElement: 0 };
|
|
@@ -8,7 +8,7 @@ const n = {
|
|
|
8
8
|
}, c = o`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{overflow-y:auto;width:min-content}:host calcite-panel .color-style-container{display:flex;padding:0 1rem;margin-top:1rem}:host calcite-panel .color-style-container calcite-label{flex:1 1 0px;display:flex;width:0px}.color-styling-panel>.panel-body{padding:var(--arcgis-charts-panel-padding);margin-top:var(--arcgis-charts-inter-section-margin)}`;
|
|
9
9
|
class h extends i {
|
|
10
10
|
constructor() {
|
|
11
|
-
super(...arguments), this._messages = l(), this.enableClose = !1, this.arcgisChartsConfigColorStyleChange = t(), this.arcgisChartsConfigColorStyleClose = t();
|
|
11
|
+
super(...arguments), this._messages = l(), this.open = !1, this.enableClose = !1, this.arcgisChartsConfigColorStyleChange = t(), this.arcgisChartsConfigColorStyleClose = t();
|
|
12
12
|
}
|
|
13
13
|
static {
|
|
14
14
|
this.properties = { messageOverrides: 0, header: 1, selectedColor: 0, open: 5, enableClose: 5 };
|
|
@@ -23,7 +23,7 @@ class h extends i {
|
|
|
23
23
|
this.selectedColor = e.detail, this.arcgisChartsConfigColorStyleChange.emit(this.selectedColor);
|
|
24
24
|
}
|
|
25
25
|
render() {
|
|
26
|
-
return a`<calcite-panel .heading=${this.header ?? this._messages.header} .closed=${this.open
|
|
26
|
+
return a`<calcite-panel .heading=${this.header ?? this._messages.header} .closed=${!this.open} .closable=${this.enableClose} @calcitePanelClose=${this.closePanel}><div class=${r(n.colorStyleContainer)}><arcgis-charts-config-colors @arcgisColorSelect=${this.colorChange} .rgba=${this.selectedColor}></arcgis-charts-config-colors></div></calcite-panel>`;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
s("arcgis-charts-config-color-style", h);
|
|
@@ -30,7 +30,7 @@ import { C as f } from "../../chunks/index5.js";
|
|
|
30
30
|
import { a as L } from "../../chunks/chart-ui-utils.js";
|
|
31
31
|
import { r as j } from "../../chunks/popover-ui-utils.js";
|
|
32
32
|
import { substitute as q } from "@arcgis/core/intl.js";
|
|
33
|
-
import { C as
|
|
33
|
+
import { C as n } from "../../chunks/interfaces.js";
|
|
34
34
|
import "@arcgis/core/layers/support/FeatureFilter.js";
|
|
35
35
|
import "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
36
36
|
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
@@ -58,14 +58,14 @@ function B(p, e) {
|
|
|
58
58
|
(i.has(r) || r === void 0 || r === "") && (a.chartId = `Chart_${Date.now()}_${s}`, e === r && (t = a.chartId)), i.add(r);
|
|
59
59
|
}), t;
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function le(p, e, i) {
|
|
62
62
|
return p?.filter((t) => F(i, t.config) && t.layer?.id === e) ?? [];
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function ne(p) {
|
|
65
65
|
const { modelList: e, layerList: i, activeLayerId: t, disableEditing: a } = p, s = /* @__PURE__ */ new Map();
|
|
66
66
|
return e?.forEach((r) => {
|
|
67
|
-
const
|
|
68
|
-
|
|
67
|
+
const l = r.layer;
|
|
68
|
+
l && s.set(l.id, l);
|
|
69
69
|
}), a || i.forEach((r) => s.set(r.id, r)), Array.from(s.values()).filter((r) => !t || r.id === t);
|
|
70
70
|
}
|
|
71
71
|
function ce(p, e) {
|
|
@@ -118,8 +118,8 @@ class pe extends Y {
|
|
|
118
118
|
switch (s?.chartType) {
|
|
119
119
|
case o.HistogramSeries:
|
|
120
120
|
if (this.chartData = t, a && (a.dataStore.chartData = t, z(a.layer))) {
|
|
121
|
-
const
|
|
122
|
-
c !== void 0 &&
|
|
121
|
+
const l = a, c = t?.bins?.length;
|
|
122
|
+
c !== void 0 && l.binCount !== c && (l.binCount = c);
|
|
123
123
|
}
|
|
124
124
|
break;
|
|
125
125
|
case o.PieSeries: {
|
|
@@ -127,25 +127,25 @@ class pe extends Y {
|
|
|
127
127
|
break;
|
|
128
128
|
}
|
|
129
129
|
case o.ScatterSeries: {
|
|
130
|
-
const
|
|
130
|
+
const l = t, { dataItems: c, r2: g, aggregated: u } = l;
|
|
131
131
|
let C = g;
|
|
132
132
|
Number.isFinite(g) || (C = void 0), this.r2 = C, _(a) && (a.dataStore.r2 = C, a.dataStore.aggregated = u, u && (a.additionalTooltipField = void 0)), this.calculatedDataMinMaxBounds = this.getDataExtent(c), a && (a.dataStore.calculatedDataMinMaxBounds = this.calculatedDataMinMaxBounds);
|
|
133
133
|
break;
|
|
134
134
|
}
|
|
135
135
|
case o.LineSeries:
|
|
136
136
|
case o.BarSeries: {
|
|
137
|
-
const { dataItems:
|
|
138
|
-
if ((S(s) || b(s) && s.binTemporalData) && (c?.size !== void 0 && s.temporalBinningSize !== c?.size && (s.temporalBinningSize = c?.size), c?.unit !== void 0 && s.temporalBinningUnit !== c?.unit && c?.unit !== K.Quarter && (s.temporalBinningUnit = c?.unit), c?.size !== void 0 && c?.unit !== void 0 && ae(x, { size: c.size, unit: c.unit })), this.calculatedDataMinMaxBounds = this.getDataExtent(
|
|
139
|
-
const g = s.xAxisField, u =
|
|
137
|
+
const { dataItems: l, timeIntervalInfo: c } = t;
|
|
138
|
+
if ((S(s) || b(s) && s.binTemporalData) && (c?.size !== void 0 && s.temporalBinningSize !== c?.size && (s.temporalBinningSize = c?.size), c?.unit !== void 0 && s.temporalBinningUnit !== c?.unit && c?.unit !== K.Quarter && (s.temporalBinningUnit = c?.unit), c?.size !== void 0 && c?.unit !== void 0 && ae(x, { size: c.size, unit: c.unit })), this.calculatedDataMinMaxBounds = this.getDataExtent(l), a && (a.dataStore.calculatedDataMinMaxBounds = this.calculatedDataMinMaxBounds), b(s)) {
|
|
139
|
+
const g = s.xAxisField, u = l.some((A) => A[g] === null), C = s.nullCategory;
|
|
140
140
|
u && C === void 0 && (s.nullCategory = H.nullCategory);
|
|
141
141
|
}
|
|
142
142
|
break;
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
}, this.chartAxesMinMaxChange = (e) => {
|
|
146
|
-
const i = e, { bounds: t, model: a } = i.detail, s = this.getModel(this.selectedChartId), r = a?.isSameChartAs(s),
|
|
146
|
+
const i = e, { bounds: t, model: a } = i.detail, s = this.getModel(this.selectedChartId), r = a?.isSameChartAs(s), l = s?.chartType;
|
|
147
147
|
if (r)
|
|
148
|
-
switch (
|
|
148
|
+
switch (l) {
|
|
149
149
|
case o.BarSeries:
|
|
150
150
|
case o.BoxPlotSeries:
|
|
151
151
|
case o.LineSeries:
|
|
@@ -165,14 +165,14 @@ class pe extends Y {
|
|
|
165
165
|
this.seriesColor = t, a && (a.dataStore.seriesColor = t);
|
|
166
166
|
break;
|
|
167
167
|
case o.PieSeries: {
|
|
168
|
-
const
|
|
169
|
-
this.seriesColor =
|
|
168
|
+
const l = /* @__PURE__ */ new Map([[0, t]]);
|
|
169
|
+
this.seriesColor = l, a && (a.dataStore.seriesColor = l);
|
|
170
170
|
break;
|
|
171
171
|
}
|
|
172
172
|
case o.ScatterSeries:
|
|
173
173
|
}
|
|
174
174
|
}, this.chartNoRenderPropChange = (e) => {
|
|
175
|
-
const i = e, { propName: t, value: a, model: s } = i.detail, r = this.modelList.find((
|
|
175
|
+
const i = e, { propName: t, value: a, model: s } = i.detail, r = this.modelList.find((l) => s?.isSameChartAs(l));
|
|
176
176
|
if (r)
|
|
177
177
|
switch (t) {
|
|
178
178
|
case "rotation":
|
|
@@ -204,10 +204,10 @@ class pe extends Y {
|
|
|
204
204
|
E(i?.layer, i);
|
|
205
205
|
}
|
|
206
206
|
this.requestUpdate();
|
|
207
|
-
}, this.allowChartSyncing = !1, this.currentChartTypeText = "", this.modelList = [], this.layerList = [], this.disableEditing = !1, this.syncChartsToLayers = !1, this.panelNumber = 0, this.arcgisChartsConfigChartViewChartClose = y(), this.arcgisChartsConfigModelListChange = y(), this.arcgisChartsConfigNewChart = y(), this.arcgisChartsConfigPanelNumberChange = y(), this.arcgisChartsConfigSelectedChartChange = y(), this.addChartEventListeners(), this.listen("arcgisChartsConfigModelListReorder", this.modelListReorderChangeListener);
|
|
207
|
+
}, this.allowChartSyncing = !1, this.currentChartTypeText = "", this.modelList = [], this.layerList = [], this.disableEditing = !1, this.syncChartsToLayers = !1, this.close = !1, this.usePopupTemplateFieldsInfo = !1, this.panelNumber = 0, this.filterBySelection = !1, this.arcgisChartsConfigChartViewChartClose = y(), this.arcgisChartsConfigModelListChange = y(), this.arcgisChartsConfigNewChart = y(), this.arcgisChartsConfigPanelNumberChange = y(), this.arcgisChartsConfigSelectedChartChange = y(), this.addChartEventListeners(), this.listen("arcgisChartsConfigModelListReorder", this.modelListReorderChangeListener);
|
|
208
208
|
}
|
|
209
209
|
static {
|
|
210
|
-
this.properties = { selectedPanel: 16, currentChartTypeText: 16, messageOverrides: 0, modelList: [0, { hasChanged: M }], layerList: [0, { hasChanged: M }], selectedChartId: 1, activeLayerId: 1, disableEditing: 5, syncChartsToLayers: 5, timeZone: 1, headerTitle: 1,
|
|
210
|
+
this.properties = { selectedPanel: 16, currentChartTypeText: 16, messageOverrides: 0, modelList: [0, { hasChanged: M }], layerList: [0, { hasChanged: M }], selectedChartId: 1, activeLayerId: 1, disableEditing: 5, syncChartsToLayers: 5, timeZone: 1, headerTitle: 1, close: 5, chartData: [0, { hasChanged: M }], r2: 9, calculatedDataMinMaxBounds: [0, { hasChanged: M }], calculatedMinMaxBounds: [0, { hasChanged: M }], seriesColor: [0, { hasChanged: re }], popoverPlacement: 1, usePopupTemplateFieldsInfo: 5, panelNumber: 9, filterBySelection: 5 };
|
|
211
211
|
}
|
|
212
212
|
static {
|
|
213
213
|
this.styles = me;
|
|
@@ -245,16 +245,16 @@ class pe extends Y {
|
|
|
245
245
|
let t = [...this.modelList.filter((a) => i.includes(a.layer?.id ?? ""))];
|
|
246
246
|
for (let a of this.layerList ?? []) {
|
|
247
247
|
if (a.type === "sublayer") {
|
|
248
|
-
const
|
|
249
|
-
if (!
|
|
248
|
+
const l = await a.createFeatureLayer();
|
|
249
|
+
if (!l)
|
|
250
250
|
continue;
|
|
251
|
-
a =
|
|
251
|
+
a = l;
|
|
252
252
|
}
|
|
253
253
|
const r = a.charts;
|
|
254
|
-
for (const
|
|
254
|
+
for (const l of r ?? []) {
|
|
255
255
|
const c = await U({
|
|
256
256
|
layer: a,
|
|
257
|
-
config:
|
|
257
|
+
config: l
|
|
258
258
|
});
|
|
259
259
|
c !== void 0 && e.push(c);
|
|
260
260
|
}
|
|
@@ -277,7 +277,7 @@ class pe extends Y {
|
|
|
277
277
|
}) : "", this.syncChartsToLayers && this.allowChartSyncing && ce(this.layerList, e), this.arcgisChartsConfigModelListChange.emit({ modelList: e });
|
|
278
278
|
}
|
|
279
279
|
selectedChartIdChange(e) {
|
|
280
|
-
this.selectedChartId === void 0 && (this.panelNumber = 0), this.selectedPanel =
|
|
280
|
+
this.selectedChartId === void 0 && (this.panelNumber = 0), this.selectedPanel = n.Data;
|
|
281
281
|
const i = this.getModel(e);
|
|
282
282
|
this.setEventBasedPropsFromModelData(i), this.currentChartTypeText = i?.chartType !== void 0 ? L({
|
|
283
283
|
chartType: i.chartType,
|
|
@@ -301,9 +301,9 @@ class pe extends Y {
|
|
|
301
301
|
const a = W({
|
|
302
302
|
chartConfig: i,
|
|
303
303
|
chartData: e
|
|
304
|
-
}), { minY: s, maxY: r, minX:
|
|
304
|
+
}), { minY: s, maxY: r, minX: l, maxX: c } = a;
|
|
305
305
|
t = [
|
|
306
|
-
{ isXAxis: !0, minimum:
|
|
306
|
+
{ isXAxis: !0, minimum: l, maximum: c },
|
|
307
307
|
{ isXAxis: !1, minimum: s, maximum: r }
|
|
308
308
|
];
|
|
309
309
|
}
|
|
@@ -313,10 +313,10 @@ class pe extends Y {
|
|
|
313
313
|
e?.forEach((i) => {
|
|
314
314
|
const { isXAxis: t, maximum: a, minimum: s } = i, r = this.getModel(this.selectedChartId);
|
|
315
315
|
if (r !== void 0 && v(r) && this.selectedChartId !== void 0) {
|
|
316
|
-
const
|
|
316
|
+
const l = new se(r, t), c = ie({
|
|
317
317
|
chartId: this.selectedChartId,
|
|
318
318
|
isXAxis: t,
|
|
319
|
-
isLogarithmic:
|
|
319
|
+
isLogarithmic: l.getLogarithmic()
|
|
320
320
|
}), g = x.chartAxesBoundDataMap;
|
|
321
321
|
g[this.selectedChartId] === void 0 && (g[this.selectedChartId] = {});
|
|
322
322
|
const u = g[this.selectedChartId]?.[c], C = {
|
|
@@ -370,7 +370,7 @@ class pe extends Y {
|
|
|
370
370
|
this.onViewChartsSelect(e), this.panelNumber = 1;
|
|
371
371
|
}
|
|
372
372
|
onViewChartClose() {
|
|
373
|
-
this.
|
|
373
|
+
this.close = !0, this.removeSelectChartTypePopover(), this.arcgisChartsConfigChartViewChartClose.emit();
|
|
374
374
|
}
|
|
375
375
|
setEventBasedPropsFromModelData(e) {
|
|
376
376
|
this.chartData = e?.dataStore.chartData, this.r2 = e?.dataStore.r2, this.seriesColor = e?.dataStore.seriesColor, this.calculatedMinMaxBounds = e?.dataStore.calculatedMinMaxBounds, this.calculatedDataMinMaxBounds = e?.dataStore.calculatedDataMinMaxBounds;
|
|
@@ -412,40 +412,40 @@ class pe extends Y {
|
|
|
412
412
|
oe(this.tooltip);
|
|
413
413
|
}
|
|
414
414
|
renderViewCharts() {
|
|
415
|
-
const e =
|
|
415
|
+
const e = ne({
|
|
416
416
|
modelList: this.modelList,
|
|
417
417
|
layerList: this.layerList,
|
|
418
418
|
activeLayerId: this.activeLayerId,
|
|
419
419
|
disableEditing: this.disableEditing
|
|
420
420
|
});
|
|
421
|
-
return V(e, (i) => i.id, (i) => h`<arcgis-charts-config-view-charts .noGroup=${this.activeLayerId !== void 0} .modelList=${
|
|
421
|
+
return V(e, (i) => i.id, (i) => h`<arcgis-charts-config-view-charts .noGroup=${this.activeLayerId !== void 0} .modelList=${le(this.modelList, i.id.toString(), X(i.type) ? Z : this.supportedChartTypes)} .selectedChartId=${this.selectedChartId ?? ""} .layer=${i} .disableEditing=${this.disableEditing} @arcgisChartsConfigViewChartSelect=${this.onViewChartsSelect} @arcgisChartsConfigViewChartEdit=${this.onViewChartsEdit} @arcgisChartsConfigViewChartDelete=${this.onViewChartDelete} @arcgisChartsConfigViewChartAddChart=${this.onAddChartClick}></arcgis-charts-config-view-charts>`);
|
|
422
422
|
}
|
|
423
423
|
render() {
|
|
424
|
-
return this.
|
|
424
|
+
return this.close ? null : h`<calcite-flow>${$("charts-list", h`<calcite-flow-item .selected=${this.panelNumber === 0 || this.disableEditing} .heading=${this.headerTitle ?? this._messages.defaultHeaderTitle} closable @calciteFlowItemClose=${this.onViewChartClose} ${te(this.chartsListFlowItem)}>${this.renderViewCharts()}</calcite-flow-item>`)}${this.panelNumber >= 1 && !this.disableEditing ? this.renderTabs() : null}</calcite-flow>`;
|
|
425
425
|
}
|
|
426
426
|
renderTabs() {
|
|
427
427
|
const e = this.getModel(this.selectedChartId);
|
|
428
|
-
return $("chart-edit", h`<calcite-flow-item .selected=${this.panelNumber >= 1 && !this.disableEditing} @calciteFlowItemBack=${this.onBackFlow} .heading=${this._messages[this.selectedPanel ??
|
|
428
|
+
return $("chart-edit", h`<calcite-flow-item .selected=${this.panelNumber >= 1 && !this.disableEditing} @calciteFlowItemBack=${this.onBackFlow} .heading=${this._messages[this.selectedPanel ?? n.Data]} .description=${this.currentChartTypeText !== "" && this._messages.pageFlowTitle !== void 0 ? q(this._messages.pageFlowTitle, {
|
|
429
429
|
chartName: e?.titleText ?? this.currentChartTypeText,
|
|
430
430
|
layerName: e?.layer?.title ?? ""
|
|
431
|
-
}) : ""}>${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 ===
|
|
432
|
-
this.selectedPanel =
|
|
433
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>${e?.chartType === o.BarSeries ? h`<calcite-action class=${d(m.tab)} icon=graph-bar-stacked scale=s alignment=center .active=${this.selectedPanel ===
|
|
434
|
-
this.selectedPanel =
|
|
435
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}${e?.chartType === o.LineSeries ? h`<calcite-action class=${d(m.tab)} icon=graph-line-series scale=s alignment=center .active=${this.selectedPanel ===
|
|
436
|
-
this.selectedPanel =
|
|
437
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}${e?.chartType === o.BoxPlotSeries ? h`<calcite-action class=${d(m.tab)} icon=box-chart-series scale=s alignment=center .active=${this.selectedPanel ===
|
|
438
|
-
this.selectedPanel =
|
|
439
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}${e?.chartType === o.PieSeries ? h`<calcite-action class=${d(m.tab)} icon=graph-pie-slice scale=s alignment=center .active=${this.selectedPanel ===
|
|
440
|
-
this.selectedPanel =
|
|
441
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}${e?.chartType !== o.PieSeries && e?.chartType !== o.HeatSeries ? h`<calcite-action class=${d(m.tab)} icon=graph-axis scale=s alignment=center .active=${this.selectedPanel ===
|
|
442
|
-
this.selectedPanel =
|
|
443
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}${e?.chartType !== o.PieSeries && e?.chartType !== o.HeatSeries ? h`<calcite-action class=${d(m.tab)} icon=graph-guides scale=s alignment=center .active=${this.selectedPanel ===
|
|
444
|
-
this.selectedPanel =
|
|
445
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}<calcite-action class=${d(m.tab)} icon=palette scale=s alignment=center .active=${this.selectedPanel ===
|
|
446
|
-
this.selectedPanel =
|
|
447
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action><calcite-action class=${d(m.tab)} icon=text scale=s alignment=center .active=${this.selectedPanel ===
|
|
448
|
-
this.selectedPanel =
|
|
431
|
+
}) : ""}>${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 === n.Data || this.selectedPanel === void 0} @click=${() => {
|
|
432
|
+
this.selectedPanel = n.Data;
|
|
433
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>${e?.chartType === o.BarSeries ? h`<calcite-action class=${d(m.tab)} icon=graph-bar-stacked scale=s alignment=center .active=${this.selectedPanel === n.Series} @click=${() => {
|
|
434
|
+
this.selectedPanel = n.Series;
|
|
435
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}${e?.chartType === o.LineSeries ? h`<calcite-action class=${d(m.tab)} icon=graph-line-series scale=s alignment=center .active=${this.selectedPanel === n.Series} @click=${() => {
|
|
436
|
+
this.selectedPanel = n.Series;
|
|
437
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}${e?.chartType === o.BoxPlotSeries ? h`<calcite-action class=${d(m.tab)} icon=box-chart-series scale=s alignment=center .active=${this.selectedPanel === n.Series} @click=${() => {
|
|
438
|
+
this.selectedPanel = n.Series;
|
|
439
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}${e?.chartType === o.PieSeries ? h`<calcite-action class=${d(m.tab)} icon=graph-pie-slice scale=s alignment=center .active=${this.selectedPanel === n.Slices} @click=${() => {
|
|
440
|
+
this.selectedPanel = n.Slices;
|
|
441
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}${e?.chartType !== o.PieSeries && e?.chartType !== o.HeatSeries ? h`<calcite-action class=${d(m.tab)} icon=graph-axis scale=s alignment=center .active=${this.selectedPanel === n.Axes} @click=${() => {
|
|
442
|
+
this.selectedPanel = n.Axes;
|
|
443
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}${e?.chartType !== o.PieSeries && e?.chartType !== o.HeatSeries ? h`<calcite-action class=${d(m.tab)} icon=graph-guides scale=s alignment=center .active=${this.selectedPanel === n.Guides} @click=${() => {
|
|
444
|
+
this.selectedPanel = n.Guides;
|
|
445
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}<calcite-action class=${d(m.tab)} icon=palette scale=s alignment=center .active=${this.selectedPanel === n.Format} @click=${() => {
|
|
446
|
+
this.selectedPanel = n.Format;
|
|
447
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action><calcite-action class=${d(m.tab)} icon=text scale=s alignment=center .active=${this.selectedPanel === n.General} @click=${() => {
|
|
448
|
+
this.selectedPanel = n.General;
|
|
449
449
|
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action></calcite-action-bar>` : null}${this.renderChartUIComponent()}</calcite-flow-item>`);
|
|
450
450
|
}
|
|
451
451
|
renderChartUIComponent() {
|
|
@@ -454,25 +454,25 @@ class pe extends Y {
|
|
|
454
454
|
if (e !== void 0 && !this.disableEditing)
|
|
455
455
|
switch (e?.chartType) {
|
|
456
456
|
case o.BarSeries:
|
|
457
|
-
t = h`<arcgis-charts-config-bar-chart class=${d(m.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${i} .page=${this.selectedPanel ??
|
|
457
|
+
t = h`<arcgis-charts-config-bar-chart class=${d(m.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${i} .page=${this.selectedPanel ?? n.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-bar-chart>`;
|
|
458
458
|
break;
|
|
459
459
|
case o.LineSeries:
|
|
460
|
-
t = h`<arcgis-charts-config-line-chart class=${d(m.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${i} .page=${this.selectedPanel ??
|
|
460
|
+
t = h`<arcgis-charts-config-line-chart class=${d(m.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${i} .page=${this.selectedPanel ?? n.Data} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-line-chart>`;
|
|
461
461
|
break;
|
|
462
462
|
case o.PieSeries:
|
|
463
|
-
t = h`<arcgis-charts-config-pie-chart class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${i} .chartData=${this.chartData} .page=${this.selectedPanel ??
|
|
463
|
+
t = h`<arcgis-charts-config-pie-chart class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${i} .chartData=${this.chartData} .page=${this.selectedPanel ?? n.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor} .filterBySelection=${this.filterBySelection}></arcgis-charts-config-pie-chart>`;
|
|
464
464
|
break;
|
|
465
465
|
case o.HistogramSeries:
|
|
466
|
-
t = h`<arcgis-charts-config-histogram class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${i} .page=${this.selectedPanel ??
|
|
466
|
+
t = h`<arcgis-charts-config-histogram class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${i} .page=${this.selectedPanel ?? n.Data} .chartData=${this.chartData} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-histogram>`;
|
|
467
467
|
break;
|
|
468
468
|
case o.ScatterSeries:
|
|
469
|
-
t = h`<arcgis-charts-config-scatter-plot class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${i} .page=${this.selectedPanel ??
|
|
469
|
+
t = h`<arcgis-charts-config-scatter-plot class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${i} .page=${this.selectedPanel ?? n.Data} .r2=${this.r2} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-scatter-plot>`;
|
|
470
470
|
break;
|
|
471
471
|
case o.BoxPlotSeries:
|
|
472
|
-
t = h`<arcgis-charts-config-box-plot class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${i} .page=${this.selectedPanel ??
|
|
472
|
+
t = h`<arcgis-charts-config-box-plot class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${i} .page=${this.selectedPanel ?? n.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-box-plot>`;
|
|
473
473
|
break;
|
|
474
474
|
case o.HeatSeries:
|
|
475
|
-
t = h`<arcgis-charts-config-heat-chart class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${i} .page=${this.selectedPanel ??
|
|
475
|
+
t = h`<arcgis-charts-config-heat-chart class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${i} .page=${this.selectedPanel ?? n.Data}></arcgis-charts-config-heat-chart>`;
|
|
476
476
|
break;
|
|
477
477
|
}
|
|
478
478
|
return t;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as y } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as S, html as
|
|
3
|
+
import { css as S, html as a } from "lit";
|
|
4
4
|
import "@arcgis/toolkit/intl";
|
|
5
5
|
import { merge as i } from "lodash-es";
|
|
6
6
|
import "luxon";
|
|
@@ -60,7 +60,7 @@ class z extends E {
|
|
|
60
60
|
constructor() {
|
|
61
61
|
super(...arguments), this._messages = v(), this.fontSizeInputElement = C(), this.fontStyle = {
|
|
62
62
|
type: u.TS
|
|
63
|
-
}, this.arcgisChartsConfigFontStyleChange = h(), this.arcgisChartsConfigFontStyleClose = h();
|
|
63
|
+
}, this.open = !1, this.enableClose = !1, this.arcgisChartsConfigFontStyleChange = h(), this.arcgisChartsConfigFontStyleClose = h();
|
|
64
64
|
}
|
|
65
65
|
static {
|
|
66
66
|
this.properties = { messageOverrides: 0, fontStyle: 0, header: 1, open: 5, enableClose: 5 };
|
|
@@ -69,15 +69,15 @@ class z extends E {
|
|
|
69
69
|
this.styles = x;
|
|
70
70
|
}
|
|
71
71
|
closePanel(t) {
|
|
72
|
-
t.target.closed && this.enableClose
|
|
72
|
+
t.target.closed && this.enableClose && (this.open = !1, this.arcgisChartsConfigFontStyleClose.emit());
|
|
73
73
|
}
|
|
74
74
|
fontChange(t) {
|
|
75
75
|
const m = t.target.selectedOption.value;
|
|
76
76
|
if (m !== void 0) {
|
|
77
|
-
const
|
|
77
|
+
const l = {
|
|
78
78
|
family: m
|
|
79
79
|
};
|
|
80
|
-
this.isNewFontProperty("family",
|
|
80
|
+
this.isNewFontProperty("family", l) && (this.fontStyle = i(this.fontStyle, { font: l }), this.emitFontStyleEvent({ font: l }));
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
fontSizeChange() {
|
|
@@ -124,11 +124,11 @@ class z extends E {
|
|
|
124
124
|
return this.fontStyle?.font?.[t] !== e[t];
|
|
125
125
|
}
|
|
126
126
|
renderFonts() {
|
|
127
|
-
const t = Object.values(I).map((e) =>
|
|
128
|
-
return this.fontStyle?.font?.family === "" && t.push(
|
|
127
|
+
const t = Object.values(I).map((e) => a`<calcite-option .value=${e} .selected=${e === this.fontStyle?.font?.family || e === d().font?.family?.split(",")[0] && this.fontStyle?.font?.family === void 0}>${e}</calcite-option>`);
|
|
128
|
+
return this.fontStyle?.font?.family === "" && t.push(a`<calcite-option value selected></calcite-option>`), t;
|
|
129
129
|
}
|
|
130
130
|
render() {
|
|
131
|
-
return
|
|
131
|
+
return a`<calcite-panel .heading=${this.header ?? this._messages.header} .closed=${!this.open} .closable=${this.enableClose ?? !1} @calcitePanelClose=${this.closePanel}><div class=${n(o.fontStyleContainer)}><calcite-label class=${n(o.font)}>${this._messages.font}<calcite-select .label=${this._messages.font ?? ""} @calciteSelectChange=${this.fontChange}>${this.renderFonts()}</calcite-select></calcite-label></div><div class=${n(o.fontStyleContainer)}><calcite-label class=${n(o.inputLabel)}>${this._messages.size}<calcite-input class=${n(o.numberInput)} type=number min=6 max=40 step=1 .value=${b(this.fontStyle?.font?.size)} @calciteInputInput=${this.fontSizeChange} ${$(this.fontSizeInputElement)}></calcite-input></calcite-label><calcite-action appearance=transparent .text=${this._messages.bold ?? ""} @click=${this.boldSelect} scale=l .active=${this.fontStyle?.font?.weight === s.Bold}><calcite-icon scale=s icon=bold></calcite-icon></calcite-action><calcite-action appearance=transparent .text=${this._messages.italic ?? ""} @click=${this.italicSelect} scale=l .active=${this.fontStyle?.font?.style === c.Italic}><calcite-icon scale=s icon=italicize></calcite-icon></calcite-action><calcite-action appearance=transparent .text=${this._messages.underline ?? ""} @click=${this.underlineSelect} scale=l .active=${this.fontStyle?.font?.decoration === r.Underline}><calcite-icon scale=s icon=underline></calcite-icon></calcite-action></div><div class=${n(o.fontStyleContainer)}><arcgis-charts-config-colors .rgba=${this.fontStyle?.color ?? void 0} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></calcite-panel>`;
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
y("arcgis-charts-config-font-style", z);
|
|
@@ -6,7 +6,7 @@ import "lodash-es";
|
|
|
6
6
|
import "luxon";
|
|
7
7
|
import "../../chunks/series-types.js";
|
|
8
8
|
import "@arcgis/toolkit/type";
|
|
9
|
-
import { i as
|
|
9
|
+
import { i as r } from "../../chunks/rest-js-object-literals.js";
|
|
10
10
|
import "../../chunks/index.js";
|
|
11
11
|
import "@arcgis/core/Graphic.js";
|
|
12
12
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
@@ -34,13 +34,13 @@ import "@arcgis/toolkit/dom";
|
|
|
34
34
|
import { e as l } from "../../chunks/popover-ui-utils.js";
|
|
35
35
|
import { u as p } from "../../chunks/useT9n.js";
|
|
36
36
|
import { createRef as n, ref as m } from "lit/directives/ref.js";
|
|
37
|
-
import { LitElement as c, createEvent as
|
|
37
|
+
import { LitElement as c, createEvent as s, safeClassMap as h } from "@arcgis/lumina";
|
|
38
38
|
const g = {
|
|
39
39
|
jsAppFlyout: "js-app-flyout"
|
|
40
40
|
}, C = a``;
|
|
41
41
|
class f extends c {
|
|
42
42
|
constructor() {
|
|
43
|
-
super(...arguments), this._messages = p(), this.popoverElement = n(), this.placement = "leading", this.arcgisChartsConfigFormatPopoverColorChange =
|
|
43
|
+
super(...arguments), this._messages = p(), this.popoverElement = n(), this.placement = "leading", this.open = !1, this.arcgisChartsConfigFormatPopoverColorChange = s(), this.arcgisChartsConfigFormatPopoverSymbolChange = s(), this.arcgisChartsConfigFormatPopoverTextChange = s(), this.arcgisChartsConfigPopoverClose = s();
|
|
44
44
|
}
|
|
45
45
|
static {
|
|
46
46
|
this.properties = { messageOverrides: 0, selectedElement: 0, referenceElement: 0, placement: 1, open: 5 };
|
|
@@ -68,7 +68,7 @@ class f extends c {
|
|
|
68
68
|
}
|
|
69
69
|
render() {
|
|
70
70
|
const e = this.selectedElement, t = this.selectedElement;
|
|
71
|
-
return o`<div class=${h(g.jsAppFlyout)}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .open=${this.open} label @calcitePopoverClose=${this.closePopover} pointer-disabled auto-close ${m(this.popoverElement)}>${Array.isArray(e) ? o`<arcgis-charts-config-color-style .header=${this._messages.backgroundElement} enable-close .open=${this.open} .selectedColor=${e} @arcgisChartsConfigColorStyleClose=${this.closePopover} @arcgisChartsConfigColorStyleChange=${this.updateColorProperties}></arcgis-charts-config-color-style>` : null}${t?.type ===
|
|
71
|
+
return o`<div class=${h(g.jsAppFlyout)}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .open=${!this.open} label @calcitePopoverClose=${this.closePopover} pointer-disabled auto-close ${m(this.popoverElement)}>${Array.isArray(e) ? o`<arcgis-charts-config-color-style .header=${this._messages.backgroundElement} enable-close .open=${this.open} .selectedColor=${e} @arcgisChartsConfigColorStyleClose=${this.closePopover} @arcgisChartsConfigColorStyleChange=${this.updateColorProperties}></arcgis-charts-config-color-style>` : null}${t?.type === r.SLS ? o`<arcgis-charts-config-line-style .header=${this._messages.lineStyle} .open=${this.open} enable-close .lineStyle=${t} @arcgisChartsConfigLineStyleClose=${this.closePopover} @arcgisChartsConfigLineStyleChange=${this.updateSymbolProperties}></arcgis-charts-config-line-style>` : null}${t?.type === r.TS ? o`<arcgis-charts-config-font-style .header=${this._messages.textStyle} .open=${this.open} enable-close .fontStyle=${t} @arcgisChartsConfigFontStyleClose=${this.closePopover} @arcgisChartsConfigFontStyleChange=${this.updateTextProperties}></arcgis-charts-config-font-style>` : null}</calcite-popover></div>`;
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
i("arcgis-charts-config-format-popover", f);
|
|
@@ -41,7 +41,7 @@ const C = {
|
|
|
41
41
|
}, d = p``;
|
|
42
42
|
class f extends h {
|
|
43
43
|
constructor() {
|
|
44
|
-
super(...arguments), this._messages = n(), this.popoverElement = m(), this.placement = "leading", this.arcgisChartsConfigGuidePopoverColorChange = i(), this.arcgisChartsConfigGuidePopoverSymbolChange = i(), this.arcgisChartsConfigPopoverClose = i();
|
|
44
|
+
super(...arguments), this._messages = n(), this.popoverElement = m(), this.placement = "leading", this.open = !1, this.arcgisChartsConfigGuidePopoverColorChange = i(), this.arcgisChartsConfigGuidePopoverSymbolChange = i(), this.arcgisChartsConfigPopoverClose = i();
|
|
45
45
|
}
|
|
46
46
|
static {
|
|
47
47
|
this.properties = { messageOverrides: 0, selectedElement: 0, referenceElement: 0, placement: 1, open: 5 };
|