@arcgis/map-components 5.2.0-next.95 → 5.2.0-next.97
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/22TB66OC.js +2 -0
- package/dist/cdn/{GIQDIWW4.js → 22VFTYTN.js} +1 -1
- package/dist/cdn/367Z3TKY.js +2 -0
- package/dist/cdn/{AY2PVEY5.js → 3AIQYNSA.js} +1 -1
- 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/{SSJBKHEN.js → 77NK4UBY.js} +1 -1
- package/dist/cdn/{LPB2JMJ5.js → 7F2DXC54.js} +1 -1
- package/dist/cdn/{Y56FOEA4.js → A3KD2UAY.js} +1 -1
- package/dist/cdn/AJBOKAK6.js +2 -0
- package/dist/cdn/{2HYRTMJ6.js → AOBYM5ZK.js} +1 -1
- package/dist/cdn/{MXYWUI34.js → ASVNFERZ.js} +1 -1
- package/dist/cdn/AZ6IOGGT.js +2 -0
- package/dist/cdn/{PWY44JI6.js → B4KOVXN3.js} +1 -1
- package/dist/cdn/{7TTSWTGP.js → BHENVS42.js} +1 -1
- package/dist/cdn/BOPKJR3D.js +2 -0
- package/dist/cdn/{K2FKS4AS.js → BZGHEINJ.js} +1 -1
- package/dist/cdn/{VHHRBGXN.js → CJLML2XS.js} +1 -1
- package/dist/cdn/CKO4VE36.js +2 -0
- package/dist/cdn/{2F6NRCC5.js → DVGE5VPK.js} +1 -1
- package/dist/cdn/{I3VQ46FA.js → EAQV7AZQ.js} +1 -1
- package/dist/cdn/EDGLEFG3.js +2 -0
- 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/G743AW46.js +2 -0
- package/dist/cdn/{XZGU6TR6.js → GGKOLSCH.js} +1 -1
- package/dist/cdn/{3CHIGFZL.js → GLMK45AB.js} +1 -1
- package/dist/cdn/H7KG55LR.js +2 -0
- 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/{KZPPV365.js → JMYDF3AT.js} +1 -1
- package/dist/cdn/L4DWZT4V.js +2 -0
- 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/N2RLGXGJ.js +2 -0
- 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/P2JBFLSB.js +2 -0
- 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/{O6CGTOAO.js → S7JDLOX2.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/assets/selection-list/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/video-player/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/esri-main.js +1 -1
- package/dist/chunks/layer-list-utils.js +23 -17
- package/dist/chunks/slots.js +1 -1
- 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-aggregated-features/customElement.js +7 -7
- 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.d.ts +5 -6
- package/dist/components/arcgis-basemap-layer-list-next/customElement.js +6 -5
- package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +11 -1
- package/dist/components/arcgis-catalog-layer-list-next/customElement.js +1 -1
- package/dist/components/arcgis-catalog-layer-list-next/types.d.ts +2 -2
- 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-feature/customElement.js +27 -27
- package/dist/components/arcgis-feature-attachments/customElement.js +73 -60
- package/dist/components/arcgis-feature-next/customElement.d.ts +7 -0
- package/dist/components/arcgis-feature-next/customElement.js +12 -12
- package/dist/components/arcgis-feature-relationship/customElement.js +54 -45
- package/dist/components/arcgis-features-next/customElement.d.ts +7 -0
- package/dist/components/arcgis-features-next/customElement.js +16 -16
- 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 +41 -9
- 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-popup/customElement.d.ts +7 -0
- package/dist/components/arcgis-popup/customElement.js +15 -15
- 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-scene/customElement.d.ts +2 -2
- package/dist/components/arcgis-selection-list/customElement.d.ts +421 -0
- package/dist/components/arcgis-selection-list/customElement.js +279 -0
- package/dist/components/arcgis-selection-list/index.d.ts +1 -0
- package/dist/components/arcgis-selection-list/index.js +16 -0
- package/dist/components/arcgis-selection-list/types.d.ts +85 -0
- 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 +2 -2
- 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-video-player/customElement.d.ts +3 -0
- package/dist/components/arcgis-video-player/customElement.js +1 -1
- package/dist/components/arcgis-video-player-slider/customElement.js +9 -9
- 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/index.d.ts +10 -0
- package/dist/loader.js +15 -14
- package/dist/types/lumina.d.ts +19 -12
- package/dist/types/preact.d.ts +20 -12
- package/dist/types/react.d.ts +21 -12
- package/dist/types/stencil.d.ts +19 -12
- package/dist/utils/layer-list-utils.d.ts +1 -1
- package/package.json +7 -7
- package/dist/cdn/2GDWXNYN.js +0 -2
- package/dist/cdn/376WTHOL.js +0 -2
- package/dist/cdn/4YFREAQ2.js +0 -2
- package/dist/cdn/A6Z7H75I.js +0 -2
- package/dist/cdn/CDMVB72W.js +0 -2
- package/dist/cdn/D5TJRWW3.js +0 -2
- package/dist/cdn/ECXHREHJ.js +0 -2
- package/dist/cdn/FIIA3N5X.js +0 -2
- package/dist/cdn/FY6IGGPV.js +0 -2
- package/dist/cdn/G7HOUS4O.js +0 -2
- package/dist/cdn/HF3GCBAI.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/LKCX5SXM.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/S3QMZKDY.js +0 -2
- package/dist/cdn/XQH6U57U.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
|
@@ -5,12 +5,12 @@ import { keyed as S } from "lit/directives/keyed.js";
|
|
|
5
5
|
import z from "@arcgis/core/support/actions/ActionButton.js";
|
|
6
6
|
import k from "@arcgis/core/core/Collection.js";
|
|
7
7
|
import V from "@arcgis/core/popup/FeatureContentCollection.js";
|
|
8
|
-
import { LitElement as U, createEvent as
|
|
8
|
+
import { LitElement as U, createEvent as y, renderElement as Z, nothing as h, safeClassMap as x } from "@arcgis/lumina";
|
|
9
9
|
import { useDirection as K, usePropertyChange as j, bypassReadOnly as D } from "@arcgis/lumina/controllers";
|
|
10
10
|
import { classes as T } from "@arcgis/toolkit/dom";
|
|
11
11
|
import { slotChangeHasContent as L } from "@arcgis/toolkit/dom/slots";
|
|
12
12
|
import { createRef as w, ref as f } from "lit/directives/ref.js";
|
|
13
|
-
import { g as
|
|
13
|
+
import { g as R } from "../../chunks/feature-utils.js";
|
|
14
14
|
import { initializeProjection as q } from "@arcgis/core/applications/Components/featureUtils.js";
|
|
15
15
|
import { t as G, z as W } from "../../chunks/action-utils.js";
|
|
16
16
|
import { m as X } from "../../chunks/useViewModel.js";
|
|
@@ -19,7 +19,7 @@ import { stripHTML as E } from "@arcgis/core/applications/Components/stringUtils
|
|
|
19
19
|
import { substitute as d, formatNumber as C } from "@arcgis/core/intl.js";
|
|
20
20
|
import { u as J } from "../../chunks/useT9n.js";
|
|
21
21
|
import { when as Q, watch as u } from "@arcgis/core/core/reactiveUtils.js";
|
|
22
|
-
import { a as
|
|
22
|
+
import { a as N } from "../../chunks/maybe.js";
|
|
23
23
|
import { b as Y, a as ee, c as te } from "../../chunks/keyboard-utils.js";
|
|
24
24
|
const ie = P`:host{display:flex;overflow:hidden;flex:1 1 auto}.root{--calcite-color-background: var(--calcite-color-foreground-1);display:flex;overflow:hidden;flex:1 1 auto;flex-direction:column}.root img{image-orientation:from-image}.flow-item-collapsed{--calcite-flow-item-header-border-block-end: none}.container{display:flex;flex:1 1 auto;background-color:var(--calcite-color-foreground-1)}.container calcite-list{width:100%}.container:not(:empty,.content-hidden){padding:var(--arcgis-internal-padding-md, var(--calcite-spacing-md))}.root .arcgis-feature,.root .arcgis-feature-relationship,.root .arcgis-feature-utility-network-associations{background-color:transparent}.heading{word-break:break-word;word-wrap:break-word}.header,.footer{display:flex;align-items:center;justify-content:flex-end;background-color:var(--calcite-color-foreground-1)}.footer{flex:1}.pagination-text{padding-inline:var(--calcite-spacing-sm);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-sm)}.loader{align-self:center;padding-inline:var(--calcite-spacing-lg)}.pagination-action-bar{flex:1}.pagination-menu-button{padding-inline:var(--calcite-spacing-xxs);border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.icon{display:inline-block;flex:0 0 var(--calcite-spacing-lg);width:var(--calcite-spacing-lg);height:var(--calcite-spacing-lg)}.action-image{flex:0 0 var(--calcite-spacing-lg);background-position:50% 50%;background-repeat:no-repeat;background-size:contain;width:var(--calcite-spacing-lg);height:var(--calcite-spacing-lg)}.content-feature{--calcite-flow-item-footer-padding: 0;--calcite-flow-header-top-space: 0}.feature-menu-observer{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.action-exit{transform:scaleX(-1)}.flow-item-drill-in{--calcite-flow-item-footer-padding: 0}`;
|
|
25
25
|
function ae(v) {
|
|
@@ -41,11 +41,11 @@ class re extends U {
|
|
|
41
41
|
}, this._featureMenuIntersectionObserver = new IntersectionObserver(this._featureMenuIntersectionObserverCallback, {
|
|
42
42
|
root: window.document
|
|
43
43
|
}), this._featureMenuIntersectionObserverNode = null, this._setFocusAnimationFrameId = null, this._setFocusAnimationFrameResolve = null, this._rootFlowItemNode = w(), this._featureMenuViewportNode = w(), this._actionBarMenuNode = w(), this._flowContainerNode = w(), this._aggregatedFeaturesComponent = w(), this.messages = J(), this._selectedFeatureComponent = w(), this._direction = K(), this._cancelOpenRelatedFeature = () => {
|
|
44
|
-
this._openRelatedFeatureAbortController =
|
|
45
|
-
}, this._spinnerVisible = !1, this._spinnerVisibilityTimeout = null, this._openRelatedFeatureAbortController = null, this.flowItems = new k(), this._aggregatedFeatureCount = 0, this._selectedAggregatedFeatureIndex = -1, this._aggregatedFeaturesLoading = !1, this._hasActionsStartSlotContent = !1, this._hasActionsEndSlotContent = !1, this.viewModel = ne(this), this.actions = this.viewModel.actions, this.active = this.viewModel.active, this.autoDestroyDisabled = !1, this.focusTrapEnabled = !1, this.collapsed = !1, this.content = this.viewModel.content, this.defaultPopupTemplateEnabled = this.viewModel.defaultPopupTemplateEnabled, this.effectiveHeading = this.viewModel.effectiveHeading, this.featureCount = this.viewModel.featureCount, this.featureMenuOpen = !1, this.featureNavigationTop = !1, this.features = this.viewModel.features, this.featuresPerPage = this.viewModel.featuresPerPage, this.featureItemAbilities = this.viewModel.featureItemAbilities, this.goToOverride = this.viewModel.goToOverride, this.headerActions = new k(), this.heading = this.viewModel.heading, this.headingLevel = 2, this.hideActionBar = !1, this.hideCloseButton = !1, this.hideFeatureMenuHeading = !1, this.hideFeatureNavigation = !1, this.hideFeatureListLayerTitle = !1, this.hideHeading = !1, this.hideSelectFeature = !1, this.hideSpinner = !1, this.hideContent = !1, this.chartAnimationDisabled = this.viewModel.featureItemAbilities?.chartAnimation, this.hideAttachmentsContent = this.viewModel.featureItemAbilities?.attachmentsContent, this.hideCustomContent = this.viewModel.featureItemAbilities?.customContent, this.hideExpressionContent = !1, this.hideFieldsContent = this.viewModel.featureItemAbilities?.fieldsContent, this.hideMediaContent = this.viewModel.featureItemAbilities?.mediaContent, this.hideRelationshipContent = this.viewModel.featureItemAbilities?.relationshipContent, this.hideTextContent = this.viewModel.featureItemAbilities?.textContent, this.hideUtilityNetworkContent = this.viewModel.featureItemAbilities?.utilityNetworkAssociationsContent, this.hideLastEditedInfo = !1, this.highlightDisabled = this.viewModel.highlightEnabled, this.includeDefaultActionsDisabled = this.viewModel.includeDefaultActions, this.initialDisplayMode = this.viewModel.initialDisplayMode, this.location = this.viewModel.location, this.map = this.viewModel.map, this.open = this.viewModel.open, this.promises = this.viewModel.promises, this.responsiveActionsEnabled = !1, this.selectedFeature = this.viewModel.selectedFeature, this.selectedFeatureIndex = this.viewModel.selectedFeatureIndex, this.showCollapseButton = !1, this.spatialReference = this.viewModel.spatialReference, this.state = this.viewModel.state, this.timeZone = this.viewModel.timeZone, this.updateLocationEnabled = this.viewModel.updateLocationEnabled, this.view = this.viewModel.view, this.arcgisPropertyChange = j()("active", "collapsed", "effectiveHeading", "featureCount", "featureMenuOpen", "features", "promises", "selectedDrillInFeature", "selectedFeature", "selectedFeatureComponent", "selectedFeatureIndex", "state", "open"), this.arcgisReady =
|
|
44
|
+
this._openRelatedFeatureAbortController = N(this._openRelatedFeatureAbortController);
|
|
45
|
+
}, this._spinnerVisible = !1, this._spinnerVisibilityTimeout = null, this._openRelatedFeatureAbortController = null, this.flowItems = new k(), this._aggregatedFeatureCount = 0, this._selectedAggregatedFeatureIndex = -1, this._aggregatedFeaturesLoading = !1, this._hasActionsStartSlotContent = !1, this._hasActionsEndSlotContent = !1, this.viewModel = ne(this), this.actions = this.viewModel.actions, this.active = this.viewModel.active, this.autoDestroyDisabled = !1, this.focusTrapEnabled = !1, this.collapsed = !1, this.content = this.viewModel.content, this.defaultPopupTemplateEnabled = this.viewModel.defaultPopupTemplateEnabled, this.effectiveHeading = this.viewModel.effectiveHeading, this.featureCount = this.viewModel.featureCount, this.featureMenuOpen = !1, this.featureNavigationTop = !1, this.features = this.viewModel.features, this.featuresPerPage = this.viewModel.featuresPerPage, this.featureItemAbilities = this.viewModel.featureItemAbilities, this.goToOverride = this.viewModel.goToOverride, this.headerActions = new k(), this.heading = this.viewModel.heading, this.headingLevel = 2, this.hideActionBar = !1, this.hideCloseButton = !1, this.hideFeatureMenuHeading = !1, this.hideFeatureNavigation = !1, this.hideFeatureListLayerTitle = !1, this.hideHeading = !1, this.hideSelectFeature = !1, this.hideSpinner = !1, this.hideContent = !1, this.chartAnimationDisabled = this.viewModel.featureItemAbilities?.chartAnimation, this.hideAttachmentsContent = this.viewModel.featureItemAbilities?.attachmentsContent, this.hideEmptyRelationshipContent = !1, this.hideCustomContent = this.viewModel.featureItemAbilities?.customContent, this.hideExpressionContent = !1, this.hideFieldsContent = this.viewModel.featureItemAbilities?.fieldsContent, this.hideMediaContent = this.viewModel.featureItemAbilities?.mediaContent, this.hideRelationshipContent = this.viewModel.featureItemAbilities?.relationshipContent, this.hideTextContent = this.viewModel.featureItemAbilities?.textContent, this.hideUtilityNetworkContent = this.viewModel.featureItemAbilities?.utilityNetworkAssociationsContent, this.hideLastEditedInfo = !1, this.highlightDisabled = this.viewModel.highlightEnabled, this.includeDefaultActionsDisabled = this.viewModel.includeDefaultActions, this.initialDisplayMode = this.viewModel.initialDisplayMode, this.location = this.viewModel.location, this.map = this.viewModel.map, this.open = this.viewModel.open, this.promises = this.viewModel.promises, this.responsiveActionsEnabled = !1, this.selectedFeature = this.viewModel.selectedFeature, this.selectedFeatureIndex = this.viewModel.selectedFeatureIndex, this.showCollapseButton = !1, this.spatialReference = this.viewModel.spatialReference, this.state = this.viewModel.state, this.timeZone = this.viewModel.timeZone, this.updateLocationEnabled = this.viewModel.updateLocationEnabled, this.view = this.viewModel.view, this.arcgisPropertyChange = j()("active", "collapsed", "effectiveHeading", "featureCount", "featureMenuOpen", "features", "promises", "selectedDrillInFeature", "selectedFeature", "selectedFeatureComponent", "selectedFeatureIndex", "state", "open"), this.arcgisReady = y(), this.arcgisClose = y(), this.arcgisTriggerAction = y();
|
|
46
46
|
}
|
|
47
47
|
static {
|
|
48
|
-
this.properties = { _openRelatedFeatureAbortController: 16, flowItems: 16, _aggregatedFeatureCount: 16, _selectedAggregatedFeatureIndex: 16, _aggregatedFeaturesLoading: 16, _hasActionsStartSlotContent: 16, _hasActionsEndSlotContent: 16, _hideActionText: 16, _featureNavigationVisible: 16, _isCollapsed: 16, _collapseEnabled: 16, _selectedFeatureHeading: 16, _selectedFeatureHeadingText: 16, _selectedFeatureContent: 16, _featureFlowItemSelected: 16, viewModel: 0, actions: 0, active: 0, autoDestroyDisabled: 5, focusTrapEnabled: 5, collapseDirection: 1, collapsed: 5, content: 1, defaultPopupTemplateEnabled: 5, effectiveHeading: 32, featureCount: 9, featureMenuOpen: 5, featureMenuTitle: 1, featureNavigationTop: 5, features: 0, featuresPerPage: 9, featureItemAbilities: 0, goToOverride: 0, headerActions: 0, heading: 1, headingLevel: 9, hideActionBar: 5, hideCloseButton: 5, hideFeatureMenuHeading: 5, hideFeatureNavigation: 5, hideFeatureListLayerTitle: 5, hideHeading: 5, hideSelectFeature: 5, hideSpinner: 5, hideContent: 5, chartAnimationDisabled: 5, hideAttachmentsContent: 5, hideCustomContent: 5, hideExpressionContent: 5, hideFieldsContent: 5, hideMediaContent: 5, hideRelationshipContent: 5, hideTextContent: 5, hideUtilityNetworkContent: 5, hideLastEditedInfo: 5, highlightDisabled: 5, icon: 1, includeDefaultActionsDisabled: 5, initialDisplayMode: 1, label: 1, location: 0, map: 0, messageOverrides: 0, open: 5, referenceElement: 1, promises: 0, responsiveActionsEnabled: 5, selectedDrillInFeature: 32, selectedFeature: 0, selectedFeatureComponent: 32, selectedFeatureIndex: 9, showCollapseButton: 5, spatialReference: 0, state: 32, timeZone: 1, updateLocationEnabled: 5, view: 0 };
|
|
48
|
+
this.properties = { _openRelatedFeatureAbortController: 16, flowItems: 16, _aggregatedFeatureCount: 16, _selectedAggregatedFeatureIndex: 16, _aggregatedFeaturesLoading: 16, _hasActionsStartSlotContent: 16, _hasActionsEndSlotContent: 16, _hideActionText: 16, _featureNavigationVisible: 16, _isCollapsed: 16, _collapseEnabled: 16, _selectedFeatureHeading: 16, _selectedFeatureHeadingText: 16, _selectedFeatureContent: 16, _featureFlowItemSelected: 16, viewModel: 0, actions: 0, active: 0, autoDestroyDisabled: 5, focusTrapEnabled: 5, collapseDirection: 1, collapsed: 5, content: 1, defaultPopupTemplateEnabled: 5, effectiveHeading: 32, featureCount: 9, featureMenuOpen: 5, featureMenuTitle: 1, featureNavigationTop: 5, features: 0, featuresPerPage: 9, featureItemAbilities: 0, goToOverride: 0, headerActions: 0, heading: 1, headingLevel: 9, hideActionBar: 5, hideCloseButton: 5, hideFeatureMenuHeading: 5, hideFeatureNavigation: 5, hideFeatureListLayerTitle: 5, hideHeading: 5, hideSelectFeature: 5, hideSpinner: 5, hideContent: 5, chartAnimationDisabled: 5, hideAttachmentsContent: 5, hideEmptyRelationshipContent: 5, hideCustomContent: 5, hideExpressionContent: 5, hideFieldsContent: 5, hideMediaContent: 5, hideRelationshipContent: 5, hideTextContent: 5, hideUtilityNetworkContent: 5, hideLastEditedInfo: 5, highlightDisabled: 5, icon: 1, includeDefaultActionsDisabled: 5, initialDisplayMode: 1, label: 1, location: 0, map: 0, messageOverrides: 0, open: 5, referenceElement: 1, promises: 0, responsiveActionsEnabled: 5, selectedDrillInFeature: 32, selectedFeature: 0, selectedFeatureComponent: 32, selectedFeatureIndex: 9, showCollapseButton: 5, spatialReference: 0, state: 32, timeZone: 1, updateLocationEnabled: 5, view: 0 };
|
|
49
49
|
}
|
|
50
50
|
static {
|
|
51
51
|
this.styles = ie;
|
|
@@ -164,7 +164,7 @@ class re extends U {
|
|
|
164
164
|
this._setFocusAnimationFrameId != null && (cancelAnimationFrame(this._setFocusAnimationFrameId), this._setFocusAnimationFrameId = null), this._resolveSetFocusAnimationFrame();
|
|
165
165
|
}
|
|
166
166
|
_cancelFetchingFeatures() {
|
|
167
|
-
this._fetchFeaturesController =
|
|
167
|
+
this._fetchFeaturesController = N(this._fetchFeaturesController);
|
|
168
168
|
}
|
|
169
169
|
_handleClose() {
|
|
170
170
|
this.close(), this.arcgisClose.emit();
|
|
@@ -175,7 +175,7 @@ class re extends U {
|
|
|
175
175
|
const i = a?.graphic;
|
|
176
176
|
if (!i)
|
|
177
177
|
return;
|
|
178
|
-
const s =
|
|
178
|
+
const s = R(i), n = ae(s) ? s : null;
|
|
179
179
|
let o = t.get(n);
|
|
180
180
|
o || (o = [], t.set(n, o)), o.push(a);
|
|
181
181
|
}), t;
|
|
@@ -268,7 +268,7 @@ class re extends U {
|
|
|
268
268
|
}
|
|
269
269
|
_viewScaleChange() {
|
|
270
270
|
const { selectedFeature: e } = this;
|
|
271
|
-
!e?.isAggregate || se(
|
|
271
|
+
!e?.isAggregate || se(R(e)) !== "cluster" || (this.viewModel.aggregatedFeaturesEnabled = !1, this.open = !1, this.clear());
|
|
272
272
|
}
|
|
273
273
|
_viewChange() {
|
|
274
274
|
this.viewModel.clear(), this.open = !1, this._aggregatedFeatureCount = 0, this._removeFlowItems();
|
|
@@ -387,10 +387,10 @@ class re extends U {
|
|
|
387
387
|
if (o === "list" && !l)
|
|
388
388
|
return null;
|
|
389
389
|
const _ = m ? !m.content : !F;
|
|
390
|
-
return r`<calcite-flow-item .focusTrapEnabled=${this.focusTrapEnabled} class=${
|
|
390
|
+
return r`<calcite-flow-item .focusTrapEnabled=${this.focusTrapEnabled} class=${x(T({
|
|
391
391
|
"content-feature": !0,
|
|
392
392
|
"flow-item-collapsed": i
|
|
393
|
-
}))} .closable=${!a} .closed=${!g} .collapsed=${i} .collapseDirection=${this.collapseDirection ?? (n ? "down" : "up")} .collapsible=${s} .headingLevel=${t} .selected=${e} .messageOverrides=${{ collapse: this.messages.collapse, expand: this.messages.expand }} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} .heading=${!c && p ? E(p) : void 0} ${f(this._rootFlowItemNode)}>${this._renderHeader()}${!c && p ? r`<div slot=heading><div .innerHTML=${b.sanitize(p ?? "") ?? ""}></div></div>` : null}${this._renderHeaderActions()}${this._renderActionBar()}<div class=${
|
|
393
|
+
}))} .closable=${!a} .closed=${!g} .collapsed=${i} .collapseDirection=${this.collapseDirection ?? (n ? "down" : "up")} .collapsible=${s} .headingLevel=${t} .selected=${e} .messageOverrides=${{ collapse: this.messages.collapse, expand: this.messages.expand }} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} .heading=${!c && p ? E(p) : void 0} ${f(this._rootFlowItemNode)}>${this._renderHeader()}${!c && p ? r`<div slot=heading><div .innerHTML=${b.sanitize(p ?? "") ?? ""}></div></div>` : null}${this._renderHeaderActions()}${this._renderActionBar()}<div class=${x(T("container", "content-container", {
|
|
394
394
|
"content-hidden": _
|
|
395
395
|
}))}>${this._renderContent()}</div>${this._renderFooter()}</calcite-flow-item>`;
|
|
396
396
|
}
|
|
@@ -400,12 +400,12 @@ class re extends U {
|
|
|
400
400
|
});
|
|
401
401
|
if (s === "feature" && !n)
|
|
402
402
|
return null;
|
|
403
|
-
const
|
|
404
|
-
return r`<calcite-flow-item .focusTrapEnabled=${this.focusTrapEnabled} class=${
|
|
403
|
+
const O = !o;
|
|
404
|
+
return r`<calcite-flow-item .focusTrapEnabled=${this.focusTrapEnabled} class=${x(T({
|
|
405
405
|
"flow-item-collapsed": c
|
|
406
406
|
}))} .closable=${!t} .closed=${!F} .collapsed=${s === "list" && c} .collapseDirection=${this.collapseDirection ?? (g ? "down" : "up")} .collapsible=${s === "list" && l} .messageOverrides=${{ collapse: this.messages.collapse, expand: this.messages.expand, back: I }} .description=${this.hideFeatureMenuHeading ? void 0 : d(i.total ?? "", {
|
|
407
407
|
total: p.length
|
|
408
|
-
})} .heading=${this.hideFeatureMenuHeading ? void 0 : A} .headingLevel=${m} .loading=${e.waitingForContents} .selected=${
|
|
408
|
+
})} .heading=${this.hideFeatureMenuHeading ? void 0 : A} .headingLevel=${m} .loading=${e.waitingForContents} .selected=${O} @calciteFlowItemBack=${(B) => {
|
|
409
409
|
B.preventDefault(), this._handleFeatureMenuBack();
|
|
410
410
|
}} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} ${f(this._featureMenuViewportNode)}>${s === "list" ? this._renderHeaderActions() : null}${M ? r`<calcite-loader class="loader" inline .label=${i.loading ?? ""} slot=header-actions-end></calcite-loader>` : null}<div class="container">${this._renderFeatureMenu()}</div><div class="feature-menu-observer" ${f(this._featureMenuIntersectionObserverCreated)}></div>${s === "feature" ? r`<calcite-button scale=s appearance=transparent @click=${this._handleFeatureMenuBack} slot=footer-start width=full .label=${I} title=${I ?? h}>${i.back}</calcite-button>` : null}</calcite-flow-item>`;
|
|
411
411
|
}
|
|
@@ -433,7 +433,7 @@ class re extends U {
|
|
|
433
433
|
l.preventDefault(), this.viewModel.aggregatedFeaturesEnabled = !1;
|
|
434
434
|
}} .messageOverrides=${{
|
|
435
435
|
back: o
|
|
436
|
-
}} .loading=${this._aggregatedFeaturesLoading} @calciteFlowItemClose=${this._handleClose}><arcgis-aggregated-features .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .feature=${s ?? void 0} .flowItems=${this.flowItems} .headingLevel=${this.headingLevel + 1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map ?? void 0} .messageOverrides=${this.messageOverrides} .messages=${i} @arcgisPropertyChange=${this._handleAggregatedFeaturesPropertyChange} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference ?? void 0} .timeZone=${this.timeZone ?? void 0} .view=${this.view ?? void 0} ${f(this._aggregatedFeaturesComponent)}></arcgis-aggregated-features><calcite-button appearance=transparent @click=${() => this.viewModel.aggregatedFeaturesEnabled = !1} slot=footer-start scale=s width=full .label=${o} title=${o ?? h}>${i.back}</calcite-button></calcite-flow-item>` : null;
|
|
436
|
+
}} .loading=${this._aggregatedFeaturesLoading} @calciteFlowItemClose=${this._handleClose}><arcgis-aggregated-features .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .feature=${s ?? void 0} .flowItems=${this.flowItems} .headingLevel=${this.headingLevel + 1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideEmptyRelationshipContent=${this.hideEmptyRelationshipContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map ?? void 0} .messageOverrides=${this.messageOverrides} .messages=${i} @arcgisPropertyChange=${this._handleAggregatedFeaturesPropertyChange} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference ?? void 0} .timeZone=${this.timeZone ?? void 0} .view=${this.view ?? void 0} ${f(this._aggregatedFeaturesComponent)}></arcgis-aggregated-features><calcite-button appearance=transparent @click=${() => this.viewModel.aggregatedFeaturesEnabled = !1} slot=footer-start scale=s width=full .label=${o} title=${o ?? h}>${i.back}</calcite-button></calcite-flow-item>` : null;
|
|
437
437
|
}
|
|
438
438
|
_renderActionBar() {
|
|
439
439
|
const e = this.viewModel.selectedFeatureItem?.isFeatureFromTable, t = this.viewModel.allActions.toArray(), a = e && !this.location ? t.filter((n) => n.id !== this._zoomToFeature.id) : t, i = !!a.length || this._hasActionsStartSlotContent || this._hasActionsEndSlotContent, s = this._isCollapsed || this.hideActionBar || !i;
|
|
@@ -447,7 +447,7 @@ class re extends U {
|
|
|
447
447
|
}
|
|
448
448
|
_renderContent() {
|
|
449
449
|
const { content: e, selectedFeatureItem: t } = this.viewModel;
|
|
450
|
-
return t ? r`<arcgis-feature-next .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .flowItems=${this.flowItems} .graphic=${t.graphic} .headingLevel=${this.headingLevel + 1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} ${f(this._selectedFeatureComponent)}></arcgis-feature-next>` : typeof e == "string" ? S(e, r`<div .innerHTML=${b.sanitize(e) ?? ""}></div>`) : e ?? null;
|
|
450
|
+
return t ? r`<arcgis-feature-next .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .flowItems=${this.flowItems} .graphic=${t.graphic} .headingLevel=${this.headingLevel + 1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideEmptyRelationshipContent=${this.hideEmptyRelationshipContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} ${f(this._selectedFeatureComponent)}></arcgis-feature-next>` : typeof e == "string" ? S(e, r`<div .innerHTML=${b.sanitize(e) ?? ""}></div>`) : e ?? null;
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
453
|
H("arcgis-features-next", re);
|
|
@@ -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
|
* >
|
|
@@ -255,6 +256,7 @@ export abstract class ArcgisLayerListNext extends LitElement {
|
|
|
255
256
|
* Indicates whether to hide the notice that appears when no results are found after filtering.
|
|
256
257
|
*
|
|
257
258
|
* @default false
|
|
259
|
+
* @since 5.2
|
|
258
260
|
* @example
|
|
259
261
|
* ```html
|
|
260
262
|
* <arcgis-layer-list-next hide-no-filter-results-notice></arcgis-layer-list-next>
|
|
@@ -270,6 +272,7 @@ export abstract class ArcgisLayerListNext extends LitElement {
|
|
|
270
272
|
* Indicates whether to hide the notice that appears when there are no items to display.
|
|
271
273
|
*
|
|
272
274
|
* @default false
|
|
275
|
+
* @since 5.2
|
|
273
276
|
* @example
|
|
274
277
|
* ```html
|
|
275
278
|
* <arcgis-layer-list-next hide-no-items-notice></arcgis-layer-list-next>
|
|
@@ -381,8 +384,8 @@ export abstract class ArcgisLayerListNext extends LitElement {
|
|
|
381
384
|
* Specifies whether to ignore the [listMode](https://developers.arcgis.com/javascript/latest/references/core/layers/Layer/#listMode) property to display all layers. A common use case for `listModeDisabled` is when you want to use the component to manage and configure a layer's `listMode` value.
|
|
382
385
|
*
|
|
383
386
|
* @default false
|
|
384
|
-
* @see [listMode](https://developers.arcgis.com/javascript/latest/references/core/layers/Layer/#listMode)
|
|
385
387
|
* @since 5.2
|
|
388
|
+
* @see [listMode](https://developers.arcgis.com/javascript/latest/references/core/layers/Layer/#listMode)
|
|
386
389
|
* @example
|
|
387
390
|
* ```html
|
|
388
391
|
* <arcgis-layer-list-next list-mode-disabled></arcgis-layer-list-next>
|
|
@@ -398,6 +401,8 @@ export abstract class ArcgisLayerListNext extends LitElement {
|
|
|
398
401
|
* Replace localized message strings with your own strings.
|
|
399
402
|
*
|
|
400
403
|
* _**Note**: Individual message keys may change between releases._
|
|
404
|
+
*
|
|
405
|
+
* @since 5.2
|
|
401
406
|
*/
|
|
402
407
|
accessor messageOverrides: NonNullable<ArcgisCatalogLayerListNext["messageOverrides"]> & NonNullable<ArcgisTableListNext["messageOverrides"]> & {
|
|
403
408
|
componentLabel?: string | undefined;
|
|
@@ -418,6 +423,11 @@ export abstract class ArcgisLayerListNext extends LitElement {
|
|
|
418
423
|
tableError?: string | undefined;
|
|
419
424
|
temporary?: string | undefined;
|
|
420
425
|
tables?: string | undefined;
|
|
426
|
+
trackInfo?: {
|
|
427
|
+
latestObservations?: string | undefined;
|
|
428
|
+
previousObservations?: string | undefined;
|
|
429
|
+
trackLines?: string | undefined;
|
|
430
|
+
} | undefined;
|
|
421
431
|
catalogLayers?: string | undefined;
|
|
422
432
|
connectionStatus?: string | undefined;
|
|
423
433
|
updating?: string | undefined;
|
|
@@ -446,6 +456,11 @@ export abstract class ArcgisLayerListNext extends LitElement {
|
|
|
446
456
|
tableError: string;
|
|
447
457
|
temporary: string;
|
|
448
458
|
tables: string;
|
|
459
|
+
trackInfo: {
|
|
460
|
+
latestObservations: string;
|
|
461
|
+
previousObservations: string;
|
|
462
|
+
trackLines: string;
|
|
463
|
+
};
|
|
449
464
|
catalogLayers: string;
|
|
450
465
|
connectionStatus: string;
|
|
451
466
|
updating: string;
|
|
@@ -472,6 +487,11 @@ export abstract class ArcgisLayerListNext extends LitElement {
|
|
|
472
487
|
tableError: string;
|
|
473
488
|
temporary: string;
|
|
474
489
|
tables: string;
|
|
490
|
+
trackInfo: {
|
|
491
|
+
latestObservations: string;
|
|
492
|
+
previousObservations: string;
|
|
493
|
+
trackLines: string;
|
|
494
|
+
};
|
|
475
495
|
catalogLayers: string;
|
|
476
496
|
connectionStatus: string;
|
|
477
497
|
updating: string;
|
|
@@ -511,17 +531,17 @@ export abstract class ArcgisLayerListNext extends LitElement {
|
|
|
511
531
|
*/
|
|
512
532
|
accessor minFilterItems: number;
|
|
513
533
|
/**
|
|
514
|
-
* A collection of [layers](https://developers.arcgis.com/javascript/latest/references/core/layers/Layer/)
|
|
515
|
-
* in a [catalogLayerList](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-layer-list-next/#catalogLayerList) or [tableList](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-layer-list-next/#tableList) flow item.
|
|
516
|
-
* This property is useful for backing out of the catalog layer list or table list programmatically to the parent layer list.
|
|
534
|
+
* A collection of [layers](https://developers.arcgis.com/javascript/latest/references/core/layers/Layer/) opened in a flow item within the component. Use this property to navigate back programmatically by removing the last opened layer.
|
|
517
535
|
*
|
|
518
536
|
* @see [catalogLayerList](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-layer-list-next/#catalogLayerList)
|
|
519
537
|
* @see [tableList](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-layer-list-next/#tableList)
|
|
520
538
|
* @example
|
|
539
|
+
*
|
|
521
540
|
* ```js
|
|
522
|
-
* // back out of the
|
|
523
|
-
*
|
|
541
|
+
* // back out of the flow item to the main layer list
|
|
542
|
+
* layerListNext.openedLayers.pop();
|
|
524
543
|
* ```
|
|
544
|
+
*
|
|
525
545
|
*/
|
|
526
546
|
get openedLayers(): Collection<FlowLayer>;
|
|
527
547
|
/**
|
|
@@ -735,15 +755,27 @@ export abstract class ArcgisLayerListNext extends LitElement {
|
|
|
735
755
|
destroy(): Promise<void>;
|
|
736
756
|
/** Emitted when the component's close button is clicked. */
|
|
737
757
|
readonly arcgisClose: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
738
|
-
/**
|
|
758
|
+
/**
|
|
759
|
+
* Emitted when the value of the [filterText](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-layer-list-next/#filterText) input changes.
|
|
760
|
+
*
|
|
761
|
+
* @since 5.2
|
|
762
|
+
*/
|
|
739
763
|
readonly arcgisFilterChange: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
740
|
-
/**
|
|
764
|
+
/**
|
|
765
|
+
* Emitted when the collection of [openedLayers](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-layer-list-next/#openedLayers) changes.
|
|
766
|
+
*
|
|
767
|
+
* @since 5.2
|
|
768
|
+
*/
|
|
741
769
|
readonly arcgisOpenedLayersChange: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
742
770
|
/** Emitted when the value of a property is changed. Use this to listen to changes to properties. */
|
|
743
771
|
readonly arcgisPropertyChange: import("@arcgis/lumina").TargetedEvent<this, { name: "state"; }>;
|
|
744
772
|
/** Emitted when the component associated with a map or scene view is ready to be interacted with. */
|
|
745
773
|
readonly arcgisReady: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
746
|
-
/**
|
|
774
|
+
/**
|
|
775
|
+
* Emitted when the collection of [selectedItems](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-layer-list-next/#selectedItems) changes.
|
|
776
|
+
*
|
|
777
|
+
* @since 5.2
|
|
778
|
+
*/
|
|
747
779
|
readonly arcgisSelectedItemsChange: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
748
780
|
/** Emitted when an action is triggered on the component. */
|
|
749
781
|
readonly arcgisTriggerAction: import("@arcgis/lumina").TargetedEvent<this, LayerItemCollectionEvents["trigger-action"]>;
|