@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,287 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as T } from "../../chunks/runtime.js";
|
|
3
|
-
import { html as o } from "lit";
|
|
4
|
-
import { classes as y } from "@arcgis/toolkit/dom";
|
|
5
|
-
import { isLayerFromCatalog as S } from "@arcgis/core/layers/catalog/catalogUtils.js";
|
|
6
|
-
import { LitElement as A, safeClassMap as h, nothing as r, safeStyleMap as M } from "@arcgis/lumina";
|
|
7
|
-
import { createRef as _, ref as v } from "lit/directives/ref.js";
|
|
8
|
-
import { g as I, b as w } from "../../chunks/action-utils.js";
|
|
9
|
-
import { s as L } from "../../chunks/component-utils.js";
|
|
10
|
-
import { s as E } from "../../chunks/layer-list.js";
|
|
11
|
-
import { u as x } from "../../chunks/useT9n.js";
|
|
12
|
-
const D = {
|
|
13
|
-
hideChildren: "hide-children"
|
|
14
|
-
};
|
|
15
|
-
function O({
|
|
16
|
-
exclusive: s,
|
|
17
|
-
visible: e,
|
|
18
|
-
visibilityAppearance: t
|
|
19
|
-
}) {
|
|
20
|
-
const i = t === "checkbox";
|
|
21
|
-
return e ? s ? "circle-f" : i ? "check-square-f" : "view-visible" : s ? "circle" : i ? "square" : "view-hide";
|
|
22
|
-
}
|
|
23
|
-
function R({
|
|
24
|
-
connectionStatus: s,
|
|
25
|
-
publishing: e
|
|
26
|
-
}) {
|
|
27
|
-
return s ? s === "connected" ? "beacon" : "offline" : e ? "square" : "bullet-point";
|
|
28
|
-
}
|
|
29
|
-
function P(s) {
|
|
30
|
-
return s?.listMode === D.hideChildren;
|
|
31
|
-
}
|
|
32
|
-
function k(s) {
|
|
33
|
-
const e = (s?.layer && F(s.layer) ? s.layer.layer : void 0) ?? s?.layer;
|
|
34
|
-
return e ? e.type === "catalog" ? !1 : U(e) ?? !0 : !1;
|
|
35
|
-
}
|
|
36
|
-
function F(s) {
|
|
37
|
-
return s != null && "layer" in s && s.layer != null;
|
|
38
|
-
}
|
|
39
|
-
function U(s) {
|
|
40
|
-
const e = V(s);
|
|
41
|
-
return e != null && "supportsDynamicLayers" in e ? e.supportsDynamicLayers : void 0;
|
|
42
|
-
}
|
|
43
|
-
function V(s) {
|
|
44
|
-
return s && "capabilities" in s && s.capabilities != null && "exportMap" in s.capabilities ? s.capabilities.exportMap : void 0;
|
|
45
|
-
}
|
|
46
|
-
function B(s) {
|
|
47
|
-
return s?.getAttribute("data-item");
|
|
48
|
-
}
|
|
49
|
-
function G(s) {
|
|
50
|
-
const { children: e, error: t } = s, i = "incompatible" in s ? s.incompatible : !1;
|
|
51
|
-
return !!e?.filter((n) => !n.hidden).length && !t && !i;
|
|
52
|
-
}
|
|
53
|
-
function N(s) {
|
|
54
|
-
for (const e of s)
|
|
55
|
-
for (const t of e)
|
|
56
|
-
if (t.type === "button" || t.type === "toggle")
|
|
57
|
-
return t;
|
|
58
|
-
}
|
|
59
|
-
function C(s, e) {
|
|
60
|
-
const t = s.parent, i = s.layer;
|
|
61
|
-
if (i?.type !== "map-image" || !i.sourceJSON || !t)
|
|
62
|
-
return !1;
|
|
63
|
-
const n = i.sourceJSON.layers;
|
|
64
|
-
if (!n)
|
|
65
|
-
return !1;
|
|
66
|
-
const a = n.find((l) => s.id === l.id), c = e === "footprints" ? "Feature Layer" : "Catalog Dynamic Group Layer";
|
|
67
|
-
return a?.type !== c ? !1 : n.find((l) => l.id === t.id)?.type === "Catalog Layer";
|
|
68
|
-
}
|
|
69
|
-
class H extends A {
|
|
70
|
-
constructor() {
|
|
71
|
-
super(...arguments), this._itemRef = _(), this._noticeRef = _(), this.messages = x(), this.hideCatalogLayerList = !1, this.showCloseButton = !1, this.showCollapseButton = !1, this.showErrors = !1, this.showFilter = !1, this.showHeading = !1, this.hideStatusIndicators = !1, this.showTemporaryLayerIndicators = !1, this.showTemporaryTableIndicators = !1, this.dragEnabled = !1, this.listModeDisabled = !1, this.autoDestroyDisabled = !1;
|
|
72
|
-
}
|
|
73
|
-
static {
|
|
74
|
-
this.properties = { _title: 16, _renderedItemStatus: 16, _renderedItemTemporaryIcon: 16, _renderedItemToggle: 16, _renderedPanel: 16, _renderedPanelAction: 16, _renderedActions: 16, _renderedActionMenu: 16, _renderedActionMenuContent: 16, _renderedCatalogFootprintIcon: 16, _renderedCatalogDynamicIcon: 16, _renderedCatalogSelectNode: 16, _renderedChildList: 16, _hasTables: 16, _renderedTablesItem: 16, _renderedItemMessage: 16, _singleAction: 16, _filteredSections: 16, _actionsCount: 16, activeItem: 0, canMove: 0, css: 0, displayMode: 1, hideCatalogLayerList: 5, showCloseButton: 5, showCollapseButton: 5, showErrors: 5, showFilter: 5, showHeading: 5, hideStatusIndicators: 5, showTemporaryLayerIndicators: 5, showTemporaryTableIndicators: 5, dragEnabled: 5, item: 0, layerTablesEnabled: 0, listModeDisabled: 5, handleAction: 0, handlePanelOpen: 0, handleCatalogOpen: 0, handleTablesOpen: 0, handleSelectedDragItemLayerUidChange: 0, handleTooltipReferenceChange: 0, parent: 0, parentTitles: 0, rootGroupUid: 1, selectionMode: 1, selectedItems: 0, selectedDragItemLayerUid: 1, visibilityAppearance: 1, autoDestroyDisabled: 5 };
|
|
75
|
-
}
|
|
76
|
-
static {
|
|
77
|
-
this.styles = E;
|
|
78
|
-
}
|
|
79
|
-
get _title() {
|
|
80
|
-
const { messages: e } = this;
|
|
81
|
-
return this.item.title || ("untitledTable" in e ? e.untitledTable : e.untitledLayer);
|
|
82
|
-
}
|
|
83
|
-
get _renderedItemStatus() {
|
|
84
|
-
const { item: e, parent: t, hideStatusIndicators: i, css: n } = this;
|
|
85
|
-
if (!i)
|
|
86
|
-
return null;
|
|
87
|
-
const { publishing: a } = e, c = "updating" in e && e.updating && !t, l = "connectionStatus" in e ? e.connectionStatus : void 0, u = !!l;
|
|
88
|
-
return o`<calcite-icon class=${h(y(n.statusIndicator, {
|
|
89
|
-
[n.publishing]: a
|
|
90
|
-
}, "updating" in n && {
|
|
91
|
-
[n.updating]: c
|
|
92
|
-
}, "connectionStatus" in n && {
|
|
93
|
-
[n.connectionStatus]: u
|
|
94
|
-
}, "connectionStatusConnected" in n && {
|
|
95
|
-
[n.connectionStatusConnected]: u && l === "connected"
|
|
96
|
-
}))} .icon=${R({ connectionStatus: l, publishing: a })} scale=s slot=content-end></calcite-icon>`;
|
|
97
|
-
}
|
|
98
|
-
get _renderedItemTemporaryIcon() {
|
|
99
|
-
const { item: e, showTemporaryLayerIndicators: t, showTemporaryTableIndicators: i, css: n } = this, { layer: a } = e, c = a && "persistenceEnabled" in a && (S(a) || !a.persistenceEnabled);
|
|
100
|
-
return (t || i) && c ? o`<calcite-icon class=${h(n.itemTemporaryIcon)} icon=temporary scale=s slot=content-start title=${this.messages.temporary ?? r}></calcite-icon>` : null;
|
|
101
|
-
}
|
|
102
|
-
get _renderedItemToggle() {
|
|
103
|
-
const { item: e, parent: t, messages: i, visibilityAppearance: n, css: a } = this;
|
|
104
|
-
if (!("visible" in e) || !("layerVisibility" in i) || !("visibleToggle" in a) || !n)
|
|
105
|
-
return null;
|
|
106
|
-
const { visible: c } = e, l = this._getParentVisibilityMode(t);
|
|
107
|
-
if (l === "inherited")
|
|
108
|
-
return null;
|
|
109
|
-
const u = O({
|
|
110
|
-
visible: c,
|
|
111
|
-
exclusive: l === "exclusive",
|
|
112
|
-
visibilityAppearance: n
|
|
113
|
-
}), d = n === "checkbox", g = i.layerVisibility;
|
|
114
|
-
return o`<calcite-action class=${h(a.visibleToggle)} .icon=${d ? u : void 0} @click=${() => this._toggleVisibility(e, t)} scale=s .slot=${d ? "actions-start" : "actions-end"} .text=${g ?? ""} title=${g ?? r}>${d ? null : o`<calcite-icon class=${h(y({
|
|
115
|
-
[a.visibleIcon]: l !== "exclusive" && c
|
|
116
|
-
}))} .icon=${u} scale=s></calcite-icon>`}</calcite-action>`;
|
|
117
|
-
}
|
|
118
|
-
get _renderedPanel() {
|
|
119
|
-
const { panel: e } = this.item;
|
|
120
|
-
return e?.open && !e.disabled && !e.flowEnabled ? o`<div class=${h(this.css.itemContentBottom)} slot=content-bottom>${/* TODO: [MIGRATION] Rewrite this widget to web component first, and then change it's usage to web component style */
|
|
121
|
-
e.render()}</div>` : null;
|
|
122
|
-
}
|
|
123
|
-
get _renderedPanelAction() {
|
|
124
|
-
const { panel: e } = this.item;
|
|
125
|
-
if (!e?.visible)
|
|
126
|
-
return null;
|
|
127
|
-
const { open: t, title: i, disabled: n } = e, a = {
|
|
128
|
-
icon: e.icon,
|
|
129
|
-
image: e.image,
|
|
130
|
-
indicator: !1
|
|
131
|
-
};
|
|
132
|
-
return o`<calcite-action .active=${t} .disabled=${n} .icon=${I(a)} @click=${() => this._togglePanel(e)} scale=s slot=actions-end .text=${i ?? ""} title=${i ?? void 0 ?? r}>${this._renderFallbackIcon(e)}</calcite-action>`;
|
|
133
|
-
}
|
|
134
|
-
get _renderedActions() {
|
|
135
|
-
switch (this._actionsCount) {
|
|
136
|
-
case 0:
|
|
137
|
-
return null;
|
|
138
|
-
case 1:
|
|
139
|
-
return this._singleAction;
|
|
140
|
-
default:
|
|
141
|
-
return this._renderedActionMenu;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
get _renderedActionMenu() {
|
|
145
|
-
const { item: e, messages: t } = this, i = t.options;
|
|
146
|
-
return o`<calcite-action-menu appearance=transparent .label=${t.menu ?? ""} .open=${e.actionsOpen} overlay-positioning=fixed placement=bottom-end scale=s slot=actions-end @calciteActionMenuOpen=${this._onActionMenuOpen}><calcite-action icon=ellipsis scale=s slot=trigger .text=${i ?? ""} title=${i ?? r}></calcite-action>${this._renderedActionMenuContent}</calcite-action-menu>`;
|
|
147
|
-
}
|
|
148
|
-
get _renderedActionMenuContent() {
|
|
149
|
-
return this._filteredSections.toArray().map((e) => o`<calcite-action-group>${e.toArray().map((t) => this._renderAction({
|
|
150
|
-
action: t,
|
|
151
|
-
textEnabled: !0
|
|
152
|
-
}))}</calcite-action-group>`);
|
|
153
|
-
}
|
|
154
|
-
get _renderedCatalogFootprintIcon() {
|
|
155
|
-
const { css: e } = this, t = this.item.layer, i = t?.type === "catalog-footprint", n = t?.type === "sublayer" && C(t, "footprints");
|
|
156
|
-
return "itemCatalogIcon" in e && (i || n) ? o`<calcite-icon class=${h(e.itemCatalogIcon)} icon=footprint scale=s slot=content-start></calcite-icon>` : null;
|
|
157
|
-
}
|
|
158
|
-
get _renderedCatalogDynamicIcon() {
|
|
159
|
-
const { css: e } = this, t = this.item.layer, i = t?.type === "catalog-dynamic-group", n = t?.type === "sublayer" && C(t, "layers-in-view");
|
|
160
|
-
return "itemCatalogIcon" in e && (i || n) ? o`<calcite-icon class=${h(e.itemCatalogIcon)} icon=catalog-dataset scale=s slot=content-start></calcite-icon>` : null;
|
|
161
|
-
}
|
|
162
|
-
get _renderedCatalogSelectNode() {
|
|
163
|
-
const { _title: e, item: t, hideCatalogLayerList: i } = this;
|
|
164
|
-
if (!("visible" in t))
|
|
165
|
-
return;
|
|
166
|
-
const { layer: n } = t, a = n?.type === "catalog-dynamic-group";
|
|
167
|
-
return i && a ? o`<calcite-action .disabled=${!n.visible} icon=chevron-right icon-flip-rtl @click=${() => this._triggerOnCatalogOpen(t)} scale=s slot=actions-end .text=${e}></calcite-action>` : null;
|
|
168
|
-
}
|
|
169
|
-
get _renderedChildList() {
|
|
170
|
-
const { dragEnabled: e, item: t, rootGroupUid: i, listModeDisabled: n, selectionMode: a, displayMode: c } = this;
|
|
171
|
-
if (!("children" in t))
|
|
172
|
-
return;
|
|
173
|
-
const l = [...this.parentTitles ?? [], t.title], { children: u, layer: d } = t, g = d?.type !== "catalog-dynamic-group" && G(t), f = n ? !1 : P(d), m = d?.type === "group", $ = !f && !g && e && m, b = e ? "childrenSortable" in t && t.childrenSortable && k(t) : !1;
|
|
174
|
-
return g || $ ? o`<calcite-list .canPull=${(p) => this.canMove ? this.canMove(p, "pull") : !1} .canPut=${(p) => this.canMove ? this.canMove(p, "put") : !1} data-item=${t ?? r} data-layer-type=${i ?? r} .displayMode=${c} .dragEnabled=${b} .group=${m ? i : `${i}-${d?.uid}`} .label=${t.title} selection-appearance=border .selectionMode=${a}>${u?.filter((p) => !p.hidden && (this.showErrors || !p.error)).toArray().map((p) => this._renderItem(p, t, l))}${this._renderedTablesItem}</calcite-list>` : null;
|
|
175
|
-
}
|
|
176
|
-
get _hasTables() {
|
|
177
|
-
const { layerTablesEnabled: e } = this, t = this.item.layer;
|
|
178
|
-
if (!e || !t)
|
|
179
|
-
return !1;
|
|
180
|
-
switch (t.type) {
|
|
181
|
-
case "knowledge-graph":
|
|
182
|
-
return e.includes(t.type) && "tables" in t && !!t.tables?.length;
|
|
183
|
-
case "map-image":
|
|
184
|
-
case "tile":
|
|
185
|
-
return e.includes(t.type) && "subtables" in t && !!t.subtables?.length;
|
|
186
|
-
default:
|
|
187
|
-
return !1;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
get _renderedTablesItem() {
|
|
191
|
-
const { item: e, messages: t, css: i } = this, { layer: n } = e;
|
|
192
|
-
return "itemTableIcon" in i && "visible" in e && "tables" in t && this._hasTables ? o`<calcite-list-item class=${h(i.item)} data-layer-id=${n?.id ?? r} drag-disabled .label=${t.tables} title=${t.tables ?? r} @calciteListItemSelect=${() => this._triggerOnTablesOpen(e)}><calcite-icon class=${h(i.itemTableIcon)} icon=table scale=s slot=content-start></calcite-icon><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>` : null;
|
|
193
|
-
}
|
|
194
|
-
get _renderedItemMessage() {
|
|
195
|
-
const { item: e, messages: t, css: i } = this;
|
|
196
|
-
return e.error ? o`<div class=${h(i.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s width=full><div slot=message>${"tableError" in t ? t.tableError : t.layerError}</div></calcite-notice></div>` : "incompatible" in e && e.incompatible && "layerIncompatible" in t ? o`<div class=${h(i.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s tabindex=0 width=full ${v(this._noticeRef)}><div slot=message>${t.layerIncompatible}</div></calcite-notice></div>` : null;
|
|
197
|
-
}
|
|
198
|
-
get _singleAction() {
|
|
199
|
-
return this._renderAction({
|
|
200
|
-
action: N(this._filteredSections),
|
|
201
|
-
textEnabled: !1
|
|
202
|
-
});
|
|
203
|
-
}
|
|
204
|
-
get _filteredSections() {
|
|
205
|
-
return this.item.actionsSections.map((e) => e.filter((t) => t.visible));
|
|
206
|
-
}
|
|
207
|
-
get _actionsCount() {
|
|
208
|
-
return this.item.actionsSections.reduce((e, t) => e + t.length, 0);
|
|
209
|
-
}
|
|
210
|
-
async destroy() {
|
|
211
|
-
await this.manager.destroy();
|
|
212
|
-
}
|
|
213
|
-
willUpdate() {
|
|
214
|
-
this._itemRef.value && this._focusSelectedDragEl(this._itemRef.value, this.item), this._noticeRef.value && this._setTooltipReference(this._noticeRef.value);
|
|
215
|
-
}
|
|
216
|
-
updated() {
|
|
217
|
-
this._itemRef.value && this._focusSelectedDragEl(this._itemRef.value, this.item), this._noticeRef.value && this._removeTooltipReference();
|
|
218
|
-
}
|
|
219
|
-
_onActionMenuOpen(e) {
|
|
220
|
-
this.item.actionsOpen = e.currentTarget.open;
|
|
221
|
-
}
|
|
222
|
-
_setTooltipReference(e) {
|
|
223
|
-
this.handleTooltipReferenceChange?.(this.item.layer?.uid, e);
|
|
224
|
-
}
|
|
225
|
-
_removeTooltipReference() {
|
|
226
|
-
this.handleTooltipReferenceChange?.(this.item.layer?.uid, null);
|
|
227
|
-
}
|
|
228
|
-
_triggerAction(e, t) {
|
|
229
|
-
!t || !e || (t.type === "toggle" && (t.value = !t.value), this.handleAction(t, e));
|
|
230
|
-
}
|
|
231
|
-
_triggerOnTablesOpen(e) {
|
|
232
|
-
!e || !this.handleTablesOpen || this.handleTablesOpen(e);
|
|
233
|
-
}
|
|
234
|
-
_triggerOnCatalogOpen(e) {
|
|
235
|
-
e && this.handleCatalogOpen?.(e);
|
|
236
|
-
}
|
|
237
|
-
_focusSelectedDragEl(e, t) {
|
|
238
|
-
this.selectedDragItemLayerUid === t.layer?.uid && (L(e), this.handleSelectedDragItemLayerUidChange?.(null));
|
|
239
|
-
}
|
|
240
|
-
_handleCalciteListItemToggle(e, t) {
|
|
241
|
-
e.stopPropagation(), t.open = e.target.expanded;
|
|
242
|
-
}
|
|
243
|
-
_getParentVisibilityMode(e) {
|
|
244
|
-
return e && "visibilityMode" in e ? e.visibilityMode : null;
|
|
245
|
-
}
|
|
246
|
-
_handleCalciteListItemSelect(e, t, i) {
|
|
247
|
-
if (B(e.target) !== t)
|
|
248
|
-
return;
|
|
249
|
-
const n = this._getParentVisibilityMode(i);
|
|
250
|
-
this.selectionMode !== "none" || n === "inherited" || this._toggleVisibility(t, i);
|
|
251
|
-
}
|
|
252
|
-
_togglePanel(e) {
|
|
253
|
-
e.open = !e.open, e.open && this.handlePanelOpen();
|
|
254
|
-
}
|
|
255
|
-
_toggleVisibility(e, t) {
|
|
256
|
-
if (!e || !("visible" in e))
|
|
257
|
-
return;
|
|
258
|
-
this._getParentVisibilityMode(t) === "exclusive" && e.visible || (e.visible = !e.visible);
|
|
259
|
-
}
|
|
260
|
-
render() {
|
|
261
|
-
const e = this.parentTitles ?? [], { _title: t, item: i, activeItem: n, selectionMode: a, selectedItems: c, messages: l, parent: u, css: d } = this, g = "visibleAtCurrentTimeExtent" in i && "layerInvisibleAtTime" in l && !i.visibleAtCurrentTimeExtent ? `${t} (${l.layerInvisibleAtTime})` : "visibleAtCurrentScale" in i && "layerInvisibleAtScale" in l && !i.visibleAtCurrentScale ? `${t} (${l.layerInvisibleAtScale})` : t, f = "parent" in i && i.parent?.layer?.type === "catalog", { layer: m } = i, $ = "visibleAtCurrentScale" in i && !i.visibleAtCurrentScale || "visibleAtCurrentTimeExtent" in i && !i.visibleAtCurrentTimeExtent;
|
|
262
|
-
return o`<calcite-list-item class=${h(y(d.item, "itemActive" in d && { [d.itemActive]: n === i }))} data-item=${i ?? r} data-layer-id=${m?.id ?? r} .dragDisabled=${!("sortable" in i && i.sortable) || f} id=${m?.uid ?? r} .label=${t} .metadata=${{ parentTitles: e, _title: t }} .expanded=${"open" in i && i.open} .selected=${a !== "none" ? c.includes(i) : !1} title=${g ?? r} .unavailable=${$} .value=${m?.uid} @calciteListItemSelect=${(b) => "visible" in i && this._handleCalciteListItemSelect(b, i, u)} @calciteListItemToggle=${(b) => "open" in i && this._handleCalciteListItemToggle(b, i)} ${v(this._itemRef)}>${this._renderedCatalogFootprintIcon}${this._renderedCatalogDynamicIcon}${this._renderedItemStatus}${this._renderedItemToggle}${this._renderedCatalogSelectNode}${this._renderedItemTemporaryIcon}${this._renderedChildList}${this._renderedItemMessage}${this._renderedPanel}${this._renderedPanelAction}${this._renderedActions}</calcite-list-item>`;
|
|
263
|
-
}
|
|
264
|
-
_renderAction(e) {
|
|
265
|
-
const { item: t } = this, { action: i, textEnabled: n } = e;
|
|
266
|
-
if (!i)
|
|
267
|
-
return null;
|
|
268
|
-
const { active: a, disabled: c, title: l, type: u, indicator: d } = i;
|
|
269
|
-
return o`<calcite-action .active=${u === "toggle" ? i.value : !1} data-action-id=${i.id ?? r} .disabled=${c} .icon=${I(i)} .indicator=${d} .loading=${a} @click=${() => this._triggerAction(t, i)} scale=s slot=${(n ? void 0 : "actions-end") ?? r} .text=${l ?? ""} .textEnabled=${n} title=${l ?? void 0 ?? r}>${this._renderFallbackIcon(i)}</calcite-action>`;
|
|
270
|
-
}
|
|
271
|
-
_renderFallbackIcon(e) {
|
|
272
|
-
const { css: t } = this, { icon: i } = e;
|
|
273
|
-
if (i)
|
|
274
|
-
return null;
|
|
275
|
-
const n = "image" in e ? e.image : void 0, a = {
|
|
276
|
-
[t.itemActionImage]: !!n
|
|
277
|
-
};
|
|
278
|
-
return n ? o`<span aria-hidden=true class=${h(y(t.itemActionIcon, a))} style=${M(w(n))}></span>` : null;
|
|
279
|
-
}
|
|
280
|
-
_renderItem(e, t, i = []) {
|
|
281
|
-
return o`<arcgis-layer-list-item .activeItem=${this.activeItem} .canMove=${this.canMove} .css=${this.css} .displayMode=${this.displayMode} .dragEnabled=${this.dragEnabled} .item=${e} .layerTablesEnabled=${this.layerTablesEnabled} .listModeDisabled=${this.listModeDisabled} .parent=${t} .parentTitles=${i} .rootGroupUid=${this.rootGroupUid} .selectedDragItemLayerUid=${this.selectedDragItemLayerUid} .selectedItems=${this.selectedItems} .selectionMode=${this.selectionMode} .visibilityAppearance=${this.visibilityAppearance} .handleAction=${this.handleAction} .handleCatalogOpen=${this.handleCatalogOpen} .handlePanelOpen=${this.handlePanelOpen} .handleSelectedDragItemLayerUidChange=${this.handleSelectedDragItemLayerUidChange} .handleTablesOpen=${this.handleTablesOpen} .handleTooltipReferenceChange=${this.handleTooltipReferenceChange} .hideCatalogLayerList=${this.hideCatalogLayerList} .showCloseButton=${this.showCloseButton} .showCollapseButton=${this.showCollapseButton} .showErrors=${this.showErrors} .showFilter=${this.showFilter} .showHeading=${this.showHeading} .hideStatusIndicators=${this.hideStatusIndicators} .showTemporaryLayerIndicators=${this.showTemporaryLayerIndicators} .showTemporaryTableIndicators=${this.showTemporaryTableIndicators}></arcgis-layer-list-item>`;
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
T("arcgis-layer-list-item", H);
|
|
285
|
-
export {
|
|
286
|
-
H as ArcgisLayerListItem
|
|
287
|
-
};
|
|
File without changes
|
|
File without changes
|