@arcgis/map-components 5.1.0-next.60 → 5.1.0-next.62
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/{BLKKPXDO.js → 277YGNPQ.js} +1 -1
- package/dist/cdn/{YOBLHGZK.js → 2OYSX637.js} +1 -1
- package/dist/cdn/{BDL7JHSJ.js → 2QO5XYXC.js} +1 -1
- package/dist/cdn/{Q33VTX4M.js → 2TP43ZJT.js} +1 -1
- package/dist/cdn/{76OGK6BJ.js → 34N6NVCA.js} +1 -1
- package/dist/cdn/{43AAIXLC.js → 3IMMSP7K.js} +1 -1
- package/dist/cdn/{6BSFBUM6.js → 3LHUEYZM.js} +1 -1
- package/dist/cdn/{RTWUAZET.js → 3QUBDSPU.js} +1 -1
- package/dist/cdn/{F76SAKGH.js → 3RCS4AK2.js} +1 -1
- package/dist/cdn/{6NTYMNLN.js → 3VBTMG7C.js} +1 -1
- package/dist/cdn/{6G6M4M5S.js → 43C5DIH5.js} +1 -1
- package/dist/cdn/{UMBRQNGS.js → 47JFG5FU.js} +1 -1
- package/dist/cdn/{6QUGJX3I.js → 4JJPFWBJ.js} +1 -1
- package/dist/cdn/4KLZDEYJ.js +2 -0
- package/dist/cdn/{MDUFAELV.js → 4WXHSJS4.js} +1 -1
- package/dist/cdn/{6ORHT4GS.js → 4Y32ZA4A.js} +1 -1
- package/dist/cdn/54VXNFQ4.js +2 -0
- package/dist/cdn/{CTFHP4WA.js → 55JQXQSW.js} +1 -1
- package/dist/cdn/{JTOVZZIK.js → 5ABSWG4I.js} +1 -1
- package/dist/cdn/{EWOBALV7.js → 5JNFAIJ6.js} +1 -1
- package/dist/cdn/5RELUUK7.js +2 -0
- package/dist/cdn/{RFJ2A4C5.js → 5VYGY5I2.js} +1 -1
- package/dist/cdn/{IFWIELXX.js → 64LRQ74J.js} +1 -1
- package/dist/cdn/{7KAQ36QW.js → 6FU5MMYZ.js} +1 -1
- package/dist/cdn/6GBJ7BZY.js +2 -0
- package/dist/cdn/{4QDDVY23.js → 6HLZ37OL.js} +1 -1
- package/dist/cdn/{SNQ2FGIZ.js → 6V5OS3F6.js} +1 -1
- package/dist/cdn/{4YOGEANW.js → 76JRCRDK.js} +1 -1
- package/dist/cdn/76LZPCRF.js +2 -0
- package/dist/cdn/{DJP36K3Y.js → 76MRQR3N.js} +1 -1
- package/dist/cdn/{TTXSJRX5.js → 7BWFZ4B2.js} +1 -1
- package/dist/cdn/{LNY6JB4T.js → 7EJRQZ4J.js} +1 -1
- package/dist/cdn/{HOO4XLPB.js → 7IOKJUW4.js} +1 -1
- package/dist/cdn/{RSBGBKYW.js → 7JI6J4N6.js} +1 -1
- package/dist/cdn/{6MNOO7S3.js → 7QLMRDBI.js} +1 -1
- package/dist/cdn/{2W3VBU7J.js → 7RXSOZQ7.js} +1 -1
- package/dist/cdn/{QSNY7PKS.js → 7YSD6HNU.js} +1 -1
- package/dist/cdn/{HSAVWAGS.js → AO4UV75O.js} +1 -1
- package/dist/cdn/{FBHD2ZEY.js → ASV42UM4.js} +1 -1
- package/dist/cdn/{AHYVOMEG.js → B3MJD74A.js} +1 -1
- package/dist/cdn/{LPD2FPBE.js → BFIXVV5U.js} +1 -1
- package/dist/cdn/BGYE2RYH.js +2 -0
- package/dist/cdn/{RPNWPXQM.js → BIJOBOZ4.js} +1 -1
- package/dist/cdn/{OSSSLPDH.js → BJ3FGQD7.js} +1 -1
- package/dist/cdn/{AMDRLSC6.js → BTDF2LF7.js} +1 -1
- package/dist/cdn/{4C65FPRR.js → BVQJEN6O.js} +1 -1
- package/dist/cdn/{323UBCSA.js → C2T4S7R6.js} +1 -1
- package/dist/cdn/{KB5J5TKR.js → C3MEDREM.js} +1 -1
- package/dist/cdn/C4G7PUW6.js +2 -0
- package/dist/cdn/{PV4EVFZL.js → C4TTO7TK.js} +1 -1
- package/dist/cdn/{3NIIEYZ3.js → CAS4WOLY.js} +1 -1
- package/dist/cdn/CGKNN7O3.js +2 -0
- package/dist/cdn/{A3PNX3GL.js → CVBW7J23.js} +1 -1
- package/dist/cdn/{IUI2SSE7.js → CYX7ZCTI.js} +1 -1
- package/dist/cdn/{GL2CGH7O.js → CZP57LZN.js} +1 -1
- package/dist/cdn/{BLFJJQQ3.js → DBZ3TUNH.js} +1 -1
- package/dist/cdn/{VVTVZ23C.js → DOAUTR3P.js} +1 -1
- package/dist/cdn/{QUZN3WEI.js → DSN53CZZ.js} +1 -1
- package/dist/cdn/{AK3LR5KN.js → DWTMIKGK.js} +1 -1
- package/dist/cdn/EA45GZ5F.js +2 -0
- package/dist/cdn/{EYBE3ZBK.js → EQ7PMY6V.js} +1 -1
- package/dist/cdn/{WGW42I4K.js → EYEWDNE5.js} +1 -1
- package/dist/cdn/{ZEKJESMA.js → F234D4MB.js} +1 -1
- package/dist/cdn/{HH5RW37I.js → F37IC6GS.js} +1 -1
- package/dist/cdn/{KXHRLYKD.js → F5UMXASB.js} +1 -1
- package/dist/cdn/{EYQYDFFT.js → GCFS62KM.js} +1 -1
- package/dist/cdn/{3RBPQIY2.js → GGFRRU24.js} +1 -1
- package/dist/cdn/GONQF4NL.js +2 -0
- package/dist/cdn/{N2AXFVQB.js → GTGN4N7C.js} +1 -1
- package/dist/cdn/GW3E4WBW.js +2 -0
- package/dist/cdn/{NWE4GWG6.js → HW4WLKS3.js} +1 -1
- package/dist/cdn/{X4JK3J5H.js → HX43LUFZ.js} +1 -1
- package/dist/cdn/{BLXKBUSY.js → I76WQDAB.js} +1 -1
- package/dist/cdn/{EYT725LZ.js → J2NNVVQJ.js} +1 -1
- package/dist/cdn/{7E7AM2OJ.js → JEBIHMOV.js} +1 -1
- package/dist/cdn/{7LBICZSN.js → JESWR7QG.js} +1 -1
- package/dist/cdn/{QIHCQOKX.js → JZZSQAW2.js} +1 -1
- package/dist/cdn/{OHDHHNIY.js → K4WPBHLB.js} +1 -1
- package/dist/cdn/KMHTPOUS.js +3 -0
- package/dist/cdn/{CWQLKJFC.js → KMPRGO2N.js} +1 -1
- package/dist/cdn/KSGWOMMH.js +2 -0
- package/dist/cdn/{MZENIHK3.js → LMYZFAFF.js} +1 -1
- package/dist/cdn/LTEIJYVA.js +2 -0
- package/dist/cdn/{JCLR7GTA.js → LUAKM4MG.js} +1 -1
- package/dist/cdn/{UCJK3GTY.js → M3SO3XES.js} +1 -1
- package/dist/cdn/{TG7WC3X6.js → MI222VBR.js} +1 -1
- package/dist/cdn/{GIBM773H.js → MOFI6L4O.js} +1 -1
- package/dist/cdn/{T5A2YHUT.js → MP4O7I6K.js} +1 -1
- package/dist/cdn/{O3CBEPSE.js → MRBYVJ5U.js} +1 -1
- package/dist/cdn/{4TP652AL.js → MX7NGEWP.js} +1 -1
- package/dist/cdn/{YT45OEI2.js → N3KVIOWL.js} +1 -1
- package/dist/cdn/{L4P6QUAJ.js → NADAEZJB.js} +1 -1
- package/dist/cdn/{7J2JZ2SZ.js → NJWMNFLG.js} +1 -1
- package/dist/cdn/{JDAMFTUY.js → OBKENUMK.js} +1 -1
- package/dist/cdn/{IJICMS5G.js → OK7S4W2T.js} +1 -1
- package/dist/cdn/{FMAT4CW4.js → OM6N42EA.js} +1 -1
- package/dist/cdn/{J2UAHEHR.js → OQNW6YMY.js} +1 -1
- package/dist/cdn/{XRXXGGKZ.js → PBTWS5ZO.js} +1 -1
- package/dist/cdn/PLPEGT56.js +2 -0
- package/dist/cdn/{TY7DGFDV.js → PM4BDQTV.js} +1 -1
- package/dist/cdn/{SVFZT7GR.js → PMSDTN4F.js} +1 -1
- package/dist/cdn/{2RITORYK.js → PP4XRJ4B.js} +1 -1
- package/dist/cdn/{AE6R5TA3.js → PZD2JLT5.js} +1 -1
- package/dist/cdn/{A2Y4QEYJ.js → QG6R7I4M.js} +1 -1
- package/dist/cdn/QHIBDCFD.js +2 -0
- package/dist/cdn/{RISMNCOT.js → QPPSIZAB.js} +1 -1
- package/dist/cdn/{HNQPE3FT.js → QVKAKMZA.js} +1 -1
- package/dist/cdn/{HJ3OTVSP.js → QVQPUYUA.js} +1 -1
- package/dist/cdn/{ZBPKNJD3.js → QWJMM65P.js} +1 -1
- package/dist/cdn/{X6YUOAIF.js → R2ZIHQ6C.js} +1 -1
- package/dist/cdn/{HKAKOHQC.js → RFFRNLP2.js} +1 -1
- package/dist/cdn/{RKWOCAIO.js → RLNU7CIG.js} +1 -1
- package/dist/cdn/{DRVFBFOW.js → RWZCNZXX.js} +1 -1
- package/dist/cdn/{4XLVCJ6P.js → SCFLK46L.js} +1 -1
- package/dist/cdn/{4YBNCIDF.js → SYWVHWVX.js} +1 -1
- package/dist/cdn/{GZ7R6ON7.js → TFYHLT7G.js} +1 -1
- package/dist/cdn/{7OM5OVLK.js → TGSCLA2C.js} +1 -1
- package/dist/cdn/{NMZDLL4M.js → TNCVNE6F.js} +1 -1
- package/dist/cdn/{23KLANNA.js → TWV3S4Z7.js} +1 -1
- package/dist/cdn/{QZFSCUU6.js → U3OC5CUW.js} +1 -1
- package/dist/cdn/{IUZTQ4PQ.js → U4CA3PYG.js} +1 -1
- package/dist/cdn/{WPHAAGQP.js → UCS4WK2U.js} +1 -1
- package/dist/cdn/{ZOCF3BGK.js → UO4R7CWA.js} +1 -1
- package/dist/cdn/{AEX2GVOA.js → UOEUBKDF.js} +1 -1
- package/dist/cdn/{AZ6KIV47.js → UVO7OQB6.js} +1 -1
- package/dist/cdn/{OXM4YQGO.js → UX2LYYGS.js} +1 -1
- package/dist/cdn/UXODIEBA.js +2 -0
- package/dist/cdn/{R2SRU7YZ.js → V3QXCAYX.js} +1 -1
- package/dist/cdn/{IS2PGNSH.js → V4KC76CR.js} +1 -1
- package/dist/cdn/{5VOKWJYK.js → VFOUXVUC.js} +1 -1
- package/dist/cdn/{NJX4DH3C.js → VHLUJNCP.js} +1 -1
- package/dist/cdn/{XJ7YGYPW.js → VY2CZNYM.js} +1 -1
- package/dist/cdn/{EAKRGXQC.js → W3ELN5AQ.js} +1 -1
- package/dist/cdn/{3D475OQN.js → W3EWLBL6.js} +1 -1
- package/dist/cdn/{H5TVMXUR.js → W7CYIQUT.js} +1 -1
- package/dist/cdn/{CXQ47WC4.js → WNDNGPC6.js} +1 -1
- package/dist/cdn/{AIUHMRPO.js → WP44MHA5.js} +1 -1
- package/dist/cdn/{DLDEDYSE.js → WU4OO2CE.js} +1 -1
- package/dist/cdn/{RRZZQHHA.js → XCN5IIIA.js} +1 -1
- package/dist/cdn/{2VAAAVLC.js → XCSLXGGT.js} +1 -1
- package/dist/cdn/{ZBIHLQ6H.js → XIBJIKAX.js} +1 -1
- package/dist/cdn/{ATCF2HG3.js → XQW7SSDL.js} +1 -1
- package/dist/cdn/XSRRD3ET.js +2 -0
- package/dist/cdn/{SMEJ4YAT.js → Y56BNGW6.js} +1 -1
- package/dist/cdn/YGFBOUJG.js +2 -0
- package/dist/cdn/{E23LKC2A.js → YJJZFGLZ.js} +1 -1
- package/dist/cdn/{RTB2XKDJ.js → YM46E2DT.js} +1 -1
- package/dist/cdn/{PCBKRI33.js → YMG6MCNY.js} +1 -1
- package/dist/cdn/{3FQKWB7C.js → YWIQ2K5S.js} +1 -1
- package/dist/cdn/{DJGZ4YG5.js → YXIRQ6K2.js} +1 -1
- package/dist/cdn/{PUKUYV7Z.js → Z4AZUIMN.js} +1 -1
- package/dist/cdn/{M2MXC4LH.js → Z57TNQ4S.js} +1 -1
- package/dist/cdn/{77HK7ZGB.js → Z7TYJCE5.js} +1 -1
- package/dist/cdn/{23REZ2B2.js → ZTERN4BN.js} +1 -1
- package/dist/cdn/{3F72VWYL.js → ZUMTQ5P7.js} +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.en.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/action-utils.js +2 -2
- package/dist/chunks/component-utils.js +69 -76
- package/dist/chunks/feature-utils.js +10 -12
- package/dist/chunks/globalCss.js +1 -0
- package/dist/chunks/layer-list-item-indicator.js +55 -0
- package/dist/chunks/layer-list-utils.js +112 -0
- package/dist/chunks/slots.js +1 -1
- package/dist/chunks/svgUtils.js +1 -1
- package/dist/chunks/univariateUtils.js +1 -1
- package/dist/chunks/utils.js +7 -85
- package/dist/chunks/utils2.js +84 -45
- package/dist/chunks/utils3.js +51 -0
- package/dist/components/arcgis-catalog-layer-list/customElement.d.ts +8 -1
- package/dist/components/arcgis-catalog-layer-list/customElement.js +2 -2
- package/dist/components/arcgis-compass/customElement.d.ts +14 -8
- package/dist/components/arcgis-compass/customElement.js +75 -21
- package/dist/components/arcgis-directional-pad/customElement.js +37 -44
- package/dist/components/arcgis-feature-media/customElement.js +172 -199
- package/dist/components/arcgis-feature-relationship/customElement.js +1 -1
- package/dist/components/arcgis-features/customElement.js +25 -22
- package/dist/components/arcgis-layer-list/customElement.js +15 -15
- package/dist/components/arcgis-layer-list-item-indicator/customElement.js +11 -0
- package/dist/components/arcgis-layer-list-item-indicator/index.js +2 -0
- package/dist/components/arcgis-layer-list-item-panel/customElement.js +74 -0
- package/dist/components/arcgis-layer-list-item-panel/index.js +2 -0
- package/dist/components/arcgis-layer-list-new/customElement.d.ts +302 -0
- package/dist/components/arcgis-layer-list-new/customElement.js +253 -0
- package/dist/components/arcgis-layer-list-new/index.d.ts +1 -0
- package/dist/components/arcgis-layer-list-new/index.js +10 -0
- package/dist/components/arcgis-layer-list-new/layer-list-item/customElement.js +139 -0
- package/dist/components/{arcgis-layer-list-item → arcgis-layer-list-new/layer-list-item}/index.js +6 -5
- package/dist/components/arcgis-legend-card-color-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-element/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-color-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-element/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-spike-ramp/customElement.js +1 -1
- package/dist/components/arcgis-print-format-select/customElement.js +1 -1
- package/dist/components/arcgis-print-main-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-template-select/customElement.js +1 -1
- package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
- package/dist/components/arcgis-table-list/customElement.d.ts +11 -4
- package/dist/components/arcgis-table-list/customElement.js +11 -11
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +29 -26
- 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 +10 -0
- package/dist/loader.js +6 -4
- package/dist/types/lumina.d.ts +11 -2
- package/dist/types/preact.d.ts +12 -2
- package/dist/types/react.d.ts +13 -2
- package/dist/types/stencil.d.ts +11 -2
- package/dist/utils/action-utils.d.ts +1 -0
- package/dist/utils/layer-list-utils.d.ts +12 -0
- package/package.json +4 -4
- package/dist/cdn/BDQN2SGF.js +0 -2
- package/dist/cdn/EHZW6UXL.js +0 -2
- package/dist/cdn/J5IZSPU4.js +0 -2
- package/dist/cdn/MGOKVOUR.js +0 -2
- package/dist/cdn/MSYERWRZ.js +0 -2
- package/dist/cdn/O4KTJ2LP.js +0 -2
- package/dist/cdn/O5TDDX7K.js +0 -2
- package/dist/cdn/ON57EB3S.js +0 -2
- package/dist/cdn/PDSZXTW2.js +0 -2
- package/dist/cdn/QOL55WND.js +0 -2
- package/dist/cdn/SUWCCBWL.js +0 -2
- package/dist/cdn/VQLAZAPA.js +0 -2
- package/dist/cdn/XCGJZDIU.js +0 -3
- package/dist/cdn/YMPJFJHK.js +0 -2
- package/dist/cdn/ZCCTN4B7.js +0 -2
- package/dist/chunks/layer-list.js +0 -6
- package/dist/components/arcgis-layer-list-item/customElement.js +0 -287
- /package/dist/cdn/{IHLNIYVE.js → BJQE4ISL.js} +0 -0
- /package/dist/cdn/{TZUYWT6D.js → KYU6MBFA.js} +0 -0
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
4
|
-
import { ref as
|
|
5
|
-
import { keyed as
|
|
6
|
-
import { useDirection as
|
|
7
|
-
import { getColorsFromRenderer as
|
|
8
|
-
import { LitElement as
|
|
9
|
-
import { substitute as
|
|
10
|
-
import { watch as
|
|
11
|
-
import
|
|
2
|
+
import { c as D } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as O, html as _ } from "lit";
|
|
4
|
+
import { ref as B } from "lit/directives/ref.js";
|
|
5
|
+
import { keyed as U } from "lit/directives/keyed.js";
|
|
6
|
+
import { useDirection as j, useMedia as W } from "@arcgis/lumina/controllers";
|
|
7
|
+
import { getColorsFromRenderer as G } from "@arcgis/core/renderers/support/utils.js";
|
|
8
|
+
import { LitElement as q, nothing as y } from "@arcgis/lumina";
|
|
9
|
+
import { substitute as K } from "@arcgis/core/intl.js";
|
|
10
|
+
import { watch as J } from "@arcgis/core/core/reactiveUtils.js";
|
|
11
|
+
import Q from "@arcgis/core/popup/FieldInfo.js";
|
|
12
12
|
import N from "@arcgis/core/popup/content/support/ChartMediaInfoValueSeries.js";
|
|
13
|
-
import { unsafeGetCalciteModeName as
|
|
14
|
-
import { renderingSanitizer as
|
|
15
|
-
import { d as A, s as R, m as
|
|
16
|
-
const
|
|
13
|
+
import { unsafeGetCalciteModeName as Z } from "@arcgis/toolkit/dom";
|
|
14
|
+
import { renderingSanitizer as z } from "@arcgis/core/applications/Components/sanitizerUtils.js";
|
|
15
|
+
import { d as A, s as R, m as ee, n as V, i as te, o as ie, j as X, f as ae } from "../../chunks/feature-utils.js";
|
|
16
|
+
const re = O`.container{display:flex;flex-flow:row wrap;align-items:center;margin-top:var(--calcite-spacing-xs);width:100%;min-height:150px}.container .pagination-button{display:flex;align-items:center;justify-content:center;border:none;background:transparent;cursor:pointer;padding-block:var(--calcite-spacing-xs);padding-inline:var(--calcite-spacing-xs);color:var(--calcite-color-text-3)}.container .pagination-button:hover,.container .pagination-button:focus{background-color:var(--calcite-color-foreground-3);color:var(--calcite-color-text-1);fill:var(--calcite-color-text-1)}.item-title{margin:0;font-size:var(--calcite-font-size-md);line-height:var(--calcite-font-line-height-relative-snug)}.item-caption{padding-block-start:var(--calcite-spacing-xxs);font-size:var(--calcite-font-size-sm);line-height:var(--calcite-font-line-height-relative-snug)}.item{display:flex;align-items:flex-start;justify-content:center;margin-block:var(--calcite-spacing-xs);width:100%;height:auto}.item-navigation{display:flex;flex:0 1 100%;align-items:flex-start;justify-content:space-between;margin-block-end:var(--calcite-spacing-xs)}.item-text{margin-inline-end:var(--calcite-spacing-xs)}.pagination{display:flex;flex:0 0 auto;align-items:center;overflow:hidden}.pagination:only-child{margin-inline-start:auto}.pagination-text{padding-inline:var(--calcite-spacing-xxs);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-sm);line-height:var(--calcite-font-line-height-relative-normal)}.item-container{flex:0 1 auto;width:100%}.item-container img{max-width:100%}.item-container img[src$=".SVG"],.item-container img[src$=".svg"]{width:100%}.chart{width:100%;height:155px}`;
|
|
17
17
|
function $(S) {
|
|
18
18
|
if (!A(S))
|
|
19
19
|
return null;
|
|
20
20
|
const [e, t] = S.split("/").slice(1);
|
|
21
21
|
return { layerId: e, fieldName: t };
|
|
22
22
|
}
|
|
23
|
-
const k = 15, M = "category", w = "value",
|
|
24
|
-
class
|
|
23
|
+
const k = 15, M = "category", w = "value", ne = "rgba(50, 50, 50, 1)", oe = 250, se = 500, le = 200;
|
|
24
|
+
class ce extends q {
|
|
25
25
|
constructor() {
|
|
26
|
-
super(...arguments), this._direction =
|
|
26
|
+
super(...arguments), this._direction = j(), this._prefersReducedMotion = W("(prefers-reduced-motion)"), this.activeMediaInfoIndex = 0, this.chartAnimationDisabled = !1, this.headingLevel = 2;
|
|
27
27
|
}
|
|
28
28
|
static {
|
|
29
29
|
this.properties = { _refreshIntervalInfo: 16, messages: 0, values: 0, activeMediaInfoIndex: 9, chartAnimationDisabled: 5, activeMediaInfo: 32, formattedMediaInfos: 32, description: 1, fieldInfoMap: 0, layer: 0, mediaInfos: 0, popupTemplate: 0, relatedInfos: 0, formattedValues: 0, heading: 1, graphic: 0, formattedMediaInfoCount: 32, headingLevel: 9 };
|
|
30
30
|
}
|
|
31
31
|
static {
|
|
32
|
-
this.styles =
|
|
32
|
+
this.styles = re;
|
|
33
33
|
}
|
|
34
34
|
get activeMediaInfo() {
|
|
35
35
|
return this.formattedMediaInfos[this.activeMediaInfoIndex] || null;
|
|
@@ -51,7 +51,7 @@ class ue extends J {
|
|
|
51
51
|
}
|
|
52
52
|
loaded() {
|
|
53
53
|
this.manager.onLifecycle(() => [
|
|
54
|
-
|
|
54
|
+
J(() => [this.activeMediaInfo, this.activeMediaInfoIndex], () => this._setupMediaRefreshTimer(), { initial: !0 }),
|
|
55
55
|
{ remove: () => this._clearMediaRefreshTimer() }
|
|
56
56
|
]);
|
|
57
57
|
}
|
|
@@ -64,153 +64,126 @@ class ue extends J {
|
|
|
64
64
|
this._setContentElementMedia(i);
|
|
65
65
|
}
|
|
66
66
|
_formatMediaInfos() {
|
|
67
|
-
const { mediaInfos: e, layer: t } = this, i = this.values ?? {},
|
|
67
|
+
const { mediaInfos: e, layer: t } = this, i = this.values ?? {}, r = this.formattedValues ?? {}, a = this.fieldInfoMap ?? /* @__PURE__ */ new Map();
|
|
68
68
|
return e?.map((o) => {
|
|
69
69
|
const n = o?.clone();
|
|
70
70
|
if (!n)
|
|
71
71
|
return null;
|
|
72
72
|
if (n.title = R({
|
|
73
73
|
values: i,
|
|
74
|
-
fieldInfoMap:
|
|
75
|
-
globalValues:
|
|
74
|
+
fieldInfoMap: a,
|
|
75
|
+
globalValues: r,
|
|
76
76
|
layer: t,
|
|
77
77
|
text: n.title
|
|
78
78
|
}), n.caption = R({
|
|
79
79
|
values: i,
|
|
80
|
-
fieldInfoMap:
|
|
81
|
-
globalValues:
|
|
80
|
+
fieldInfoMap: a,
|
|
81
|
+
globalValues: r,
|
|
82
82
|
layer: t,
|
|
83
83
|
text: n.caption
|
|
84
84
|
}), n.altText = R({
|
|
85
85
|
values: i,
|
|
86
|
-
fieldInfoMap:
|
|
87
|
-
globalValues:
|
|
86
|
+
fieldInfoMap: a,
|
|
87
|
+
globalValues: r,
|
|
88
88
|
layer: t,
|
|
89
89
|
text: n.altText
|
|
90
|
-
}), n.type === "image")
|
|
91
|
-
|
|
92
|
-
return null;
|
|
93
|
-
const s = n.value;
|
|
94
|
-
return this._setImageValue({
|
|
95
|
-
value: s,
|
|
96
|
-
formattedValues: a,
|
|
97
|
-
layer: t
|
|
98
|
-
}), s.sourceURL ? n : void 0;
|
|
99
|
-
}
|
|
90
|
+
}), n.type === "image")
|
|
91
|
+
return n.value?.sourceURL ? n : null;
|
|
100
92
|
if (n.type === "pie-chart" || n.type === "line-chart" || n.type === "column-chart" || n.type === "bar-chart") {
|
|
101
93
|
if (!n.value)
|
|
102
94
|
return null;
|
|
103
|
-
const
|
|
95
|
+
const c = n.value;
|
|
104
96
|
return this._setChartValue({
|
|
105
|
-
value:
|
|
97
|
+
value: c,
|
|
106
98
|
chartType: n.type,
|
|
107
99
|
values: i,
|
|
108
|
-
formattedValues:
|
|
100
|
+
formattedValues: r,
|
|
109
101
|
layer: t
|
|
110
102
|
}), n;
|
|
111
103
|
}
|
|
112
104
|
return null;
|
|
113
105
|
}).filter((o) => o != null) ?? [];
|
|
114
106
|
}
|
|
115
|
-
_setImageValue(e) {
|
|
116
|
-
const t = this.fieldInfoMap ?? /* @__PURE__ */ new Map(), { value: i, formattedValues: a, layer: r } = e, { linkURL: o, sourceURL: n } = i;
|
|
117
|
-
if (n) {
|
|
118
|
-
const s = z(n, r);
|
|
119
|
-
i.sourceURL = X({
|
|
120
|
-
formattedValues: a,
|
|
121
|
-
template: s,
|
|
122
|
-
fieldInfoMap: t
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
if (o) {
|
|
126
|
-
const s = z(o, r);
|
|
127
|
-
i.linkURL = X({
|
|
128
|
-
formattedValues: a,
|
|
129
|
-
template: s,
|
|
130
|
-
fieldInfoMap: t
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
107
|
_setChartValue(e) {
|
|
135
|
-
const { value: t, values: i, formattedValues:
|
|
136
|
-
if (t.fields =
|
|
108
|
+
const { value: t, values: i, formattedValues: r, chartType: a, layer: o } = e, { popupTemplate: n, relatedInfos: c } = this, { fields: l, normalizeField: v } = t, d = o;
|
|
109
|
+
if (t.fields = ee(l, d), v && (t.normalizeField = V(v, d)), !l.some((u) => !!(r[u] != null || A(u) && c?.size)))
|
|
137
110
|
return;
|
|
138
111
|
const h = n?.fieldInfos ?? [];
|
|
139
|
-
t.series = [],
|
|
140
|
-
const
|
|
112
|
+
t.series = [], l.forEach((u, m) => {
|
|
113
|
+
const f = t.colors?.[m];
|
|
141
114
|
if (A(u)) {
|
|
142
115
|
t.series = [
|
|
143
116
|
...t.series,
|
|
144
|
-
...this._getRelatedChartInfos({ fieldInfos: h, fieldName: u, formattedValues:
|
|
117
|
+
...this._getRelatedChartInfos({ fieldInfos: h, fieldName: u, formattedValues: r, chartType: a, value: t, color: f })
|
|
145
118
|
];
|
|
146
119
|
return;
|
|
147
120
|
}
|
|
148
121
|
const p = this._getChartOption({
|
|
149
122
|
value: t,
|
|
150
123
|
values: i,
|
|
151
|
-
chartType:
|
|
152
|
-
formattedValues:
|
|
124
|
+
chartType: a,
|
|
125
|
+
formattedValues: r,
|
|
153
126
|
fieldName: u,
|
|
154
127
|
fieldInfos: h,
|
|
155
|
-
color:
|
|
128
|
+
color: f
|
|
156
129
|
});
|
|
157
130
|
t.series.push(p);
|
|
158
131
|
});
|
|
159
132
|
}
|
|
160
133
|
_getRelatedChartInfos(e) {
|
|
161
|
-
const { fieldInfos: t, fieldName: i, formattedValues:
|
|
134
|
+
const { fieldInfos: t, fieldName: i, formattedValues: r, chartType: a, value: o, color: n } = e, c = [], l = $(i), v = l && this.relatedInfos?.get(l.layerId);
|
|
162
135
|
if (!v)
|
|
163
|
-
return
|
|
164
|
-
const { relatedFeatures: d, relation:
|
|
165
|
-
if (!
|
|
166
|
-
return
|
|
167
|
-
const { cardinality: h } =
|
|
168
|
-
return d.forEach((
|
|
169
|
-
const
|
|
170
|
-
|
|
171
|
-
p ===
|
|
136
|
+
return c;
|
|
137
|
+
const { relatedFeatures: d, relation: s } = v;
|
|
138
|
+
if (!s || !d)
|
|
139
|
+
return c;
|
|
140
|
+
const { cardinality: h } = s;
|
|
141
|
+
return d.forEach((m) => {
|
|
142
|
+
const f = m.attributes;
|
|
143
|
+
f && Object.keys(f).forEach((p) => {
|
|
144
|
+
p === l.fieldName && c.push(this._getChartOption({
|
|
172
145
|
value: o,
|
|
173
|
-
values:
|
|
174
|
-
formattedValues:
|
|
146
|
+
values: f,
|
|
147
|
+
formattedValues: r,
|
|
175
148
|
fieldName: i,
|
|
176
|
-
chartType:
|
|
149
|
+
chartType: a,
|
|
177
150
|
relatedFieldName: p,
|
|
178
151
|
hasMultipleRelatedFeatures: d?.length > 1,
|
|
179
152
|
fieldInfos: t,
|
|
180
153
|
color: n
|
|
181
154
|
}));
|
|
182
155
|
});
|
|
183
|
-
}), h && (h === "one-to-many" || h === "many-to-many") ?
|
|
156
|
+
}), h && (h === "one-to-many" || h === "many-to-many") ? c : [c[0]];
|
|
184
157
|
}
|
|
185
158
|
_getTooltip({ label: e, value: t, chartType: i }) {
|
|
186
159
|
return i === "pie-chart" ? `${e}` : `${e}: ${t}`;
|
|
187
160
|
}
|
|
188
161
|
_getChartOption(e) {
|
|
189
|
-
const { value: t, values: i, formattedValues:
|
|
190
|
-
fieldInfo:
|
|
162
|
+
const { value: t, values: i, formattedValues: r, fieldName: a, relatedFieldName: o, fieldInfos: n, chartType: c, hasMultipleRelatedFeatures: l, color: v } = e, { layer: d, graphic: s } = this, h = this.fieldInfoMap ?? /* @__PURE__ */ new Map(), { normalizeField: u, tooltipField: m } = t, f = u ? A(u) ? i[$(u).fieldName] : i[u] : null, p = te(a) && r?.[a] !== void 0 ? r[a] : o && i[o] !== void 0 ? i[o] : i[a] !== void 0 ? i[a] : r[a], x = p === void 0 ? null : p && f && typeof p == "number" && typeof f == "number" ? p / f : p, I = ie(n, a), g = V(a, d), C = (m && r[m] !== void 0 ? r[m] : X({
|
|
163
|
+
fieldInfo: I || new Q({ fieldName: g }),
|
|
191
164
|
expressionInfos: this.popupTemplate?.expressionInfos,
|
|
192
|
-
graphic:
|
|
165
|
+
graphic: s,
|
|
193
166
|
layer: d
|
|
194
|
-
})) ?? "", b =
|
|
195
|
-
if (A(
|
|
196
|
-
const T = h.get(
|
|
167
|
+
})) ?? "", b = r[g] ?? "", L = x != null ? typeof x == "number" ? x : Number(x) : null;
|
|
168
|
+
if (A(a)) {
|
|
169
|
+
const T = h.get(a.toLowerCase()), E = m ? h.get(m.toLowerCase()) : null, Y = T?.fieldName ?? a, F = l && m ? $(m).fieldName : E?.fieldName ?? m, P = (l && F ? i[F] : r[F] ?? (T && X({ fieldInfo: T, layer: d, graphic: s })) ?? T?.fieldName ?? o) ?? "", H = (l && o ? i[o] : r[Y]) ?? "";
|
|
197
170
|
return new N({
|
|
198
|
-
fieldName:
|
|
171
|
+
fieldName: a,
|
|
199
172
|
tooltip: this._getTooltip({
|
|
200
|
-
label:
|
|
201
|
-
value:
|
|
202
|
-
chartType:
|
|
173
|
+
label: P,
|
|
174
|
+
value: H,
|
|
175
|
+
chartType: c
|
|
203
176
|
}),
|
|
204
177
|
color: v,
|
|
205
178
|
value: L
|
|
206
179
|
});
|
|
207
180
|
}
|
|
208
181
|
return new N({
|
|
209
|
-
fieldName:
|
|
182
|
+
fieldName: a,
|
|
210
183
|
tooltip: this._getTooltip({
|
|
211
184
|
label: C,
|
|
212
185
|
value: b,
|
|
213
|
-
chartType:
|
|
186
|
+
chartType: c
|
|
214
187
|
}),
|
|
215
188
|
color: v,
|
|
216
189
|
value: L
|
|
@@ -222,28 +195,28 @@ class ue extends J {
|
|
|
222
195
|
}
|
|
223
196
|
async _getSeriesColors(e) {
|
|
224
197
|
const { color: t } = await import("@amcharts/amcharts5/index.js"), i = /* @__PURE__ */ new Map();
|
|
225
|
-
return e.forEach((
|
|
226
|
-
|
|
198
|
+
return e.forEach((r) => {
|
|
199
|
+
r.color && i.set(r, t(r.color.toCss(!0)));
|
|
227
200
|
}), i;
|
|
228
201
|
}
|
|
229
202
|
async _getRendererColors() {
|
|
230
|
-
const { color: e } = await import("@amcharts/amcharts5/index.js"), t = /* @__PURE__ */ new Map(), i = this._getRenderer(),
|
|
203
|
+
const { color: e } = await import("@amcharts/amcharts5/index.js"), t = /* @__PURE__ */ new Map(), i = this._getRenderer(), r = "default";
|
|
231
204
|
if (!i)
|
|
232
205
|
return t;
|
|
233
|
-
const
|
|
234
|
-
return
|
|
235
|
-
const
|
|
236
|
-
|
|
206
|
+
const a = await G(i);
|
|
207
|
+
return a.delete(r), Array.from(a.values()).every((n) => n?.length === 1) && Array.from(a.keys()).forEach((n) => {
|
|
208
|
+
const c = a.get(n)?.[0]?.toCss(!0);
|
|
209
|
+
c && t.set(n, e(c));
|
|
237
210
|
}), t;
|
|
238
211
|
}
|
|
239
212
|
async _createChart(e) {
|
|
240
213
|
const { activeMediaInfo: t } = this;
|
|
241
214
|
if (!e || !t)
|
|
242
215
|
return;
|
|
243
|
-
const { createRoot: i } = await import("../../chunks/chart-utils.js"),
|
|
244
|
-
this._chartRoot =
|
|
216
|
+
const { createRoot: i } = await import("../../chunks/chart-utils.js"), r = await i(e);
|
|
217
|
+
this._chartRoot = r, this._renderChart({
|
|
245
218
|
mediaInfo: t,
|
|
246
|
-
root:
|
|
219
|
+
root: r
|
|
247
220
|
});
|
|
248
221
|
}
|
|
249
222
|
_handleMediaKeyup(e) {
|
|
@@ -254,48 +227,48 @@ class ue extends J {
|
|
|
254
227
|
return !this.chartAnimationDisabled && !this._prefersReducedMotion;
|
|
255
228
|
}
|
|
256
229
|
_getChartAnimationMS() {
|
|
257
|
-
return this._canAnimateChart() ?
|
|
230
|
+
return this._canAnimateChart() ? oe : 0;
|
|
258
231
|
}
|
|
259
232
|
_getChartSeriesAnimationMS() {
|
|
260
|
-
return this._canAnimateChart() ?
|
|
233
|
+
return this._canAnimateChart() ? se : 0;
|
|
261
234
|
}
|
|
262
235
|
async _customizeChartTooltip(e, t = "horizontal") {
|
|
263
236
|
const { color: i } = await import("@amcharts/amcharts5/index.js");
|
|
264
237
|
e.setAll({
|
|
265
238
|
pointerOrientation: t
|
|
266
239
|
}), e.get("background")?.setAll({
|
|
267
|
-
stroke: i(
|
|
240
|
+
stroke: i(ne)
|
|
268
241
|
}), e.label.setAll({
|
|
269
242
|
direction: this._direction,
|
|
270
243
|
oversizedBehavior: "wrap",
|
|
271
|
-
maxWidth:
|
|
244
|
+
maxWidth: le
|
|
272
245
|
});
|
|
273
246
|
}
|
|
274
247
|
async _createPieChart(e, t) {
|
|
275
|
-
const [{ Tooltip: i }, { PieChart:
|
|
248
|
+
const [{ Tooltip: i }, { PieChart: r, PieSeries: a }] = await Promise.all([
|
|
276
249
|
import("@amcharts/amcharts5/index.js"),
|
|
277
250
|
import("@amcharts/amcharts5/percent.js")
|
|
278
|
-
]), { mediaInfo: o, root: n } = e, { title:
|
|
251
|
+
]), { mediaInfo: o, root: n } = e, { title: c } = o, l = 5, v = o?.altText || o?.title || "", d = n.container.children.push(r.new(n, {
|
|
279
252
|
role: "figure",
|
|
280
253
|
ariaLabel: v,
|
|
281
254
|
focusable: !0,
|
|
282
|
-
paddingBottom:
|
|
283
|
-
paddingTop:
|
|
284
|
-
paddingLeft:
|
|
285
|
-
paddingRight:
|
|
286
|
-
})),
|
|
255
|
+
paddingBottom: l,
|
|
256
|
+
paddingTop: l,
|
|
257
|
+
paddingLeft: l,
|
|
258
|
+
paddingRight: l
|
|
259
|
+
})), s = `{category}: {valuePercentTotal.formatNumber('0.00')}%
|
|
287
260
|
({value})`, h = i.new(n, {
|
|
288
|
-
labelText:
|
|
289
|
-
}), u = d.series.push(
|
|
290
|
-
name:
|
|
261
|
+
labelText: s
|
|
262
|
+
}), u = d.series.push(a.new(n, {
|
|
263
|
+
name: c,
|
|
291
264
|
valueField: w,
|
|
292
265
|
categoryField: M,
|
|
293
266
|
tooltip: h
|
|
294
267
|
}));
|
|
295
268
|
u.ticks.template.set("forceHidden", !0), u.labels.template.set("forceHidden", !0), u.slices.template.states.create("active", {
|
|
296
|
-
shiftRadius:
|
|
269
|
+
shiftRadius: l
|
|
297
270
|
}), this._customizeChartTooltip(h), u.slices.template.setAll({
|
|
298
|
-
ariaLabel:
|
|
271
|
+
ariaLabel: s,
|
|
299
272
|
focusable: !0,
|
|
300
273
|
templateField: "columnSettings"
|
|
301
274
|
}), u.data.setAll(t), u.appear(this._getChartSeriesAnimationMS()), d.appear(this._getChartAnimationMS()), d.root.dom.classList.toggle("chart-rendered", !0);
|
|
@@ -305,120 +278,120 @@ class ue extends J {
|
|
|
305
278
|
return e.forEach((i) => t = Math.min(i.value, t)), t;
|
|
306
279
|
}
|
|
307
280
|
async _createColumnChart(e, t, i) {
|
|
308
|
-
const [{ Tooltip:
|
|
281
|
+
const [{ Tooltip: r, Scrollbar: a }, { CategoryAxis: o, AxisRendererX: n, AxisRendererY: c, ValueAxis: l, ColumnSeries: v }] = await Promise.all([import("@amcharts/amcharts5/index.js"), import("@amcharts/amcharts5/xy.js")]), { mediaInfo: d, root: s } = t, { value: h, title: u } = d, { _direction: m } = this;
|
|
309
282
|
e.setAll({
|
|
310
283
|
wheelX: "panX",
|
|
311
284
|
wheelY: "zoomX"
|
|
312
285
|
});
|
|
313
|
-
const
|
|
314
|
-
renderer: n.new(
|
|
315
|
-
inversed:
|
|
286
|
+
const f = e.xAxes.push(o.new(s, {
|
|
287
|
+
renderer: n.new(s, {
|
|
288
|
+
inversed: m === "rtl"
|
|
316
289
|
}),
|
|
317
290
|
categoryField: M
|
|
318
291
|
}));
|
|
319
|
-
|
|
292
|
+
f.get("renderer").labels.template.setAll({
|
|
320
293
|
forceHidden: !0
|
|
321
294
|
});
|
|
322
|
-
const p = e.yAxes.push(
|
|
323
|
-
renderer:
|
|
295
|
+
const p = e.yAxes.push(l.new(s, {
|
|
296
|
+
renderer: c.new(s, { inside: !1 }),
|
|
324
297
|
min: this._getMinSeriesValue(h.series)
|
|
325
298
|
}));
|
|
326
299
|
p.get("renderer").labels.template.setAll({
|
|
327
|
-
direction:
|
|
300
|
+
direction: m
|
|
328
301
|
});
|
|
329
|
-
const
|
|
330
|
-
labelText:
|
|
331
|
-
}), g = e.series.push(v.new(
|
|
302
|
+
const x = "{categoryX}", I = r.new(s, {
|
|
303
|
+
labelText: x
|
|
304
|
+
}), g = e.series.push(v.new(s, {
|
|
332
305
|
name: u,
|
|
333
|
-
xAxis:
|
|
306
|
+
xAxis: f,
|
|
334
307
|
yAxis: p,
|
|
335
308
|
valueYField: w,
|
|
336
309
|
categoryXField: M,
|
|
337
|
-
tooltip:
|
|
310
|
+
tooltip: I
|
|
338
311
|
}));
|
|
339
|
-
this._customizeChartTooltip(
|
|
340
|
-
ariaLabel:
|
|
312
|
+
this._customizeChartTooltip(I), g.columns.template.setAll({
|
|
313
|
+
ariaLabel: x,
|
|
341
314
|
focusable: !0,
|
|
342
315
|
templateField: "columnSettings"
|
|
343
|
-
}), h.series.length > k && e.set("scrollbarX",
|
|
316
|
+
}), h.series.length > k && e.set("scrollbarX", a.new(s, {
|
|
344
317
|
orientation: "horizontal"
|
|
345
|
-
})),
|
|
318
|
+
})), f.data.setAll(i), g.data.setAll(i), g.appear(this._getChartSeriesAnimationMS()), e.appear(this._getChartAnimationMS());
|
|
346
319
|
}
|
|
347
320
|
async _createBarChart(e, t, i) {
|
|
348
|
-
const [{ Tooltip:
|
|
321
|
+
const [{ Tooltip: r, Scrollbar: a }, { CategoryAxis: o, AxisRendererX: n, AxisRendererY: c, ValueAxis: l, ColumnSeries: v }] = await Promise.all([import("@amcharts/amcharts5/index.js"), import("@amcharts/amcharts5/xy.js")]), { mediaInfo: d, root: s } = t, { value: h, title: u } = d, { _direction: m } = this;
|
|
349
322
|
e.setAll({
|
|
350
323
|
wheelX: "panY",
|
|
351
324
|
wheelY: "zoomY"
|
|
352
325
|
});
|
|
353
|
-
const
|
|
354
|
-
renderer:
|
|
326
|
+
const f = e.yAxes.push(o.new(s, {
|
|
327
|
+
renderer: c.new(s, {
|
|
355
328
|
inversed: !0
|
|
356
329
|
}),
|
|
357
330
|
categoryField: M
|
|
358
331
|
}));
|
|
359
|
-
|
|
332
|
+
f.get("renderer").labels.template.setAll({
|
|
360
333
|
forceHidden: !0
|
|
361
334
|
});
|
|
362
|
-
const p = e.xAxes.push(
|
|
363
|
-
renderer: n.new(
|
|
335
|
+
const p = e.xAxes.push(l.new(s, {
|
|
336
|
+
renderer: n.new(s, {
|
|
364
337
|
inside: !1,
|
|
365
|
-
inversed:
|
|
338
|
+
inversed: m === "rtl"
|
|
366
339
|
}),
|
|
367
340
|
min: this._getMinSeriesValue(h.series)
|
|
368
341
|
}));
|
|
369
342
|
p.get("renderer").labels.template.setAll({
|
|
370
|
-
direction:
|
|
343
|
+
direction: m
|
|
371
344
|
});
|
|
372
|
-
const
|
|
373
|
-
labelText:
|
|
374
|
-
}), g = e.series.push(v.new(
|
|
345
|
+
const x = "{categoryY}", I = r.new(s, {
|
|
346
|
+
labelText: x
|
|
347
|
+
}), g = e.series.push(v.new(s, {
|
|
375
348
|
name: u,
|
|
376
349
|
xAxis: p,
|
|
377
|
-
yAxis:
|
|
350
|
+
yAxis: f,
|
|
378
351
|
valueXField: w,
|
|
379
352
|
categoryYField: M,
|
|
380
|
-
tooltip:
|
|
353
|
+
tooltip: I
|
|
381
354
|
}));
|
|
382
|
-
this._customizeChartTooltip(
|
|
383
|
-
ariaLabel:
|
|
355
|
+
this._customizeChartTooltip(I, "vertical"), g.columns.template.setAll({
|
|
356
|
+
ariaLabel: x,
|
|
384
357
|
focusable: !0,
|
|
385
358
|
templateField: "columnSettings"
|
|
386
|
-
}), h.series.length > k && e.set("scrollbarY",
|
|
359
|
+
}), h.series.length > k && e.set("scrollbarY", a.new(s, {
|
|
387
360
|
orientation: "vertical"
|
|
388
|
-
})),
|
|
361
|
+
})), f.data.setAll(i), g.data.setAll(i), g.appear(this._getChartSeriesAnimationMS()), e.appear(this._getChartAnimationMS());
|
|
389
362
|
}
|
|
390
363
|
async _createLineChart(e, t, i) {
|
|
391
|
-
const [{ Tooltip:
|
|
364
|
+
const [{ Tooltip: r, Scrollbar: a }, { CategoryAxis: o, AxisRendererX: n, AxisRendererY: c, ValueAxis: l, LineSeries: v }] = await Promise.all([import("@amcharts/amcharts5/index.js"), import("@amcharts/amcharts5/xy.js")]), { root: d, mediaInfo: s } = t, { value: h, title: u } = s, { _direction: m } = this;
|
|
392
365
|
e.setAll({
|
|
393
366
|
wheelX: "panX",
|
|
394
367
|
wheelY: "zoomX"
|
|
395
368
|
});
|
|
396
|
-
const
|
|
369
|
+
const f = e.xAxes.push(o.new(d, {
|
|
397
370
|
renderer: n.new(d, {
|
|
398
|
-
inversed:
|
|
371
|
+
inversed: m === "rtl"
|
|
399
372
|
}),
|
|
400
373
|
categoryField: M
|
|
401
374
|
}));
|
|
402
|
-
|
|
375
|
+
f.get("renderer").labels.template.setAll({
|
|
403
376
|
forceHidden: !0
|
|
404
377
|
});
|
|
405
|
-
const p = e.yAxes.push(
|
|
406
|
-
renderer:
|
|
378
|
+
const p = e.yAxes.push(l.new(d, {
|
|
379
|
+
renderer: c.new(d, { inside: !1 }),
|
|
407
380
|
min: this._getMinSeriesValue(h.series)
|
|
408
381
|
}));
|
|
409
382
|
p.get("renderer").labels.template.setAll({
|
|
410
|
-
direction:
|
|
383
|
+
direction: m
|
|
411
384
|
});
|
|
412
|
-
const
|
|
413
|
-
getFillFromSprite: !
|
|
414
|
-
labelText:
|
|
385
|
+
const x = "{categoryX}", I = i[0]?.lineSettings?.stroke, g = r.new(d, {
|
|
386
|
+
getFillFromSprite: !I,
|
|
387
|
+
labelText: x
|
|
415
388
|
});
|
|
416
|
-
|
|
417
|
-
fill:
|
|
389
|
+
I && g.get("background")?.setAll({
|
|
390
|
+
fill: I
|
|
418
391
|
});
|
|
419
392
|
const C = e.series.push(v.new(d, {
|
|
420
393
|
name: u,
|
|
421
|
-
xAxis:
|
|
394
|
+
xAxis: f,
|
|
422
395
|
yAxis: p,
|
|
423
396
|
valueYField: w,
|
|
424
397
|
categoryXField: M,
|
|
@@ -426,19 +399,19 @@ class ue extends J {
|
|
|
426
399
|
}));
|
|
427
400
|
C.strokes.template.setAll({
|
|
428
401
|
templateField: "lineSettings"
|
|
429
|
-
}), this._customizeChartTooltip(g, "vertical"), h.series.length > k && e.set("scrollbarX",
|
|
402
|
+
}), this._customizeChartTooltip(g, "vertical"), h.series.length > k && e.set("scrollbarX", a.new(d, {
|
|
430
403
|
orientation: "horizontal"
|
|
431
|
-
})),
|
|
404
|
+
})), f.data.setAll(i), C.data.setAll(i), C.appear(this._getChartSeriesAnimationMS()), e.appear(this._getChartAnimationMS());
|
|
432
405
|
}
|
|
433
406
|
async _createXYChart(e, t) {
|
|
434
|
-
const { XYChart: i, XYCursor:
|
|
407
|
+
const { XYChart: i, XYCursor: r } = await import("@amcharts/amcharts5/xy.js"), { root: a, mediaInfo: o } = e, { type: n } = o, c = o?.altText || o?.title || "", l = a.container.children.push(i.new(a, {
|
|
435
408
|
role: "figure",
|
|
436
|
-
ariaLabel:
|
|
409
|
+
ariaLabel: c,
|
|
437
410
|
focusable: !0,
|
|
438
411
|
panX: !0,
|
|
439
412
|
panY: !0
|
|
440
413
|
}));
|
|
441
|
-
|
|
414
|
+
l.set("cursor", r.new(a, {})), n === "column-chart" && await this._createColumnChart(l, e, t), n === "bar-chart" && await this._createBarChart(l, e, t), n === "line-chart" && await this._createLineChart(l, e, t), l.root.dom.classList.toggle("chart-rendered", !0);
|
|
442
415
|
}
|
|
443
416
|
_clearMediaRefreshTimer() {
|
|
444
417
|
const { _refreshTimer: e } = this;
|
|
@@ -457,26 +430,26 @@ class ue extends J {
|
|
|
457
430
|
e?.type === "image" && e.refreshInterval > 0 && this._setRefreshTimeout(e);
|
|
458
431
|
}
|
|
459
432
|
_setRefreshTimeout(e) {
|
|
460
|
-
const { refreshInterval: t, value: i } = e,
|
|
433
|
+
const { refreshInterval: t, value: i } = e, r = t * 6e4;
|
|
461
434
|
this._updateMediaInfoTimestamp(i.sourceURL);
|
|
462
|
-
const
|
|
435
|
+
const a = window.setInterval(() => {
|
|
463
436
|
this._updateMediaInfoTimestamp(i.sourceURL);
|
|
464
|
-
},
|
|
465
|
-
this._refreshTimer =
|
|
437
|
+
}, r);
|
|
438
|
+
this._refreshTimer = a;
|
|
466
439
|
}
|
|
467
440
|
_getImageSource(e, t) {
|
|
468
|
-
const i = e.includes("?") ? "&" : "?", [
|
|
469
|
-
return `${
|
|
441
|
+
const i = e.includes("?") ? "&" : "?", [r, a = ""] = e.split("#");
|
|
442
|
+
return `${r}${i}timestamp=${t}${a ? "#" : ""}${a}`;
|
|
470
443
|
}
|
|
471
444
|
_updateChartElement(e) {
|
|
472
445
|
this._chartRoot?.dispose(), this._chartRoot = void 0, e && this._createChart(e);
|
|
473
446
|
}
|
|
474
447
|
render() {
|
|
475
|
-
return
|
|
448
|
+
return _`<div class="root" @keyup=${this._handleMediaKeyup}><arcgis-feature-element-info .heading=${this.heading} .description=${this.description} .headingLevel=${this.headingLevel}></arcgis-feature-element-info>${this._renderMedia()}</div>`;
|
|
476
449
|
}
|
|
477
450
|
_renderMedia() {
|
|
478
451
|
const { formattedMediaInfoCount: e, activeMediaInfoIndex: t } = this, i = this._renderMediaText();
|
|
479
|
-
return e ?
|
|
452
|
+
return e ? _`<div class="container">${this._renderMediaInfo()}<div class="item-navigation">${i}${e > 1 ? _`<div class="pagination">${this._renderMediaPageButton("previous")}<span class="pagination-text">${K(this.messages?.pageText ?? "", {
|
|
480
453
|
index: t + 1,
|
|
481
454
|
total: e
|
|
482
455
|
})}</span>${this._renderMediaPageButton("next")}</div>` : null}</div></div>` : null;
|
|
@@ -485,18 +458,18 @@ class ue extends J {
|
|
|
485
458
|
const { activeMediaInfo: e } = this;
|
|
486
459
|
if (!e)
|
|
487
460
|
return null;
|
|
488
|
-
const t = e?.title ?
|
|
489
|
-
return t || i ?
|
|
461
|
+
const t = e?.title ? _`<div class="item-title" .innerHTML=${z.sanitize(e.title) ?? ""}></div>` : null, i = e?.caption ? _`<div class="item-caption" .innerHTML=${z.sanitize(e.caption) ?? ""}></div>` : null;
|
|
462
|
+
return t || i ? _`<div class="item-text">${t}${i}</div>` : null;
|
|
490
463
|
}
|
|
491
464
|
_renderImageMediaInfo(e) {
|
|
492
465
|
if (!e.value)
|
|
493
466
|
return null;
|
|
494
|
-
const { _refreshIntervalInfo: t } = this, { value: i, refreshInterval:
|
|
495
|
-
return (
|
|
467
|
+
const { _refreshIntervalInfo: t } = this, { value: i, refreshInterval: r, altText: a, title: o } = e, { sourceURL: n, linkURL: c } = i, v = ae(c ?? void 0) ? "_blank" : "_self", d = v === "_blank" ? "noreferrer" : "", s = r ? t : null, h = s ? s.sourceURL : n, u = _`<img alt=${(a || o) ?? y} src=${h ?? void 0 ?? y}>`;
|
|
468
|
+
return (c ? _`<a href=${c ?? y} rel=${d ?? y} target=${v ?? y} title=${o ?? y}>${u}</a>` : null) ?? u;
|
|
496
469
|
}
|
|
497
470
|
_renderChartMediaInfo(e) {
|
|
498
471
|
const { activeMediaInfoIndex: t, formattedMediaInfoCount: i } = this;
|
|
499
|
-
return
|
|
472
|
+
return U(`media-${e.type}-${t}-${i}`, _`<div class="chart" ${B(this._updateChartElement)}></div>`);
|
|
500
473
|
}
|
|
501
474
|
_renderMediaInfoType() {
|
|
502
475
|
const { activeMediaInfo: e } = this;
|
|
@@ -504,31 +477,31 @@ class ue extends J {
|
|
|
504
477
|
}
|
|
505
478
|
_renderMediaInfo() {
|
|
506
479
|
const { activeMediaInfo: e } = this;
|
|
507
|
-
return e ?
|
|
480
|
+
return e ? _`<div class="item-container"><div class="item">${this._renderMediaInfoType()}</div></div>` : null;
|
|
508
481
|
}
|
|
509
482
|
_renderMediaPageButton(e) {
|
|
510
483
|
if (this.formattedMediaInfoCount < 2)
|
|
511
484
|
return null;
|
|
512
|
-
const t = e === "previous", i = t ? this.messages?.previous ?? "" : this.messages?.next ?? "",
|
|
513
|
-
return
|
|
485
|
+
const t = e === "previous", i = t ? this.messages?.previous ?? "" : this.messages?.next ?? "", r = t ? "chevron-left" : "chevron-right", a = t ? this.previous : this.next;
|
|
486
|
+
return _`<button .ariaLabel=${i} class="pagination-button" @click=${a} tabindex=0 title=${i ?? y} type=button><calcite-icon flip-rtl class="pagination-icon" .icon=${r} scale=s></calcite-icon></button>`;
|
|
514
487
|
}
|
|
515
488
|
async _renderChart(e) {
|
|
516
|
-
const { root: t, mediaInfo: i } = e, { value:
|
|
489
|
+
const { root: t, mediaInfo: i } = e, { value: r, type: a } = i, [{ default: o }, { default: n }, { default: c }, { esriChartColorSet: l }, { ColorSet: v, Theme: d }] = await Promise.all([
|
|
517
490
|
import("@amcharts/amcharts5/themes/Animated.js"),
|
|
518
491
|
import("@amcharts/amcharts5/themes/Dark.js"),
|
|
519
492
|
import("@amcharts/amcharts5/themes/Responsive.js"),
|
|
520
493
|
import("../../chunks/chartCommon.js"),
|
|
521
494
|
import("@amcharts/amcharts5/index.js")
|
|
522
|
-
]),
|
|
523
|
-
|
|
524
|
-
const h = [
|
|
525
|
-
|
|
526
|
-
const u = await this._getRendererColors(),
|
|
495
|
+
]), s = d.new(t);
|
|
496
|
+
s.rule("ColorSet").set("colors", l), s.rule("ColorSet").set("reuse", !0);
|
|
497
|
+
const h = [c.new(t), s];
|
|
498
|
+
Z(this.el) === "dark" && h.push(n.new(t)), this._canAnimateChart() && h.push(o.new(t)), t.setThemes(h);
|
|
499
|
+
const u = await this._getRendererColors(), m = await this._getSeriesColors(r.series), f = v.new(t, {}), p = m.get(r.series[0]), x = p ? {
|
|
527
500
|
lineSettings: {
|
|
528
501
|
stroke: p
|
|
529
502
|
}
|
|
530
|
-
} : void 0,
|
|
531
|
-
const b =
|
|
503
|
+
} : void 0, I = r.series.map((g, C) => {
|
|
504
|
+
const b = m.get(g) || u.get(g.fieldName) || f.getIndex(C);
|
|
532
505
|
return {
|
|
533
506
|
[M]: g.tooltip,
|
|
534
507
|
[w]: g.value,
|
|
@@ -536,13 +509,13 @@ class ue extends J {
|
|
|
536
509
|
fill: b,
|
|
537
510
|
stroke: b
|
|
538
511
|
},
|
|
539
|
-
...
|
|
512
|
+
...x
|
|
540
513
|
};
|
|
541
|
-
}).filter((g) =>
|
|
542
|
-
|
|
514
|
+
}).filter((g) => a === "pie-chart" ? g.value != null && g.value > 0 : !0);
|
|
515
|
+
a === "pie-chart" ? this._createPieChart(e, I) : this._createXYChart(e, I);
|
|
543
516
|
}
|
|
544
517
|
}
|
|
545
|
-
|
|
518
|
+
D("arcgis-feature-media", ce);
|
|
546
519
|
export {
|
|
547
|
-
|
|
520
|
+
ce as ArcgisFeatureMedia
|
|
548
521
|
};
|