@arcgis/charts-components 5.2.0-next.10 → 5.2.0-next.11
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/{I5AALJRN.js → 24AOJE7B.js} +1 -1
- package/dist/cdn/{VOTZAPI3.js → 3KRPCKJZ.js} +1 -1
- package/dist/cdn/{LOZOENFC.js → 3TBK72EK.js} +1 -1
- package/dist/cdn/{RA3CZHC7.js → 425PZ2QJ.js} +1 -1
- package/dist/cdn/{6SRJ2VKV.js → 4PHYDOBF.js} +1 -1
- package/dist/cdn/{F7Q3XDZH.js → 567CLBG4.js} +1 -1
- package/dist/cdn/{YDJPGFXU.js → 5IIF22XN.js} +1 -1
- package/dist/cdn/{NKJC4MT7.js → 5IN5WK2R.js} +1 -1
- package/dist/cdn/{GNC62GNV.js → 5LXX2PUM.js} +1 -1
- package/dist/cdn/{4YJSRB7R.js → 5NTIKQP4.js} +1 -1
- package/dist/cdn/{QF4UBQYT.js → 5YEADAVZ.js} +1 -1
- package/dist/cdn/{2XYTPC2V.js → 6R7VSDDU.js} +1 -1
- package/dist/cdn/{ICVAXCHZ.js → 76MOP26H.js} +1 -1
- package/dist/cdn/77A4T4FJ.js +2 -0
- package/dist/cdn/{N7NZHIGS.js → 7JIHGRTB.js} +1 -1
- package/dist/cdn/{CHQDKVVQ.js → 7YXTWBT4.js} +1 -1
- package/dist/cdn/{XUT56VH6.js → AHYYQWKY.js} +1 -1
- package/dist/cdn/{CEE2QRZ5.js → ASI7RDYV.js} +1 -1
- package/dist/cdn/{4J6UFQ2Q.js → AXS3UMQJ.js} +1 -1
- package/dist/cdn/BHUFE4DA.js +2 -0
- package/dist/cdn/{2HTYRBIX.js → CEWH3LQO.js} +1 -1
- package/dist/cdn/{KKKCWW6G.js → CTBQ5Y4Z.js} +1 -1
- package/dist/cdn/CVK7KFEC.js +2 -0
- package/dist/cdn/{255TSQSE.js → DFKVPDMJ.js} +6 -6
- package/dist/cdn/DJGEQ42V.js +2 -0
- package/dist/cdn/DL43NPDO.js +2 -0
- package/dist/cdn/{PZKRRAXW.js → E2DO2HQ6.js} +1 -1
- package/dist/cdn/E4LJWBRC.js +2 -0
- package/dist/cdn/EE3KEIAT.js +2 -0
- package/dist/cdn/EJCGZPIV.js +2 -0
- package/dist/cdn/{L6ZALCLC.js → ETSB7KD3.js} +1 -1
- package/dist/cdn/{YSWV4FZE.js → F6QRLYSF.js} +1 -1
- package/dist/cdn/{ZIVPZF6E.js → FBMA7FW4.js} +1 -1
- package/dist/cdn/{3376CR53.js → FEKSPYHM.js} +1 -1
- package/dist/cdn/FUAA6IFR.js +4 -0
- package/dist/cdn/FWRMJQXY.js +2 -0
- package/dist/cdn/{M6JCOZIE.js → G5FULTB5.js} +1 -1
- package/dist/cdn/{PRPNJEPZ.js → GISGGO3Z.js} +1 -1
- package/dist/cdn/{CBHWMUGA.js → GQPOEX7B.js} +21 -21
- package/dist/cdn/{BJRHNVLR.js → GYXK3DV7.js} +1 -1
- package/dist/cdn/{Z5VVIVR3.js → H45LPCQ2.js} +1 -1
- package/dist/cdn/HW6MJJSX.js +2 -0
- package/dist/cdn/{2PAVNZEM.js → HZFHTWL6.js} +1 -1
- package/dist/cdn/{QF6LHQTR.js → I2EERAZ3.js} +1 -1
- package/dist/cdn/{PM6FCUUV.js → I5T7JUDH.js} +1 -1
- package/dist/cdn/IE3GLZJZ.js +2 -0
- package/dist/cdn/{PNDFAGEB.js → IL2FG26D.js} +1 -1
- package/dist/cdn/{5V3ADOWS.js → JBPYGZPJ.js} +1 -1
- package/dist/cdn/JEOBO5JM.js +2 -0
- package/dist/cdn/{XWZYTOHY.js → KPWHYSA5.js} +1 -1
- package/dist/cdn/{IKCVYV5L.js → KXUQJ6GE.js} +1 -1
- package/dist/cdn/{GXC7VLYM.js → KZQFX7LH.js} +1 -1
- package/dist/cdn/{VMS7DT3M.js → L5DROI2A.js} +1 -1
- package/dist/cdn/LL7NH3VV.js +2 -0
- package/dist/cdn/{CDHUW42P.js → LUMOL7ZP.js} +1 -1
- package/dist/cdn/{5OKNLDIJ.js → LYJFZA2M.js} +1 -1
- package/dist/cdn/{WBJ6NWHX.js → MBSMC77K.js} +1 -1
- package/dist/cdn/{25YAWDIB.js → MVGAATR7.js} +1 -1
- package/dist/cdn/{UHPAFBYO.js → NNZCIR7W.js} +1 -1
- package/dist/cdn/NZXQ5BWP.js +2 -0
- package/dist/cdn/{FTOYQNHN.js → O4HUYRYL.js} +1 -1
- package/dist/cdn/{4ETF22K6.js → O4LKWTBY.js} +1 -1
- package/dist/cdn/{LIPUN4CH.js → OW2DLJGU.js} +1 -1
- package/dist/cdn/{CSAUXIK2.js → P2F2O6MH.js} +1 -1
- package/dist/cdn/P4UJJCPG.js +2 -0
- package/dist/cdn/{BBURKBKE.js → P56ROGSK.js} +1 -1
- package/dist/cdn/{HD4FP3ZK.js → PMIWXHTG.js} +1 -1
- package/dist/cdn/{SYIW6YJN.js → PXIAM4CZ.js} +1 -1
- package/dist/cdn/{VL2G5M57.js → QPSJ6XOX.js} +1 -1
- package/dist/cdn/R7HW5WVG.js +2 -0
- package/dist/cdn/{2A7JZQX5.js → RJCJ3F5C.js} +1 -1
- package/dist/cdn/{QM27URJR.js → RKB6QZNW.js} +1 -1
- package/dist/cdn/{GBDEYCR6.js → S6LH7YS6.js} +1 -1
- package/dist/cdn/{XACXJMSF.js → S74GCXXK.js} +2 -2
- package/dist/cdn/{JNNB2DIA.js → SA22QZNW.js} +1 -1
- package/dist/cdn/{OYCT7CFU.js → SJVVFOAX.js} +1 -1
- package/dist/cdn/{TH4OHGTQ.js → SOKKWGPA.js} +1 -1
- package/dist/cdn/SQYOFBS6.js +2 -0
- package/dist/cdn/{KHNP4LWB.js → SVGAVKBQ.js} +1 -1
- package/dist/cdn/SX6SDBU7.js +2 -0
- package/dist/cdn/TTBRUBXY.js +2 -0
- package/dist/cdn/{IHTJSWKK.js → U5IM4KAQ.js} +1 -1
- package/dist/cdn/{VW4GW2JT.js → UE5VX2RL.js} +1 -1
- package/dist/cdn/{7EEYYP6X.js → UIRKQREJ.js} +1 -1
- package/dist/cdn/{Z4HCNLCD.js → UIY2PSG4.js} +1 -1
- package/dist/cdn/UNTIPIBS.js +2 -0
- package/dist/cdn/{KB76VF4V.js → VIY3BCJZ.js} +1 -1
- package/dist/cdn/{LO6KKSE4.js → WHJU66P4.js} +1 -1
- package/dist/cdn/{3S3PN7AK.js → WJ2VDT6B.js} +1 -1
- package/dist/cdn/WU3C7BQU.js +2 -0
- package/dist/cdn/{SPVZ5BND.js → WWO326JE.js} +1 -1
- package/dist/cdn/{H4B3ERFL.js → XNWSVHA3.js} +1 -1
- package/dist/cdn/{RH4AC577.js → XOM6LSIW.js} +1 -1
- package/dist/cdn/{NFANBMTU.js → XP4S2M7F.js} +1 -1
- package/dist/cdn/YALB4GSA.js +2 -0
- package/dist/cdn/YUF4ZSA5.js +2 -0
- package/dist/cdn/ZJHV3UVG.js +2 -0
- package/dist/cdn/{SZEYHOGG.js → ZQ2WG55W.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/data.js +68 -68
- package/dist/chunks/index2.js +214 -208
- package/dist/chunks/index3.js +1 -0
- package/dist/chunks/index4.js +21 -14
- package/dist/chunks/serial-chart-data.js +588 -569
- package/dist/chunks/time-zone.js +1 -1
- package/dist/chunks/web-component-utils.js +529 -508
- package/dist/components/arcgis-chart/customElement.d.ts +1 -1
- package/dist/components/arcgis-chart/customElement.js +4167 -4128
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +34 -36
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +28 -28
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +5 -8
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +34 -35
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +14 -17
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +14 -16
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +11 -11
- package/dist/components/arcgis-charts-config-format/customElement.js +25 -25
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +7 -10
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +8 -11
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +13 -14
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +25 -26
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +28 -30
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +4 -5
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +35 -35
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +37 -39
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +5 -8
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +11 -12
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +8 -10
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/json-schema/index.d.ts +9 -2
- package/dist/model/interfaces/common.d.ts +0 -2
- package/dist/spec/rest-js-types.d.ts +22 -8
- package/dist/spec/web-chart.d.ts +2 -2
- package/dist/utils/chart-config/converter/index.js +264 -264
- package/dist/utils/chart-config/utils/index.d.ts +1 -0
- package/dist/utils/chart-config/validator/interfaces.d.ts +1 -3
- package/dist/utils/errors/index.d.ts +1 -1
- package/dist/utils/layer/inline-conversion/index.d.ts +0 -3
- package/dist/utils/layer/inline-conversion/interfaces.d.ts +0 -2
- package/dist/utils/misc/index.d.ts +2 -3
- package/dist/utils/types/index.d.ts +1 -5
- package/package.json +3 -3
- package/dist/cdn/3CFZUVMF.js +0 -2
- package/dist/cdn/3W2A4SAP.js +0 -2
- package/dist/cdn/5JNEJJU3.js +0 -2
- package/dist/cdn/6MF2R6DJ.js +0 -2
- package/dist/cdn/BER7FMK3.js +0 -2
- package/dist/cdn/CGYB5KPV.js +0 -2
- package/dist/cdn/DJ5OHPYW.js +0 -2
- package/dist/cdn/EK33HUAH.js +0 -2
- package/dist/cdn/GKPMAFU3.js +0 -2
- package/dist/cdn/HFJ4EPET.js +0 -2
- package/dist/cdn/JEH22SPH.js +0 -2
- package/dist/cdn/JMAVBKEZ.js +0 -2
- package/dist/cdn/JQYB4ZDY.js +0 -2
- package/dist/cdn/PJZVDHIF.js +0 -2
- package/dist/cdn/QAIY4AMN.js +0 -2
- package/dist/cdn/SHTFWNG3.js +0 -2
- package/dist/cdn/SXT5DNXJ.js +0 -4
- package/dist/cdn/U4COKMGA.js +0 -2
- package/dist/cdn/U6USPTQ5.js +0 -2
- package/dist/cdn/VSPTNIIU.js +0 -2
- package/dist/cdn/X4BYDZDR.js +0 -2
- package/dist/cdn/XJ2L7VN4.js +0 -2
- package/dist/cdn/XP5GZU4O.js +0 -2
- package/dist/cdn/XXXXO6OB.js +0 -2
- package/dist/cdn/YXWIKYN4.js +0 -2
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as y } from "../../chunks/runtime.js";
|
|
3
3
|
import { repeat as u } from "lit/directives/repeat.js";
|
|
4
|
-
import { keyed as
|
|
5
|
-
import { LitElement as k, createEvent as
|
|
6
|
-
import { css as
|
|
7
|
-
import { createRef as
|
|
4
|
+
import { keyed as b } from "lit/directives/keyed.js";
|
|
5
|
+
import { LitElement as k, createEvent as f, safeClassMap as o } from "@arcgis/lumina";
|
|
6
|
+
import { css as I, html as n } from "lit";
|
|
7
|
+
import { createRef as p, ref as m } from "lit/directives/ref.js";
|
|
8
8
|
import { isEqual as v } from "lodash-es";
|
|
9
9
|
import { u as C } from "../../chunks/useT9n.js";
|
|
10
10
|
import { L as a } from "../../chunks/interfaces.js";
|
|
11
|
-
import { c as L, b as
|
|
12
|
-
import { R as
|
|
13
|
-
import { t as g, s as
|
|
11
|
+
import { c as L, b as F, e as d, f as P, s as T } from "../../chunks/chart-ui-utils2.js";
|
|
12
|
+
import { R as A } from "../../chunks/rest-js-object-literals.js";
|
|
13
|
+
import { t as g, s as c } from "../../chunks/chart-object-literals.js";
|
|
14
14
|
import { e as x, p as D } from "../../chunks/popover-ui-utils.js";
|
|
15
15
|
import { t as E, ag as S } from "../../chunks/index.js";
|
|
16
16
|
import { d as z, m as N } from "../../chunks/index3.js";
|
|
17
17
|
import { bh as w, bk as $, bb as K, bu as B } from "../../chunks/index2.js";
|
|
18
|
-
const _ =
|
|
19
|
-
jsAppFlyout: "js-app-flyout",
|
|
18
|
+
const _ = I`.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-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 = {
|
|
20
19
|
name: "line-chart-data-popover",
|
|
21
|
-
numericFieldPickList: "line-chart-data-numeric-fields-pick-list",
|
|
22
20
|
header: "header",
|
|
23
21
|
fab: "fab",
|
|
24
22
|
pickListItemLabel: "pick-list-item-label",
|
|
@@ -27,7 +25,7 @@ const _ = F`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.a
|
|
|
27
25
|
};
|
|
28
26
|
class H extends k {
|
|
29
27
|
constructor() {
|
|
30
|
-
super(...arguments), this._messages = C(), this.commonStrings = C({ name: "common", blocking: !0 }), this.picklist =
|
|
28
|
+
super(...arguments), this._messages = C(), this.commonStrings = C({ name: "common", blocking: !0 }), this.picklist = p(), this.intervalSizeElement = p(), this.intervalTypeElement = p(), this.popoverElement = p(), this.placement = "leading", this.offsetDistance = -200, this.pickListHasChanged = !1, this.open = !1, this.layerFieldsInfo = [], this.arcgisChartsConfigLineChartDataPopoverChange = f(), this.arcgisChartsConfigLineChartPopoverClose = f();
|
|
31
29
|
}
|
|
32
30
|
static {
|
|
33
31
|
this.properties = { aggregationLabels: 16, timeAggregationLabels: 16, messageOverrides: 0, headingTitle: 1, referenceElement: 0, open: 5, contentKind: 1, layerFieldsInfo: 0, selectedContent: 1 };
|
|
@@ -48,7 +46,7 @@ class H extends k {
|
|
|
48
46
|
updated() {
|
|
49
47
|
setTimeout(() => {
|
|
50
48
|
typeof this.picklist.value?.setFocus == "function" && this.picklist.value?.setFocus();
|
|
51
|
-
},
|
|
49
|
+
}, F.PopoverTimer), x(this.popoverElement.value, this.open);
|
|
52
50
|
}
|
|
53
51
|
selectedContentChange(e, t) {
|
|
54
52
|
this.pickListHasChanged = D(e, t);
|
|
@@ -61,7 +59,7 @@ class H extends k {
|
|
|
61
59
|
return u(e, (t) => t, (t, s) => n`<calcite-list-item .label=${this.timeAggregationLabels?.[s]} .value=${t} .selected=${d(t, this.selectedContent)}></calcite-list-item>`);
|
|
62
60
|
}
|
|
63
61
|
buildPickListItem(e) {
|
|
64
|
-
return
|
|
62
|
+
return b(e.name, n`<calcite-list-item .label=${z(this.layerFieldsInfo, e.name)} .value=${e.name} .selected=${d(e.name, this.selectedContent)}></calcite-list-item>`);
|
|
65
63
|
}
|
|
66
64
|
buildPickListItems(e) {
|
|
67
65
|
const t = this.layerFieldsInfo?.length ?? 0, s = [];
|
|
@@ -81,11 +79,11 @@ class H extends k {
|
|
|
81
79
|
break;
|
|
82
80
|
}
|
|
83
81
|
case a.splitByField: {
|
|
84
|
-
const l =
|
|
82
|
+
const l = b(" ", n`<calcite-list-item label=" " value=" " .selected=${d("", this.selectedContent)}></calcite-list-item>`);
|
|
85
83
|
s.push(l);
|
|
86
84
|
for (let i = 0; i < t; i += 1) {
|
|
87
|
-
const
|
|
88
|
-
|
|
85
|
+
const h = this.layerFieldsInfo?.[i];
|
|
86
|
+
h && (w(h) || h.type === A.String) && s.push(this.buildPickListItem(h));
|
|
89
87
|
}
|
|
90
88
|
break;
|
|
91
89
|
}
|
|
@@ -126,35 +124,35 @@ class H extends k {
|
|
|
126
124
|
}
|
|
127
125
|
renderAggregationType() {
|
|
128
126
|
const e = this.buildAggregationPickListItems();
|
|
129
|
-
return n`<calcite-list label class=${o(
|
|
127
|
+
return n`<calcite-list label class=${o(r.pickListItemLabel)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
|
|
130
128
|
}
|
|
131
129
|
renderXAxisField() {
|
|
132
130
|
const e = this.buildPickListItems(a.xAxisField);
|
|
133
|
-
return n`<calcite-list label class=${o(
|
|
131
|
+
return n`<calcite-list label class=${o(r.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${m(this.picklist)}>${e}</calcite-list>`;
|
|
134
132
|
}
|
|
135
133
|
renderNumericFields() {
|
|
136
134
|
const e = this.buildPickListItems(a.numericFields);
|
|
137
|
-
return n`<calcite-list label
|
|
135
|
+
return n`<calcite-list label selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${m(this.picklist)}>${e}</calcite-list>`;
|
|
138
136
|
}
|
|
139
137
|
renderSplitByField() {
|
|
140
138
|
const e = this.buildPickListItems(a.splitByField);
|
|
141
|
-
return n`<calcite-list label class=${o(
|
|
139
|
+
return n`<calcite-list label class=${o(r.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${m(this.picklist)}>${e}</calcite-list>`;
|
|
142
140
|
}
|
|
143
141
|
renderIntervalAlignment() {
|
|
144
142
|
const e = this.buildIntervalAlignmentPickListItems();
|
|
145
|
-
return n`<calcite-list label class=${o(
|
|
143
|
+
return n`<calcite-list label class=${o(r.pickListItemLabel)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
|
|
146
144
|
}
|
|
147
145
|
renderInterval() {
|
|
148
146
|
const e = this.selectedContent, t = [
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
147
|
+
c.Second,
|
|
148
|
+
c.Minute,
|
|
149
|
+
c.Hour,
|
|
150
|
+
c.Day,
|
|
151
|
+
c.Week,
|
|
152
|
+
c.Month,
|
|
153
|
+
c.Year
|
|
156
154
|
];
|
|
157
|
-
return n`<div><div class=${o(
|
|
155
|
+
return n`<div><div class=${o(r.sizeSection)}><calcite-label scale=m>${this._messages.intervalSize}<calcite-input type=number scale=m min=1 step=any .value=${T(e?.size, 1)} ${m(this.intervalSizeElement)}></calcite-input></calcite-label><calcite-label scale=m>${this._messages.intervalType}<calcite-select .label=${this._messages.intervalType ?? ""} ${m(this.intervalTypeElement)}>${t.map((s) => n`<calcite-option .value=${s} .label=${N(s, this._messages)} .selected=${e?.unit === s}></calcite-option>`)}</calcite-select></calcite-label><calcite-button class=${o(r.applyButton)} appearance=outline @click=${this.intervalChange}>${this._messages.apply}</calcite-button></div></div>`;
|
|
158
156
|
}
|
|
159
157
|
renderPopoverInfo() {
|
|
160
158
|
let e;
|
|
@@ -182,7 +180,7 @@ class H extends k {
|
|
|
182
180
|
}
|
|
183
181
|
render() {
|
|
184
182
|
let e;
|
|
185
|
-
return this.contentKind === a.numericFields && (e = n`<div slot=footer><calcite-fab class=${o(
|
|
183
|
+
return this.contentKind === a.numericFields && (e = n`<div slot=footer><calcite-fab class=${o(r.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=${o(r.name)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} @calcitePopoverClose=${this.closePopover} .open=${this.open} label auto-close ${m(this.popoverElement)}><calcite-panel closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${o(r.header)}>${this.headingTitle ?? ""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`;
|
|
186
184
|
}
|
|
187
185
|
}
|
|
188
186
|
y("arcgis-charts-config-line-chart-popover", H);
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as u } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as C, html as v } from "lit";
|
|
4
|
-
import { i as f, m, s as
|
|
5
|
-
import { u as
|
|
4
|
+
import { i as f, m, s as S, U as g } from "../../chunks/chart-ui-utils2.js";
|
|
5
|
+
import { u as y } from "../../chunks/useT9n.js";
|
|
6
6
|
import { createRef as a, ref as o } from "lit/directives/ref.js";
|
|
7
7
|
import { LitElement as $, createEvent as s, safeClassMap as l, nothing as c } from "@arcgis/lumina";
|
|
8
8
|
import { e as b } from "../../chunks/popover-ui-utils.js";
|
|
9
9
|
import { aB as E } from "../../chunks/index.js";
|
|
10
10
|
import { g as i } from "../../chunks/rest-js-object-literals.js";
|
|
11
11
|
const n = {
|
|
12
|
-
jsAppFlyout: "js-app-flyout",
|
|
13
12
|
sizeSection: "size-section",
|
|
14
13
|
dropdownText: "dropdown-text",
|
|
15
14
|
panelChildrenContainer: "panel-children-container"
|
|
16
15
|
}, w = 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 calcite-panel .size-section{padding:0 1rem 1rem;display:flex}:host calcite-panel .size-section calcite-label{flex:1 1 0px;width:0;padding:0}:host calcite-panel .size-section calcite-label .dropdown-text{max-width:75px;overflow:hidden;white-space:normal;text-overflow:ellipsis;cursor:pointer}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}`;
|
|
17
16
|
class x extends $ {
|
|
18
17
|
constructor() {
|
|
19
|
-
super(...arguments), this._messages =
|
|
18
|
+
super(...arguments), this._messages = y(), this.popoverElement = a(), this.lineWidthInputElement = a(), this.lineStyleDropdownElement = a(), this.open = !1, this.arcgisChartsConfigPopoverClose = s(), this.arcgisChartsConfigSeriesPopoverColorChange = s(), this.arcgisChartsConfigSeriesPopoverLineStyleChange = s(), this.arcgisChartsConfigSeriesPopoverLineWidthChange = s(), this.arcgisChartsConfigSeriesPopoverNameChange = s();
|
|
20
19
|
}
|
|
21
20
|
static {
|
|
22
21
|
this.properties = { messageOverrides: 0, referenceElement: 0, selectedName: 1, selectedColor: 0, selectedLineStyle: 1, selectedSeriesIndex: 9, selectedLineWidth: 9, placement: 1, open: 5 };
|
|
@@ -75,7 +74,7 @@ class x extends $ {
|
|
|
75
74
|
}
|
|
76
75
|
render() {
|
|
77
76
|
const e = this.selectedColor;
|
|
78
|
-
return v`<div
|
|
77
|
+
return v`<div><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .open=${this.open} label auto-close ${o(this.popoverElement)}><calcite-panel .heading=${this._messages.seriesElement} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div class=${l(n.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${this.selectedName} @calciteInputInput=${this.seriesNameChange}></calcite-input></calcite-label></div><div class=${l(n.sizeSection)}><calcite-label>${this._messages.style}<calcite-dropdown @calciteDropdownSelect=${this.lineStyleChange} ${o(this.lineStyleDropdownElement)}><calcite-button .iconEnd=${this.getSelectedLineStyleInfo().icon} slot=trigger kind=neutral appearance=outline-fill><label class=${l(n.dropdownText)}>${this.getSelectedLineStyleInfo().style}</label></calcite-button><calcite-dropdown-group><calcite-dropdown-item icon-end=line-solid .selected=${this.selectedLineStyle === i.Solid} accesskey=${i.Solid ?? c}>${this._messages.solid}</calcite-dropdown-item><calcite-dropdown-item icon-end=line-dotted .selected=${this.selectedLineStyle === i.Dot} accesskey=${i.Dot ?? c}>${this._messages.dot}</calcite-dropdown-item><calcite-dropdown-item icon-end=line-dashed .selected=${this.selectedLineStyle === i.Dash} accesskey=${i.Dash ?? c}>${this._messages.dash}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown></calcite-label><calcite-label>${this._messages.width}<calcite-input type=number min=1 step=any .value=${S(this.selectedLineWidth)} @calciteInputInput=${this.lineWidthChange} ${o(this.lineWidthInputElement)}></calcite-input></calcite-label></div><div class=${l(n.panelChildrenContainer)}><arcgis-charts-config-colors .heading=${this._messages.lineColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></calcite-panel></calcite-popover></div>`;
|
|
79
78
|
}
|
|
80
79
|
}
|
|
81
80
|
u("arcgis-charts-config-line-chart-series-popover", x);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as p } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as C } from "lit/directives/keyed.js";
|
|
4
|
-
import { P as
|
|
4
|
+
import { P as r } from "../../chunks/interfaces.js";
|
|
5
5
|
import { u } from "../../chunks/useT9n.js";
|
|
6
|
-
import { css as b, html as
|
|
7
|
-
import { createRef as
|
|
6
|
+
import { css as b, html as s } from "lit";
|
|
7
|
+
import { createRef as c, ref as d } from "lit/directives/ref.js";
|
|
8
8
|
import { LitElement as v, createEvent as m, renderElement as y, safeClassMap as o } from "@arcgis/lumina";
|
|
9
9
|
import { x as F } from "../../chunks/data.js";
|
|
10
10
|
import { d as g } from "../../chunks/index3.js";
|
|
11
|
-
import { m as
|
|
11
|
+
import { m as n, an as P } from "../../chunks/index2.js";
|
|
12
12
|
import { r as $ } from "../../chunks/popover-ui-utils.js";
|
|
13
13
|
import { r as E } from "../../chunks/chart-object-literals.js";
|
|
14
14
|
import { P as f } from "../../chunks/common.js";
|
|
@@ -16,28 +16,28 @@ const l = {
|
|
|
16
16
|
label: "label",
|
|
17
17
|
fieldList: "field-list",
|
|
18
18
|
fab: "fab"
|
|
19
|
-
}, k = b
|
|
19
|
+
}, k = b`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin);margin-top:var(--arcgis-charts-top-section-margin)}.label,.disabled-label{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-minor);justify-content:space-between}.field-list{max-height:50vh;overflow-y:auto}.disabled-label{pointer-events:none}.fab{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:1.5rem;justify-content:center}`;
|
|
20
20
|
class w extends v {
|
|
21
21
|
constructor() {
|
|
22
|
-
super(...arguments), this._messages = u(), this.pieChartPopover = null, this.sortOrderElement =
|
|
22
|
+
super(...arguments), this._messages = u(), this.pieChartPopover = null, this.sortOrderElement = c(), this.categoryElement = c(), this.numericFieldsElement = c(), this.onPieChartDataChange = (e) => {
|
|
23
23
|
try {
|
|
24
24
|
if (e.detail !== null && e.detail?.value !== void 0) {
|
|
25
25
|
const { contentKind: t } = e.detail, i = [...e.detail.value];
|
|
26
26
|
switch (t) {
|
|
27
|
-
case
|
|
27
|
+
case r.aggregation:
|
|
28
28
|
this.model.aggregationType = i[0] !== E.NoAggregation ? i[0] : "";
|
|
29
29
|
break;
|
|
30
|
-
case
|
|
31
|
-
const
|
|
32
|
-
this.updateMode(
|
|
30
|
+
case r.category: {
|
|
31
|
+
const a = i[0]?.trim() || "";
|
|
32
|
+
this.updateMode(a);
|
|
33
33
|
const h = this.model.numericFields;
|
|
34
|
-
h.length > 1 &&
|
|
34
|
+
h.length > 1 && a !== n && (this.model.numericFields = [h[0]]), this.model.category = a, this.model.colorMatch = !0;
|
|
35
35
|
break;
|
|
36
36
|
}
|
|
37
|
-
case
|
|
38
|
-
i.length > 1 && (this.updateMode(
|
|
37
|
+
case r.numericFields:
|
|
38
|
+
i.length > 1 && (this.updateMode(n), this.model.category = n), this.model.numericFields = i;
|
|
39
39
|
break;
|
|
40
|
-
case
|
|
40
|
+
case r.sortOrder:
|
|
41
41
|
this.model.setSortOrder(i[0]);
|
|
42
42
|
break;
|
|
43
43
|
default:
|
|
@@ -73,16 +73,16 @@ class w extends v {
|
|
|
73
73
|
t?.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange), e?.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
74
74
|
}
|
|
75
75
|
buildNumericFieldItem(e) {
|
|
76
|
-
return C(e,
|
|
76
|
+
return C(e, s`<calcite-list-item .label=${g(this.layerFieldsInfo, e)} .value=${e} closable @calciteListItemClose=${this.onRemoveNumericField}></calcite-list-item>`);
|
|
77
77
|
}
|
|
78
78
|
onSortOrderSelect(e) {
|
|
79
|
-
this.contentKind =
|
|
79
|
+
this.contentKind = r.sortOrder, this.setupPopover(e);
|
|
80
80
|
}
|
|
81
81
|
onCategorySelect(e) {
|
|
82
|
-
this.contentKind =
|
|
82
|
+
this.contentKind = r.category, this.setupPopover(e);
|
|
83
83
|
}
|
|
84
84
|
onAddNumericFields(e) {
|
|
85
|
-
this.contentKind =
|
|
85
|
+
this.contentKind = r.numericFields, this.setupPopover(e);
|
|
86
86
|
}
|
|
87
87
|
onRemoveNumericField(e) {
|
|
88
88
|
const t = e.target.value;
|
|
@@ -92,24 +92,24 @@ class w extends v {
|
|
|
92
92
|
this.model.dataLabelsVisibility = e.target.checked;
|
|
93
93
|
}
|
|
94
94
|
updateMode(e) {
|
|
95
|
-
const t = e !==
|
|
95
|
+
const t = e !== n && e.trim() !== "";
|
|
96
96
|
this.model.mode = t ? f.Category : f.Fields;
|
|
97
97
|
}
|
|
98
98
|
setupPopover(e) {
|
|
99
99
|
e.stopImmediatePropagation(), this.removePieChartDataPopover();
|
|
100
|
-
let t, i,
|
|
100
|
+
let t, i, a;
|
|
101
101
|
switch (this.contentKind) {
|
|
102
|
-
case
|
|
103
|
-
t = this.categoryElement.value, i = this._messages.categoryHeader,
|
|
102
|
+
case r.category:
|
|
103
|
+
t = this.categoryElement.value, i = this._messages.categoryHeader, a = this.model.category;
|
|
104
104
|
break;
|
|
105
|
-
case
|
|
106
|
-
t = this.numericFieldsElement.value, i = this._messages.numericFieldsMultipleHeader,
|
|
105
|
+
case r.numericFields:
|
|
106
|
+
t = this.numericFieldsElement.value, i = this._messages.numericFieldsMultipleHeader, a = this.model.numericFields;
|
|
107
107
|
break;
|
|
108
|
-
case
|
|
109
|
-
t = this.sortOrderElement.value, i = this._messages.sortOrderHeader,
|
|
108
|
+
case r.sortOrder:
|
|
109
|
+
t = this.sortOrderElement.value, i = this._messages.sortOrderHeader, a = this.model.getSortOrder();
|
|
110
110
|
break;
|
|
111
111
|
}
|
|
112
|
-
this.pieChartPopover = y(
|
|
112
|
+
this.pieChartPopover = y(s`<arcgis-charts-config-pie-chart-popover .headingTitle=${i} .referenceElement=${t} open .contentKind=${this.contentKind} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${a} @arcgisChartsConfigPieChartDataPopoverChange=${this.onPieChartDataChange} @arcgisChartsConfigPopoverClose=${this.popoverClose}></arcgis-charts-config-pie-chart-popover>`), !document.body.contains(this.pieChartPopover) && this.pieChartPopover !== null && document.body.appendChild(this.pieChartPopover);
|
|
113
113
|
}
|
|
114
114
|
getCorrectedCategoryValue() {
|
|
115
115
|
return F({
|
|
@@ -121,23 +121,23 @@ class w extends v {
|
|
|
121
121
|
this.pieChartPopover !== null && (this.pieChartPopover.open = !1, this.pieChartPopover = $(this.pieChartPopover));
|
|
122
122
|
}
|
|
123
123
|
renderSorting() {
|
|
124
|
-
return
|
|
124
|
+
return s`<arcgis-charts-config-field-select .label=${this._messages[this.model.getSortOrder()]} @click=${this.onSortOrderSelect} ${d(this.sortOrderElement)}></arcgis-charts-config-field-select>`;
|
|
125
125
|
}
|
|
126
126
|
renderCategory() {
|
|
127
127
|
const e = this.getCorrectedCategoryValue();
|
|
128
|
-
return
|
|
128
|
+
return s`<arcgis-charts-config-field-select .label=${e} @click=${this.onCategorySelect} ${d(this.categoryElement)}></arcgis-charts-config-field-select>`;
|
|
129
129
|
}
|
|
130
130
|
renderNumericFields(e) {
|
|
131
131
|
const t = P(this.model.layer).idField, i = [];
|
|
132
|
-
for (const
|
|
133
|
-
|
|
134
|
-
return
|
|
132
|
+
for (const a of e)
|
|
133
|
+
a !== t && i.push(this.buildNumericFieldItem(a));
|
|
134
|
+
return s`<calcite-list label class=${o(l.fieldList)} ${d(this.numericFieldsElement)}>${i}</calcite-list>`;
|
|
135
135
|
}
|
|
136
136
|
render() {
|
|
137
137
|
const e = this.renderCategory(), t = this.renderSorting(), i = this.renderNumericFields([...this.model.numericFields]);
|
|
138
|
-
return
|
|
139
|
-
|
|
140
|
-
|
|
138
|
+
return s`<calcite-label class=${o(l.label)}>${this._messages.category}${e}</calcite-label>${[
|
|
139
|
+
s`<calcite-label class=${o(l.label)}>${this._messages.numericFields}${i}</calcite-label>`,
|
|
140
|
+
s`<div class=${o(l.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>`
|
|
141
141
|
]}<calcite-label class=${o(l.label)} layout=inline-space-between>${this._messages.showDataLabels}<calcite-switch .checked=${this.model.dataLabelsVisibility} @calciteSwitchChange=${this.onShowDataLabelsChange}></calcite-switch></calcite-label><calcite-label class=${o(l.label)}>${this._messages.sortOrder}${t}</calcite-label>`;
|
|
142
142
|
}
|
|
143
143
|
}
|
|
@@ -1,100 +1,98 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as v } from "../../chunks/runtime.js";
|
|
3
|
-
import { repeat as
|
|
3
|
+
import { repeat as p } from "lit/directives/repeat.js";
|
|
4
4
|
import { keyed as g } from "lit/directives/keyed.js";
|
|
5
5
|
import { isEqual as k } from "lodash-es";
|
|
6
6
|
import { P as a } from "../../chunks/interfaces.js";
|
|
7
|
-
import { p as
|
|
8
|
-
import { u
|
|
9
|
-
import { css as
|
|
10
|
-
import { createRef as b, ref as
|
|
11
|
-
import { LitElement as P, createEvent as C, safeClassMap as
|
|
12
|
-
import { e as
|
|
7
|
+
import { p as f, b as $, e as h, f as L } from "../../chunks/chart-ui-utils2.js";
|
|
8
|
+
import { u } from "../../chunks/useT9n.js";
|
|
9
|
+
import { css as y, html as n } from "lit";
|
|
10
|
+
import { createRef as b, ref as d } from "lit/directives/ref.js";
|
|
11
|
+
import { LitElement as P, createEvent as C, safeClassMap as r } from "@arcgis/lumina";
|
|
12
|
+
import { e as I, p as F } from "../../chunks/popover-ui-utils.js";
|
|
13
13
|
import { t as D } from "../../chunks/index.js";
|
|
14
14
|
import { d as x } from "../../chunks/index3.js";
|
|
15
15
|
import { bh as S, bk as T } from "../../chunks/index2.js";
|
|
16
16
|
import { R as E } from "../../chunks/rest-js-object-literals.js";
|
|
17
|
-
import { a as
|
|
17
|
+
import { a as o } from "../../chunks/common.js";
|
|
18
18
|
const l = {
|
|
19
|
-
jsAppFlyout: "js-app-flyout",
|
|
20
19
|
name: "pie-chart-data-popover",
|
|
21
|
-
numericFieldPickList: "pie-chart-data-numeric-fields-pick-list",
|
|
22
20
|
header: "header",
|
|
23
21
|
fab: "fab",
|
|
24
22
|
pickListItemLabel: "pick-list-item-label",
|
|
25
23
|
flipClass: "sort-counter-clockwise",
|
|
26
24
|
panel: "panel"
|
|
27
|
-
},
|
|
28
|
-
class
|
|
25
|
+
}, w = y`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.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-counter-clockwise{transform:scaleX(-1)}.panel{max-height:60vh}`;
|
|
26
|
+
class A extends P {
|
|
29
27
|
constructor() {
|
|
30
|
-
super(...arguments), this._messages =
|
|
28
|
+
super(...arguments), this._messages = u(), this.commonStrings = u({ name: "common", blocking: !0 }), this.picklist = b(), this.popoverElement = b(), this.placement = "leading", this.offsetDistance = -200, this.pickListHasChanged = !1, this.aggregationLabels = [], this.open = !1, this.layerFieldsInfo = [], this.arcgisChartsConfigPieChartDataPopoverChange = C(), this.arcgisChartsConfigPopoverClose = C();
|
|
31
29
|
}
|
|
32
30
|
static {
|
|
33
31
|
this.properties = { aggregationLabels: 16, messageOverrides: 0, headingTitle: 1, referenceElement: 0, open: 5, contentKind: 1, layerFieldsInfo: 0, selectedContent: 1 };
|
|
34
32
|
}
|
|
35
33
|
static {
|
|
36
|
-
this.styles =
|
|
34
|
+
this.styles = w;
|
|
37
35
|
}
|
|
38
36
|
async reposition() {
|
|
39
37
|
await this.popoverElement.value?.reposition();
|
|
40
38
|
}
|
|
41
39
|
willUpdate(e) {
|
|
42
40
|
e.has("selectedContent") && this.selectedContentChange(this.selectedContent, e.get("selectedContent"));
|
|
43
|
-
const t =
|
|
41
|
+
const t = f.map((i) => D(i, this.commonStrings));
|
|
44
42
|
k(this.aggregationLabels, t) || (this.aggregationLabels = t);
|
|
45
43
|
}
|
|
46
44
|
updated() {
|
|
47
|
-
|
|
45
|
+
I(this.popoverElement.value, this.open), setTimeout(() => {
|
|
48
46
|
this.picklist.value?.setFocus();
|
|
49
47
|
}, $.PopoverTimer);
|
|
50
48
|
}
|
|
51
49
|
selectedContentChange(e, t) {
|
|
52
|
-
this.pickListHasChanged =
|
|
50
|
+
this.pickListHasChanged = F(e, t);
|
|
53
51
|
}
|
|
54
52
|
buildAggregationPickListItems() {
|
|
55
|
-
return
|
|
53
|
+
return p(f, (e) => e, (e, t) => n`<calcite-list-item .label=${this.aggregationLabels[t]} .value=${e} .selected=${h(e, this.selectedContent)}></calcite-list-item>`);
|
|
56
54
|
}
|
|
57
55
|
buildSortOrder() {
|
|
58
|
-
const e = Object.keys(
|
|
59
|
-
return e.splice(e.indexOf(
|
|
56
|
+
const e = Object.keys(o);
|
|
57
|
+
return e.splice(e.indexOf(o.customSort), 1), p(e, (t) => t, (t) => {
|
|
60
58
|
let i = "string";
|
|
61
|
-
const
|
|
59
|
+
const c = "rotate";
|
|
62
60
|
let s = "";
|
|
63
61
|
switch (t) {
|
|
64
|
-
case
|
|
62
|
+
case o.labelAsc:
|
|
65
63
|
i = "string";
|
|
66
64
|
break;
|
|
67
|
-
case
|
|
65
|
+
case o.labelDesc:
|
|
68
66
|
i = "string", s = l.flipClass;
|
|
69
67
|
break;
|
|
70
|
-
case
|
|
68
|
+
case o.valueAsc:
|
|
71
69
|
i = "number";
|
|
72
70
|
break;
|
|
73
|
-
case
|
|
71
|
+
case o.valueDesc:
|
|
74
72
|
i = "number", s = l.flipClass;
|
|
75
73
|
break;
|
|
76
74
|
// Do nothing for customSort for now
|
|
77
|
-
case
|
|
75
|
+
case o.customSort:
|
|
78
76
|
}
|
|
79
|
-
return n`<calcite-list-item .selected=${this.selectedContent === t} .label=${this._messages[t]} .value=${
|
|
77
|
+
return n`<calcite-list-item .selected=${this.selectedContent === t} .label=${this._messages[t]} .value=${o[t]}><calcite-icon slot=content-end .icon=${i}></calcite-icon><calcite-icon class=${r(s)} slot=content-end .icon=${c}></calcite-icon></calcite-list-item>`;
|
|
80
78
|
});
|
|
81
79
|
}
|
|
82
80
|
buildPickListItem(e) {
|
|
83
|
-
return g(e.name, n`<calcite-list-item .label=${x(this.layerFieldsInfo, e.name)} .value=${e.name} .selected=${
|
|
81
|
+
return g(e.name, n`<calcite-list-item .label=${x(this.layerFieldsInfo, e.name)} .value=${e.name} .selected=${h(e.name, this.selectedContent)}></calcite-list-item>`);
|
|
84
82
|
}
|
|
85
83
|
buildPickListItems(e) {
|
|
86
84
|
const t = this.layerFieldsInfo?.length ?? 0, i = [];
|
|
87
85
|
switch (e) {
|
|
88
86
|
case a.numericFields: {
|
|
89
|
-
for (let
|
|
90
|
-
const s = this.layerFieldsInfo[
|
|
87
|
+
for (let c = 0; c < t; c += 1) {
|
|
88
|
+
const s = this.layerFieldsInfo[c];
|
|
91
89
|
T(s) && i.push(this.buildPickListItem(s));
|
|
92
90
|
}
|
|
93
91
|
break;
|
|
94
92
|
}
|
|
95
93
|
case a.category: {
|
|
96
|
-
const
|
|
97
|
-
i.push(
|
|
94
|
+
const c = g(" ", n`<calcite-list-item label=" " value=" " .selected=${h("", this.selectedContent)}></calcite-list-item>`);
|
|
95
|
+
i.push(c);
|
|
98
96
|
for (let s = 0; s < t; s += 1) {
|
|
99
97
|
const m = this.layerFieldsInfo[s];
|
|
100
98
|
(S(m) || m.type === E.String) && i.push(this.buildPickListItem(m));
|
|
@@ -111,7 +109,7 @@ class w extends P {
|
|
|
111
109
|
eventEmitter: this.arcgisChartsConfigPieChartDataPopoverChange,
|
|
112
110
|
contentKind: this.contentKind
|
|
113
111
|
};
|
|
114
|
-
|
|
112
|
+
L(e);
|
|
115
113
|
}
|
|
116
114
|
this.arcgisChartsConfigPopoverClose.emit();
|
|
117
115
|
}
|
|
@@ -131,15 +129,15 @@ class w extends P {
|
|
|
131
129
|
}
|
|
132
130
|
renderAggregationType() {
|
|
133
131
|
const e = this.buildAggregationPickListItems();
|
|
134
|
-
return n`<calcite-list label class=${
|
|
132
|
+
return n`<calcite-list label class=${r(l.pickListItemLabel)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
|
|
135
133
|
}
|
|
136
134
|
renderCategory() {
|
|
137
135
|
const e = this.buildPickListItems(a.category);
|
|
138
|
-
return n`<calcite-list label class=${
|
|
136
|
+
return n`<calcite-list label class=${r(l.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${d(this.picklist)}>${e}</calcite-list>`;
|
|
139
137
|
}
|
|
140
138
|
renderNumericFields() {
|
|
141
139
|
const e = this.buildPickListItems(a.numericFields);
|
|
142
|
-
return n`<calcite-list label
|
|
140
|
+
return n`<calcite-list label selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${d(this.picklist)}>${e}</calcite-list>`;
|
|
143
141
|
}
|
|
144
142
|
renderSortOrder() {
|
|
145
143
|
const e = this.buildSortOrder();
|
|
@@ -165,10 +163,10 @@ class w extends P {
|
|
|
165
163
|
}
|
|
166
164
|
render() {
|
|
167
165
|
let e;
|
|
168
|
-
return this.contentKind === a.numericFields && (e = n`<div slot=footer><calcite-fab class=${
|
|
166
|
+
return this.contentKind === a.numericFields && (e = n`<div slot=footer><calcite-fab class=${r(l.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=${r(l.name)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .offsetDistance=${this.offsetDistance} .open=${this.open} label auto-close ${d(this.popoverElement)}><calcite-panel class=${r(l.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${r(l.header)}>${this.headingTitle ?? ""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`;
|
|
169
167
|
}
|
|
170
168
|
}
|
|
171
|
-
v("arcgis-charts-config-pie-chart-popover",
|
|
169
|
+
v("arcgis-charts-config-pie-chart-popover", A);
|
|
172
170
|
export {
|
|
173
|
-
|
|
171
|
+
A as ArcgisChartsConfigPieChartPopover
|
|
174
172
|
};
|
|
@@ -10,7 +10,7 @@ import { LitElement as w, renderElement as S, safeStyleMap as u, safeClassMap as
|
|
|
10
10
|
import { b as h } from "../../chunks/common.js";
|
|
11
11
|
import { aw as I, ax as y } from "../../chunks/index.js";
|
|
12
12
|
import { r as P } from "../../chunks/popover-ui-utils.js";
|
|
13
|
-
import { i as
|
|
13
|
+
import { i as z } from "../../chunks/rest-js-object-literals.js";
|
|
14
14
|
const a = {
|
|
15
15
|
sectionLabel: "section-label",
|
|
16
16
|
label: "label",
|
|
@@ -20,7 +20,7 @@ const a = {
|
|
|
20
20
|
sliderInputContainer: "slider-input-container",
|
|
21
21
|
groupingLabelContainer: "grouping-label-container",
|
|
22
22
|
numberInput: "number-input"
|
|
23
|
-
},
|
|
23
|
+
}, M = _`.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)}.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)}.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}.label .grouping-label-container{display:flex;justify-content:space-between}.label .slider-input-container{display:flex}.label .slider-input-container calcite-slider{--calcite-label-margin-bottom: var(--arcgis-charts-intra-section-margin) !important;margin-right:var(--arcgis-charts-config-margin-minor);flex-grow:1}.label .slider-input-container .number-input{width:8rem}.slice-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)}.radio-group{margin-top:var(--arcgis-charts-config-margin-minor)}.pie-donut-labels-container{display:flex;justify-content:space-between;margin-top:calc(var(--arcgis-charts-config-margin-minor) * -3)}`;
|
|
24
24
|
class k extends w {
|
|
25
25
|
constructor() {
|
|
26
26
|
super(...arguments), this._messages = G(), this.slicesPopover = null, this.donutSizeSliderElement = m(), this.groupingThresholdElement = m(), this.groupingThresholdSliderElement = m(), this.labelCharacterLimitElement = m(), this.decimalPlacesElement = m(), this.open = !1, this.onDonutSizeSliderChange = C(() => {
|
|
@@ -43,7 +43,7 @@ class k extends w {
|
|
|
43
43
|
...t,
|
|
44
44
|
fillSymbol: {
|
|
45
45
|
...t.fillSymbol,
|
|
46
|
-
type:
|
|
46
|
+
type: z.SFS,
|
|
47
47
|
color: l
|
|
48
48
|
}
|
|
49
49
|
});
|
|
@@ -59,7 +59,7 @@ class k extends w {
|
|
|
59
59
|
this.properties = { selectedSliceId: 16, messageOverrides: 0, model: 0, popoverPlacement: 1, chartData: 0 };
|
|
60
60
|
}
|
|
61
61
|
static {
|
|
62
|
-
this.styles =
|
|
62
|
+
this.styles = M;
|
|
63
63
|
}
|
|
64
64
|
load() {
|
|
65
65
|
this.modelChange(this.model), this.onModelConfigChange();
|
|
@@ -3,11 +3,10 @@ import { c as n } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { css as p, html as h } from "lit";
|
|
4
4
|
import { u as m } from "../../chunks/useT9n.js";
|
|
5
5
|
import { createRef as d, ref as g } from "lit/directives/ref.js";
|
|
6
|
-
import { LitElement as C, createEvent as s, safeClassMap as
|
|
6
|
+
import { LitElement as C, createEvent as s, safeClassMap as r } from "@arcgis/lumina";
|
|
7
7
|
import { e as v } from "../../chunks/popover-ui-utils.js";
|
|
8
8
|
import { aB as f } from "../../chunks/index.js";
|
|
9
|
-
const
|
|
10
|
-
jsAppFlyout: "js-app-flyout",
|
|
9
|
+
const c = {
|
|
11
10
|
panelChildrenContainer: "panel-children-container"
|
|
12
11
|
}, 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}`;
|
|
13
12
|
class y extends C {
|
|
@@ -36,14 +35,12 @@ class y extends C {
|
|
|
36
35
|
});
|
|
37
36
|
}
|
|
38
37
|
colorChange(e) {
|
|
39
|
-
const t = e instanceof CustomEvent ? e.detail : e, [
|
|
40
|
-
this.selectedColor = [
|
|
38
|
+
const t = e instanceof CustomEvent ? e.detail : e, [i, o, a] = t, l = f * 255;
|
|
39
|
+
this.selectedColor = [i, o, a, l], this.arcgisChartsConfigSlicesPopoverColorChange.emit({ color: [i, o, a, l] });
|
|
41
40
|
}
|
|
42
41
|
render() {
|
|
43
42
|
const e = this.selectedColor !== void 0 ? [...this.selectedColor] : void 0;
|
|
44
|
-
return h`<div class=${
|
|
45
|
-
[o.jsAppFlyout]: !0
|
|
46
|
-
})}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .open=${this.open} label auto-close ${g(this.popoverElement)}><calcite-panel .heading=${this._messages.sliceStyle} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div class=${i(o.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${this.selectedName} @calciteInputInput=${this.sliceNameChange}></calcite-input></calcite-label></div><div class=${i(o.panelChildrenContainer)}><arcgis-charts-config-colors .heading=${this._messages.symbolColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></calcite-panel></calcite-popover></div>`;
|
|
43
|
+
return h`<div><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .open=${this.open} label auto-close ${g(this.popoverElement)}><calcite-panel .heading=${this._messages.sliceStyle} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div class=${r(c.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${this.selectedName} @calciteInputInput=${this.sliceNameChange}></calcite-input></calcite-label></div><div class=${r(c.panelChildrenContainer)}><arcgis-charts-config-colors .heading=${this._messages.symbolColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></calcite-panel></calcite-popover></div>`;
|
|
47
44
|
}
|
|
48
45
|
}
|
|
49
46
|
n("arcgis-charts-config-pie-chart-slices-popover", y);
|