@arcgis/charts-components 5.2.0-next.3 → 5.2.0-next.31
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/2ODYZG66.js +2 -0
- package/dist/cdn/{TAI4RIWT.js → 2SPGX6AF.js} +1 -1
- package/dist/cdn/35NSJ3NJ.js +2 -0
- package/dist/cdn/3MKY6UCO.js +2 -0
- package/dist/cdn/3NKDMMC2.js +2 -0
- package/dist/cdn/3QO6REDF.js +102 -0
- package/dist/cdn/3SBYV6BW.js +2 -0
- package/dist/cdn/{LRNADJJG.js → 3TBK72EK.js} +1 -1
- package/dist/cdn/{PC7IKOIB.js → 3UTF2CB3.js} +1 -1
- package/dist/cdn/3YN4EKSJ.js +2 -0
- package/dist/cdn/4BEGCEGA.js +4 -0
- package/dist/cdn/{TZB57XD4.js → 4P7URPRQ.js} +1 -1
- package/dist/cdn/4TRUG37X.js +2 -0
- package/dist/cdn/5UO6L27Q.js +2 -0
- package/dist/cdn/{PVJEBBA7.js → 5XCU5SR2.js} +1 -1
- package/dist/cdn/{YRBE7MBU.js → 6ANVHVX4.js} +1 -1
- package/dist/cdn/{VDG54AIC.js → 6CB5R4QQ.js} +1 -1
- package/dist/cdn/{U4XLNCOU.js → 6GV2QPKV.js} +1 -1
- package/dist/cdn/{JVHJMPFE.js → 6OCDFMFB.js} +1 -1
- package/dist/cdn/6VK54DG5.js +2 -0
- package/dist/cdn/{3YT44D4Z.js → 6XIDALQU.js} +1 -1
- package/dist/cdn/7VQXBQMZ.js +2 -0
- package/dist/cdn/{GL3IXVRN.js → 7Z7NOIH2.js} +1 -1
- package/dist/cdn/A636YSNA.js +2 -0
- package/dist/cdn/{5G7DSKI7.js → ADYDCO3M.js} +1 -1
- package/dist/cdn/{NQQW4GKA.js → AICTKGE3.js} +1 -1
- package/dist/cdn/AQIB3VEP.js +2 -0
- package/dist/cdn/AZR6HVRW.js +2 -0
- package/dist/cdn/{BBURKBKE.js → AZY72Q7D.js} +1 -1
- package/dist/cdn/BI54CNMR.js +2 -0
- package/dist/cdn/BJBNELDD.js +3 -0
- package/dist/cdn/BKU72IQC.js +2 -0
- package/dist/cdn/{N5ERJZPG.js → BQXXD2HU.js} +1 -1
- package/dist/cdn/BZFGE4LO.js +2 -0
- package/dist/cdn/C4TQOUPO.js +2 -0
- package/dist/cdn/{UKDTXHZT.js → CLN32L2L.js} +1 -1
- package/dist/cdn/CRCAJAFA.js +2 -0
- package/dist/cdn/DAF2U7TN.js +2 -0
- package/dist/cdn/DKENYDHS.js +233 -0
- package/dist/cdn/{5JML3JUR.js → DRFJC64L.js} +1 -1
- package/dist/cdn/{PK5XIIZY.js → G5EGTXMY.js} +1 -1
- package/dist/cdn/{KLC6NTPC.js → GCRQHIGQ.js} +1 -1
- package/dist/cdn/{HCMD362H.js → HBS6O3P3.js} +1 -1
- package/dist/cdn/{5QO32XSX.js → HIW5WRHR.js} +1 -1
- package/dist/cdn/IHHPUKGG.js +2 -0
- package/dist/cdn/IPALCXFF.js +2 -0
- package/dist/cdn/IWMWJN7M.js +2 -0
- package/dist/cdn/{A5GIBV5W.js → J2HYDDIW.js} +1 -1
- package/dist/cdn/JBR6IJMK.js +2 -0
- package/dist/cdn/{MRTKZZTF.js → JHANH4UG.js} +1 -1
- package/dist/cdn/JIV6BQKG.js +2 -0
- package/dist/cdn/{RFQBUWOW.js → K27GKXGP.js} +1 -1
- package/dist/cdn/{VVKV5KKN.js → KFPJI52X.js} +1 -1
- package/dist/cdn/KQLAAGKI.js +2 -0
- package/dist/cdn/{FDXE5JLT.js → LFXRCL7K.js} +1 -1
- package/dist/cdn/{UT4TYXFO.js → LU5S2VRK.js} +1 -1
- package/dist/cdn/{7ABIELGZ.js → M4ZJRIYM.js} +1 -1
- package/dist/cdn/M7QZTQSD.js +2 -0
- package/dist/cdn/{LZYN55O4.js → MBPFBE3E.js} +1 -1
- package/dist/cdn/MEA74C44.js +2 -0
- package/dist/cdn/{U2LJZ4ML.js → MVUIKY5Y.js} +1 -1
- package/dist/cdn/{3DK6M5E7.js → N673JFHK.js} +1 -1
- package/dist/cdn/NKVZYKL5.js +2 -0
- package/dist/cdn/O533LNDP.js +2 -0
- package/dist/cdn/O5NKLK7V.js +2 -0
- package/dist/cdn/PEYVSFSE.js +58 -0
- package/dist/cdn/{KOBNV5AQ.js → PKQOLKTW.js} +1 -1
- package/dist/cdn/{TNB3MBXR.js → Q2GW5LB7.js} +1 -1
- package/dist/cdn/QGEFY4ND.js +2 -0
- package/dist/cdn/{WASEMNYV.js → QNT6HTFC.js} +1 -1
- package/dist/cdn/{R45FWF7D.js → QV3NMKKZ.js} +1 -1
- package/dist/cdn/REZ2QR42.js +2 -0
- package/dist/cdn/{CHQDKVVQ.js → RIM4HLHN.js} +1 -1
- package/dist/cdn/{PZGIXDMC.js → RKG6CXUU.js} +1 -1
- package/dist/cdn/S7Z4HRW7.js +2 -0
- package/dist/cdn/SAYLTYWY.js +2 -0
- package/dist/cdn/SOGVYNPI.js +2 -0
- package/dist/cdn/SSKHF7PO.js +2 -0
- package/dist/cdn/{RAQZUMC6.js → T5TFLMQL.js} +1 -1
- package/dist/cdn/{23YH7MTF.js → TCS4HOSG.js} +1 -1
- package/dist/cdn/{LDPHZHSF.js → TOFVWGTG.js} +1 -1
- package/dist/cdn/TSA7UMSZ.js +2 -0
- package/dist/cdn/{KI4HS3AM.js → U3MRRFML.js} +1 -1
- package/dist/cdn/VWTJHXHI.js +2 -0
- package/dist/cdn/{PSO5AURI.js → WHVW3P3O.js} +1 -1
- package/dist/cdn/{WEQBZOH7.js → WJHIJTWS.js} +1 -1
- package/dist/cdn/{CJ4POAPM.js → WU62O2AU.js} +1 -1
- package/dist/cdn/X7YEBHBF.js +2 -0
- package/dist/cdn/X7Z4LEZH.js +2 -0
- package/dist/cdn/XRLVJJBT.js +2 -0
- package/dist/cdn/XRP6IFM4.js +2 -0
- package/dist/cdn/{TYMKFCF4.js → Y6CFEFZM.js} +1 -1
- package/dist/cdn/{LONASKGH.js → YFHB2EFH.js} +1 -1
- package/dist/cdn/YQIFZJTZ.js +2 -0
- package/dist/cdn/{2K4ODNJ4.js → YWCIV7ZZ.js} +1 -1
- package/dist/cdn/{VEA5ZR5D.js → YWKPGNHB.js} +1 -1
- package/dist/cdn/{ZRFHAQL6.js → Z43DVT6G.js} +1 -1
- package/dist/cdn/ZW4PF3UK.js +2 -0
- package/dist/cdn/assets/common/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/cdn/model/shared/setup-utils.js +2 -0
- package/dist/chart-rendering/common/data/utils/summarize-data/interfaces.d.ts +5 -1
- package/dist/chart-rendering/common/interfaces.d.ts +8 -8
- package/dist/chunks/chart-model.js +170 -138
- package/dist/chunks/class-breaks.js +18 -18
- package/dist/chunks/data.js +57 -57
- package/dist/chunks/heat-chart-model.js +46 -26
- package/dist/chunks/index2.js +2319 -2284
- package/dist/chunks/index3.js +32 -29
- package/dist/chunks/index4.js +107 -49
- package/dist/chunks/model-setter.js +1 -1
- package/dist/chunks/model-with-y-guides.js +6 -6
- package/dist/chunks/pie-chart-data.js +42 -36
- package/dist/chunks/pie-chart-model.js +175 -162
- package/dist/chunks/rotated-state.js +1 -1
- package/dist/chunks/scatterplot-model.js +1 -1
- package/dist/chunks/serial-chart-data.js +572 -526
- package/dist/chunks/serial-chart-model.js +107 -93
- package/dist/chunks/utils.js +67 -56
- package/dist/chunks/web-component-utils.js +632 -492
- package/dist/components/arcgis-chart/customElement.d.ts +145 -138
- package/dist/components/arcgis-chart/customElement.js +7178 -7164
- package/dist/components/arcgis-charts-action-bar/customElement.d.ts +4 -0
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +3 -3
- 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-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +23 -25
- 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 +15 -15
- 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-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +50 -51
- package/dist/components/arcgis-charts-config-histogram/customElement.js +28 -23
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +33 -34
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +35 -37
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +6 -6
- 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 +49 -56
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +54 -55
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +5 -8
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +27 -22
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +75 -75
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +18 -19
- 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/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +66 -70
- package/dist/index.js +212 -210
- package/dist/json-schema/index.d.ts +59 -2
- package/dist/loader.js +1 -1
- package/dist/model/chart-model/chart-model.d.ts +2 -1
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +22 -0
- package/dist/model/interfaces/common.d.ts +0 -2
- package/dist/model/mixins/model-with-multi-axes.d.ts +22 -22
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +2 -0
- package/dist/model/properties/data-tooltip-font-size.d.ts +20 -0
- package/dist/model/properties/rotated-state.d.ts +1 -1
- package/dist/model/serial-chart-model/serial-chart-model.d.ts +15 -0
- package/dist/spec/rest-js-object-literals.d.ts +2 -2
- package/dist/spec/rest-js-types.d.ts +22 -8
- package/dist/spec/web-chart.d.ts +8 -2
- package/dist/utils/chart-config/converter/index.js +1 -1
- package/dist/utils/chart-config/utils/index.d.ts +35 -0
- package/dist/utils/chart-config/validator/index.d.ts +1 -0
- package/dist/utils/chart-config/validator/interfaces.d.ts +3 -3
- package/dist/utils/data/index.d.ts +9 -12
- package/dist/utils/defaults/index.d.ts +1 -2
- package/dist/utils/errors/index.d.ts +1 -1
- package/dist/utils/layer/index.d.ts +5 -3
- package/dist/utils/layer/inline-conversion/interfaces.d.ts +0 -2
- package/dist/utils/layer/query-parser/index.d.ts +3 -3
- package/dist/utils/localization/interfaces.d.ts +4 -0
- package/dist/utils/misc/index.d.ts +2 -3
- package/dist/utils/types/index.d.ts +1 -5
- package/package.json +6 -6
- package/dist/cdn/24LTTBTF.js +0 -2
- package/dist/cdn/26FWESH3.js +0 -102
- package/dist/cdn/3XHZ677O.js +0 -2
- package/dist/cdn/5FMEOIBS.js +0 -3
- package/dist/cdn/74JAZF7U.js +0 -2
- package/dist/cdn/7HIZH35G.js +0 -2
- package/dist/cdn/CCR46UHB.js +0 -2
- package/dist/cdn/CRFJ2GGS.js +0 -2
- package/dist/cdn/CXQOEN77.js +0 -2
- package/dist/cdn/DYC3Q36R.js +0 -2
- package/dist/cdn/E2N2S7BH.js +0 -2
- package/dist/cdn/E43KEVHT.js +0 -2
- package/dist/cdn/EXTKNE2L.js +0 -2
- package/dist/cdn/F7Y6EWWB.js +0 -2
- package/dist/cdn/G5HVFOIO.js +0 -2
- package/dist/cdn/G7TRU7JI.js +0 -2
- package/dist/cdn/GES3HRXE.js +0 -2
- package/dist/cdn/HCV34H6X.js +0 -2
- package/dist/cdn/IHQ7R6L4.js +0 -4
- package/dist/cdn/IUFXFWXH.js +0 -2
- package/dist/cdn/JHYH555K.js +0 -2
- package/dist/cdn/JNNB2DIA.js +0 -2
- package/dist/cdn/JRRFLDWX.js +0 -58
- package/dist/cdn/KVGEY3IQ.js +0 -2
- package/dist/cdn/LWODMEOP.js +0 -2
- package/dist/cdn/LYZGRYQV.js +0 -2
- package/dist/cdn/MF3FGXHI.js +0 -2
- package/dist/cdn/MUPHTV55.js +0 -2
- package/dist/cdn/N524VXQ2.js +0 -2
- package/dist/cdn/NGPMU4T3.js +0 -2
- package/dist/cdn/NJCZ6UTM.js +0 -2
- package/dist/cdn/NMB6TWC2.js +0 -2
- package/dist/cdn/NNNTZU5J.js +0 -2
- package/dist/cdn/NS3THLCD.js +0 -2
- package/dist/cdn/NZR4L5AA.js +0 -2
- package/dist/cdn/OE3UFORR.js +0 -2
- package/dist/cdn/P2NPQAJ3.js +0 -2
- package/dist/cdn/PJUAU42S.js +0 -2
- package/dist/cdn/PY5Q3V6E.js +0 -2
- package/dist/cdn/RMYZGOBM.js +0 -2
- package/dist/cdn/RX3RNE7F.js +0 -2
- package/dist/cdn/TU3UF32Y.js +0 -2
- package/dist/cdn/TXSWWAOF.js +0 -2
- package/dist/cdn/UAJGYF4S.js +0 -2
- package/dist/cdn/UT6G7RV7.js +0 -2
- package/dist/cdn/VOTZAPI3.js +0 -2
- package/dist/cdn/WO6JBNMU.js +0 -2
- package/dist/cdn/YYK7SPXC.js +0 -2
- package/dist/cdn/ZRZEKOEF.js +0 -2
- package/dist/chunks/time-zone.js +0 -38
- /package/dist/cdn/{XE3FKQFA.js → 3HAB3JR6.js} +0 -0
- /package/dist/cdn/{DCZWZOPF.js → 3YOOX2CV.js} +0 -0
- /package/dist/cdn/{IPM2XKST.js → 4DSO7LUF.js} +0 -0
- /package/dist/cdn/{FF4DUQDZ.js → 5HRLHWQ5.js} +0 -0
- /package/dist/cdn/{ETKPMU7Z.js → 732EZ6WJ.js} +0 -0
- /package/dist/cdn/{AWF4R7WL.js → 7IS6QE6S.js} +0 -0
- /package/dist/cdn/{HVO4LIXR.js → 7XZZ5OZL.js} +0 -0
- /package/dist/cdn/{5MEQANMY.js → AN2NRYQV.js} +0 -0
- /package/dist/cdn/{L4G6FO7A.js → ASUGYCJ6.js} +0 -0
- /package/dist/cdn/{AM2TOTX6.js → BICQEJYZ.js} +0 -0
- /package/dist/cdn/{5XTQQOTT.js → C2I4WPWM.js} +0 -0
- /package/dist/cdn/{CLXVAIQX.js → C47AIJTI.js} +0 -0
- /package/dist/cdn/{N6AOFBBX.js → C5YJ7J3A.js} +0 -0
- /package/dist/cdn/{QOOBNATX.js → DPV2ZJLF.js} +0 -0
- /package/dist/cdn/{CJPEW4LJ.js → E4535ZTP.js} +0 -0
- /package/dist/cdn/{XW4PBQNW.js → FJNRPAMO.js} +0 -0
- /package/dist/cdn/{JBHGSSHS.js → GI54JT4O.js} +0 -0
- /package/dist/cdn/{5YJNENER.js → GYTYFBNU.js} +0 -0
- /package/dist/cdn/{AJWYIBGC.js → J5QUGI2J.js} +0 -0
- /package/dist/cdn/{TF7TE7K5.js → JPEN5TFK.js} +0 -0
- /package/dist/cdn/{SBYD2EKR.js → KBQM3DLQ.js} +0 -0
- /package/dist/cdn/{7FZC3RZK.js → LEMJA72W.js} +0 -0
- /package/dist/cdn/{6XTKJ7DO.js → MMO2QPOA.js} +0 -0
- /package/dist/cdn/{BJDRJUEJ.js → PS7IL5JZ.js} +0 -0
- /package/dist/cdn/{E7OAEGSE.js → R2RRMPOC.js} +0 -0
- /package/dist/cdn/{YOT6DVSU.js → RV6E7KKQ.js} +0 -0
- /package/dist/cdn/{GV3TT7L5.js → RYLXJPKL.js} +0 -0
- /package/dist/cdn/{LFQGH44F.js → S2R72ISR.js} +0 -0
- /package/dist/cdn/{2HUAW34Q.js → T4NEEFOY.js} +0 -0
- /package/dist/cdn/{K3GNHGEW.js → TEERYUCS.js} +0 -0
- /package/dist/cdn/{A4GEWIPY.js → V454JYTQ.js} +0 -0
- /package/dist/cdn/{ZFZ5AEUQ.js → V7JF5I5M.js} +0 -0
- /package/dist/cdn/{KFONSKQF.js → VIZWWEG5.js} +0 -0
- /package/dist/cdn/{KZ7LPNX3.js → W5SPX6WM.js} +0 -0
- /package/dist/cdn/{JJIGLOJA.js → X2IOJECM.js} +0 -0
- /package/dist/cdn/{QMSINFQX.js → X33RIIGI.js} +0 -0
- /package/dist/cdn/{ZXOO3X5P.js → YBTVIOHQ.js} +0 -0
- /package/dist/cdn/{KUZR6CGB.js → YFQHZWLO.js} +0 -0
- /package/dist/cdn/{DKAHZ7IX.js → YX4EVVJM.js} +0 -0
- /package/dist/cdn/{DEGBVJ76.js → YXH22GJ6.js} +0 -0
- /package/dist/cdn/{A5AECJXP.js → ZMQTYGGT.js} +0 -0
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as g } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as C, html as
|
|
3
|
+
import { css as C, html as l } from "lit";
|
|
4
4
|
import { isEqual as f } from "lodash-es";
|
|
5
5
|
import { u as v } from "../../chunks/useT9n.js";
|
|
6
6
|
import { createRef as y, ref as S } from "lit/directives/ref.js";
|
|
7
|
-
import { LitElement as
|
|
8
|
-
import { e as
|
|
9
|
-
import { aB as
|
|
7
|
+
import { LitElement as b, createEvent as a, safeClassMap as p } from "@arcgis/lumina";
|
|
8
|
+
import { e as u } from "../../chunks/popover-ui-utils.js";
|
|
9
|
+
import { aB as m } from "../../chunks/index.js";
|
|
10
10
|
import { i as $ } from "../../chunks/rest-js-object-literals.js";
|
|
11
|
-
const
|
|
12
|
-
jsAppFlyout: "js-app-flyout",
|
|
11
|
+
const d = {
|
|
13
12
|
panelChildrenContainer: "panel-children-container"
|
|
14
13
|
}, L = C`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{overflow-y:auto;width:min-content}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}`;
|
|
15
|
-
class P extends
|
|
14
|
+
class P extends b {
|
|
16
15
|
constructor() {
|
|
17
|
-
super(...arguments), this._messages = v(), this.popoverElement = y(), this.isLineSymbol = !1, this.open = !1, this.labelCanBeConfigured = !1, this.arcgisChartsConfigPopoverClose =
|
|
16
|
+
super(...arguments), this._messages = v(), this.popoverElement = y(), this.isLineSymbol = !1, this.open = !1, this.labelCanBeConfigured = !1, this.arcgisChartsConfigPopoverClose = a(), this.arcgisChartsConfigSeriesPopoverColorChange = a(), this.arcgisChartsConfigSeriesPopoverLineStyleChange = a(), this.arcgisChartsConfigSeriesPopoverLineWidthChange = a(), this.arcgisChartsConfigSeriesPopoverNameChange = a();
|
|
18
17
|
}
|
|
19
18
|
static {
|
|
20
19
|
this.properties = { messageOverrides: 0, referenceElement: 0, selectedName: 1, selectedColor: 0, selectedLineStyle: 1, selectedLineWidth: 9, selectedSeriesIndex: 9, isLineSymbol: 5, placement: 1, open: 5, labelCanBeConfigured: 5 };
|
|
@@ -26,7 +25,7 @@ class P extends u {
|
|
|
26
25
|
await this.popoverElement.value?.reposition();
|
|
27
26
|
}
|
|
28
27
|
updated() {
|
|
29
|
-
|
|
28
|
+
u(this.popoverElement.value, this.open);
|
|
30
29
|
}
|
|
31
30
|
seriesNameChange(e) {
|
|
32
31
|
const i = e.target.value;
|
|
@@ -36,27 +35,25 @@ class P extends u {
|
|
|
36
35
|
this.open = !1, this.arcgisChartsConfigPopoverClose.emit();
|
|
37
36
|
}
|
|
38
37
|
colorChange(e) {
|
|
39
|
-
const i = e instanceof CustomEvent ? e.detail : e, [o, t, s] = i,
|
|
40
|
-
this.selectedColor = [o, t, s,
|
|
38
|
+
const i = e instanceof CustomEvent ? e.detail : e, [o, t, s] = i, r = m * 255;
|
|
39
|
+
this.selectedColor = [o, t, s, r], this.arcgisChartsConfigSeriesPopoverColorChange.emit({ color: [o, t, s, r] });
|
|
41
40
|
}
|
|
42
41
|
lineSymbolChange(e) {
|
|
43
42
|
const { lineStyle: i } = e.target, { color: o, style: t, width: s } = i;
|
|
44
43
|
if (o !== void 0 && !f(o, this.selectedColor)) {
|
|
45
|
-
const [
|
|
46
|
-
this.selectedColor = [
|
|
44
|
+
const [r, n, c] = o, h = m * 255;
|
|
45
|
+
this.selectedColor = [r, n, c, h], this.arcgisChartsConfigSeriesPopoverColorChange.emit({ color: [r, n, c, h] });
|
|
47
46
|
}
|
|
48
47
|
t !== void 0 && t !== this.selectedLineStyle && (this.selectedLineStyle = t, this.arcgisChartsConfigSeriesPopoverLineStyleChange.emit({ style: t })), s !== void 0 && s !== this.selectedLineWidth && (this.selectedLineWidth = s, this.arcgisChartsConfigSeriesPopoverLineWidthChange.emit({ width: s }));
|
|
49
48
|
}
|
|
50
49
|
render() {
|
|
51
50
|
const e = this.selectedColor;
|
|
52
|
-
return
|
|
53
|
-
[c.jsAppFlyout]: !0
|
|
54
|
-
})}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${S(this.popoverElement)}><calcite-panel .heading=${this._messages.seriesElement} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}>${this.labelCanBeConfigured ? a`<div class=${n(c.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${this.selectedName} @calciteInputInput=${this.seriesNameChange}></calcite-input></calcite-label></div>` : null}<div class=${n(this.isLineSymbol ? "" : c.panelChildrenContainer)}>${this.isLineSymbol ? a`<arcgis-charts-config-line-style .open=${this.open} enable-close .lineStyle=${{
|
|
51
|
+
return l`<div><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${S(this.popoverElement)}><calcite-panel .heading=${this._messages.seriesElement} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}>${this.labelCanBeConfigured ? l`<div class=${p(d.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${this.selectedName} @calciteInputInput=${this.seriesNameChange}></calcite-input></calcite-label></div>` : null}<div class=${p(this.isLineSymbol ? "" : d.panelChildrenContainer)}>${this.isLineSymbol ? l`<arcgis-charts-config-line-style .open=${this.open} enable-close .lineStyle=${{
|
|
55
52
|
type: $.SLS,
|
|
56
53
|
style: this.selectedLineStyle,
|
|
57
54
|
width: this.selectedLineWidth,
|
|
58
55
|
color: e
|
|
59
|
-
}} @arcgisChartsConfigLineStyleClose=${this.closePopover} @arcgisChartsConfigLineStyleChange=${this.lineSymbolChange}></arcgis-charts-config-line-style>` :
|
|
56
|
+
}} @arcgisChartsConfigLineStyleClose=${this.closePopover} @arcgisChartsConfigLineStyleChange=${this.lineSymbolChange}></arcgis-charts-config-line-style>` : l`<arcgis-charts-config-colors .heading=${this._messages.symbolColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors>`}</div></calcite-panel></calcite-popover></div>`;
|
|
60
57
|
}
|
|
61
58
|
}
|
|
62
59
|
g("arcgis-charts-config-box-plot-series-popover", P);
|
|
@@ -5,15 +5,14 @@ import { m as h, U as s } from "../../chunks/chart-ui-utils2.js";
|
|
|
5
5
|
import { u as m } from "../../chunks/useT9n.js";
|
|
6
6
|
import { css as p, html as d } from "lit";
|
|
7
7
|
import { createRef as n, ref as l } from "lit/directives/ref.js";
|
|
8
|
-
import { LitElement as
|
|
9
|
-
import { e as
|
|
10
|
-
const
|
|
11
|
-
jsAppFlyout: "js-app-flyout",
|
|
8
|
+
import { LitElement as g, createEvent as r, safeClassMap as t } from "@arcgis/lumina";
|
|
9
|
+
import { e as v } from "../../chunks/popover-ui-utils.js";
|
|
10
|
+
const a = {
|
|
12
11
|
chartRenameComponent: "chart-rename-component",
|
|
13
12
|
renameLabelContainer: "rename-label-container",
|
|
14
13
|
renamePanel: "rename-panel"
|
|
15
|
-
},
|
|
16
|
-
class C extends
|
|
14
|
+
}, 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)}.chart-rename-component{width:var(--arcgis-charts-config-panel-width-medium);height:var(--arcgis-charts-config-panel-height)}:host{overflow-y:auto;width:min-content}.rename-label-container{display:flex;padding:0 1rem;margin-top:1rem}.rename-label-container calcite-label{flex:1 1 0px;display:flex;width:0px}.rename-panel{width:calc(var(--calcite-panel-width-multiplier) * 20vw);max-width:calc(var(--calcite-panel-width-multiplier) * 420px);min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}`;
|
|
15
|
+
class C extends g {
|
|
17
16
|
constructor() {
|
|
18
17
|
super(...arguments), this._messages = m(), this.characterLimitInputElement = n(), this.popoverElement = n(), this.isChartTitleInvalid = !1, this.changedName = "", this.name = "", this.open = !1, this.arcgisChartsConfigChartRenamePopoverChange = r(), this.arcgisChartsConfigPopoverClose = r();
|
|
19
18
|
}
|
|
@@ -21,19 +20,19 @@ class C extends u {
|
|
|
21
20
|
this.properties = { isChartTitleInvalid: 16, changedName: 16, messageOverrides: 0, name: 1, open: 5, referenceElement: 0 };
|
|
22
21
|
}
|
|
23
22
|
static {
|
|
24
|
-
this.styles =
|
|
23
|
+
this.styles = u;
|
|
25
24
|
}
|
|
26
25
|
async reposition() {
|
|
27
26
|
await this.popoverElement.value?.reposition();
|
|
28
27
|
}
|
|
29
|
-
willUpdate(
|
|
30
|
-
|
|
28
|
+
willUpdate(e) {
|
|
29
|
+
e.has("name") && (this.changedName = this.name);
|
|
31
30
|
}
|
|
32
31
|
updated() {
|
|
33
|
-
this.popoverElement.value?.reposition(),
|
|
32
|
+
this.popoverElement.value?.reposition(), v(this.popoverElement.value, this.open);
|
|
34
33
|
}
|
|
35
|
-
onNameChange(
|
|
36
|
-
const i =
|
|
34
|
+
onNameChange(e) {
|
|
35
|
+
const i = e.target.value;
|
|
37
36
|
this.changedName = i, this.isChartTitleInvalid = c(i.trim()), this.characterLimitInputElement.value && h({
|
|
38
37
|
inputElement: this.characterLimitInputElement.value,
|
|
39
38
|
status: this.isChartTitleInvalid ? s.INVALID : s.IDLE
|
|
@@ -49,10 +48,9 @@ class C extends u {
|
|
|
49
48
|
this.changedName = this.name, this.open = !1, this.arcgisChartsConfigPopoverClose.emit();
|
|
50
49
|
}
|
|
51
50
|
render() {
|
|
52
|
-
return d`<div class=${
|
|
53
|
-
[
|
|
54
|
-
|
|
55
|
-
})}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} @calcitePopoverClose=${this.popoverClose} .open=${this.open} placement=bottom label auto-close ${l(this.popoverElement)}><calcite-panel class=${a(e.renamePanel)} closable .closed=${!this.open} @calcitePanelClose=${this.popoverClose} .heading=${this._messages.renameChart}><div class=${a(e.renameLabelContainer)}><calcite-label>${this._messages.chartName}<calcite-input required type=text .value=${this.changedName} @calciteInputInput=${this.onNameChange} ${l(this.characterLimitInputElement)}></calcite-input><arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.emptyChartTitle} .isInvalid=${this.isChartTitleInvalid}></arcgis-charts-config-invalid-input-message></calcite-label></div><calcite-button slot=footer appearance=solid scale=m width=half @click=${this.onSubmitClick}>${this._messages.submit}</calcite-button><calcite-button slot=footer appearance=outline-fill scale=m width=half @click=${this.onCancelClick}>${this._messages.cancel}</calcite-button></calcite-panel></calcite-popover></div>`;
|
|
51
|
+
return d`<div class=${t({
|
|
52
|
+
[a.chartRenameComponent]: !0
|
|
53
|
+
})}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} @calcitePopoverClose=${this.popoverClose} .open=${this.open} placement=bottom label auto-close ${l(this.popoverElement)}><calcite-panel class=${t(a.renamePanel)} closable .closed=${!this.open} @calcitePanelClose=${this.popoverClose} .heading=${this._messages.renameChart}><div class=${t(a.renameLabelContainer)}><calcite-label>${this._messages.chartName}<calcite-input required type=text .value=${this.changedName} @calciteInputInput=${this.onNameChange} ${l(this.characterLimitInputElement)}></calcite-input><arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.emptyChartTitle} .isInvalid=${this.isChartTitleInvalid}></arcgis-charts-config-invalid-input-message></calcite-label></div><calcite-button slot=footer appearance=solid scale=m width=half @click=${this.onSubmitClick}>${this._messages.submit}</calcite-button><calcite-button slot=footer appearance=outline-fill scale=m width=half @click=${this.onCancelClick}>${this._messages.cancel}</calcite-button></calcite-panel></calcite-popover></div>`;
|
|
56
54
|
}
|
|
57
55
|
}
|
|
58
56
|
o("arcgis-charts-config-chart-rename-popover", C);
|
|
@@ -4,18 +4,18 @@ import { repeat as U } from "lit/directives/repeat.js";
|
|
|
4
4
|
import { keyed as b } from "lit/directives/keyed.js";
|
|
5
5
|
import { createModel as R } from "../../model/shared/setup-utils.js";
|
|
6
6
|
import { g as S, i as T, u as _, k as v, m as I } from "../../chunks/type-guards2.js";
|
|
7
|
-
import { i as
|
|
8
|
-
import { substitute as
|
|
7
|
+
import { i as z } from "../../chunks/rotated-state.js";
|
|
8
|
+
import { substitute as H } from "@arcgis/core/intl.js";
|
|
9
9
|
import { C as n } from "../../chunks/interfaces.js";
|
|
10
10
|
import { isEqual as D } from "lodash-es";
|
|
11
11
|
import { i as F } from "../../chunks/index4.js";
|
|
12
|
-
import { D as
|
|
13
|
-
import { LitElement as W, createEvent as f, renderElement as L, safeStyleMap as
|
|
12
|
+
import { D as k, w as E, F as O } from "../../chunks/index3.js";
|
|
13
|
+
import { LitElement as W, createEvent as f, renderElement as L, safeStyleMap as Z, safeClassMap as d } from "@arcgis/lumina";
|
|
14
14
|
import { css as G, html as h } from "lit";
|
|
15
|
-
import { createRef as
|
|
15
|
+
import { createRef as X, ref as K } from "lit/directives/ref.js";
|
|
16
16
|
import { u as P } from "../../chunks/useT9n.js";
|
|
17
17
|
import { c as j, a as x, g as q } from "../../chunks/store.js";
|
|
18
|
-
import {
|
|
18
|
+
import { d1 as Y, _ as Q, d2 as J, K as ee, bZ as te } from "../../chunks/index2.js";
|
|
19
19
|
import { A as ae } from "../../chunks/axis-model-wrapper.js";
|
|
20
20
|
import { h as ie, f as y } from "../../chunks/web-component-utils.js";
|
|
21
21
|
import { a as se } from "../../chunks/chart-ui-utils2.js";
|
|
@@ -38,7 +38,7 @@ function w(m, e) {
|
|
|
38
38
|
}), t;
|
|
39
39
|
}
|
|
40
40
|
function ne(m, e, i) {
|
|
41
|
-
return m?.filter((t) =>
|
|
41
|
+
return m?.filter((t) => E(i, t.config) && t.layer?.id === e) ?? [];
|
|
42
42
|
}
|
|
43
43
|
function ce(m) {
|
|
44
44
|
const { modelList: e, layerList: i, activeLayerId: t, disableEditing: a } = m, s = /* @__PURE__ */ new Map();
|
|
@@ -73,17 +73,17 @@ function pe(m, e) {
|
|
|
73
73
|
const i = m;
|
|
74
74
|
if (i) {
|
|
75
75
|
let t = [...i.charts ?? []];
|
|
76
|
-
t =
|
|
76
|
+
t = k({
|
|
77
77
|
arrayA: t,
|
|
78
78
|
arrayB: e.map((a) => a.config),
|
|
79
79
|
getKey: (a) => a.id ?? a.title?.content.text ?? ""
|
|
80
80
|
}), i.charts = t;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
const me = G
|
|
83
|
+
const me = G`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;flex:1 1 auto;overflow:hidden;height:inherit;max-height:100%}.chart-ui-component{overflow-y:auto;overflow-x:hidden}.label{display:flex;margin-left:1rem;margin-bottom:.5rem;justify-content:space-between}.text{display:flex;margin-left:1rem;width:calc(100% - 1.5rem);height:2rem;margin-bottom:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:scroll}.row{padding:.5rem}.bin-count-container{display:flex;width:calc(100% - 1rem);padding:.5rem}.bin-count-slider{margin-left:1rem;width:calc(90% - 1rem)}.bin-count-input{margin-left:1rem;height:2rem;width:2rem}.bin-row{padding:.5rem 0 .5rem .5rem}.tab-bar{display:flex}.tab{flex:1;height:2.5rem}`;
|
|
84
84
|
class ue extends W {
|
|
85
85
|
constructor() {
|
|
86
|
-
super(), this.selectChartTypePopover = null, this.chartsListFlowItem =
|
|
86
|
+
super(), this.selectChartTypePopover = null, this.chartsListFlowItem = X(), this.supportedChartTypes = [
|
|
87
87
|
o.BarSeries,
|
|
88
88
|
o.BoxPlotSeries,
|
|
89
89
|
o.LineSeries,
|
|
@@ -155,7 +155,7 @@ class ue extends W {
|
|
|
155
155
|
if (r)
|
|
156
156
|
switch (t) {
|
|
157
157
|
case "rotation":
|
|
158
|
-
typeof a == "boolean" &&
|
|
158
|
+
typeof a == "boolean" && z(r) && (r.rotated = a);
|
|
159
159
|
break;
|
|
160
160
|
case "legendPosition":
|
|
161
161
|
typeof a == "string" && v(r) && (r.legendPosition = a);
|
|
@@ -207,7 +207,7 @@ class ue extends W {
|
|
|
207
207
|
}
|
|
208
208
|
modelListReorderChangeListener(e) {
|
|
209
209
|
const { modelList: i } = e.detail;
|
|
210
|
-
if (this.modelList =
|
|
210
|
+
if (this.modelList = k({
|
|
211
211
|
arrayA: this.modelList,
|
|
212
212
|
arrayB: i,
|
|
213
213
|
getKey: (t) => t.chartId ?? t.titleText ?? ""
|
|
@@ -311,7 +311,7 @@ class ue extends W {
|
|
|
311
311
|
}
|
|
312
312
|
getPlacement() {
|
|
313
313
|
let e;
|
|
314
|
-
return this.popoverPlacement !== void 0 ? e = this.popoverPlacement : e = this.modelList?.filter((a) =>
|
|
314
|
+
return this.popoverPlacement !== void 0 ? e = this.popoverPlacement : e = this.modelList?.filter((a) => E(J, a.config)).length <= 2 ? "bottom" : "top", e;
|
|
315
315
|
}
|
|
316
316
|
onBackFlow() {
|
|
317
317
|
this.panelNumber -= 1;
|
|
@@ -391,7 +391,7 @@ class ue extends W {
|
|
|
391
391
|
t = "";
|
|
392
392
|
break;
|
|
393
393
|
}
|
|
394
|
-
this.tooltip = L(h`<calcite-tooltip style=${
|
|
394
|
+
this.tooltip = L(h`<calcite-tooltip style=${Z({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${i} open placement=top>${t}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
|
|
395
395
|
}
|
|
396
396
|
destroyTooltip() {
|
|
397
397
|
se(this.tooltip);
|
|
@@ -410,7 +410,7 @@ class ue extends W {
|
|
|
410
410
|
}
|
|
411
411
|
renderTabs() {
|
|
412
412
|
const e = this.getModel(this.selectedChartId);
|
|
413
|
-
return b("chart-edit", h`<calcite-flow-item .selected=${this.panelNumber >= 1 && !this.disableEditing} @calciteFlowItemBack=${this.onBackFlow} .heading=${this._messages[this.selectedPanel ?? n.Data]} .description=${this.currentChartTypeText !== "" && this._messages.pageFlowTitle !== void 0 ?
|
|
413
|
+
return b("chart-edit", h`<calcite-flow-item .selected=${this.panelNumber >= 1 && !this.disableEditing} @calciteFlowItemBack=${this.onBackFlow} .heading=${this._messages[this.selectedPanel ?? n.Data]} .description=${this.currentChartTypeText !== "" && this._messages.pageFlowTitle !== void 0 ? H(this._messages.pageFlowTitle, {
|
|
414
414
|
chartName: e?.titleText ?? this.currentChartTypeText,
|
|
415
415
|
layerName: e?.layer?.title ?? ""
|
|
416
416
|
}) : ""}>${e?.chartType !== void 0 ? h`<calcite-action-bar class=${d(p.tabBar)} layout=horizontal expand-disabled><calcite-action class=${d(p.tab)} icon=configure scale=s alignment=center .active=${this.selectedPanel === n.Data || this.selectedPanel === void 0} @click=${() => {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as M } from "../../chunks/runtime.js";
|
|
3
3
|
import { ref as B } from "lit/directives/ref.js";
|
|
4
|
-
import { s as S, m as
|
|
4
|
+
import { s as S, m as d, k as h, j as T, e as V, u as w } from "../../chunks/type-guards2.js";
|
|
5
5
|
import { i as L } from "../../chunks/data-labels-symbol.js";
|
|
6
6
|
import { i as P, a as C, b as E } from "../../chunks/axis-lines-symbol.js";
|
|
7
7
|
import { isEmpty as f, cloneDeep as a, isArray as F, isObject as A, mergeWith as G } from "lodash-es";
|
|
8
8
|
import { h as W } from "../../chunks/chart-ui-utils2.js";
|
|
9
9
|
import { g as D, i as b } from "../../chunks/rest-js-object-literals.js";
|
|
10
10
|
import { u as N } from "../../chunks/useT9n.js";
|
|
11
|
-
import { css as
|
|
12
|
-
import { LitElement as
|
|
13
|
-
import { C as
|
|
11
|
+
import { css as z, html as u } from "lit";
|
|
12
|
+
import { LitElement as H, renderElement as j, safeClassMap as p } from "@arcgis/lumina";
|
|
13
|
+
import { C as I, F as i, L as n } from "../../chunks/common.js";
|
|
14
14
|
import { q as x, x as l } from "../../chunks/index5.js";
|
|
15
15
|
import { r as $ } from "../../chunks/popover-ui-utils.js";
|
|
16
16
|
import { u as r } from "../../chunks/chart-object-literals.js";
|
|
@@ -33,8 +33,8 @@ const v = {
|
|
|
33
33
|
element: "chart-element",
|
|
34
34
|
elementList: "element-list",
|
|
35
35
|
sectionLabel: "section-label"
|
|
36
|
-
},
|
|
37
|
-
class
|
|
36
|
+
}, O = z`.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{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)}.element-list{margin:var(--arcgis-charts-config-margin-minor)}.element{user-select:none}`;
|
|
37
|
+
class R extends H {
|
|
38
38
|
constructor() {
|
|
39
39
|
super(...arguments), this._messages = N(), this.formatPopover = null, this.selectableElements = [], this.textProperties = [], this.symbolProperties = [], this.symbolPropertyChange = (t) => {
|
|
40
40
|
const e = t;
|
|
@@ -77,7 +77,7 @@ class X extends j {
|
|
|
77
77
|
this.setFormatValue(s, e);
|
|
78
78
|
}), this.selectedElement = a(t.target.selectedElement);
|
|
79
79
|
}, this.updateBackground = (t) => {
|
|
80
|
-
this.setFormatValue(
|
|
80
|
+
this.setFormatValue(I.Background, t.detail), this.selectedElement = t.detail;
|
|
81
81
|
}, this.updateTextProps = (t) => {
|
|
82
82
|
const { font: e, color: s } = t.detail;
|
|
83
83
|
this.selectedTexts.forEach((o) => {
|
|
@@ -106,7 +106,7 @@ class X extends j {
|
|
|
106
106
|
this.properties = { selectedSymbols: 16, selectedTexts: 16, selectedBackground: 16, selectedElement: 16, messageOverrides: 0, model: 0 };
|
|
107
107
|
}
|
|
108
108
|
static {
|
|
109
|
-
this.styles =
|
|
109
|
+
this.styles = O;
|
|
110
110
|
}
|
|
111
111
|
load() {
|
|
112
112
|
this.modelChange(this.model);
|
|
@@ -150,7 +150,7 @@ class X extends j {
|
|
|
150
150
|
this.formatPopover = $(this.formatPopover);
|
|
151
151
|
const t = this.selectedElement;
|
|
152
152
|
t?.type === b.TS || t?.type === b.SLS || // To check if the selected element is background.
|
|
153
|
-
Array.isArray(this.selectedElement) ? (this.formatPopover =
|
|
153
|
+
Array.isArray(this.selectedElement) ? (this.formatPopover = j(u`<arcgis-charts-config-format-popover .selectedElement=${this.selectedElement} .referenceElement=${this.el} @arcgisChartsConfigFormatPopoverSymbolChange=${this.updateSymbolProps} @arcgisChartsConfigFormatPopoverTextChange=${this.updateTextProps} @arcgisChartsConfigFormatPopoverColorChange=${this.updateBackground} placement=auto @arcgisChartsConfigPopoverClose=${this.formatPopoverClose} open></arcgis-charts-config-format-popover>`), this.formatPopover !== null && !document.body.contains(this.formatPopover) && document.body.appendChild(this.formatPopover)) : this.removeFormatPopover();
|
|
154
154
|
}
|
|
155
155
|
removeFormatPopover() {
|
|
156
156
|
this.formatPopover !== null && (this.formatPopover.open = !1, this.formatPopover = $(this.formatPopover));
|
|
@@ -164,7 +164,7 @@ class X extends j {
|
|
|
164
164
|
case i.XAxisTitle:
|
|
165
165
|
return E(this.model) ? this.model.xAxisTitleSymbol : void 0;
|
|
166
166
|
case i.YAxisTitle:
|
|
167
|
-
return
|
|
167
|
+
return d(this.model) ? this.model.getAxisTitleSymbol(1) : void 0;
|
|
168
168
|
case i.AxisLabels:
|
|
169
169
|
return C(this.model) ? this.model.axisLabelsSymbol : void 0;
|
|
170
170
|
case i.GuideLabels:
|
|
@@ -175,11 +175,11 @@ class X extends j {
|
|
|
175
175
|
return h(this.model) ? this.model.legendTitleSymbol : void 0;
|
|
176
176
|
case i.DataLabels:
|
|
177
177
|
return L(this.model) ? this.model.dataLabelsSymbol : void 0;
|
|
178
|
-
case
|
|
178
|
+
case n.AxisLines:
|
|
179
179
|
return P(this.model) ? this.model.axisLinesSymbol : void 0;
|
|
180
|
-
case
|
|
181
|
-
return
|
|
182
|
-
case
|
|
180
|
+
case n.GridLines:
|
|
181
|
+
return d(this.model) ? this.model.getGridLinesSymbol() : void 0;
|
|
182
|
+
case n.LeaderLines:
|
|
183
183
|
return S(this.model) ? this.model.ticksSymbol : void 0;
|
|
184
184
|
case i.Background:
|
|
185
185
|
return this.model.backgroundColor;
|
|
@@ -199,7 +199,7 @@ class X extends j {
|
|
|
199
199
|
E(this.model) && l(e) && (this.model.xAxisTitleSymbol = e);
|
|
200
200
|
break;
|
|
201
201
|
case i.YAxisTitle:
|
|
202
|
-
|
|
202
|
+
d(this.model) && l(e) && this.model.setAxisTitleSymbol(e, 1);
|
|
203
203
|
break;
|
|
204
204
|
case i.AxisLabels:
|
|
205
205
|
C(this.model) && l(e) && (this.model.axisLabelsSymbol = e);
|
|
@@ -216,14 +216,14 @@ class X extends j {
|
|
|
216
216
|
case i.DataLabels:
|
|
217
217
|
L(this.model) && l(e) && (this.model.dataLabelsSymbol = e);
|
|
218
218
|
break;
|
|
219
|
-
case
|
|
219
|
+
case n.AxisLines:
|
|
220
220
|
P(this.model) && x(e) && (this.model.axisLinesSymbol = e);
|
|
221
221
|
break;
|
|
222
|
-
case
|
|
222
|
+
case n.GridLines:
|
|
223
223
|
if (x(e)) {
|
|
224
224
|
if (V(this.model))
|
|
225
225
|
this.model.setGridLinesSymbol(e);
|
|
226
|
-
else if (
|
|
226
|
+
else if (d(this.model)) {
|
|
227
227
|
const s = this.model.chartType;
|
|
228
228
|
let o = [];
|
|
229
229
|
switch (s) {
|
|
@@ -247,7 +247,7 @@ class X extends j {
|
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
break;
|
|
250
|
-
case
|
|
250
|
+
case n.LeaderLines:
|
|
251
251
|
S(this.model) && x(e) && (this.model.ticksSymbol = e);
|
|
252
252
|
break;
|
|
253
253
|
case i.Background:
|
|
@@ -259,7 +259,7 @@ class X extends j {
|
|
|
259
259
|
this.textProperties = [
|
|
260
260
|
i.Title,
|
|
261
261
|
...E(this.model) ? [i.XAxisTitle] : [],
|
|
262
|
-
...
|
|
262
|
+
...d(this.model) ? [i.YAxisTitle] : [],
|
|
263
263
|
...h(this.model) ? [i.LegendTitle] : [],
|
|
264
264
|
i.Description,
|
|
265
265
|
...h(this.model) ? [i.LegendText] : [],
|
|
@@ -268,9 +268,9 @@ class X extends j {
|
|
|
268
268
|
...L(this.model) && this.model.chartType !== r.HeatSeries && this.model.chartType !== r.BoxPlotSeries ? [i.DataLabels] : []
|
|
269
269
|
], w(this.model) && (this.textProperties = this.textProperties.filter((s) => s !== i.DataLabels)), this.symbolProperties = [
|
|
270
270
|
i.Background,
|
|
271
|
-
...P(this.model) && this.model.chartType !== r.HeatSeries ? [
|
|
272
|
-
...
|
|
273
|
-
...S(this.model) ? [
|
|
271
|
+
...P(this.model) && this.model.chartType !== r.HeatSeries ? [n.AxisLines] : [],
|
|
272
|
+
...d(this.model) ? [n.GridLines] : [],
|
|
273
|
+
...S(this.model) ? [n.LeaderLines] : []
|
|
274
274
|
];
|
|
275
275
|
const t = this.textProperties.map((s) => this.renderTextElement(s, this.textPropertyChange)), e = this.symbolProperties.map((s) => s === i.Background ? this.renderTextElement(s, this.backgroundChange) : this.renderTextElement(s, this.symbolPropertyChange));
|
|
276
276
|
return { textElements: t, symbolElements: e };
|
|
@@ -284,7 +284,7 @@ class X extends j {
|
|
|
284
284
|
return u`<div class=${p(g.sectionLabel)}>${this._messages.textElements}</div><calcite-list label class=${p(g.elementList)} selection-mode=multiple selection-appearance=border @calciteListChange=${this.correctTextElementSelection}>${t}</calcite-list><div class=${p(g.sectionLabel)}>${this._messages.symbolElements}</div><calcite-list label class=${p(g.elementList)} selection-mode=single selection-appearance=border>${e}</calcite-list>`;
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
|
-
M("arcgis-charts-config-format",
|
|
287
|
+
M("arcgis-charts-config-format", R);
|
|
288
288
|
export {
|
|
289
|
-
|
|
289
|
+
R as ArcgisChartsConfigFormat
|
|
290
290
|
};
|
|
@@ -3,13 +3,10 @@ import { c as i } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { html as o } from "lit";
|
|
4
4
|
import { u as a } from "../../chunks/useT9n.js";
|
|
5
5
|
import { createRef as l, ref as n } from "lit/directives/ref.js";
|
|
6
|
-
import { LitElement as c, createEvent as s
|
|
7
|
-
import { e as
|
|
6
|
+
import { LitElement as c, createEvent as s } from "@arcgis/lumina";
|
|
7
|
+
import { e as p } from "../../chunks/popover-ui-utils.js";
|
|
8
8
|
import { i as r } from "../../chunks/rest-js-object-literals.js";
|
|
9
|
-
|
|
10
|
-
jsAppFlyout: "js-app-flyout"
|
|
11
|
-
};
|
|
12
|
-
class m extends c {
|
|
9
|
+
class h extends c {
|
|
13
10
|
constructor() {
|
|
14
11
|
super(...arguments), this._messages = a(), this.popoverElement = l(), this.placement = "leading", this.open = !1, this.arcgisChartsConfigFormatPopoverColorChange = s(), this.arcgisChartsConfigFormatPopoverSymbolChange = s(), this.arcgisChartsConfigFormatPopoverTextChange = s(), this.arcgisChartsConfigPopoverClose = s();
|
|
15
12
|
}
|
|
@@ -20,7 +17,7 @@ class m extends c {
|
|
|
20
17
|
await this.popoverElement.value?.reposition();
|
|
21
18
|
}
|
|
22
19
|
updated() {
|
|
23
|
-
|
|
20
|
+
p(this.popoverElement.value, this.open);
|
|
24
21
|
}
|
|
25
22
|
closePopover() {
|
|
26
23
|
this.open = !1, this.arcgisChartsConfigPopoverClose.emit();
|
|
@@ -36,10 +33,10 @@ class m extends c {
|
|
|
36
33
|
}
|
|
37
34
|
render() {
|
|
38
35
|
const e = this.selectedElement, t = this.selectedElement;
|
|
39
|
-
return o`<div
|
|
36
|
+
return o`<div><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .open=${!this.open} label @calcitePopoverClose=${this.closePopover} pointer-disabled auto-close ${n(this.popoverElement)}>${Array.isArray(e) ? o`<arcgis-charts-config-color-style .header=${this._messages.backgroundElement} enable-close .open=${this.open} .selectedColor=${e} @arcgisChartsConfigColorStyleClose=${this.closePopover} @arcgisChartsConfigColorStyleChange=${this.updateColorProperties}></arcgis-charts-config-color-style>` : null}${t?.type === r.SLS ? o`<arcgis-charts-config-line-style .header=${this._messages.lineStyle} .open=${this.open} enable-close .lineStyle=${t} @arcgisChartsConfigLineStyleClose=${this.closePopover} @arcgisChartsConfigLineStyleChange=${this.updateSymbolProperties}></arcgis-charts-config-line-style>` : null}${t?.type === r.TS ? o`<arcgis-charts-config-font-style .header=${this._messages.textStyle} .open=${this.open} enable-close .fontStyle=${t} @arcgisChartsConfigFontStyleClose=${this.closePopover} @arcgisChartsConfigFontStyleChange=${this.updateTextProperties}></arcgis-charts-config-font-style>` : null}</calcite-popover></div>`;
|
|
40
37
|
}
|
|
41
38
|
}
|
|
42
|
-
i("arcgis-charts-config-format-popover",
|
|
39
|
+
i("arcgis-charts-config-format-popover", h);
|
|
43
40
|
export {
|
|
44
|
-
|
|
41
|
+
h as ArcgisChartsConfigFormatPopover
|
|
45
42
|
};
|
|
@@ -4,13 +4,10 @@ import { html as t } from "lit";
|
|
|
4
4
|
import { g as i } from "../../chunks/default.js";
|
|
5
5
|
import { u as l } from "../../chunks/useT9n.js";
|
|
6
6
|
import { createRef as a, ref as n } from "lit/directives/ref.js";
|
|
7
|
-
import { LitElement as
|
|
8
|
-
import { i as
|
|
9
|
-
import { e as
|
|
10
|
-
|
|
11
|
-
jsAppFlyout: "js-app-flyout"
|
|
12
|
-
};
|
|
13
|
-
class C extends p {
|
|
7
|
+
import { LitElement as c, createEvent as s } from "@arcgis/lumina";
|
|
8
|
+
import { i as p } from "../../chunks/rest-js-object-literals.js";
|
|
9
|
+
import { e as h } from "../../chunks/popover-ui-utils.js";
|
|
10
|
+
class m extends c {
|
|
14
11
|
constructor() {
|
|
15
12
|
super(...arguments), this._messages = l(), this.popoverElement = a(), this.placement = "leading", this.open = !1, this.arcgisChartsConfigGuidePopoverColorChange = s(), this.arcgisChartsConfigGuidePopoverSymbolChange = s(), this.arcgisChartsConfigPopoverClose = s();
|
|
16
13
|
}
|
|
@@ -21,7 +18,7 @@ class C extends p {
|
|
|
21
18
|
await this.popoverElement.value?.reposition();
|
|
22
19
|
}
|
|
23
20
|
updated() {
|
|
24
|
-
|
|
21
|
+
h(this.popoverElement.value, this.open);
|
|
25
22
|
}
|
|
26
23
|
guidePopoverClose() {
|
|
27
24
|
this.open = !1, this.arcgisChartsConfigPopoverClose.emit();
|
|
@@ -36,10 +33,10 @@ class C extends p {
|
|
|
36
33
|
}
|
|
37
34
|
render() {
|
|
38
35
|
const o = this.selectedElement, e = this.selectedElement;
|
|
39
|
-
return t`<div
|
|
36
|
+
return t`<div><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 ${n(this.popoverElement)}>${Array.isArray(o) && t`<arcgis-charts-config-color-style .header=${this._messages.fillStyle} enable-close .open=${this.open} .selectedColor=${o} @arcgisChartsConfigColorStyleClose=${this.guidePopoverClose} @arcgisChartsConfigColorStyleChange=${this.updateColorProperties}></arcgis-charts-config-color-style>` || ""}${e?.type === p.SLS && t`<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>`;
|
|
40
37
|
}
|
|
41
38
|
}
|
|
42
|
-
r("arcgis-charts-config-guide-popover",
|
|
39
|
+
r("arcgis-charts-config-guide-popover", m);
|
|
43
40
|
export {
|
|
44
|
-
|
|
41
|
+
m as ArcgisChartsConfigGuidePopover
|
|
45
42
|
};
|
|
@@ -239,7 +239,7 @@ class le extends E {
|
|
|
239
239
|
this.model.includeLeapDay = a;
|
|
240
240
|
}
|
|
241
241
|
onNullPolicyChange(e) {
|
|
242
|
-
this.model.nullPolicy = e.target.selectedItem
|
|
242
|
+
this.model.nullPolicy = e.target.selectedItem?.value;
|
|
243
243
|
}
|
|
244
244
|
setupPopover(e) {
|
|
245
245
|
e.stopImmediatePropagation(), this.removeHeatChartDataPopover();
|