@arcgis/map-components 5.2.0-next.96 → 5.2.0-next.98
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/{GIQDIWW4.js → 22VFTYTN.js} +1 -1
- package/dist/cdn/367Z3TKY.js +2 -0
- package/dist/cdn/{QTGJ2TIJ.js → 454H3MLO.js} +1 -1
- package/dist/cdn/{FRAZUJ7K.js → 4MSBOUHQ.js} +1 -1
- package/dist/cdn/{SK4OCYH7.js → 4YU2AF7S.js} +1 -1
- package/dist/cdn/5FWT3N7B.js +2 -0
- package/dist/cdn/6KYWLAYH.js +2 -0
- package/dist/cdn/6SEM26SM.js +2 -0
- package/dist/cdn/6ZE7BJTS.js +2 -0
- package/dist/cdn/72HH6FSN.js +2 -0
- package/dist/cdn/{LPB2JMJ5.js → 7F2DXC54.js} +1 -1
- package/dist/cdn/{Y56FOEA4.js → A3KD2UAY.js} +1 -1
- package/dist/cdn/{MXYWUI34.js → ASVNFERZ.js} +1 -1
- package/dist/cdn/{PWY44JI6.js → B4KOVXN3.js} +1 -1
- package/dist/cdn/{7TTSWTGP.js → BHENVS42.js} +1 -1
- package/dist/cdn/{VHHRBGXN.js → CJLML2XS.js} +1 -1
- package/dist/cdn/CKO4VE36.js +2 -0
- package/dist/cdn/{I3VQ46FA.js → EAQV7AZQ.js} +1 -1
- package/dist/cdn/{CEMBX25Q.js → EXIPQBCY.js} +1 -1
- package/dist/cdn/FCNNRX3Q.js +2 -0
- package/dist/cdn/FCVLHRLJ.js +2 -0
- package/dist/cdn/{3CHIGFZL.js → GLMK45AB.js} +1 -1
- package/dist/cdn/{S5XIZ2L4.js → HXNLIDLQ.js} +1 -1
- package/dist/cdn/{7ZZWKH2U.js → IPT3YBSG.js} +2 -2
- package/dist/cdn/{UAGCCYQB.js → IXDLJKJA.js} +1 -1
- package/dist/cdn/{B5FTF7WR.js → J624KHFL.js} +1 -1
- package/dist/cdn/{G2BLA5NQ.js → JAQYZZRT.js} +1 -1
- package/dist/cdn/{XAZNEI2W.js → LCG5BEEY.js} +1 -1
- package/dist/cdn/{VWV6XWSU.js → LW6SRLBI.js} +1 -1
- package/dist/cdn/{5SVULVBJ.js → MAILUSIQ.js} +1 -1
- package/dist/cdn/NRT2ZCWC.js +2 -0
- package/dist/cdn/{HOKDRJ4R.js → NSUQXUWH.js} +1 -1
- package/dist/cdn/{V42KBFW7.js → OCAPESF3.js} +1 -1
- package/dist/cdn/{F3JDX4A7.js → OMEJFPK7.js} +1 -1
- package/dist/cdn/{D6BWGR3Z.js → P5CQYFPA.js} +1 -1
- package/dist/cdn/R5GMCIAH.js +2 -0
- package/dist/cdn/{AKNAVXKD.js → RC7BSNQ3.js} +1 -1
- package/dist/cdn/SA4IYYIE.js +2 -0
- package/dist/cdn/{QD3GVN2C.js → SDY4E3WA.js} +1 -1
- package/dist/cdn/{CJ536VHT.js → SGU4TP7V.js} +1 -1
- package/dist/cdn/TDGEDT35.js +2 -0
- package/dist/cdn/{66PT52ED.js → TZEAPNBI.js} +1 -1
- package/dist/cdn/{CA5LXWO6.js → UOZG2EH7.js} +1 -1
- package/dist/cdn/{GMSIYMNC.js → UPJTKQR3.js} +1 -1
- package/dist/cdn/{2JLMOWRT.js → VULA5TJD.js} +1 -1
- package/dist/cdn/VZXCU47M.js +2 -0
- package/dist/cdn/{FRSROWP4.js → W6IFUQTQ.js} +1 -1
- package/dist/cdn/{SVJ7AEMP.js → WAFRMU5C.js} +1 -1
- package/dist/cdn/WLGR4IHZ.js +2 -0
- package/dist/cdn/{CX3OZJEH.js → WMK7RLBA.js} +1 -1
- package/dist/cdn/{4FVOBVTD.js → YEN7K65V.js} +2 -2
- package/dist/cdn/YVQJ4XD4.js +2 -0
- package/dist/cdn/{FZDURX2Y.js → YWOTHCBH.js} +1 -1
- package/dist/cdn/{N5VJ4SAX.js → ZCRUGROJ.js} +1 -1
- package/dist/cdn/{VT2IDAHB.js → ZUWNZX6G.js} +1 -1
- package/dist/cdn/assets/layer-list-next/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/layer-list-utils.js +23 -17
- package/dist/chunks/svgUtils.js +1 -1
- package/dist/chunks/univariateUtils.js +1 -1
- package/dist/chunks/utils2.js +66 -50
- package/dist/chunks/utils3.js +50 -13
- package/dist/chunks/utils4.js +13 -45
- package/dist/chunks/utils5.js +51 -0
- package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +21 -0
- package/dist/components/arcgis-area-measurement-2d/customElement.js +5 -5
- package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +16 -0
- package/dist/components/arcgis-area-measurement-3d/customElement.js +10 -10
- package/dist/components/arcgis-basemap-layer-list-next/customElement.js +6 -5
- package/dist/components/arcgis-catalog-layer-list-next/customElement.js +1 -1
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.d.ts +18 -0
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +19 -0
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +5 -5
- package/dist/components/arcgis-layer-list-item-indicator/customElement.js +6 -6
- package/dist/components/arcgis-layer-list-item-panel/customElement.js +20 -16
- package/dist/components/arcgis-layer-list-next/customElement.d.ts +16 -0
- package/dist/components/arcgis-layer-list-next/customElement.js +49 -45
- package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +134 -10
- package/dist/components/arcgis-layer-list-next/types.d.ts +5 -0
- 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-oriented-imagery-viewer-panoramic-viewer/customElement.js +1 -1
- package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer-zoom/customElement.js +1 -1
- package/dist/components/arcgis-print-dpi-input/customElement.js +1 -1
- package/dist/components/arcgis-print-export-button/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-next/customElement.js +5 -5
- package/dist/components/arcgis-utility-network-aggregated-geometry-result-item/customElement.d.ts +2 -1
- package/dist/components/arcgis-utility-network-elements-result-item/customElement.d.ts +1 -1
- package/dist/components/arcgis-utility-network-elements-result-item/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-analysis-next/customElement.d.ts +11 -0
- package/dist/components/arcgis-utility-network-trace-analysis-next/customElement.js +76 -78
- package/dist/components/arcgis-utility-network-trace-results-next/customElement.d.ts +10 -4
- package/dist/components/arcgis-utility-network-trace-results-next/customElement.js +17 -25
- package/dist/components/arcgis-volume-measurement/customElement.d.ts +37 -0
- package/dist/components/arcgis-volume-measurement/customElement.js +1 -1
- 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/loader.js +7 -7
- package/dist/types/lumina.d.ts +9 -9
- package/dist/types/preact.d.ts +9 -9
- package/dist/types/react.d.ts +9 -9
- package/dist/types/stencil.d.ts +9 -9
- package/dist/utils/layer-list-utils.d.ts +1 -1
- package/package.json +6 -6
- package/dist/cdn/376WTHOL.js +0 -2
- package/dist/cdn/4YFREAQ2.js +0 -2
- package/dist/cdn/ECXHREHJ.js +0 -2
- package/dist/cdn/FIIA3N5X.js +0 -2
- package/dist/cdn/HISWL3K3.js +0 -2
- package/dist/cdn/HPLMTKLF.js +0 -2
- package/dist/cdn/JKOIMKKL.js +0 -2
- package/dist/cdn/JOPAUFUX.js +0 -2
- package/dist/cdn/LDDAJOTV.js +0 -2
- package/dist/cdn/LMNH2RHA.js +0 -2
- package/dist/cdn/MBFY4GDJ.js +0 -2
- package/dist/cdn/PI55I5L7.js +0 -2
- package/dist/cdn/RCQKTBVC.js +0 -2
- package/dist/cdn/YDP5A3EP.js +0 -2
- package/dist/cdn/ZSDNX326.js +0 -2
- package/dist/chunks/layer-list-item.js +0 -181
- /package/dist/cdn/{WKBILCAY.js → 2ZG7S6GM.js} +0 -0
- /package/dist/cdn/{4WURS3DM.js → 3VWL4SN7.js} +0 -0
- /package/dist/cdn/{4GIRSQMC.js → 4F6FNH6V.js} +0 -0
- /package/dist/cdn/{KYWZUC6M.js → 4J6DMRVO.js} +0 -0
- /package/dist/cdn/{FVZJPOWC.js → 5OBSJYCP.js} +0 -0
- /package/dist/cdn/{5CB7FWG6.js → 657KH5W3.js} +0 -0
- /package/dist/cdn/{ESYSNSNH.js → 6B4ROFUM.js} +0 -0
- /package/dist/cdn/{RKXHWHFR.js → 6RT7GRX4.js} +0 -0
- /package/dist/cdn/{3ZXNGXHC.js → 7DI2ZSB3.js} +0 -0
- /package/dist/cdn/{4AEFZEGM.js → 7JKYXV7H.js} +0 -0
- /package/dist/cdn/{NDWLSQ4W.js → 7NO3F7GQ.js} +0 -0
- /package/dist/cdn/{4KYPBCNM.js → AA2HLLIM.js} +0 -0
- /package/dist/cdn/{BU5HRIOW.js → ADZF7IHV.js} +0 -0
- /package/dist/cdn/{B4RNNO6A.js → B6JLKBMG.js} +0 -0
- /package/dist/cdn/{ZOGRVFHK.js → D2FVI5JG.js} +0 -0
- /package/dist/cdn/{HW5YYDPC.js → D5LP3DJA.js} +0 -0
- /package/dist/cdn/{OJOQP2IU.js → DNQGXWL3.js} +0 -0
- /package/dist/cdn/{QU5PA5MZ.js → DSPV4EIK.js} +0 -0
- /package/dist/cdn/{FV7FUSTO.js → E3AEBH36.js} +0 -0
- /package/dist/cdn/{2EDZ2LNR.js → FRGVEQAZ.js} +0 -0
- /package/dist/cdn/{ZXEH6MEU.js → G7DHB4QN.js} +0 -0
- /package/dist/cdn/{MGILHYX4.js → GJAC7GKP.js} +0 -0
- /package/dist/cdn/{G42D353L.js → GLZMKGGW.js} +0 -0
- /package/dist/cdn/{WRKX7F2G.js → H3RDAWS7.js} +0 -0
- /package/dist/cdn/{YFM2SKWI.js → HDYBFSI5.js} +0 -0
- /package/dist/cdn/{NGQUETWM.js → HH4A44WX.js} +0 -0
- /package/dist/cdn/{5EU3QVP7.js → HRTVHZHG.js} +0 -0
- /package/dist/cdn/{7427KHVF.js → IU63DGNP.js} +0 -0
- /package/dist/cdn/{O3SPKYBG.js → J3KTKVLP.js} +0 -0
- /package/dist/cdn/{BV52G5DA.js → JHF7SGKM.js} +0 -0
- /package/dist/cdn/{GLKTAVV5.js → JU4MCJPU.js} +0 -0
- /package/dist/cdn/{77ZD2RFI.js → KVIE42LT.js} +0 -0
- /package/dist/cdn/{W2UZH6QI.js → LG3G4BFF.js} +0 -0
- /package/dist/cdn/{VDTRRLON.js → MDTNPISF.js} +0 -0
- /package/dist/cdn/{XYRTRBXU.js → OO4SKY7C.js} +0 -0
- /package/dist/cdn/{SNX6WY7J.js → OTTKYEPK.js} +0 -0
- /package/dist/cdn/{J4VKIBXE.js → QH4RNPEX.js} +0 -0
- /package/dist/cdn/{IHWFNEBS.js → QJBQ3JLC.js} +0 -0
- /package/dist/cdn/{KG3HVAZY.js → SE4NXMGA.js} +0 -0
- /package/dist/cdn/{AZWQWNTK.js → SOOVHYLT.js} +0 -0
- /package/dist/cdn/{KMNELKA3.js → T5QDEAAE.js} +0 -0
- /package/dist/cdn/{W2YB27M6.js → TKEBTPPA.js} +0 -0
- /package/dist/cdn/{6URW6H47.js → TTBQBEDS.js} +0 -0
- /package/dist/cdn/{BIKEUMV7.js → VFHHDNXC.js} +0 -0
- /package/dist/cdn/{QZHFPTSI.js → X2MAQDWV.js} +0 -0
- /package/dist/cdn/{LGNLLGA6.js → YWQU6EBN.js} +0 -0
|
@@ -3,12 +3,12 @@ import { c as l } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { ref as p } from "lit/directives/ref.js";
|
|
4
4
|
import { css as u, html as a } from "lit";
|
|
5
5
|
import { usePropertyChange as m } from "@arcgis/lumina/controllers";
|
|
6
|
-
import { LitElement as
|
|
7
|
-
import { f } from "../../chunks/layer-list-utils.js";
|
|
6
|
+
import { LitElement as g, nothing as h, safeClassMap as d } from "@arcgis/lumina";
|
|
7
|
+
import { n as f } from "../../chunks/layer-list-utils.js";
|
|
8
8
|
import { c as n } from "../../chunks/css.js";
|
|
9
9
|
import { classes as y } from "@arcgis/toolkit/dom";
|
|
10
10
|
const b = u`:host{margin-inline:var(--calcite-space-sm)}.status-indicator{visibility:hidden}.publishing{visibility:visible;color:var(--calcite-color-text-2);transform-origin:var(--calcite-list-item-icon-center) var(--calcite-list-item-icon-center);animation:2s infinite arcgis-layer-list__publishing-anim}.updating{visibility:visible;animation:2s infinite arcgis-layer-list__updating-anim}.connection-status{visibility:visible;color:var(--calcite-color-status-warning);width:var(--calcite-spacing-xl);height:var(--calcite-spacing-xl)}.connection-status--connected{color:var(--calcite-color-status-success)}@keyframes arcgis-layer-list__updating-anim{0%,40%{color:transparent}50%,80%{color:var(--calcite-color-brand)}to{color:transparent}}@keyframes arcgis-layer-list__publishing-anim{0%,20%{transform:rotate(45deg)}80%,to{transform:rotate(135deg)}}`;
|
|
11
|
-
class v extends
|
|
11
|
+
class v extends g {
|
|
12
12
|
constructor() {
|
|
13
13
|
super(...arguments), this.autoDestroyDisabled = !1, this.arcgisPropertyChange = m()("item", "parent");
|
|
14
14
|
}
|
|
@@ -42,10 +42,10 @@ class v extends d {
|
|
|
42
42
|
render() {
|
|
43
43
|
if (!this.item)
|
|
44
44
|
return null;
|
|
45
|
-
const
|
|
46
|
-
return a`<calcite-icon class=${
|
|
45
|
+
const i = "publishing" in this.item && this.item.publishing, o = "updating" in this.item && this.item.updating && !this.parent, s = "connectionStatus" in this.item ? this.item.connectionStatus : void 0, t = !!s, e = i || o || t ? f({ connectionStatus: s, publishing: i }) : "blank", { messages: c } = this, r = this.getTooltipText(i, o, s, c);
|
|
46
|
+
return a`<calcite-icon class=${d(y(n.statusIndicator, { [n.publishing]: i }, "updating" in n && { [n.updating]: o }, "connectionStatus" in n && { [n.connectionStatus]: t }, "connectionStatusConnected" in n && {
|
|
47
47
|
[n.connectionStatusConnected]: t && s === "connected"
|
|
48
|
-
}))} title=${c?.connectionStatus ??
|
|
48
|
+
}))} title=${c?.connectionStatus ?? h} .icon=${e} scale=s ${p(this._setIconEl)}></calcite-icon>${this._iconEl ? a`<calcite-tooltip placement=top .referenceElement=${this._iconEl}>${r}</calcite-tooltip>` : null}`;
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
l("arcgis-layer-list-item-indicator", v);
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
4
|
-
import { usePropertyChange as
|
|
5
|
-
import {
|
|
6
|
-
import { LitElement as
|
|
7
|
-
const g = n`@keyframes esri-basemap-slide{0%{opacity:0;margin-top:0;margin-left:0}75%{opacity:0;margin-top:0;margin-left:0}to{opacity:1;margin-top:5px;margin-left:5px}}@keyframes esri-docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes popup-intro-animation-up{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted #000}}@keyframes esri-spinner--start-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes esri-spinner--finish-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes esri-spinner--rotate-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion){.esri-utility-network-trace__reset-prompt{animation:none!important}}@media(prefers-reduced-motion){.esri-popup--aligned-top-center,.esri-popup--aligned-top-left,.esri-popup--aligned-top-right,.esri-popup--aligned-bottom-center,.esri-popup--aligned-bottom-left,.esri-popup--aligned-bottom-right,.esri-popup--is-docked{animation:none!important}}@media(prefers-reduced-motion:reduce){.esri-fov-overlay{animation:none!important}}@keyframes esri-fade-in-down{0%{opacity:0;transform:translateY(-5px)}25%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in-up{0%{opacity:0;transform:translateY(5px)}25%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes esri-fade-in-scale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes looping-progresss-bar-ani{0%{width:0;left:0}20%{width:20%;left:0}80%{width:20%;left:80%}to{width:0;left:100%}}@keyframes esri-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes panel-advance{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-advance--rtl{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat--rtl{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}:host{width:100%;div{width:100%}}arcgis-legend{--calcite-color-foreground-1: var(--calcite-color-transparent);--calcite-color-text-2: var(--arcgis-internal-layer-list-legend-color-text);width:100%;max-width:100%;min-width:0;box-sizing:border-box;overflow:hidden;overflow-y:auto}`;
|
|
8
|
-
class m extends d {
|
|
2
|
+
import { c as n } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as s, html as l } from "lit";
|
|
4
|
+
import { usePropertyChange as c } from "@arcgis/lumina/controllers";
|
|
5
|
+
import { o as d } from "../../chunks/layer-list-utils.js";
|
|
6
|
+
import { LitElement as p, renderElement as g } from "@arcgis/lumina";
|
|
7
|
+
import { i as a, c as m } from "../../chunks/utils2.js";
|
|
8
|
+
const f = s`@keyframes esri-basemap-slide{0%{opacity:0;margin-top:0;margin-left:0}75%{opacity:0;margin-top:0;margin-left:0}to{opacity:1;margin-top:5px;margin-left:5px}}@keyframes esri-docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes popup-intro-animation-up{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted #000}}@keyframes esri-spinner--start-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes esri-spinner--finish-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes esri-spinner--rotate-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion){.esri-utility-network-trace__reset-prompt{animation:none!important}}@media(prefers-reduced-motion){.esri-popup--aligned-top-center,.esri-popup--aligned-top-left,.esri-popup--aligned-top-right,.esri-popup--aligned-bottom-center,.esri-popup--aligned-bottom-left,.esri-popup--aligned-bottom-right,.esri-popup--is-docked{animation:none!important}}@media(prefers-reduced-motion:reduce){.esri-fov-overlay{animation:none!important}}@keyframes esri-fade-in-down{0%{opacity:0;transform:translateY(-5px)}25%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in-up{0%{opacity:0;transform:translateY(5px)}25%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes esri-fade-in-scale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes looping-progresss-bar-ani{0%{width:0;left:0}20%{width:20%;left:0}80%{width:20%;left:80%}to{width:0;left:100%}}@keyframes esri-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes panel-advance{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-advance--rtl{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat--rtl{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}:host{width:100%;div{width:100%}}arcgis-legend{--calcite-color-foreground-1: var(--calcite-color-transparent);--calcite-color-text-2: var(--arcgis-internal-layer-list-legend-color-text);width:100%;max-width:100%;min-width:0;box-sizing:border-box;overflow:hidden;overflow-y:auto}`;
|
|
9
|
+
class h extends p {
|
|
9
10
|
constructor() {
|
|
10
|
-
super(...arguments), this._disabled = null, this.content = this.item?.panel.content, this.listItem = this.item?.panel.listItem ?? this.item, this.autoDestroyDisabled = !1, this.arcgisPropertyChange =
|
|
11
|
+
super(...arguments), this._disabled = null, this.content = this.item?.panel.content, this.listItem = this.item?.panel.listItem ?? this.item, this.autoDestroyDisabled = !1, this.arcgisPropertyChange = c()("listItem");
|
|
11
12
|
}
|
|
12
13
|
static {
|
|
13
14
|
this.properties = { _canCreateLegend: 16, _legendLayerInfo: 16, content: 1, item: 0, disabled: 5, listItem: 0, view: 0, autoDestroyDisabled: 5 };
|
|
14
15
|
}
|
|
15
16
|
static {
|
|
16
|
-
this.styles =
|
|
17
|
+
this.styles = f;
|
|
17
18
|
}
|
|
18
19
|
get _canCreateLegend() {
|
|
19
20
|
const { content: e, listItem: t } = this.item?.panel ?? {};
|
|
20
|
-
if (!t)
|
|
21
|
+
if (!t || a(t))
|
|
21
22
|
return !1;
|
|
22
23
|
const i = "legend";
|
|
23
24
|
return e === i ? !0 : e != null && (Array.isArray(e) ? e.includes(i) : !1);
|
|
@@ -26,7 +27,7 @@ class m extends d {
|
|
|
26
27
|
const e = this.item?.panel?.listItem?.layer;
|
|
27
28
|
if (!e || e.type === "subtype-sublayer")
|
|
28
29
|
return null;
|
|
29
|
-
const t =
|
|
30
|
+
const t = d(e) ? e : null, i = t?.source?.type === "map-layer" ? t.source : null, r = "layer" in e && e.layer, o = "";
|
|
30
31
|
return i && r ? {
|
|
31
32
|
layer: r,
|
|
32
33
|
// checked above
|
|
@@ -54,7 +55,7 @@ class m extends d {
|
|
|
54
55
|
this._canCreateLegend && (this._legendElement || (this._legendElement = this._createLegendElement()));
|
|
55
56
|
}
|
|
56
57
|
_createLegendElement() {
|
|
57
|
-
return
|
|
58
|
+
return g(l`<arcgis-legend .view=${this.view} @arcgisReady=${(e) => e.stopPropagation()} .layerInfos=${this._legendLayerInfo ? [this._legendLayerInfo] : []}></arcgis-legend>`);
|
|
58
59
|
}
|
|
59
60
|
render() {
|
|
60
61
|
return this._renderContents();
|
|
@@ -64,11 +65,14 @@ class m extends d {
|
|
|
64
65
|
return !e || t || !this.item?.panel?.open ? null : e === "legend" ? (this._legendElement || this._loadLegend(), this._legendElement) : e instanceof HTMLElement || typeof e == "string" ? e : null;
|
|
65
66
|
}
|
|
66
67
|
_renderContents() {
|
|
67
|
-
const {
|
|
68
|
-
|
|
68
|
+
const { open: e } = this.item?.panel ?? {};
|
|
69
|
+
if (!e)
|
|
70
|
+
return null;
|
|
71
|
+
const t = a(this.item) ? m(this.item.panel.content) : this.item?.panel?.content;
|
|
72
|
+
return Array.isArray(t) ? t.map((i) => this._renderContent(i)) : this._renderContent(t);
|
|
69
73
|
}
|
|
70
74
|
}
|
|
71
|
-
|
|
75
|
+
n("arcgis-layer-list-item-panel", h);
|
|
72
76
|
export {
|
|
73
|
-
|
|
77
|
+
h as ArcgisLayerListItemPanel
|
|
74
78
|
};
|
|
@@ -25,6 +25,7 @@ import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.j
|
|
|
25
25
|
* The Layer List (next) provides a way to display a list of layers and switch on/off their visibility.
|
|
26
26
|
* The [listItemCreatedFunction](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-layer-list-next/#listItemCreatedFunction) and the [Item](https://developers.arcgis.com/javascript/latest/references/core/layers/list/Item/) API provides access to each layer's properties, allows
|
|
27
27
|
* the developer to configure actions related to the layer, and allows the developer to add content to the item related to the layer.
|
|
28
|
+
* Track info items can also be configured with custom panel content. Legend panel content is not supported for individual track info parts.
|
|
28
29
|
*
|
|
29
30
|
* > **Notes**
|
|
30
31
|
* >
|
|
@@ -422,6 +423,11 @@ export abstract class ArcgisLayerListNext extends LitElement {
|
|
|
422
423
|
tableError?: string | undefined;
|
|
423
424
|
temporary?: string | undefined;
|
|
424
425
|
tables?: string | undefined;
|
|
426
|
+
trackInfo?: {
|
|
427
|
+
latestObservations?: string | undefined;
|
|
428
|
+
previousObservations?: string | undefined;
|
|
429
|
+
trackLines?: string | undefined;
|
|
430
|
+
} | undefined;
|
|
425
431
|
catalogLayers?: string | undefined;
|
|
426
432
|
connectionStatus?: string | undefined;
|
|
427
433
|
updating?: string | undefined;
|
|
@@ -450,6 +456,11 @@ export abstract class ArcgisLayerListNext extends LitElement {
|
|
|
450
456
|
tableError: string;
|
|
451
457
|
temporary: string;
|
|
452
458
|
tables: string;
|
|
459
|
+
trackInfo: {
|
|
460
|
+
latestObservations: string;
|
|
461
|
+
previousObservations: string;
|
|
462
|
+
trackLines: string;
|
|
463
|
+
};
|
|
453
464
|
catalogLayers: string;
|
|
454
465
|
connectionStatus: string;
|
|
455
466
|
updating: string;
|
|
@@ -476,6 +487,11 @@ export abstract class ArcgisLayerListNext extends LitElement {
|
|
|
476
487
|
tableError: string;
|
|
477
488
|
temporary: string;
|
|
478
489
|
tables: string;
|
|
490
|
+
trackInfo: {
|
|
491
|
+
latestObservations: string;
|
|
492
|
+
previousObservations: string;
|
|
493
|
+
trackLines: string;
|
|
494
|
+
};
|
|
479
495
|
catalogLayers: string;
|
|
480
496
|
connectionStatus: string;
|
|
481
497
|
updating: string;
|
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as k } from "../../chunks/runtime.js";
|
|
3
3
|
import { html as h } from "lit";
|
|
4
4
|
import { keyed as v } from "lit/directives/keyed.js";
|
|
5
|
-
import { repeat as
|
|
6
|
-
import
|
|
7
|
-
import { classes as
|
|
8
|
-
import { generateGuid as
|
|
5
|
+
import { repeat as x } from "lit/directives/repeat.js";
|
|
6
|
+
import B from "@arcgis/core/layers/list/LayerItemCollection.js";
|
|
7
|
+
import { classes as S } from "@arcgis/toolkit/dom";
|
|
8
|
+
import { generateGuid as U } from "@arcgis/toolkit/string";
|
|
9
9
|
import { createRef as w, ref as b } from "lit/directives/ref.js";
|
|
10
|
-
import { u as
|
|
11
|
-
import { m as
|
|
12
|
-
import { g as
|
|
13
|
-
import { c as
|
|
14
|
-
import { g as m, a as F, m as
|
|
10
|
+
import { u as G } from "../../chunks/useT9n.js";
|
|
11
|
+
import { m as H } from "../../chunks/useViewModel.js";
|
|
12
|
+
import { g as C } from "../../chunks/globalCss.js";
|
|
13
|
+
import { c as I } from "../../chunks/css.js";
|
|
14
|
+
import { g as m, a as F, m as V, b as j, r as M, s as q, c as z, d as J, e as K } from "../../chunks/layer-list-utils.js";
|
|
15
15
|
import p from "@arcgis/core/core/Collection.js";
|
|
16
|
-
import { on as
|
|
17
|
-
import { LitElement as Q, createEvent as
|
|
16
|
+
import { on as $, watch as A } from "@arcgis/core/core/reactiveUtils.js";
|
|
17
|
+
import { LitElement as Q, createEvent as y, renderElement as O, safeClassMap as E, nothing as D } from "@arcgis/lumina";
|
|
18
18
|
import { usePropertyChange as W } from "@arcgis/lumina/controllers";
|
|
19
19
|
import { reEmitEvent as X } from "@arcgis/lumina/controllers/accessor";
|
|
20
20
|
import { u as Y } from "../../chunks/useCloseEvent.js";
|
|
21
|
-
import {
|
|
22
|
-
import { s as
|
|
21
|
+
import { ArcgisLayerListItem as Z } from "./layer-list-item/customElement.js";
|
|
22
|
+
import { s as ee, a as te } from "../../chunks/layer-list-next.js";
|
|
23
|
+
import { i as se, h as ie, r as ae } from "../../chunks/utils2.js";
|
|
23
24
|
import "../arcgis-layer-list-item-indicator/customElement.js";
|
|
24
|
-
const
|
|
25
|
-
class
|
|
25
|
+
const P = "nested", re = H(B);
|
|
26
|
+
class oe extends Q {
|
|
26
27
|
constructor() {
|
|
27
|
-
super(...arguments), this._lastDragDetail = null, this._rootListRef = w(), this._layerFlowItemRef = w(), this._panelFlowItemRef = w(), this._selectedDragItemLayerUid = null, this._rootGroupUid = `operational-${
|
|
28
|
+
super(...arguments), this._lastDragDetail = null, this._rootListRef = w(), this._layerFlowItemRef = w(), this._panelFlowItemRef = w(), this._selectedDragItemLayerUid = null, this._rootGroupUid = `operational-${U()}`, this._openedLayersController = null, this.messages = G(), this._canMove = ({ dragEl: e, fromEl: t, toEl: s }, a) => {
|
|
28
29
|
const i = a === "pull" ? this.listItemCanGiveFunction : this.listItemCanReceiveFunction, r = m(e, this.operationalItems);
|
|
29
30
|
if (!r?.sortable)
|
|
30
31
|
return !1;
|
|
@@ -32,8 +33,8 @@ class ae extends Q {
|
|
|
32
33
|
selected: r,
|
|
33
34
|
from: n,
|
|
34
35
|
to: g
|
|
35
|
-
}, _ = o?.group, c = l?.group,
|
|
36
|
-
return _ && c && typeof i == "function" ? i(f) : L && !T.has(
|
|
36
|
+
}, _ = o?.group, c = l?.group, R = n?.layer?.type ?? "", N = g?.layer?.type ?? "", T = /* @__PURE__ */ new Set(["map-image", "catalog", "knowledge-graph"]);
|
|
37
|
+
return _ && c && typeof i == "function" ? i(f) : L && !T.has(R) && !T.has(N) && r?.layer?.type !== "sublayer";
|
|
37
38
|
}, this._onCatalogOpen = (e) => {
|
|
38
39
|
this.openedLayers.push(e.layer?.parent);
|
|
39
40
|
}, this._onTablesOpen = (e) => {
|
|
@@ -45,30 +46,30 @@ class ae extends Q {
|
|
|
45
46
|
}, this._setActiveItem = (e) => {
|
|
46
47
|
if (this.visibilityAppearance !== "default")
|
|
47
48
|
return;
|
|
48
|
-
const t = Array.from(e.composedPath()).find((a) => a.classList?.contains(
|
|
49
|
+
const t = Array.from(e.composedPath()).find((a) => a.classList?.contains(I.item)), s = m(t, this.operationalItems);
|
|
49
50
|
this._activeItem = s;
|
|
50
|
-
}, this.viewModel =
|
|
51
|
+
}, this.viewModel = re(this), this.arcgisClose = Y(this), this._activeItem = null, this._onTooltipReferenceChange = (e, t) => {
|
|
51
52
|
t ? this._tooltipReferenceMap.set(e, t) : this._tooltipReferenceMap.delete(e);
|
|
52
53
|
}, this._onSelectedDragItemLayerUidChange = (e) => {
|
|
53
54
|
this._selectedDragItemLayerUid = e;
|
|
54
55
|
}, this._onTriggerAction = (e, t) => {
|
|
55
56
|
this.triggerAction(e, t);
|
|
56
|
-
}, this._tooltipReferenceMap = /* @__PURE__ */ new Map(), this._layerListMap = /* @__PURE__ */ new Map(), this.layerTablesEnabled = new p(["knowledge-graph"]), this.mapImageOptions = null, this.openedLayerLists = new p(), this.tileOptions = null, this.autoDestroyDisabled = !1, this.closed = !1, this.collapsed = !1, this.dragEnabled = !1, this.filterPlaceholder = "", this.filterText = "", this.headingLevel = 2, this.hideCatalogLayerList = !1, this.hideNoFilterResultsNotice = !1, this.hideNoItemsNotice = !1, this.hideStatusIndicators = !1, this.icon = "layers", this.layerTablesAvailable = new p(["knowledge-graph"]), this.listItemCreatedFunction = this.viewModel.listItemCreatedFunction, this.listModeDisabled = this.viewModel.listModeDisabled, this.minDragEnabledItems =
|
|
57
|
+
}, this._tooltipReferenceMap = /* @__PURE__ */ new Map(), this._layerListMap = /* @__PURE__ */ new Map(), this.layerTablesEnabled = new p(["knowledge-graph"]), this.mapImageOptions = null, this.openedLayerLists = new p(), this.tileOptions = null, this.autoDestroyDisabled = !1, this.closed = !1, this.collapsed = !1, this.dragEnabled = !1, this.filterPlaceholder = "", this.filterText = "", this.headingLevel = 2, this.hideCatalogLayerList = !1, this.hideNoFilterResultsNotice = !1, this.hideNoItemsNotice = !1, this.hideStatusIndicators = !1, this.icon = "layers", this.layerTablesAvailable = new p(["knowledge-graph"]), this.listItemCreatedFunction = this.viewModel.listItemCreatedFunction, this.listModeDisabled = this.viewModel.listModeDisabled, this.minDragEnabledItems = V, this.minFilterItems = j, this.openedLayers = new p(), this.operationalItems = this.viewModel.operationalItems, this.selectedItems = new p(), this.selectionMode = "none", this.showCloseButton = !1, this.showCollapseButton = !1, this.showErrors = !1, this.showFilter = !1, this.showHeading = !1, this.showTemporaryLayerIndicators = !1, this.state = this.viewModel.state, this.view = this.viewModel.view, this.visibilityAppearance = "default", this.arcgisFilterChange = y(), this.arcgisOpenedLayersChange = y(), this.arcgisPropertyChange = W()("state"), this.arcgisReady = y(), this.arcgisSelectedItemsChange = y(), this.arcgisTriggerAction = X(() => this.viewModel, "trigger-action");
|
|
57
58
|
}
|
|
58
59
|
static {
|
|
59
60
|
this.properties = { _catalogLayerList: 16, _tableList: 16, _tooltipReferenceMap: 16, _layerListMap: 16, _totalItems: 16, _visibleItems: 16, _openedPanelItems: 16, _dragEnabled: 16, _filterEnabled: 16, layerTablesEnabled: 16, mapImageOptions: 16, openedLayerLists: 16, tileOptions: 16, _renderedOpenLayerFlowItems: 16, autoDestroyDisabled: 5, catalogLayerList: 32, catalogOptions: 0, closed: 5, collapsed: 5, dragEnabled: 5, filterPlaceholder: 1, filterPredicate: 0, filterText: 1, headingLevel: 9, hideCatalogLayerList: 5, hideNoFilterResultsNotice: 5, hideNoItemsNotice: 5, hideStatusIndicators: 5, icon: 1, knowledgeGraphOptions: 0, label: 1, layerTablesAvailable: 0, listItemCanGiveFunction: 0, listItemCanReceiveFunction: 0, listItemCreatedFunction: 0, listModeDisabled: 5, messageOverrides: 0, minDragEnabledItems: 9, minFilterItems: 9, openedLayers: 32, operationalItems: 0, referenceElement: 1, selectedItems: 0, selectionMode: 1, showCloseButton: 5, showCollapseButton: 5, showErrors: 5, showFilter: 5, showHeading: 5, showTemporaryLayerIndicators: 5, state: 32, tableList: 32, view: 0, visibilityAppearance: 1 };
|
|
60
61
|
}
|
|
61
62
|
static {
|
|
62
|
-
this.styles = [
|
|
63
|
+
this.styles = [ee, te];
|
|
63
64
|
}
|
|
64
65
|
get _totalItems() {
|
|
65
|
-
return this.viewModel.operationalItems.flatten((
|
|
66
|
+
return this.viewModel.operationalItems.flatten((t) => t.children.filter((s) => s.layer?.type !== "catalog-dynamic-group")).length;
|
|
66
67
|
}
|
|
67
68
|
get _visibleItems() {
|
|
68
69
|
return this.operationalItems?.filter((e) => !e.hidden && (this.showErrors || !e.error));
|
|
69
70
|
}
|
|
70
71
|
get _openedPanelItems() {
|
|
71
|
-
return this._visibleItems.flatten((e) => e.children).filter((
|
|
72
|
+
return this._visibleItems.flatten((e) => e.children).filter((e) => !e.hidden && e.panel?.open && !e.panel.disabled && e.panel.flowEnabled && (!se(e) || ie(e)));
|
|
72
73
|
}
|
|
73
74
|
get _dragEnabled() {
|
|
74
75
|
return this._totalItems >= this.minDragEnabledItems && this.dragEnabled;
|
|
@@ -91,12 +92,15 @@ class ae extends Q {
|
|
|
91
92
|
}
|
|
92
93
|
loaded() {
|
|
93
94
|
this.manager.onLifecycle(() => [
|
|
94
|
-
|
|
95
|
+
$(() => this.openedLayers, "change", () => {
|
|
95
96
|
this._handleOpenedLayersChange();
|
|
96
97
|
}, { initial: !0 }),
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
$(() => this.viewModel.operationalItems, "change", () => M(this.selectedItems), { initial: !0 }),
|
|
99
|
+
A(() => this.operationalItems.flatten((e) => e.children).map((e) => e.uid).join(","), () => {
|
|
100
|
+
M(this.selectedItems), this.requestUpdate();
|
|
101
|
+
}, { initial: !0 }),
|
|
102
|
+
$(() => this.selectedItems, "change", () => this.arcgisSelectedItemsChange.emit()),
|
|
103
|
+
A(() => [this.filterPredicate, this._rootListRef.value], () => q(this._rootListRef.value, this.filterPredicate, this.operationalItems))
|
|
100
104
|
]);
|
|
101
105
|
}
|
|
102
106
|
triggerAction(e, t) {
|
|
@@ -153,7 +157,7 @@ class ae extends Q {
|
|
|
153
157
|
}
|
|
154
158
|
async _createCatalogLayerList(e) {
|
|
155
159
|
const { headingLevel: t, catalogOptions: s, filterPlaceholder: a, listItemCreatedFunction: i, minFilterItems: r, selectionMode: o, visibilityAppearance: l } = this;
|
|
156
|
-
return
|
|
160
|
+
return O(h`<arcgis-catalog-layer-list-next .headingLevel=${t} .filterPlaceholder=${s?.filterPlaceholder ?? a} .listItemCreatedFunction=${s?.listItemCreatedFunction ?? i} .minFilterItems=${s?.minFilterItems ?? r} .selectionMode=${s?.selectionMode ?? o} .visibilityAppearance=${s?.visibilityAppearance ?? l} .showErrors=${s?.showErrors ?? this.showErrors} .showFilter=${s?.showFilter ?? this.showFilter} .hideStatusIndicators=${s?.hideStatusIndicators ?? this.hideStatusIndicators} .showTemporaryLayerIndicators=${s?.showTemporaryLayerIndicators ?? this.showTemporaryLayerIndicators} .messageOverrides=${this.messageOverrides} @arcgisReady=${(n) => n.stopPropagation()} .catalogLayer=${e} .view=${this.view} .referenceElement=${this.referenceElement} @catalogOpen=${this._onCatalogOpen} @tablesOpen=${this._onTablesOpen}></arcgis-catalog-layer-list-next>`);
|
|
157
161
|
}
|
|
158
162
|
_getTableListParams(e) {
|
|
159
163
|
switch (e.type) {
|
|
@@ -175,14 +179,14 @@ class ae extends Q {
|
|
|
175
179
|
}
|
|
176
180
|
async _createTableList(e) {
|
|
177
181
|
const { headingLevel: t, selectionMode: s, dragEnabled: a } = this, i = this._getTableListParams(e);
|
|
178
|
-
return
|
|
182
|
+
return O(h`<arcgis-table-list-next .headingLevel=${i?.headingLevel ?? t} .selectionMode=${i?.selectionMode ?? s} .dragEnabled=${i?.dragEnabled ?? a} .collapsed=${i?.collapsed} .filterPlaceholder=${i?.filterPlaceholder} .filterText=${i?.filterText} .icon=${i?.icon ?? void 0} .label=${i?.label ?? void 0} .listItemCreatedFunction=${i?.listItemCreatedFunction} .messageOverrides=${this.messageOverrides} .tables=${i?.tables} .referenceElement=${this.referenceElement} @arcgisReady=${(r) => r.stopPropagation()}></arcgis-table-list-next>`);
|
|
179
183
|
}
|
|
180
184
|
_handlePanelFlowItemBack(e) {
|
|
181
185
|
e.open = !1;
|
|
182
186
|
}
|
|
183
187
|
_moveLayerFromChildList({ toEl: e, fromEl: t, dragEl: s, newIndex: a }) {
|
|
184
188
|
const i = this._resolveListContainer(e), r = this._resolveListContainer(t), o = m(s, this.operationalItems), l = this._getContainerItem(i), n = this._getContainerItem(r);
|
|
185
|
-
a == null || !o || (this.viewModel.moveItem(o, n, l, a),
|
|
189
|
+
a == null || !o || (this.viewModel.moveItem(o, n, l, a), ae(this, o.uid, (d) => this._resolveListContainer(d.parentElement) === i));
|
|
186
190
|
}
|
|
187
191
|
_onCalciteListDragEnd(e) {
|
|
188
192
|
const { fromEl: t, toEl: s, dragEl: a, oldIndex: i } = e;
|
|
@@ -215,12 +219,12 @@ class ae extends Q {
|
|
|
215
219
|
_sortLayers(e, t) {
|
|
216
220
|
if (e)
|
|
217
221
|
if (e === this._rootListRef.value)
|
|
218
|
-
|
|
222
|
+
z(this.el.view?.map?.layers, t);
|
|
219
223
|
else {
|
|
220
224
|
const s = m(e, this.operationalItems);
|
|
221
225
|
if (!s)
|
|
222
226
|
return;
|
|
223
|
-
|
|
227
|
+
J(s, t);
|
|
224
228
|
}
|
|
225
229
|
}
|
|
226
230
|
_handleCalciteListChange(e) {
|
|
@@ -232,10 +236,10 @@ class ae extends Q {
|
|
|
232
236
|
}
|
|
233
237
|
render() {
|
|
234
238
|
const { state: e } = this, t = {
|
|
235
|
-
[
|
|
236
|
-
[
|
|
239
|
+
[C.hidden]: e === "loading",
|
|
240
|
+
[C.disabled]: e === "disabled"
|
|
237
241
|
};
|
|
238
|
-
return h`<div class=${E(
|
|
242
|
+
return h`<div class=${E(S(C.widget, t))}>${this._visibleItems?.length ? this._renderItemTooltips() : null}${this._renderItems()}</div>`;
|
|
239
243
|
}
|
|
240
244
|
_renderItemTooltip(e) {
|
|
241
245
|
const { _tooltipReferenceMap: t, messages: s } = this;
|
|
@@ -254,17 +258,17 @@ class ae extends Q {
|
|
|
254
258
|
return h`<div slot=message>${this.messages.noItemsToDisplay}</div>`;
|
|
255
259
|
}
|
|
256
260
|
_renderNoItems() {
|
|
257
|
-
return this.hideNoItemsNotice ? null : h`<div class=${E(
|
|
261
|
+
return this.hideNoItemsNotice ? null : h`<div class=${E(I.itemMessage)}><calcite-notice icon=information kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>`;
|
|
258
262
|
}
|
|
259
263
|
_renderLayerFlowItem(e, t) {
|
|
260
264
|
const { messages: s, openedLayers: a } = this, i = e.title || this.messages.untitledLayer;
|
|
261
|
-
return v(e?.uid ?? i, h`<calcite-flow-item data-layer-uid=${e?.uid ?? "" ??
|
|
265
|
+
return v(e?.uid ?? i, h`<calcite-flow-item data-layer-uid=${e?.uid ?? "" ?? D} .description=${i} .heading=${s[e.type === "catalog" ? "catalogLayers" : "tables"]} .headingLevel=${this.headingLevel} .selected=${t} @calciteFlowItemBack=${(r) => {
|
|
262
266
|
r.preventDefault(), a.pop(), a.at(-1) && this._layerFlowItemRef.value?.setFocus();
|
|
263
267
|
}} ${b(this._layerFlowItemRef)}>${this._layerListMap.get(e)}</calcite-flow-item>`);
|
|
264
268
|
}
|
|
265
269
|
_renderPanelFlowItems() {
|
|
266
270
|
const { _openedPanelItems: e, openedLayers: t } = this;
|
|
267
|
-
return
|
|
271
|
+
return x(e.toArray(), (a) => a.uid, (a, i) => {
|
|
268
272
|
const { panel: r, title: o } = a, l = () => this._handlePanelFlowItemBack(r);
|
|
269
273
|
return h`<calcite-flow-item .description=${o} .heading=${r.title} .headingLevel=${this.headingLevel} .selected=${!t.length && i === e.length - 1} @calciteFlowItemBack=${(n) => {
|
|
270
274
|
n.preventDefault(), l();
|
|
@@ -273,19 +277,19 @@ class ae extends Q {
|
|
|
273
277
|
}
|
|
274
278
|
_renderItems() {
|
|
275
279
|
const { collapsed: e, _visibleItems: t, _openedPanelItems: s, _filterEnabled: a, _rootGroupUid: i, showCloseButton: r, showCollapseButton: o, showHeading: l, _dragEnabled: n, selectionMode: d, filterText: g, openedLayers: u, filterPlaceholder: L, messages: f } = this, _ = [
|
|
276
|
-
h`<calcite-flow-item .closable=${r} .closed=${this.closed} .collapsed=${e} .collapsible=${o} .heading=${l ? f.componentLabel : void 0} .headingLevel=${this.headingLevel} .selected=${!u.length && !s.length} @calciteFlowItemClose=${() => this.closed = !1}>${t?.length ? h`<calcite-list @focusin=${this._setActiveItem} @focusout=${this._clearActiveItem} .canPull=${(c) => this._canMove(c, "pull")} .canPut=${(c) => this._canMove(c, "put")} data-layer-type=${i ??
|
|
280
|
+
h`<calcite-flow-item .closable=${r} .closed=${this.closed} .collapsed=${e} .collapsible=${o} .heading=${l ? f.componentLabel : void 0} .headingLevel=${this.headingLevel} .selected=${!u.length && !s.length} @calciteFlowItemClose=${() => this.closed = !1}>${t?.length ? h`<calcite-list @focusin=${this._setActiveItem} @focusout=${this._clearActiveItem} .canPull=${(c) => this._canMove(c, "pull")} .canPut=${(c) => this._canMove(c, "put")} data-layer-type=${i ?? D} .displayMode=${P} .dragEnabled=${n} .filterEnabled=${a} .filterPlaceholder=${L} .filterProps=${K} .filterText=${a ? g : ""} .group=${i} .label=${f.componentLabel} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} selection-appearance=highlight .selectionMode=${d} @calciteListChange=${this._handleCalciteListChange} @calciteListFilter=${(c) => {
|
|
277
281
|
this.filterText = c.currentTarget?.filterText ?? "", this.arcgisFilterChange.emit();
|
|
278
|
-
}} @calciteListOrderChange=${(c) => this._onCalciteListOrderChange(c.detail)} @calciteListDragEnd=${(c) => this._onCalciteListDragEnd(c.detail)} ${b(this._rootListRef)}>${t.toArray().map((c) => this._renderItem(c))}${a && !this.hideNoFilterResultsNotice ? h`<div class=${E(
|
|
282
|
+
}} @calciteListOrderChange=${(c) => this._onCalciteListOrderChange(c.detail)} @calciteListDragEnd=${(c) => this._onCalciteListDragEnd(c.detail)} ${b(this._rootListRef)}>${t.toArray().map((c) => this._renderItem(c))}${a && !this.hideNoFilterResultsNotice ? h`<div class=${E(I.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>` : null}</calcite-list>` : this._renderNoItems()}</calcite-flow-item>`,
|
|
279
283
|
this._renderPanelFlowItems(),
|
|
280
284
|
this._renderedOpenLayerFlowItems
|
|
281
285
|
];
|
|
282
286
|
return this.closed ? null : v("root-flow", h`<calcite-flow>${_}</calcite-flow>`);
|
|
283
287
|
}
|
|
284
288
|
_renderItem(e, t, s) {
|
|
285
|
-
return v(e.uid,
|
|
289
|
+
return v(e.uid, Z({ activeItem: this._activeItem, canMove: this._canMove, css: I, displayMode: P, dragEnabled: this.dragEnabled, hideStatusIndicators: this.hideStatusIndicators, hideCatalogLayerList: this.hideCatalogLayerList, item: e, messages: this.messages, layerTablesEnabled: this.layerTablesEnabled, listModeDisabled: this.viewModel.listModeDisabled, operationalItems: this.operationalItems, parent: t, parentTitles: s, rootGroupUid: this._rootGroupUid, selectedDragItemLayerUid: this._selectedDragItemLayerUid, selectedItems: this.selectedItems, selectionMode: this.selectionMode, setCurrentActiveItem: this._setCurrentActiveItem, showTemporaryLayerIndicators: this.showTemporaryLayerIndicators, showCloseButton: this.showCloseButton, showCollapseButton: this.showCollapseButton, showErrors: this.showErrors, showHeading: this.showHeading, showFilter: this.showFilter, clearActiveItem: this._clearActiveItem, visibilityAppearance: this.visibilityAppearance, handleAction: this._onTriggerAction, handleCatalogOpen: this._onCatalogOpen, handleSelectedDragItemLayerUidChange: this._onSelectedDragItemLayerUidChange, handleTablesOpen: this._onTablesOpen, handleTooltipReferenceChange: this._onTooltipReferenceChange, view: this.view }));
|
|
286
290
|
}
|
|
287
291
|
}
|
|
288
|
-
|
|
292
|
+
k("arcgis-layer-list-next", oe);
|
|
289
293
|
export {
|
|
290
|
-
|
|
294
|
+
oe as ArcgisLayerListNext
|
|
291
295
|
};
|
|
@@ -1,13 +1,137 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import "lit";
|
|
3
|
-
import "lit/directives/keyed.js";
|
|
4
|
-
import "@arcgis/core/layers/catalog/catalogUtils.js";
|
|
5
|
-
import "@arcgis/lumina";
|
|
6
|
-
import "@arcgis/toolkit/dom";
|
|
7
|
-
import "lit/directives/ref.js";
|
|
8
|
-
import "../../../chunks/action-utils.js";
|
|
9
|
-
import "../../../chunks/layer-list-utils.js";
|
|
10
|
-
import {
|
|
2
|
+
import { html as s } from "lit";
|
|
3
|
+
import { keyed as K } from "lit/directives/keyed.js";
|
|
4
|
+
import { isLayerFromCatalog as Le } from "@arcgis/core/layers/catalog/catalogUtils.js";
|
|
5
|
+
import { safeClassMap as r, nothing as d } from "@arcgis/lumina";
|
|
6
|
+
import { classes as Q } from "@arcgis/toolkit/dom";
|
|
7
|
+
import { createRef as W, ref as X } from "lit/directives/ref.js";
|
|
8
|
+
import { a as Me } from "../../../chunks/action-utils.js";
|
|
9
|
+
import { f as ke, i as Y, l as Ee, h as Pe, j as we, k as De, g as Oe } from "../../../chunks/layer-list-utils.js";
|
|
10
|
+
import { i as Fe, g as Z, t as ee, h as te, a as Ge, F as Re, b as Ve, L as ie, f as He } from "../../../chunks/utils2.js";
|
|
11
|
+
const ae = /* @__PURE__ */ new Map();
|
|
12
|
+
function le(a) {
|
|
13
|
+
return a ? ae.get(a) ?? !1 : !1;
|
|
14
|
+
}
|
|
15
|
+
function Ue(a, e) {
|
|
16
|
+
const y = !(a.aria?.pressed ?? le(e));
|
|
17
|
+
return a.aria = { ...a.aria, pressed: y }, e && ae.set(e, y), y;
|
|
18
|
+
}
|
|
19
|
+
function qe(a) {
|
|
20
|
+
const { item: e, itemType: y = "layer", parent: f, hideStatusIndicators: ne, css: i, visibilityAppearance: I, hideCatalogLayerList: ce, dragEnabled: P = !1, rootGroupUid: A, listModeDisabled: se = !1, selectionMode: T, displayMode: oe, layerTablesEnabled: C, showErrors: re, parentTitles: w, selectedItems: de, activeItem: me, handleCatalogOpen: ue, handleTablesOpen: be, selectedDragItemLayerUid: ge, handleSelectedDragItemLayerUidChange: pe, handlePanelOpen: $e, messages: l, setCurrentActiveItem: D, clearActiveItem: O } = a, c = Fe(e), p = W(), S = W(), ye = y === "table" ? l.untitledTable ?? "" : l.untitledLayer ?? "", fe = c ? l.trackInfo?.[e.trackInfoType] ?? e.trackInfoType ?? "" : "", b = e.title || fe || ye || "";
|
|
21
|
+
let F = null;
|
|
22
|
+
!ne && !c && (F = s`<arcgis-layer-list-item-indicator class=${r(i.statusIndicator)} .messages=${l} .item=${e} .parent=${f} slot=content-end></arcgis-layer-list-item-indicator>`);
|
|
23
|
+
let G = null;
|
|
24
|
+
{
|
|
25
|
+
const { layer: t } = e, n = t && "persistenceEnabled" in t && (Le(t) || !t.persistenceEnabled);
|
|
26
|
+
!c && (a.showTemporaryLayerIndicators || a.showTemporaryTableIndicators) && n && (G = s`<calcite-icon class=${r(i.itemTemporaryIcon)} icon=temporary scale=s slot=content-start title=${l.temporary ?? d}></calcite-icon>`);
|
|
27
|
+
}
|
|
28
|
+
let R = null;
|
|
29
|
+
if ("visible" in e && "visibleToggle" in i && I) {
|
|
30
|
+
const t = Z(f);
|
|
31
|
+
if (t !== "inherited") {
|
|
32
|
+
const n = ke({
|
|
33
|
+
visible: e.visible,
|
|
34
|
+
exclusive: t === "exclusive",
|
|
35
|
+
visibilityAppearance: I
|
|
36
|
+
}), o = I === "checkbox", m = l.layerVisibility, $ = e.title ?? e.layer?.title ?? "", g = $ ? `${m ?? ""}: ${$}` : m ?? "", v = c ? e.visible : le(e.layer?.id);
|
|
37
|
+
R = s`<calcite-action .aria=${{ pressed: v }} class=${r(i.visibleToggle)} .icon=${o ? n : void 0} .label=${g} @click=${(E) => {
|
|
38
|
+
c || Ue(E.currentTarget, e.layer?.id), ee(e, f);
|
|
39
|
+
}} .slot=${o ? "actions-start" : "actions-end"} .text=${m ?? ""} title=${m ?? d}>${o ? null : s`<calcite-icon class=${r(Q({
|
|
40
|
+
[i.visibleIcon]: t !== "exclusive" && e.visible
|
|
41
|
+
}))} .icon=${n} scale=s></calcite-icon>`}</calcite-action>`;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
let V = null;
|
|
45
|
+
{
|
|
46
|
+
const t = e.panel;
|
|
47
|
+
t?.open && !t.disabled && !t.flowEnabled && (!c || te(e)) && (V = s`<div class=${r(i.itemContentBottom)} slot=content-bottom><arcgis-layer-list-item-panel .item=${e} .view=${a.view}></arcgis-layer-list-item-panel></div>`);
|
|
48
|
+
}
|
|
49
|
+
let H = null;
|
|
50
|
+
{
|
|
51
|
+
const t = e.panel;
|
|
52
|
+
if (t?.visible && (!c || te(e))) {
|
|
53
|
+
const { open: n, title: o, disabled: m } = t;
|
|
54
|
+
(t.content === "legend" || Array.isArray(t.content) && t.content.includes("legend")) && (t.icon = "legend");
|
|
55
|
+
const $ = {
|
|
56
|
+
icon: t.icon,
|
|
57
|
+
image: t.image ?? void 0,
|
|
58
|
+
indicator: !1
|
|
59
|
+
}, g = Me($);
|
|
60
|
+
H = s`<calcite-action .active=${n} .disabled=${m} .icon=${g} @click=${() => Ge(e, $e)} slot=actions-end .text=${o ?? ""} title=${o ?? void 0 ?? d}>${Re(i, t)}</calcite-action>`;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
let U = null;
|
|
64
|
+
{
|
|
65
|
+
const t = e.layer, n = t?.type === "catalog-footprint", o = t?.type === "sublayer" && Y(t, "footprints");
|
|
66
|
+
!c && "itemCatalogIcon" in i && (n || o) && (U = s`<calcite-icon class=${r(i.itemCatalogIcon)} icon=footprint scale=s slot=content-start></calcite-icon>`);
|
|
67
|
+
}
|
|
68
|
+
let q = null;
|
|
69
|
+
{
|
|
70
|
+
const t = e.layer, n = t?.type === "catalog-dynamic-group", o = t?.type === "sublayer" && Y(t, "layers-in-view");
|
|
71
|
+
!c && "itemCatalogIcon" in i && (n || o) && (q = s`<calcite-icon class=${r(i.itemCatalogIcon)} icon=catalog-dataset scale=s slot=content-start></calcite-icon>`);
|
|
72
|
+
}
|
|
73
|
+
let j = null;
|
|
74
|
+
if ("visible" in e) {
|
|
75
|
+
const t = e.layer;
|
|
76
|
+
!c && !ce && t?.type === "catalog-dynamic-group" && (j = s`<calcite-action .disabled=${!t.visible} icon=chevron-right icon-flip-rtl @click=${() => ue?.(e)} scale=s slot=actions-end .text=${b ?? ""}></calcite-action>`);
|
|
77
|
+
}
|
|
78
|
+
let B = null, x = !1;
|
|
79
|
+
{
|
|
80
|
+
const t = e.layer;
|
|
81
|
+
if (!c && C && t)
|
|
82
|
+
switch (t.type) {
|
|
83
|
+
case "knowledge-graph":
|
|
84
|
+
x = C.includes(t.type) && "tables" in t && !!t.tables?.length;
|
|
85
|
+
break;
|
|
86
|
+
case "map-image":
|
|
87
|
+
case "tile":
|
|
88
|
+
x = C.includes(t.type) && "subtables" in t && !!t.subtables?.length;
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
"itemTableIcon" in i && "visible" in e && "tables" in l && x && (B = K(`${e.uid}-tables`, s`<calcite-list-item class=${r(i.item)} data-layer-id=${t?.id ?? d} drag-disabled .label=${l.tables} title=${l.tables ?? d} @calciteListItemSelect=${() => be?.(e)} .value=${e}><calcite-icon class=${r(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>`));
|
|
92
|
+
}
|
|
93
|
+
let N = null;
|
|
94
|
+
if ("children" in e) {
|
|
95
|
+
const t = [...w ?? [], e.title], { children: n, layer: o } = e, m = o?.type !== "catalog-dynamic-group" && Ee(e), $ = se ? !1 : Pe(o), g = o?.type === "group", v = !$ && !m && P && g, E = g && "sortable" in e && e.sortable, Ce = n.some((u) => "sortable" in u && u.sortable), Se = P && (m || v) && (Ce || v) && ("childrenSortable" in e && e.childrenSortable || E) && we(e), xe = m ? (n?.filter((u) => !u.hidden && (re || !u.error)).toArray() ?? []).map((u) => qe({
|
|
96
|
+
...a,
|
|
97
|
+
item: u,
|
|
98
|
+
parent: e,
|
|
99
|
+
parentTitles: t
|
|
100
|
+
})) : null;
|
|
101
|
+
(m || v) && (N = s`<calcite-list .canPull=${(u) => a.canMove ? a.canMove(u, "pull") : !1} .canPut=${(u) => a.canMove ? a.canMove(u, "put") : !1} data-item=${e.uid ?? d} data-layer-type=${A ?? d} .displayMode=${oe} .dragEnabled=${Se} .group=${g ? A : `${A}-${o?.uid}`} .label=${e.title} selection-appearance=highlight .selectionMode=${T}>${xe}${B}</calcite-list>`);
|
|
102
|
+
}
|
|
103
|
+
let L = null;
|
|
104
|
+
if (!c && e.error) {
|
|
105
|
+
const t = "layerError" in l ? l.layerError : l.tableError;
|
|
106
|
+
L = s`<div class=${r(i.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s width=full><div slot=message>${t}</div></calcite-notice></div>`;
|
|
107
|
+
} else "incompatible" in e && e.incompatible && "layerIncompatible" in l && (L = s`<div class=${r(i.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s tabindex=0 width=full ${X(S)}><div slot=message>${l.layerIncompatible}</div></calcite-notice></div>`);
|
|
108
|
+
const _ = Ve(e), M = e.actionsSections.reduce((t, n) => t + n.length, 0), z = De(_), ve = _.toArray().map((t) => s`<calcite-action-group>${t.toArray().map((n) => ie(a, n, !0))}</calcite-action-group>`), he = (t) => {
|
|
109
|
+
e.actionsOpen = t.currentTarget.open;
|
|
110
|
+
};
|
|
111
|
+
let J = null;
|
|
112
|
+
M > 1 && (J = s`<calcite-action-menu appearance=transparent .label=${l.menu ?? ""} .open=${e.actionsOpen} overlay-positioning=fixed placement=bottom-end slot=actions-end @calciteActionMenuOpen=${he}><calcite-action .aria=${{
|
|
113
|
+
expanded: e.actionsOpen ?? !1,
|
|
114
|
+
hasPopup: "true"
|
|
115
|
+
}} icon=ellipsis scale=s slot=trigger .text=${l.options ?? ""} title=${l.options ?? d}></calcite-action>${ve}</calcite-action-menu>`);
|
|
116
|
+
let k = null;
|
|
117
|
+
M === 1 && z ? k = ie(a, z, !1) : M > 1 && (k = J);
|
|
118
|
+
const Ie = c ? b : "visibleAtCurrentTimeExtent" in e && "layerInvisibleAtTime" in l && !e.visibleAtCurrentTimeExtent ? `${b} (${l.layerInvisibleAtTime})` : "visibleAtCurrentScale" in e && "layerInvisibleAtScale" in l && !e.visibleAtCurrentScale ? `${b} (${l.layerInvisibleAtScale})` : b, Ae = "parent" in e && e.parent?.layer?.type === "catalog", h = e.layer, Te = !c && ("visibleAtCurrentScale" in e && !e.visibleAtCurrentScale || "visibleAtCurrentTimeExtent" in e && !e.visibleAtCurrentTimeExtent);
|
|
119
|
+
return queueMicrotask(() => {
|
|
120
|
+
c || He(p.value ?? null, e, ge, pe), S.value && (a.handleTooltipReferenceChange?.(h?.uid, S.value), queueMicrotask(() => a.handleTooltipReferenceChange?.(h?.uid, null)));
|
|
121
|
+
}), K(e.uid, s`<calcite-list-item class=${r(Q(i.item, "itemActive" in i && { [i.itemActive]: me?.uid === e.uid }))} data-item=${e.uid ?? d} data-layer-id=${h?.id ?? d} .dragDisabled=${!("sortable" in e && e.sortable) || Ae} id=${(c ? void 0 : h?.uid) ?? d} .label=${b} .metadata=${{ parentTitles: w ?? [], _title: b }} .expanded=${"open" in e && e.open} .selected=${T !== "none" ? de.includes(e) : !1} title=${Ie ?? d} .unavailable=${Te} .value=${e} @focusin=${() => {
|
|
122
|
+
D?.(e), p.value?.classList.add(i.itemActive);
|
|
123
|
+
}} @focusout=${() => {
|
|
124
|
+
O?.(), p.value?.classList.remove(i.itemActive);
|
|
125
|
+
}} @mouseover=${() => {
|
|
126
|
+
D?.(e), p.value?.classList.add(i.itemActive);
|
|
127
|
+
}} @mouseleave=${() => {
|
|
128
|
+
O?.(), p.value?.classList.remove(i.itemActive);
|
|
129
|
+
}} @calciteListItemSelect=${(t) => {
|
|
130
|
+
t.target === t.currentTarget && "visible" in e && Oe(t.currentTarget, a.operationalItems) === e && T === "none" && Z(f) !== "inherited" && ee(e, f);
|
|
131
|
+
}} @calciteListItemToggle=${(t) => {
|
|
132
|
+
"open" in e && (t.stopPropagation(), e.open = t.target.expanded);
|
|
133
|
+
}} ${X(p)}>${U}${q}${F}${R}${j}${G}${N}${L}${V}${H}${k}</calcite-list-item>`);
|
|
134
|
+
}
|
|
11
135
|
export {
|
|
12
|
-
|
|
136
|
+
qe as ArcgisLayerListItem
|
|
13
137
|
};
|
|
@@ -40,6 +40,11 @@ export type LayerListMessages = {
|
|
|
40
40
|
tableError: string;
|
|
41
41
|
temporary: string;
|
|
42
42
|
tables: string;
|
|
43
|
+
trackInfo: {
|
|
44
|
+
latestObservations: string;
|
|
45
|
+
previousObservations: string;
|
|
46
|
+
trackLines: string;
|
|
47
|
+
};
|
|
43
48
|
catalogLayers: string;
|
|
44
49
|
connectionStatus: string;
|
|
45
50
|
updating: string;
|
|
@@ -4,7 +4,7 @@ import { css as y, html as s } from "lit";
|
|
|
4
4
|
import { LitElement as v, safeClassMap as $, safeStyleMap as u } from "@arcgis/lumina";
|
|
5
5
|
import { classes as L } from "@arcgis/toolkit/dom";
|
|
6
6
|
import { r as b } from "../../chunks/svgUtils.js";
|
|
7
|
-
import { a as x } from "../../chunks/
|
|
7
|
+
import { a as x } from "../../chunks/utils3.js";
|
|
8
8
|
const w = y`:host{display:flex}.layer-row{display:flex;flex:1}.color-ramp-container{justify-content:center}.symbol-container{display:flex;flex-direction:column}.interval-separators-container{text-align:center}.interval-separator{font-size:.5em}.ramp-label{margin:0 .5em;white-space:nowrap;height:25px;line-height:var(--calcite-font-line-height-fixed-xl)}`, R = 25, E = 25, _ = 100;
|
|
9
9
|
class S extends v {
|
|
10
10
|
constructor() {
|