@arcgis/charts-components 5.1.0-next.65 → 5.1.0-next.67
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/2333HQZZ.js +2 -0
- package/dist/cdn/25LAV2UI.js +2 -0
- package/dist/cdn/{SMGWUDX3.js → 2J5IWBKU.js} +1 -1
- package/dist/cdn/2NIOPMWE.js +2 -0
- package/dist/cdn/32WPXK4K.js +2 -0
- package/dist/cdn/35NR6IHU.js +2 -0
- package/dist/cdn/4BDLJPIB.js +2 -0
- package/dist/cdn/4HRFZU2C.js +2 -0
- package/dist/cdn/4NYTLY62.js +2 -0
- package/dist/cdn/{66CPF67N.js → 5KOFW5BO.js} +1 -1
- package/dist/cdn/5PSQ7OKJ.js +2 -0
- package/dist/cdn/6GURKNO2.js +2 -0
- package/dist/cdn/{GLST76GV.js → 6GVGNQYH.js} +1 -1
- package/dist/cdn/6RKNXP6N.js +2 -0
- package/dist/cdn/{X6QQ322N.js → 6TKG7ZF7.js} +1 -1
- package/dist/cdn/{6VW6XPBH.js → 75FO5HPY.js} +1 -1
- package/dist/cdn/7HGCX3PA.js +2 -0
- package/dist/cdn/7Y5FTMNT.js +2 -0
- package/dist/cdn/{4YWBOW4N.js → 7YDVVZJU.js} +1 -1
- package/dist/cdn/AALOFAWG.js +2 -0
- package/dist/cdn/AMLWVAHN.js +2 -0
- package/dist/cdn/BVK4ULHH.js +2 -0
- package/dist/cdn/BXDRHDLV.js +2 -0
- package/dist/cdn/BXNLQMSP.js +2 -0
- package/dist/cdn/{3WMOCDMO.js → CCNHG4LT.js} +1 -1
- package/dist/cdn/CUAIY5DK.js +37 -0
- package/dist/cdn/DHCFSWRJ.js +2 -0
- package/dist/cdn/ECRW3QJF.js +2 -0
- package/dist/cdn/{DHZT5P3N.js → EF4GVHB2.js} +1 -1
- package/dist/cdn/EGHVQUKF.js +2 -0
- package/dist/cdn/EP5VVTAX.js +2 -0
- package/dist/cdn/EWLMYFSA.js +2 -0
- package/dist/cdn/{QFC7M2Y2.js → FFXTYOTF.js} +1 -1
- package/dist/cdn/FOSGOEWY.js +2 -0
- package/dist/cdn/G56RB2UI.js +2 -0
- package/dist/cdn/{HR62GM42.js → GKYHQ5OF.js} +1 -1
- package/dist/cdn/GXQDCOI4.js +99 -0
- package/dist/cdn/HW42VNOU.js +2 -0
- package/dist/cdn/I54YDLFZ.js +2 -0
- package/dist/cdn/I6IYDKWG.js +2 -0
- package/dist/cdn/IN3H6ULU.js +2 -0
- package/dist/cdn/ISNJYFT7.js +2 -0
- package/dist/cdn/ITB7EYBT.js +2 -0
- package/dist/cdn/JDQ6BNXO.js +2 -0
- package/dist/cdn/JMMW4Z5P.js +2 -0
- package/dist/cdn/JTL73F75.js +2 -0
- package/dist/cdn/KOLQWSYX.js +2 -0
- package/dist/cdn/KYFOP4WA.js +2 -0
- package/dist/cdn/L2NQ6Z3Z.js +2 -0
- package/dist/cdn/LGAAHH35.js +2 -0
- package/dist/cdn/LIXBROPH.js +2 -0
- package/dist/cdn/LRQVALTM.js +2 -0
- package/dist/cdn/LT62HS4S.js +2 -0
- package/dist/cdn/MUCSVAGN.js +2 -0
- package/dist/cdn/N4IITAR7.js +2 -0
- package/dist/cdn/NEEKPRM4.js +2 -0
- package/dist/cdn/NEFPCTH3.js +2 -0
- package/dist/cdn/NVV2EBVI.js +2 -0
- package/dist/cdn/O7ZCEGVR.js +2 -0
- package/dist/cdn/{WIP3X44L.js → OPDQRTZL.js} +3 -3
- package/dist/cdn/PG36SBDU.js +2 -0
- package/dist/cdn/PGJD4Q7S.js +2 -0
- package/dist/cdn/PGVNBWSU.js +23 -0
- package/dist/cdn/PL24HKI7.js +2 -0
- package/dist/cdn/PLBPOYRN.js +2 -0
- package/dist/cdn/QEPCR5IP.js +2 -0
- package/dist/cdn/QT24FAYQ.js +2 -0
- package/dist/cdn/R6XIAIZH.js +2 -0
- package/dist/cdn/RDBNRYTF.js +2 -0
- package/dist/cdn/RQLVJM4J.js +2 -0
- package/dist/cdn/RX6QOYCR.js +2 -0
- package/dist/cdn/SNZF4LXV.js +2 -0
- package/dist/cdn/{QRNEQ6OE.js → TJA5FMLP.js} +1 -1
- package/dist/cdn/TZJGC4RS.js +2 -0
- package/dist/cdn/{IIJZ52BJ.js → VRXVXPKS.js} +1 -1
- package/dist/cdn/VWCFL5P6.js +2 -0
- package/dist/cdn/W5VC5OCC.js +2 -0
- package/dist/cdn/W6T7TNP5.js +2 -0
- package/dist/cdn/WNEW6UZS.js +2 -0
- package/dist/cdn/XFXE7IY2.js +2 -0
- package/dist/cdn/XV7GLCBP.js +2 -0
- package/dist/cdn/Y3DU5EIT.js +2 -0
- package/dist/cdn/Y3NWCVUF.js +2 -0
- package/dist/cdn/YHUBOYF5.js +2 -0
- package/dist/cdn/YNRVU2AU.js +2 -0
- package/dist/cdn/YPSEQYTV.js +2 -0
- package/dist/cdn/YQTJQ5J7.js +2 -0
- package/dist/cdn/Z4GL4EF6.js +2 -0
- package/dist/cdn/ZIXBICPN.js +2 -0
- package/dist/cdn/ZRDVJBTQ.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chart-rendering/common/data/utils/summarize-data/interfaces.d.ts +8 -0
- package/dist/chart-rendering/common/interfaces.d.ts +7 -0
- package/dist/chunks/action-bar-utils.js +22 -28
- package/dist/chunks/axis-lines-symbol.js +8 -8
- package/dist/chunks/bar-chart-model.js +19 -25
- package/dist/chunks/bar-chart-series.js +12 -18
- package/dist/chunks/box-plot-data.js +75 -81
- package/dist/chunks/box-plot-model.js +19 -19
- package/dist/chunks/chart-model.js +40 -46
- package/dist/chunks/chart-ui-utils2.js +47 -53
- package/dist/chunks/class-breaks.js +16 -16
- package/dist/chunks/combo-bar-line-chart-model.js +20 -20
- package/dist/chunks/data-labels-symbol.js +5 -5
- package/dist/chunks/data.js +53 -59
- package/dist/chunks/gauge-model.js +22 -28
- package/dist/chunks/generate-x-axis-title.js +30 -36
- package/dist/chunks/heat-chart-model.js +10 -16
- package/dist/chunks/histogram-data.js +53 -59
- package/dist/chunks/histogram-model.js +31 -31
- package/dist/chunks/index.js +608 -20565
- package/dist/chunks/index2.js +171 -678
- package/dist/chunks/index3.js +46 -181
- package/dist/chunks/interfaces.js +16443 -103
- package/dist/chunks/interfaces2.js +109 -0
- package/dist/chunks/line-chart-model.js +2 -2
- package/dist/chunks/model-setter.js +15 -21
- package/dist/chunks/model-with-guides.js +22 -28
- package/dist/chunks/model-with-tooltips.js +23 -29
- package/dist/chunks/model-with-x-guides.js +4 -4
- package/dist/chunks/model-with-y-guides.js +25 -31
- package/dist/chunks/negative-values-stacked-to-baseline.js +41 -47
- package/dist/chunks/pie-chart-data.js +33 -39
- package/dist/chunks/pie-chart-model.js +62 -68
- package/dist/chunks/radar-chart-model.js +8 -15
- package/dist/chunks/rotated-state.js +9 -15
- package/dist/chunks/scatterplot-model.js +84 -90
- package/dist/chunks/serial-chart-data.js +8178 -4195
- package/dist/chunks/serial-chart-model.js +32 -39
- package/dist/chunks/series-length.js +14 -20
- package/dist/chunks/series.js +10 -16
- package/dist/chunks/utils.js +337 -119
- package/dist/chunks/utils2.js +19 -25
- package/dist/chunks/web-component-utils.js +42 -42
- package/dist/components/arcgis-chart/customElement.js +5255 -5339
- package/dist/components/arcgis-charts-action-bar/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +22 -28
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +4 -10
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +15 -20
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +9 -15
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +9 -15
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +10 -16
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +5 -11
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +33 -38
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +4 -10
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +4 -10
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +7 -13
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +14 -20
- package/dist/components/arcgis-charts-config-font-style/customElement.js +14 -20
- package/dist/components/arcgis-charts-config-format/customElement.js +4 -10
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +10 -16
- package/dist/components/arcgis-charts-config-general/customElement.js +8 -14
- package/dist/components/arcgis-charts-config-guide/customElement.js +14 -19
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +13 -19
- package/dist/components/arcgis-charts-config-guides-type-popover/customElement.js +4 -10
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +20 -26
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +17 -24
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +15 -21
- package/dist/components/arcgis-charts-config-histogram/customElement.js +26 -32
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +26 -32
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +5 -11
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +18 -24
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +12 -18
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +8 -14
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +4 -10
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +4 -10
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +5 -11
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +8 -14
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +18 -24
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +8 -14
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +4 -10
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +22 -28
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +9 -15
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +5 -11
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +4 -10
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +12 -19
- package/dist/components/arcgis-charts-info-modal/customElement.js +4 -10
- 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/index.js +421 -412
- package/dist/utils/chart-config/utils/index.d.ts +22 -1
- package/dist/utils/chart-config/validator/index.d.ts +2 -2
- package/dist/utils/data/index.d.ts +48 -1
- package/dist/utils/data/pie-chart/index.d.ts +31 -0
- package/package.json +3 -3
- package/dist/cdn/2R7GVZ2K.js +0 -2
- package/dist/cdn/3LT2GKQ2.js +0 -2
- package/dist/cdn/4D7IL776.js +0 -23
- package/dist/cdn/4TUXERAH.js +0 -2
- package/dist/cdn/53BACKKK.js +0 -2
- package/dist/cdn/5TNV7JHC.js +0 -2
- package/dist/cdn/627BGNFG.js +0 -2
- package/dist/cdn/6LOKVOKI.js +0 -2
- package/dist/cdn/6NZ5UJML.js +0 -2
- package/dist/cdn/6WJVFMRO.js +0 -2
- package/dist/cdn/7GZN67ZQ.js +0 -2
- package/dist/cdn/7SSD7QVG.js +0 -2
- package/dist/cdn/7XRXZ5B3.js +0 -2
- package/dist/cdn/7Y57O4FJ.js +0 -2
- package/dist/cdn/7Y7YFJKK.js +0 -2
- package/dist/cdn/7YXQ6TZT.js +0 -2
- package/dist/cdn/A642VLJ3.js +0 -2
- package/dist/cdn/AVCKTWRB.js +0 -2
- package/dist/cdn/BCEUGCIB.js +0 -2
- package/dist/cdn/BP7HN7YH.js +0 -2
- package/dist/cdn/BPZNMCFA.js +0 -2
- package/dist/cdn/DRLAYMR6.js +0 -2
- package/dist/cdn/DXWMRZX7.js +0 -2
- package/dist/cdn/E7ZG5PMT.js +0 -2
- package/dist/cdn/EDBE2EVF.js +0 -2
- package/dist/cdn/EDCUOXXS.js +0 -2
- package/dist/cdn/EWCL54AQ.js +0 -2
- package/dist/cdn/FKR2N42T.js +0 -2
- package/dist/cdn/GT2GE37X.js +0 -2
- package/dist/cdn/HHMRHLFD.js +0 -2
- package/dist/cdn/HMYIPN7X.js +0 -2
- package/dist/cdn/HQZDYYW6.js +0 -2
- package/dist/cdn/HZDIYXNY.js +0 -2
- package/dist/cdn/I34GLJPW.js +0 -2
- package/dist/cdn/IGRLN5QE.js +0 -2
- package/dist/cdn/IJD3YDOE.js +0 -2
- package/dist/cdn/ITF5WJUH.js +0 -2
- package/dist/cdn/J73HEYK6.js +0 -2
- package/dist/cdn/JWTEQZTD.js +0 -2
- package/dist/cdn/KDLX6TGN.js +0 -2
- package/dist/cdn/LLNUWDC5.js +0 -2
- package/dist/cdn/LZ7LNUEI.js +0 -2
- package/dist/cdn/MAZJTJ64.js +0 -2
- package/dist/cdn/MB7BDR7H.js +0 -2
- package/dist/cdn/MTTVUHUH.js +0 -2
- package/dist/cdn/MVLJJ7VZ.js +0 -2
- package/dist/cdn/N373OIOT.js +0 -2
- package/dist/cdn/N4GBOPIU.js +0 -2
- package/dist/cdn/OG3JZ3LP.js +0 -37
- package/dist/cdn/PSYU6XTK.js +0 -2
- package/dist/cdn/PVTBEXFF.js +0 -2
- package/dist/cdn/PYLJO324.js +0 -2
- package/dist/cdn/QQ6DOFHZ.js +0 -99
- package/dist/cdn/RAJWBR34.js +0 -2
- package/dist/cdn/S7COU7MH.js +0 -2
- package/dist/cdn/SYY7UU2N.js +0 -2
- package/dist/cdn/TN45YUM2.js +0 -2
- package/dist/cdn/TODWZ6FZ.js +0 -2
- package/dist/cdn/TP7767ZV.js +0 -2
- package/dist/cdn/UFJOL4MK.js +0 -2
- package/dist/cdn/ULSVHCH4.js +0 -2
- package/dist/cdn/UVFPEIK2.js +0 -2
- package/dist/cdn/V3PU5TMU.js +0 -2
- package/dist/cdn/V3VVN7ST.js +0 -2
- package/dist/cdn/V5JXE6N4.js +0 -2
- package/dist/cdn/VPOAGMYE.js +0 -2
- package/dist/cdn/VXMMIOTJ.js +0 -2
- package/dist/cdn/WL2XRSAH.js +0 -2
- package/dist/cdn/WWARKOXR.js +0 -2
- package/dist/cdn/WWGW24FD.js +0 -2
- package/dist/cdn/XUHCS2SB.js +0 -2
- package/dist/cdn/YBAPI2UV.js +0 -2
- package/dist/cdn/YJDYXU2Q.js +0 -2
- package/dist/cdn/YUZ26Q2B.js +0 -2
- package/dist/cdn/ZRDKD2U3.js +0 -2
- package/dist/cdn/ZVOSWG36.js +0 -2
- /package/dist/cdn/{FPDW4F45.js → VCUC6CMW.js} +0 -0
|
@@ -1,41 +1,35 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as p } from "../../chunks/runtime.js";
|
|
3
3
|
import { m as n, f as d, k as c } from "../../chunks/type-guards.js";
|
|
4
4
|
import { i as r, c as m, d as g } from "../../chunks/generate-x-axis-title.js";
|
|
5
5
|
import "@arcgis/toolkit/type";
|
|
6
6
|
import { k as l } from "../../chunks/series-types.js";
|
|
7
7
|
import { isEmpty as T } from "lodash-es";
|
|
8
|
-
import { m as x, U as
|
|
8
|
+
import { m as x, U as b } from "../../chunks/chart-ui-utils2.js";
|
|
9
9
|
import { u } from "../../chunks/useT9n.js";
|
|
10
10
|
import { css as C, html as a } from "lit";
|
|
11
11
|
import { createRef as f, ref as $ } from "lit/directives/ref.js";
|
|
12
12
|
import { LitElement as v, safeClassMap as i } from "@arcgis/lumina";
|
|
13
13
|
import "@arcgis/toolkit/intl";
|
|
14
14
|
import "luxon";
|
|
15
|
-
import {
|
|
15
|
+
import { cN as y } from "../../chunks/interfaces.js";
|
|
16
16
|
import "@arcgis/core/Graphic.js";
|
|
17
17
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
18
18
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
19
|
-
import "@arcgis/core/AttributeBinsGraphic.js";
|
|
20
|
-
import "@arcgis/core/layers/support/CodedValueDomain.js";
|
|
21
19
|
import "@esri/arcgis-html-sanitizer";
|
|
22
|
-
import "@arcgis/core/intl.js";
|
|
23
|
-
import "@arcgis/core/layers/support/FeatureFilter.js";
|
|
24
|
-
import "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
25
|
-
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
26
|
-
import "simple-statistics";
|
|
27
|
-
import "@arcgis/core/request.js";
|
|
28
|
-
import "@arcgis/core/core/sql.js";
|
|
29
20
|
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
30
21
|
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
31
22
|
import "@arcgis/core/rest/support/Query.js";
|
|
32
23
|
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
33
24
|
import "@arcgis/core/time/TimeExtent.js";
|
|
34
25
|
import "@arcgis/core/core/promiseUtils.js";
|
|
26
|
+
import "@arcgis/core/request.js";
|
|
35
27
|
import "@arcgis/core/applications/Components/imageryUtils.js";
|
|
36
28
|
import "@arcgis/core/geometry/Extent.js";
|
|
37
29
|
import "@arcgis/core/geometry/Point.js";
|
|
30
|
+
import "simple-statistics";
|
|
38
31
|
import "@arcgis/toolkit/dom";
|
|
32
|
+
import "@arcgis/core/intl.js";
|
|
39
33
|
const s = {
|
|
40
34
|
textInput: "text-input",
|
|
41
35
|
label: "label",
|
|
@@ -97,7 +91,7 @@ class I extends v {
|
|
|
97
91
|
const { value: t } = e.target;
|
|
98
92
|
this.isChartTitleInvalid = T(t.trim()), this.characterLimitInputElement.value && x({
|
|
99
93
|
inputElement: this.characterLimitInputElement.value,
|
|
100
|
-
status: this.isChartTitleInvalid ?
|
|
94
|
+
status: this.isChartTitleInvalid ? b.INVALID : b.IDLE
|
|
101
95
|
}), this.isChartTitleInvalid || (this.model.titleText = t);
|
|
102
96
|
}
|
|
103
97
|
setChartLegendTitle(e) {
|
|
@@ -155,7 +149,7 @@ class I extends v {
|
|
|
155
149
|
] : null}${c(this.model) ? a`<div class=${i(s.labelContainer)}><calcite-label layout=inline-space-between class=${i(s.label)}>${this._messages.legendTitle}<calcite-switch .checked=${this.model.legendTitleVisibility} @calciteSwitchChange=${this.enableLegendTitle}></calcite-switch></calcite-label><calcite-input class=${i(s.textInput)} type=text .disabled=${!this.model.legendTitleVisibility} .value=${this.model.legendTitleText} @calciteInputInput=${this.setChartLegendTitle}></calcite-input></div>` : null}<div class=${i(s.labelContainer)}><calcite-label layout=inline-space-between class=${i(s.label)}>${this._messages.legendPosition}</calcite-label><calcite-combobox clear-disabled label class=${i(s.select)} @calciteComboboxChange=${this.legendPositionChange} selection-mode=single>${this.renderLegendPositions()}</calcite-combobox></div><div class=${i(s.labelContainer)}><calcite-label layout=inline-space-between class=${i(s.label)}>${this._messages.description}<calcite-switch .checked=${this.model.descriptionVisibility} @calciteSwitchChange=${this.enableDescription}></calcite-switch></calcite-label><calcite-text-area .disabled=${!this.model.descriptionVisibility} .value=${this.model.descriptionText} @calciteTextAreaInput=${this.setChartDescription} resize=vertical></calcite-text-area></div>`;
|
|
156
150
|
}
|
|
157
151
|
}
|
|
158
|
-
|
|
152
|
+
p("arcgis-charts-config-general", I);
|
|
159
153
|
export {
|
|
160
154
|
I as ArcgisChartsConfigGeneral
|
|
161
155
|
};
|
|
@@ -5,10 +5,10 @@ import "@arcgis/toolkit/intl";
|
|
|
5
5
|
import { cloneDeep as E } from "lodash-es";
|
|
6
6
|
import "luxon";
|
|
7
7
|
import { u as N } from "../../chunks/series-types.js";
|
|
8
|
-
import {
|
|
8
|
+
import { a9 as p, aX as Z } from "../../chunks/interfaces.js";
|
|
9
9
|
import "@esri/arcgis-html-sanitizer";
|
|
10
10
|
import "@arcgis/toolkit/type";
|
|
11
|
-
import { i as u, g as
|
|
11
|
+
import { i as u, g as q } from "../../chunks/rest-js-object-literals.js";
|
|
12
12
|
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
13
13
|
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
14
14
|
import "@arcgis/core/rest/support/Query.js";
|
|
@@ -16,7 +16,7 @@ import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
|
16
16
|
import "@arcgis/core/time/TimeExtent.js";
|
|
17
17
|
import "@arcgis/core/core/promiseUtils.js";
|
|
18
18
|
import "@arcgis/core/request.js";
|
|
19
|
-
import { p, o as
|
|
19
|
+
import { p as g, o as z } from "../../chunks/index4.js";
|
|
20
20
|
import "@arcgis/core/applications/Components/imageryUtils.js";
|
|
21
21
|
import "@arcgis/core/geometry/Extent.js";
|
|
22
22
|
import "@arcgis/core/geometry/Point.js";
|
|
@@ -24,13 +24,8 @@ import "simple-statistics";
|
|
|
24
24
|
import "@arcgis/core/Graphic.js";
|
|
25
25
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
26
26
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
27
|
-
import "
|
|
28
|
-
import "@arcgis/core/layers/support/CodedValueDomain.js";
|
|
27
|
+
import { c as O, g as k, d as F } from "../../chunks/index3.js";
|
|
29
28
|
import "@arcgis/core/intl.js";
|
|
30
|
-
import "@arcgis/core/layers/support/FeatureFilter.js";
|
|
31
|
-
import "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
32
|
-
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
33
|
-
import "@arcgis/core/core/sql.js";
|
|
34
29
|
import { r as V } from "../../chunks/popover-ui-utils.js";
|
|
35
30
|
import { m as G, d as U, g as W, h as L, U as S } from "../../chunks/chart-ui-utils2.js";
|
|
36
31
|
import { d as M } from "../../chunks/default.js";
|
|
@@ -50,10 +45,10 @@ class se extends J {
|
|
|
50
45
|
constructor() {
|
|
51
46
|
super(...arguments), this._messages = j(), this.startCalciteInput = h(), this.endCalciteInput = h(), this.startDateCalciteInput = h(), this.endDateCalciteInput = h(), this.startTimeCalciteInput = h(), this.endTimeCalciteInput = h(), this.colorElement = h(), this.colorChange = (e) => {
|
|
52
47
|
const t = e.detail, i = this.model.getGuideStart(this.index, this.orientation), a = this.model.getGuideEnd(this.index, this.orientation);
|
|
53
|
-
if (
|
|
48
|
+
if (p(i, a) === u.SLS) {
|
|
54
49
|
const l = E(M.style), s = this.model.getGuideStyle(this.index, this.orientation), r = {
|
|
55
50
|
...l,
|
|
56
|
-
...
|
|
51
|
+
...g(s) ? s : {},
|
|
57
52
|
color: t
|
|
58
53
|
};
|
|
59
54
|
this.lineStyleChange({ detail: r });
|
|
@@ -61,11 +56,11 @@ class se extends J {
|
|
|
61
56
|
this.setColor(t);
|
|
62
57
|
}, this.symbolChange = (e) => {
|
|
63
58
|
const t = e?.detail, i = this.model.getGuideStart(this.index, this.orientation), a = this.model.getGuideEnd(this.index, this.orientation);
|
|
64
|
-
if (
|
|
59
|
+
if (p(i, a) === u.SLS) {
|
|
65
60
|
const l = E(M.style), s = this.model.getGuideStyle(this.index, this.orientation), r = {
|
|
66
61
|
...l,
|
|
67
|
-
...
|
|
68
|
-
...
|
|
62
|
+
...g(s) ? s : {},
|
|
63
|
+
...g(t) ? t : {}
|
|
69
64
|
};
|
|
70
65
|
this.lineStyleChange({ detail: r });
|
|
71
66
|
} else t?.color !== void 0 && this.setColor(t.color);
|
|
@@ -126,7 +121,7 @@ class se extends J {
|
|
|
126
121
|
})), this.guidePopover?.open === !0 && this.removeGuidePopover();
|
|
127
122
|
}
|
|
128
123
|
setGuideDateTimeRange() {
|
|
129
|
-
const e = this.calculatedMinMaxBounds?.find((d) => d.isXAxis)?.minimum, t = this.calculatedMinMaxBounds?.find((d) => d.isXAxis)?.maximum, i = typeof e == "number" ? new Date(e) : /* @__PURE__ */ new Date(), a = typeof t == "number" ? new Date(t) : /* @__PURE__ */ new Date(), l = new window.Intl.DateTimeFormat().resolvedOptions().timeZone, s =
|
|
124
|
+
const e = this.calculatedMinMaxBounds?.find((d) => d.isXAxis)?.minimum, t = this.calculatedMinMaxBounds?.find((d) => d.isXAxis)?.maximum, i = typeof e == "number" ? new Date(e) : /* @__PURE__ */ new Date(), a = typeof t == "number" ? new Date(t) : /* @__PURE__ */ new Date(), l = new window.Intl.DateTimeFormat().resolvedOptions().timeZone, s = O(this.timeZone) ?? l, r = k(i, s), v = F(i, s), f = k(a, s), B = F(a, s), T = this.startDateCalciteInput.value?.value ?? "", C = T === "" ? r : T, D = this.startTimeCalciteInput.value?.value ?? "", I = D === "" ? v : D, x = this.endDateCalciteInput.value?.value ?? "", y = x === "" ? f : x, w = this.endTimeCalciteInput.value?.value ?? "", P = w === "" ? B : w;
|
|
130
125
|
let $ = !1;
|
|
131
126
|
if (!Array.isArray(C) && C !== void 0 && I !== void 0) {
|
|
132
127
|
const d = `${C}T${I}`;
|
|
@@ -181,7 +176,7 @@ class se extends J {
|
|
|
181
176
|
e.stopImmediatePropagation();
|
|
182
177
|
const t = this.model.getGuideStyle(this.index, this.orientation), i = this.model.getGuideStart(this.index, this.orientation), a = this.model.getGuideEnd(this.index, this.orientation);
|
|
183
178
|
let l;
|
|
184
|
-
|
|
179
|
+
p(i, a) === u.SLS ? l = g(t) ? t : void 0 : l = t?.color;
|
|
185
180
|
const s = this.colorElement.value;
|
|
186
181
|
Array.isArray(t?.color) ? (this.guidePopover = A(c`<arcgis-charts-config-guide-popover .referenceElement=${s} open .selectedElement=${l} @arcgisChartsConfigGuidePopoverColorChange=${this.colorChange} @arcgisChartsConfigGuidePopoverSymbolChange=${this.symbolChange} @arcgisChartsConfigPopoverClose=${this.removeGuidePopover}></arcgis-charts-config-guide-popover>`), this.guidePopover !== void 0 && !document.body.contains(this.guidePopover) && document.body.appendChild(this.guidePopover)) : this.removeGuidePopover();
|
|
187
182
|
}
|
|
@@ -189,8 +184,8 @@ class se extends J {
|
|
|
189
184
|
this.guidePopover !== null && this.guidePopover !== void 0 && (this.guidePopover = V(this.guidePopover));
|
|
190
185
|
}
|
|
191
186
|
setColor(e) {
|
|
192
|
-
const t =
|
|
193
|
-
...
|
|
187
|
+
const t = Z({ opacity: 0 }), i = this.model.getGuideStyle(this.index, this.orientation), a = {
|
|
188
|
+
...z(i) ? i : {},
|
|
194
189
|
type: u.SFS,
|
|
195
190
|
color: e,
|
|
196
191
|
outline: t
|
|
@@ -239,7 +234,7 @@ class se extends J {
|
|
|
239
234
|
});
|
|
240
235
|
}
|
|
241
236
|
renderColorElement() {
|
|
242
|
-
const e = this.model.getGuideStyle(this.index, this.orientation), [t, i, a, l] = [...e?.color ?? [1, 1, 1, 255]], s = this.model.getGuideStart(this.index, this.orientation), r = this.model.getGuideEnd(this.index, this.orientation), v =
|
|
237
|
+
const e = this.model.getGuideStyle(this.index, this.orientation), [t, i, a, l] = [...e?.color ?? [1, 1, 1, 255]], s = this.model.getGuideStart(this.index, this.orientation), r = this.model.getGuideEnd(this.index, this.orientation), v = g(e) ? W(e.style) : q.Solid, f = p(s, r) === u.SLS ? `line-${v}` : "square-f";
|
|
243
238
|
return c`<calcite-list label selection-mode=single selection-appearance=border><calcite-list-item .value=${this._messages.style} class=${o(n.colorPicker)} .label=${this._messages.style} .selected=${this.guidePopover?.open} @click=${this.onColorElementSelect} ${m(this.colorElement)}><calcite-icon slot=content-end .icon=${f} style=${_({ color: `rgba(${t},${i},${a},${l / 255})` })}></calcite-icon></calcite-list-item></calcite-list>`;
|
|
244
239
|
}
|
|
245
240
|
render() {
|
|
@@ -1,47 +1,41 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as r } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as
|
|
3
|
+
import { css as l, html as o } from "lit";
|
|
4
4
|
import "@arcgis/toolkit/type";
|
|
5
5
|
import "../../chunks/series-types.js";
|
|
6
|
-
import { i as
|
|
6
|
+
import { i as p } from "../../chunks/rest-js-object-literals.js";
|
|
7
7
|
import "@arcgis/toolkit/intl";
|
|
8
8
|
import "lodash-es";
|
|
9
9
|
import "luxon";
|
|
10
|
-
import "../../chunks/
|
|
10
|
+
import "../../chunks/interfaces.js";
|
|
11
11
|
import "@arcgis/core/Graphic.js";
|
|
12
12
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
13
13
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
14
|
-
import "@arcgis/core/AttributeBinsGraphic.js";
|
|
15
|
-
import "@arcgis/core/layers/support/CodedValueDomain.js";
|
|
16
14
|
import "@esri/arcgis-html-sanitizer";
|
|
17
|
-
import "@arcgis/core/intl.js";
|
|
18
|
-
import "@arcgis/core/layers/support/FeatureFilter.js";
|
|
19
|
-
import "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
20
|
-
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
21
|
-
import "simple-statistics";
|
|
22
|
-
import "@arcgis/core/request.js";
|
|
23
|
-
import "@arcgis/core/core/sql.js";
|
|
24
15
|
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
25
16
|
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
26
17
|
import "@arcgis/core/rest/support/Query.js";
|
|
27
18
|
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
28
19
|
import "@arcgis/core/time/TimeExtent.js";
|
|
29
20
|
import "@arcgis/core/core/promiseUtils.js";
|
|
21
|
+
import "@arcgis/core/request.js";
|
|
30
22
|
import "@arcgis/core/applications/Components/imageryUtils.js";
|
|
31
23
|
import "@arcgis/core/geometry/Extent.js";
|
|
32
24
|
import "@arcgis/core/geometry/Point.js";
|
|
25
|
+
import "simple-statistics";
|
|
33
26
|
import "@arcgis/toolkit/dom";
|
|
27
|
+
import "@arcgis/core/intl.js";
|
|
34
28
|
import { e as a } from "../../chunks/popover-ui-utils.js";
|
|
35
|
-
import { g as
|
|
29
|
+
import { g as i } from "../../chunks/default.js";
|
|
36
30
|
import { u as n } from "../../chunks/useT9n.js";
|
|
37
31
|
import { createRef as m, ref as c } from "lit/directives/ref.js";
|
|
38
|
-
import { LitElement as h, createEvent as
|
|
32
|
+
import { LitElement as h, createEvent as s, safeClassMap as g } from "@arcgis/lumina";
|
|
39
33
|
const C = {
|
|
40
34
|
jsAppFlyout: "js-app-flyout"
|
|
41
|
-
}, d =
|
|
35
|
+
}, d = l``;
|
|
42
36
|
class f extends h {
|
|
43
37
|
constructor() {
|
|
44
|
-
super(...arguments), this._messages = n(), this.popoverElement = m(), this.placement = "leading", this.arcgisChartsConfigGuidePopoverColorChange =
|
|
38
|
+
super(...arguments), this._messages = n(), this.popoverElement = m(), this.placement = "leading", this.arcgisChartsConfigGuidePopoverColorChange = s(), this.arcgisChartsConfigGuidePopoverSymbolChange = s(), this.arcgisChartsConfigPopoverClose = s();
|
|
45
39
|
}
|
|
46
40
|
static {
|
|
47
41
|
this.properties = { messageOverrides: 0, selectedElement: 0, referenceElement: 0, placement: 1, open: 5 };
|
|
@@ -60,15 +54,15 @@ class f extends h {
|
|
|
60
54
|
}
|
|
61
55
|
updateColorProperties(t) {
|
|
62
56
|
const e = t.detail;
|
|
63
|
-
e !== void 0 && (e[3] =
|
|
57
|
+
e !== void 0 && (e[3] = i), this.selectedElement = e, this.arcgisChartsConfigGuidePopoverColorChange.emit(this.selectedElement);
|
|
64
58
|
}
|
|
65
59
|
updateSymbolProperties(t) {
|
|
66
60
|
const { lineStyle: e } = t.target;
|
|
67
|
-
e?.color !== void 0 && (e.color[3] =
|
|
61
|
+
e?.color !== void 0 && (e.color[3] = i), this.selectedElement = e, this.arcgisChartsConfigGuidePopoverSymbolChange.emit(t.detail);
|
|
68
62
|
}
|
|
69
63
|
render() {
|
|
70
64
|
const t = this.selectedElement, e = this.selectedElement;
|
|
71
|
-
return o`<div class=${g(C.jsAppFlyout)}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .open=${this.open} offset-distance=20 offset-skidding=60 label pointer-disabled @calcitePopoverClose=${this.guidePopoverClose} auto-close ${c(this.popoverElement)}>${Array.isArray(t) && o`<arcgis-charts-config-color-style .header=${this._messages.fillStyle} enable-close .open=${this.open} .selectedColor=${t} @arcgisChartsConfigColorStyleClose=${this.guidePopoverClose} @arcgisChartsConfigColorStyleChange=${this.updateColorProperties}></arcgis-charts-config-color-style>` || ""}${e?.type ===
|
|
65
|
+
return o`<div class=${g(C.jsAppFlyout)}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .open=${this.open} offset-distance=20 offset-skidding=60 label pointer-disabled @calcitePopoverClose=${this.guidePopoverClose} auto-close ${c(this.popoverElement)}>${Array.isArray(t) && o`<arcgis-charts-config-color-style .header=${this._messages.fillStyle} enable-close .open=${this.open} .selectedColor=${t} @arcgisChartsConfigColorStyleClose=${this.guidePopoverClose} @arcgisChartsConfigColorStyleChange=${this.updateColorProperties}></arcgis-charts-config-color-style>` || ""}${e?.type === p.SLS && o`<arcgis-charts-config-line-style .header=${this._messages.lineStyle} .open=${this.open} enable-close .lineStyle=${e} @arcgisChartsConfigLineStyleClose=${this.guidePopoverClose} @arcgisChartsConfigLineStyleChange=${this.updateSymbolProperties}></arcgis-charts-config-line-style>` || ""}</calcite-popover></div>`;
|
|
72
66
|
}
|
|
73
67
|
}
|
|
74
68
|
r("arcgis-charts-config-guide-popover", f);
|
|
@@ -9,30 +9,24 @@ import "lodash-es";
|
|
|
9
9
|
import "luxon";
|
|
10
10
|
import "../../chunks/series-types.js";
|
|
11
11
|
import "@arcgis/toolkit/type";
|
|
12
|
-
import "../../chunks/
|
|
12
|
+
import "../../chunks/interfaces.js";
|
|
13
13
|
import "@arcgis/core/Graphic.js";
|
|
14
14
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
15
15
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
16
|
-
import "@arcgis/core/AttributeBinsGraphic.js";
|
|
17
|
-
import "@arcgis/core/layers/support/CodedValueDomain.js";
|
|
18
16
|
import "@esri/arcgis-html-sanitizer";
|
|
19
|
-
import "@arcgis/core/intl.js";
|
|
20
|
-
import "@arcgis/core/layers/support/FeatureFilter.js";
|
|
21
|
-
import "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
22
|
-
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
23
|
-
import "simple-statistics";
|
|
24
|
-
import "@arcgis/core/request.js";
|
|
25
|
-
import "@arcgis/core/core/sql.js";
|
|
26
17
|
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
27
18
|
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
28
19
|
import "@arcgis/core/rest/support/Query.js";
|
|
29
20
|
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
30
21
|
import "@arcgis/core/time/TimeExtent.js";
|
|
31
22
|
import "@arcgis/core/core/promiseUtils.js";
|
|
23
|
+
import "@arcgis/core/request.js";
|
|
32
24
|
import "@arcgis/core/applications/Components/imageryUtils.js";
|
|
33
25
|
import "@arcgis/core/geometry/Extent.js";
|
|
34
26
|
import "@arcgis/core/geometry/Point.js";
|
|
27
|
+
import "simple-statistics";
|
|
35
28
|
import "@arcgis/toolkit/dom";
|
|
29
|
+
import "@arcgis/core/intl.js";
|
|
36
30
|
import { e as p } from "../../chunks/popover-ui-utils.js";
|
|
37
31
|
class l extends s {
|
|
38
32
|
constructor() {
|
|
@@ -1,52 +1,46 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as s } from "../../chunks/runtime.js";
|
|
3
3
|
import { LitElement as l } from "@arcgis/lumina";
|
|
4
|
-
import { css as n, html as
|
|
5
|
-
import { C as
|
|
4
|
+
import { css as n, html as a } from "lit";
|
|
5
|
+
import { C as o } from "../../chunks/interfaces2.js";
|
|
6
6
|
import "@arcgis/toolkit/intl";
|
|
7
|
-
import { isEqual as
|
|
7
|
+
import { isEqual as h } from "lodash-es";
|
|
8
8
|
import "luxon";
|
|
9
9
|
import "../../chunks/series-types.js";
|
|
10
10
|
import "@arcgis/toolkit/type";
|
|
11
|
-
import {
|
|
11
|
+
import { bt as m, a6 as d } from "../../chunks/interfaces.js";
|
|
12
12
|
import "@arcgis/core/Graphic.js";
|
|
13
13
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
14
14
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
15
|
-
import "@arcgis/core/AttributeBinsGraphic.js";
|
|
16
|
-
import "@arcgis/core/layers/support/CodedValueDomain.js";
|
|
17
15
|
import "@esri/arcgis-html-sanitizer";
|
|
18
|
-
import "@arcgis/core/intl.js";
|
|
19
|
-
import "@arcgis/core/layers/support/FeatureFilter.js";
|
|
20
|
-
import "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
21
|
-
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
22
|
-
import "simple-statistics";
|
|
23
|
-
import "@arcgis/core/request.js";
|
|
24
|
-
import "@arcgis/core/core/sql.js";
|
|
25
16
|
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
26
17
|
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
27
18
|
import "@arcgis/core/rest/support/Query.js";
|
|
28
19
|
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
29
20
|
import "@arcgis/core/time/TimeExtent.js";
|
|
30
21
|
import "@arcgis/core/core/promiseUtils.js";
|
|
22
|
+
import "@arcgis/core/request.js";
|
|
31
23
|
import { h as c } from "../../chunks/index4.js";
|
|
32
24
|
import "@arcgis/core/applications/Components/imageryUtils.js";
|
|
33
25
|
import "@arcgis/core/geometry/Extent.js";
|
|
34
26
|
import "@arcgis/core/geometry/Point.js";
|
|
27
|
+
import "simple-statistics";
|
|
35
28
|
import "@arcgis/toolkit/dom";
|
|
36
|
-
|
|
37
|
-
|
|
29
|
+
import "@arcgis/core/intl.js";
|
|
30
|
+
const f = n`:host{margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
31
|
+
class p extends l {
|
|
38
32
|
static {
|
|
39
33
|
this.properties = { layerFieldsInfo: 16, model: 0, page: 1, layer: 0, usePopupTemplateFieldsInfo: 5 };
|
|
40
34
|
}
|
|
41
35
|
static {
|
|
42
|
-
this.styles =
|
|
36
|
+
this.styles = f;
|
|
43
37
|
}
|
|
44
38
|
async load() {
|
|
45
39
|
await this.updateFetchLayerFieldsInfo(this.model?.config), this.modelChange(this.model);
|
|
46
40
|
}
|
|
47
41
|
willUpdate(e) {
|
|
48
42
|
let t = !1;
|
|
49
|
-
e.has("model") && this.modelChange(this.model, e.get("model")), e.has("layer") && this.layer !== void 0 && !
|
|
43
|
+
e.has("model") && this.modelChange(this.model, e.get("model")), e.has("layer") && this.layer !== void 0 && !h(e.get("layer"), this.layer) && (t = !0), e.has("usePopupTemplateFieldsInfo") && this.usePopupTemplateFieldsInfo !== e.get("usePopupTemplateFieldsInfo") && (t = !0), this.layerFieldsInfo === void 0 && (t = !0), t && this.updateFetchLayerFieldsInfo();
|
|
50
44
|
}
|
|
51
45
|
disconnectedCallback() {
|
|
52
46
|
super.disconnectedCallback(), this.model.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
@@ -59,7 +53,7 @@ class f extends l {
|
|
|
59
53
|
let i = this.layer;
|
|
60
54
|
if (!i) {
|
|
61
55
|
const r = c(t) ? t.iLayer : void 0;
|
|
62
|
-
r && (i = await
|
|
56
|
+
r && (i = await m(r));
|
|
63
57
|
}
|
|
64
58
|
i && (await i.load(), this.layerFieldsInfo = d(i, this.usePopupTemplateFieldsInfo));
|
|
65
59
|
}
|
|
@@ -70,14 +64,14 @@ class f extends l {
|
|
|
70
64
|
render() {
|
|
71
65
|
let e;
|
|
72
66
|
switch (this.page) {
|
|
73
|
-
case
|
|
74
|
-
e =
|
|
67
|
+
case o.Data:
|
|
68
|
+
e = a`<arcgis-charts-config-heat-chart-data .model=${this.model} .layerFieldsInfo=${this.layerFieldsInfo}></arcgis-charts-config-heat-chart-data>`;
|
|
75
69
|
break;
|
|
76
|
-
case
|
|
77
|
-
e =
|
|
70
|
+
case o.Format:
|
|
71
|
+
e = a`<arcgis-charts-config-format .model=${this.model}></arcgis-charts-config-format>`;
|
|
78
72
|
break;
|
|
79
|
-
case
|
|
80
|
-
e =
|
|
73
|
+
case o.General:
|
|
74
|
+
e = a`<arcgis-charts-config-general .model=${this.model}></arcgis-charts-config-general>`;
|
|
81
75
|
break;
|
|
82
76
|
default:
|
|
83
77
|
e = "";
|
|
@@ -86,7 +80,7 @@ class f extends l {
|
|
|
86
80
|
return e;
|
|
87
81
|
}
|
|
88
82
|
}
|
|
89
|
-
s("arcgis-charts-config-heat-chart",
|
|
83
|
+
s("arcgis-charts-config-heat-chart", p);
|
|
90
84
|
export {
|
|
91
|
-
|
|
85
|
+
p as ArcgisChartsConfigHeatChart
|
|
92
86
|
};
|
|
@@ -1,41 +1,34 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { LitElement as
|
|
2
|
+
import { c as E } from "../../chunks/runtime.js";
|
|
3
|
+
import { LitElement as P, createEvent as M, renderElement as I, safeClassMap as o, safeStyleMap as F } from "@arcgis/lumina";
|
|
4
4
|
import { getElementLocale as w, normalizeLocale as _, defaultLocale as H } from "@arcgis/toolkit/intl";
|
|
5
5
|
import { css as O, html as l } from "lit";
|
|
6
6
|
import { createRef as h, ref as m } from "lit/directives/ref.js";
|
|
7
7
|
import { isEqual as B, parseInt as L, camelCase as N } from "lodash-es";
|
|
8
8
|
import { DateTime as U } from "luxon";
|
|
9
|
-
import {
|
|
9
|
+
import { bD as x, cN as W, au as V, dU as T, G as q, bi as R, d3 as K, H as u } from "../../chunks/interfaces.js";
|
|
10
10
|
import { u as S } from "../../chunks/useT9n.js";
|
|
11
|
-
import { d as i, W as y } from "../../chunks/
|
|
11
|
+
import { d as i, W as y } from "../../chunks/interfaces2.js";
|
|
12
12
|
import { H as z } from "../../chunks/common.js";
|
|
13
13
|
import "@arcgis/toolkit/type";
|
|
14
|
-
import { r as p, m as d, d as b, u as g, h as k, e as v, i as
|
|
15
|
-
import { i as
|
|
16
|
-
import { x as
|
|
17
|
-
import { i as
|
|
14
|
+
import { r as p, m as d, d as b, u as g, h as k, e as v, i as G } from "../../chunks/series-types.js";
|
|
15
|
+
import { i as X } from "../../chunks/rest-js-object-literals.js";
|
|
16
|
+
import { x as Z } from "../../chunks/data.js";
|
|
17
|
+
import { i as j } from "../../chunks/utils.js";
|
|
18
18
|
import "@arcgis/core/Graphic.js";
|
|
19
19
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
20
20
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
21
|
-
import "@arcgis/core/AttributeBinsGraphic.js";
|
|
22
|
-
import "@arcgis/core/layers/support/CodedValueDomain.js";
|
|
23
|
-
import "@arcgis/core/intl.js";
|
|
24
|
-
import "@arcgis/core/layers/support/FeatureFilter.js";
|
|
25
|
-
import "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
26
|
-
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
27
|
-
import "simple-statistics";
|
|
28
|
-
import "@arcgis/core/request.js";
|
|
29
|
-
import "@arcgis/core/core/sql.js";
|
|
30
21
|
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
31
22
|
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
32
23
|
import "@arcgis/core/rest/support/Query.js";
|
|
33
24
|
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
34
25
|
import "@arcgis/core/time/TimeExtent.js";
|
|
35
26
|
import "@arcgis/core/core/promiseUtils.js";
|
|
27
|
+
import "@arcgis/core/request.js";
|
|
36
28
|
import "@arcgis/core/applications/Components/imageryUtils.js";
|
|
37
29
|
import "@arcgis/core/geometry/Extent.js";
|
|
38
30
|
import "@arcgis/core/geometry/Point.js";
|
|
31
|
+
import "simple-statistics";
|
|
39
32
|
import "@arcgis/toolkit/dom";
|
|
40
33
|
import { r as Y } from "../../chunks/popover-ui-utils.js";
|
|
41
34
|
import { j as $, s as J } from "../../chunks/chart-ui-utils2.js";
|
|
@@ -48,7 +41,7 @@ const le = O`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.
|
|
|
48
41
|
list: "list",
|
|
49
42
|
accordion: "accordion"
|
|
50
43
|
};
|
|
51
|
-
class oe extends
|
|
44
|
+
class oe extends P {
|
|
52
45
|
constructor() {
|
|
53
46
|
super(...arguments), this._messages = S(), this.commonStrings = S({ name: "common", blocking: !0 }), this.heatChartPopover = null, this.xAxisFieldElement = h(), this.aggregationElement = h(), this.numericFieldsElement = h(), this.calendarTypeElement = h(), this.calendarViewTypeElement = h(), this.classBreakMethodElement = h(), this.nullElement = h(), this.breaksCountElement = h(), this.colorSchemeElement = h(), this.onHeatChartDataPopoverChange = async (e) => {
|
|
54
47
|
try {
|
|
@@ -107,7 +100,7 @@ class oe extends D {
|
|
|
107
100
|
...t,
|
|
108
101
|
symbol: {
|
|
109
102
|
...t?.symbol,
|
|
110
|
-
type:
|
|
103
|
+
type: X.SFS,
|
|
111
104
|
color: a,
|
|
112
105
|
outline: t?.symbol?.outline && { ...t.symbol.outline, color: a }
|
|
113
106
|
}
|
|
@@ -229,7 +222,7 @@ class oe extends D {
|
|
|
229
222
|
a?.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange), e?.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
230
223
|
}
|
|
231
224
|
getCorrectedXAxisFieldValue() {
|
|
232
|
-
return
|
|
225
|
+
return Z({
|
|
233
226
|
fieldName: this.model.xAxisField,
|
|
234
227
|
fieldList: this.layerFieldsInfo
|
|
235
228
|
}) ? "" : R(this.layerFieldsInfo, this.model.xAxisField);
|
|
@@ -305,7 +298,7 @@ class oe extends D {
|
|
|
305
298
|
this.heatChartPopover !== null && (this.heatChartPopover.open = !1, this.heatChartPopover = Y(this.heatChartPopover));
|
|
306
299
|
}
|
|
307
300
|
setDefaultPropertiesForCalendarHeatChart() {
|
|
308
|
-
|
|
301
|
+
j(this.model?.config) || ((this.model.xTemporalBinning === void 0 || this.model.yTemporalBinning === void 0) && this.applyCalendarTypePreset(y.YearByMonthAndDayOfMonth), this.model.yAxisField = this.model.xAxisField, this.model.setYAxisSortOrder(z.Desc), this.model.classificationMethod === void 0 && (this.model.classificationMethod = v.naturalBreaks), this.model.heatRulesType !== k.Renderer && (this.model.heatRulesType = k.Renderer), this.model.viewType === void 0 && (this.model.viewType = G.singleCalendarView), (this.model.aggregationType === p.Count || this.model.aggregationType === p.Sum) && this.model.nullPolicy !== d.Zero && (this.model.nullPolicy = d.Zero));
|
|
309
302
|
}
|
|
310
303
|
renderXAxisFieldSelect() {
|
|
311
304
|
const e = this.getCorrectedXAxisFieldValue();
|
|
@@ -353,11 +346,11 @@ class oe extends D {
|
|
|
353
346
|
return l`<calcite-radio-button-group name=empty-bins layout=vertical @calciteRadioButtonGroupChange=${this.onNullPolicyChange}><calcite-label layout=inline><calcite-radio-button .value=${d.Zero} .checked=${this.model.nullPolicy === d.Zero}></calcite-radio-button>${this._messages.treatAsZero}</calcite-label><calcite-label layout=inline><calcite-radio-button .value=${d.Null} .checked=${this.model.nullPolicy === d.Null}></calcite-radio-button>${this._messages.treatAsNull}</calcite-label></calcite-radio-button-group>`;
|
|
354
347
|
}
|
|
355
348
|
render() {
|
|
356
|
-
const e = this.renderXAxisFieldSelect(), a = this.renderAggregation(), t = this.renderNumericFieldsSelect(), s = this.renderCalendarTypeSelect(), n = this.renderClassBreakMethodSelect(), c = this.renderColorRampSelect(), C = this.renderClassBreaksTable(), f = this.renderNullUI(),
|
|
357
|
-
return l`<calcite-label class=${o(r.label)}>${this._messages.dateRequired}${e}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.calendarType}${s}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.aggregation}${a}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.numericField}${t}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.method}${n}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.numberOfClasses}<calcite-input type=number .min=${u.min} .max=${u.max} .disabled=${this.model.classificationMethod === void 0 || this.model.classificationMethod === v.manual} step=1 .value=${J(this.model.breaksCount, 5)} @calciteInputInput=${this.onBreaksCountChange} ${m(this.breaksCountElement)}></calcite-input></calcite-label><calcite-label class=${o(r.label)}>${this._messages.colorScheme}${c}</calcite-label>${f}<calcite-accordion class=${o(r.accordion)} appearance=transparent selection-mode=single><calcite-accordion-item .heading=${this._messages.classBreaks}>${C}</calcite-accordion-item></calcite-accordion><calcite-label class=${o(r.label)}>${this._messages.emptyBins}${
|
|
349
|
+
const e = this.renderXAxisFieldSelect(), a = this.renderAggregation(), t = this.renderNumericFieldsSelect(), s = this.renderCalendarTypeSelect(), n = this.renderClassBreakMethodSelect(), c = this.renderColorRampSelect(), C = this.renderClassBreaksTable(), f = this.renderNullUI(), D = this.renderEmptyBins();
|
|
350
|
+
return l`<calcite-label class=${o(r.label)}>${this._messages.dateRequired}${e}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.calendarType}${s}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.aggregation}${a}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.numericField}${t}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.method}${n}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.numberOfClasses}<calcite-input type=number .min=${u.min} .max=${u.max} .disabled=${this.model.classificationMethod === void 0 || this.model.classificationMethod === v.manual} step=1 .value=${J(this.model.breaksCount, 5)} @calciteInputInput=${this.onBreaksCountChange} ${m(this.breaksCountElement)}></calcite-input></calcite-label><calcite-label class=${o(r.label)}>${this._messages.colorScheme}${c}</calcite-label>${f}<calcite-accordion class=${o(r.accordion)} appearance=transparent selection-mode=single><calcite-accordion-item .heading=${this._messages.classBreaks}>${C}</calcite-accordion-item></calcite-accordion><calcite-label class=${o(r.label)}>${this._messages.emptyBins}${D}</calcite-label>${$(this.model) === y.YearByMonthAndDayOfMonth ? l`<calcite-label class=${o(r.label)} layout=inline-space-between>${this._messages.includeLeapDay}<calcite-switch .checked=${this.model.includeLeapDay} @calciteSwitchChange=${this.onIncludeLeapDayChange}></calcite-switch></calcite-label>` : null}`;
|
|
358
351
|
}
|
|
359
352
|
}
|
|
360
|
-
|
|
353
|
+
E("arcgis-charts-config-heat-chart-data", oe);
|
|
361
354
|
export {
|
|
362
355
|
oe as ArcgisChartsConfigHeatChartData
|
|
363
356
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as w } from "../../chunks/runtime.js";
|
|
3
3
|
import { repeat as d } from "lit/directives/repeat.js";
|
|
4
4
|
import { css as F, html as l } from "lit";
|
|
5
5
|
import { keyed as f } from "lit/directives/keyed.js";
|
|
@@ -7,36 +7,30 @@ import L from "@arcgis/core/Color.js";
|
|
|
7
7
|
import { LitElement as T, createEvent as h, safeClassMap as r, nothing as g, safeStyleMap as P } from "@arcgis/lumina";
|
|
8
8
|
import { createRef as u, ref as p } from "lit/directives/ref.js";
|
|
9
9
|
import { isEqual as S } from "lodash-es";
|
|
10
|
-
import {
|
|
10
|
+
import { au as A, bi as D, cz as E, cM as _, dU as b, dB as B } from "../../chunks/interfaces.js";
|
|
11
11
|
import { u as v } from "../../chunks/useT9n.js";
|
|
12
|
-
import { d as c, W as $ } from "../../chunks/
|
|
12
|
+
import { d as c, W as $ } from "../../chunks/interfaces2.js";
|
|
13
13
|
import "@arcgis/toolkit/type";
|
|
14
|
-
import { r as
|
|
15
|
-
import { R as
|
|
14
|
+
import { r as M, i as y, e as C } from "../../chunks/series-types.js";
|
|
15
|
+
import { R as N } from "../../chunks/rest-js-object-literals.js";
|
|
16
16
|
import "@arcgis/toolkit/intl";
|
|
17
17
|
import "luxon";
|
|
18
18
|
import "@arcgis/core/Graphic.js";
|
|
19
19
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
20
20
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
21
|
-
import "@arcgis/core/AttributeBinsGraphic.js";
|
|
22
|
-
import "@arcgis/core/layers/support/CodedValueDomain.js";
|
|
23
|
-
import "@arcgis/core/intl.js";
|
|
24
|
-
import "@arcgis/core/layers/support/FeatureFilter.js";
|
|
25
|
-
import "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
26
|
-
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
27
|
-
import "simple-statistics";
|
|
28
|
-
import "@arcgis/core/request.js";
|
|
29
|
-
import "@arcgis/core/core/sql.js";
|
|
30
21
|
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
31
22
|
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
32
23
|
import "@arcgis/core/rest/support/Query.js";
|
|
33
24
|
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
34
25
|
import "@arcgis/core/time/TimeExtent.js";
|
|
35
26
|
import "@arcgis/core/core/promiseUtils.js";
|
|
27
|
+
import "@arcgis/core/request.js";
|
|
36
28
|
import "@arcgis/core/applications/Components/imageryUtils.js";
|
|
37
29
|
import "@arcgis/core/geometry/Extent.js";
|
|
38
30
|
import "@arcgis/core/geometry/Point.js";
|
|
31
|
+
import "simple-statistics";
|
|
39
32
|
import "@arcgis/toolkit/dom";
|
|
33
|
+
import "@arcgis/core/intl.js";
|
|
40
34
|
import { e as H } from "../../chunks/popover-ui-utils.js";
|
|
41
35
|
import { b as x, a as O, c as m } from "../../chunks/chart-ui-utils2.js";
|
|
42
36
|
import { C as k, b as R } from "../../chunks/class-breaks.js";
|
|
@@ -58,7 +52,7 @@ const j = F`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.a
|
|
|
58
52
|
panelChildrenContainer: "panel-children-container",
|
|
59
53
|
colorRampPopoverFooter: "color-ramp-popover-footer"
|
|
60
54
|
};
|
|
61
|
-
class
|
|
55
|
+
class q extends T {
|
|
62
56
|
constructor() {
|
|
63
57
|
super(...arguments), this._messages = v(), this.commonStrings = v({ name: "common", blocking: !0 }), this.picklist = u(), this.popoverElement = u(), this.placement = "leading", this.offsetDistance = -200, this.availableColorRamps = [], this.selectedCategory = k.all, this.aggregationLabels = [], this.isFlipped = !1, this.layerFieldsInfo = [], this.arcgisChartsConfigHeatChartColorRampChange = h(), this.arcgisChartsConfigHeatChartDataPopoverChange = h(), this.arcgisChartsConfigPopoverClose = h(), this.arcgisChartsConfigPopoverEmptyCellColorChange = h(), this.arcgisChartsConfigPopoverEmptyCellNameChange = h();
|
|
64
58
|
}
|
|
@@ -81,7 +75,7 @@ class W extends T {
|
|
|
81
75
|
}, O.PopoverTimer), H(this.popoverElement.value, this.open);
|
|
82
76
|
}
|
|
83
77
|
buildAggregationListItems() {
|
|
84
|
-
return d(x.filter((e) => e !==
|
|
78
|
+
return d(x.filter((e) => e !== M.NoAggregation), (e) => e, (e, t) => l`<calcite-list-item .label=${this.aggregationLabels[t]} .value=${e} .selected=${m(e, this.selectedContent)}></calcite-list-item>`);
|
|
85
79
|
}
|
|
86
80
|
buildPickListItem(e) {
|
|
87
81
|
return f(e.name, l`<calcite-list-item .label=${D(this.layerFieldsInfo, e.name)} .value=${e.name} .selected=${m(e.name, this.selectedContent)}></calcite-list-item>`);
|
|
@@ -142,7 +136,7 @@ class W extends T {
|
|
|
142
136
|
typeof a == "string" && a.length && (t = a);
|
|
143
137
|
} else if (Array.isArray(e)) {
|
|
144
138
|
const [a, i, o, n] = e;
|
|
145
|
-
[a, i, o].every((
|
|
139
|
+
[a, i, o].every((I) => typeof I == "number") && (t = `rgba(${a},${i},${o},${n ?? 1})`);
|
|
146
140
|
} else if (typeof e == "object" && e) {
|
|
147
141
|
const { r: a, g: i, b: o, a: n } = e;
|
|
148
142
|
if (a != null && i != null && o != null)
|
|
@@ -187,7 +181,7 @@ class W extends T {
|
|
|
187
181
|
this.model.emptyCellText !== t && (this.model.emptyCellText = t, this.arcgisChartsConfigPopoverEmptyCellNameChange.emit({ name: t }));
|
|
188
182
|
}
|
|
189
183
|
colorChange(e) {
|
|
190
|
-
const t = e instanceof CustomEvent ? e.detail : e, [a, i, o] = t, n =
|
|
184
|
+
const t = e instanceof CustomEvent ? e.detail : e, [a, i, o] = t, n = B * 255;
|
|
191
185
|
this.arcgisChartsConfigPopoverEmptyCellColorChange.emit({ color: [a, i, o, n] });
|
|
192
186
|
}
|
|
193
187
|
renderAggregationType() {
|
|
@@ -203,7 +197,7 @@ class W extends T {
|
|
|
203
197
|
return l`<calcite-list label class=${r(s.pickListItemLabel)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`;
|
|
204
198
|
}
|
|
205
199
|
renderCalendarType() {
|
|
206
|
-
const e = this.layerFieldsInfo.find((i) => i.name === this.model.xAxisField), t = Object.values($).filter((i) => i !== $.WeekByDayOfWeekAndHourOfDay || e?.type !==
|
|
200
|
+
const e = this.layerFieldsInfo.find((i) => i.name === this.model.xAxisField), t = Object.values($).filter((i) => i !== $.WeekByDayOfWeekAndHourOfDay || e?.type !== N.DateOnly), a = d(t, (i) => i, (i) => {
|
|
207
201
|
const o = this._messages[i];
|
|
208
202
|
return l`<calcite-list-item .label=${o} .value=${i} .selected=${m(i, this.selectedContent)}></calcite-list-item>`;
|
|
209
203
|
});
|
|
@@ -287,7 +281,7 @@ class W extends T {
|
|
|
287
281
|
return l`<div class=${r(s.jsAppFlyout)}><calcite-popover class=${r(s.name)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${p(this.popoverElement)}><calcite-panel class=${r(s.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${r(s.header)}>${this.headingTitle ?? ""}</div>${this.renderPopoverInfo()}${void 0}</calcite-panel></calcite-popover></div>`;
|
|
288
282
|
}
|
|
289
283
|
}
|
|
290
|
-
|
|
284
|
+
w("arcgis-charts-config-heat-chart-popover", q);
|
|
291
285
|
export {
|
|
292
|
-
|
|
286
|
+
q as ArcgisChartsConfigHeatChartPopover
|
|
293
287
|
};
|